@scalekit-sdk/node 2.1.7 → 2.1.8

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 (82) hide show
  1. package/buf.gen.yaml +1 -0
  2. package/lib/auth.d.ts +41 -9
  3. package/lib/auth.js +44 -12
  4. package/lib/auth.js.map +1 -1
  5. package/lib/connection.d.ts +195 -21
  6. package/lib/connection.js +197 -23
  7. package/lib/connection.js.map +1 -1
  8. package/lib/core.d.ts +2 -2
  9. package/lib/core.js +13 -12
  10. package/lib/core.js.map +1 -1
  11. package/lib/directory.d.ts +293 -40
  12. package/lib/directory.js +308 -44
  13. package/lib/directory.js.map +1 -1
  14. package/lib/domain.d.ts +166 -18
  15. package/lib/domain.js +178 -29
  16. package/lib/domain.js.map +1 -1
  17. package/lib/organization.d.ts +404 -44
  18. package/lib/organization.js +419 -54
  19. package/lib/organization.js.map +1 -1
  20. package/lib/permission.d.ts +179 -35
  21. package/lib/permission.js +190 -38
  22. package/lib/permission.js.map +1 -1
  23. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +3 -3
  24. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +2 -2
  25. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +1 -1
  26. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +16 -16
  27. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +21 -21
  28. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -1
  29. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.d.ts +82 -0
  30. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js +90 -0
  31. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js.map +1 -0
  32. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.d.ts +647 -0
  33. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js +993 -0
  34. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js.map +1 -0
  35. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +142 -0
  36. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +165 -1
  37. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
  38. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +1 -10
  39. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +0 -9
  40. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
  41. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +28 -63
  42. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +9 -90
  43. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  44. package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +2 -2
  45. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +1 -1
  46. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
  47. package/lib/role.d.ts +252 -56
  48. package/lib/role.js +262 -62
  49. package/lib/role.js.map +1 -1
  50. package/lib/scalekit.d.ts +323 -54
  51. package/lib/scalekit.js +354 -76
  52. package/lib/scalekit.js.map +1 -1
  53. package/lib/session.d.ts +235 -22
  54. package/lib/session.js +237 -24
  55. package/lib/session.js.map +1 -1
  56. package/lib/user.d.ts +571 -53
  57. package/lib/user.js +598 -89
  58. package/lib/user.js.map +1 -1
  59. package/lib/webauthn.d.ts +33 -0
  60. package/lib/webauthn.js +80 -0
  61. package/lib/webauthn.js.map +1 -0
  62. package/package.json +2 -2
  63. package/src/auth.ts +53 -19
  64. package/src/connection.ts +237 -62
  65. package/src/core.ts +39 -33
  66. package/src/directory.ts +356 -98
  67. package/src/domain.ts +215 -68
  68. package/src/organization.ts +490 -112
  69. package/src/permission.ts +234 -88
  70. package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +3 -3
  71. package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +24 -24
  72. package/src/pkg/grpc/scalekit/v1/auth/webauthn_connect.ts +89 -0
  73. package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +1263 -0
  74. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +217 -0
  75. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +1 -10
  76. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +42 -129
  77. package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +3 -3
  78. package/src/role.ts +336 -136
  79. package/src/scalekit.ts +478 -149
  80. package/src/session.ts +266 -63
  81. package/src/user.ts +675 -168
  82. package/src/webauthn.ts +98 -0
@@ -73,6 +73,116 @@ proto3.util.setEnumType(MembershipStatus, "scalekit.v1.commons.MembershipStatus"
73
73
  { no: 4, name: "INVITE_EXPIRED" },
74
74
  ]);
75
75
 
76
+ /**
77
+ * @generated from enum scalekit.v1.commons.IdentityProviderType
78
+ */
79
+ export enum IdentityProviderType {
80
+ /**
81
+ * @generated from enum value: IDENTITY_PROVIDER_UNSPECIFIED = 0;
82
+ */
83
+ IDENTITY_PROVIDER_UNSPECIFIED = 0,
84
+
85
+ /**
86
+ * @generated from enum value: OKTA = 1;
87
+ */
88
+ OKTA = 1,
89
+
90
+ /**
91
+ * @generated from enum value: GOOGLE = 2;
92
+ */
93
+ GOOGLE = 2,
94
+
95
+ /**
96
+ * @generated from enum value: MICROSOFT_AD = 3;
97
+ */
98
+ MICROSOFT_AD = 3,
99
+
100
+ /**
101
+ * @generated from enum value: AUTH0 = 4;
102
+ */
103
+ AUTH0 = 4,
104
+
105
+ /**
106
+ * @generated from enum value: ONELOGIN = 5;
107
+ */
108
+ ONELOGIN = 5,
109
+
110
+ /**
111
+ * @generated from enum value: PING_IDENTITY = 6;
112
+ */
113
+ PING_IDENTITY = 6,
114
+
115
+ /**
116
+ * @generated from enum value: JUMPCLOUD = 7;
117
+ */
118
+ JUMPCLOUD = 7,
119
+
120
+ /**
121
+ * @generated from enum value: CUSTOM = 8;
122
+ */
123
+ CUSTOM = 8,
124
+
125
+ /**
126
+ * @generated from enum value: GITHUB = 9;
127
+ */
128
+ GITHUB = 9,
129
+
130
+ /**
131
+ * @generated from enum value: GITLAB = 10;
132
+ */
133
+ GITLAB = 10,
134
+
135
+ /**
136
+ * @generated from enum value: LINKEDIN = 11;
137
+ */
138
+ LINKEDIN = 11,
139
+
140
+ /**
141
+ * @generated from enum value: SALESFORCE = 12;
142
+ */
143
+ SALESFORCE = 12,
144
+
145
+ /**
146
+ * @generated from enum value: MICROSOFT = 13;
147
+ */
148
+ MICROSOFT = 13,
149
+
150
+ /**
151
+ * @generated from enum value: IDP_SIMULATOR = 14;
152
+ */
153
+ IDP_SIMULATOR = 14,
154
+
155
+ /**
156
+ * @generated from enum value: SCALEKIT = 15;
157
+ */
158
+ SCALEKIT = 15,
159
+
160
+ /**
161
+ * @generated from enum value: ADFS = 16;
162
+ */
163
+ ADFS = 16,
164
+ }
165
+ // Retrieve enum metadata with: proto3.getEnumType(IdentityProviderType)
166
+ proto3.util.setEnumType(IdentityProviderType, "scalekit.v1.commons.IdentityProviderType", [
167
+ { no: 0, name: "IDENTITY_PROVIDER_UNSPECIFIED" },
168
+ { no: 1, name: "OKTA" },
169
+ { no: 2, name: "GOOGLE" },
170
+ { no: 3, name: "MICROSOFT_AD" },
171
+ { no: 4, name: "AUTH0" },
172
+ { no: 5, name: "ONELOGIN" },
173
+ { no: 6, name: "PING_IDENTITY" },
174
+ { no: 7, name: "JUMPCLOUD" },
175
+ { no: 8, name: "CUSTOM" },
176
+ { no: 9, name: "GITHUB" },
177
+ { no: 10, name: "GITLAB" },
178
+ { no: 11, name: "LINKEDIN" },
179
+ { no: 12, name: "SALESFORCE" },
180
+ { no: 13, name: "MICROSOFT" },
181
+ { no: 14, name: "IDP_SIMULATOR" },
182
+ { no: 15, name: "SCALEKIT" },
183
+ { no: 16, name: "ADFS" },
184
+ ]);
185
+
76
186
  /**
77
187
  * @generated from message scalekit.v1.commons.OrganizationMembership
78
188
  */
@@ -132,6 +242,11 @@ export class OrganizationMembership extends Message<OrganizationMembership> {
132
242
  */
133
243
  expiresAt?: Timestamp;
134
244
 
245
+ /**
246
+ * @generated from field: optional string provisioning_method = 14;
247
+ */
248
+ provisioningMethod?: string;
249
+
135
250
  constructor(data?: PartialMessage<OrganizationMembership>) {
136
251
  super();
137
252
  proto3.util.initPartial(data, this);
@@ -151,6 +266,7 @@ export class OrganizationMembership extends Message<OrganizationMembership> {
151
266
  { no: 11, name: "created_at", kind: "message", T: Timestamp, opt: true },
152
267
  { no: 12, name: "accepted_at", kind: "message", T: Timestamp, opt: true },
153
268
  { no: 13, name: "expires_at", kind: "message", T: Timestamp, opt: true },
269
+ { no: 14, name: "provisioning_method", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
154
270
  ]);
155
271
 
156
272
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrganizationMembership {
@@ -305,6 +421,11 @@ export class UserProfile extends Message<UserProfile> {
305
421
  */
306
422
  gender = "";
307
423
 
424
+ /**
425
+ * @generated from field: repeated scalekit.v1.commons.ExternalIdentity external_identities = 10;
426
+ */
427
+ externalIdentities: ExternalIdentity[] = [];
428
+
308
429
  constructor(data?: PartialMessage<UserProfile>) {
309
430
  super();
310
431
  proto3.util.initPartial(data, this);
@@ -329,6 +450,7 @@ export class UserProfile extends Message<UserProfile> {
329
450
  { no: 14, name: "picture", kind: "scalar", T: 9 /* ScalarType.STRING */ },
330
451
  { no: 15, name: "groups", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
331
452
  { no: 16, name: "gender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
453
+ { no: 10, name: "external_identities", kind: "message", T: ExternalIdentity, repeated: true },
332
454
  ]);
333
455
 
334
456
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserProfile {
@@ -348,3 +470,98 @@ export class UserProfile extends Message<UserProfile> {
348
470
  }
349
471
  }
350
472
 
473
+ /**
474
+ * @generated from message scalekit.v1.commons.ExternalIdentity
475
+ */
476
+ export class ExternalIdentity extends Message<ExternalIdentity> {
477
+ /**
478
+ * Identifier for this connection.
479
+ *
480
+ * @generated from field: string connection_id = 1;
481
+ */
482
+ connectionId = "";
483
+
484
+ /**
485
+ * Connection name.
486
+ *
487
+ * @generated from field: string connection_type = 2;
488
+ */
489
+ connectionType = "";
490
+
491
+ /**
492
+ * Name of connection, e.g. Google.
493
+ *
494
+ * @generated from field: scalekit.v1.commons.IdentityProviderType connection_provider = 3;
495
+ */
496
+ connectionProvider = IdentityProviderType.IDENTITY_PROVIDER_UNSPECIFIED;
497
+
498
+ /**
499
+ * Unique identifier of the user for this identity.
500
+ *
501
+ * @generated from field: string connection_user_id = 4;
502
+ */
503
+ connectionUserId = "";
504
+
505
+ /**
506
+ * Whether this identity is from a social provider (true) or not (false).
507
+ *
508
+ * @generated from field: bool is_social = 5;
509
+ */
510
+ isSocial = false;
511
+
512
+ /**
513
+ * Last successful login time with this IdP for the user.
514
+ *
515
+ * @generated from field: google.protobuf.Timestamp last_login_time = 6;
516
+ */
517
+ lastLoginTime?: Timestamp;
518
+
519
+ /**
520
+ * Creation of this external identity with the IdP for the user.
521
+ *
522
+ * @generated from field: google.protobuf.Timestamp created_time = 7;
523
+ */
524
+ createdTime?: Timestamp;
525
+
526
+ /**
527
+ * Last time when sync of data happened for this user from external IdP.
528
+ *
529
+ * @generated from field: google.protobuf.Timestamp last_synced_time = 8;
530
+ */
531
+ lastSyncedTime?: Timestamp;
532
+
533
+ constructor(data?: PartialMessage<ExternalIdentity>) {
534
+ super();
535
+ proto3.util.initPartial(data, this);
536
+ }
537
+
538
+ static readonly runtime: typeof proto3 = proto3;
539
+ static readonly typeName = "scalekit.v1.commons.ExternalIdentity";
540
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
541
+ { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
542
+ { no: 2, name: "connection_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
543
+ { no: 3, name: "connection_provider", kind: "enum", T: proto3.getEnumType(IdentityProviderType) },
544
+ { no: 4, name: "connection_user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
545
+ { no: 5, name: "is_social", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
546
+ { no: 6, name: "last_login_time", kind: "message", T: Timestamp },
547
+ { no: 7, name: "created_time", kind: "message", T: Timestamp },
548
+ { no: 8, name: "last_synced_time", kind: "message", T: Timestamp },
549
+ ]);
550
+
551
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExternalIdentity {
552
+ return new ExternalIdentity().fromBinary(bytes, options);
553
+ }
554
+
555
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExternalIdentity {
556
+ return new ExternalIdentity().fromJson(jsonValue, options);
557
+ }
558
+
559
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExternalIdentity {
560
+ return new ExternalIdentity().fromJsonString(jsonString, options);
561
+ }
562
+
563
+ static equals(a: ExternalIdentity | PlainMessage<ExternalIdentity> | undefined, b: ExternalIdentity | PlainMessage<ExternalIdentity> | undefined): boolean {
564
+ return proto3.util.equals(ExternalIdentity, a, b);
565
+ }
566
+ }
567
+
@@ -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, UpdateConnectionUserManagementSettingsRequest, UpdateConnectionUserManagementSettingsResponse, 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, UpdateEnvironmentConnectionRequest } from "./connections_pb.js";
7
7
  import { Empty, MethodKind } from "@bufbuild/protobuf";
8
8
 
9
9
  /**
@@ -174,15 +174,6 @@ 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
- },
186
177
  }
187
178
  } as const;
188
179
 
@@ -507,123 +507,6 @@ proto3.util.setEnumType(ConnectionProvider, "scalekit.v1.connections.ConnectionP
507
507
  { no: 16, name: "ADFS" },
508
508
  ]);
509
509
 
510
- /**
511
- * @generated from message scalekit.v1.connections.UpdateConnectionUserManagementSettingsRequest
512
- */
513
- export class UpdateConnectionUserManagementSettingsRequest extends Message<UpdateConnectionUserManagementSettingsRequest> {
514
- /**
515
- * @generated from field: string connection_id = 1;
516
- */
517
- connectionId = "";
518
-
519
- /**
520
- * @generated from field: scalekit.v1.connections.ConnectionUserManagementSettings settings = 2;
521
- */
522
- settings?: ConnectionUserManagementSettings;
523
-
524
- constructor(data?: PartialMessage<UpdateConnectionUserManagementSettingsRequest>) {
525
- super();
526
- proto3.util.initPartial(data, this);
527
- }
528
-
529
- static readonly runtime: typeof proto3 = proto3;
530
- static readonly typeName = "scalekit.v1.connections.UpdateConnectionUserManagementSettingsRequest";
531
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
532
- { no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
533
- { no: 2, name: "settings", kind: "message", T: ConnectionUserManagementSettings },
534
- ]);
535
-
536
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateConnectionUserManagementSettingsRequest {
537
- return new UpdateConnectionUserManagementSettingsRequest().fromBinary(bytes, options);
538
- }
539
-
540
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateConnectionUserManagementSettingsRequest {
541
- return new UpdateConnectionUserManagementSettingsRequest().fromJson(jsonValue, options);
542
- }
543
-
544
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateConnectionUserManagementSettingsRequest {
545
- return new UpdateConnectionUserManagementSettingsRequest().fromJsonString(jsonString, options);
546
- }
547
-
548
- static equals(a: UpdateConnectionUserManagementSettingsRequest | PlainMessage<UpdateConnectionUserManagementSettingsRequest> | undefined, b: UpdateConnectionUserManagementSettingsRequest | PlainMessage<UpdateConnectionUserManagementSettingsRequest> | undefined): boolean {
549
- return proto3.util.equals(UpdateConnectionUserManagementSettingsRequest, a, b);
550
- }
551
- }
552
-
553
- /**
554
- * @generated from message scalekit.v1.connections.ConnectionUserManagementSettings
555
- */
556
- export class ConnectionUserManagementSettings extends Message<ConnectionUserManagementSettings> {
557
- /**
558
- * @generated from field: google.protobuf.BoolValue sync_user_profile_on_signin = 1;
559
- */
560
- syncUserProfileOnSignin?: boolean;
561
-
562
- constructor(data?: PartialMessage<ConnectionUserManagementSettings>) {
563
- super();
564
- proto3.util.initPartial(data, this);
565
- }
566
-
567
- static readonly runtime: typeof proto3 = proto3;
568
- static readonly typeName = "scalekit.v1.connections.ConnectionUserManagementSettings";
569
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
570
- { no: 1, name: "sync_user_profile_on_signin", kind: "message", T: BoolValue },
571
- ]);
572
-
573
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionUserManagementSettings {
574
- return new ConnectionUserManagementSettings().fromBinary(bytes, options);
575
- }
576
-
577
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionUserManagementSettings {
578
- return new ConnectionUserManagementSettings().fromJson(jsonValue, options);
579
- }
580
-
581
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionUserManagementSettings {
582
- return new ConnectionUserManagementSettings().fromJsonString(jsonString, options);
583
- }
584
-
585
- static equals(a: ConnectionUserManagementSettings | PlainMessage<ConnectionUserManagementSettings> | undefined, b: ConnectionUserManagementSettings | PlainMessage<ConnectionUserManagementSettings> | undefined): boolean {
586
- return proto3.util.equals(ConnectionUserManagementSettings, a, b);
587
- }
588
- }
589
-
590
- /**
591
- * @generated from message scalekit.v1.connections.UpdateConnectionUserManagementSettingsResponse
592
- */
593
- export class UpdateConnectionUserManagementSettingsResponse extends Message<UpdateConnectionUserManagementSettingsResponse> {
594
- /**
595
- * @generated from field: scalekit.v1.connections.ConnectionUserManagementSettings settings = 1;
596
- */
597
- settings?: ConnectionUserManagementSettings;
598
-
599
- constructor(data?: PartialMessage<UpdateConnectionUserManagementSettingsResponse>) {
600
- super();
601
- proto3.util.initPartial(data, this);
602
- }
603
-
604
- static readonly runtime: typeof proto3 = proto3;
605
- static readonly typeName = "scalekit.v1.connections.UpdateConnectionUserManagementSettingsResponse";
606
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
607
- { no: 1, name: "settings", kind: "message", T: ConnectionUserManagementSettings },
608
- ]);
609
-
610
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateConnectionUserManagementSettingsResponse {
611
- return new UpdateConnectionUserManagementSettingsResponse().fromBinary(bytes, options);
612
- }
613
-
614
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateConnectionUserManagementSettingsResponse {
615
- return new UpdateConnectionUserManagementSettingsResponse().fromJson(jsonValue, options);
616
- }
617
-
618
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateConnectionUserManagementSettingsResponse {
619
- return new UpdateConnectionUserManagementSettingsResponse().fromJsonString(jsonString, options);
620
- }
621
-
622
- static equals(a: UpdateConnectionUserManagementSettingsResponse | PlainMessage<UpdateConnectionUserManagementSettingsResponse> | undefined, b: UpdateConnectionUserManagementSettingsResponse | PlainMessage<UpdateConnectionUserManagementSettingsResponse> | undefined): boolean {
623
- return proto3.util.equals(UpdateConnectionUserManagementSettingsResponse, a, b);
624
- }
625
- }
626
-
627
510
  /**
628
511
  * @generated from message scalekit.v1.connections.AssignDomainsToConnectionRequest
629
512
  */
@@ -1093,11 +976,6 @@ export class Connection extends Message<Connection> {
1093
976
  */
1094
977
  domains: Domain[] = [];
1095
978
 
1096
- /**
1097
- * @generated from field: google.protobuf.BoolValue sync_user_profile_on_signin = 28;
1098
- */
1099
- syncUserProfileOnSignin?: boolean;
1100
-
1101
979
  constructor(data?: PartialMessage<Connection>) {
1102
980
  super();
1103
981
  proto3.util.initPartial(data, this);
@@ -1128,7 +1006,6 @@ export class Connection extends Message<Connection> {
1128
1006
  { no: 25, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1129
1007
  { no: 23, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1130
1008
  { no: 24, name: "domains", kind: "message", T: Domain, repeated: true },
1131
- { no: 28, name: "sync_user_profile_on_signin", kind: "message", T: BoolValue },
1132
1009
  ]);
1133
1010
 
1134
1011
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Connection {
@@ -1362,11 +1239,6 @@ export class UpdateConnection extends Message<UpdateConnection> {
1362
1239
  */
1363
1240
  providerKey = "";
1364
1241
 
1365
- /**
1366
- * @generated from field: google.protobuf.BoolValue sync_user_profile_on_signin = 25;
1367
- */
1368
- syncUserProfileOnSignin?: boolean;
1369
-
1370
1242
  constructor(data?: PartialMessage<UpdateConnection>) {
1371
1243
  super();
1372
1244
  proto3.util.initPartial(data, this);
@@ -1389,7 +1261,6 @@ export class UpdateConnection extends Message<UpdateConnection> {
1389
1261
  { no: 24, name: "webauthn_config", kind: "message", T: WebAuthConfiguration, oneof: "settings" },
1390
1262
  { no: 22, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1391
1263
  { no: 21, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1392
- { no: 25, name: "sync_user_profile_on_signin", kind: "message", T: BoolValue },
1393
1264
  ]);
1394
1265
 
1395
1266
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateConnection {
@@ -2260,6 +2131,16 @@ export class OIDCConnectionConfig extends Message<OIDCConnectionConfig> {
2260
2131
  */
2261
2132
  backchannelLogoutRedirectUri?: string;
2262
2133
 
2134
+ /**
2135
+ * @generated from field: google.protobuf.BoolValue sync_user_profile_on_login = 17;
2136
+ */
2137
+ syncUserProfileOnLogin?: boolean;
2138
+
2139
+ /**
2140
+ * @generated from field: google.protobuf.BoolValue jit_provisioning_with_sso_enabled = 18;
2141
+ */
2142
+ jitProvisioningWithSsoEnabled?: boolean;
2143
+
2263
2144
  constructor(data?: PartialMessage<OIDCConnectionConfig>) {
2264
2145
  super();
2265
2146
  proto3.util.initPartial(data, this);
@@ -2283,6 +2164,8 @@ export class OIDCConnectionConfig extends Message<OIDCConnectionConfig> {
2283
2164
  { no: 14, name: "idp_logout_required", kind: "message", T: BoolValue },
2284
2165
  { no: 15, name: "post_logout_redirect_uri", kind: "message", T: StringValue },
2285
2166
  { no: 16, name: "backchannel_logout_redirect_uri", kind: "message", T: StringValue },
2167
+ { no: 17, name: "sync_user_profile_on_login", kind: "message", T: BoolValue },
2168
+ { no: 18, name: "jit_provisioning_with_sso_enabled", kind: "message", T: BoolValue },
2286
2169
  ]);
2287
2170
 
2288
2171
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OIDCConnectionConfig {
@@ -2366,6 +2249,11 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
2366
2249
  */
2367
2250
  customScopeName?: string;
2368
2251
 
2252
+ /**
2253
+ * @generated from field: google.protobuf.BoolValue sync_user_profile_on_login = 18;
2254
+ */
2255
+ syncUserProfileOnLogin?: boolean;
2256
+
2369
2257
  constructor(data?: PartialMessage<OAuthConnectionConfig>) {
2370
2258
  super();
2371
2259
  proto3.util.initPartial(data, this);
@@ -2386,6 +2274,7 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
2386
2274
  { no: 15, name: "use_platform_creds", kind: "message", T: BoolValue },
2387
2275
  { no: 16, name: "access_type", kind: "message", T: StringValue },
2388
2276
  { no: 17, name: "custom_scope_name", kind: "message", T: StringValue },
2277
+ { no: 18, name: "sync_user_profile_on_login", kind: "message", T: BoolValue },
2389
2278
  ]);
2390
2279
 
2391
2280
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OAuthConnectionConfig {
@@ -2968,6 +2857,16 @@ export class SAMLConnectionConfigRequest extends Message<SAMLConnectionConfigReq
2968
2857
  */
2969
2858
  spSloUrl?: string;
2970
2859
 
2860
+ /**
2861
+ * @generated from field: google.protobuf.BoolValue sync_user_profile_on_login = 23;
2862
+ */
2863
+ syncUserProfileOnLogin?: boolean;
2864
+
2865
+ /**
2866
+ * @generated from field: google.protobuf.BoolValue jit_provisioning_with_sso_enabled = 24;
2867
+ */
2868
+ jitProvisioningWithSsoEnabled?: boolean;
2869
+
2971
2870
  constructor(data?: PartialMessage<SAMLConnectionConfigRequest>) {
2972
2871
  super();
2973
2872
  proto3.util.initPartial(data, this);
@@ -2995,6 +2894,8 @@ export class SAMLConnectionConfigRequest extends Message<SAMLConnectionConfigReq
2995
2894
  { no: 20, name: "sp_entity_id", kind: "message", T: StringValue },
2996
2895
  { no: 21, name: "sp_assertion_url", kind: "message", T: StringValue },
2997
2896
  { no: 22, name: "sp_slo_url", kind: "message", T: StringValue },
2897
+ { no: 23, name: "sync_user_profile_on_login", kind: "message", T: BoolValue },
2898
+ { no: 24, name: "jit_provisioning_with_sso_enabled", kind: "message", T: BoolValue },
2998
2899
  ]);
2999
2900
 
3000
2901
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SAMLConnectionConfigRequest {
@@ -3123,6 +3024,16 @@ export class SAMLConnectionConfigResponse extends Message<SAMLConnectionConfigRe
3123
3024
  */
3124
3025
  spSloUrl?: string;
3125
3026
 
3027
+ /**
3028
+ * @generated from field: google.protobuf.BoolValue sync_user_profile_on_login = 22;
3029
+ */
3030
+ syncUserProfileOnLogin?: boolean;
3031
+
3032
+ /**
3033
+ * @generated from field: google.protobuf.BoolValue jit_provisioning_with_sso_enabled = 23;
3034
+ */
3035
+ jitProvisioningWithSsoEnabled?: boolean;
3036
+
3126
3037
  constructor(data?: PartialMessage<SAMLConnectionConfigResponse>) {
3127
3038
  super();
3128
3039
  proto3.util.initPartial(data, this);
@@ -3152,6 +3063,8 @@ export class SAMLConnectionConfigResponse extends Message<SAMLConnectionConfigRe
3152
3063
  { no: 19, name: "certificate_id", kind: "message", T: StringValue },
3153
3064
  { no: 20, name: "idp_slo_required", kind: "message", T: BoolValue },
3154
3065
  { no: 21, name: "sp_slo_url", kind: "message", T: StringValue },
3066
+ { no: 22, name: "sync_user_profile_on_login", kind: "message", T: BoolValue },
3067
+ { no: 23, name: "jit_provisioning_with_sso_enabled", kind: "message", T: BoolValue },
3155
3068
  ]);
3156
3069
 
3157
3070
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SAMLConnectionConfigResponse {
@@ -57,9 +57,9 @@ export class User extends Message<User> {
57
57
  metadata: { [key: string]: string } = {};
58
58
 
59
59
  /**
60
- * @generated from field: google.protobuf.Timestamp last_login = 10;
60
+ * @generated from field: google.protobuf.Timestamp last_login_time = 10;
61
61
  */
62
- lastLogin?: Timestamp;
62
+ lastLoginTime?: Timestamp;
63
63
 
64
64
  constructor(data?: PartialMessage<User>) {
65
65
  super();
@@ -78,7 +78,7 @@ export class User extends Message<User> {
78
78
  { no: 7, name: "memberships", kind: "message", T: OrganizationMembership, repeated: true },
79
79
  { no: 8, name: "user_profile", kind: "message", T: UserProfile },
80
80
  { no: 9, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
81
- { no: 10, name: "last_login", kind: "message", T: Timestamp },
81
+ { no: 10, name: "last_login_time", kind: "message", T: Timestamp },
82
82
  ]);
83
83
 
84
84
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): User {