@amigo-ai/platform-sdk 0.99.0 → 0.101.0
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/api.md +12 -0
- package/dist/index.cjs +105 -0
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +105 -0
- package/dist/index.mjs.map +3 -3
- package/dist/resources/runs.js +100 -0
- package/dist/resources/runs.js.map +1 -0
- package/dist/types/generated/api.d.ts +319 -16
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +2 -0
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/external-integrations.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/integrations.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/runs.d.ts +163 -0
- package/dist/types/resources/runs.d.ts.map +1 -0
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { WorkspaceScopedResource, extractData } from './base.js';
|
|
2
|
+
/**
|
|
3
|
+
* Unified runs — the channel-neutral run backbone.
|
|
4
|
+
*
|
|
5
|
+
* Every agent trajectory is a Run: a conversation run (voice / text / sms /
|
|
6
|
+
* email / web, from Lakebase `world.conversations`) OR a framework run
|
|
7
|
+
* (claude-agent-sdk / openai-agents, from the Delta `world.runs` MV), federated
|
|
8
|
+
* behind one `Run` contract. This resource is the SDK surface for that backbone:
|
|
9
|
+
* list + summary + single-run detail + framework trajectory (reads), plus the
|
|
10
|
+
* run-scoped operator verbs (guidance / takeover / handback / switch-mode /
|
|
11
|
+
* access-token) addressed by the channel-neutral `run_id`.
|
|
12
|
+
*
|
|
13
|
+
* Distinct from {@link AgentRunsResource} (`/agent-runs`, framework-only) and the
|
|
14
|
+
* conversation surface (`/conversations`, conversation-only): neither spans the
|
|
15
|
+
* other, and only this resource speaks the unified `run_id`.
|
|
16
|
+
*/
|
|
17
|
+
export class RunsResource extends WorkspaceScopedResource {
|
|
18
|
+
/**
|
|
19
|
+
* Paginated, newest-first list of runs. `kind` / `channel` / `status` are
|
|
20
|
+
* multi-value OR-filters (repeat within an axis, AND across axes); `status`
|
|
21
|
+
* accepts the virtual `live` (running + paused). `continuationToken` is the
|
|
22
|
+
* opaque cursor from a prior page — round-trip it verbatim.
|
|
23
|
+
*/
|
|
24
|
+
async list(params) {
|
|
25
|
+
return extractData(await this.client.GET('/v1/{workspace_id}/runs', {
|
|
26
|
+
params: {
|
|
27
|
+
path: { workspace_id: this.workspaceId },
|
|
28
|
+
query: {
|
|
29
|
+
limit: params?.limit,
|
|
30
|
+
continuation_token: params?.continuationToken,
|
|
31
|
+
kind: params?.kind,
|
|
32
|
+
channel: params?.channel,
|
|
33
|
+
status: params?.status,
|
|
34
|
+
sort_by: params?.sortBy,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
/** Aggregate run counts (total / live / by-status / by-kind). */
|
|
40
|
+
async summary(params) {
|
|
41
|
+
return extractData(await this.client.GET('/v1/{workspace_id}/runs/summary', {
|
|
42
|
+
params: {
|
|
43
|
+
path: { workspace_id: this.workspaceId },
|
|
44
|
+
query: { kind: params?.kind, channel: params?.channel },
|
|
45
|
+
},
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
/** Resolve one run by its channel-neutral `run_id`, at any status. */
|
|
49
|
+
async get(runId) {
|
|
50
|
+
return extractData(await this.client.GET('/v1/{workspace_id}/runs/{run_id}', {
|
|
51
|
+
params: { path: { workspace_id: this.workspaceId, run_id: runId } },
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The ordered structural steps of a FRAMEWORK run's trajectory (perception /
|
|
56
|
+
* decision / tool / completion). 409 for conversation runs (they have per-turn
|
|
57
|
+
* detail via the conversation surface).
|
|
58
|
+
*/
|
|
59
|
+
async trajectory(runId) {
|
|
60
|
+
return extractData(await this.client.GET('/v1/{workspace_id}/runs/{run_id}/trajectory', {
|
|
61
|
+
params: { path: { workspace_id: this.workspaceId, run_id: runId } },
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
/** Send operator guidance to a LIVE run (the agent folds it into its next turn). */
|
|
65
|
+
async sendGuidance(runId, body) {
|
|
66
|
+
return extractData(await this.client.POST('/v1/{workspace_id}/runs/{run_id}/guidance', {
|
|
67
|
+
params: { path: { workspace_id: this.workspaceId, run_id: runId } },
|
|
68
|
+
body,
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
/** Take a live run over (operator drives). Returns the audio-leg coordinates for voice. */
|
|
72
|
+
async takeOver(runId, body) {
|
|
73
|
+
return extractData(await this.client.POST('/v1/{workspace_id}/runs/{run_id}/takeover', {
|
|
74
|
+
params: { path: { workspace_id: this.workspaceId, run_id: runId } },
|
|
75
|
+
body,
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
/** Hand a taken-over run back to the agent. */
|
|
79
|
+
async handBack(runId, body) {
|
|
80
|
+
return extractData(await this.client.POST('/v1/{workspace_id}/runs/{run_id}/handback', {
|
|
81
|
+
params: { path: { workspace_id: this.workspaceId, run_id: runId } },
|
|
82
|
+
body,
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
/** Switch the operator's mode on a live run (listen ↔ takeover). */
|
|
86
|
+
async switchMode(runId, body) {
|
|
87
|
+
return extractData(await this.client.POST('/v1/{workspace_id}/runs/{run_id}/switch-mode', {
|
|
88
|
+
params: { path: { workspace_id: this.workspaceId, run_id: runId } },
|
|
89
|
+
body,
|
|
90
|
+
}));
|
|
91
|
+
}
|
|
92
|
+
/** Mint a run-scoped browser access token (voice takeover audio leg). */
|
|
93
|
+
async accessToken(runId, body) {
|
|
94
|
+
return extractData(await this.client.POST('/v1/{workspace_id}/runs/{run_id}/access-token', {
|
|
95
|
+
params: { path: { workspace_id: this.workspaceId, run_id: runId } },
|
|
96
|
+
body,
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=runs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runs.js","sourceRoot":"","sources":["../../src/resources/runs.ts"],"names":[],"mappings":"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"}
|
|
@@ -1311,6 +1311,26 @@ export interface paths {
|
|
|
1311
1311
|
patch?: never;
|
|
1312
1312
|
trace?: never;
|
|
1313
1313
|
};
|
|
1314
|
+
"/v1/{workspace_id}/api-keys/permission-catalog": {
|
|
1315
|
+
parameters: {
|
|
1316
|
+
query?: never;
|
|
1317
|
+
header?: never;
|
|
1318
|
+
path?: never;
|
|
1319
|
+
cookie?: never;
|
|
1320
|
+
};
|
|
1321
|
+
/**
|
|
1322
|
+
* Get the API-key role/permission catalog
|
|
1323
|
+
* @description Return the authoritative role→permission model: each role's default permission set (what an API key of that role may carry) plus the full permission universe. Clients use this to build the create-key form instead of hard-coding the matrix. Requires `ApiKey.view` permission.
|
|
1324
|
+
*/
|
|
1325
|
+
get: operations["get-api-key-permission-catalog"];
|
|
1326
|
+
put?: never;
|
|
1327
|
+
post?: never;
|
|
1328
|
+
delete?: never;
|
|
1329
|
+
options?: never;
|
|
1330
|
+
head?: never;
|
|
1331
|
+
patch?: never;
|
|
1332
|
+
trace?: never;
|
|
1333
|
+
};
|
|
1314
1334
|
"/v1/{workspace_id}/api-keys/{key_id}": {
|
|
1315
1335
|
parameters: {
|
|
1316
1336
|
query?: never;
|
|
@@ -3403,22 +3423,7 @@ export interface paths {
|
|
|
3403
3423
|
};
|
|
3404
3424
|
get?: never;
|
|
3405
3425
|
put?: never;
|
|
3406
|
-
/**
|
|
3407
|
-
* Process Intake Batch
|
|
3408
|
-
* @description Start processing a batch (idempotent + resumable). Dispatches only the
|
|
3409
|
-
* still-``received`` files, so re-running picks up any that weren't triggered:
|
|
3410
|
-
*
|
|
3411
|
-
* * **Snapshot/CSV — ordered:** CDC depends on the prior curated baseline, so
|
|
3412
|
-
* only the lowest-version file fires now; each verdict chains the next via the
|
|
3413
|
-
* status write-back.
|
|
3414
|
-
* * **Documents — one batch run:** a single extract-job run processes every
|
|
3415
|
-
* received file (it pulls them from the processing-manifest). NOT one run-now
|
|
3416
|
-
* per file — that serialised on the request path and 504'd for large batches.
|
|
3417
|
-
*
|
|
3418
|
-
* The batch rolls up to completed/failed (via the write-back) once every file
|
|
3419
|
-
* reaches a terminal verdict. Allowed from ``ready`` or ``processing`` (re-kick
|
|
3420
|
-
* a partially-dispatched batch); a terminal batch is a 409.
|
|
3421
|
-
*/
|
|
3426
|
+
/** Process Intake Batch */
|
|
3422
3427
|
post: operations["process_intake_batch_v1__workspace_id__intake_batches__batch_id__process_post"];
|
|
3423
3428
|
delete?: never;
|
|
3424
3429
|
options?: never;
|
|
@@ -3466,6 +3471,31 @@ export interface paths {
|
|
|
3466
3471
|
patch?: never;
|
|
3467
3472
|
trace?: never;
|
|
3468
3473
|
};
|
|
3474
|
+
"/v1/{workspace_id}/intake/datasets/{dataset}/update": {
|
|
3475
|
+
parameters: {
|
|
3476
|
+
query?: never;
|
|
3477
|
+
header?: never;
|
|
3478
|
+
path?: never;
|
|
3479
|
+
cookie?: never;
|
|
3480
|
+
};
|
|
3481
|
+
get?: never;
|
|
3482
|
+
put?: never;
|
|
3483
|
+
/**
|
|
3484
|
+
* Update Intake Dataset
|
|
3485
|
+
* @description Run the customer-facing dataset update flow.
|
|
3486
|
+
*
|
|
3487
|
+
* This is the one-click orchestration path for the console: check mapped Drive
|
|
3488
|
+
* folders, prepare any newly landed files, and publish immediately when no
|
|
3489
|
+
* preparation is needed. If preparation is async, the run remains durable and
|
|
3490
|
+
* is advanced by file write-backs or by refresh.
|
|
3491
|
+
*/
|
|
3492
|
+
post: operations["update_intake_dataset_v1__workspace_id__intake_datasets__dataset__update_post"];
|
|
3493
|
+
delete?: never;
|
|
3494
|
+
options?: never;
|
|
3495
|
+
head?: never;
|
|
3496
|
+
patch?: never;
|
|
3497
|
+
trace?: never;
|
|
3498
|
+
};
|
|
3469
3499
|
"/v1/{workspace_id}/intake/files": {
|
|
3470
3500
|
parameters: {
|
|
3471
3501
|
query?: never;
|
|
@@ -3725,6 +3755,23 @@ export interface paths {
|
|
|
3725
3755
|
patch?: never;
|
|
3726
3756
|
trace?: never;
|
|
3727
3757
|
};
|
|
3758
|
+
"/v1/{workspace_id}/intake/update-runs/{run_id}": {
|
|
3759
|
+
parameters: {
|
|
3760
|
+
query?: never;
|
|
3761
|
+
header?: never;
|
|
3762
|
+
path?: never;
|
|
3763
|
+
cookie?: never;
|
|
3764
|
+
};
|
|
3765
|
+
/** Get Intake Update Run */
|
|
3766
|
+
get: operations["get_intake_update_run_v1__workspace_id__intake_update_runs__run_id__get"];
|
|
3767
|
+
put?: never;
|
|
3768
|
+
post?: never;
|
|
3769
|
+
delete?: never;
|
|
3770
|
+
options?: never;
|
|
3771
|
+
head?: never;
|
|
3772
|
+
patch?: never;
|
|
3773
|
+
trace?: never;
|
|
3774
|
+
};
|
|
3728
3775
|
"/v1/{workspace_id}/integrations": {
|
|
3729
3776
|
parameters: {
|
|
3730
3777
|
query?: never;
|
|
@@ -5332,6 +5379,26 @@ export interface paths {
|
|
|
5332
5379
|
patch?: never;
|
|
5333
5380
|
trace?: never;
|
|
5334
5381
|
};
|
|
5382
|
+
"/v1/{workspace_id}/runs/{run_id}/trajectory": {
|
|
5383
|
+
parameters: {
|
|
5384
|
+
query?: never;
|
|
5385
|
+
header?: never;
|
|
5386
|
+
path?: never;
|
|
5387
|
+
cookie?: never;
|
|
5388
|
+
};
|
|
5389
|
+
/**
|
|
5390
|
+
* Get a framework run's step-by-step trajectory
|
|
5391
|
+
* @description Ordered structural steps (perception / decision / tool / completion) of a FRAMEWORK run, read from the durable Delta trace source by the run's correlation id. 404 if the run does not exist in this workspace; 409 if the run is a conversation run (use ``/conversations/{id}`` for per-turn detail).
|
|
5392
|
+
*/
|
|
5393
|
+
get: operations["get_run_trajectory_v1__workspace_id__runs__run_id__trajectory_get"];
|
|
5394
|
+
put?: never;
|
|
5395
|
+
post?: never;
|
|
5396
|
+
delete?: never;
|
|
5397
|
+
options?: never;
|
|
5398
|
+
head?: never;
|
|
5399
|
+
patch?: never;
|
|
5400
|
+
trace?: never;
|
|
5401
|
+
};
|
|
5335
5402
|
"/v1/{workspace_id}/scheduling-rule-sets": {
|
|
5336
5403
|
parameters: {
|
|
5337
5404
|
query?: never;
|
|
@@ -12976,6 +13043,34 @@ export interface components {
|
|
|
12976
13043
|
/** Schema Version */
|
|
12977
13044
|
schema_version: string;
|
|
12978
13045
|
};
|
|
13046
|
+
/**
|
|
13047
|
+
* DatasetUpdateRunResponse
|
|
13048
|
+
* @description Durable status for one dataset update action.
|
|
13049
|
+
*/
|
|
13050
|
+
DatasetUpdateRunResponse: {
|
|
13051
|
+
/** Batch Ids */
|
|
13052
|
+
batch_ids: string[];
|
|
13053
|
+
/** Completed At */
|
|
13054
|
+
completed_at?: string | null;
|
|
13055
|
+
/** Created At */
|
|
13056
|
+
created_at: string;
|
|
13057
|
+
/** Dataset */
|
|
13058
|
+
dataset: string;
|
|
13059
|
+
/** Error */
|
|
13060
|
+
error?: string | null;
|
|
13061
|
+
/** Materialize Run Id */
|
|
13062
|
+
materialize_run_id?: number | null;
|
|
13063
|
+
/**
|
|
13064
|
+
* Run Id
|
|
13065
|
+
* Format: uuid
|
|
13066
|
+
*/
|
|
13067
|
+
run_id: string;
|
|
13068
|
+
/** Source Ids */
|
|
13069
|
+
source_ids: string[];
|
|
13070
|
+
status: components["schemas"]["_DatasetUpdateStatus"];
|
|
13071
|
+
/** Updated At */
|
|
13072
|
+
updated_at: string;
|
|
13073
|
+
};
|
|
12979
13074
|
/**
|
|
12980
13075
|
* DecisionFactor
|
|
12981
13076
|
* @description A specific audio input that drove an agent decision.
|
|
@@ -19675,6 +19770,32 @@ export interface components {
|
|
|
19675
19770
|
*/
|
|
19676
19771
|
workspace_id: string;
|
|
19677
19772
|
};
|
|
19773
|
+
/**
|
|
19774
|
+
* PermissionCatalogResponse
|
|
19775
|
+
* @description The authoritative role→permission model for API-key creation.
|
|
19776
|
+
*
|
|
19777
|
+
* Serves the server-side source of truth (``DEFAULT_ROLE_DEFINITIONS``) so
|
|
19778
|
+
* clients (console, SDK) stop hand-copying the matrix and drifting out of
|
|
19779
|
+
* sync — a drift previously shipped `Data:Query` as a viewer default and
|
|
19780
|
+
* made the default create flow 422. Human-facing labels/descriptions for
|
|
19781
|
+
* individual permissions stay client-side (pure presentation); this payload
|
|
19782
|
+
* is authorization truth only.
|
|
19783
|
+
*/
|
|
19784
|
+
PermissionCatalogResponse: {
|
|
19785
|
+
/** Permissions */
|
|
19786
|
+
permissions: components["schemas"]["PermissionEntry"][];
|
|
19787
|
+
/** Roles */
|
|
19788
|
+
roles: components["schemas"]["RoleEntry"][];
|
|
19789
|
+
};
|
|
19790
|
+
/** PermissionEntry */
|
|
19791
|
+
PermissionEntry: {
|
|
19792
|
+
/** Action */
|
|
19793
|
+
action: string;
|
|
19794
|
+
/** Name */
|
|
19795
|
+
name: string;
|
|
19796
|
+
/** Namespace */
|
|
19797
|
+
namespace: string;
|
|
19798
|
+
};
|
|
19678
19799
|
PhoneE164: string;
|
|
19679
19800
|
/** PhoneNumberCallVolume */
|
|
19680
19801
|
PhoneNumberCallVolume: {
|
|
@@ -21083,6 +21204,17 @@ export interface components {
|
|
|
21083
21204
|
*/
|
|
21084
21205
|
level?: "low" | "medium" | "high" | "critical";
|
|
21085
21206
|
};
|
|
21207
|
+
/** RoleEntry */
|
|
21208
|
+
RoleEntry: {
|
|
21209
|
+
/** Description */
|
|
21210
|
+
description: string;
|
|
21211
|
+
/** Name */
|
|
21212
|
+
name: string;
|
|
21213
|
+
/** Permission Names */
|
|
21214
|
+
permission_names: string[];
|
|
21215
|
+
/** Priority */
|
|
21216
|
+
priority: number;
|
|
21217
|
+
};
|
|
21086
21218
|
/** RoleGrantItem */
|
|
21087
21219
|
RoleGrantItem: {
|
|
21088
21220
|
access: components["schemas"]["_Access"];
|
|
@@ -21401,6 +21533,13 @@ export interface components {
|
|
|
21401
21533
|
*/
|
|
21402
21534
|
run_id: string;
|
|
21403
21535
|
};
|
|
21536
|
+
/** RunTrajectoryResponse */
|
|
21537
|
+
RunTrajectoryResponse: {
|
|
21538
|
+
/** Steps */
|
|
21539
|
+
steps: components["schemas"]["TrajectoryStep"][];
|
|
21540
|
+
/** Truncated */
|
|
21541
|
+
truncated: boolean;
|
|
21542
|
+
};
|
|
21404
21543
|
/** RunsResponse */
|
|
21405
21544
|
RunsResponse: {
|
|
21406
21545
|
/** Continuation Token */
|
|
@@ -25797,6 +25936,36 @@ export interface components {
|
|
|
25797
25936
|
*/
|
|
25798
25937
|
resourceSpans: components["schemas"]["ResourceSpans"][];
|
|
25799
25938
|
};
|
|
25939
|
+
/**
|
|
25940
|
+
* TrajectoryStep
|
|
25941
|
+
* @description One structural step of a framework run's trajectory. Fields are best-effort
|
|
25942
|
+
* (only those the step actually carries are present), all optional, and free ``str``
|
|
25943
|
+
* for the same read-model resilience the ``Run`` descriptive fields use.
|
|
25944
|
+
*/
|
|
25945
|
+
TrajectoryStep: {
|
|
25946
|
+
/** Actor */
|
|
25947
|
+
actor?: string | null;
|
|
25948
|
+
/** Decision From State */
|
|
25949
|
+
decision_from_state?: string | null;
|
|
25950
|
+
/** Decision To State */
|
|
25951
|
+
decision_to_state?: string | null;
|
|
25952
|
+
/** Effective At */
|
|
25953
|
+
effective_at?: string | null;
|
|
25954
|
+
/** Kind */
|
|
25955
|
+
kind?: string | null;
|
|
25956
|
+
/** Seq */
|
|
25957
|
+
seq?: number | null;
|
|
25958
|
+
/** State */
|
|
25959
|
+
state?: string | null;
|
|
25960
|
+
/** Tool Input Summary */
|
|
25961
|
+
tool_input_summary?: string | null;
|
|
25962
|
+
/** Tool Name */
|
|
25963
|
+
tool_name?: string | null;
|
|
25964
|
+
/** Tool Result Summary */
|
|
25965
|
+
tool_result_summary?: string | null;
|
|
25966
|
+
/** Tool Succeeded */
|
|
25967
|
+
tool_succeeded?: boolean | null;
|
|
25968
|
+
};
|
|
25800
25969
|
/** TranscriptSegment */
|
|
25801
25970
|
TranscriptSegment: {
|
|
25802
25971
|
/** Confidence */
|
|
@@ -27816,6 +27985,8 @@ export interface components {
|
|
|
27816
27985
|
/** @enum {string} */
|
|
27817
27986
|
_Access: "read" | "write";
|
|
27818
27987
|
_DatasetSlug: string;
|
|
27988
|
+
/** @enum {string} */
|
|
27989
|
+
_DatasetUpdateStatus: "checking_drive" | "preparing" | "publishing" | "completed" | "needs_review" | "failed";
|
|
27819
27990
|
/**
|
|
27820
27991
|
* _DayHours
|
|
27821
27992
|
* @description Open-hours window for one weekday. Times in 24h ``HH:MM`` form,
|
|
@@ -32167,6 +32338,42 @@ export interface operations {
|
|
|
32167
32338
|
};
|
|
32168
32339
|
};
|
|
32169
32340
|
};
|
|
32341
|
+
"get-api-key-permission-catalog": {
|
|
32342
|
+
parameters: {
|
|
32343
|
+
query?: never;
|
|
32344
|
+
header?: never;
|
|
32345
|
+
path: {
|
|
32346
|
+
workspace_id: string;
|
|
32347
|
+
};
|
|
32348
|
+
cookie?: never;
|
|
32349
|
+
};
|
|
32350
|
+
requestBody?: never;
|
|
32351
|
+
responses: {
|
|
32352
|
+
/** @description Successful Response */
|
|
32353
|
+
200: {
|
|
32354
|
+
headers: {
|
|
32355
|
+
[name: string]: unknown;
|
|
32356
|
+
};
|
|
32357
|
+
content: {
|
|
32358
|
+
"application/json": components["schemas"]["PermissionCatalogResponse"];
|
|
32359
|
+
};
|
|
32360
|
+
};
|
|
32361
|
+
/** @description Missing or invalid API key. */
|
|
32362
|
+
401: {
|
|
32363
|
+
headers: {
|
|
32364
|
+
[name: string]: unknown;
|
|
32365
|
+
};
|
|
32366
|
+
content?: never;
|
|
32367
|
+
};
|
|
32368
|
+
/** @description Insufficient permissions. */
|
|
32369
|
+
403: {
|
|
32370
|
+
headers: {
|
|
32371
|
+
[name: string]: unknown;
|
|
32372
|
+
};
|
|
32373
|
+
content?: never;
|
|
32374
|
+
};
|
|
32375
|
+
};
|
|
32376
|
+
};
|
|
32170
32377
|
"delete-api-key": {
|
|
32171
32378
|
parameters: {
|
|
32172
32379
|
query?: never;
|
|
@@ -37411,6 +37618,38 @@ export interface operations {
|
|
|
37411
37618
|
};
|
|
37412
37619
|
};
|
|
37413
37620
|
};
|
|
37621
|
+
update_intake_dataset_v1__workspace_id__intake_datasets__dataset__update_post: {
|
|
37622
|
+
parameters: {
|
|
37623
|
+
query?: never;
|
|
37624
|
+
header?: never;
|
|
37625
|
+
path: {
|
|
37626
|
+
workspace_id: string;
|
|
37627
|
+
dataset: string;
|
|
37628
|
+
};
|
|
37629
|
+
cookie?: never;
|
|
37630
|
+
};
|
|
37631
|
+
requestBody?: never;
|
|
37632
|
+
responses: {
|
|
37633
|
+
/** @description Successful Response */
|
|
37634
|
+
202: {
|
|
37635
|
+
headers: {
|
|
37636
|
+
[name: string]: unknown;
|
|
37637
|
+
};
|
|
37638
|
+
content: {
|
|
37639
|
+
"application/json": components["schemas"]["DatasetUpdateRunResponse"];
|
|
37640
|
+
};
|
|
37641
|
+
};
|
|
37642
|
+
/** @description Validation Error */
|
|
37643
|
+
422: {
|
|
37644
|
+
headers: {
|
|
37645
|
+
[name: string]: unknown;
|
|
37646
|
+
};
|
|
37647
|
+
content: {
|
|
37648
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
37649
|
+
};
|
|
37650
|
+
};
|
|
37651
|
+
};
|
|
37652
|
+
};
|
|
37414
37653
|
list_intake_files_v1__workspace_id__intake_files_get: {
|
|
37415
37654
|
parameters: {
|
|
37416
37655
|
query?: {
|
|
@@ -37980,6 +38219,38 @@ export interface operations {
|
|
|
37980
38219
|
};
|
|
37981
38220
|
};
|
|
37982
38221
|
};
|
|
38222
|
+
get_intake_update_run_v1__workspace_id__intake_update_runs__run_id__get: {
|
|
38223
|
+
parameters: {
|
|
38224
|
+
query?: never;
|
|
38225
|
+
header?: never;
|
|
38226
|
+
path: {
|
|
38227
|
+
workspace_id: string;
|
|
38228
|
+
run_id: string;
|
|
38229
|
+
};
|
|
38230
|
+
cookie?: never;
|
|
38231
|
+
};
|
|
38232
|
+
requestBody?: never;
|
|
38233
|
+
responses: {
|
|
38234
|
+
/** @description Successful Response */
|
|
38235
|
+
200: {
|
|
38236
|
+
headers: {
|
|
38237
|
+
[name: string]: unknown;
|
|
38238
|
+
};
|
|
38239
|
+
content: {
|
|
38240
|
+
"application/json": components["schemas"]["DatasetUpdateRunResponse"];
|
|
38241
|
+
};
|
|
38242
|
+
};
|
|
38243
|
+
/** @description Validation Error */
|
|
38244
|
+
422: {
|
|
38245
|
+
headers: {
|
|
38246
|
+
[name: string]: unknown;
|
|
38247
|
+
};
|
|
38248
|
+
content: {
|
|
38249
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
38250
|
+
};
|
|
38251
|
+
};
|
|
38252
|
+
};
|
|
38253
|
+
};
|
|
37983
38254
|
"list-integrations": {
|
|
37984
38255
|
parameters: {
|
|
37985
38256
|
query?: {
|
|
@@ -41717,6 +41988,38 @@ export interface operations {
|
|
|
41717
41988
|
};
|
|
41718
41989
|
};
|
|
41719
41990
|
};
|
|
41991
|
+
get_run_trajectory_v1__workspace_id__runs__run_id__trajectory_get: {
|
|
41992
|
+
parameters: {
|
|
41993
|
+
query?: never;
|
|
41994
|
+
header?: never;
|
|
41995
|
+
path: {
|
|
41996
|
+
workspace_id: string;
|
|
41997
|
+
run_id: string;
|
|
41998
|
+
};
|
|
41999
|
+
cookie?: never;
|
|
42000
|
+
};
|
|
42001
|
+
requestBody?: never;
|
|
42002
|
+
responses: {
|
|
42003
|
+
/** @description Successful Response */
|
|
42004
|
+
200: {
|
|
42005
|
+
headers: {
|
|
42006
|
+
[name: string]: unknown;
|
|
42007
|
+
};
|
|
42008
|
+
content: {
|
|
42009
|
+
"application/json": components["schemas"]["RunTrajectoryResponse"];
|
|
42010
|
+
};
|
|
42011
|
+
};
|
|
42012
|
+
/** @description Validation Error */
|
|
42013
|
+
422: {
|
|
42014
|
+
headers: {
|
|
42015
|
+
[name: string]: unknown;
|
|
42016
|
+
};
|
|
42017
|
+
content: {
|
|
42018
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
42019
|
+
};
|
|
42020
|
+
};
|
|
42021
|
+
};
|
|
42022
|
+
};
|
|
41720
42023
|
"list-scheduling-rule-sets": {
|
|
41721
42024
|
parameters: {
|
|
41722
42025
|
query?: {
|