@onesi/genesis 0.0.1-stage → 0.1.13
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/README.md +29 -0
- package/dist/beacons.d.ts +103 -0
- package/dist/beacons.js +77 -0
- package/dist/blinds-owner-enrollment.d.ts +171 -0
- package/dist/blinds-owner-enrollment.js +150 -0
- package/dist/client.d.ts +19996 -0
- package/dist/client.js +277 -0
- package/dist/context.d.ts +50 -0
- package/dist/context.js +153 -0
- package/dist/dials.d.ts +299 -0
- package/dist/dials.js +100 -0
- package/dist/errors.d.ts +35 -0
- package/dist/errors.js +66 -0
- package/dist/flares.d.ts +170 -0
- package/dist/flares.js +56 -0
- package/dist/fleets.d.ts +186 -0
- package/dist/fleets.js +136 -0
- package/dist/flocks.d.ts +155 -0
- package/dist/flocks.js +39 -0
- package/dist/foundry-billing.d.ts +97 -0
- package/dist/foundry-billing.js +107 -0
- package/dist/gears.d.ts +107 -0
- package/dist/gears.js +20 -0
- package/dist/generated/operations.d.ts +19949 -0
- package/dist/generated/operations.js +23846 -0
- package/dist/generated/schema.d.ts +35413 -0
- package/dist/generated/schema.js +1 -0
- package/dist/genesis.d.ts +2926 -0
- package/dist/genesis.js +206 -0
- package/dist/genesis.openapi.json +49321 -0
- package/dist/henry.d.ts +168 -0
- package/dist/henry.js +45 -0
- package/dist/hives-cells.d.ts +127 -0
- package/dist/hives-cells.js +151 -0
- package/dist/hives-environment.d.ts +28 -0
- package/dist/hives-environment.js +58 -0
- package/dist/hives-functions.d.ts +36 -0
- package/dist/hives-functions.js +185 -0
- package/dist/hives-marketplace.d.ts +128 -0
- package/dist/hives-marketplace.js +187 -0
- package/dist/hives-node.d.ts +9 -0
- package/dist/hives-node.js +152 -0
- package/dist/hives-operations.d.ts +337 -0
- package/dist/hives-operations.js +41 -0
- package/dist/hives-queue-consumer.d.ts +56 -0
- package/dist/hives-queue-consumer.js +95 -0
- package/dist/hives-queue-funding.d.ts +28 -0
- package/dist/hives-queue-funding.js +81 -0
- package/dist/hives-queues.d.ts +137 -0
- package/dist/hives-queues.js +143 -0
- package/dist/hives-resources-transport.d.ts +23 -0
- package/dist/hives-resources-transport.js +204 -0
- package/dist/hives-response.d.ts +2 -0
- package/dist/hives-response.js +32 -0
- package/dist/hives-runtimes.d.ts +34 -0
- package/dist/hives-runtimes.js +32 -0
- package/dist/hives-topics.d.ts +51 -0
- package/dist/hives-topics.js +79 -0
- package/dist/hives-upload.d.ts +9 -0
- package/dist/hives-upload.js +23 -0
- package/dist/hives-volumes.d.ts +64 -0
- package/dist/hives-volumes.js +117 -0
- package/dist/idempotency.d.ts +4 -0
- package/dist/idempotency.js +17 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +25 -0
- package/dist/instances.d.ts +25 -0
- package/dist/instances.js +11 -0
- package/dist/lanes.d.ts +267 -0
- package/dist/lanes.js +41 -0
- package/dist/minds-agent.d.ts +60 -0
- package/dist/minds-agent.js +190 -0
- package/dist/minds-owner.d.ts +110 -0
- package/dist/minds-owner.js +226 -0
- package/dist/minds.d.ts +269 -0
- package/dist/minds.js +193 -0
- package/dist/relays-enrollment.d.ts +33 -0
- package/dist/relays-enrollment.js +115 -0
- package/dist/runner-grant.d.ts +10 -0
- package/dist/runner-grant.js +133 -0
- package/dist/runner.d.ts +68 -0
- package/dist/runner.js +116 -0
- package/dist/types.d.ts +87 -0
- package/dist/types.js +1 -0
- package/dist/urls.d.ts +6 -0
- package/dist/urls.js +31 -0
- package/package.json +49 -1
|
@@ -0,0 +1,2926 @@
|
|
|
1
|
+
import { type GenesisContextSelection } from './context.js';
|
|
2
|
+
import { GenesisClient, type GenesisOptions } from './client.js';
|
|
3
|
+
import type { OperationInput as In } from './types.js';
|
|
4
|
+
import type { components } from './generated/schema.js';
|
|
5
|
+
import { type HivesUploadOptions } from './hives-upload.js';
|
|
6
|
+
import { type HivesInvokeOptions } from './hives-functions.js';
|
|
7
|
+
type S = components['schemas'];
|
|
8
|
+
export type ChatMessage = {
|
|
9
|
+
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
10
|
+
content: string;
|
|
11
|
+
} & Record<string, unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* The Genesis SDK: one client, every service.
|
|
14
|
+
* const genesis = new Genesis(); // GENESIS_API_KEY or `genesis login`
|
|
15
|
+
* await genesis.hives.projects.list();
|
|
16
|
+
* await genesis.foundry.chat({ model: 'x', messages: [{ role: 'user', content: 'hi' }] });
|
|
17
|
+
*/
|
|
18
|
+
export declare class Genesis extends GenesisClient {
|
|
19
|
+
constructor(opts?: GenesisOptions);
|
|
20
|
+
/** Generic escape hatch: genesis.call('hives_list_projects', {...}) */
|
|
21
|
+
call: <K extends import("./index.js").OperationId>(operationId: K, input?: In<K>, init?: {
|
|
22
|
+
signal?: AbortSignal;
|
|
23
|
+
headers?: Record<string, string>;
|
|
24
|
+
}) => Promise<import("./types.js").OperationOutput<K>>;
|
|
25
|
+
readonly context: {
|
|
26
|
+
select: (selection: GenesisContextSelection, options?: {
|
|
27
|
+
signal?: AbortSignal;
|
|
28
|
+
}) => Promise<import("./context.js").GenesisContextSession>;
|
|
29
|
+
};
|
|
30
|
+
readonly minds: {
|
|
31
|
+
agent: {
|
|
32
|
+
memory: {
|
|
33
|
+
insert: (mind: string, event: import("./minds-agent.js").MindsAgentEventInput, options?: import("./minds-agent.js").MindsAgentOptions) => Promise<{
|
|
34
|
+
id: string;
|
|
35
|
+
}>;
|
|
36
|
+
get: (mind: string, storage_id: string, options?: import("./minds-agent.js").MindsAgentOptions) => Promise<{
|
|
37
|
+
item: components["schemas"]["Minds.EpisodicEvent"] | null;
|
|
38
|
+
}>;
|
|
39
|
+
search: (mind: string, text: string, limit?: number, options?: import("./minds-agent.js").MindsAgentOptions) => Promise<({
|
|
40
|
+
id: string;
|
|
41
|
+
content: string;
|
|
42
|
+
timestamp: string;
|
|
43
|
+
event_type: "Conversation" | "Command" | "Query" | "Document" | "Error" | "Success" | "Learning" | "Decision" | "Action" | "Context" | "Knowledge";
|
|
44
|
+
summary?: string | null;
|
|
45
|
+
tags: string[];
|
|
46
|
+
} & {
|
|
47
|
+
[key: string]: unknown;
|
|
48
|
+
})[]>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
list: (query?: In<"minds_listMinds">, options?: import("./minds.js").MindsRequestOptions) => Promise<{
|
|
52
|
+
schema_version: "minds.controller.v1";
|
|
53
|
+
items: components["schemas"]["Minds.Mind"][];
|
|
54
|
+
next_cursor: string | null;
|
|
55
|
+
context_sha256: string;
|
|
56
|
+
}>;
|
|
57
|
+
get: (mind_id: string, options?: import("./minds.js").MindsRequestOptions) => Promise<{
|
|
58
|
+
schema_version: "minds.controller.v1";
|
|
59
|
+
mind_id: string;
|
|
60
|
+
organization_id: string;
|
|
61
|
+
project_id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
region: string;
|
|
64
|
+
plan: "free" | "pro";
|
|
65
|
+
capacity: components["schemas"]["Minds.Capacity"];
|
|
66
|
+
observed_capacity: components["schemas"]["Minds.Capacity"] | null;
|
|
67
|
+
services: string[];
|
|
68
|
+
volume_id: string;
|
|
69
|
+
base_url: string;
|
|
70
|
+
desired_state: "running" | "stopped" | "deleted";
|
|
71
|
+
observed_state: "pending" | "running" | "stopped" | "deleted" | "failed" | "uncertain";
|
|
72
|
+
desired_generation: number;
|
|
73
|
+
observed_generation: number;
|
|
74
|
+
status: "ready" | "provisioning" | "stopped" | "deleted" | "failed" | "uncertain";
|
|
75
|
+
capacity_applied: boolean;
|
|
76
|
+
operation_id: string | null;
|
|
77
|
+
error_code: string | null;
|
|
78
|
+
created_at: string;
|
|
79
|
+
updated_at: string;
|
|
80
|
+
} & {
|
|
81
|
+
[key: string]: unknown;
|
|
82
|
+
}>;
|
|
83
|
+
usage: (window: In<"minds_getUsage">, options?: import("./minds.js").MindsRequestOptions) => Promise<{
|
|
84
|
+
schema_version: "minds.controller.v1";
|
|
85
|
+
organization_id: string;
|
|
86
|
+
project_id: string;
|
|
87
|
+
from: string;
|
|
88
|
+
to: string;
|
|
89
|
+
measured_at: string;
|
|
90
|
+
basis: "host_confirmed_intervals";
|
|
91
|
+
minds: components["schemas"]["Minds.UsageMind"][];
|
|
92
|
+
}>;
|
|
93
|
+
create: (name: string, options: import("./minds.js").MindsCreateOptions) => Promise<{
|
|
94
|
+
schema_version: "minds.controller.v1";
|
|
95
|
+
mind_id: string;
|
|
96
|
+
organization_id: string;
|
|
97
|
+
project_id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
region: string;
|
|
100
|
+
plan: "free" | "pro";
|
|
101
|
+
capacity: components["schemas"]["Minds.Capacity"];
|
|
102
|
+
observed_capacity: components["schemas"]["Minds.Capacity"] | null;
|
|
103
|
+
services: string[];
|
|
104
|
+
volume_id: string;
|
|
105
|
+
base_url: string;
|
|
106
|
+
desired_state: "running" | "stopped" | "deleted";
|
|
107
|
+
observed_state: "pending" | "running" | "stopped" | "deleted" | "failed" | "uncertain";
|
|
108
|
+
desired_generation: number;
|
|
109
|
+
observed_generation: number;
|
|
110
|
+
status: "ready" | "provisioning" | "stopped" | "deleted" | "failed" | "uncertain";
|
|
111
|
+
capacity_applied: boolean;
|
|
112
|
+
operation_id: string | null;
|
|
113
|
+
error_code: string | null;
|
|
114
|
+
created_at: string;
|
|
115
|
+
updated_at: string;
|
|
116
|
+
} & {
|
|
117
|
+
[key: string]: unknown;
|
|
118
|
+
}>;
|
|
119
|
+
resume: (mind_id: string, expected_generation: number, options: import("./minds.js").MindsResumeOptions) => Promise<{
|
|
120
|
+
schema_version: "minds.controller.v1";
|
|
121
|
+
mind_id: string;
|
|
122
|
+
organization_id: string;
|
|
123
|
+
project_id: string;
|
|
124
|
+
name: string;
|
|
125
|
+
region: string;
|
|
126
|
+
plan: "free" | "pro";
|
|
127
|
+
capacity: components["schemas"]["Minds.Capacity"];
|
|
128
|
+
observed_capacity: components["schemas"]["Minds.Capacity"] | null;
|
|
129
|
+
services: string[];
|
|
130
|
+
volume_id: string;
|
|
131
|
+
base_url: string;
|
|
132
|
+
desired_state: "running" | "stopped" | "deleted";
|
|
133
|
+
observed_state: "pending" | "running" | "stopped" | "deleted" | "failed" | "uncertain";
|
|
134
|
+
desired_generation: number;
|
|
135
|
+
observed_generation: number;
|
|
136
|
+
status: "ready" | "provisioning" | "stopped" | "deleted" | "failed" | "uncertain";
|
|
137
|
+
capacity_applied: boolean;
|
|
138
|
+
operation_id: string | null;
|
|
139
|
+
error_code: string | null;
|
|
140
|
+
created_at: string;
|
|
141
|
+
updated_at: string;
|
|
142
|
+
} & {
|
|
143
|
+
[key: string]: unknown;
|
|
144
|
+
}>;
|
|
145
|
+
stop: (mind_id: string, expected_generation: number, options: import("./minds.js").MindsStopOptions) => Promise<{
|
|
146
|
+
schema_version: "minds.controller.v1";
|
|
147
|
+
mind_id: string;
|
|
148
|
+
organization_id: string;
|
|
149
|
+
project_id: string;
|
|
150
|
+
name: string;
|
|
151
|
+
region: string;
|
|
152
|
+
plan: "free" | "pro";
|
|
153
|
+
capacity: components["schemas"]["Minds.Capacity"];
|
|
154
|
+
observed_capacity: components["schemas"]["Minds.Capacity"] | null;
|
|
155
|
+
services: string[];
|
|
156
|
+
volume_id: string;
|
|
157
|
+
base_url: string;
|
|
158
|
+
desired_state: "running" | "stopped" | "deleted";
|
|
159
|
+
observed_state: "pending" | "running" | "stopped" | "deleted" | "failed" | "uncertain";
|
|
160
|
+
desired_generation: number;
|
|
161
|
+
observed_generation: number;
|
|
162
|
+
status: "ready" | "provisioning" | "stopped" | "deleted" | "failed" | "uncertain";
|
|
163
|
+
capacity_applied: boolean;
|
|
164
|
+
operation_id: string | null;
|
|
165
|
+
error_code: string | null;
|
|
166
|
+
created_at: string;
|
|
167
|
+
updated_at: string;
|
|
168
|
+
} & {
|
|
169
|
+
[key: string]: unknown;
|
|
170
|
+
}>;
|
|
171
|
+
memory: {
|
|
172
|
+
insert: (mind: string, event: import("./minds.js").MindsEventInput, options?: import("./minds.js").MindsRequestOptions) => Promise<{
|
|
173
|
+
id: string;
|
|
174
|
+
}>;
|
|
175
|
+
get: (mind: string, storage_id: string, options?: import("./minds.js").MindsRequestOptions) => Promise<{
|
|
176
|
+
item: components["schemas"]["Minds.EpisodicEvent"] | null;
|
|
177
|
+
}>;
|
|
178
|
+
update: (mind: string, storage_id: string, body: {
|
|
179
|
+
event_id: string;
|
|
180
|
+
content: string;
|
|
181
|
+
}, options?: import("./minds.js").MindsRequestOptions) => Promise<{
|
|
182
|
+
ok: true;
|
|
183
|
+
}>;
|
|
184
|
+
search: (mind: string, text: string, limit?: number, options?: import("./minds.js").MindsRequestOptions) => Promise<({
|
|
185
|
+
id: string;
|
|
186
|
+
content: string;
|
|
187
|
+
timestamp: string;
|
|
188
|
+
event_type: "Conversation" | "Command" | "Query" | "Document" | "Error" | "Success" | "Learning" | "Decision" | "Action" | "Context" | "Knowledge";
|
|
189
|
+
summary?: string | null;
|
|
190
|
+
tags: string[];
|
|
191
|
+
} & {
|
|
192
|
+
[key: string]: unknown;
|
|
193
|
+
})[]>;
|
|
194
|
+
};
|
|
195
|
+
groups: {
|
|
196
|
+
list: (options?: import("./minds-owner.js").MindsOwnerOptions) => Promise<{
|
|
197
|
+
groups: components["schemas"]["Minds.OwnerAgentGroup"][];
|
|
198
|
+
}>;
|
|
199
|
+
create: (body: {
|
|
200
|
+
operationId: string;
|
|
201
|
+
name: string;
|
|
202
|
+
}, options?: import("./minds-owner.js").MindsOwnerOptions) => Promise<{
|
|
203
|
+
id: string;
|
|
204
|
+
organizationId: string;
|
|
205
|
+
ownerId: string;
|
|
206
|
+
organizationGeneration: number;
|
|
207
|
+
name: string;
|
|
208
|
+
version: number;
|
|
209
|
+
revokedAt: number | null;
|
|
210
|
+
}>;
|
|
211
|
+
members: {
|
|
212
|
+
list: (group_id: string, options?: import("./minds-owner.js").MindsOwnerOptions) => Promise<{
|
|
213
|
+
members: components["schemas"]["Minds.OwnerAgentGroupMember"][];
|
|
214
|
+
}>;
|
|
215
|
+
add: (group_id: string, body: import("./minds-owner.js").MindsOwnerVersion & {
|
|
216
|
+
agentId: string;
|
|
217
|
+
}, options?: import("./minds-owner.js").MindsOwnerOptions) => Promise<{
|
|
218
|
+
groupId: string;
|
|
219
|
+
agentId: string;
|
|
220
|
+
agentDid: string;
|
|
221
|
+
agentCreatedAt: number;
|
|
222
|
+
version: number;
|
|
223
|
+
revokedAt: number | null;
|
|
224
|
+
}>;
|
|
225
|
+
remove: (group_id: string, agent_id: string, body: import("./minds-owner.js").MindsOwnerVersion, options?: import("./minds-owner.js").MindsOwnerOptions) => Promise<{
|
|
226
|
+
groupId: string;
|
|
227
|
+
agentId: string;
|
|
228
|
+
agentDid: string;
|
|
229
|
+
agentCreatedAt: number;
|
|
230
|
+
version: number;
|
|
231
|
+
revokedAt: number | null;
|
|
232
|
+
}>;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
attachments: {
|
|
236
|
+
list: (mind_id: string, options?: import("./minds-owner.js").MindsOwnerOptions) => Promise<{
|
|
237
|
+
attachments: components["schemas"]["Minds.MindAttachment"][];
|
|
238
|
+
}>;
|
|
239
|
+
attach: (mind_id: string, body: import("./minds-owner.js").MindsAttachInput, options?: import("./minds-owner.js").MindsOwnerOptions) => Promise<{
|
|
240
|
+
id: string;
|
|
241
|
+
version: number;
|
|
242
|
+
organizationId: string;
|
|
243
|
+
projectId: string;
|
|
244
|
+
mindId: string;
|
|
245
|
+
subject: components["schemas"]["Minds.MindAttachmentSubject"];
|
|
246
|
+
permissions: ["minds.agent_data.read"] | ["minds.agent_data.read", "minds.agent_data.write"];
|
|
247
|
+
sharedNamespace: string | null;
|
|
248
|
+
expiresAt: number;
|
|
249
|
+
revokedAt: number | null;
|
|
250
|
+
}>;
|
|
251
|
+
detach: (mind_id: string, attachment_id: string, body: import("./minds-owner.js").MindsOwnerVersion, options?: import("./minds-owner.js").MindsOwnerOptions) => Promise<{
|
|
252
|
+
id: string;
|
|
253
|
+
version: number;
|
|
254
|
+
organizationId: string;
|
|
255
|
+
projectId: string;
|
|
256
|
+
mindId: string;
|
|
257
|
+
subject: components["schemas"]["Minds.MindAttachmentSubject"];
|
|
258
|
+
permissions: ["minds.agent_data.read"] | ["minds.agent_data.read", "minds.agent_data.write"];
|
|
259
|
+
sharedNamespace: string | null;
|
|
260
|
+
expiresAt: number;
|
|
261
|
+
revokedAt: number | null;
|
|
262
|
+
}>;
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
readonly blinds: {
|
|
266
|
+
credentials: {
|
|
267
|
+
list: (init?: {
|
|
268
|
+
signal?: AbortSignal;
|
|
269
|
+
}) => Promise<{
|
|
270
|
+
credentials: string[];
|
|
271
|
+
}>;
|
|
272
|
+
store: (body: In<"blinds_storeCredential">["body"], init?: {
|
|
273
|
+
signal?: AbortSignal;
|
|
274
|
+
idempotencyKey?: string;
|
|
275
|
+
}) => Promise<{
|
|
276
|
+
variable_name: string;
|
|
277
|
+
}>;
|
|
278
|
+
revoke: (variable: string, init?: {
|
|
279
|
+
signal?: AbortSignal;
|
|
280
|
+
idempotencyKey?: string;
|
|
281
|
+
}) => Promise<unknown>;
|
|
282
|
+
};
|
|
283
|
+
oauth: {
|
|
284
|
+
connections: (init?: {
|
|
285
|
+
signal?: AbortSignal;
|
|
286
|
+
}) => Promise<{
|
|
287
|
+
connections: components["schemas"]["Blinds.OAuthConnection"][];
|
|
288
|
+
total: number;
|
|
289
|
+
}>;
|
|
290
|
+
};
|
|
291
|
+
consent: {
|
|
292
|
+
pending: (init?: {
|
|
293
|
+
signal?: AbortSignal;
|
|
294
|
+
}) => Promise<{
|
|
295
|
+
requests: components["schemas"]["Blinds.ConsentPending"][];
|
|
296
|
+
}>;
|
|
297
|
+
records: (init?: {
|
|
298
|
+
signal?: AbortSignal;
|
|
299
|
+
}) => Promise<{
|
|
300
|
+
records: components["schemas"]["Blinds.ConsentRecord"][];
|
|
301
|
+
}>;
|
|
302
|
+
approve: (consent_id: string, body: In<"blinds_approveConsent">["body"], init?: {
|
|
303
|
+
signal?: AbortSignal;
|
|
304
|
+
idempotencyKey?: string;
|
|
305
|
+
}) => Promise<unknown>;
|
|
306
|
+
deny: (consent_id: string, init?: {
|
|
307
|
+
signal?: AbortSignal;
|
|
308
|
+
idempotencyKey?: string;
|
|
309
|
+
}) => Promise<unknown>;
|
|
310
|
+
revoke: (consent_id: string, init?: {
|
|
311
|
+
signal?: AbortSignal;
|
|
312
|
+
idempotencyKey?: string;
|
|
313
|
+
}) => Promise<unknown>;
|
|
314
|
+
};
|
|
315
|
+
delegates: {
|
|
316
|
+
list: (init?: {
|
|
317
|
+
signal?: AbortSignal;
|
|
318
|
+
}) => Promise<{
|
|
319
|
+
delegates: components["schemas"]["Blinds.Delegate"][];
|
|
320
|
+
}>;
|
|
321
|
+
create: (body: In<"blinds_createDelegate">["body"], init?: {
|
|
322
|
+
signal?: AbortSignal;
|
|
323
|
+
idempotencyKey?: string;
|
|
324
|
+
}) => Promise<{
|
|
325
|
+
delegate_id: string;
|
|
326
|
+
parent_id?: string | null;
|
|
327
|
+
name: string;
|
|
328
|
+
issuer_did: string;
|
|
329
|
+
delegated_variables: string[];
|
|
330
|
+
max_depth?: number;
|
|
331
|
+
current_depth?: number;
|
|
332
|
+
ttl_seconds?: number;
|
|
333
|
+
created_at?: string;
|
|
334
|
+
expires_at: string;
|
|
335
|
+
}>;
|
|
336
|
+
revoke: (delegate_id: string, init?: {
|
|
337
|
+
signal?: AbortSignal;
|
|
338
|
+
idempotencyKey?: string;
|
|
339
|
+
}) => Promise<unknown>;
|
|
340
|
+
};
|
|
341
|
+
activity: (init?: {
|
|
342
|
+
signal?: AbortSignal;
|
|
343
|
+
}) => Promise<{
|
|
344
|
+
events: components["schemas"]["Blinds.ActivityEvent"][];
|
|
345
|
+
}>;
|
|
346
|
+
ownerEnrollment: {
|
|
347
|
+
reserve: (body: In<"blinds_ownerReserve">["body"], init?: {
|
|
348
|
+
signal?: AbortSignal;
|
|
349
|
+
}) => Promise<{
|
|
350
|
+
schemaVersion: 1;
|
|
351
|
+
requestId: string;
|
|
352
|
+
edReservationId: string;
|
|
353
|
+
operationId: string;
|
|
354
|
+
publicKey: string;
|
|
355
|
+
state: "key_ready" | "attached";
|
|
356
|
+
expiresAtMs: number;
|
|
357
|
+
originalOrganizationGeneration: number;
|
|
358
|
+
}>;
|
|
359
|
+
sign: (body: In<"blinds_ownerSign">["body"], init?: {
|
|
360
|
+
signal?: AbortSignal;
|
|
361
|
+
}) => Promise<{
|
|
362
|
+
schemaVersion: 1;
|
|
363
|
+
requestId: string;
|
|
364
|
+
edReservationId: string;
|
|
365
|
+
enrollmentIntentId: string;
|
|
366
|
+
operationId: string;
|
|
367
|
+
signingPayloadSha256: string;
|
|
368
|
+
signatureMultibase: string;
|
|
369
|
+
}>;
|
|
370
|
+
attach: (body: In<"blinds_ownerAttach">["body"], init?: {
|
|
371
|
+
signal?: AbortSignal;
|
|
372
|
+
}) => Promise<{
|
|
373
|
+
schemaVersion: 1;
|
|
374
|
+
requestId: string;
|
|
375
|
+
edReservationId: string;
|
|
376
|
+
enrollmentIntentId: string;
|
|
377
|
+
state: "attached";
|
|
378
|
+
creation: {
|
|
379
|
+
intent_id: string;
|
|
380
|
+
operation_id: string;
|
|
381
|
+
creation_receipt_id: string;
|
|
382
|
+
agent_id: string;
|
|
383
|
+
canonical_did: string;
|
|
384
|
+
registered_public_key: string;
|
|
385
|
+
owner: {
|
|
386
|
+
issuer: "https://auth.life.one";
|
|
387
|
+
original_owner: string;
|
|
388
|
+
organization_generation: number;
|
|
389
|
+
scope: {
|
|
390
|
+
platform_id: "blinds";
|
|
391
|
+
organization_id: string;
|
|
392
|
+
workspace_id: string | null;
|
|
393
|
+
project_id: string | null;
|
|
394
|
+
environment_id: "sandbox" | "live";
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
}>;
|
|
399
|
+
ensureP256: (body: In<"blinds_ownerP256Ensure">["body"], init?: {
|
|
400
|
+
signal?: AbortSignal;
|
|
401
|
+
}) => Promise<{
|
|
402
|
+
schemaVersion: 1;
|
|
403
|
+
requestId: string;
|
|
404
|
+
edReservationId: string;
|
|
405
|
+
enrollmentIntentId: string;
|
|
406
|
+
state: "ready";
|
|
407
|
+
dpopPublicJwk: {
|
|
408
|
+
kty: "EC";
|
|
409
|
+
crv: "P-256";
|
|
410
|
+
x: string;
|
|
411
|
+
y: string;
|
|
412
|
+
};
|
|
413
|
+
senderJkt: string;
|
|
414
|
+
}>;
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
readonly dials: {
|
|
418
|
+
routing: {
|
|
419
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
420
|
+
ok: true;
|
|
421
|
+
scope: components["schemas"]["Dials.Scope"];
|
|
422
|
+
rules: components["schemas"]["Dials.RoutingRule"][];
|
|
423
|
+
}>;
|
|
424
|
+
create: (body: In<"dials_createRoutingRule">["body"]) => Promise<{
|
|
425
|
+
ok: true;
|
|
426
|
+
rule: components["schemas"]["Dials.RoutingRule"];
|
|
427
|
+
auditId: string;
|
|
428
|
+
idempotentReplay: boolean;
|
|
429
|
+
}>;
|
|
430
|
+
disable: (ruleId: string, body: In<"dials_disableRoutingRule">["body"]) => Promise<{
|
|
431
|
+
ok: true;
|
|
432
|
+
rule: components["schemas"]["Dials.RoutingRule"];
|
|
433
|
+
auditId: string | null;
|
|
434
|
+
idempotentReplay: boolean;
|
|
435
|
+
}>;
|
|
436
|
+
};
|
|
437
|
+
people: {
|
|
438
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
439
|
+
ok: boolean;
|
|
440
|
+
humans: components["schemas"]["Dials.HumanProfile"][];
|
|
441
|
+
}>;
|
|
442
|
+
create: (body: In<"dials_createHumanProfile">["body"]) => Promise<{
|
|
443
|
+
ok: boolean;
|
|
444
|
+
human: components["schemas"]["Dials.HumanProfile"];
|
|
445
|
+
auditId: string;
|
|
446
|
+
usageEventId: string;
|
|
447
|
+
next: string;
|
|
448
|
+
}>;
|
|
449
|
+
};
|
|
450
|
+
agents: {
|
|
451
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
452
|
+
ok: boolean;
|
|
453
|
+
agents: components["schemas"]["Dials.AgentProfile"][];
|
|
454
|
+
}>;
|
|
455
|
+
create: (body: In<"dials_createAgent">["body"]) => Promise<{
|
|
456
|
+
ok: boolean;
|
|
457
|
+
agent: components["schemas"]["Dials.AgentProfile"];
|
|
458
|
+
auditId: string;
|
|
459
|
+
usageEventId: string;
|
|
460
|
+
next: string;
|
|
461
|
+
}>;
|
|
462
|
+
};
|
|
463
|
+
voice: {
|
|
464
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
465
|
+
ok: boolean;
|
|
466
|
+
voiceProfiles: components["schemas"]["Dials.VoiceProfile"][];
|
|
467
|
+
}>;
|
|
468
|
+
create: (body: In<"dials_createVoiceProfile">["body"]) => Promise<{
|
|
469
|
+
ok: boolean;
|
|
470
|
+
voiceProfile: components["schemas"]["Dials.VoiceProfile"];
|
|
471
|
+
auditId: string;
|
|
472
|
+
usageEventId: string;
|
|
473
|
+
next: string;
|
|
474
|
+
}>;
|
|
475
|
+
};
|
|
476
|
+
messages: {
|
|
477
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
478
|
+
ok: boolean;
|
|
479
|
+
messages: components["schemas"]["Dials.MessageEvent"][];
|
|
480
|
+
}>;
|
|
481
|
+
send: (body: In<"dials_createOutboundMessage">["body"]) => Promise<{
|
|
482
|
+
ok: boolean;
|
|
483
|
+
message: components["schemas"]["Dials.MessageEvent"];
|
|
484
|
+
auditId: string;
|
|
485
|
+
usageEventId: string;
|
|
486
|
+
next: string;
|
|
487
|
+
idempotentReplay: boolean;
|
|
488
|
+
}>;
|
|
489
|
+
templates: {
|
|
490
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
491
|
+
ok: boolean;
|
|
492
|
+
templates: components["schemas"]["Dials.MessageTemplate"][];
|
|
493
|
+
}>;
|
|
494
|
+
create: (body: In<"dials_createMessageTemplate">["body"]) => Promise<{
|
|
495
|
+
ok: boolean;
|
|
496
|
+
template: components["schemas"]["Dials.MessageTemplate"];
|
|
497
|
+
auditId: string;
|
|
498
|
+
usageEventId: string;
|
|
499
|
+
next: string;
|
|
500
|
+
}>;
|
|
501
|
+
};
|
|
502
|
+
brands: {
|
|
503
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
504
|
+
ok: boolean;
|
|
505
|
+
brands: components["schemas"]["Dials.MessagingBrand"][];
|
|
506
|
+
}>;
|
|
507
|
+
create: (body: In<"dials_createMessagingBrand">["body"]) => Promise<{
|
|
508
|
+
ok: boolean;
|
|
509
|
+
brand: components["schemas"]["Dials.MessagingBrand"];
|
|
510
|
+
auditId: string;
|
|
511
|
+
next: string;
|
|
512
|
+
}>;
|
|
513
|
+
};
|
|
514
|
+
campaigns: {
|
|
515
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
516
|
+
ok: boolean;
|
|
517
|
+
campaigns: components["schemas"]["Dials.MessagingCampaign"][];
|
|
518
|
+
}>;
|
|
519
|
+
create: (body: In<"dials_createMessagingCampaign">["body"]) => Promise<{
|
|
520
|
+
ok: boolean;
|
|
521
|
+
campaign: components["schemas"]["Dials.MessagingCampaign"];
|
|
522
|
+
auditId: string;
|
|
523
|
+
next: string;
|
|
524
|
+
}>;
|
|
525
|
+
assignNumber: (campaignId: string, body: In<"dials_assignCampaignNumber">["body"]) => Promise<{
|
|
526
|
+
ok: boolean;
|
|
527
|
+
campaignId: string;
|
|
528
|
+
phoneNumberId: string;
|
|
529
|
+
auditId: string;
|
|
530
|
+
next: string;
|
|
531
|
+
}>;
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
workflows: {
|
|
535
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
536
|
+
ok: boolean;
|
|
537
|
+
workflows: components["schemas"]["Dials.WorkflowDocument"][];
|
|
538
|
+
}>;
|
|
539
|
+
deploy: (body: In<"dials_deployWorkflow">["body"]) => Promise<{
|
|
540
|
+
ok: boolean;
|
|
541
|
+
workflow: components["schemas"]["Dials.WorkflowDocument"];
|
|
542
|
+
auditId: string;
|
|
543
|
+
usageEventId: string;
|
|
544
|
+
next: string;
|
|
545
|
+
route: components["schemas"]["Dials.RoutingRule"];
|
|
546
|
+
}>;
|
|
547
|
+
};
|
|
548
|
+
overview: {
|
|
549
|
+
summary: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
550
|
+
ok: boolean;
|
|
551
|
+
scope: components["schemas"]["Dials.Scope"];
|
|
552
|
+
calls: {
|
|
553
|
+
total: number;
|
|
554
|
+
queued: number;
|
|
555
|
+
active: number;
|
|
556
|
+
completed: number;
|
|
557
|
+
failed: number;
|
|
558
|
+
};
|
|
559
|
+
dispatch: {
|
|
560
|
+
total: number;
|
|
561
|
+
pending: number;
|
|
562
|
+
claimed: number;
|
|
563
|
+
dispatched: number;
|
|
564
|
+
failed: number;
|
|
565
|
+
};
|
|
566
|
+
people: {
|
|
567
|
+
deployed: number;
|
|
568
|
+
};
|
|
569
|
+
agents: {
|
|
570
|
+
deployed: number;
|
|
571
|
+
};
|
|
572
|
+
routes: {
|
|
573
|
+
deployed: number;
|
|
574
|
+
};
|
|
575
|
+
numbers: {
|
|
576
|
+
deployed: number;
|
|
577
|
+
};
|
|
578
|
+
voice: {
|
|
579
|
+
deployed: number;
|
|
580
|
+
};
|
|
581
|
+
messages: {
|
|
582
|
+
total: number;
|
|
583
|
+
queued: number;
|
|
584
|
+
delivered: number;
|
|
585
|
+
failed: number;
|
|
586
|
+
};
|
|
587
|
+
usage: {
|
|
588
|
+
total: number;
|
|
589
|
+
quantity: number;
|
|
590
|
+
lastMetric: string | null;
|
|
591
|
+
lastResourceId: string | null;
|
|
592
|
+
};
|
|
593
|
+
}>;
|
|
594
|
+
operatingSurface: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
595
|
+
ok: boolean;
|
|
596
|
+
scope: components["schemas"]["Dials.Scope"];
|
|
597
|
+
summary: components["schemas"]["Dials.ConsoleSummary"];
|
|
598
|
+
surfaces: components["schemas"]["Dials.OperatingSurfaceCard"][];
|
|
599
|
+
} & {
|
|
600
|
+
[key: string]: unknown;
|
|
601
|
+
}>;
|
|
602
|
+
};
|
|
603
|
+
numbers: {
|
|
604
|
+
reconciliations: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
605
|
+
ok: boolean;
|
|
606
|
+
reconciliations: components["schemas"]["Dials.InventoryReconciliation"][];
|
|
607
|
+
}>;
|
|
608
|
+
drift: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
609
|
+
ok: boolean;
|
|
610
|
+
drift: components["schemas"]["Dials.InventoryDrift"][];
|
|
611
|
+
}>;
|
|
612
|
+
updateCallerName: (body: In<"dials_updateNumberCallerName">["body"]) => Promise<{
|
|
613
|
+
ok: boolean;
|
|
614
|
+
number: components["schemas"]["Dials.Number"];
|
|
615
|
+
auditId: string;
|
|
616
|
+
next: string;
|
|
617
|
+
}>;
|
|
618
|
+
reconcile: (body: In<"dials_reconcileNumberInventory">["body"]) => Promise<{
|
|
619
|
+
ok: boolean;
|
|
620
|
+
reconciliations: components["schemas"]["Dials.InventoryReconciliation"][];
|
|
621
|
+
drift: components["schemas"]["Dials.InventoryDrift"][];
|
|
622
|
+
orphanCount: number;
|
|
623
|
+
auditId: string;
|
|
624
|
+
next: string;
|
|
625
|
+
}>;
|
|
626
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
627
|
+
ok: boolean;
|
|
628
|
+
numbers: components["schemas"]["Dials.Number"][];
|
|
629
|
+
}>;
|
|
630
|
+
search: (scope: import("./dials.js").DialsScope, query?: Omit<In<"dials_searchNumbers">, keyof import("./dials.js").DialsScope>) => Promise<{
|
|
631
|
+
ok: boolean;
|
|
632
|
+
numbers: components["schemas"]["Dials.AvailableNumber"][];
|
|
633
|
+
}>;
|
|
634
|
+
provision: (body: In<"dials_provisionNumber">["body"]) => Promise<{
|
|
635
|
+
[key: string]: unknown;
|
|
636
|
+
}>;
|
|
637
|
+
assign: (body: In<"dials_assignNumber">["body"]) => Promise<{
|
|
638
|
+
[key: string]: unknown;
|
|
639
|
+
}>;
|
|
640
|
+
delete: (input: In<"dials_deleteNumber">) => Promise<{
|
|
641
|
+
ok: boolean;
|
|
642
|
+
number: components["schemas"]["Dials.Number"];
|
|
643
|
+
auditId: string;
|
|
644
|
+
usageEventId: string;
|
|
645
|
+
next: string;
|
|
646
|
+
}>;
|
|
647
|
+
release: (body: In<"dials_releaseNumber">["body"]) => Promise<{
|
|
648
|
+
[key: string]: unknown;
|
|
649
|
+
}>;
|
|
650
|
+
registerEmergencyAddress: (body: import("./dials.js").DialsEmergencyAddress) => Promise<{
|
|
651
|
+
ok: boolean;
|
|
652
|
+
number: components["schemas"]["Dials.Number"];
|
|
653
|
+
address: components["schemas"]["Dials.EmergencyAddress"];
|
|
654
|
+
auditId: string;
|
|
655
|
+
next: string;
|
|
656
|
+
}>;
|
|
657
|
+
};
|
|
658
|
+
calls: {
|
|
659
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
660
|
+
ok: boolean;
|
|
661
|
+
calls: components["schemas"]["Dials.CallListItem"][];
|
|
662
|
+
}>;
|
|
663
|
+
validate: (body: import("./dials.js").DialsOutboundCall) => Promise<{
|
|
664
|
+
[key: string]: unknown;
|
|
665
|
+
}>;
|
|
666
|
+
create: (body: import("./dials.js").DialsOutboundCall) => Promise<{
|
|
667
|
+
ok: boolean;
|
|
668
|
+
call: components["schemas"]["Dials.CallSession"];
|
|
669
|
+
auditId: string;
|
|
670
|
+
dispatchJobId: string;
|
|
671
|
+
usageEventId: string;
|
|
672
|
+
next: string;
|
|
673
|
+
idempotentReplay: boolean;
|
|
674
|
+
} & {
|
|
675
|
+
[key: string]: unknown;
|
|
676
|
+
}>;
|
|
677
|
+
recover: (body: import("./dials.js").DialsOutboundCall) => Promise<{
|
|
678
|
+
ok: boolean;
|
|
679
|
+
call: components["schemas"]["Dials.CallSession"];
|
|
680
|
+
auditId: string;
|
|
681
|
+
dispatchJobId: string;
|
|
682
|
+
usageEventId: string;
|
|
683
|
+
next: string;
|
|
684
|
+
idempotentReplay: boolean;
|
|
685
|
+
} & {
|
|
686
|
+
[key: string]: unknown;
|
|
687
|
+
} & {
|
|
688
|
+
idempotentReplay: true;
|
|
689
|
+
}>;
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
readonly henry: {
|
|
693
|
+
config: () => Promise<{
|
|
694
|
+
credential_configured: boolean;
|
|
695
|
+
models: {
|
|
696
|
+
id: string;
|
|
697
|
+
}[];
|
|
698
|
+
}>;
|
|
699
|
+
credential: (api_key: string) => Promise<{
|
|
700
|
+
credential_configured: boolean;
|
|
701
|
+
models: {
|
|
702
|
+
id: string;
|
|
703
|
+
}[];
|
|
704
|
+
}>;
|
|
705
|
+
models: () => Promise<{
|
|
706
|
+
models: {
|
|
707
|
+
id: string;
|
|
708
|
+
}[];
|
|
709
|
+
}>;
|
|
710
|
+
receipts: {
|
|
711
|
+
verificationKey: () => Promise<{
|
|
712
|
+
keyId: string;
|
|
713
|
+
publicKeyBase64: string;
|
|
714
|
+
}>;
|
|
715
|
+
};
|
|
716
|
+
runs: {
|
|
717
|
+
list: (page_token?: string) => Promise<{
|
|
718
|
+
runs: components["schemas"]["Henry.Run"][];
|
|
719
|
+
next_page_token?: string | null;
|
|
720
|
+
}>;
|
|
721
|
+
create: (body: NonNullable<In<"henry_createRun">["body"]>) => Promise<{
|
|
722
|
+
id: string;
|
|
723
|
+
task: string;
|
|
724
|
+
model: string;
|
|
725
|
+
status: "ready" | "running" | "acting" | "paused" | "awaiting_approval" | "completed" | "cancelled" | "failed" | "waiting_input";
|
|
726
|
+
created_at: string;
|
|
727
|
+
updated_at: string;
|
|
728
|
+
activity: {
|
|
729
|
+
id: string;
|
|
730
|
+
at: string;
|
|
731
|
+
type: string;
|
|
732
|
+
detail: string;
|
|
733
|
+
}[];
|
|
734
|
+
approvals: {
|
|
735
|
+
id: string;
|
|
736
|
+
action: string;
|
|
737
|
+
url: string;
|
|
738
|
+
status: string;
|
|
739
|
+
requested_at: string;
|
|
740
|
+
}[];
|
|
741
|
+
phases: {
|
|
742
|
+
id?: string;
|
|
743
|
+
code?: number;
|
|
744
|
+
receipt?: Record<string, never>;
|
|
745
|
+
usage?: Record<string, never> | null;
|
|
746
|
+
}[];
|
|
747
|
+
messages: ({
|
|
748
|
+
role: string;
|
|
749
|
+
content?: string | null;
|
|
750
|
+
} & {
|
|
751
|
+
[key: string]: unknown;
|
|
752
|
+
})[];
|
|
753
|
+
}>;
|
|
754
|
+
get: (run_id: string) => Promise<{
|
|
755
|
+
id: string;
|
|
756
|
+
task: string;
|
|
757
|
+
model: string;
|
|
758
|
+
status: "ready" | "running" | "acting" | "paused" | "awaiting_approval" | "completed" | "cancelled" | "failed" | "waiting_input";
|
|
759
|
+
created_at: string;
|
|
760
|
+
updated_at: string;
|
|
761
|
+
activity: {
|
|
762
|
+
id: string;
|
|
763
|
+
at: string;
|
|
764
|
+
type: string;
|
|
765
|
+
detail: string;
|
|
766
|
+
}[];
|
|
767
|
+
approvals: {
|
|
768
|
+
id: string;
|
|
769
|
+
action: string;
|
|
770
|
+
url: string;
|
|
771
|
+
status: string;
|
|
772
|
+
requested_at: string;
|
|
773
|
+
}[];
|
|
774
|
+
phases: {
|
|
775
|
+
id?: string;
|
|
776
|
+
code?: number;
|
|
777
|
+
receipt?: Record<string, never>;
|
|
778
|
+
usage?: Record<string, never> | null;
|
|
779
|
+
}[];
|
|
780
|
+
messages: ({
|
|
781
|
+
role: string;
|
|
782
|
+
content?: string | null;
|
|
783
|
+
} & {
|
|
784
|
+
[key: string]: unknown;
|
|
785
|
+
})[];
|
|
786
|
+
}>;
|
|
787
|
+
command: (run_id: string, action: "pause" | "resume" | "cancel" | "input", text?: string) => Promise<{
|
|
788
|
+
id: string;
|
|
789
|
+
task: string;
|
|
790
|
+
model: string;
|
|
791
|
+
status: "ready" | "running" | "acting" | "paused" | "awaiting_approval" | "completed" | "cancelled" | "failed" | "waiting_input";
|
|
792
|
+
created_at: string;
|
|
793
|
+
updated_at: string;
|
|
794
|
+
activity: {
|
|
795
|
+
id: string;
|
|
796
|
+
at: string;
|
|
797
|
+
type: string;
|
|
798
|
+
detail: string;
|
|
799
|
+
}[];
|
|
800
|
+
approvals: {
|
|
801
|
+
id: string;
|
|
802
|
+
action: string;
|
|
803
|
+
url: string;
|
|
804
|
+
status: string;
|
|
805
|
+
requested_at: string;
|
|
806
|
+
}[];
|
|
807
|
+
phases: {
|
|
808
|
+
id?: string;
|
|
809
|
+
code?: number;
|
|
810
|
+
receipt?: Record<string, never>;
|
|
811
|
+
usage?: Record<string, never> | null;
|
|
812
|
+
}[];
|
|
813
|
+
messages: ({
|
|
814
|
+
role: string;
|
|
815
|
+
content?: string | null;
|
|
816
|
+
} & {
|
|
817
|
+
[key: string]: unknown;
|
|
818
|
+
})[];
|
|
819
|
+
}>;
|
|
820
|
+
approval: (run_id: string, approval_id: string, decision: "approve" | "reject") => Promise<{
|
|
821
|
+
id: string;
|
|
822
|
+
task: string;
|
|
823
|
+
model: string;
|
|
824
|
+
status: "ready" | "running" | "acting" | "paused" | "awaiting_approval" | "completed" | "cancelled" | "failed" | "waiting_input";
|
|
825
|
+
created_at: string;
|
|
826
|
+
updated_at: string;
|
|
827
|
+
activity: {
|
|
828
|
+
id: string;
|
|
829
|
+
at: string;
|
|
830
|
+
type: string;
|
|
831
|
+
detail: string;
|
|
832
|
+
}[];
|
|
833
|
+
approvals: {
|
|
834
|
+
id: string;
|
|
835
|
+
action: string;
|
|
836
|
+
url: string;
|
|
837
|
+
status: string;
|
|
838
|
+
requested_at: string;
|
|
839
|
+
}[];
|
|
840
|
+
phases: {
|
|
841
|
+
id?: string;
|
|
842
|
+
code?: number;
|
|
843
|
+
receipt?: Record<string, never>;
|
|
844
|
+
usage?: Record<string, never> | null;
|
|
845
|
+
}[];
|
|
846
|
+
messages: ({
|
|
847
|
+
role: string;
|
|
848
|
+
content?: string | null;
|
|
849
|
+
} & {
|
|
850
|
+
[key: string]: unknown;
|
|
851
|
+
})[];
|
|
852
|
+
}>;
|
|
853
|
+
};
|
|
854
|
+
};
|
|
855
|
+
readonly fleets: {
|
|
856
|
+
agents: {
|
|
857
|
+
list: () => Promise<{
|
|
858
|
+
agents: components["schemas"]["Fleets.Agent"][];
|
|
859
|
+
}>;
|
|
860
|
+
launch: (body: {
|
|
861
|
+
name: string;
|
|
862
|
+
memory?: components["schemas"]["Fleets.Memory"];
|
|
863
|
+
model?: string;
|
|
864
|
+
instructions?: string;
|
|
865
|
+
idempotency_key?: string;
|
|
866
|
+
}) => Promise<{
|
|
867
|
+
id: string;
|
|
868
|
+
name: string;
|
|
869
|
+
state: "launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required";
|
|
870
|
+
memory: components["schemas"]["Fleets.Memory"];
|
|
871
|
+
model?: string | null;
|
|
872
|
+
inference: {
|
|
873
|
+
provider: "foundry";
|
|
874
|
+
mode: "managed";
|
|
875
|
+
};
|
|
876
|
+
created_at_ms: number;
|
|
877
|
+
updated_at_ms: number;
|
|
878
|
+
last_operation_id?: string | null;
|
|
879
|
+
}>;
|
|
880
|
+
get: (agent_id: string) => Promise<{
|
|
881
|
+
id: string;
|
|
882
|
+
name: string;
|
|
883
|
+
state: "launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required";
|
|
884
|
+
memory: components["schemas"]["Fleets.Memory"];
|
|
885
|
+
model?: string | null;
|
|
886
|
+
inference: {
|
|
887
|
+
provider: "foundry";
|
|
888
|
+
mode: "managed";
|
|
889
|
+
};
|
|
890
|
+
created_at_ms: number;
|
|
891
|
+
updated_at_ms: number;
|
|
892
|
+
last_operation_id?: string | null;
|
|
893
|
+
}>;
|
|
894
|
+
command: (agent_id: string, body: {
|
|
895
|
+
input: string;
|
|
896
|
+
delivery?: "queue" | "steer" | "interrupt";
|
|
897
|
+
}) => Promise<{
|
|
898
|
+
agent: components["schemas"]["Fleets.Agent"];
|
|
899
|
+
operation_id: string;
|
|
900
|
+
result?: {
|
|
901
|
+
[key: string]: unknown;
|
|
902
|
+
};
|
|
903
|
+
}>;
|
|
904
|
+
stop: (agent_id: string) => Promise<{
|
|
905
|
+
agent: components["schemas"]["Fleets.Agent"];
|
|
906
|
+
operation_id: string;
|
|
907
|
+
result?: {
|
|
908
|
+
[key: string]: unknown;
|
|
909
|
+
};
|
|
910
|
+
}>;
|
|
911
|
+
recover: (agent_id: string) => Promise<{
|
|
912
|
+
agent: components["schemas"]["Fleets.Agent"];
|
|
913
|
+
operation_id: string;
|
|
914
|
+
result?: {
|
|
915
|
+
[key: string]: unknown;
|
|
916
|
+
};
|
|
917
|
+
}>;
|
|
918
|
+
};
|
|
919
|
+
instances: {
|
|
920
|
+
list: (query?: In<"fleets_listInstances">) => Promise<{
|
|
921
|
+
instances: components["schemas"]["Fleets.Instance"][];
|
|
922
|
+
next_cursor: string | null;
|
|
923
|
+
}>;
|
|
924
|
+
get: (instance_id: string) => Promise<{
|
|
925
|
+
id: string;
|
|
926
|
+
name: string;
|
|
927
|
+
organization_id: string;
|
|
928
|
+
workspace_id: string;
|
|
929
|
+
project_id: string;
|
|
930
|
+
admission_held: boolean | null;
|
|
931
|
+
physical_state: "created" | "running" | "held" | "stopped" | "recovery_required" | "released";
|
|
932
|
+
status_evidence: "live_controller" | "confirmed_release_receipt";
|
|
933
|
+
release_acknowledged_at_ms: number | null;
|
|
934
|
+
harness_ready: boolean;
|
|
935
|
+
observed_at_ms: number | null;
|
|
936
|
+
lease_expires: {
|
|
937
|
+
wall_ms: number;
|
|
938
|
+
logical: number;
|
|
939
|
+
} | null;
|
|
940
|
+
}>;
|
|
941
|
+
stop: (instance_id: string, options?: import("./fleets.js").FleetsInstanceOptions) => Promise<{
|
|
942
|
+
id: string;
|
|
943
|
+
state: "released";
|
|
944
|
+
reaped: true;
|
|
945
|
+
data_retained: true;
|
|
946
|
+
status_evidence: "confirmed_release_receipt";
|
|
947
|
+
release_acknowledged_at_ms: number;
|
|
948
|
+
}>;
|
|
949
|
+
start: (instance_id: string, options?: import("./fleets.js").FleetsInstanceOptions) => Promise<{
|
|
950
|
+
id: string;
|
|
951
|
+
name: string;
|
|
952
|
+
organization_id: string;
|
|
953
|
+
workspace_id: string;
|
|
954
|
+
project_id: string;
|
|
955
|
+
admission_held: boolean | null;
|
|
956
|
+
physical_state: "created" | "running" | "held" | "stopped" | "recovery_required" | "released";
|
|
957
|
+
status_evidence: "live_controller" | "confirmed_release_receipt";
|
|
958
|
+
release_acknowledged_at_ms: number | null;
|
|
959
|
+
harness_ready: boolean;
|
|
960
|
+
observed_at_ms: number | null;
|
|
961
|
+
lease_expires: {
|
|
962
|
+
wall_ms: number;
|
|
963
|
+
logical: number;
|
|
964
|
+
} | null;
|
|
965
|
+
}>;
|
|
966
|
+
};
|
|
967
|
+
connection: {
|
|
968
|
+
get: () => Promise<{
|
|
969
|
+
connected: boolean;
|
|
970
|
+
model: string;
|
|
971
|
+
updated_at?: number;
|
|
972
|
+
}>;
|
|
973
|
+
set: (api_key: string) => Promise<{
|
|
974
|
+
connected: boolean;
|
|
975
|
+
model: string;
|
|
976
|
+
updated_at?: number;
|
|
977
|
+
}>;
|
|
978
|
+
delete: () => Promise<{
|
|
979
|
+
connected: boolean;
|
|
980
|
+
model: string;
|
|
981
|
+
updated_at?: number;
|
|
982
|
+
}>;
|
|
983
|
+
};
|
|
984
|
+
usage: {
|
|
985
|
+
events: (query?: In<"fleets_listUsageEvents">) => Promise<{
|
|
986
|
+
events: components["schemas"]["Fleets.UsageEvent"][];
|
|
987
|
+
next_before: string | null;
|
|
988
|
+
}>;
|
|
989
|
+
};
|
|
990
|
+
tasks: {
|
|
991
|
+
list: (query?: In<"fleets_listTasks">) => Promise<{
|
|
992
|
+
tasks: components["schemas"]["Fleets.Summary"][];
|
|
993
|
+
next_before: string | null;
|
|
994
|
+
}>;
|
|
995
|
+
submit: (body: {
|
|
996
|
+
input: string;
|
|
997
|
+
timeout_seconds?: number;
|
|
998
|
+
idempotency_key?: string;
|
|
999
|
+
}) => Promise<{
|
|
1000
|
+
task_id: string;
|
|
1001
|
+
status: components["schemas"]["Fleets.Status"];
|
|
1002
|
+
submitted_at: string;
|
|
1003
|
+
started_at?: string | null;
|
|
1004
|
+
completed_at?: string | null;
|
|
1005
|
+
}>;
|
|
1006
|
+
get: (task_id: string) => Promise<{
|
|
1007
|
+
task_id: string;
|
|
1008
|
+
status: components["schemas"]["Fleets.Status"];
|
|
1009
|
+
submitted_at: string;
|
|
1010
|
+
started_at?: string | null;
|
|
1011
|
+
completed_at?: string | null;
|
|
1012
|
+
}>;
|
|
1013
|
+
cancel: (task_id: string) => Promise<{
|
|
1014
|
+
task_id: string;
|
|
1015
|
+
status: components["schemas"]["Fleets.Status"];
|
|
1016
|
+
}>;
|
|
1017
|
+
receipt: (task_id: string) => Promise<{
|
|
1018
|
+
task_id: string;
|
|
1019
|
+
status: components["schemas"]["Fleets.Status"];
|
|
1020
|
+
submitted_at: string;
|
|
1021
|
+
started_at?: string | null;
|
|
1022
|
+
completed_at?: string | null;
|
|
1023
|
+
} & {
|
|
1024
|
+
tenant: string;
|
|
1025
|
+
principal: string;
|
|
1026
|
+
idempotency_key: string | null;
|
|
1027
|
+
request_fingerprint: string;
|
|
1028
|
+
timeout_seconds: number;
|
|
1029
|
+
exit_code: number | null;
|
|
1030
|
+
exit_signal: number | null;
|
|
1031
|
+
cleanup_result: {
|
|
1032
|
+
process_group_gone?: boolean;
|
|
1033
|
+
workdir_removed?: boolean;
|
|
1034
|
+
sigkill_sent?: boolean;
|
|
1035
|
+
} | null;
|
|
1036
|
+
henry_receipt?: {
|
|
1037
|
+
[key: string]: unknown;
|
|
1038
|
+
};
|
|
1039
|
+
}>;
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
readonly runner: Readonly<{
|
|
1043
|
+
permission: Readonly<{
|
|
1044
|
+
grant: (input: import("./runner-grant.js").RunnerSelfExecutionGrantInput, opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
|
|
1045
|
+
id: string;
|
|
1046
|
+
principal_id: string;
|
|
1047
|
+
organization_id: string;
|
|
1048
|
+
project_id: string;
|
|
1049
|
+
platform_id: "pf_console";
|
|
1050
|
+
workspace_id: string;
|
|
1051
|
+
environmentId: "sandbox";
|
|
1052
|
+
role_ids: unknown[];
|
|
1053
|
+
permissions: "runner.tasks.execute"[];
|
|
1054
|
+
expires_at: number;
|
|
1055
|
+
created_at: number;
|
|
1056
|
+
}>;
|
|
1057
|
+
}>;
|
|
1058
|
+
catalog: (opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
|
|
1059
|
+
workspaces: {
|
|
1060
|
+
key: components["schemas"]["Runner.SafeOpaqueRef"];
|
|
1061
|
+
label: string;
|
|
1062
|
+
}[];
|
|
1063
|
+
routes: {
|
|
1064
|
+
routeId: components["schemas"]["Runner.SafeOpaqueRef"];
|
|
1065
|
+
kind: "external-harness" | "internal-model";
|
|
1066
|
+
name: string;
|
|
1067
|
+
via: string;
|
|
1068
|
+
state: "synthetic" | "bound" | "unbound";
|
|
1069
|
+
default: boolean;
|
|
1070
|
+
}[];
|
|
1071
|
+
}>;
|
|
1072
|
+
jobs: Readonly<{
|
|
1073
|
+
list: (opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
|
|
1074
|
+
jobs: components["schemas"]["Runner.Snapshot"][];
|
|
1075
|
+
}>;
|
|
1076
|
+
start: (input: import("./runner.js").RunnerStartInput, opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
|
|
1077
|
+
jobId: components["schemas"]["Runner.SafeOpaqueRef"];
|
|
1078
|
+
snapshot: components["schemas"]["Runner.Snapshot"];
|
|
1079
|
+
}>;
|
|
1080
|
+
get: (jobId: string, opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
|
|
1081
|
+
snapshot: components["schemas"]["Runner.Snapshot"];
|
|
1082
|
+
}>;
|
|
1083
|
+
events: (jobId: string, afterSeq?: number, opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
|
|
1084
|
+
events: components["schemas"]["Runner.Event"][];
|
|
1085
|
+
nextAfterSeq: number;
|
|
1086
|
+
hasMore: boolean;
|
|
1087
|
+
}>;
|
|
1088
|
+
result: (jobId: string, opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
|
|
1089
|
+
result: components["schemas"]["Runner.ProviderResult"];
|
|
1090
|
+
}>;
|
|
1091
|
+
cancel: (jobId: string, opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
|
|
1092
|
+
snapshot: components["schemas"]["Runner.Snapshot"];
|
|
1093
|
+
}>;
|
|
1094
|
+
}>;
|
|
1095
|
+
}>;
|
|
1096
|
+
readonly beacons: {
|
|
1097
|
+
fleets: {
|
|
1098
|
+
list: (options?: {
|
|
1099
|
+
signal?: AbortSignal;
|
|
1100
|
+
}) => Promise<{
|
|
1101
|
+
data: components["schemas"]["Beacons.DashboardFleet"][];
|
|
1102
|
+
}>;
|
|
1103
|
+
update: (id: string, body: {
|
|
1104
|
+
name: string;
|
|
1105
|
+
}, options?: {
|
|
1106
|
+
signal?: AbortSignal;
|
|
1107
|
+
}) => Promise<{
|
|
1108
|
+
data: components["schemas"]["Beacons.DashboardFleet"];
|
|
1109
|
+
}>;
|
|
1110
|
+
peers: (id: string, options?: {
|
|
1111
|
+
signal?: AbortSignal;
|
|
1112
|
+
}) => Promise<{
|
|
1113
|
+
data: components["schemas"]["Beacons.DashboardPeer"][];
|
|
1114
|
+
}>;
|
|
1115
|
+
policy: {
|
|
1116
|
+
get: (id: string, options?: {
|
|
1117
|
+
signal?: AbortSignal;
|
|
1118
|
+
}) => Promise<{
|
|
1119
|
+
data: {
|
|
1120
|
+
fleet_id: string;
|
|
1121
|
+
config: components["schemas"]["Beacons.DashboardPolicyConfig"];
|
|
1122
|
+
source: "default" | "persisted";
|
|
1123
|
+
updated_at: string | null;
|
|
1124
|
+
scope: components["schemas"]["Beacons.DashboardScope"];
|
|
1125
|
+
};
|
|
1126
|
+
}>;
|
|
1127
|
+
update: (id: string, config: {
|
|
1128
|
+
device_enrollment: "allowed_with_permission" | "paused";
|
|
1129
|
+
max_devices?: number;
|
|
1130
|
+
}, options?: {
|
|
1131
|
+
signal?: AbortSignal;
|
|
1132
|
+
}) => Promise<{
|
|
1133
|
+
data: {
|
|
1134
|
+
fleet_id: string;
|
|
1135
|
+
config: components["schemas"]["Beacons.DashboardPolicyConfig"];
|
|
1136
|
+
source: "default" | "persisted";
|
|
1137
|
+
updated_at: string | null;
|
|
1138
|
+
scope: components["schemas"]["Beacons.DashboardScope"];
|
|
1139
|
+
};
|
|
1140
|
+
}>;
|
|
1141
|
+
};
|
|
1142
|
+
provision: (requestId: string, body?: {
|
|
1143
|
+
name?: string;
|
|
1144
|
+
}) => Promise<{
|
|
1145
|
+
data: {
|
|
1146
|
+
fleet_id: string;
|
|
1147
|
+
organization_id: string;
|
|
1148
|
+
workspace_id: string;
|
|
1149
|
+
project_id: string;
|
|
1150
|
+
environment_id: string;
|
|
1151
|
+
metadata_only: true;
|
|
1152
|
+
};
|
|
1153
|
+
}>;
|
|
1154
|
+
};
|
|
1155
|
+
devices: {
|
|
1156
|
+
revocations: (id: string) => Promise<{
|
|
1157
|
+
data: components["schemas"]["Beacons.DeviceRevocation"][];
|
|
1158
|
+
}>;
|
|
1159
|
+
acknowledge: (id: string, version: number, body: In<"beacons_acknowledgeBridgeDeviceRevocation">["body"]) => Promise<{
|
|
1160
|
+
data: components["schemas"]["Beacons.DeviceRevocation"];
|
|
1161
|
+
}>;
|
|
1162
|
+
challenge: (body: In<"beacons_issueBridgeDeviceChallenge">["body"]) => Promise<{
|
|
1163
|
+
version: 1;
|
|
1164
|
+
id: string;
|
|
1165
|
+
nonce: string;
|
|
1166
|
+
issuer: string;
|
|
1167
|
+
organization: string;
|
|
1168
|
+
principal: string;
|
|
1169
|
+
workspace: string;
|
|
1170
|
+
project: string;
|
|
1171
|
+
environment: string;
|
|
1172
|
+
binding_revision: string;
|
|
1173
|
+
transport: string;
|
|
1174
|
+
fleet_id: string;
|
|
1175
|
+
proof_key: string;
|
|
1176
|
+
tunnel_key: string;
|
|
1177
|
+
issued_at: number;
|
|
1178
|
+
expires_at: number;
|
|
1179
|
+
}>;
|
|
1180
|
+
enroll: (body: In<"beacons_enrollBridgeDevice">["body"]) => Promise<{
|
|
1181
|
+
device_id: string;
|
|
1182
|
+
fleet_id: string;
|
|
1183
|
+
mesh: {
|
|
1184
|
+
[key: string]: unknown;
|
|
1185
|
+
};
|
|
1186
|
+
}>;
|
|
1187
|
+
list: () => Promise<{
|
|
1188
|
+
data?: components["schemas"]["Beacons.BridgeDevice"][];
|
|
1189
|
+
}>;
|
|
1190
|
+
update: (id: string, body: In<"beacons_updateBridgeDevice">["body"]) => Promise<{
|
|
1191
|
+
id: string;
|
|
1192
|
+
org_id: string;
|
|
1193
|
+
name: string;
|
|
1194
|
+
nicknames: string[];
|
|
1195
|
+
created_at: string;
|
|
1196
|
+
status: string;
|
|
1197
|
+
}>;
|
|
1198
|
+
revoke: (id: string) => Promise<import("./types.js").OperationOutput<"beacons_revokeBridgeDevice"> | undefined>;
|
|
1199
|
+
};
|
|
1200
|
+
};
|
|
1201
|
+
readonly flocks: {
|
|
1202
|
+
readiness: {
|
|
1203
|
+
get: () => Promise<{
|
|
1204
|
+
node_enrollment_available: boolean;
|
|
1205
|
+
reason_code?: "node_credential_issuer_unavailable";
|
|
1206
|
+
}>;
|
|
1207
|
+
};
|
|
1208
|
+
nodes: {
|
|
1209
|
+
list: () => Promise<{
|
|
1210
|
+
id: string;
|
|
1211
|
+
name: string;
|
|
1212
|
+
nickname: string;
|
|
1213
|
+
platform: string;
|
|
1214
|
+
cpu_count: number;
|
|
1215
|
+
state: "enrolled" | "revoked";
|
|
1216
|
+
last_seen_at: number;
|
|
1217
|
+
enrolled_at: number;
|
|
1218
|
+
}[]>;
|
|
1219
|
+
rename: (id: string, nickname: string) => Promise<{
|
|
1220
|
+
id: string;
|
|
1221
|
+
name: string;
|
|
1222
|
+
nickname: string;
|
|
1223
|
+
platform: string;
|
|
1224
|
+
cpu_count: number;
|
|
1225
|
+
state: "enrolled" | "revoked";
|
|
1226
|
+
last_seen_at: number;
|
|
1227
|
+
enrolled_at: number;
|
|
1228
|
+
}>;
|
|
1229
|
+
revoke: (id: string) => Promise<{
|
|
1230
|
+
id: string;
|
|
1231
|
+
name: string;
|
|
1232
|
+
nickname: string;
|
|
1233
|
+
platform: string;
|
|
1234
|
+
cpu_count: number;
|
|
1235
|
+
state: "enrolled" | "revoked";
|
|
1236
|
+
last_seen_at: number;
|
|
1237
|
+
enrolled_at: number;
|
|
1238
|
+
}>;
|
|
1239
|
+
heartbeat: (id: string, nodeBinding: string) => Promise<{
|
|
1240
|
+
accepted: boolean;
|
|
1241
|
+
}>;
|
|
1242
|
+
enroll: (body: In<"flocks_enrollNode">["body"]) => Promise<{
|
|
1243
|
+
node: components["schemas"]["Flocks.Node"];
|
|
1244
|
+
node_binding: string;
|
|
1245
|
+
heartbeat_interval_seconds: number;
|
|
1246
|
+
}>;
|
|
1247
|
+
activate: (id: string, body: In<"flocks_activateNode">["body"]) => Promise<{
|
|
1248
|
+
node: components["schemas"]["Flocks.Node"];
|
|
1249
|
+
activated: boolean;
|
|
1250
|
+
}>;
|
|
1251
|
+
rotateCredential: (id: string, body: In<"flocks_rotateNodeCredential">["body"]) => Promise<{
|
|
1252
|
+
accepted: boolean;
|
|
1253
|
+
}>;
|
|
1254
|
+
};
|
|
1255
|
+
harnesses: {
|
|
1256
|
+
list: (query?: In<"flocks_listHarnesses">) => Promise<{
|
|
1257
|
+
known_harnesses: string[];
|
|
1258
|
+
items: components["schemas"]["Flocks.NodeHarnesses"][];
|
|
1259
|
+
next_cursor: string | null;
|
|
1260
|
+
}>;
|
|
1261
|
+
};
|
|
1262
|
+
agents: {
|
|
1263
|
+
list: (query?: In<"flocks_listAgents">) => Promise<{
|
|
1264
|
+
items: components["schemas"]["Flocks.Agent"][];
|
|
1265
|
+
next_cursor: string | null;
|
|
1266
|
+
}>;
|
|
1267
|
+
create: (body: In<"flocks_createAgent">["body"]) => Promise<{
|
|
1268
|
+
id: string;
|
|
1269
|
+
name: string;
|
|
1270
|
+
harness: string;
|
|
1271
|
+
node_id: string | null;
|
|
1272
|
+
owner_subject?: string;
|
|
1273
|
+
created_at: number;
|
|
1274
|
+
updated_at: number;
|
|
1275
|
+
}>;
|
|
1276
|
+
get: (agent_id: string) => Promise<{
|
|
1277
|
+
id: string;
|
|
1278
|
+
name: string;
|
|
1279
|
+
harness: string;
|
|
1280
|
+
node_id: string | null;
|
|
1281
|
+
owner_subject?: string;
|
|
1282
|
+
created_at: number;
|
|
1283
|
+
updated_at: number;
|
|
1284
|
+
}>;
|
|
1285
|
+
execute: (agent_id: string, body: In<"flocks_executeAgent">["body"]) => Promise<{
|
|
1286
|
+
schemaVersion: 1;
|
|
1287
|
+
agentId: string;
|
|
1288
|
+
canonicalAgentDid: string;
|
|
1289
|
+
bindingRevision: string;
|
|
1290
|
+
executionId: string;
|
|
1291
|
+
revision: number;
|
|
1292
|
+
outcome: "accepted" | "already_admitted";
|
|
1293
|
+
}>;
|
|
1294
|
+
status: (agent_id: string) => Promise<{
|
|
1295
|
+
schemaVersion: 1;
|
|
1296
|
+
agentId: string;
|
|
1297
|
+
canonicalAgentDid: string;
|
|
1298
|
+
bindingRevision: string;
|
|
1299
|
+
executionId: string;
|
|
1300
|
+
revision: number;
|
|
1301
|
+
status: "working" | "success" | "error";
|
|
1302
|
+
observedAtMs: number;
|
|
1303
|
+
expiresAtMs: number;
|
|
1304
|
+
}>;
|
|
1305
|
+
cancel: (agent_id: string, idempotency_key: string) => Promise<{
|
|
1306
|
+
schemaVersion: 1;
|
|
1307
|
+
agentId: string;
|
|
1308
|
+
canonicalAgentDid: string;
|
|
1309
|
+
bindingRevision: string;
|
|
1310
|
+
executionId: string;
|
|
1311
|
+
revision: number;
|
|
1312
|
+
outcome: "cancelled" | "already_terminal" | "cancel_requested";
|
|
1313
|
+
observedAtMs: number;
|
|
1314
|
+
expiresAtMs: number;
|
|
1315
|
+
}>;
|
|
1316
|
+
};
|
|
1317
|
+
runs: {
|
|
1318
|
+
list: (query?: In<"flocks_listRuns">) => Promise<{
|
|
1319
|
+
items: components["schemas"]["Flocks.Run"][];
|
|
1320
|
+
next_cursor: string | null;
|
|
1321
|
+
}>;
|
|
1322
|
+
get: (run_id: string) => Promise<{
|
|
1323
|
+
id: string;
|
|
1324
|
+
agent_id: string;
|
|
1325
|
+
harness: string;
|
|
1326
|
+
node_id: string | null;
|
|
1327
|
+
task: string;
|
|
1328
|
+
state: "pending" | "running" | "completed" | "failed";
|
|
1329
|
+
error_code: string | null;
|
|
1330
|
+
owner_subject?: string;
|
|
1331
|
+
created_at: number;
|
|
1332
|
+
updated_at: number;
|
|
1333
|
+
}>;
|
|
1334
|
+
};
|
|
1335
|
+
joinTokens: {
|
|
1336
|
+
exchange: (body: In<"flocks_exchangeJoinToken">["body"]) => Promise<{
|
|
1337
|
+
node_id: string;
|
|
1338
|
+
organization_id: string;
|
|
1339
|
+
credential_id: string;
|
|
1340
|
+
credential_value: string;
|
|
1341
|
+
scopes: "flocks:node"[];
|
|
1342
|
+
expires_at: string;
|
|
1343
|
+
node_nonce_hash?: string;
|
|
1344
|
+
}>;
|
|
1345
|
+
create: (ttlSeconds?: number) => Promise<{
|
|
1346
|
+
token: string;
|
|
1347
|
+
expires_at: number;
|
|
1348
|
+
}>;
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
readonly rigs: {
|
|
1352
|
+
list: () => Promise<{
|
|
1353
|
+
product: "rigs";
|
|
1354
|
+
instances: components["schemas"]["Rigs.Instance"][];
|
|
1355
|
+
}>;
|
|
1356
|
+
};
|
|
1357
|
+
readonly panes: {
|
|
1358
|
+
list: () => Promise<{
|
|
1359
|
+
product: "panes";
|
|
1360
|
+
instances: components["schemas"]["Panes.Instance"][];
|
|
1361
|
+
} & {
|
|
1362
|
+
[key: string]: unknown;
|
|
1363
|
+
}>;
|
|
1364
|
+
};
|
|
1365
|
+
readonly shells: {
|
|
1366
|
+
list: () => Promise<{
|
|
1367
|
+
product: "shells";
|
|
1368
|
+
instances: components["schemas"]["Shells.Instance"][];
|
|
1369
|
+
} & {
|
|
1370
|
+
[key: string]: unknown;
|
|
1371
|
+
}>;
|
|
1372
|
+
};
|
|
1373
|
+
readonly gears: {
|
|
1374
|
+
workflows: {
|
|
1375
|
+
list: () => Promise<{
|
|
1376
|
+
scope?: components["schemas"]["Gears.Scope"];
|
|
1377
|
+
workflowId: string;
|
|
1378
|
+
workflowVersion: string;
|
|
1379
|
+
name: string;
|
|
1380
|
+
definitionRef: string;
|
|
1381
|
+
registeredBy: string;
|
|
1382
|
+
}[]>;
|
|
1383
|
+
get: (id: string) => Promise<{
|
|
1384
|
+
scope?: components["schemas"]["Gears.Scope"];
|
|
1385
|
+
workflowId: string;
|
|
1386
|
+
workflowVersion: string;
|
|
1387
|
+
name: string;
|
|
1388
|
+
definitionRef: string;
|
|
1389
|
+
registeredBy: string;
|
|
1390
|
+
}>;
|
|
1391
|
+
register: (body: In<"gears_registerWorkflow">["body"], idempotencyKey?: string) => Promise<{
|
|
1392
|
+
scope?: components["schemas"]["Gears.Scope"];
|
|
1393
|
+
workflowId: string;
|
|
1394
|
+
workflowVersion: string;
|
|
1395
|
+
name: string;
|
|
1396
|
+
definitionRef: string;
|
|
1397
|
+
registeredBy: string;
|
|
1398
|
+
}>;
|
|
1399
|
+
};
|
|
1400
|
+
runs: {
|
|
1401
|
+
list: () => Promise<{
|
|
1402
|
+
id: string;
|
|
1403
|
+
scope?: components["schemas"]["Gears.Scope"];
|
|
1404
|
+
workflowId: string;
|
|
1405
|
+
workflowVersion: string;
|
|
1406
|
+
status: "Running" | "Succeeded" | "Failed" | "Cancelled";
|
|
1407
|
+
actorId: string;
|
|
1408
|
+
inputRef: string;
|
|
1409
|
+
contextFrameId?: string | null;
|
|
1410
|
+
stationSessionId?: string | null;
|
|
1411
|
+
}[]>;
|
|
1412
|
+
get: (id: string) => Promise<{
|
|
1413
|
+
id: string;
|
|
1414
|
+
scope?: components["schemas"]["Gears.Scope"];
|
|
1415
|
+
workflowId: string;
|
|
1416
|
+
workflowVersion: string;
|
|
1417
|
+
status: "Running" | "Succeeded" | "Failed" | "Cancelled";
|
|
1418
|
+
actorId: string;
|
|
1419
|
+
inputRef: string;
|
|
1420
|
+
contextFrameId?: string | null;
|
|
1421
|
+
stationSessionId?: string | null;
|
|
1422
|
+
}>;
|
|
1423
|
+
history: (id: string) => Promise<{
|
|
1424
|
+
sequence: number;
|
|
1425
|
+
runId: string;
|
|
1426
|
+
kind: string;
|
|
1427
|
+
actorId?: string;
|
|
1428
|
+
detailRef?: string | null;
|
|
1429
|
+
}[]>;
|
|
1430
|
+
start: (body: In<"gears_startRun">["body"], idempotencyKey?: string) => Promise<{
|
|
1431
|
+
id: string;
|
|
1432
|
+
scope?: components["schemas"]["Gears.Scope"];
|
|
1433
|
+
workflowId: string;
|
|
1434
|
+
workflowVersion: string;
|
|
1435
|
+
status: "Running" | "Succeeded" | "Failed" | "Cancelled";
|
|
1436
|
+
actorId: string;
|
|
1437
|
+
inputRef: string;
|
|
1438
|
+
contextFrameId?: string | null;
|
|
1439
|
+
stationSessionId?: string | null;
|
|
1440
|
+
}>;
|
|
1441
|
+
signal: (id: string, body: In<"gears_signalRun">["body"], idempotencyKey?: string) => Promise<Record<string, never>>;
|
|
1442
|
+
};
|
|
1443
|
+
records: () => Promise<{
|
|
1444
|
+
meterRecords?: {
|
|
1445
|
+
product?: string;
|
|
1446
|
+
gardenMeter?: string;
|
|
1447
|
+
quantity?: number;
|
|
1448
|
+
scopeKey?: string;
|
|
1449
|
+
}[];
|
|
1450
|
+
auditRecords?: {
|
|
1451
|
+
product?: string;
|
|
1452
|
+
auditAction?: string;
|
|
1453
|
+
actorId?: string;
|
|
1454
|
+
targetRef?: string;
|
|
1455
|
+
}[];
|
|
1456
|
+
evidenceRecords?: {
|
|
1457
|
+
product?: string;
|
|
1458
|
+
evidenceRef?: string;
|
|
1459
|
+
evidenceKind?: string;
|
|
1460
|
+
}[];
|
|
1461
|
+
replayEvidence?: {
|
|
1462
|
+
product?: string;
|
|
1463
|
+
replayEngine?: string;
|
|
1464
|
+
runId?: string;
|
|
1465
|
+
journalSequence?: number;
|
|
1466
|
+
evidenceRef?: string;
|
|
1467
|
+
}[];
|
|
1468
|
+
probeEvents?: {
|
|
1469
|
+
product?: string;
|
|
1470
|
+
eventType?: string;
|
|
1471
|
+
actorId?: string;
|
|
1472
|
+
targetRef?: string;
|
|
1473
|
+
}[];
|
|
1474
|
+
}>;
|
|
1475
|
+
};
|
|
1476
|
+
readonly lanes: {
|
|
1477
|
+
records: {
|
|
1478
|
+
get: (recordId: string) => Promise<{
|
|
1479
|
+
id?: string;
|
|
1480
|
+
scope?: Record<string, never>;
|
|
1481
|
+
subject?: string;
|
|
1482
|
+
contentRef?: string;
|
|
1483
|
+
summary?: string;
|
|
1484
|
+
visibility?: components["schemas"]["Lanes.Visibility"];
|
|
1485
|
+
labels?: string[];
|
|
1486
|
+
}>;
|
|
1487
|
+
write: (body: {
|
|
1488
|
+
subject: string;
|
|
1489
|
+
contentRef: string;
|
|
1490
|
+
summary: string;
|
|
1491
|
+
visibility: components["schemas"]["Lanes.Visibility"];
|
|
1492
|
+
labels: string[];
|
|
1493
|
+
proposedDataClass?: string;
|
|
1494
|
+
}, idempotencyKey: string) => Promise<{
|
|
1495
|
+
id?: string;
|
|
1496
|
+
scope?: Record<string, never>;
|
|
1497
|
+
subject?: string;
|
|
1498
|
+
contentRef?: string;
|
|
1499
|
+
summary?: string;
|
|
1500
|
+
visibility?: components["schemas"]["Lanes.Visibility"];
|
|
1501
|
+
labels?: string[];
|
|
1502
|
+
}>;
|
|
1503
|
+
snapshot: (body: {
|
|
1504
|
+
exportedBy: string;
|
|
1505
|
+
}, idempotencyKey: string) => Promise<{
|
|
1506
|
+
scope?: Record<string, never>;
|
|
1507
|
+
exportedBy?: string;
|
|
1508
|
+
evidenceRef?: string;
|
|
1509
|
+
} & {
|
|
1510
|
+
[key: string]: unknown;
|
|
1511
|
+
}>;
|
|
1512
|
+
restore: (body: {
|
|
1513
|
+
scope?: Record<string, never>;
|
|
1514
|
+
exportedBy?: string;
|
|
1515
|
+
evidenceRef?: string;
|
|
1516
|
+
} & {
|
|
1517
|
+
[key: string]: unknown;
|
|
1518
|
+
}, idempotencyKey: string) => Promise<unknown>;
|
|
1519
|
+
};
|
|
1520
|
+
retrieve: (body: {
|
|
1521
|
+
agentId: string;
|
|
1522
|
+
taskId: string;
|
|
1523
|
+
query: string;
|
|
1524
|
+
allowRawContext: boolean;
|
|
1525
|
+
tokenBudget: number;
|
|
1526
|
+
} | {
|
|
1527
|
+
subject: {
|
|
1528
|
+
agentId: string;
|
|
1529
|
+
runId?: string;
|
|
1530
|
+
sessionId?: string;
|
|
1531
|
+
userId?: string;
|
|
1532
|
+
};
|
|
1533
|
+
query: string;
|
|
1534
|
+
allowRawContext?: boolean;
|
|
1535
|
+
tokenBudget?: number;
|
|
1536
|
+
maxResults?: number;
|
|
1537
|
+
}, idempotencyKey: string) => Promise<{
|
|
1538
|
+
frame?: components["schemas"]["Lanes.Frame"];
|
|
1539
|
+
route?: components["schemas"]["Lanes.Route"];
|
|
1540
|
+
}>;
|
|
1541
|
+
frames: {
|
|
1542
|
+
create: (body: {
|
|
1543
|
+
agentId: string;
|
|
1544
|
+
taskId: string;
|
|
1545
|
+
query: string;
|
|
1546
|
+
allowRawContext: boolean;
|
|
1547
|
+
tokenBudget: number;
|
|
1548
|
+
}, idempotencyKey: string) => Promise<{
|
|
1549
|
+
frame?: components["schemas"]["Lanes.Frame"];
|
|
1550
|
+
route?: components["schemas"]["Lanes.Route"];
|
|
1551
|
+
}>;
|
|
1552
|
+
};
|
|
1553
|
+
answer: (body: {
|
|
1554
|
+
agentId: string;
|
|
1555
|
+
taskId: string;
|
|
1556
|
+
query: string;
|
|
1557
|
+
allowRawContext: boolean;
|
|
1558
|
+
tokenBudget: number;
|
|
1559
|
+
}, idempotencyKey: string) => Promise<{
|
|
1560
|
+
frame?: components["schemas"]["Lanes.Frame"];
|
|
1561
|
+
routeDecision?: Record<string, never>;
|
|
1562
|
+
route?: components["schemas"]["Lanes.Route"];
|
|
1563
|
+
cache?: Record<string, never>;
|
|
1564
|
+
answer?: unknown;
|
|
1565
|
+
policyDecisionIds?: string[];
|
|
1566
|
+
}>;
|
|
1567
|
+
ledger: {
|
|
1568
|
+
frame: (frameId: string) => Promise<{
|
|
1569
|
+
sequence?: number;
|
|
1570
|
+
frameId?: string;
|
|
1571
|
+
kind?: string;
|
|
1572
|
+
detail?: unknown;
|
|
1573
|
+
}[]>;
|
|
1574
|
+
snapshot: (body: {
|
|
1575
|
+
exportedBy: string;
|
|
1576
|
+
}, idempotencyKey: string) => Promise<{
|
|
1577
|
+
scope?: Record<string, never>;
|
|
1578
|
+
exportedBy?: string;
|
|
1579
|
+
evidenceRef?: string;
|
|
1580
|
+
} & {
|
|
1581
|
+
[key: string]: unknown;
|
|
1582
|
+
}>;
|
|
1583
|
+
restore: (body: {
|
|
1584
|
+
scope?: Record<string, never>;
|
|
1585
|
+
exportedBy?: string;
|
|
1586
|
+
evidenceRef?: string;
|
|
1587
|
+
} & {
|
|
1588
|
+
[key: string]: unknown;
|
|
1589
|
+
}, idempotencyKey: string) => Promise<unknown>;
|
|
1590
|
+
};
|
|
1591
|
+
cache: {
|
|
1592
|
+
lookup: (body: {
|
|
1593
|
+
cacheKey: string;
|
|
1594
|
+
cacheClass: string;
|
|
1595
|
+
requestedBy: string;
|
|
1596
|
+
}, idempotencyKey: string) => Promise<{
|
|
1597
|
+
cacheKey?: string;
|
|
1598
|
+
cacheClass?: string;
|
|
1599
|
+
status?: string;
|
|
1600
|
+
hit?: components["schemas"]["Lanes.CacheArtifact"] | null;
|
|
1601
|
+
policyDecisionIds?: string[];
|
|
1602
|
+
}>;
|
|
1603
|
+
write: (body: {
|
|
1604
|
+
cacheKey: string;
|
|
1605
|
+
cacheClass: string;
|
|
1606
|
+
valueRef: string;
|
|
1607
|
+
summary: string;
|
|
1608
|
+
labels: string[];
|
|
1609
|
+
sourceRecordIds: string[];
|
|
1610
|
+
writtenBy: string;
|
|
1611
|
+
}, idempotencyKey: string) => Promise<{
|
|
1612
|
+
id?: string;
|
|
1613
|
+
scope?: Record<string, never>;
|
|
1614
|
+
cacheKey?: string;
|
|
1615
|
+
cacheClass?: string;
|
|
1616
|
+
valueRef?: string;
|
|
1617
|
+
summary?: string;
|
|
1618
|
+
labels?: string[];
|
|
1619
|
+
sourceRecordIds?: string[];
|
|
1620
|
+
status?: string;
|
|
1621
|
+
evidenceRef?: string;
|
|
1622
|
+
policyDecisionIds?: string[];
|
|
1623
|
+
}>;
|
|
1624
|
+
snapshot: (body: {
|
|
1625
|
+
exportedBy: string;
|
|
1626
|
+
}, idempotencyKey: string) => Promise<{
|
|
1627
|
+
scope?: Record<string, never>;
|
|
1628
|
+
exportedBy?: string;
|
|
1629
|
+
evidenceRef?: string;
|
|
1630
|
+
} & {
|
|
1631
|
+
[key: string]: unknown;
|
|
1632
|
+
}>;
|
|
1633
|
+
restore: (body: {
|
|
1634
|
+
scope?: Record<string, never>;
|
|
1635
|
+
exportedBy?: string;
|
|
1636
|
+
evidenceRef?: string;
|
|
1637
|
+
} & {
|
|
1638
|
+
[key: string]: unknown;
|
|
1639
|
+
}, idempotencyKey: string) => Promise<unknown>;
|
|
1640
|
+
};
|
|
1641
|
+
recovery: {
|
|
1642
|
+
restore: (body: {
|
|
1643
|
+
[key: string]: unknown;
|
|
1644
|
+
}, idempotencyKey: string) => Promise<{
|
|
1645
|
+
scope?: Record<string, never>;
|
|
1646
|
+
contextRecordsRestored?: number;
|
|
1647
|
+
cacheArtifactsRestored?: number;
|
|
1648
|
+
framesRestored?: number;
|
|
1649
|
+
ledgerEntriesRestored?: number;
|
|
1650
|
+
stageOrder?: string[];
|
|
1651
|
+
} & {
|
|
1652
|
+
[key: string]: unknown;
|
|
1653
|
+
}>;
|
|
1654
|
+
};
|
|
1655
|
+
tenant: {
|
|
1656
|
+
export: (body: {
|
|
1657
|
+
requestedBy: string;
|
|
1658
|
+
includeLedger: boolean;
|
|
1659
|
+
includeOperationalRecords: boolean;
|
|
1660
|
+
}, idempotencyKey: string) => Promise<{
|
|
1661
|
+
[key: string]: unknown;
|
|
1662
|
+
}>;
|
|
1663
|
+
delete: (body: {
|
|
1664
|
+
requestedBy: string;
|
|
1665
|
+
reason: string;
|
|
1666
|
+
legalHold: boolean;
|
|
1667
|
+
}, idempotencyKey: string) => Promise<{
|
|
1668
|
+
[key: string]: unknown;
|
|
1669
|
+
}>;
|
|
1670
|
+
};
|
|
1671
|
+
policy: {
|
|
1672
|
+
evaluate: (body: {
|
|
1673
|
+
actorId: string;
|
|
1674
|
+
action: string;
|
|
1675
|
+
dataClass: string;
|
|
1676
|
+
allowRawContext: boolean;
|
|
1677
|
+
modelClass: string;
|
|
1678
|
+
}, idempotencyKey: string) => Promise<{
|
|
1679
|
+
decisionId?: string;
|
|
1680
|
+
allowed?: boolean;
|
|
1681
|
+
decision?: "allow" | "deny";
|
|
1682
|
+
reason?: string;
|
|
1683
|
+
requiresRedaction?: boolean;
|
|
1684
|
+
auditLevel?: string;
|
|
1685
|
+
reasons?: string[];
|
|
1686
|
+
denialReasons?: string[];
|
|
1687
|
+
explanation?: Record<string, never>;
|
|
1688
|
+
}>;
|
|
1689
|
+
};
|
|
1690
|
+
foundryRoutes: {
|
|
1691
|
+
enforce: (body: {
|
|
1692
|
+
routeAlias: string;
|
|
1693
|
+
modelClass: string;
|
|
1694
|
+
dataUseTerms: string[];
|
|
1695
|
+
tokenBudget: number;
|
|
1696
|
+
inputTokens: number;
|
|
1697
|
+
}, idempotencyKey: string) => Promise<{
|
|
1698
|
+
allowed?: boolean;
|
|
1699
|
+
routeAlias?: string;
|
|
1700
|
+
modelClass?: string;
|
|
1701
|
+
inputTokens?: number;
|
|
1702
|
+
maxInputTokens?: number;
|
|
1703
|
+
reasons?: string[];
|
|
1704
|
+
}>;
|
|
1705
|
+
};
|
|
1706
|
+
promotions: {
|
|
1707
|
+
list: () => Promise<{
|
|
1708
|
+
[key: string]: unknown;
|
|
1709
|
+
}[]>;
|
|
1710
|
+
propose: (body: {
|
|
1711
|
+
sourceRecordId: string;
|
|
1712
|
+
proposedBy: string;
|
|
1713
|
+
sanitizedContentRef?: string;
|
|
1714
|
+
sanitizedSummary?: string;
|
|
1715
|
+
labels?: string[];
|
|
1716
|
+
}, idempotencyKey: string) => Promise<{
|
|
1717
|
+
[key: string]: unknown;
|
|
1718
|
+
}>;
|
|
1719
|
+
review: (promotionId: string, body: In<"lanes_reviewPromotion">["body"], idempotencyKey: string) => Promise<{
|
|
1720
|
+
[key: string]: unknown;
|
|
1721
|
+
}>;
|
|
1722
|
+
};
|
|
1723
|
+
operations: {
|
|
1724
|
+
records: () => Promise<{
|
|
1725
|
+
meterRecords?: Record<string, never>[];
|
|
1726
|
+
auditRecords?: Record<string, never>[];
|
|
1727
|
+
evidenceRecords?: Record<string, never>[];
|
|
1728
|
+
probeEvents?: Record<string, never>[];
|
|
1729
|
+
}>;
|
|
1730
|
+
get: (operationId: string) => Promise<{
|
|
1731
|
+
operationId?: string;
|
|
1732
|
+
state?: string;
|
|
1733
|
+
responseStatus?: number;
|
|
1734
|
+
} & {
|
|
1735
|
+
[key: string]: unknown;
|
|
1736
|
+
}>;
|
|
1737
|
+
};
|
|
1738
|
+
};
|
|
1739
|
+
readonly flares: {
|
|
1740
|
+
list: (q?: In<"flares_listFlares">) => Promise<({
|
|
1741
|
+
id?: string;
|
|
1742
|
+
status?: string;
|
|
1743
|
+
flareType?: string;
|
|
1744
|
+
recipientId?: string;
|
|
1745
|
+
recipientType?: string;
|
|
1746
|
+
priority?: string;
|
|
1747
|
+
channels?: string[];
|
|
1748
|
+
createdAt?: string;
|
|
1749
|
+
updatedAt?: string;
|
|
1750
|
+
deliveryReceipts?: {
|
|
1751
|
+
[key: string]: unknown;
|
|
1752
|
+
};
|
|
1753
|
+
} & {
|
|
1754
|
+
[key: string]: unknown;
|
|
1755
|
+
})[]>;
|
|
1756
|
+
get: (id: string) => Promise<{
|
|
1757
|
+
id?: string;
|
|
1758
|
+
status?: string;
|
|
1759
|
+
flareType?: string;
|
|
1760
|
+
recipientId?: string;
|
|
1761
|
+
recipientType?: string;
|
|
1762
|
+
priority?: string;
|
|
1763
|
+
channels?: string[];
|
|
1764
|
+
createdAt?: string;
|
|
1765
|
+
updatedAt?: string;
|
|
1766
|
+
deliveryReceipts?: {
|
|
1767
|
+
[key: string]: unknown;
|
|
1768
|
+
};
|
|
1769
|
+
} & {
|
|
1770
|
+
[key: string]: unknown;
|
|
1771
|
+
}>;
|
|
1772
|
+
send: (body: In<"flares_sendFlare">["body"], key: string) => Promise<{
|
|
1773
|
+
id?: string;
|
|
1774
|
+
status?: string;
|
|
1775
|
+
}>;
|
|
1776
|
+
sendBatch: (body: In<"flares_sendFlareBatch">["body"], key: string) => Promise<{
|
|
1777
|
+
results?: components["schemas"]["Flares.SendFlareResponse"][];
|
|
1778
|
+
}>;
|
|
1779
|
+
acknowledge: (id: string, body: In<"flares_acknowledgeFlare">["body"], key: string) => Promise<{
|
|
1780
|
+
[key: string]: unknown;
|
|
1781
|
+
}>;
|
|
1782
|
+
act: (id: string, body: In<"flares_actOnFlare">["body"], key: string) => Promise<{
|
|
1783
|
+
[key: string]: unknown;
|
|
1784
|
+
}>;
|
|
1785
|
+
conversations: {
|
|
1786
|
+
list: () => Promise<{
|
|
1787
|
+
[key: string]: unknown;
|
|
1788
|
+
}[]>;
|
|
1789
|
+
get: (id: string) => Promise<{
|
|
1790
|
+
[key: string]: unknown;
|
|
1791
|
+
}>;
|
|
1792
|
+
create: (body: In<"flares_createConversation">["body"], key: string) => Promise<{
|
|
1793
|
+
[key: string]: unknown;
|
|
1794
|
+
}>;
|
|
1795
|
+
send: (id: string, body: In<"flares_sendConversationMessage">["body"], key: string) => Promise<{
|
|
1796
|
+
[key: string]: unknown;
|
|
1797
|
+
}>;
|
|
1798
|
+
close: (id: string, key: string) => Promise<{
|
|
1799
|
+
[key: string]: unknown;
|
|
1800
|
+
}>;
|
|
1801
|
+
};
|
|
1802
|
+
commitments: {
|
|
1803
|
+
list: () => Promise<{
|
|
1804
|
+
[key: string]: unknown;
|
|
1805
|
+
}[]>;
|
|
1806
|
+
get: (id: string) => Promise<{
|
|
1807
|
+
[key: string]: unknown;
|
|
1808
|
+
}>;
|
|
1809
|
+
create: (body: In<"flares_createCommitment">["body"], key: string) => Promise<{
|
|
1810
|
+
[key: string]: unknown;
|
|
1811
|
+
}>;
|
|
1812
|
+
accept: (id: string, key: string) => Promise<{
|
|
1813
|
+
[key: string]: unknown;
|
|
1814
|
+
}>;
|
|
1815
|
+
start: (id: string, key: string) => Promise<{
|
|
1816
|
+
[key: string]: unknown;
|
|
1817
|
+
}>;
|
|
1818
|
+
progress: (id: string, body: In<"flares_reportCommitmentProgress">["body"], key: string) => Promise<{
|
|
1819
|
+
[key: string]: unknown;
|
|
1820
|
+
}>;
|
|
1821
|
+
fulfill: (id: string, body: In<"flares_fulfillCommitment">["body"], key: string) => Promise<{
|
|
1822
|
+
[key: string]: unknown;
|
|
1823
|
+
}>;
|
|
1824
|
+
fail: (id: string, body: In<"flares_failCommitment">["body"], key: string) => Promise<{
|
|
1825
|
+
[key: string]: unknown;
|
|
1826
|
+
}>;
|
|
1827
|
+
};
|
|
1828
|
+
presence: {
|
|
1829
|
+
heartbeat: (body: In<"flares_presenceHeartbeat">["body"], key: string) => Promise<{
|
|
1830
|
+
did?: string;
|
|
1831
|
+
status?: string;
|
|
1832
|
+
sessionId?: string;
|
|
1833
|
+
sessionCount?: number;
|
|
1834
|
+
lastSeenAt?: string;
|
|
1835
|
+
} & {
|
|
1836
|
+
[key: string]: unknown;
|
|
1837
|
+
}>;
|
|
1838
|
+
get: (did: string) => Promise<{
|
|
1839
|
+
did?: string;
|
|
1840
|
+
status?: string;
|
|
1841
|
+
sessionId?: string;
|
|
1842
|
+
sessionCount?: number;
|
|
1843
|
+
lastSeenAt?: string;
|
|
1844
|
+
} & {
|
|
1845
|
+
[key: string]: unknown;
|
|
1846
|
+
}>;
|
|
1847
|
+
};
|
|
1848
|
+
trust: {
|
|
1849
|
+
score: (did: string) => Promise<{
|
|
1850
|
+
did?: string;
|
|
1851
|
+
score?: number;
|
|
1852
|
+
confidence?: number;
|
|
1853
|
+
dataPoints?: number;
|
|
1854
|
+
computedAt?: string;
|
|
1855
|
+
expiresAt?: string;
|
|
1856
|
+
trustLevel?: string;
|
|
1857
|
+
endorsementCount?: number;
|
|
1858
|
+
} & {
|
|
1859
|
+
[key: string]: unknown;
|
|
1860
|
+
}>;
|
|
1861
|
+
check: (body: In<"flares_checkTrust">["body"], key: string) => Promise<{
|
|
1862
|
+
[key: string]: unknown;
|
|
1863
|
+
}>;
|
|
1864
|
+
endorsements: (did: string) => Promise<{
|
|
1865
|
+
[key: string]: unknown;
|
|
1866
|
+
}[]>;
|
|
1867
|
+
endorse: (body: In<"flares_createEndorsement">["body"], key: string) => Promise<{
|
|
1868
|
+
[key: string]: unknown;
|
|
1869
|
+
}>;
|
|
1870
|
+
revoke: (id: string, key: string) => Promise<{
|
|
1871
|
+
[key: string]: unknown;
|
|
1872
|
+
}>;
|
|
1873
|
+
};
|
|
1874
|
+
choreography: {
|
|
1875
|
+
workflows: {
|
|
1876
|
+
list: () => Promise<{
|
|
1877
|
+
[key: string]: unknown;
|
|
1878
|
+
}[]>;
|
|
1879
|
+
create: (body: In<"flares_createChoreographyWorkflow">["body"], key: string) => Promise<{
|
|
1880
|
+
[key: string]: unknown;
|
|
1881
|
+
}>;
|
|
1882
|
+
start: (workflow_id: string, key: string) => Promise<{
|
|
1883
|
+
[key: string]: unknown;
|
|
1884
|
+
}>;
|
|
1885
|
+
};
|
|
1886
|
+
executions: {
|
|
1887
|
+
list: () => Promise<{
|
|
1888
|
+
[key: string]: unknown;
|
|
1889
|
+
}[]>;
|
|
1890
|
+
get: (execution_id: string) => Promise<{
|
|
1891
|
+
[key: string]: unknown;
|
|
1892
|
+
}>;
|
|
1893
|
+
completeStep: (execution_id: string, step_id: string, body: In<"flares_completeChoreographyStep">["body"], key: string) => Promise<{
|
|
1894
|
+
[key: string]: unknown;
|
|
1895
|
+
}>;
|
|
1896
|
+
failStep: (execution_id: string, step_id: string, body: In<"flares_failChoreographyStep">["body"], key: string) => Promise<{
|
|
1897
|
+
[key: string]: unknown;
|
|
1898
|
+
}>;
|
|
1899
|
+
cancel: (execution_id: string, key: string) => Promise<{
|
|
1900
|
+
[key: string]: unknown;
|
|
1901
|
+
}>;
|
|
1902
|
+
};
|
|
1903
|
+
};
|
|
1904
|
+
};
|
|
1905
|
+
readonly foundry: {
|
|
1906
|
+
billing: {
|
|
1907
|
+
profile: (options?: {
|
|
1908
|
+
signal?: AbortSignal;
|
|
1909
|
+
}) => Promise<{
|
|
1910
|
+
schemaVersion: 1;
|
|
1911
|
+
status: "ready" | "pending" | "attention_required";
|
|
1912
|
+
organizationId: string;
|
|
1913
|
+
billingAccountId: string;
|
|
1914
|
+
environmentId: "sandbox";
|
|
1915
|
+
stripeAccountId: string;
|
|
1916
|
+
stripeCustomerId: string | null;
|
|
1917
|
+
livemode: false;
|
|
1918
|
+
canEnsure: boolean;
|
|
1919
|
+
} | {
|
|
1920
|
+
foundry_account_id: string;
|
|
1921
|
+
available_microdollars: number;
|
|
1922
|
+
granted_microdollars: number;
|
|
1923
|
+
reserved_microdollars: number;
|
|
1924
|
+
reserved_overage_microdollars: number;
|
|
1925
|
+
settlement_owner: "foundry";
|
|
1926
|
+
launch_listed: boolean;
|
|
1927
|
+
}>;
|
|
1928
|
+
ensureProfile: (operationKey: string, options?: {
|
|
1929
|
+
signal?: AbortSignal;
|
|
1930
|
+
}) => Promise<{
|
|
1931
|
+
schemaVersion: 1;
|
|
1932
|
+
status: "ready" | "pending" | "attention_required";
|
|
1933
|
+
organizationId: string;
|
|
1934
|
+
billingAccountId: string;
|
|
1935
|
+
environmentId: "sandbox";
|
|
1936
|
+
stripeAccountId: string;
|
|
1937
|
+
stripeCustomerId: string | null;
|
|
1938
|
+
livemode: false;
|
|
1939
|
+
canEnsure: boolean;
|
|
1940
|
+
} | {
|
|
1941
|
+
intent_id: string;
|
|
1942
|
+
stripe_checkout_session_id: string;
|
|
1943
|
+
checkout_url?: string;
|
|
1944
|
+
status?: "paid" | "processing";
|
|
1945
|
+
stripe_payment_intent_id?: string;
|
|
1946
|
+
}>;
|
|
1947
|
+
checkoutCredits: (purchaseKey: string, options?: {
|
|
1948
|
+
signal?: AbortSignal;
|
|
1949
|
+
}) => Promise<{
|
|
1950
|
+
schemaVersion: 1;
|
|
1951
|
+
status: "ready" | "pending" | "attention_required";
|
|
1952
|
+
organizationId: string;
|
|
1953
|
+
billingAccountId: string;
|
|
1954
|
+
environmentId: "sandbox";
|
|
1955
|
+
stripeAccountId: string;
|
|
1956
|
+
stripeCustomerId: string | null;
|
|
1957
|
+
livemode: false;
|
|
1958
|
+
canEnsure: boolean;
|
|
1959
|
+
} | {
|
|
1960
|
+
intent_id: string;
|
|
1961
|
+
stripe_checkout_session_id: string;
|
|
1962
|
+
checkout_url?: string;
|
|
1963
|
+
status?: "paid" | "processing";
|
|
1964
|
+
stripe_payment_intent_id?: string;
|
|
1965
|
+
}>;
|
|
1966
|
+
creditBalance: (options?: {
|
|
1967
|
+
signal?: AbortSignal;
|
|
1968
|
+
}) => Promise<{
|
|
1969
|
+
schemaVersion: 1;
|
|
1970
|
+
status: "ready" | "pending" | "attention_required";
|
|
1971
|
+
organizationId: string;
|
|
1972
|
+
billingAccountId: string;
|
|
1973
|
+
environmentId: "sandbox";
|
|
1974
|
+
stripeAccountId: string;
|
|
1975
|
+
stripeCustomerId: string | null;
|
|
1976
|
+
livemode: false;
|
|
1977
|
+
canEnsure: boolean;
|
|
1978
|
+
} | {
|
|
1979
|
+
foundry_account_id: string;
|
|
1980
|
+
available_microdollars: number;
|
|
1981
|
+
granted_microdollars: number;
|
|
1982
|
+
reserved_microdollars: number;
|
|
1983
|
+
reserved_overage_microdollars: number;
|
|
1984
|
+
settlement_owner: "foundry";
|
|
1985
|
+
launch_listed: boolean;
|
|
1986
|
+
}>;
|
|
1987
|
+
};
|
|
1988
|
+
models: {
|
|
1989
|
+
list: () => Promise<{
|
|
1990
|
+
[key: string]: unknown;
|
|
1991
|
+
}>;
|
|
1992
|
+
};
|
|
1993
|
+
/** OpenAI-compatible chat completion (non-streaming). */
|
|
1994
|
+
chat: (body: {
|
|
1995
|
+
model: string;
|
|
1996
|
+
messages: ChatMessage[];
|
|
1997
|
+
} & Record<string, unknown>) => Promise<{
|
|
1998
|
+
id: string;
|
|
1999
|
+
model?: string;
|
|
2000
|
+
choices: {
|
|
2001
|
+
[key: string]: unknown;
|
|
2002
|
+
}[];
|
|
2003
|
+
usage?: components["schemas"]["Foundry.Usage"];
|
|
2004
|
+
foundry?: components["schemas"]["Foundry.RequestMetadata"];
|
|
2005
|
+
} & {
|
|
2006
|
+
[key: string]: unknown;
|
|
2007
|
+
}>;
|
|
2008
|
+
/** Streaming chat: yields content deltas parsed from the SSE stream. */
|
|
2009
|
+
chatStream: (body: {
|
|
2010
|
+
model: string;
|
|
2011
|
+
messages: ChatMessage[];
|
|
2012
|
+
} & Record<string, unknown>) => AsyncGenerator<string, any, any>;
|
|
2013
|
+
embeddings: (body: In<"foundry_createEmbedding">["body"]) => Promise<{
|
|
2014
|
+
object?: string;
|
|
2015
|
+
model?: string;
|
|
2016
|
+
data: {
|
|
2017
|
+
[key: string]: unknown;
|
|
2018
|
+
}[];
|
|
2019
|
+
usage?: components["schemas"]["Foundry.Usage"];
|
|
2020
|
+
} & {
|
|
2021
|
+
[key: string]: unknown;
|
|
2022
|
+
}>;
|
|
2023
|
+
registry: {
|
|
2024
|
+
models: (q?: In<"foundry_listRegistryModels">) => Promise<{
|
|
2025
|
+
[key: string]: unknown;
|
|
2026
|
+
}>;
|
|
2027
|
+
model: (canonical_model_id: string) => Promise<{
|
|
2028
|
+
[key: string]: unknown;
|
|
2029
|
+
}>;
|
|
2030
|
+
};
|
|
2031
|
+
};
|
|
2032
|
+
readonly hives: {
|
|
2033
|
+
volumes: {
|
|
2034
|
+
list(project: string, query?: {
|
|
2035
|
+
page?: number;
|
|
2036
|
+
per_page?: number;
|
|
2037
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-volumes.js").HivesVolumePage>;
|
|
2038
|
+
get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-volumes.js").HivesVolume>;
|
|
2039
|
+
create(project: string, input: import("./hives-volumes.js").HivesVolumeCreate, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-volumes.js").HivesVolume>;
|
|
2040
|
+
mount(project: string, id: string, input: import("./hives-volumes.js").HivesVolumeMount, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-volumes.js").HivesVolume>;
|
|
2041
|
+
unmount(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-volumes.js").HivesVolume>;
|
|
2042
|
+
remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2043
|
+
success: true;
|
|
2044
|
+
id: string;
|
|
2045
|
+
message: string;
|
|
2046
|
+
}>;
|
|
2047
|
+
};
|
|
2048
|
+
marketplace: {
|
|
2049
|
+
list(project: string, query?: import("./hives-marketplace.js").HivesMarketplaceSearch, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplacePage<import("./hives-marketplace.js").HivesMarketplacePackage>>;
|
|
2050
|
+
get(project: string, packageSlug: string, query?: {
|
|
2051
|
+
version?: string | null;
|
|
2052
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceDetail>;
|
|
2053
|
+
versions(project: string, packageSlug: string, query?: {
|
|
2054
|
+
page?: number;
|
|
2055
|
+
page_size?: number;
|
|
2056
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplacePage<import("./hives-marketplace.js").HivesMarketplaceVersion>>;
|
|
2057
|
+
featured(project: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplacePage<import("./hives-marketplace.js").HivesMarketplacePackage>>;
|
|
2058
|
+
categories(project: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceCategory[]>;
|
|
2059
|
+
publish(project: string, input: import("./hives-marketplace.js").HivesMarketplacePublish, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceDetail>;
|
|
2060
|
+
install(project: string, packageSlug: string, input?: import("./hives-marketplace.js").HivesMarketplaceInstall, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceInstallation>;
|
|
2061
|
+
update(project: string, packageSlug: string, input?: import("./hives-marketplace.js").HivesMarketplaceInstall, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceInstallation>;
|
|
2062
|
+
installed(project: string, query?: {
|
|
2063
|
+
page?: number;
|
|
2064
|
+
page_size?: number;
|
|
2065
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplacePage<import("./hives-marketplace.js").HivesMarketplaceInstallation>>;
|
|
2066
|
+
getInstallation(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceInstallation>;
|
|
2067
|
+
reconcile(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceInstallation>;
|
|
2068
|
+
uninstall(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-marketplace.js").HivesMarketplaceInstallation>;
|
|
2069
|
+
};
|
|
2070
|
+
/** The gateway resolves the current authorized selection from an interactive One account session. */
|
|
2071
|
+
context: {
|
|
2072
|
+
get: () => Promise<{
|
|
2073
|
+
binding: components["schemas"]["Hives.ProjectBindingMetadata"];
|
|
2074
|
+
project: components["schemas"]["Hives.ContextProjectMetadata"];
|
|
2075
|
+
selectedContext: components["schemas"]["Hives.SelectedContext"];
|
|
2076
|
+
}>;
|
|
2077
|
+
set: (body: In<"hives_set_context_project">["body"]) => Promise<{
|
|
2078
|
+
binding: components["schemas"]["Hives.ProjectBindingMetadata"];
|
|
2079
|
+
project: components["schemas"]["Hives.ContextProjectMetadata"];
|
|
2080
|
+
selectedContext: components["schemas"]["Hives.SelectedContext"];
|
|
2081
|
+
}>;
|
|
2082
|
+
/** Detach this selection; the service project and customer resources are retained. */
|
|
2083
|
+
detach: () => Promise<{
|
|
2084
|
+
hivesProjectId: string;
|
|
2085
|
+
removed: boolean;
|
|
2086
|
+
}>;
|
|
2087
|
+
};
|
|
2088
|
+
environment: {
|
|
2089
|
+
list: (project_id: string, q?: Omit<In<"hives_list_project_environment">, "project_id">) => Promise<{
|
|
2090
|
+
data: components["schemas"]["Hives.EnvironmentVariableMetadata"][];
|
|
2091
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
2092
|
+
project_id: string;
|
|
2093
|
+
}>;
|
|
2094
|
+
upsert: (project_id: string, body: In<"hives_update_project_environment">["body"]) => Promise<{
|
|
2095
|
+
project_id: string;
|
|
2096
|
+
updated: components["schemas"]["Hives.EnvironmentVariableMetadata"][];
|
|
2097
|
+
}>;
|
|
2098
|
+
/** Explicit KMS reveal with a persisted names-only audit. Do not log the plaintext. */
|
|
2099
|
+
reveal: (project_id: string, key: string) => Promise<{
|
|
2100
|
+
name: string;
|
|
2101
|
+
value: string;
|
|
2102
|
+
}>;
|
|
2103
|
+
};
|
|
2104
|
+
projects: {
|
|
2105
|
+
list: (q?: In<"hives_list_projects">) => Promise<{
|
|
2106
|
+
data: (Record<string, never> & {
|
|
2107
|
+
active_instances?: number | null;
|
|
2108
|
+
current_version?: number | null;
|
|
2109
|
+
observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
|
|
2110
|
+
requests_24h?: number | null;
|
|
2111
|
+
summary_state: components["schemas"]["Hives.ProjectSummaryState"];
|
|
2112
|
+
total_deployments?: number | null;
|
|
2113
|
+
})[];
|
|
2114
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
2115
|
+
}>;
|
|
2116
|
+
get: (project_id: string) => Promise<Record<string, never> & {
|
|
2117
|
+
active_instances?: number | null;
|
|
2118
|
+
current_version?: number | null;
|
|
2119
|
+
observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
|
|
2120
|
+
requests_24h?: number | null;
|
|
2121
|
+
summary_state: components["schemas"]["Hives.ProjectSummaryState"];
|
|
2122
|
+
total_deployments?: number | null;
|
|
2123
|
+
}>;
|
|
2124
|
+
create: (body: In<"hives_create_project">["body"]) => Promise<Record<string, never> & {
|
|
2125
|
+
active_instances?: number | null;
|
|
2126
|
+
current_version?: number | null;
|
|
2127
|
+
observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
|
|
2128
|
+
requests_24h?: number | null;
|
|
2129
|
+
summary_state: components["schemas"]["Hives.ProjectSummaryState"];
|
|
2130
|
+
total_deployments?: number | null;
|
|
2131
|
+
}>;
|
|
2132
|
+
update: (project_id: string, body: In<"hives_update_project">["body"]) => Promise<Record<string, never> & {
|
|
2133
|
+
active_instances?: number | null;
|
|
2134
|
+
current_version?: number | null;
|
|
2135
|
+
observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
|
|
2136
|
+
requests_24h?: number | null;
|
|
2137
|
+
summary_state: components["schemas"]["Hives.ProjectSummaryState"];
|
|
2138
|
+
total_deployments?: number | null;
|
|
2139
|
+
}>;
|
|
2140
|
+
activity: (project_id: string, q?: Omit<In<"hives_get_project_activity">, "project_id">) => Promise<{
|
|
2141
|
+
data: components["schemas"]["Hives.ActivityEntry"][];
|
|
2142
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
2143
|
+
}>;
|
|
2144
|
+
delete: (project_id: string) => Promise<{
|
|
2145
|
+
id: string;
|
|
2146
|
+
message: string;
|
|
2147
|
+
success: boolean;
|
|
2148
|
+
}>;
|
|
2149
|
+
};
|
|
2150
|
+
secrets: {
|
|
2151
|
+
list: (project_id: string, q?: Omit<In<"hives_list_secrets">, "project_id">) => Promise<{
|
|
2152
|
+
data: {
|
|
2153
|
+
created_at: string;
|
|
2154
|
+
description?: string | null;
|
|
2155
|
+
name: string;
|
|
2156
|
+
updated_at: string;
|
|
2157
|
+
version: number;
|
|
2158
|
+
}[];
|
|
2159
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
2160
|
+
}>;
|
|
2161
|
+
get: (project_id: string, secret_id: string) => Promise<{
|
|
2162
|
+
id: string;
|
|
2163
|
+
created_at: string;
|
|
2164
|
+
description?: string | null;
|
|
2165
|
+
name: string;
|
|
2166
|
+
updated_at: string;
|
|
2167
|
+
version: number;
|
|
2168
|
+
}>;
|
|
2169
|
+
create: (project_id: string, body: In<"hives_create_secret">["body"]) => Promise<{
|
|
2170
|
+
id: string;
|
|
2171
|
+
created_at: string;
|
|
2172
|
+
description?: string | null;
|
|
2173
|
+
name: string;
|
|
2174
|
+
updated_at: string;
|
|
2175
|
+
version: number;
|
|
2176
|
+
}>;
|
|
2177
|
+
update: (project_id: string, secret_id: string, body: In<"hives_update_secret">["body"]) => Promise<{
|
|
2178
|
+
id: string;
|
|
2179
|
+
created_at: string;
|
|
2180
|
+
description?: string | null;
|
|
2181
|
+
name: string;
|
|
2182
|
+
updated_at: string;
|
|
2183
|
+
version: number;
|
|
2184
|
+
}>;
|
|
2185
|
+
delete: (project_id: string, secret_id: string) => Promise<{
|
|
2186
|
+
id: string;
|
|
2187
|
+
message: string;
|
|
2188
|
+
success: boolean;
|
|
2189
|
+
}>;
|
|
2190
|
+
/** Explicit sensitive operation. Do not log or retain the returned plaintext. */
|
|
2191
|
+
reveal: (project_id: string, secret_id: string) => Promise<{
|
|
2192
|
+
value: string;
|
|
2193
|
+
}>;
|
|
2194
|
+
bulkUpsert: (project_id: string, body: In<"hives_bulk_upsert_secrets">["body"]) => Promise<{
|
|
2195
|
+
success: boolean;
|
|
2196
|
+
secrets: components["schemas"]["Hives.SecretResponse"][];
|
|
2197
|
+
}>;
|
|
2198
|
+
};
|
|
2199
|
+
deployments: {
|
|
2200
|
+
list: (project_id: string, q?: Omit<In<"hives_list_deployments">, "project_id">) => Promise<{
|
|
2201
|
+
data: (Record<string, never> & {
|
|
2202
|
+
logs_url?: string | null;
|
|
2203
|
+
url?: string | null;
|
|
2204
|
+
})[];
|
|
2205
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
2206
|
+
}>;
|
|
2207
|
+
get: (project_id: string, deployment_id: string) => Promise<{
|
|
2208
|
+
id: string;
|
|
2209
|
+
project_id: string;
|
|
2210
|
+
tenant_id: string;
|
|
2211
|
+
module_id: string;
|
|
2212
|
+
module_hash?: string | null;
|
|
2213
|
+
version: number;
|
|
2214
|
+
status: string;
|
|
2215
|
+
git_sha?: string | null;
|
|
2216
|
+
git_branch?: string | null;
|
|
2217
|
+
created_by: string;
|
|
2218
|
+
created_at: string;
|
|
2219
|
+
promoted_at?: string | null;
|
|
2220
|
+
logs_url?: string | null;
|
|
2221
|
+
url?: string | null;
|
|
2222
|
+
}>;
|
|
2223
|
+
upload: (project_id: string, file: Blob, options?: HivesUploadOptions) => Promise<{
|
|
2224
|
+
id: string;
|
|
2225
|
+
project_id: string;
|
|
2226
|
+
tenant_id: string;
|
|
2227
|
+
module_id: string;
|
|
2228
|
+
module_hash?: string | null;
|
|
2229
|
+
version: number;
|
|
2230
|
+
status: string;
|
|
2231
|
+
git_sha?: string | null;
|
|
2232
|
+
git_branch?: string | null;
|
|
2233
|
+
created_by: string;
|
|
2234
|
+
created_at: string;
|
|
2235
|
+
promoted_at?: string | null;
|
|
2236
|
+
logs_url?: string | null;
|
|
2237
|
+
url?: string | null;
|
|
2238
|
+
}>;
|
|
2239
|
+
create: (project_id: string, body: In<"hives_create_deployment">["body"]) => Promise<{
|
|
2240
|
+
id: string;
|
|
2241
|
+
project_id: string;
|
|
2242
|
+
tenant_id: string;
|
|
2243
|
+
module_id: string;
|
|
2244
|
+
module_hash?: string | null;
|
|
2245
|
+
version: number;
|
|
2246
|
+
status: string;
|
|
2247
|
+
git_sha?: string | null;
|
|
2248
|
+
git_branch?: string | null;
|
|
2249
|
+
created_by: string;
|
|
2250
|
+
created_at: string;
|
|
2251
|
+
promoted_at?: string | null;
|
|
2252
|
+
logs_url?: string | null;
|
|
2253
|
+
url?: string | null;
|
|
2254
|
+
}>;
|
|
2255
|
+
promote: (project_id: string, deployment_id: string) => Promise<{
|
|
2256
|
+
id: string;
|
|
2257
|
+
project_id: string;
|
|
2258
|
+
tenant_id: string;
|
|
2259
|
+
module_id: string;
|
|
2260
|
+
module_hash?: string | null;
|
|
2261
|
+
version: number;
|
|
2262
|
+
status: string;
|
|
2263
|
+
git_sha?: string | null;
|
|
2264
|
+
git_branch?: string | null;
|
|
2265
|
+
created_by: string;
|
|
2266
|
+
created_at: string;
|
|
2267
|
+
promoted_at?: string | null;
|
|
2268
|
+
logs_url?: string | null;
|
|
2269
|
+
url?: string | null;
|
|
2270
|
+
}>;
|
|
2271
|
+
rollback: (project_id: string, deployment_id: string, body?: In<"hives_rollback_deployment">["body"]) => Promise<{
|
|
2272
|
+
id: string;
|
|
2273
|
+
project_id: string;
|
|
2274
|
+
tenant_id: string;
|
|
2275
|
+
module_id: string;
|
|
2276
|
+
module_hash?: string | null;
|
|
2277
|
+
version: number;
|
|
2278
|
+
status: string;
|
|
2279
|
+
git_sha?: string | null;
|
|
2280
|
+
git_branch?: string | null;
|
|
2281
|
+
created_by: string;
|
|
2282
|
+
created_at: string;
|
|
2283
|
+
promoted_at?: string | null;
|
|
2284
|
+
logs_url?: string | null;
|
|
2285
|
+
url?: string | null;
|
|
2286
|
+
}>;
|
|
2287
|
+
cancel: (project_id: string, deployment_id: string) => Promise<{
|
|
2288
|
+
id: string;
|
|
2289
|
+
project_id: string;
|
|
2290
|
+
tenant_id: string;
|
|
2291
|
+
module_id: string;
|
|
2292
|
+
module_hash?: string | null;
|
|
2293
|
+
version: number;
|
|
2294
|
+
status: string;
|
|
2295
|
+
git_sha?: string | null;
|
|
2296
|
+
git_branch?: string | null;
|
|
2297
|
+
created_by: string;
|
|
2298
|
+
created_at: string;
|
|
2299
|
+
promoted_at?: string | null;
|
|
2300
|
+
logs_url?: string | null;
|
|
2301
|
+
url?: string | null;
|
|
2302
|
+
}>;
|
|
2303
|
+
stop: (project_id: string, deployment_id: string, init?: {
|
|
2304
|
+
signal?: AbortSignal;
|
|
2305
|
+
}) => Promise<{
|
|
2306
|
+
id: string;
|
|
2307
|
+
project_id: string;
|
|
2308
|
+
tenant_id: string;
|
|
2309
|
+
module_id: string;
|
|
2310
|
+
module_hash?: string | null;
|
|
2311
|
+
version: number;
|
|
2312
|
+
status: string;
|
|
2313
|
+
git_sha?: string | null;
|
|
2314
|
+
git_branch?: string | null;
|
|
2315
|
+
created_by: string;
|
|
2316
|
+
created_at: string;
|
|
2317
|
+
promoted_at?: string | null;
|
|
2318
|
+
logs_url?: string | null;
|
|
2319
|
+
url?: string | null;
|
|
2320
|
+
}>;
|
|
2321
|
+
delete: (project_id: string, deployment_id: string) => Promise<{
|
|
2322
|
+
id: string;
|
|
2323
|
+
message: string;
|
|
2324
|
+
success: boolean;
|
|
2325
|
+
}>;
|
|
2326
|
+
logs: (project_id: string, deployment_id: string, q?: Omit<In<"hives_query_deployment_logs">, "project_id" | "deployment_id">) => Promise<{
|
|
2327
|
+
logs: components["schemas"]["Hives.LogEntry"][];
|
|
2328
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
2329
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
2330
|
+
}>;
|
|
2331
|
+
invoke: (project_id: string, deployment_id: string, body?: In<"hives_invoke_deployment">["body"], init?: {
|
|
2332
|
+
signal?: AbortSignal;
|
|
2333
|
+
}) => Promise<Response>;
|
|
2334
|
+
};
|
|
2335
|
+
functions: {
|
|
2336
|
+
list: (project_id: string, q?: Omit<In<"hives_list_functions">, "project_id">) => Promise<{
|
|
2337
|
+
data: components["schemas"]["Hives.FunctionResponse"][];
|
|
2338
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
2339
|
+
}>;
|
|
2340
|
+
get: (project_id: string, function_id: string) => Promise<{
|
|
2341
|
+
id: string;
|
|
2342
|
+
tenant_id: string;
|
|
2343
|
+
project_id: string;
|
|
2344
|
+
name: string;
|
|
2345
|
+
description?: string | null;
|
|
2346
|
+
handler: string;
|
|
2347
|
+
route?: string | null;
|
|
2348
|
+
memory_mb: number;
|
|
2349
|
+
timeout_ms: number;
|
|
2350
|
+
status: string;
|
|
2351
|
+
invocations: number;
|
|
2352
|
+
avg_duration_ms: number;
|
|
2353
|
+
created_at: string;
|
|
2354
|
+
updated_at: string;
|
|
2355
|
+
}>;
|
|
2356
|
+
create: (project_id: string, body: In<"hives_create_function">["body"]) => Promise<{
|
|
2357
|
+
id: string;
|
|
2358
|
+
tenant_id: string;
|
|
2359
|
+
project_id: string;
|
|
2360
|
+
name: string;
|
|
2361
|
+
description?: string | null;
|
|
2362
|
+
handler: string;
|
|
2363
|
+
route?: string | null;
|
|
2364
|
+
memory_mb: number;
|
|
2365
|
+
timeout_ms: number;
|
|
2366
|
+
status: string;
|
|
2367
|
+
invocations: number;
|
|
2368
|
+
avg_duration_ms: number;
|
|
2369
|
+
created_at: string;
|
|
2370
|
+
updated_at: string;
|
|
2371
|
+
}>;
|
|
2372
|
+
update: (project_id: string, function_id: string, body: In<"hives_update_function">["body"]) => Promise<{
|
|
2373
|
+
id: string;
|
|
2374
|
+
tenant_id: string;
|
|
2375
|
+
project_id: string;
|
|
2376
|
+
name: string;
|
|
2377
|
+
description?: string | null;
|
|
2378
|
+
handler: string;
|
|
2379
|
+
route?: string | null;
|
|
2380
|
+
memory_mb: number;
|
|
2381
|
+
timeout_ms: number;
|
|
2382
|
+
status: string;
|
|
2383
|
+
invocations: number;
|
|
2384
|
+
avg_duration_ms: number;
|
|
2385
|
+
created_at: string;
|
|
2386
|
+
updated_at: string;
|
|
2387
|
+
}>;
|
|
2388
|
+
delete: (project_id: string, function_id: string) => Promise<{
|
|
2389
|
+
id: string;
|
|
2390
|
+
message: string;
|
|
2391
|
+
success: boolean;
|
|
2392
|
+
}>;
|
|
2393
|
+
/** Completed raw guest response; parse text/JSON/bytes explicitly. Never follows redirects. */
|
|
2394
|
+
invoke: (project_id: string, function_id: string, body?: In<"hives_invoke_function">["body"], init?: HivesInvokeOptions) => Promise<Response>;
|
|
2395
|
+
operations: {
|
|
2396
|
+
get: (project_id: string, function_id: string, operation_id: string, init?: {
|
|
2397
|
+
signal?: AbortSignal;
|
|
2398
|
+
}) => Promise<import("./hives-functions.js").HivesOperationStatus>;
|
|
2399
|
+
release: (project_id: string, function_id: string, operation_id: string, init?: {
|
|
2400
|
+
signal?: AbortSignal;
|
|
2401
|
+
}) => Promise<import("./hives-functions.js").HivesOperationStatus>;
|
|
2402
|
+
};
|
|
2403
|
+
};
|
|
2404
|
+
regions: {
|
|
2405
|
+
list: () => Promise<{
|
|
2406
|
+
regions: components["schemas"]["Hives.Region"][];
|
|
2407
|
+
}>;
|
|
2408
|
+
};
|
|
2409
|
+
cells: {
|
|
2410
|
+
list(project: string, query?: {
|
|
2411
|
+
page?: number;
|
|
2412
|
+
per_page?: number;
|
|
2413
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucketList>;
|
|
2414
|
+
get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucket>;
|
|
2415
|
+
create(project: string, body: import("./hives-cells.js").HivesCreateBucket, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucket>;
|
|
2416
|
+
remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2417
|
+
id: string;
|
|
2418
|
+
success: boolean;
|
|
2419
|
+
message: string;
|
|
2420
|
+
}>;
|
|
2421
|
+
reconcile(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2422
|
+
bucket: import("./hives-cells.js").HivesBucket;
|
|
2423
|
+
outcome: string;
|
|
2424
|
+
}>;
|
|
2425
|
+
cors: {
|
|
2426
|
+
get: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-cells.js").HivesCorsRule[]>;
|
|
2427
|
+
set: (project: string, id: string, rules: import("./hives-cells.js").HivesCorsRule[], options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-cells.js").HivesCorsRule[]>;
|
|
2428
|
+
};
|
|
2429
|
+
objects: {
|
|
2430
|
+
list(project: string, id: string, query?: {
|
|
2431
|
+
prefix?: string;
|
|
2432
|
+
delimiter?: string;
|
|
2433
|
+
continuation_token?: string;
|
|
2434
|
+
max_keys?: number;
|
|
2435
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesObjectList>;
|
|
2436
|
+
put(project: string, id: string, key: string, bytes: Blob | ArrayBuffer | ArrayBufferView, options?: import("./hives-resources-transport.js").HivesResourceOptions & {
|
|
2437
|
+
content_type?: string;
|
|
2438
|
+
}): Promise<import("./hives-cells.js").HivesObjectAcknowledgement>;
|
|
2439
|
+
remove: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<void>;
|
|
2440
|
+
download: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<Response>;
|
|
2441
|
+
putFlat(project: string, id: string, key: string, bytes: Blob | ArrayBuffer | ArrayBufferView, options?: import("./hives-resources-transport.js").HivesResourceOptions & {
|
|
2442
|
+
content_type?: string;
|
|
2443
|
+
}): Promise<import("./hives-cells.js").HivesObjectAcknowledgement>;
|
|
2444
|
+
removeFlat: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<void>;
|
|
2445
|
+
};
|
|
2446
|
+
presign(project: string, id: string, body: import("./hives-cells.js").HivesPresign, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesPresignedUrl>;
|
|
2447
|
+
};
|
|
2448
|
+
queues: {
|
|
2449
|
+
consumer: {
|
|
2450
|
+
get(project: string, queue: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queue-consumer.js").HivesQueueConsumerStatus>;
|
|
2451
|
+
configure(project: string, queue: string, input: import("./hives-queue-consumer.js").HivesQueueConsumerConfig, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queue-consumer.js").HivesQueueConsumerBinding>;
|
|
2452
|
+
remove(project: string, queue: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2453
|
+
success: true;
|
|
2454
|
+
queueId: string;
|
|
2455
|
+
}>;
|
|
2456
|
+
};
|
|
2457
|
+
list(project: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2458
|
+
data: import("./hives-queues.js").HivesQueue[];
|
|
2459
|
+
engine_available: true;
|
|
2460
|
+
}>;
|
|
2461
|
+
get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
2462
|
+
create(project: string, body: import("./hives-queues.js").HivesQueueCreate, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
2463
|
+
configure(project: string, id: string, body: import("./hives-queues.js").HivesQueueConfig, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
2464
|
+
remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2465
|
+
deleted: true;
|
|
2466
|
+
}>;
|
|
2467
|
+
stats(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
2468
|
+
consumers: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<never>;
|
|
2469
|
+
pause(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
2470
|
+
resume(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
2471
|
+
purge(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2472
|
+
purged: number;
|
|
2473
|
+
}>;
|
|
2474
|
+
send(project: string, id: string, body: import("./hives-queues.js").HivesQueueSend, options?: import("./hives-queue-funding.js").HivesQueueSendOptions): Promise<import("./hives-queue-funding.js").HivesQueueOperation | {
|
|
2475
|
+
message_id: string;
|
|
2476
|
+
}>;
|
|
2477
|
+
operations: {
|
|
2478
|
+
get(project: string, id: string, operationId: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queue-funding.js").HivesQueueOperation>;
|
|
2479
|
+
};
|
|
2480
|
+
receive(project: string, id: string, body?: {
|
|
2481
|
+
maxMessages?: number;
|
|
2482
|
+
waitSeconds?: number;
|
|
2483
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2484
|
+
messages: import("./hives-queues.js").HivesQueueDelivery[];
|
|
2485
|
+
}>;
|
|
2486
|
+
ack: (project: string, id: string, message: string, receipt: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
|
|
2487
|
+
acknowledged: boolean;
|
|
2488
|
+
released: boolean;
|
|
2489
|
+
}>;
|
|
2490
|
+
nack: (project: string, id: string, message: string, receipt: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
|
|
2491
|
+
acknowledged: boolean;
|
|
2492
|
+
released: boolean;
|
|
2493
|
+
}>;
|
|
2494
|
+
deadLetters: (project: string, id: string, query?: {
|
|
2495
|
+
limit?: number;
|
|
2496
|
+
offset?: number;
|
|
2497
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
|
|
2498
|
+
messages: import("./hives-queues.js").HivesDeadLetter[];
|
|
2499
|
+
}>;
|
|
2500
|
+
deadLetterStats: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-queues.js").HivesDeadLetterStats>;
|
|
2501
|
+
replay(project: string, id: string, message: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2502
|
+
message_id: string;
|
|
2503
|
+
replayed: 1;
|
|
2504
|
+
}>;
|
|
2505
|
+
deleteDeadLetter(project: string, id: string, message: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2506
|
+
deleted: true;
|
|
2507
|
+
}>;
|
|
2508
|
+
purgeDeadLetters(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2509
|
+
purged: number;
|
|
2510
|
+
}>;
|
|
2511
|
+
};
|
|
2512
|
+
topics: {
|
|
2513
|
+
list(project: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2514
|
+
data: import("./hives-topics.js").HivesTopic[];
|
|
2515
|
+
}>;
|
|
2516
|
+
get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-topics.js").HivesTopic>;
|
|
2517
|
+
create(project: string, body: {
|
|
2518
|
+
name: string;
|
|
2519
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-topics.js").HivesTopic>;
|
|
2520
|
+
remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2521
|
+
deleted: true;
|
|
2522
|
+
}>;
|
|
2523
|
+
subscriptions: {
|
|
2524
|
+
list(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2525
|
+
data: import("./hives-topics.js").HivesTopicSubscription[];
|
|
2526
|
+
}>;
|
|
2527
|
+
add(project: string, id: string, queueId: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-topics.js").HivesTopicSubscription>;
|
|
2528
|
+
remove(project: string, id: string, subscriptionId: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
2529
|
+
deleted: true;
|
|
2530
|
+
}>;
|
|
2531
|
+
};
|
|
2532
|
+
publish(project: string, id: string, body: import("./hives-topics.js").HivesTopicPublish, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-topics.js").HivesTopicPublication>;
|
|
2533
|
+
};
|
|
2534
|
+
runtimes: {
|
|
2535
|
+
list: (options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
|
|
2536
|
+
runtimes: import("./hives-runtimes.js").HivesRuntime[];
|
|
2537
|
+
}>;
|
|
2538
|
+
project: (project_id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
|
|
2539
|
+
runtimes: import("./hives-runtimes.js").HivesRuntime[];
|
|
2540
|
+
}>;
|
|
2541
|
+
get: (name: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-runtimes.js").HivesRuntime>;
|
|
2542
|
+
select: (input: {
|
|
2543
|
+
wasi: string;
|
|
2544
|
+
runner: string;
|
|
2545
|
+
artifact: string;
|
|
2546
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-runtimes.js").HivesRuntimeSelection>;
|
|
2547
|
+
};
|
|
2548
|
+
settings: {
|
|
2549
|
+
get: (project_id: string) => Promise<{
|
|
2550
|
+
autoDeployEnabled: boolean;
|
|
2551
|
+
buildCommand?: string | null;
|
|
2552
|
+
defaultRegion: string;
|
|
2553
|
+
installCommand?: string | null;
|
|
2554
|
+
outputDirectory?: string | null;
|
|
2555
|
+
previewDeploymentsEnabled: boolean;
|
|
2556
|
+
} & {
|
|
2557
|
+
capabilities: components["schemas"]["Hives.ProjectSettingsCapabilities"];
|
|
2558
|
+
effective: components["schemas"]["Hives.EffectiveProjectSettings"];
|
|
2559
|
+
}>;
|
|
2560
|
+
update: (project_id: string, body: In<"hives_update_project_settings">["body"]) => Promise<{
|
|
2561
|
+
autoDeployEnabled: boolean;
|
|
2562
|
+
buildCommand?: string | null;
|
|
2563
|
+
defaultRegion: string;
|
|
2564
|
+
installCommand?: string | null;
|
|
2565
|
+
outputDirectory?: string | null;
|
|
2566
|
+
previewDeploymentsEnabled: boolean;
|
|
2567
|
+
} & {
|
|
2568
|
+
capabilities: components["schemas"]["Hives.ProjectSettingsCapabilities"];
|
|
2569
|
+
effective: components["schemas"]["Hives.EffectiveProjectSettings"];
|
|
2570
|
+
}>;
|
|
2571
|
+
};
|
|
2572
|
+
crons: {
|
|
2573
|
+
list: (project_id: string, q?: Omit<In<"hives_list_crons">, "project_id">) => Promise<Record<string, never>>;
|
|
2574
|
+
get: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
|
|
2575
|
+
create: (project_id: string, body: In<"hives_create_cron">["body"]) => Promise<Record<string, never>>;
|
|
2576
|
+
update: (project_id: string, cron_id: string, body: In<"hives_update_cron">["body"]) => Promise<Record<string, never>>;
|
|
2577
|
+
delete: (project_id: string, cron_id: string) => Promise<{
|
|
2578
|
+
id: string;
|
|
2579
|
+
message: string;
|
|
2580
|
+
success: boolean;
|
|
2581
|
+
}>;
|
|
2582
|
+
pause: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
|
|
2583
|
+
resume: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
|
|
2584
|
+
trigger: (project_id: string, cron_id: string) => Promise<unknown>;
|
|
2585
|
+
runs: (project_id: string, cron_id: string, q?: Omit<In<"hives_get_cron_runs">, "project_id" | "cron_id">) => Promise<{
|
|
2586
|
+
data: {
|
|
2587
|
+
duration_ms?: number | null;
|
|
2588
|
+
ended_at?: string | null;
|
|
2589
|
+
error?: string | null;
|
|
2590
|
+
id: string;
|
|
2591
|
+
logs_url?: string | null;
|
|
2592
|
+
started_at: string;
|
|
2593
|
+
status: string;
|
|
2594
|
+
}[];
|
|
2595
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
2596
|
+
}>;
|
|
2597
|
+
};
|
|
2598
|
+
metrics: {
|
|
2599
|
+
project: (project_id: string, q?: Omit<In<"hives_get_project_metrics">, "project_id">) => Promise<{
|
|
2600
|
+
active_deployments: number;
|
|
2601
|
+
avg_api_http_duration_ms?: number | null;
|
|
2602
|
+
avg_response_time_ms?: number | null;
|
|
2603
|
+
cron_executions?: number | null;
|
|
2604
|
+
data_transfer_bytes: number;
|
|
2605
|
+
error_count: number;
|
|
2606
|
+
error_rate?: number | null;
|
|
2607
|
+
function_invocations: number;
|
|
2608
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
2609
|
+
observed_request_payload_bytes: number;
|
|
2610
|
+
observed_response_payload_bytes: number;
|
|
2611
|
+
p95_response_time_ms?: number | null;
|
|
2612
|
+
p99_response_time_ms?: number | null;
|
|
2613
|
+
project_id: string;
|
|
2614
|
+
storage_bytes?: number | null;
|
|
2615
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
2616
|
+
total_requests: number;
|
|
2617
|
+
unique_visitors?: number | null;
|
|
2618
|
+
}>;
|
|
2619
|
+
dashboard: (project_id: string, q?: Omit<In<"hives_get_dashboard_metrics">, "project_id">) => Promise<{
|
|
2620
|
+
activeDeployments: number;
|
|
2621
|
+
avgApiHttpDurationMs?: number | null;
|
|
2622
|
+
avgLatencyMs?: number | null;
|
|
2623
|
+
deploymentsChange?: number | null;
|
|
2624
|
+
errorRate?: number | null;
|
|
2625
|
+
errorRateChange?: number | null;
|
|
2626
|
+
errorTimeSeries: components["schemas"]["Hives.MetricDataPoint"][];
|
|
2627
|
+
latencyChange?: number | null;
|
|
2628
|
+
latencyTimeSeries: components["schemas"]["Hives.MetricDataPoint"][];
|
|
2629
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
2630
|
+
observedRequestPayloadBytes: number;
|
|
2631
|
+
observedResponsePayloadBytes: number;
|
|
2632
|
+
requestsChange?: number | null;
|
|
2633
|
+
requestsTimeSeries: components["schemas"]["Hives.MetricDataPoint"][];
|
|
2634
|
+
totalRequests: number;
|
|
2635
|
+
}>;
|
|
2636
|
+
requests: (project_id: string, q?: Omit<In<"hives_get_request_metrics">, "project_id">) => Promise<{
|
|
2637
|
+
aggregation: components["schemas"]["Hives.MetricAggregation"];
|
|
2638
|
+
data: components["schemas"]["Hives.MetricDataPoint"][];
|
|
2639
|
+
name: string;
|
|
2640
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
2641
|
+
resolution_seconds: number;
|
|
2642
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
2643
|
+
}>;
|
|
2644
|
+
latency: (project_id: string, q?: Omit<In<"hives_get_latency_metrics">, "project_id">) => Promise<{
|
|
2645
|
+
aggregation: components["schemas"]["Hives.MetricAggregation"];
|
|
2646
|
+
data: components["schemas"]["Hives.MetricDataPoint"][];
|
|
2647
|
+
name: string;
|
|
2648
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
2649
|
+
resolution_seconds: number;
|
|
2650
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
2651
|
+
}>;
|
|
2652
|
+
errors: (project_id: string, q?: Omit<In<"hives_get_error_metrics">, "project_id">) => Promise<{
|
|
2653
|
+
aggregation: components["schemas"]["Hives.MetricAggregation"];
|
|
2654
|
+
data: components["schemas"]["Hives.MetricDataPoint"][];
|
|
2655
|
+
name: string;
|
|
2656
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
2657
|
+
resolution_seconds: number;
|
|
2658
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
2659
|
+
}>;
|
|
2660
|
+
function: (project_id: string, function_id: string, q?: Omit<In<"hives_get_function_metrics">, "project_id" | "function_id">) => Promise<{
|
|
2661
|
+
avg_api_http_duration_ms?: number | null;
|
|
2662
|
+
avg_duration_ms?: number | null;
|
|
2663
|
+
billed_gb_seconds?: number | null;
|
|
2664
|
+
cold_starts?: number | null;
|
|
2665
|
+
configured_memory_limit_mb: number;
|
|
2666
|
+
failed_invocations: number;
|
|
2667
|
+
function_id: string;
|
|
2668
|
+
function_name: string;
|
|
2669
|
+
memory_mb?: number | null;
|
|
2670
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
2671
|
+
observed_request_payload_bytes: number;
|
|
2672
|
+
observed_response_payload_bytes: number;
|
|
2673
|
+
p50_duration_ms?: number | null;
|
|
2674
|
+
p95_duration_ms?: number | null;
|
|
2675
|
+
p99_duration_ms?: number | null;
|
|
2676
|
+
success_rate?: number | null;
|
|
2677
|
+
successful_invocations: number;
|
|
2678
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
2679
|
+
timeouts?: number | null;
|
|
2680
|
+
total_invocations: number;
|
|
2681
|
+
}>;
|
|
2682
|
+
invocations: (project_id: string, function_id: string, q?: Omit<In<"hives_get_function_invocations_series">, "project_id" | "function_id">) => Promise<{
|
|
2683
|
+
aggregation: components["schemas"]["Hives.MetricAggregation"];
|
|
2684
|
+
data: components["schemas"]["Hives.MetricDataPoint"][];
|
|
2685
|
+
name: string;
|
|
2686
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
2687
|
+
resolution_seconds: number;
|
|
2688
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
2689
|
+
}>;
|
|
2690
|
+
deployment: (project_id: string, deployment_id: string, q?: Omit<In<"hives_get_deployment_metrics">, "project_id" | "deployment_id">) => Promise<{
|
|
2691
|
+
active_instances?: number | null;
|
|
2692
|
+
avg_api_http_duration_ms?: number | null;
|
|
2693
|
+
avg_cpu_percent?: number | null;
|
|
2694
|
+
avg_memory_mb?: number | null;
|
|
2695
|
+
avg_response_time_ms?: number | null;
|
|
2696
|
+
deployment_id: string;
|
|
2697
|
+
error_count: number;
|
|
2698
|
+
error_rate?: number | null;
|
|
2699
|
+
max_instances?: number | null;
|
|
2700
|
+
min_instances?: number | null;
|
|
2701
|
+
network_in_bytes?: number | null;
|
|
2702
|
+
network_out_bytes?: number | null;
|
|
2703
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
2704
|
+
observed_request_payload_bytes: number;
|
|
2705
|
+
observed_response_payload_bytes: number;
|
|
2706
|
+
p95_response_time_ms?: number | null;
|
|
2707
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
2708
|
+
total_requests: number;
|
|
2709
|
+
}>;
|
|
2710
|
+
resources: (project_id: string, q?: Omit<In<"hives_get_resource_usage">, "project_id">) => Promise<{
|
|
2711
|
+
active_deployments: number;
|
|
2712
|
+
avg_api_http_duration_ms?: number | null;
|
|
2713
|
+
bandwidth_gb?: number | null;
|
|
2714
|
+
build_minutes?: number | null;
|
|
2715
|
+
compute_gb_seconds?: number | null;
|
|
2716
|
+
custom_domains: number;
|
|
2717
|
+
function_invocations: number;
|
|
2718
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
2719
|
+
observed_request_payload_bytes: number;
|
|
2720
|
+
observed_response_payload_bytes: number;
|
|
2721
|
+
scheduled_jobs: number;
|
|
2722
|
+
ssl_certificates: number;
|
|
2723
|
+
storage_gb?: number | null;
|
|
2724
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
2725
|
+
}>;
|
|
2726
|
+
realtime: (project_id: string) => Promise<{
|
|
2727
|
+
active_connections?: number | null;
|
|
2728
|
+
avg_api_http_duration_ms?: number | null;
|
|
2729
|
+
avg_response_time_ms?: number | null;
|
|
2730
|
+
cpu_percent?: number | null;
|
|
2731
|
+
error_rate?: number | null;
|
|
2732
|
+
memory_percent?: number | null;
|
|
2733
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
2734
|
+
observed_request_payload_bytes: number;
|
|
2735
|
+
observed_response_payload_bytes: number;
|
|
2736
|
+
requests_per_second: number;
|
|
2737
|
+
updated_at: string;
|
|
2738
|
+
}>;
|
|
2739
|
+
};
|
|
2740
|
+
};
|
|
2741
|
+
readonly silos: {
|
|
2742
|
+
/** Internal resource UUIDs; organization and parent ownership are enforced by Silos. */
|
|
2743
|
+
databases: {
|
|
2744
|
+
list: (project_id: string) => Promise<{
|
|
2745
|
+
project: components["schemas"]["Silos.Project"];
|
|
2746
|
+
databases: components["schemas"]["Silos.DatabaseResource"][];
|
|
2747
|
+
}>;
|
|
2748
|
+
get: (project_id: string, database_id: string) => Promise<{
|
|
2749
|
+
project: components["schemas"]["Silos.Project"];
|
|
2750
|
+
database: components["schemas"]["Silos.DatabaseResource"];
|
|
2751
|
+
}>;
|
|
2752
|
+
};
|
|
2753
|
+
projects: {
|
|
2754
|
+
list: () => Promise<{
|
|
2755
|
+
projects: components["schemas"]["Silos.Project"][];
|
|
2756
|
+
}>;
|
|
2757
|
+
create: (body: In<"silos_createProject">["body"]) => Promise<{
|
|
2758
|
+
project: components["schemas"]["Silos.Project"];
|
|
2759
|
+
}>;
|
|
2760
|
+
get: (project_id: string) => Promise<{
|
|
2761
|
+
project: components["schemas"]["Silos.Project"];
|
|
2762
|
+
databases: components["schemas"]["Silos.Database"][];
|
|
2763
|
+
}>;
|
|
2764
|
+
};
|
|
2765
|
+
};
|
|
2766
|
+
readonly traces: {
|
|
2767
|
+
runs: {
|
|
2768
|
+
create: (body: In<"traces_createRun">["body"], idempotencyKey: string) => Promise<{
|
|
2769
|
+
[key: string]: unknown;
|
|
2770
|
+
}>;
|
|
2771
|
+
list: (q?: {
|
|
2772
|
+
limit?: number;
|
|
2773
|
+
}) => Promise<{
|
|
2774
|
+
[key: string]: unknown;
|
|
2775
|
+
}>;
|
|
2776
|
+
get: (id: string) => Promise<{
|
|
2777
|
+
[key: string]: unknown;
|
|
2778
|
+
}>;
|
|
2779
|
+
evidence: (id: string) => Promise<{
|
|
2780
|
+
[key: string]: unknown;
|
|
2781
|
+
}>;
|
|
2782
|
+
};
|
|
2783
|
+
search: (body: In<"traces_search">["body"], idempotencyKey: string) => Promise<{
|
|
2784
|
+
[key: string]: unknown;
|
|
2785
|
+
}>;
|
|
2786
|
+
usage: {
|
|
2787
|
+
events: () => Promise<{
|
|
2788
|
+
[key: string]: unknown;
|
|
2789
|
+
}>;
|
|
2790
|
+
};
|
|
2791
|
+
};
|
|
2792
|
+
readonly relays: {
|
|
2793
|
+
enrollment: {
|
|
2794
|
+
get: (options?: {
|
|
2795
|
+
signal?: AbortSignal;
|
|
2796
|
+
}) => Promise<{
|
|
2797
|
+
state: "ready" | "not_enrolled";
|
|
2798
|
+
organizationId: string;
|
|
2799
|
+
projectId: string;
|
|
2800
|
+
workspaceId: string;
|
|
2801
|
+
resourceEnvironment: "sandbox";
|
|
2802
|
+
}>;
|
|
2803
|
+
activate: (options?: {
|
|
2804
|
+
signal?: AbortSignal;
|
|
2805
|
+
}) => Promise<{
|
|
2806
|
+
state: "ready";
|
|
2807
|
+
organizationId: string;
|
|
2808
|
+
projectId: string;
|
|
2809
|
+
workspaceId: string;
|
|
2810
|
+
resourceEnvironment: "sandbox";
|
|
2811
|
+
created: boolean;
|
|
2812
|
+
}>;
|
|
2813
|
+
};
|
|
2814
|
+
zones: {
|
|
2815
|
+
list: (q?: In<"relays_listZones">) => Promise<{
|
|
2816
|
+
zones?: components["schemas"]["Relays.Zone"][];
|
|
2817
|
+
meta?: components["schemas"]["Relays.Meta"];
|
|
2818
|
+
}>;
|
|
2819
|
+
get: (zone: string) => Promise<{
|
|
2820
|
+
id?: number;
|
|
2821
|
+
name?: string;
|
|
2822
|
+
type?: "NATIVE" | "MASTER" | "SLAVE";
|
|
2823
|
+
record_count?: number;
|
|
2824
|
+
dnssec_enabled?: boolean;
|
|
2825
|
+
status?: string;
|
|
2826
|
+
serial?: number;
|
|
2827
|
+
nameservers?: string[];
|
|
2828
|
+
soa?: {
|
|
2829
|
+
[key: string]: unknown;
|
|
2830
|
+
};
|
|
2831
|
+
created_at?: string;
|
|
2832
|
+
updated_at?: string;
|
|
2833
|
+
}>;
|
|
2834
|
+
dnssec: (zone: string) => Promise<{
|
|
2835
|
+
zone: string;
|
|
2836
|
+
enabled: boolean;
|
|
2837
|
+
keys: {
|
|
2838
|
+
[key: string]: unknown;
|
|
2839
|
+
}[];
|
|
2840
|
+
ds_records: {
|
|
2841
|
+
[key: string]: unknown;
|
|
2842
|
+
}[];
|
|
2843
|
+
settings: {
|
|
2844
|
+
nsec3: {
|
|
2845
|
+
algorithm?: number;
|
|
2846
|
+
flags?: number;
|
|
2847
|
+
iterations?: number;
|
|
2848
|
+
salt?: string;
|
|
2849
|
+
} | null;
|
|
2850
|
+
auto_publish_cds: boolean;
|
|
2851
|
+
auto_publish_cdnskey: boolean;
|
|
2852
|
+
};
|
|
2853
|
+
}>;
|
|
2854
|
+
create: (body: S["Relays.CreateZone"]) => Promise<{
|
|
2855
|
+
id?: number;
|
|
2856
|
+
name?: string;
|
|
2857
|
+
type?: "NATIVE" | "MASTER" | "SLAVE";
|
|
2858
|
+
record_count?: number;
|
|
2859
|
+
dnssec_enabled?: boolean;
|
|
2860
|
+
status?: string;
|
|
2861
|
+
serial?: number;
|
|
2862
|
+
nameservers?: string[];
|
|
2863
|
+
soa?: {
|
|
2864
|
+
[key: string]: unknown;
|
|
2865
|
+
};
|
|
2866
|
+
created_at?: string;
|
|
2867
|
+
updated_at?: string;
|
|
2868
|
+
}>;
|
|
2869
|
+
delete: (zone: string) => Promise<{
|
|
2870
|
+
success?: boolean;
|
|
2871
|
+
message?: string;
|
|
2872
|
+
}>;
|
|
2873
|
+
};
|
|
2874
|
+
records: {
|
|
2875
|
+
list: (zone: string, q?: Omit<In<"relays_listRecords">, "zone">) => Promise<{
|
|
2876
|
+
zone?: string;
|
|
2877
|
+
records?: components["schemas"]["Relays.Record"][];
|
|
2878
|
+
meta?: components["schemas"]["Relays.Meta"];
|
|
2879
|
+
}>;
|
|
2880
|
+
create: (zone: string, body: S["Relays.RecordInput"]) => Promise<{
|
|
2881
|
+
[key: string]: unknown;
|
|
2882
|
+
}>;
|
|
2883
|
+
update: (zone: string, recordId: number, body: S["Relays.RecordPatch"]) => Promise<{
|
|
2884
|
+
name: string;
|
|
2885
|
+
type: string;
|
|
2886
|
+
content: string;
|
|
2887
|
+
ttl?: number;
|
|
2888
|
+
priority?: number;
|
|
2889
|
+
disabled?: boolean;
|
|
2890
|
+
comment?: string;
|
|
2891
|
+
tags?: string[];
|
|
2892
|
+
} & {
|
|
2893
|
+
id?: number;
|
|
2894
|
+
zone?: string;
|
|
2895
|
+
created_at?: string;
|
|
2896
|
+
updated_at?: string;
|
|
2897
|
+
}>;
|
|
2898
|
+
delete: (zone: string, recordId: number) => Promise<{
|
|
2899
|
+
success?: boolean;
|
|
2900
|
+
message?: string;
|
|
2901
|
+
}>;
|
|
2902
|
+
};
|
|
2903
|
+
};
|
|
2904
|
+
/** One account org API keys (WorkOS). custody 'blinds' = key goes straight to Blinds, never shown. */
|
|
2905
|
+
readonly keys: {
|
|
2906
|
+
list: (org_id: string) => Promise<{
|
|
2907
|
+
object: "list";
|
|
2908
|
+
data: components["schemas"]["Iam.ApiKeyMetadata"][];
|
|
2909
|
+
}>;
|
|
2910
|
+
create: (org_id: string, body: S["Iam.CreateApiKeyRequest"]) => Promise<{
|
|
2911
|
+
id: string;
|
|
2912
|
+
name: string;
|
|
2913
|
+
obfuscated_value: string;
|
|
2914
|
+
value?: string | null;
|
|
2915
|
+
blinds_credential_ref?: string | null;
|
|
2916
|
+
scopes: string[];
|
|
2917
|
+
expires_at?: string | null;
|
|
2918
|
+
created_at: string;
|
|
2919
|
+
}>;
|
|
2920
|
+
revoke: (key_id: string) => Promise<void>;
|
|
2921
|
+
};
|
|
2922
|
+
/** Who is this credential? (One account verify: org, principal, scopes, kind) */
|
|
2923
|
+
whoami(): Promise<S['Iam.VerifiedPrincipal']>;
|
|
2924
|
+
private streamChat;
|
|
2925
|
+
}
|
|
2926
|
+
export {};
|