@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,687 @@
1
+ // @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
2
+ // @generated from file scalekit/v1/domains/domains.proto (package scalekit.v1.domains, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { Int32Value, Message, proto3, Timestamp } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * @generated from enum scalekit.v1.domains.VerificationStatus
11
+ */
12
+ export enum VerificationStatus {
13
+ /**
14
+ * @generated from enum value: VERIFICATION_STATUS_UNSPECIFIED = 0;
15
+ */
16
+ VERIFICATION_STATUS_UNSPECIFIED = 0,
17
+
18
+ /**
19
+ * @generated from enum value: PENDING = 1;
20
+ */
21
+ PENDING = 1,
22
+
23
+ /**
24
+ * @generated from enum value: VERIFIED = 2;
25
+ */
26
+ VERIFIED = 2,
27
+
28
+ /**
29
+ * @generated from enum value: FAILED = 3;
30
+ */
31
+ FAILED = 3,
32
+ }
33
+ // Retrieve enum metadata with: proto3.getEnumType(VerificationStatus)
34
+ proto3.util.setEnumType(VerificationStatus, "scalekit.v1.domains.VerificationStatus", [
35
+ { no: 0, name: "VERIFICATION_STATUS_UNSPECIFIED" },
36
+ { no: 1, name: "PENDING" },
37
+ { no: 2, name: "VERIFIED" },
38
+ { no: 3, name: "FAILED" },
39
+ ]);
40
+
41
+ /**
42
+ * @generated from message scalekit.v1.domains.CreateDomainRequest
43
+ */
44
+ export class CreateDomainRequest extends Message<CreateDomainRequest> {
45
+ /**
46
+ * @generated from oneof scalekit.v1.domains.CreateDomainRequest.identities
47
+ */
48
+ identities: {
49
+ /**
50
+ * @generated from field: string organization_id = 1;
51
+ */
52
+ value: string;
53
+ case: "organizationId";
54
+ } | {
55
+ /**
56
+ * @generated from field: string external_id = 2;
57
+ */
58
+ value: string;
59
+ case: "externalId";
60
+ } | { case: undefined; value?: undefined } = { case: undefined };
61
+
62
+ /**
63
+ * @generated from field: optional string connection_id = 3;
64
+ */
65
+ connectionId?: string;
66
+
67
+ /**
68
+ * @generated from field: scalekit.v1.domains.CreateDomain domain = 4;
69
+ */
70
+ domain?: CreateDomain;
71
+
72
+ constructor(data?: PartialMessage<CreateDomainRequest>) {
73
+ super();
74
+ proto3.util.initPartial(data, this);
75
+ }
76
+
77
+ static readonly runtime: typeof proto3 = proto3;
78
+ static readonly typeName = "scalekit.v1.domains.CreateDomainRequest";
79
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
80
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
81
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
82
+ { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
83
+ { no: 4, name: "domain", kind: "message", T: CreateDomain },
84
+ ]);
85
+
86
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateDomainRequest {
87
+ return new CreateDomainRequest().fromBinary(bytes, options);
88
+ }
89
+
90
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateDomainRequest {
91
+ return new CreateDomainRequest().fromJson(jsonValue, options);
92
+ }
93
+
94
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateDomainRequest {
95
+ return new CreateDomainRequest().fromJsonString(jsonString, options);
96
+ }
97
+
98
+ static equals(a: CreateDomainRequest | PlainMessage<CreateDomainRequest> | undefined, b: CreateDomainRequest | PlainMessage<CreateDomainRequest> | undefined): boolean {
99
+ return proto3.util.equals(CreateDomainRequest, a, b);
100
+ }
101
+ }
102
+
103
+ /**
104
+ * @generated from message scalekit.v1.domains.CreateDomainResponse
105
+ */
106
+ export class CreateDomainResponse extends Message<CreateDomainResponse> {
107
+ /**
108
+ * @generated from field: scalekit.v1.domains.Domain domain = 1;
109
+ */
110
+ domain?: Domain;
111
+
112
+ constructor(data?: PartialMessage<CreateDomainResponse>) {
113
+ super();
114
+ proto3.util.initPartial(data, this);
115
+ }
116
+
117
+ static readonly runtime: typeof proto3 = proto3;
118
+ static readonly typeName = "scalekit.v1.domains.CreateDomainResponse";
119
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
120
+ { no: 1, name: "domain", kind: "message", T: Domain },
121
+ ]);
122
+
123
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateDomainResponse {
124
+ return new CreateDomainResponse().fromBinary(bytes, options);
125
+ }
126
+
127
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateDomainResponse {
128
+ return new CreateDomainResponse().fromJson(jsonValue, options);
129
+ }
130
+
131
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateDomainResponse {
132
+ return new CreateDomainResponse().fromJsonString(jsonString, options);
133
+ }
134
+
135
+ static equals(a: CreateDomainResponse | PlainMessage<CreateDomainResponse> | undefined, b: CreateDomainResponse | PlainMessage<CreateDomainResponse> | undefined): boolean {
136
+ return proto3.util.equals(CreateDomainResponse, a, b);
137
+ }
138
+ }
139
+
140
+ /**
141
+ * @generated from message scalekit.v1.domains.CreateDomain
142
+ */
143
+ export class CreateDomain extends Message<CreateDomain> {
144
+ /**
145
+ * @generated from field: string domain = 1;
146
+ */
147
+ domain = "";
148
+
149
+ constructor(data?: PartialMessage<CreateDomain>) {
150
+ super();
151
+ proto3.util.initPartial(data, this);
152
+ }
153
+
154
+ static readonly runtime: typeof proto3 = proto3;
155
+ static readonly typeName = "scalekit.v1.domains.CreateDomain";
156
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
157
+ { no: 1, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
158
+ ]);
159
+
160
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateDomain {
161
+ return new CreateDomain().fromBinary(bytes, options);
162
+ }
163
+
164
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateDomain {
165
+ return new CreateDomain().fromJson(jsonValue, options);
166
+ }
167
+
168
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateDomain {
169
+ return new CreateDomain().fromJsonString(jsonString, options);
170
+ }
171
+
172
+ static equals(a: CreateDomain | PlainMessage<CreateDomain> | undefined, b: CreateDomain | PlainMessage<CreateDomain> | undefined): boolean {
173
+ return proto3.util.equals(CreateDomain, a, b);
174
+ }
175
+ }
176
+
177
+ /**
178
+ * @generated from message scalekit.v1.domains.UpdateDomainRequest
179
+ */
180
+ export class UpdateDomainRequest extends Message<UpdateDomainRequest> {
181
+ /**
182
+ * @generated from oneof scalekit.v1.domains.UpdateDomainRequest.identities
183
+ */
184
+ identities: {
185
+ /**
186
+ * @generated from field: string organization_id = 1;
187
+ */
188
+ value: string;
189
+ case: "organizationId";
190
+ } | {
191
+ /**
192
+ * @generated from field: string external_id = 2;
193
+ */
194
+ value: string;
195
+ case: "externalId";
196
+ } | { case: undefined; value?: undefined } = { case: undefined };
197
+
198
+ /**
199
+ * @generated from field: optional string connection_id = 3;
200
+ */
201
+ connectionId?: string;
202
+
203
+ /**
204
+ * @generated from field: string id = 4;
205
+ */
206
+ id = "";
207
+
208
+ /**
209
+ * @generated from field: scalekit.v1.domains.UpdateDomain domain = 5;
210
+ */
211
+ domain?: UpdateDomain;
212
+
213
+ constructor(data?: PartialMessage<UpdateDomainRequest>) {
214
+ super();
215
+ proto3.util.initPartial(data, this);
216
+ }
217
+
218
+ static readonly runtime: typeof proto3 = proto3;
219
+ static readonly typeName = "scalekit.v1.domains.UpdateDomainRequest";
220
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
221
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
222
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
223
+ { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
224
+ { no: 4, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
225
+ { no: 5, name: "domain", kind: "message", T: UpdateDomain },
226
+ ]);
227
+
228
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDomainRequest {
229
+ return new UpdateDomainRequest().fromBinary(bytes, options);
230
+ }
231
+
232
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDomainRequest {
233
+ return new UpdateDomainRequest().fromJson(jsonValue, options);
234
+ }
235
+
236
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDomainRequest {
237
+ return new UpdateDomainRequest().fromJsonString(jsonString, options);
238
+ }
239
+
240
+ static equals(a: UpdateDomainRequest | PlainMessage<UpdateDomainRequest> | undefined, b: UpdateDomainRequest | PlainMessage<UpdateDomainRequest> | undefined): boolean {
241
+ return proto3.util.equals(UpdateDomainRequest, a, b);
242
+ }
243
+ }
244
+
245
+ /**
246
+ * @generated from message scalekit.v1.domains.UpdateDomain
247
+ */
248
+ export class UpdateDomain extends Message<UpdateDomain> {
249
+ constructor(data?: PartialMessage<UpdateDomain>) {
250
+ super();
251
+ proto3.util.initPartial(data, this);
252
+ }
253
+
254
+ static readonly runtime: typeof proto3 = proto3;
255
+ static readonly typeName = "scalekit.v1.domains.UpdateDomain";
256
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
257
+ ]);
258
+
259
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDomain {
260
+ return new UpdateDomain().fromBinary(bytes, options);
261
+ }
262
+
263
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDomain {
264
+ return new UpdateDomain().fromJson(jsonValue, options);
265
+ }
266
+
267
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDomain {
268
+ return new UpdateDomain().fromJsonString(jsonString, options);
269
+ }
270
+
271
+ static equals(a: UpdateDomain | PlainMessage<UpdateDomain> | undefined, b: UpdateDomain | PlainMessage<UpdateDomain> | undefined): boolean {
272
+ return proto3.util.equals(UpdateDomain, a, b);
273
+ }
274
+ }
275
+
276
+ /**
277
+ * @generated from message scalekit.v1.domains.UpdateDomainResponse
278
+ */
279
+ export class UpdateDomainResponse extends Message<UpdateDomainResponse> {
280
+ /**
281
+ * @generated from field: scalekit.v1.domains.Domain domain = 1;
282
+ */
283
+ domain?: Domain;
284
+
285
+ constructor(data?: PartialMessage<UpdateDomainResponse>) {
286
+ super();
287
+ proto3.util.initPartial(data, this);
288
+ }
289
+
290
+ static readonly runtime: typeof proto3 = proto3;
291
+ static readonly typeName = "scalekit.v1.domains.UpdateDomainResponse";
292
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
293
+ { no: 1, name: "domain", kind: "message", T: Domain },
294
+ ]);
295
+
296
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDomainResponse {
297
+ return new UpdateDomainResponse().fromBinary(bytes, options);
298
+ }
299
+
300
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDomainResponse {
301
+ return new UpdateDomainResponse().fromJson(jsonValue, options);
302
+ }
303
+
304
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDomainResponse {
305
+ return new UpdateDomainResponse().fromJsonString(jsonString, options);
306
+ }
307
+
308
+ static equals(a: UpdateDomainResponse | PlainMessage<UpdateDomainResponse> | undefined, b: UpdateDomainResponse | PlainMessage<UpdateDomainResponse> | undefined): boolean {
309
+ return proto3.util.equals(UpdateDomainResponse, a, b);
310
+ }
311
+ }
312
+
313
+ /**
314
+ * @generated from message scalekit.v1.domains.GetDomainRequest
315
+ */
316
+ export class GetDomainRequest extends Message<GetDomainRequest> {
317
+ /**
318
+ * @generated from oneof scalekit.v1.domains.GetDomainRequest.identities
319
+ */
320
+ identities: {
321
+ /**
322
+ * @generated from field: string organization_id = 1;
323
+ */
324
+ value: string;
325
+ case: "organizationId";
326
+ } | {
327
+ /**
328
+ * @generated from field: string external_id = 2;
329
+ */
330
+ value: string;
331
+ case: "externalId";
332
+ } | { case: undefined; value?: undefined } = { case: undefined };
333
+
334
+ /**
335
+ * @generated from field: string id = 3;
336
+ */
337
+ id = "";
338
+
339
+ constructor(data?: PartialMessage<GetDomainRequest>) {
340
+ super();
341
+ proto3.util.initPartial(data, this);
342
+ }
343
+
344
+ static readonly runtime: typeof proto3 = proto3;
345
+ static readonly typeName = "scalekit.v1.domains.GetDomainRequest";
346
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
347
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
348
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
349
+ { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
350
+ ]);
351
+
352
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDomainRequest {
353
+ return new GetDomainRequest().fromBinary(bytes, options);
354
+ }
355
+
356
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDomainRequest {
357
+ return new GetDomainRequest().fromJson(jsonValue, options);
358
+ }
359
+
360
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDomainRequest {
361
+ return new GetDomainRequest().fromJsonString(jsonString, options);
362
+ }
363
+
364
+ static equals(a: GetDomainRequest | PlainMessage<GetDomainRequest> | undefined, b: GetDomainRequest | PlainMessage<GetDomainRequest> | undefined): boolean {
365
+ return proto3.util.equals(GetDomainRequest, a, b);
366
+ }
367
+ }
368
+
369
+ /**
370
+ * @generated from message scalekit.v1.domains.GetDomainResponse
371
+ */
372
+ export class GetDomainResponse extends Message<GetDomainResponse> {
373
+ /**
374
+ * @generated from field: scalekit.v1.domains.Domain domain = 1;
375
+ */
376
+ domain?: Domain;
377
+
378
+ constructor(data?: PartialMessage<GetDomainResponse>) {
379
+ super();
380
+ proto3.util.initPartial(data, this);
381
+ }
382
+
383
+ static readonly runtime: typeof proto3 = proto3;
384
+ static readonly typeName = "scalekit.v1.domains.GetDomainResponse";
385
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
386
+ { no: 1, name: "domain", kind: "message", T: Domain },
387
+ ]);
388
+
389
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDomainResponse {
390
+ return new GetDomainResponse().fromBinary(bytes, options);
391
+ }
392
+
393
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDomainResponse {
394
+ return new GetDomainResponse().fromJson(jsonValue, options);
395
+ }
396
+
397
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDomainResponse {
398
+ return new GetDomainResponse().fromJsonString(jsonString, options);
399
+ }
400
+
401
+ static equals(a: GetDomainResponse | PlainMessage<GetDomainResponse> | undefined, b: GetDomainResponse | PlainMessage<GetDomainResponse> | undefined): boolean {
402
+ return proto3.util.equals(GetDomainResponse, a, b);
403
+ }
404
+ }
405
+
406
+ /**
407
+ * @generated from message scalekit.v1.domains.DeleteDomainRequest
408
+ */
409
+ export class DeleteDomainRequest extends Message<DeleteDomainRequest> {
410
+ /**
411
+ * @generated from field: string id = 1;
412
+ */
413
+ id = "";
414
+
415
+ /**
416
+ * @generated from oneof scalekit.v1.domains.DeleteDomainRequest.identities
417
+ */
418
+ identities: {
419
+ /**
420
+ * @generated from field: string organization_id = 2;
421
+ */
422
+ value: string;
423
+ case: "organizationId";
424
+ } | {
425
+ /**
426
+ * @generated from field: string external_id = 3;
427
+ */
428
+ value: string;
429
+ case: "externalId";
430
+ } | { case: undefined; value?: undefined } = { case: undefined };
431
+
432
+ /**
433
+ * @generated from field: optional string connection_id = 4;
434
+ */
435
+ connectionId?: string;
436
+
437
+ constructor(data?: PartialMessage<DeleteDomainRequest>) {
438
+ super();
439
+ proto3.util.initPartial(data, this);
440
+ }
441
+
442
+ static readonly runtime: typeof proto3 = proto3;
443
+ static readonly typeName = "scalekit.v1.domains.DeleteDomainRequest";
444
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
445
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
446
+ { no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
447
+ { no: 3, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
448
+ { no: 4, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
449
+ ]);
450
+
451
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteDomainRequest {
452
+ return new DeleteDomainRequest().fromBinary(bytes, options);
453
+ }
454
+
455
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteDomainRequest {
456
+ return new DeleteDomainRequest().fromJson(jsonValue, options);
457
+ }
458
+
459
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteDomainRequest {
460
+ return new DeleteDomainRequest().fromJsonString(jsonString, options);
461
+ }
462
+
463
+ static equals(a: DeleteDomainRequest | PlainMessage<DeleteDomainRequest> | undefined, b: DeleteDomainRequest | PlainMessage<DeleteDomainRequest> | undefined): boolean {
464
+ return proto3.util.equals(DeleteDomainRequest, a, b);
465
+ }
466
+ }
467
+
468
+ /**
469
+ * @generated from message scalekit.v1.domains.ListDomainRequest
470
+ */
471
+ export class ListDomainRequest extends Message<ListDomainRequest> {
472
+ /**
473
+ * @generated from oneof scalekit.v1.domains.ListDomainRequest.identities
474
+ */
475
+ identities: {
476
+ /**
477
+ * @generated from field: string organization_id = 1;
478
+ */
479
+ value: string;
480
+ case: "organizationId";
481
+ } | {
482
+ /**
483
+ * @generated from field: string external_id = 2;
484
+ */
485
+ value: string;
486
+ case: "externalId";
487
+ } | { case: undefined; value?: undefined } = { case: undefined };
488
+
489
+ /**
490
+ * @generated from field: optional string connection_id = 3;
491
+ */
492
+ connectionId?: string;
493
+
494
+ /**
495
+ * @generated from field: optional string include = 4;
496
+ */
497
+ include?: string;
498
+
499
+ /**
500
+ * @generated from field: google.protobuf.Int32Value page_size = 5;
501
+ */
502
+ pageSize?: number;
503
+
504
+ /**
505
+ * @generated from field: google.protobuf.Int32Value page_number = 6;
506
+ */
507
+ pageNumber?: number;
508
+
509
+ constructor(data?: PartialMessage<ListDomainRequest>) {
510
+ super();
511
+ proto3.util.initPartial(data, this);
512
+ }
513
+
514
+ static readonly runtime: typeof proto3 = proto3;
515
+ static readonly typeName = "scalekit.v1.domains.ListDomainRequest";
516
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
517
+ { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
518
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
519
+ { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
520
+ { no: 4, name: "include", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
521
+ { no: 5, name: "page_size", kind: "message", T: Int32Value },
522
+ { no: 6, name: "page_number", kind: "message", T: Int32Value },
523
+ ]);
524
+
525
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDomainRequest {
526
+ return new ListDomainRequest().fromBinary(bytes, options);
527
+ }
528
+
529
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDomainRequest {
530
+ return new ListDomainRequest().fromJson(jsonValue, options);
531
+ }
532
+
533
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDomainRequest {
534
+ return new ListDomainRequest().fromJsonString(jsonString, options);
535
+ }
536
+
537
+ static equals(a: ListDomainRequest | PlainMessage<ListDomainRequest> | undefined, b: ListDomainRequest | PlainMessage<ListDomainRequest> | undefined): boolean {
538
+ return proto3.util.equals(ListDomainRequest, a, b);
539
+ }
540
+ }
541
+
542
+ /**
543
+ * @generated from message scalekit.v1.domains.ListDomainResponse
544
+ */
545
+ export class ListDomainResponse extends Message<ListDomainResponse> {
546
+ /**
547
+ * @generated from field: int32 page_size = 1;
548
+ */
549
+ pageSize = 0;
550
+
551
+ /**
552
+ * @generated from field: int32 page_number = 2;
553
+ */
554
+ pageNumber = 0;
555
+
556
+ /**
557
+ * @generated from field: repeated scalekit.v1.domains.Domain domains = 3;
558
+ */
559
+ domains: Domain[] = [];
560
+
561
+ constructor(data?: PartialMessage<ListDomainResponse>) {
562
+ super();
563
+ proto3.util.initPartial(data, this);
564
+ }
565
+
566
+ static readonly runtime: typeof proto3 = proto3;
567
+ static readonly typeName = "scalekit.v1.domains.ListDomainResponse";
568
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
569
+ { no: 1, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
570
+ { no: 2, name: "page_number", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
571
+ { no: 3, name: "domains", kind: "message", T: Domain, repeated: true },
572
+ ]);
573
+
574
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDomainResponse {
575
+ return new ListDomainResponse().fromBinary(bytes, options);
576
+ }
577
+
578
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDomainResponse {
579
+ return new ListDomainResponse().fromJson(jsonValue, options);
580
+ }
581
+
582
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDomainResponse {
583
+ return new ListDomainResponse().fromJsonString(jsonString, options);
584
+ }
585
+
586
+ static equals(a: ListDomainResponse | PlainMessage<ListDomainResponse> | undefined, b: ListDomainResponse | PlainMessage<ListDomainResponse> | undefined): boolean {
587
+ return proto3.util.equals(ListDomainResponse, a, b);
588
+ }
589
+ }
590
+
591
+ /**
592
+ * @generated from message scalekit.v1.domains.Domain
593
+ */
594
+ export class Domain extends Message<Domain> {
595
+ /**
596
+ * @generated from field: string id = 1;
597
+ */
598
+ id = "";
599
+
600
+ /**
601
+ * @generated from field: string domain = 2;
602
+ */
603
+ domain = "";
604
+
605
+ /**
606
+ * @generated from field: string environment_id = 3;
607
+ */
608
+ environmentId = "";
609
+
610
+ /**
611
+ * @generated from field: string organization_id = 4;
612
+ */
613
+ organizationId = "";
614
+
615
+ /**
616
+ * @generated from field: string connection_id = 5;
617
+ */
618
+ connectionId = "";
619
+
620
+ /**
621
+ * @generated from field: string txt_record_key = 6;
622
+ */
623
+ txtRecordKey = "";
624
+
625
+ /**
626
+ * @generated from field: string txt_record_secret = 7;
627
+ */
628
+ txtRecordSecret = "";
629
+
630
+ /**
631
+ * @generated from field: scalekit.v1.domains.VerificationStatus verification_status = 8;
632
+ */
633
+ verificationStatus = VerificationStatus.VERIFICATION_STATUS_UNSPECIFIED;
634
+
635
+ /**
636
+ * @generated from field: google.protobuf.Timestamp create_time = 9;
637
+ */
638
+ createTime?: Timestamp;
639
+
640
+ /**
641
+ * @generated from field: google.protobuf.Timestamp update_time = 10;
642
+ */
643
+ updateTime?: Timestamp;
644
+
645
+ /**
646
+ * @generated from field: optional string created_by = 11;
647
+ */
648
+ createdBy?: string;
649
+
650
+ constructor(data?: PartialMessage<Domain>) {
651
+ super();
652
+ proto3.util.initPartial(data, this);
653
+ }
654
+
655
+ static readonly runtime: typeof proto3 = proto3;
656
+ static readonly typeName = "scalekit.v1.domains.Domain";
657
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
658
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
659
+ { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
660
+ { no: 3, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
661
+ { no: 4, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
662
+ { no: 5, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
663
+ { no: 6, name: "txt_record_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
664
+ { no: 7, name: "txt_record_secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
665
+ { no: 8, name: "verification_status", kind: "enum", T: proto3.getEnumType(VerificationStatus) },
666
+ { no: 9, name: "create_time", kind: "message", T: Timestamp },
667
+ { no: 10, name: "update_time", kind: "message", T: Timestamp },
668
+ { no: 11, name: "created_by", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
669
+ ]);
670
+
671
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Domain {
672
+ return new Domain().fromBinary(bytes, options);
673
+ }
674
+
675
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Domain {
676
+ return new Domain().fromJson(jsonValue, options);
677
+ }
678
+
679
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Domain {
680
+ return new Domain().fromJsonString(jsonString, options);
681
+ }
682
+
683
+ static equals(a: Domain | PlainMessage<Domain> | undefined, b: Domain | PlainMessage<Domain> | undefined): boolean {
684
+ return proto3.util.equals(Domain, a, b);
685
+ }
686
+ }
687
+