@scalekit-sdk/node 1.0.4 → 1.0.5
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.
- package/lib/core.js +1 -1
- package/lib/scalekit.d.ts +1 -0
- package/lib/scalekit.js +1 -0
- package/lib/scalekit.js.map +1 -1
- package/lib/types/scalekit.d.ts +1 -0
- package/package.json +10 -11
- package/src/connection.ts +5 -20
- package/src/core.ts +1 -1
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +1 -1
- package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +64 -1
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +508 -156
- package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +10 -1
- package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +75 -1
- package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +1 -1
- package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +9 -1
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +19 -1
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +142 -1
- package/src/scalekit.ts +1 -0
- package/src/types/scalekit.ts +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file scalekit/v1/connections/connections.proto (package scalekit.v1.connections, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
@@ -229,6 +229,11 @@ export enum ConnectionType {
|
|
|
229
229
|
* @generated from enum value: PASSWORD = 3;
|
|
230
230
|
*/
|
|
231
231
|
PASSWORD = 3,
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @generated from enum value: OAUTH = 4;
|
|
235
|
+
*/
|
|
236
|
+
OAUTH = 4,
|
|
232
237
|
}
|
|
233
238
|
// Retrieve enum metadata with: proto3.getEnumType(ConnectionType)
|
|
234
239
|
proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.ConnectionType", [
|
|
@@ -236,6 +241,7 @@ proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.ConnectionType"
|
|
|
236
241
|
{ no: 1, name: "OIDC" },
|
|
237
242
|
{ no: 2, name: "SAML" },
|
|
238
243
|
{ no: 3, name: "PASSWORD" },
|
|
244
|
+
{ no: 4, name: "OAUTH" },
|
|
239
245
|
]);
|
|
240
246
|
|
|
241
247
|
/**
|
|
@@ -318,6 +324,26 @@ export enum ConnectionProvider {
|
|
|
318
324
|
* @generated from enum value: CUSTOM = 8;
|
|
319
325
|
*/
|
|
320
326
|
CUSTOM = 8,
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* @generated from enum value: GITHUB = 9;
|
|
330
|
+
*/
|
|
331
|
+
GITHUB = 9,
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* @generated from enum value: GITLAB = 10;
|
|
335
|
+
*/
|
|
336
|
+
GITLAB = 10,
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @generated from enum value: LINKEDIN = 11;
|
|
340
|
+
*/
|
|
341
|
+
LINKEDIN = 11,
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* @generated from enum value: SALESFORCE = 12;
|
|
345
|
+
*/
|
|
346
|
+
SALESFORCE = 12,
|
|
321
347
|
}
|
|
322
348
|
// Retrieve enum metadata with: proto3.getEnumType(ConnectionProvider)
|
|
323
349
|
proto3.util.setEnumType(ConnectionProvider, "scalekit.v1.connections.ConnectionProvider", [
|
|
@@ -330,28 +356,174 @@ proto3.util.setEnumType(ConnectionProvider, "scalekit.v1.connections.ConnectionP
|
|
|
330
356
|
{ no: 6, name: "PING_IDENTITY" },
|
|
331
357
|
{ no: 7, name: "JUMPCLOUD" },
|
|
332
358
|
{ no: 8, name: "CUSTOM" },
|
|
359
|
+
{ no: 9, name: "GITHUB" },
|
|
360
|
+
{ no: 10, name: "GITLAB" },
|
|
361
|
+
{ no: 11, name: "LINKEDIN" },
|
|
362
|
+
{ no: 12, name: "SALESFORCE" },
|
|
333
363
|
]);
|
|
334
364
|
|
|
365
|
+
/**
|
|
366
|
+
* @generated from message scalekit.v1.connections.GetProvidersRequest
|
|
367
|
+
*/
|
|
368
|
+
export class GetProvidersRequest extends Message<GetProvidersRequest> {
|
|
369
|
+
constructor(data?: PartialMessage<GetProvidersRequest>) {
|
|
370
|
+
super();
|
|
371
|
+
proto3.util.initPartial(data, this);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
375
|
+
static readonly typeName = "scalekit.v1.connections.GetProvidersRequest";
|
|
376
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
377
|
+
]);
|
|
378
|
+
|
|
379
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProvidersRequest {
|
|
380
|
+
return new GetProvidersRequest().fromBinary(bytes, options);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProvidersRequest {
|
|
384
|
+
return new GetProvidersRequest().fromJson(jsonValue, options);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProvidersRequest {
|
|
388
|
+
return new GetProvidersRequest().fromJsonString(jsonString, options);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
static equals(a: GetProvidersRequest | PlainMessage<GetProvidersRequest> | undefined, b: GetProvidersRequest | PlainMessage<GetProvidersRequest> | undefined): boolean {
|
|
392
|
+
return proto3.util.equals(GetProvidersRequest, a, b);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* @generated from message scalekit.v1.connections.GetProvidersResponse
|
|
398
|
+
*/
|
|
399
|
+
export class GetProvidersResponse extends Message<GetProvidersResponse> {
|
|
400
|
+
/**
|
|
401
|
+
* @generated from field: repeated scalekit.v1.connections.Provider providers = 1;
|
|
402
|
+
*/
|
|
403
|
+
providers: Provider[] = [];
|
|
404
|
+
|
|
405
|
+
constructor(data?: PartialMessage<GetProvidersResponse>) {
|
|
406
|
+
super();
|
|
407
|
+
proto3.util.initPartial(data, this);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
411
|
+
static readonly typeName = "scalekit.v1.connections.GetProvidersResponse";
|
|
412
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
413
|
+
{ no: 1, name: "providers", kind: "message", T: Provider, repeated: true },
|
|
414
|
+
]);
|
|
415
|
+
|
|
416
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProvidersResponse {
|
|
417
|
+
return new GetProvidersResponse().fromBinary(bytes, options);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProvidersResponse {
|
|
421
|
+
return new GetProvidersResponse().fromJson(jsonValue, options);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProvidersResponse {
|
|
425
|
+
return new GetProvidersResponse().fromJsonString(jsonString, options);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
static equals(a: GetProvidersResponse | PlainMessage<GetProvidersResponse> | undefined, b: GetProvidersResponse | PlainMessage<GetProvidersResponse> | undefined): boolean {
|
|
429
|
+
return proto3.util.equals(GetProvidersResponse, a, b);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @generated from message scalekit.v1.connections.Provider
|
|
435
|
+
*/
|
|
436
|
+
export class Provider extends Message<Provider> {
|
|
437
|
+
/**
|
|
438
|
+
* @generated from field: string key_id = 1;
|
|
439
|
+
*/
|
|
440
|
+
keyId = "";
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* @generated from field: string display_name = 2;
|
|
444
|
+
*/
|
|
445
|
+
displayName = "";
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* @generated from field: optional string description = 3;
|
|
449
|
+
*/
|
|
450
|
+
description?: string;
|
|
451
|
+
|
|
452
|
+
constructor(data?: PartialMessage<Provider>) {
|
|
453
|
+
super();
|
|
454
|
+
proto3.util.initPartial(data, this);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
458
|
+
static readonly typeName = "scalekit.v1.connections.Provider";
|
|
459
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
460
|
+
{ no: 1, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
461
|
+
{ no: 2, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
462
|
+
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
463
|
+
]);
|
|
464
|
+
|
|
465
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Provider {
|
|
466
|
+
return new Provider().fromBinary(bytes, options);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Provider {
|
|
470
|
+
return new Provider().fromJson(jsonValue, options);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Provider {
|
|
474
|
+
return new Provider().fromJsonString(jsonString, options);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
static equals(a: Provider | PlainMessage<Provider> | undefined, b: Provider | PlainMessage<Provider> | undefined): boolean {
|
|
478
|
+
return proto3.util.equals(Provider, a, b);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* @generated from message scalekit.v1.connections.CreateEnvironmentConnectionRequest
|
|
484
|
+
*/
|
|
485
|
+
export class CreateEnvironmentConnectionRequest extends Message<CreateEnvironmentConnectionRequest> {
|
|
486
|
+
/**
|
|
487
|
+
* @generated from field: scalekit.v1.connections.CreateConnection connection = 1;
|
|
488
|
+
*/
|
|
489
|
+
connection?: CreateConnection;
|
|
490
|
+
|
|
491
|
+
constructor(data?: PartialMessage<CreateEnvironmentConnectionRequest>) {
|
|
492
|
+
super();
|
|
493
|
+
proto3.util.initPartial(data, this);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
497
|
+
static readonly typeName = "scalekit.v1.connections.CreateEnvironmentConnectionRequest";
|
|
498
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
499
|
+
{ no: 1, name: "connection", kind: "message", T: CreateConnection },
|
|
500
|
+
]);
|
|
501
|
+
|
|
502
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateEnvironmentConnectionRequest {
|
|
503
|
+
return new CreateEnvironmentConnectionRequest().fromBinary(bytes, options);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateEnvironmentConnectionRequest {
|
|
507
|
+
return new CreateEnvironmentConnectionRequest().fromJson(jsonValue, options);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateEnvironmentConnectionRequest {
|
|
511
|
+
return new CreateEnvironmentConnectionRequest().fromJsonString(jsonString, options);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
static equals(a: CreateEnvironmentConnectionRequest | PlainMessage<CreateEnvironmentConnectionRequest> | undefined, b: CreateEnvironmentConnectionRequest | PlainMessage<CreateEnvironmentConnectionRequest> | undefined): boolean {
|
|
515
|
+
return proto3.util.equals(CreateEnvironmentConnectionRequest, a, b);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
335
519
|
/**
|
|
336
520
|
* @generated from message scalekit.v1.connections.CreateConnectionRequest
|
|
337
521
|
*/
|
|
338
522
|
export class CreateConnectionRequest extends Message<CreateConnectionRequest> {
|
|
339
523
|
/**
|
|
340
|
-
* @generated from
|
|
524
|
+
* @generated from field: string organization_id = 1;
|
|
341
525
|
*/
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @generated from field: string organization_id = 1;
|
|
345
|
-
*/
|
|
346
|
-
value: string;
|
|
347
|
-
case: "organizationId";
|
|
348
|
-
} | {
|
|
349
|
-
/**
|
|
350
|
-
* @generated from field: string external_id = 2;
|
|
351
|
-
*/
|
|
352
|
-
value: string;
|
|
353
|
-
case: "externalId";
|
|
354
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
526
|
+
organizationId = "";
|
|
355
527
|
|
|
356
528
|
/**
|
|
357
529
|
* @generated from field: scalekit.v1.connections.CreateConnection connection = 3;
|
|
@@ -366,8 +538,7 @@ export class CreateConnectionRequest extends Message<CreateConnectionRequest> {
|
|
|
366
538
|
static readonly runtime: typeof proto3 = proto3;
|
|
367
539
|
static readonly typeName = "scalekit.v1.connections.CreateConnectionRequest";
|
|
368
540
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
369
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING
|
|
370
|
-
{ no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
541
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
371
542
|
{ no: 3, name: "connection", kind: "message", T: CreateConnection },
|
|
372
543
|
]);
|
|
373
544
|
|
|
@@ -466,9 +637,9 @@ export class Connection extends Message<Connection> {
|
|
|
466
637
|
debugEnabled = false;
|
|
467
638
|
|
|
468
639
|
/**
|
|
469
|
-
* @generated from field: string organization_id = 7;
|
|
640
|
+
* @generated from field: optional string organization_id = 7;
|
|
470
641
|
*/
|
|
471
|
-
organizationId
|
|
642
|
+
organizationId?: string;
|
|
472
643
|
|
|
473
644
|
/**
|
|
474
645
|
* @generated from field: string ui_button_title = 8;
|
|
@@ -476,46 +647,57 @@ export class Connection extends Message<Connection> {
|
|
|
476
647
|
uiButtonTitle = "";
|
|
477
648
|
|
|
478
649
|
/**
|
|
479
|
-
* @generated from field:
|
|
650
|
+
* @generated from field: scalekit.v1.connections.ConfigurationType configuration_type = 9;
|
|
480
651
|
*/
|
|
481
|
-
|
|
652
|
+
configurationType = ConfigurationType.CONFIGURATION_TYPE_UNSPECIFIED;
|
|
482
653
|
|
|
483
654
|
/**
|
|
484
|
-
* @generated from field: string
|
|
655
|
+
* @generated from field: string test_connection_uri = 12;
|
|
485
656
|
*/
|
|
486
|
-
|
|
657
|
+
testConnectionUri = "";
|
|
487
658
|
|
|
488
659
|
/**
|
|
489
|
-
* @generated from field:
|
|
660
|
+
* @generated from field: map<string, string> attribute_mapping = 15;
|
|
490
661
|
*/
|
|
491
|
-
|
|
662
|
+
attributeMapping: { [key: string]: string } = {};
|
|
492
663
|
|
|
493
664
|
/**
|
|
494
|
-
* @generated from field:
|
|
665
|
+
* @generated from field: google.protobuf.Timestamp create_time = 16;
|
|
495
666
|
*/
|
|
496
|
-
|
|
667
|
+
createTime?: Timestamp;
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* @generated from field: google.protobuf.Timestamp update_time = 17;
|
|
671
|
+
*/
|
|
672
|
+
updateTime?: Timestamp;
|
|
497
673
|
|
|
498
674
|
/**
|
|
499
675
|
* @generated from oneof scalekit.v1.connections.Connection.settings
|
|
500
676
|
*/
|
|
501
677
|
settings: {
|
|
502
678
|
/**
|
|
503
|
-
* @generated from field: scalekit.v1.connections.OIDCConnectionConfig oidc_config =
|
|
679
|
+
* @generated from field: scalekit.v1.connections.OIDCConnectionConfig oidc_config = 18;
|
|
504
680
|
*/
|
|
505
681
|
value: OIDCConnectionConfig;
|
|
506
682
|
case: "oidcConfig";
|
|
507
683
|
} | {
|
|
508
684
|
/**
|
|
509
|
-
* @generated from field: scalekit.v1.connections.SAMLConnectionConfigResponse saml_config =
|
|
685
|
+
* @generated from field: scalekit.v1.connections.SAMLConnectionConfigResponse saml_config = 19;
|
|
510
686
|
*/
|
|
511
687
|
value: SAMLConnectionConfigResponse;
|
|
512
688
|
case: "samlConfig";
|
|
689
|
+
} | {
|
|
690
|
+
/**
|
|
691
|
+
* @generated from field: scalekit.v1.connections.OAuthConnectionConfig oauth_config = 20;
|
|
692
|
+
*/
|
|
693
|
+
value: OAuthConnectionConfig;
|
|
694
|
+
case: "oauthConfig";
|
|
513
695
|
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
514
696
|
|
|
515
697
|
/**
|
|
516
|
-
* @generated from field:
|
|
698
|
+
* @generated from field: optional string key_id = 21;
|
|
517
699
|
*/
|
|
518
|
-
|
|
700
|
+
keyId?: string;
|
|
519
701
|
|
|
520
702
|
constructor(data?: PartialMessage<Connection>) {
|
|
521
703
|
super();
|
|
@@ -531,15 +713,17 @@ export class Connection extends Message<Connection> {
|
|
|
531
713
|
{ no: 4, name: "status", kind: "enum", T: proto3.getEnumType(ConnectionStatus) },
|
|
532
714
|
{ no: 5, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
533
715
|
{ no: 6, name: "debug_enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
534
|
-
{ no: 7, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING
|
|
716
|
+
{ no: 7, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
535
717
|
{ no: 8, name: "ui_button_title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
536
|
-
{ no: 9, name: "
|
|
537
|
-
{ no: 10, name: "logout_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
538
|
-
{ no: 11, name: "configuration_type", kind: "enum", T: proto3.getEnumType(ConfigurationType) },
|
|
718
|
+
{ no: 9, name: "configuration_type", kind: "enum", T: proto3.getEnumType(ConfigurationType) },
|
|
539
719
|
{ no: 12, name: "test_connection_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
540
|
-
{ no: 13, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
|
|
541
|
-
{ no: 14, name: "saml_config", kind: "message", T: SAMLConnectionConfigResponse, oneof: "settings" },
|
|
542
720
|
{ no: 15, name: "attribute_mapping", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
721
|
+
{ no: 16, name: "create_time", kind: "message", T: Timestamp },
|
|
722
|
+
{ no: 17, name: "update_time", kind: "message", T: Timestamp },
|
|
723
|
+
{ no: 18, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
|
|
724
|
+
{ no: 19, name: "saml_config", kind: "message", T: SAMLConnectionConfigResponse, oneof: "settings" },
|
|
725
|
+
{ no: 20, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
|
|
726
|
+
{ no: 21, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
543
727
|
]);
|
|
544
728
|
|
|
545
729
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Connection {
|
|
@@ -596,26 +780,57 @@ export class CreateConnectionResponse extends Message<CreateConnectionResponse>
|
|
|
596
780
|
}
|
|
597
781
|
}
|
|
598
782
|
|
|
783
|
+
/**
|
|
784
|
+
* @generated from message scalekit.v1.connections.UpdateEnvironmentConnectionRequest
|
|
785
|
+
*/
|
|
786
|
+
export class UpdateEnvironmentConnectionRequest extends Message<UpdateEnvironmentConnectionRequest> {
|
|
787
|
+
/**
|
|
788
|
+
* @generated from field: string connection_id = 1;
|
|
789
|
+
*/
|
|
790
|
+
connectionId = "";
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* @generated from field: scalekit.v1.connections.UpdateConnection connection = 3;
|
|
794
|
+
*/
|
|
795
|
+
connection?: UpdateConnection;
|
|
796
|
+
|
|
797
|
+
constructor(data?: PartialMessage<UpdateEnvironmentConnectionRequest>) {
|
|
798
|
+
super();
|
|
799
|
+
proto3.util.initPartial(data, this);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
803
|
+
static readonly typeName = "scalekit.v1.connections.UpdateEnvironmentConnectionRequest";
|
|
804
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
805
|
+
{ no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
806
|
+
{ no: 3, name: "connection", kind: "message", T: UpdateConnection },
|
|
807
|
+
]);
|
|
808
|
+
|
|
809
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateEnvironmentConnectionRequest {
|
|
810
|
+
return new UpdateEnvironmentConnectionRequest().fromBinary(bytes, options);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateEnvironmentConnectionRequest {
|
|
814
|
+
return new UpdateEnvironmentConnectionRequest().fromJson(jsonValue, options);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateEnvironmentConnectionRequest {
|
|
818
|
+
return new UpdateEnvironmentConnectionRequest().fromJsonString(jsonString, options);
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
static equals(a: UpdateEnvironmentConnectionRequest | PlainMessage<UpdateEnvironmentConnectionRequest> | undefined, b: UpdateEnvironmentConnectionRequest | PlainMessage<UpdateEnvironmentConnectionRequest> | undefined): boolean {
|
|
822
|
+
return proto3.util.equals(UpdateEnvironmentConnectionRequest, a, b);
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
|
|
599
826
|
/**
|
|
600
827
|
* @generated from message scalekit.v1.connections.UpdateConnectionRequest
|
|
601
828
|
*/
|
|
602
829
|
export class UpdateConnectionRequest extends Message<UpdateConnectionRequest> {
|
|
603
830
|
/**
|
|
604
|
-
* @generated from
|
|
831
|
+
* @generated from field: string organization_id = 1;
|
|
605
832
|
*/
|
|
606
|
-
|
|
607
|
-
/**
|
|
608
|
-
* @generated from field: string organization_id = 1;
|
|
609
|
-
*/
|
|
610
|
-
value: string;
|
|
611
|
-
case: "organizationId";
|
|
612
|
-
} | {
|
|
613
|
-
/**
|
|
614
|
-
* @generated from field: string external_id = 2;
|
|
615
|
-
*/
|
|
616
|
-
value: string;
|
|
617
|
-
case: "externalId";
|
|
618
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
833
|
+
organizationId = "";
|
|
619
834
|
|
|
620
835
|
/**
|
|
621
836
|
* @generated from field: string id = 3;
|
|
@@ -635,8 +850,7 @@ export class UpdateConnectionRequest extends Message<UpdateConnectionRequest> {
|
|
|
635
850
|
static readonly runtime: typeof proto3 = proto3;
|
|
636
851
|
static readonly typeName = "scalekit.v1.connections.UpdateConnectionRequest";
|
|
637
852
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
638
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING
|
|
639
|
-
{ no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
853
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
640
854
|
{ no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
641
855
|
{ no: 4, name: "connection", kind: "message", T: UpdateConnection },
|
|
642
856
|
]);
|
|
@@ -683,36 +897,42 @@ export class UpdateConnection extends Message<UpdateConnection> {
|
|
|
683
897
|
uiButtonTitle?: string;
|
|
684
898
|
|
|
685
899
|
/**
|
|
686
|
-
* @generated from field:
|
|
900
|
+
* @generated from field: scalekit.v1.connections.ConfigurationType configuration_type = 11;
|
|
687
901
|
*/
|
|
688
|
-
|
|
902
|
+
configurationType = ConfigurationType.CONFIGURATION_TYPE_UNSPECIFIED;
|
|
689
903
|
|
|
690
904
|
/**
|
|
691
|
-
* @generated from field:
|
|
905
|
+
* @generated from field: map<string, string> attribute_mapping = 15;
|
|
692
906
|
*/
|
|
693
|
-
|
|
907
|
+
attributeMapping: { [key: string]: string } = {};
|
|
694
908
|
|
|
695
909
|
/**
|
|
696
910
|
* @generated from oneof scalekit.v1.connections.UpdateConnection.settings
|
|
697
911
|
*/
|
|
698
912
|
settings: {
|
|
699
913
|
/**
|
|
700
|
-
* @generated from field: scalekit.v1.connections.OIDCConnectionConfig oidc_config =
|
|
914
|
+
* @generated from field: scalekit.v1.connections.OIDCConnectionConfig oidc_config = 16;
|
|
701
915
|
*/
|
|
702
916
|
value: OIDCConnectionConfig;
|
|
703
917
|
case: "oidcConfig";
|
|
704
918
|
} | {
|
|
705
919
|
/**
|
|
706
|
-
* @generated from field: scalekit.v1.connections.
|
|
920
|
+
* @generated from field: scalekit.v1.connections.SAMLConnectionConfigRequest saml_config = 17;
|
|
707
921
|
*/
|
|
708
|
-
value:
|
|
922
|
+
value: SAMLConnectionConfigRequest;
|
|
709
923
|
case: "samlConfig";
|
|
924
|
+
} | {
|
|
925
|
+
/**
|
|
926
|
+
* @generated from field: scalekit.v1.connections.OAuthConnectionConfig oauth_config = 18;
|
|
927
|
+
*/
|
|
928
|
+
value: OAuthConnectionConfig;
|
|
929
|
+
case: "oauthConfig";
|
|
710
930
|
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
711
931
|
|
|
712
932
|
/**
|
|
713
|
-
* @generated from field:
|
|
933
|
+
* @generated from field: optional string key_id = 19;
|
|
714
934
|
*/
|
|
715
|
-
|
|
935
|
+
keyId?: string;
|
|
716
936
|
|
|
717
937
|
constructor(data?: PartialMessage<UpdateConnection>) {
|
|
718
938
|
super();
|
|
@@ -726,11 +946,12 @@ export class UpdateConnection extends Message<UpdateConnection> {
|
|
|
726
946
|
{ no: 3, name: "type", kind: "enum", T: proto3.getEnumType(ConnectionType) },
|
|
727
947
|
{ no: 6, name: "debug_enabled", kind: "message", T: BoolValue },
|
|
728
948
|
{ no: 8, name: "ui_button_title", kind: "message", T: StringValue },
|
|
729
|
-
{ no: 10, name: "logout_uri", kind: "message", T: StringValue },
|
|
730
949
|
{ no: 11, name: "configuration_type", kind: "enum", T: proto3.getEnumType(ConfigurationType) },
|
|
731
|
-
{ no: 13, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
|
|
732
|
-
{ no: 14, name: "saml_config", kind: "message", T: SAMLConnectionConfigResponse, oneof: "settings" },
|
|
733
950
|
{ no: 15, name: "attribute_mapping", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
951
|
+
{ no: 16, name: "oidc_config", kind: "message", T: OIDCConnectionConfig, oneof: "settings" },
|
|
952
|
+
{ no: 17, name: "saml_config", kind: "message", T: SAMLConnectionConfigRequest, oneof: "settings" },
|
|
953
|
+
{ no: 18, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
|
|
954
|
+
{ no: 19, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
734
955
|
]);
|
|
735
956
|
|
|
736
957
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateConnection {
|
|
@@ -787,26 +1008,51 @@ export class UpdateConnectionResponse extends Message<UpdateConnectionResponse>
|
|
|
787
1008
|
}
|
|
788
1009
|
}
|
|
789
1010
|
|
|
1011
|
+
/**
|
|
1012
|
+
* @generated from message scalekit.v1.connections.DeleteEnvironmentConnectionRequest
|
|
1013
|
+
*/
|
|
1014
|
+
export class DeleteEnvironmentConnectionRequest extends Message<DeleteEnvironmentConnectionRequest> {
|
|
1015
|
+
/**
|
|
1016
|
+
* @generated from field: string connection_id = 3;
|
|
1017
|
+
*/
|
|
1018
|
+
connectionId = "";
|
|
1019
|
+
|
|
1020
|
+
constructor(data?: PartialMessage<DeleteEnvironmentConnectionRequest>) {
|
|
1021
|
+
super();
|
|
1022
|
+
proto3.util.initPartial(data, this);
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1026
|
+
static readonly typeName = "scalekit.v1.connections.DeleteEnvironmentConnectionRequest";
|
|
1027
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1028
|
+
{ no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1029
|
+
]);
|
|
1030
|
+
|
|
1031
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteEnvironmentConnectionRequest {
|
|
1032
|
+
return new DeleteEnvironmentConnectionRequest().fromBinary(bytes, options);
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteEnvironmentConnectionRequest {
|
|
1036
|
+
return new DeleteEnvironmentConnectionRequest().fromJson(jsonValue, options);
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteEnvironmentConnectionRequest {
|
|
1040
|
+
return new DeleteEnvironmentConnectionRequest().fromJsonString(jsonString, options);
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
static equals(a: DeleteEnvironmentConnectionRequest | PlainMessage<DeleteEnvironmentConnectionRequest> | undefined, b: DeleteEnvironmentConnectionRequest | PlainMessage<DeleteEnvironmentConnectionRequest> | undefined): boolean {
|
|
1044
|
+
return proto3.util.equals(DeleteEnvironmentConnectionRequest, a, b);
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
|
|
790
1048
|
/**
|
|
791
1049
|
* @generated from message scalekit.v1.connections.DeleteConnectionRequest
|
|
792
1050
|
*/
|
|
793
1051
|
export class DeleteConnectionRequest extends Message<DeleteConnectionRequest> {
|
|
794
1052
|
/**
|
|
795
|
-
* @generated from
|
|
1053
|
+
* @generated from field: string organization_id = 1;
|
|
796
1054
|
*/
|
|
797
|
-
|
|
798
|
-
/**
|
|
799
|
-
* @generated from field: string organization_id = 1;
|
|
800
|
-
*/
|
|
801
|
-
value: string;
|
|
802
|
-
case: "organizationId";
|
|
803
|
-
} | {
|
|
804
|
-
/**
|
|
805
|
-
* @generated from field: string external_id = 2;
|
|
806
|
-
*/
|
|
807
|
-
value: string;
|
|
808
|
-
case: "externalId";
|
|
809
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1055
|
+
organizationId = "";
|
|
810
1056
|
|
|
811
1057
|
/**
|
|
812
1058
|
* @generated from field: string id = 3;
|
|
@@ -821,8 +1067,7 @@ export class DeleteConnectionRequest extends Message<DeleteConnectionRequest> {
|
|
|
821
1067
|
static readonly runtime: typeof proto3 = proto3;
|
|
822
1068
|
static readonly typeName = "scalekit.v1.connections.DeleteConnectionRequest";
|
|
823
1069
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
824
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING
|
|
825
|
-
{ no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
1070
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
826
1071
|
{ no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
827
1072
|
]);
|
|
828
1073
|
|
|
@@ -843,26 +1088,51 @@ export class DeleteConnectionRequest extends Message<DeleteConnectionRequest> {
|
|
|
843
1088
|
}
|
|
844
1089
|
}
|
|
845
1090
|
|
|
1091
|
+
/**
|
|
1092
|
+
* @generated from message scalekit.v1.connections.GetEnvironmentConnectionRequest
|
|
1093
|
+
*/
|
|
1094
|
+
export class GetEnvironmentConnectionRequest extends Message<GetEnvironmentConnectionRequest> {
|
|
1095
|
+
/**
|
|
1096
|
+
* @generated from field: string connection_id = 1;
|
|
1097
|
+
*/
|
|
1098
|
+
connectionId = "";
|
|
1099
|
+
|
|
1100
|
+
constructor(data?: PartialMessage<GetEnvironmentConnectionRequest>) {
|
|
1101
|
+
super();
|
|
1102
|
+
proto3.util.initPartial(data, this);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1106
|
+
static readonly typeName = "scalekit.v1.connections.GetEnvironmentConnectionRequest";
|
|
1107
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1108
|
+
{ no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1109
|
+
]);
|
|
1110
|
+
|
|
1111
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetEnvironmentConnectionRequest {
|
|
1112
|
+
return new GetEnvironmentConnectionRequest().fromBinary(bytes, options);
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetEnvironmentConnectionRequest {
|
|
1116
|
+
return new GetEnvironmentConnectionRequest().fromJson(jsonValue, options);
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetEnvironmentConnectionRequest {
|
|
1120
|
+
return new GetEnvironmentConnectionRequest().fromJsonString(jsonString, options);
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
static equals(a: GetEnvironmentConnectionRequest | PlainMessage<GetEnvironmentConnectionRequest> | undefined, b: GetEnvironmentConnectionRequest | PlainMessage<GetEnvironmentConnectionRequest> | undefined): boolean {
|
|
1124
|
+
return proto3.util.equals(GetEnvironmentConnectionRequest, a, b);
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
|
|
846
1128
|
/**
|
|
847
1129
|
* @generated from message scalekit.v1.connections.GetConnectionRequest
|
|
848
1130
|
*/
|
|
849
1131
|
export class GetConnectionRequest extends Message<GetConnectionRequest> {
|
|
850
1132
|
/**
|
|
851
|
-
* @generated from
|
|
1133
|
+
* @generated from field: string organization_id = 1;
|
|
852
1134
|
*/
|
|
853
|
-
|
|
854
|
-
/**
|
|
855
|
-
* @generated from field: string organization_id = 1;
|
|
856
|
-
*/
|
|
857
|
-
value: string;
|
|
858
|
-
case: "organizationId";
|
|
859
|
-
} | {
|
|
860
|
-
/**
|
|
861
|
-
* @generated from field: string external_id = 2;
|
|
862
|
-
*/
|
|
863
|
-
value: string;
|
|
864
|
-
case: "externalId";
|
|
865
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1135
|
+
organizationId = "";
|
|
866
1136
|
|
|
867
1137
|
/**
|
|
868
1138
|
* @generated from field: string id = 3;
|
|
@@ -877,8 +1147,7 @@ export class GetConnectionRequest extends Message<GetConnectionRequest> {
|
|
|
877
1147
|
static readonly runtime: typeof proto3 = proto3;
|
|
878
1148
|
static readonly typeName = "scalekit.v1.connections.GetConnectionRequest";
|
|
879
1149
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
880
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING
|
|
881
|
-
{ no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
1150
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
882
1151
|
{ no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
883
1152
|
]);
|
|
884
1153
|
|
|
@@ -941,27 +1210,14 @@ export class GetConnectionResponse extends Message<GetConnectionResponse> {
|
|
|
941
1210
|
*/
|
|
942
1211
|
export class ListConnectionsRequest extends Message<ListConnectionsRequest> {
|
|
943
1212
|
/**
|
|
944
|
-
* @generated from
|
|
1213
|
+
* @generated from field: optional string organization_id = 1;
|
|
945
1214
|
*/
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
} | {
|
|
953
|
-
/**
|
|
954
|
-
* @generated from field: string external_id = 2;
|
|
955
|
-
*/
|
|
956
|
-
value: string;
|
|
957
|
-
case: "externalId";
|
|
958
|
-
} | {
|
|
959
|
-
/**
|
|
960
|
-
* @generated from field: string domain = 3;
|
|
961
|
-
*/
|
|
962
|
-
value: string;
|
|
963
|
-
case: "domain";
|
|
964
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1215
|
+
organizationId?: string;
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* @generated from field: optional string domain = 3;
|
|
1219
|
+
*/
|
|
1220
|
+
domain?: string;
|
|
965
1221
|
|
|
966
1222
|
/**
|
|
967
1223
|
* @generated from field: optional string include = 4;
|
|
@@ -976,9 +1232,8 @@ export class ListConnectionsRequest extends Message<ListConnectionsRequest> {
|
|
|
976
1232
|
static readonly runtime: typeof proto3 = proto3;
|
|
977
1233
|
static readonly typeName = "scalekit.v1.connections.ListConnectionsRequest";
|
|
978
1234
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
979
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */,
|
|
980
|
-
{ no:
|
|
981
|
-
{ no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
1235
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1236
|
+
{ no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
982
1237
|
{ no: 4, name: "include", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
983
1238
|
]);
|
|
984
1239
|
|
|
@@ -1109,26 +1364,51 @@ export class ListConnection extends Message<ListConnection> {
|
|
|
1109
1364
|
}
|
|
1110
1365
|
}
|
|
1111
1366
|
|
|
1367
|
+
/**
|
|
1368
|
+
* @generated from message scalekit.v1.connections.ToggleEnvironmentConnectionRequest
|
|
1369
|
+
*/
|
|
1370
|
+
export class ToggleEnvironmentConnectionRequest extends Message<ToggleEnvironmentConnectionRequest> {
|
|
1371
|
+
/**
|
|
1372
|
+
* @generated from field: string connection_id = 2;
|
|
1373
|
+
*/
|
|
1374
|
+
connectionId = "";
|
|
1375
|
+
|
|
1376
|
+
constructor(data?: PartialMessage<ToggleEnvironmentConnectionRequest>) {
|
|
1377
|
+
super();
|
|
1378
|
+
proto3.util.initPartial(data, this);
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1382
|
+
static readonly typeName = "scalekit.v1.connections.ToggleEnvironmentConnectionRequest";
|
|
1383
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1384
|
+
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1385
|
+
]);
|
|
1386
|
+
|
|
1387
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ToggleEnvironmentConnectionRequest {
|
|
1388
|
+
return new ToggleEnvironmentConnectionRequest().fromBinary(bytes, options);
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ToggleEnvironmentConnectionRequest {
|
|
1392
|
+
return new ToggleEnvironmentConnectionRequest().fromJson(jsonValue, options);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ToggleEnvironmentConnectionRequest {
|
|
1396
|
+
return new ToggleEnvironmentConnectionRequest().fromJsonString(jsonString, options);
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
static equals(a: ToggleEnvironmentConnectionRequest | PlainMessage<ToggleEnvironmentConnectionRequest> | undefined, b: ToggleEnvironmentConnectionRequest | PlainMessage<ToggleEnvironmentConnectionRequest> | undefined): boolean {
|
|
1400
|
+
return proto3.util.equals(ToggleEnvironmentConnectionRequest, a, b);
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1112
1404
|
/**
|
|
1113
1405
|
* @generated from message scalekit.v1.connections.ToggleConnectionRequest
|
|
1114
1406
|
*/
|
|
1115
1407
|
export class ToggleConnectionRequest extends Message<ToggleConnectionRequest> {
|
|
1116
1408
|
/**
|
|
1117
|
-
* @generated from
|
|
1409
|
+
* @generated from field: string organization_id = 1;
|
|
1118
1410
|
*/
|
|
1119
|
-
|
|
1120
|
-
/**
|
|
1121
|
-
* @generated from field: string organization_id = 1;
|
|
1122
|
-
*/
|
|
1123
|
-
value: string;
|
|
1124
|
-
case: "organizationId";
|
|
1125
|
-
} | {
|
|
1126
|
-
/**
|
|
1127
|
-
* @generated from field: string external_id = 2;
|
|
1128
|
-
*/
|
|
1129
|
-
value: string;
|
|
1130
|
-
case: "externalId";
|
|
1131
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1411
|
+
organizationId = "";
|
|
1132
1412
|
|
|
1133
1413
|
/**
|
|
1134
1414
|
* @generated from field: string id = 3;
|
|
@@ -1143,8 +1423,7 @@ export class ToggleConnectionRequest extends Message<ToggleConnectionRequest> {
|
|
|
1143
1423
|
static readonly runtime: typeof proto3 = proto3;
|
|
1144
1424
|
static readonly typeName = "scalekit.v1.connections.ToggleConnectionRequest";
|
|
1145
1425
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1146
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING
|
|
1147
|
-
{ no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
|
|
1426
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1148
1427
|
{ no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1149
1428
|
]);
|
|
1150
1429
|
|
|
@@ -1311,6 +1590,85 @@ export class OIDCConnectionConfig extends Message<OIDCConnectionConfig> {
|
|
|
1311
1590
|
}
|
|
1312
1591
|
}
|
|
1313
1592
|
|
|
1593
|
+
/**
|
|
1594
|
+
* @generated from message scalekit.v1.connections.OAuthConnectionConfig
|
|
1595
|
+
*/
|
|
1596
|
+
export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
|
|
1597
|
+
/**
|
|
1598
|
+
* @generated from field: google.protobuf.StringValue authorize_uri = 3;
|
|
1599
|
+
*/
|
|
1600
|
+
authorizeUri?: string;
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* @generated from field: google.protobuf.StringValue token_uri = 4;
|
|
1604
|
+
*/
|
|
1605
|
+
tokenUri?: string;
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* @generated from field: google.protobuf.StringValue user_info_uri = 5;
|
|
1609
|
+
*/
|
|
1610
|
+
userInfoUri?: string;
|
|
1611
|
+
|
|
1612
|
+
/**
|
|
1613
|
+
* @generated from field: google.protobuf.StringValue client_id = 8;
|
|
1614
|
+
*/
|
|
1615
|
+
clientId?: string;
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* @generated from field: google.protobuf.StringValue client_secret = 9;
|
|
1619
|
+
*/
|
|
1620
|
+
clientSecret?: string;
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* @generated from field: repeated string scopes = 10;
|
|
1624
|
+
*/
|
|
1625
|
+
scopes: string[] = [];
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* @generated from field: string redirect_uri = 12;
|
|
1629
|
+
*/
|
|
1630
|
+
redirectUri = "";
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* @generated from field: google.protobuf.BoolValue pkce_enabled = 13;
|
|
1634
|
+
*/
|
|
1635
|
+
pkceEnabled?: boolean;
|
|
1636
|
+
|
|
1637
|
+
constructor(data?: PartialMessage<OAuthConnectionConfig>) {
|
|
1638
|
+
super();
|
|
1639
|
+
proto3.util.initPartial(data, this);
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1643
|
+
static readonly typeName = "scalekit.v1.connections.OAuthConnectionConfig";
|
|
1644
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1645
|
+
{ no: 3, name: "authorize_uri", kind: "message", T: StringValue },
|
|
1646
|
+
{ no: 4, name: "token_uri", kind: "message", T: StringValue },
|
|
1647
|
+
{ no: 5, name: "user_info_uri", kind: "message", T: StringValue },
|
|
1648
|
+
{ no: 8, name: "client_id", kind: "message", T: StringValue },
|
|
1649
|
+
{ no: 9, name: "client_secret", kind: "message", T: StringValue },
|
|
1650
|
+
{ no: 10, name: "scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1651
|
+
{ no: 12, name: "redirect_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1652
|
+
{ no: 13, name: "pkce_enabled", kind: "message", T: BoolValue },
|
|
1653
|
+
]);
|
|
1654
|
+
|
|
1655
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OAuthConnectionConfig {
|
|
1656
|
+
return new OAuthConnectionConfig().fromBinary(bytes, options);
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OAuthConnectionConfig {
|
|
1660
|
+
return new OAuthConnectionConfig().fromJson(jsonValue, options);
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OAuthConnectionConfig {
|
|
1664
|
+
return new OAuthConnectionConfig().fromJsonString(jsonString, options);
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
static equals(a: OAuthConnectionConfig | PlainMessage<OAuthConnectionConfig> | undefined, b: OAuthConnectionConfig | PlainMessage<OAuthConnectionConfig> | undefined): boolean {
|
|
1668
|
+
return proto3.util.equals(OAuthConnectionConfig, a, b);
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1314
1672
|
/**
|
|
1315
1673
|
* @generated from message scalekit.v1.connections.SAMLConnectionConfigRequest
|
|
1316
1674
|
*/
|
|
@@ -1351,14 +1709,14 @@ export class SAMLConnectionConfigRequest extends Message<SAMLConnectionConfigReq
|
|
|
1351
1709
|
idpNameIdFormat = NameIdFormat.NAME_ID_FORMAT_NIL;
|
|
1352
1710
|
|
|
1353
1711
|
/**
|
|
1354
|
-
* @generated from field: scalekit.v1.connections.RequestBinding
|
|
1712
|
+
* @generated from field: scalekit.v1.connections.RequestBinding idp_sso_request_binding = 8;
|
|
1355
1713
|
*/
|
|
1356
|
-
|
|
1714
|
+
idpSsoRequestBinding = RequestBinding.REQUEST_BINDING_UNSPECIFIED;
|
|
1357
1715
|
|
|
1358
1716
|
/**
|
|
1359
|
-
* @generated from field: scalekit.v1.connections.RequestBinding
|
|
1717
|
+
* @generated from field: scalekit.v1.connections.RequestBinding idp_slo_request_binding = 9;
|
|
1360
1718
|
*/
|
|
1361
|
-
|
|
1719
|
+
idpSloRequestBinding = RequestBinding.REQUEST_BINDING_UNSPECIFIED;
|
|
1362
1720
|
|
|
1363
1721
|
/**
|
|
1364
1722
|
* @generated from field: scalekit.v1.connections.SAMLSigningOptions saml_signing_option = 10;
|
|
@@ -1366,27 +1724,22 @@ export class SAMLConnectionConfigRequest extends Message<SAMLConnectionConfigReq
|
|
|
1366
1724
|
samlSigningOption = SAMLSigningOptions.SAML_SIGNING_OPTIONS_UNSPECIFIED;
|
|
1367
1725
|
|
|
1368
1726
|
/**
|
|
1369
|
-
* @generated from field: google.protobuf.BoolValue
|
|
1370
|
-
*/
|
|
1371
|
-
allowIdpInitiatedLogin?: boolean;
|
|
1372
|
-
|
|
1373
|
-
/**
|
|
1374
|
-
* @generated from field: google.protobuf.BoolValue force_authn = 12;
|
|
1727
|
+
* @generated from field: google.protobuf.BoolValue force_authn = 14;
|
|
1375
1728
|
*/
|
|
1376
1729
|
forceAuthn?: boolean;
|
|
1377
1730
|
|
|
1378
1731
|
/**
|
|
1379
|
-
* @generated from field: google.protobuf.StringValue default_redirect_uri =
|
|
1732
|
+
* @generated from field: google.protobuf.StringValue default_redirect_uri = 15;
|
|
1380
1733
|
*/
|
|
1381
1734
|
defaultRedirectUri?: string;
|
|
1382
1735
|
|
|
1383
1736
|
/**
|
|
1384
|
-
* @generated from field: google.protobuf.BoolValue assertion_encrypted =
|
|
1737
|
+
* @generated from field: google.protobuf.BoolValue assertion_encrypted = 16;
|
|
1385
1738
|
*/
|
|
1386
1739
|
assertionEncrypted?: boolean;
|
|
1387
1740
|
|
|
1388
1741
|
/**
|
|
1389
|
-
* @generated from field: google.protobuf.BoolValue want_request_signed =
|
|
1742
|
+
* @generated from field: google.protobuf.BoolValue want_request_signed = 17;
|
|
1390
1743
|
*/
|
|
1391
1744
|
wantRequestSigned?: boolean;
|
|
1392
1745
|
|
|
@@ -1405,14 +1758,13 @@ export class SAMLConnectionConfigRequest extends Message<SAMLConnectionConfigReq
|
|
|
1405
1758
|
{ no: 5, name: "idp_slo_url", kind: "message", T: StringValue },
|
|
1406
1759
|
{ no: 6, name: "ui_button_title", kind: "message", T: StringValue },
|
|
1407
1760
|
{ no: 7, name: "idp_name_id_format", kind: "enum", T: proto3.getEnumType(NameIdFormat) },
|
|
1408
|
-
{ no: 8, name: "
|
|
1409
|
-
{ no: 9, name: "
|
|
1761
|
+
{ no: 8, name: "idp_sso_request_binding", kind: "enum", T: proto3.getEnumType(RequestBinding) },
|
|
1762
|
+
{ no: 9, name: "idp_slo_request_binding", kind: "enum", T: proto3.getEnumType(RequestBinding) },
|
|
1410
1763
|
{ no: 10, name: "saml_signing_option", kind: "enum", T: proto3.getEnumType(SAMLSigningOptions) },
|
|
1411
|
-
{ no:
|
|
1412
|
-
{ no:
|
|
1413
|
-
{ no:
|
|
1414
|
-
{ no:
|
|
1415
|
-
{ no: 15, name: "want_request_signed", kind: "message", T: BoolValue },
|
|
1764
|
+
{ no: 14, name: "force_authn", kind: "message", T: BoolValue },
|
|
1765
|
+
{ no: 15, name: "default_redirect_uri", kind: "message", T: StringValue },
|
|
1766
|
+
{ no: 16, name: "assertion_encrypted", kind: "message", T: BoolValue },
|
|
1767
|
+
{ no: 17, name: "want_request_signed", kind: "message", T: BoolValue },
|
|
1416
1768
|
]);
|
|
1417
1769
|
|
|
1418
1770
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SAMLConnectionConfigRequest {
|