@scalekit-sdk/node 2.2.0-beta.0 → 2.2.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 (209) hide show
  1. package/.nvmrc +1 -1
  2. package/README.md +5 -5
  3. package/buf.gen.yaml +1 -5
  4. package/lib/auth.d.ts +9 -6
  5. package/lib/auth.js +4 -20
  6. package/lib/auth.js.map +1 -1
  7. package/lib/connect.d.ts +3 -3
  8. package/lib/connect.js +1 -2
  9. package/lib/connect.js.map +1 -1
  10. package/lib/connection.d.ts +2 -2
  11. package/lib/connection.js +4 -4
  12. package/lib/connection.js.map +1 -1
  13. package/lib/core.js +2 -2
  14. package/lib/core.js.map +1 -1
  15. package/lib/directory.d.ts +2 -2
  16. package/lib/directory.js +7 -7
  17. package/lib/directory.js.map +1 -1
  18. package/lib/domain.d.ts +6 -5
  19. package/lib/domain.js +4 -5
  20. package/lib/domain.js.map +1 -1
  21. package/lib/errors/base-exception.d.ts +1 -1
  22. package/lib/errors/base-exception.js +1 -1
  23. package/lib/errors/base-exception.js.map +1 -1
  24. package/lib/organization.d.ts +10 -9
  25. package/lib/organization.js +11 -9
  26. package/lib/organization.js.map +1 -1
  27. package/lib/passwordless.d.ts +2 -2
  28. package/lib/passwordless.js +8 -7
  29. package/lib/passwordless.js.map +1 -1
  30. package/lib/permission.d.ts +6 -5
  31. package/lib/permission.js +10 -11
  32. package/lib/permission.js.map +1 -1
  33. package/lib/pkg/grpc/buf/validate/validate_pb.d.ts +7 -0
  34. package/lib/pkg/grpc/buf/validate/validate_pb.js +25 -0
  35. package/lib/pkg/grpc/buf/validate/validate_pb.js.map +1 -0
  36. package/lib/pkg/grpc/google/api/annotations_pb.d.ts +7 -0
  37. package/lib/pkg/grpc/google/api/annotations_pb.js +25 -0
  38. package/lib/pkg/grpc/google/api/annotations_pb.js.map +1 -0
  39. package/lib/pkg/grpc/google/api/field_behavior_pb.d.ts +7 -0
  40. package/lib/pkg/grpc/google/api/field_behavior_pb.js +25 -0
  41. package/lib/pkg/grpc/google/api/field_behavior_pb.js.map +1 -0
  42. package/lib/pkg/grpc/google/api/visibility_pb.d.ts +7 -0
  43. package/lib/pkg/grpc/google/api/visibility_pb.js +25 -0
  44. package/lib/pkg/grpc/google/api/visibility_pb.js.map +1 -0
  45. package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.d.ts +7 -0
  46. package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js +25 -0
  47. package/lib/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.js.map +1 -0
  48. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.d.ts +48 -42
  49. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js +27 -263
  50. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.js.map +1 -1
  51. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.d.ts +371 -325
  52. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js +132 -835
  53. package/lib/pkg/grpc/scalekit/v1/auth/auth_pb.js.map +1 -1
  54. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.d.ts +113 -87
  55. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js +45 -201
  56. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_pb.js.map +1 -1
  57. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.d.ts +262 -265
  58. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js +92 -938
  59. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_pb.js.map +1 -1
  60. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.d.ts +162 -157
  61. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js +42 -313
  62. package/lib/pkg/grpc/scalekit/v1/commons/commons_pb.js.map +1 -1
  63. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.d.ts +1488 -1459
  64. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js +353 -2362
  65. package/lib/pkg/grpc/scalekit/v1/connections/connections_pb.js.map +1 -1
  66. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.d.ts +520 -483
  67. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js +224 -1555
  68. package/lib/pkg/grpc/scalekit/v1/directories/directories_pb.js.map +1 -1
  69. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.d.ts +219 -191
  70. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js +96 -553
  71. package/lib/pkg/grpc/scalekit/v1/domains/domains_pb.js.map +1 -1
  72. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.d.ts +76 -102
  73. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js +37 -393
  74. package/lib/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.js.map +1 -1
  75. package/lib/pkg/grpc/scalekit/v1/options/options_pb.d.ts +36 -26
  76. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js +20 -69
  77. package/lib/pkg/grpc/scalekit/v1/options/options_pb.js.map +1 -1
  78. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.d.ts +447 -400
  79. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js +163 -1238
  80. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_pb.js.map +1 -1
  81. package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.d.ts +622 -556
  82. package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js +201 -1718
  83. package/lib/pkg/grpc/scalekit/v1/roles/roles_pb.js.map +1 -1
  84. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.d.ts +135 -132
  85. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js +55 -518
  86. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_pb.js.map +1 -1
  87. package/lib/pkg/grpc/scalekit/v1/users/users_pb.d.ts +445 -413
  88. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js +142 -1490
  89. package/lib/pkg/grpc/scalekit/v1/users/users_pb.js.map +1 -1
  90. package/lib/role.d.ts +8 -7
  91. package/lib/role.js +14 -14
  92. package/lib/role.js.map +1 -1
  93. package/lib/scalekit.d.ts +0 -4
  94. package/lib/scalekit.js +0 -4
  95. package/lib/scalekit.js.map +1 -1
  96. package/lib/session.js +15 -24
  97. package/lib/session.js.map +1 -1
  98. package/lib/user.d.ts +6 -5
  99. package/lib/user.js +17 -20
  100. package/lib/user.js.map +1 -1
  101. package/lib/webauthn.js +6 -5
  102. package/lib/webauthn.js.map +1 -1
  103. package/package.json +6 -10
  104. package/reference.md +0 -671
  105. package/src/auth.ts +17 -17
  106. package/src/connect.ts +4 -5
  107. package/src/connection.ts +5 -5
  108. package/src/core.ts +2 -2
  109. package/src/directory.ts +8 -8
  110. package/src/domain.ts +9 -8
  111. package/src/errors/base-exception.ts +3 -2
  112. package/src/organization.ts +18 -15
  113. package/src/passwordless.ts +12 -11
  114. package/src/permission.ts +15 -15
  115. package/src/pkg/grpc/buf/validate/validate_pb.ts +28 -0
  116. package/src/pkg/grpc/google/api/annotations_pb.ts +28 -0
  117. package/src/pkg/grpc/google/api/field_behavior_pb.ts +28 -0
  118. package/src/pkg/grpc/google/api/visibility_pb.ts +28 -0
  119. package/src/pkg/grpc/protoc-gen-openapiv2/options/annotations_pb.ts +28 -0
  120. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_pb.ts +97 -182
  121. package/src/pkg/grpc/scalekit/v1/auth/auth_pb.ts +473 -850
  122. package/src/pkg/grpc/scalekit/v1/auth/passwordless_pb.ts +153 -225
  123. package/src/pkg/grpc/scalekit/v1/auth/webauthn_pb.ts +361 -830
  124. package/src/pkg/grpc/scalekit/v1/commons/commons_pb.ts +237 -358
  125. package/src/pkg/grpc/scalekit/v1/connections/connections_pb.ts +1625 -2826
  126. package/src/pkg/grpc/scalekit/v1/directories/directories_pb.ts +687 -1413
  127. package/src/pkg/grpc/scalekit/v1/domains/domains_pb.ts +286 -542
  128. package/src/pkg/grpc/scalekit/v1/errdetails/errdetails_pb.ts +115 -328
  129. package/src/pkg/grpc/scalekit/v1/options/options_pb.ts +50 -80
  130. package/src/pkg/grpc/scalekit/v1/organizations/organizations_pb.ts +558 -1183
  131. package/src/pkg/grpc/scalekit/v1/roles/roles_pb.ts +765 -1669
  132. package/src/pkg/grpc/scalekit/v1/sessions/sessions_pb.ts +195 -447
  133. package/src/pkg/grpc/scalekit/v1/users/users_pb.ts +592 -1339
  134. package/src/role.ts +21 -19
  135. package/src/scalekit.ts +0 -9
  136. package/src/session.ts +20 -34
  137. package/src/user.ts +30 -26
  138. package/src/webauthn.ts +10 -9
  139. package/tests/utils/test-data.ts +17 -8
  140. package/lib/connected-accounts.d.ts +0 -96
  141. package/lib/connected-accounts.js +0 -186
  142. package/lib/connected-accounts.js.map +0 -1
  143. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.d.ts +0 -19
  144. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js +0 -27
  145. package/lib/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.js.map +0 -1
  146. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.d.ts +0 -118
  147. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js +0 -126
  148. package/lib/pkg/grpc/scalekit/v1/auth/auth_connect.js.map +0 -1
  149. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.d.ts +0 -37
  150. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js +0 -45
  151. package/lib/pkg/grpc/scalekit/v1/auth/passwordless_connect.js.map +0 -1
  152. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.d.ts +0 -82
  153. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js +0 -90
  154. package/lib/pkg/grpc/scalekit/v1/auth/webauthn_connect.js.map +0 -1
  155. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.d.ts +0 -87
  156. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js +0 -95
  157. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.js.map +0 -1
  158. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.d.ts +0 -718
  159. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js +0 -893
  160. package/lib/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.js.map +0 -1
  161. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.d.ts +0 -172
  162. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js +0 -180
  163. package/lib/pkg/grpc/scalekit/v1/connections/connections_connect.js.map +0 -1
  164. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.d.ts +0 -154
  165. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js +0 -162
  166. package/lib/pkg/grpc/scalekit/v1/directories/directories_connect.js.map +0 -1
  167. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.d.ts +0 -73
  168. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js +0 -81
  169. package/lib/pkg/grpc/scalekit/v1/domains/domains_connect.js.map +0 -1
  170. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.d.ts +0 -171
  171. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js +0 -179
  172. package/lib/pkg/grpc/scalekit/v1/organizations/organizations_connect.js.map +0 -1
  173. package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.d.ts +0 -250
  174. package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js +0 -258
  175. package/lib/pkg/grpc/scalekit/v1/roles/roles_connect.js.map +0 -1
  176. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.d.ts +0 -46
  177. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js +0 -54
  178. package/lib/pkg/grpc/scalekit/v1/sessions/sessions_connect.js.map +0 -1
  179. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.d.ts +0 -75
  180. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js +0 -83
  181. package/lib/pkg/grpc/scalekit/v1/tools/tools_connect.js.map +0 -1
  182. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.d.ts +0 -431
  183. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js +0 -627
  184. package/lib/pkg/grpc/scalekit/v1/tools/tools_pb.js.map +0 -1
  185. package/lib/pkg/grpc/scalekit/v1/users/users_connect.d.ts +0 -173
  186. package/lib/pkg/grpc/scalekit/v1/users/users_connect.js +0 -181
  187. package/lib/pkg/grpc/scalekit/v1/users/users_connect.js.map +0 -1
  188. package/lib/tools.d.ts +0 -75
  189. package/lib/tools.js +0 -127
  190. package/lib/tools.js.map +0 -1
  191. package/src/connected-accounts.ts +0 -283
  192. package/src/pkg/grpc/scalekit/v1/auditlogs/auditlogs_connect.ts +0 -26
  193. package/src/pkg/grpc/scalekit/v1/auth/auth_connect.ts +0 -125
  194. package/src/pkg/grpc/scalekit/v1/auth/passwordless_connect.ts +0 -44
  195. package/src/pkg/grpc/scalekit/v1/auth/webauthn_connect.ts +0 -89
  196. package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_connect.ts +0 -94
  197. package/src/pkg/grpc/scalekit/v1/connected_accounts/connected_accounts_pb.ts +0 -1294
  198. package/src/pkg/grpc/scalekit/v1/connections/connections_connect.ts +0 -179
  199. package/src/pkg/grpc/scalekit/v1/directories/directories_connect.ts +0 -161
  200. package/src/pkg/grpc/scalekit/v1/domains/domains_connect.ts +0 -80
  201. package/src/pkg/grpc/scalekit/v1/organizations/organizations_connect.ts +0 -178
  202. package/src/pkg/grpc/scalekit/v1/roles/roles_connect.ts +0 -257
  203. package/src/pkg/grpc/scalekit/v1/sessions/sessions_connect.ts +0 -53
  204. package/src/pkg/grpc/scalekit/v1/tools/tools_connect.ts +0 -82
  205. package/src/pkg/grpc/scalekit/v1/tools/tools_pb.ts +0 -847
  206. package/src/pkg/grpc/scalekit/v1/users/users_connect.ts +0 -180
  207. package/src/tools.ts +0 -166
  208. package/tests/connected-accounts.test.ts +0 -434
  209. package/tests/tools.test.ts +0 -239
@@ -1,1294 +0,0 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
- // @generated from file scalekit/v1/connected_accounts/connected_accounts.proto (package scalekit.v1.connected_accounts, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
-
6
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf";
8
-
9
- /**
10
- * Status of a connected account indicating its current state
11
- *
12
- * @generated from enum scalekit.v1.connected_accounts.ConnectorStatus
13
- */
14
- export enum ConnectorStatus {
15
- /**
16
- * Default/unknown status
17
- *
18
- * @generated from enum value: CONNECTION_STATUS_UNSPECIFIED = 0;
19
- */
20
- CONNECTION_STATUS_UNSPECIFIED = 0,
21
-
22
- /**
23
- * Account is connected and credentials are valid
24
- *
25
- * @generated from enum value: ACTIVE = 1;
26
- */
27
- ACTIVE = 1,
28
-
29
- /**
30
- * Access token has expired and needs refresh
31
- *
32
- * @generated from enum value: EXPIRED = 2;
33
- */
34
- EXPIRED = 2,
35
-
36
- /**
37
- * Account awaiting user authorization
38
- *
39
- * @generated from enum value: PENDING_AUTH = 3;
40
- */
41
- PENDING_AUTH = 3,
42
- }
43
- // Retrieve enum metadata with: proto3.getEnumType(ConnectorStatus)
44
- proto3.util.setEnumType(ConnectorStatus, "scalekit.v1.connected_accounts.ConnectorStatus", [
45
- { no: 0, name: "CONNECTION_STATUS_UNSPECIFIED" },
46
- { no: 1, name: "ACTIVE" },
47
- { no: 2, name: "EXPIRED" },
48
- { no: 3, name: "PENDING_AUTH" },
49
- ]);
50
-
51
- /**
52
- * Type of authentication mechanism used for the connected account
53
- *
54
- * @generated from enum scalekit.v1.connected_accounts.ConnectorType
55
- */
56
- export enum ConnectorType {
57
- /**
58
- * Default/unknown type
59
- *
60
- * @generated from enum value: CONNECTION_TYPE_UNSPECIFIED = 0;
61
- */
62
- CONNECTION_TYPE_UNSPECIFIED = 0,
63
-
64
- /**
65
- * OAuth 2.0 authorization with access and refresh tokens
66
- *
67
- * @generated from enum value: OAUTH = 1;
68
- */
69
- OAUTH = 1,
70
-
71
- /**
72
- * Static API key authentication
73
- *
74
- * @generated from enum value: API_KEY = 2;
75
- */
76
- API_KEY = 2,
77
-
78
- /**
79
- * HTTP Basic Authentication (username/password)
80
- *
81
- * @generated from enum value: BASIC_AUTH = 3;
82
- */
83
- BASIC_AUTH = 3,
84
-
85
- /**
86
- * Bearer token authentication
87
- *
88
- * @generated from enum value: BEARER_TOKEN = 4;
89
- */
90
- BEARER_TOKEN = 4,
91
-
92
- /**
93
- * Custom authentication mechanism
94
- *
95
- * @generated from enum value: CUSTOM = 5;
96
- */
97
- CUSTOM = 5,
98
-
99
- /**
100
- * Basic authentication (alias)
101
- *
102
- * @generated from enum value: BASIC = 6;
103
- */
104
- BASIC = 6,
105
- }
106
- // Retrieve enum metadata with: proto3.getEnumType(ConnectorType)
107
- proto3.util.setEnumType(ConnectorType, "scalekit.v1.connected_accounts.ConnectorType", [
108
- { no: 0, name: "CONNECTION_TYPE_UNSPECIFIED" },
109
- { no: 1, name: "OAUTH" },
110
- { no: 2, name: "API_KEY" },
111
- { no: 3, name: "BASIC_AUTH" },
112
- { no: 4, name: "BEARER_TOKEN" },
113
- { no: 5, name: "CUSTOM" },
114
- { no: 6, name: "BASIC" },
115
- ]);
116
-
117
- /**
118
- * @generated from message scalekit.v1.connected_accounts.ListConnectedAccountsRequest
119
- */
120
- export class ListConnectedAccountsRequest extends Message<ListConnectedAccountsRequest> {
121
- /**
122
- * @generated from field: optional string organization_id = 1;
123
- */
124
- organizationId?: string;
125
-
126
- /**
127
- * @generated from field: optional string user_id = 2;
128
- */
129
- userId?: string;
130
-
131
- /**
132
- * @generated from field: optional string connector = 3;
133
- */
134
- connector?: string;
135
-
136
- /**
137
- * @generated from field: optional string identifier = 4;
138
- */
139
- identifier?: string;
140
-
141
- /**
142
- * @generated from field: string provider = 5;
143
- */
144
- provider = "";
145
-
146
- /**
147
- * @generated from field: uint32 page_size = 6;
148
- */
149
- pageSize = 0;
150
-
151
- /**
152
- * @generated from field: string page_token = 7;
153
- */
154
- pageToken = "";
155
-
156
- /**
157
- * @generated from field: string query = 8;
158
- */
159
- query = "";
160
-
161
- constructor(data?: PartialMessage<ListConnectedAccountsRequest>) {
162
- super();
163
- proto3.util.initPartial(data, this);
164
- }
165
-
166
- static readonly runtime: typeof proto3 = proto3;
167
- static readonly typeName = "scalekit.v1.connected_accounts.ListConnectedAccountsRequest";
168
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
169
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
170
- { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
171
- { no: 3, name: "connector", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
172
- { no: 4, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
173
- { no: 5, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
174
- { no: 6, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
175
- { no: 7, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
176
- { no: 8, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
177
- ]);
178
-
179
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListConnectedAccountsRequest {
180
- return new ListConnectedAccountsRequest().fromBinary(bytes, options);
181
- }
182
-
183
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListConnectedAccountsRequest {
184
- return new ListConnectedAccountsRequest().fromJson(jsonValue, options);
185
- }
186
-
187
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListConnectedAccountsRequest {
188
- return new ListConnectedAccountsRequest().fromJsonString(jsonString, options);
189
- }
190
-
191
- static equals(a: ListConnectedAccountsRequest | PlainMessage<ListConnectedAccountsRequest> | undefined, b: ListConnectedAccountsRequest | PlainMessage<ListConnectedAccountsRequest> | undefined): boolean {
192
- return proto3.util.equals(ListConnectedAccountsRequest, a, b);
193
- }
194
- }
195
-
196
- /**
197
- * @generated from message scalekit.v1.connected_accounts.ListConnectedAccountsResponse
198
- */
199
- export class ListConnectedAccountsResponse extends Message<ListConnectedAccountsResponse> {
200
- /**
201
- * @generated from field: repeated scalekit.v1.connected_accounts.ConnectedAccountForList connected_accounts = 1;
202
- */
203
- connectedAccounts: ConnectedAccountForList[] = [];
204
-
205
- /**
206
- * @generated from field: uint32 total_size = 2;
207
- */
208
- totalSize = 0;
209
-
210
- /**
211
- * @generated from field: string next_page_token = 3;
212
- */
213
- nextPageToken = "";
214
-
215
- /**
216
- * @generated from field: string prev_page_token = 4;
217
- */
218
- prevPageToken = "";
219
-
220
- constructor(data?: PartialMessage<ListConnectedAccountsResponse>) {
221
- super();
222
- proto3.util.initPartial(data, this);
223
- }
224
-
225
- static readonly runtime: typeof proto3 = proto3;
226
- static readonly typeName = "scalekit.v1.connected_accounts.ListConnectedAccountsResponse";
227
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
228
- { no: 1, name: "connected_accounts", kind: "message", T: ConnectedAccountForList, repeated: true },
229
- { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
230
- { no: 3, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
231
- { no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
232
- ]);
233
-
234
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListConnectedAccountsResponse {
235
- return new ListConnectedAccountsResponse().fromBinary(bytes, options);
236
- }
237
-
238
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListConnectedAccountsResponse {
239
- return new ListConnectedAccountsResponse().fromJson(jsonValue, options);
240
- }
241
-
242
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListConnectedAccountsResponse {
243
- return new ListConnectedAccountsResponse().fromJsonString(jsonString, options);
244
- }
245
-
246
- static equals(a: ListConnectedAccountsResponse | PlainMessage<ListConnectedAccountsResponse> | undefined, b: ListConnectedAccountsResponse | PlainMessage<ListConnectedAccountsResponse> | undefined): boolean {
247
- return proto3.util.equals(ListConnectedAccountsResponse, a, b);
248
- }
249
- }
250
-
251
- /**
252
- * @generated from message scalekit.v1.connected_accounts.SearchConnectedAccountsRequest
253
- */
254
- export class SearchConnectedAccountsRequest extends Message<SearchConnectedAccountsRequest> {
255
- /**
256
- * @generated from field: string query = 1;
257
- */
258
- query = "";
259
-
260
- /**
261
- * @generated from field: uint32 page_size = 2;
262
- */
263
- pageSize = 0;
264
-
265
- /**
266
- * @generated from field: string page_token = 3;
267
- */
268
- pageToken = "";
269
-
270
- /**
271
- * @generated from field: string connection_id = 4;
272
- */
273
- connectionId = "";
274
-
275
- constructor(data?: PartialMessage<SearchConnectedAccountsRequest>) {
276
- super();
277
- proto3.util.initPartial(data, this);
278
- }
279
-
280
- static readonly runtime: typeof proto3 = proto3;
281
- static readonly typeName = "scalekit.v1.connected_accounts.SearchConnectedAccountsRequest";
282
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
283
- { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
284
- { no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
285
- { no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
286
- { no: 4, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
287
- ]);
288
-
289
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchConnectedAccountsRequest {
290
- return new SearchConnectedAccountsRequest().fromBinary(bytes, options);
291
- }
292
-
293
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchConnectedAccountsRequest {
294
- return new SearchConnectedAccountsRequest().fromJson(jsonValue, options);
295
- }
296
-
297
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchConnectedAccountsRequest {
298
- return new SearchConnectedAccountsRequest().fromJsonString(jsonString, options);
299
- }
300
-
301
- static equals(a: SearchConnectedAccountsRequest | PlainMessage<SearchConnectedAccountsRequest> | undefined, b: SearchConnectedAccountsRequest | PlainMessage<SearchConnectedAccountsRequest> | undefined): boolean {
302
- return proto3.util.equals(SearchConnectedAccountsRequest, a, b);
303
- }
304
- }
305
-
306
- /**
307
- * @generated from message scalekit.v1.connected_accounts.SearchConnectedAccountsResponse
308
- */
309
- export class SearchConnectedAccountsResponse extends Message<SearchConnectedAccountsResponse> {
310
- /**
311
- * @generated from field: repeated scalekit.v1.connected_accounts.ConnectedAccountForList connected_accounts = 1;
312
- */
313
- connectedAccounts: ConnectedAccountForList[] = [];
314
-
315
- /**
316
- * @generated from field: uint32 total_size = 2;
317
- */
318
- totalSize = 0;
319
-
320
- /**
321
- * @generated from field: string next_page_token = 3;
322
- */
323
- nextPageToken = "";
324
-
325
- /**
326
- * @generated from field: string prev_page_token = 4;
327
- */
328
- prevPageToken = "";
329
-
330
- constructor(data?: PartialMessage<SearchConnectedAccountsResponse>) {
331
- super();
332
- proto3.util.initPartial(data, this);
333
- }
334
-
335
- static readonly runtime: typeof proto3 = proto3;
336
- static readonly typeName = "scalekit.v1.connected_accounts.SearchConnectedAccountsResponse";
337
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
338
- { no: 1, name: "connected_accounts", kind: "message", T: ConnectedAccountForList, repeated: true },
339
- { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
340
- { no: 3, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
341
- { no: 4, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
342
- ]);
343
-
344
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchConnectedAccountsResponse {
345
- return new SearchConnectedAccountsResponse().fromBinary(bytes, options);
346
- }
347
-
348
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchConnectedAccountsResponse {
349
- return new SearchConnectedAccountsResponse().fromJson(jsonValue, options);
350
- }
351
-
352
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchConnectedAccountsResponse {
353
- return new SearchConnectedAccountsResponse().fromJsonString(jsonString, options);
354
- }
355
-
356
- static equals(a: SearchConnectedAccountsResponse | PlainMessage<SearchConnectedAccountsResponse> | undefined, b: SearchConnectedAccountsResponse | PlainMessage<SearchConnectedAccountsResponse> | undefined): boolean {
357
- return proto3.util.equals(SearchConnectedAccountsResponse, a, b);
358
- }
359
- }
360
-
361
- /**
362
- * @generated from message scalekit.v1.connected_accounts.CreateConnectedAccountRequest
363
- */
364
- export class CreateConnectedAccountRequest extends Message<CreateConnectedAccountRequest> {
365
- /**
366
- * @generated from field: optional string organization_id = 1;
367
- */
368
- organizationId?: string;
369
-
370
- /**
371
- * @generated from field: optional string user_id = 2;
372
- */
373
- userId?: string;
374
-
375
- /**
376
- * @generated from field: optional string connector = 3;
377
- */
378
- connector?: string;
379
-
380
- /**
381
- * @generated from field: optional string identifier = 4;
382
- */
383
- identifier?: string;
384
-
385
- /**
386
- * @generated from field: scalekit.v1.connected_accounts.CreateConnectedAccount connected_account = 5;
387
- */
388
- connectedAccount?: CreateConnectedAccount;
389
-
390
- constructor(data?: PartialMessage<CreateConnectedAccountRequest>) {
391
- super();
392
- proto3.util.initPartial(data, this);
393
- }
394
-
395
- static readonly runtime: typeof proto3 = proto3;
396
- static readonly typeName = "scalekit.v1.connected_accounts.CreateConnectedAccountRequest";
397
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
398
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
399
- { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
400
- { no: 3, name: "connector", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
401
- { no: 4, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
402
- { no: 5, name: "connected_account", kind: "message", T: CreateConnectedAccount },
403
- ]);
404
-
405
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateConnectedAccountRequest {
406
- return new CreateConnectedAccountRequest().fromBinary(bytes, options);
407
- }
408
-
409
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateConnectedAccountRequest {
410
- return new CreateConnectedAccountRequest().fromJson(jsonValue, options);
411
- }
412
-
413
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateConnectedAccountRequest {
414
- return new CreateConnectedAccountRequest().fromJsonString(jsonString, options);
415
- }
416
-
417
- static equals(a: CreateConnectedAccountRequest | PlainMessage<CreateConnectedAccountRequest> | undefined, b: CreateConnectedAccountRequest | PlainMessage<CreateConnectedAccountRequest> | undefined): boolean {
418
- return proto3.util.equals(CreateConnectedAccountRequest, a, b);
419
- }
420
- }
421
-
422
- /**
423
- * @generated from message scalekit.v1.connected_accounts.CreateConnectedAccountResponse
424
- */
425
- export class CreateConnectedAccountResponse extends Message<CreateConnectedAccountResponse> {
426
- /**
427
- * @generated from field: scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1;
428
- */
429
- connectedAccount?: ConnectedAccount;
430
-
431
- constructor(data?: PartialMessage<CreateConnectedAccountResponse>) {
432
- super();
433
- proto3.util.initPartial(data, this);
434
- }
435
-
436
- static readonly runtime: typeof proto3 = proto3;
437
- static readonly typeName = "scalekit.v1.connected_accounts.CreateConnectedAccountResponse";
438
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
439
- { no: 1, name: "connected_account", kind: "message", T: ConnectedAccount },
440
- ]);
441
-
442
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateConnectedAccountResponse {
443
- return new CreateConnectedAccountResponse().fromBinary(bytes, options);
444
- }
445
-
446
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateConnectedAccountResponse {
447
- return new CreateConnectedAccountResponse().fromJson(jsonValue, options);
448
- }
449
-
450
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateConnectedAccountResponse {
451
- return new CreateConnectedAccountResponse().fromJsonString(jsonString, options);
452
- }
453
-
454
- static equals(a: CreateConnectedAccountResponse | PlainMessage<CreateConnectedAccountResponse> | undefined, b: CreateConnectedAccountResponse | PlainMessage<CreateConnectedAccountResponse> | undefined): boolean {
455
- return proto3.util.equals(CreateConnectedAccountResponse, a, b);
456
- }
457
- }
458
-
459
- /**
460
- * @generated from message scalekit.v1.connected_accounts.UpdateConnectedAccountRequest
461
- */
462
- export class UpdateConnectedAccountRequest extends Message<UpdateConnectedAccountRequest> {
463
- /**
464
- * @generated from field: optional string organization_id = 1;
465
- */
466
- organizationId?: string;
467
-
468
- /**
469
- * @generated from field: optional string user_id = 2;
470
- */
471
- userId?: string;
472
-
473
- /**
474
- * @generated from field: optional string connector = 3;
475
- */
476
- connector?: string;
477
-
478
- /**
479
- * @generated from field: optional string identifier = 4;
480
- */
481
- identifier?: string;
482
-
483
- /**
484
- * @generated from field: optional string id = 6;
485
- */
486
- id?: string;
487
-
488
- /**
489
- * @generated from field: scalekit.v1.connected_accounts.UpdateConnectedAccount connected_account = 5;
490
- */
491
- connectedAccount?: UpdateConnectedAccount;
492
-
493
- constructor(data?: PartialMessage<UpdateConnectedAccountRequest>) {
494
- super();
495
- proto3.util.initPartial(data, this);
496
- }
497
-
498
- static readonly runtime: typeof proto3 = proto3;
499
- static readonly typeName = "scalekit.v1.connected_accounts.UpdateConnectedAccountRequest";
500
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
501
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
502
- { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
503
- { no: 3, name: "connector", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
504
- { no: 4, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
505
- { no: 6, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
506
- { no: 5, name: "connected_account", kind: "message", T: UpdateConnectedAccount },
507
- ]);
508
-
509
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateConnectedAccountRequest {
510
- return new UpdateConnectedAccountRequest().fromBinary(bytes, options);
511
- }
512
-
513
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateConnectedAccountRequest {
514
- return new UpdateConnectedAccountRequest().fromJson(jsonValue, options);
515
- }
516
-
517
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateConnectedAccountRequest {
518
- return new UpdateConnectedAccountRequest().fromJsonString(jsonString, options);
519
- }
520
-
521
- static equals(a: UpdateConnectedAccountRequest | PlainMessage<UpdateConnectedAccountRequest> | undefined, b: UpdateConnectedAccountRequest | PlainMessage<UpdateConnectedAccountRequest> | undefined): boolean {
522
- return proto3.util.equals(UpdateConnectedAccountRequest, a, b);
523
- }
524
- }
525
-
526
- /**
527
- * @generated from message scalekit.v1.connected_accounts.UpdateConnectedAccountResponse
528
- */
529
- export class UpdateConnectedAccountResponse extends Message<UpdateConnectedAccountResponse> {
530
- /**
531
- * @generated from field: scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1;
532
- */
533
- connectedAccount?: ConnectedAccount;
534
-
535
- constructor(data?: PartialMessage<UpdateConnectedAccountResponse>) {
536
- super();
537
- proto3.util.initPartial(data, this);
538
- }
539
-
540
- static readonly runtime: typeof proto3 = proto3;
541
- static readonly typeName = "scalekit.v1.connected_accounts.UpdateConnectedAccountResponse";
542
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
543
- { no: 1, name: "connected_account", kind: "message", T: ConnectedAccount },
544
- ]);
545
-
546
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateConnectedAccountResponse {
547
- return new UpdateConnectedAccountResponse().fromBinary(bytes, options);
548
- }
549
-
550
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateConnectedAccountResponse {
551
- return new UpdateConnectedAccountResponse().fromJson(jsonValue, options);
552
- }
553
-
554
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateConnectedAccountResponse {
555
- return new UpdateConnectedAccountResponse().fromJsonString(jsonString, options);
556
- }
557
-
558
- static equals(a: UpdateConnectedAccountResponse | PlainMessage<UpdateConnectedAccountResponse> | undefined, b: UpdateConnectedAccountResponse | PlainMessage<UpdateConnectedAccountResponse> | undefined): boolean {
559
- return proto3.util.equals(UpdateConnectedAccountResponse, a, b);
560
- }
561
- }
562
-
563
- /**
564
- * @generated from message scalekit.v1.connected_accounts.DeleteConnectedAccountRequest
565
- */
566
- export class DeleteConnectedAccountRequest extends Message<DeleteConnectedAccountRequest> {
567
- /**
568
- * @generated from field: optional string organization_id = 1;
569
- */
570
- organizationId?: string;
571
-
572
- /**
573
- * @generated from field: optional string user_id = 2;
574
- */
575
- userId?: string;
576
-
577
- /**
578
- * @generated from field: optional string connector = 3;
579
- */
580
- connector?: string;
581
-
582
- /**
583
- * @generated from field: optional string identifier = 4;
584
- */
585
- identifier?: string;
586
-
587
- /**
588
- * @generated from field: optional string id = 5;
589
- */
590
- id?: string;
591
-
592
- constructor(data?: PartialMessage<DeleteConnectedAccountRequest>) {
593
- super();
594
- proto3.util.initPartial(data, this);
595
- }
596
-
597
- static readonly runtime: typeof proto3 = proto3;
598
- static readonly typeName = "scalekit.v1.connected_accounts.DeleteConnectedAccountRequest";
599
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
600
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
601
- { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
602
- { no: 3, name: "connector", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
603
- { no: 4, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
604
- { no: 5, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
605
- ]);
606
-
607
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteConnectedAccountRequest {
608
- return new DeleteConnectedAccountRequest().fromBinary(bytes, options);
609
- }
610
-
611
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteConnectedAccountRequest {
612
- return new DeleteConnectedAccountRequest().fromJson(jsonValue, options);
613
- }
614
-
615
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteConnectedAccountRequest {
616
- return new DeleteConnectedAccountRequest().fromJsonString(jsonString, options);
617
- }
618
-
619
- static equals(a: DeleteConnectedAccountRequest | PlainMessage<DeleteConnectedAccountRequest> | undefined, b: DeleteConnectedAccountRequest | PlainMessage<DeleteConnectedAccountRequest> | undefined): boolean {
620
- return proto3.util.equals(DeleteConnectedAccountRequest, a, b);
621
- }
622
- }
623
-
624
- /**
625
- * @generated from message scalekit.v1.connected_accounts.DeleteConnectedAccountResponse
626
- */
627
- export class DeleteConnectedAccountResponse extends Message<DeleteConnectedAccountResponse> {
628
- constructor(data?: PartialMessage<DeleteConnectedAccountResponse>) {
629
- super();
630
- proto3.util.initPartial(data, this);
631
- }
632
-
633
- static readonly runtime: typeof proto3 = proto3;
634
- static readonly typeName = "scalekit.v1.connected_accounts.DeleteConnectedAccountResponse";
635
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
636
- ]);
637
-
638
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteConnectedAccountResponse {
639
- return new DeleteConnectedAccountResponse().fromBinary(bytes, options);
640
- }
641
-
642
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteConnectedAccountResponse {
643
- return new DeleteConnectedAccountResponse().fromJson(jsonValue, options);
644
- }
645
-
646
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteConnectedAccountResponse {
647
- return new DeleteConnectedAccountResponse().fromJsonString(jsonString, options);
648
- }
649
-
650
- static equals(a: DeleteConnectedAccountResponse | PlainMessage<DeleteConnectedAccountResponse> | undefined, b: DeleteConnectedAccountResponse | PlainMessage<DeleteConnectedAccountResponse> | undefined): boolean {
651
- return proto3.util.equals(DeleteConnectedAccountResponse, a, b);
652
- }
653
- }
654
-
655
- /**
656
- * @generated from message scalekit.v1.connected_accounts.GetMagicLinkForConnectedAccountRequest
657
- */
658
- export class GetMagicLinkForConnectedAccountRequest extends Message<GetMagicLinkForConnectedAccountRequest> {
659
- /**
660
- * @generated from field: optional string organization_id = 1;
661
- */
662
- organizationId?: string;
663
-
664
- /**
665
- * @generated from field: optional string user_id = 2;
666
- */
667
- userId?: string;
668
-
669
- /**
670
- * @generated from field: optional string connector = 3;
671
- */
672
- connector?: string;
673
-
674
- /**
675
- * @generated from field: optional string identifier = 4;
676
- */
677
- identifier?: string;
678
-
679
- /**
680
- * @generated from field: optional string id = 5;
681
- */
682
- id?: string;
683
-
684
- constructor(data?: PartialMessage<GetMagicLinkForConnectedAccountRequest>) {
685
- super();
686
- proto3.util.initPartial(data, this);
687
- }
688
-
689
- static readonly runtime: typeof proto3 = proto3;
690
- static readonly typeName = "scalekit.v1.connected_accounts.GetMagicLinkForConnectedAccountRequest";
691
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
692
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
693
- { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
694
- { no: 3, name: "connector", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
695
- { no: 4, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
696
- { no: 5, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
697
- ]);
698
-
699
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetMagicLinkForConnectedAccountRequest {
700
- return new GetMagicLinkForConnectedAccountRequest().fromBinary(bytes, options);
701
- }
702
-
703
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetMagicLinkForConnectedAccountRequest {
704
- return new GetMagicLinkForConnectedAccountRequest().fromJson(jsonValue, options);
705
- }
706
-
707
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetMagicLinkForConnectedAccountRequest {
708
- return new GetMagicLinkForConnectedAccountRequest().fromJsonString(jsonString, options);
709
- }
710
-
711
- static equals(a: GetMagicLinkForConnectedAccountRequest | PlainMessage<GetMagicLinkForConnectedAccountRequest> | undefined, b: GetMagicLinkForConnectedAccountRequest | PlainMessage<GetMagicLinkForConnectedAccountRequest> | undefined): boolean {
712
- return proto3.util.equals(GetMagicLinkForConnectedAccountRequest, a, b);
713
- }
714
- }
715
-
716
- /**
717
- * @generated from message scalekit.v1.connected_accounts.GetMagicLinkForConnectedAccountResponse
718
- */
719
- export class GetMagicLinkForConnectedAccountResponse extends Message<GetMagicLinkForConnectedAccountResponse> {
720
- /**
721
- * @generated from field: string link = 1;
722
- */
723
- link = "";
724
-
725
- /**
726
- * @generated from field: google.protobuf.Timestamp expiry = 2;
727
- */
728
- expiry?: Timestamp;
729
-
730
- constructor(data?: PartialMessage<GetMagicLinkForConnectedAccountResponse>) {
731
- super();
732
- proto3.util.initPartial(data, this);
733
- }
734
-
735
- static readonly runtime: typeof proto3 = proto3;
736
- static readonly typeName = "scalekit.v1.connected_accounts.GetMagicLinkForConnectedAccountResponse";
737
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
738
- { no: 1, name: "link", kind: "scalar", T: 9 /* ScalarType.STRING */ },
739
- { no: 2, name: "expiry", kind: "message", T: Timestamp },
740
- ]);
741
-
742
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetMagicLinkForConnectedAccountResponse {
743
- return new GetMagicLinkForConnectedAccountResponse().fromBinary(bytes, options);
744
- }
745
-
746
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetMagicLinkForConnectedAccountResponse {
747
- return new GetMagicLinkForConnectedAccountResponse().fromJson(jsonValue, options);
748
- }
749
-
750
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetMagicLinkForConnectedAccountResponse {
751
- return new GetMagicLinkForConnectedAccountResponse().fromJsonString(jsonString, options);
752
- }
753
-
754
- static equals(a: GetMagicLinkForConnectedAccountResponse | PlainMessage<GetMagicLinkForConnectedAccountResponse> | undefined, b: GetMagicLinkForConnectedAccountResponse | PlainMessage<GetMagicLinkForConnectedAccountResponse> | undefined): boolean {
755
- return proto3.util.equals(GetMagicLinkForConnectedAccountResponse, a, b);
756
- }
757
- }
758
-
759
- /**
760
- * @generated from message scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest
761
- */
762
- export class GetConnectedAccountByIdentifierRequest extends Message<GetConnectedAccountByIdentifierRequest> {
763
- /**
764
- * @generated from field: optional string organization_id = 1;
765
- */
766
- organizationId?: string;
767
-
768
- /**
769
- * @generated from field: optional string user_id = 2;
770
- */
771
- userId?: string;
772
-
773
- /**
774
- * @generated from field: optional string connector = 3;
775
- */
776
- connector?: string;
777
-
778
- /**
779
- * @generated from field: optional string identifier = 4;
780
- */
781
- identifier?: string;
782
-
783
- /**
784
- * @generated from field: optional string id = 5;
785
- */
786
- id?: string;
787
-
788
- constructor(data?: PartialMessage<GetConnectedAccountByIdentifierRequest>) {
789
- super();
790
- proto3.util.initPartial(data, this);
791
- }
792
-
793
- static readonly runtime: typeof proto3 = proto3;
794
- static readonly typeName = "scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest";
795
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
796
- { no: 1, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
797
- { no: 2, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
798
- { no: 3, name: "connector", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
799
- { no: 4, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
800
- { no: 5, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
801
- ]);
802
-
803
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetConnectedAccountByIdentifierRequest {
804
- return new GetConnectedAccountByIdentifierRequest().fromBinary(bytes, options);
805
- }
806
-
807
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetConnectedAccountByIdentifierRequest {
808
- return new GetConnectedAccountByIdentifierRequest().fromJson(jsonValue, options);
809
- }
810
-
811
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetConnectedAccountByIdentifierRequest {
812
- return new GetConnectedAccountByIdentifierRequest().fromJsonString(jsonString, options);
813
- }
814
-
815
- static equals(a: GetConnectedAccountByIdentifierRequest | PlainMessage<GetConnectedAccountByIdentifierRequest> | undefined, b: GetConnectedAccountByIdentifierRequest | PlainMessage<GetConnectedAccountByIdentifierRequest> | undefined): boolean {
816
- return proto3.util.equals(GetConnectedAccountByIdentifierRequest, a, b);
817
- }
818
- }
819
-
820
- /**
821
- * @generated from message scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierResponse
822
- */
823
- export class GetConnectedAccountByIdentifierResponse extends Message<GetConnectedAccountByIdentifierResponse> {
824
- /**
825
- * @generated from field: scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1;
826
- */
827
- connectedAccount?: ConnectedAccount;
828
-
829
- constructor(data?: PartialMessage<GetConnectedAccountByIdentifierResponse>) {
830
- super();
831
- proto3.util.initPartial(data, this);
832
- }
833
-
834
- static readonly runtime: typeof proto3 = proto3;
835
- static readonly typeName = "scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierResponse";
836
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
837
- { no: 1, name: "connected_account", kind: "message", T: ConnectedAccount },
838
- ]);
839
-
840
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetConnectedAccountByIdentifierResponse {
841
- return new GetConnectedAccountByIdentifierResponse().fromBinary(bytes, options);
842
- }
843
-
844
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetConnectedAccountByIdentifierResponse {
845
- return new GetConnectedAccountByIdentifierResponse().fromJson(jsonValue, options);
846
- }
847
-
848
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetConnectedAccountByIdentifierResponse {
849
- return new GetConnectedAccountByIdentifierResponse().fromJsonString(jsonString, options);
850
- }
851
-
852
- static equals(a: GetConnectedAccountByIdentifierResponse | PlainMessage<GetConnectedAccountByIdentifierResponse> | undefined, b: GetConnectedAccountByIdentifierResponse | PlainMessage<GetConnectedAccountByIdentifierResponse> | undefined): boolean {
853
- return proto3.util.equals(GetConnectedAccountByIdentifierResponse, a, b);
854
- }
855
- }
856
-
857
- /**
858
- * @generated from message scalekit.v1.connected_accounts.ConnectedAccount
859
- */
860
- export class ConnectedAccount extends Message<ConnectedAccount> {
861
- /**
862
- * @generated from field: string identifier = 1;
863
- */
864
- identifier = "";
865
-
866
- /**
867
- * @generated from field: string provider = 2;
868
- */
869
- provider = "";
870
-
871
- /**
872
- * @generated from field: scalekit.v1.connected_accounts.ConnectorStatus status = 3;
873
- */
874
- status = ConnectorStatus.CONNECTION_STATUS_UNSPECIFIED;
875
-
876
- /**
877
- * @generated from field: scalekit.v1.connected_accounts.ConnectorType authorization_type = 4;
878
- */
879
- authorizationType = ConnectorType.CONNECTION_TYPE_UNSPECIFIED;
880
-
881
- /**
882
- * @generated from field: scalekit.v1.connected_accounts.AuthorizationDetails authorization_details = 5;
883
- */
884
- authorizationDetails?: AuthorizationDetails;
885
-
886
- /**
887
- * @generated from field: google.protobuf.Timestamp token_expires_at = 6;
888
- */
889
- tokenExpiresAt?: Timestamp;
890
-
891
- /**
892
- * @generated from field: google.protobuf.Timestamp updated_at = 7;
893
- */
894
- updatedAt?: Timestamp;
895
-
896
- /**
897
- * @generated from field: string connector = 8;
898
- */
899
- connector = "";
900
-
901
- /**
902
- * @generated from field: google.protobuf.Timestamp last_used_at = 9;
903
- */
904
- lastUsedAt?: Timestamp;
905
-
906
- /**
907
- * @generated from field: string id = 10;
908
- */
909
- id = "";
910
-
911
- /**
912
- * @generated from field: string connection_id = 11;
913
- */
914
- connectionId = "";
915
-
916
- /**
917
- * @generated from field: google.protobuf.Struct api_config = 12;
918
- */
919
- apiConfig?: Struct;
920
-
921
- constructor(data?: PartialMessage<ConnectedAccount>) {
922
- super();
923
- proto3.util.initPartial(data, this);
924
- }
925
-
926
- static readonly runtime: typeof proto3 = proto3;
927
- static readonly typeName = "scalekit.v1.connected_accounts.ConnectedAccount";
928
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
929
- { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
930
- { no: 2, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
931
- { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(ConnectorStatus) },
932
- { no: 4, name: "authorization_type", kind: "enum", T: proto3.getEnumType(ConnectorType) },
933
- { no: 5, name: "authorization_details", kind: "message", T: AuthorizationDetails },
934
- { no: 6, name: "token_expires_at", kind: "message", T: Timestamp },
935
- { no: 7, name: "updated_at", kind: "message", T: Timestamp },
936
- { no: 8, name: "connector", kind: "scalar", T: 9 /* ScalarType.STRING */ },
937
- { no: 9, name: "last_used_at", kind: "message", T: Timestamp },
938
- { no: 10, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
939
- { no: 11, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
940
- { no: 12, name: "api_config", kind: "message", T: Struct },
941
- ]);
942
-
943
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectedAccount {
944
- return new ConnectedAccount().fromBinary(bytes, options);
945
- }
946
-
947
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectedAccount {
948
- return new ConnectedAccount().fromJson(jsonValue, options);
949
- }
950
-
951
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectedAccount {
952
- return new ConnectedAccount().fromJsonString(jsonString, options);
953
- }
954
-
955
- static equals(a: ConnectedAccount | PlainMessage<ConnectedAccount> | undefined, b: ConnectedAccount | PlainMessage<ConnectedAccount> | undefined): boolean {
956
- return proto3.util.equals(ConnectedAccount, a, b);
957
- }
958
- }
959
-
960
- /**
961
- * Payload for creating a new connected account - only authorization details required
962
- *
963
- * @generated from message scalekit.v1.connected_accounts.CreateConnectedAccount
964
- */
965
- export class CreateConnectedAccount extends Message<CreateConnectedAccount> {
966
- /**
967
- * @generated from field: scalekit.v1.connected_accounts.AuthorizationDetails authorization_details = 5;
968
- */
969
- authorizationDetails?: AuthorizationDetails;
970
-
971
- /**
972
- * @generated from field: google.protobuf.Struct api_config = 11;
973
- */
974
- apiConfig?: Struct;
975
-
976
- constructor(data?: PartialMessage<CreateConnectedAccount>) {
977
- super();
978
- proto3.util.initPartial(data, this);
979
- }
980
-
981
- static readonly runtime: typeof proto3 = proto3;
982
- static readonly typeName = "scalekit.v1.connected_accounts.CreateConnectedAccount";
983
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
984
- { no: 5, name: "authorization_details", kind: "message", T: AuthorizationDetails },
985
- { no: 11, name: "api_config", kind: "message", T: Struct },
986
- ]);
987
-
988
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateConnectedAccount {
989
- return new CreateConnectedAccount().fromBinary(bytes, options);
990
- }
991
-
992
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateConnectedAccount {
993
- return new CreateConnectedAccount().fromJson(jsonValue, options);
994
- }
995
-
996
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateConnectedAccount {
997
- return new CreateConnectedAccount().fromJsonString(jsonString, options);
998
- }
999
-
1000
- static equals(a: CreateConnectedAccount | PlainMessage<CreateConnectedAccount> | undefined, b: CreateConnectedAccount | PlainMessage<CreateConnectedAccount> | undefined): boolean {
1001
- return proto3.util.equals(CreateConnectedAccount, a, b);
1002
- }
1003
- }
1004
-
1005
- /**
1006
- * Payload for updating an existing connected account - all fields optional
1007
- *
1008
- * @generated from message scalekit.v1.connected_accounts.UpdateConnectedAccount
1009
- */
1010
- export class UpdateConnectedAccount extends Message<UpdateConnectedAccount> {
1011
- /**
1012
- * @generated from field: scalekit.v1.connected_accounts.AuthorizationDetails authorization_details = 5;
1013
- */
1014
- authorizationDetails?: AuthorizationDetails;
1015
-
1016
- /**
1017
- * @generated from field: google.protobuf.Struct api_config = 10;
1018
- */
1019
- apiConfig?: Struct;
1020
-
1021
- constructor(data?: PartialMessage<UpdateConnectedAccount>) {
1022
- super();
1023
- proto3.util.initPartial(data, this);
1024
- }
1025
-
1026
- static readonly runtime: typeof proto3 = proto3;
1027
- static readonly typeName = "scalekit.v1.connected_accounts.UpdateConnectedAccount";
1028
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1029
- { no: 5, name: "authorization_details", kind: "message", T: AuthorizationDetails },
1030
- { no: 10, name: "api_config", kind: "message", T: Struct },
1031
- ]);
1032
-
1033
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateConnectedAccount {
1034
- return new UpdateConnectedAccount().fromBinary(bytes, options);
1035
- }
1036
-
1037
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateConnectedAccount {
1038
- return new UpdateConnectedAccount().fromJson(jsonValue, options);
1039
- }
1040
-
1041
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateConnectedAccount {
1042
- return new UpdateConnectedAccount().fromJsonString(jsonString, options);
1043
- }
1044
-
1045
- static equals(a: UpdateConnectedAccount | PlainMessage<UpdateConnectedAccount> | undefined, b: UpdateConnectedAccount | PlainMessage<UpdateConnectedAccount> | undefined): boolean {
1046
- return proto3.util.equals(UpdateConnectedAccount, a, b);
1047
- }
1048
- }
1049
-
1050
- /**
1051
- * Connected account summary for list operations - excludes sensitive authorization details
1052
- *
1053
- * @generated from message scalekit.v1.connected_accounts.ConnectedAccountForList
1054
- */
1055
- export class ConnectedAccountForList extends Message<ConnectedAccountForList> {
1056
- /**
1057
- * @generated from field: string identifier = 1;
1058
- */
1059
- identifier = "";
1060
-
1061
- /**
1062
- * @generated from field: string provider = 2;
1063
- */
1064
- provider = "";
1065
-
1066
- /**
1067
- * @generated from field: scalekit.v1.connected_accounts.ConnectorStatus status = 3;
1068
- */
1069
- status = ConnectorStatus.CONNECTION_STATUS_UNSPECIFIED;
1070
-
1071
- /**
1072
- * @generated from field: scalekit.v1.connected_accounts.ConnectorType authorization_type = 4;
1073
- */
1074
- authorizationType = ConnectorType.CONNECTION_TYPE_UNSPECIFIED;
1075
-
1076
- /**
1077
- * @generated from field: google.protobuf.Timestamp token_expires_at = 6;
1078
- */
1079
- tokenExpiresAt?: Timestamp;
1080
-
1081
- /**
1082
- * @generated from field: google.protobuf.Timestamp updated_at = 7;
1083
- */
1084
- updatedAt?: Timestamp;
1085
-
1086
- /**
1087
- * @generated from field: string connector = 8;
1088
- */
1089
- connector = "";
1090
-
1091
- /**
1092
- * @generated from field: google.protobuf.Timestamp last_used_at = 9;
1093
- */
1094
- lastUsedAt?: Timestamp;
1095
-
1096
- /**
1097
- * @generated from field: string id = 10;
1098
- */
1099
- id = "";
1100
-
1101
- /**
1102
- * @generated from field: string connection_id = 11;
1103
- */
1104
- connectionId = "";
1105
-
1106
- constructor(data?: PartialMessage<ConnectedAccountForList>) {
1107
- super();
1108
- proto3.util.initPartial(data, this);
1109
- }
1110
-
1111
- static readonly runtime: typeof proto3 = proto3;
1112
- static readonly typeName = "scalekit.v1.connected_accounts.ConnectedAccountForList";
1113
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1114
- { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1115
- { no: 2, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1116
- { no: 3, name: "status", kind: "enum", T: proto3.getEnumType(ConnectorStatus) },
1117
- { no: 4, name: "authorization_type", kind: "enum", T: proto3.getEnumType(ConnectorType) },
1118
- { no: 6, name: "token_expires_at", kind: "message", T: Timestamp },
1119
- { no: 7, name: "updated_at", kind: "message", T: Timestamp },
1120
- { no: 8, name: "connector", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1121
- { no: 9, name: "last_used_at", kind: "message", T: Timestamp },
1122
- { no: 10, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1123
- { no: 11, name: "connection_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1124
- ]);
1125
-
1126
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectedAccountForList {
1127
- return new ConnectedAccountForList().fromBinary(bytes, options);
1128
- }
1129
-
1130
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectedAccountForList {
1131
- return new ConnectedAccountForList().fromJson(jsonValue, options);
1132
- }
1133
-
1134
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectedAccountForList {
1135
- return new ConnectedAccountForList().fromJsonString(jsonString, options);
1136
- }
1137
-
1138
- static equals(a: ConnectedAccountForList | PlainMessage<ConnectedAccountForList> | undefined, b: ConnectedAccountForList | PlainMessage<ConnectedAccountForList> | undefined): boolean {
1139
- return proto3.util.equals(ConnectedAccountForList, a, b);
1140
- }
1141
- }
1142
-
1143
- /**
1144
- * Authentication credentials container supporting multiple auth types
1145
- *
1146
- * @generated from message scalekit.v1.connected_accounts.AuthorizationDetails
1147
- */
1148
- export class AuthorizationDetails extends Message<AuthorizationDetails> {
1149
- /**
1150
- * @generated from oneof scalekit.v1.connected_accounts.AuthorizationDetails.details
1151
- */
1152
- details: {
1153
- /**
1154
- * OAuth 2.0 credentials
1155
- *
1156
- * @generated from field: scalekit.v1.connected_accounts.OauthToken oauth_token = 1;
1157
- */
1158
- value: OauthToken;
1159
- case: "oauthToken";
1160
- } | {
1161
- /**
1162
- * Static authentication credentials
1163
- *
1164
- * @generated from field: scalekit.v1.connected_accounts.StaticAuth static_auth = 2;
1165
- */
1166
- value: StaticAuth;
1167
- case: "staticAuth";
1168
- } | { case: undefined; value?: undefined } = { case: undefined };
1169
-
1170
- constructor(data?: PartialMessage<AuthorizationDetails>) {
1171
- super();
1172
- proto3.util.initPartial(data, this);
1173
- }
1174
-
1175
- static readonly runtime: typeof proto3 = proto3;
1176
- static readonly typeName = "scalekit.v1.connected_accounts.AuthorizationDetails";
1177
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1178
- { no: 1, name: "oauth_token", kind: "message", T: OauthToken, oneof: "details" },
1179
- { no: 2, name: "static_auth", kind: "message", T: StaticAuth, oneof: "details" },
1180
- ]);
1181
-
1182
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuthorizationDetails {
1183
- return new AuthorizationDetails().fromBinary(bytes, options);
1184
- }
1185
-
1186
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuthorizationDetails {
1187
- return new AuthorizationDetails().fromJson(jsonValue, options);
1188
- }
1189
-
1190
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuthorizationDetails {
1191
- return new AuthorizationDetails().fromJsonString(jsonString, options);
1192
- }
1193
-
1194
- static equals(a: AuthorizationDetails | PlainMessage<AuthorizationDetails> | undefined, b: AuthorizationDetails | PlainMessage<AuthorizationDetails> | undefined): boolean {
1195
- return proto3.util.equals(AuthorizationDetails, a, b);
1196
- }
1197
- }
1198
-
1199
- /**
1200
- * OAuth 2.0 access and refresh tokens with scopes
1201
- *
1202
- * @generated from message scalekit.v1.connected_accounts.OauthToken
1203
- */
1204
- export class OauthToken extends Message<OauthToken> {
1205
- /**
1206
- * @generated from field: string access_token = 1;
1207
- */
1208
- accessToken = "";
1209
-
1210
- /**
1211
- * @generated from field: string refresh_token = 2;
1212
- */
1213
- refreshToken = "";
1214
-
1215
- /**
1216
- * @generated from field: repeated string scopes = 3;
1217
- */
1218
- scopes: string[] = [];
1219
-
1220
- /**
1221
- * @generated from field: string domain = 4;
1222
- */
1223
- domain = "";
1224
-
1225
- constructor(data?: PartialMessage<OauthToken>) {
1226
- super();
1227
- proto3.util.initPartial(data, this);
1228
- }
1229
-
1230
- static readonly runtime: typeof proto3 = proto3;
1231
- static readonly typeName = "scalekit.v1.connected_accounts.OauthToken";
1232
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1233
- { no: 1, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1234
- { no: 2, name: "refresh_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1235
- { no: 3, name: "scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1236
- { no: 4, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1237
- ]);
1238
-
1239
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OauthToken {
1240
- return new OauthToken().fromBinary(bytes, options);
1241
- }
1242
-
1243
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OauthToken {
1244
- return new OauthToken().fromJson(jsonValue, options);
1245
- }
1246
-
1247
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OauthToken {
1248
- return new OauthToken().fromJsonString(jsonString, options);
1249
- }
1250
-
1251
- static equals(a: OauthToken | PlainMessage<OauthToken> | undefined, b: OauthToken | PlainMessage<OauthToken> | undefined): boolean {
1252
- return proto3.util.equals(OauthToken, a, b);
1253
- }
1254
- }
1255
-
1256
- /**
1257
- * Static authentication credentials for API keys, bearer tokens, or basic auth
1258
- *
1259
- * @generated from message scalekit.v1.connected_accounts.StaticAuth
1260
- */
1261
- export class StaticAuth extends Message<StaticAuth> {
1262
- /**
1263
- * @generated from field: google.protobuf.Struct details = 1;
1264
- */
1265
- details?: Struct;
1266
-
1267
- constructor(data?: PartialMessage<StaticAuth>) {
1268
- super();
1269
- proto3.util.initPartial(data, this);
1270
- }
1271
-
1272
- static readonly runtime: typeof proto3 = proto3;
1273
- static readonly typeName = "scalekit.v1.connected_accounts.StaticAuth";
1274
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
1275
- { no: 1, name: "details", kind: "message", T: Struct },
1276
- ]);
1277
-
1278
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StaticAuth {
1279
- return new StaticAuth().fromBinary(bytes, options);
1280
- }
1281
-
1282
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StaticAuth {
1283
- return new StaticAuth().fromJson(jsonValue, options);
1284
- }
1285
-
1286
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StaticAuth {
1287
- return new StaticAuth().fromJsonString(jsonString, options);
1288
- }
1289
-
1290
- static equals(a: StaticAuth | PlainMessage<StaticAuth> | undefined, b: StaticAuth | PlainMessage<StaticAuth> | undefined): boolean {
1291
- return proto3.util.equals(StaticAuth, a, b);
1292
- }
1293
- }
1294
-