@scalekit-sdk/node 2.2.0-beta.1 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/README.md +5 -5
  2. package/{reference.md → REFERENCE.md} +530 -748
  3. package/lib/auth.d.ts +9 -6
  4. package/lib/auth.js +4 -20
  5. package/lib/auth.js.map +1 -1
  6. package/lib/connect.d.ts +3 -3
  7. package/lib/connect.js +1 -2
  8. package/lib/connect.js.map +1 -1
  9. package/lib/connection.d.ts +2 -2
  10. package/lib/connection.js +4 -4
  11. package/lib/connection.js.map +1 -1
  12. package/lib/core.js +2 -2
  13. package/lib/core.js.map +1 -1
  14. package/lib/directory.d.ts +2 -2
  15. package/lib/directory.js +7 -7
  16. package/lib/directory.js.map +1 -1
  17. package/lib/domain.d.ts +6 -5
  18. package/lib/domain.js +4 -5
  19. package/lib/domain.js.map +1 -1
  20. package/lib/errors/base-exception.d.ts +1 -1
  21. package/lib/errors/base-exception.js +1 -1
  22. package/lib/errors/base-exception.js.map +1 -1
  23. package/lib/organization.d.ts +10 -9
  24. package/lib/organization.js +11 -9
  25. package/lib/organization.js.map +1 -1
  26. package/lib/passwordless.d.ts +2 -2
  27. package/lib/passwordless.js +8 -7
  28. package/lib/passwordless.js.map +1 -1
  29. package/lib/permission.d.ts +6 -5
  30. package/lib/permission.js +10 -11
  31. package/lib/permission.js.map +1 -1
  32. package/lib/pkg/grpc/buf/validate/validate_pb.d.ts +7 -0
  33. package/lib/pkg/grpc/buf/validate/validate_pb.js +25 -0
  34. package/lib/pkg/grpc/buf/validate/validate_pb.js.map +1 -0
  35. package/lib/pkg/grpc/google/api/annotations_pb.d.ts +7 -0
  36. package/lib/pkg/grpc/google/api/annotations_pb.js +25 -0
  37. package/lib/pkg/grpc/google/api/annotations_pb.js.map +1 -0
  38. package/lib/pkg/grpc/google/api/field_behavior_pb.d.ts +7 -0
  39. package/lib/pkg/grpc/google/api/field_behavior_pb.js +25 -0
  40. package/lib/pkg/grpc/google/api/field_behavior_pb.js.map +1 -0
  41. package/lib/pkg/grpc/google/api/visibility_pb.d.ts +7 -0
  42. package/lib/pkg/grpc/google/api/visibility_pb.js +25 -0
  43. package/lib/pkg/grpc/google/api/visibility_pb.js.map +1 -0
  44. package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.d.ts +7 -0
  45. package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js +25 -0
  46. package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js.map +1 -0
  47. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.d.ts +48 -42
  48. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +27 -263
  49. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js.map +1 -1
  50. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +371 -325
  51. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +132 -835
  52. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -1
  53. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.d.ts +113 -87
  54. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js +45 -201
  55. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js.map +1 -1
  56. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.d.ts +262 -265
  57. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js +92 -938
  58. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js.map +1 -1
  59. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +162 -157
  60. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +42 -313
  61. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
  62. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +1488 -1459
  63. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +353 -2362
  64. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  65. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.d.ts +520 -483
  66. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js +224 -1555
  67. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js.map +1 -1
  68. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +219 -191
  69. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +96 -553
  70. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
  71. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +76 -102
  72. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +37 -393
  73. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
  74. package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +36 -26
  75. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +20 -69
  76. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -1
  77. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +447 -400
  78. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +163 -1238
  79. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
  80. package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.d.ts +622 -556
  81. package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js +201 -1718
  82. package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js.map +1 -1
  83. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.d.ts +135 -132
  84. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js +55 -518
  85. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js.map +1 -1
  86. package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +445 -413
  87. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +142 -1490
  88. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
  89. package/lib/role.d.ts +8 -7
  90. package/lib/role.js +14 -14
  91. package/lib/role.js.map +1 -1
  92. package/lib/scalekit.d.ts +0 -4
  93. package/lib/scalekit.js +0 -4
  94. package/lib/scalekit.js.map +1 -1
  95. package/lib/session.js +15 -24
  96. package/lib/session.js.map +1 -1
  97. package/lib/user.d.ts +6 -5
  98. package/lib/user.js +17 -20
  99. package/lib/user.js.map +1 -1
  100. package/lib/webauthn.js +6 -5
  101. package/lib/webauthn.js.map +1 -1
  102. package/package.json +12 -10
  103. package/.github/dependabot.yml +0 -10
  104. package/.nvmrc +0 -1
  105. package/buf.gen.yaml +0 -24
  106. package/jest.config.js +0 -15
  107. package/lib/connected-accounts.d.ts +0 -119
  108. package/lib/connected-accounts.js +0 -241
  109. package/lib/connected-accounts.js.map +0 -1
  110. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.d.ts +0 -19
  111. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js +0 -27
  112. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js.map +0 -1
  113. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +0 -118
  114. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +0 -126
  115. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +0 -1
  116. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.d.ts +0 -37
  117. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js +0 -45
  118. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js.map +0 -1
  119. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.d.ts +0 -82
  120. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js +0 -90
  121. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js.map +0 -1
  122. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.d.ts +0 -87
  123. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js +0 -95
  124. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js.map +0 -1
  125. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.d.ts +0 -718
  126. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js +0 -893
  127. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js.map +0 -1
  128. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +0 -172
  129. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +0 -180
  130. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +0 -1
  131. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.d.ts +0 -154
  132. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js +0 -162
  133. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js.map +0 -1
  134. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +0 -73
  135. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +0 -81
  136. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +0 -1
  137. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +0 -171
  138. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +0 -179
  139. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +0 -1
  140. package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.d.ts +0 -250
  141. package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js +0 -258
  142. package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js.map +0 -1
  143. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.d.ts +0 -46
  144. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js +0 -54
  145. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js.map +0 -1
  146. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.d.ts +0 -75
  147. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js +0 -83
  148. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js.map +0 -1
  149. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.d.ts +0 -431
  150. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js +0 -627
  151. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js.map +0 -1
  152. package/lib/pkg/grpc/scalekit/v1/users/users_connect.d.ts +0 -173
  153. package/lib/pkg/grpc/scalekit/v1/users/users_connect.js +0 -181
  154. package/lib/pkg/grpc/scalekit/v1/users/users_connect.js.map +0 -1
  155. package/lib/tools.d.ts +0 -75
  156. package/lib/tools.js +0 -127
  157. package/lib/tools.js.map +0 -1
  158. package/src/auth.ts +0 -99
  159. package/src/connect.ts +0 -33
  160. package/src/connected-accounts.ts +0 -358
  161. package/src/connection.ts +0 -267
  162. package/src/constants/user.ts +0 -22
  163. package/src/core.ts +0 -139
  164. package/src/directory.ts +0 -431
  165. package/src/domain.ts +0 -272
  166. package/src/errors/base-exception.ts +0 -262
  167. package/src/errors/index.ts +0 -3
  168. package/src/errors/specific-exceptions.ts +0 -88
  169. package/src/index.ts +0 -10
  170. package/src/organization.ts +0 -568
  171. package/src/passwordless.ts +0 -138
  172. package/src/permission.ts +0 -310
  173. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.ts +0 -26
  174. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +0 -342
  175. package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +0 -125
  176. package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +0 -1213
  177. package/src/pkg/grpc/scalekit/v1/auth/passwordless_connect.ts +0 -44
  178. package/src/pkg/grpc/scalekit/v1/auth/passwordless_pb.ts +0 -336
  179. package/src/pkg/grpc/scalekit/v1/auth/webauthn_connect.ts +0 -89
  180. package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +0 -1263
  181. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +0 -573
  182. package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.ts +0 -94
  183. package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.ts +0 -1294
  184. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +0 -179
  185. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +0 -3846
  186. package/src/pkg/grpc/scalekit/v1/directories/directories_connect.ts +0 -161
  187. package/src/pkg/grpc/scalekit/v1/directories/directories_pb.ts +0 -2119
  188. package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +0 -80
  189. package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +0 -855
  190. package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +0 -524
  191. package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +0 -230
  192. package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +0 -178
  193. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +0 -1766
  194. package/src/pkg/grpc/scalekit/v1/roles/roles_connect.ts +0 -257
  195. package/src/pkg/grpc/scalekit/v1/roles/roles_pb.ts +0 -2395
  196. package/src/pkg/grpc/scalekit/v1/sessions/sessions_connect.ts +0 -53
  197. package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +0 -749
  198. package/src/pkg/grpc/scalekit/v1/tools/tools_connect.ts +0 -82
  199. package/src/pkg/grpc/scalekit/v1/tools/tools_pb.ts +0 -847
  200. package/src/pkg/grpc/scalekit/v1/users/users_connect.ts +0 -180
  201. package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +0 -2151
  202. package/src/role.ts +0 -461
  203. package/src/scalekit.ts +0 -809
  204. package/src/session.ts +0 -337
  205. package/src/tools.ts +0 -166
  206. package/src/types/auth.ts +0 -73
  207. package/src/types/organization.ts +0 -12
  208. package/src/types/scalekit.ts +0 -50
  209. package/src/types/user.ts +0 -21
  210. package/src/user.ts +0 -825
  211. package/src/webauthn.ts +0 -98
  212. package/tests/README.md +0 -25
  213. package/tests/connected-accounts.test.ts +0 -472
  214. package/tests/connection.test.ts +0 -42
  215. package/tests/directory.test.ts +0 -46
  216. package/tests/domain.test.ts +0 -293
  217. package/tests/organization.test.ts +0 -81
  218. package/tests/passwordless.test.ts +0 -108
  219. package/tests/permission.test.ts +0 -399
  220. package/tests/role.test.ts +0 -323
  221. package/tests/scalekit.test.ts +0 -104
  222. package/tests/setup.ts +0 -34
  223. package/tests/tools.test.ts +0 -239
  224. package/tests/users.test.ts +0 -168
  225. package/tests/utils/test-data.ts +0 -481
  226. package/tsconfig.json +0 -19
@@ -1,855 +0,0 @@
1
- // @generated by protoc-gen-es v1.10.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
- /**
34
- * @generated from enum value: AUTO_VERIFIED = 4;
35
- */
36
- AUTO_VERIFIED = 4,
37
- }
38
- // Retrieve enum metadata with: proto3.getEnumType(VerificationStatus)
39
- proto3.util.setEnumType(VerificationStatus, "scalekit.v1.domains.VerificationStatus", [
40
- { no: 0, name: "VERIFICATION_STATUS_UNSPECIFIED" },
41
- { no: 1, name: "PENDING" },
42
- { no: 2, name: "VERIFIED" },
43
- { no: 3, name: "FAILED" },
44
- { no: 4, name: "AUTO_VERIFIED" },
45
- ]);
46
-
47
- /**
48
- * @generated from enum scalekit.v1.domains.DomainType
49
- */
50
- export enum DomainType {
51
- /**
52
- * @generated from enum value: DOMAIN_TYPE_UNSPECIFIED = 0;
53
- */
54
- DOMAIN_TYPE_UNSPECIFIED = 0,
55
-
56
- /**
57
- * @generated from enum value: ALLOWED_EMAIL_DOMAIN = 1;
58
- */
59
- ALLOWED_EMAIL_DOMAIN = 1,
60
-
61
- /**
62
- * @generated from enum value: ORGANIZATION_DOMAIN = 2;
63
- */
64
- ORGANIZATION_DOMAIN = 2,
65
- }
66
- // Retrieve enum metadata with: proto3.getEnumType(DomainType)
67
- proto3.util.setEnumType(DomainType, "scalekit.v1.domains.DomainType", [
68
- { no: 0, name: "DOMAIN_TYPE_UNSPECIFIED" },
69
- { no: 1, name: "ALLOWED_EMAIL_DOMAIN" },
70
- { no: 2, name: "ORGANIZATION_DOMAIN" },
71
- ]);
72
-
73
- /**
74
- * @generated from message scalekit.v1.domains.CreateDomainRequest
75
- */
76
- export class CreateDomainRequest extends Message<CreateDomainRequest> {
77
- /**
78
- * @generated from oneof scalekit.v1.domains.CreateDomainRequest.identities
79
- */
80
- identities: {
81
- /**
82
- * @generated from field: string organization_id = 1;
83
- */
84
- value: string;
85
- case: "organizationId";
86
- } | {
87
- /**
88
- * @generated from field: string external_id = 2;
89
- */
90
- value: string;
91
- case: "externalId";
92
- } | { case: undefined; value?: undefined } = { case: undefined };
93
-
94
- /**
95
- * @generated from field: optional string connection_id = 3;
96
- */
97
- connectionId?: string;
98
-
99
- /**
100
- * @generated from field: scalekit.v1.domains.CreateDomain domain = 4;
101
- */
102
- domain?: CreateDomain;
103
-
104
- constructor(data?: PartialMessage<CreateDomainRequest>) {
105
- super();
106
- proto3.util.initPartial(data, this);
107
- }
108
-
109
- static readonly runtime: typeof proto3 = proto3;
110
- static readonly typeName = "scalekit.v1.domains.CreateDomainRequest";
111
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
112
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
113
- { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
114
- { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
115
- { no: 4, name: "domain", kind: "message", T: CreateDomain },
116
- ]);
117
-
118
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateDomainRequest {
119
- return new CreateDomainRequest().fromBinary(bytes, options);
120
- }
121
-
122
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateDomainRequest {
123
- return new CreateDomainRequest().fromJson(jsonValue, options);
124
- }
125
-
126
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateDomainRequest {
127
- return new CreateDomainRequest().fromJsonString(jsonString, options);
128
- }
129
-
130
- static equals(a: CreateDomainRequest | PlainMessage<CreateDomainRequest> | undefined, b: CreateDomainRequest | PlainMessage<CreateDomainRequest> | undefined): boolean {
131
- return proto3.util.equals(CreateDomainRequest, a, b);
132
- }
133
- }
134
-
135
- /**
136
- * @generated from message scalekit.v1.domains.CreateDomainResponse
137
- */
138
- export class CreateDomainResponse extends Message<CreateDomainResponse> {
139
- /**
140
- * @generated from field: scalekit.v1.domains.Domain domain = 1;
141
- */
142
- domain?: Domain;
143
-
144
- constructor(data?: PartialMessage<CreateDomainResponse>) {
145
- super();
146
- proto3.util.initPartial(data, this);
147
- }
148
-
149
- static readonly runtime: typeof proto3 = proto3;
150
- static readonly typeName = "scalekit.v1.domains.CreateDomainResponse";
151
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
152
- { no: 1, name: "domain", kind: "message", T: Domain },
153
- ]);
154
-
155
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateDomainResponse {
156
- return new CreateDomainResponse().fromBinary(bytes, options);
157
- }
158
-
159
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateDomainResponse {
160
- return new CreateDomainResponse().fromJson(jsonValue, options);
161
- }
162
-
163
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateDomainResponse {
164
- return new CreateDomainResponse().fromJsonString(jsonString, options);
165
- }
166
-
167
- static equals(a: CreateDomainResponse | PlainMessage<CreateDomainResponse> | undefined, b: CreateDomainResponse | PlainMessage<CreateDomainResponse> | undefined): boolean {
168
- return proto3.util.equals(CreateDomainResponse, a, b);
169
- }
170
- }
171
-
172
- /**
173
- * @generated from message scalekit.v1.domains.CreateDomain
174
- */
175
- export class CreateDomain extends Message<CreateDomain> {
176
- /**
177
- * @generated from field: string domain = 1;
178
- */
179
- domain = "";
180
-
181
- /**
182
- * @generated from field: scalekit.v1.domains.DomainType domain_type = 2;
183
- */
184
- domainType = DomainType.DOMAIN_TYPE_UNSPECIFIED;
185
-
186
- constructor(data?: PartialMessage<CreateDomain>) {
187
- super();
188
- proto3.util.initPartial(data, this);
189
- }
190
-
191
- static readonly runtime: typeof proto3 = proto3;
192
- static readonly typeName = "scalekit.v1.domains.CreateDomain";
193
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
194
- { no: 1, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
195
- { no: 2, name: "domain_type", kind: "enum", T: proto3.getEnumType(DomainType) },
196
- ]);
197
-
198
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateDomain {
199
- return new CreateDomain().fromBinary(bytes, options);
200
- }
201
-
202
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateDomain {
203
- return new CreateDomain().fromJson(jsonValue, options);
204
- }
205
-
206
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateDomain {
207
- return new CreateDomain().fromJsonString(jsonString, options);
208
- }
209
-
210
- static equals(a: CreateDomain | PlainMessage<CreateDomain> | undefined, b: CreateDomain | PlainMessage<CreateDomain> | undefined): boolean {
211
- return proto3.util.equals(CreateDomain, a, b);
212
- }
213
- }
214
-
215
- /**
216
- * @generated from message scalekit.v1.domains.UpdateDomainRequest
217
- */
218
- export class UpdateDomainRequest extends Message<UpdateDomainRequest> {
219
- /**
220
- * @generated from oneof scalekit.v1.domains.UpdateDomainRequest.identities
221
- */
222
- identities: {
223
- /**
224
- * @generated from field: string organization_id = 1;
225
- */
226
- value: string;
227
- case: "organizationId";
228
- } | {
229
- /**
230
- * @generated from field: string external_id = 2;
231
- */
232
- value: string;
233
- case: "externalId";
234
- } | { case: undefined; value?: undefined } = { case: undefined };
235
-
236
- /**
237
- * @generated from field: optional string connection_id = 3;
238
- */
239
- connectionId?: string;
240
-
241
- /**
242
- * @generated from field: string id = 4;
243
- */
244
- id = "";
245
-
246
- /**
247
- * @generated from field: scalekit.v1.domains.UpdateDomain domain = 5;
248
- */
249
- domain?: UpdateDomain;
250
-
251
- constructor(data?: PartialMessage<UpdateDomainRequest>) {
252
- super();
253
- proto3.util.initPartial(data, this);
254
- }
255
-
256
- static readonly runtime: typeof proto3 = proto3;
257
- static readonly typeName = "scalekit.v1.domains.UpdateDomainRequest";
258
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
259
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
260
- { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
261
- { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
262
- { no: 4, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
263
- { no: 5, name: "domain", kind: "message", T: UpdateDomain },
264
- ]);
265
-
266
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDomainRequest {
267
- return new UpdateDomainRequest().fromBinary(bytes, options);
268
- }
269
-
270
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDomainRequest {
271
- return new UpdateDomainRequest().fromJson(jsonValue, options);
272
- }
273
-
274
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDomainRequest {
275
- return new UpdateDomainRequest().fromJsonString(jsonString, options);
276
- }
277
-
278
- static equals(a: UpdateDomainRequest | PlainMessage<UpdateDomainRequest> | undefined, b: UpdateDomainRequest | PlainMessage<UpdateDomainRequest> | undefined): boolean {
279
- return proto3.util.equals(UpdateDomainRequest, a, b);
280
- }
281
- }
282
-
283
- /**
284
- * @generated from message scalekit.v1.domains.UpdateDomain
285
- */
286
- export class UpdateDomain extends Message<UpdateDomain> {
287
- constructor(data?: PartialMessage<UpdateDomain>) {
288
- super();
289
- proto3.util.initPartial(data, this);
290
- }
291
-
292
- static readonly runtime: typeof proto3 = proto3;
293
- static readonly typeName = "scalekit.v1.domains.UpdateDomain";
294
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
295
- ]);
296
-
297
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDomain {
298
- return new UpdateDomain().fromBinary(bytes, options);
299
- }
300
-
301
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDomain {
302
- return new UpdateDomain().fromJson(jsonValue, options);
303
- }
304
-
305
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDomain {
306
- return new UpdateDomain().fromJsonString(jsonString, options);
307
- }
308
-
309
- static equals(a: UpdateDomain | PlainMessage<UpdateDomain> | undefined, b: UpdateDomain | PlainMessage<UpdateDomain> | undefined): boolean {
310
- return proto3.util.equals(UpdateDomain, a, b);
311
- }
312
- }
313
-
314
- /**
315
- * @generated from message scalekit.v1.domains.UpdateDomainResponse
316
- */
317
- export class UpdateDomainResponse extends Message<UpdateDomainResponse> {
318
- /**
319
- * @generated from field: scalekit.v1.domains.Domain domain = 1;
320
- */
321
- domain?: Domain;
322
-
323
- constructor(data?: PartialMessage<UpdateDomainResponse>) {
324
- super();
325
- proto3.util.initPartial(data, this);
326
- }
327
-
328
- static readonly runtime: typeof proto3 = proto3;
329
- static readonly typeName = "scalekit.v1.domains.UpdateDomainResponse";
330
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
331
- { no: 1, name: "domain", kind: "message", T: Domain },
332
- ]);
333
-
334
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateDomainResponse {
335
- return new UpdateDomainResponse().fromBinary(bytes, options);
336
- }
337
-
338
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateDomainResponse {
339
- return new UpdateDomainResponse().fromJson(jsonValue, options);
340
- }
341
-
342
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateDomainResponse {
343
- return new UpdateDomainResponse().fromJsonString(jsonString, options);
344
- }
345
-
346
- static equals(a: UpdateDomainResponse | PlainMessage<UpdateDomainResponse> | undefined, b: UpdateDomainResponse | PlainMessage<UpdateDomainResponse> | undefined): boolean {
347
- return proto3.util.equals(UpdateDomainResponse, a, b);
348
- }
349
- }
350
-
351
- /**
352
- * @generated from message scalekit.v1.domains.GetDomainRequest
353
- */
354
- export class GetDomainRequest extends Message<GetDomainRequest> {
355
- /**
356
- * @generated from oneof scalekit.v1.domains.GetDomainRequest.identities
357
- */
358
- identities: {
359
- /**
360
- * @generated from field: string organization_id = 1;
361
- */
362
- value: string;
363
- case: "organizationId";
364
- } | {
365
- /**
366
- * @generated from field: string external_id = 2;
367
- */
368
- value: string;
369
- case: "externalId";
370
- } | { case: undefined; value?: undefined } = { case: undefined };
371
-
372
- /**
373
- * @generated from field: string id = 3;
374
- */
375
- id = "";
376
-
377
- constructor(data?: PartialMessage<GetDomainRequest>) {
378
- super();
379
- proto3.util.initPartial(data, this);
380
- }
381
-
382
- static readonly runtime: typeof proto3 = proto3;
383
- static readonly typeName = "scalekit.v1.domains.GetDomainRequest";
384
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
385
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
386
- { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
387
- { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
388
- ]);
389
-
390
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDomainRequest {
391
- return new GetDomainRequest().fromBinary(bytes, options);
392
- }
393
-
394
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDomainRequest {
395
- return new GetDomainRequest().fromJson(jsonValue, options);
396
- }
397
-
398
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDomainRequest {
399
- return new GetDomainRequest().fromJsonString(jsonString, options);
400
- }
401
-
402
- static equals(a: GetDomainRequest | PlainMessage<GetDomainRequest> | undefined, b: GetDomainRequest | PlainMessage<GetDomainRequest> | undefined): boolean {
403
- return proto3.util.equals(GetDomainRequest, a, b);
404
- }
405
- }
406
-
407
- /**
408
- * @generated from message scalekit.v1.domains.GetDomainResponse
409
- */
410
- export class GetDomainResponse extends Message<GetDomainResponse> {
411
- /**
412
- * @generated from field: scalekit.v1.domains.Domain domain = 1;
413
- */
414
- domain?: Domain;
415
-
416
- constructor(data?: PartialMessage<GetDomainResponse>) {
417
- super();
418
- proto3.util.initPartial(data, this);
419
- }
420
-
421
- static readonly runtime: typeof proto3 = proto3;
422
- static readonly typeName = "scalekit.v1.domains.GetDomainResponse";
423
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
424
- { no: 1, name: "domain", kind: "message", T: Domain },
425
- ]);
426
-
427
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetDomainResponse {
428
- return new GetDomainResponse().fromBinary(bytes, options);
429
- }
430
-
431
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetDomainResponse {
432
- return new GetDomainResponse().fromJson(jsonValue, options);
433
- }
434
-
435
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetDomainResponse {
436
- return new GetDomainResponse().fromJsonString(jsonString, options);
437
- }
438
-
439
- static equals(a: GetDomainResponse | PlainMessage<GetDomainResponse> | undefined, b: GetDomainResponse | PlainMessage<GetDomainResponse> | undefined): boolean {
440
- return proto3.util.equals(GetDomainResponse, a, b);
441
- }
442
- }
443
-
444
- /**
445
- * @generated from message scalekit.v1.domains.DeleteDomainRequest
446
- */
447
- export class DeleteDomainRequest extends Message<DeleteDomainRequest> {
448
- /**
449
- * @generated from field: string id = 1;
450
- */
451
- id = "";
452
-
453
- /**
454
- * @generated from oneof scalekit.v1.domains.DeleteDomainRequest.identities
455
- */
456
- identities: {
457
- /**
458
- * @generated from field: string organization_id = 2;
459
- */
460
- value: string;
461
- case: "organizationId";
462
- } | {
463
- /**
464
- * @generated from field: string external_id = 3;
465
- */
466
- value: string;
467
- case: "externalId";
468
- } | { case: undefined; value?: undefined } = { case: undefined };
469
-
470
- /**
471
- * @generated from field: optional string connection_id = 4;
472
- */
473
- connectionId?: string;
474
-
475
- constructor(data?: PartialMessage<DeleteDomainRequest>) {
476
- super();
477
- proto3.util.initPartial(data, this);
478
- }
479
-
480
- static readonly runtime: typeof proto3 = proto3;
481
- static readonly typeName = "scalekit.v1.domains.DeleteDomainRequest";
482
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
483
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
484
- { no: 2, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
485
- { no: 3, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
486
- { no: 4, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
487
- ]);
488
-
489
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteDomainRequest {
490
- return new DeleteDomainRequest().fromBinary(bytes, options);
491
- }
492
-
493
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteDomainRequest {
494
- return new DeleteDomainRequest().fromJson(jsonValue, options);
495
- }
496
-
497
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteDomainRequest {
498
- return new DeleteDomainRequest().fromJsonString(jsonString, options);
499
- }
500
-
501
- static equals(a: DeleteDomainRequest | PlainMessage<DeleteDomainRequest> | undefined, b: DeleteDomainRequest | PlainMessage<DeleteDomainRequest> | undefined): boolean {
502
- return proto3.util.equals(DeleteDomainRequest, a, b);
503
- }
504
- }
505
-
506
- /**
507
- * @generated from message scalekit.v1.domains.ListDomainRequest
508
- */
509
- export class ListDomainRequest extends Message<ListDomainRequest> {
510
- /**
511
- * @generated from oneof scalekit.v1.domains.ListDomainRequest.identities
512
- */
513
- identities: {
514
- /**
515
- * @generated from field: string organization_id = 1;
516
- */
517
- value: string;
518
- case: "organizationId";
519
- } | {
520
- /**
521
- * @generated from field: string external_id = 2;
522
- */
523
- value: string;
524
- case: "externalId";
525
- } | { case: undefined; value?: undefined } = { case: undefined };
526
-
527
- /**
528
- * @generated from field: optional string connection_id = 3;
529
- */
530
- connectionId?: string;
531
-
532
- /**
533
- * @generated from field: optional string include = 4;
534
- */
535
- include?: string;
536
-
537
- /**
538
- * @generated from field: google.protobuf.Int32Value page_size = 5;
539
- */
540
- pageSize?: number;
541
-
542
- /**
543
- * @generated from field: google.protobuf.Int32Value page_number = 6;
544
- */
545
- pageNumber?: number;
546
-
547
- /**
548
- * @generated from field: scalekit.v1.domains.DomainType domain_type = 7;
549
- */
550
- domainType = DomainType.DOMAIN_TYPE_UNSPECIFIED;
551
-
552
- constructor(data?: PartialMessage<ListDomainRequest>) {
553
- super();
554
- proto3.util.initPartial(data, this);
555
- }
556
-
557
- static readonly runtime: typeof proto3 = proto3;
558
- static readonly typeName = "scalekit.v1.domains.ListDomainRequest";
559
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
560
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
561
- { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
562
- { no: 3, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
563
- { no: 4, name: "include", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
564
- { no: 5, name: "page_size", kind: "message", T: Int32Value },
565
- { no: 6, name: "page_number", kind: "message", T: Int32Value },
566
- { no: 7, name: "domain_type", kind: "enum", T: proto3.getEnumType(DomainType) },
567
- ]);
568
-
569
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDomainRequest {
570
- return new ListDomainRequest().fromBinary(bytes, options);
571
- }
572
-
573
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDomainRequest {
574
- return new ListDomainRequest().fromJson(jsonValue, options);
575
- }
576
-
577
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDomainRequest {
578
- return new ListDomainRequest().fromJsonString(jsonString, options);
579
- }
580
-
581
- static equals(a: ListDomainRequest | PlainMessage<ListDomainRequest> | undefined, b: ListDomainRequest | PlainMessage<ListDomainRequest> | undefined): boolean {
582
- return proto3.util.equals(ListDomainRequest, a, b);
583
- }
584
- }
585
-
586
- /**
587
- * @generated from message scalekit.v1.domains.VerifyDomainRequest
588
- */
589
- export class VerifyDomainRequest extends Message<VerifyDomainRequest> {
590
- /**
591
- * @generated from oneof scalekit.v1.domains.VerifyDomainRequest.identities
592
- */
593
- identities: {
594
- /**
595
- * @generated from field: string organization_id = 1;
596
- */
597
- value: string;
598
- case: "organizationId";
599
- } | {
600
- /**
601
- * @generated from field: string external_id = 2;
602
- */
603
- value: string;
604
- case: "externalId";
605
- } | { case: undefined; value?: undefined } = { case: undefined };
606
-
607
- /**
608
- * @generated from field: string id = 4;
609
- */
610
- id = "";
611
-
612
- constructor(data?: PartialMessage<VerifyDomainRequest>) {
613
- super();
614
- proto3.util.initPartial(data, this);
615
- }
616
-
617
- static readonly runtime: typeof proto3 = proto3;
618
- static readonly typeName = "scalekit.v1.domains.VerifyDomainRequest";
619
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
620
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
621
- { no: 2, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identities" },
622
- { no: 4, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
623
- ]);
624
-
625
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyDomainRequest {
626
- return new VerifyDomainRequest().fromBinary(bytes, options);
627
- }
628
-
629
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyDomainRequest {
630
- return new VerifyDomainRequest().fromJson(jsonValue, options);
631
- }
632
-
633
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyDomainRequest {
634
- return new VerifyDomainRequest().fromJsonString(jsonString, options);
635
- }
636
-
637
- static equals(a: VerifyDomainRequest | PlainMessage<VerifyDomainRequest> | undefined, b: VerifyDomainRequest | PlainMessage<VerifyDomainRequest> | undefined): boolean {
638
- return proto3.util.equals(VerifyDomainRequest, a, b);
639
- }
640
- }
641
-
642
- /**
643
- * @generated from message scalekit.v1.domains.ListDomainResponse
644
- */
645
- export class ListDomainResponse extends Message<ListDomainResponse> {
646
- /**
647
- * @generated from field: int32 page_size = 1;
648
- */
649
- pageSize = 0;
650
-
651
- /**
652
- * @generated from field: int32 page_number = 2;
653
- */
654
- pageNumber = 0;
655
-
656
- /**
657
- * @generated from field: repeated scalekit.v1.domains.Domain domains = 3;
658
- */
659
- domains: Domain[] = [];
660
-
661
- constructor(data?: PartialMessage<ListDomainResponse>) {
662
- super();
663
- proto3.util.initPartial(data, this);
664
- }
665
-
666
- static readonly runtime: typeof proto3 = proto3;
667
- static readonly typeName = "scalekit.v1.domains.ListDomainResponse";
668
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
669
- { no: 1, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
670
- { no: 2, name: "page_number", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
671
- { no: 3, name: "domains", kind: "message", T: Domain, repeated: true },
672
- ]);
673
-
674
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDomainResponse {
675
- return new ListDomainResponse().fromBinary(bytes, options);
676
- }
677
-
678
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDomainResponse {
679
- return new ListDomainResponse().fromJson(jsonValue, options);
680
- }
681
-
682
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDomainResponse {
683
- return new ListDomainResponse().fromJsonString(jsonString, options);
684
- }
685
-
686
- static equals(a: ListDomainResponse | PlainMessage<ListDomainResponse> | undefined, b: ListDomainResponse | PlainMessage<ListDomainResponse> | undefined): boolean {
687
- return proto3.util.equals(ListDomainResponse, a, b);
688
- }
689
- }
690
-
691
- /**
692
- * @generated from message scalekit.v1.domains.ListAuthorizedDomainRequest
693
- */
694
- export class ListAuthorizedDomainRequest extends Message<ListAuthorizedDomainRequest> {
695
- /**
696
- * @generated from field: string origin = 1;
697
- */
698
- origin = "";
699
-
700
- constructor(data?: PartialMessage<ListAuthorizedDomainRequest>) {
701
- super();
702
- proto3.util.initPartial(data, this);
703
- }
704
-
705
- static readonly runtime: typeof proto3 = proto3;
706
- static readonly typeName = "scalekit.v1.domains.ListAuthorizedDomainRequest";
707
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
708
- { no: 1, name: "origin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
709
- ]);
710
-
711
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAuthorizedDomainRequest {
712
- return new ListAuthorizedDomainRequest().fromBinary(bytes, options);
713
- }
714
-
715
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAuthorizedDomainRequest {
716
- return new ListAuthorizedDomainRequest().fromJson(jsonValue, options);
717
- }
718
-
719
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAuthorizedDomainRequest {
720
- return new ListAuthorizedDomainRequest().fromJsonString(jsonString, options);
721
- }
722
-
723
- static equals(a: ListAuthorizedDomainRequest | PlainMessage<ListAuthorizedDomainRequest> | undefined, b: ListAuthorizedDomainRequest | PlainMessage<ListAuthorizedDomainRequest> | undefined): boolean {
724
- return proto3.util.equals(ListAuthorizedDomainRequest, a, b);
725
- }
726
- }
727
-
728
- /**
729
- * @generated from message scalekit.v1.domains.ListAuthorizedDomainResponse
730
- */
731
- export class ListAuthorizedDomainResponse extends Message<ListAuthorizedDomainResponse> {
732
- /**
733
- * @generated from field: repeated string domains = 1;
734
- */
735
- domains: string[] = [];
736
-
737
- constructor(data?: PartialMessage<ListAuthorizedDomainResponse>) {
738
- super();
739
- proto3.util.initPartial(data, this);
740
- }
741
-
742
- static readonly runtime: typeof proto3 = proto3;
743
- static readonly typeName = "scalekit.v1.domains.ListAuthorizedDomainResponse";
744
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
745
- { no: 1, name: "domains", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
746
- ]);
747
-
748
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAuthorizedDomainResponse {
749
- return new ListAuthorizedDomainResponse().fromBinary(bytes, options);
750
- }
751
-
752
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAuthorizedDomainResponse {
753
- return new ListAuthorizedDomainResponse().fromJson(jsonValue, options);
754
- }
755
-
756
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAuthorizedDomainResponse {
757
- return new ListAuthorizedDomainResponse().fromJsonString(jsonString, options);
758
- }
759
-
760
- static equals(a: ListAuthorizedDomainResponse | PlainMessage<ListAuthorizedDomainResponse> | undefined, b: ListAuthorizedDomainResponse | PlainMessage<ListAuthorizedDomainResponse> | undefined): boolean {
761
- return proto3.util.equals(ListAuthorizedDomainResponse, a, b);
762
- }
763
- }
764
-
765
- /**
766
- * @generated from message scalekit.v1.domains.Domain
767
- */
768
- export class Domain extends Message<Domain> {
769
- /**
770
- * @generated from field: string id = 1;
771
- */
772
- id = "";
773
-
774
- /**
775
- * @generated from field: string domain = 2;
776
- */
777
- domain = "";
778
-
779
- /**
780
- * @generated from field: string environment_id = 3;
781
- */
782
- environmentId = "";
783
-
784
- /**
785
- * @generated from field: string organization_id = 4;
786
- */
787
- organizationId = "";
788
-
789
- /**
790
- * @generated from field: string txt_record_key = 6;
791
- */
792
- txtRecordKey = "";
793
-
794
- /**
795
- * @generated from field: string txt_record_secret = 7;
796
- */
797
- txtRecordSecret = "";
798
-
799
- /**
800
- * @generated from field: scalekit.v1.domains.VerificationStatus verification_status = 8;
801
- */
802
- verificationStatus = VerificationStatus.VERIFICATION_STATUS_UNSPECIFIED;
803
-
804
- /**
805
- * @generated from field: google.protobuf.Timestamp create_time = 9;
806
- */
807
- createTime?: Timestamp;
808
-
809
- /**
810
- * @generated from field: google.protobuf.Timestamp update_time = 10;
811
- */
812
- updateTime?: Timestamp;
813
-
814
- /**
815
- * @generated from field: scalekit.v1.domains.DomainType domain_type = 12;
816
- */
817
- domainType = DomainType.DOMAIN_TYPE_UNSPECIFIED;
818
-
819
- constructor(data?: PartialMessage<Domain>) {
820
- super();
821
- proto3.util.initPartial(data, this);
822
- }
823
-
824
- static readonly runtime: typeof proto3 = proto3;
825
- static readonly typeName = "scalekit.v1.domains.Domain";
826
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
827
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
828
- { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
829
- { no: 3, name: "environment_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
830
- { no: 4, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
831
- { no: 6, name: "txt_record_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
832
- { no: 7, name: "txt_record_secret", kind: "scalar", T: 9 /* ScalarType.STRING */ },
833
- { no: 8, name: "verification_status", kind: "enum", T: proto3.getEnumType(VerificationStatus) },
834
- { no: 9, name: "create_time", kind: "message", T: Timestamp },
835
- { no: 10, name: "update_time", kind: "message", T: Timestamp },
836
- { no: 12, name: "domain_type", kind: "enum", T: proto3.getEnumType(DomainType) },
837
- ]);
838
-
839
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Domain {
840
- return new Domain().fromBinary(bytes, options);
841
- }
842
-
843
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Domain {
844
- return new Domain().fromJson(jsonValue, options);
845
- }
846
-
847
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Domain {
848
- return new Domain().fromJsonString(jsonString, options);
849
- }
850
-
851
- static equals(a: Domain | PlainMessage<Domain> | undefined, b: Domain | PlainMessage<Domain> | undefined): boolean {
852
- return proto3.util.equals(Domain, a, b);
853
- }
854
- }
855
-