@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.
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/THIRD_PARTY_NOTICES.md +102 -0
- package/deploy/execution/browser/LICENSE.playwright +202 -0
- package/deploy/execution/browser/seccomp.json +640 -0
- package/deploy/execution/browser-node/configuration.js +85 -0
- package/deploy/execution/browser-node/operator.js +167 -0
- package/deploy/execution/network/node-ingress.cfg +35 -0
- package/deploy/models/catalog.json +275 -0
- package/deploy/openshell/policy.yaml +24 -0
- package/generated/http/LICENSE.md +21 -0
- package/generated/http/client/client.gen.d.ts +2 -0
- package/generated/http/client/client.gen.js +216 -0
- package/generated/http/client/index.d.ts +10 -0
- package/generated/http/client/index.js +6 -0
- package/generated/http/client/types.gen.d.ts +120 -0
- package/generated/http/client/types.gen.js +2 -0
- package/generated/http/client/utils.gen.d.ts +37 -0
- package/generated/http/client/utils.gen.js +228 -0
- package/generated/http/core/auth.gen.d.ts +25 -0
- package/generated/http/core/auth.gen.js +14 -0
- package/generated/http/core/bodySerializer.gen.d.ts +25 -0
- package/generated/http/core/bodySerializer.gen.js +57 -0
- package/generated/http/core/params.gen.d.ts +43 -0
- package/generated/http/core/params.gen.js +109 -0
- package/generated/http/core/pathSerializer.gen.d.ts +33 -0
- package/generated/http/core/pathSerializer.gen.js +106 -0
- package/generated/http/core/queryKeySerializer.gen.d.ts +18 -0
- package/generated/http/core/queryKeySerializer.gen.js +92 -0
- package/generated/http/core/serverSentEvents.gen.d.ts +71 -0
- package/generated/http/core/serverSentEvents.gen.js +132 -0
- package/generated/http/core/types.gen.d.ts +83 -0
- package/generated/http/core/types.gen.js +2 -0
- package/generated/http/core/utils.gen.d.ts +19 -0
- package/generated/http/core/utils.gen.js +87 -0
- package/package.json +37 -0
- package/packs/README.md +130 -0
- package/packs/research-team/pack.json +20 -0
- package/packs/research-team/researcher/CLAW.md +19 -0
- package/packs/research-team/researcher/package.json +8 -0
- package/packs/research-team/researcher/profiles/openclaw.yml +6 -0
- package/packs/research-team/reviewer/CLAW.md +19 -0
- package/packs/research-team/reviewer/package.json +8 -0
- package/packs/research-team/reviewer/profiles/openclaw.yml +6 -0
- package/pnpm-lock.yaml +7158 -0
- package/recipes/README.md +37 -0
- package/recipes/team-server/recipe.json +28 -0
- package/release/README.md +137 -0
- package/release/components.json +29 -0
- package/release/operator.md +63 -0
- package/runtime/configuration.js +135 -0
- package/runtime/connections-configuration.js +70 -0
- package/runtime/model-contract.js +92 -0
- package/runtime/releases/0.1.0-alpha.1.json +37 -0
- package/scripts/clawscarf.js +92 -0
- package/scripts/cloud/login.js +134 -0
- package/scripts/cloud/registration.js +232 -0
- package/scripts/cloud/url.js +9 -0
- package/scripts/connections.js +193 -0
- package/scripts/controller.js +143 -0
- package/scripts/deployment/browser-node-compose.js +81 -0
- package/scripts/deployment/browser-node-helper.js +9 -0
- package/scripts/deployment/browser-node-pairing.js +165 -0
- package/scripts/deployment/browser-node.js +154 -0
- package/scripts/deployment/browser.js +143 -0
- package/scripts/deployment/certificates.js +76 -0
- package/scripts/deployment/compose.js +191 -0
- package/scripts/deployment/configuration.js +275 -0
- package/scripts/deployment/connection-policy.js +80 -0
- package/scripts/deployment/connection-settings.js +60 -0
- package/scripts/deployment/connections-runtime.js +31 -0
- package/scripts/deployment/connections.js +213 -0
- package/scripts/deployment/controller-compose.js +59 -0
- package/scripts/deployment/database.js +199 -0
- package/scripts/deployment/entrypoint.js +7 -0
- package/scripts/deployment/images.js +17 -0
- package/scripts/deployment/initial-services.js +53 -0
- package/scripts/deployment/launch.js +177 -0
- package/scripts/deployment/logs.js +15 -0
- package/scripts/deployment/model-gateway-compose.js +74 -0
- package/scripts/deployment/model-gateway.js +125 -0
- package/scripts/deployment/models.js +82 -0
- package/scripts/deployment/networks.js +354 -0
- package/scripts/deployment/policy.js +56 -0
- package/scripts/deployment/preflight.js +124 -0
- package/scripts/deployment/prepare.js +205 -0
- package/scripts/deployment/process.js +70 -0
- package/scripts/deployment/relay.js +58 -0
- package/scripts/deployment/runtime-binding.js +100 -0
- package/scripts/deployment/runtime.js +232 -0
- package/scripts/deployment/state.js +154 -0
- package/scripts/deployment/team.js +76 -0
- package/scripts/deployment/upgrade-rpc.py +148 -0
- package/scripts/deployment/upgrade-state.js +47 -0
- package/scripts/deployment/upgrade.js +298 -0
- package/scripts/deployment/volumes.js +24 -0
- package/scripts/errors.js +9 -0
- package/scripts/installation/administrator.js +23 -0
- package/scripts/installation/command.js +176 -0
- package/scripts/installation/configuration.js +104 -0
- package/scripts/installation/configure.js +122 -0
- package/scripts/installation/delete.js +111 -0
- package/scripts/installation/doctor.js +8 -0
- package/scripts/installation/errors.js +8 -0
- package/scripts/installation/files.js +51 -0
- package/scripts/installation/installer/cloud.js +22 -0
- package/scripts/installation/installer/collect.js +245 -0
- package/scripts/installation/installer/inputs.js +59 -0
- package/scripts/installation/installer/menu.js +49 -0
- package/scripts/installation/installer/prompts.js +139 -0
- package/scripts/installation/installer/run.js +251 -0
- package/scripts/installation/installer/secrets.js +16 -0
- package/scripts/installation/installer/sections/access.js +69 -0
- package/scripts/installation/installer/sections/certificates.js +18 -0
- package/scripts/installation/installer/sections/connections.js +4 -0
- package/scripts/installation/installer/sections/external-models.js +35 -0
- package/scripts/installation/installer/sections/models.js +119 -0
- package/scripts/installation/installer/sections/packs.js +82 -0
- package/scripts/installation/installer/sections/resources.js +10 -0
- package/scripts/installation/installer/settings.js +192 -0
- package/scripts/installation/installer/summary.js +44 -0
- package/scripts/installation/lifecycle.js +127 -0
- package/scripts/installation/location.js +3 -0
- package/scripts/installation/models.js +42 -0
- package/scripts/installation/options.js +360 -0
- package/scripts/installation/packs.js +150 -0
- package/scripts/installation/plan.js +121 -0
- package/scripts/installation/prerequisites.js +170 -0
- package/scripts/installation/recipes/catalog.js +55 -0
- package/scripts/installation/recipes/definition.js +32 -0
- package/scripts/installation/reconfigure.js +255 -0
- package/scripts/installation/requirements.js +23 -0
- package/scripts/installation/resolve.js +217 -0
- package/scripts/installation/runtime.js +87 -0
- package/scripts/installation/save.js +95 -0
- package/scripts/installation/setup.js +91 -0
- package/scripts/models/catalog.js +9 -0
- package/scripts/models/configuration.js +184 -0
- package/scripts/models/credentials.js +132 -0
- package/scripts/models/runtime.js +87 -0
- package/scripts/output.js +34 -0
- package/scripts/packs/connections.js +95 -0
- package/scripts/packs/lifecycle.js +125 -0
- package/scripts/packs/model.js +66 -0
- package/scripts/packs/native.js +69 -0
- package/scripts/packs/openshell.js +148 -0
- package/scripts/packs/policy.js +189 -0
- package/scripts/packs/requirements.in +1 -0
- package/scripts/packs/requirements.js +11 -0
- package/scripts/packs/requirements.txt +116 -0
- package/scripts/packs/source.js +90 -0
- package/scripts/packs/transport.py +68 -0
- package/scripts/people.js +52 -0
- package/scripts/release/create.js +62 -0
- package/scripts/release/definition.js +51 -0
- package/scripts/session.js +27 -0
- package/services/access/generated/client.gen.d.ts +12 -0
- package/services/access/generated/client.gen.js +3 -0
- package/services/access/generated/fastify.gen.d.ts +49 -0
- package/services/access/generated/fastify.gen.js +2 -0
- package/services/access/generated/index.d.ts +2 -0
- package/services/access/generated/index.js +2 -0
- package/services/access/generated/sdk.gen.d.ts +28 -0
- package/services/access/generated/sdk.gen.js +107 -0
- package/services/access/generated/types.gen.d.ts +349 -0
- package/services/access/generated/types.gen.js +2 -0
- package/services/access/migrations/001_access.sql +39 -0
- package/services/access/migrations/002_administrator_setup.sql +16 -0
- package/services/access/migrations/003_local_login_completion.sql +5 -0
- package/services/access/migrations/004_invitations.sql +21 -0
- package/services/access/repo/postgres.js +341 -0
- package/services/access/repo/session-logout.js +28 -0
- package/services/access/types/credential.js +2 -0
- package/services/access/types/errors.js +7 -0
- package/services/access/types/ingress.js +1 -0
- package/services/access/types/model.js +1 -0
- package/services/access/types/native-errors.js +7 -0
- package/services/access/types/native.js +1 -0
- package/services/cloud/generated/client.gen.d.ts +12 -0
- package/services/cloud/generated/client.gen.js +3 -0
- package/services/cloud/generated/index.d.ts +2 -0
- package/services/cloud/generated/index.js +2 -0
- package/services/cloud/generated/sdk.gen.d.ts +145 -0
- package/services/cloud/generated/sdk.gen.js +488 -0
- package/services/cloud/generated/types.gen.d.ts +2034 -0
- package/services/cloud/generated/types.gen.js +2 -0
- package/services/connections/cloud/generated/client.gen.d.ts +12 -0
- package/services/connections/cloud/generated/client.gen.js +3 -0
- package/services/connections/cloud/generated/fastify.gen.d.ts +68 -0
- package/services/connections/cloud/generated/fastify.gen.js +2 -0
- package/services/connections/cloud/generated/index.d.ts +2 -0
- package/services/connections/cloud/generated/index.js +2 -0
- package/services/connections/cloud/generated/sdk.gen.d.ts +95 -0
- package/services/connections/cloud/generated/sdk.gen.js +210 -0
- package/services/connections/cloud/generated/types.gen.d.ts +1044 -0
- package/services/connections/cloud/generated/types.gen.js +2 -0
- package/services/connections/migrations/001_connections.sql +220 -0
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from './client.gen.js';
|
|
3
|
+
export const health = (options) => (options?.client ?? client).get({ url: '/health', ...options });
|
|
4
|
+
export const getSession = (options) => (options?.client ?? client).get({
|
|
5
|
+
security: [{
|
|
6
|
+
in: 'cookie',
|
|
7
|
+
name: '__Host-clawscarf-session',
|
|
8
|
+
type: 'apiKey'
|
|
9
|
+
}],
|
|
10
|
+
url: '/api/session',
|
|
11
|
+
...options
|
|
12
|
+
});
|
|
13
|
+
export const listInstallations = (options) => (options?.client ?? client).get({
|
|
14
|
+
security: [{
|
|
15
|
+
in: 'cookie',
|
|
16
|
+
name: '__Host-clawscarf-session',
|
|
17
|
+
type: 'apiKey'
|
|
18
|
+
}, {
|
|
19
|
+
key: 'bearer',
|
|
20
|
+
scheme: 'bearer',
|
|
21
|
+
type: 'http'
|
|
22
|
+
}],
|
|
23
|
+
url: '/api/installations',
|
|
24
|
+
...options
|
|
25
|
+
});
|
|
26
|
+
export const registerInstallation = (options) => (options.client ?? client).post({
|
|
27
|
+
security: [{
|
|
28
|
+
in: 'cookie',
|
|
29
|
+
name: '__Host-clawscarf-session',
|
|
30
|
+
type: 'apiKey'
|
|
31
|
+
}, {
|
|
32
|
+
key: 'bearer',
|
|
33
|
+
scheme: 'bearer',
|
|
34
|
+
type: 'http'
|
|
35
|
+
}],
|
|
36
|
+
url: '/api/installations',
|
|
37
|
+
...options,
|
|
38
|
+
headers: {
|
|
39
|
+
'Content-Type': 'application/json',
|
|
40
|
+
...options.headers
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export const getInstallation = (options) => (options.client ?? client).get({
|
|
44
|
+
security: [{
|
|
45
|
+
in: 'cookie',
|
|
46
|
+
name: '__Host-clawscarf-session',
|
|
47
|
+
type: 'apiKey'
|
|
48
|
+
}, {
|
|
49
|
+
key: 'bearer',
|
|
50
|
+
scheme: 'bearer',
|
|
51
|
+
type: 'http'
|
|
52
|
+
}],
|
|
53
|
+
url: '/api/installations/{id}',
|
|
54
|
+
...options
|
|
55
|
+
});
|
|
56
|
+
export const getInstallationIdentity = (options) => (options.client ?? client).get({
|
|
57
|
+
security: [{
|
|
58
|
+
in: 'cookie',
|
|
59
|
+
name: '__Host-clawscarf-session',
|
|
60
|
+
type: 'apiKey'
|
|
61
|
+
}, {
|
|
62
|
+
key: 'bearer',
|
|
63
|
+
scheme: 'bearer',
|
|
64
|
+
type: 'http'
|
|
65
|
+
}],
|
|
66
|
+
url: '/api/installations/{id}/identity',
|
|
67
|
+
...options
|
|
68
|
+
});
|
|
69
|
+
export const revokeInstallationCredential = (options) => (options.client ?? client).delete({
|
|
70
|
+
security: [{
|
|
71
|
+
in: 'cookie',
|
|
72
|
+
name: '__Host-clawscarf-session',
|
|
73
|
+
type: 'apiKey'
|
|
74
|
+
}, {
|
|
75
|
+
key: 'bearer',
|
|
76
|
+
scheme: 'bearer',
|
|
77
|
+
type: 'http'
|
|
78
|
+
}],
|
|
79
|
+
url: '/api/installations/{id}/credentials/{purpose}',
|
|
80
|
+
...options
|
|
81
|
+
});
|
|
82
|
+
export const rotateInstallationCredential = (options) => (options.client ?? client).put({
|
|
83
|
+
security: [{
|
|
84
|
+
in: 'cookie',
|
|
85
|
+
name: '__Host-clawscarf-session',
|
|
86
|
+
type: 'apiKey'
|
|
87
|
+
}, {
|
|
88
|
+
key: 'bearer',
|
|
89
|
+
scheme: 'bearer',
|
|
90
|
+
type: 'http'
|
|
91
|
+
}],
|
|
92
|
+
url: '/api/installations/{id}/credentials/{purpose}',
|
|
93
|
+
...options,
|
|
94
|
+
headers: {
|
|
95
|
+
'Content-Type': 'application/json',
|
|
96
|
+
...options.headers
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
export const revokeProvisioner = (options) => (options?.client ?? client).delete({
|
|
100
|
+
security: [{
|
|
101
|
+
in: 'cookie',
|
|
102
|
+
name: '__Host-clawscarf-session',
|
|
103
|
+
type: 'apiKey'
|
|
104
|
+
}, {
|
|
105
|
+
key: 'bearer',
|
|
106
|
+
scheme: 'bearer',
|
|
107
|
+
type: 'http'
|
|
108
|
+
}],
|
|
109
|
+
url: '/api/account/provisioner',
|
|
110
|
+
...options
|
|
111
|
+
});
|
|
112
|
+
export const getProvisioner = (options) => (options?.client ?? client).get({
|
|
113
|
+
security: [{
|
|
114
|
+
in: 'cookie',
|
|
115
|
+
name: '__Host-clawscarf-session',
|
|
116
|
+
type: 'apiKey'
|
|
117
|
+
}, {
|
|
118
|
+
key: 'bearer',
|
|
119
|
+
scheme: 'bearer',
|
|
120
|
+
type: 'http'
|
|
121
|
+
}],
|
|
122
|
+
url: '/api/account/provisioner',
|
|
123
|
+
...options
|
|
124
|
+
});
|
|
125
|
+
export const rotateProvisioner = (options) => (options.client ?? client).put({
|
|
126
|
+
security: [{
|
|
127
|
+
in: 'cookie',
|
|
128
|
+
name: '__Host-clawscarf-session',
|
|
129
|
+
type: 'apiKey'
|
|
130
|
+
}, {
|
|
131
|
+
key: 'bearer',
|
|
132
|
+
scheme: 'bearer',
|
|
133
|
+
type: 'http'
|
|
134
|
+
}],
|
|
135
|
+
url: '/api/account/provisioner',
|
|
136
|
+
...options,
|
|
137
|
+
headers: {
|
|
138
|
+
'Content-Type': 'application/json',
|
|
139
|
+
...options.headers
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
export const getRuntimeScope = (options) => (options?.client ?? client).get({
|
|
143
|
+
security: [{
|
|
144
|
+
in: 'cookie',
|
|
145
|
+
name: '__Host-clawscarf-session',
|
|
146
|
+
type: 'apiKey'
|
|
147
|
+
}, {
|
|
148
|
+
key: 'bearer',
|
|
149
|
+
scheme: 'bearer',
|
|
150
|
+
type: 'http'
|
|
151
|
+
}],
|
|
152
|
+
url: '/api/runtime',
|
|
153
|
+
...options
|
|
154
|
+
});
|
|
155
|
+
export const getInstallationCredentials = (options) => (options.client ?? client).get({
|
|
156
|
+
security: [{
|
|
157
|
+
in: 'cookie',
|
|
158
|
+
name: '__Host-clawscarf-session',
|
|
159
|
+
type: 'apiKey'
|
|
160
|
+
}, {
|
|
161
|
+
key: 'bearer',
|
|
162
|
+
scheme: 'bearer',
|
|
163
|
+
type: 'http'
|
|
164
|
+
}],
|
|
165
|
+
url: '/api/installations/{id}/credentials',
|
|
166
|
+
...options
|
|
167
|
+
});
|
|
168
|
+
export const getCliIdentity = (options) => (options?.client ?? client).get({ url: '/api/identity', ...options });
|
|
169
|
+
export const getAccount = (options) => (options?.client ?? client).get({
|
|
170
|
+
security: [{
|
|
171
|
+
in: 'cookie',
|
|
172
|
+
name: '__Host-clawscarf-session',
|
|
173
|
+
type: 'apiKey'
|
|
174
|
+
}, {
|
|
175
|
+
key: 'bearer',
|
|
176
|
+
scheme: 'bearer',
|
|
177
|
+
type: 'http'
|
|
178
|
+
}],
|
|
179
|
+
url: '/api/account',
|
|
180
|
+
...options
|
|
181
|
+
});
|
|
182
|
+
/**
|
|
183
|
+
* Browse available connectors
|
|
184
|
+
*
|
|
185
|
+
* Selected connector contract. Unavailable until the complete service and customer journey are wired and qualified.
|
|
186
|
+
*/
|
|
187
|
+
export const listConnectors = (options) => (options.client ?? client).get({
|
|
188
|
+
security: [{
|
|
189
|
+
key: 'InstallationManagement',
|
|
190
|
+
scheme: 'bearer',
|
|
191
|
+
type: 'http'
|
|
192
|
+
}],
|
|
193
|
+
url: '/api/connections/connectors',
|
|
194
|
+
...options
|
|
195
|
+
});
|
|
196
|
+
/**
|
|
197
|
+
* Read connector metadata
|
|
198
|
+
*
|
|
199
|
+
* Selected connector contract. Unavailable until the complete service and customer journey are wired and qualified.
|
|
200
|
+
*/
|
|
201
|
+
export const getConnector = (options) => (options.client ?? client).get({
|
|
202
|
+
security: [{
|
|
203
|
+
key: 'InstallationManagement',
|
|
204
|
+
scheme: 'bearer',
|
|
205
|
+
type: 'http'
|
|
206
|
+
}],
|
|
207
|
+
url: '/api/connections/connectors/{connectorId}',
|
|
208
|
+
...options
|
|
209
|
+
});
|
|
210
|
+
/**
|
|
211
|
+
* List server connections
|
|
212
|
+
*
|
|
213
|
+
* Return connection metadata and setup status after verifying current native administrator authority. Credentials and setup continuation URLs are excluded. A failed read never establishes an empty collection.
|
|
214
|
+
*/
|
|
215
|
+
export const listConnections = (options) => (options.client ?? client).get({
|
|
216
|
+
security: [{
|
|
217
|
+
key: 'InstallationManagement',
|
|
218
|
+
scheme: 'bearer',
|
|
219
|
+
type: 'http'
|
|
220
|
+
}],
|
|
221
|
+
url: '/api/connections/connections',
|
|
222
|
+
...options
|
|
223
|
+
});
|
|
224
|
+
/**
|
|
225
|
+
* Create a named connection
|
|
226
|
+
*
|
|
227
|
+
* Create a named server-owned connection after verifying current native administrator authority. This neither authorizes a provider account nor starts external authentication. Agent grants are checked before activation. Identical authorized retries return the same record.
|
|
228
|
+
*/
|
|
229
|
+
export const createConnection = (options) => (options.client ?? client).post({
|
|
230
|
+
security: [{
|
|
231
|
+
key: 'InstallationManagement',
|
|
232
|
+
scheme: 'bearer',
|
|
233
|
+
type: 'http'
|
|
234
|
+
}],
|
|
235
|
+
url: '/api/connections/connections',
|
|
236
|
+
...options,
|
|
237
|
+
headers: {
|
|
238
|
+
'Content-Type': 'application/json',
|
|
239
|
+
...options.headers
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
/**
|
|
243
|
+
* Disconnect an account
|
|
244
|
+
*
|
|
245
|
+
* Revoke local use immediately and cancel pending setup. Provider cleanup is durable and may complete later. Never continue granting local use because provider deletion failed. Retain receipts and exact cleanup references.
|
|
246
|
+
*/
|
|
247
|
+
export const disconnectConnection = (options) => (options.client ?? client).delete({
|
|
248
|
+
security: [{
|
|
249
|
+
key: 'InstallationManagement',
|
|
250
|
+
scheme: 'bearer',
|
|
251
|
+
type: 'http'
|
|
252
|
+
}],
|
|
253
|
+
url: '/api/connections/connections/{connectionId}',
|
|
254
|
+
...options
|
|
255
|
+
});
|
|
256
|
+
/**
|
|
257
|
+
* Read a connection
|
|
258
|
+
*
|
|
259
|
+
* Read a named connection's agent grant, state, revision, setup and cleanup status, and safe failure summary. Recheck effective native administrator authority before reading. Credentials and setup continuation URLs are never included.
|
|
260
|
+
*/
|
|
261
|
+
export const getConnection = (options) => (options.client ?? client).get({
|
|
262
|
+
security: [{
|
|
263
|
+
key: 'InstallationManagement',
|
|
264
|
+
scheme: 'bearer',
|
|
265
|
+
type: 'http'
|
|
266
|
+
}],
|
|
267
|
+
url: '/api/connections/connections/{connectionId}',
|
|
268
|
+
...options
|
|
269
|
+
});
|
|
270
|
+
/**
|
|
271
|
+
* Replace connection name and agent grant
|
|
272
|
+
*
|
|
273
|
+
* Replace both editable fields against the quoted current connection revision. Revocation and selected-agent changes take effect at the next broker boundary, including already pending operations.
|
|
274
|
+
*/
|
|
275
|
+
export const updateConnection = (options) => (options.client ?? client).patch({
|
|
276
|
+
security: [{
|
|
277
|
+
key: 'InstallationManagement',
|
|
278
|
+
scheme: 'bearer',
|
|
279
|
+
type: 'http'
|
|
280
|
+
}],
|
|
281
|
+
url: '/api/connections/connections/{connectionId}',
|
|
282
|
+
...options,
|
|
283
|
+
headers: {
|
|
284
|
+
'Content-Type': 'application/json',
|
|
285
|
+
...options.headers
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
/**
|
|
289
|
+
* Start connection or reconnection
|
|
290
|
+
*
|
|
291
|
+
* Persist one setup attempt before requesting its hosted authentication link. Admission and permission checks use ClawScarf state; setup performs no native management. Clients poll the returned setup and navigate to its continuation URL as soon as available. Account use remains disabled until callback identity, effective native administrator authority and selected agents are verified. Only its initiating user may continue. Reconnection keeps the current active account until the exact replacement is verified. A changed retry payload conflicts; uncertain setup creation is not blindly replayed. New attempts and provider preparation/allocation require the current published catalog. Authentication preparation has its own durable receipt; an uncertain preparation or allocation blocks replacement until resolved.
|
|
292
|
+
*/
|
|
293
|
+
export const startConnectionSetup = (options) => (options.client ?? client).post({
|
|
294
|
+
security: [{
|
|
295
|
+
key: 'InstallationManagement',
|
|
296
|
+
scheme: 'bearer',
|
|
297
|
+
type: 'http'
|
|
298
|
+
}],
|
|
299
|
+
url: '/api/connections/connections/{connectionId}/setups',
|
|
300
|
+
...options,
|
|
301
|
+
headers: {
|
|
302
|
+
'Content-Type': 'application/json',
|
|
303
|
+
...options.headers
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
/**
|
|
307
|
+
* Cancel a setup attempt
|
|
308
|
+
*
|
|
309
|
+
* Idempotently cancel this exact setup attempt and schedule provider cleanup. A late callback cannot activate it. Completed setup cannot be cancelled; disconnect the connection explicitly.
|
|
310
|
+
*/
|
|
311
|
+
export const cancelConnectionSetup = (options) => (options.client ?? client).delete({
|
|
312
|
+
security: [{
|
|
313
|
+
key: 'InstallationManagement',
|
|
314
|
+
scheme: 'bearer',
|
|
315
|
+
type: 'http'
|
|
316
|
+
}],
|
|
317
|
+
url: '/api/connections/connections/{connectionId}/setups/{setupId}',
|
|
318
|
+
...options
|
|
319
|
+
});
|
|
320
|
+
/**
|
|
321
|
+
* Read or continue a setup attempt
|
|
322
|
+
*
|
|
323
|
+
* Return current setup and its unexpired continuation URL only to the initiating user with current native administrator authority. This read never redeems a callback, creates an account or restarts expired setup.
|
|
324
|
+
*/
|
|
325
|
+
export const getConnectionSetup = (options) => (options.client ?? client).get({
|
|
326
|
+
security: [{
|
|
327
|
+
key: 'InstallationManagement',
|
|
328
|
+
scheme: 'bearer',
|
|
329
|
+
type: 'http'
|
|
330
|
+
}],
|
|
331
|
+
url: '/api/connections/connections/{connectionId}/setups/{setupId}',
|
|
332
|
+
...options
|
|
333
|
+
});
|
|
334
|
+
/**
|
|
335
|
+
* Refresh connection status
|
|
336
|
+
*
|
|
337
|
+
* Observe the exact bound provider account after verifying native administrator authority and current revision. The initiator may finish an unexpired setup from a durably recorded identity receipt. Never redeem the callback again or infer identity from account status alone.
|
|
338
|
+
*/
|
|
339
|
+
export const refreshConnection = (options) => (options.client ?? client).post({
|
|
340
|
+
security: [{
|
|
341
|
+
key: 'InstallationManagement',
|
|
342
|
+
scheme: 'bearer',
|
|
343
|
+
type: 'http'
|
|
344
|
+
}],
|
|
345
|
+
url: '/api/connections/connections/{connectionId}/refresh',
|
|
346
|
+
...options
|
|
347
|
+
});
|
|
348
|
+
/**
|
|
349
|
+
* Connector search
|
|
350
|
+
*
|
|
351
|
+
* Installation credential and trusted native agent context select currently permitted exact connections. Human cookies and CLI credentials are not accepted. No server identity is accepted in the payload.
|
|
352
|
+
*/
|
|
353
|
+
export const searchConnectorRuntime = (options) => (options.client ?? client).post({
|
|
354
|
+
security: [{
|
|
355
|
+
key: 'InstallationRuntime',
|
|
356
|
+
scheme: 'bearer',
|
|
357
|
+
type: 'http'
|
|
358
|
+
}],
|
|
359
|
+
url: '/api/connections/connector-runtime/search',
|
|
360
|
+
...options,
|
|
361
|
+
headers: {
|
|
362
|
+
'Content-Type': 'application/json',
|
|
363
|
+
...options.headers
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
/**
|
|
367
|
+
* Connector describe
|
|
368
|
+
*
|
|
369
|
+
* Installation credential and trusted native agent context select currently permitted exact connections. Human cookies and CLI credentials are not accepted. No server identity is accepted in the payload.
|
|
370
|
+
*/
|
|
371
|
+
export const describeConnectorRuntime = (options) => (options.client ?? client).post({
|
|
372
|
+
security: [{
|
|
373
|
+
key: 'InstallationRuntime',
|
|
374
|
+
scheme: 'bearer',
|
|
375
|
+
type: 'http'
|
|
376
|
+
}],
|
|
377
|
+
url: '/api/connections/connector-runtime/describe',
|
|
378
|
+
...options,
|
|
379
|
+
headers: {
|
|
380
|
+
'Content-Type': 'application/json',
|
|
381
|
+
...options.headers
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
/**
|
|
385
|
+
* Connector call
|
|
386
|
+
*
|
|
387
|
+
* Durable invocation identity is scoped to server credential, native session and toolCallId. Identical replay returns the existing receipt; changed arguments conflict. Never automatically redispatch an uncertain call. Exact connection generation must still be current. New dispatch also requires the published catalog and current action version; authorized receipt replay does not require retired catalog metadata.
|
|
388
|
+
*/
|
|
389
|
+
export const callConnectorRuntime = (options) => (options.client ?? client).post({
|
|
390
|
+
security: [{
|
|
391
|
+
key: 'InstallationRuntime',
|
|
392
|
+
scheme: 'bearer',
|
|
393
|
+
type: 'http'
|
|
394
|
+
}],
|
|
395
|
+
url: '/api/connections/connector-runtime/call',
|
|
396
|
+
...options,
|
|
397
|
+
headers: {
|
|
398
|
+
'Content-Type': 'application/json',
|
|
399
|
+
...options.headers
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
/**
|
|
403
|
+
* Recover an invocation result
|
|
404
|
+
*
|
|
405
|
+
* Read an existing result under the current server credential and matching agent grant. Never dispatch the operation again. Revoked connection generations do not regain access after native state restoration.
|
|
406
|
+
*/
|
|
407
|
+
export const getConnectorRuntimeInvocation = (options) => (options.client ?? client).get({
|
|
408
|
+
security: [{
|
|
409
|
+
key: 'InstallationRuntime',
|
|
410
|
+
scheme: 'bearer',
|
|
411
|
+
type: 'http'
|
|
412
|
+
}],
|
|
413
|
+
url: '/api/connections/connector-runtime/invocations/{invocationId}',
|
|
414
|
+
...options
|
|
415
|
+
});
|
|
416
|
+
/**
|
|
417
|
+
* Read a bounded page of retained result JSON
|
|
418
|
+
*
|
|
419
|
+
* Read an existing result under the current server credential and matching agent grant. Never dispatch the operation again. Revoked connection generations do not regain access after native state restoration.
|
|
420
|
+
*/
|
|
421
|
+
export const getConnectorRuntimeResultPage = (options) => (options.client ?? client).get({
|
|
422
|
+
security: [{
|
|
423
|
+
key: 'InstallationRuntime',
|
|
424
|
+
scheme: 'bearer',
|
|
425
|
+
type: 'http'
|
|
426
|
+
}],
|
|
427
|
+
url: '/api/connections/connector-runtime/invocations/{invocationId}/result',
|
|
428
|
+
...options
|
|
429
|
+
});
|
|
430
|
+
/**
|
|
431
|
+
* Find a receipt from its original native call identity
|
|
432
|
+
*
|
|
433
|
+
* Read an existing result under the current server credential and matching agent grant. Never dispatch the operation again. Revoked connection generations do not regain access after native state restoration.
|
|
434
|
+
*/
|
|
435
|
+
export const lookupConnectorRuntimeInvocation = (options) => (options.client ?? client).post({
|
|
436
|
+
security: [{
|
|
437
|
+
key: 'InstallationRuntime',
|
|
438
|
+
scheme: 'bearer',
|
|
439
|
+
type: 'http'
|
|
440
|
+
}],
|
|
441
|
+
url: '/api/connections/connector-runtime/invocations/lookup',
|
|
442
|
+
...options,
|
|
443
|
+
headers: {
|
|
444
|
+
'Content-Type': 'application/json',
|
|
445
|
+
...options.headers
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
/**
|
|
449
|
+
* Submit the receipt from the returning browser after checking its current installation identity and native authority. Polling a setup cannot activate it.
|
|
450
|
+
*/
|
|
451
|
+
export const completeConnectionSetup = (options) => (options.client ?? client).post({
|
|
452
|
+
security: [{
|
|
453
|
+
key: 'InstallationManagement',
|
|
454
|
+
scheme: 'bearer',
|
|
455
|
+
type: 'http'
|
|
456
|
+
}],
|
|
457
|
+
url: '/api/connections/connections/{connectionId}/setups/{setupId}/complete',
|
|
458
|
+
...options,
|
|
459
|
+
headers: {
|
|
460
|
+
'Content-Type': 'application/json',
|
|
461
|
+
...options.headers
|
|
462
|
+
}
|
|
463
|
+
});
|
|
464
|
+
export const maintainConnections = (options) => (options?.client ?? client).get({
|
|
465
|
+
security: [{
|
|
466
|
+
key: 'Maintenance',
|
|
467
|
+
scheme: 'bearer',
|
|
468
|
+
type: 'http'
|
|
469
|
+
}],
|
|
470
|
+
url: '/api/cron/connections',
|
|
471
|
+
...options
|
|
472
|
+
});
|
|
473
|
+
export const returnConnectionCallback = (options) => (options.client ?? client).get({ url: '/connections/callback', ...options });
|
|
474
|
+
export const beginConnectionSetupBrowser = (options) => (options.client ?? client).get({ url: '/connections/start/{installationId}', ...options });
|
|
475
|
+
/**
|
|
476
|
+
* Read current execution allowance
|
|
477
|
+
*
|
|
478
|
+
* Current account and installation allowance for this installation. Shared provider budgets are private.
|
|
479
|
+
*/
|
|
480
|
+
export const getConnectionUsage = (options) => (options.client ?? client).get({
|
|
481
|
+
security: [{
|
|
482
|
+
key: 'InstallationManagement',
|
|
483
|
+
scheme: 'bearer',
|
|
484
|
+
type: 'http'
|
|
485
|
+
}],
|
|
486
|
+
url: '/api/connections/usage',
|
|
487
|
+
...options
|
|
488
|
+
});
|