@scalekit-sdk/node 2.0.0 → 2.1.0
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/jest.config.js +15 -0
- package/lib/core.d.ts +1 -1
- package/lib/core.js +31 -31
- package/lib/core.js.map +1 -1
- package/lib/errors/base-exception.d.ts +32 -0
- package/lib/errors/base-exception.js +238 -0
- package/lib/errors/base-exception.js.map +1 -0
- package/lib/errors/index.d.ts +2 -0
- package/lib/errors/index.js +20 -0
- package/lib/errors/index.js.map +1 -0
- package/lib/errors/specific-exceptions.d.ts +39 -0
- package/lib/errors/specific-exceptions.js +90 -0
- package/lib/errors/specific-exceptions.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +34 -87
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +31 -120
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +19 -10
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +18 -9
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +209 -6
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +272 -5
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +29 -0
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +40 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +25 -0
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +38 -1
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +21 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +20 -0
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +110 -5
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +164 -5
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.d.ts +48 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.js +47 -0
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +280 -4
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +449 -11
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
- package/lib/scalekit.d.ts +29 -8
- package/lib/scalekit.js +78 -28
- package/lib/scalekit.js.map +1 -1
- package/lib/types/scalekit.d.ts +5 -0
- package/lib/types/user.d.ts +1 -1
- package/lib/user.d.ts +10 -3
- package/lib/user.js +26 -5
- package/lib/user.js.map +1 -1
- package/package.json +6 -2
- package/src/core.ts +31 -32
- package/src/errors/base-exception.ts +262 -0
- package/src/errors/index.ts +3 -0
- package/src/errors/specific-exceptions.ts +88 -0
- package/src/index.ts +3 -1
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +49 -129
- package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +19 -10
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +377 -8
- package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +44 -0
- package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +49 -0
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +21 -1
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +218 -5
- package/src/pkg/grpc/scalekit/v1/users/users_connect.ts +48 -1
- package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +558 -6
- package/src/scalekit.ts +95 -30
- package/src/types/scalekit.ts +6 -0
- package/src/types/user.ts +1 -1
- package/src/user.ts +34 -7
- package/tests/README.md +25 -0
- package/tests/connection.test.ts +42 -0
- package/tests/directory.test.ts +46 -0
- package/tests/organization.test.ts +65 -0
- package/tests/passwordless.test.ts +108 -0
- package/tests/scalekit.test.ts +104 -0
- package/tests/setup.ts +34 -0
- package/tests/users.test.ts +168 -0
- package/tests/utils/test-data.ts +248 -0
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
-
import { BoolValue, Message, proto3, protoInt64, StringValue, Timestamp, UInt32Value } from "@bufbuild/protobuf";
|
|
7
|
+
import { BoolValue, Message, proto3, protoInt64, StringValue, Struct, Timestamp, UInt32Value } from "@bufbuild/protobuf";
|
|
8
|
+
import { Domain } from "../domains/domains_pb.js";
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* @generated from enum scalekit.v1.connections.CodeChallengeType
|
|
@@ -329,6 +330,21 @@ export enum ConnectionType {
|
|
|
329
330
|
* @generated from enum value: PASSWORDLESS = 5;
|
|
330
331
|
*/
|
|
331
332
|
PASSWORDLESS = 5,
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* @generated from enum value: BASIC = 6;
|
|
336
|
+
*/
|
|
337
|
+
BASIC = 6,
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* @generated from enum value: BEARER = 7;
|
|
341
|
+
*/
|
|
342
|
+
BEARER = 7,
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* @generated from enum value: API_KEY = 8;
|
|
346
|
+
*/
|
|
347
|
+
API_KEY = 8,
|
|
332
348
|
}
|
|
333
349
|
// Retrieve enum metadata with: proto3.getEnumType(ConnectionType)
|
|
334
350
|
proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.ConnectionType", [
|
|
@@ -338,6 +354,9 @@ proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.ConnectionType"
|
|
|
338
354
|
{ no: 3, name: "PASSWORD" },
|
|
339
355
|
{ no: 4, name: "OAUTH" },
|
|
340
356
|
{ no: 5, name: "PASSWORDLESS" },
|
|
357
|
+
{ no: 6, name: "BASIC" },
|
|
358
|
+
{ no: 7, name: "BEARER" },
|
|
359
|
+
{ no: 8, name: "API_KEY" },
|
|
341
360
|
]);
|
|
342
361
|
|
|
343
362
|
/**
|
|
@@ -482,6 +501,92 @@ proto3.util.setEnumType(ConnectionProvider, "scalekit.v1.connections.ConnectionP
|
|
|
482
501
|
{ no: 16, name: "ADFS" },
|
|
483
502
|
]);
|
|
484
503
|
|
|
504
|
+
/**
|
|
505
|
+
* @generated from message scalekit.v1.connections.AssignDomainsToConnectionRequest
|
|
506
|
+
*/
|
|
507
|
+
export class AssignDomainsToConnectionRequest extends Message<AssignDomainsToConnectionRequest> {
|
|
508
|
+
/**
|
|
509
|
+
* @generated from field: string organization_id = 1;
|
|
510
|
+
*/
|
|
511
|
+
organizationId = "";
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* @generated from field: string connection_id = 2;
|
|
515
|
+
*/
|
|
516
|
+
connectionId = "";
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* @generated from field: repeated string domain_ids = 3;
|
|
520
|
+
*/
|
|
521
|
+
domainIds: string[] = [];
|
|
522
|
+
|
|
523
|
+
constructor(data?: PartialMessage<AssignDomainsToConnectionRequest>) {
|
|
524
|
+
super();
|
|
525
|
+
proto3.util.initPartial(data, this);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
529
|
+
static readonly typeName = "scalekit.v1.connections.AssignDomainsToConnectionRequest";
|
|
530
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
531
|
+
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
532
|
+
{ no: 2, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
533
|
+
{ no: 3, name: "domain_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
534
|
+
]);
|
|
535
|
+
|
|
536
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AssignDomainsToConnectionRequest {
|
|
537
|
+
return new AssignDomainsToConnectionRequest().fromBinary(bytes, options);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AssignDomainsToConnectionRequest {
|
|
541
|
+
return new AssignDomainsToConnectionRequest().fromJson(jsonValue, options);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AssignDomainsToConnectionRequest {
|
|
545
|
+
return new AssignDomainsToConnectionRequest().fromJsonString(jsonString, options);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
static equals(a: AssignDomainsToConnectionRequest | PlainMessage<AssignDomainsToConnectionRequest> | undefined, b: AssignDomainsToConnectionRequest | PlainMessage<AssignDomainsToConnectionRequest> | undefined): boolean {
|
|
549
|
+
return proto3.util.equals(AssignDomainsToConnectionRequest, a, b);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @generated from message scalekit.v1.connections.AssignDomainsToConnectionResponse
|
|
555
|
+
*/
|
|
556
|
+
export class AssignDomainsToConnectionResponse extends Message<AssignDomainsToConnectionResponse> {
|
|
557
|
+
/**
|
|
558
|
+
* @generated from field: scalekit.v1.connections.Connection connection = 1;
|
|
559
|
+
*/
|
|
560
|
+
connection?: Connection;
|
|
561
|
+
|
|
562
|
+
constructor(data?: PartialMessage<AssignDomainsToConnectionResponse>) {
|
|
563
|
+
super();
|
|
564
|
+
proto3.util.initPartial(data, this);
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
568
|
+
static readonly typeName = "scalekit.v1.connections.AssignDomainsToConnectionResponse";
|
|
569
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
570
|
+
{ no: 1, name: "connection", kind: "message", T: Connection },
|
|
571
|
+
]);
|
|
572
|
+
|
|
573
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AssignDomainsToConnectionResponse {
|
|
574
|
+
return new AssignDomainsToConnectionResponse().fromBinary(bytes, options);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AssignDomainsToConnectionResponse {
|
|
578
|
+
return new AssignDomainsToConnectionResponse().fromJson(jsonValue, options);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AssignDomainsToConnectionResponse {
|
|
582
|
+
return new AssignDomainsToConnectionResponse().fromJsonString(jsonString, options);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
static equals(a: AssignDomainsToConnectionResponse | PlainMessage<AssignDomainsToConnectionResponse> | undefined, b: AssignDomainsToConnectionResponse | PlainMessage<AssignDomainsToConnectionResponse> | undefined): boolean {
|
|
586
|
+
return proto3.util.equals(AssignDomainsToConnectionResponse, a, b);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
|
|
485
590
|
/**
|
|
486
591
|
* @generated from message scalekit.v1.connections.GetProvidersRequest
|
|
487
592
|
*/
|
|
@@ -608,6 +713,11 @@ export class CreateEnvironmentConnectionRequest extends Message<CreateEnvironmen
|
|
|
608
713
|
*/
|
|
609
714
|
connection?: CreateConnection;
|
|
610
715
|
|
|
716
|
+
/**
|
|
717
|
+
* @generated from field: optional scalekit.v1.connections.Flags flags = 2;
|
|
718
|
+
*/
|
|
719
|
+
flags?: Flags;
|
|
720
|
+
|
|
611
721
|
constructor(data?: PartialMessage<CreateEnvironmentConnectionRequest>) {
|
|
612
722
|
super();
|
|
613
723
|
proto3.util.initPartial(data, this);
|
|
@@ -617,6 +727,7 @@ export class CreateEnvironmentConnectionRequest extends Message<CreateEnvironmen
|
|
|
617
727
|
static readonly typeName = "scalekit.v1.connections.CreateEnvironmentConnectionRequest";
|
|
618
728
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
619
729
|
{ no: 1, name: "connection", kind: "message", T: CreateConnection },
|
|
730
|
+
{ no: 2, name: "flags", kind: "message", T: Flags, opt: true },
|
|
620
731
|
]);
|
|
621
732
|
|
|
622
733
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateEnvironmentConnectionRequest {
|
|
@@ -693,6 +804,16 @@ export class CreateConnection extends Message<CreateConnection> {
|
|
|
693
804
|
*/
|
|
694
805
|
type = ConnectionType.INVALID;
|
|
695
806
|
|
|
807
|
+
/**
|
|
808
|
+
* @generated from field: string provider_key = 3;
|
|
809
|
+
*/
|
|
810
|
+
providerKey = "";
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* @generated from field: optional string key_id = 4;
|
|
814
|
+
*/
|
|
815
|
+
keyId?: string;
|
|
816
|
+
|
|
696
817
|
constructor(data?: PartialMessage<CreateConnection>) {
|
|
697
818
|
super();
|
|
698
819
|
proto3.util.initPartial(data, this);
|
|
@@ -703,6 +824,8 @@ export class CreateConnection extends Message<CreateConnection> {
|
|
|
703
824
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
704
825
|
{ no: 1, name: "provider", kind: "enum", T: proto3.getEnumType(ConnectionProvider) },
|
|
705
826
|
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(ConnectionType) },
|
|
827
|
+
{ no: 3, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
828
|
+
{ no: 4, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
706
829
|
]);
|
|
707
830
|
|
|
708
831
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateConnection {
|
|
@@ -818,13 +941,29 @@ export class Connection extends Message<Connection> {
|
|
|
818
941
|
*/
|
|
819
942
|
value: PasswordLessConfig;
|
|
820
943
|
case: "passwordlessConfig";
|
|
944
|
+
} | {
|
|
945
|
+
/**
|
|
946
|
+
* @generated from field: scalekit.v1.connections.StaticAuthConfig static_config = 26;
|
|
947
|
+
*/
|
|
948
|
+
value: StaticAuthConfig;
|
|
949
|
+
case: "staticConfig";
|
|
821
950
|
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
822
951
|
|
|
823
952
|
/**
|
|
824
|
-
* @generated from field: optional string key_id =
|
|
953
|
+
* @generated from field: optional string key_id = 25;
|
|
825
954
|
*/
|
|
826
955
|
keyId?: string;
|
|
827
956
|
|
|
957
|
+
/**
|
|
958
|
+
* @generated from field: string provider_key = 23;
|
|
959
|
+
*/
|
|
960
|
+
providerKey = "";
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* @generated from field: repeated scalekit.v1.domains.Domain domains = 24;
|
|
964
|
+
*/
|
|
965
|
+
domains: Domain[] = [];
|
|
966
|
+
|
|
828
967
|
constructor(data?: PartialMessage<Connection>) {
|
|
829
968
|
super();
|
|
830
969
|
proto3.util.initPartial(data, this);
|
|
@@ -850,7 +989,10 @@ export class Connection extends Message<Connection> {
|
|
|
850
989
|
{ no: 19, name: "saml_config", kind: "message", T: SAMLConnectionConfigResponse, oneof: "settings" },
|
|
851
990
|
{ no: 20, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
|
|
852
991
|
{ no: 22, name: "passwordless_config", kind: "message", T: PasswordLessConfig, oneof: "settings" },
|
|
853
|
-
{ no:
|
|
992
|
+
{ no: 26, name: "static_config", kind: "message", T: StaticAuthConfig, oneof: "settings" },
|
|
993
|
+
{ no: 25, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
994
|
+
{ no: 23, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
995
|
+
{ no: 24, name: "domains", kind: "message", T: Domain, repeated: true },
|
|
854
996
|
]);
|
|
855
997
|
|
|
856
998
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Connection {
|
|
@@ -1060,13 +1202,24 @@ export class UpdateConnection extends Message<UpdateConnection> {
|
|
|
1060
1202
|
*/
|
|
1061
1203
|
value: PasswordLessConfig;
|
|
1062
1204
|
case: "passwordlessConfig";
|
|
1205
|
+
} | {
|
|
1206
|
+
/**
|
|
1207
|
+
* @generated from field: scalekit.v1.connections.StaticAuthConfig static_config = 23;
|
|
1208
|
+
*/
|
|
1209
|
+
value: StaticAuthConfig;
|
|
1210
|
+
case: "staticConfig";
|
|
1063
1211
|
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1064
1212
|
|
|
1065
1213
|
/**
|
|
1066
|
-
* @generated from field: optional string key_id =
|
|
1214
|
+
* @generated from field: optional string key_id = 22;
|
|
1067
1215
|
*/
|
|
1068
1216
|
keyId?: string;
|
|
1069
1217
|
|
|
1218
|
+
/**
|
|
1219
|
+
* @generated from field: string provider_key = 21;
|
|
1220
|
+
*/
|
|
1221
|
+
providerKey = "";
|
|
1222
|
+
|
|
1070
1223
|
constructor(data?: PartialMessage<UpdateConnection>) {
|
|
1071
1224
|
super();
|
|
1072
1225
|
proto3.util.initPartial(data, this);
|
|
@@ -1085,7 +1238,9 @@ export class UpdateConnection extends Message<UpdateConnection> {
|
|
|
1085
1238
|
{ no: 17, name: "saml_config", kind: "message", T: SAMLConnectionConfigRequest, oneof: "settings" },
|
|
1086
1239
|
{ no: 18, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
|
|
1087
1240
|
{ no: 20, name: "passwordless_config", kind: "message", T: PasswordLessConfig, oneof: "settings" },
|
|
1088
|
-
{ no:
|
|
1241
|
+
{ no: 23, name: "static_config", kind: "message", T: StaticAuthConfig, oneof: "settings" },
|
|
1242
|
+
{ no: 22, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1243
|
+
{ no: 21, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1089
1244
|
]);
|
|
1090
1245
|
|
|
1091
1246
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateConnection {
|
|
@@ -1474,6 +1629,21 @@ export class ListConnection extends Message<ListConnection> {
|
|
|
1474
1629
|
*/
|
|
1475
1630
|
organizationName = "";
|
|
1476
1631
|
|
|
1632
|
+
/**
|
|
1633
|
+
* @generated from field: string provider_key = 10;
|
|
1634
|
+
*/
|
|
1635
|
+
providerKey = "";
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* @generated from field: string key_id = 11;
|
|
1639
|
+
*/
|
|
1640
|
+
keyId = "";
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* @generated from field: google.protobuf.Timestamp created_at = 12;
|
|
1644
|
+
*/
|
|
1645
|
+
createdAt?: Timestamp;
|
|
1646
|
+
|
|
1477
1647
|
constructor(data?: PartialMessage<ListConnection>) {
|
|
1478
1648
|
super();
|
|
1479
1649
|
proto3.util.initPartial(data, this);
|
|
@@ -1491,6 +1661,9 @@ export class ListConnection extends Message<ListConnection> {
|
|
|
1491
1661
|
{ no: 7, name: "ui_button_title", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1492
1662
|
{ no: 8, name: "domains", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1493
1663
|
{ no: 9, name: "organization_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1664
|
+
{ no: 10, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1665
|
+
{ no: 11, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1666
|
+
{ no: 12, name: "created_at", kind: "message", T: Timestamp },
|
|
1494
1667
|
]);
|
|
1495
1668
|
|
|
1496
1669
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListConnection {
|
|
@@ -1618,9 +1791,9 @@ export class SearchOrganizationConnectionsRequest extends Message<SearchOrganiza
|
|
|
1618
1791
|
query?: string;
|
|
1619
1792
|
|
|
1620
1793
|
/**
|
|
1621
|
-
* @generated from field: optional
|
|
1794
|
+
* @generated from field: optional string provider = 2;
|
|
1622
1795
|
*/
|
|
1623
|
-
provider?:
|
|
1796
|
+
provider?: string;
|
|
1624
1797
|
|
|
1625
1798
|
/**
|
|
1626
1799
|
* @generated from field: optional scalekit.v1.connections.ConnectionStatus status = 3;
|
|
@@ -1632,6 +1805,11 @@ export class SearchOrganizationConnectionsRequest extends Message<SearchOrganiza
|
|
|
1632
1805
|
*/
|
|
1633
1806
|
connectionType?: ConnectionType;
|
|
1634
1807
|
|
|
1808
|
+
/**
|
|
1809
|
+
* @generated from field: optional bool enabled = 7;
|
|
1810
|
+
*/
|
|
1811
|
+
enabled?: boolean;
|
|
1812
|
+
|
|
1635
1813
|
/**
|
|
1636
1814
|
* @generated from field: uint32 page_size = 5;
|
|
1637
1815
|
*/
|
|
@@ -1651,9 +1829,10 @@ export class SearchOrganizationConnectionsRequest extends Message<SearchOrganiza
|
|
|
1651
1829
|
static readonly typeName = "scalekit.v1.connections.SearchOrganizationConnectionsRequest";
|
|
1652
1830
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1653
1831
|
{ no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1654
|
-
{ no: 2, name: "provider", kind: "
|
|
1832
|
+
{ no: 2, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1655
1833
|
{ no: 3, name: "status", kind: "enum", T: proto3.getEnumType(ConnectionStatus), opt: true },
|
|
1656
1834
|
{ no: 4, name: "connection_type", kind: "enum", T: proto3.getEnumType(ConnectionType), opt: true },
|
|
1835
|
+
{ no: 7, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1657
1836
|
{ no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1658
1837
|
{ no: 6, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1659
1838
|
]);
|
|
@@ -2028,6 +2207,11 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
|
|
|
2028
2207
|
*/
|
|
2029
2208
|
usePlatformCreds?: boolean;
|
|
2030
2209
|
|
|
2210
|
+
/**
|
|
2211
|
+
* @generated from field: google.protobuf.StringValue access_type = 16;
|
|
2212
|
+
*/
|
|
2213
|
+
accessType?: string;
|
|
2214
|
+
|
|
2031
2215
|
constructor(data?: PartialMessage<OAuthConnectionConfig>) {
|
|
2032
2216
|
super();
|
|
2033
2217
|
proto3.util.initPartial(data, this);
|
|
@@ -2046,6 +2230,7 @@ export class OAuthConnectionConfig extends Message<OAuthConnectionConfig> {
|
|
|
2046
2230
|
{ no: 13, name: "pkce_enabled", kind: "message", T: BoolValue },
|
|
2047
2231
|
{ no: 14, name: "prompt", kind: "message", T: StringValue },
|
|
2048
2232
|
{ no: 15, name: "use_platform_creds", kind: "message", T: BoolValue },
|
|
2233
|
+
{ no: 16, name: "access_type", kind: "message", T: StringValue },
|
|
2049
2234
|
]);
|
|
2050
2235
|
|
|
2051
2236
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OAuthConnectionConfig {
|
|
@@ -2099,6 +2284,11 @@ export class PasswordLessConfig extends Message<PasswordLessConfig> {
|
|
|
2099
2284
|
*/
|
|
2100
2285
|
codeChallengeType?: CodeChallengeType;
|
|
2101
2286
|
|
|
2287
|
+
/**
|
|
2288
|
+
* @generated from field: optional google.protobuf.BoolValue regenerate_passwordless_credentials_on_resend = 7;
|
|
2289
|
+
*/
|
|
2290
|
+
regeneratePasswordlessCredentialsOnResend?: boolean;
|
|
2291
|
+
|
|
2102
2292
|
constructor(data?: PartialMessage<PasswordLessConfig>) {
|
|
2103
2293
|
super();
|
|
2104
2294
|
proto3.util.initPartial(data, this);
|
|
@@ -2113,6 +2303,7 @@ export class PasswordLessConfig extends Message<PasswordLessConfig> {
|
|
|
2113
2303
|
{ no: 4, name: "enforce_same_browser_origin", kind: "message", T: BoolValue, opt: true },
|
|
2114
2304
|
{ no: 5, name: "code_challenge_length", kind: "message", T: UInt32Value, opt: true },
|
|
2115
2305
|
{ no: 6, name: "code_challenge_type", kind: "enum", T: proto3.getEnumType(CodeChallengeType), opt: true },
|
|
2306
|
+
{ no: 7, name: "regenerate_passwordless_credentials_on_resend", kind: "message", T: BoolValue, opt: true },
|
|
2116
2307
|
]);
|
|
2117
2308
|
|
|
2118
2309
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PasswordLessConfig {
|
|
@@ -2132,6 +2323,43 @@ export class PasswordLessConfig extends Message<PasswordLessConfig> {
|
|
|
2132
2323
|
}
|
|
2133
2324
|
}
|
|
2134
2325
|
|
|
2326
|
+
/**
|
|
2327
|
+
* @generated from message scalekit.v1.connections.StaticAuthConfig
|
|
2328
|
+
*/
|
|
2329
|
+
export class StaticAuthConfig extends Message<StaticAuthConfig> {
|
|
2330
|
+
/**
|
|
2331
|
+
* @generated from field: google.protobuf.Struct static_config = 1;
|
|
2332
|
+
*/
|
|
2333
|
+
staticConfig?: Struct;
|
|
2334
|
+
|
|
2335
|
+
constructor(data?: PartialMessage<StaticAuthConfig>) {
|
|
2336
|
+
super();
|
|
2337
|
+
proto3.util.initPartial(data, this);
|
|
2338
|
+
}
|
|
2339
|
+
|
|
2340
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2341
|
+
static readonly typeName = "scalekit.v1.connections.StaticAuthConfig";
|
|
2342
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2343
|
+
{ no: 1, name: "static_config", kind: "message", T: Struct },
|
|
2344
|
+
]);
|
|
2345
|
+
|
|
2346
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StaticAuthConfig {
|
|
2347
|
+
return new StaticAuthConfig().fromBinary(bytes, options);
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2350
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StaticAuthConfig {
|
|
2351
|
+
return new StaticAuthConfig().fromJson(jsonValue, options);
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StaticAuthConfig {
|
|
2355
|
+
return new StaticAuthConfig().fromJsonString(jsonString, options);
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
static equals(a: StaticAuthConfig | PlainMessage<StaticAuthConfig> | undefined, b: StaticAuthConfig | PlainMessage<StaticAuthConfig> | undefined): boolean {
|
|
2359
|
+
return proto3.util.equals(StaticAuthConfig, a, b);
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2135
2363
|
/**
|
|
2136
2364
|
* @generated from message scalekit.v1.connections.SAMLConnectionConfigRequest
|
|
2137
2365
|
*/
|
|
@@ -3029,3 +3257,144 @@ export class PasswordConnectionConfig extends Message<PasswordConnectionConfig>
|
|
|
3029
3257
|
}
|
|
3030
3258
|
}
|
|
3031
3259
|
|
|
3260
|
+
/**
|
|
3261
|
+
* @generated from message scalekit.v1.connections.Flags
|
|
3262
|
+
*/
|
|
3263
|
+
export class Flags extends Message<Flags> {
|
|
3264
|
+
/**
|
|
3265
|
+
* @generated from field: bool is_login = 1;
|
|
3266
|
+
*/
|
|
3267
|
+
isLogin = false;
|
|
3268
|
+
|
|
3269
|
+
/**
|
|
3270
|
+
* @generated from field: bool is_app = 2;
|
|
3271
|
+
*/
|
|
3272
|
+
isApp = false;
|
|
3273
|
+
|
|
3274
|
+
constructor(data?: PartialMessage<Flags>) {
|
|
3275
|
+
super();
|
|
3276
|
+
proto3.util.initPartial(data, this);
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3279
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3280
|
+
static readonly typeName = "scalekit.v1.connections.Flags";
|
|
3281
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3282
|
+
{ no: 1, name: "is_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
3283
|
+
{ no: 2, name: "is_app", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
3284
|
+
]);
|
|
3285
|
+
|
|
3286
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Flags {
|
|
3287
|
+
return new Flags().fromBinary(bytes, options);
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3290
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Flags {
|
|
3291
|
+
return new Flags().fromJson(jsonValue, options);
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Flags {
|
|
3295
|
+
return new Flags().fromJsonString(jsonString, options);
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3298
|
+
static equals(a: Flags | PlainMessage<Flags> | undefined, b: Flags | PlainMessage<Flags> | undefined): boolean {
|
|
3299
|
+
return proto3.util.equals(Flags, a, b);
|
|
3300
|
+
}
|
|
3301
|
+
}
|
|
3302
|
+
|
|
3303
|
+
/**
|
|
3304
|
+
* @generated from message scalekit.v1.connections.ListAppConnectionsRequest
|
|
3305
|
+
*/
|
|
3306
|
+
export class ListAppConnectionsRequest extends Message<ListAppConnectionsRequest> {
|
|
3307
|
+
/**
|
|
3308
|
+
* @generated from field: uint32 page_size = 1;
|
|
3309
|
+
*/
|
|
3310
|
+
pageSize = 0;
|
|
3311
|
+
|
|
3312
|
+
/**
|
|
3313
|
+
* @generated from field: string page_token = 2;
|
|
3314
|
+
*/
|
|
3315
|
+
pageToken = "";
|
|
3316
|
+
|
|
3317
|
+
constructor(data?: PartialMessage<ListAppConnectionsRequest>) {
|
|
3318
|
+
super();
|
|
3319
|
+
proto3.util.initPartial(data, this);
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3323
|
+
static readonly typeName = "scalekit.v1.connections.ListAppConnectionsRequest";
|
|
3324
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3325
|
+
{ no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
3326
|
+
{ no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3327
|
+
]);
|
|
3328
|
+
|
|
3329
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAppConnectionsRequest {
|
|
3330
|
+
return new ListAppConnectionsRequest().fromBinary(bytes, options);
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAppConnectionsRequest {
|
|
3334
|
+
return new ListAppConnectionsRequest().fromJson(jsonValue, options);
|
|
3335
|
+
}
|
|
3336
|
+
|
|
3337
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAppConnectionsRequest {
|
|
3338
|
+
return new ListAppConnectionsRequest().fromJsonString(jsonString, options);
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
static equals(a: ListAppConnectionsRequest | PlainMessage<ListAppConnectionsRequest> | undefined, b: ListAppConnectionsRequest | PlainMessage<ListAppConnectionsRequest> | undefined): boolean {
|
|
3342
|
+
return proto3.util.equals(ListAppConnectionsRequest, a, b);
|
|
3343
|
+
}
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
/**
|
|
3347
|
+
* @generated from message scalekit.v1.connections.ListAppConnectionsResponse
|
|
3348
|
+
*/
|
|
3349
|
+
export class ListAppConnectionsResponse extends Message<ListAppConnectionsResponse> {
|
|
3350
|
+
/**
|
|
3351
|
+
* @generated from field: repeated scalekit.v1.connections.ListConnection connections = 1;
|
|
3352
|
+
*/
|
|
3353
|
+
connections: ListConnection[] = [];
|
|
3354
|
+
|
|
3355
|
+
/**
|
|
3356
|
+
* @generated from field: string next_page_token = 2;
|
|
3357
|
+
*/
|
|
3358
|
+
nextPageToken = "";
|
|
3359
|
+
|
|
3360
|
+
/**
|
|
3361
|
+
* @generated from field: string prev_page_token = 3;
|
|
3362
|
+
*/
|
|
3363
|
+
prevPageToken = "";
|
|
3364
|
+
|
|
3365
|
+
/**
|
|
3366
|
+
* @generated from field: uint32 total_size = 4;
|
|
3367
|
+
*/
|
|
3368
|
+
totalSize = 0;
|
|
3369
|
+
|
|
3370
|
+
constructor(data?: PartialMessage<ListAppConnectionsResponse>) {
|
|
3371
|
+
super();
|
|
3372
|
+
proto3.util.initPartial(data, this);
|
|
3373
|
+
}
|
|
3374
|
+
|
|
3375
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
3376
|
+
static readonly typeName = "scalekit.v1.connections.ListAppConnectionsResponse";
|
|
3377
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
3378
|
+
{ no: 1, name: "connections", kind: "message", T: ListConnection, repeated: true },
|
|
3379
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3380
|
+
{ no: 3, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3381
|
+
{ no: 4, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
3382
|
+
]);
|
|
3383
|
+
|
|
3384
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAppConnectionsResponse {
|
|
3385
|
+
return new ListAppConnectionsResponse().fromBinary(bytes, options);
|
|
3386
|
+
}
|
|
3387
|
+
|
|
3388
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAppConnectionsResponse {
|
|
3389
|
+
return new ListAppConnectionsResponse().fromJson(jsonValue, options);
|
|
3390
|
+
}
|
|
3391
|
+
|
|
3392
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAppConnectionsResponse {
|
|
3393
|
+
return new ListAppConnectionsResponse().fromJsonString(jsonString, options);
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3396
|
+
static equals(a: ListAppConnectionsResponse | PlainMessage<ListAppConnectionsResponse> | undefined, b: ListAppConnectionsResponse | PlainMessage<ListAppConnectionsResponse> | undefined): boolean {
|
|
3397
|
+
return proto3.util.equals(ListAppConnectionsResponse, a, b);
|
|
3398
|
+
}
|
|
3399
|
+
}
|
|
3400
|
+
|
|
@@ -38,6 +38,32 @@ proto3.util.setEnumType(VerificationStatus, "scalekit.v1.domains.VerificationSta
|
|
|
38
38
|
{ no: 3, name: "FAILED" },
|
|
39
39
|
]);
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* @generated from enum scalekit.v1.domains.DomainType
|
|
43
|
+
*/
|
|
44
|
+
export enum DomainType {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: DOMAIN_TYPE_UNSPECIFIED = 0;
|
|
47
|
+
*/
|
|
48
|
+
DOMAIN_TYPE_UNSPECIFIED = 0,
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @generated from enum value: HOME_REALM_DISCOVERY = 1;
|
|
52
|
+
*/
|
|
53
|
+
HOME_REALM_DISCOVERY = 1,
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @generated from enum value: JIT_PROVISIONING_DOMAIN = 2;
|
|
57
|
+
*/
|
|
58
|
+
JIT_PROVISIONING_DOMAIN = 2,
|
|
59
|
+
}
|
|
60
|
+
// Retrieve enum metadata with: proto3.getEnumType(DomainType)
|
|
61
|
+
proto3.util.setEnumType(DomainType, "scalekit.v1.domains.DomainType", [
|
|
62
|
+
{ no: 0, name: "DOMAIN_TYPE_UNSPECIFIED" },
|
|
63
|
+
{ no: 1, name: "HOME_REALM_DISCOVERY" },
|
|
64
|
+
{ no: 2, name: "JIT_PROVISIONING_DOMAIN" },
|
|
65
|
+
]);
|
|
66
|
+
|
|
41
67
|
/**
|
|
42
68
|
* @generated from message scalekit.v1.domains.CreateDomainRequest
|
|
43
69
|
*/
|
|
@@ -146,6 +172,11 @@ export class CreateDomain extends Message<CreateDomain> {
|
|
|
146
172
|
*/
|
|
147
173
|
domain = "";
|
|
148
174
|
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: scalekit.v1.domains.DomainType domain_type = 2;
|
|
177
|
+
*/
|
|
178
|
+
domainType = DomainType.DOMAIN_TYPE_UNSPECIFIED;
|
|
179
|
+
|
|
149
180
|
constructor(data?: PartialMessage<CreateDomain>) {
|
|
150
181
|
super();
|
|
151
182
|
proto3.util.initPartial(data, this);
|
|
@@ -155,6 +186,7 @@ export class CreateDomain extends Message<CreateDomain> {
|
|
|
155
186
|
static readonly typeName = "scalekit.v1.domains.CreateDomain";
|
|
156
187
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
157
188
|
{ no: 1, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
189
|
+
{ no: 2, name: "domain_type", kind: "enum", T: proto3.getEnumType(DomainType) },
|
|
158
190
|
]);
|
|
159
191
|
|
|
160
192
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateDomain {
|
|
@@ -506,6 +538,11 @@ export class ListDomainRequest extends Message<ListDomainRequest> {
|
|
|
506
538
|
*/
|
|
507
539
|
pageNumber?: number;
|
|
508
540
|
|
|
541
|
+
/**
|
|
542
|
+
* @generated from field: scalekit.v1.domains.DomainType domain_type = 7;
|
|
543
|
+
*/
|
|
544
|
+
domainType = DomainType.DOMAIN_TYPE_UNSPECIFIED;
|
|
545
|
+
|
|
509
546
|
constructor(data?: PartialMessage<ListDomainRequest>) {
|
|
510
547
|
super();
|
|
511
548
|
proto3.util.initPartial(data, this);
|
|
@@ -520,6 +557,7 @@ export class ListDomainRequest extends Message<ListDomainRequest> {
|
|
|
520
557
|
{ no: 4, name: "include", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
521
558
|
{ no: 5, name: "page_size", kind: "message", T: Int32Value },
|
|
522
559
|
{ no: 6, name: "page_number", kind: "message", T: Int32Value },
|
|
560
|
+
{ no: 7, name: "domain_type", kind: "enum", T: proto3.getEnumType(DomainType) },
|
|
523
561
|
]);
|
|
524
562
|
|
|
525
563
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDomainRequest {
|
|
@@ -777,6 +815,11 @@ export class Domain extends Message<Domain> {
|
|
|
777
815
|
*/
|
|
778
816
|
createdBy?: string;
|
|
779
817
|
|
|
818
|
+
/**
|
|
819
|
+
* @generated from field: scalekit.v1.domains.DomainType domain_type = 12;
|
|
820
|
+
*/
|
|
821
|
+
domainType = DomainType.DOMAIN_TYPE_UNSPECIFIED;
|
|
822
|
+
|
|
780
823
|
constructor(data?: PartialMessage<Domain>) {
|
|
781
824
|
super();
|
|
782
825
|
proto3.util.initPartial(data, this);
|
|
@@ -796,6 +839,7 @@ export class Domain extends Message<Domain> {
|
|
|
796
839
|
{ no: 9, name: "create_time", kind: "message", T: Timestamp },
|
|
797
840
|
{ no: 10, name: "update_time", kind: "message", T: Timestamp },
|
|
798
841
|
{ no: 11, name: "created_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
842
|
+
{ no: 12, name: "domain_type", kind: "enum", T: proto3.getEnumType(DomainType) },
|
|
799
843
|
]);
|
|
800
844
|
|
|
801
845
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Domain {
|