@scalekit-sdk/node 1.0.4 → 1.0.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 (48) hide show
  1. package/README.md +32 -6
  2. package/lib/connection.js +5 -20
  3. package/lib/connection.js.map +1 -1
  4. package/lib/core.js +1 -1
  5. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +1 -1
  6. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
  7. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +64 -1
  8. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +63 -0
  9. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
  10. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +278 -149
  11. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +362 -70
  12. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  13. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +10 -1
  14. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +9 -0
  15. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +1 -1
  16. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +34 -0
  17. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +64 -2
  18. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
  19. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +1 -1
  20. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
  21. package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +6 -0
  22. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +8 -1
  23. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -1
  24. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +19 -1
  25. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +18 -0
  26. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +1 -1
  27. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +71 -0
  28. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +120 -2
  29. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
  30. package/lib/scalekit.d.ts +1 -0
  31. package/lib/scalekit.js +2 -1
  32. package/lib/scalekit.js.map +1 -1
  33. package/lib/types/scalekit.d.ts +1 -0
  34. package/package.json +10 -11
  35. package/src/connection.ts +5 -20
  36. package/src/core.ts +1 -1
  37. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +1 -1
  38. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +64 -1
  39. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +508 -156
  40. package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +10 -1
  41. package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +75 -1
  42. package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +1 -1
  43. package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +9 -1
  44. package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +19 -1
  45. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +142 -1
  46. package/src/scalekit.ts +34 -7
  47. package/src/types/auth.ts +7 -0
  48. package/src/types/scalekit.ts +2 -1
@@ -151,7 +151,11 @@ export declare enum ConnectionType {
151
151
  /**
152
152
  * @generated from enum value: PASSWORD = 3;
153
153
  */
154
- PASSWORD = 3
154
+ PASSWORD = 3,
155
+ /**
156
+ * @generated from enum value: OAUTH = 4;
157
+ */
158
+ OAUTH = 4
155
159
  }
156
160
  /**
157
161
  * @generated from enum scalekit.v1.connections.ConnectionStatus
@@ -213,31 +217,104 @@ export declare enum ConnectionProvider {
213
217
  /**
214
218
  * @generated from enum value: CUSTOM = 8;
215
219
  */
216
- CUSTOM = 8
220
+ CUSTOM = 8,
221
+ /**
222
+ * @generated from enum value: GITHUB = 9;
223
+ */
224
+ GITHUB = 9,
225
+ /**
226
+ * @generated from enum value: GITLAB = 10;
227
+ */
228
+ GITLAB = 10,
229
+ /**
230
+ * @generated from enum value: LINKEDIN = 11;
231
+ */
232
+ LINKEDIN = 11,
233
+ /**
234
+ * @generated from enum value: SALESFORCE = 12;
235
+ */
236
+ SALESFORCE = 12
237
+ }
238
+ /**
239
+ * @generated from message scalekit.v1.connections.GetProvidersRequest
240
+ */
241
+ export declare class GetProvidersRequest extends Message<GetProvidersRequest> {
242
+ constructor(data?: PartialMessage<GetProvidersRequest>);
243
+ static readonly runtime: typeof proto3;
244
+ static readonly typeName = "scalekit.v1.connections.GetProvidersRequest";
245
+ static readonly fields: FieldList;
246
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProvidersRequest;
247
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProvidersRequest;
248
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProvidersRequest;
249
+ static equals(a: GetProvidersRequest | PlainMessage<GetProvidersRequest> | undefined, b: GetProvidersRequest | PlainMessage<GetProvidersRequest> | undefined): boolean;
250
+ }
251
+ /**
252
+ * @generated from message scalekit.v1.connections.GetProvidersResponse
253
+ */
254
+ export declare class GetProvidersResponse extends Message<GetProvidersResponse> {
255
+ /**
256
+ * @generated from field: repeated scalekit.v1.connections.Provider providers = 1;
257
+ */
258
+ providers: Provider[];
259
+ constructor(data?: PartialMessage<GetProvidersResponse>);
260
+ static readonly runtime: typeof proto3;
261
+ static readonly typeName = "scalekit.v1.connections.GetProvidersResponse";
262
+ static readonly fields: FieldList;
263
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProvidersResponse;
264
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProvidersResponse;
265
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProvidersResponse;
266
+ static equals(a: GetProvidersResponse | PlainMessage<GetProvidersResponse> | undefined, b: GetProvidersResponse | PlainMessage<GetProvidersResponse> | undefined): boolean;
267
+ }
268
+ /**
269
+ * @generated from message scalekit.v1.connections.Provider
270
+ */
271
+ export declare class Provider extends Message<Provider> {
272
+ /**
273
+ * @generated from field: string key_id = 1;
274
+ */
275
+ keyId: string;
276
+ /**
277
+ * @generated from field: string display_name = 2;
278
+ */
279
+ displayName: string;
280
+ /**
281
+ * @generated from field: optional string description = 3;
282
+ */
283
+ description?: string;
284
+ constructor(data?: PartialMessage<Provider>);
285
+ static readonly runtime: typeof proto3;
286
+ static readonly typeName = "scalekit.v1.connections.Provider";
287
+ static readonly fields: FieldList;
288
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Provider;
289
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Provider;
290
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Provider;
291
+ static equals(a: Provider | PlainMessage<Provider> | undefined, b: Provider | PlainMessage<Provider> | undefined): boolean;
292
+ }
293
+ /**
294
+ * @generated from message scalekit.v1.connections.CreateEnvironmentConnectionRequest
295
+ */
296
+ export declare class CreateEnvironmentConnectionRequest extends Message<CreateEnvironmentConnectionRequest> {
297
+ /**
298
+ * @generated from field: scalekit.v1.connections.CreateConnection connection = 1;
299
+ */
300
+ connection?: CreateConnection;
301
+ constructor(data?: PartialMessage<CreateEnvironmentConnectionRequest>);
302
+ static readonly runtime: typeof proto3;
303
+ static readonly typeName = "scalekit.v1.connections.CreateEnvironmentConnectionRequest";
304
+ static readonly fields: FieldList;
305
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateEnvironmentConnectionRequest;
306
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateEnvironmentConnectionRequest;
307
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateEnvironmentConnectionRequest;
308
+ static equals(a: CreateEnvironmentConnectionRequest | PlainMessage<CreateEnvironmentConnectionRequest> | undefined, b: CreateEnvironmentConnectionRequest | PlainMessage<CreateEnvironmentConnectionRequest> | undefined): boolean;
217
309
  }
218
310
  /**
219
311
  * @generated from message scalekit.v1.connections.CreateConnectionRequest
220
312
  */
221
313
  export declare class CreateConnectionRequest extends Message<CreateConnectionRequest> {
222
314
  /**
223
- * @generated from oneof scalekit.v1.connections.CreateConnectionRequest.identities
315
+ * @generated from field: string organization_id = 1;
224
316
  */
225
- identities: {
226
- /**
227
- * @generated from field: string organization_id = 1;
228
- */
229
- value: string;
230
- case: "organizationId";
231
- } | {
232
- /**
233
- * @generated from field: string external_id = 2;
234
- */
235
- value: string;
236
- case: "externalId";
237
- } | {
238
- case: undefined;
239
- value?: undefined;
240
- };
317
+ organizationId: string;
241
318
  /**
242
319
  * @generated from field: scalekit.v1.connections.CreateConnection connection = 3;
243
320
  */
@@ -301,54 +378,64 @@ export declare class Connection extends Message<Connection> {
301
378
  */
302
379
  debugEnabled: boolean;
303
380
  /**
304
- * @generated from field: string organization_id = 7;
381
+ * @generated from field: optional string organization_id = 7;
305
382
  */
306
- organizationId: string;
383
+ organizationId?: string;
307
384
  /**
308
385
  * @generated from field: string ui_button_title = 8;
309
386
  */
310
387
  uiButtonTitle: string;
311
388
  /**
312
- * @generated from field: string login_initiation_uri = 9;
389
+ * @generated from field: scalekit.v1.connections.ConfigurationType configuration_type = 9;
313
390
  */
314
- loginInitiationUri: string;
391
+ configurationType: ConfigurationType;
315
392
  /**
316
- * @generated from field: string logout_uri = 10;
393
+ * @generated from field: string test_connection_uri = 12;
317
394
  */
318
- logoutUri: string;
395
+ testConnectionUri: string;
319
396
  /**
320
- * @generated from field: scalekit.v1.connections.ConfigurationType configuration_type = 11;
397
+ * @generated from field: map<string, string> attribute_mapping = 15;
321
398
  */
322
- configurationType: ConfigurationType;
399
+ attributeMapping: {
400
+ [key: string]: string;
401
+ };
323
402
  /**
324
- * @generated from field: string test_connection_uri = 12;
403
+ * @generated from field: google.protobuf.Timestamp create_time = 16;
325
404
  */
326
- testConnectionUri: string;
405
+ createTime?: Timestamp;
406
+ /**
407
+ * @generated from field: google.protobuf.Timestamp update_time = 17;
408
+ */
409
+ updateTime?: Timestamp;
327
410
  /**
328
411
  * @generated from oneof scalekit.v1.connections.Connection.settings
329
412
  */
330
413
  settings: {
331
414
  /**
332
- * @generated from field: scalekit.v1.connections.OIDCConnectionConfig oidc_config = 13;
415
+ * @generated from field: scalekit.v1.connections.OIDCConnectionConfig oidc_config = 18;
333
416
  */
334
417
  value: OIDCConnectionConfig;
335
418
  case: "oidcConfig";
336
419
  } | {
337
420
  /**
338
- * @generated from field: scalekit.v1.connections.SAMLConnectionConfigResponse saml_config = 14;
421
+ * @generated from field: scalekit.v1.connections.SAMLConnectionConfigResponse saml_config = 19;
339
422
  */
340
423
  value: SAMLConnectionConfigResponse;
341
424
  case: "samlConfig";
425
+ } | {
426
+ /**
427
+ * @generated from field: scalekit.v1.connections.OAuthConnectionConfig oauth_config = 20;
428
+ */
429
+ value: OAuthConnectionConfig;
430
+ case: "oauthConfig";
342
431
  } | {
343
432
  case: undefined;
344
433
  value?: undefined;
345
434
  };
346
435
  /**
347
- * @generated from field: map<string, string> attribute_mapping = 15;
436
+ * @generated from field: optional string key_id = 21;
348
437
  */
349
- attributeMapping: {
350
- [key: string]: string;
351
- };
438
+ keyId?: string;
352
439
  constructor(data?: PartialMessage<Connection>);
353
440
  static readonly runtime: typeof proto3;
354
441
  static readonly typeName = "scalekit.v1.connections.Connection";
@@ -375,29 +462,35 @@ export declare class CreateConnectionResponse extends Message<CreateConnectionRe
375
462
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateConnectionResponse;
376
463
  static equals(a: CreateConnectionResponse | PlainMessage<CreateConnectionResponse> | undefined, b: CreateConnectionResponse | PlainMessage<CreateConnectionResponse> | undefined): boolean;
377
464
  }
465
+ /**
466
+ * @generated from message scalekit.v1.connections.UpdateEnvironmentConnectionRequest
467
+ */
468
+ export declare class UpdateEnvironmentConnectionRequest extends Message<UpdateEnvironmentConnectionRequest> {
469
+ /**
470
+ * @generated from field: string connection_id = 1;
471
+ */
472
+ connectionId: string;
473
+ /**
474
+ * @generated from field: scalekit.v1.connections.UpdateConnection connection = 3;
475
+ */
476
+ connection?: UpdateConnection;
477
+ constructor(data?: PartialMessage<UpdateEnvironmentConnectionRequest>);
478
+ static readonly runtime: typeof proto3;
479
+ static readonly typeName = "scalekit.v1.connections.UpdateEnvironmentConnectionRequest";
480
+ static readonly fields: FieldList;
481
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateEnvironmentConnectionRequest;
482
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateEnvironmentConnectionRequest;
483
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateEnvironmentConnectionRequest;
484
+ static equals(a: UpdateEnvironmentConnectionRequest | PlainMessage<UpdateEnvironmentConnectionRequest> | undefined, b: UpdateEnvironmentConnectionRequest | PlainMessage<UpdateEnvironmentConnectionRequest> | undefined): boolean;
485
+ }
378
486
  /**
379
487
  * @generated from message scalekit.v1.connections.UpdateConnectionRequest
380
488
  */
381
489
  export declare class UpdateConnectionRequest extends Message<UpdateConnectionRequest> {
382
490
  /**
383
- * @generated from oneof scalekit.v1.connections.UpdateConnectionRequest.identities
491
+ * @generated from field: string organization_id = 1;
384
492
  */
385
- identities: {
386
- /**
387
- * @generated from field: string organization_id = 1;
388
- */
389
- value: string;
390
- case: "organizationId";
391
- } | {
392
- /**
393
- * @generated from field: string external_id = 2;
394
- */
395
- value: string;
396
- case: "externalId";
397
- } | {
398
- case: undefined;
399
- value?: undefined;
400
- };
493
+ organizationId: string;
401
494
  /**
402
495
  * @generated from field: string id = 3;
403
496
  */
@@ -435,39 +528,45 @@ export declare class UpdateConnection extends Message<UpdateConnection> {
435
528
  * @generated from field: google.protobuf.StringValue ui_button_title = 8;
436
529
  */
437
530
  uiButtonTitle?: string;
438
- /**
439
- * @generated from field: google.protobuf.StringValue logout_uri = 10;
440
- */
441
- logoutUri?: string;
442
531
  /**
443
532
  * @generated from field: scalekit.v1.connections.ConfigurationType configuration_type = 11;
444
533
  */
445
534
  configurationType: ConfigurationType;
535
+ /**
536
+ * @generated from field: map<string, string> attribute_mapping = 15;
537
+ */
538
+ attributeMapping: {
539
+ [key: string]: string;
540
+ };
446
541
  /**
447
542
  * @generated from oneof scalekit.v1.connections.UpdateConnection.settings
448
543
  */
449
544
  settings: {
450
545
  /**
451
- * @generated from field: scalekit.v1.connections.OIDCConnectionConfig oidc_config = 13;
546
+ * @generated from field: scalekit.v1.connections.OIDCConnectionConfig oidc_config = 16;
452
547
  */
453
548
  value: OIDCConnectionConfig;
454
549
  case: "oidcConfig";
455
550
  } | {
456
551
  /**
457
- * @generated from field: scalekit.v1.connections.SAMLConnectionConfigResponse saml_config = 14;
552
+ * @generated from field: scalekit.v1.connections.SAMLConnectionConfigRequest saml_config = 17;
458
553
  */
459
- value: SAMLConnectionConfigResponse;
554
+ value: SAMLConnectionConfigRequest;
460
555
  case: "samlConfig";
556
+ } | {
557
+ /**
558
+ * @generated from field: scalekit.v1.connections.OAuthConnectionConfig oauth_config = 18;
559
+ */
560
+ value: OAuthConnectionConfig;
561
+ case: "oauthConfig";
461
562
  } | {
462
563
  case: undefined;
463
564
  value?: undefined;
464
565
  };
465
566
  /**
466
- * @generated from field: map<string, string> attribute_mapping = 15;
567
+ * @generated from field: optional string key_id = 19;
467
568
  */
468
- attributeMapping: {
469
- [key: string]: string;
470
- };
569
+ keyId?: string;
471
570
  constructor(data?: PartialMessage<UpdateConnection>);
472
571
  static readonly runtime: typeof proto3;
473
572
  static readonly typeName = "scalekit.v1.connections.UpdateConnection";
@@ -494,29 +593,31 @@ export declare class UpdateConnectionResponse extends Message<UpdateConnectionRe
494
593
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateConnectionResponse;
495
594
  static equals(a: UpdateConnectionResponse | PlainMessage<UpdateConnectionResponse> | undefined, b: UpdateConnectionResponse | PlainMessage<UpdateConnectionResponse> | undefined): boolean;
496
595
  }
596
+ /**
597
+ * @generated from message scalekit.v1.connections.DeleteEnvironmentConnectionRequest
598
+ */
599
+ export declare class DeleteEnvironmentConnectionRequest extends Message<DeleteEnvironmentConnectionRequest> {
600
+ /**
601
+ * @generated from field: string connection_id = 3;
602
+ */
603
+ connectionId: string;
604
+ constructor(data?: PartialMessage<DeleteEnvironmentConnectionRequest>);
605
+ static readonly runtime: typeof proto3;
606
+ static readonly typeName = "scalekit.v1.connections.DeleteEnvironmentConnectionRequest";
607
+ static readonly fields: FieldList;
608
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteEnvironmentConnectionRequest;
609
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteEnvironmentConnectionRequest;
610
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteEnvironmentConnectionRequest;
611
+ static equals(a: DeleteEnvironmentConnectionRequest | PlainMessage<DeleteEnvironmentConnectionRequest> | undefined, b: DeleteEnvironmentConnectionRequest | PlainMessage<DeleteEnvironmentConnectionRequest> | undefined): boolean;
612
+ }
497
613
  /**
498
614
  * @generated from message scalekit.v1.connections.DeleteConnectionRequest
499
615
  */
500
616
  export declare class DeleteConnectionRequest extends Message<DeleteConnectionRequest> {
501
617
  /**
502
- * @generated from oneof scalekit.v1.connections.DeleteConnectionRequest.identities
618
+ * @generated from field: string organization_id = 1;
503
619
  */
504
- identities: {
505
- /**
506
- * @generated from field: string organization_id = 1;
507
- */
508
- value: string;
509
- case: "organizationId";
510
- } | {
511
- /**
512
- * @generated from field: string external_id = 2;
513
- */
514
- value: string;
515
- case: "externalId";
516
- } | {
517
- case: undefined;
518
- value?: undefined;
519
- };
620
+ organizationId: string;
520
621
  /**
521
622
  * @generated from field: string id = 3;
522
623
  */
@@ -530,29 +631,31 @@ export declare class DeleteConnectionRequest extends Message<DeleteConnectionReq
530
631
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteConnectionRequest;
531
632
  static equals(a: DeleteConnectionRequest | PlainMessage<DeleteConnectionRequest> | undefined, b: DeleteConnectionRequest | PlainMessage<DeleteConnectionRequest> | undefined): boolean;
532
633
  }
634
+ /**
635
+ * @generated from message scalekit.v1.connections.GetEnvironmentConnectionRequest
636
+ */
637
+ export declare class GetEnvironmentConnectionRequest extends Message<GetEnvironmentConnectionRequest> {
638
+ /**
639
+ * @generated from field: string connection_id = 1;
640
+ */
641
+ connectionId: string;
642
+ constructor(data?: PartialMessage<GetEnvironmentConnectionRequest>);
643
+ static readonly runtime: typeof proto3;
644
+ static readonly typeName = "scalekit.v1.connections.GetEnvironmentConnectionRequest";
645
+ static readonly fields: FieldList;
646
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetEnvironmentConnectionRequest;
647
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetEnvironmentConnectionRequest;
648
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetEnvironmentConnectionRequest;
649
+ static equals(a: GetEnvironmentConnectionRequest | PlainMessage<GetEnvironmentConnectionRequest> | undefined, b: GetEnvironmentConnectionRequest | PlainMessage<GetEnvironmentConnectionRequest> | undefined): boolean;
650
+ }
533
651
  /**
534
652
  * @generated from message scalekit.v1.connections.GetConnectionRequest
535
653
  */
536
654
  export declare class GetConnectionRequest extends Message<GetConnectionRequest> {
537
655
  /**
538
- * @generated from oneof scalekit.v1.connections.GetConnectionRequest.identities
656
+ * @generated from field: string organization_id = 1;
539
657
  */
540
- identities: {
541
- /**
542
- * @generated from field: string organization_id = 1;
543
- */
544
- value: string;
545
- case: "organizationId";
546
- } | {
547
- /**
548
- * @generated from field: string external_id = 2;
549
- */
550
- value: string;
551
- case: "externalId";
552
- } | {
553
- case: undefined;
554
- value?: undefined;
555
- };
658
+ organizationId: string;
556
659
  /**
557
660
  * @generated from field: string id = 3;
558
661
  */
@@ -588,30 +691,13 @@ export declare class GetConnectionResponse extends Message<GetConnectionResponse
588
691
  */
589
692
  export declare class ListConnectionsRequest extends Message<ListConnectionsRequest> {
590
693
  /**
591
- * @generated from oneof scalekit.v1.connections.ListConnectionsRequest.identities
694
+ * @generated from field: optional string organization_id = 1;
592
695
  */
593
- identities: {
594
- /**
595
- * @generated from field: string organization_id = 1;
596
- */
597
- value: string;
598
- case: "organizationId";
599
- } | {
600
- /**
601
- * @generated from field: string external_id = 2;
602
- */
603
- value: string;
604
- case: "externalId";
605
- } | {
606
- /**
607
- * @generated from field: string domain = 3;
608
- */
609
- value: string;
610
- case: "domain";
611
- } | {
612
- case: undefined;
613
- value?: undefined;
614
- };
696
+ organizationId?: string;
697
+ /**
698
+ * @generated from field: optional string domain = 3;
699
+ */
700
+ domain?: string;
615
701
  /**
616
702
  * @generated from field: optional string include = 4;
617
703
  */
@@ -683,29 +769,31 @@ export declare class ListConnection extends Message<ListConnection> {
683
769
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListConnection;
684
770
  static equals(a: ListConnection | PlainMessage<ListConnection> | undefined, b: ListConnection | PlainMessage<ListConnection> | undefined): boolean;
685
771
  }
772
+ /**
773
+ * @generated from message scalekit.v1.connections.ToggleEnvironmentConnectionRequest
774
+ */
775
+ export declare class ToggleEnvironmentConnectionRequest extends Message<ToggleEnvironmentConnectionRequest> {
776
+ /**
777
+ * @generated from field: string connection_id = 2;
778
+ */
779
+ connectionId: string;
780
+ constructor(data?: PartialMessage<ToggleEnvironmentConnectionRequest>);
781
+ static readonly runtime: typeof proto3;
782
+ static readonly typeName = "scalekit.v1.connections.ToggleEnvironmentConnectionRequest";
783
+ static readonly fields: FieldList;
784
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ToggleEnvironmentConnectionRequest;
785
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ToggleEnvironmentConnectionRequest;
786
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ToggleEnvironmentConnectionRequest;
787
+ static equals(a: ToggleEnvironmentConnectionRequest | PlainMessage<ToggleEnvironmentConnectionRequest> | undefined, b: ToggleEnvironmentConnectionRequest | PlainMessage<ToggleEnvironmentConnectionRequest> | undefined): boolean;
788
+ }
686
789
  /**
687
790
  * @generated from message scalekit.v1.connections.ToggleConnectionRequest
688
791
  */
689
792
  export declare class ToggleConnectionRequest extends Message<ToggleConnectionRequest> {
690
793
  /**
691
- * @generated from oneof scalekit.v1.connections.ToggleConnectionRequest.identities
794
+ * @generated from field: string organization_id = 1;
692
795
  */
693
- identities: {
694
- /**
695
- * @generated from field: string organization_id = 1;
696
- */
697
- value: string;
698
- case: "organizationId";
699
- } | {
700
- /**
701
- * @generated from field: string external_id = 2;
702
- */
703
- value: string;
704
- case: "externalId";
705
- } | {
706
- case: undefined;
707
- value?: undefined;
708
- };
796
+ organizationId: string;
709
797
  /**
710
798
  * @generated from field: string id = 3;
711
799
  */
@@ -801,6 +889,51 @@ export declare class OIDCConnectionConfig extends Message<OIDCConnectionConfig>
801
889
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OIDCConnectionConfig;
802
890
  static equals(a: OIDCConnectionConfig | PlainMessage<OIDCConnectionConfig> | undefined, b: OIDCConnectionConfig | PlainMessage<OIDCConnectionConfig> | undefined): boolean;
803
891
  }
892
+ /**
893
+ * @generated from message scalekit.v1.connections.OAuthConnectionConfig
894
+ */
895
+ export declare class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
896
+ /**
897
+ * @generated from field: google.protobuf.StringValue authorize_uri = 3;
898
+ */
899
+ authorizeUri?: string;
900
+ /**
901
+ * @generated from field: google.protobuf.StringValue token_uri = 4;
902
+ */
903
+ tokenUri?: string;
904
+ /**
905
+ * @generated from field: google.protobuf.StringValue user_info_uri = 5;
906
+ */
907
+ userInfoUri?: string;
908
+ /**
909
+ * @generated from field: google.protobuf.StringValue client_id = 8;
910
+ */
911
+ clientId?: string;
912
+ /**
913
+ * @generated from field: google.protobuf.StringValue client_secret = 9;
914
+ */
915
+ clientSecret?: string;
916
+ /**
917
+ * @generated from field: repeated string scopes = 10;
918
+ */
919
+ scopes: string[];
920
+ /**
921
+ * @generated from field: string redirect_uri = 12;
922
+ */
923
+ redirectUri: string;
924
+ /**
925
+ * @generated from field: google.protobuf.BoolValue pkce_enabled = 13;
926
+ */
927
+ pkceEnabled?: boolean;
928
+ constructor(data?: PartialMessage<OAuthConnectionConfig>);
929
+ static readonly runtime: typeof proto3;
930
+ static readonly typeName = "scalekit.v1.connections.OAuthConnectionConfig";
931
+ static readonly fields: FieldList;
932
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OAuthConnectionConfig;
933
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OAuthConnectionConfig;
934
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OAuthConnectionConfig;
935
+ static equals(a: OAuthConnectionConfig | PlainMessage<OAuthConnectionConfig> | undefined, b: OAuthConnectionConfig | PlainMessage<OAuthConnectionConfig> | undefined): boolean;
936
+ }
804
937
  /**
805
938
  * @generated from message scalekit.v1.connections.SAMLConnectionConfigRequest
806
939
  */
@@ -834,35 +967,31 @@ export declare class SAMLConnectionConfigRequest extends Message<SAMLConnectionC
834
967
  */
835
968
  idpNameIdFormat: NameIdFormat;
836
969
  /**
837
- * @generated from field: scalekit.v1.connections.RequestBinding sso_request_binding = 8;
970
+ * @generated from field: scalekit.v1.connections.RequestBinding idp_sso_request_binding = 8;
838
971
  */
839
- ssoRequestBinding: RequestBinding;
972
+ idpSsoRequestBinding: RequestBinding;
840
973
  /**
841
- * @generated from field: scalekit.v1.connections.RequestBinding slo_request_binding = 9;
974
+ * @generated from field: scalekit.v1.connections.RequestBinding idp_slo_request_binding = 9;
842
975
  */
843
- sloRequestBinding: RequestBinding;
976
+ idpSloRequestBinding: RequestBinding;
844
977
  /**
845
978
  * @generated from field: scalekit.v1.connections.SAMLSigningOptions saml_signing_option = 10;
846
979
  */
847
980
  samlSigningOption: SAMLSigningOptions;
848
981
  /**
849
- * @generated from field: google.protobuf.BoolValue allow_idp_initiated_login = 11;
850
- */
851
- allowIdpInitiatedLogin?: boolean;
852
- /**
853
- * @generated from field: google.protobuf.BoolValue force_authn = 12;
982
+ * @generated from field: google.protobuf.BoolValue force_authn = 14;
854
983
  */
855
984
  forceAuthn?: boolean;
856
985
  /**
857
- * @generated from field: google.protobuf.StringValue default_redirect_uri = 13;
986
+ * @generated from field: google.protobuf.StringValue default_redirect_uri = 15;
858
987
  */
859
988
  defaultRedirectUri?: string;
860
989
  /**
861
- * @generated from field: google.protobuf.BoolValue assertion_encrypted = 14;
990
+ * @generated from field: google.protobuf.BoolValue assertion_encrypted = 16;
862
991
  */
863
992
  assertionEncrypted?: boolean;
864
993
  /**
865
- * @generated from field: google.protobuf.BoolValue want_request_signed = 15;
994
+ * @generated from field: google.protobuf.BoolValue want_request_signed = 17;
866
995
  */
867
996
  wantRequestSigned?: boolean;
868
997
  constructor(data?: PartialMessage<SAMLConnectionConfigRequest>);