@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,847 +0,0 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
- // @generated from file scalekit/v1/tools/tools.proto (package scalekit.v1.tools, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
-
6
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
- import { BoolValue, Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf";
8
-
9
- /**
10
- * @generated from message scalekit.v1.tools.CreateToolRequest
11
- */
12
- export class CreateToolRequest extends Message<CreateToolRequest> {
13
- /**
14
- * @generated from field: scalekit.v1.tools.Tool tool = 1;
15
- */
16
- tool?: Tool;
17
-
18
- constructor(data?: PartialMessage<CreateToolRequest>) {
19
- super();
20
- proto3.util.initPartial(data, this);
21
- }
22
-
23
- static readonly runtime: typeof proto3 = proto3;
24
- static readonly typeName = "scalekit.v1.tools.CreateToolRequest";
25
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
26
- { no: 1, name: "tool", kind: "message", T: Tool },
27
- ]);
28
-
29
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateToolRequest {
30
- return new CreateToolRequest().fromBinary(bytes, options);
31
- }
32
-
33
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateToolRequest {
34
- return new CreateToolRequest().fromJson(jsonValue, options);
35
- }
36
-
37
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateToolRequest {
38
- return new CreateToolRequest().fromJsonString(jsonString, options);
39
- }
40
-
41
- static equals(a: CreateToolRequest | PlainMessage<CreateToolRequest> | undefined, b: CreateToolRequest | PlainMessage<CreateToolRequest> | undefined): boolean {
42
- return proto3.util.equals(CreateToolRequest, a, b);
43
- }
44
- }
45
-
46
- /**
47
- * @generated from message scalekit.v1.tools.CreateToolResponse
48
- */
49
- export class CreateToolResponse extends Message<CreateToolResponse> {
50
- /**
51
- * @generated from field: scalekit.v1.tools.Tool tool = 1;
52
- */
53
- tool?: Tool;
54
-
55
- constructor(data?: PartialMessage<CreateToolResponse>) {
56
- super();
57
- proto3.util.initPartial(data, this);
58
- }
59
-
60
- static readonly runtime: typeof proto3 = proto3;
61
- static readonly typeName = "scalekit.v1.tools.CreateToolResponse";
62
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
63
- { no: 1, name: "tool", kind: "message", T: Tool },
64
- ]);
65
-
66
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateToolResponse {
67
- return new CreateToolResponse().fromBinary(bytes, options);
68
- }
69
-
70
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateToolResponse {
71
- return new CreateToolResponse().fromJson(jsonValue, options);
72
- }
73
-
74
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateToolResponse {
75
- return new CreateToolResponse().fromJsonString(jsonString, options);
76
- }
77
-
78
- static equals(a: CreateToolResponse | PlainMessage<CreateToolResponse> | undefined, b: CreateToolResponse | PlainMessage<CreateToolResponse> | undefined): boolean {
79
- return proto3.util.equals(CreateToolResponse, a, b);
80
- }
81
- }
82
-
83
- /**
84
- * @generated from message scalekit.v1.tools.Tool
85
- */
86
- export class Tool extends Message<Tool> {
87
- /**
88
- * @generated from field: string id = 1;
89
- */
90
- id = "";
91
-
92
- /**
93
- * @generated from field: string provider = 2;
94
- */
95
- provider = "";
96
-
97
- /**
98
- * @generated from field: google.protobuf.Struct definition = 3;
99
- */
100
- definition?: Struct;
101
-
102
- /**
103
- * @generated from field: google.protobuf.Struct metadata = 4;
104
- */
105
- metadata?: Struct;
106
-
107
- /**
108
- * @generated from field: repeated string tags = 5;
109
- */
110
- tags: string[] = [];
111
-
112
- /**
113
- * @generated from field: google.protobuf.BoolValue is_default = 6;
114
- */
115
- isDefault?: boolean;
116
-
117
- /**
118
- * @generated from field: google.protobuf.Timestamp updated_at = 7;
119
- */
120
- updatedAt?: Timestamp;
121
-
122
- constructor(data?: PartialMessage<Tool>) {
123
- super();
124
- proto3.util.initPartial(data, this);
125
- }
126
-
127
- static readonly runtime: typeof proto3 = proto3;
128
- static readonly typeName = "scalekit.v1.tools.Tool";
129
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
130
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
131
- { no: 2, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
132
- { no: 3, name: "definition", kind: "message", T: Struct },
133
- { no: 4, name: "metadata", kind: "message", T: Struct },
134
- { no: 5, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
135
- { no: 6, name: "is_default", kind: "message", T: BoolValue },
136
- { no: 7, name: "updated_at", kind: "message", T: Timestamp },
137
- ]);
138
-
139
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Tool {
140
- return new Tool().fromBinary(bytes, options);
141
- }
142
-
143
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Tool {
144
- return new Tool().fromJson(jsonValue, options);
145
- }
146
-
147
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Tool {
148
- return new Tool().fromJsonString(jsonString, options);
149
- }
150
-
151
- static equals(a: Tool | PlainMessage<Tool> | undefined, b: Tool | PlainMessage<Tool> | undefined): boolean {
152
- return proto3.util.equals(Tool, a, b);
153
- }
154
- }
155
-
156
- /**
157
- * @generated from message scalekit.v1.tools.ScopedTool
158
- */
159
- export class ScopedTool extends Message<ScopedTool> {
160
- /**
161
- * @generated from field: scalekit.v1.tools.Tool tool = 1;
162
- */
163
- tool?: Tool;
164
-
165
- /**
166
- * @generated from field: string identifier = 2;
167
- */
168
- identifier = "";
169
-
170
- /**
171
- * @generated from field: string connected_account_id = 3;
172
- */
173
- connectedAccountId = "";
174
-
175
- constructor(data?: PartialMessage<ScopedTool>) {
176
- super();
177
- proto3.util.initPartial(data, this);
178
- }
179
-
180
- static readonly runtime: typeof proto3 = proto3;
181
- static readonly typeName = "scalekit.v1.tools.ScopedTool";
182
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
183
- { no: 1, name: "tool", kind: "message", T: Tool },
184
- { no: 2, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
185
- { no: 3, name: "connected_account_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
186
- ]);
187
-
188
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScopedTool {
189
- return new ScopedTool().fromBinary(bytes, options);
190
- }
191
-
192
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScopedTool {
193
- return new ScopedTool().fromJson(jsonValue, options);
194
- }
195
-
196
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScopedTool {
197
- return new ScopedTool().fromJsonString(jsonString, options);
198
- }
199
-
200
- static equals(a: ScopedTool | PlainMessage<ScopedTool> | undefined, b: ScopedTool | PlainMessage<ScopedTool> | undefined): boolean {
201
- return proto3.util.equals(ScopedTool, a, b);
202
- }
203
- }
204
-
205
- /**
206
- * @generated from message scalekit.v1.tools.ListToolsRequest
207
- */
208
- export class ListToolsRequest extends Message<ListToolsRequest> {
209
- /**
210
- * @generated from field: scalekit.v1.tools.Filter filter = 1;
211
- */
212
- filter?: Filter;
213
-
214
- /**
215
- * @generated from field: uint32 page_size = 2;
216
- */
217
- pageSize = 0;
218
-
219
- /**
220
- * @generated from field: string page_token = 3;
221
- */
222
- pageToken = "";
223
-
224
- constructor(data?: PartialMessage<ListToolsRequest>) {
225
- super();
226
- proto3.util.initPartial(data, this);
227
- }
228
-
229
- static readonly runtime: typeof proto3 = proto3;
230
- static readonly typeName = "scalekit.v1.tools.ListToolsRequest";
231
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
232
- { no: 1, name: "filter", kind: "message", T: Filter },
233
- { no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
234
- { no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
235
- ]);
236
-
237
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListToolsRequest {
238
- return new ListToolsRequest().fromBinary(bytes, options);
239
- }
240
-
241
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListToolsRequest {
242
- return new ListToolsRequest().fromJson(jsonValue, options);
243
- }
244
-
245
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListToolsRequest {
246
- return new ListToolsRequest().fromJsonString(jsonString, options);
247
- }
248
-
249
- static equals(a: ListToolsRequest | PlainMessage<ListToolsRequest> | undefined, b: ListToolsRequest | PlainMessage<ListToolsRequest> | undefined): boolean {
250
- return proto3.util.equals(ListToolsRequest, a, b);
251
- }
252
- }
253
-
254
- /**
255
- * @generated from message scalekit.v1.tools.Filter
256
- */
257
- export class Filter extends Message<Filter> {
258
- /**
259
- * @generated from field: google.protobuf.BoolValue summary = 1;
260
- */
261
- summary?: boolean;
262
-
263
- /**
264
- * @generated from field: string provider = 2;
265
- */
266
- provider = "";
267
-
268
- /**
269
- * @generated from field: string identifier = 3;
270
- */
271
- identifier = "";
272
-
273
- /**
274
- * @generated from field: repeated string tool_name = 4;
275
- */
276
- toolName: string[] = [];
277
-
278
- /**
279
- * @generated from field: optional string query = 5;
280
- */
281
- query?: string;
282
-
283
- constructor(data?: PartialMessage<Filter>) {
284
- super();
285
- proto3.util.initPartial(data, this);
286
- }
287
-
288
- static readonly runtime: typeof proto3 = proto3;
289
- static readonly typeName = "scalekit.v1.tools.Filter";
290
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
291
- { no: 1, name: "summary", kind: "message", T: BoolValue },
292
- { no: 2, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
293
- { no: 3, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
294
- { no: 4, name: "tool_name", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
295
- { no: 5, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
296
- ]);
297
-
298
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Filter {
299
- return new Filter().fromBinary(bytes, options);
300
- }
301
-
302
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Filter {
303
- return new Filter().fromJson(jsonValue, options);
304
- }
305
-
306
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Filter {
307
- return new Filter().fromJsonString(jsonString, options);
308
- }
309
-
310
- static equals(a: Filter | PlainMessage<Filter> | undefined, b: Filter | PlainMessage<Filter> | undefined): boolean {
311
- return proto3.util.equals(Filter, a, b);
312
- }
313
- }
314
-
315
- /**
316
- * @generated from message scalekit.v1.tools.ListToolsResponse
317
- */
318
- export class ListToolsResponse extends Message<ListToolsResponse> {
319
- /**
320
- * @generated from field: string next_page_token = 1;
321
- */
322
- nextPageToken = "";
323
-
324
- /**
325
- * @generated from field: uint32 total_size = 2;
326
- */
327
- totalSize = 0;
328
-
329
- /**
330
- * @generated from field: string prev_page_token = 3;
331
- */
332
- prevPageToken = "";
333
-
334
- /**
335
- * @generated from field: repeated string tool_names = 4;
336
- */
337
- toolNames: string[] = [];
338
-
339
- /**
340
- * @generated from field: repeated scalekit.v1.tools.Tool tools = 5;
341
- */
342
- tools: Tool[] = [];
343
-
344
- constructor(data?: PartialMessage<ListToolsResponse>) {
345
- super();
346
- proto3.util.initPartial(data, this);
347
- }
348
-
349
- static readonly runtime: typeof proto3 = proto3;
350
- static readonly typeName = "scalekit.v1.tools.ListToolsResponse";
351
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
352
- { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
353
- { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
354
- { no: 3, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
355
- { no: 4, name: "tool_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
356
- { no: 5, name: "tools", kind: "message", T: Tool, repeated: true },
357
- ]);
358
-
359
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListToolsResponse {
360
- return new ListToolsResponse().fromBinary(bytes, options);
361
- }
362
-
363
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListToolsResponse {
364
- return new ListToolsResponse().fromJson(jsonValue, options);
365
- }
366
-
367
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListToolsResponse {
368
- return new ListToolsResponse().fromJsonString(jsonString, options);
369
- }
370
-
371
- static equals(a: ListToolsResponse | PlainMessage<ListToolsResponse> | undefined, b: ListToolsResponse | PlainMessage<ListToolsResponse> | undefined): boolean {
372
- return proto3.util.equals(ListToolsResponse, a, b);
373
- }
374
- }
375
-
376
- /**
377
- * @generated from message scalekit.v1.tools.ExecuteToolRequest
378
- */
379
- export class ExecuteToolRequest extends Message<ExecuteToolRequest> {
380
- /**
381
- * @generated from field: string tool_name = 1;
382
- */
383
- toolName = "";
384
-
385
- /**
386
- * @generated from field: optional string identifier = 2;
387
- */
388
- identifier?: string;
389
-
390
- /**
391
- * @generated from field: google.protobuf.Struct params = 3;
392
- */
393
- params?: Struct;
394
-
395
- /**
396
- * @generated from field: optional string connected_account_id = 4;
397
- */
398
- connectedAccountId?: string;
399
-
400
- /**
401
- * @generated from field: optional string connector = 5;
402
- */
403
- connector?: string;
404
-
405
- /**
406
- * @generated from field: optional string organization_id = 6;
407
- */
408
- organizationId?: string;
409
-
410
- /**
411
- * @generated from field: optional string user_id = 7;
412
- */
413
- userId?: string;
414
-
415
- constructor(data?: PartialMessage<ExecuteToolRequest>) {
416
- super();
417
- proto3.util.initPartial(data, this);
418
- }
419
-
420
- static readonly runtime: typeof proto3 = proto3;
421
- static readonly typeName = "scalekit.v1.tools.ExecuteToolRequest";
422
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
423
- { no: 1, name: "tool_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
424
- { no: 2, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
425
- { no: 3, name: "params", kind: "message", T: Struct },
426
- { no: 4, name: "connected_account_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
427
- { no: 5, name: "connector", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
428
- { no: 6, name: "organization_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
429
- { no: 7, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
430
- ]);
431
-
432
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExecuteToolRequest {
433
- return new ExecuteToolRequest().fromBinary(bytes, options);
434
- }
435
-
436
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExecuteToolRequest {
437
- return new ExecuteToolRequest().fromJson(jsonValue, options);
438
- }
439
-
440
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExecuteToolRequest {
441
- return new ExecuteToolRequest().fromJsonString(jsonString, options);
442
- }
443
-
444
- static equals(a: ExecuteToolRequest | PlainMessage<ExecuteToolRequest> | undefined, b: ExecuteToolRequest | PlainMessage<ExecuteToolRequest> | undefined): boolean {
445
- return proto3.util.equals(ExecuteToolRequest, a, b);
446
- }
447
- }
448
-
449
- /**
450
- * @generated from message scalekit.v1.tools.ExecuteToolResponse
451
- */
452
- export class ExecuteToolResponse extends Message<ExecuteToolResponse> {
453
- /**
454
- * @generated from field: google.protobuf.Struct data = 1;
455
- */
456
- data?: Struct;
457
-
458
- /**
459
- * @generated from field: string execution_id = 2;
460
- */
461
- executionId = "";
462
-
463
- constructor(data?: PartialMessage<ExecuteToolResponse>) {
464
- super();
465
- proto3.util.initPartial(data, this);
466
- }
467
-
468
- static readonly runtime: typeof proto3 = proto3;
469
- static readonly typeName = "scalekit.v1.tools.ExecuteToolResponse";
470
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
471
- { no: 1, name: "data", kind: "message", T: Struct },
472
- { no: 2, name: "execution_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
473
- ]);
474
-
475
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExecuteToolResponse {
476
- return new ExecuteToolResponse().fromBinary(bytes, options);
477
- }
478
-
479
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExecuteToolResponse {
480
- return new ExecuteToolResponse().fromJson(jsonValue, options);
481
- }
482
-
483
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExecuteToolResponse {
484
- return new ExecuteToolResponse().fromJsonString(jsonString, options);
485
- }
486
-
487
- static equals(a: ExecuteToolResponse | PlainMessage<ExecuteToolResponse> | undefined, b: ExecuteToolResponse | PlainMessage<ExecuteToolResponse> | undefined): boolean {
488
- return proto3.util.equals(ExecuteToolResponse, a, b);
489
- }
490
- }
491
-
492
- /**
493
- * @generated from message scalekit.v1.tools.SetToolDefaultRequest
494
- */
495
- export class SetToolDefaultRequest extends Message<SetToolDefaultRequest> {
496
- /**
497
- * @generated from field: string name = 1;
498
- */
499
- name = "";
500
-
501
- /**
502
- * @generated from field: string schema_version = 2;
503
- */
504
- schemaVersion = "";
505
-
506
- /**
507
- * @generated from field: string tool_version = 3;
508
- */
509
- toolVersion = "";
510
-
511
- constructor(data?: PartialMessage<SetToolDefaultRequest>) {
512
- super();
513
- proto3.util.initPartial(data, this);
514
- }
515
-
516
- static readonly runtime: typeof proto3 = proto3;
517
- static readonly typeName = "scalekit.v1.tools.SetToolDefaultRequest";
518
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
519
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
520
- { no: 2, name: "schema_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
521
- { no: 3, name: "tool_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
522
- ]);
523
-
524
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetToolDefaultRequest {
525
- return new SetToolDefaultRequest().fromBinary(bytes, options);
526
- }
527
-
528
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetToolDefaultRequest {
529
- return new SetToolDefaultRequest().fromJson(jsonValue, options);
530
- }
531
-
532
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetToolDefaultRequest {
533
- return new SetToolDefaultRequest().fromJsonString(jsonString, options);
534
- }
535
-
536
- static equals(a: SetToolDefaultRequest | PlainMessage<SetToolDefaultRequest> | undefined, b: SetToolDefaultRequest | PlainMessage<SetToolDefaultRequest> | undefined): boolean {
537
- return proto3.util.equals(SetToolDefaultRequest, a, b);
538
- }
539
- }
540
-
541
- /**
542
- * @generated from message scalekit.v1.tools.SetToolDefaultResponse
543
- */
544
- export class SetToolDefaultResponse extends Message<SetToolDefaultResponse> {
545
- /**
546
- * @generated from field: scalekit.v1.tools.Tool tool = 1;
547
- */
548
- tool?: Tool;
549
-
550
- constructor(data?: PartialMessage<SetToolDefaultResponse>) {
551
- super();
552
- proto3.util.initPartial(data, this);
553
- }
554
-
555
- static readonly runtime: typeof proto3 = proto3;
556
- static readonly typeName = "scalekit.v1.tools.SetToolDefaultResponse";
557
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
558
- { no: 1, name: "tool", kind: "message", T: Tool },
559
- ]);
560
-
561
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetToolDefaultResponse {
562
- return new SetToolDefaultResponse().fromBinary(bytes, options);
563
- }
564
-
565
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetToolDefaultResponse {
566
- return new SetToolDefaultResponse().fromJson(jsonValue, options);
567
- }
568
-
569
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetToolDefaultResponse {
570
- return new SetToolDefaultResponse().fromJsonString(jsonString, options);
571
- }
572
-
573
- static equals(a: SetToolDefaultResponse | PlainMessage<SetToolDefaultResponse> | undefined, b: SetToolDefaultResponse | PlainMessage<SetToolDefaultResponse> | undefined): boolean {
574
- return proto3.util.equals(SetToolDefaultResponse, a, b);
575
- }
576
- }
577
-
578
- /**
579
- * @generated from message scalekit.v1.tools.UpdateToolRequest
580
- */
581
- export class UpdateToolRequest extends Message<UpdateToolRequest> {
582
- /**
583
- * @generated from field: scalekit.v1.tools.Tool tool = 1;
584
- */
585
- tool?: Tool;
586
-
587
- constructor(data?: PartialMessage<UpdateToolRequest>) {
588
- super();
589
- proto3.util.initPartial(data, this);
590
- }
591
-
592
- static readonly runtime: typeof proto3 = proto3;
593
- static readonly typeName = "scalekit.v1.tools.UpdateToolRequest";
594
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
595
- { no: 1, name: "tool", kind: "message", T: Tool },
596
- ]);
597
-
598
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateToolRequest {
599
- return new UpdateToolRequest().fromBinary(bytes, options);
600
- }
601
-
602
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateToolRequest {
603
- return new UpdateToolRequest().fromJson(jsonValue, options);
604
- }
605
-
606
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateToolRequest {
607
- return new UpdateToolRequest().fromJsonString(jsonString, options);
608
- }
609
-
610
- static equals(a: UpdateToolRequest | PlainMessage<UpdateToolRequest> | undefined, b: UpdateToolRequest | PlainMessage<UpdateToolRequest> | undefined): boolean {
611
- return proto3.util.equals(UpdateToolRequest, a, b);
612
- }
613
- }
614
-
615
- /**
616
- * @generated from message scalekit.v1.tools.UpdateToolResponse
617
- */
618
- export class UpdateToolResponse extends Message<UpdateToolResponse> {
619
- /**
620
- * @generated from field: scalekit.v1.tools.Tool tool = 1;
621
- */
622
- tool?: Tool;
623
-
624
- constructor(data?: PartialMessage<UpdateToolResponse>) {
625
- super();
626
- proto3.util.initPartial(data, this);
627
- }
628
-
629
- static readonly runtime: typeof proto3 = proto3;
630
- static readonly typeName = "scalekit.v1.tools.UpdateToolResponse";
631
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
632
- { no: 1, name: "tool", kind: "message", T: Tool },
633
- ]);
634
-
635
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateToolResponse {
636
- return new UpdateToolResponse().fromBinary(bytes, options);
637
- }
638
-
639
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateToolResponse {
640
- return new UpdateToolResponse().fromJson(jsonValue, options);
641
- }
642
-
643
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateToolResponse {
644
- return new UpdateToolResponse().fromJsonString(jsonString, options);
645
- }
646
-
647
- static equals(a: UpdateToolResponse | PlainMessage<UpdateToolResponse> | undefined, b: UpdateToolResponse | PlainMessage<UpdateToolResponse> | undefined): boolean {
648
- return proto3.util.equals(UpdateToolResponse, a, b);
649
- }
650
- }
651
-
652
- /**
653
- * @generated from message scalekit.v1.tools.DeleteToolRequest
654
- */
655
- export class DeleteToolRequest extends Message<DeleteToolRequest> {
656
- /**
657
- * @generated from field: string id = 1;
658
- */
659
- id = "";
660
-
661
- constructor(data?: PartialMessage<DeleteToolRequest>) {
662
- super();
663
- proto3.util.initPartial(data, this);
664
- }
665
-
666
- static readonly runtime: typeof proto3 = proto3;
667
- static readonly typeName = "scalekit.v1.tools.DeleteToolRequest";
668
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
669
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
670
- ]);
671
-
672
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteToolRequest {
673
- return new DeleteToolRequest().fromBinary(bytes, options);
674
- }
675
-
676
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteToolRequest {
677
- return new DeleteToolRequest().fromJson(jsonValue, options);
678
- }
679
-
680
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteToolRequest {
681
- return new DeleteToolRequest().fromJsonString(jsonString, options);
682
- }
683
-
684
- static equals(a: DeleteToolRequest | PlainMessage<DeleteToolRequest> | undefined, b: DeleteToolRequest | PlainMessage<DeleteToolRequest> | undefined): boolean {
685
- return proto3.util.equals(DeleteToolRequest, a, b);
686
- }
687
- }
688
-
689
- /**
690
- * @generated from message scalekit.v1.tools.ListScopedToolsRequest
691
- */
692
- export class ListScopedToolsRequest extends Message<ListScopedToolsRequest> {
693
- /**
694
- * @generated from field: string identifier = 1;
695
- */
696
- identifier = "";
697
-
698
- /**
699
- * @generated from field: scalekit.v1.tools.ScopedToolFilter filter = 2;
700
- */
701
- filter?: ScopedToolFilter;
702
-
703
- /**
704
- * @generated from field: uint32 page_size = 3;
705
- */
706
- pageSize = 0;
707
-
708
- /**
709
- * @generated from field: string page_token = 4;
710
- */
711
- pageToken = "";
712
-
713
- constructor(data?: PartialMessage<ListScopedToolsRequest>) {
714
- super();
715
- proto3.util.initPartial(data, this);
716
- }
717
-
718
- static readonly runtime: typeof proto3 = proto3;
719
- static readonly typeName = "scalekit.v1.tools.ListScopedToolsRequest";
720
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
721
- { no: 1, name: "identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
722
- { no: 2, name: "filter", kind: "message", T: ScopedToolFilter },
723
- { no: 3, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
724
- { no: 4, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
725
- ]);
726
-
727
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListScopedToolsRequest {
728
- return new ListScopedToolsRequest().fromBinary(bytes, options);
729
- }
730
-
731
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListScopedToolsRequest {
732
- return new ListScopedToolsRequest().fromJson(jsonValue, options);
733
- }
734
-
735
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListScopedToolsRequest {
736
- return new ListScopedToolsRequest().fromJsonString(jsonString, options);
737
- }
738
-
739
- static equals(a: ListScopedToolsRequest | PlainMessage<ListScopedToolsRequest> | undefined, b: ListScopedToolsRequest | PlainMessage<ListScopedToolsRequest> | undefined): boolean {
740
- return proto3.util.equals(ListScopedToolsRequest, a, b);
741
- }
742
- }
743
-
744
- /**
745
- * @generated from message scalekit.v1.tools.ListScopedToolsResponse
746
- */
747
- export class ListScopedToolsResponse extends Message<ListScopedToolsResponse> {
748
- /**
749
- * @generated from field: string next_page_token = 1;
750
- */
751
- nextPageToken = "";
752
-
753
- /**
754
- * @generated from field: uint32 total_size = 2;
755
- */
756
- totalSize = 0;
757
-
758
- /**
759
- * @generated from field: string prev_page_token = 3;
760
- */
761
- prevPageToken = "";
762
-
763
- /**
764
- * @generated from field: repeated scalekit.v1.tools.ScopedTool tools = 5;
765
- */
766
- tools: ScopedTool[] = [];
767
-
768
- constructor(data?: PartialMessage<ListScopedToolsResponse>) {
769
- super();
770
- proto3.util.initPartial(data, this);
771
- }
772
-
773
- static readonly runtime: typeof proto3 = proto3;
774
- static readonly typeName = "scalekit.v1.tools.ListScopedToolsResponse";
775
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
776
- { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
777
- { no: 2, name: "total_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
778
- { no: 3, name: "prev_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
779
- { no: 5, name: "tools", kind: "message", T: ScopedTool, repeated: true },
780
- ]);
781
-
782
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListScopedToolsResponse {
783
- return new ListScopedToolsResponse().fromBinary(bytes, options);
784
- }
785
-
786
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListScopedToolsResponse {
787
- return new ListScopedToolsResponse().fromJson(jsonValue, options);
788
- }
789
-
790
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListScopedToolsResponse {
791
- return new ListScopedToolsResponse().fromJsonString(jsonString, options);
792
- }
793
-
794
- static equals(a: ListScopedToolsResponse | PlainMessage<ListScopedToolsResponse> | undefined, b: ListScopedToolsResponse | PlainMessage<ListScopedToolsResponse> | undefined): boolean {
795
- return proto3.util.equals(ListScopedToolsResponse, a, b);
796
- }
797
- }
798
-
799
- /**
800
- * @generated from message scalekit.v1.tools.ScopedToolFilter
801
- */
802
- export class ScopedToolFilter extends Message<ScopedToolFilter> {
803
- /**
804
- * @generated from field: repeated string providers = 1;
805
- */
806
- providers: string[] = [];
807
-
808
- /**
809
- * @generated from field: repeated string tool_names = 2;
810
- */
811
- toolNames: string[] = [];
812
-
813
- /**
814
- * @generated from field: repeated string connection_names = 3;
815
- */
816
- connectionNames: string[] = [];
817
-
818
- constructor(data?: PartialMessage<ScopedToolFilter>) {
819
- super();
820
- proto3.util.initPartial(data, this);
821
- }
822
-
823
- static readonly runtime: typeof proto3 = proto3;
824
- static readonly typeName = "scalekit.v1.tools.ScopedToolFilter";
825
- static readonly fields: FieldList = proto3.util.newFieldList(() => [
826
- { no: 1, name: "providers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
827
- { no: 2, name: "tool_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
828
- { no: 3, name: "connection_names", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
829
- ]);
830
-
831
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ScopedToolFilter {
832
- return new ScopedToolFilter().fromBinary(bytes, options);
833
- }
834
-
835
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ScopedToolFilter {
836
- return new ScopedToolFilter().fromJson(jsonValue, options);
837
- }
838
-
839
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ScopedToolFilter {
840
- return new ScopedToolFilter().fromJsonString(jsonString, options);
841
- }
842
-
843
- static equals(a: ScopedToolFilter | PlainMessage<ScopedToolFilter> | undefined, b: ScopedToolFilter | PlainMessage<ScopedToolFilter> | undefined): boolean {
844
- return proto3.util.equals(ScopedToolFilter, a, b);
845
- }
846
- }
847
-