@1claw/sdk 0.57.0 → 0.58.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/README.md +65 -2
- package/dist/generated/api-types.d.ts +754 -15
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/resources/agents.d.ts +6 -1
- package/dist/resources/agents.d.ts.map +1 -1
- package/dist/resources/agents.js +7 -0
- package/dist/resources/agents.js.map +1 -1
- package/dist/resources/platform.d.ts +111 -4
- package/dist/resources/platform.d.ts.map +1 -1
- package/dist/resources/platform.js +66 -3
- package/dist/resources/platform.js.map +1 -1
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3897,12 +3897,14 @@ export interface paths {
|
|
|
3897
3897
|
};
|
|
3898
3898
|
requestBody?: never;
|
|
3899
3899
|
responses: {
|
|
3900
|
-
/** @description
|
|
3901
|
-
|
|
3900
|
+
/** @description Soft-deleted; slug released for reuse within the org */
|
|
3901
|
+
200: {
|
|
3902
3902
|
headers: {
|
|
3903
3903
|
[name: string]: unknown;
|
|
3904
3904
|
};
|
|
3905
|
-
content
|
|
3905
|
+
content: {
|
|
3906
|
+
"application/json": components["schemas"]["PlatformAppDeleteResponse"];
|
|
3907
|
+
};
|
|
3906
3908
|
};
|
|
3907
3909
|
/** @description Only human users can delete platform apps */
|
|
3908
3910
|
403: {
|
|
@@ -3944,6 +3946,29 @@ export interface paths {
|
|
|
3944
3946
|
};
|
|
3945
3947
|
trace?: never;
|
|
3946
3948
|
};
|
|
3949
|
+
"/v1/platform/apps/{appId}/transfer-ownership": {
|
|
3950
|
+
parameters: {
|
|
3951
|
+
query?: never;
|
|
3952
|
+
header?: never;
|
|
3953
|
+
path?: never;
|
|
3954
|
+
cookie?: never;
|
|
3955
|
+
};
|
|
3956
|
+
get?: never;
|
|
3957
|
+
put?: never;
|
|
3958
|
+
/**
|
|
3959
|
+
* Transfer platform app to another organization
|
|
3960
|
+
* @description Moves the platform app record to another organization. Requires org
|
|
3961
|
+
* owner/admin in the source org and step-up auth (`X-Auth-Confirm`,
|
|
3962
|
+
* purpose `platform.app.transfer`). End-user connections and provisioned
|
|
3963
|
+
* resources remain in their original organizations.
|
|
3964
|
+
*/
|
|
3965
|
+
post: operations["transferPlatformAppOwnership"];
|
|
3966
|
+
delete?: never;
|
|
3967
|
+
options?: never;
|
|
3968
|
+
head?: never;
|
|
3969
|
+
patch?: never;
|
|
3970
|
+
trace?: never;
|
|
3971
|
+
};
|
|
3947
3972
|
"/v1/platform/apps/{appId}/rotate-key": {
|
|
3948
3973
|
parameters: {
|
|
3949
3974
|
query?: never;
|
|
@@ -4122,7 +4147,11 @@ export interface paths {
|
|
|
4122
4147
|
path?: never;
|
|
4123
4148
|
cookie?: never;
|
|
4124
4149
|
};
|
|
4125
|
-
|
|
4150
|
+
/**
|
|
4151
|
+
* Get a bootstrap template
|
|
4152
|
+
* @description Returns the full template spec for a platform app. plt_ or user JWT.
|
|
4153
|
+
*/
|
|
4154
|
+
get: operations["getPlatformTemplate"];
|
|
4126
4155
|
put?: never;
|
|
4127
4156
|
post?: never;
|
|
4128
4157
|
/** Delete a bootstrap template */
|
|
@@ -5069,7 +5098,8 @@ export interface paths {
|
|
|
5069
5098
|
path?: never;
|
|
5070
5099
|
cookie?: never;
|
|
5071
5100
|
};
|
|
5072
|
-
|
|
5101
|
+
/** Get a spend policy by ID */
|
|
5102
|
+
get: operations["getSpendPolicy"];
|
|
5073
5103
|
put?: never;
|
|
5074
5104
|
post?: never;
|
|
5075
5105
|
/** Delete a spend policy */
|
|
@@ -5086,12 +5116,18 @@ export interface paths {
|
|
|
5086
5116
|
path?: never;
|
|
5087
5117
|
cookie?: never;
|
|
5088
5118
|
};
|
|
5089
|
-
|
|
5119
|
+
/**
|
|
5120
|
+
* Get effective spend policy for a connection
|
|
5121
|
+
* @description Returns the effective spend policy for the connected user, resolving
|
|
5122
|
+
* per-user overrides before app-level defaults. Requires plt_ platform auth.
|
|
5123
|
+
*/
|
|
5124
|
+
get: operations["getConnectionSpendPolicy"];
|
|
5090
5125
|
/**
|
|
5091
5126
|
* Set per-user spend policy override
|
|
5092
|
-
* @description
|
|
5093
|
-
*
|
|
5094
|
-
*
|
|
5127
|
+
* @description Replace the per-user spend policy for a connected user (deactivates the
|
|
5128
|
+
* previous active row, then inserts). Requires plt_ platform auth.
|
|
5129
|
+
* Optional `Idempotency-Key` header must cover the full request body — reusing
|
|
5130
|
+
* the same key with different parameters returns 409.
|
|
5095
5131
|
*/
|
|
5096
5132
|
put: operations["setUserSpendPolicy"];
|
|
5097
5133
|
post?: never;
|
|
@@ -5101,6 +5137,192 @@ export interface paths {
|
|
|
5101
5137
|
patch?: never;
|
|
5102
5138
|
trace?: never;
|
|
5103
5139
|
};
|
|
5140
|
+
"/v1/platform/connections/{connectionId}/approvals": {
|
|
5141
|
+
parameters: {
|
|
5142
|
+
query?: never;
|
|
5143
|
+
header?: never;
|
|
5144
|
+
path?: never;
|
|
5145
|
+
cookie?: never;
|
|
5146
|
+
};
|
|
5147
|
+
/**
|
|
5148
|
+
* List approvals for a platform connection
|
|
5149
|
+
* @description Returns approvals assigned to the connection's user, filtered to agents
|
|
5150
|
+
* provisioned on the connection. Requires plt_ platform auth.
|
|
5151
|
+
*/
|
|
5152
|
+
get: operations["listConnectionApprovals"];
|
|
5153
|
+
put?: never;
|
|
5154
|
+
post?: never;
|
|
5155
|
+
delete?: never;
|
|
5156
|
+
options?: never;
|
|
5157
|
+
head?: never;
|
|
5158
|
+
patch?: never;
|
|
5159
|
+
trace?: never;
|
|
5160
|
+
};
|
|
5161
|
+
"/v1/platform/connections/{connectionId}/approvals/{approvalId}": {
|
|
5162
|
+
parameters: {
|
|
5163
|
+
query?: never;
|
|
5164
|
+
header?: never;
|
|
5165
|
+
path?: never;
|
|
5166
|
+
cookie?: never;
|
|
5167
|
+
};
|
|
5168
|
+
/** Get a connection-scoped approval */
|
|
5169
|
+
get: operations["getConnectionApproval"];
|
|
5170
|
+
put?: never;
|
|
5171
|
+
post?: never;
|
|
5172
|
+
delete?: never;
|
|
5173
|
+
options?: never;
|
|
5174
|
+
head?: never;
|
|
5175
|
+
patch?: never;
|
|
5176
|
+
trace?: never;
|
|
5177
|
+
};
|
|
5178
|
+
"/v1/platform/connections/{connectionId}/pending-approvals": {
|
|
5179
|
+
parameters: {
|
|
5180
|
+
query?: never;
|
|
5181
|
+
header?: never;
|
|
5182
|
+
path?: never;
|
|
5183
|
+
cookie?: never;
|
|
5184
|
+
};
|
|
5185
|
+
/**
|
|
5186
|
+
* List pending consensus approvals for a connection
|
|
5187
|
+
* @description Returns pending approvals for agents provisioned on the connection,
|
|
5188
|
+
* including `action_payload` and `payload_hash` for consensus UX.
|
|
5189
|
+
* Requires plt_ platform auth.
|
|
5190
|
+
*/
|
|
5191
|
+
get: operations["listConnectionPendingApprovals"];
|
|
5192
|
+
put?: never;
|
|
5193
|
+
post?: never;
|
|
5194
|
+
delete?: never;
|
|
5195
|
+
options?: never;
|
|
5196
|
+
head?: never;
|
|
5197
|
+
patch?: never;
|
|
5198
|
+
trace?: never;
|
|
5199
|
+
};
|
|
5200
|
+
"/v1/platform/connections/{connectionId}/pending-approvals/{approvalId}": {
|
|
5201
|
+
parameters: {
|
|
5202
|
+
query?: never;
|
|
5203
|
+
header?: never;
|
|
5204
|
+
path?: never;
|
|
5205
|
+
cookie?: never;
|
|
5206
|
+
};
|
|
5207
|
+
/** Get a connection-scoped pending approval (with payload_hash) */
|
|
5208
|
+
get: operations["getConnectionPendingApproval"];
|
|
5209
|
+
put?: never;
|
|
5210
|
+
post?: never;
|
|
5211
|
+
delete?: never;
|
|
5212
|
+
options?: never;
|
|
5213
|
+
head?: never;
|
|
5214
|
+
patch?: never;
|
|
5215
|
+
trace?: never;
|
|
5216
|
+
};
|
|
5217
|
+
"/v1/platform/connections/{connectionId}/pending-approvals/{approvalId}/decide": {
|
|
5218
|
+
parameters: {
|
|
5219
|
+
query?: never;
|
|
5220
|
+
header?: never;
|
|
5221
|
+
path?: never;
|
|
5222
|
+
cookie?: never;
|
|
5223
|
+
};
|
|
5224
|
+
get?: never;
|
|
5225
|
+
put?: never;
|
|
5226
|
+
/**
|
|
5227
|
+
* Decide a pending approval for a connection user
|
|
5228
|
+
* @description Platform apps vote on behalf of the connected user after verifying intent
|
|
5229
|
+
* out-of-band (e.g. wallet mandate). Requires `payload_hash` matching the
|
|
5230
|
+
* pending row. Accepts `decision`: `approve` or `reject` (aliases `approved` /
|
|
5231
|
+
* `rejected`). plt_ auth only; scoped to agents on the connection.
|
|
5232
|
+
*/
|
|
5233
|
+
post: operations["decideConnectionPendingApproval"];
|
|
5234
|
+
delete?: never;
|
|
5235
|
+
options?: never;
|
|
5236
|
+
head?: never;
|
|
5237
|
+
patch?: never;
|
|
5238
|
+
trace?: never;
|
|
5239
|
+
};
|
|
5240
|
+
"/v1/platform/connections/{connectionId}/approvals/{approvalId}/decide": {
|
|
5241
|
+
parameters: {
|
|
5242
|
+
query?: never;
|
|
5243
|
+
header?: never;
|
|
5244
|
+
path?: never;
|
|
5245
|
+
cookie?: never;
|
|
5246
|
+
};
|
|
5247
|
+
get?: never;
|
|
5248
|
+
put?: never;
|
|
5249
|
+
/**
|
|
5250
|
+
* Decide a mobile/agent approval for a connection user
|
|
5251
|
+
* @description Platform apps decide agent approval requests on behalf of the connected user.
|
|
5252
|
+
* Accepts `decision`: `approved` or `rejected` (aliases `approve` / `reject`).
|
|
5253
|
+
* plt_ auth only.
|
|
5254
|
+
*/
|
|
5255
|
+
post: operations["decideConnectionApproval"];
|
|
5256
|
+
delete?: never;
|
|
5257
|
+
options?: never;
|
|
5258
|
+
head?: never;
|
|
5259
|
+
patch?: never;
|
|
5260
|
+
trace?: never;
|
|
5261
|
+
};
|
|
5262
|
+
"/v1/platform/connections/{connectionId}/signing-keys/{chain}": {
|
|
5263
|
+
parameters: {
|
|
5264
|
+
query?: never;
|
|
5265
|
+
header?: never;
|
|
5266
|
+
path?: never;
|
|
5267
|
+
cookie?: never;
|
|
5268
|
+
};
|
|
5269
|
+
get?: never;
|
|
5270
|
+
put?: never;
|
|
5271
|
+
post?: never;
|
|
5272
|
+
/**
|
|
5273
|
+
* Deactivate a signing key for a connection agent
|
|
5274
|
+
* @description Deactivates the signing key for an agent provisioned on the connection.
|
|
5275
|
+
* When multiple agents exist, pass `agent_id` query param. plt_ auth only.
|
|
5276
|
+
*/
|
|
5277
|
+
delete: operations["deactivateConnectionSigningKey"];
|
|
5278
|
+
options?: never;
|
|
5279
|
+
head?: never;
|
|
5280
|
+
patch?: never;
|
|
5281
|
+
trace?: never;
|
|
5282
|
+
};
|
|
5283
|
+
"/v1/platform/connections/{connectionId}/runtimes": {
|
|
5284
|
+
parameters: {
|
|
5285
|
+
query?: never;
|
|
5286
|
+
header?: never;
|
|
5287
|
+
path?: never;
|
|
5288
|
+
cookie?: never;
|
|
5289
|
+
};
|
|
5290
|
+
get?: never;
|
|
5291
|
+
put?: never;
|
|
5292
|
+
/**
|
|
5293
|
+
* Create a runtime for a connection agent
|
|
5294
|
+
* @description Creates a Cloud Runtime in the end-user's org for an agent on this connection.
|
|
5295
|
+
* Use instead of `POST /v1/runtimes` with a plt_ key (which resolves to the platform org).
|
|
5296
|
+
* App must verify user intent out-of-band (e.g. wallet mandate) before calling.
|
|
5297
|
+
*/
|
|
5298
|
+
post: operations["createConnectionRuntime"];
|
|
5299
|
+
delete?: never;
|
|
5300
|
+
options?: never;
|
|
5301
|
+
head?: never;
|
|
5302
|
+
patch?: never;
|
|
5303
|
+
trace?: never;
|
|
5304
|
+
};
|
|
5305
|
+
"/v1/platform/connections/{connectionId}/agents/{agentId}/chat": {
|
|
5306
|
+
parameters: {
|
|
5307
|
+
query?: never;
|
|
5308
|
+
header?: never;
|
|
5309
|
+
path?: never;
|
|
5310
|
+
cookie?: never;
|
|
5311
|
+
};
|
|
5312
|
+
get?: never;
|
|
5313
|
+
put?: never;
|
|
5314
|
+
/**
|
|
5315
|
+
* Chat with a connection agent (plt_ scoped)
|
|
5316
|
+
* @description Send a chat message to an agent provisioned on this connection, acting as the
|
|
5317
|
+
* connected end-user. Use instead of `POST /v1/agents/{id}/chat` with a plt_ key.
|
|
5318
|
+
*/
|
|
5319
|
+
post: operations["connectionAgentChat"];
|
|
5320
|
+
delete?: never;
|
|
5321
|
+
options?: never;
|
|
5322
|
+
head?: never;
|
|
5323
|
+
patch?: never;
|
|
5324
|
+
trace?: never;
|
|
5325
|
+
};
|
|
5104
5326
|
"/v1/approvals": {
|
|
5105
5327
|
parameters: {
|
|
5106
5328
|
query?: never;
|
|
@@ -6099,6 +6321,29 @@ export interface paths {
|
|
|
6099
6321
|
patch?: never;
|
|
6100
6322
|
trace?: never;
|
|
6101
6323
|
};
|
|
6324
|
+
"/v1/agents/{agent_id}/automations": {
|
|
6325
|
+
parameters: {
|
|
6326
|
+
query?: never;
|
|
6327
|
+
header?: never;
|
|
6328
|
+
path?: never;
|
|
6329
|
+
cookie?: never;
|
|
6330
|
+
};
|
|
6331
|
+
get?: never;
|
|
6332
|
+
put?: never;
|
|
6333
|
+
/**
|
|
6334
|
+
* Create agent automation (agent-only)
|
|
6335
|
+
* @description Agent-scoped create for simple manual or webhook automations from chat/runtime tools.
|
|
6336
|
+
* Allowed step types: log, notify, memory_get, memory_put, wait (max 10).
|
|
6337
|
+
* Cron, swap, http, and transaction steps require human dashboard setup.
|
|
6338
|
+
* Requires agent JWT; agent_id in path must match the caller.
|
|
6339
|
+
*/
|
|
6340
|
+
post: operations["createAgentAutomation"];
|
|
6341
|
+
delete?: never;
|
|
6342
|
+
options?: never;
|
|
6343
|
+
head?: never;
|
|
6344
|
+
patch?: never;
|
|
6345
|
+
trace?: never;
|
|
6346
|
+
};
|
|
6102
6347
|
"/v1/runtimes": {
|
|
6103
6348
|
parameters: {
|
|
6104
6349
|
query?: never;
|
|
@@ -6263,7 +6508,7 @@ export interface paths {
|
|
|
6263
6508
|
/**
|
|
6264
6509
|
* Chat with a running runtime agent
|
|
6265
6510
|
* @description Human-only. Proxies to the runtime container's OpenAI-compatible
|
|
6266
|
-
* `POST /v1/chat/completions` (hermes / openclaw / openclaude chat bridge).
|
|
6511
|
+
* `POST /v1/chat/completions` (hermes / openclaw / openclaude / opencode chat bridge).
|
|
6267
6512
|
* Starts the runtime if stopped. Streams SSE when `Accept: text/event-stream`
|
|
6268
6513
|
* or `stream: true`. Conversation history is ephemeral (pass `messages`).
|
|
6269
6514
|
* Requires a public URL (shell access, Shroud sidecar, or HTTP hosting).
|
|
@@ -10469,6 +10714,28 @@ export interface components {
|
|
|
10469
10714
|
*/
|
|
10470
10715
|
api_key_expires_at?: string | null;
|
|
10471
10716
|
};
|
|
10717
|
+
PlatformAppDeleteResponse: {
|
|
10718
|
+
deleted: boolean;
|
|
10719
|
+
soft_delete: boolean;
|
|
10720
|
+
slug_released: boolean;
|
|
10721
|
+
former_slug: string;
|
|
10722
|
+
};
|
|
10723
|
+
/** @description Provide `target_org_id` or `target_user_email` (owner/admin in destination org). */
|
|
10724
|
+
TransferPlatformAppOwnershipRequest: {
|
|
10725
|
+
/** Format: uuid */
|
|
10726
|
+
target_org_id?: string;
|
|
10727
|
+
/** Format: email */
|
|
10728
|
+
target_user_email?: string;
|
|
10729
|
+
};
|
|
10730
|
+
TransferPlatformAppOwnershipResponse: {
|
|
10731
|
+
/** Format: uuid */
|
|
10732
|
+
app_id: string;
|
|
10733
|
+
/** Format: uuid */
|
|
10734
|
+
former_org_id: string;
|
|
10735
|
+
/** Format: uuid */
|
|
10736
|
+
new_org_id: string;
|
|
10737
|
+
message: string;
|
|
10738
|
+
};
|
|
10472
10739
|
PlatformAppResponse: {
|
|
10473
10740
|
/** Format: uuid */
|
|
10474
10741
|
id?: string;
|
|
@@ -10863,6 +11130,10 @@ export interface components {
|
|
|
10863
11130
|
/** Format: date-time */
|
|
10864
11131
|
created_at: string;
|
|
10865
11132
|
};
|
|
11133
|
+
ApprovalListResponse: {
|
|
11134
|
+
approvals: components["schemas"]["ApprovalResponse"][];
|
|
11135
|
+
total: number;
|
|
11136
|
+
};
|
|
10866
11137
|
ApprovalStatusResponse: {
|
|
10867
11138
|
/** @enum {string} */
|
|
10868
11139
|
status: "pending" | "approved" | "rejected" | "expired";
|
|
@@ -11003,6 +11274,8 @@ export interface components {
|
|
|
11003
11274
|
wallet_address?: string | null;
|
|
11004
11275
|
vault_ids: string[];
|
|
11005
11276
|
agent_ids: string[];
|
|
11277
|
+
runtime_ids?: string[];
|
|
11278
|
+
automation_ids?: string[];
|
|
11006
11279
|
/** Format: date-time */
|
|
11007
11280
|
claimed_at?: string | null;
|
|
11008
11281
|
claim: components["schemas"]["ClaimStatusResponse"];
|
|
@@ -11498,6 +11771,28 @@ export interface components {
|
|
|
11498
11771
|
[key: string]: unknown;
|
|
11499
11772
|
};
|
|
11500
11773
|
};
|
|
11774
|
+
/**
|
|
11775
|
+
* @description Agent-scoped automation create. Defaults to manual trigger.
|
|
11776
|
+
* workflow_spec must use only agent-allowed step types (log, notify, memory_get, memory_put, wait).
|
|
11777
|
+
*/
|
|
11778
|
+
AgentCreateAutomationRequest: {
|
|
11779
|
+
name: string;
|
|
11780
|
+
/**
|
|
11781
|
+
* @default manual
|
|
11782
|
+
* @enum {string}
|
|
11783
|
+
*/
|
|
11784
|
+
trigger_type: "manual" | "webhook";
|
|
11785
|
+
workflow_spec: {
|
|
11786
|
+
[key: string]: unknown;
|
|
11787
|
+
}[] | {
|
|
11788
|
+
[key: string]: unknown;
|
|
11789
|
+
};
|
|
11790
|
+
/**
|
|
11791
|
+
* @description When true (manual trigger only), start a run immediately after creation
|
|
11792
|
+
* @default false
|
|
11793
|
+
*/
|
|
11794
|
+
auto_trigger: boolean;
|
|
11795
|
+
};
|
|
11501
11796
|
UpdateAutomationRequest: {
|
|
11502
11797
|
name?: string;
|
|
11503
11798
|
cron_expr?: string | null;
|
|
@@ -11543,6 +11838,11 @@ export interface components {
|
|
|
11543
11838
|
success_rate?: number | null;
|
|
11544
11839
|
/** @description Resolved agent display name (enriched list field) */
|
|
11545
11840
|
agent_name?: string | null;
|
|
11841
|
+
/**
|
|
11842
|
+
* @description Whether the automation was created by a human or agent (chat-native create)
|
|
11843
|
+
* @enum {string}
|
|
11844
|
+
*/
|
|
11845
|
+
created_by_type?: "user" | "agent";
|
|
11546
11846
|
/** Format: date-time */
|
|
11547
11847
|
created_at: string;
|
|
11548
11848
|
/** Format: date-time */
|
|
@@ -11614,6 +11914,25 @@ export interface components {
|
|
|
11614
11914
|
};
|
|
11615
11915
|
}[];
|
|
11616
11916
|
};
|
|
11917
|
+
CreateConnectionRuntimeRequest: {
|
|
11918
|
+
name: string;
|
|
11919
|
+
/**
|
|
11920
|
+
* Format: uuid
|
|
11921
|
+
* @description Required when multiple agents on the connection; defaults to sole agent
|
|
11922
|
+
*/
|
|
11923
|
+
agent_id?: string;
|
|
11924
|
+
template?: string;
|
|
11925
|
+
/** @default medium */
|
|
11926
|
+
preset: string;
|
|
11927
|
+
env_public?: {
|
|
11928
|
+
[key: string]: unknown;
|
|
11929
|
+
};
|
|
11930
|
+
idle_timeout_secs?: number;
|
|
11931
|
+
expose_http?: boolean;
|
|
11932
|
+
slug?: string;
|
|
11933
|
+
inbound_auth?: string;
|
|
11934
|
+
startup_command?: string;
|
|
11935
|
+
};
|
|
11617
11936
|
CreateRuntimeRequest: {
|
|
11618
11937
|
name: string;
|
|
11619
11938
|
/** Format: uuid */
|
|
@@ -12621,7 +12940,7 @@ export interface components {
|
|
|
12621
12940
|
};
|
|
12622
12941
|
ApprovePendingApprovalRequest: {
|
|
12623
12942
|
/** @enum {string} */
|
|
12624
|
-
decision: "approve" | "reject";
|
|
12943
|
+
decision: "approve" | "reject" | "approved" | "rejected";
|
|
12625
12944
|
payload_hash: string;
|
|
12626
12945
|
reason?: string;
|
|
12627
12946
|
/**
|
|
@@ -19201,6 +19520,37 @@ export interface operations {
|
|
|
19201
19520
|
};
|
|
19202
19521
|
};
|
|
19203
19522
|
};
|
|
19523
|
+
transferPlatformAppOwnership: {
|
|
19524
|
+
parameters: {
|
|
19525
|
+
query?: never;
|
|
19526
|
+
header: {
|
|
19527
|
+
"X-Auth-Confirm": string;
|
|
19528
|
+
};
|
|
19529
|
+
path: {
|
|
19530
|
+
appId: string;
|
|
19531
|
+
};
|
|
19532
|
+
cookie?: never;
|
|
19533
|
+
};
|
|
19534
|
+
requestBody: {
|
|
19535
|
+
content: {
|
|
19536
|
+
"application/json": components["schemas"]["TransferPlatformAppOwnershipRequest"];
|
|
19537
|
+
};
|
|
19538
|
+
};
|
|
19539
|
+
responses: {
|
|
19540
|
+
/** @description Ownership transferred */
|
|
19541
|
+
200: {
|
|
19542
|
+
headers: {
|
|
19543
|
+
[name: string]: unknown;
|
|
19544
|
+
};
|
|
19545
|
+
content: {
|
|
19546
|
+
"application/json": components["schemas"]["TransferPlatformAppOwnershipResponse"];
|
|
19547
|
+
};
|
|
19548
|
+
};
|
|
19549
|
+
400: components["responses"]["BadRequest"];
|
|
19550
|
+
403: components["responses"]["Forbidden"];
|
|
19551
|
+
404: components["responses"]["NotFound"];
|
|
19552
|
+
};
|
|
19553
|
+
};
|
|
19204
19554
|
getPlatformAppStats: {
|
|
19205
19555
|
parameters: {
|
|
19206
19556
|
query?: never;
|
|
@@ -19259,7 +19609,7 @@ export interface operations {
|
|
|
19259
19609
|
404: components["responses"]["NotFound"];
|
|
19260
19610
|
};
|
|
19261
19611
|
};
|
|
19262
|
-
|
|
19612
|
+
getPlatformTemplate: {
|
|
19263
19613
|
parameters: {
|
|
19264
19614
|
query?: never;
|
|
19265
19615
|
header?: never;
|
|
@@ -19271,7 +19621,31 @@ export interface operations {
|
|
|
19271
19621
|
};
|
|
19272
19622
|
requestBody?: never;
|
|
19273
19623
|
responses: {
|
|
19274
|
-
/** @description Template
|
|
19624
|
+
/** @description Template details */
|
|
19625
|
+
200: {
|
|
19626
|
+
headers: {
|
|
19627
|
+
[name: string]: unknown;
|
|
19628
|
+
};
|
|
19629
|
+
content: {
|
|
19630
|
+
"application/json": components["schemas"]["PlatformTemplateResponse"];
|
|
19631
|
+
};
|
|
19632
|
+
};
|
|
19633
|
+
404: components["responses"]["NotFound"];
|
|
19634
|
+
};
|
|
19635
|
+
};
|
|
19636
|
+
deletePlatformTemplate: {
|
|
19637
|
+
parameters: {
|
|
19638
|
+
query?: never;
|
|
19639
|
+
header?: never;
|
|
19640
|
+
path: {
|
|
19641
|
+
appId: string;
|
|
19642
|
+
template_id: string;
|
|
19643
|
+
};
|
|
19644
|
+
cookie?: never;
|
|
19645
|
+
};
|
|
19646
|
+
requestBody?: never;
|
|
19647
|
+
responses: {
|
|
19648
|
+
/** @description Template deleted */
|
|
19275
19649
|
204: {
|
|
19276
19650
|
headers: {
|
|
19277
19651
|
[name: string]: unknown;
|
|
@@ -19440,6 +19814,30 @@ export interface operations {
|
|
|
19440
19814
|
403: components["responses"]["Forbidden"];
|
|
19441
19815
|
};
|
|
19442
19816
|
};
|
|
19817
|
+
getSpendPolicy: {
|
|
19818
|
+
parameters: {
|
|
19819
|
+
query?: never;
|
|
19820
|
+
header?: never;
|
|
19821
|
+
path: {
|
|
19822
|
+
appId: string;
|
|
19823
|
+
policyId: string;
|
|
19824
|
+
};
|
|
19825
|
+
cookie?: never;
|
|
19826
|
+
};
|
|
19827
|
+
requestBody?: never;
|
|
19828
|
+
responses: {
|
|
19829
|
+
/** @description Spend policy */
|
|
19830
|
+
200: {
|
|
19831
|
+
headers: {
|
|
19832
|
+
[name: string]: unknown;
|
|
19833
|
+
};
|
|
19834
|
+
content: {
|
|
19835
|
+
"application/json": components["schemas"]["SpendPolicyResponse"];
|
|
19836
|
+
};
|
|
19837
|
+
};
|
|
19838
|
+
404: components["responses"]["NotFound"];
|
|
19839
|
+
};
|
|
19840
|
+
};
|
|
19443
19841
|
deleteSpendPolicy: {
|
|
19444
19842
|
parameters: {
|
|
19445
19843
|
query?: never;
|
|
@@ -19462,7 +19860,7 @@ export interface operations {
|
|
|
19462
19860
|
404: components["responses"]["NotFound"];
|
|
19463
19861
|
};
|
|
19464
19862
|
};
|
|
19465
|
-
|
|
19863
|
+
getConnectionSpendPolicy: {
|
|
19466
19864
|
parameters: {
|
|
19467
19865
|
query?: never;
|
|
19468
19866
|
header?: never;
|
|
@@ -19471,13 +19869,41 @@ export interface operations {
|
|
|
19471
19869
|
};
|
|
19472
19870
|
cookie?: never;
|
|
19473
19871
|
};
|
|
19872
|
+
requestBody?: never;
|
|
19873
|
+
responses: {
|
|
19874
|
+
/** @description Effective spend policy (or null) */
|
|
19875
|
+
200: {
|
|
19876
|
+
headers: {
|
|
19877
|
+
[name: string]: unknown;
|
|
19878
|
+
};
|
|
19879
|
+
content: {
|
|
19880
|
+
"application/json": {
|
|
19881
|
+
policy?: components["schemas"]["SpendPolicyResponse"] | null;
|
|
19882
|
+
};
|
|
19883
|
+
};
|
|
19884
|
+
};
|
|
19885
|
+
404: components["responses"]["NotFound"];
|
|
19886
|
+
};
|
|
19887
|
+
};
|
|
19888
|
+
setUserSpendPolicy: {
|
|
19889
|
+
parameters: {
|
|
19890
|
+
query?: never;
|
|
19891
|
+
header?: {
|
|
19892
|
+
/** @description Optional replay protection; same key + body returns cached response (409 on body mismatch). */
|
|
19893
|
+
"Idempotency-Key"?: string;
|
|
19894
|
+
};
|
|
19895
|
+
path: {
|
|
19896
|
+
connectionId: string;
|
|
19897
|
+
};
|
|
19898
|
+
cookie?: never;
|
|
19899
|
+
};
|
|
19474
19900
|
requestBody: {
|
|
19475
19901
|
content: {
|
|
19476
19902
|
"application/json": components["schemas"]["CreateSpendPolicyRequest"];
|
|
19477
19903
|
};
|
|
19478
19904
|
};
|
|
19479
19905
|
responses: {
|
|
19480
|
-
/** @description Spend policy set */
|
|
19906
|
+
/** @description Spend policy set (or idempotent replay) */
|
|
19481
19907
|
200: {
|
|
19482
19908
|
headers: {
|
|
19483
19909
|
[name: string]: unknown;
|
|
@@ -19486,8 +19912,291 @@ export interface operations {
|
|
|
19486
19912
|
"application/json": components["schemas"]["SpendPolicyResponse"];
|
|
19487
19913
|
};
|
|
19488
19914
|
};
|
|
19915
|
+
/** @description Spend policy created */
|
|
19916
|
+
201: {
|
|
19917
|
+
headers: {
|
|
19918
|
+
[name: string]: unknown;
|
|
19919
|
+
};
|
|
19920
|
+
content: {
|
|
19921
|
+
"application/json": components["schemas"]["SpendPolicyResponse"];
|
|
19922
|
+
};
|
|
19923
|
+
};
|
|
19924
|
+
400: components["responses"]["BadRequest"];
|
|
19925
|
+
403: components["responses"]["Forbidden"];
|
|
19926
|
+
404: components["responses"]["NotFound"];
|
|
19927
|
+
/** @description Idempotency-Key reused with different body */
|
|
19928
|
+
409: {
|
|
19929
|
+
headers: {
|
|
19930
|
+
[name: string]: unknown;
|
|
19931
|
+
};
|
|
19932
|
+
content?: never;
|
|
19933
|
+
};
|
|
19934
|
+
};
|
|
19935
|
+
};
|
|
19936
|
+
listConnectionApprovals: {
|
|
19937
|
+
parameters: {
|
|
19938
|
+
query?: {
|
|
19939
|
+
status?: string;
|
|
19940
|
+
risk_tier?: number;
|
|
19941
|
+
limit?: number;
|
|
19942
|
+
offset?: number;
|
|
19943
|
+
};
|
|
19944
|
+
header?: never;
|
|
19945
|
+
path: {
|
|
19946
|
+
connectionId: string;
|
|
19947
|
+
};
|
|
19948
|
+
cookie?: never;
|
|
19949
|
+
};
|
|
19950
|
+
requestBody?: never;
|
|
19951
|
+
responses: {
|
|
19952
|
+
/** @description Connection-scoped approvals */
|
|
19953
|
+
200: {
|
|
19954
|
+
headers: {
|
|
19955
|
+
[name: string]: unknown;
|
|
19956
|
+
};
|
|
19957
|
+
content: {
|
|
19958
|
+
"application/json": components["schemas"]["ApprovalListResponse"];
|
|
19959
|
+
};
|
|
19960
|
+
};
|
|
19961
|
+
404: components["responses"]["NotFound"];
|
|
19962
|
+
};
|
|
19963
|
+
};
|
|
19964
|
+
getConnectionApproval: {
|
|
19965
|
+
parameters: {
|
|
19966
|
+
query?: never;
|
|
19967
|
+
header?: never;
|
|
19968
|
+
path: {
|
|
19969
|
+
connectionId: string;
|
|
19970
|
+
approvalId: string;
|
|
19971
|
+
};
|
|
19972
|
+
cookie?: never;
|
|
19973
|
+
};
|
|
19974
|
+
requestBody?: never;
|
|
19975
|
+
responses: {
|
|
19976
|
+
/** @description Approval detail */
|
|
19977
|
+
200: {
|
|
19978
|
+
headers: {
|
|
19979
|
+
[name: string]: unknown;
|
|
19980
|
+
};
|
|
19981
|
+
content: {
|
|
19982
|
+
"application/json": components["schemas"]["ApprovalResponse"];
|
|
19983
|
+
};
|
|
19984
|
+
};
|
|
19985
|
+
404: components["responses"]["NotFound"];
|
|
19986
|
+
};
|
|
19987
|
+
};
|
|
19988
|
+
listConnectionPendingApprovals: {
|
|
19989
|
+
parameters: {
|
|
19990
|
+
query?: {
|
|
19991
|
+
status?: string;
|
|
19992
|
+
limit?: number;
|
|
19993
|
+
offset?: number;
|
|
19994
|
+
};
|
|
19995
|
+
header?: never;
|
|
19996
|
+
path: {
|
|
19997
|
+
connectionId: string;
|
|
19998
|
+
};
|
|
19999
|
+
cookie?: never;
|
|
20000
|
+
};
|
|
20001
|
+
requestBody?: never;
|
|
20002
|
+
responses: {
|
|
20003
|
+
/** @description Pending approvals list */
|
|
20004
|
+
200: {
|
|
20005
|
+
headers: {
|
|
20006
|
+
[name: string]: unknown;
|
|
20007
|
+
};
|
|
20008
|
+
content: {
|
|
20009
|
+
"application/json": components["schemas"]["PendingApprovalListResponse"];
|
|
20010
|
+
};
|
|
20011
|
+
};
|
|
20012
|
+
404: components["responses"]["NotFound"];
|
|
20013
|
+
};
|
|
20014
|
+
};
|
|
20015
|
+
getConnectionPendingApproval: {
|
|
20016
|
+
parameters: {
|
|
20017
|
+
query?: never;
|
|
20018
|
+
header?: never;
|
|
20019
|
+
path: {
|
|
20020
|
+
connectionId: string;
|
|
20021
|
+
approvalId: string;
|
|
20022
|
+
};
|
|
20023
|
+
cookie?: never;
|
|
20024
|
+
};
|
|
20025
|
+
requestBody?: never;
|
|
20026
|
+
responses: {
|
|
20027
|
+
/** @description Pending approval detail including action_payload and payload_hash */
|
|
20028
|
+
200: {
|
|
20029
|
+
headers: {
|
|
20030
|
+
[name: string]: unknown;
|
|
20031
|
+
};
|
|
20032
|
+
content: {
|
|
20033
|
+
"application/json": components["schemas"]["PendingApprovalResponse"];
|
|
20034
|
+
};
|
|
20035
|
+
};
|
|
20036
|
+
404: components["responses"]["NotFound"];
|
|
20037
|
+
};
|
|
20038
|
+
};
|
|
20039
|
+
decideConnectionPendingApproval: {
|
|
20040
|
+
parameters: {
|
|
20041
|
+
query?: never;
|
|
20042
|
+
header?: never;
|
|
20043
|
+
path: {
|
|
20044
|
+
connectionId: string;
|
|
20045
|
+
approvalId: string;
|
|
20046
|
+
};
|
|
20047
|
+
cookie?: never;
|
|
20048
|
+
};
|
|
20049
|
+
requestBody: {
|
|
20050
|
+
content: {
|
|
20051
|
+
"application/json": components["schemas"]["ApprovePendingApprovalRequest"];
|
|
20052
|
+
};
|
|
20053
|
+
};
|
|
20054
|
+
responses: {
|
|
20055
|
+
/** @description Updated pending approval */
|
|
20056
|
+
200: {
|
|
20057
|
+
headers: {
|
|
20058
|
+
[name: string]: unknown;
|
|
20059
|
+
};
|
|
20060
|
+
content: {
|
|
20061
|
+
"application/json": components["schemas"]["PendingApprovalResponse"];
|
|
20062
|
+
};
|
|
20063
|
+
};
|
|
19489
20064
|
400: components["responses"]["BadRequest"];
|
|
19490
20065
|
403: components["responses"]["Forbidden"];
|
|
20066
|
+
404: components["responses"]["NotFound"];
|
|
20067
|
+
/** @description Already voted */
|
|
20068
|
+
409: {
|
|
20069
|
+
headers: {
|
|
20070
|
+
[name: string]: unknown;
|
|
20071
|
+
};
|
|
20072
|
+
content?: never;
|
|
20073
|
+
};
|
|
20074
|
+
};
|
|
20075
|
+
};
|
|
20076
|
+
decideConnectionApproval: {
|
|
20077
|
+
parameters: {
|
|
20078
|
+
query?: never;
|
|
20079
|
+
header?: never;
|
|
20080
|
+
path: {
|
|
20081
|
+
connectionId: string;
|
|
20082
|
+
approvalId: string;
|
|
20083
|
+
};
|
|
20084
|
+
cookie?: never;
|
|
20085
|
+
};
|
|
20086
|
+
requestBody: {
|
|
20087
|
+
content: {
|
|
20088
|
+
"application/json": {
|
|
20089
|
+
/** @enum {string} */
|
|
20090
|
+
decision: "approved" | "rejected" | "approve" | "reject";
|
|
20091
|
+
reason?: string;
|
|
20092
|
+
};
|
|
20093
|
+
};
|
|
20094
|
+
};
|
|
20095
|
+
responses: {
|
|
20096
|
+
/** @description Decided approval */
|
|
20097
|
+
200: {
|
|
20098
|
+
headers: {
|
|
20099
|
+
[name: string]: unknown;
|
|
20100
|
+
};
|
|
20101
|
+
content: {
|
|
20102
|
+
"application/json": components["schemas"]["ApprovalResponse"];
|
|
20103
|
+
};
|
|
20104
|
+
};
|
|
20105
|
+
403: components["responses"]["Forbidden"];
|
|
20106
|
+
404: components["responses"]["NotFound"];
|
|
20107
|
+
/** @description Already decided */
|
|
20108
|
+
409: {
|
|
20109
|
+
headers: {
|
|
20110
|
+
[name: string]: unknown;
|
|
20111
|
+
};
|
|
20112
|
+
content?: never;
|
|
20113
|
+
};
|
|
20114
|
+
};
|
|
20115
|
+
};
|
|
20116
|
+
deactivateConnectionSigningKey: {
|
|
20117
|
+
parameters: {
|
|
20118
|
+
query?: {
|
|
20119
|
+
agent_id?: string;
|
|
20120
|
+
};
|
|
20121
|
+
header?: never;
|
|
20122
|
+
path: {
|
|
20123
|
+
connectionId: string;
|
|
20124
|
+
chain: string;
|
|
20125
|
+
};
|
|
20126
|
+
cookie?: never;
|
|
20127
|
+
};
|
|
20128
|
+
requestBody?: never;
|
|
20129
|
+
responses: {
|
|
20130
|
+
/** @description Key deactivated */
|
|
20131
|
+
204: {
|
|
20132
|
+
headers: {
|
|
20133
|
+
[name: string]: unknown;
|
|
20134
|
+
};
|
|
20135
|
+
content?: never;
|
|
20136
|
+
};
|
|
20137
|
+
/** @description Multiple agents — agent_id required */
|
|
20138
|
+
400: {
|
|
20139
|
+
headers: {
|
|
20140
|
+
[name: string]: unknown;
|
|
20141
|
+
};
|
|
20142
|
+
content?: never;
|
|
20143
|
+
};
|
|
20144
|
+
404: components["responses"]["NotFound"];
|
|
20145
|
+
};
|
|
20146
|
+
};
|
|
20147
|
+
createConnectionRuntime: {
|
|
20148
|
+
parameters: {
|
|
20149
|
+
query?: never;
|
|
20150
|
+
header?: never;
|
|
20151
|
+
path: {
|
|
20152
|
+
connectionId: string;
|
|
20153
|
+
};
|
|
20154
|
+
cookie?: never;
|
|
20155
|
+
};
|
|
20156
|
+
requestBody: {
|
|
20157
|
+
content: {
|
|
20158
|
+
"application/json": components["schemas"]["CreateConnectionRuntimeRequest"];
|
|
20159
|
+
};
|
|
20160
|
+
};
|
|
20161
|
+
responses: {
|
|
20162
|
+
/** @description Runtime created */
|
|
20163
|
+
201: {
|
|
20164
|
+
headers: {
|
|
20165
|
+
[name: string]: unknown;
|
|
20166
|
+
};
|
|
20167
|
+
content: {
|
|
20168
|
+
"application/json": components["schemas"]["RuntimeResponse"];
|
|
20169
|
+
};
|
|
20170
|
+
};
|
|
20171
|
+
403: components["responses"]["Forbidden"];
|
|
20172
|
+
404: components["responses"]["NotFound"];
|
|
20173
|
+
};
|
|
20174
|
+
};
|
|
20175
|
+
connectionAgentChat: {
|
|
20176
|
+
parameters: {
|
|
20177
|
+
query?: never;
|
|
20178
|
+
header?: never;
|
|
20179
|
+
path: {
|
|
20180
|
+
connectionId: string;
|
|
20181
|
+
agentId: string;
|
|
20182
|
+
};
|
|
20183
|
+
cookie?: never;
|
|
20184
|
+
};
|
|
20185
|
+
requestBody: {
|
|
20186
|
+
content: {
|
|
20187
|
+
"application/json": components["schemas"]["SendChatMessageRequest"];
|
|
20188
|
+
};
|
|
20189
|
+
};
|
|
20190
|
+
responses: {
|
|
20191
|
+
/** @description Message sent (JSON or SSE stream) */
|
|
20192
|
+
200: {
|
|
20193
|
+
headers: {
|
|
20194
|
+
[name: string]: unknown;
|
|
20195
|
+
};
|
|
20196
|
+
content?: never;
|
|
20197
|
+
};
|
|
20198
|
+
403: components["responses"]["Forbidden"];
|
|
20199
|
+
404: components["responses"]["NotFound"];
|
|
19491
20200
|
};
|
|
19492
20201
|
};
|
|
19493
20202
|
listApprovals: {
|
|
@@ -21132,6 +21841,36 @@ export interface operations {
|
|
|
21132
21841
|
};
|
|
21133
21842
|
};
|
|
21134
21843
|
};
|
|
21844
|
+
createAgentAutomation: {
|
|
21845
|
+
parameters: {
|
|
21846
|
+
query?: never;
|
|
21847
|
+
header?: never;
|
|
21848
|
+
path: {
|
|
21849
|
+
agent_id: string;
|
|
21850
|
+
};
|
|
21851
|
+
cookie?: never;
|
|
21852
|
+
};
|
|
21853
|
+
requestBody: {
|
|
21854
|
+
content: {
|
|
21855
|
+
"application/json": components["schemas"]["AgentCreateAutomationRequest"];
|
|
21856
|
+
};
|
|
21857
|
+
};
|
|
21858
|
+
responses: {
|
|
21859
|
+
/** @description Automation created (includes one-time webhook credentials when trigger_type is webhook) */
|
|
21860
|
+
201: {
|
|
21861
|
+
headers: {
|
|
21862
|
+
[name: string]: unknown;
|
|
21863
|
+
};
|
|
21864
|
+
content: {
|
|
21865
|
+
"application/json": components["schemas"]["AutomationCreatedResponse"];
|
|
21866
|
+
};
|
|
21867
|
+
};
|
|
21868
|
+
400: components["responses"]["BadRequest"];
|
|
21869
|
+
401: components["responses"]["Unauthorized"];
|
|
21870
|
+
403: components["responses"]["Forbidden"];
|
|
21871
|
+
404: components["responses"]["NotFound"];
|
|
21872
|
+
};
|
|
21873
|
+
};
|
|
21135
21874
|
listRuntimes: {
|
|
21136
21875
|
parameters: {
|
|
21137
21876
|
query?: never;
|