Skip to content

Commit b57b0ae

Browse files
authored
Merge pull request #96 from scalekit-inc/users-crud
Implemented user CRUD methods and refresh token handling in SDK
2 parents 2bde017 + 259593b commit b57b0ae

34 files changed

+5598
-25
lines changed

buf.gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ types:
1313
- scalekit.v1.domains
1414
- scalekit.v1.organizations
1515
- scalekit.v1.directories
16-
- scalekit.v1.auth.passwordless
16+
- scalekit.v1.users
17+
- scalekit.v1.auth.passwordless

lib/core.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2+
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
13
/**
24
* @generated from enum scalekit.v1.commons.RegionCode
35
*/
@@ -18,3 +20,218 @@ export declare enum RegionCode {
1820
*/
1921
EU = 2
2022
}
23+
/**
24+
* @generated from enum scalekit.v1.commons.UserStatus
25+
*/
26+
export declare enum UserStatus {
27+
/**
28+
* @generated from enum value: USER_STATUS_UNSPECIFIED = 0;
29+
*/
30+
USER_STATUS_UNSPECIFIED = 0,
31+
/**
32+
* @generated from enum value: ACTIVE = 1;
33+
*/
34+
ACTIVE = 1,
35+
/**
36+
* @generated from enum value: INACTIVE = 2;
37+
*/
38+
INACTIVE = 2,
39+
/**
40+
* @generated from enum value: INVITED = 3;
41+
*/
42+
INVITED = 3,
43+
/**
44+
* @generated from enum value: PENDING = 4;
45+
*/
46+
PENDING = 4
47+
}
48+
/**
49+
* @generated from enum scalekit.v1.commons.IdentityProviderType
50+
*/
51+
export declare enum IdentityProviderType {
52+
/**
53+
* @generated from enum value: IDENTITY_PROVIDER_UNSPECIFIED = 0;
54+
*/
55+
IDENTITY_PROVIDER_UNSPECIFIED = 0,
56+
/**
57+
* @generated from enum value: OKTA = 1;
58+
*/
59+
OKTA = 1,
60+
/**
61+
* @generated from enum value: GOOGLE = 2;
62+
*/
63+
GOOGLE = 2,
64+
/**
65+
* @generated from enum value: MICROSOFT_AD = 3;
66+
*/
67+
MICROSOFT_AD = 3,
68+
/**
69+
* @generated from enum value: AUTH0 = 4;
70+
*/
71+
AUTH0 = 4,
72+
/**
73+
* @generated from enum value: ONELOGIN = 5;
74+
*/
75+
ONELOGIN = 5,
76+
/**
77+
* @generated from enum value: PING_IDENTITY = 6;
78+
*/
79+
PING_IDENTITY = 6,
80+
/**
81+
* @generated from enum value: JUMPCLOUD = 7;
82+
*/
83+
JUMPCLOUD = 7,
84+
/**
85+
* @generated from enum value: CUSTOM = 8;
86+
*/
87+
CUSTOM = 8,
88+
/**
89+
* @generated from enum value: GITHUB = 9;
90+
*/
91+
GITHUB = 9,
92+
/**
93+
* @generated from enum value: GITLAB = 10;
94+
*/
95+
GITLAB = 10,
96+
/**
97+
* @generated from enum value: LINKEDIN = 11;
98+
*/
99+
LINKEDIN = 11,
100+
/**
101+
* @generated from enum value: SALESFORCE = 12;
102+
*/
103+
SALESFORCE = 12,
104+
/**
105+
* @generated from enum value: MICROSOFT = 13;
106+
*/
107+
MICROSOFT = 13,
108+
/**
109+
* @generated from enum value: IDP_SIMULATOR = 14;
110+
*/
111+
IDP_SIMULATOR = 14,
112+
/**
113+
* @generated from enum value: SCALEKIT = 15;
114+
*/
115+
SCALEKIT = 15,
116+
/**
117+
* @generated from enum value: ADFS = 16;
118+
*/
119+
ADFS = 16
120+
}
121+
/**
122+
* @generated from message scalekit.v1.commons.OrganizationMembership
123+
*/
124+
export declare class OrganizationMembership extends Message<OrganizationMembership> {
125+
/**
126+
* @generated from field: string organization_id = 1;
127+
*/
128+
organizationId: string;
129+
/**
130+
* @generated from field: google.protobuf.Timestamp join_time = 2;
131+
*/
132+
joinTime?: Timestamp;
133+
/**
134+
* @generated from field: scalekit.v1.commons.UserStatus membership_status = 3;
135+
*/
136+
membershipStatus: UserStatus;
137+
/**
138+
* @generated from field: repeated scalekit.v1.commons.Role roles = 4;
139+
*/
140+
roles: Role[];
141+
/**
142+
* @generated from field: optional string name = 5;
143+
*/
144+
name?: string;
145+
/**
146+
* @generated from field: scalekit.v1.commons.IdentityProviderType primary_identity_provider = 6;
147+
*/
148+
primaryIdentityProvider: IdentityProviderType;
149+
/**
150+
* @generated from field: map<string, string> metadata = 7;
151+
*/
152+
metadata: {
153+
[key: string]: string;
154+
};
155+
constructor(data?: PartialMessage<OrganizationMembership>);
156+
static readonly runtime: typeof proto3;
157+
static readonly typeName = "scalekit.v1.commons.OrganizationMembership";
158+
static readonly fields: FieldList;
159+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrganizationMembership;
160+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrganizationMembership;
161+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrganizationMembership;
162+
static equals(a: OrganizationMembership | PlainMessage<OrganizationMembership> | undefined, b: OrganizationMembership | PlainMessage<OrganizationMembership> | undefined): boolean;
163+
}
164+
/**
165+
* @generated from message scalekit.v1.commons.Role
166+
*/
167+
export declare class Role extends Message<Role> {
168+
/**
169+
* @generated from field: string id = 1;
170+
*/
171+
id: string;
172+
/**
173+
* @generated from field: string name = 2;
174+
*/
175+
name: string;
176+
constructor(data?: PartialMessage<Role>);
177+
static readonly runtime: typeof proto3;
178+
static readonly typeName = "scalekit.v1.commons.Role";
179+
static readonly fields: FieldList;
180+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Role;
181+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Role;
182+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Role;
183+
static equals(a: Role | PlainMessage<Role> | undefined, b: Role | PlainMessage<Role> | undefined): boolean;
184+
}
185+
/**
186+
* @generated from message scalekit.v1.commons.UserProfile
187+
*/
188+
export declare class UserProfile extends Message<UserProfile> {
189+
/**
190+
* @generated from field: string id = 1;
191+
*/
192+
id: string;
193+
/**
194+
* @generated from field: string first_name = 2;
195+
*/
196+
firstName: string;
197+
/**
198+
* @generated from field: string last_name = 3;
199+
*/
200+
lastName: string;
201+
/**
202+
* @generated from field: string name = 4;
203+
*/
204+
name: string;
205+
/**
206+
* @generated from field: string locale = 5;
207+
*/
208+
locale: string;
209+
/**
210+
* @generated from field: bool email_verified = 6;
211+
*/
212+
emailVerified: boolean;
213+
/**
214+
* @generated from field: string phone_number = 7;
215+
*/
216+
phoneNumber: string;
217+
/**
218+
* @generated from field: map<string, string> metadata = 8;
219+
*/
220+
metadata: {
221+
[key: string]: string;
222+
};
223+
/**
224+
* @generated from field: map<string, string> custom_attributes = 9;
225+
*/
226+
customAttributes: {
227+
[key: string]: string;
228+
};
229+
constructor(data?: PartialMessage<UserProfile>);
230+
static readonly runtime: typeof proto3;
231+
static readonly typeName = "scalekit.v1.commons.UserProfile";
232+
static readonly fields: FieldList;
233+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserProfile;
234+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserProfile;
235+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserProfile;
236+
static equals(a: UserProfile | PlainMessage<UserProfile> | undefined, b: UserProfile | PlainMessage<UserProfile> | undefined): boolean;
237+
}

0 commit comments

Comments
 (0)