@scalekit-sdk/node 2.1.4 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/buf.gen.yaml +1 -0
- package/lib/auth.d.ts +22 -0
- package/lib/auth.js +65 -0
- package/lib/auth.js.map +1 -0
- package/lib/core.js +1 -1
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.d.ts +16 -0
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +20 -0
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +118 -0
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +126 -0
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +617 -0
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +927 -0
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +34 -4
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +43 -6
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
- 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 +277 -2
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +324 -2
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.d.ts +43 -50
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js +66 -73
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +62 -14
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +46 -17
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
- package/lib/scalekit.d.ts +22 -0
- package/lib/scalekit.js +35 -6
- package/lib/scalekit.js.map +1 -1
- package/package.json +1 -1
- package/src/auth.ts +65 -0
- package/src/core.ts +1 -1
- package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +24 -0
- package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +125 -0
- package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +1183 -0
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +50 -6
- package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +10 -1
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +504 -1
- package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +82 -81
- package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +92 -22
- package/src/scalekit.ts +42 -6
|
@@ -4,7 +4,7 @@
|
|
|
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, Struct, Timestamp, UInt32Value } from "@bufbuild/protobuf";
|
|
7
|
+
import { BoolValue, Duration, Message, proto3, protoInt64, StringValue, Struct, Timestamp, UInt32Value } from "@bufbuild/protobuf";
|
|
8
8
|
import { Domain } from "../domains/domains_pb.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -345,6 +345,11 @@ export enum ConnectionType {
|
|
|
345
345
|
* @generated from enum value: API_KEY = 8;
|
|
346
346
|
*/
|
|
347
347
|
API_KEY = 8,
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* @generated from enum value: WEBAUTHN = 9;
|
|
351
|
+
*/
|
|
352
|
+
WEBAUTHN = 9,
|
|
348
353
|
}
|
|
349
354
|
// Retrieve enum metadata with: proto3.getEnumType(ConnectionType)
|
|
350
355
|
proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.ConnectionType", [
|
|
@@ -357,6 +362,7 @@ proto3.util.setEnumType(ConnectionType, "scalekit.v1.connections.ConnectionType"
|
|
|
357
362
|
{ no: 6, name: "BASIC" },
|
|
358
363
|
{ no: 7, name: "BEARER" },
|
|
359
364
|
{ no: 8, name: "API_KEY" },
|
|
365
|
+
{ no: 9, name: "WEBAUTHN" },
|
|
360
366
|
]);
|
|
361
367
|
|
|
362
368
|
/**
|
|
@@ -501,6 +507,123 @@ proto3.util.setEnumType(ConnectionProvider, "scalekit.v1.connections.ConnectionP
|
|
|
501
507
|
{ no: 16, name: "ADFS" },
|
|
502
508
|
]);
|
|
503
509
|
|
|
510
|
+
/**
|
|
511
|
+
* @generated from message scalekit.v1.connections.UpdateConnectionUserManagementSettingsRequest
|
|
512
|
+
*/
|
|
513
|
+
export class UpdateConnectionUserManagementSettingsRequest extends Message<UpdateConnectionUserManagementSettingsRequest> {
|
|
514
|
+
/**
|
|
515
|
+
* @generated from field: string connection_id = 1;
|
|
516
|
+
*/
|
|
517
|
+
connectionId = "";
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* @generated from field: scalekit.v1.connections.ConnectionUserManagementSettings settings = 2;
|
|
521
|
+
*/
|
|
522
|
+
settings?: ConnectionUserManagementSettings;
|
|
523
|
+
|
|
524
|
+
constructor(data?: PartialMessage<UpdateConnectionUserManagementSettingsRequest>) {
|
|
525
|
+
super();
|
|
526
|
+
proto3.util.initPartial(data, this);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
530
|
+
static readonly typeName = "scalekit.v1.connections.UpdateConnectionUserManagementSettingsRequest";
|
|
531
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
532
|
+
{ no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
533
|
+
{ no: 2, name: "settings", kind: "message", T: ConnectionUserManagementSettings },
|
|
534
|
+
]);
|
|
535
|
+
|
|
536
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateConnectionUserManagementSettingsRequest {
|
|
537
|
+
return new UpdateConnectionUserManagementSettingsRequest().fromBinary(bytes, options);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateConnectionUserManagementSettingsRequest {
|
|
541
|
+
return new UpdateConnectionUserManagementSettingsRequest().fromJson(jsonValue, options);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateConnectionUserManagementSettingsRequest {
|
|
545
|
+
return new UpdateConnectionUserManagementSettingsRequest().fromJsonString(jsonString, options);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
static equals(a: UpdateConnectionUserManagementSettingsRequest | PlainMessage<UpdateConnectionUserManagementSettingsRequest> | undefined, b: UpdateConnectionUserManagementSettingsRequest | PlainMessage<UpdateConnectionUserManagementSettingsRequest> | undefined): boolean {
|
|
549
|
+
return proto3.util.equals(UpdateConnectionUserManagementSettingsRequest, a, b);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @generated from message scalekit.v1.connections.ConnectionUserManagementSettings
|
|
555
|
+
*/
|
|
556
|
+
export class ConnectionUserManagementSettings extends Message<ConnectionUserManagementSettings> {
|
|
557
|
+
/**
|
|
558
|
+
* @generated from field: google.protobuf.BoolValue sync_user_profile_on_signin = 1;
|
|
559
|
+
*/
|
|
560
|
+
syncUserProfileOnSignin?: boolean;
|
|
561
|
+
|
|
562
|
+
constructor(data?: PartialMessage<ConnectionUserManagementSettings>) {
|
|
563
|
+
super();
|
|
564
|
+
proto3.util.initPartial(data, this);
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
568
|
+
static readonly typeName = "scalekit.v1.connections.ConnectionUserManagementSettings";
|
|
569
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
570
|
+
{ no: 1, name: "sync_user_profile_on_signin", kind: "message", T: BoolValue },
|
|
571
|
+
]);
|
|
572
|
+
|
|
573
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionUserManagementSettings {
|
|
574
|
+
return new ConnectionUserManagementSettings().fromBinary(bytes, options);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionUserManagementSettings {
|
|
578
|
+
return new ConnectionUserManagementSettings().fromJson(jsonValue, options);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionUserManagementSettings {
|
|
582
|
+
return new ConnectionUserManagementSettings().fromJsonString(jsonString, options);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
static equals(a: ConnectionUserManagementSettings | PlainMessage<ConnectionUserManagementSettings> | undefined, b: ConnectionUserManagementSettings | PlainMessage<ConnectionUserManagementSettings> | undefined): boolean {
|
|
586
|
+
return proto3.util.equals(ConnectionUserManagementSettings, a, b);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* @generated from message scalekit.v1.connections.UpdateConnectionUserManagementSettingsResponse
|
|
592
|
+
*/
|
|
593
|
+
export class UpdateConnectionUserManagementSettingsResponse extends Message<UpdateConnectionUserManagementSettingsResponse> {
|
|
594
|
+
/**
|
|
595
|
+
* @generated from field: scalekit.v1.connections.ConnectionUserManagementSettings settings = 1;
|
|
596
|
+
*/
|
|
597
|
+
settings?: ConnectionUserManagementSettings;
|
|
598
|
+
|
|
599
|
+
constructor(data?: PartialMessage<UpdateConnectionUserManagementSettingsResponse>) {
|
|
600
|
+
super();
|
|
601
|
+
proto3.util.initPartial(data, this);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
605
|
+
static readonly typeName = "scalekit.v1.connections.UpdateConnectionUserManagementSettingsResponse";
|
|
606
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
607
|
+
{ no: 1, name: "settings", kind: "message", T: ConnectionUserManagementSettings },
|
|
608
|
+
]);
|
|
609
|
+
|
|
610
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateConnectionUserManagementSettingsResponse {
|
|
611
|
+
return new UpdateConnectionUserManagementSettingsResponse().fromBinary(bytes, options);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateConnectionUserManagementSettingsResponse {
|
|
615
|
+
return new UpdateConnectionUserManagementSettingsResponse().fromJson(jsonValue, options);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateConnectionUserManagementSettingsResponse {
|
|
619
|
+
return new UpdateConnectionUserManagementSettingsResponse().fromJsonString(jsonString, options);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
static equals(a: UpdateConnectionUserManagementSettingsResponse | PlainMessage<UpdateConnectionUserManagementSettingsResponse> | undefined, b: UpdateConnectionUserManagementSettingsResponse | PlainMessage<UpdateConnectionUserManagementSettingsResponse> | undefined): boolean {
|
|
623
|
+
return proto3.util.equals(UpdateConnectionUserManagementSettingsResponse, a, b);
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
|
|
504
627
|
/**
|
|
505
628
|
* @generated from message scalekit.v1.connections.AssignDomainsToConnectionRequest
|
|
506
629
|
*/
|
|
@@ -947,6 +1070,12 @@ export class Connection extends Message<Connection> {
|
|
|
947
1070
|
*/
|
|
948
1071
|
value: StaticAuthConfig;
|
|
949
1072
|
case: "staticConfig";
|
|
1073
|
+
} | {
|
|
1074
|
+
/**
|
|
1075
|
+
* @generated from field: scalekit.v1.connections.WebAuthConfiguration webauthn_config = 27;
|
|
1076
|
+
*/
|
|
1077
|
+
value: WebAuthConfiguration;
|
|
1078
|
+
case: "webauthnConfig";
|
|
950
1079
|
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
951
1080
|
|
|
952
1081
|
/**
|
|
@@ -964,6 +1093,11 @@ export class Connection extends Message<Connection> {
|
|
|
964
1093
|
*/
|
|
965
1094
|
domains: Domain[] = [];
|
|
966
1095
|
|
|
1096
|
+
/**
|
|
1097
|
+
* @generated from field: google.protobuf.BoolValue sync_user_profile_on_signin = 28;
|
|
1098
|
+
*/
|
|
1099
|
+
syncUserProfileOnSignin?: boolean;
|
|
1100
|
+
|
|
967
1101
|
constructor(data?: PartialMessage<Connection>) {
|
|
968
1102
|
super();
|
|
969
1103
|
proto3.util.initPartial(data, this);
|
|
@@ -990,9 +1124,11 @@ export class Connection extends Message<Connection> {
|
|
|
990
1124
|
{ no: 20, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
|
|
991
1125
|
{ no: 22, name: "passwordless_config", kind: "message", T: PasswordLessConfig, oneof: "settings" },
|
|
992
1126
|
{ no: 26, name: "static_config", kind: "message", T: StaticAuthConfig, oneof: "settings" },
|
|
1127
|
+
{ no: 27, name: "webauthn_config", kind: "message", T: WebAuthConfiguration, oneof: "settings" },
|
|
993
1128
|
{ no: 25, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
994
1129
|
{ no: 23, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
995
1130
|
{ no: 24, name: "domains", kind: "message", T: Domain, repeated: true },
|
|
1131
|
+
{ no: 28, name: "sync_user_profile_on_signin", kind: "message", T: BoolValue },
|
|
996
1132
|
]);
|
|
997
1133
|
|
|
998
1134
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Connection {
|
|
@@ -1208,6 +1344,12 @@ export class UpdateConnection extends Message<UpdateConnection> {
|
|
|
1208
1344
|
*/
|
|
1209
1345
|
value: StaticAuthConfig;
|
|
1210
1346
|
case: "staticConfig";
|
|
1347
|
+
} | {
|
|
1348
|
+
/**
|
|
1349
|
+
* @generated from field: scalekit.v1.connections.WebAuthConfiguration webauthn_config = 24;
|
|
1350
|
+
*/
|
|
1351
|
+
value: WebAuthConfiguration;
|
|
1352
|
+
case: "webauthnConfig";
|
|
1211
1353
|
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1212
1354
|
|
|
1213
1355
|
/**
|
|
@@ -1220,6 +1362,11 @@ export class UpdateConnection extends Message<UpdateConnection> {
|
|
|
1220
1362
|
*/
|
|
1221
1363
|
providerKey = "";
|
|
1222
1364
|
|
|
1365
|
+
/**
|
|
1366
|
+
* @generated from field: google.protobuf.BoolValue sync_user_profile_on_signin = 25;
|
|
1367
|
+
*/
|
|
1368
|
+
syncUserProfileOnSignin?: boolean;
|
|
1369
|
+
|
|
1223
1370
|
constructor(data?: PartialMessage<UpdateConnection>) {
|
|
1224
1371
|
super();
|
|
1225
1372
|
proto3.util.initPartial(data, this);
|
|
@@ -1239,8 +1386,10 @@ export class UpdateConnection extends Message<UpdateConnection> {
|
|
|
1239
1386
|
{ no: 18, name: "oauth_config", kind: "message", T: OAuthConnectionConfig, oneof: "settings" },
|
|
1240
1387
|
{ no: 20, name: "passwordless_config", kind: "message", T: PasswordLessConfig, oneof: "settings" },
|
|
1241
1388
|
{ no: 23, name: "static_config", kind: "message", T: StaticAuthConfig, oneof: "settings" },
|
|
1389
|
+
{ no: 24, name: "webauthn_config", kind: "message", T: WebAuthConfiguration, oneof: "settings" },
|
|
1242
1390
|
{ no: 22, name: "key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1243
1391
|
{ no: 21, name: "provider_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1392
|
+
{ no: 25, name: "sync_user_profile_on_signin", kind: "message", T: BoolValue },
|
|
1244
1393
|
]);
|
|
1245
1394
|
|
|
1246
1395
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateConnection {
|
|
@@ -2366,6 +2515,360 @@ export class StaticAuthConfig extends Message<StaticAuthConfig> {
|
|
|
2366
2515
|
}
|
|
2367
2516
|
}
|
|
2368
2517
|
|
|
2518
|
+
/**
|
|
2519
|
+
* WebAuthConfiguration defines WebAuthn (passkeys) configuration limited to RP and Attestation
|
|
2520
|
+
*
|
|
2521
|
+
* @generated from message scalekit.v1.connections.WebAuthConfiguration
|
|
2522
|
+
*/
|
|
2523
|
+
export class WebAuthConfiguration extends Message<WebAuthConfiguration> {
|
|
2524
|
+
/**
|
|
2525
|
+
* @generated from field: scalekit.v1.connections.WebAuthConfiguration.Rp rp = 1;
|
|
2526
|
+
*/
|
|
2527
|
+
rp?: WebAuthConfiguration_Rp;
|
|
2528
|
+
|
|
2529
|
+
/**
|
|
2530
|
+
* @generated from field: scalekit.v1.connections.WebAuthConfiguration.Attestation attestation = 2;
|
|
2531
|
+
*/
|
|
2532
|
+
attestation?: WebAuthConfiguration_Attestation;
|
|
2533
|
+
|
|
2534
|
+
/**
|
|
2535
|
+
* @generated from field: scalekit.v1.connections.WebAuthConfiguration.Authenticators authenticators = 3;
|
|
2536
|
+
*/
|
|
2537
|
+
authenticators?: WebAuthConfiguration_Authenticators;
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* @generated from field: scalekit.v1.connections.WebAuthConfiguration.AuthenticatorSelection authenticator_selection = 4;
|
|
2541
|
+
*/
|
|
2542
|
+
authenticatorSelection?: WebAuthConfiguration_AuthenticatorSelection;
|
|
2543
|
+
|
|
2544
|
+
/**
|
|
2545
|
+
* @generated from field: scalekit.v1.connections.WebAuthConfiguration.Timeout timeout = 5;
|
|
2546
|
+
*/
|
|
2547
|
+
timeout?: WebAuthConfiguration_Timeout;
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* @generated from field: bool enable_auto_registration = 6;
|
|
2551
|
+
*/
|
|
2552
|
+
enableAutoRegistration = false;
|
|
2553
|
+
|
|
2554
|
+
/**
|
|
2555
|
+
* @generated from field: bool show_passkey_button = 7;
|
|
2556
|
+
*/
|
|
2557
|
+
showPasskeyButton = false;
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* @generated from field: bool enable_conditional_login = 8;
|
|
2561
|
+
*/
|
|
2562
|
+
enableConditionalLogin = false;
|
|
2563
|
+
|
|
2564
|
+
constructor(data?: PartialMessage<WebAuthConfiguration>) {
|
|
2565
|
+
super();
|
|
2566
|
+
proto3.util.initPartial(data, this);
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2570
|
+
static readonly typeName = "scalekit.v1.connections.WebAuthConfiguration";
|
|
2571
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2572
|
+
{ no: 1, name: "rp", kind: "message", T: WebAuthConfiguration_Rp },
|
|
2573
|
+
{ no: 2, name: "attestation", kind: "message", T: WebAuthConfiguration_Attestation },
|
|
2574
|
+
{ no: 3, name: "authenticators", kind: "message", T: WebAuthConfiguration_Authenticators },
|
|
2575
|
+
{ no: 4, name: "authenticator_selection", kind: "message", T: WebAuthConfiguration_AuthenticatorSelection },
|
|
2576
|
+
{ no: 5, name: "timeout", kind: "message", T: WebAuthConfiguration_Timeout },
|
|
2577
|
+
{ no: 6, name: "enable_auto_registration", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2578
|
+
{ no: 7, name: "show_passkey_button", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2579
|
+
{ no: 8, name: "enable_conditional_login", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2580
|
+
]);
|
|
2581
|
+
|
|
2582
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthConfiguration {
|
|
2583
|
+
return new WebAuthConfiguration().fromBinary(bytes, options);
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthConfiguration {
|
|
2587
|
+
return new WebAuthConfiguration().fromJson(jsonValue, options);
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthConfiguration {
|
|
2591
|
+
return new WebAuthConfiguration().fromJsonString(jsonString, options);
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
static equals(a: WebAuthConfiguration | PlainMessage<WebAuthConfiguration> | undefined, b: WebAuthConfiguration | PlainMessage<WebAuthConfiguration> | undefined): boolean {
|
|
2595
|
+
return proto3.util.equals(WebAuthConfiguration, a, b);
|
|
2596
|
+
}
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
/**
|
|
2600
|
+
* Rp contains relying party identifiers and origins
|
|
2601
|
+
*
|
|
2602
|
+
* @generated from message scalekit.v1.connections.WebAuthConfiguration.Rp
|
|
2603
|
+
*/
|
|
2604
|
+
export class WebAuthConfiguration_Rp extends Message<WebAuthConfiguration_Rp> {
|
|
2605
|
+
/**
|
|
2606
|
+
* Relying party IDs (derived from environment domain and verified custom domain)
|
|
2607
|
+
* At least one required; must be hostnames without scheme or path
|
|
2608
|
+
*
|
|
2609
|
+
* @generated from field: repeated string ids = 1;
|
|
2610
|
+
*/
|
|
2611
|
+
ids: string[] = [];
|
|
2612
|
+
|
|
2613
|
+
/**
|
|
2614
|
+
* Allowed origins corresponding to the RP IDs (https://<domain>)
|
|
2615
|
+
* At least one required; must be HTTPS origins
|
|
2616
|
+
*
|
|
2617
|
+
* @generated from field: repeated string origins = 2;
|
|
2618
|
+
*/
|
|
2619
|
+
origins: string[] = [];
|
|
2620
|
+
|
|
2621
|
+
constructor(data?: PartialMessage<WebAuthConfiguration_Rp>) {
|
|
2622
|
+
super();
|
|
2623
|
+
proto3.util.initPartial(data, this);
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2626
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2627
|
+
static readonly typeName = "scalekit.v1.connections.WebAuthConfiguration.Rp";
|
|
2628
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2629
|
+
{ no: 1, name: "ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2630
|
+
{ no: 2, name: "origins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2631
|
+
]);
|
|
2632
|
+
|
|
2633
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthConfiguration_Rp {
|
|
2634
|
+
return new WebAuthConfiguration_Rp().fromBinary(bytes, options);
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthConfiguration_Rp {
|
|
2638
|
+
return new WebAuthConfiguration_Rp().fromJson(jsonValue, options);
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthConfiguration_Rp {
|
|
2642
|
+
return new WebAuthConfiguration_Rp().fromJsonString(jsonString, options);
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
static equals(a: WebAuthConfiguration_Rp | PlainMessage<WebAuthConfiguration_Rp> | undefined, b: WebAuthConfiguration_Rp | PlainMessage<WebAuthConfiguration_Rp> | undefined): boolean {
|
|
2646
|
+
return proto3.util.equals(WebAuthConfiguration_Rp, a, b);
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
/**
|
|
2651
|
+
* Attestation preferences for registration
|
|
2652
|
+
*
|
|
2653
|
+
* @generated from message scalekit.v1.connections.WebAuthConfiguration.Attestation
|
|
2654
|
+
*/
|
|
2655
|
+
export class WebAuthConfiguration_Attestation extends Message<WebAuthConfiguration_Attestation> {
|
|
2656
|
+
/**
|
|
2657
|
+
* Conveyance preference
|
|
2658
|
+
*
|
|
2659
|
+
* @generated from field: google.protobuf.StringValue conveyance_preference = 1;
|
|
2660
|
+
*/
|
|
2661
|
+
conveyancePreference?: string;
|
|
2662
|
+
|
|
2663
|
+
/**
|
|
2664
|
+
* Enterprise-approved IDs (optional allowlist when enterprise attestation is used)
|
|
2665
|
+
*
|
|
2666
|
+
* @generated from field: repeated string enterprise_approved_ids = 2;
|
|
2667
|
+
*/
|
|
2668
|
+
enterpriseApprovedIds: string[] = [];
|
|
2669
|
+
|
|
2670
|
+
constructor(data?: PartialMessage<WebAuthConfiguration_Attestation>) {
|
|
2671
|
+
super();
|
|
2672
|
+
proto3.util.initPartial(data, this);
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2676
|
+
static readonly typeName = "scalekit.v1.connections.WebAuthConfiguration.Attestation";
|
|
2677
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2678
|
+
{ no: 1, name: "conveyance_preference", kind: "message", T: StringValue },
|
|
2679
|
+
{ no: 2, name: "enterprise_approved_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2680
|
+
]);
|
|
2681
|
+
|
|
2682
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthConfiguration_Attestation {
|
|
2683
|
+
return new WebAuthConfiguration_Attestation().fromBinary(bytes, options);
|
|
2684
|
+
}
|
|
2685
|
+
|
|
2686
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthConfiguration_Attestation {
|
|
2687
|
+
return new WebAuthConfiguration_Attestation().fromJson(jsonValue, options);
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthConfiguration_Attestation {
|
|
2691
|
+
return new WebAuthConfiguration_Attestation().fromJsonString(jsonString, options);
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
static equals(a: WebAuthConfiguration_Attestation | PlainMessage<WebAuthConfiguration_Attestation> | undefined, b: WebAuthConfiguration_Attestation | PlainMessage<WebAuthConfiguration_Attestation> | undefined): boolean {
|
|
2695
|
+
return proto3.util.equals(WebAuthConfiguration_Attestation, a, b);
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
/**
|
|
2700
|
+
* @generated from message scalekit.v1.connections.WebAuthConfiguration.Authenticators
|
|
2701
|
+
*/
|
|
2702
|
+
export class WebAuthConfiguration_Authenticators extends Message<WebAuthConfiguration_Authenticators> {
|
|
2703
|
+
/**
|
|
2704
|
+
* @generated from field: google.protobuf.BoolValue validate_entry = 1;
|
|
2705
|
+
*/
|
|
2706
|
+
validateEntry?: boolean;
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* @generated from field: google.protobuf.BoolValue validate_entry_permit_zero_aaguid = 2;
|
|
2710
|
+
*/
|
|
2711
|
+
validateEntryPermitZeroAaguid?: boolean;
|
|
2712
|
+
|
|
2713
|
+
/**
|
|
2714
|
+
* @generated from field: google.protobuf.BoolValue validate_anchors = 3;
|
|
2715
|
+
*/
|
|
2716
|
+
validateAnchors?: boolean;
|
|
2717
|
+
|
|
2718
|
+
/**
|
|
2719
|
+
* @generated from field: google.protobuf.BoolValue validate_status = 4;
|
|
2720
|
+
*/
|
|
2721
|
+
validateStatus?: boolean;
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* @generated from field: google.protobuf.BoolValue validate_attestation_type = 5;
|
|
2725
|
+
*/
|
|
2726
|
+
validateAttestationType?: boolean;
|
|
2727
|
+
|
|
2728
|
+
/**
|
|
2729
|
+
* @generated from field: repeated string desired_authenticator_status = 6;
|
|
2730
|
+
*/
|
|
2731
|
+
desiredAuthenticatorStatus: string[] = [];
|
|
2732
|
+
|
|
2733
|
+
/**
|
|
2734
|
+
* @generated from field: repeated string undesired_authenticator_status = 7;
|
|
2735
|
+
*/
|
|
2736
|
+
undesiredAuthenticatorStatus: string[] = [];
|
|
2737
|
+
|
|
2738
|
+
constructor(data?: PartialMessage<WebAuthConfiguration_Authenticators>) {
|
|
2739
|
+
super();
|
|
2740
|
+
proto3.util.initPartial(data, this);
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2744
|
+
static readonly typeName = "scalekit.v1.connections.WebAuthConfiguration.Authenticators";
|
|
2745
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2746
|
+
{ no: 1, name: "validate_entry", kind: "message", T: BoolValue },
|
|
2747
|
+
{ no: 2, name: "validate_entry_permit_zero_aaguid", kind: "message", T: BoolValue },
|
|
2748
|
+
{ no: 3, name: "validate_anchors", kind: "message", T: BoolValue },
|
|
2749
|
+
{ no: 4, name: "validate_status", kind: "message", T: BoolValue },
|
|
2750
|
+
{ no: 5, name: "validate_attestation_type", kind: "message", T: BoolValue },
|
|
2751
|
+
{ no: 6, name: "desired_authenticator_status", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2752
|
+
{ no: 7, name: "undesired_authenticator_status", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2753
|
+
]);
|
|
2754
|
+
|
|
2755
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthConfiguration_Authenticators {
|
|
2756
|
+
return new WebAuthConfiguration_Authenticators().fromBinary(bytes, options);
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthConfiguration_Authenticators {
|
|
2760
|
+
return new WebAuthConfiguration_Authenticators().fromJson(jsonValue, options);
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthConfiguration_Authenticators {
|
|
2764
|
+
return new WebAuthConfiguration_Authenticators().fromJsonString(jsonString, options);
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
static equals(a: WebAuthConfiguration_Authenticators | PlainMessage<WebAuthConfiguration_Authenticators> | undefined, b: WebAuthConfiguration_Authenticators | PlainMessage<WebAuthConfiguration_Authenticators> | undefined): boolean {
|
|
2768
|
+
return proto3.util.equals(WebAuthConfiguration_Authenticators, a, b);
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
/**
|
|
2773
|
+
* @generated from message scalekit.v1.connections.WebAuthConfiguration.AuthenticatorSelection
|
|
2774
|
+
*/
|
|
2775
|
+
export class WebAuthConfiguration_AuthenticatorSelection extends Message<WebAuthConfiguration_AuthenticatorSelection> {
|
|
2776
|
+
/**
|
|
2777
|
+
* User verification requirement
|
|
2778
|
+
*
|
|
2779
|
+
* @generated from field: google.protobuf.StringValue user_verification = 1;
|
|
2780
|
+
*/
|
|
2781
|
+
userVerification?: string;
|
|
2782
|
+
|
|
2783
|
+
/**
|
|
2784
|
+
* @generated from field: google.protobuf.StringValue authenticator_attachment = 2;
|
|
2785
|
+
*/
|
|
2786
|
+
authenticatorAttachment?: string;
|
|
2787
|
+
|
|
2788
|
+
constructor(data?: PartialMessage<WebAuthConfiguration_AuthenticatorSelection>) {
|
|
2789
|
+
super();
|
|
2790
|
+
proto3.util.initPartial(data, this);
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2794
|
+
static readonly typeName = "scalekit.v1.connections.WebAuthConfiguration.AuthenticatorSelection";
|
|
2795
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2796
|
+
{ no: 1, name: "user_verification", kind: "message", T: StringValue },
|
|
2797
|
+
{ no: 2, name: "authenticator_attachment", kind: "message", T: StringValue },
|
|
2798
|
+
]);
|
|
2799
|
+
|
|
2800
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthConfiguration_AuthenticatorSelection {
|
|
2801
|
+
return new WebAuthConfiguration_AuthenticatorSelection().fromBinary(bytes, options);
|
|
2802
|
+
}
|
|
2803
|
+
|
|
2804
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthConfiguration_AuthenticatorSelection {
|
|
2805
|
+
return new WebAuthConfiguration_AuthenticatorSelection().fromJson(jsonValue, options);
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthConfiguration_AuthenticatorSelection {
|
|
2809
|
+
return new WebAuthConfiguration_AuthenticatorSelection().fromJsonString(jsonString, options);
|
|
2810
|
+
}
|
|
2811
|
+
|
|
2812
|
+
static equals(a: WebAuthConfiguration_AuthenticatorSelection | PlainMessage<WebAuthConfiguration_AuthenticatorSelection> | undefined, b: WebAuthConfiguration_AuthenticatorSelection | PlainMessage<WebAuthConfiguration_AuthenticatorSelection> | undefined): boolean {
|
|
2813
|
+
return proto3.util.equals(WebAuthConfiguration_AuthenticatorSelection, a, b);
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
/**
|
|
2818
|
+
* @generated from message scalekit.v1.connections.WebAuthConfiguration.Timeout
|
|
2819
|
+
*/
|
|
2820
|
+
export class WebAuthConfiguration_Timeout extends Message<WebAuthConfiguration_Timeout> {
|
|
2821
|
+
/**
|
|
2822
|
+
* @generated from field: google.protobuf.Duration registration = 1;
|
|
2823
|
+
*/
|
|
2824
|
+
registration?: Duration;
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* @generated from field: google.protobuf.Duration registration_uvd = 2;
|
|
2828
|
+
*/
|
|
2829
|
+
registrationUvd?: Duration;
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* @generated from field: google.protobuf.Duration login = 3;
|
|
2833
|
+
*/
|
|
2834
|
+
login?: Duration;
|
|
2835
|
+
|
|
2836
|
+
/**
|
|
2837
|
+
* @generated from field: google.protobuf.Duration login_uvd = 4;
|
|
2838
|
+
*/
|
|
2839
|
+
loginUvd?: Duration;
|
|
2840
|
+
|
|
2841
|
+
constructor(data?: PartialMessage<WebAuthConfiguration_Timeout>) {
|
|
2842
|
+
super();
|
|
2843
|
+
proto3.util.initPartial(data, this);
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2847
|
+
static readonly typeName = "scalekit.v1.connections.WebAuthConfiguration.Timeout";
|
|
2848
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2849
|
+
{ no: 1, name: "registration", kind: "message", T: Duration },
|
|
2850
|
+
{ no: 2, name: "registration_uvd", kind: "message", T: Duration },
|
|
2851
|
+
{ no: 3, name: "login", kind: "message", T: Duration },
|
|
2852
|
+
{ no: 4, name: "login_uvd", kind: "message", T: Duration },
|
|
2853
|
+
]);
|
|
2854
|
+
|
|
2855
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WebAuthConfiguration_Timeout {
|
|
2856
|
+
return new WebAuthConfiguration_Timeout().fromBinary(bytes, options);
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WebAuthConfiguration_Timeout {
|
|
2860
|
+
return new WebAuthConfiguration_Timeout().fromJson(jsonValue, options);
|
|
2861
|
+
}
|
|
2862
|
+
|
|
2863
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WebAuthConfiguration_Timeout {
|
|
2864
|
+
return new WebAuthConfiguration_Timeout().fromJsonString(jsonString, options);
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
static equals(a: WebAuthConfiguration_Timeout | PlainMessage<WebAuthConfiguration_Timeout> | undefined, b: WebAuthConfiguration_Timeout | PlainMessage<WebAuthConfiguration_Timeout> | undefined): boolean {
|
|
2868
|
+
return proto3.util.equals(WebAuthConfiguration_Timeout, a, b);
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2369
2872
|
/**
|
|
2370
2873
|
* @generated from message scalekit.v1.connections.SAMLConnectionConfigRequest
|
|
2371
2874
|
*/
|