@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,2034 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: `${string}://services` | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export type Problem = {
|
|
5
|
+
type: string;
|
|
6
|
+
title: string;
|
|
7
|
+
status: number;
|
|
8
|
+
code: string;
|
|
9
|
+
requestId: string;
|
|
10
|
+
quota?: {
|
|
11
|
+
scope: 'account' | 'installation' | 'backend';
|
|
12
|
+
unit: 'executions' | 'requests' | 'installations';
|
|
13
|
+
limit: number;
|
|
14
|
+
resetsAt: string | null;
|
|
15
|
+
};
|
|
16
|
+
detail?: string;
|
|
17
|
+
retry?: RetryGuidance;
|
|
18
|
+
};
|
|
19
|
+
export type Installation = {
|
|
20
|
+
id: string;
|
|
21
|
+
accountId: string;
|
|
22
|
+
reference: string;
|
|
23
|
+
name: string;
|
|
24
|
+
origin: string | null;
|
|
25
|
+
oidcState: 'disabled' | 'pending' | 'provisioning' | 'ready' | 'uncertain' | 'failed';
|
|
26
|
+
};
|
|
27
|
+
export type ConnectorList = {
|
|
28
|
+
items: Array<Connector>;
|
|
29
|
+
nextCursor: string | null;
|
|
30
|
+
};
|
|
31
|
+
export type Connector = {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
category: string;
|
|
36
|
+
iconUrl: string;
|
|
37
|
+
auth: {
|
|
38
|
+
kind: 'managed';
|
|
39
|
+
} | {
|
|
40
|
+
kind: 'custom';
|
|
41
|
+
scheme: string;
|
|
42
|
+
};
|
|
43
|
+
catalogVersion: string;
|
|
44
|
+
actionCount: number;
|
|
45
|
+
};
|
|
46
|
+
export type ConnectionProblem = {
|
|
47
|
+
type: 'about:blank';
|
|
48
|
+
title: string;
|
|
49
|
+
status: number;
|
|
50
|
+
/**
|
|
51
|
+
* Stable machine-readable code; clients tolerate additional codes.
|
|
52
|
+
*/
|
|
53
|
+
code: string;
|
|
54
|
+
/**
|
|
55
|
+
* Safe explanation without raw provider diagnostics or secrets.
|
|
56
|
+
*/
|
|
57
|
+
detail: string;
|
|
58
|
+
/**
|
|
59
|
+
* Request correlation ID for operator diagnostics.
|
|
60
|
+
*/
|
|
61
|
+
requestId?: string;
|
|
62
|
+
retry?: RetryGuidance;
|
|
63
|
+
quota?: {
|
|
64
|
+
scope: 'account' | 'installation' | 'backend';
|
|
65
|
+
unit: 'executions' | 'requests' | 'installations';
|
|
66
|
+
limit: number;
|
|
67
|
+
resetsAt: string | null;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Retry advice does not authorize replaying a mutation. Preserve idempotency keys and reconcile uncertain outcomes.
|
|
72
|
+
*/
|
|
73
|
+
export type RetryGuidance = {
|
|
74
|
+
/**
|
|
75
|
+
* never means no automatic replay; after_change requires a corrected
|
|
76
|
+
* request or changed prerequisite; reconcile means inspect the original
|
|
77
|
+
* command outcome before deciding whether another attempt is safe.
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
strategy: 'never' | 'after_delay' | 'after_change' | 'reconcile';
|
|
81
|
+
/**
|
|
82
|
+
* Only when a retry time is known; consistent with Retry-After when provided.
|
|
83
|
+
*/
|
|
84
|
+
afterSeconds?: number;
|
|
85
|
+
};
|
|
86
|
+
export type ConnectionList = {
|
|
87
|
+
items: Array<Connection>;
|
|
88
|
+
nextCursor: string | null;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Current authorized connection state for this server.
|
|
92
|
+
*/
|
|
93
|
+
export type Connection = {
|
|
94
|
+
id: Id;
|
|
95
|
+
connectorId: string;
|
|
96
|
+
name: string;
|
|
97
|
+
grant: ConnectorAgentGrant;
|
|
98
|
+
state: 'not_connected' | 'connected' | 'needs_attention' | 'disconnected';
|
|
99
|
+
generation: number;
|
|
100
|
+
revision: number;
|
|
101
|
+
setup: ConnectionSetup | null;
|
|
102
|
+
cleanup: 'none' | 'pending' | 'complete' | 'needs_attention';
|
|
103
|
+
failure: ConnectionFailure | null;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
106
|
+
serverId: Id;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Opaque identifier; clients must not infer identity or provider details from it.
|
|
110
|
+
*/
|
|
111
|
+
export type Id = string;
|
|
112
|
+
/**
|
|
113
|
+
* All includes future native agents. Selected uses exact IDs; missing IDs never widen the grant.
|
|
114
|
+
*/
|
|
115
|
+
export type ConnectorAgentGrant = {
|
|
116
|
+
mode: 'all';
|
|
117
|
+
} | {
|
|
118
|
+
mode: 'selected';
|
|
119
|
+
agentIds: Array<string>;
|
|
120
|
+
};
|
|
121
|
+
export type ConnectionSetup = {
|
|
122
|
+
id: Id;
|
|
123
|
+
connectionId: Id;
|
|
124
|
+
kind: 'initial' | 'reconnect';
|
|
125
|
+
state: 'creating' | 'pending' | 'verifying' | 'succeeded' | 'expired' | 'cancelled' | 'failed' | 'outcome_unknown';
|
|
126
|
+
createdAt: string;
|
|
127
|
+
expiresAt: string | null;
|
|
128
|
+
completedAt: string | null;
|
|
129
|
+
failure: ConnectionFailure | null;
|
|
130
|
+
};
|
|
131
|
+
export type ConnectionFailure = {
|
|
132
|
+
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';
|
|
133
|
+
detail: string;
|
|
134
|
+
retry: RetryGuidance;
|
|
135
|
+
};
|
|
136
|
+
export type CreateConnection = {
|
|
137
|
+
connectorId: string;
|
|
138
|
+
name: string;
|
|
139
|
+
grant: ConnectorAgentGrant;
|
|
140
|
+
};
|
|
141
|
+
export type UpdateConnection = {
|
|
142
|
+
name: string;
|
|
143
|
+
grant: ConnectorAgentGrant;
|
|
144
|
+
};
|
|
145
|
+
export type StartConnectionSetup = {
|
|
146
|
+
kind: 'initial' | 'reconnect';
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* 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.
|
|
150
|
+
*/
|
|
151
|
+
export type ConnectionSetupContinuation = {
|
|
152
|
+
setup: ConnectionSetup;
|
|
153
|
+
url: string | null;
|
|
154
|
+
};
|
|
155
|
+
export type ConnectorRuntimeSearch = {
|
|
156
|
+
context: ConnectorRuntimeContext;
|
|
157
|
+
query?: string;
|
|
158
|
+
connectionId?: Id;
|
|
159
|
+
connectorId?: string;
|
|
160
|
+
limit?: number;
|
|
161
|
+
cursor?: string;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Populated by the trusted native plugin factory, never by model arguments. Calls require sessionId or sessionKey. Installation identity comes only from the machine credential.
|
|
165
|
+
*/
|
|
166
|
+
export type ConnectorRuntimeContext = {
|
|
167
|
+
agentId: string;
|
|
168
|
+
sessionId?: string;
|
|
169
|
+
sessionKey?: string;
|
|
170
|
+
toolCallId: string;
|
|
171
|
+
};
|
|
172
|
+
export type ConnectorRuntimeSearchResult = {
|
|
173
|
+
items: Array<ConnectorRuntimeMatch>;
|
|
174
|
+
nextCursor: string | null;
|
|
175
|
+
/**
|
|
176
|
+
* Present only when this agent has no usable connections before applying search filters. The URL identifies the authenticated server; it grants no portal access. Managing connections requires the signed-in person's current native administrator permission.
|
|
177
|
+
*/
|
|
178
|
+
guidance: null | ConnectorRuntimeSearchGuidance;
|
|
179
|
+
};
|
|
180
|
+
export type ConnectorRuntimeMatch = {
|
|
181
|
+
connection: {
|
|
182
|
+
id: Id;
|
|
183
|
+
name: string;
|
|
184
|
+
connectorId: string;
|
|
185
|
+
generation: number;
|
|
186
|
+
};
|
|
187
|
+
action: ConnectorActionSummary;
|
|
188
|
+
};
|
|
189
|
+
export type ConnectorActionSummary = {
|
|
190
|
+
id: string;
|
|
191
|
+
name: string;
|
|
192
|
+
description: string;
|
|
193
|
+
connectorId: string;
|
|
194
|
+
version: string;
|
|
195
|
+
schemaDigest: string;
|
|
196
|
+
};
|
|
197
|
+
export type ConnectorRuntimeSearchGuidance = {
|
|
198
|
+
code: 'no_usable_connections';
|
|
199
|
+
};
|
|
200
|
+
export type ConnectorRuntimeDescribe = {
|
|
201
|
+
context: ConnectorRuntimeContext;
|
|
202
|
+
connectionId: Id;
|
|
203
|
+
actionId: string;
|
|
204
|
+
};
|
|
205
|
+
export type ConnectorRuntimeDescription = {
|
|
206
|
+
connectionId: Id;
|
|
207
|
+
generation: number;
|
|
208
|
+
action: ConnectorActionDetail;
|
|
209
|
+
};
|
|
210
|
+
export type ConnectorActionDetail = {
|
|
211
|
+
id: string;
|
|
212
|
+
name: string;
|
|
213
|
+
description: string;
|
|
214
|
+
connectorId: string;
|
|
215
|
+
version: string;
|
|
216
|
+
schemaDigest: string;
|
|
217
|
+
/**
|
|
218
|
+
* Opaque provider schema hint or JSON data. Never use it as a transport validator.
|
|
219
|
+
*/
|
|
220
|
+
inputSchema: unknown;
|
|
221
|
+
/**
|
|
222
|
+
* Opaque provider schema hint or JSON data. Never use it as a transport validator.
|
|
223
|
+
*/
|
|
224
|
+
outputSchema: unknown;
|
|
225
|
+
fileInputs: Array<string>;
|
|
226
|
+
fileOutputs: Array<string>;
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* 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 and catalog action version must still be current.
|
|
230
|
+
*/
|
|
231
|
+
export type ConnectorRuntimeCall = {
|
|
232
|
+
context: ConnectorRuntimeContext;
|
|
233
|
+
connectionId: Id;
|
|
234
|
+
generation: number;
|
|
235
|
+
actionId: string;
|
|
236
|
+
version: string;
|
|
237
|
+
/**
|
|
238
|
+
* Generic JSON object. Provider input schemas are advisory and are not enforced or repaired. Serialized arguments are limited to 128 KiB of UTF-8 JSON. The complete HTTP request body is limited to 256 KiB.
|
|
239
|
+
*/
|
|
240
|
+
arguments: {
|
|
241
|
+
[key: string]: unknown;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* Execution state and idempotency survive result expiry. Results are retained for 24 hours after completion. JSON above the 32 KiB inline limit is read through bounded result pages. Expired or unavailable data never changes a succeeded execution to failure or permits a new dispatch.
|
|
246
|
+
*/
|
|
247
|
+
export type ConnectorRuntimeInvocation = {
|
|
248
|
+
invocation: ConnectionInvocation;
|
|
249
|
+
result: {
|
|
250
|
+
kind: 'inline';
|
|
251
|
+
data: unknown;
|
|
252
|
+
} | ConnectorResultReference | ConnectorResultUnavailable;
|
|
253
|
+
};
|
|
254
|
+
export type ConnectionInvocation = {
|
|
255
|
+
id: Id;
|
|
256
|
+
connectionId: Id;
|
|
257
|
+
generation: number;
|
|
258
|
+
agentId: string;
|
|
259
|
+
actionId: string;
|
|
260
|
+
version: string;
|
|
261
|
+
state: 'dispatching' | 'succeeded' | 'rejected' | 'outcome_unknown';
|
|
262
|
+
createdAt: string;
|
|
263
|
+
completedAt: string | null;
|
|
264
|
+
failure: ConnectionFailure | null;
|
|
265
|
+
};
|
|
266
|
+
export type ConnectorResultReference = {
|
|
267
|
+
kind: 'reference';
|
|
268
|
+
invocationId: Id;
|
|
269
|
+
mediaType: 'application/json';
|
|
270
|
+
byteLength: number;
|
|
271
|
+
sha256: string;
|
|
272
|
+
expiresAt: string;
|
|
273
|
+
};
|
|
274
|
+
export type ConnectorResultUnavailable = {
|
|
275
|
+
kind: 'unavailable';
|
|
276
|
+
reason: 'pending' | 'failed' | 'outcome_unknown' | 'too_large' | 'invalid_result' | 'expired';
|
|
277
|
+
};
|
|
278
|
+
export type ConnectorRuntimeResultPage = {
|
|
279
|
+
invocation: ConnectionInvocation;
|
|
280
|
+
result: ConnectorResultPage | ConnectorResultUnavailable;
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* Exact UTF-8 JSON text, at most 8192 UTF-8 bytes per page. Join page text in byte-offset order and verify the reference byte length and SHA-256 to recover the complete serialized result. No page is an independent JSON document. Cursor is a selector, not authorization; every page rechecks current access.
|
|
284
|
+
*/
|
|
285
|
+
export type ConnectorResultPage = {
|
|
286
|
+
kind: 'page';
|
|
287
|
+
reference: ConnectorResultReference;
|
|
288
|
+
text: string;
|
|
289
|
+
offsetBytes: number;
|
|
290
|
+
nextCursor: string | null;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* Read only. Find the receipt for the original tool call in the current native agent/session. Missing receipts return 404 and never allocate or execute an invocation. Native context is supplied by the plugin, not model parameters.
|
|
294
|
+
*/
|
|
295
|
+
export type ConnectorRuntimeInvocationLookup = {
|
|
296
|
+
context: ConnectorRuntimeContext;
|
|
297
|
+
targetToolCallId: string;
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Current authorized connection state for this server.
|
|
301
|
+
*/
|
|
302
|
+
export type ConnectionReturnDestination = {
|
|
303
|
+
connectionId: string;
|
|
304
|
+
serverId: string;
|
|
305
|
+
};
|
|
306
|
+
export type ConnectionUsage = {
|
|
307
|
+
unit: 'executions';
|
|
308
|
+
resetsAt: string;
|
|
309
|
+
limits: Array<{
|
|
310
|
+
scope: 'account' | 'installation' | 'backend';
|
|
311
|
+
backend: string | null;
|
|
312
|
+
installation: boolean;
|
|
313
|
+
limit: number;
|
|
314
|
+
used: number;
|
|
315
|
+
}>;
|
|
316
|
+
};
|
|
317
|
+
export type ConnectorId = string;
|
|
318
|
+
/**
|
|
319
|
+
* Stable for one logical request; scoped by server, actor and operation kind.
|
|
320
|
+
*/
|
|
321
|
+
export type IdempotencyKey = string;
|
|
322
|
+
export type ConnectionId = Id;
|
|
323
|
+
/**
|
|
324
|
+
* Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
|
|
325
|
+
*/
|
|
326
|
+
export type ConnectionRevision = string;
|
|
327
|
+
export type ConnectionSetupId = Id;
|
|
328
|
+
export type ConnectionInvocationId = Id;
|
|
329
|
+
/**
|
|
330
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
331
|
+
*/
|
|
332
|
+
export type AdministratorAssertion = string;
|
|
333
|
+
export type HealthData = {
|
|
334
|
+
body?: never;
|
|
335
|
+
path?: never;
|
|
336
|
+
query?: never;
|
|
337
|
+
url: '/health';
|
|
338
|
+
};
|
|
339
|
+
export type HealthResponses = {
|
|
340
|
+
/**
|
|
341
|
+
* Response
|
|
342
|
+
*/
|
|
343
|
+
200: {
|
|
344
|
+
status: 'ok';
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
export type HealthResponse = HealthResponses[keyof HealthResponses];
|
|
348
|
+
export type GetSessionData = {
|
|
349
|
+
body?: never;
|
|
350
|
+
path?: never;
|
|
351
|
+
query?: never;
|
|
352
|
+
url: '/api/session';
|
|
353
|
+
};
|
|
354
|
+
export type GetSessionErrors = {
|
|
355
|
+
/**
|
|
356
|
+
* Response
|
|
357
|
+
*/
|
|
358
|
+
401: Problem;
|
|
359
|
+
/**
|
|
360
|
+
* Response
|
|
361
|
+
*/
|
|
362
|
+
503: Problem;
|
|
363
|
+
};
|
|
364
|
+
export type GetSessionError = GetSessionErrors[keyof GetSessionErrors];
|
|
365
|
+
export type GetSessionResponses = {
|
|
366
|
+
/**
|
|
367
|
+
* Response
|
|
368
|
+
*/
|
|
369
|
+
200: {
|
|
370
|
+
user: {
|
|
371
|
+
id: string;
|
|
372
|
+
email: string;
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
export type GetSessionResponse = GetSessionResponses[keyof GetSessionResponses];
|
|
377
|
+
export type ListInstallationsData = {
|
|
378
|
+
body?: never;
|
|
379
|
+
path?: never;
|
|
380
|
+
query?: never;
|
|
381
|
+
url: '/api/installations';
|
|
382
|
+
};
|
|
383
|
+
export type ListInstallationsErrors = {
|
|
384
|
+
/**
|
|
385
|
+
* Failure
|
|
386
|
+
*/
|
|
387
|
+
default: Problem;
|
|
388
|
+
};
|
|
389
|
+
export type ListInstallationsError = ListInstallationsErrors[keyof ListInstallationsErrors];
|
|
390
|
+
export type ListInstallationsResponses = {
|
|
391
|
+
/**
|
|
392
|
+
* Success
|
|
393
|
+
*/
|
|
394
|
+
200: {
|
|
395
|
+
installations: Array<Installation>;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
export type ListInstallationsResponse = ListInstallationsResponses[keyof ListInstallationsResponses];
|
|
399
|
+
export type RegisterInstallationData = {
|
|
400
|
+
body: {
|
|
401
|
+
reference: string;
|
|
402
|
+
name: string;
|
|
403
|
+
origin: string | null;
|
|
404
|
+
managementSecret: string;
|
|
405
|
+
runtimeSecret: string;
|
|
406
|
+
};
|
|
407
|
+
path?: never;
|
|
408
|
+
query?: never;
|
|
409
|
+
url: '/api/installations';
|
|
410
|
+
};
|
|
411
|
+
export type RegisterInstallationErrors = {
|
|
412
|
+
/**
|
|
413
|
+
* Failure
|
|
414
|
+
*/
|
|
415
|
+
default: Problem;
|
|
416
|
+
};
|
|
417
|
+
export type RegisterInstallationError = RegisterInstallationErrors[keyof RegisterInstallationErrors];
|
|
418
|
+
export type RegisterInstallationResponses = {
|
|
419
|
+
/**
|
|
420
|
+
* Success
|
|
421
|
+
*/
|
|
422
|
+
200: Installation;
|
|
423
|
+
};
|
|
424
|
+
export type RegisterInstallationResponse = RegisterInstallationResponses[keyof RegisterInstallationResponses];
|
|
425
|
+
export type GetInstallationData = {
|
|
426
|
+
body?: never;
|
|
427
|
+
path: {
|
|
428
|
+
id: string;
|
|
429
|
+
};
|
|
430
|
+
query?: never;
|
|
431
|
+
url: '/api/installations/{id}';
|
|
432
|
+
};
|
|
433
|
+
export type GetInstallationErrors = {
|
|
434
|
+
/**
|
|
435
|
+
* Failure
|
|
436
|
+
*/
|
|
437
|
+
default: Problem;
|
|
438
|
+
};
|
|
439
|
+
export type GetInstallationError = GetInstallationErrors[keyof GetInstallationErrors];
|
|
440
|
+
export type GetInstallationResponses = {
|
|
441
|
+
/**
|
|
442
|
+
* Success
|
|
443
|
+
*/
|
|
444
|
+
200: Installation;
|
|
445
|
+
};
|
|
446
|
+
export type GetInstallationResponse = GetInstallationResponses[keyof GetInstallationResponses];
|
|
447
|
+
export type GetInstallationIdentityData = {
|
|
448
|
+
body?: never;
|
|
449
|
+
path: {
|
|
450
|
+
id: string;
|
|
451
|
+
};
|
|
452
|
+
query?: never;
|
|
453
|
+
url: '/api/installations/{id}/identity';
|
|
454
|
+
};
|
|
455
|
+
export type GetInstallationIdentityErrors = {
|
|
456
|
+
/**
|
|
457
|
+
* Failure
|
|
458
|
+
*/
|
|
459
|
+
default: Problem;
|
|
460
|
+
};
|
|
461
|
+
export type GetInstallationIdentityError = GetInstallationIdentityErrors[keyof GetInstallationIdentityErrors];
|
|
462
|
+
export type GetInstallationIdentityResponses = {
|
|
463
|
+
/**
|
|
464
|
+
* Success
|
|
465
|
+
*/
|
|
466
|
+
200: null | {
|
|
467
|
+
issuer: string;
|
|
468
|
+
clientId: string;
|
|
469
|
+
clientSecret: string;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
export type GetInstallationIdentityResponse = GetInstallationIdentityResponses[keyof GetInstallationIdentityResponses];
|
|
473
|
+
export type RevokeInstallationCredentialData = {
|
|
474
|
+
body?: never;
|
|
475
|
+
path: {
|
|
476
|
+
id: string;
|
|
477
|
+
purpose: 'management' | 'runtime';
|
|
478
|
+
};
|
|
479
|
+
query?: never;
|
|
480
|
+
url: '/api/installations/{id}/credentials/{purpose}';
|
|
481
|
+
};
|
|
482
|
+
export type RevokeInstallationCredentialErrors = {
|
|
483
|
+
/**
|
|
484
|
+
* Failure
|
|
485
|
+
*/
|
|
486
|
+
default: Problem;
|
|
487
|
+
};
|
|
488
|
+
export type RevokeInstallationCredentialError = RevokeInstallationCredentialErrors[keyof RevokeInstallationCredentialErrors];
|
|
489
|
+
export type RevokeInstallationCredentialResponses = {
|
|
490
|
+
/**
|
|
491
|
+
* Success
|
|
492
|
+
*/
|
|
493
|
+
200: {
|
|
494
|
+
ok: true;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
export type RevokeInstallationCredentialResponse = RevokeInstallationCredentialResponses[keyof RevokeInstallationCredentialResponses];
|
|
498
|
+
export type RotateInstallationCredentialData = {
|
|
499
|
+
body: {
|
|
500
|
+
generation: number;
|
|
501
|
+
secret: string;
|
|
502
|
+
};
|
|
503
|
+
path: {
|
|
504
|
+
id: string;
|
|
505
|
+
purpose: 'management' | 'runtime';
|
|
506
|
+
};
|
|
507
|
+
query?: never;
|
|
508
|
+
url: '/api/installations/{id}/credentials/{purpose}';
|
|
509
|
+
};
|
|
510
|
+
export type RotateInstallationCredentialErrors = {
|
|
511
|
+
/**
|
|
512
|
+
* Failure
|
|
513
|
+
*/
|
|
514
|
+
default: Problem;
|
|
515
|
+
};
|
|
516
|
+
export type RotateInstallationCredentialError = RotateInstallationCredentialErrors[keyof RotateInstallationCredentialErrors];
|
|
517
|
+
export type RotateInstallationCredentialResponses = {
|
|
518
|
+
/**
|
|
519
|
+
* Success
|
|
520
|
+
*/
|
|
521
|
+
200: {
|
|
522
|
+
generation: number;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
export type RotateInstallationCredentialResponse = RotateInstallationCredentialResponses[keyof RotateInstallationCredentialResponses];
|
|
526
|
+
export type RevokeProvisionerData = {
|
|
527
|
+
body?: never;
|
|
528
|
+
path?: never;
|
|
529
|
+
query?: never;
|
|
530
|
+
url: '/api/account/provisioner';
|
|
531
|
+
};
|
|
532
|
+
export type RevokeProvisionerErrors = {
|
|
533
|
+
/**
|
|
534
|
+
* Failure
|
|
535
|
+
*/
|
|
536
|
+
default: Problem;
|
|
537
|
+
};
|
|
538
|
+
export type RevokeProvisionerError = RevokeProvisionerErrors[keyof RevokeProvisionerErrors];
|
|
539
|
+
export type RevokeProvisionerResponses = {
|
|
540
|
+
/**
|
|
541
|
+
* Success
|
|
542
|
+
*/
|
|
543
|
+
200: {
|
|
544
|
+
ok: true;
|
|
545
|
+
};
|
|
546
|
+
};
|
|
547
|
+
export type RevokeProvisionerResponse = RevokeProvisionerResponses[keyof RevokeProvisionerResponses];
|
|
548
|
+
export type GetProvisionerData = {
|
|
549
|
+
body?: never;
|
|
550
|
+
path?: never;
|
|
551
|
+
query?: never;
|
|
552
|
+
url: '/api/account/provisioner';
|
|
553
|
+
};
|
|
554
|
+
export type GetProvisionerErrors = {
|
|
555
|
+
/**
|
|
556
|
+
* Failure
|
|
557
|
+
*/
|
|
558
|
+
default: Problem;
|
|
559
|
+
};
|
|
560
|
+
export type GetProvisionerError = GetProvisionerErrors[keyof GetProvisionerErrors];
|
|
561
|
+
export type GetProvisionerResponses = {
|
|
562
|
+
/**
|
|
563
|
+
* Success
|
|
564
|
+
*/
|
|
565
|
+
200: {
|
|
566
|
+
credentials: Array<{
|
|
567
|
+
purpose: 'management' | 'runtime' | 'provisioner';
|
|
568
|
+
generation: number;
|
|
569
|
+
active: boolean;
|
|
570
|
+
}>;
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
export type GetProvisionerResponse = GetProvisionerResponses[keyof GetProvisionerResponses];
|
|
574
|
+
export type RotateProvisionerData = {
|
|
575
|
+
body: {
|
|
576
|
+
generation: number;
|
|
577
|
+
secret: string;
|
|
578
|
+
};
|
|
579
|
+
path?: never;
|
|
580
|
+
query?: never;
|
|
581
|
+
url: '/api/account/provisioner';
|
|
582
|
+
};
|
|
583
|
+
export type RotateProvisionerErrors = {
|
|
584
|
+
/**
|
|
585
|
+
* Failure
|
|
586
|
+
*/
|
|
587
|
+
default: Problem;
|
|
588
|
+
};
|
|
589
|
+
export type RotateProvisionerError = RotateProvisionerErrors[keyof RotateProvisionerErrors];
|
|
590
|
+
export type RotateProvisionerResponses = {
|
|
591
|
+
/**
|
|
592
|
+
* Success
|
|
593
|
+
*/
|
|
594
|
+
200: {
|
|
595
|
+
generation: number;
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
export type RotateProvisionerResponse = RotateProvisionerResponses[keyof RotateProvisionerResponses];
|
|
599
|
+
export type GetRuntimeScopeData = {
|
|
600
|
+
body?: never;
|
|
601
|
+
path?: never;
|
|
602
|
+
query?: never;
|
|
603
|
+
url: '/api/runtime';
|
|
604
|
+
};
|
|
605
|
+
export type GetRuntimeScopeErrors = {
|
|
606
|
+
/**
|
|
607
|
+
* Failure
|
|
608
|
+
*/
|
|
609
|
+
default: Problem;
|
|
610
|
+
};
|
|
611
|
+
export type GetRuntimeScopeError = GetRuntimeScopeErrors[keyof GetRuntimeScopeErrors];
|
|
612
|
+
export type GetRuntimeScopeResponses = {
|
|
613
|
+
/**
|
|
614
|
+
* Success
|
|
615
|
+
*/
|
|
616
|
+
200: {
|
|
617
|
+
accountId: string;
|
|
618
|
+
installationId: string;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
export type GetRuntimeScopeResponse = GetRuntimeScopeResponses[keyof GetRuntimeScopeResponses];
|
|
622
|
+
export type GetInstallationCredentialsData = {
|
|
623
|
+
body?: never;
|
|
624
|
+
path: {
|
|
625
|
+
id: string;
|
|
626
|
+
};
|
|
627
|
+
query?: never;
|
|
628
|
+
url: '/api/installations/{id}/credentials';
|
|
629
|
+
};
|
|
630
|
+
export type GetInstallationCredentialsErrors = {
|
|
631
|
+
/**
|
|
632
|
+
* Failure
|
|
633
|
+
*/
|
|
634
|
+
default: Problem;
|
|
635
|
+
};
|
|
636
|
+
export type GetInstallationCredentialsError = GetInstallationCredentialsErrors[keyof GetInstallationCredentialsErrors];
|
|
637
|
+
export type GetInstallationCredentialsResponses = {
|
|
638
|
+
/**
|
|
639
|
+
* Success
|
|
640
|
+
*/
|
|
641
|
+
200: {
|
|
642
|
+
credentials: Array<{
|
|
643
|
+
purpose: 'management' | 'runtime' | 'provisioner';
|
|
644
|
+
generation: number;
|
|
645
|
+
active: boolean;
|
|
646
|
+
}>;
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
export type GetInstallationCredentialsResponse = GetInstallationCredentialsResponses[keyof GetInstallationCredentialsResponses];
|
|
650
|
+
export type GetCliIdentityData = {
|
|
651
|
+
body?: never;
|
|
652
|
+
path?: never;
|
|
653
|
+
query?: never;
|
|
654
|
+
url: '/api/identity';
|
|
655
|
+
};
|
|
656
|
+
export type GetCliIdentityErrors = {
|
|
657
|
+
/**
|
|
658
|
+
* Hosted CLI authentication unavailable
|
|
659
|
+
*/
|
|
660
|
+
503: Problem;
|
|
661
|
+
};
|
|
662
|
+
export type GetCliIdentityError = GetCliIdentityErrors[keyof GetCliIdentityErrors];
|
|
663
|
+
export type GetCliIdentityResponses = {
|
|
664
|
+
/**
|
|
665
|
+
* Public CLI OIDC configuration
|
|
666
|
+
*/
|
|
667
|
+
200: {
|
|
668
|
+
issuer: string;
|
|
669
|
+
clientId: string;
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
export type GetCliIdentityResponse = GetCliIdentityResponses[keyof GetCliIdentityResponses];
|
|
673
|
+
export type GetAccountData = {
|
|
674
|
+
body?: never;
|
|
675
|
+
path?: never;
|
|
676
|
+
query?: never;
|
|
677
|
+
url: '/api/account';
|
|
678
|
+
};
|
|
679
|
+
export type GetAccountErrors = {
|
|
680
|
+
/**
|
|
681
|
+
* Failure
|
|
682
|
+
*/
|
|
683
|
+
default: Problem;
|
|
684
|
+
};
|
|
685
|
+
export type GetAccountError = GetAccountErrors[keyof GetAccountErrors];
|
|
686
|
+
export type GetAccountResponses = {
|
|
687
|
+
/**
|
|
688
|
+
* Success
|
|
689
|
+
*/
|
|
690
|
+
200: {
|
|
691
|
+
accountId: string;
|
|
692
|
+
identity: null | {
|
|
693
|
+
issuer: string;
|
|
694
|
+
subject: string;
|
|
695
|
+
email: string;
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
export type GetAccountResponse = GetAccountResponses[keyof GetAccountResponses];
|
|
700
|
+
export type ListConnectorsData = {
|
|
701
|
+
body?: never;
|
|
702
|
+
headers: {
|
|
703
|
+
/**
|
|
704
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
705
|
+
*/
|
|
706
|
+
'x-clawscarf-administrator': string;
|
|
707
|
+
};
|
|
708
|
+
path?: never;
|
|
709
|
+
query?: {
|
|
710
|
+
limit?: number;
|
|
711
|
+
cursor?: string;
|
|
712
|
+
query?: string;
|
|
713
|
+
category?: string;
|
|
714
|
+
};
|
|
715
|
+
url: '/api/connections/connectors';
|
|
716
|
+
};
|
|
717
|
+
export type ListConnectorsErrors = {
|
|
718
|
+
/**
|
|
719
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
720
|
+
*/
|
|
721
|
+
400: Problem;
|
|
722
|
+
/**
|
|
723
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
724
|
+
*/
|
|
725
|
+
401: Problem;
|
|
726
|
+
/**
|
|
727
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
728
|
+
*/
|
|
729
|
+
403: Problem;
|
|
730
|
+
/**
|
|
731
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
732
|
+
*/
|
|
733
|
+
404: Problem;
|
|
734
|
+
/**
|
|
735
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
736
|
+
*/
|
|
737
|
+
409: Problem;
|
|
738
|
+
/**
|
|
739
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
740
|
+
*/
|
|
741
|
+
412: Problem;
|
|
742
|
+
/**
|
|
743
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
744
|
+
*/
|
|
745
|
+
413: Problem;
|
|
746
|
+
/**
|
|
747
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
748
|
+
*/
|
|
749
|
+
415: Problem;
|
|
750
|
+
/**
|
|
751
|
+
* Request limit reached; code rate_limited.
|
|
752
|
+
*/
|
|
753
|
+
429: Problem;
|
|
754
|
+
/**
|
|
755
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
756
|
+
*/
|
|
757
|
+
500: Problem;
|
|
758
|
+
/**
|
|
759
|
+
* Required service unavailable; code dependency_unavailable.
|
|
760
|
+
*/
|
|
761
|
+
503: Problem;
|
|
762
|
+
};
|
|
763
|
+
export type ListConnectorsError = ListConnectorsErrors[keyof ListConnectorsErrors];
|
|
764
|
+
export type ListConnectorsResponses = {
|
|
765
|
+
/**
|
|
766
|
+
* Current resource.
|
|
767
|
+
*/
|
|
768
|
+
200: ConnectorList;
|
|
769
|
+
};
|
|
770
|
+
export type ListConnectorsResponse = ListConnectorsResponses[keyof ListConnectorsResponses];
|
|
771
|
+
export type GetConnectorData = {
|
|
772
|
+
body?: never;
|
|
773
|
+
headers: {
|
|
774
|
+
/**
|
|
775
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
776
|
+
*/
|
|
777
|
+
'x-clawscarf-administrator': string;
|
|
778
|
+
};
|
|
779
|
+
path: {
|
|
780
|
+
connectorId: string;
|
|
781
|
+
};
|
|
782
|
+
query?: never;
|
|
783
|
+
url: '/api/connections/connectors/{connectorId}';
|
|
784
|
+
};
|
|
785
|
+
export type GetConnectorErrors = {
|
|
786
|
+
/**
|
|
787
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
788
|
+
*/
|
|
789
|
+
400: Problem;
|
|
790
|
+
/**
|
|
791
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
792
|
+
*/
|
|
793
|
+
401: Problem;
|
|
794
|
+
/**
|
|
795
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
796
|
+
*/
|
|
797
|
+
403: Problem;
|
|
798
|
+
/**
|
|
799
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
800
|
+
*/
|
|
801
|
+
404: Problem;
|
|
802
|
+
/**
|
|
803
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
804
|
+
*/
|
|
805
|
+
409: Problem;
|
|
806
|
+
/**
|
|
807
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
808
|
+
*/
|
|
809
|
+
412: Problem;
|
|
810
|
+
/**
|
|
811
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
812
|
+
*/
|
|
813
|
+
413: Problem;
|
|
814
|
+
/**
|
|
815
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
816
|
+
*/
|
|
817
|
+
415: Problem;
|
|
818
|
+
/**
|
|
819
|
+
* Request limit reached; code rate_limited.
|
|
820
|
+
*/
|
|
821
|
+
429: Problem;
|
|
822
|
+
/**
|
|
823
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
824
|
+
*/
|
|
825
|
+
500: Problem;
|
|
826
|
+
/**
|
|
827
|
+
* Required service unavailable; code dependency_unavailable.
|
|
828
|
+
*/
|
|
829
|
+
503: Problem;
|
|
830
|
+
};
|
|
831
|
+
export type GetConnectorError = GetConnectorErrors[keyof GetConnectorErrors];
|
|
832
|
+
export type GetConnectorResponses = {
|
|
833
|
+
/**
|
|
834
|
+
* Current resource.
|
|
835
|
+
*/
|
|
836
|
+
200: Connector;
|
|
837
|
+
};
|
|
838
|
+
export type GetConnectorResponse = GetConnectorResponses[keyof GetConnectorResponses];
|
|
839
|
+
export type ListConnectionsData = {
|
|
840
|
+
body?: never;
|
|
841
|
+
headers: {
|
|
842
|
+
/**
|
|
843
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
844
|
+
*/
|
|
845
|
+
'x-clawscarf-administrator': string;
|
|
846
|
+
};
|
|
847
|
+
path?: never;
|
|
848
|
+
query?: {
|
|
849
|
+
limit?: number;
|
|
850
|
+
cursor?: string;
|
|
851
|
+
includeDisconnected?: boolean;
|
|
852
|
+
};
|
|
853
|
+
url: '/api/connections/connections';
|
|
854
|
+
};
|
|
855
|
+
export type ListConnectionsErrors = {
|
|
856
|
+
/**
|
|
857
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
858
|
+
*/
|
|
859
|
+
400: Problem;
|
|
860
|
+
/**
|
|
861
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
862
|
+
*/
|
|
863
|
+
401: Problem;
|
|
864
|
+
/**
|
|
865
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
866
|
+
*/
|
|
867
|
+
403: Problem;
|
|
868
|
+
/**
|
|
869
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
870
|
+
*/
|
|
871
|
+
404: Problem;
|
|
872
|
+
/**
|
|
873
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
874
|
+
*/
|
|
875
|
+
409: Problem;
|
|
876
|
+
/**
|
|
877
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
878
|
+
*/
|
|
879
|
+
412: Problem;
|
|
880
|
+
/**
|
|
881
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
882
|
+
*/
|
|
883
|
+
413: Problem;
|
|
884
|
+
/**
|
|
885
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
886
|
+
*/
|
|
887
|
+
415: Problem;
|
|
888
|
+
/**
|
|
889
|
+
* Request limit reached; code rate_limited.
|
|
890
|
+
*/
|
|
891
|
+
429: Problem;
|
|
892
|
+
/**
|
|
893
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
894
|
+
*/
|
|
895
|
+
500: Problem;
|
|
896
|
+
/**
|
|
897
|
+
* Required service unavailable; code dependency_unavailable.
|
|
898
|
+
*/
|
|
899
|
+
503: Problem;
|
|
900
|
+
};
|
|
901
|
+
export type ListConnectionsError = ListConnectionsErrors[keyof ListConnectionsErrors];
|
|
902
|
+
export type ListConnectionsResponses = {
|
|
903
|
+
/**
|
|
904
|
+
* Current resource.
|
|
905
|
+
*/
|
|
906
|
+
200: ConnectionList;
|
|
907
|
+
};
|
|
908
|
+
export type ListConnectionsResponse = ListConnectionsResponses[keyof ListConnectionsResponses];
|
|
909
|
+
export type CreateConnectionData = {
|
|
910
|
+
body: CreateConnection;
|
|
911
|
+
headers: {
|
|
912
|
+
/**
|
|
913
|
+
* Stable for one logical request; scoped by server, actor and operation kind.
|
|
914
|
+
*/
|
|
915
|
+
'idempotency-key': string;
|
|
916
|
+
/**
|
|
917
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
918
|
+
*/
|
|
919
|
+
'x-clawscarf-administrator': string;
|
|
920
|
+
};
|
|
921
|
+
path?: never;
|
|
922
|
+
query?: never;
|
|
923
|
+
url: '/api/connections/connections';
|
|
924
|
+
};
|
|
925
|
+
export type CreateConnectionErrors = {
|
|
926
|
+
/**
|
|
927
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
928
|
+
*/
|
|
929
|
+
400: Problem;
|
|
930
|
+
/**
|
|
931
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
932
|
+
*/
|
|
933
|
+
401: Problem;
|
|
934
|
+
/**
|
|
935
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
936
|
+
*/
|
|
937
|
+
403: Problem;
|
|
938
|
+
/**
|
|
939
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
940
|
+
*/
|
|
941
|
+
404: Problem;
|
|
942
|
+
/**
|
|
943
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
944
|
+
*/
|
|
945
|
+
409: Problem;
|
|
946
|
+
/**
|
|
947
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
948
|
+
*/
|
|
949
|
+
412: Problem;
|
|
950
|
+
/**
|
|
951
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
952
|
+
*/
|
|
953
|
+
413: Problem;
|
|
954
|
+
/**
|
|
955
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
956
|
+
*/
|
|
957
|
+
415: Problem;
|
|
958
|
+
/**
|
|
959
|
+
* Request limit reached; code rate_limited.
|
|
960
|
+
*/
|
|
961
|
+
429: Problem;
|
|
962
|
+
/**
|
|
963
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
964
|
+
*/
|
|
965
|
+
500: Problem;
|
|
966
|
+
/**
|
|
967
|
+
* Required service unavailable; code dependency_unavailable.
|
|
968
|
+
*/
|
|
969
|
+
503: Problem;
|
|
970
|
+
};
|
|
971
|
+
export type CreateConnectionError = CreateConnectionErrors[keyof CreateConnectionErrors];
|
|
972
|
+
export type CreateConnectionResponses = {
|
|
973
|
+
/**
|
|
974
|
+
* Current resource.
|
|
975
|
+
*/
|
|
976
|
+
201: Connection;
|
|
977
|
+
};
|
|
978
|
+
export type CreateConnectionResponse = CreateConnectionResponses[keyof CreateConnectionResponses];
|
|
979
|
+
export type DisconnectConnectionData = {
|
|
980
|
+
body?: never;
|
|
981
|
+
headers: {
|
|
982
|
+
/**
|
|
983
|
+
* Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
|
|
984
|
+
*/
|
|
985
|
+
'if-match': string;
|
|
986
|
+
/**
|
|
987
|
+
* Stable for one logical request; scoped by server, actor and operation kind.
|
|
988
|
+
*/
|
|
989
|
+
'idempotency-key': string;
|
|
990
|
+
/**
|
|
991
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
992
|
+
*/
|
|
993
|
+
'x-clawscarf-administrator': string;
|
|
994
|
+
};
|
|
995
|
+
path: {
|
|
996
|
+
connectionId: Id;
|
|
997
|
+
};
|
|
998
|
+
query?: never;
|
|
999
|
+
url: '/api/connections/connections/{connectionId}';
|
|
1000
|
+
};
|
|
1001
|
+
export type DisconnectConnectionErrors = {
|
|
1002
|
+
/**
|
|
1003
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1004
|
+
*/
|
|
1005
|
+
400: Problem;
|
|
1006
|
+
/**
|
|
1007
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1008
|
+
*/
|
|
1009
|
+
401: Problem;
|
|
1010
|
+
/**
|
|
1011
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1012
|
+
*/
|
|
1013
|
+
403: Problem;
|
|
1014
|
+
/**
|
|
1015
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1016
|
+
*/
|
|
1017
|
+
404: Problem;
|
|
1018
|
+
/**
|
|
1019
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1020
|
+
*/
|
|
1021
|
+
409: Problem;
|
|
1022
|
+
/**
|
|
1023
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1024
|
+
*/
|
|
1025
|
+
412: Problem;
|
|
1026
|
+
/**
|
|
1027
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1028
|
+
*/
|
|
1029
|
+
413: Problem;
|
|
1030
|
+
/**
|
|
1031
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1032
|
+
*/
|
|
1033
|
+
415: Problem;
|
|
1034
|
+
/**
|
|
1035
|
+
* Request limit reached; code rate_limited.
|
|
1036
|
+
*/
|
|
1037
|
+
429: Problem;
|
|
1038
|
+
/**
|
|
1039
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1040
|
+
*/
|
|
1041
|
+
500: Problem;
|
|
1042
|
+
/**
|
|
1043
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1044
|
+
*/
|
|
1045
|
+
503: Problem;
|
|
1046
|
+
};
|
|
1047
|
+
export type DisconnectConnectionError = DisconnectConnectionErrors[keyof DisconnectConnectionErrors];
|
|
1048
|
+
export type DisconnectConnectionResponses = {
|
|
1049
|
+
/**
|
|
1050
|
+
* Current resource.
|
|
1051
|
+
*/
|
|
1052
|
+
202: Connection;
|
|
1053
|
+
};
|
|
1054
|
+
export type DisconnectConnectionResponse = DisconnectConnectionResponses[keyof DisconnectConnectionResponses];
|
|
1055
|
+
export type GetConnectionData = {
|
|
1056
|
+
body?: never;
|
|
1057
|
+
headers: {
|
|
1058
|
+
/**
|
|
1059
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
1060
|
+
*/
|
|
1061
|
+
'x-clawscarf-administrator': string;
|
|
1062
|
+
};
|
|
1063
|
+
path: {
|
|
1064
|
+
connectionId: Id;
|
|
1065
|
+
};
|
|
1066
|
+
query?: never;
|
|
1067
|
+
url: '/api/connections/connections/{connectionId}';
|
|
1068
|
+
};
|
|
1069
|
+
export type GetConnectionErrors = {
|
|
1070
|
+
/**
|
|
1071
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1072
|
+
*/
|
|
1073
|
+
400: Problem;
|
|
1074
|
+
/**
|
|
1075
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1076
|
+
*/
|
|
1077
|
+
401: Problem;
|
|
1078
|
+
/**
|
|
1079
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1080
|
+
*/
|
|
1081
|
+
403: Problem;
|
|
1082
|
+
/**
|
|
1083
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1084
|
+
*/
|
|
1085
|
+
404: Problem;
|
|
1086
|
+
/**
|
|
1087
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1088
|
+
*/
|
|
1089
|
+
409: Problem;
|
|
1090
|
+
/**
|
|
1091
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1092
|
+
*/
|
|
1093
|
+
412: Problem;
|
|
1094
|
+
/**
|
|
1095
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1096
|
+
*/
|
|
1097
|
+
413: Problem;
|
|
1098
|
+
/**
|
|
1099
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1100
|
+
*/
|
|
1101
|
+
415: Problem;
|
|
1102
|
+
/**
|
|
1103
|
+
* Request limit reached; code rate_limited.
|
|
1104
|
+
*/
|
|
1105
|
+
429: Problem;
|
|
1106
|
+
/**
|
|
1107
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1108
|
+
*/
|
|
1109
|
+
500: Problem;
|
|
1110
|
+
/**
|
|
1111
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1112
|
+
*/
|
|
1113
|
+
503: Problem;
|
|
1114
|
+
};
|
|
1115
|
+
export type GetConnectionError = GetConnectionErrors[keyof GetConnectionErrors];
|
|
1116
|
+
export type GetConnectionResponses = {
|
|
1117
|
+
/**
|
|
1118
|
+
* Current resource.
|
|
1119
|
+
*/
|
|
1120
|
+
200: Connection;
|
|
1121
|
+
};
|
|
1122
|
+
export type GetConnectionResponse = GetConnectionResponses[keyof GetConnectionResponses];
|
|
1123
|
+
export type UpdateConnectionData = {
|
|
1124
|
+
body: UpdateConnection;
|
|
1125
|
+
headers: {
|
|
1126
|
+
/**
|
|
1127
|
+
* Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
|
|
1128
|
+
*/
|
|
1129
|
+
'if-match': string;
|
|
1130
|
+
/**
|
|
1131
|
+
* Stable for one logical request; scoped by server, actor and operation kind.
|
|
1132
|
+
*/
|
|
1133
|
+
'idempotency-key': string;
|
|
1134
|
+
/**
|
|
1135
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
1136
|
+
*/
|
|
1137
|
+
'x-clawscarf-administrator': string;
|
|
1138
|
+
};
|
|
1139
|
+
path: {
|
|
1140
|
+
connectionId: Id;
|
|
1141
|
+
};
|
|
1142
|
+
query?: never;
|
|
1143
|
+
url: '/api/connections/connections/{connectionId}';
|
|
1144
|
+
};
|
|
1145
|
+
export type UpdateConnectionErrors = {
|
|
1146
|
+
/**
|
|
1147
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1148
|
+
*/
|
|
1149
|
+
400: Problem;
|
|
1150
|
+
/**
|
|
1151
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1152
|
+
*/
|
|
1153
|
+
401: Problem;
|
|
1154
|
+
/**
|
|
1155
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1156
|
+
*/
|
|
1157
|
+
403: Problem;
|
|
1158
|
+
/**
|
|
1159
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1160
|
+
*/
|
|
1161
|
+
404: Problem;
|
|
1162
|
+
/**
|
|
1163
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1164
|
+
*/
|
|
1165
|
+
409: Problem;
|
|
1166
|
+
/**
|
|
1167
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1168
|
+
*/
|
|
1169
|
+
412: Problem;
|
|
1170
|
+
/**
|
|
1171
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1172
|
+
*/
|
|
1173
|
+
413: Problem;
|
|
1174
|
+
/**
|
|
1175
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1176
|
+
*/
|
|
1177
|
+
415: Problem;
|
|
1178
|
+
/**
|
|
1179
|
+
* Request limit reached; code rate_limited.
|
|
1180
|
+
*/
|
|
1181
|
+
429: Problem;
|
|
1182
|
+
/**
|
|
1183
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1184
|
+
*/
|
|
1185
|
+
500: Problem;
|
|
1186
|
+
/**
|
|
1187
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1188
|
+
*/
|
|
1189
|
+
503: Problem;
|
|
1190
|
+
};
|
|
1191
|
+
export type UpdateConnectionError = UpdateConnectionErrors[keyof UpdateConnectionErrors];
|
|
1192
|
+
export type UpdateConnectionResponses = {
|
|
1193
|
+
/**
|
|
1194
|
+
* Current resource.
|
|
1195
|
+
*/
|
|
1196
|
+
200: Connection;
|
|
1197
|
+
};
|
|
1198
|
+
export type UpdateConnectionResponse = UpdateConnectionResponses[keyof UpdateConnectionResponses];
|
|
1199
|
+
export type StartConnectionSetupData = {
|
|
1200
|
+
body: StartConnectionSetup;
|
|
1201
|
+
headers: {
|
|
1202
|
+
/**
|
|
1203
|
+
* Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
|
|
1204
|
+
*/
|
|
1205
|
+
'if-match': string;
|
|
1206
|
+
/**
|
|
1207
|
+
* Stable for one logical request; scoped by server, actor and operation kind.
|
|
1208
|
+
*/
|
|
1209
|
+
'idempotency-key': string;
|
|
1210
|
+
/**
|
|
1211
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
1212
|
+
*/
|
|
1213
|
+
'x-clawscarf-administrator': string;
|
|
1214
|
+
};
|
|
1215
|
+
path: {
|
|
1216
|
+
connectionId: Id;
|
|
1217
|
+
};
|
|
1218
|
+
query?: never;
|
|
1219
|
+
url: '/api/connections/connections/{connectionId}/setups';
|
|
1220
|
+
};
|
|
1221
|
+
export type StartConnectionSetupErrors = {
|
|
1222
|
+
/**
|
|
1223
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1224
|
+
*/
|
|
1225
|
+
400: Problem;
|
|
1226
|
+
/**
|
|
1227
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1228
|
+
*/
|
|
1229
|
+
401: Problem;
|
|
1230
|
+
/**
|
|
1231
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1232
|
+
*/
|
|
1233
|
+
403: Problem;
|
|
1234
|
+
/**
|
|
1235
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1236
|
+
*/
|
|
1237
|
+
404: Problem;
|
|
1238
|
+
/**
|
|
1239
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1240
|
+
*/
|
|
1241
|
+
409: Problem;
|
|
1242
|
+
/**
|
|
1243
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1244
|
+
*/
|
|
1245
|
+
412: Problem;
|
|
1246
|
+
/**
|
|
1247
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1248
|
+
*/
|
|
1249
|
+
413: Problem;
|
|
1250
|
+
/**
|
|
1251
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1252
|
+
*/
|
|
1253
|
+
415: Problem;
|
|
1254
|
+
/**
|
|
1255
|
+
* Request limit reached; code rate_limited.
|
|
1256
|
+
*/
|
|
1257
|
+
429: Problem;
|
|
1258
|
+
/**
|
|
1259
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1260
|
+
*/
|
|
1261
|
+
500: Problem;
|
|
1262
|
+
/**
|
|
1263
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1264
|
+
*/
|
|
1265
|
+
503: Problem;
|
|
1266
|
+
};
|
|
1267
|
+
export type StartConnectionSetupError = StartConnectionSetupErrors[keyof StartConnectionSetupErrors];
|
|
1268
|
+
export type StartConnectionSetupResponses = {
|
|
1269
|
+
/**
|
|
1270
|
+
* Current resource.
|
|
1271
|
+
*/
|
|
1272
|
+
202: ConnectionSetupContinuation;
|
|
1273
|
+
};
|
|
1274
|
+
export type StartConnectionSetupResponse = StartConnectionSetupResponses[keyof StartConnectionSetupResponses];
|
|
1275
|
+
export type CancelConnectionSetupData = {
|
|
1276
|
+
body?: never;
|
|
1277
|
+
headers: {
|
|
1278
|
+
/**
|
|
1279
|
+
* Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
|
|
1280
|
+
*/
|
|
1281
|
+
'if-match': string;
|
|
1282
|
+
/**
|
|
1283
|
+
* Stable for one logical request; scoped by server, actor and operation kind.
|
|
1284
|
+
*/
|
|
1285
|
+
'idempotency-key': string;
|
|
1286
|
+
/**
|
|
1287
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
1288
|
+
*/
|
|
1289
|
+
'x-clawscarf-administrator': string;
|
|
1290
|
+
};
|
|
1291
|
+
path: {
|
|
1292
|
+
connectionId: Id;
|
|
1293
|
+
setupId: Id;
|
|
1294
|
+
};
|
|
1295
|
+
query?: never;
|
|
1296
|
+
url: '/api/connections/connections/{connectionId}/setups/{setupId}';
|
|
1297
|
+
};
|
|
1298
|
+
export type CancelConnectionSetupErrors = {
|
|
1299
|
+
/**
|
|
1300
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1301
|
+
*/
|
|
1302
|
+
400: Problem;
|
|
1303
|
+
/**
|
|
1304
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1305
|
+
*/
|
|
1306
|
+
401: Problem;
|
|
1307
|
+
/**
|
|
1308
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1309
|
+
*/
|
|
1310
|
+
403: Problem;
|
|
1311
|
+
/**
|
|
1312
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1313
|
+
*/
|
|
1314
|
+
404: Problem;
|
|
1315
|
+
/**
|
|
1316
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1317
|
+
*/
|
|
1318
|
+
409: Problem;
|
|
1319
|
+
/**
|
|
1320
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1321
|
+
*/
|
|
1322
|
+
412: Problem;
|
|
1323
|
+
/**
|
|
1324
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1325
|
+
*/
|
|
1326
|
+
413: Problem;
|
|
1327
|
+
/**
|
|
1328
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1329
|
+
*/
|
|
1330
|
+
415: Problem;
|
|
1331
|
+
/**
|
|
1332
|
+
* Request limit reached; code rate_limited.
|
|
1333
|
+
*/
|
|
1334
|
+
429: Problem;
|
|
1335
|
+
/**
|
|
1336
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1337
|
+
*/
|
|
1338
|
+
500: Problem;
|
|
1339
|
+
/**
|
|
1340
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1341
|
+
*/
|
|
1342
|
+
503: Problem;
|
|
1343
|
+
};
|
|
1344
|
+
export type CancelConnectionSetupError = CancelConnectionSetupErrors[keyof CancelConnectionSetupErrors];
|
|
1345
|
+
export type CancelConnectionSetupResponses = {
|
|
1346
|
+
/**
|
|
1347
|
+
* Current resource.
|
|
1348
|
+
*/
|
|
1349
|
+
200: ConnectionSetup;
|
|
1350
|
+
};
|
|
1351
|
+
export type CancelConnectionSetupResponse = CancelConnectionSetupResponses[keyof CancelConnectionSetupResponses];
|
|
1352
|
+
export type GetConnectionSetupData = {
|
|
1353
|
+
body?: never;
|
|
1354
|
+
headers: {
|
|
1355
|
+
/**
|
|
1356
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
1357
|
+
*/
|
|
1358
|
+
'x-clawscarf-administrator': string;
|
|
1359
|
+
};
|
|
1360
|
+
path: {
|
|
1361
|
+
connectionId: Id;
|
|
1362
|
+
setupId: Id;
|
|
1363
|
+
};
|
|
1364
|
+
query?: never;
|
|
1365
|
+
url: '/api/connections/connections/{connectionId}/setups/{setupId}';
|
|
1366
|
+
};
|
|
1367
|
+
export type GetConnectionSetupErrors = {
|
|
1368
|
+
/**
|
|
1369
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1370
|
+
*/
|
|
1371
|
+
400: Problem;
|
|
1372
|
+
/**
|
|
1373
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1374
|
+
*/
|
|
1375
|
+
401: Problem;
|
|
1376
|
+
/**
|
|
1377
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1378
|
+
*/
|
|
1379
|
+
403: Problem;
|
|
1380
|
+
/**
|
|
1381
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1382
|
+
*/
|
|
1383
|
+
404: Problem;
|
|
1384
|
+
/**
|
|
1385
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1386
|
+
*/
|
|
1387
|
+
409: Problem;
|
|
1388
|
+
/**
|
|
1389
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1390
|
+
*/
|
|
1391
|
+
412: Problem;
|
|
1392
|
+
/**
|
|
1393
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1394
|
+
*/
|
|
1395
|
+
413: Problem;
|
|
1396
|
+
/**
|
|
1397
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1398
|
+
*/
|
|
1399
|
+
415: Problem;
|
|
1400
|
+
/**
|
|
1401
|
+
* Request limit reached; code rate_limited.
|
|
1402
|
+
*/
|
|
1403
|
+
429: Problem;
|
|
1404
|
+
/**
|
|
1405
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1406
|
+
*/
|
|
1407
|
+
500: Problem;
|
|
1408
|
+
/**
|
|
1409
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1410
|
+
*/
|
|
1411
|
+
503: Problem;
|
|
1412
|
+
};
|
|
1413
|
+
export type GetConnectionSetupError = GetConnectionSetupErrors[keyof GetConnectionSetupErrors];
|
|
1414
|
+
export type GetConnectionSetupResponses = {
|
|
1415
|
+
/**
|
|
1416
|
+
* Current resource.
|
|
1417
|
+
*/
|
|
1418
|
+
200: ConnectionSetupContinuation;
|
|
1419
|
+
};
|
|
1420
|
+
export type GetConnectionSetupResponse = GetConnectionSetupResponses[keyof GetConnectionSetupResponses];
|
|
1421
|
+
export type RefreshConnectionData = {
|
|
1422
|
+
body?: never;
|
|
1423
|
+
headers: {
|
|
1424
|
+
/**
|
|
1425
|
+
* Quoted current connection revision, for example "3". Applies to the connection record, not the installation or provider configuration.
|
|
1426
|
+
*/
|
|
1427
|
+
'if-match': string;
|
|
1428
|
+
/**
|
|
1429
|
+
* Stable for one logical request; scoped by server, actor and operation kind.
|
|
1430
|
+
*/
|
|
1431
|
+
'idempotency-key': string;
|
|
1432
|
+
/**
|
|
1433
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
1434
|
+
*/
|
|
1435
|
+
'x-clawscarf-administrator': string;
|
|
1436
|
+
};
|
|
1437
|
+
path: {
|
|
1438
|
+
connectionId: Id;
|
|
1439
|
+
};
|
|
1440
|
+
query?: never;
|
|
1441
|
+
url: '/api/connections/connections/{connectionId}/refresh';
|
|
1442
|
+
};
|
|
1443
|
+
export type RefreshConnectionErrors = {
|
|
1444
|
+
/**
|
|
1445
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1446
|
+
*/
|
|
1447
|
+
400: Problem;
|
|
1448
|
+
/**
|
|
1449
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1450
|
+
*/
|
|
1451
|
+
401: Problem;
|
|
1452
|
+
/**
|
|
1453
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1454
|
+
*/
|
|
1455
|
+
403: Problem;
|
|
1456
|
+
/**
|
|
1457
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1458
|
+
*/
|
|
1459
|
+
404: Problem;
|
|
1460
|
+
/**
|
|
1461
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1462
|
+
*/
|
|
1463
|
+
409: Problem;
|
|
1464
|
+
/**
|
|
1465
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1466
|
+
*/
|
|
1467
|
+
412: Problem;
|
|
1468
|
+
/**
|
|
1469
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1470
|
+
*/
|
|
1471
|
+
413: Problem;
|
|
1472
|
+
/**
|
|
1473
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1474
|
+
*/
|
|
1475
|
+
415: Problem;
|
|
1476
|
+
/**
|
|
1477
|
+
* Request limit reached; code rate_limited.
|
|
1478
|
+
*/
|
|
1479
|
+
429: Problem;
|
|
1480
|
+
/**
|
|
1481
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1482
|
+
*/
|
|
1483
|
+
500: Problem;
|
|
1484
|
+
/**
|
|
1485
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1486
|
+
*/
|
|
1487
|
+
503: Problem;
|
|
1488
|
+
};
|
|
1489
|
+
export type RefreshConnectionError = RefreshConnectionErrors[keyof RefreshConnectionErrors];
|
|
1490
|
+
export type RefreshConnectionResponses = {
|
|
1491
|
+
/**
|
|
1492
|
+
* Current resource.
|
|
1493
|
+
*/
|
|
1494
|
+
200: Connection;
|
|
1495
|
+
};
|
|
1496
|
+
export type RefreshConnectionResponse = RefreshConnectionResponses[keyof RefreshConnectionResponses];
|
|
1497
|
+
export type SearchConnectorRuntimeData = {
|
|
1498
|
+
body: ConnectorRuntimeSearch;
|
|
1499
|
+
path?: never;
|
|
1500
|
+
query?: never;
|
|
1501
|
+
url: '/api/connections/connector-runtime/search';
|
|
1502
|
+
};
|
|
1503
|
+
export type SearchConnectorRuntimeErrors = {
|
|
1504
|
+
/**
|
|
1505
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1506
|
+
*/
|
|
1507
|
+
400: Problem;
|
|
1508
|
+
/**
|
|
1509
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1510
|
+
*/
|
|
1511
|
+
401: Problem;
|
|
1512
|
+
/**
|
|
1513
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1514
|
+
*/
|
|
1515
|
+
403: Problem;
|
|
1516
|
+
/**
|
|
1517
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1518
|
+
*/
|
|
1519
|
+
404: Problem;
|
|
1520
|
+
/**
|
|
1521
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1522
|
+
*/
|
|
1523
|
+
409: Problem;
|
|
1524
|
+
/**
|
|
1525
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1526
|
+
*/
|
|
1527
|
+
412: Problem;
|
|
1528
|
+
/**
|
|
1529
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1530
|
+
*/
|
|
1531
|
+
413: Problem;
|
|
1532
|
+
/**
|
|
1533
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1534
|
+
*/
|
|
1535
|
+
415: Problem;
|
|
1536
|
+
/**
|
|
1537
|
+
* Request limit reached; code rate_limited.
|
|
1538
|
+
*/
|
|
1539
|
+
429: Problem;
|
|
1540
|
+
/**
|
|
1541
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1542
|
+
*/
|
|
1543
|
+
500: Problem;
|
|
1544
|
+
/**
|
|
1545
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1546
|
+
*/
|
|
1547
|
+
503: Problem;
|
|
1548
|
+
};
|
|
1549
|
+
export type SearchConnectorRuntimeError = SearchConnectorRuntimeErrors[keyof SearchConnectorRuntimeErrors];
|
|
1550
|
+
export type SearchConnectorRuntimeResponses = {
|
|
1551
|
+
/**
|
|
1552
|
+
* Current resource.
|
|
1553
|
+
*/
|
|
1554
|
+
200: ConnectorRuntimeSearchResult;
|
|
1555
|
+
};
|
|
1556
|
+
export type SearchConnectorRuntimeResponse = SearchConnectorRuntimeResponses[keyof SearchConnectorRuntimeResponses];
|
|
1557
|
+
export type DescribeConnectorRuntimeData = {
|
|
1558
|
+
body: ConnectorRuntimeDescribe;
|
|
1559
|
+
path?: never;
|
|
1560
|
+
query?: never;
|
|
1561
|
+
url: '/api/connections/connector-runtime/describe';
|
|
1562
|
+
};
|
|
1563
|
+
export type DescribeConnectorRuntimeErrors = {
|
|
1564
|
+
/**
|
|
1565
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1566
|
+
*/
|
|
1567
|
+
400: Problem;
|
|
1568
|
+
/**
|
|
1569
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1570
|
+
*/
|
|
1571
|
+
401: Problem;
|
|
1572
|
+
/**
|
|
1573
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1574
|
+
*/
|
|
1575
|
+
403: Problem;
|
|
1576
|
+
/**
|
|
1577
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1578
|
+
*/
|
|
1579
|
+
404: Problem;
|
|
1580
|
+
/**
|
|
1581
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1582
|
+
*/
|
|
1583
|
+
409: Problem;
|
|
1584
|
+
/**
|
|
1585
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1586
|
+
*/
|
|
1587
|
+
412: Problem;
|
|
1588
|
+
/**
|
|
1589
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1590
|
+
*/
|
|
1591
|
+
413: Problem;
|
|
1592
|
+
/**
|
|
1593
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1594
|
+
*/
|
|
1595
|
+
415: Problem;
|
|
1596
|
+
/**
|
|
1597
|
+
* Request limit reached; code rate_limited.
|
|
1598
|
+
*/
|
|
1599
|
+
429: Problem;
|
|
1600
|
+
/**
|
|
1601
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1602
|
+
*/
|
|
1603
|
+
500: Problem;
|
|
1604
|
+
/**
|
|
1605
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1606
|
+
*/
|
|
1607
|
+
503: Problem;
|
|
1608
|
+
};
|
|
1609
|
+
export type DescribeConnectorRuntimeError = DescribeConnectorRuntimeErrors[keyof DescribeConnectorRuntimeErrors];
|
|
1610
|
+
export type DescribeConnectorRuntimeResponses = {
|
|
1611
|
+
/**
|
|
1612
|
+
* Current resource.
|
|
1613
|
+
*/
|
|
1614
|
+
200: ConnectorRuntimeDescription;
|
|
1615
|
+
};
|
|
1616
|
+
export type DescribeConnectorRuntimeResponse = DescribeConnectorRuntimeResponses[keyof DescribeConnectorRuntimeResponses];
|
|
1617
|
+
export type CallConnectorRuntimeData = {
|
|
1618
|
+
body: ConnectorRuntimeCall;
|
|
1619
|
+
path?: never;
|
|
1620
|
+
query?: never;
|
|
1621
|
+
url: '/api/connections/connector-runtime/call';
|
|
1622
|
+
};
|
|
1623
|
+
export type CallConnectorRuntimeErrors = {
|
|
1624
|
+
/**
|
|
1625
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1626
|
+
*/
|
|
1627
|
+
400: Problem;
|
|
1628
|
+
/**
|
|
1629
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1630
|
+
*/
|
|
1631
|
+
401: Problem;
|
|
1632
|
+
/**
|
|
1633
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1634
|
+
*/
|
|
1635
|
+
403: Problem;
|
|
1636
|
+
/**
|
|
1637
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1638
|
+
*/
|
|
1639
|
+
404: Problem;
|
|
1640
|
+
/**
|
|
1641
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1642
|
+
*/
|
|
1643
|
+
409: Problem;
|
|
1644
|
+
/**
|
|
1645
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1646
|
+
*/
|
|
1647
|
+
412: Problem;
|
|
1648
|
+
/**
|
|
1649
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1650
|
+
*/
|
|
1651
|
+
413: Problem;
|
|
1652
|
+
/**
|
|
1653
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1654
|
+
*/
|
|
1655
|
+
415: Problem;
|
|
1656
|
+
/**
|
|
1657
|
+
* Request limit reached; code rate_limited.
|
|
1658
|
+
*/
|
|
1659
|
+
429: Problem;
|
|
1660
|
+
/**
|
|
1661
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1662
|
+
*/
|
|
1663
|
+
500: Problem;
|
|
1664
|
+
/**
|
|
1665
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1666
|
+
*/
|
|
1667
|
+
503: Problem;
|
|
1668
|
+
};
|
|
1669
|
+
export type CallConnectorRuntimeError = CallConnectorRuntimeErrors[keyof CallConnectorRuntimeErrors];
|
|
1670
|
+
export type CallConnectorRuntimeResponses = {
|
|
1671
|
+
/**
|
|
1672
|
+
* Current resource.
|
|
1673
|
+
*/
|
|
1674
|
+
200: ConnectorRuntimeInvocation;
|
|
1675
|
+
};
|
|
1676
|
+
export type CallConnectorRuntimeResponse = CallConnectorRuntimeResponses[keyof CallConnectorRuntimeResponses];
|
|
1677
|
+
export type GetConnectorRuntimeInvocationData = {
|
|
1678
|
+
body?: never;
|
|
1679
|
+
path: {
|
|
1680
|
+
invocationId: Id;
|
|
1681
|
+
};
|
|
1682
|
+
query: {
|
|
1683
|
+
agentId: string;
|
|
1684
|
+
};
|
|
1685
|
+
url: '/api/connections/connector-runtime/invocations/{invocationId}';
|
|
1686
|
+
};
|
|
1687
|
+
export type GetConnectorRuntimeInvocationErrors = {
|
|
1688
|
+
/**
|
|
1689
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1690
|
+
*/
|
|
1691
|
+
400: Problem;
|
|
1692
|
+
/**
|
|
1693
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1694
|
+
*/
|
|
1695
|
+
401: Problem;
|
|
1696
|
+
/**
|
|
1697
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1698
|
+
*/
|
|
1699
|
+
403: Problem;
|
|
1700
|
+
/**
|
|
1701
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1702
|
+
*/
|
|
1703
|
+
404: Problem;
|
|
1704
|
+
/**
|
|
1705
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1706
|
+
*/
|
|
1707
|
+
409: Problem;
|
|
1708
|
+
/**
|
|
1709
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1710
|
+
*/
|
|
1711
|
+
412: Problem;
|
|
1712
|
+
/**
|
|
1713
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1714
|
+
*/
|
|
1715
|
+
413: Problem;
|
|
1716
|
+
/**
|
|
1717
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1718
|
+
*/
|
|
1719
|
+
415: Problem;
|
|
1720
|
+
/**
|
|
1721
|
+
* Request limit reached; code rate_limited.
|
|
1722
|
+
*/
|
|
1723
|
+
429: Problem;
|
|
1724
|
+
/**
|
|
1725
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1726
|
+
*/
|
|
1727
|
+
500: Problem;
|
|
1728
|
+
/**
|
|
1729
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1730
|
+
*/
|
|
1731
|
+
503: Problem;
|
|
1732
|
+
};
|
|
1733
|
+
export type GetConnectorRuntimeInvocationError = GetConnectorRuntimeInvocationErrors[keyof GetConnectorRuntimeInvocationErrors];
|
|
1734
|
+
export type GetConnectorRuntimeInvocationResponses = {
|
|
1735
|
+
/**
|
|
1736
|
+
* Current resource.
|
|
1737
|
+
*/
|
|
1738
|
+
200: ConnectorRuntimeInvocation;
|
|
1739
|
+
};
|
|
1740
|
+
export type GetConnectorRuntimeInvocationResponse = GetConnectorRuntimeInvocationResponses[keyof GetConnectorRuntimeInvocationResponses];
|
|
1741
|
+
export type GetConnectorRuntimeResultPageData = {
|
|
1742
|
+
body?: never;
|
|
1743
|
+
path: {
|
|
1744
|
+
invocationId: Id;
|
|
1745
|
+
};
|
|
1746
|
+
query: {
|
|
1747
|
+
agentId: string;
|
|
1748
|
+
cursor?: string;
|
|
1749
|
+
};
|
|
1750
|
+
url: '/api/connections/connector-runtime/invocations/{invocationId}/result';
|
|
1751
|
+
};
|
|
1752
|
+
export type GetConnectorRuntimeResultPageErrors = {
|
|
1753
|
+
/**
|
|
1754
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1755
|
+
*/
|
|
1756
|
+
400: Problem;
|
|
1757
|
+
/**
|
|
1758
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1759
|
+
*/
|
|
1760
|
+
401: Problem;
|
|
1761
|
+
/**
|
|
1762
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1763
|
+
*/
|
|
1764
|
+
403: Problem;
|
|
1765
|
+
/**
|
|
1766
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1767
|
+
*/
|
|
1768
|
+
404: Problem;
|
|
1769
|
+
/**
|
|
1770
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1771
|
+
*/
|
|
1772
|
+
409: Problem;
|
|
1773
|
+
/**
|
|
1774
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1775
|
+
*/
|
|
1776
|
+
412: Problem;
|
|
1777
|
+
/**
|
|
1778
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1779
|
+
*/
|
|
1780
|
+
413: Problem;
|
|
1781
|
+
/**
|
|
1782
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1783
|
+
*/
|
|
1784
|
+
415: Problem;
|
|
1785
|
+
/**
|
|
1786
|
+
* Request limit reached; code rate_limited.
|
|
1787
|
+
*/
|
|
1788
|
+
429: Problem;
|
|
1789
|
+
/**
|
|
1790
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1791
|
+
*/
|
|
1792
|
+
500: Problem;
|
|
1793
|
+
/**
|
|
1794
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1795
|
+
*/
|
|
1796
|
+
503: Problem;
|
|
1797
|
+
};
|
|
1798
|
+
export type GetConnectorRuntimeResultPageError = GetConnectorRuntimeResultPageErrors[keyof GetConnectorRuntimeResultPageErrors];
|
|
1799
|
+
export type GetConnectorRuntimeResultPageResponses = {
|
|
1800
|
+
/**
|
|
1801
|
+
* Current resource.
|
|
1802
|
+
*/
|
|
1803
|
+
200: ConnectorRuntimeResultPage;
|
|
1804
|
+
};
|
|
1805
|
+
export type GetConnectorRuntimeResultPageResponse = GetConnectorRuntimeResultPageResponses[keyof GetConnectorRuntimeResultPageResponses];
|
|
1806
|
+
export type LookupConnectorRuntimeInvocationData = {
|
|
1807
|
+
body: ConnectorRuntimeInvocationLookup;
|
|
1808
|
+
path?: never;
|
|
1809
|
+
query?: never;
|
|
1810
|
+
url: '/api/connections/connector-runtime/invocations/lookup';
|
|
1811
|
+
};
|
|
1812
|
+
export type LookupConnectorRuntimeInvocationErrors = {
|
|
1813
|
+
/**
|
|
1814
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1815
|
+
*/
|
|
1816
|
+
400: Problem;
|
|
1817
|
+
/**
|
|
1818
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1819
|
+
*/
|
|
1820
|
+
401: Problem;
|
|
1821
|
+
/**
|
|
1822
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1823
|
+
*/
|
|
1824
|
+
403: Problem;
|
|
1825
|
+
/**
|
|
1826
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1827
|
+
*/
|
|
1828
|
+
404: Problem;
|
|
1829
|
+
/**
|
|
1830
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
1831
|
+
*/
|
|
1832
|
+
409: Problem;
|
|
1833
|
+
/**
|
|
1834
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
1835
|
+
*/
|
|
1836
|
+
412: Problem;
|
|
1837
|
+
/**
|
|
1838
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
1839
|
+
*/
|
|
1840
|
+
413: Problem;
|
|
1841
|
+
/**
|
|
1842
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
1843
|
+
*/
|
|
1844
|
+
415: Problem;
|
|
1845
|
+
/**
|
|
1846
|
+
* Request limit reached; code rate_limited.
|
|
1847
|
+
*/
|
|
1848
|
+
429: Problem;
|
|
1849
|
+
/**
|
|
1850
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
1851
|
+
*/
|
|
1852
|
+
500: Problem;
|
|
1853
|
+
/**
|
|
1854
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1855
|
+
*/
|
|
1856
|
+
503: Problem;
|
|
1857
|
+
};
|
|
1858
|
+
export type LookupConnectorRuntimeInvocationError = LookupConnectorRuntimeInvocationErrors[keyof LookupConnectorRuntimeInvocationErrors];
|
|
1859
|
+
export type LookupConnectorRuntimeInvocationResponses = {
|
|
1860
|
+
/**
|
|
1861
|
+
* Current resource.
|
|
1862
|
+
*/
|
|
1863
|
+
200: ConnectorRuntimeInvocation;
|
|
1864
|
+
};
|
|
1865
|
+
export type LookupConnectorRuntimeInvocationResponse = LookupConnectorRuntimeInvocationResponses[keyof LookupConnectorRuntimeInvocationResponses];
|
|
1866
|
+
export type CompleteConnectionSetupData = {
|
|
1867
|
+
body: {
|
|
1868
|
+
sessionUri: string;
|
|
1869
|
+
};
|
|
1870
|
+
headers: {
|
|
1871
|
+
/**
|
|
1872
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
1873
|
+
*/
|
|
1874
|
+
'x-clawscarf-administrator': string;
|
|
1875
|
+
};
|
|
1876
|
+
path: {
|
|
1877
|
+
connectionId: Id;
|
|
1878
|
+
setupId: Id;
|
|
1879
|
+
};
|
|
1880
|
+
query?: never;
|
|
1881
|
+
url: '/api/connections/connections/{connectionId}/setups/{setupId}/complete';
|
|
1882
|
+
};
|
|
1883
|
+
export type CompleteConnectionSetupErrors = {
|
|
1884
|
+
/**
|
|
1885
|
+
* Request failed
|
|
1886
|
+
*/
|
|
1887
|
+
default: ConnectionProblem;
|
|
1888
|
+
};
|
|
1889
|
+
export type CompleteConnectionSetupError = CompleteConnectionSetupErrors[keyof CompleteConnectionSetupErrors];
|
|
1890
|
+
export type CompleteConnectionSetupResponses = {
|
|
1891
|
+
/**
|
|
1892
|
+
* The authorized connection destination, including a recovered completion.
|
|
1893
|
+
*/
|
|
1894
|
+
200: ConnectionReturnDestination;
|
|
1895
|
+
};
|
|
1896
|
+
export type CompleteConnectionSetupResponse = CompleteConnectionSetupResponses[keyof CompleteConnectionSetupResponses];
|
|
1897
|
+
export type MaintainConnectionsData = {
|
|
1898
|
+
body?: never;
|
|
1899
|
+
path?: never;
|
|
1900
|
+
query?: never;
|
|
1901
|
+
url: '/api/cron/connections';
|
|
1902
|
+
};
|
|
1903
|
+
export type MaintainConnectionsErrors = {
|
|
1904
|
+
/**
|
|
1905
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1906
|
+
*/
|
|
1907
|
+
401: Problem;
|
|
1908
|
+
/**
|
|
1909
|
+
* Required service unavailable; code dependency_unavailable.
|
|
1910
|
+
*/
|
|
1911
|
+
503: Problem;
|
|
1912
|
+
};
|
|
1913
|
+
export type MaintainConnectionsError = MaintainConnectionsErrors[keyof MaintainConnectionsErrors];
|
|
1914
|
+
export type MaintainConnectionsResponses = {
|
|
1915
|
+
/**
|
|
1916
|
+
* Bounded cleanup pass. Pending work remains stored for the next invocation.
|
|
1917
|
+
*/
|
|
1918
|
+
200: {
|
|
1919
|
+
status: 'completed' | 'pending';
|
|
1920
|
+
};
|
|
1921
|
+
};
|
|
1922
|
+
export type MaintainConnectionsResponse = MaintainConnectionsResponses[keyof MaintainConnectionsResponses];
|
|
1923
|
+
export type ReturnConnectionCallbackData = {
|
|
1924
|
+
body?: never;
|
|
1925
|
+
path?: never;
|
|
1926
|
+
query: {
|
|
1927
|
+
session_uri: string;
|
|
1928
|
+
};
|
|
1929
|
+
url: '/connections/callback';
|
|
1930
|
+
};
|
|
1931
|
+
export type ReturnConnectionCallbackErrors = {
|
|
1932
|
+
/**
|
|
1933
|
+
* Request failed
|
|
1934
|
+
*/
|
|
1935
|
+
default: ConnectionProblem;
|
|
1936
|
+
};
|
|
1937
|
+
export type ReturnConnectionCallbackError = ReturnConnectionCallbackErrors[keyof ReturnConnectionCallbackErrors];
|
|
1938
|
+
export type ReturnConnectionCallbackResponses = {
|
|
1939
|
+
/**
|
|
1940
|
+
* Return the opaque provider receipt through this browser to its installation; no activation occurs here.
|
|
1941
|
+
*/
|
|
1942
|
+
200: string;
|
|
1943
|
+
};
|
|
1944
|
+
export type ReturnConnectionCallbackResponse = ReturnConnectionCallbackResponses[keyof ReturnConnectionCallbackResponses];
|
|
1945
|
+
export type BeginConnectionSetupBrowserData = {
|
|
1946
|
+
body?: never;
|
|
1947
|
+
path: {
|
|
1948
|
+
installationId: string;
|
|
1949
|
+
};
|
|
1950
|
+
query: {
|
|
1951
|
+
ticket: string;
|
|
1952
|
+
};
|
|
1953
|
+
url: '/connections/start/{installationId}';
|
|
1954
|
+
};
|
|
1955
|
+
export type BeginConnectionSetupBrowserErrors = {
|
|
1956
|
+
/**
|
|
1957
|
+
* Request failed
|
|
1958
|
+
*/
|
|
1959
|
+
default: ConnectionProblem;
|
|
1960
|
+
};
|
|
1961
|
+
export type BeginConnectionSetupBrowserError = BeginConnectionSetupBrowserErrors[keyof BeginConnectionSetupBrowserErrors];
|
|
1962
|
+
export type BeginConnectionSetupBrowserResponses = {
|
|
1963
|
+
/**
|
|
1964
|
+
* Remember this setup in the browser tab and redirect to provider consent.
|
|
1965
|
+
*/
|
|
1966
|
+
200: string;
|
|
1967
|
+
};
|
|
1968
|
+
export type BeginConnectionSetupBrowserResponse = BeginConnectionSetupBrowserResponses[keyof BeginConnectionSetupBrowserResponses];
|
|
1969
|
+
export type GetConnectionUsageData = {
|
|
1970
|
+
body?: never;
|
|
1971
|
+
headers: {
|
|
1972
|
+
/**
|
|
1973
|
+
* Base64url JSON from trusted installation Access after checking current native administrator authority: userId, sessionHash, verifiedAt, agentIds and the installation browser origin. Never accepted directly from a browser.
|
|
1974
|
+
*/
|
|
1975
|
+
'x-clawscarf-administrator': string;
|
|
1976
|
+
};
|
|
1977
|
+
path?: never;
|
|
1978
|
+
query?: never;
|
|
1979
|
+
url: '/api/connections/usage';
|
|
1980
|
+
};
|
|
1981
|
+
export type GetConnectionUsageErrors = {
|
|
1982
|
+
/**
|
|
1983
|
+
* Invalid JSON, field or request shape; code invalid_request.
|
|
1984
|
+
*/
|
|
1985
|
+
400: Problem;
|
|
1986
|
+
/**
|
|
1987
|
+
* Missing or invalid session or runtime credential; code unauthenticated.
|
|
1988
|
+
*/
|
|
1989
|
+
401: Problem;
|
|
1990
|
+
/**
|
|
1991
|
+
* Authenticated caller lacks the required current authority; code forbidden.
|
|
1992
|
+
*/
|
|
1993
|
+
403: Problem;
|
|
1994
|
+
/**
|
|
1995
|
+
* Resource absent or not accessible in the server; code not_found.
|
|
1996
|
+
*/
|
|
1997
|
+
404: Problem;
|
|
1998
|
+
/**
|
|
1999
|
+
* The command conflicts with current state or a previous idempotent request.
|
|
2000
|
+
*/
|
|
2001
|
+
409: Problem;
|
|
2002
|
+
/**
|
|
2003
|
+
* The observed resource revision is stale; code revision_conflict.
|
|
2004
|
+
*/
|
|
2005
|
+
412: Problem;
|
|
2006
|
+
/**
|
|
2007
|
+
* Request exceeds this route's configured body limit; code request_too_large.
|
|
2008
|
+
*/
|
|
2009
|
+
413: Problem;
|
|
2010
|
+
/**
|
|
2011
|
+
* Request body must use application/json; code unsupported_media_type.
|
|
2012
|
+
*/
|
|
2013
|
+
415: Problem;
|
|
2014
|
+
/**
|
|
2015
|
+
* Request limit reached; code rate_limited.
|
|
2016
|
+
*/
|
|
2017
|
+
429: Problem;
|
|
2018
|
+
/**
|
|
2019
|
+
* Safe failure response; no provider payload, stack trace or credential is exposed.
|
|
2020
|
+
*/
|
|
2021
|
+
500: Problem;
|
|
2022
|
+
/**
|
|
2023
|
+
* Required service unavailable; code dependency_unavailable.
|
|
2024
|
+
*/
|
|
2025
|
+
503: Problem;
|
|
2026
|
+
};
|
|
2027
|
+
export type GetConnectionUsageError = GetConnectionUsageErrors[keyof GetConnectionUsageErrors];
|
|
2028
|
+
export type GetConnectionUsageResponses = {
|
|
2029
|
+
/**
|
|
2030
|
+
* Current resource.
|
|
2031
|
+
*/
|
|
2032
|
+
200: ConnectionUsage;
|
|
2033
|
+
};
|
|
2034
|
+
export type GetConnectionUsageResponse = GetConnectionUsageResponses[keyof GetConnectionUsageResponses];
|