@lifesi/genesis 0.1.0 → 0.1.2
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/dist/beacons.d.ts +46 -0
- package/dist/beacons.js +20 -0
- package/dist/client.d.ts +7179 -1234
- package/dist/client.js +139 -5
- package/dist/dials.d.ts +254 -6
- package/dist/dials.js +82 -1
- package/dist/fleets.d.ts +53 -1
- package/dist/fleets.js +35 -1
- package/dist/flocks.d.ts +73 -0
- package/dist/flocks.js +22 -0
- package/dist/generated/operations.d.ts +7178 -1233
- package/dist/generated/operations.js +8991 -1579
- package/dist/generated/schema.d.ts +15611 -5129
- package/dist/genesis.d.ts +990 -29
- package/dist/genesis.js +46 -4
- package/dist/genesis.openapi.json +22450 -6816
- 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 +15 -0
- package/dist/hives-functions.js +94 -0
- package/dist/hives-node.d.ts +9 -0
- package/dist/hives-node.js +152 -0
- package/dist/hives-operations.d.ts +304 -0
- package/dist/hives-operations.js +39 -0
- package/dist/hives-queues.d.ts +121 -0
- package/dist/hives-queues.js +106 -0
- package/dist/hives-resources-transport.d.ts +18 -0
- package/dist/hives-resources-transport.js +165 -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-upload.d.ts +9 -0
- package/dist/hives-upload.js +23 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +7 -1
- package/dist/runner-grant.d.ts +10 -0
- package/dist/runner-grant.js +133 -0
- package/dist/runner.d.ts +16 -0
- package/dist/runner.js +4 -0
- package/dist/types.d.ts +11 -1
- package/package.json +14 -2
package/dist/genesis.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { GenesisClient, type GenesisOptions } from './client.js';
|
|
2
2
|
import type { OperationInput as In } from './types.js';
|
|
3
3
|
import type { components } from './generated/schema.js';
|
|
4
|
+
import { type HivesUploadOptions } from './hives-upload.js';
|
|
4
5
|
type S = components['schemas'];
|
|
5
6
|
export type ChatMessage = {
|
|
6
7
|
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
@@ -20,16 +21,221 @@ export declare class Genesis extends GenesisClient {
|
|
|
20
21
|
headers?: Record<string, string>;
|
|
21
22
|
}) => Promise<import("./types.js").OperationOutput<K>>;
|
|
22
23
|
readonly dials: {
|
|
24
|
+
routing: {
|
|
25
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
26
|
+
ok: true;
|
|
27
|
+
scope: components["schemas"]["Dials.Scope"];
|
|
28
|
+
rules: components["schemas"]["Dials.RoutingRule"][];
|
|
29
|
+
}>;
|
|
30
|
+
create: (body: In<"dials_createRoutingRule">["body"]) => Promise<{
|
|
31
|
+
ok: true;
|
|
32
|
+
rule: components["schemas"]["Dials.RoutingRule"];
|
|
33
|
+
auditId: string;
|
|
34
|
+
idempotentReplay: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
disable: (ruleId: string, body: In<"dials_disableRoutingRule">["body"]) => Promise<{
|
|
37
|
+
ok: true;
|
|
38
|
+
rule: components["schemas"]["Dials.RoutingRule"];
|
|
39
|
+
auditId: string | null;
|
|
40
|
+
idempotentReplay: boolean;
|
|
41
|
+
}>;
|
|
42
|
+
};
|
|
43
|
+
people: {
|
|
44
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
45
|
+
ok: boolean;
|
|
46
|
+
humans: components["schemas"]["Dials.HumanProfile"][];
|
|
47
|
+
}>;
|
|
48
|
+
create: (body: In<"dials_createHumanProfile">["body"]) => Promise<{
|
|
49
|
+
ok: boolean;
|
|
50
|
+
human: components["schemas"]["Dials.HumanProfile"];
|
|
51
|
+
auditId: string;
|
|
52
|
+
usageEventId: string;
|
|
53
|
+
next: string;
|
|
54
|
+
}>;
|
|
55
|
+
};
|
|
56
|
+
agents: {
|
|
57
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
58
|
+
ok: boolean;
|
|
59
|
+
agents: components["schemas"]["Dials.AgentProfile"][];
|
|
60
|
+
}>;
|
|
61
|
+
create: (body: In<"dials_createAgent">["body"]) => Promise<{
|
|
62
|
+
ok: boolean;
|
|
63
|
+
agent: components["schemas"]["Dials.AgentProfile"];
|
|
64
|
+
auditId: string;
|
|
65
|
+
usageEventId: string;
|
|
66
|
+
next: string;
|
|
67
|
+
}>;
|
|
68
|
+
};
|
|
69
|
+
voice: {
|
|
70
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
71
|
+
ok: boolean;
|
|
72
|
+
voiceProfiles: components["schemas"]["Dials.VoiceProfile"][];
|
|
73
|
+
}>;
|
|
74
|
+
create: (body: In<"dials_createVoiceProfile">["body"]) => Promise<{
|
|
75
|
+
ok: boolean;
|
|
76
|
+
voiceProfile: components["schemas"]["Dials.VoiceProfile"];
|
|
77
|
+
auditId: string;
|
|
78
|
+
usageEventId: string;
|
|
79
|
+
next: string;
|
|
80
|
+
}>;
|
|
81
|
+
};
|
|
82
|
+
messages: {
|
|
83
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
84
|
+
ok: boolean;
|
|
85
|
+
messages: components["schemas"]["Dials.MessageEvent"][];
|
|
86
|
+
}>;
|
|
87
|
+
send: (body: In<"dials_createOutboundMessage">["body"]) => Promise<{
|
|
88
|
+
ok: boolean;
|
|
89
|
+
message: components["schemas"]["Dials.MessageEvent"];
|
|
90
|
+
auditId: string;
|
|
91
|
+
usageEventId: string;
|
|
92
|
+
next: string;
|
|
93
|
+
idempotentReplay: boolean;
|
|
94
|
+
}>;
|
|
95
|
+
templates: {
|
|
96
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
97
|
+
ok: boolean;
|
|
98
|
+
templates: components["schemas"]["Dials.MessageTemplate"][];
|
|
99
|
+
}>;
|
|
100
|
+
create: (body: In<"dials_createMessageTemplate">["body"]) => Promise<{
|
|
101
|
+
ok: boolean;
|
|
102
|
+
template: components["schemas"]["Dials.MessageTemplate"];
|
|
103
|
+
auditId: string;
|
|
104
|
+
usageEventId: string;
|
|
105
|
+
next: string;
|
|
106
|
+
}>;
|
|
107
|
+
};
|
|
108
|
+
brands: {
|
|
109
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
110
|
+
ok: boolean;
|
|
111
|
+
brands: components["schemas"]["Dials.MessagingBrand"][];
|
|
112
|
+
}>;
|
|
113
|
+
create: (body: In<"dials_createMessagingBrand">["body"]) => Promise<{
|
|
114
|
+
ok: boolean;
|
|
115
|
+
brand: components["schemas"]["Dials.MessagingBrand"];
|
|
116
|
+
auditId: string;
|
|
117
|
+
next: string;
|
|
118
|
+
}>;
|
|
119
|
+
};
|
|
120
|
+
campaigns: {
|
|
121
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
122
|
+
ok: boolean;
|
|
123
|
+
campaigns: components["schemas"]["Dials.MessagingCampaign"][];
|
|
124
|
+
}>;
|
|
125
|
+
create: (body: In<"dials_createMessagingCampaign">["body"]) => Promise<{
|
|
126
|
+
ok: boolean;
|
|
127
|
+
campaign: components["schemas"]["Dials.MessagingCampaign"];
|
|
128
|
+
auditId: string;
|
|
129
|
+
next: string;
|
|
130
|
+
}>;
|
|
131
|
+
assignNumber: (campaignId: string, body: In<"dials_assignCampaignNumber">["body"]) => Promise<{
|
|
132
|
+
ok: boolean;
|
|
133
|
+
campaignId: string;
|
|
134
|
+
phoneNumberId: string;
|
|
135
|
+
auditId: string;
|
|
136
|
+
next: string;
|
|
137
|
+
}>;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
workflows: {
|
|
141
|
+
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
142
|
+
ok: boolean;
|
|
143
|
+
workflows: components["schemas"]["Dials.WorkflowDocument"][];
|
|
144
|
+
}>;
|
|
145
|
+
deploy: (body: In<"dials_deployWorkflow">["body"]) => Promise<{
|
|
146
|
+
ok: boolean;
|
|
147
|
+
workflow: components["schemas"]["Dials.WorkflowDocument"];
|
|
148
|
+
auditId: string;
|
|
149
|
+
usageEventId: string;
|
|
150
|
+
next: string;
|
|
151
|
+
route: components["schemas"]["Dials.RoutingRule"];
|
|
152
|
+
}>;
|
|
153
|
+
};
|
|
154
|
+
overview: {
|
|
155
|
+
summary: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
156
|
+
ok: boolean;
|
|
157
|
+
scope: components["schemas"]["Dials.Scope"];
|
|
158
|
+
calls: {
|
|
159
|
+
total: number;
|
|
160
|
+
queued: number;
|
|
161
|
+
active: number;
|
|
162
|
+
completed: number;
|
|
163
|
+
failed: number;
|
|
164
|
+
};
|
|
165
|
+
dispatch: {
|
|
166
|
+
total: number;
|
|
167
|
+
pending: number;
|
|
168
|
+
claimed: number;
|
|
169
|
+
dispatched: number;
|
|
170
|
+
failed: number;
|
|
171
|
+
};
|
|
172
|
+
people: {
|
|
173
|
+
deployed: number;
|
|
174
|
+
};
|
|
175
|
+
agents: {
|
|
176
|
+
deployed: number;
|
|
177
|
+
};
|
|
178
|
+
routes: {
|
|
179
|
+
deployed: number;
|
|
180
|
+
};
|
|
181
|
+
numbers: {
|
|
182
|
+
deployed: number;
|
|
183
|
+
};
|
|
184
|
+
voice: {
|
|
185
|
+
deployed: number;
|
|
186
|
+
};
|
|
187
|
+
messages: {
|
|
188
|
+
total: number;
|
|
189
|
+
queued: number;
|
|
190
|
+
delivered: number;
|
|
191
|
+
failed: number;
|
|
192
|
+
};
|
|
193
|
+
usage: {
|
|
194
|
+
total: number;
|
|
195
|
+
quantity: number;
|
|
196
|
+
lastMetric: string | null;
|
|
197
|
+
lastResourceId: string | null;
|
|
198
|
+
};
|
|
199
|
+
}>;
|
|
200
|
+
operatingSurface: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
201
|
+
ok: boolean;
|
|
202
|
+
scope: components["schemas"]["Dials.Scope"];
|
|
203
|
+
summary: components["schemas"]["Dials.ConsoleSummary"];
|
|
204
|
+
surfaces: components["schemas"]["Dials.OperatingSurfaceCard"][];
|
|
205
|
+
} & {
|
|
206
|
+
[key: string]: unknown;
|
|
207
|
+
}>;
|
|
208
|
+
};
|
|
23
209
|
numbers: {
|
|
210
|
+
reconciliations: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
211
|
+
ok: boolean;
|
|
212
|
+
reconciliations: components["schemas"]["Dials.InventoryReconciliation"][];
|
|
213
|
+
}>;
|
|
214
|
+
drift: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
215
|
+
ok: boolean;
|
|
216
|
+
drift: components["schemas"]["Dials.InventoryDrift"][];
|
|
217
|
+
}>;
|
|
218
|
+
updateCallerName: (body: In<"dials_updateNumberCallerName">["body"]) => Promise<{
|
|
219
|
+
ok: boolean;
|
|
220
|
+
number: components["schemas"]["Dials.Number"];
|
|
221
|
+
auditId: string;
|
|
222
|
+
next: string;
|
|
223
|
+
}>;
|
|
224
|
+
reconcile: (body: In<"dials_reconcileNumberInventory">["body"]) => Promise<{
|
|
225
|
+
ok: boolean;
|
|
226
|
+
reconciliations: components["schemas"]["Dials.InventoryReconciliation"][];
|
|
227
|
+
drift: components["schemas"]["Dials.InventoryDrift"][];
|
|
228
|
+
orphanCount: number;
|
|
229
|
+
auditId: string;
|
|
230
|
+
next: string;
|
|
231
|
+
}>;
|
|
24
232
|
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
25
233
|
ok: boolean;
|
|
26
234
|
numbers: components["schemas"]["Dials.Number"][];
|
|
27
235
|
}>;
|
|
28
|
-
search: (scope: import("./dials.js").DialsScope, query?: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}) => Promise<{
|
|
32
|
-
[key: string]: unknown;
|
|
236
|
+
search: (scope: import("./dials.js").DialsScope, query?: Omit<In<"dials_searchNumbers">, keyof import("./dials.js").DialsScope>) => Promise<{
|
|
237
|
+
ok: boolean;
|
|
238
|
+
numbers: components["schemas"]["Dials.AvailableNumber"][];
|
|
33
239
|
}>;
|
|
34
240
|
provision: (body: In<"dials_provisionNumber">["body"]) => Promise<{
|
|
35
241
|
[key: string]: unknown;
|
|
@@ -37,6 +243,13 @@ export declare class Genesis extends GenesisClient {
|
|
|
37
243
|
assign: (body: In<"dials_assignNumber">["body"]) => Promise<{
|
|
38
244
|
[key: string]: unknown;
|
|
39
245
|
}>;
|
|
246
|
+
delete: (input: In<"dials_deleteNumber">) => Promise<{
|
|
247
|
+
ok: boolean;
|
|
248
|
+
number: components["schemas"]["Dials.Number"];
|
|
249
|
+
auditId: string;
|
|
250
|
+
usageEventId: string;
|
|
251
|
+
next: string;
|
|
252
|
+
}>;
|
|
40
253
|
release: (body: In<"dials_releaseNumber">["body"]) => Promise<{
|
|
41
254
|
[key: string]: unknown;
|
|
42
255
|
}>;
|
|
@@ -51,13 +264,34 @@ export declare class Genesis extends GenesisClient {
|
|
|
51
264
|
calls: {
|
|
52
265
|
list: (scope: import("./dials.js").DialsScope) => Promise<{
|
|
53
266
|
ok: boolean;
|
|
54
|
-
calls: components["schemas"]["Dials.
|
|
267
|
+
calls: components["schemas"]["Dials.CallListItem"][];
|
|
55
268
|
}>;
|
|
56
269
|
validate: (body: import("./dials.js").DialsOutboundCall) => Promise<{
|
|
57
270
|
[key: string]: unknown;
|
|
58
271
|
}>;
|
|
59
272
|
create: (body: import("./dials.js").DialsOutboundCall) => Promise<{
|
|
273
|
+
ok: boolean;
|
|
274
|
+
call: components["schemas"]["Dials.CallSession"];
|
|
275
|
+
auditId: string;
|
|
276
|
+
dispatchJobId: string;
|
|
277
|
+
usageEventId: string;
|
|
278
|
+
next: string;
|
|
279
|
+
idempotentReplay: boolean;
|
|
280
|
+
} & {
|
|
281
|
+
[key: string]: unknown;
|
|
282
|
+
}>;
|
|
283
|
+
recover: (body: import("./dials.js").DialsOutboundCall) => Promise<{
|
|
284
|
+
ok: boolean;
|
|
285
|
+
call: components["schemas"]["Dials.CallSession"];
|
|
286
|
+
auditId: string;
|
|
287
|
+
dispatchJobId: string;
|
|
288
|
+
usageEventId: string;
|
|
289
|
+
next: string;
|
|
290
|
+
idempotentReplay: boolean;
|
|
291
|
+
} & {
|
|
60
292
|
[key: string]: unknown;
|
|
293
|
+
} & {
|
|
294
|
+
idempotentReplay: true;
|
|
61
295
|
}>;
|
|
62
296
|
};
|
|
63
297
|
};
|
|
@@ -214,6 +448,54 @@ export declare class Genesis extends GenesisClient {
|
|
|
214
448
|
};
|
|
215
449
|
};
|
|
216
450
|
readonly fleets: {
|
|
451
|
+
instances: {
|
|
452
|
+
list: (query?: In<"fleets_listInstances">) => Promise<{
|
|
453
|
+
instances: components["schemas"]["Fleets.Instance"][];
|
|
454
|
+
next_cursor: string | null;
|
|
455
|
+
}>;
|
|
456
|
+
get: (instance_id: string) => Promise<{
|
|
457
|
+
id: string;
|
|
458
|
+
name: string;
|
|
459
|
+
organization_id: string;
|
|
460
|
+
workspace_id: string;
|
|
461
|
+
project_id: string;
|
|
462
|
+
admission_held: boolean | null;
|
|
463
|
+
physical_state: "created" | "running" | "held" | "stopped" | "recovery_required" | "released";
|
|
464
|
+
status_evidence: "live_controller" | "confirmed_release_receipt";
|
|
465
|
+
release_acknowledged_at_ms: number | null;
|
|
466
|
+
harness_ready: boolean;
|
|
467
|
+
observed_at_ms: number | null;
|
|
468
|
+
lease_expires: {
|
|
469
|
+
wall_ms: number;
|
|
470
|
+
logical: number;
|
|
471
|
+
} | null;
|
|
472
|
+
}>;
|
|
473
|
+
stop: (instance_id: string, options?: import("./fleets.js").FleetsInstanceOptions) => Promise<{
|
|
474
|
+
id: string;
|
|
475
|
+
state: "released";
|
|
476
|
+
reaped: true;
|
|
477
|
+
data_retained: true;
|
|
478
|
+
status_evidence: "confirmed_release_receipt";
|
|
479
|
+
release_acknowledged_at_ms: number;
|
|
480
|
+
}>;
|
|
481
|
+
start: (instance_id: string, options?: import("./fleets.js").FleetsInstanceOptions) => Promise<{
|
|
482
|
+
id: string;
|
|
483
|
+
name: string;
|
|
484
|
+
organization_id: string;
|
|
485
|
+
workspace_id: string;
|
|
486
|
+
project_id: string;
|
|
487
|
+
admission_held: boolean | null;
|
|
488
|
+
physical_state: "created" | "running" | "held" | "stopped" | "recovery_required" | "released";
|
|
489
|
+
status_evidence: "live_controller" | "confirmed_release_receipt";
|
|
490
|
+
release_acknowledged_at_ms: number | null;
|
|
491
|
+
harness_ready: boolean;
|
|
492
|
+
observed_at_ms: number | null;
|
|
493
|
+
lease_expires: {
|
|
494
|
+
wall_ms: number;
|
|
495
|
+
logical: number;
|
|
496
|
+
} | null;
|
|
497
|
+
}>;
|
|
498
|
+
};
|
|
217
499
|
connection: {
|
|
218
500
|
get: () => Promise<{
|
|
219
501
|
connected: boolean;
|
|
@@ -284,6 +566,21 @@ export declare class Genesis extends GenesisClient {
|
|
|
284
566
|
};
|
|
285
567
|
};
|
|
286
568
|
readonly runner: Readonly<{
|
|
569
|
+
permission: Readonly<{
|
|
570
|
+
grant: (input: import("./runner-grant.js").RunnerSelfExecutionGrantInput, opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
|
|
571
|
+
id: string;
|
|
572
|
+
principal_id: string;
|
|
573
|
+
organization_id: string;
|
|
574
|
+
project_id: string;
|
|
575
|
+
platform_id: "pf_console";
|
|
576
|
+
workspace_id: string;
|
|
577
|
+
environmentId: "sandbox";
|
|
578
|
+
role_ids: unknown[];
|
|
579
|
+
permissions: "runner.tasks.execute"[];
|
|
580
|
+
expires_at: number;
|
|
581
|
+
created_at: number;
|
|
582
|
+
}>;
|
|
583
|
+
}>;
|
|
287
584
|
catalog: (opts?: import("./runner.js").RunnerRequestOptions) => Promise<{
|
|
288
585
|
workspaces: {
|
|
289
586
|
key: components["schemas"]["Runner.SafeOpaqueRef"];
|
|
@@ -323,7 +620,52 @@ export declare class Genesis extends GenesisClient {
|
|
|
323
620
|
}>;
|
|
324
621
|
}>;
|
|
325
622
|
readonly beacons: {
|
|
623
|
+
fleets: {
|
|
624
|
+
provision: (requestId: string, body?: {
|
|
625
|
+
name?: string;
|
|
626
|
+
}) => Promise<{
|
|
627
|
+
data: {
|
|
628
|
+
fleet_id: string;
|
|
629
|
+
organization_id: string;
|
|
630
|
+
workspace_id: string;
|
|
631
|
+
project_id: string;
|
|
632
|
+
environment_id: string;
|
|
633
|
+
metadata_only: true;
|
|
634
|
+
};
|
|
635
|
+
}>;
|
|
636
|
+
};
|
|
326
637
|
devices: {
|
|
638
|
+
revocations: (id: string) => Promise<{
|
|
639
|
+
data: components["schemas"]["Beacons.DeviceRevocation"][];
|
|
640
|
+
}>;
|
|
641
|
+
acknowledge: (id: string, version: number, body: In<"beacons_acknowledgeBridgeDeviceRevocation">["body"]) => Promise<{
|
|
642
|
+
data: components["schemas"]["Beacons.DeviceRevocation"];
|
|
643
|
+
}>;
|
|
644
|
+
challenge: (body: In<"beacons_issueBridgeDeviceChallenge">["body"]) => Promise<{
|
|
645
|
+
version: 1;
|
|
646
|
+
id: string;
|
|
647
|
+
nonce: string;
|
|
648
|
+
issuer: string;
|
|
649
|
+
organization: string;
|
|
650
|
+
principal: string;
|
|
651
|
+
workspace: string;
|
|
652
|
+
project: string;
|
|
653
|
+
environment: string;
|
|
654
|
+
binding_revision: string;
|
|
655
|
+
transport: string;
|
|
656
|
+
fleet_id: string;
|
|
657
|
+
proof_key: string;
|
|
658
|
+
tunnel_key: string;
|
|
659
|
+
issued_at: number;
|
|
660
|
+
expires_at: number;
|
|
661
|
+
}>;
|
|
662
|
+
enroll: (body: In<"beacons_enrollBridgeDevice">["body"]) => Promise<{
|
|
663
|
+
device_id: string;
|
|
664
|
+
fleet_id: string;
|
|
665
|
+
mesh: {
|
|
666
|
+
[key: string]: unknown;
|
|
667
|
+
};
|
|
668
|
+
}>;
|
|
327
669
|
list: () => Promise<{
|
|
328
670
|
data?: components["schemas"]["Beacons.BridgeDevice"][];
|
|
329
671
|
}>;
|
|
@@ -338,6 +680,76 @@ export declare class Genesis extends GenesisClient {
|
|
|
338
680
|
revoke: (id: string) => Promise<import("./types.js").OperationOutput<"beacons_revokeBridgeDevice"> | undefined>;
|
|
339
681
|
};
|
|
340
682
|
};
|
|
683
|
+
readonly flocks: {
|
|
684
|
+
readiness: {
|
|
685
|
+
get: () => Promise<{
|
|
686
|
+
node_enrollment_available: boolean;
|
|
687
|
+
reason_code?: "node_credential_issuer_unavailable";
|
|
688
|
+
}>;
|
|
689
|
+
};
|
|
690
|
+
nodes: {
|
|
691
|
+
list: () => Promise<{
|
|
692
|
+
id: string;
|
|
693
|
+
name: string;
|
|
694
|
+
nickname: string;
|
|
695
|
+
platform: string;
|
|
696
|
+
cpu_count: number;
|
|
697
|
+
state: "enrolled" | "revoked";
|
|
698
|
+
last_seen_at: number;
|
|
699
|
+
enrolled_at: number;
|
|
700
|
+
}[]>;
|
|
701
|
+
rename: (id: string, nickname: string) => Promise<{
|
|
702
|
+
id: string;
|
|
703
|
+
name: string;
|
|
704
|
+
nickname: string;
|
|
705
|
+
platform: string;
|
|
706
|
+
cpu_count: number;
|
|
707
|
+
state: "enrolled" | "revoked";
|
|
708
|
+
last_seen_at: number;
|
|
709
|
+
enrolled_at: number;
|
|
710
|
+
}>;
|
|
711
|
+
revoke: (id: string) => Promise<{
|
|
712
|
+
id: string;
|
|
713
|
+
name: string;
|
|
714
|
+
nickname: string;
|
|
715
|
+
platform: string;
|
|
716
|
+
cpu_count: number;
|
|
717
|
+
state: "enrolled" | "revoked";
|
|
718
|
+
last_seen_at: number;
|
|
719
|
+
enrolled_at: number;
|
|
720
|
+
}>;
|
|
721
|
+
heartbeat: (id: string, nodeBinding: string) => Promise<{
|
|
722
|
+
accepted: boolean;
|
|
723
|
+
}>;
|
|
724
|
+
enroll: (body: In<"flocks_enrollNode">["body"]) => Promise<{
|
|
725
|
+
node: components["schemas"]["Flocks.Node"];
|
|
726
|
+
node_binding: string;
|
|
727
|
+
heartbeat_interval_seconds: number;
|
|
728
|
+
}>;
|
|
729
|
+
activate: (id: string, body: In<"flocks_activateNode">["body"]) => Promise<{
|
|
730
|
+
node: components["schemas"]["Flocks.Node"];
|
|
731
|
+
activated: boolean;
|
|
732
|
+
}>;
|
|
733
|
+
rotateCredential: (id: string, body: In<"flocks_rotateNodeCredential">["body"]) => Promise<{
|
|
734
|
+
accepted: boolean;
|
|
735
|
+
}>;
|
|
736
|
+
};
|
|
737
|
+
joinTokens: {
|
|
738
|
+
exchange: (body: In<"flocks_exchangeJoinToken">["body"]) => Promise<{
|
|
739
|
+
node_id: string;
|
|
740
|
+
organization_id: string;
|
|
741
|
+
credential_id: string;
|
|
742
|
+
credential_value: string;
|
|
743
|
+
scopes: "flocks:node"[];
|
|
744
|
+
expires_at: string;
|
|
745
|
+
node_nonce_hash?: string;
|
|
746
|
+
}>;
|
|
747
|
+
create: (ttlSeconds?: number) => Promise<{
|
|
748
|
+
token: string;
|
|
749
|
+
expires_at: number;
|
|
750
|
+
}>;
|
|
751
|
+
};
|
|
752
|
+
};
|
|
341
753
|
readonly foundry: {
|
|
342
754
|
models: {
|
|
343
755
|
list: () => Promise<{
|
|
@@ -384,27 +796,79 @@ export declare class Genesis extends GenesisClient {
|
|
|
384
796
|
};
|
|
385
797
|
};
|
|
386
798
|
readonly hives: {
|
|
799
|
+
/** The gateway resolves the current authorized selection from an interactive LifeID session. */
|
|
800
|
+
context: {
|
|
801
|
+
get: () => Promise<{
|
|
802
|
+
binding: components["schemas"]["Hives.ProjectBindingMetadata"];
|
|
803
|
+
project: components["schemas"]["Hives.ContextProjectMetadata"];
|
|
804
|
+
selectedContext: components["schemas"]["Hives.SelectedContext"];
|
|
805
|
+
}>;
|
|
806
|
+
set: (body: In<"hives_set_context_project">["body"]) => Promise<{
|
|
807
|
+
binding: components["schemas"]["Hives.ProjectBindingMetadata"];
|
|
808
|
+
project: components["schemas"]["Hives.ContextProjectMetadata"];
|
|
809
|
+
selectedContext: components["schemas"]["Hives.SelectedContext"];
|
|
810
|
+
}>;
|
|
811
|
+
/** Detach this selection; the service project and customer resources are retained. */
|
|
812
|
+
detach: () => Promise<{
|
|
813
|
+
hivesProjectId: string;
|
|
814
|
+
removed: boolean;
|
|
815
|
+
}>;
|
|
816
|
+
};
|
|
817
|
+
environment: {
|
|
818
|
+
list: (project_id: string, q?: Omit<In<"hives_list_project_environment">, "project_id">) => Promise<{
|
|
819
|
+
data: components["schemas"]["Hives.EnvironmentVariableMetadata"][];
|
|
820
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
821
|
+
project_id: string;
|
|
822
|
+
}>;
|
|
823
|
+
upsert: (project_id: string, body: In<"hives_update_project_environment">["body"]) => Promise<{
|
|
824
|
+
project_id: string;
|
|
825
|
+
updated: components["schemas"]["Hives.EnvironmentVariableMetadata"][];
|
|
826
|
+
}>;
|
|
827
|
+
/** Explicit KMS reveal with a persisted names-only audit. Do not log the plaintext. */
|
|
828
|
+
reveal: (project_id: string, key: string) => Promise<{
|
|
829
|
+
name: string;
|
|
830
|
+
value: string;
|
|
831
|
+
}>;
|
|
832
|
+
};
|
|
387
833
|
projects: {
|
|
388
834
|
list: (q?: In<"hives_list_projects">) => Promise<{
|
|
389
835
|
data: (Record<string, never> & {
|
|
390
|
-
active_instances
|
|
836
|
+
active_instances?: number | null;
|
|
391
837
|
current_version?: number | null;
|
|
392
|
-
|
|
393
|
-
|
|
838
|
+
observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
|
|
839
|
+
requests_24h?: number | null;
|
|
840
|
+
summary_state: components["schemas"]["Hives.ProjectSummaryState"];
|
|
841
|
+
total_deployments?: number | null;
|
|
394
842
|
})[];
|
|
395
843
|
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
396
844
|
}>;
|
|
397
845
|
get: (project_id: string) => Promise<Record<string, never> & {
|
|
398
|
-
active_instances
|
|
846
|
+
active_instances?: number | null;
|
|
399
847
|
current_version?: number | null;
|
|
400
|
-
|
|
401
|
-
|
|
848
|
+
observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
|
|
849
|
+
requests_24h?: number | null;
|
|
850
|
+
summary_state: components["schemas"]["Hives.ProjectSummaryState"];
|
|
851
|
+
total_deployments?: number | null;
|
|
402
852
|
}>;
|
|
403
853
|
create: (body: In<"hives_create_project">["body"]) => Promise<Record<string, never> & {
|
|
404
|
-
active_instances
|
|
854
|
+
active_instances?: number | null;
|
|
405
855
|
current_version?: number | null;
|
|
406
|
-
|
|
407
|
-
|
|
856
|
+
observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
|
|
857
|
+
requests_24h?: number | null;
|
|
858
|
+
summary_state: components["schemas"]["Hives.ProjectSummaryState"];
|
|
859
|
+
total_deployments?: number | null;
|
|
860
|
+
}>;
|
|
861
|
+
update: (project_id: string, body: In<"hives_update_project">["body"]) => Promise<Record<string, never> & {
|
|
862
|
+
active_instances?: number | null;
|
|
863
|
+
current_version?: number | null;
|
|
864
|
+
observation?: null | components["schemas"]["Hives.ProjectInvocationObservation"];
|
|
865
|
+
requests_24h?: number | null;
|
|
866
|
+
summary_state: components["schemas"]["Hives.ProjectSummaryState"];
|
|
867
|
+
total_deployments?: number | null;
|
|
868
|
+
}>;
|
|
869
|
+
activity: (project_id: string, q?: Omit<In<"hives_get_project_activity">, "project_id">) => Promise<{
|
|
870
|
+
data: components["schemas"]["Hives.ActivityEntry"][];
|
|
871
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
408
872
|
}>;
|
|
409
873
|
delete: (project_id: string) => Promise<{
|
|
410
874
|
id: string;
|
|
@@ -412,42 +876,539 @@ export declare class Genesis extends GenesisClient {
|
|
|
412
876
|
success: boolean;
|
|
413
877
|
}>;
|
|
414
878
|
};
|
|
879
|
+
secrets: {
|
|
880
|
+
list: (project_id: string, q?: Omit<In<"hives_list_secrets">, "project_id">) => Promise<{
|
|
881
|
+
data: {
|
|
882
|
+
created_at: string;
|
|
883
|
+
description?: string | null;
|
|
884
|
+
name: string;
|
|
885
|
+
updated_at: string;
|
|
886
|
+
version: number;
|
|
887
|
+
}[];
|
|
888
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
889
|
+
}>;
|
|
890
|
+
get: (project_id: string, secret_id: string) => Promise<{
|
|
891
|
+
id: string;
|
|
892
|
+
created_at: string;
|
|
893
|
+
description?: string | null;
|
|
894
|
+
name: string;
|
|
895
|
+
updated_at: string;
|
|
896
|
+
version: number;
|
|
897
|
+
}>;
|
|
898
|
+
create: (project_id: string, body: In<"hives_create_secret">["body"]) => Promise<{
|
|
899
|
+
id: string;
|
|
900
|
+
created_at: string;
|
|
901
|
+
description?: string | null;
|
|
902
|
+
name: string;
|
|
903
|
+
updated_at: string;
|
|
904
|
+
version: number;
|
|
905
|
+
}>;
|
|
906
|
+
update: (project_id: string, secret_id: string, body: In<"hives_update_secret">["body"]) => Promise<{
|
|
907
|
+
id: string;
|
|
908
|
+
created_at: string;
|
|
909
|
+
description?: string | null;
|
|
910
|
+
name: string;
|
|
911
|
+
updated_at: string;
|
|
912
|
+
version: number;
|
|
913
|
+
}>;
|
|
914
|
+
delete: (project_id: string, secret_id: string) => Promise<{
|
|
915
|
+
id: string;
|
|
916
|
+
message: string;
|
|
917
|
+
success: boolean;
|
|
918
|
+
}>;
|
|
919
|
+
/** Explicit sensitive operation. Do not log or retain the returned plaintext. */
|
|
920
|
+
reveal: (project_id: string, secret_id: string) => Promise<{
|
|
921
|
+
value: string;
|
|
922
|
+
}>;
|
|
923
|
+
bulkUpsert: (project_id: string, body: In<"hives_bulk_upsert_secrets">["body"]) => Promise<{
|
|
924
|
+
success: boolean;
|
|
925
|
+
secrets: components["schemas"]["Hives.SecretResponse"][];
|
|
926
|
+
}>;
|
|
927
|
+
};
|
|
415
928
|
deployments: {
|
|
416
|
-
list: (project_id: string) => Promise<{
|
|
929
|
+
list: (project_id: string, q?: Omit<In<"hives_list_deployments">, "project_id">) => Promise<{
|
|
417
930
|
data: (Record<string, never> & {
|
|
418
931
|
logs_url?: string | null;
|
|
419
932
|
url?: string | null;
|
|
420
933
|
})[];
|
|
421
934
|
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
422
935
|
}>;
|
|
423
|
-
|
|
936
|
+
get: (project_id: string, deployment_id: string) => Promise<{
|
|
937
|
+
id: string;
|
|
938
|
+
project_id: string;
|
|
939
|
+
tenant_id: string;
|
|
940
|
+
module_id: string;
|
|
941
|
+
module_hash?: string | null;
|
|
942
|
+
version: number;
|
|
943
|
+
status: string;
|
|
944
|
+
git_sha?: string | null;
|
|
945
|
+
git_branch?: string | null;
|
|
946
|
+
created_by: string;
|
|
947
|
+
created_at: string;
|
|
948
|
+
promoted_at?: string | null;
|
|
424
949
|
logs_url?: string | null;
|
|
425
950
|
url?: string | null;
|
|
426
951
|
}>;
|
|
427
|
-
|
|
952
|
+
upload: (project_id: string, file: Blob, options?: HivesUploadOptions) => Promise<{
|
|
953
|
+
id: string;
|
|
954
|
+
project_id: string;
|
|
955
|
+
tenant_id: string;
|
|
956
|
+
module_id: string;
|
|
957
|
+
module_hash?: string | null;
|
|
958
|
+
version: number;
|
|
959
|
+
status: string;
|
|
960
|
+
git_sha?: string | null;
|
|
961
|
+
git_branch?: string | null;
|
|
962
|
+
created_by: string;
|
|
963
|
+
created_at: string;
|
|
964
|
+
promoted_at?: string | null;
|
|
965
|
+
logs_url?: string | null;
|
|
966
|
+
url?: string | null;
|
|
967
|
+
}>;
|
|
968
|
+
create: (project_id: string, body: In<"hives_create_deployment">["body"]) => Promise<{
|
|
969
|
+
id: string;
|
|
970
|
+
project_id: string;
|
|
971
|
+
tenant_id: string;
|
|
972
|
+
module_id: string;
|
|
973
|
+
module_hash?: string | null;
|
|
974
|
+
version: number;
|
|
975
|
+
status: string;
|
|
976
|
+
git_sha?: string | null;
|
|
977
|
+
git_branch?: string | null;
|
|
978
|
+
created_by: string;
|
|
979
|
+
created_at: string;
|
|
980
|
+
promoted_at?: string | null;
|
|
428
981
|
logs_url?: string | null;
|
|
429
982
|
url?: string | null;
|
|
430
983
|
}>;
|
|
984
|
+
promote: (project_id: string, deployment_id: string) => Promise<{
|
|
985
|
+
id: string;
|
|
986
|
+
project_id: string;
|
|
987
|
+
tenant_id: string;
|
|
988
|
+
module_id: string;
|
|
989
|
+
module_hash?: string | null;
|
|
990
|
+
version: number;
|
|
991
|
+
status: string;
|
|
992
|
+
git_sha?: string | null;
|
|
993
|
+
git_branch?: string | null;
|
|
994
|
+
created_by: string;
|
|
995
|
+
created_at: string;
|
|
996
|
+
promoted_at?: string | null;
|
|
997
|
+
logs_url?: string | null;
|
|
998
|
+
url?: string | null;
|
|
999
|
+
}>;
|
|
1000
|
+
rollback: (project_id: string, deployment_id: string, body?: In<"hives_rollback_deployment">["body"]) => Promise<{
|
|
1001
|
+
id: string;
|
|
1002
|
+
project_id: string;
|
|
1003
|
+
tenant_id: string;
|
|
1004
|
+
module_id: string;
|
|
1005
|
+
module_hash?: string | null;
|
|
1006
|
+
version: number;
|
|
1007
|
+
status: string;
|
|
1008
|
+
git_sha?: string | null;
|
|
1009
|
+
git_branch?: string | null;
|
|
1010
|
+
created_by: string;
|
|
1011
|
+
created_at: string;
|
|
1012
|
+
promoted_at?: string | null;
|
|
1013
|
+
logs_url?: string | null;
|
|
1014
|
+
url?: string | null;
|
|
1015
|
+
}>;
|
|
1016
|
+
cancel: (project_id: string, deployment_id: string) => Promise<{
|
|
1017
|
+
id: string;
|
|
1018
|
+
project_id: string;
|
|
1019
|
+
tenant_id: string;
|
|
1020
|
+
module_id: string;
|
|
1021
|
+
module_hash?: string | null;
|
|
1022
|
+
version: number;
|
|
1023
|
+
status: string;
|
|
1024
|
+
git_sha?: string | null;
|
|
1025
|
+
git_branch?: string | null;
|
|
1026
|
+
created_by: string;
|
|
1027
|
+
created_at: string;
|
|
1028
|
+
promoted_at?: string | null;
|
|
1029
|
+
logs_url?: string | null;
|
|
1030
|
+
url?: string | null;
|
|
1031
|
+
}>;
|
|
1032
|
+
delete: (project_id: string, deployment_id: string) => Promise<{
|
|
1033
|
+
id: string;
|
|
1034
|
+
message: string;
|
|
1035
|
+
success: boolean;
|
|
1036
|
+
}>;
|
|
1037
|
+
logs: (project_id: string, deployment_id: string, q?: Omit<In<"hives_query_deployment_logs">, "project_id" | "deployment_id">) => Promise<{
|
|
1038
|
+
logs: components["schemas"]["Hives.LogEntry"][];
|
|
1039
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
1040
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
1041
|
+
}>;
|
|
1042
|
+
invoke: (project_id: string, deployment_id: string, body?: In<"hives_invoke_deployment">["body"], init?: {
|
|
1043
|
+
signal?: AbortSignal;
|
|
1044
|
+
}) => Promise<Response>;
|
|
431
1045
|
};
|
|
432
1046
|
functions: {
|
|
433
|
-
list: (project_id: string) => Promise<
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
body: unknown;
|
|
437
|
-
duration_ms: number;
|
|
438
|
-
headers: {
|
|
439
|
-
[key: string]: string;
|
|
440
|
-
};
|
|
441
|
-
memory_used_mb: number;
|
|
442
|
-
request_id: string;
|
|
443
|
-
status: number;
|
|
1047
|
+
list: (project_id: string, q?: Omit<In<"hives_list_functions">, "project_id">) => Promise<{
|
|
1048
|
+
data: components["schemas"]["Hives.FunctionResponse"][];
|
|
1049
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
444
1050
|
}>;
|
|
1051
|
+
get: (project_id: string, function_id: string) => Promise<{
|
|
1052
|
+
id: string;
|
|
1053
|
+
tenant_id: string;
|
|
1054
|
+
project_id: string;
|
|
1055
|
+
name: string;
|
|
1056
|
+
description?: string | null;
|
|
1057
|
+
handler: string;
|
|
1058
|
+
route?: string | null;
|
|
1059
|
+
memory_mb: number;
|
|
1060
|
+
timeout_ms: number;
|
|
1061
|
+
status: string;
|
|
1062
|
+
invocations: number;
|
|
1063
|
+
avg_duration_ms: number;
|
|
1064
|
+
created_at: string;
|
|
1065
|
+
updated_at: string;
|
|
1066
|
+
}>;
|
|
1067
|
+
create: (project_id: string, body: In<"hives_create_function">["body"]) => Promise<{
|
|
1068
|
+
id: string;
|
|
1069
|
+
tenant_id: string;
|
|
1070
|
+
project_id: string;
|
|
1071
|
+
name: string;
|
|
1072
|
+
description?: string | null;
|
|
1073
|
+
handler: string;
|
|
1074
|
+
route?: string | null;
|
|
1075
|
+
memory_mb: number;
|
|
1076
|
+
timeout_ms: number;
|
|
1077
|
+
status: string;
|
|
1078
|
+
invocations: number;
|
|
1079
|
+
avg_duration_ms: number;
|
|
1080
|
+
created_at: string;
|
|
1081
|
+
updated_at: string;
|
|
1082
|
+
}>;
|
|
1083
|
+
update: (project_id: string, function_id: string, body: In<"hives_update_function">["body"]) => Promise<{
|
|
1084
|
+
id: string;
|
|
1085
|
+
tenant_id: string;
|
|
1086
|
+
project_id: string;
|
|
1087
|
+
name: string;
|
|
1088
|
+
description?: string | null;
|
|
1089
|
+
handler: string;
|
|
1090
|
+
route?: string | null;
|
|
1091
|
+
memory_mb: number;
|
|
1092
|
+
timeout_ms: number;
|
|
1093
|
+
status: string;
|
|
1094
|
+
invocations: number;
|
|
1095
|
+
avg_duration_ms: number;
|
|
1096
|
+
created_at: string;
|
|
1097
|
+
updated_at: string;
|
|
1098
|
+
}>;
|
|
1099
|
+
delete: (project_id: string, function_id: string) => Promise<{
|
|
1100
|
+
id: string;
|
|
1101
|
+
message: string;
|
|
1102
|
+
success: boolean;
|
|
1103
|
+
}>;
|
|
1104
|
+
/** Completed raw guest response; parse text/JSON/bytes explicitly. Never follows redirects. */
|
|
1105
|
+
invoke: (project_id: string, function_id: string, body?: In<"hives_invoke_function">["body"], init?: {
|
|
1106
|
+
signal?: AbortSignal;
|
|
1107
|
+
}) => Promise<Response>;
|
|
445
1108
|
};
|
|
446
1109
|
regions: {
|
|
447
1110
|
list: () => Promise<{
|
|
448
1111
|
regions: components["schemas"]["Hives.Region"][];
|
|
449
1112
|
}>;
|
|
450
1113
|
};
|
|
1114
|
+
cells: {
|
|
1115
|
+
list(project: string, query?: {
|
|
1116
|
+
page?: number;
|
|
1117
|
+
per_page?: number;
|
|
1118
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucketList>;
|
|
1119
|
+
get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucket>;
|
|
1120
|
+
create(project: string, body: import("./hives-cells.js").HivesCreateBucket, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesBucket>;
|
|
1121
|
+
remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
1122
|
+
id: string;
|
|
1123
|
+
success: boolean;
|
|
1124
|
+
message: string;
|
|
1125
|
+
}>;
|
|
1126
|
+
reconcile(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
1127
|
+
bucket: import("./hives-cells.js").HivesBucket;
|
|
1128
|
+
outcome: string;
|
|
1129
|
+
}>;
|
|
1130
|
+
cors: {
|
|
1131
|
+
get: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-cells.js").HivesCorsRule[]>;
|
|
1132
|
+
set: (project: string, id: string, rules: import("./hives-cells.js").HivesCorsRule[], options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-cells.js").HivesCorsRule[]>;
|
|
1133
|
+
};
|
|
1134
|
+
objects: {
|
|
1135
|
+
list(project: string, id: string, query?: {
|
|
1136
|
+
prefix?: string;
|
|
1137
|
+
delimiter?: string;
|
|
1138
|
+
continuation_token?: string;
|
|
1139
|
+
max_keys?: number;
|
|
1140
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesObjectList>;
|
|
1141
|
+
put(project: string, id: string, key: string, bytes: Blob | ArrayBuffer | ArrayBufferView, options?: import("./hives-resources-transport.js").HivesResourceOptions & {
|
|
1142
|
+
content_type?: string;
|
|
1143
|
+
}): Promise<import("./hives-cells.js").HivesObjectAcknowledgement>;
|
|
1144
|
+
remove: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<void>;
|
|
1145
|
+
download: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<Response>;
|
|
1146
|
+
putFlat(project: string, id: string, key: string, bytes: Blob | ArrayBuffer | ArrayBufferView, options?: import("./hives-resources-transport.js").HivesResourceOptions & {
|
|
1147
|
+
content_type?: string;
|
|
1148
|
+
}): Promise<import("./hives-cells.js").HivesObjectAcknowledgement>;
|
|
1149
|
+
removeFlat: (project: string, id: string, key: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<void>;
|
|
1150
|
+
};
|
|
1151
|
+
presign(project: string, id: string, body: import("./hives-cells.js").HivesPresign, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-cells.js").HivesPresignedUrl>;
|
|
1152
|
+
};
|
|
1153
|
+
queues: {
|
|
1154
|
+
list(project: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
1155
|
+
data: import("./hives-queues.js").HivesQueue[];
|
|
1156
|
+
engine_available: true;
|
|
1157
|
+
}>;
|
|
1158
|
+
get(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
1159
|
+
create(project: string, body: import("./hives-queues.js").HivesQueueCreate, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
1160
|
+
configure(project: string, id: string, body: import("./hives-queues.js").HivesQueueConfig, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
1161
|
+
remove(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
1162
|
+
deleted: true;
|
|
1163
|
+
}>;
|
|
1164
|
+
stats(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
1165
|
+
consumers: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<never>;
|
|
1166
|
+
pause(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
1167
|
+
resume(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<import("./hives-queues.js").HivesQueue>;
|
|
1168
|
+
purge(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
1169
|
+
purged: number;
|
|
1170
|
+
}>;
|
|
1171
|
+
send(project: string, id: string, body: import("./hives-queues.js").HivesQueueSend, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
1172
|
+
message_id: string;
|
|
1173
|
+
}>;
|
|
1174
|
+
receive(project: string, id: string, body?: {
|
|
1175
|
+
maxMessages?: number;
|
|
1176
|
+
waitSeconds?: number;
|
|
1177
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
1178
|
+
messages: import("./hives-queues.js").HivesQueueDelivery[];
|
|
1179
|
+
}>;
|
|
1180
|
+
ack: (project: string, id: string, message: string, receipt: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
|
|
1181
|
+
acknowledged: boolean;
|
|
1182
|
+
released: boolean;
|
|
1183
|
+
}>;
|
|
1184
|
+
nack: (project: string, id: string, message: string, receipt: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
|
|
1185
|
+
acknowledged: boolean;
|
|
1186
|
+
released: boolean;
|
|
1187
|
+
}>;
|
|
1188
|
+
deadLetters: (project: string, id: string, query?: {
|
|
1189
|
+
limit?: number;
|
|
1190
|
+
offset?: number;
|
|
1191
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
|
|
1192
|
+
messages: import("./hives-queues.js").HivesDeadLetter[];
|
|
1193
|
+
}>;
|
|
1194
|
+
deadLetterStats: (project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-queues.js").HivesDeadLetterStats>;
|
|
1195
|
+
replay(project: string, id: string, message: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
1196
|
+
message_id: string;
|
|
1197
|
+
replayed: 1;
|
|
1198
|
+
}>;
|
|
1199
|
+
deleteDeadLetter(project: string, id: string, message: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
1200
|
+
deleted: true;
|
|
1201
|
+
}>;
|
|
1202
|
+
purgeDeadLetters(project: string, id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions): Promise<{
|
|
1203
|
+
purged: number;
|
|
1204
|
+
}>;
|
|
1205
|
+
};
|
|
1206
|
+
runtimes: {
|
|
1207
|
+
list: (options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
|
|
1208
|
+
runtimes: import("./hives-runtimes.js").HivesRuntime[];
|
|
1209
|
+
}>;
|
|
1210
|
+
project: (project_id: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<{
|
|
1211
|
+
runtimes: import("./hives-runtimes.js").HivesRuntime[];
|
|
1212
|
+
}>;
|
|
1213
|
+
get: (name: string, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-runtimes.js").HivesRuntime>;
|
|
1214
|
+
select: (input: {
|
|
1215
|
+
wasi: string;
|
|
1216
|
+
runner: string;
|
|
1217
|
+
artifact: string;
|
|
1218
|
+
}, options?: import("./hives-resources-transport.js").HivesResourceOptions) => Promise<import("./hives-runtimes.js").HivesRuntimeSelection>;
|
|
1219
|
+
};
|
|
1220
|
+
settings: {
|
|
1221
|
+
get: (project_id: string) => Promise<{
|
|
1222
|
+
autoDeployEnabled: boolean;
|
|
1223
|
+
buildCommand?: string | null;
|
|
1224
|
+
defaultRegion: string;
|
|
1225
|
+
installCommand?: string | null;
|
|
1226
|
+
outputDirectory?: string | null;
|
|
1227
|
+
previewDeploymentsEnabled: boolean;
|
|
1228
|
+
} & {
|
|
1229
|
+
capabilities: components["schemas"]["Hives.ProjectSettingsCapabilities"];
|
|
1230
|
+
effective: components["schemas"]["Hives.EffectiveProjectSettings"];
|
|
1231
|
+
}>;
|
|
1232
|
+
update: (project_id: string, body: In<"hives_update_project_settings">["body"]) => Promise<{
|
|
1233
|
+
autoDeployEnabled: boolean;
|
|
1234
|
+
buildCommand?: string | null;
|
|
1235
|
+
defaultRegion: string;
|
|
1236
|
+
installCommand?: string | null;
|
|
1237
|
+
outputDirectory?: string | null;
|
|
1238
|
+
previewDeploymentsEnabled: boolean;
|
|
1239
|
+
} & {
|
|
1240
|
+
capabilities: components["schemas"]["Hives.ProjectSettingsCapabilities"];
|
|
1241
|
+
effective: components["schemas"]["Hives.EffectiveProjectSettings"];
|
|
1242
|
+
}>;
|
|
1243
|
+
};
|
|
1244
|
+
crons: {
|
|
1245
|
+
list: (project_id: string, q?: Omit<In<"hives_list_crons">, "project_id">) => Promise<Record<string, never>>;
|
|
1246
|
+
get: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
|
|
1247
|
+
create: (project_id: string, body: In<"hives_create_cron">["body"]) => Promise<Record<string, never>>;
|
|
1248
|
+
update: (project_id: string, cron_id: string, body: In<"hives_update_cron">["body"]) => Promise<Record<string, never>>;
|
|
1249
|
+
delete: (project_id: string, cron_id: string) => Promise<{
|
|
1250
|
+
id: string;
|
|
1251
|
+
message: string;
|
|
1252
|
+
success: boolean;
|
|
1253
|
+
}>;
|
|
1254
|
+
pause: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
|
|
1255
|
+
resume: (project_id: string, cron_id: string) => Promise<Record<string, never>>;
|
|
1256
|
+
trigger: (project_id: string, cron_id: string) => Promise<unknown>;
|
|
1257
|
+
runs: (project_id: string, cron_id: string, q?: Omit<In<"hives_get_cron_runs">, "project_id" | "cron_id">) => Promise<{
|
|
1258
|
+
data: {
|
|
1259
|
+
duration_ms?: number | null;
|
|
1260
|
+
ended_at?: string | null;
|
|
1261
|
+
error?: string | null;
|
|
1262
|
+
id: string;
|
|
1263
|
+
logs_url?: string | null;
|
|
1264
|
+
started_at: string;
|
|
1265
|
+
status: string;
|
|
1266
|
+
}[];
|
|
1267
|
+
pagination: components["schemas"]["Hives.PaginationMeta"];
|
|
1268
|
+
}>;
|
|
1269
|
+
};
|
|
1270
|
+
metrics: {
|
|
1271
|
+
project: (project_id: string, q?: Omit<In<"hives_get_project_metrics">, "project_id">) => Promise<{
|
|
1272
|
+
active_deployments: number;
|
|
1273
|
+
avg_api_http_duration_ms?: number | null;
|
|
1274
|
+
avg_response_time_ms?: number | null;
|
|
1275
|
+
cron_executions?: number | null;
|
|
1276
|
+
data_transfer_bytes: number;
|
|
1277
|
+
error_count: number;
|
|
1278
|
+
error_rate?: number | null;
|
|
1279
|
+
function_invocations: number;
|
|
1280
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
1281
|
+
observed_request_payload_bytes: number;
|
|
1282
|
+
observed_response_payload_bytes: number;
|
|
1283
|
+
p95_response_time_ms?: number | null;
|
|
1284
|
+
p99_response_time_ms?: number | null;
|
|
1285
|
+
project_id: string;
|
|
1286
|
+
storage_bytes?: number | null;
|
|
1287
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
1288
|
+
total_requests: number;
|
|
1289
|
+
unique_visitors?: number | null;
|
|
1290
|
+
}>;
|
|
1291
|
+
dashboard: (project_id: string, q?: Omit<In<"hives_get_dashboard_metrics">, "project_id">) => Promise<{
|
|
1292
|
+
activeDeployments: number;
|
|
1293
|
+
avgApiHttpDurationMs?: number | null;
|
|
1294
|
+
avgLatencyMs?: number | null;
|
|
1295
|
+
deploymentsChange?: number | null;
|
|
1296
|
+
errorRate?: number | null;
|
|
1297
|
+
errorRateChange?: number | null;
|
|
1298
|
+
errorTimeSeries: components["schemas"]["Hives.MetricDataPoint"][];
|
|
1299
|
+
latencyChange?: number | null;
|
|
1300
|
+
latencyTimeSeries: components["schemas"]["Hives.MetricDataPoint"][];
|
|
1301
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
1302
|
+
observedRequestPayloadBytes: number;
|
|
1303
|
+
observedResponsePayloadBytes: number;
|
|
1304
|
+
requestsChange?: number | null;
|
|
1305
|
+
requestsTimeSeries: components["schemas"]["Hives.MetricDataPoint"][];
|
|
1306
|
+
totalRequests: number;
|
|
1307
|
+
}>;
|
|
1308
|
+
requests: (project_id: string, q?: Omit<In<"hives_get_request_metrics">, "project_id">) => Promise<{
|
|
1309
|
+
aggregation: components["schemas"]["Hives.MetricAggregation"];
|
|
1310
|
+
data: components["schemas"]["Hives.MetricDataPoint"][];
|
|
1311
|
+
name: string;
|
|
1312
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
1313
|
+
resolution_seconds: number;
|
|
1314
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
1315
|
+
}>;
|
|
1316
|
+
latency: (project_id: string, q?: Omit<In<"hives_get_latency_metrics">, "project_id">) => Promise<{
|
|
1317
|
+
aggregation: components["schemas"]["Hives.MetricAggregation"];
|
|
1318
|
+
data: components["schemas"]["Hives.MetricDataPoint"][];
|
|
1319
|
+
name: string;
|
|
1320
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
1321
|
+
resolution_seconds: number;
|
|
1322
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
1323
|
+
}>;
|
|
1324
|
+
errors: (project_id: string, q?: Omit<In<"hives_get_error_metrics">, "project_id">) => Promise<{
|
|
1325
|
+
aggregation: components["schemas"]["Hives.MetricAggregation"];
|
|
1326
|
+
data: components["schemas"]["Hives.MetricDataPoint"][];
|
|
1327
|
+
name: string;
|
|
1328
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
1329
|
+
resolution_seconds: number;
|
|
1330
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
1331
|
+
}>;
|
|
1332
|
+
function: (project_id: string, function_id: string, q?: Omit<In<"hives_get_function_metrics">, "project_id" | "function_id">) => Promise<{
|
|
1333
|
+
avg_api_http_duration_ms?: number | null;
|
|
1334
|
+
avg_duration_ms?: number | null;
|
|
1335
|
+
billed_gb_seconds?: number | null;
|
|
1336
|
+
cold_starts?: number | null;
|
|
1337
|
+
configured_memory_limit_mb: number;
|
|
1338
|
+
failed_invocations: number;
|
|
1339
|
+
function_id: string;
|
|
1340
|
+
function_name: string;
|
|
1341
|
+
memory_mb?: number | null;
|
|
1342
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
1343
|
+
observed_request_payload_bytes: number;
|
|
1344
|
+
observed_response_payload_bytes: number;
|
|
1345
|
+
p50_duration_ms?: number | null;
|
|
1346
|
+
p95_duration_ms?: number | null;
|
|
1347
|
+
p99_duration_ms?: number | null;
|
|
1348
|
+
success_rate?: number | null;
|
|
1349
|
+
successful_invocations: number;
|
|
1350
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
1351
|
+
timeouts?: number | null;
|
|
1352
|
+
total_invocations: number;
|
|
1353
|
+
}>;
|
|
1354
|
+
invocations: (project_id: string, function_id: string, q?: Omit<In<"hives_get_function_invocations_series">, "project_id" | "function_id">) => Promise<{
|
|
1355
|
+
aggregation: components["schemas"]["Hives.MetricAggregation"];
|
|
1356
|
+
data: components["schemas"]["Hives.MetricDataPoint"][];
|
|
1357
|
+
name: string;
|
|
1358
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
1359
|
+
resolution_seconds: number;
|
|
1360
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
1361
|
+
}>;
|
|
1362
|
+
deployment: (project_id: string, deployment_id: string, q?: Omit<In<"hives_get_deployment_metrics">, "project_id" | "deployment_id">) => Promise<{
|
|
1363
|
+
active_instances?: number | null;
|
|
1364
|
+
avg_api_http_duration_ms?: number | null;
|
|
1365
|
+
avg_cpu_percent?: number | null;
|
|
1366
|
+
avg_memory_mb?: number | null;
|
|
1367
|
+
avg_response_time_ms?: number | null;
|
|
1368
|
+
deployment_id: string;
|
|
1369
|
+
error_count: number;
|
|
1370
|
+
error_rate?: number | null;
|
|
1371
|
+
max_instances?: number | null;
|
|
1372
|
+
min_instances?: number | null;
|
|
1373
|
+
network_in_bytes?: number | null;
|
|
1374
|
+
network_out_bytes?: number | null;
|
|
1375
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
1376
|
+
observed_request_payload_bytes: number;
|
|
1377
|
+
observed_response_payload_bytes: number;
|
|
1378
|
+
p95_response_time_ms?: number | null;
|
|
1379
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
1380
|
+
total_requests: number;
|
|
1381
|
+
}>;
|
|
1382
|
+
resources: (project_id: string, q?: Omit<In<"hives_get_resource_usage">, "project_id">) => Promise<{
|
|
1383
|
+
active_deployments: number;
|
|
1384
|
+
avg_api_http_duration_ms?: number | null;
|
|
1385
|
+
bandwidth_gb?: number | null;
|
|
1386
|
+
build_minutes?: number | null;
|
|
1387
|
+
compute_gb_seconds?: number | null;
|
|
1388
|
+
custom_domains: number;
|
|
1389
|
+
function_invocations: number;
|
|
1390
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
1391
|
+
observed_request_payload_bytes: number;
|
|
1392
|
+
observed_response_payload_bytes: number;
|
|
1393
|
+
scheduled_jobs: number;
|
|
1394
|
+
ssl_certificates: number;
|
|
1395
|
+
storage_gb?: number | null;
|
|
1396
|
+
time_range: components["schemas"]["Hives.TimeRange"];
|
|
1397
|
+
}>;
|
|
1398
|
+
realtime: (project_id: string) => Promise<{
|
|
1399
|
+
active_connections?: number | null;
|
|
1400
|
+
avg_api_http_duration_ms?: number | null;
|
|
1401
|
+
avg_response_time_ms?: number | null;
|
|
1402
|
+
cpu_percent?: number | null;
|
|
1403
|
+
error_rate?: number | null;
|
|
1404
|
+
memory_percent?: number | null;
|
|
1405
|
+
observation: components["schemas"]["Hives.ObservationScope"];
|
|
1406
|
+
observed_request_payload_bytes: number;
|
|
1407
|
+
observed_response_payload_bytes: number;
|
|
1408
|
+
requests_per_second: number;
|
|
1409
|
+
updated_at: string;
|
|
1410
|
+
}>;
|
|
1411
|
+
};
|
|
451
1412
|
};
|
|
452
1413
|
readonly relays: {
|
|
453
1414
|
zones: {
|