@scalekit-sdk/node 2.2.0-beta.1 → 2.2.1
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 +5 -5
- package/{reference.md → REFERENCE.md} +530 -748
- package/lib/auth.d.ts +9 -6
- package/lib/auth.js +4 -20
- package/lib/auth.js.map +1 -1
- package/lib/connect.d.ts +3 -3
- package/lib/connect.js +1 -2
- package/lib/connect.js.map +1 -1
- package/lib/connection.d.ts +2 -2
- package/lib/connection.js +4 -4
- package/lib/connection.js.map +1 -1
- package/lib/core.js +2 -2
- package/lib/core.js.map +1 -1
- package/lib/directory.d.ts +2 -2
- package/lib/directory.js +7 -7
- package/lib/directory.js.map +1 -1
- package/lib/domain.d.ts +6 -5
- package/lib/domain.js +4 -5
- package/lib/domain.js.map +1 -1
- package/lib/errors/base-exception.d.ts +1 -1
- package/lib/errors/base-exception.js +1 -1
- package/lib/errors/base-exception.js.map +1 -1
- package/lib/organization.d.ts +10 -9
- package/lib/organization.js +11 -9
- package/lib/organization.js.map +1 -1
- package/lib/passwordless.d.ts +2 -2
- package/lib/passwordless.js +8 -7
- package/lib/passwordless.js.map +1 -1
- package/lib/permission.d.ts +6 -5
- package/lib/permission.js +10 -11
- package/lib/permission.js.map +1 -1
- package/lib/pkg/grpc/buf/validate/validate_pb.d.ts +7 -0
- package/lib/pkg/grpc/buf/validate/validate_pb.js +25 -0
- package/lib/pkg/grpc/buf/validate/validate_pb.js.map +1 -0
- package/lib/pkg/grpc/google/api/annotations_pb.d.ts +7 -0
- package/lib/pkg/grpc/google/api/annotations_pb.js +25 -0
- package/lib/pkg/grpc/google/api/annotations_pb.js.map +1 -0
- package/lib/pkg/grpc/google/api/field_behavior_pb.d.ts +7 -0
- package/lib/pkg/grpc/google/api/field_behavior_pb.js +25 -0
- package/lib/pkg/grpc/google/api/field_behavior_pb.js.map +1 -0
- package/lib/pkg/grpc/google/api/visibility_pb.d.ts +7 -0
- package/lib/pkg/grpc/google/api/visibility_pb.js +25 -0
- package/lib/pkg/grpc/google/api/visibility_pb.js.map +1 -0
- package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.d.ts +7 -0
- package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js +25 -0
- package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js.map +1 -0
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.d.ts +48 -42
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +27 -263
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +371 -325
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +132 -835
- package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.d.ts +113 -87
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js +45 -201
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.d.ts +262 -265
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js +92 -938
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +162 -157
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +42 -313
- package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +1488 -1459
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +353 -2362
- package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.d.ts +520 -483
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js +224 -1555
- package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +219 -191
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +96 -553
- package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +76 -102
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +37 -393
- package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +36 -26
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +20 -69
- package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +447 -400
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +163 -1238
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.d.ts +622 -556
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js +201 -1718
- package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.d.ts +135 -132
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js +55 -518
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js.map +1 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +445 -413
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +142 -1490
- package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
- package/lib/role.d.ts +8 -7
- package/lib/role.js +14 -14
- package/lib/role.js.map +1 -1
- package/lib/scalekit.d.ts +0 -4
- package/lib/scalekit.js +0 -4
- package/lib/scalekit.js.map +1 -1
- package/lib/session.js +15 -24
- package/lib/session.js.map +1 -1
- package/lib/user.d.ts +6 -5
- package/lib/user.js +17 -20
- package/lib/user.js.map +1 -1
- package/lib/webauthn.js +6 -5
- package/lib/webauthn.js.map +1 -1
- package/package.json +12 -10
- package/.github/dependabot.yml +0 -10
- package/.nvmrc +0 -1
- package/buf.gen.yaml +0 -24
- package/jest.config.js +0 -15
- package/lib/connected-accounts.d.ts +0 -119
- package/lib/connected-accounts.js +0 -241
- package/lib/connected-accounts.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.d.ts +0 -19
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js +0 -27
- package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +0 -118
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +0 -126
- package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.d.ts +0 -37
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js +0 -45
- package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.d.ts +0 -82
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js +0 -90
- package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.d.ts +0 -87
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js +0 -95
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.d.ts +0 -718
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js +0 -893
- package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +0 -172
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +0 -180
- package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.d.ts +0 -154
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js +0 -162
- package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +0 -73
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +0 -81
- package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +0 -171
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +0 -179
- package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.d.ts +0 -250
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js +0 -258
- package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.d.ts +0 -46
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js +0 -54
- package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.d.ts +0 -75
- package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js +0 -83
- package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.d.ts +0 -431
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js +0 -627
- package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js.map +0 -1
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.d.ts +0 -173
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.js +0 -181
- package/lib/pkg/grpc/scalekit/v1/users/users_connect.js.map +0 -1
- package/lib/tools.d.ts +0 -75
- package/lib/tools.js +0 -127
- package/lib/tools.js.map +0 -1
- package/src/auth.ts +0 -99
- package/src/connect.ts +0 -33
- package/src/connected-accounts.ts +0 -358
- package/src/connection.ts +0 -267
- package/src/constants/user.ts +0 -22
- package/src/core.ts +0 -139
- package/src/directory.ts +0 -431
- package/src/domain.ts +0 -272
- package/src/errors/base-exception.ts +0 -262
- package/src/errors/index.ts +0 -3
- package/src/errors/specific-exceptions.ts +0 -88
- package/src/index.ts +0 -10
- package/src/organization.ts +0 -568
- package/src/passwordless.ts +0 -138
- package/src/permission.ts +0 -310
- package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.ts +0 -26
- package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +0 -342
- package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +0 -125
- package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +0 -1213
- package/src/pkg/grpc/scalekit/v1/auth/passwordless_connect.ts +0 -44
- package/src/pkg/grpc/scalekit/v1/auth/passwordless_pb.ts +0 -336
- package/src/pkg/grpc/scalekit/v1/auth/webauthn_connect.ts +0 -89
- package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +0 -1263
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +0 -573
- package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.ts +0 -94
- package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.ts +0 -1294
- package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +0 -179
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +0 -3846
- package/src/pkg/grpc/scalekit/v1/directories/directories_connect.ts +0 -161
- package/src/pkg/grpc/scalekit/v1/directories/directories_pb.ts +0 -2119
- package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +0 -80
- package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +0 -855
- package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +0 -524
- package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +0 -230
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +0 -178
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +0 -1766
- package/src/pkg/grpc/scalekit/v1/roles/roles_connect.ts +0 -257
- package/src/pkg/grpc/scalekit/v1/roles/roles_pb.ts +0 -2395
- package/src/pkg/grpc/scalekit/v1/sessions/sessions_connect.ts +0 -53
- package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +0 -749
- package/src/pkg/grpc/scalekit/v1/tools/tools_connect.ts +0 -82
- package/src/pkg/grpc/scalekit/v1/tools/tools_pb.ts +0 -847
- package/src/pkg/grpc/scalekit/v1/users/users_connect.ts +0 -180
- package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +0 -2151
- package/src/role.ts +0 -461
- package/src/scalekit.ts +0 -809
- package/src/session.ts +0 -337
- package/src/tools.ts +0 -166
- package/src/types/auth.ts +0 -73
- package/src/types/organization.ts +0 -12
- package/src/types/scalekit.ts +0 -50
- package/src/types/user.ts +0 -21
- package/src/user.ts +0 -825
- package/src/webauthn.ts +0 -98
- package/tests/README.md +0 -25
- package/tests/connected-accounts.test.ts +0 -472
- package/tests/connection.test.ts +0 -42
- package/tests/directory.test.ts +0 -46
- package/tests/domain.test.ts +0 -293
- package/tests/organization.test.ts +0 -81
- package/tests/passwordless.test.ts +0 -108
- package/tests/permission.test.ts +0 -399
- package/tests/role.test.ts +0 -323
- package/tests/scalekit.test.ts +0 -104
- package/tests/setup.ts +0 -34
- package/tests/tools.test.ts +0 -239
- package/tests/users.test.ts +0 -168
- package/tests/utils/test-data.ts +0 -481
- package/tsconfig.json +0 -19
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
-
// @generated from file scalekit/v1/auditlogs/auditlogs.proto (package scalekit.v1.auditlogs, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
|
|
6
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
-
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @generated from message scalekit.v1.auditlogs.ListAuthLogRequest
|
|
11
|
-
*/
|
|
12
|
-
export class ListAuthLogRequest extends Message<ListAuthLogRequest> {
|
|
13
|
-
/**
|
|
14
|
-
* @generated from field: uint32 page_size = 1;
|
|
15
|
-
*/
|
|
16
|
-
pageSize = 0;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @generated from field: string page_token = 2;
|
|
20
|
-
*/
|
|
21
|
-
pageToken = "";
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @generated from field: string email = 3;
|
|
25
|
-
*/
|
|
26
|
-
email = "";
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @generated from field: repeated string status = 4;
|
|
30
|
-
*/
|
|
31
|
-
status: string[] = [];
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @generated from field: google.protobuf.Timestamp start_time = 5;
|
|
35
|
-
*/
|
|
36
|
-
startTime?: Timestamp;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @generated from field: google.protobuf.Timestamp end_time = 6;
|
|
40
|
-
*/
|
|
41
|
-
endTime?: Timestamp;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @generated from field: string resource_id = 7;
|
|
45
|
-
*/
|
|
46
|
-
resourceId = "";
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @generated from field: string connected_account_identifier = 8;
|
|
50
|
-
*/
|
|
51
|
-
connectedAccountIdentifier = "";
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @generated from field: string client_id = 9;
|
|
55
|
-
*/
|
|
56
|
-
clientId = "";
|
|
57
|
-
|
|
58
|
-
constructor(data?: PartialMessage<ListAuthLogRequest>) {
|
|
59
|
-
super();
|
|
60
|
-
proto3.util.initPartial(data, this);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
64
|
-
static readonly typeName = "scalekit.v1.auditlogs.ListAuthLogRequest";
|
|
65
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
66
|
-
{ no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
67
|
-
{ no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
68
|
-
{ no: 3, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
69
|
-
{ no: 4, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
70
|
-
{ no: 5, name: "start_time", kind: "message", T: Timestamp },
|
|
71
|
-
{ no: 6, name: "end_time", kind: "message", T: Timestamp },
|
|
72
|
-
{ no: 7, name: "resource_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
73
|
-
{ no: 8, name: "connected_account_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
74
|
-
{ no: 9, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
-
]);
|
|
76
|
-
|
|
77
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAuthLogRequest {
|
|
78
|
-
return new ListAuthLogRequest().fromBinary(bytes, options);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAuthLogRequest {
|
|
82
|
-
return new ListAuthLogRequest().fromJson(jsonValue, options);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAuthLogRequest {
|
|
86
|
-
return new ListAuthLogRequest().fromJsonString(jsonString, options);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
static equals(a: ListAuthLogRequest | PlainMessage<ListAuthLogRequest> | undefined, b: ListAuthLogRequest | PlainMessage<ListAuthLogRequest> | undefined): boolean {
|
|
90
|
-
return proto3.util.equals(ListAuthLogRequest, a, b);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* @generated from message scalekit.v1.auditlogs.ListAuthLogResponse
|
|
96
|
-
*/
|
|
97
|
-
export class ListAuthLogResponse extends Message<ListAuthLogResponse> {
|
|
98
|
-
/**
|
|
99
|
-
* @generated from field: string next_page_token = 1;
|
|
100
|
-
*/
|
|
101
|
-
nextPageToken = "";
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @generated from field: string prev_page_token = 2;
|
|
105
|
-
*/
|
|
106
|
-
prevPageToken = "";
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @generated from field: uint32 total_size = 3;
|
|
110
|
-
*/
|
|
111
|
-
totalSize = 0;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* @generated from field: repeated scalekit.v1.auditlogs.AuthLogRequest authRequests = 4;
|
|
115
|
-
*/
|
|
116
|
-
authRequests: AuthLogRequest[] = [];
|
|
117
|
-
|
|
118
|
-
constructor(data?: PartialMessage<ListAuthLogResponse>) {
|
|
119
|
-
super();
|
|
120
|
-
proto3.util.initPartial(data, this);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
124
|
-
static readonly typeName = "scalekit.v1.auditlogs.ListAuthLogResponse";
|
|
125
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
126
|
-
{ no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
127
|
-
{ no: 2, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
128
|
-
{ no: 3, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
129
|
-
{ no: 4, name: "authRequests", kind: "message", T: AuthLogRequest, repeated: true },
|
|
130
|
-
]);
|
|
131
|
-
|
|
132
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAuthLogResponse {
|
|
133
|
-
return new ListAuthLogResponse().fromBinary(bytes, options);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAuthLogResponse {
|
|
137
|
-
return new ListAuthLogResponse().fromJson(jsonValue, options);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAuthLogResponse {
|
|
141
|
-
return new ListAuthLogResponse().fromJsonString(jsonString, options);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
static equals(a: ListAuthLogResponse | PlainMessage<ListAuthLogResponse> | undefined, b: ListAuthLogResponse | PlainMessage<ListAuthLogResponse> | undefined): boolean {
|
|
145
|
-
return proto3.util.equals(ListAuthLogResponse, a, b);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* @generated from message scalekit.v1.auditlogs.AuthLogRequest
|
|
151
|
-
*/
|
|
152
|
-
export class AuthLogRequest extends Message<AuthLogRequest> {
|
|
153
|
-
/**
|
|
154
|
-
* @generated from field: string organization_id = 1;
|
|
155
|
-
*/
|
|
156
|
-
organizationId = "";
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @generated from field: string environment_id = 2;
|
|
160
|
-
*/
|
|
161
|
-
environmentId = "";
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* @generated from field: string connection_id = 3;
|
|
165
|
-
*/
|
|
166
|
-
connectionId = "";
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* @generated from field: string auth_request_id = 4;
|
|
170
|
-
*/
|
|
171
|
-
authRequestId = "";
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @generated from field: string email = 5;
|
|
175
|
-
*/
|
|
176
|
-
email = "";
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* @generated from field: string connection_type = 6;
|
|
180
|
-
*/
|
|
181
|
-
connectionType = "";
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* @generated from field: string connection_provider = 7;
|
|
185
|
-
*/
|
|
186
|
-
connectionProvider = "";
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* @generated from field: string status = 8;
|
|
190
|
-
*/
|
|
191
|
-
status = "";
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* @generated from field: google.protobuf.Timestamp timestamp = 9;
|
|
195
|
-
*/
|
|
196
|
-
timestamp?: Timestamp;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* @generated from field: repeated scalekit.v1.auditlogs.ConnectionDetails connection_details = 10;
|
|
200
|
-
*/
|
|
201
|
-
connectionDetails: ConnectionDetails[] = [];
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* @generated from field: string workflow = 11;
|
|
205
|
-
*/
|
|
206
|
-
workflow = "";
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* @generated from field: string resource_id = 12;
|
|
210
|
-
*/
|
|
211
|
-
resourceId = "";
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* @generated from field: string resource_name = 13;
|
|
215
|
-
*/
|
|
216
|
-
resourceName = "";
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* @generated from field: string resource_type = 14;
|
|
220
|
-
*/
|
|
221
|
-
resourceType = "";
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* @generated from field: string connected_account_identifier = 15;
|
|
225
|
-
*/
|
|
226
|
-
connectedAccountIdentifier = "";
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* @generated from field: string client_id = 16;
|
|
230
|
-
*/
|
|
231
|
-
clientId = "";
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* @generated from field: string client_name = 17;
|
|
235
|
-
*/
|
|
236
|
-
clientName = "";
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* @generated from field: string client_type = 18;
|
|
240
|
-
*/
|
|
241
|
-
clientType = "";
|
|
242
|
-
|
|
243
|
-
constructor(data?: PartialMessage<AuthLogRequest>) {
|
|
244
|
-
super();
|
|
245
|
-
proto3.util.initPartial(data, this);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
249
|
-
static readonly typeName = "scalekit.v1.auditlogs.AuthLogRequest";
|
|
250
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
251
|
-
{ no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
252
|
-
{ no: 2, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
253
|
-
{ no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
254
|
-
{ no: 4, name: "auth_request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
255
|
-
{ no: 5, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
256
|
-
{ no: 6, name: "connection_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
257
|
-
{ no: 7, name: "connection_provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
258
|
-
{ no: 8, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
259
|
-
{ no: 9, name: "timestamp", kind: "message", T: Timestamp },
|
|
260
|
-
{ no: 10, name: "connection_details", kind: "message", T: ConnectionDetails, repeated: true },
|
|
261
|
-
{ no: 11, name: "workflow", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
262
|
-
{ no: 12, name: "resource_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
263
|
-
{ no: 13, name: "resource_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
264
|
-
{ no: 14, name: "resource_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
265
|
-
{ no: 15, name: "connected_account_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
266
|
-
{ no: 16, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
267
|
-
{ no: 17, name: "client_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
268
|
-
{ no: 18, name: "client_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
269
|
-
]);
|
|
270
|
-
|
|
271
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuthLogRequest {
|
|
272
|
-
return new AuthLogRequest().fromBinary(bytes, options);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuthLogRequest {
|
|
276
|
-
return new AuthLogRequest().fromJson(jsonValue, options);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuthLogRequest {
|
|
280
|
-
return new AuthLogRequest().fromJsonString(jsonString, options);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
static equals(a: AuthLogRequest | PlainMessage<AuthLogRequest> | undefined, b: AuthLogRequest | PlainMessage<AuthLogRequest> | undefined): boolean {
|
|
284
|
-
return proto3.util.equals(AuthLogRequest, a, b);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* @generated from message scalekit.v1.auditlogs.ConnectionDetails
|
|
290
|
-
*/
|
|
291
|
-
export class ConnectionDetails extends Message<ConnectionDetails> {
|
|
292
|
-
/**
|
|
293
|
-
* @generated from field: string connection_id = 1;
|
|
294
|
-
*/
|
|
295
|
-
connectionId = "";
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* @generated from field: string organization_id = 2;
|
|
299
|
-
*/
|
|
300
|
-
organizationId = "";
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* @generated from field: string connection_type = 3;
|
|
304
|
-
*/
|
|
305
|
-
connectionType = "";
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* @generated from field: string connection_provider = 4;
|
|
309
|
-
*/
|
|
310
|
-
connectionProvider = "";
|
|
311
|
-
|
|
312
|
-
constructor(data?: PartialMessage<ConnectionDetails>) {
|
|
313
|
-
super();
|
|
314
|
-
proto3.util.initPartial(data, this);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
318
|
-
static readonly typeName = "scalekit.v1.auditlogs.ConnectionDetails";
|
|
319
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
320
|
-
{ no: 1, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
321
|
-
{ no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
322
|
-
{ no: 3, name: "connection_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
323
|
-
{ no: 4, name: "connection_provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
324
|
-
]);
|
|
325
|
-
|
|
326
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionDetails {
|
|
327
|
-
return new ConnectionDetails().fromBinary(bytes, options);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionDetails {
|
|
331
|
-
return new ConnectionDetails().fromJson(jsonValue, options);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionDetails {
|
|
335
|
-
return new ConnectionDetails().fromJsonString(jsonString, options);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
static equals(a: ConnectionDetails | PlainMessage<ConnectionDetails> | undefined, b: ConnectionDetails | PlainMessage<ConnectionDetails> | undefined): boolean {
|
|
339
|
-
return proto3.util.equals(ConnectionDetails, a, b);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
|
|
2
|
-
// @generated from file scalekit/v1/auth/auth.proto (package scalekit.v1.auth, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// @ts-nocheck
|
|
5
|
-
|
|
6
|
-
import { DiscoveryAuthMethodRequest, DiscoveryAuthMethodResponse, GetAuthCustomizationsRequest, GetAuthCustomizationsResponse, GetAuthErrorRequest, GetAuthErrorResponse, GetAuthFeaturesResponse, GetAuthStateResponse, ListAuthMethodsRequest, ListAuthMethodsResponse, ListUserOrganizationsResponse, SignupOrganizationRequest, SignupOrganizationResponse, UpdateLoginUserDetailsRequest, VerifyPasswordLessOtpRequest, VerifyPasswordLessOtpResponse } from "./auth_pb.js";
|
|
7
|
-
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @generated from service scalekit.v1.auth.AuthService
|
|
11
|
-
*/
|
|
12
|
-
export const AuthService = {
|
|
13
|
-
typeName: "scalekit.v1.auth.AuthService",
|
|
14
|
-
methods: {
|
|
15
|
-
/**
|
|
16
|
-
* @generated from rpc scalekit.v1.auth.AuthService.ListAuthMethods
|
|
17
|
-
*/
|
|
18
|
-
listAuthMethods: {
|
|
19
|
-
name: "ListAuthMethods",
|
|
20
|
-
I: ListAuthMethodsRequest,
|
|
21
|
-
O: ListAuthMethodsResponse,
|
|
22
|
-
kind: MethodKind.Unary,
|
|
23
|
-
},
|
|
24
|
-
/**
|
|
25
|
-
* @generated from rpc scalekit.v1.auth.AuthService.DiscoveryAuthMethod
|
|
26
|
-
*/
|
|
27
|
-
discoveryAuthMethod: {
|
|
28
|
-
name: "DiscoveryAuthMethod",
|
|
29
|
-
I: DiscoveryAuthMethodRequest,
|
|
30
|
-
O: DiscoveryAuthMethodResponse,
|
|
31
|
-
kind: MethodKind.Unary,
|
|
32
|
-
},
|
|
33
|
-
/**
|
|
34
|
-
* @generated from rpc scalekit.v1.auth.AuthService.VerifyPasswordLessOtp
|
|
35
|
-
*/
|
|
36
|
-
verifyPasswordLessOtp: {
|
|
37
|
-
name: "VerifyPasswordLessOtp",
|
|
38
|
-
I: VerifyPasswordLessOtpRequest,
|
|
39
|
-
O: VerifyPasswordLessOtpResponse,
|
|
40
|
-
kind: MethodKind.Unary,
|
|
41
|
-
},
|
|
42
|
-
/**
|
|
43
|
-
* @generated from rpc scalekit.v1.auth.AuthService.ResendPasswordless
|
|
44
|
-
*/
|
|
45
|
-
resendPasswordless: {
|
|
46
|
-
name: "ResendPasswordless",
|
|
47
|
-
I: Empty,
|
|
48
|
-
O: Empty,
|
|
49
|
-
kind: MethodKind.Unary,
|
|
50
|
-
},
|
|
51
|
-
/**
|
|
52
|
-
* @generated from rpc scalekit.v1.auth.AuthService.ListUserOrganizations
|
|
53
|
-
*/
|
|
54
|
-
listUserOrganizations: {
|
|
55
|
-
name: "ListUserOrganizations",
|
|
56
|
-
I: Empty,
|
|
57
|
-
O: ListUserOrganizationsResponse,
|
|
58
|
-
kind: MethodKind.Unary,
|
|
59
|
-
},
|
|
60
|
-
/**
|
|
61
|
-
* @generated from rpc scalekit.v1.auth.AuthService.SignupOrganization
|
|
62
|
-
*/
|
|
63
|
-
signupOrganization: {
|
|
64
|
-
name: "SignupOrganization",
|
|
65
|
-
I: SignupOrganizationRequest,
|
|
66
|
-
O: SignupOrganizationResponse,
|
|
67
|
-
kind: MethodKind.Unary,
|
|
68
|
-
},
|
|
69
|
-
/**
|
|
70
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthState
|
|
71
|
-
*/
|
|
72
|
-
getAuthState: {
|
|
73
|
-
name: "GetAuthState",
|
|
74
|
-
I: Empty,
|
|
75
|
-
O: GetAuthStateResponse,
|
|
76
|
-
kind: MethodKind.Unary,
|
|
77
|
-
},
|
|
78
|
-
/**
|
|
79
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthError
|
|
80
|
-
*/
|
|
81
|
-
getAuthError: {
|
|
82
|
-
name: "GetAuthError",
|
|
83
|
-
I: GetAuthErrorRequest,
|
|
84
|
-
O: GetAuthErrorResponse,
|
|
85
|
-
kind: MethodKind.Unary,
|
|
86
|
-
},
|
|
87
|
-
/**
|
|
88
|
-
* @generated from rpc scalekit.v1.auth.AuthService.Logout
|
|
89
|
-
*/
|
|
90
|
-
logout: {
|
|
91
|
-
name: "Logout",
|
|
92
|
-
I: Empty,
|
|
93
|
-
O: Empty,
|
|
94
|
-
kind: MethodKind.Unary,
|
|
95
|
-
},
|
|
96
|
-
/**
|
|
97
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthCustomizations
|
|
98
|
-
*/
|
|
99
|
-
getAuthCustomizations: {
|
|
100
|
-
name: "GetAuthCustomizations",
|
|
101
|
-
I: GetAuthCustomizationsRequest,
|
|
102
|
-
O: GetAuthCustomizationsResponse,
|
|
103
|
-
kind: MethodKind.Unary,
|
|
104
|
-
},
|
|
105
|
-
/**
|
|
106
|
-
* @generated from rpc scalekit.v1.auth.AuthService.GetAuthFeatures
|
|
107
|
-
*/
|
|
108
|
-
getAuthFeatures: {
|
|
109
|
-
name: "GetAuthFeatures",
|
|
110
|
-
I: Empty,
|
|
111
|
-
O: GetAuthFeaturesResponse,
|
|
112
|
-
kind: MethodKind.Unary,
|
|
113
|
-
},
|
|
114
|
-
/**
|
|
115
|
-
* @generated from rpc scalekit.v1.auth.AuthService.UpdateLoginUserDetails
|
|
116
|
-
*/
|
|
117
|
-
updateLoginUserDetails: {
|
|
118
|
-
name: "UpdateLoginUserDetails",
|
|
119
|
-
I: UpdateLoginUserDetailsRequest,
|
|
120
|
-
O: Empty,
|
|
121
|
-
kind: MethodKind.Unary,
|
|
122
|
-
},
|
|
123
|
-
}
|
|
124
|
-
} as const;
|
|
125
|
-
|