@scalekit-sdk/node 2.1.4 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/buf.gen.yaml +1 -0
  2. package/lib/auth.d.ts +22 -0
  3. package/lib/auth.js +65 -0
  4. package/lib/auth.js.map +1 -0
  5. package/lib/core.js +1 -1
  6. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.d.ts +16 -0
  7. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +20 -0
  8. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js.map +1 -1
  9. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +118 -0
  10. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +126 -0
  11. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +1 -0
  12. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +617 -0
  13. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +927 -0
  14. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -0
  15. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +34 -4
  16. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +43 -6
  17. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
  18. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +10 -1
  19. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +9 -0
  20. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
  21. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +277 -2
  22. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +324 -2
  23. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  24. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.d.ts +43 -50
  25. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js +66 -73
  26. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js.map +1 -1
  27. package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +62 -14
  28. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +46 -17
  29. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
  30. package/lib/scalekit.d.ts +22 -0
  31. package/lib/scalekit.js +35 -6
  32. package/lib/scalekit.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/auth.ts +65 -0
  35. package/src/core.ts +1 -1
  36. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +24 -0
  37. package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +125 -0
  38. package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +1183 -0
  39. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +50 -6
  40. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +10 -1
  41. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +504 -1
  42. package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +82 -81
  43. package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +92 -22
  44. package/src/scalekit.ts +42 -6
@@ -229,14 +229,14 @@ export class UserProfile extends Message<UserProfile> {
229
229
  id = "";
230
230
 
231
231
  /**
232
- * @generated from field: string first_name = 2;
232
+ * @generated from field: string given_name = 2;
233
233
  */
234
- firstName = "";
234
+ givenName = "";
235
235
 
236
236
  /**
237
- * @generated from field: string last_name = 3;
237
+ * @generated from field: string family_name = 3;
238
238
  */
239
- lastName = "";
239
+ familyName = "";
240
240
 
241
241
  /**
242
242
  * @generated from field: string name = 4;
@@ -268,6 +268,43 @@ export class UserProfile extends Message<UserProfile> {
268
268
  */
269
269
  customAttributes: { [key: string]: string } = {};
270
270
 
271
+ /**
272
+ * @generated from field: string first_name = 21 [deprecated = true];
273
+ * @deprecated
274
+ */
275
+ firstName = "";
276
+
277
+ /**
278
+ * @generated from field: string last_name = 22 [deprecated = true];
279
+ * @deprecated
280
+ */
281
+ lastName = "";
282
+
283
+ /**
284
+ * @generated from field: string preferred_username = 12;
285
+ */
286
+ preferredUsername = "";
287
+
288
+ /**
289
+ * @generated from field: bool phone_number_verified = 13;
290
+ */
291
+ phoneNumberVerified = false;
292
+
293
+ /**
294
+ * @generated from field: string picture = 14;
295
+ */
296
+ picture = "";
297
+
298
+ /**
299
+ * @generated from field: repeated string groups = 15;
300
+ */
301
+ groups: string[] = [];
302
+
303
+ /**
304
+ * @generated from field: string gender = 16;
305
+ */
306
+ gender = "";
307
+
271
308
  constructor(data?: PartialMessage<UserProfile>) {
272
309
  super();
273
310
  proto3.util.initPartial(data, this);
@@ -277,14 +314,21 @@ export class UserProfile extends Message<UserProfile> {
277
314
  static readonly typeName = "scalekit.v1.commons.UserProfile";
278
315
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
279
316
  { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
280
- { no: 2, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
281
- { no: 3, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
317
+ { no: 2, name: "given_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
318
+ { no: 3, name: "family_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
282
319
  { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
283
320
  { no: 5, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */ },
284
321
  { no: 6, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
285
322
  { no: 7, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
286
323
  { no: 8, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
287
324
  { no: 9, name: "custom_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
325
+ { no: 21, name: "first_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
326
+ { no: 22, name: "last_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
327
+ { no: 12, name: "preferred_username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
328
+ { no: 13, name: "phone_number_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
329
+ { no: 14, name: "picture", kind: "scalar", T: 9 /* ScalarType.STRING */ },
330
+ { no: 15, name: "groups", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
331
+ { no: 16, name: "gender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
288
332
  ]);
289
333
 
290
334
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserProfile {
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
 
6
- import { AssignDomainsToConnectionRequest, AssignDomainsToConnectionResponse, CreateConnectionRequest, CreateConnectionResponse, CreateEnvironmentConnectionRequest, DeleteConnectionRequest, DeleteEnvironmentConnectionRequest, GetConnectionRequest, GetConnectionResponse, GetConnectionTestResultRequest, GetConnectionTestResultResponse, GetEnvironmentConnectionRequest, ListAppConnectionsRequest, ListAppConnectionsResponse, ListConnectionsRequest, ListConnectionsResponse, ListOrganizationConnectionsRequest, ListOrganizationConnectionsResponse, SearchOrganizationConnectionsRequest, SearchOrganizationConnectionsResponse, ToggleConnectionRequest, ToggleConnectionResponse, ToggleEnvironmentConnectionRequest, UpdateConnectionRequest, UpdateConnectionResponse, UpdateEnvironmentConnectionRequest } from "./connections_pb.js";
6
+ import { AssignDomainsToConnectionRequest, AssignDomainsToConnectionResponse, CreateConnectionRequest, CreateConnectionResponse, CreateEnvironmentConnectionRequest, DeleteConnectionRequest, DeleteEnvironmentConnectionRequest, GetConnectionRequest, GetConnectionResponse, GetConnectionTestResultRequest, GetConnectionTestResultResponse, GetEnvironmentConnectionRequest, ListAppConnectionsRequest, ListAppConnectionsResponse, ListConnectionsRequest, ListConnectionsResponse, ListOrganizationConnectionsRequest, ListOrganizationConnectionsResponse, SearchOrganizationConnectionsRequest, SearchOrganizationConnectionsResponse, ToggleConnectionRequest, ToggleConnectionResponse, ToggleEnvironmentConnectionRequest, UpdateConnectionRequest, UpdateConnectionResponse, UpdateConnectionUserManagementSettingsRequest, UpdateConnectionUserManagementSettingsResponse, UpdateEnvironmentConnectionRequest } from "./connections_pb.js";
7
7
  import { Empty, MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -174,6 +174,15 @@ export const ConnectionService = {
174
174
  O: ListAppConnectionsResponse,
175
175
  kind: MethodKind.Unary,
176
176
  },
177
+ /**
178
+ * @generated from rpc scalekit.v1.connections.ConnectionService.UpdateConnectionUserManagementSettings
179
+ */
180
+ updateConnectionUserManagementSettings: {
181
+ name: "UpdateConnectionUserManagementSettings",
182
+ I: UpdateConnectionUserManagementSettingsRequest,
183
+ O: UpdateConnectionUserManagementSettingsResponse,
184
+ kind: MethodKind.Unary,
185
+ },
177
186
  }
178
187
  } as const;
179
188