@clawscarf/cli 0.1.0-alpha.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 (197) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/THIRD_PARTY_NOTICES.md +102 -0
  4. package/deploy/execution/browser/LICENSE.playwright +202 -0
  5. package/deploy/execution/browser/seccomp.json +640 -0
  6. package/deploy/execution/browser-node/configuration.js +85 -0
  7. package/deploy/execution/browser-node/operator.js +167 -0
  8. package/deploy/execution/network/node-ingress.cfg +35 -0
  9. package/deploy/models/catalog.json +275 -0
  10. package/deploy/openshell/policy.yaml +24 -0
  11. package/generated/http/LICENSE.md +21 -0
  12. package/generated/http/client/client.gen.d.ts +2 -0
  13. package/generated/http/client/client.gen.js +216 -0
  14. package/generated/http/client/index.d.ts +10 -0
  15. package/generated/http/client/index.js +6 -0
  16. package/generated/http/client/types.gen.d.ts +120 -0
  17. package/generated/http/client/types.gen.js +2 -0
  18. package/generated/http/client/utils.gen.d.ts +37 -0
  19. package/generated/http/client/utils.gen.js +228 -0
  20. package/generated/http/core/auth.gen.d.ts +25 -0
  21. package/generated/http/core/auth.gen.js +14 -0
  22. package/generated/http/core/bodySerializer.gen.d.ts +25 -0
  23. package/generated/http/core/bodySerializer.gen.js +57 -0
  24. package/generated/http/core/params.gen.d.ts +43 -0
  25. package/generated/http/core/params.gen.js +109 -0
  26. package/generated/http/core/pathSerializer.gen.d.ts +33 -0
  27. package/generated/http/core/pathSerializer.gen.js +106 -0
  28. package/generated/http/core/queryKeySerializer.gen.d.ts +18 -0
  29. package/generated/http/core/queryKeySerializer.gen.js +92 -0
  30. package/generated/http/core/serverSentEvents.gen.d.ts +71 -0
  31. package/generated/http/core/serverSentEvents.gen.js +132 -0
  32. package/generated/http/core/types.gen.d.ts +83 -0
  33. package/generated/http/core/types.gen.js +2 -0
  34. package/generated/http/core/utils.gen.d.ts +19 -0
  35. package/generated/http/core/utils.gen.js +87 -0
  36. package/package.json +37 -0
  37. package/packs/README.md +130 -0
  38. package/packs/research-team/pack.json +20 -0
  39. package/packs/research-team/researcher/CLAW.md +19 -0
  40. package/packs/research-team/researcher/package.json +8 -0
  41. package/packs/research-team/researcher/profiles/openclaw.yml +6 -0
  42. package/packs/research-team/reviewer/CLAW.md +19 -0
  43. package/packs/research-team/reviewer/package.json +8 -0
  44. package/packs/research-team/reviewer/profiles/openclaw.yml +6 -0
  45. package/pnpm-lock.yaml +7158 -0
  46. package/recipes/README.md +37 -0
  47. package/recipes/team-server/recipe.json +28 -0
  48. package/release/README.md +137 -0
  49. package/release/components.json +29 -0
  50. package/release/operator.md +63 -0
  51. package/runtime/configuration.js +135 -0
  52. package/runtime/connections-configuration.js +70 -0
  53. package/runtime/model-contract.js +92 -0
  54. package/runtime/releases/0.1.0-alpha.1.json +37 -0
  55. package/scripts/clawscarf.js +92 -0
  56. package/scripts/cloud/login.js +134 -0
  57. package/scripts/cloud/registration.js +232 -0
  58. package/scripts/cloud/url.js +9 -0
  59. package/scripts/connections.js +193 -0
  60. package/scripts/controller.js +143 -0
  61. package/scripts/deployment/browser-node-compose.js +81 -0
  62. package/scripts/deployment/browser-node-helper.js +9 -0
  63. package/scripts/deployment/browser-node-pairing.js +165 -0
  64. package/scripts/deployment/browser-node.js +154 -0
  65. package/scripts/deployment/browser.js +143 -0
  66. package/scripts/deployment/certificates.js +76 -0
  67. package/scripts/deployment/compose.js +191 -0
  68. package/scripts/deployment/configuration.js +275 -0
  69. package/scripts/deployment/connection-policy.js +80 -0
  70. package/scripts/deployment/connection-settings.js +60 -0
  71. package/scripts/deployment/connections-runtime.js +31 -0
  72. package/scripts/deployment/connections.js +213 -0
  73. package/scripts/deployment/controller-compose.js +59 -0
  74. package/scripts/deployment/database.js +199 -0
  75. package/scripts/deployment/entrypoint.js +7 -0
  76. package/scripts/deployment/images.js +17 -0
  77. package/scripts/deployment/initial-services.js +53 -0
  78. package/scripts/deployment/launch.js +177 -0
  79. package/scripts/deployment/logs.js +15 -0
  80. package/scripts/deployment/model-gateway-compose.js +74 -0
  81. package/scripts/deployment/model-gateway.js +125 -0
  82. package/scripts/deployment/models.js +82 -0
  83. package/scripts/deployment/networks.js +354 -0
  84. package/scripts/deployment/policy.js +56 -0
  85. package/scripts/deployment/preflight.js +124 -0
  86. package/scripts/deployment/prepare.js +205 -0
  87. package/scripts/deployment/process.js +70 -0
  88. package/scripts/deployment/relay.js +58 -0
  89. package/scripts/deployment/runtime-binding.js +100 -0
  90. package/scripts/deployment/runtime.js +232 -0
  91. package/scripts/deployment/state.js +154 -0
  92. package/scripts/deployment/team.js +76 -0
  93. package/scripts/deployment/upgrade-rpc.py +148 -0
  94. package/scripts/deployment/upgrade-state.js +47 -0
  95. package/scripts/deployment/upgrade.js +298 -0
  96. package/scripts/deployment/volumes.js +24 -0
  97. package/scripts/errors.js +9 -0
  98. package/scripts/installation/administrator.js +23 -0
  99. package/scripts/installation/command.js +176 -0
  100. package/scripts/installation/configuration.js +104 -0
  101. package/scripts/installation/configure.js +122 -0
  102. package/scripts/installation/delete.js +111 -0
  103. package/scripts/installation/doctor.js +8 -0
  104. package/scripts/installation/errors.js +8 -0
  105. package/scripts/installation/files.js +51 -0
  106. package/scripts/installation/installer/cloud.js +22 -0
  107. package/scripts/installation/installer/collect.js +245 -0
  108. package/scripts/installation/installer/inputs.js +59 -0
  109. package/scripts/installation/installer/menu.js +49 -0
  110. package/scripts/installation/installer/prompts.js +139 -0
  111. package/scripts/installation/installer/run.js +251 -0
  112. package/scripts/installation/installer/secrets.js +16 -0
  113. package/scripts/installation/installer/sections/access.js +69 -0
  114. package/scripts/installation/installer/sections/certificates.js +18 -0
  115. package/scripts/installation/installer/sections/connections.js +4 -0
  116. package/scripts/installation/installer/sections/external-models.js +35 -0
  117. package/scripts/installation/installer/sections/models.js +119 -0
  118. package/scripts/installation/installer/sections/packs.js +82 -0
  119. package/scripts/installation/installer/sections/resources.js +10 -0
  120. package/scripts/installation/installer/settings.js +192 -0
  121. package/scripts/installation/installer/summary.js +44 -0
  122. package/scripts/installation/lifecycle.js +127 -0
  123. package/scripts/installation/location.js +3 -0
  124. package/scripts/installation/models.js +42 -0
  125. package/scripts/installation/options.js +360 -0
  126. package/scripts/installation/packs.js +150 -0
  127. package/scripts/installation/plan.js +121 -0
  128. package/scripts/installation/prerequisites.js +170 -0
  129. package/scripts/installation/recipes/catalog.js +55 -0
  130. package/scripts/installation/recipes/definition.js +32 -0
  131. package/scripts/installation/reconfigure.js +255 -0
  132. package/scripts/installation/requirements.js +23 -0
  133. package/scripts/installation/resolve.js +217 -0
  134. package/scripts/installation/runtime.js +87 -0
  135. package/scripts/installation/save.js +95 -0
  136. package/scripts/installation/setup.js +91 -0
  137. package/scripts/models/catalog.js +9 -0
  138. package/scripts/models/configuration.js +184 -0
  139. package/scripts/models/credentials.js +132 -0
  140. package/scripts/models/runtime.js +87 -0
  141. package/scripts/output.js +34 -0
  142. package/scripts/packs/connections.js +95 -0
  143. package/scripts/packs/lifecycle.js +125 -0
  144. package/scripts/packs/model.js +66 -0
  145. package/scripts/packs/native.js +69 -0
  146. package/scripts/packs/openshell.js +148 -0
  147. package/scripts/packs/policy.js +189 -0
  148. package/scripts/packs/requirements.in +1 -0
  149. package/scripts/packs/requirements.js +11 -0
  150. package/scripts/packs/requirements.txt +116 -0
  151. package/scripts/packs/source.js +90 -0
  152. package/scripts/packs/transport.py +68 -0
  153. package/scripts/people.js +52 -0
  154. package/scripts/release/create.js +62 -0
  155. package/scripts/release/definition.js +51 -0
  156. package/scripts/session.js +27 -0
  157. package/services/access/generated/client.gen.d.ts +12 -0
  158. package/services/access/generated/client.gen.js +3 -0
  159. package/services/access/generated/fastify.gen.d.ts +49 -0
  160. package/services/access/generated/fastify.gen.js +2 -0
  161. package/services/access/generated/index.d.ts +2 -0
  162. package/services/access/generated/index.js +2 -0
  163. package/services/access/generated/sdk.gen.d.ts +28 -0
  164. package/services/access/generated/sdk.gen.js +107 -0
  165. package/services/access/generated/types.gen.d.ts +349 -0
  166. package/services/access/generated/types.gen.js +2 -0
  167. package/services/access/migrations/001_access.sql +39 -0
  168. package/services/access/migrations/002_administrator_setup.sql +16 -0
  169. package/services/access/migrations/003_local_login_completion.sql +5 -0
  170. package/services/access/migrations/004_invitations.sql +21 -0
  171. package/services/access/repo/postgres.js +341 -0
  172. package/services/access/repo/session-logout.js +28 -0
  173. package/services/access/types/credential.js +2 -0
  174. package/services/access/types/errors.js +7 -0
  175. package/services/access/types/ingress.js +1 -0
  176. package/services/access/types/model.js +1 -0
  177. package/services/access/types/native-errors.js +7 -0
  178. package/services/access/types/native.js +1 -0
  179. package/services/cloud/generated/client.gen.d.ts +12 -0
  180. package/services/cloud/generated/client.gen.js +3 -0
  181. package/services/cloud/generated/index.d.ts +2 -0
  182. package/services/cloud/generated/index.js +2 -0
  183. package/services/cloud/generated/sdk.gen.d.ts +145 -0
  184. package/services/cloud/generated/sdk.gen.js +488 -0
  185. package/services/cloud/generated/types.gen.d.ts +2034 -0
  186. package/services/cloud/generated/types.gen.js +2 -0
  187. package/services/connections/cloud/generated/client.gen.d.ts +12 -0
  188. package/services/connections/cloud/generated/client.gen.js +3 -0
  189. package/services/connections/cloud/generated/fastify.gen.d.ts +68 -0
  190. package/services/connections/cloud/generated/fastify.gen.js +2 -0
  191. package/services/connections/cloud/generated/index.d.ts +2 -0
  192. package/services/connections/cloud/generated/index.js +2 -0
  193. package/services/connections/cloud/generated/sdk.gen.d.ts +95 -0
  194. package/services/connections/cloud/generated/sdk.gen.js +210 -0
  195. package/services/connections/cloud/generated/types.gen.d.ts +1044 -0
  196. package/services/connections/cloud/generated/types.gen.js +2 -0
  197. package/services/connections/migrations/001_connections.sql +220 -0
@@ -0,0 +1,1044 @@
1
+ export type ClientOptions = {
2
+ baseUrl: `${string}://services` | (string & {});
3
+ };
4
+ export type ConnectorList = {
5
+ items: Array<Connector>;
6
+ nextCursor: string | null;
7
+ };
8
+ export type Connector = {
9
+ id: string;
10
+ name: string;
11
+ description: string;
12
+ category: string;
13
+ iconUrl: string;
14
+ auth: {
15
+ kind: 'managed';
16
+ } | {
17
+ kind: 'custom';
18
+ scheme: string;
19
+ };
20
+ catalogVersion: string;
21
+ actionCount: number;
22
+ };
23
+ export type Problem = {
24
+ type: string;
25
+ title: string;
26
+ status: number;
27
+ code: string;
28
+ requestId: string;
29
+ quota?: {
30
+ scope: 'account' | 'installation' | 'backend';
31
+ unit: 'executions' | 'requests' | 'installations';
32
+ limit: number;
33
+ resetsAt: string | null;
34
+ };
35
+ detail?: string;
36
+ retry?: RetryGuidance;
37
+ };
38
+ export type ConnectionList = {
39
+ items: Array<Connection>;
40
+ nextCursor: string | null;
41
+ };
42
+ /**
43
+ * Current authorized connection state for this server.
44
+ */
45
+ export type Connection = {
46
+ id: Id;
47
+ connectorId: string;
48
+ name: string;
49
+ grant: ConnectorAgentGrant;
50
+ state: 'not_connected' | 'connected' | 'needs_attention' | 'disconnected';
51
+ generation: number;
52
+ revision: number;
53
+ setup: ConnectionSetup | null;
54
+ cleanup: 'none' | 'pending' | 'complete' | 'needs_attention';
55
+ failure: ConnectionFailure | null;
56
+ createdAt: string;
57
+ updatedAt: string;
58
+ serverId: Id;
59
+ };
60
+ /**
61
+ * Opaque identifier; clients must not infer identity or provider details from it.
62
+ */
63
+ export type Id = string;
64
+ /**
65
+ * All includes future native agents. Selected uses exact IDs; missing IDs never widen the grant.
66
+ */
67
+ export type ConnectorAgentGrant = {
68
+ mode: 'all';
69
+ } | {
70
+ mode: 'selected';
71
+ agentIds: Array<string>;
72
+ };
73
+ export type ConnectionSetup = {
74
+ id: Id;
75
+ connectionId: Id;
76
+ kind: 'initial' | 'reconnect';
77
+ state: 'creating' | 'pending' | 'verifying' | 'succeeded' | 'expired' | 'cancelled' | 'failed' | 'outcome_unknown';
78
+ createdAt: string;
79
+ expiresAt: string | null;
80
+ completedAt: string | null;
81
+ failure: ConnectionFailure | null;
82
+ };
83
+ export type ConnectionFailure = {
84
+ code: 'provider_unavailable' | 'provider_rejected' | 'provider_not_configured' | 'setup_expired' | 'setup_cancelled' | 'setup_outcome_unknown' | 'account_unavailable' | 'account_mismatch' | 'credential_revoked' | 'catalog_changed' | 'outcome_unknown' | 'result_unavailable';
85
+ detail: string;
86
+ retry: RetryGuidance;
87
+ };
88
+ /**
89
+ * Retry advice does not authorize replaying a mutation. Preserve idempotency keys and reconcile uncertain outcomes.
90
+ */
91
+ export type RetryGuidance = {
92
+ /**
93
+ * never means no automatic replay; after_change requires a corrected
94
+ * request or changed prerequisite; reconcile means inspect the original
95
+ * command outcome before deciding whether another attempt is safe.
96
+ *
97
+ */
98
+ strategy: 'never' | 'after_delay' | 'after_change' | 'reconcile';
99
+ /**
100
+ * Only when a retry time is known; consistent with Retry-After when provided.
101
+ */
102
+ afterSeconds?: number;
103
+ };
104
+ export type CreateConnection = {
105
+ connectorId: string;
106
+ name: string;
107
+ grant: ConnectorAgentGrant;
108
+ };
109
+ export type UpdateConnection = {
110
+ name: string;
111
+ grant: ConnectorAgentGrant;
112
+ };
113
+ export type StartConnectionSetup = {
114
+ kind: 'initial' | 'reconnect';
115
+ };
116
+ /**
117
+ * Only the initiating user with current native-administrator admission may obtain the unexpired setup URL. URLs contain provider capabilities and must not be logged or included in ordinary list responses.
118
+ */
119
+ export type ConnectionSetupContinuation = {
120
+ setup: ConnectionSetup;
121
+ url: string | null;
122
+ };
123
+ /**
124
+ * Current authorized connection state for this server.
125
+ */
126
+ export type ConnectionReturnDestination = {
127
+ connectionId: string;
128
+ serverId: string;
129
+ };
130
+ export type ConnectionProblem = {
131
+ type: 'about:blank';
132
+ title: string;
133
+ status: number;
134
+ /**
135
+ * Stable machine-readable code; clients tolerate additional codes.
136
+ */
137
+ code: string;
138
+ /**
139
+ * Safe explanation without raw provider diagnostics or secrets.
140
+ */
141
+ detail: string;
142
+ /**
143
+ * Request correlation ID for operator diagnostics.
144
+ */
145
+ requestId?: string;
146
+ retry?: RetryGuidance;
147
+ quota?: {
148
+ scope: 'account' | 'installation' | 'backend';
149
+ unit: 'executions' | 'requests' | 'installations';
150
+ limit: number;
151
+ resetsAt: string | null;
152
+ };
153
+ };
154
+ export type ConnectionUsage = {
155
+ unit: 'executions';
156
+ resetsAt: string;
157
+ limits: Array<{
158
+ scope: 'account' | 'installation' | 'backend';
159
+ backend: string | null;
160
+ installation: boolean;
161
+ limit: number;
162
+ used: number;
163
+ }>;
164
+ };
165
+ export type ConnectorId = string;
166
+ /**
167
+ * Stable for one logical request; scoped by server, actor and operation kind.
168
+ */
169
+ export type IdempotencyKey = string;
170
+ export type ConnectionId = Id;
171
+ /**
172
+ * Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
173
+ */
174
+ export type ConnectionRevision = string;
175
+ export type ConnectionSetupId = Id;
176
+ export type ListConnectorsData = {
177
+ body?: never;
178
+ path?: never;
179
+ query?: {
180
+ limit?: number;
181
+ cursor?: string;
182
+ query?: string;
183
+ category?: string;
184
+ };
185
+ url: '/_clawscarf/connections/v1/connectors';
186
+ };
187
+ export type ListConnectorsErrors = {
188
+ /**
189
+ * Invalid JSON, field or request shape; code invalid_request.
190
+ */
191
+ 400: Problem;
192
+ /**
193
+ * Missing or invalid session or runtime credential; code unauthenticated.
194
+ */
195
+ 401: Problem;
196
+ /**
197
+ * Authenticated caller lacks the required current authority; code forbidden.
198
+ */
199
+ 403: Problem;
200
+ /**
201
+ * Resource absent or not accessible in the server; code not_found.
202
+ */
203
+ 404: Problem;
204
+ /**
205
+ * The command conflicts with current state or a previous idempotent request.
206
+ */
207
+ 409: Problem;
208
+ /**
209
+ * The observed resource revision is stale; code revision_conflict.
210
+ */
211
+ 412: Problem;
212
+ /**
213
+ * Request exceeds this route's configured body limit; code request_too_large.
214
+ */
215
+ 413: Problem;
216
+ /**
217
+ * Request body must use application/json; code unsupported_media_type.
218
+ */
219
+ 415: Problem;
220
+ /**
221
+ * Request limit reached; code rate_limited.
222
+ */
223
+ 429: Problem;
224
+ /**
225
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
226
+ */
227
+ 500: Problem;
228
+ /**
229
+ * Required service unavailable; code dependency_unavailable.
230
+ */
231
+ 503: Problem;
232
+ };
233
+ export type ListConnectorsError = ListConnectorsErrors[keyof ListConnectorsErrors];
234
+ export type ListConnectorsResponses = {
235
+ /**
236
+ * Current resource.
237
+ */
238
+ 200: ConnectorList;
239
+ };
240
+ export type ListConnectorsResponse = ListConnectorsResponses[keyof ListConnectorsResponses];
241
+ export type GetConnectorData = {
242
+ body?: never;
243
+ path: {
244
+ connectorId: string;
245
+ };
246
+ query?: never;
247
+ url: '/_clawscarf/connections/v1/connectors/{connectorId}';
248
+ };
249
+ export type GetConnectorErrors = {
250
+ /**
251
+ * Invalid JSON, field or request shape; code invalid_request.
252
+ */
253
+ 400: Problem;
254
+ /**
255
+ * Missing or invalid session or runtime credential; code unauthenticated.
256
+ */
257
+ 401: Problem;
258
+ /**
259
+ * Authenticated caller lacks the required current authority; code forbidden.
260
+ */
261
+ 403: Problem;
262
+ /**
263
+ * Resource absent or not accessible in the server; code not_found.
264
+ */
265
+ 404: Problem;
266
+ /**
267
+ * The command conflicts with current state or a previous idempotent request.
268
+ */
269
+ 409: Problem;
270
+ /**
271
+ * The observed resource revision is stale; code revision_conflict.
272
+ */
273
+ 412: Problem;
274
+ /**
275
+ * Request exceeds this route's configured body limit; code request_too_large.
276
+ */
277
+ 413: Problem;
278
+ /**
279
+ * Request body must use application/json; code unsupported_media_type.
280
+ */
281
+ 415: Problem;
282
+ /**
283
+ * Request limit reached; code rate_limited.
284
+ */
285
+ 429: Problem;
286
+ /**
287
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
288
+ */
289
+ 500: Problem;
290
+ /**
291
+ * Required service unavailable; code dependency_unavailable.
292
+ */
293
+ 503: Problem;
294
+ };
295
+ export type GetConnectorError = GetConnectorErrors[keyof GetConnectorErrors];
296
+ export type GetConnectorResponses = {
297
+ /**
298
+ * Current resource.
299
+ */
300
+ 200: Connector;
301
+ };
302
+ export type GetConnectorResponse = GetConnectorResponses[keyof GetConnectorResponses];
303
+ export type ListConnectionsData = {
304
+ body?: never;
305
+ path?: never;
306
+ query?: {
307
+ limit?: number;
308
+ cursor?: string;
309
+ includeDisconnected?: boolean;
310
+ };
311
+ url: '/_clawscarf/connections/v1/connections';
312
+ };
313
+ export type ListConnectionsErrors = {
314
+ /**
315
+ * Invalid JSON, field or request shape; code invalid_request.
316
+ */
317
+ 400: Problem;
318
+ /**
319
+ * Missing or invalid session or runtime credential; code unauthenticated.
320
+ */
321
+ 401: Problem;
322
+ /**
323
+ * Authenticated caller lacks the required current authority; code forbidden.
324
+ */
325
+ 403: Problem;
326
+ /**
327
+ * Resource absent or not accessible in the server; code not_found.
328
+ */
329
+ 404: Problem;
330
+ /**
331
+ * The command conflicts with current state or a previous idempotent request.
332
+ */
333
+ 409: Problem;
334
+ /**
335
+ * The observed resource revision is stale; code revision_conflict.
336
+ */
337
+ 412: Problem;
338
+ /**
339
+ * Request exceeds this route's configured body limit; code request_too_large.
340
+ */
341
+ 413: Problem;
342
+ /**
343
+ * Request body must use application/json; code unsupported_media_type.
344
+ */
345
+ 415: Problem;
346
+ /**
347
+ * Request limit reached; code rate_limited.
348
+ */
349
+ 429: Problem;
350
+ /**
351
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
352
+ */
353
+ 500: Problem;
354
+ /**
355
+ * Required service unavailable; code dependency_unavailable.
356
+ */
357
+ 503: Problem;
358
+ };
359
+ export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
360
+ export type ListConnectionsResponses = {
361
+ /**
362
+ * Current resource.
363
+ */
364
+ 200: ConnectionList;
365
+ };
366
+ export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
367
+ export type CreateConnectionData = {
368
+ body: CreateConnection;
369
+ headers: {
370
+ /**
371
+ * Stable for one logical request; scoped by server, actor and operation kind.
372
+ */
373
+ 'idempotency-key': string;
374
+ 'x-csrf-token': string;
375
+ };
376
+ path?: never;
377
+ query?: never;
378
+ url: '/_clawscarf/connections/v1/connections';
379
+ };
380
+ export type CreateConnectionErrors = {
381
+ /**
382
+ * Invalid JSON, field or request shape; code invalid_request.
383
+ */
384
+ 400: Problem;
385
+ /**
386
+ * Missing or invalid session or runtime credential; code unauthenticated.
387
+ */
388
+ 401: Problem;
389
+ /**
390
+ * Authenticated caller lacks the required current authority; code forbidden.
391
+ */
392
+ 403: Problem;
393
+ /**
394
+ * Resource absent or not accessible in the server; code not_found.
395
+ */
396
+ 404: Problem;
397
+ /**
398
+ * The command conflicts with current state or a previous idempotent request.
399
+ */
400
+ 409: Problem;
401
+ /**
402
+ * The observed resource revision is stale; code revision_conflict.
403
+ */
404
+ 412: Problem;
405
+ /**
406
+ * Request exceeds this route's configured body limit; code request_too_large.
407
+ */
408
+ 413: Problem;
409
+ /**
410
+ * Request body must use application/json; code unsupported_media_type.
411
+ */
412
+ 415: Problem;
413
+ /**
414
+ * Request limit reached; code rate_limited.
415
+ */
416
+ 429: Problem;
417
+ /**
418
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
419
+ */
420
+ 500: Problem;
421
+ /**
422
+ * Required service unavailable; code dependency_unavailable.
423
+ */
424
+ 503: Problem;
425
+ };
426
+ export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
427
+ export type CreateConnectionResponses = {
428
+ /**
429
+ * Current resource.
430
+ */
431
+ 201: Connection;
432
+ };
433
+ export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
434
+ export type DisconnectConnectionData = {
435
+ body?: never;
436
+ headers: {
437
+ /**
438
+ * Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
439
+ */
440
+ 'if-match': string;
441
+ /**
442
+ * Stable for one logical request; scoped by server, actor and operation kind.
443
+ */
444
+ 'idempotency-key': string;
445
+ 'x-csrf-token': string;
446
+ };
447
+ path: {
448
+ connectionId: Id;
449
+ };
450
+ query?: never;
451
+ url: '/_clawscarf/connections/v1/connections/{connectionId}';
452
+ };
453
+ export type DisconnectConnectionErrors = {
454
+ /**
455
+ * Invalid JSON, field or request shape; code invalid_request.
456
+ */
457
+ 400: Problem;
458
+ /**
459
+ * Missing or invalid session or runtime credential; code unauthenticated.
460
+ */
461
+ 401: Problem;
462
+ /**
463
+ * Authenticated caller lacks the required current authority; code forbidden.
464
+ */
465
+ 403: Problem;
466
+ /**
467
+ * Resource absent or not accessible in the server; code not_found.
468
+ */
469
+ 404: Problem;
470
+ /**
471
+ * The command conflicts with current state or a previous idempotent request.
472
+ */
473
+ 409: Problem;
474
+ /**
475
+ * The observed resource revision is stale; code revision_conflict.
476
+ */
477
+ 412: Problem;
478
+ /**
479
+ * Request exceeds this route's configured body limit; code request_too_large.
480
+ */
481
+ 413: Problem;
482
+ /**
483
+ * Request body must use application/json; code unsupported_media_type.
484
+ */
485
+ 415: Problem;
486
+ /**
487
+ * Request limit reached; code rate_limited.
488
+ */
489
+ 429: Problem;
490
+ /**
491
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
492
+ */
493
+ 500: Problem;
494
+ /**
495
+ * Required service unavailable; code dependency_unavailable.
496
+ */
497
+ 503: Problem;
498
+ };
499
+ export type DisconnectConnectionError = DisconnectConnectionErrors[keyof DisconnectConnectionErrors];
500
+ export type DisconnectConnectionResponses = {
501
+ /**
502
+ * Current resource.
503
+ */
504
+ 202: Connection;
505
+ };
506
+ export type DisconnectConnectionResponse = DisconnectConnectionResponses[keyof DisconnectConnectionResponses];
507
+ export type GetConnectionData = {
508
+ body?: never;
509
+ path: {
510
+ connectionId: Id;
511
+ };
512
+ query?: never;
513
+ url: '/_clawscarf/connections/v1/connections/{connectionId}';
514
+ };
515
+ export type GetConnectionErrors = {
516
+ /**
517
+ * Invalid JSON, field or request shape; code invalid_request.
518
+ */
519
+ 400: Problem;
520
+ /**
521
+ * Missing or invalid session or runtime credential; code unauthenticated.
522
+ */
523
+ 401: Problem;
524
+ /**
525
+ * Authenticated caller lacks the required current authority; code forbidden.
526
+ */
527
+ 403: Problem;
528
+ /**
529
+ * Resource absent or not accessible in the server; code not_found.
530
+ */
531
+ 404: Problem;
532
+ /**
533
+ * The command conflicts with current state or a previous idempotent request.
534
+ */
535
+ 409: Problem;
536
+ /**
537
+ * The observed resource revision is stale; code revision_conflict.
538
+ */
539
+ 412: Problem;
540
+ /**
541
+ * Request exceeds this route's configured body limit; code request_too_large.
542
+ */
543
+ 413: Problem;
544
+ /**
545
+ * Request body must use application/json; code unsupported_media_type.
546
+ */
547
+ 415: Problem;
548
+ /**
549
+ * Request limit reached; code rate_limited.
550
+ */
551
+ 429: Problem;
552
+ /**
553
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
554
+ */
555
+ 500: Problem;
556
+ /**
557
+ * Required service unavailable; code dependency_unavailable.
558
+ */
559
+ 503: Problem;
560
+ };
561
+ export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
562
+ export type GetConnectionResponses = {
563
+ /**
564
+ * Current resource.
565
+ */
566
+ 200: Connection;
567
+ };
568
+ export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
569
+ export type UpdateConnectionData = {
570
+ body: UpdateConnection;
571
+ headers: {
572
+ /**
573
+ * Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
574
+ */
575
+ 'if-match': string;
576
+ /**
577
+ * Stable for one logical request; scoped by server, actor and operation kind.
578
+ */
579
+ 'idempotency-key': string;
580
+ 'x-csrf-token': string;
581
+ };
582
+ path: {
583
+ connectionId: Id;
584
+ };
585
+ query?: never;
586
+ url: '/_clawscarf/connections/v1/connections/{connectionId}';
587
+ };
588
+ export type UpdateConnectionErrors = {
589
+ /**
590
+ * Invalid JSON, field or request shape; code invalid_request.
591
+ */
592
+ 400: Problem;
593
+ /**
594
+ * Missing or invalid session or runtime credential; code unauthenticated.
595
+ */
596
+ 401: Problem;
597
+ /**
598
+ * Authenticated caller lacks the required current authority; code forbidden.
599
+ */
600
+ 403: Problem;
601
+ /**
602
+ * Resource absent or not accessible in the server; code not_found.
603
+ */
604
+ 404: Problem;
605
+ /**
606
+ * The command conflicts with current state or a previous idempotent request.
607
+ */
608
+ 409: Problem;
609
+ /**
610
+ * The observed resource revision is stale; code revision_conflict.
611
+ */
612
+ 412: Problem;
613
+ /**
614
+ * Request exceeds this route's configured body limit; code request_too_large.
615
+ */
616
+ 413: Problem;
617
+ /**
618
+ * Request body must use application/json; code unsupported_media_type.
619
+ */
620
+ 415: Problem;
621
+ /**
622
+ * Request limit reached; code rate_limited.
623
+ */
624
+ 429: Problem;
625
+ /**
626
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
627
+ */
628
+ 500: Problem;
629
+ /**
630
+ * Required service unavailable; code dependency_unavailable.
631
+ */
632
+ 503: Problem;
633
+ };
634
+ export type UpdateConnectionError = UpdateConnectionErrors[keyof UpdateConnectionErrors];
635
+ export type UpdateConnectionResponses = {
636
+ /**
637
+ * Current resource.
638
+ */
639
+ 200: Connection;
640
+ };
641
+ export type UpdateConnectionResponse = UpdateConnectionResponses[keyof UpdateConnectionResponses];
642
+ export type StartConnectionSetupData = {
643
+ body: StartConnectionSetup;
644
+ headers: {
645
+ /**
646
+ * Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
647
+ */
648
+ 'if-match': string;
649
+ /**
650
+ * Stable for one logical request; scoped by server, actor and operation kind.
651
+ */
652
+ 'idempotency-key': string;
653
+ 'x-csrf-token': string;
654
+ };
655
+ path: {
656
+ connectionId: Id;
657
+ };
658
+ query?: never;
659
+ url: '/_clawscarf/connections/v1/connections/{connectionId}/setups';
660
+ };
661
+ export type StartConnectionSetupErrors = {
662
+ /**
663
+ * Invalid JSON, field or request shape; code invalid_request.
664
+ */
665
+ 400: Problem;
666
+ /**
667
+ * Missing or invalid session or runtime credential; code unauthenticated.
668
+ */
669
+ 401: Problem;
670
+ /**
671
+ * Authenticated caller lacks the required current authority; code forbidden.
672
+ */
673
+ 403: Problem;
674
+ /**
675
+ * Resource absent or not accessible in the server; code not_found.
676
+ */
677
+ 404: Problem;
678
+ /**
679
+ * The command conflicts with current state or a previous idempotent request.
680
+ */
681
+ 409: Problem;
682
+ /**
683
+ * The observed resource revision is stale; code revision_conflict.
684
+ */
685
+ 412: Problem;
686
+ /**
687
+ * Request exceeds this route's configured body limit; code request_too_large.
688
+ */
689
+ 413: Problem;
690
+ /**
691
+ * Request body must use application/json; code unsupported_media_type.
692
+ */
693
+ 415: Problem;
694
+ /**
695
+ * Request limit reached; code rate_limited.
696
+ */
697
+ 429: Problem;
698
+ /**
699
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
700
+ */
701
+ 500: Problem;
702
+ /**
703
+ * Required service unavailable; code dependency_unavailable.
704
+ */
705
+ 503: Problem;
706
+ };
707
+ export type StartConnectionSetupError = StartConnectionSetupErrors[keyof StartConnectionSetupErrors];
708
+ export type StartConnectionSetupResponses = {
709
+ /**
710
+ * Current resource.
711
+ */
712
+ 202: ConnectionSetupContinuation;
713
+ };
714
+ export type StartConnectionSetupResponse = StartConnectionSetupResponses[keyof StartConnectionSetupResponses];
715
+ export type CancelConnectionSetupData = {
716
+ body?: never;
717
+ headers: {
718
+ /**
719
+ * Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
720
+ */
721
+ 'if-match': string;
722
+ /**
723
+ * Stable for one logical request; scoped by server, actor and operation kind.
724
+ */
725
+ 'idempotency-key': string;
726
+ 'x-csrf-token': string;
727
+ };
728
+ path: {
729
+ connectionId: Id;
730
+ setupId: Id;
731
+ };
732
+ query?: never;
733
+ url: '/_clawscarf/connections/v1/connections/{connectionId}/setups/{setupId}';
734
+ };
735
+ export type CancelConnectionSetupErrors = {
736
+ /**
737
+ * Invalid JSON, field or request shape; code invalid_request.
738
+ */
739
+ 400: Problem;
740
+ /**
741
+ * Missing or invalid session or runtime credential; code unauthenticated.
742
+ */
743
+ 401: Problem;
744
+ /**
745
+ * Authenticated caller lacks the required current authority; code forbidden.
746
+ */
747
+ 403: Problem;
748
+ /**
749
+ * Resource absent or not accessible in the server; code not_found.
750
+ */
751
+ 404: Problem;
752
+ /**
753
+ * The command conflicts with current state or a previous idempotent request.
754
+ */
755
+ 409: Problem;
756
+ /**
757
+ * The observed resource revision is stale; code revision_conflict.
758
+ */
759
+ 412: Problem;
760
+ /**
761
+ * Request exceeds this route's configured body limit; code request_too_large.
762
+ */
763
+ 413: Problem;
764
+ /**
765
+ * Request body must use application/json; code unsupported_media_type.
766
+ */
767
+ 415: Problem;
768
+ /**
769
+ * Request limit reached; code rate_limited.
770
+ */
771
+ 429: Problem;
772
+ /**
773
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
774
+ */
775
+ 500: Problem;
776
+ /**
777
+ * Required service unavailable; code dependency_unavailable.
778
+ */
779
+ 503: Problem;
780
+ };
781
+ export type CancelConnectionSetupError = CancelConnectionSetupErrors[keyof CancelConnectionSetupErrors];
782
+ export type CancelConnectionSetupResponses = {
783
+ /**
784
+ * Current resource.
785
+ */
786
+ 200: ConnectionSetup;
787
+ };
788
+ export type CancelConnectionSetupResponse = CancelConnectionSetupResponses[keyof CancelConnectionSetupResponses];
789
+ export type GetConnectionSetupData = {
790
+ body?: never;
791
+ path: {
792
+ connectionId: Id;
793
+ setupId: Id;
794
+ };
795
+ query?: never;
796
+ url: '/_clawscarf/connections/v1/connections/{connectionId}/setups/{setupId}';
797
+ };
798
+ export type GetConnectionSetupErrors = {
799
+ /**
800
+ * Invalid JSON, field or request shape; code invalid_request.
801
+ */
802
+ 400: Problem;
803
+ /**
804
+ * Missing or invalid session or runtime credential; code unauthenticated.
805
+ */
806
+ 401: Problem;
807
+ /**
808
+ * Authenticated caller lacks the required current authority; code forbidden.
809
+ */
810
+ 403: Problem;
811
+ /**
812
+ * Resource absent or not accessible in the server; code not_found.
813
+ */
814
+ 404: Problem;
815
+ /**
816
+ * The command conflicts with current state or a previous idempotent request.
817
+ */
818
+ 409: Problem;
819
+ /**
820
+ * The observed resource revision is stale; code revision_conflict.
821
+ */
822
+ 412: Problem;
823
+ /**
824
+ * Request exceeds this route's configured body limit; code request_too_large.
825
+ */
826
+ 413: Problem;
827
+ /**
828
+ * Request body must use application/json; code unsupported_media_type.
829
+ */
830
+ 415: Problem;
831
+ /**
832
+ * Request limit reached; code rate_limited.
833
+ */
834
+ 429: Problem;
835
+ /**
836
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
837
+ */
838
+ 500: Problem;
839
+ /**
840
+ * Required service unavailable; code dependency_unavailable.
841
+ */
842
+ 503: Problem;
843
+ };
844
+ export type GetConnectionSetupError = GetConnectionSetupErrors[keyof GetConnectionSetupErrors];
845
+ export type GetConnectionSetupResponses = {
846
+ /**
847
+ * Current resource.
848
+ */
849
+ 200: ConnectionSetupContinuation;
850
+ };
851
+ export type GetConnectionSetupResponse = GetConnectionSetupResponses[keyof GetConnectionSetupResponses];
852
+ export type RefreshConnectionData = {
853
+ body?: never;
854
+ headers: {
855
+ /**
856
+ * Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
857
+ */
858
+ 'if-match': string;
859
+ /**
860
+ * Stable for one logical request; scoped by server, actor and operation kind.
861
+ */
862
+ 'idempotency-key': string;
863
+ };
864
+ path: {
865
+ connectionId: Id;
866
+ };
867
+ query?: never;
868
+ url: '/_clawscarf/connections/v1/connections/{connectionId}/refresh';
869
+ };
870
+ export type RefreshConnectionErrors = {
871
+ /**
872
+ * Invalid JSON, field or request shape; code invalid_request.
873
+ */
874
+ 400: Problem;
875
+ /**
876
+ * Missing or invalid session or runtime credential; code unauthenticated.
877
+ */
878
+ 401: Problem;
879
+ /**
880
+ * Authenticated caller lacks the required current authority; code forbidden.
881
+ */
882
+ 403: Problem;
883
+ /**
884
+ * Resource absent or not accessible in the server; code not_found.
885
+ */
886
+ 404: Problem;
887
+ /**
888
+ * The command conflicts with current state or a previous idempotent request.
889
+ */
890
+ 409: Problem;
891
+ /**
892
+ * The observed resource revision is stale; code revision_conflict.
893
+ */
894
+ 412: Problem;
895
+ /**
896
+ * Request exceeds this route's configured body limit; code request_too_large.
897
+ */
898
+ 413: Problem;
899
+ /**
900
+ * Request body must use application/json; code unsupported_media_type.
901
+ */
902
+ 415: Problem;
903
+ /**
904
+ * Request limit reached; code rate_limited.
905
+ */
906
+ 429: Problem;
907
+ /**
908
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
909
+ */
910
+ 500: Problem;
911
+ /**
912
+ * Required service unavailable; code dependency_unavailable.
913
+ */
914
+ 503: Problem;
915
+ };
916
+ export type RefreshConnectionError = RefreshConnectionErrors[keyof RefreshConnectionErrors];
917
+ export type RefreshConnectionResponses = {
918
+ /**
919
+ * Current resource.
920
+ */
921
+ 200: Connection;
922
+ };
923
+ export type RefreshConnectionResponse = RefreshConnectionResponses[keyof RefreshConnectionResponses];
924
+ export type CompleteConnectionSetupData = {
925
+ body: {
926
+ sessionUri: string;
927
+ };
928
+ headers: {
929
+ 'x-csrf-token': string;
930
+ };
931
+ path: {
932
+ connectionId: Id;
933
+ setupId: Id;
934
+ };
935
+ query?: never;
936
+ url: '/_clawscarf/connections/v1/connections/{connectionId}/setups/{setupId}/complete';
937
+ };
938
+ export type CompleteConnectionSetupErrors = {
939
+ /**
940
+ * Request failed
941
+ */
942
+ default: ConnectionProblem;
943
+ };
944
+ export type CompleteConnectionSetupError = CompleteConnectionSetupErrors[keyof CompleteConnectionSetupErrors];
945
+ export type CompleteConnectionSetupResponses = {
946
+ /**
947
+ * The authorized connection destination, including a recovered completion.
948
+ */
949
+ 200: ConnectionReturnDestination;
950
+ };
951
+ export type CompleteConnectionSetupResponse = CompleteConnectionSetupResponses[keyof CompleteConnectionSetupResponses];
952
+ export type GetConnectionUsageData = {
953
+ body?: never;
954
+ path?: never;
955
+ query?: never;
956
+ url: '/_clawscarf/connections/v1/usage';
957
+ };
958
+ export type GetConnectionUsageErrors = {
959
+ /**
960
+ * Invalid JSON, field or request shape; code invalid_request.
961
+ */
962
+ 400: Problem;
963
+ /**
964
+ * Missing or invalid session or runtime credential; code unauthenticated.
965
+ */
966
+ 401: Problem;
967
+ /**
968
+ * Authenticated caller lacks the required current authority; code forbidden.
969
+ */
970
+ 403: Problem;
971
+ /**
972
+ * Resource absent or not accessible in the server; code not_found.
973
+ */
974
+ 404: Problem;
975
+ /**
976
+ * The command conflicts with current state or a previous idempotent request.
977
+ */
978
+ 409: Problem;
979
+ /**
980
+ * The observed resource revision is stale; code revision_conflict.
981
+ */
982
+ 412: Problem;
983
+ /**
984
+ * Request exceeds this route's configured body limit; code request_too_large.
985
+ */
986
+ 413: Problem;
987
+ /**
988
+ * Request body must use application/json; code unsupported_media_type.
989
+ */
990
+ 415: Problem;
991
+ /**
992
+ * Request limit reached; code rate_limited.
993
+ */
994
+ 429: Problem;
995
+ /**
996
+ * Safe failure response; no provider payload, stack trace or credential is exposed.
997
+ */
998
+ 500: Problem;
999
+ /**
1000
+ * Required service unavailable; code dependency_unavailable.
1001
+ */
1002
+ 503: Problem;
1003
+ };
1004
+ export type GetConnectionUsageError = GetConnectionUsageErrors[keyof GetConnectionUsageErrors];
1005
+ export type GetConnectionUsageResponses = {
1006
+ /**
1007
+ * Current resource.
1008
+ */
1009
+ 200: ConnectionUsage;
1010
+ };
1011
+ export type GetConnectionUsageResponse = GetConnectionUsageResponses[keyof GetConnectionUsageResponses];
1012
+ export type ListConnectionAgentsData = {
1013
+ body?: never;
1014
+ path?: never;
1015
+ query?: never;
1016
+ url: '/_clawscarf/connections/v1/connection-agents';
1017
+ };
1018
+ export type ListConnectionAgentsErrors = {
1019
+ /**
1020
+ * Missing or invalid session or runtime credential; code unauthenticated.
1021
+ */
1022
+ 401: Problem;
1023
+ /**
1024
+ * Authenticated caller lacks the required current authority; code forbidden.
1025
+ */
1026
+ 403: Problem;
1027
+ /**
1028
+ * Required service unavailable; code dependency_unavailable.
1029
+ */
1030
+ 503: Problem;
1031
+ };
1032
+ export type ListConnectionAgentsError = ListConnectionAgentsErrors[keyof ListConnectionAgentsErrors];
1033
+ export type ListConnectionAgentsResponses = {
1034
+ /**
1035
+ * Current native agent inventory
1036
+ */
1037
+ 200: {
1038
+ agents: Array<{
1039
+ id: string;
1040
+ name: string | null;
1041
+ }>;
1042
+ };
1043
+ };
1044
+ export type ListConnectionAgentsResponse = ListConnectionAgentsResponses[keyof ListConnectionAgentsResponses];