@scalekit-sdk/node 1.0.9 → 1.0.11
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/README.md +11 -0
- package/buf.gen.yaml +2 -1
- package/lib/core.js +1 -1
- package/lib/core.js.map +1 -1
- package/lib/passwordless.d.ts +55 -0
- package/lib/passwordless.js +111 -0
- package/lib/passwordless.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.d.ts +37 -0
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js +45 -0
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.d.ts +184 -0
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js +249 -0
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +10 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +9 -0
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +225 -3
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +228 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.d.ts +38 -2
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js +36 -0
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.d.ts +152 -3
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js +234 -3
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +11 -2
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +9 -0
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +36 -0
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +38 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +6 -2
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +7 -2
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +37 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +36 -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 +233 -10
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +325 -7
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
- package/lib/scalekit.d.ts +2 -0
- package/lib/scalekit.js +2 -0
- package/lib/scalekit.js.map +1 -1
- package/package.json +1 -1
- package/src/core.ts +1 -1
- package/src/passwordless.ts +135 -0
- package/src/pkg/grpc/scalekit/v1/auth/passwordless_connect.ts +44 -0
- package/src/pkg/grpc/scalekit/v1/auth/passwordless_pb.ts +330 -0
- package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +10 -1
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +366 -1
- package/src/pkg/grpc/scalekit/v1/directories/directories_connect.ts +38 -2
- package/src/pkg/grpc/scalekit/v1/directories/directories_pb.ts +283 -2
- package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +11 -2
- package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +56 -0
- package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +8 -2
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +37 -1
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +435 -11
- package/src/scalekit.ts +6 -0
|
@@ -4,9 +4,43 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
-
import { FieldMask, Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
7
|
+
import { BoolValue, FieldMask, Int32Value, Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
8
8
|
import { RegionCode } from "../commons/commons_pb.js";
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* Feature represents the available features that can be enabled for an organization's portal link
|
|
12
|
+
*
|
|
13
|
+
* @generated from enum scalekit.v1.organizations.Feature
|
|
14
|
+
*/
|
|
15
|
+
export enum Feature {
|
|
16
|
+
/**
|
|
17
|
+
* UNSPECIFIED represents an unset or invalid feature value
|
|
18
|
+
*
|
|
19
|
+
* @generated from enum value: UNSPECIFIED = 0;
|
|
20
|
+
*/
|
|
21
|
+
UNSPECIFIED = 0,
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* dir_sync enables directory synchronization configuration in the portal
|
|
25
|
+
*
|
|
26
|
+
* @generated from enum value: dir_sync = 1;
|
|
27
|
+
*/
|
|
28
|
+
dir_sync = 1,
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* sso enables Single Sign-On (SSO) configuration in the portal
|
|
32
|
+
*
|
|
33
|
+
* @generated from enum value: sso = 2;
|
|
34
|
+
*/
|
|
35
|
+
sso = 2,
|
|
36
|
+
}
|
|
37
|
+
// Retrieve enum metadata with: proto3.getEnumType(Feature)
|
|
38
|
+
proto3.util.setEnumType(Feature, "scalekit.v1.organizations.Feature", [
|
|
39
|
+
{ no: 0, name: "UNSPECIFIED" },
|
|
40
|
+
{ no: 1, name: "dir_sync" },
|
|
41
|
+
{ no: 2, name: "sso" },
|
|
42
|
+
]);
|
|
43
|
+
|
|
10
44
|
/**
|
|
11
45
|
* @generated from message scalekit.v1.organizations.CreateOrganizationRequest
|
|
12
46
|
*/
|
|
@@ -88,29 +122,21 @@ export class CreateOrganizationResponse extends Message<CreateOrganizationRespon
|
|
|
88
122
|
*/
|
|
89
123
|
export class CreateOrganization extends Message<CreateOrganization> {
|
|
90
124
|
/**
|
|
91
|
-
* Name of the org to be used in display
|
|
92
|
-
*
|
|
93
125
|
* @generated from field: string display_name = 4;
|
|
94
126
|
*/
|
|
95
127
|
displayName = "";
|
|
96
128
|
|
|
97
129
|
/**
|
|
98
|
-
* Optional regioncode
|
|
99
|
-
*
|
|
100
130
|
* @generated from field: scalekit.v1.commons.RegionCode region_code = 5;
|
|
101
131
|
*/
|
|
102
132
|
regionCode = RegionCode.REGION_CODE_UNSPECIFIED;
|
|
103
133
|
|
|
104
134
|
/**
|
|
105
|
-
* External Id is useful to store a unique identifier for a given Org that. The unique Identifier can be the id of your tenant / org in your SaaSApp
|
|
106
|
-
*
|
|
107
135
|
* @generated from field: optional string external_id = 6;
|
|
108
136
|
*/
|
|
109
137
|
externalId?: string;
|
|
110
138
|
|
|
111
139
|
/**
|
|
112
|
-
* Key value pairs extension attributes.
|
|
113
|
-
*
|
|
114
140
|
* @generated from field: map<string, string> metadata = 7;
|
|
115
141
|
*/
|
|
116
142
|
metadata: { [key: string]: string } = {};
|
|
@@ -492,6 +518,11 @@ export class ListOrganizationsRequest extends Message<ListOrganizationsRequest>
|
|
|
492
518
|
*/
|
|
493
519
|
pageToken = "";
|
|
494
520
|
|
|
521
|
+
/**
|
|
522
|
+
* @generated from field: optional string external_id = 3;
|
|
523
|
+
*/
|
|
524
|
+
externalId?: string;
|
|
525
|
+
|
|
495
526
|
constructor(data?: PartialMessage<ListOrganizationsRequest>) {
|
|
496
527
|
super();
|
|
497
528
|
proto3.util.initPartial(data, this);
|
|
@@ -502,6 +533,7 @@ export class ListOrganizationsRequest extends Message<ListOrganizationsRequest>
|
|
|
502
533
|
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
503
534
|
{ no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
504
535
|
{ no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
536
|
+
{ no: 3, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
505
537
|
]);
|
|
506
538
|
|
|
507
539
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationsRequest {
|
|
@@ -740,15 +772,26 @@ export class GeneratePortalLinkRequest extends Message<GeneratePortalLinkRequest
|
|
|
740
772
|
id = "";
|
|
741
773
|
|
|
742
774
|
/**
|
|
743
|
-
*
|
|
775
|
+
* Deprecated: Use features
|
|
776
|
+
*
|
|
777
|
+
* @generated from field: optional bool sso = 2 [deprecated = true];
|
|
778
|
+
* @deprecated
|
|
744
779
|
*/
|
|
745
780
|
sso?: boolean;
|
|
746
781
|
|
|
747
782
|
/**
|
|
748
|
-
*
|
|
783
|
+
* Deprecated: Use features
|
|
784
|
+
*
|
|
785
|
+
* @generated from field: optional bool directory_sync = 3 [deprecated = true];
|
|
786
|
+
* @deprecated
|
|
749
787
|
*/
|
|
750
788
|
directorySync?: boolean;
|
|
751
789
|
|
|
790
|
+
/**
|
|
791
|
+
* @generated from field: repeated scalekit.v1.organizations.Feature features = 4;
|
|
792
|
+
*/
|
|
793
|
+
features: Feature[] = [];
|
|
794
|
+
|
|
752
795
|
constructor(data?: PartialMessage<GeneratePortalLinkRequest>) {
|
|
753
796
|
super();
|
|
754
797
|
proto3.util.initPartial(data, this);
|
|
@@ -760,6 +803,7 @@ export class GeneratePortalLinkRequest extends Message<GeneratePortalLinkRequest
|
|
|
760
803
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
761
804
|
{ no: 2, name: "sso", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
762
805
|
{ no: 3, name: "directory_sync", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
806
|
+
{ no: 4, name: "features", kind: "enum", T: proto3.getEnumType(Feature), repeated: true },
|
|
763
807
|
]);
|
|
764
808
|
|
|
765
809
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GeneratePortalLinkRequest {
|
|
@@ -1062,6 +1106,386 @@ export class UpdateOrganizationSettingsRequest extends Message<UpdateOrganizatio
|
|
|
1062
1106
|
}
|
|
1063
1107
|
}
|
|
1064
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* @generated from message scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest
|
|
1111
|
+
*/
|
|
1112
|
+
export class UpdateOrganizationSessionSettingsRequest extends Message<UpdateOrganizationSessionSettingsRequest> {
|
|
1113
|
+
/**
|
|
1114
|
+
* @generated from field: string id = 1;
|
|
1115
|
+
*/
|
|
1116
|
+
id = "";
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* @generated from field: string environment_id = 2;
|
|
1120
|
+
*/
|
|
1121
|
+
environmentId = "";
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* @generated from field: scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3;
|
|
1125
|
+
*/
|
|
1126
|
+
sessionSettings?: OrganizationSessionSettings;
|
|
1127
|
+
|
|
1128
|
+
constructor(data?: PartialMessage<UpdateOrganizationSessionSettingsRequest>) {
|
|
1129
|
+
super();
|
|
1130
|
+
proto3.util.initPartial(data, this);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1134
|
+
static readonly typeName = "scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest";
|
|
1135
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1136
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1137
|
+
{ no: 2, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1138
|
+
{ no: 3, name: "session_settings", kind: "message", T: OrganizationSessionSettings },
|
|
1139
|
+
]);
|
|
1140
|
+
|
|
1141
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateOrganizationSessionSettingsRequest {
|
|
1142
|
+
return new UpdateOrganizationSessionSettingsRequest().fromBinary(bytes, options);
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateOrganizationSessionSettingsRequest {
|
|
1146
|
+
return new UpdateOrganizationSessionSettingsRequest().fromJson(jsonValue, options);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateOrganizationSessionSettingsRequest {
|
|
1150
|
+
return new UpdateOrganizationSessionSettingsRequest().fromJsonString(jsonString, options);
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
static equals(a: UpdateOrganizationSessionSettingsRequest | PlainMessage<UpdateOrganizationSessionSettingsRequest> | undefined, b: UpdateOrganizationSessionSettingsRequest | PlainMessage<UpdateOrganizationSessionSettingsRequest> | undefined): boolean {
|
|
1154
|
+
return proto3.util.equals(UpdateOrganizationSessionSettingsRequest, a, b);
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* @generated from message scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse
|
|
1160
|
+
*/
|
|
1161
|
+
export class UpdateOrganizationSessionSettingsResponse extends Message<UpdateOrganizationSessionSettingsResponse> {
|
|
1162
|
+
/**
|
|
1163
|
+
* @generated from field: string environment_id = 1;
|
|
1164
|
+
*/
|
|
1165
|
+
environmentId = "";
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* @generated from field: string organization_id = 2;
|
|
1169
|
+
*/
|
|
1170
|
+
organizationId = "";
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* @generated from field: scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3;
|
|
1174
|
+
*/
|
|
1175
|
+
sessionSettings?: OrganizationSessionSettings;
|
|
1176
|
+
|
|
1177
|
+
constructor(data?: PartialMessage<UpdateOrganizationSessionSettingsResponse>) {
|
|
1178
|
+
super();
|
|
1179
|
+
proto3.util.initPartial(data, this);
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1183
|
+
static readonly typeName = "scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse";
|
|
1184
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1185
|
+
{ no: 1, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1186
|
+
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1187
|
+
{ no: 3, name: "session_settings", kind: "message", T: OrganizationSessionSettings },
|
|
1188
|
+
]);
|
|
1189
|
+
|
|
1190
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateOrganizationSessionSettingsResponse {
|
|
1191
|
+
return new UpdateOrganizationSessionSettingsResponse().fromBinary(bytes, options);
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateOrganizationSessionSettingsResponse {
|
|
1195
|
+
return new UpdateOrganizationSessionSettingsResponse().fromJson(jsonValue, options);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateOrganizationSessionSettingsResponse {
|
|
1199
|
+
return new UpdateOrganizationSessionSettingsResponse().fromJsonString(jsonString, options);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
static equals(a: UpdateOrganizationSessionSettingsResponse | PlainMessage<UpdateOrganizationSessionSettingsResponse> | undefined, b: UpdateOrganizationSessionSettingsResponse | PlainMessage<UpdateOrganizationSessionSettingsResponse> | undefined): boolean {
|
|
1203
|
+
return proto3.util.equals(UpdateOrganizationSessionSettingsResponse, a, b);
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* @generated from message scalekit.v1.organizations.OrganizationSessionSettings
|
|
1209
|
+
*/
|
|
1210
|
+
export class OrganizationSessionSettings extends Message<OrganizationSessionSettings> {
|
|
1211
|
+
/**
|
|
1212
|
+
* @generated from field: google.protobuf.Int32Value absolute_session_timeout = 1;
|
|
1213
|
+
*/
|
|
1214
|
+
absoluteSessionTimeout?: number;
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* @generated from field: google.protobuf.BoolValue session_management_enabled = 2;
|
|
1218
|
+
*/
|
|
1219
|
+
sessionManagementEnabled?: boolean;
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* @generated from field: google.protobuf.Int32Value idle_session_timeout = 3;
|
|
1223
|
+
*/
|
|
1224
|
+
idleSessionTimeout?: number;
|
|
1225
|
+
|
|
1226
|
+
/**
|
|
1227
|
+
* @generated from field: google.protobuf.BoolValue idle_session_enabled = 4;
|
|
1228
|
+
*/
|
|
1229
|
+
idleSessionEnabled?: boolean;
|
|
1230
|
+
|
|
1231
|
+
constructor(data?: PartialMessage<OrganizationSessionSettings>) {
|
|
1232
|
+
super();
|
|
1233
|
+
proto3.util.initPartial(data, this);
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1237
|
+
static readonly typeName = "scalekit.v1.organizations.OrganizationSessionSettings";
|
|
1238
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1239
|
+
{ no: 1, name: "absolute_session_timeout", kind: "message", T: Int32Value },
|
|
1240
|
+
{ no: 2, name: "session_management_enabled", kind: "message", T: BoolValue },
|
|
1241
|
+
{ no: 3, name: "idle_session_timeout", kind: "message", T: Int32Value },
|
|
1242
|
+
{ no: 4, name: "idle_session_enabled", kind: "message", T: BoolValue },
|
|
1243
|
+
]);
|
|
1244
|
+
|
|
1245
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OrganizationSessionSettings {
|
|
1246
|
+
return new OrganizationSessionSettings().fromBinary(bytes, options);
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OrganizationSessionSettings {
|
|
1250
|
+
return new OrganizationSessionSettings().fromJson(jsonValue, options);
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OrganizationSessionSettings {
|
|
1254
|
+
return new OrganizationSessionSettings().fromJsonString(jsonString, options);
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
static equals(a: OrganizationSessionSettings | PlainMessage<OrganizationSessionSettings> | undefined, b: OrganizationSessionSettings | PlainMessage<OrganizationSessionSettings> | undefined): boolean {
|
|
1258
|
+
return proto3.util.equals(OrganizationSessionSettings, a, b);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* @generated from message scalekit.v1.organizations.GetOrganizationSessionSettingsRequest
|
|
1264
|
+
*/
|
|
1265
|
+
export class GetOrganizationSessionSettingsRequest extends Message<GetOrganizationSessionSettingsRequest> {
|
|
1266
|
+
/**
|
|
1267
|
+
* @generated from field: string id = 1;
|
|
1268
|
+
*/
|
|
1269
|
+
id = "";
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* @generated from field: string environment_id = 2;
|
|
1273
|
+
*/
|
|
1274
|
+
environmentId = "";
|
|
1275
|
+
|
|
1276
|
+
constructor(data?: PartialMessage<GetOrganizationSessionSettingsRequest>) {
|
|
1277
|
+
super();
|
|
1278
|
+
proto3.util.initPartial(data, this);
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1282
|
+
static readonly typeName = "scalekit.v1.organizations.GetOrganizationSessionSettingsRequest";
|
|
1283
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1284
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1285
|
+
{ no: 2, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1286
|
+
]);
|
|
1287
|
+
|
|
1288
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationSessionSettingsRequest {
|
|
1289
|
+
return new GetOrganizationSessionSettingsRequest().fromBinary(bytes, options);
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationSessionSettingsRequest {
|
|
1293
|
+
return new GetOrganizationSessionSettingsRequest().fromJson(jsonValue, options);
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationSessionSettingsRequest {
|
|
1297
|
+
return new GetOrganizationSessionSettingsRequest().fromJsonString(jsonString, options);
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
static equals(a: GetOrganizationSessionSettingsRequest | PlainMessage<GetOrganizationSessionSettingsRequest> | undefined, b: GetOrganizationSessionSettingsRequest | PlainMessage<GetOrganizationSessionSettingsRequest> | undefined): boolean {
|
|
1301
|
+
return proto3.util.equals(GetOrganizationSessionSettingsRequest, a, b);
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* @generated from message scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest
|
|
1307
|
+
*/
|
|
1308
|
+
export class CreateOrganizationSessionSettingsRequest extends Message<CreateOrganizationSessionSettingsRequest> {
|
|
1309
|
+
/**
|
|
1310
|
+
* @generated from field: string id = 1;
|
|
1311
|
+
*/
|
|
1312
|
+
id = "";
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* @generated from field: string environment_id = 2;
|
|
1316
|
+
*/
|
|
1317
|
+
environmentId = "";
|
|
1318
|
+
|
|
1319
|
+
constructor(data?: PartialMessage<CreateOrganizationSessionSettingsRequest>) {
|
|
1320
|
+
super();
|
|
1321
|
+
proto3.util.initPartial(data, this);
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1325
|
+
static readonly typeName = "scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest";
|
|
1326
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1327
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1328
|
+
{ no: 2, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1329
|
+
]);
|
|
1330
|
+
|
|
1331
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganizationSessionSettingsRequest {
|
|
1332
|
+
return new CreateOrganizationSessionSettingsRequest().fromBinary(bytes, options);
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganizationSessionSettingsRequest {
|
|
1336
|
+
return new CreateOrganizationSessionSettingsRequest().fromJson(jsonValue, options);
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganizationSessionSettingsRequest {
|
|
1340
|
+
return new CreateOrganizationSessionSettingsRequest().fromJsonString(jsonString, options);
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
static equals(a: CreateOrganizationSessionSettingsRequest | PlainMessage<CreateOrganizationSessionSettingsRequest> | undefined, b: CreateOrganizationSessionSettingsRequest | PlainMessage<CreateOrganizationSessionSettingsRequest> | undefined): boolean {
|
|
1344
|
+
return proto3.util.equals(CreateOrganizationSessionSettingsRequest, a, b);
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* @generated from message scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse
|
|
1350
|
+
*/
|
|
1351
|
+
export class CreateOrganizationSessionSettingsResponse extends Message<CreateOrganizationSessionSettingsResponse> {
|
|
1352
|
+
/**
|
|
1353
|
+
* @generated from field: string environment_id = 1;
|
|
1354
|
+
*/
|
|
1355
|
+
environmentId = "";
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* @generated from field: string organization_id = 2;
|
|
1359
|
+
*/
|
|
1360
|
+
organizationId = "";
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* @generated from field: scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3;
|
|
1364
|
+
*/
|
|
1365
|
+
sessionSettings?: OrganizationSessionSettings;
|
|
1366
|
+
|
|
1367
|
+
constructor(data?: PartialMessage<CreateOrganizationSessionSettingsResponse>) {
|
|
1368
|
+
super();
|
|
1369
|
+
proto3.util.initPartial(data, this);
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1373
|
+
static readonly typeName = "scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse";
|
|
1374
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1375
|
+
{ no: 1, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1376
|
+
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1377
|
+
{ no: 3, name: "session_settings", kind: "message", T: OrganizationSessionSettings },
|
|
1378
|
+
]);
|
|
1379
|
+
|
|
1380
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganizationSessionSettingsResponse {
|
|
1381
|
+
return new CreateOrganizationSessionSettingsResponse().fromBinary(bytes, options);
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganizationSessionSettingsResponse {
|
|
1385
|
+
return new CreateOrganizationSessionSettingsResponse().fromJson(jsonValue, options);
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganizationSessionSettingsResponse {
|
|
1389
|
+
return new CreateOrganizationSessionSettingsResponse().fromJsonString(jsonString, options);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
static equals(a: CreateOrganizationSessionSettingsResponse | PlainMessage<CreateOrganizationSessionSettingsResponse> | undefined, b: CreateOrganizationSessionSettingsResponse | PlainMessage<CreateOrganizationSessionSettingsResponse> | undefined): boolean {
|
|
1393
|
+
return proto3.util.equals(CreateOrganizationSessionSettingsResponse, a, b);
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* @generated from message scalekit.v1.organizations.GetOrganizationSessionSettingsResponse
|
|
1399
|
+
*/
|
|
1400
|
+
export class GetOrganizationSessionSettingsResponse extends Message<GetOrganizationSessionSettingsResponse> {
|
|
1401
|
+
/**
|
|
1402
|
+
* @generated from field: string environment_id = 1;
|
|
1403
|
+
*/
|
|
1404
|
+
environmentId = "";
|
|
1405
|
+
|
|
1406
|
+
/**
|
|
1407
|
+
* @generated from field: string organization_id = 2;
|
|
1408
|
+
*/
|
|
1409
|
+
organizationId = "";
|
|
1410
|
+
|
|
1411
|
+
/**
|
|
1412
|
+
* @generated from field: scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3;
|
|
1413
|
+
*/
|
|
1414
|
+
sessionSettings?: OrganizationSessionSettings;
|
|
1415
|
+
|
|
1416
|
+
constructor(data?: PartialMessage<GetOrganizationSessionSettingsResponse>) {
|
|
1417
|
+
super();
|
|
1418
|
+
proto3.util.initPartial(data, this);
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1422
|
+
static readonly typeName = "scalekit.v1.organizations.GetOrganizationSessionSettingsResponse";
|
|
1423
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1424
|
+
{ no: 1, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1425
|
+
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1426
|
+
{ no: 3, name: "session_settings", kind: "message", T: OrganizationSessionSettings },
|
|
1427
|
+
]);
|
|
1428
|
+
|
|
1429
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationSessionSettingsResponse {
|
|
1430
|
+
return new GetOrganizationSessionSettingsResponse().fromBinary(bytes, options);
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationSessionSettingsResponse {
|
|
1434
|
+
return new GetOrganizationSessionSettingsResponse().fromJson(jsonValue, options);
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationSessionSettingsResponse {
|
|
1438
|
+
return new GetOrganizationSessionSettingsResponse().fromJsonString(jsonString, options);
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
static equals(a: GetOrganizationSessionSettingsResponse | PlainMessage<GetOrganizationSessionSettingsResponse> | undefined, b: GetOrganizationSessionSettingsResponse | PlainMessage<GetOrganizationSessionSettingsResponse> | undefined): boolean {
|
|
1442
|
+
return proto3.util.equals(GetOrganizationSessionSettingsResponse, a, b);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
/**
|
|
1447
|
+
* @generated from message scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest
|
|
1448
|
+
*/
|
|
1449
|
+
export class DeleteOrganizationSessionSettingsRequest extends Message<DeleteOrganizationSessionSettingsRequest> {
|
|
1450
|
+
/**
|
|
1451
|
+
* @generated from field: string id = 1;
|
|
1452
|
+
*/
|
|
1453
|
+
id = "";
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* @generated from field: string environment_id = 2;
|
|
1457
|
+
*/
|
|
1458
|
+
environmentId = "";
|
|
1459
|
+
|
|
1460
|
+
constructor(data?: PartialMessage<DeleteOrganizationSessionSettingsRequest>) {
|
|
1461
|
+
super();
|
|
1462
|
+
proto3.util.initPartial(data, this);
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
1466
|
+
static readonly typeName = "scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest";
|
|
1467
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1468
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1469
|
+
{ no: 2, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1470
|
+
]);
|
|
1471
|
+
|
|
1472
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteOrganizationSessionSettingsRequest {
|
|
1473
|
+
return new DeleteOrganizationSessionSettingsRequest().fromBinary(bytes, options);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteOrganizationSessionSettingsRequest {
|
|
1477
|
+
return new DeleteOrganizationSessionSettingsRequest().fromJson(jsonValue, options);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteOrganizationSessionSettingsRequest {
|
|
1481
|
+
return new DeleteOrganizationSessionSettingsRequest().fromJsonString(jsonString, options);
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
static equals(a: DeleteOrganizationSessionSettingsRequest | PlainMessage<DeleteOrganizationSessionSettingsRequest> | undefined, b: DeleteOrganizationSessionSettingsRequest | PlainMessage<DeleteOrganizationSessionSettingsRequest> | undefined): boolean {
|
|
1485
|
+
return proto3.util.equals(DeleteOrganizationSessionSettingsRequest, a, b);
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1065
1489
|
/**
|
|
1066
1490
|
* @generated from message scalekit.v1.organizations.OrganizationSettings
|
|
1067
1491
|
*/
|
package/src/scalekit.ts
CHANGED
|
@@ -8,6 +8,7 @@ import CoreClient from './core';
|
|
|
8
8
|
import DirectoryClient from './directory';
|
|
9
9
|
import DomainClient from './domain';
|
|
10
10
|
import OrganizationClient from './organization';
|
|
11
|
+
import PasswordlessClient from './passwordless';
|
|
11
12
|
import { IdpInitiatedLoginClaims, IdTokenClaim, User } from './types/auth';
|
|
12
13
|
import { AuthenticationOptions, AuthenticationResponse, AuthorizationUrlOptions, GrantType } from './types/scalekit';
|
|
13
14
|
|
|
@@ -31,6 +32,7 @@ export default class ScalekitClient {
|
|
|
31
32
|
readonly connection: ConnectionClient;
|
|
32
33
|
readonly domain: DomainClient;
|
|
33
34
|
readonly directory: DirectoryClient;
|
|
35
|
+
readonly passwordless: PasswordlessClient;
|
|
34
36
|
constructor(
|
|
35
37
|
envUrl: string,
|
|
36
38
|
clientId: string,
|
|
@@ -61,6 +63,10 @@ export default class ScalekitClient {
|
|
|
61
63
|
this.grpcConnect,
|
|
62
64
|
this.coreClient
|
|
63
65
|
);
|
|
66
|
+
this.passwordless = new PasswordlessClient(
|
|
67
|
+
this.grpcConnect,
|
|
68
|
+
this.coreClient
|
|
69
|
+
);
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
/**
|