@scalekit-sdk/node 2.2.0 → 2.2.2
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/{reference.md → REFERENCE.md} +530 -77
- package/lib/core.js +1 -1
- package/package.json +9 -3
- package/.github/dependabot.yml +0 -10
- package/.nvmrc +0 -1
- package/buf.gen.yaml +0 -20
- package/jest.config.js +0 -15
- package/src/auth.ts +0 -99
- package/src/connect.ts +0 -32
- 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 -273
- package/src/errors/base-exception.ts +0 -263
- 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 -571
- package/src/passwordless.ts +0 -139
- package/src/permission.ts +0 -310
- package/src/pkg/grpc/buf/validate/validate_pb.ts +0 -28
- package/src/pkg/grpc/google/api/annotations_pb.ts +0 -28
- package/src/pkg/grpc/google/api/field_behavior_pb.ts +0 -28
- package/src/pkg/grpc/google/api/visibility_pb.ts +0 -28
- package/src/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.ts +0 -28
- package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +0 -257
- package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +0 -836
- package/src/pkg/grpc/scalekit/v1/auth/passwordless_pb.ts +0 -264
- package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +0 -794
- package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +0 -452
- package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +0 -2645
- package/src/pkg/grpc/scalekit/v1/directories/directories_pb.ts +0 -1393
- package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +0 -599
- package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +0 -311
- package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +0 -200
- package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +0 -1141
- package/src/pkg/grpc/scalekit/v1/roles/roles_pb.ts +0 -1491
- package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +0 -497
- package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +0 -1404
- package/src/role.ts +0 -463
- package/src/scalekit.ts +0 -800
- package/src/session.ts +0 -323
- 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 -829
- package/src/webauthn.ts +0 -99
- package/tests/README.md +0 -25
- 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/users.test.ts +0 -168
- package/tests/utils/test-data.ts +0 -490
- package/tsconfig.json +0 -19
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
-
// @generated from file scalekit/v1/errdetails/errdetails.proto (package scalekit.v1.errdetails, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
-
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Describes the file scalekit/v1/errdetails/errdetails.proto.
|
|
11
|
-
*/
|
|
12
|
-
export const file_scalekit_v1_errdetails_errdetails: GenFile = /*@__PURE__*/
|
|
13
|
-
fileDesc("CidzY2FsZWtpdC92MS9lcnJkZXRhaWxzL2VycmRldGFpbHMucHJvdG8SFnNjYWxla2l0LnYxLmVycmRldGFpbHMiiQUKCUVycm9ySW5mbxISCgplcnJvcl9jb2RlGAEgASgJEjoKCmRlYnVnX2luZm8YAiABKAsyIS5zY2FsZWtpdC52MS5lcnJkZXRhaWxzLkRlYnVnSW5mb0gAiAEBEjgKCWhlbHBfaW5mbxgDIAEoCzIgLnNjYWxla2l0LnYxLmVycmRldGFpbHMuSGVscEluZm9IAYgBARJRChZsb2NhbGl6ZWRfbWVzc2FnZV9pbmZvGAQgASgLMiwuc2NhbGVraXQudjEuZXJyZGV0YWlscy5Mb2NhbGl6ZWRNZXNzYWdlSW5mb0gCiAEBEkAKDXJlc291cmNlX2luZm8YBSABKAsyJC5zY2FsZWtpdC52MS5lcnJkZXRhaWxzLlJlc291cmNlSW5mb0gDiAEBEj4KDHJlcXVlc3RfaW5mbxgGIAEoCzIjLnNjYWxla2l0LnYxLmVycmRldGFpbHMuUmVxdWVzdEluZm9IBIgBARJPChV2YWxpZGF0aW9uX2Vycm9yX2luZm8YCCABKAsyKy5zY2FsZWtpdC52MS5lcnJkZXRhaWxzLlZhbGlkYXRpb25FcnJvckluZm9IBYgBARJDCg90b29sX2Vycm9yX2luZm8YCSABKAsyJS5zY2FsZWtpdC52MS5lcnJkZXRhaWxzLlRvb2xFcnJvckluZm9IBogBAUINCgtfZGVidWdfaW5mb0IMCgpfaGVscF9pbmZvQhkKF19sb2NhbGl6ZWRfbWVzc2FnZV9pbmZvQhAKDl9yZXNvdXJjZV9pbmZvQg8KDV9yZXF1ZXN0X2luZm9CGAoWX3ZhbGlkYXRpb25fZXJyb3JfaW5mb0ISChBfdG9vbF9lcnJvcl9pbmZvIjIKCURlYnVnSW5mbxIVCg1zdGFja19lbnRyaWVzGAEgAygJEg4KBmRldGFpbBgCIAEoCSK1AQoTVmFsaWRhdGlvbkVycm9ySW5mbxJUChBmaWVsZF92aW9sYXRpb25zGAEgAygLMjouc2NhbGVraXQudjEuZXJyZGV0YWlscy5WYWxpZGF0aW9uRXJyb3JJbmZvLkZpZWxkVmlvbGF0aW9uGkgKDkZpZWxkVmlvbGF0aW9uEg0KBWZpZWxkGAEgASgJEhMKC2Rlc2NyaXB0aW9uGAIgASgJEhIKCmNvbnN0cmFpbnQYAyABKAkiNwoLUmVxdWVzdEluZm8SEgoKcmVxdWVzdF9pZBgBIAEoCRIUCgxzZXJ2aW5nX2RhdGEYAiABKAkiewoMUmVzb3VyY2VJbmZvEhUKDXJlc291cmNlX25hbWUYAiABKAkSDQoFb3duZXIYAyABKAkSEwoLZGVzY3JpcHRpb24YBCABKAkSHAoUcmVxdWlyZWRfcGVybWlzc2lvbnMYBSADKAkSDAoEdXNlchgGIAEoCUoECAEQAiJqCghIZWxwSW5mbxI0CgVsaW5rcxgBIAMoCzIlLnNjYWxla2l0LnYxLmVycmRldGFpbHMuSGVscEluZm8uTGluaxooCgRMaW5rEhMKC2Rlc2NyaXB0aW9uGAEgASgJEgsKA3VybBgCIAEoCSI3ChRMb2NhbGl6ZWRNZXNzYWdlSW5mbxIOCgZsb2NhbGUYASABKAkSDwoHbWVzc2FnZRgCIAEoCSJaCg1Ub29sRXJyb3JJbmZvEhQKDGV4ZWN1dGlvbl9pZBgBIAEoCRIaChJ0b29sX2Vycm9yX21lc3NhZ2UYAiABKAkSFwoPdG9vbF9lcnJvcl9jb2RlGAMgASgJQjZaNGdpdGh1Yi5jb20vc2NhbGVraXQtaW5jL3NjYWxla2l0L3BrZy9ncnBjL2VycmRldGFpbHNiBnByb3RvMw");
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @generated from message scalekit.v1.errdetails.ErrorInfo
|
|
17
|
-
*/
|
|
18
|
-
export type ErrorInfo = Message<"scalekit.v1.errdetails.ErrorInfo"> & {
|
|
19
|
-
/**
|
|
20
|
-
* @generated from field: string error_code = 1;
|
|
21
|
-
*/
|
|
22
|
-
errorCode: string;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @generated from field: optional scalekit.v1.errdetails.DebugInfo debug_info = 2;
|
|
26
|
-
*/
|
|
27
|
-
debugInfo?: DebugInfo;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @generated from field: optional scalekit.v1.errdetails.HelpInfo help_info = 3;
|
|
31
|
-
*/
|
|
32
|
-
helpInfo?: HelpInfo;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @generated from field: optional scalekit.v1.errdetails.LocalizedMessageInfo localized_message_info = 4;
|
|
36
|
-
*/
|
|
37
|
-
localizedMessageInfo?: LocalizedMessageInfo;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @generated from field: optional scalekit.v1.errdetails.ResourceInfo resource_info = 5;
|
|
41
|
-
*/
|
|
42
|
-
resourceInfo?: ResourceInfo;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @generated from field: optional scalekit.v1.errdetails.RequestInfo request_info = 6;
|
|
46
|
-
*/
|
|
47
|
-
requestInfo?: RequestInfo;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @generated from field: optional scalekit.v1.errdetails.ValidationErrorInfo validation_error_info = 8;
|
|
51
|
-
*/
|
|
52
|
-
validationErrorInfo?: ValidationErrorInfo;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @generated from field: optional scalekit.v1.errdetails.ToolErrorInfo tool_error_info = 9;
|
|
56
|
-
*/
|
|
57
|
-
toolErrorInfo?: ToolErrorInfo;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Describes the message scalekit.v1.errdetails.ErrorInfo.
|
|
62
|
-
* Use `create(ErrorInfoSchema)` to create a new message.
|
|
63
|
-
*/
|
|
64
|
-
export const ErrorInfoSchema: GenMessage<ErrorInfo> = /*@__PURE__*/
|
|
65
|
-
messageDesc(file_scalekit_v1_errdetails_errdetails, 0);
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Describes additional debugging info.
|
|
69
|
-
*
|
|
70
|
-
* @generated from message scalekit.v1.errdetails.DebugInfo
|
|
71
|
-
*/
|
|
72
|
-
export type DebugInfo = Message<"scalekit.v1.errdetails.DebugInfo"> & {
|
|
73
|
-
/**
|
|
74
|
-
* The stack trace entries indicating where the error occurred.
|
|
75
|
-
*
|
|
76
|
-
* @generated from field: repeated string stack_entries = 1;
|
|
77
|
-
*/
|
|
78
|
-
stackEntries: string[];
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Additional debugging information provided by the server.
|
|
82
|
-
*
|
|
83
|
-
* @generated from field: string detail = 2;
|
|
84
|
-
*/
|
|
85
|
-
detail: string;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Describes the message scalekit.v1.errdetails.DebugInfo.
|
|
90
|
-
* Use `create(DebugInfoSchema)` to create a new message.
|
|
91
|
-
*/
|
|
92
|
-
export const DebugInfoSchema: GenMessage<DebugInfo> = /*@__PURE__*/
|
|
93
|
-
messageDesc(file_scalekit_v1_errdetails_errdetails, 1);
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Describes violations in a client request. This error type focuses on the
|
|
97
|
-
* syntactic aspects of the request.
|
|
98
|
-
*
|
|
99
|
-
* @generated from message scalekit.v1.errdetails.ValidationErrorInfo
|
|
100
|
-
*/
|
|
101
|
-
export type ValidationErrorInfo = Message<"scalekit.v1.errdetails.ValidationErrorInfo"> & {
|
|
102
|
-
/**
|
|
103
|
-
* Describes all violations in a client request.
|
|
104
|
-
*
|
|
105
|
-
* @generated from field: repeated scalekit.v1.errdetails.ValidationErrorInfo.FieldViolation field_violations = 1;
|
|
106
|
-
*/
|
|
107
|
-
fieldViolations: ValidationErrorInfo_FieldViolation[];
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Describes the message scalekit.v1.errdetails.ValidationErrorInfo.
|
|
112
|
-
* Use `create(ValidationErrorInfoSchema)` to create a new message.
|
|
113
|
-
*/
|
|
114
|
-
export const ValidationErrorInfoSchema: GenMessage<ValidationErrorInfo> = /*@__PURE__*/
|
|
115
|
-
messageDesc(file_scalekit_v1_errdetails_errdetails, 2);
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* A message type used to describe a single bad request field.
|
|
119
|
-
*
|
|
120
|
-
* @generated from message scalekit.v1.errdetails.ValidationErrorInfo.FieldViolation
|
|
121
|
-
*/
|
|
122
|
-
export type ValidationErrorInfo_FieldViolation = Message<"scalekit.v1.errdetails.ValidationErrorInfo.FieldViolation"> & {
|
|
123
|
-
/**
|
|
124
|
-
* @generated from field: string field = 1;
|
|
125
|
-
*/
|
|
126
|
-
field: string;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* A description of why the request element is bad.
|
|
130
|
-
*
|
|
131
|
-
* @generated from field: string description = 2;
|
|
132
|
-
*/
|
|
133
|
-
description: string;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* @generated from field: string constraint = 3;
|
|
137
|
-
*/
|
|
138
|
-
constraint: string;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Describes the message scalekit.v1.errdetails.ValidationErrorInfo.FieldViolation.
|
|
143
|
-
* Use `create(ValidationErrorInfo_FieldViolationSchema)` to create a new message.
|
|
144
|
-
*/
|
|
145
|
-
export const ValidationErrorInfo_FieldViolationSchema: GenMessage<ValidationErrorInfo_FieldViolation> = /*@__PURE__*/
|
|
146
|
-
messageDesc(file_scalekit_v1_errdetails_errdetails, 2, 0);
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Contains metadata about the request that clients can attach when filing a bug
|
|
150
|
-
* or providing other forms of feedback.
|
|
151
|
-
*
|
|
152
|
-
* @generated from message scalekit.v1.errdetails.RequestInfo
|
|
153
|
-
*/
|
|
154
|
-
export type RequestInfo = Message<"scalekit.v1.errdetails.RequestInfo"> & {
|
|
155
|
-
/**
|
|
156
|
-
* An opaque string that should only be interpreted by the service generating
|
|
157
|
-
* it. For example, it can be used to identify requests in the service's logs.
|
|
158
|
-
*
|
|
159
|
-
* @generated from field: string request_id = 1;
|
|
160
|
-
*/
|
|
161
|
-
requestId: string;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Any data that was used to serve this request. For example, an encrypted
|
|
165
|
-
* stack trace that can be sent back to the service provider for debugging.
|
|
166
|
-
*
|
|
167
|
-
* @generated from field: string serving_data = 2;
|
|
168
|
-
*/
|
|
169
|
-
servingData: string;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Describes the message scalekit.v1.errdetails.RequestInfo.
|
|
174
|
-
* Use `create(RequestInfoSchema)` to create a new message.
|
|
175
|
-
*/
|
|
176
|
-
export const RequestInfoSchema: GenMessage<RequestInfo> = /*@__PURE__*/
|
|
177
|
-
messageDesc(file_scalekit_v1_errdetails_errdetails, 3);
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Describes the resource that is being accessed.
|
|
181
|
-
*
|
|
182
|
-
* @generated from message scalekit.v1.errdetails.ResourceInfo
|
|
183
|
-
*/
|
|
184
|
-
export type ResourceInfo = Message<"scalekit.v1.errdetails.ResourceInfo"> & {
|
|
185
|
-
/**
|
|
186
|
-
* @generated from field: string resource_name = 2;
|
|
187
|
-
*/
|
|
188
|
-
resourceName: string;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @generated from field: string owner = 3;
|
|
192
|
-
*/
|
|
193
|
-
owner: string;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Describes what error is encountered when accessing this resource.
|
|
197
|
-
* For example, updating a cloud project may require the `writer` permission
|
|
198
|
-
* on the developer console project.
|
|
199
|
-
*
|
|
200
|
-
* @generated from field: string description = 4;
|
|
201
|
-
*/
|
|
202
|
-
description: string;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* The required permissions needed to access the resource.
|
|
206
|
-
*
|
|
207
|
-
* @generated from field: repeated string required_permissions = 5;
|
|
208
|
-
*/
|
|
209
|
-
requiredPermissions: string[];
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* @generated from field: string user = 6;
|
|
213
|
-
*/
|
|
214
|
-
user: string;
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Describes the message scalekit.v1.errdetails.ResourceInfo.
|
|
219
|
-
* Use `create(ResourceInfoSchema)` to create a new message.
|
|
220
|
-
*/
|
|
221
|
-
export const ResourceInfoSchema: GenMessage<ResourceInfo> = /*@__PURE__*/
|
|
222
|
-
messageDesc(file_scalekit_v1_errdetails_errdetails, 4);
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* @generated from message scalekit.v1.errdetails.HelpInfo
|
|
226
|
-
*/
|
|
227
|
-
export type HelpInfo = Message<"scalekit.v1.errdetails.HelpInfo"> & {
|
|
228
|
-
/**
|
|
229
|
-
* @generated from field: repeated scalekit.v1.errdetails.HelpInfo.Link links = 1;
|
|
230
|
-
*/
|
|
231
|
-
links: HelpInfo_Link[];
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Describes the message scalekit.v1.errdetails.HelpInfo.
|
|
236
|
-
* Use `create(HelpInfoSchema)` to create a new message.
|
|
237
|
-
*/
|
|
238
|
-
export const HelpInfoSchema: GenMessage<HelpInfo> = /*@__PURE__*/
|
|
239
|
-
messageDesc(file_scalekit_v1_errdetails_errdetails, 5);
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* @generated from message scalekit.v1.errdetails.HelpInfo.Link
|
|
243
|
-
*/
|
|
244
|
-
export type HelpInfo_Link = Message<"scalekit.v1.errdetails.HelpInfo.Link"> & {
|
|
245
|
-
/**
|
|
246
|
-
* @generated from field: string description = 1;
|
|
247
|
-
*/
|
|
248
|
-
description: string;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* @generated from field: string url = 2;
|
|
252
|
-
*/
|
|
253
|
-
url: string;
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Describes the message scalekit.v1.errdetails.HelpInfo.Link.
|
|
258
|
-
* Use `create(HelpInfo_LinkSchema)` to create a new message.
|
|
259
|
-
*/
|
|
260
|
-
export const HelpInfo_LinkSchema: GenMessage<HelpInfo_Link> = /*@__PURE__*/
|
|
261
|
-
messageDesc(file_scalekit_v1_errdetails_errdetails, 5, 0);
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* @generated from message scalekit.v1.errdetails.LocalizedMessageInfo
|
|
265
|
-
*/
|
|
266
|
-
export type LocalizedMessageInfo = Message<"scalekit.v1.errdetails.LocalizedMessageInfo"> & {
|
|
267
|
-
/**
|
|
268
|
-
* @generated from field: string locale = 1;
|
|
269
|
-
*/
|
|
270
|
-
locale: string;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* @generated from field: string message = 2;
|
|
274
|
-
*/
|
|
275
|
-
message: string;
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Describes the message scalekit.v1.errdetails.LocalizedMessageInfo.
|
|
280
|
-
* Use `create(LocalizedMessageInfoSchema)` to create a new message.
|
|
281
|
-
*/
|
|
282
|
-
export const LocalizedMessageInfoSchema: GenMessage<LocalizedMessageInfo> = /*@__PURE__*/
|
|
283
|
-
messageDesc(file_scalekit_v1_errdetails_errdetails, 6);
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* @generated from message scalekit.v1.errdetails.ToolErrorInfo
|
|
287
|
-
*/
|
|
288
|
-
export type ToolErrorInfo = Message<"scalekit.v1.errdetails.ToolErrorInfo"> & {
|
|
289
|
-
/**
|
|
290
|
-
* @generated from field: string execution_id = 1;
|
|
291
|
-
*/
|
|
292
|
-
executionId: string;
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* @generated from field: string tool_error_message = 2;
|
|
296
|
-
*/
|
|
297
|
-
toolErrorMessage: string;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* @generated from field: string tool_error_code = 3;
|
|
301
|
-
*/
|
|
302
|
-
toolErrorCode: string;
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Describes the message scalekit.v1.errdetails.ToolErrorInfo.
|
|
307
|
-
* Use `create(ToolErrorInfoSchema)` to create a new message.
|
|
308
|
-
*/
|
|
309
|
-
export const ToolErrorInfoSchema: GenMessage<ToolErrorInfo> = /*@__PURE__*/
|
|
310
|
-
messageDesc(file_scalekit_v1_errdetails_errdetails, 7);
|
|
311
|
-
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v2.11.0 with parameter "target=ts"
|
|
2
|
-
// @generated from file scalekit/v1/options/options.proto (package scalekit.v1.options, syntax proto3)
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
6
|
-
import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
-
import type { MethodOptions } from "@bufbuild/protobuf/wkt";
|
|
8
|
-
import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
|
|
9
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Describes the file scalekit/v1/options/options.proto.
|
|
13
|
-
*/
|
|
14
|
-
export const file_scalekit_v1_options_options: GenFile = /*@__PURE__*/
|
|
15
|
-
fileDesc("CiFzY2FsZWtpdC92MS9vcHRpb25zL29wdGlvbnMucHJvdG8SE3NjYWxla2l0LnYxLm9wdGlvbnMilAEKCkF1dGhPcHRpb24SRAoTYXV0aGVudGljYXRpb25fdHlwZRgDIAEoDjInLnNjYWxla2l0LnYxLm9wdGlvbnMuQXV0aGVudGljYXRpb25UeXBlEhMKC3Blcm1pc3Npb25zGAEgAygJEisKBnBvbGljeRgCIAEoDjIbLnNjYWxla2l0LnYxLm9wdGlvbnMuUG9saWN5KioKBlBvbGljeRIICgRERU5ZEAASCwoHUEFSVElBTBABEgkKBUFMTE9XEAIqjwMKEkF1dGhlbnRpY2F0aW9uVHlwZRILCgdCTE9DS0VEEAASCAoETk9ORRABEg0KCVdPUktTUEFDRRBAEhMKD0NVU1RPTUVSX1BPUlRBTBAgEgsKB1NFU1NJT04QEBIVChFXT1JLU1BBQ0VfU0VTU0lPThBQEhQKEFdPUktTUEFDRV9DTElFTlQQRBIlCiFXT1JLU1BBQ0VfU0VTU0lPTl9DVVNUT01FUl9QT1JUQUwQcBIsCihXT1JLU1BBQ0VfU0VTU0lPTl9DVVNUT01FUl9QT1JUQUxfQ0xJRU5UEHQSJAogV09SS1NQQUNFX0NVU1RPTUVSX1BPUlRBTF9DTElFTlQQZBIdChlXT1JLU1BBQ0VfQ1VTVE9NRVJfUE9SVEFMEGASCAoEVVNFUhAIEgoKBkNMSUVOVBAEEhIKDlNFU1NJT05fQ0xJRU5UEBQSHAoYV09SS1NQQUNFX1NFU1NJT05fQ0xJRU5UEFQSIgoeQ1VTVE9NRVJfUE9SVEFMX1NFU1NJT05fQ0xJRU5UEDQ6YgoLYXV0aF9vcHRpb24SHi5nb29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxjQhgMgASgLMh8uc2NhbGVraXQudjEub3B0aW9ucy5BdXRoT3B0aW9uUgphdXRoT3B0aW9uQjZaNGdpdGh1Yi5jb20vc2NhbGVraXQtaW5jL3NjYWxla2l0L3BrZy9ncnBjL2F1dGhvcHRpb25iBnByb3RvMw", [file_google_protobuf_descriptor]);
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @generated from message scalekit.v1.options.AuthOption
|
|
19
|
-
*/
|
|
20
|
-
export type AuthOption = Message<"scalekit.v1.options.AuthOption"> & {
|
|
21
|
-
/**
|
|
22
|
-
* @generated from field: scalekit.v1.options.AuthenticationType authentication_type = 3;
|
|
23
|
-
*/
|
|
24
|
-
authenticationType: AuthenticationType;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @generated from field: repeated string permissions = 1;
|
|
28
|
-
*/
|
|
29
|
-
permissions: string[];
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* @generated from field: scalekit.v1.options.Policy policy = 2;
|
|
33
|
-
*/
|
|
34
|
-
policy: Policy;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Describes the message scalekit.v1.options.AuthOption.
|
|
39
|
-
* Use `create(AuthOptionSchema)` to create a new message.
|
|
40
|
-
*/
|
|
41
|
-
export const AuthOptionSchema: GenMessage<AuthOption> = /*@__PURE__*/
|
|
42
|
-
messageDesc(file_scalekit_v1_options_options, 0);
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @generated from enum scalekit.v1.options.Policy
|
|
46
|
-
*/
|
|
47
|
-
export enum Policy {
|
|
48
|
-
/**
|
|
49
|
-
* @generated from enum value: DENY = 0;
|
|
50
|
-
*/
|
|
51
|
-
DENY = 0,
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @generated from enum value: PARTIAL = 1;
|
|
55
|
-
*/
|
|
56
|
-
PARTIAL = 1,
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @generated from enum value: ALLOW = 2;
|
|
60
|
-
*/
|
|
61
|
-
ALLOW = 2,
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Describes the enum scalekit.v1.options.Policy.
|
|
66
|
-
*/
|
|
67
|
-
export const PolicySchema: GenEnum<Policy> = /*@__PURE__*/
|
|
68
|
-
enumDesc(file_scalekit_v1_options_options, 0);
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @generated from enum scalekit.v1.options.AuthenticationType
|
|
72
|
-
*/
|
|
73
|
-
export enum AuthenticationType {
|
|
74
|
-
/**
|
|
75
|
-
* API is Blocked to access
|
|
76
|
-
*
|
|
77
|
-
* API is blocked / private and default
|
|
78
|
-
*
|
|
79
|
-
* @generated from enum value: BLOCKED = 0;
|
|
80
|
-
*/
|
|
81
|
-
BLOCKED = 0,
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* API is open
|
|
85
|
-
*
|
|
86
|
-
* @generated from enum value: NONE = 1;
|
|
87
|
-
*/
|
|
88
|
-
NONE = 1,
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Workspace auth option is for Scalekit Dashboard
|
|
92
|
-
*
|
|
93
|
-
* workspace_id is in claims
|
|
94
|
-
*
|
|
95
|
-
* @generated from enum value: WORKSPACE = 64;
|
|
96
|
-
*/
|
|
97
|
-
WORKSPACE = 64,
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Customer portal is for customer admin portal access
|
|
101
|
-
*
|
|
102
|
-
* claims has organisation ID
|
|
103
|
-
*
|
|
104
|
-
* @generated from enum value: CUSTOMER_PORTAL = 32;
|
|
105
|
-
*/
|
|
106
|
-
CUSTOMER_PORTAL = 32,
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* (UI audience in claims) this is for API that need to work on env.scalekit.com scoped access alone.
|
|
110
|
-
*
|
|
111
|
-
* @generated from enum value: SESSION = 16;
|
|
112
|
-
*/
|
|
113
|
-
SESSION = 16,
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @generated from enum value: WORKSPACE_SESSION = 80;
|
|
117
|
-
*/
|
|
118
|
-
WORKSPACE_SESSION = 80,
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* workspace_id is in claims and UI in audience
|
|
122
|
-
*
|
|
123
|
-
* @generated from enum value: WORKSPACE_CLIENT = 68;
|
|
124
|
-
*/
|
|
125
|
-
WORKSPACE_CLIENT = 68,
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @generated from enum value: WORKSPACE_SESSION_CUSTOMER_PORTAL = 112;
|
|
129
|
-
*/
|
|
130
|
-
WORKSPACE_SESSION_CUSTOMER_PORTAL = 112,
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* workspace_id,organization_id is in claims and UI in audience
|
|
134
|
-
*
|
|
135
|
-
* @generated from enum value: WORKSPACE_SESSION_CUSTOMER_PORTAL_CLIENT = 116;
|
|
136
|
-
*/
|
|
137
|
-
WORKSPACE_SESSION_CUSTOMER_PORTAL_CLIENT = 116,
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* @generated from enum value: WORKSPACE_CUSTOMER_PORTAL_CLIENT = 100;
|
|
141
|
-
*/
|
|
142
|
-
WORKSPACE_CUSTOMER_PORTAL_CLIENT = 100,
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* workspace_id,organization_id is in claims and client Id is in subject
|
|
146
|
-
*
|
|
147
|
-
* @generated from enum value: WORKSPACE_CUSTOMER_PORTAL = 96;
|
|
148
|
-
*/
|
|
149
|
-
WORKSPACE_CUSTOMER_PORTAL = 96,
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* user_id is in claims
|
|
153
|
-
*
|
|
154
|
-
* @generated from enum value: USER = 8;
|
|
155
|
-
*/
|
|
156
|
-
USER = 8,
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* client is environment primary client ID
|
|
160
|
-
*
|
|
161
|
-
* client Id is in subject
|
|
162
|
-
*
|
|
163
|
-
* @generated from enum value: CLIENT = 4;
|
|
164
|
-
*/
|
|
165
|
-
CLIENT = 4,
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* UI in audience or client Id is in subject
|
|
169
|
-
*
|
|
170
|
-
* @generated from enum value: SESSION_CLIENT = 20;
|
|
171
|
-
*/
|
|
172
|
-
SESSION_CLIENT = 20,
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* workspace_id is in claims, UI in audience and client Id is in subject
|
|
176
|
-
*
|
|
177
|
-
* @generated from enum value: WORKSPACE_SESSION_CLIENT = 84;
|
|
178
|
-
*/
|
|
179
|
-
WORKSPACE_SESSION_CLIENT = 84,
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* claims has organisation ID, UI in audience and client Id is in subject
|
|
183
|
-
*
|
|
184
|
-
* @generated from enum value: CUSTOMER_PORTAL_SESSION_CLIENT = 52;
|
|
185
|
-
*/
|
|
186
|
-
CUSTOMER_PORTAL_SESSION_CLIENT = 52,
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Describes the enum scalekit.v1.options.AuthenticationType.
|
|
191
|
-
*/
|
|
192
|
-
export const AuthenticationTypeSchema: GenEnum<AuthenticationType> = /*@__PURE__*/
|
|
193
|
-
enumDesc(file_scalekit_v1_options_options, 1);
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* @generated from extension: scalekit.v1.options.AuthOption auth_option = 50000;
|
|
197
|
-
*/
|
|
198
|
-
export const auth_option: GenExtension<MethodOptions, AuthOption> = /*@__PURE__*/
|
|
199
|
-
extDesc(file_scalekit_v1_options_options, 0);
|
|
200
|
-
|