@scalekit-sdk/node 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +49 -0
  3. package/buf.gen.yaml +14 -0
  4. package/lib/connect.d.ts +9 -0
  5. package/lib/connect.js +31 -0
  6. package/lib/connect.js.map +1 -0
  7. package/lib/connection.d.ts +28 -0
  8. package/lib/connection.js +68 -0
  9. package/lib/connection.js.map +1 -0
  10. package/lib/constants/user.d.ts +4 -0
  11. package/lib/constants/user.js +24 -0
  12. package/lib/constants/user.js.map +1 -0
  13. package/lib/core.d.ts +37 -0
  14. package/lib/core.js +160 -0
  15. package/lib/core.js.map +1 -0
  16. package/lib/domain.d.ts +33 -0
  17. package/lib/domain.js +74 -0
  18. package/lib/domain.js.map +1 -0
  19. package/lib/index.d.ts +5 -0
  20. package/lib/index.js +26 -0
  21. package/lib/index.js.map +1 -0
  22. package/lib/organization.d.ts +64 -0
  23. package/lib/organization.js +116 -0
  24. package/lib/organization.js.map +1 -0
  25. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +20 -0
  26. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +36 -0
  27. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -0
  28. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +73 -0
  29. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +81 -0
  30. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +1 -0
  31. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +1252 -0
  32. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +1536 -0
  33. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -0
  34. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +55 -0
  35. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +63 -0
  36. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +1 -0
  37. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +394 -0
  38. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +469 -0
  39. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -0
  40. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +245 -0
  41. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +369 -0
  42. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -0
  43. package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +98 -0
  44. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +135 -0
  45. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -0
  46. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +92 -0
  47. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +100 -0
  48. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +1 -0
  49. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +424 -0
  50. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +559 -0
  51. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -0
  52. package/lib/scalekit.d.ts +60 -0
  53. package/lib/scalekit.js +140 -0
  54. package/lib/scalekit.js.map +1 -0
  55. package/lib/types/scalekit.d.ts +26 -0
  56. package/lib/types/scalekit.js +10 -0
  57. package/lib/types/scalekit.js.map +1 -0
  58. package/lib/types/user.d.ts +56 -0
  59. package/lib/types/user.js +3 -0
  60. package/lib/types/user.js.map +1 -0
  61. package/package.json +45 -0
  62. package/src/connect.ts +33 -0
  63. package/src/connection.ts +69 -0
  64. package/src/constants/user.ts +22 -0
  65. package/src/core.ts +127 -0
  66. package/src/domain.ts +75 -0
  67. package/src/index.ts +7 -0
  68. package/src/organization.ts +129 -0
  69. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +36 -0
  70. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +80 -0
  71. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +2138 -0
  72. package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +62 -0
  73. package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +687 -0
  74. package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +461 -0
  75. package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +156 -0
  76. package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +99 -0
  77. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +774 -0
  78. package/src/scalekit.ts +155 -0
  79. package/src/types/scalekit.ts +30 -0
  80. package/src/types/user.ts +59 -0
  81. package/tsconfig.json +18 -0
@@ -0,0 +1,461 @@
1
+ // @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
2
+ // @generated from file scalekit/v1/errdetails/errdetails.proto (package scalekit.v1.errdetails, 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 } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from message scalekit.v1.errdetails.ErrorInfo
11
+ */
12
+ export class ErrorInfo extends Message<ErrorInfo> {
13
+ /**
14
+ * @generated from field: string error_code = 1;
15
+ */
16
+ errorCode = "";
17
+
18
+ /**
19
+ * @generated from field: optional scalekit.v1.errdetails.DebugInfo debug_info = 2;
20
+ */
21
+ debugInfo?: DebugInfo;
22
+
23
+ /**
24
+ * @generated from field: optional scalekit.v1.errdetails.HelpInfo help_info = 3;
25
+ */
26
+ helpInfo?: HelpInfo;
27
+
28
+ /**
29
+ * @generated from field: optional scalekit.v1.errdetails.LocalizedMessageInfo localized_message_info = 4;
30
+ */
31
+ localizedMessageInfo?: LocalizedMessageInfo;
32
+
33
+ /**
34
+ * @generated from field: optional scalekit.v1.errdetails.ResourceInfo resource_info = 5;
35
+ */
36
+ resourceInfo?: ResourceInfo;
37
+
38
+ /**
39
+ * @generated from field: optional scalekit.v1.errdetails.RequestInfo request_info = 6;
40
+ */
41
+ requestInfo?: RequestInfo;
42
+
43
+ /**
44
+ * @generated from field: optional scalekit.v1.errdetails.ValidationErrorInfo validation_error_info = 8;
45
+ */
46
+ validationErrorInfo?: ValidationErrorInfo;
47
+
48
+ constructor(data?: PartialMessage<ErrorInfo>) {
49
+ super();
50
+ proto3.util.initPartial(data, this);
51
+ }
52
+
53
+ static readonly runtime: typeof proto3 = proto3;
54
+ static readonly typeName = "scalekit.v1.errdetails.ErrorInfo";
55
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
56
+ { no: 1, name: "error_code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57
+ { no: 2, name: "debug_info", kind: "message", T: DebugInfo, opt: true },
58
+ { no: 3, name: "help_info", kind: "message", T: HelpInfo, opt: true },
59
+ { no: 4, name: "localized_message_info", kind: "message", T: LocalizedMessageInfo, opt: true },
60
+ { no: 5, name: "resource_info", kind: "message", T: ResourceInfo, opt: true },
61
+ { no: 6, name: "request_info", kind: "message", T: RequestInfo, opt: true },
62
+ { no: 8, name: "validation_error_info", kind: "message", T: ValidationErrorInfo, opt: true },
63
+ ]);
64
+
65
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ErrorInfo {
66
+ return new ErrorInfo().fromBinary(bytes, options);
67
+ }
68
+
69
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ErrorInfo {
70
+ return new ErrorInfo().fromJson(jsonValue, options);
71
+ }
72
+
73
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ErrorInfo {
74
+ return new ErrorInfo().fromJsonString(jsonString, options);
75
+ }
76
+
77
+ static equals(a: ErrorInfo | PlainMessage<ErrorInfo> | undefined, b: ErrorInfo | PlainMessage<ErrorInfo> | undefined): boolean {
78
+ return proto3.util.equals(ErrorInfo, a, b);
79
+ }
80
+ }
81
+
82
+ /**
83
+ * Describes additional debugging info.
84
+ *
85
+ * @generated from message scalekit.v1.errdetails.DebugInfo
86
+ */
87
+ export class DebugInfo extends Message<DebugInfo> {
88
+ /**
89
+ * The stack trace entries indicating where the error occurred.
90
+ *
91
+ * @generated from field: repeated string stack_entries = 1;
92
+ */
93
+ stackEntries: string[] = [];
94
+
95
+ /**
96
+ * Additional debugging information provided by the server.
97
+ *
98
+ * @generated from field: string detail = 2;
99
+ */
100
+ detail = "";
101
+
102
+ constructor(data?: PartialMessage<DebugInfo>) {
103
+ super();
104
+ proto3.util.initPartial(data, this);
105
+ }
106
+
107
+ static readonly runtime: typeof proto3 = proto3;
108
+ static readonly typeName = "scalekit.v1.errdetails.DebugInfo";
109
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
110
+ { no: 1, name: "stack_entries", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
111
+ { no: 2, name: "detail", kind: "scalar", T: 9 /* ScalarType.STRING */ },
112
+ ]);
113
+
114
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DebugInfo {
115
+ return new DebugInfo().fromBinary(bytes, options);
116
+ }
117
+
118
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DebugInfo {
119
+ return new DebugInfo().fromJson(jsonValue, options);
120
+ }
121
+
122
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DebugInfo {
123
+ return new DebugInfo().fromJsonString(jsonString, options);
124
+ }
125
+
126
+ static equals(a: DebugInfo | PlainMessage<DebugInfo> | undefined, b: DebugInfo | PlainMessage<DebugInfo> | undefined): boolean {
127
+ return proto3.util.equals(DebugInfo, a, b);
128
+ }
129
+ }
130
+
131
+ /**
132
+ * Describes violations in a client request. This error type focuses on the
133
+ * syntactic aspects of the request.
134
+ *
135
+ * @generated from message scalekit.v1.errdetails.ValidationErrorInfo
136
+ */
137
+ export class ValidationErrorInfo extends Message<ValidationErrorInfo> {
138
+ /**
139
+ * Describes all violations in a client request.
140
+ *
141
+ * @generated from field: repeated scalekit.v1.errdetails.ValidationErrorInfo.FieldViolation field_violations = 1;
142
+ */
143
+ fieldViolations: ValidationErrorInfo_FieldViolation[] = [];
144
+
145
+ constructor(data?: PartialMessage<ValidationErrorInfo>) {
146
+ super();
147
+ proto3.util.initPartial(data, this);
148
+ }
149
+
150
+ static readonly runtime: typeof proto3 = proto3;
151
+ static readonly typeName = "scalekit.v1.errdetails.ValidationErrorInfo";
152
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
153
+ { no: 1, name: "field_violations", kind: "message", T: ValidationErrorInfo_FieldViolation, repeated: true },
154
+ ]);
155
+
156
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ValidationErrorInfo {
157
+ return new ValidationErrorInfo().fromBinary(bytes, options);
158
+ }
159
+
160
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ValidationErrorInfo {
161
+ return new ValidationErrorInfo().fromJson(jsonValue, options);
162
+ }
163
+
164
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ValidationErrorInfo {
165
+ return new ValidationErrorInfo().fromJsonString(jsonString, options);
166
+ }
167
+
168
+ static equals(a: ValidationErrorInfo | PlainMessage<ValidationErrorInfo> | undefined, b: ValidationErrorInfo | PlainMessage<ValidationErrorInfo> | undefined): boolean {
169
+ return proto3.util.equals(ValidationErrorInfo, a, b);
170
+ }
171
+ }
172
+
173
+ /**
174
+ * A message type used to describe a single bad request field.
175
+ *
176
+ * @generated from message scalekit.v1.errdetails.ValidationErrorInfo.FieldViolation
177
+ */
178
+ export class ValidationErrorInfo_FieldViolation extends Message<ValidationErrorInfo_FieldViolation> {
179
+ /**
180
+ * @generated from field: string field = 1;
181
+ */
182
+ field = "";
183
+
184
+ /**
185
+ * A description of why the request element is bad.
186
+ *
187
+ * @generated from field: string description = 2;
188
+ */
189
+ description = "";
190
+
191
+ /**
192
+ * @generated from field: string constraint = 3;
193
+ */
194
+ constraint = "";
195
+
196
+ constructor(data?: PartialMessage<ValidationErrorInfo_FieldViolation>) {
197
+ super();
198
+ proto3.util.initPartial(data, this);
199
+ }
200
+
201
+ static readonly runtime: typeof proto3 = proto3;
202
+ static readonly typeName = "scalekit.v1.errdetails.ValidationErrorInfo.FieldViolation";
203
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
204
+ { no: 1, name: "field", kind: "scalar", T: 9 /* ScalarType.STRING */ },
205
+ { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
206
+ { no: 3, name: "constraint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
207
+ ]);
208
+
209
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ValidationErrorInfo_FieldViolation {
210
+ return new ValidationErrorInfo_FieldViolation().fromBinary(bytes, options);
211
+ }
212
+
213
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ValidationErrorInfo_FieldViolation {
214
+ return new ValidationErrorInfo_FieldViolation().fromJson(jsonValue, options);
215
+ }
216
+
217
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ValidationErrorInfo_FieldViolation {
218
+ return new ValidationErrorInfo_FieldViolation().fromJsonString(jsonString, options);
219
+ }
220
+
221
+ static equals(a: ValidationErrorInfo_FieldViolation | PlainMessage<ValidationErrorInfo_FieldViolation> | undefined, b: ValidationErrorInfo_FieldViolation | PlainMessage<ValidationErrorInfo_FieldViolation> | undefined): boolean {
222
+ return proto3.util.equals(ValidationErrorInfo_FieldViolation, a, b);
223
+ }
224
+ }
225
+
226
+ /**
227
+ * Contains metadata about the request that clients can attach when filing a bug
228
+ * or providing other forms of feedback.
229
+ *
230
+ * @generated from message scalekit.v1.errdetails.RequestInfo
231
+ */
232
+ export class RequestInfo extends Message<RequestInfo> {
233
+ /**
234
+ * An opaque string that should only be interpreted by the service generating
235
+ * it. For example, it can be used to identify requests in the service's logs.
236
+ *
237
+ * @generated from field: string request_id = 1;
238
+ */
239
+ requestId = "";
240
+
241
+ /**
242
+ * Any data that was used to serve this request. For example, an encrypted
243
+ * stack trace that can be sent back to the service provider for debugging.
244
+ *
245
+ * @generated from field: string serving_data = 2;
246
+ */
247
+ servingData = "";
248
+
249
+ constructor(data?: PartialMessage<RequestInfo>) {
250
+ super();
251
+ proto3.util.initPartial(data, this);
252
+ }
253
+
254
+ static readonly runtime: typeof proto3 = proto3;
255
+ static readonly typeName = "scalekit.v1.errdetails.RequestInfo";
256
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
257
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
258
+ { no: 2, name: "serving_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
259
+ ]);
260
+
261
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RequestInfo {
262
+ return new RequestInfo().fromBinary(bytes, options);
263
+ }
264
+
265
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RequestInfo {
266
+ return new RequestInfo().fromJson(jsonValue, options);
267
+ }
268
+
269
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RequestInfo {
270
+ return new RequestInfo().fromJsonString(jsonString, options);
271
+ }
272
+
273
+ static equals(a: RequestInfo | PlainMessage<RequestInfo> | undefined, b: RequestInfo | PlainMessage<RequestInfo> | undefined): boolean {
274
+ return proto3.util.equals(RequestInfo, a, b);
275
+ }
276
+ }
277
+
278
+ /**
279
+ * Describes the resource that is being accessed.
280
+ *
281
+ * @generated from message scalekit.v1.errdetails.ResourceInfo
282
+ */
283
+ export class ResourceInfo extends Message<ResourceInfo> {
284
+ /**
285
+ * @generated from field: string resource_type = 1;
286
+ */
287
+ resourceType = "";
288
+
289
+ /**
290
+ * @generated from field: string resource_name = 2;
291
+ */
292
+ resourceName = "";
293
+
294
+ /**
295
+ * @generated from field: string owner = 3;
296
+ */
297
+ owner = "";
298
+
299
+ /**
300
+ * Describes what error is encountered when accessing this resource.
301
+ * For example, updating a cloud project may require the `writer` permission
302
+ * on the developer console project.
303
+ *
304
+ * @generated from field: string description = 4;
305
+ */
306
+ description = "";
307
+
308
+ constructor(data?: PartialMessage<ResourceInfo>) {
309
+ super();
310
+ proto3.util.initPartial(data, this);
311
+ }
312
+
313
+ static readonly runtime: typeof proto3 = proto3;
314
+ static readonly typeName = "scalekit.v1.errdetails.ResourceInfo";
315
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
316
+ { no: 1, name: "resource_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
317
+ { no: 2, name: "resource_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
318
+ { no: 3, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
319
+ { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
320
+ ]);
321
+
322
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResourceInfo {
323
+ return new ResourceInfo().fromBinary(bytes, options);
324
+ }
325
+
326
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResourceInfo {
327
+ return new ResourceInfo().fromJson(jsonValue, options);
328
+ }
329
+
330
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResourceInfo {
331
+ return new ResourceInfo().fromJsonString(jsonString, options);
332
+ }
333
+
334
+ static equals(a: ResourceInfo | PlainMessage<ResourceInfo> | undefined, b: ResourceInfo | PlainMessage<ResourceInfo> | undefined): boolean {
335
+ return proto3.util.equals(ResourceInfo, a, b);
336
+ }
337
+ }
338
+
339
+ /**
340
+ * @generated from message scalekit.v1.errdetails.HelpInfo
341
+ */
342
+ export class HelpInfo extends Message<HelpInfo> {
343
+ /**
344
+ * @generated from field: repeated scalekit.v1.errdetails.HelpInfo.Link links = 1;
345
+ */
346
+ links: HelpInfo_Link[] = [];
347
+
348
+ constructor(data?: PartialMessage<HelpInfo>) {
349
+ super();
350
+ proto3.util.initPartial(data, this);
351
+ }
352
+
353
+ static readonly runtime: typeof proto3 = proto3;
354
+ static readonly typeName = "scalekit.v1.errdetails.HelpInfo";
355
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
356
+ { no: 1, name: "links", kind: "message", T: HelpInfo_Link, repeated: true },
357
+ ]);
358
+
359
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HelpInfo {
360
+ return new HelpInfo().fromBinary(bytes, options);
361
+ }
362
+
363
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HelpInfo {
364
+ return new HelpInfo().fromJson(jsonValue, options);
365
+ }
366
+
367
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HelpInfo {
368
+ return new HelpInfo().fromJsonString(jsonString, options);
369
+ }
370
+
371
+ static equals(a: HelpInfo | PlainMessage<HelpInfo> | undefined, b: HelpInfo | PlainMessage<HelpInfo> | undefined): boolean {
372
+ return proto3.util.equals(HelpInfo, a, b);
373
+ }
374
+ }
375
+
376
+ /**
377
+ * @generated from message scalekit.v1.errdetails.HelpInfo.Link
378
+ */
379
+ export class HelpInfo_Link extends Message<HelpInfo_Link> {
380
+ /**
381
+ * @generated from field: string description = 1;
382
+ */
383
+ description = "";
384
+
385
+ /**
386
+ * @generated from field: string url = 2;
387
+ */
388
+ url = "";
389
+
390
+ constructor(data?: PartialMessage<HelpInfo_Link>) {
391
+ super();
392
+ proto3.util.initPartial(data, this);
393
+ }
394
+
395
+ static readonly runtime: typeof proto3 = proto3;
396
+ static readonly typeName = "scalekit.v1.errdetails.HelpInfo.Link";
397
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
398
+ { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
399
+ { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
400
+ ]);
401
+
402
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HelpInfo_Link {
403
+ return new HelpInfo_Link().fromBinary(bytes, options);
404
+ }
405
+
406
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HelpInfo_Link {
407
+ return new HelpInfo_Link().fromJson(jsonValue, options);
408
+ }
409
+
410
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HelpInfo_Link {
411
+ return new HelpInfo_Link().fromJsonString(jsonString, options);
412
+ }
413
+
414
+ static equals(a: HelpInfo_Link | PlainMessage<HelpInfo_Link> | undefined, b: HelpInfo_Link | PlainMessage<HelpInfo_Link> | undefined): boolean {
415
+ return proto3.util.equals(HelpInfo_Link, a, b);
416
+ }
417
+ }
418
+
419
+ /**
420
+ * @generated from message scalekit.v1.errdetails.LocalizedMessageInfo
421
+ */
422
+ export class LocalizedMessageInfo extends Message<LocalizedMessageInfo> {
423
+ /**
424
+ * @generated from field: string locale = 1;
425
+ */
426
+ locale = "";
427
+
428
+ /**
429
+ * @generated from field: string message = 2;
430
+ */
431
+ message = "";
432
+
433
+ constructor(data?: PartialMessage<LocalizedMessageInfo>) {
434
+ super();
435
+ proto3.util.initPartial(data, this);
436
+ }
437
+
438
+ static readonly runtime: typeof proto3 = proto3;
439
+ static readonly typeName = "scalekit.v1.errdetails.LocalizedMessageInfo";
440
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
441
+ { no: 1, name: "locale", kind: "scalar", T: 9 /* ScalarType.STRING */ },
442
+ { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
443
+ ]);
444
+
445
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LocalizedMessageInfo {
446
+ return new LocalizedMessageInfo().fromBinary(bytes, options);
447
+ }
448
+
449
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LocalizedMessageInfo {
450
+ return new LocalizedMessageInfo().fromJson(jsonValue, options);
451
+ }
452
+
453
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocalizedMessageInfo {
454
+ return new LocalizedMessageInfo().fromJsonString(jsonString, options);
455
+ }
456
+
457
+ static equals(a: LocalizedMessageInfo | PlainMessage<LocalizedMessageInfo> | undefined, b: LocalizedMessageInfo | PlainMessage<LocalizedMessageInfo> | undefined): boolean {
458
+ return proto3.util.equals(LocalizedMessageInfo, a, b);
459
+ }
460
+ }
461
+
@@ -0,0 +1,156 @@
1
+ // @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
2
+ // @generated from file scalekit/v1/options/options.proto (package scalekit.v1.options, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Message, MethodOptions, proto3 } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from enum scalekit.v1.options.AuthenticationType
11
+ */
12
+ export enum AuthenticationType {
13
+ /**
14
+ * API is blocked / private and default
15
+ *
16
+ * @generated from enum value: BLOCKED = 0;
17
+ */
18
+ BLOCKED = 0,
19
+
20
+ /**
21
+ * API is open
22
+ *
23
+ * @generated from enum value: NONE = 1;
24
+ */
25
+ NONE = 1,
26
+
27
+ /**
28
+ * workspace_id is in claims
29
+ *
30
+ * @generated from enum value: WORKSPACE = 64;
31
+ */
32
+ WORKSPACE = 64,
33
+
34
+ /**
35
+ * claims has organisation ID
36
+ *
37
+ * @generated from enum value: CUSTOMER_PORTAL = 32;
38
+ */
39
+ CUSTOMER_PORTAL = 32,
40
+
41
+ /**
42
+ * claims has UI in audience
43
+ *
44
+ * @generated from enum value: SESSION = 16;
45
+ */
46
+ SESSION = 16,
47
+
48
+ /**
49
+ * workspace_id is in claims and UI in audience
50
+ *
51
+ * @generated from enum value: WORKSPACE_SESSION = 80;
52
+ */
53
+ WORKSPACE_SESSION = 80,
54
+
55
+ /**
56
+ * user_id is in claims
57
+ *
58
+ * @generated from enum value: USER = 8;
59
+ */
60
+ USER = 8,
61
+
62
+ /**
63
+ * client Id is in subject
64
+ *
65
+ * @generated from enum value: CLIENT = 4;
66
+ */
67
+ CLIENT = 4,
68
+
69
+ /**
70
+ * UI in audience or client Id is in subject
71
+ *
72
+ * @generated from enum value: SESSION_CLIENT = 20;
73
+ */
74
+ SESSION_CLIENT = 20,
75
+
76
+ /**
77
+ * workspace_id is in claims, UI in audience and client Id is in subject
78
+ *
79
+ * @generated from enum value: WORKSPACE_SESSION_CLIENT = 84;
80
+ */
81
+ WORKSPACE_SESSION_CLIENT = 84,
82
+
83
+ /**
84
+ * claims has organisation ID, UI in audience and client Id is in subject
85
+ *
86
+ * @generated from enum value: CUSTOMER_PORTAL_SESSION_CLIENT = 52;
87
+ */
88
+ CUSTOMER_PORTAL_SESSION_CLIENT = 52,
89
+ }
90
+ // Retrieve enum metadata with: proto3.getEnumType(AuthenticationType)
91
+ proto3.util.setEnumType(AuthenticationType, "scalekit.v1.options.AuthenticationType", [
92
+ { no: 0, name: "BLOCKED" },
93
+ { no: 1, name: "NONE" },
94
+ { no: 64, name: "WORKSPACE" },
95
+ { no: 32, name: "CUSTOMER_PORTAL" },
96
+ { no: 16, name: "SESSION" },
97
+ { no: 80, name: "WORKSPACE_SESSION" },
98
+ { no: 8, name: "USER" },
99
+ { no: 4, name: "CLIENT" },
100
+ { no: 20, name: "SESSION_CLIENT" },
101
+ { no: 84, name: "WORKSPACE_SESSION_CLIENT" },
102
+ { no: 52, name: "CUSTOMER_PORTAL_SESSION_CLIENT" },
103
+ ]);
104
+
105
+ /**
106
+ * @generated from message scalekit.v1.options.AuthOption
107
+ */
108
+ export class AuthOption extends Message<AuthOption> {
109
+ /**
110
+ * @generated from field: scalekit.v1.options.AuthenticationType authentication_type = 3;
111
+ */
112
+ authenticationType = AuthenticationType.BLOCKED;
113
+
114
+ /**
115
+ * @generated from field: string permission = 1;
116
+ */
117
+ permission = "";
118
+
119
+ constructor(data?: PartialMessage<AuthOption>) {
120
+ super();
121
+ proto3.util.initPartial(data, this);
122
+ }
123
+
124
+ static readonly runtime: typeof proto3 = proto3;
125
+ static readonly typeName = "scalekit.v1.options.AuthOption";
126
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
127
+ { no: 3, name: "authentication_type", kind: "enum", T: proto3.getEnumType(AuthenticationType) },
128
+ { no: 1, name: "permission", kind: "scalar", T: 9 /* ScalarType.STRING */ },
129
+ ]);
130
+
131
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuthOption {
132
+ return new AuthOption().fromBinary(bytes, options);
133
+ }
134
+
135
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuthOption {
136
+ return new AuthOption().fromJson(jsonValue, options);
137
+ }
138
+
139
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuthOption {
140
+ return new AuthOption().fromJsonString(jsonString, options);
141
+ }
142
+
143
+ static equals(a: AuthOption | PlainMessage<AuthOption> | undefined, b: AuthOption | PlainMessage<AuthOption> | undefined): boolean {
144
+ return proto3.util.equals(AuthOption, a, b);
145
+ }
146
+ }
147
+
148
+ /**
149
+ * @generated from extension: scalekit.v1.options.AuthOption auth_option = 50000;
150
+ */
151
+ export const auth_option = proto3.makeExtension<MethodOptions, AuthOption>(
152
+ "scalekit.v1.options.auth_option",
153
+ MethodOptions,
154
+ () => ({ no: 50000, kind: "message", T: AuthOption }),
155
+ );
156
+