@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,774 @@
1
+ // @generated by protoc-gen-es v1.8.0 with parameter "target=ts"
2
+ // @generated from file scalekit/v1/organizations/organizations.proto (package scalekit.v1.organizations, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
+ import { FieldMask, Message, proto3, Timestamp } from "@bufbuild/protobuf";
8
+ import { RegionCode } from "../commons/commons_pb.js";
9
+
10
+ /**
11
+ * @generated from message scalekit.v1.organizations.CreateOrganizationRequest
12
+ */
13
+ export class CreateOrganizationRequest extends Message<CreateOrganizationRequest> {
14
+ /**
15
+ * Organization details
16
+ *
17
+ * @generated from field: scalekit.v1.organizations.CreateOrganization organization = 1;
18
+ */
19
+ organization?: CreateOrganization;
20
+
21
+ constructor(data?: PartialMessage<CreateOrganizationRequest>) {
22
+ super();
23
+ proto3.util.initPartial(data, this);
24
+ }
25
+
26
+ static readonly runtime: typeof proto3 = proto3;
27
+ static readonly typeName = "scalekit.v1.organizations.CreateOrganizationRequest";
28
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
29
+ { no: 1, name: "organization", kind: "message", T: CreateOrganization },
30
+ ]);
31
+
32
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganizationRequest {
33
+ return new CreateOrganizationRequest().fromBinary(bytes, options);
34
+ }
35
+
36
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganizationRequest {
37
+ return new CreateOrganizationRequest().fromJson(jsonValue, options);
38
+ }
39
+
40
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganizationRequest {
41
+ return new CreateOrganizationRequest().fromJsonString(jsonString, options);
42
+ }
43
+
44
+ static equals(a: CreateOrganizationRequest | PlainMessage<CreateOrganizationRequest> | undefined, b: CreateOrganizationRequest | PlainMessage<CreateOrganizationRequest> | undefined): boolean {
45
+ return proto3.util.equals(CreateOrganizationRequest, a, b);
46
+ }
47
+ }
48
+
49
+ /**
50
+ * @generated from message scalekit.v1.organizations.CreateOrganizationResponse
51
+ */
52
+ export class CreateOrganizationResponse extends Message<CreateOrganizationResponse> {
53
+ /**
54
+ * @generated from field: scalekit.v1.organizations.Organization organization = 1;
55
+ */
56
+ organization?: Organization;
57
+
58
+ constructor(data?: PartialMessage<CreateOrganizationResponse>) {
59
+ super();
60
+ proto3.util.initPartial(data, this);
61
+ }
62
+
63
+ static readonly runtime: typeof proto3 = proto3;
64
+ static readonly typeName = "scalekit.v1.organizations.CreateOrganizationResponse";
65
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
66
+ { no: 1, name: "organization", kind: "message", T: Organization },
67
+ ]);
68
+
69
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganizationResponse {
70
+ return new CreateOrganizationResponse().fromBinary(bytes, options);
71
+ }
72
+
73
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganizationResponse {
74
+ return new CreateOrganizationResponse().fromJson(jsonValue, options);
75
+ }
76
+
77
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganizationResponse {
78
+ return new CreateOrganizationResponse().fromJsonString(jsonString, options);
79
+ }
80
+
81
+ static equals(a: CreateOrganizationResponse | PlainMessage<CreateOrganizationResponse> | undefined, b: CreateOrganizationResponse | PlainMessage<CreateOrganizationResponse> | undefined): boolean {
82
+ return proto3.util.equals(CreateOrganizationResponse, a, b);
83
+ }
84
+ }
85
+
86
+ /**
87
+ * @generated from message scalekit.v1.organizations.CreateOrganization
88
+ */
89
+ export class CreateOrganization extends Message<CreateOrganization> {
90
+ /**
91
+ * Name of the org to be used in display
92
+ *
93
+ * @generated from field: string display_name = 4;
94
+ */
95
+ displayName = "";
96
+
97
+ /**
98
+ * Optional regioncode
99
+ *
100
+ * @generated from field: scalekit.v1.commons.RegionCode region_code = 5;
101
+ */
102
+ regionCode = RegionCode.REGION_CODE_UNSPECIFIED;
103
+
104
+ /**
105
+ * External Id is useful to store a unique identifier for a given Org that. The unique Identifier can be the id of your tenant / org in your SaaSApp
106
+ *
107
+ * @generated from field: optional string external_id = 6;
108
+ */
109
+ externalId?: string;
110
+
111
+ /**
112
+ * Key value pairs extension attributes.
113
+ *
114
+ * @generated from field: map<string, string> metadata = 7;
115
+ */
116
+ metadata: { [key: string]: string } = {};
117
+
118
+ constructor(data?: PartialMessage<CreateOrganization>) {
119
+ super();
120
+ proto3.util.initPartial(data, this);
121
+ }
122
+
123
+ static readonly runtime: typeof proto3 = proto3;
124
+ static readonly typeName = "scalekit.v1.organizations.CreateOrganization";
125
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
126
+ { no: 4, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
127
+ { no: 5, name: "region_code", kind: "enum", T: proto3.getEnumType(RegionCode) },
128
+ { no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
129
+ { no: 7, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
130
+ ]);
131
+
132
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateOrganization {
133
+ return new CreateOrganization().fromBinary(bytes, options);
134
+ }
135
+
136
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateOrganization {
137
+ return new CreateOrganization().fromJson(jsonValue, options);
138
+ }
139
+
140
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateOrganization {
141
+ return new CreateOrganization().fromJsonString(jsonString, options);
142
+ }
143
+
144
+ static equals(a: CreateOrganization | PlainMessage<CreateOrganization> | undefined, b: CreateOrganization | PlainMessage<CreateOrganization> | undefined): boolean {
145
+ return proto3.util.equals(CreateOrganization, a, b);
146
+ }
147
+ }
148
+
149
+ /**
150
+ * @generated from message scalekit.v1.organizations.Organization
151
+ */
152
+ export class Organization extends Message<Organization> {
153
+ /**
154
+ * Id
155
+ *
156
+ * @generated from field: string id = 1;
157
+ */
158
+ id = "";
159
+
160
+ /**
161
+ * Created Time
162
+ *
163
+ * @generated from field: google.protobuf.Timestamp create_time = 2;
164
+ */
165
+ createTime?: Timestamp;
166
+
167
+ /**
168
+ * Updated time
169
+ *
170
+ * @generated from field: google.protobuf.Timestamp update_time = 3;
171
+ */
172
+ updateTime?: Timestamp;
173
+
174
+ /**
175
+ * Name of the org to be used in display
176
+ *
177
+ * @generated from field: string display_name = 4;
178
+ */
179
+ displayName = "";
180
+
181
+ /**
182
+ * Optional regioncode
183
+ *
184
+ * @generated from field: scalekit.v1.commons.RegionCode region_code = 5;
185
+ */
186
+ regionCode = RegionCode.REGION_CODE_UNSPECIFIED;
187
+
188
+ /**
189
+ * External Id is useful to store a unique identifier for a given Org that. The unique Identifier can be the id of your tenant / org in your SaaSApp
190
+ *
191
+ * @generated from field: optional string external_id = 6;
192
+ */
193
+ externalId?: string;
194
+
195
+ /**
196
+ * Key value pairs extension attributes.
197
+ *
198
+ * @generated from field: map<string, string> metadata = 7;
199
+ */
200
+ metadata: { [key: string]: string } = {};
201
+
202
+ constructor(data?: PartialMessage<Organization>) {
203
+ super();
204
+ proto3.util.initPartial(data, this);
205
+ }
206
+
207
+ static readonly runtime: typeof proto3 = proto3;
208
+ static readonly typeName = "scalekit.v1.organizations.Organization";
209
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
210
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
211
+ { no: 2, name: "create_time", kind: "message", T: Timestamp },
212
+ { no: 3, name: "update_time", kind: "message", T: Timestamp },
213
+ { no: 4, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
214
+ { no: 5, name: "region_code", kind: "enum", T: proto3.getEnumType(RegionCode) },
215
+ { no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
216
+ { no: 7, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
217
+ ]);
218
+
219
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Organization {
220
+ return new Organization().fromBinary(bytes, options);
221
+ }
222
+
223
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Organization {
224
+ return new Organization().fromJson(jsonValue, options);
225
+ }
226
+
227
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Organization {
228
+ return new Organization().fromJsonString(jsonString, options);
229
+ }
230
+
231
+ static equals(a: Organization | PlainMessage<Organization> | undefined, b: Organization | PlainMessage<Organization> | undefined): boolean {
232
+ return proto3.util.equals(Organization, a, b);
233
+ }
234
+ }
235
+
236
+ /**
237
+ * @generated from message scalekit.v1.organizations.UpdateOrganizationRequest
238
+ */
239
+ export class UpdateOrganizationRequest extends Message<UpdateOrganizationRequest> {
240
+ /**
241
+ * @generated from oneof scalekit.v1.organizations.UpdateOrganizationRequest.identities
242
+ */
243
+ identities: {
244
+ /**
245
+ * @generated from field: string id = 1;
246
+ */
247
+ value: string;
248
+ case: "id";
249
+ } | {
250
+ /**
251
+ * @generated from field: string external_id = 2;
252
+ */
253
+ value: string;
254
+ case: "externalId";
255
+ } | { case: undefined; value?: undefined } = { case: undefined };
256
+
257
+ /**
258
+ * @generated from field: scalekit.v1.organizations.UpdateOrganization organization = 3;
259
+ */
260
+ organization?: UpdateOrganization;
261
+
262
+ /**
263
+ * @generated from field: google.protobuf.FieldMask update_mask = 99;
264
+ */
265
+ updateMask?: FieldMask;
266
+
267
+ constructor(data?: PartialMessage<UpdateOrganizationRequest>) {
268
+ super();
269
+ proto3.util.initPartial(data, this);
270
+ }
271
+
272
+ static readonly runtime: typeof proto3 = proto3;
273
+ static readonly typeName = "scalekit.v1.organizations.UpdateOrganizationRequest";
274
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
275
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
276
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
277
+ { no: 3, name: "organization", kind: "message", T: UpdateOrganization },
278
+ { no: 99, name: "update_mask", kind: "message", T: FieldMask },
279
+ ]);
280
+
281
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateOrganizationRequest {
282
+ return new UpdateOrganizationRequest().fromBinary(bytes, options);
283
+ }
284
+
285
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateOrganizationRequest {
286
+ return new UpdateOrganizationRequest().fromJson(jsonValue, options);
287
+ }
288
+
289
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateOrganizationRequest {
290
+ return new UpdateOrganizationRequest().fromJsonString(jsonString, options);
291
+ }
292
+
293
+ static equals(a: UpdateOrganizationRequest | PlainMessage<UpdateOrganizationRequest> | undefined, b: UpdateOrganizationRequest | PlainMessage<UpdateOrganizationRequest> | undefined): boolean {
294
+ return proto3.util.equals(UpdateOrganizationRequest, a, b);
295
+ }
296
+ }
297
+
298
+ /**
299
+ * For update messages ensure the indexes are same as the base model itself.
300
+ *
301
+ * @generated from message scalekit.v1.organizations.UpdateOrganization
302
+ */
303
+ export class UpdateOrganization extends Message<UpdateOrganization> {
304
+ /**
305
+ * @generated from field: optional string display_name = 4;
306
+ */
307
+ displayName?: string;
308
+
309
+ /**
310
+ * @generated from field: optional string external_id = 6;
311
+ */
312
+ externalId?: string;
313
+
314
+ /**
315
+ * @generated from field: map<string, string> metadata = 7;
316
+ */
317
+ metadata: { [key: string]: string } = {};
318
+
319
+ constructor(data?: PartialMessage<UpdateOrganization>) {
320
+ super();
321
+ proto3.util.initPartial(data, this);
322
+ }
323
+
324
+ static readonly runtime: typeof proto3 = proto3;
325
+ static readonly typeName = "scalekit.v1.organizations.UpdateOrganization";
326
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
327
+ { no: 4, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
328
+ { no: 6, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
329
+ { no: 7, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
330
+ ]);
331
+
332
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateOrganization {
333
+ return new UpdateOrganization().fromBinary(bytes, options);
334
+ }
335
+
336
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateOrganization {
337
+ return new UpdateOrganization().fromJson(jsonValue, options);
338
+ }
339
+
340
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateOrganization {
341
+ return new UpdateOrganization().fromJsonString(jsonString, options);
342
+ }
343
+
344
+ static equals(a: UpdateOrganization | PlainMessage<UpdateOrganization> | undefined, b: UpdateOrganization | PlainMessage<UpdateOrganization> | undefined): boolean {
345
+ return proto3.util.equals(UpdateOrganization, a, b);
346
+ }
347
+ }
348
+
349
+ /**
350
+ * @generated from message scalekit.v1.organizations.UpdateOrganizationResponse
351
+ */
352
+ export class UpdateOrganizationResponse extends Message<UpdateOrganizationResponse> {
353
+ /**
354
+ * @generated from field: scalekit.v1.organizations.Organization organization = 1;
355
+ */
356
+ organization?: Organization;
357
+
358
+ constructor(data?: PartialMessage<UpdateOrganizationResponse>) {
359
+ super();
360
+ proto3.util.initPartial(data, this);
361
+ }
362
+
363
+ static readonly runtime: typeof proto3 = proto3;
364
+ static readonly typeName = "scalekit.v1.organizations.UpdateOrganizationResponse";
365
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
366
+ { no: 1, name: "organization", kind: "message", T: Organization },
367
+ ]);
368
+
369
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateOrganizationResponse {
370
+ return new UpdateOrganizationResponse().fromBinary(bytes, options);
371
+ }
372
+
373
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateOrganizationResponse {
374
+ return new UpdateOrganizationResponse().fromJson(jsonValue, options);
375
+ }
376
+
377
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateOrganizationResponse {
378
+ return new UpdateOrganizationResponse().fromJsonString(jsonString, options);
379
+ }
380
+
381
+ static equals(a: UpdateOrganizationResponse | PlainMessage<UpdateOrganizationResponse> | undefined, b: UpdateOrganizationResponse | PlainMessage<UpdateOrganizationResponse> | undefined): boolean {
382
+ return proto3.util.equals(UpdateOrganizationResponse, a, b);
383
+ }
384
+ }
385
+
386
+ /**
387
+ * @generated from message scalekit.v1.organizations.GetOrganizationRequest
388
+ */
389
+ export class GetOrganizationRequest extends Message<GetOrganizationRequest> {
390
+ /**
391
+ * @generated from oneof scalekit.v1.organizations.GetOrganizationRequest.identities
392
+ */
393
+ identities: {
394
+ /**
395
+ * @generated from field: string id = 1;
396
+ */
397
+ value: string;
398
+ case: "id";
399
+ } | {
400
+ /**
401
+ * @generated from field: string external_id = 2;
402
+ */
403
+ value: string;
404
+ case: "externalId";
405
+ } | { case: undefined; value?: undefined } = { case: undefined };
406
+
407
+ constructor(data?: PartialMessage<GetOrganizationRequest>) {
408
+ super();
409
+ proto3.util.initPartial(data, this);
410
+ }
411
+
412
+ static readonly runtime: typeof proto3 = proto3;
413
+ static readonly typeName = "scalekit.v1.organizations.GetOrganizationRequest";
414
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
415
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
416
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
417
+ ]);
418
+
419
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationRequest {
420
+ return new GetOrganizationRequest().fromBinary(bytes, options);
421
+ }
422
+
423
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationRequest {
424
+ return new GetOrganizationRequest().fromJson(jsonValue, options);
425
+ }
426
+
427
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationRequest {
428
+ return new GetOrganizationRequest().fromJsonString(jsonString, options);
429
+ }
430
+
431
+ static equals(a: GetOrganizationRequest | PlainMessage<GetOrganizationRequest> | undefined, b: GetOrganizationRequest | PlainMessage<GetOrganizationRequest> | undefined): boolean {
432
+ return proto3.util.equals(GetOrganizationRequest, a, b);
433
+ }
434
+ }
435
+
436
+ /**
437
+ * @generated from message scalekit.v1.organizations.GetOrganizationResponse
438
+ */
439
+ export class GetOrganizationResponse extends Message<GetOrganizationResponse> {
440
+ /**
441
+ * @generated from field: scalekit.v1.organizations.Organization organization = 1;
442
+ */
443
+ organization?: Organization;
444
+
445
+ constructor(data?: PartialMessage<GetOrganizationResponse>) {
446
+ super();
447
+ proto3.util.initPartial(data, this);
448
+ }
449
+
450
+ static readonly runtime: typeof proto3 = proto3;
451
+ static readonly typeName = "scalekit.v1.organizations.GetOrganizationResponse";
452
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
453
+ { no: 1, name: "organization", kind: "message", T: Organization },
454
+ ]);
455
+
456
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetOrganizationResponse {
457
+ return new GetOrganizationResponse().fromBinary(bytes, options);
458
+ }
459
+
460
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetOrganizationResponse {
461
+ return new GetOrganizationResponse().fromJson(jsonValue, options);
462
+ }
463
+
464
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetOrganizationResponse {
465
+ return new GetOrganizationResponse().fromJsonString(jsonString, options);
466
+ }
467
+
468
+ static equals(a: GetOrganizationResponse | PlainMessage<GetOrganizationResponse> | undefined, b: GetOrganizationResponse | PlainMessage<GetOrganizationResponse> | undefined): boolean {
469
+ return proto3.util.equals(GetOrganizationResponse, a, b);
470
+ }
471
+ }
472
+
473
+ /**
474
+ * @generated from message scalekit.v1.organizations.ListOrganizationsRequest
475
+ */
476
+ export class ListOrganizationsRequest extends Message<ListOrganizationsRequest> {
477
+ /**
478
+ * @generated from field: uint32 page_size = 1;
479
+ */
480
+ pageSize = 0;
481
+
482
+ /**
483
+ * @generated from field: string page_token = 2;
484
+ */
485
+ pageToken = "";
486
+
487
+ constructor(data?: PartialMessage<ListOrganizationsRequest>) {
488
+ super();
489
+ proto3.util.initPartial(data, this);
490
+ }
491
+
492
+ static readonly runtime: typeof proto3 = proto3;
493
+ static readonly typeName = "scalekit.v1.organizations.ListOrganizationsRequest";
494
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
495
+ { no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
496
+ { no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
497
+ ]);
498
+
499
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationsRequest {
500
+ return new ListOrganizationsRequest().fromBinary(bytes, options);
501
+ }
502
+
503
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationsRequest {
504
+ return new ListOrganizationsRequest().fromJson(jsonValue, options);
505
+ }
506
+
507
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationsRequest {
508
+ return new ListOrganizationsRequest().fromJsonString(jsonString, options);
509
+ }
510
+
511
+ static equals(a: ListOrganizationsRequest | PlainMessage<ListOrganizationsRequest> | undefined, b: ListOrganizationsRequest | PlainMessage<ListOrganizationsRequest> | undefined): boolean {
512
+ return proto3.util.equals(ListOrganizationsRequest, a, b);
513
+ }
514
+ }
515
+
516
+ /**
517
+ * @generated from message scalekit.v1.organizations.ListOrganizationsResponse
518
+ */
519
+ export class ListOrganizationsResponse extends Message<ListOrganizationsResponse> {
520
+ /**
521
+ * @generated from field: string next_page_token = 1;
522
+ */
523
+ nextPageToken = "";
524
+
525
+ /**
526
+ * @generated from field: uint32 total_size = 2;
527
+ */
528
+ totalSize = 0;
529
+
530
+ /**
531
+ * @generated from field: repeated scalekit.v1.organizations.Organization organizations = 3;
532
+ */
533
+ organizations: Organization[] = [];
534
+
535
+ constructor(data?: PartialMessage<ListOrganizationsResponse>) {
536
+ super();
537
+ proto3.util.initPartial(data, this);
538
+ }
539
+
540
+ static readonly runtime: typeof proto3 = proto3;
541
+ static readonly typeName = "scalekit.v1.organizations.ListOrganizationsResponse";
542
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
543
+ { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
544
+ { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
545
+ { no: 3, name: "organizations", kind: "message", T: Organization, repeated: true },
546
+ ]);
547
+
548
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListOrganizationsResponse {
549
+ return new ListOrganizationsResponse().fromBinary(bytes, options);
550
+ }
551
+
552
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListOrganizationsResponse {
553
+ return new ListOrganizationsResponse().fromJson(jsonValue, options);
554
+ }
555
+
556
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListOrganizationsResponse {
557
+ return new ListOrganizationsResponse().fromJsonString(jsonString, options);
558
+ }
559
+
560
+ static equals(a: ListOrganizationsResponse | PlainMessage<ListOrganizationsResponse> | undefined, b: ListOrganizationsResponse | PlainMessage<ListOrganizationsResponse> | undefined): boolean {
561
+ return proto3.util.equals(ListOrganizationsResponse, a, b);
562
+ }
563
+ }
564
+
565
+ /**
566
+ * @generated from message scalekit.v1.organizations.DeleteOrganizationRequest
567
+ */
568
+ export class DeleteOrganizationRequest extends Message<DeleteOrganizationRequest> {
569
+ /**
570
+ * @generated from oneof scalekit.v1.organizations.DeleteOrganizationRequest.identities
571
+ */
572
+ identities: {
573
+ /**
574
+ * @generated from field: string id = 1;
575
+ */
576
+ value: string;
577
+ case: "id";
578
+ } | {
579
+ /**
580
+ * @generated from field: string external_id = 2;
581
+ */
582
+ value: string;
583
+ case: "externalId";
584
+ } | { case: undefined; value?: undefined } = { case: undefined };
585
+
586
+ constructor(data?: PartialMessage<DeleteOrganizationRequest>) {
587
+ super();
588
+ proto3.util.initPartial(data, this);
589
+ }
590
+
591
+ static readonly runtime: typeof proto3 = proto3;
592
+ static readonly typeName = "scalekit.v1.organizations.DeleteOrganizationRequest";
593
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
594
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
595
+ { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
596
+ ]);
597
+
598
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteOrganizationRequest {
599
+ return new DeleteOrganizationRequest().fromBinary(bytes, options);
600
+ }
601
+
602
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteOrganizationRequest {
603
+ return new DeleteOrganizationRequest().fromJson(jsonValue, options);
604
+ }
605
+
606
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteOrganizationRequest {
607
+ return new DeleteOrganizationRequest().fromJsonString(jsonString, options);
608
+ }
609
+
610
+ static equals(a: DeleteOrganizationRequest | PlainMessage<DeleteOrganizationRequest> | undefined, b: DeleteOrganizationRequest | PlainMessage<DeleteOrganizationRequest> | undefined): boolean {
611
+ return proto3.util.equals(DeleteOrganizationRequest, a, b);
612
+ }
613
+ }
614
+
615
+ /**
616
+ * @generated from message scalekit.v1.organizations.CustomerPortalLinkRequest
617
+ */
618
+ export class CustomerPortalLinkRequest extends Message<CustomerPortalLinkRequest> {
619
+ /**
620
+ * @generated from field: string id = 1;
621
+ */
622
+ id = "";
623
+
624
+ constructor(data?: PartialMessage<CustomerPortalLinkRequest>) {
625
+ super();
626
+ proto3.util.initPartial(data, this);
627
+ }
628
+
629
+ static readonly runtime: typeof proto3 = proto3;
630
+ static readonly typeName = "scalekit.v1.organizations.CustomerPortalLinkRequest";
631
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
632
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
633
+ ]);
634
+
635
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CustomerPortalLinkRequest {
636
+ return new CustomerPortalLinkRequest().fromBinary(bytes, options);
637
+ }
638
+
639
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CustomerPortalLinkRequest {
640
+ return new CustomerPortalLinkRequest().fromJson(jsonValue, options);
641
+ }
642
+
643
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CustomerPortalLinkRequest {
644
+ return new CustomerPortalLinkRequest().fromJsonString(jsonString, options);
645
+ }
646
+
647
+ static equals(a: CustomerPortalLinkRequest | PlainMessage<CustomerPortalLinkRequest> | undefined, b: CustomerPortalLinkRequest | PlainMessage<CustomerPortalLinkRequest> | undefined): boolean {
648
+ return proto3.util.equals(CustomerPortalLinkRequest, a, b);
649
+ }
650
+ }
651
+
652
+ /**
653
+ * @generated from message scalekit.v1.organizations.Link
654
+ */
655
+ export class Link extends Message<Link> {
656
+ /**
657
+ * @generated from field: string id = 1;
658
+ */
659
+ id = "";
660
+
661
+ /**
662
+ * @generated from field: string location = 2;
663
+ */
664
+ location = "";
665
+
666
+ /**
667
+ * @generated from field: google.protobuf.Timestamp expire_time = 3;
668
+ */
669
+ expireTime?: Timestamp;
670
+
671
+ constructor(data?: PartialMessage<Link>) {
672
+ super();
673
+ proto3.util.initPartial(data, this);
674
+ }
675
+
676
+ static readonly runtime: typeof proto3 = proto3;
677
+ static readonly typeName = "scalekit.v1.organizations.Link";
678
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
679
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
680
+ { no: 2, name: "location", kind: "scalar", T: 9 /* ScalarType.STRING */ },
681
+ { no: 3, name: "expire_time", kind: "message", T: Timestamp },
682
+ ]);
683
+
684
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Link {
685
+ return new Link().fromBinary(bytes, options);
686
+ }
687
+
688
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Link {
689
+ return new Link().fromJson(jsonValue, options);
690
+ }
691
+
692
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Link {
693
+ return new Link().fromJsonString(jsonString, options);
694
+ }
695
+
696
+ static equals(a: Link | PlainMessage<Link> | undefined, b: Link | PlainMessage<Link> | undefined): boolean {
697
+ return proto3.util.equals(Link, a, b);
698
+ }
699
+ }
700
+
701
+ /**
702
+ * @generated from message scalekit.v1.organizations.GenerateCustomerPortalLinkResponse
703
+ */
704
+ export class GenerateCustomerPortalLinkResponse extends Message<GenerateCustomerPortalLinkResponse> {
705
+ /**
706
+ * @generated from field: scalekit.v1.organizations.Link link = 1;
707
+ */
708
+ link?: Link;
709
+
710
+ constructor(data?: PartialMessage<GenerateCustomerPortalLinkResponse>) {
711
+ super();
712
+ proto3.util.initPartial(data, this);
713
+ }
714
+
715
+ static readonly runtime: typeof proto3 = proto3;
716
+ static readonly typeName = "scalekit.v1.organizations.GenerateCustomerPortalLinkResponse";
717
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
718
+ { no: 1, name: "link", kind: "message", T: Link },
719
+ ]);
720
+
721
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GenerateCustomerPortalLinkResponse {
722
+ return new GenerateCustomerPortalLinkResponse().fromBinary(bytes, options);
723
+ }
724
+
725
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GenerateCustomerPortalLinkResponse {
726
+ return new GenerateCustomerPortalLinkResponse().fromJson(jsonValue, options);
727
+ }
728
+
729
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GenerateCustomerPortalLinkResponse {
730
+ return new GenerateCustomerPortalLinkResponse().fromJsonString(jsonString, options);
731
+ }
732
+
733
+ static equals(a: GenerateCustomerPortalLinkResponse | PlainMessage<GenerateCustomerPortalLinkResponse> | undefined, b: GenerateCustomerPortalLinkResponse | PlainMessage<GenerateCustomerPortalLinkResponse> | undefined): boolean {
734
+ return proto3.util.equals(GenerateCustomerPortalLinkResponse, a, b);
735
+ }
736
+ }
737
+
738
+ /**
739
+ * @generated from message scalekit.v1.organizations.CustomerPortalLinksResponse
740
+ */
741
+ export class CustomerPortalLinksResponse extends Message<CustomerPortalLinksResponse> {
742
+ /**
743
+ * @generated from field: repeated scalekit.v1.organizations.Link links = 1;
744
+ */
745
+ links: Link[] = [];
746
+
747
+ constructor(data?: PartialMessage<CustomerPortalLinksResponse>) {
748
+ super();
749
+ proto3.util.initPartial(data, this);
750
+ }
751
+
752
+ static readonly runtime: typeof proto3 = proto3;
753
+ static readonly typeName = "scalekit.v1.organizations.CustomerPortalLinksResponse";
754
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
755
+ { no: 1, name: "links", kind: "message", T: Link, repeated: true },
756
+ ]);
757
+
758
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CustomerPortalLinksResponse {
759
+ return new CustomerPortalLinksResponse().fromBinary(bytes, options);
760
+ }
761
+
762
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CustomerPortalLinksResponse {
763
+ return new CustomerPortalLinksResponse().fromJson(jsonValue, options);
764
+ }
765
+
766
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CustomerPortalLinksResponse {
767
+ return new CustomerPortalLinksResponse().fromJsonString(jsonString, options);
768
+ }
769
+
770
+ static equals(a: CustomerPortalLinksResponse | PlainMessage<CustomerPortalLinksResponse> | undefined, b: CustomerPortalLinksResponse | PlainMessage<CustomerPortalLinksResponse> | undefined): boolean {
771
+ return proto3.util.equals(CustomerPortalLinksResponse, a, b);
772
+ }
773
+ }
774
+