@1claw/sdk 0.47.3 → 0.48.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/README.md +39 -0
- package/dist/core/client.d.ts +6 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +4 -0
- package/dist/core/client.js.map +1 -1
- package/dist/generated/api-types.d.ts +814 -59
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/access.d.ts +3 -1
- package/dist/resources/access.d.ts.map +1 -1
- package/dist/resources/access.js +2 -0
- package/dist/resources/access.js.map +1 -1
- package/dist/resources/contract-abis.d.ts +11 -0
- package/dist/resources/contract-abis.d.ts.map +1 -0
- package/dist/resources/contract-abis.js +19 -0
- package/dist/resources/contract-abis.js.map +1 -0
- package/dist/resources/org.d.ts +7 -1
- package/dist/resources/org.d.ts.map +1 -1
- package/dist/resources/org.js +12 -0
- package/dist/resources/org.js.map +1 -1
- package/dist/resources/pending-approvals.d.ts +16 -0
- package/dist/resources/pending-approvals.d.ts.map +1 -0
- package/dist/resources/pending-approvals.js +30 -0
- package/dist/resources/pending-approvals.js.map +1 -0
- package/dist/types.d.ts +91 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6028,6 +6028,187 @@ export interface paths {
|
|
|
6028
6028
|
patch?: never;
|
|
6029
6029
|
trace?: never;
|
|
6030
6030
|
};
|
|
6031
|
+
"/v1/org/settings/policy-backend": {
|
|
6032
|
+
parameters: {
|
|
6033
|
+
query?: never;
|
|
6034
|
+
header?: never;
|
|
6035
|
+
path?: never;
|
|
6036
|
+
cookie?: never;
|
|
6037
|
+
};
|
|
6038
|
+
/**
|
|
6039
|
+
* Get policy backend settings
|
|
6040
|
+
* @description Returns the org's Cedar/OPA enforcement configuration. Default mode is shadow.
|
|
6041
|
+
* Owner/admin only.
|
|
6042
|
+
*/
|
|
6043
|
+
get: operations["getPolicyBackendSettings"];
|
|
6044
|
+
put?: never;
|
|
6045
|
+
post?: never;
|
|
6046
|
+
delete?: never;
|
|
6047
|
+
options?: never;
|
|
6048
|
+
head?: never;
|
|
6049
|
+
/**
|
|
6050
|
+
* Update policy backend settings
|
|
6051
|
+
* @description Configure backend (builtin, cedar, opa, builtin+cedar, builtin+opa), mode (shadow/enforce),
|
|
6052
|
+
* scope actions, and circuit breaker behavior. Owner/admin only.
|
|
6053
|
+
*/
|
|
6054
|
+
patch: operations["updatePolicyBackendSettings"];
|
|
6055
|
+
trace?: never;
|
|
6056
|
+
};
|
|
6057
|
+
"/v1/org/policy-shadow-report": {
|
|
6058
|
+
parameters: {
|
|
6059
|
+
query?: never;
|
|
6060
|
+
header?: never;
|
|
6061
|
+
path?: never;
|
|
6062
|
+
cookie?: never;
|
|
6063
|
+
};
|
|
6064
|
+
/**
|
|
6065
|
+
* Get policy shadow divergence report
|
|
6066
|
+
* @description Returns divergence statistics when running Cedar/OPA in shadow mode.
|
|
6067
|
+
* Owner/admin only.
|
|
6068
|
+
*/
|
|
6069
|
+
get: operations["getPolicyShadowReport"];
|
|
6070
|
+
put?: never;
|
|
6071
|
+
post?: never;
|
|
6072
|
+
delete?: never;
|
|
6073
|
+
options?: never;
|
|
6074
|
+
head?: never;
|
|
6075
|
+
patch?: never;
|
|
6076
|
+
trace?: never;
|
|
6077
|
+
};
|
|
6078
|
+
"/v1/org/contract-abis": {
|
|
6079
|
+
parameters: {
|
|
6080
|
+
query?: never;
|
|
6081
|
+
header?: never;
|
|
6082
|
+
path?: never;
|
|
6083
|
+
cookie?: never;
|
|
6084
|
+
};
|
|
6085
|
+
/**
|
|
6086
|
+
* List contract ABIs
|
|
6087
|
+
* @description List org contract ABIs, optionally filtered by chain. Owner/admin only.
|
|
6088
|
+
*/
|
|
6089
|
+
get: operations["listContractAbis"];
|
|
6090
|
+
put?: never;
|
|
6091
|
+
/**
|
|
6092
|
+
* Register a contract ABI
|
|
6093
|
+
* @description Upload an org-scoped ABI for transaction decoding. Owner/admin only.
|
|
6094
|
+
*/
|
|
6095
|
+
post: operations["createContractAbi"];
|
|
6096
|
+
delete?: never;
|
|
6097
|
+
options?: never;
|
|
6098
|
+
head?: never;
|
|
6099
|
+
patch?: never;
|
|
6100
|
+
trace?: never;
|
|
6101
|
+
};
|
|
6102
|
+
"/v1/org/contract-abis/{id}": {
|
|
6103
|
+
parameters: {
|
|
6104
|
+
query?: never;
|
|
6105
|
+
header?: never;
|
|
6106
|
+
path?: never;
|
|
6107
|
+
cookie?: never;
|
|
6108
|
+
};
|
|
6109
|
+
/** Get a contract ABI */
|
|
6110
|
+
get: operations["getContractAbi"];
|
|
6111
|
+
put?: never;
|
|
6112
|
+
post?: never;
|
|
6113
|
+
/** Delete a contract ABI */
|
|
6114
|
+
delete: operations["deleteContractAbi"];
|
|
6115
|
+
options?: never;
|
|
6116
|
+
head?: never;
|
|
6117
|
+
patch?: never;
|
|
6118
|
+
trace?: never;
|
|
6119
|
+
};
|
|
6120
|
+
"/v1/pending-approvals": {
|
|
6121
|
+
parameters: {
|
|
6122
|
+
query?: never;
|
|
6123
|
+
header?: never;
|
|
6124
|
+
path?: never;
|
|
6125
|
+
cookie?: never;
|
|
6126
|
+
};
|
|
6127
|
+
/** List pending approvals */
|
|
6128
|
+
get: operations["listPendingApprovals"];
|
|
6129
|
+
put?: never;
|
|
6130
|
+
/**
|
|
6131
|
+
* Submit action for approval
|
|
6132
|
+
* @description Submit a signing or transaction action that matches a consensus policy trigger.
|
|
6133
|
+
*/
|
|
6134
|
+
post: operations["submitPendingApproval"];
|
|
6135
|
+
delete?: never;
|
|
6136
|
+
options?: never;
|
|
6137
|
+
head?: never;
|
|
6138
|
+
patch?: never;
|
|
6139
|
+
trace?: never;
|
|
6140
|
+
};
|
|
6141
|
+
"/v1/pending-approvals/{id}": {
|
|
6142
|
+
parameters: {
|
|
6143
|
+
query?: never;
|
|
6144
|
+
header?: never;
|
|
6145
|
+
path?: never;
|
|
6146
|
+
cookie?: never;
|
|
6147
|
+
};
|
|
6148
|
+
/** Get pending approval details */
|
|
6149
|
+
get: operations["getPendingApproval"];
|
|
6150
|
+
put?: never;
|
|
6151
|
+
post?: never;
|
|
6152
|
+
delete?: never;
|
|
6153
|
+
options?: never;
|
|
6154
|
+
head?: never;
|
|
6155
|
+
patch?: never;
|
|
6156
|
+
trace?: never;
|
|
6157
|
+
};
|
|
6158
|
+
"/v1/pending-approvals/{id}/approve": {
|
|
6159
|
+
parameters: {
|
|
6160
|
+
query?: never;
|
|
6161
|
+
header?: never;
|
|
6162
|
+
path?: never;
|
|
6163
|
+
cookie?: never;
|
|
6164
|
+
};
|
|
6165
|
+
get?: never;
|
|
6166
|
+
put?: never;
|
|
6167
|
+
/** Approve or reject a pending approval */
|
|
6168
|
+
post: operations["approvePendingApproval"];
|
|
6169
|
+
delete?: never;
|
|
6170
|
+
options?: never;
|
|
6171
|
+
head?: never;
|
|
6172
|
+
patch?: never;
|
|
6173
|
+
trace?: never;
|
|
6174
|
+
};
|
|
6175
|
+
"/v1/pending-approvals/{id}/execute": {
|
|
6176
|
+
parameters: {
|
|
6177
|
+
query?: never;
|
|
6178
|
+
header?: never;
|
|
6179
|
+
path?: never;
|
|
6180
|
+
cookie?: never;
|
|
6181
|
+
};
|
|
6182
|
+
get?: never;
|
|
6183
|
+
put?: never;
|
|
6184
|
+
/**
|
|
6185
|
+
* Execute an approved action
|
|
6186
|
+
* @description Human-only. Marks the approval as executed after verifying signatures.
|
|
6187
|
+
*/
|
|
6188
|
+
post: operations["executePendingApproval"];
|
|
6189
|
+
delete?: never;
|
|
6190
|
+
options?: never;
|
|
6191
|
+
head?: never;
|
|
6192
|
+
patch?: never;
|
|
6193
|
+
trace?: never;
|
|
6194
|
+
};
|
|
6195
|
+
"/v1/pending-approvals/{id}/cancel": {
|
|
6196
|
+
parameters: {
|
|
6197
|
+
query?: never;
|
|
6198
|
+
header?: never;
|
|
6199
|
+
path?: never;
|
|
6200
|
+
cookie?: never;
|
|
6201
|
+
};
|
|
6202
|
+
get?: never;
|
|
6203
|
+
put?: never;
|
|
6204
|
+
/** Cancel a pending approval */
|
|
6205
|
+
post: operations["cancelPendingApproval"];
|
|
6206
|
+
delete?: never;
|
|
6207
|
+
options?: never;
|
|
6208
|
+
head?: never;
|
|
6209
|
+
patch?: never;
|
|
6210
|
+
trace?: never;
|
|
6211
|
+
};
|
|
6031
6212
|
"/v1/org/sub-orgs": {
|
|
6032
6213
|
parameters: {
|
|
6033
6214
|
query?: never;
|
|
@@ -6695,6 +6876,7 @@ export interface components {
|
|
|
6695
6876
|
attribute_conditions?: {
|
|
6696
6877
|
[key: string]: unknown;
|
|
6697
6878
|
};
|
|
6879
|
+
consensus_trigger?: components["schemas"]["ConsensusTrigger"];
|
|
6698
6880
|
};
|
|
6699
6881
|
UpdatePolicyRequest: {
|
|
6700
6882
|
permissions?: string[];
|
|
@@ -6713,6 +6895,7 @@ export interface components {
|
|
|
6713
6895
|
attribute_conditions?: {
|
|
6714
6896
|
[key: string]: unknown;
|
|
6715
6897
|
};
|
|
6898
|
+
consensus_trigger?: components["schemas"]["ConsensusTrigger"];
|
|
6716
6899
|
};
|
|
6717
6900
|
PolicyResponse: {
|
|
6718
6901
|
/** Format: uuid */
|
|
@@ -6742,6 +6925,7 @@ export interface components {
|
|
|
6742
6925
|
attribute_conditions?: {
|
|
6743
6926
|
[key: string]: unknown;
|
|
6744
6927
|
};
|
|
6928
|
+
consensus_trigger?: components["schemas"]["ConsensusTrigger"];
|
|
6745
6929
|
};
|
|
6746
6930
|
PolicyListResponse: {
|
|
6747
6931
|
policies?: components["schemas"]["PolicyResponse"][];
|
|
@@ -10061,117 +10245,355 @@ export interface components {
|
|
|
10061
10245
|
format?: "hex" | "base64" | "wif";
|
|
10062
10246
|
};
|
|
10063
10247
|
CreateCedarPolicyRequest: {
|
|
10248
|
+
name: string;
|
|
10064
10249
|
/** @description Cedar policy text */
|
|
10065
|
-
|
|
10066
|
-
description?: string;
|
|
10250
|
+
cedar_text: string;
|
|
10067
10251
|
};
|
|
10068
10252
|
CedarPolicyResponse: {
|
|
10069
10253
|
/** Format: uuid */
|
|
10070
10254
|
id?: string;
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10255
|
+
/** Format: uuid */
|
|
10256
|
+
org_id?: string;
|
|
10257
|
+
name?: string;
|
|
10258
|
+
cedar_text?: string;
|
|
10259
|
+
is_active?: boolean;
|
|
10260
|
+
/**
|
|
10261
|
+
* @description Dynamic status from org policy backend config
|
|
10262
|
+
* @enum {string}
|
|
10263
|
+
*/
|
|
10264
|
+
enforcement_status?: "shadow" | "enforce" | "inactive";
|
|
10075
10265
|
/** Format: uuid */
|
|
10076
10266
|
created_by?: string;
|
|
10267
|
+
/** Format: date-time */
|
|
10268
|
+
created_at?: string;
|
|
10269
|
+
/** Format: date-time */
|
|
10270
|
+
updated_at?: string;
|
|
10077
10271
|
};
|
|
10078
10272
|
CedarPolicyListResponse: {
|
|
10079
10273
|
policies?: components["schemas"]["CedarPolicyResponse"][];
|
|
10080
10274
|
};
|
|
10081
10275
|
CedarPolicyTestRequest: {
|
|
10082
|
-
|
|
10276
|
+
/** @description Optional inline Cedar text to test */
|
|
10277
|
+
cedar_text?: string;
|
|
10278
|
+
principal_type: string;
|
|
10279
|
+
/** Format: uuid */
|
|
10280
|
+
principal_id: string;
|
|
10083
10281
|
action: string;
|
|
10084
|
-
|
|
10282
|
+
resource_path: string;
|
|
10283
|
+
/** Format: uuid */
|
|
10284
|
+
vault_id: string;
|
|
10085
10285
|
context?: Record<string, never>;
|
|
10086
10286
|
};
|
|
10087
10287
|
CedarPolicyTestResponse: {
|
|
10088
10288
|
/** @enum {string} */
|
|
10089
10289
|
decision?: "allow" | "deny";
|
|
10090
|
-
|
|
10290
|
+
backend?: string;
|
|
10291
|
+
/** @enum {string} */
|
|
10292
|
+
enforcement_status?: "shadow" | "enforce" | "inactive";
|
|
10293
|
+
note?: string;
|
|
10091
10294
|
};
|
|
10092
10295
|
CreateOpaPolicyRequest: {
|
|
10296
|
+
name: string;
|
|
10093
10297
|
/** @description OPA Rego module source */
|
|
10094
|
-
|
|
10095
|
-
description
|
|
10096
|
-
|
|
10097
|
-
|
|
10298
|
+
rego_source?: string;
|
|
10299
|
+
/** @description Optional WASM bundle (base64) */
|
|
10300
|
+
wasm_bundle_base64?: string;
|
|
10301
|
+
/** @default oneclaw/allow */
|
|
10302
|
+
entrypoint: string;
|
|
10098
10303
|
};
|
|
10099
10304
|
OpaPolicyResponse: {
|
|
10100
10305
|
/** Format: uuid */
|
|
10101
10306
|
id?: string;
|
|
10102
|
-
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10307
|
+
/** Format: uuid */
|
|
10308
|
+
org_id?: string;
|
|
10309
|
+
name?: string;
|
|
10310
|
+
rego_source?: string;
|
|
10311
|
+
has_wasm_bundle?: boolean;
|
|
10312
|
+
entrypoint?: string;
|
|
10313
|
+
is_active?: boolean;
|
|
10314
|
+
/** @enum {string} */
|
|
10315
|
+
enforcement_status?: "shadow" | "enforce" | "inactive";
|
|
10107
10316
|
/** Format: uuid */
|
|
10108
10317
|
created_by?: string;
|
|
10318
|
+
/** Format: date-time */
|
|
10319
|
+
created_at?: string;
|
|
10320
|
+
/** Format: date-time */
|
|
10321
|
+
updated_at?: string;
|
|
10109
10322
|
};
|
|
10110
10323
|
OpaPolicyListResponse: {
|
|
10111
10324
|
policies?: components["schemas"]["OpaPolicyResponse"][];
|
|
10112
10325
|
};
|
|
10113
10326
|
OpaPolicyTestRequest: {
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10327
|
+
principal_type: string;
|
|
10328
|
+
/** Format: uuid */
|
|
10329
|
+
principal_id: string;
|
|
10330
|
+
action: string;
|
|
10331
|
+
resource_path: string;
|
|
10332
|
+
/** Format: uuid */
|
|
10333
|
+
vault_id: string;
|
|
10334
|
+
context?: Record<string, never>;
|
|
10118
10335
|
};
|
|
10119
10336
|
OpaPolicyTestResponse: {
|
|
10120
|
-
result?: Record<string, never>;
|
|
10121
10337
|
/** @enum {string} */
|
|
10122
10338
|
decision?: "allow" | "deny";
|
|
10339
|
+
backend?: string;
|
|
10340
|
+
/** @enum {string} */
|
|
10341
|
+
enforcement_status?: "shadow" | "enforce" | "inactive";
|
|
10342
|
+
note?: string;
|
|
10123
10343
|
};
|
|
10124
|
-
|
|
10125
|
-
|
|
10344
|
+
PolicyBackendSettingsResponse: {
|
|
10345
|
+
/** @enum {string} */
|
|
10346
|
+
backend?: "builtin" | "cedar" | "opa" | "builtin+cedar" | "builtin+opa";
|
|
10347
|
+
/** @enum {string} */
|
|
10348
|
+
mode?: "shadow" | "enforce";
|
|
10349
|
+
scope?: string[];
|
|
10350
|
+
/** @enum {string} */
|
|
10351
|
+
breaker_behavior?: "fail_closed" | "fail_open_builtin";
|
|
10352
|
+
/** Format: int64 */
|
|
10353
|
+
policy_version?: number;
|
|
10354
|
+
};
|
|
10355
|
+
UpdatePolicyBackendSettingsRequest: {
|
|
10356
|
+
/** @enum {string} */
|
|
10357
|
+
backend?: "builtin" | "cedar" | "opa" | "builtin+cedar" | "builtin+opa";
|
|
10358
|
+
/** @enum {string} */
|
|
10359
|
+
mode?: "shadow" | "enforce";
|
|
10360
|
+
scope?: string[];
|
|
10361
|
+
/** @enum {string} */
|
|
10362
|
+
breaker_behavior?: "fail_closed" | "fail_open_builtin";
|
|
10363
|
+
};
|
|
10364
|
+
PolicyShadowReportResponse: {
|
|
10365
|
+
/** Format: int64 */
|
|
10366
|
+
total_evaluated?: number;
|
|
10367
|
+
/** Format: int64 */
|
|
10368
|
+
total_divergences?: number;
|
|
10369
|
+
/** Format: int64 */
|
|
10370
|
+
total_errors?: number;
|
|
10371
|
+
/** Format: double */
|
|
10372
|
+
concordance_rate?: number;
|
|
10373
|
+
sample_events?: components["schemas"]["PolicyShadowEvent"][];
|
|
10374
|
+
/** Format: date-time */
|
|
10375
|
+
period_start?: string;
|
|
10376
|
+
/** Format: date-time */
|
|
10377
|
+
period_end?: string;
|
|
10378
|
+
};
|
|
10379
|
+
PolicyShadowEvent: {
|
|
10380
|
+
/** Format: uuid */
|
|
10381
|
+
id?: string;
|
|
10382
|
+
/** Format: uuid */
|
|
10383
|
+
org_id?: string;
|
|
10384
|
+
backend?: string;
|
|
10385
|
+
action?: string;
|
|
10386
|
+
builtin_decision?: string;
|
|
10387
|
+
backend_decision?: string;
|
|
10388
|
+
divergent?: boolean;
|
|
10389
|
+
sampled?: boolean;
|
|
10390
|
+
eval_duration_ms?: number;
|
|
10391
|
+
error_text?: string;
|
|
10392
|
+
/** Format: uuid */
|
|
10393
|
+
caller_id?: string;
|
|
10394
|
+
resource_path?: string;
|
|
10395
|
+
/** Format: date-time */
|
|
10396
|
+
created_at?: string;
|
|
10397
|
+
};
|
|
10398
|
+
CreateContractAbiRequest: {
|
|
10399
|
+
chain: string;
|
|
10400
|
+
contract_address: string;
|
|
10401
|
+
abi_json: Record<string, never>[];
|
|
10402
|
+
name?: string;
|
|
10126
10403
|
description?: string;
|
|
10127
|
-
|
|
10128
|
-
* @default inherit
|
|
10129
|
-
* @enum {string}
|
|
10130
|
-
*/
|
|
10131
|
-
billing_model: "inherit" | "independent";
|
|
10404
|
+
token_decimals?: number;
|
|
10132
10405
|
};
|
|
10133
|
-
|
|
10406
|
+
ContractAbiResponse: {
|
|
10134
10407
|
/** Format: uuid */
|
|
10135
10408
|
id?: string;
|
|
10136
10409
|
/** Format: uuid */
|
|
10137
|
-
|
|
10410
|
+
org_id?: string;
|
|
10411
|
+
chain?: string;
|
|
10412
|
+
contract_address?: string;
|
|
10413
|
+
abi_json?: Record<string, never>[];
|
|
10138
10414
|
name?: string;
|
|
10139
10415
|
description?: string;
|
|
10140
|
-
|
|
10141
|
-
/**
|
|
10142
|
-
|
|
10416
|
+
token_decimals?: number;
|
|
10417
|
+
/** Format: uuid */
|
|
10418
|
+
created_by?: string;
|
|
10143
10419
|
/** Format: date-time */
|
|
10144
10420
|
created_at?: string;
|
|
10421
|
+
/** Format: date-time */
|
|
10422
|
+
updated_at?: string;
|
|
10145
10423
|
};
|
|
10146
|
-
|
|
10147
|
-
|
|
10148
|
-
};
|
|
10149
|
-
SubOrgPermissionRequest: {
|
|
10150
|
-
/** @description Permission to grant (e.g. vaults:read, agents:write) */
|
|
10151
|
-
permission: string;
|
|
10152
|
-
resource_ids?: string[];
|
|
10424
|
+
ContractAbiListResponse: {
|
|
10425
|
+
abis?: components["schemas"]["ContractAbiResponse"][];
|
|
10153
10426
|
};
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10427
|
+
ConsensusTrigger: {
|
|
10428
|
+
conditions: components["schemas"]["ConsensusCondition"][];
|
|
10429
|
+
approval: components["schemas"]["ApprovalRequirement"];
|
|
10157
10430
|
/**
|
|
10158
|
-
*
|
|
10159
|
-
* @
|
|
10431
|
+
* Format: int64
|
|
10432
|
+
* @default 86400
|
|
10160
10433
|
*/
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
chains?: string[];
|
|
10165
|
-
};
|
|
10166
|
-
PortfolioResponse: {
|
|
10167
|
-
wallets?: components["schemas"]["PortfolioWalletEntry"][];
|
|
10168
|
-
total_usd_estimate?: string;
|
|
10434
|
+
expiry_secs: number;
|
|
10435
|
+
/** @default false */
|
|
10436
|
+
self_approval_allowed: boolean;
|
|
10169
10437
|
};
|
|
10170
|
-
|
|
10438
|
+
ConsensusCondition: {
|
|
10171
10439
|
/** @enum {string} */
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10440
|
+
type: "value_above";
|
|
10441
|
+
/** Format: int64 */
|
|
10442
|
+
threshold_gwei: number;
|
|
10443
|
+
} | {
|
|
10444
|
+
/** @enum {string} */
|
|
10445
|
+
type: "chain_in";
|
|
10446
|
+
chains: string[];
|
|
10447
|
+
} | {
|
|
10448
|
+
/** @enum {string} */
|
|
10449
|
+
type: "to_address_in";
|
|
10450
|
+
addresses: string[];
|
|
10451
|
+
} | {
|
|
10452
|
+
/** @enum {string} */
|
|
10453
|
+
type: "function_selector_in";
|
|
10454
|
+
selectors: string[];
|
|
10455
|
+
} | {
|
|
10456
|
+
/** @enum {string} */
|
|
10457
|
+
type: "erc20_amount_above";
|
|
10458
|
+
threshold_raw: string;
|
|
10459
|
+
} | {
|
|
10460
|
+
/** @enum {string} */
|
|
10461
|
+
type: "intent_type_in";
|
|
10462
|
+
intent_types: string[];
|
|
10463
|
+
} | {
|
|
10464
|
+
/** @enum {string} */
|
|
10465
|
+
type: "always";
|
|
10466
|
+
};
|
|
10467
|
+
ApprovalRequirement: {
|
|
10468
|
+
min_approvals: number;
|
|
10469
|
+
required_roles?: string[];
|
|
10470
|
+
per_role_minimums?: {
|
|
10471
|
+
[key: string]: number;
|
|
10472
|
+
};
|
|
10473
|
+
};
|
|
10474
|
+
SubmitPendingApprovalRequest: {
|
|
10475
|
+
/** Format: uuid */
|
|
10476
|
+
policy_id: string;
|
|
10477
|
+
action: string;
|
|
10478
|
+
action_payload: Record<string, never>;
|
|
10479
|
+
};
|
|
10480
|
+
SubmitPendingApprovalResponse: {
|
|
10481
|
+
/** Format: uuid */
|
|
10482
|
+
pending_approval_id?: string;
|
|
10483
|
+
required_approvals?: number;
|
|
10484
|
+
current_approvals?: number;
|
|
10485
|
+
/** Format: date-time */
|
|
10486
|
+
expires_at?: string;
|
|
10487
|
+
status?: string;
|
|
10488
|
+
message?: string;
|
|
10489
|
+
};
|
|
10490
|
+
ApprovePendingApprovalRequest: {
|
|
10491
|
+
/** @enum {string} */
|
|
10492
|
+
decision: "approve" | "reject";
|
|
10493
|
+
payload_hash: string;
|
|
10494
|
+
reason?: string;
|
|
10495
|
+
};
|
|
10496
|
+
PendingApprovalResponse: {
|
|
10497
|
+
/** Format: uuid */
|
|
10498
|
+
id?: string;
|
|
10499
|
+
/** Format: uuid */
|
|
10500
|
+
org_id?: string;
|
|
10501
|
+
/** Format: uuid */
|
|
10502
|
+
policy_id?: string;
|
|
10503
|
+
action?: string;
|
|
10504
|
+
action_payload?: Record<string, never>;
|
|
10505
|
+
payload_hash?: string;
|
|
10506
|
+
/** Format: uuid */
|
|
10507
|
+
submitted_by?: string;
|
|
10508
|
+
submitted_by_type?: string;
|
|
10509
|
+
status?: string;
|
|
10510
|
+
required_approvals?: number;
|
|
10511
|
+
current_approvals?: number;
|
|
10512
|
+
/** Format: date-time */
|
|
10513
|
+
expires_at?: string;
|
|
10514
|
+
/** Format: date-time */
|
|
10515
|
+
executed_at?: string;
|
|
10516
|
+
/** Format: date-time */
|
|
10517
|
+
created_at?: string;
|
|
10518
|
+
/** Format: date-time */
|
|
10519
|
+
updated_at?: string;
|
|
10520
|
+
signatures?: components["schemas"]["ApprovalSignatureResponse"][];
|
|
10521
|
+
};
|
|
10522
|
+
ApprovalSignatureResponse: {
|
|
10523
|
+
/** Format: uuid */
|
|
10524
|
+
id?: string;
|
|
10525
|
+
/** Format: uuid */
|
|
10526
|
+
approver_id?: string;
|
|
10527
|
+
approver_type?: string;
|
|
10528
|
+
decision?: string;
|
|
10529
|
+
reason?: string;
|
|
10530
|
+
/** Format: date-time */
|
|
10531
|
+
created_at?: string;
|
|
10532
|
+
};
|
|
10533
|
+
PendingApprovalListResponse: {
|
|
10534
|
+
pending_approvals?: components["schemas"]["PendingApprovalResponse"][];
|
|
10535
|
+
/** Format: int64 */
|
|
10536
|
+
total?: number;
|
|
10537
|
+
};
|
|
10538
|
+
ExecutePendingApprovalResponse: {
|
|
10539
|
+
/** Format: uuid */
|
|
10540
|
+
pending_approval_id?: string;
|
|
10541
|
+
status?: string;
|
|
10542
|
+
/** Format: date-time */
|
|
10543
|
+
executed_at?: string;
|
|
10544
|
+
result?: Record<string, never>;
|
|
10545
|
+
};
|
|
10546
|
+
CreateSubOrgRequest: {
|
|
10547
|
+
name: string;
|
|
10548
|
+
description?: string;
|
|
10549
|
+
/**
|
|
10550
|
+
* @default inherit
|
|
10551
|
+
* @enum {string}
|
|
10552
|
+
*/
|
|
10553
|
+
billing_model: "inherit" | "independent";
|
|
10554
|
+
};
|
|
10555
|
+
SubOrgResponse: {
|
|
10556
|
+
/** Format: uuid */
|
|
10557
|
+
id?: string;
|
|
10558
|
+
/** Format: uuid */
|
|
10559
|
+
parent_org_id?: string;
|
|
10560
|
+
name?: string;
|
|
10561
|
+
description?: string;
|
|
10562
|
+
billing_model?: string;
|
|
10563
|
+
/** @enum {string} */
|
|
10564
|
+
status?: "active" | "archived";
|
|
10565
|
+
/** Format: date-time */
|
|
10566
|
+
created_at?: string;
|
|
10567
|
+
};
|
|
10568
|
+
SubOrgListResponse: {
|
|
10569
|
+
sub_orgs?: components["schemas"]["SubOrgResponse"][];
|
|
10570
|
+
};
|
|
10571
|
+
SubOrgPermissionRequest: {
|
|
10572
|
+
/** @description Permission to grant (e.g. vaults:read, agents:write) */
|
|
10573
|
+
permission: string;
|
|
10574
|
+
resource_ids?: string[];
|
|
10575
|
+
};
|
|
10576
|
+
SubOrgAddUserRequest: {
|
|
10577
|
+
/** Format: uuid */
|
|
10578
|
+
user_id: string;
|
|
10579
|
+
/**
|
|
10580
|
+
* @default member
|
|
10581
|
+
* @enum {string}
|
|
10582
|
+
*/
|
|
10583
|
+
role: "admin" | "member" | "viewer";
|
|
10584
|
+
};
|
|
10585
|
+
SubOrgGenerateWalletsRequest: {
|
|
10586
|
+
chains?: string[];
|
|
10587
|
+
};
|
|
10588
|
+
PortfolioResponse: {
|
|
10589
|
+
wallets?: components["schemas"]["PortfolioWalletEntry"][];
|
|
10590
|
+
total_usd_estimate?: string;
|
|
10591
|
+
};
|
|
10592
|
+
PortfolioWalletEntry: {
|
|
10593
|
+
/** @enum {string} */
|
|
10594
|
+
wallet_type?: "treasury" | "signing_key" | "smart_account";
|
|
10595
|
+
chain?: string;
|
|
10596
|
+
address?: string;
|
|
10175
10597
|
native_balance?: string;
|
|
10176
10598
|
native_balance_usd?: string;
|
|
10177
10599
|
tokens?: components["schemas"]["PortfolioTokenBalance"][];
|
|
@@ -18582,6 +19004,339 @@ export interface operations {
|
|
|
18582
19004
|
401: components["responses"]["Unauthorized"];
|
|
18583
19005
|
};
|
|
18584
19006
|
};
|
|
19007
|
+
getPolicyBackendSettings: {
|
|
19008
|
+
parameters: {
|
|
19009
|
+
query?: never;
|
|
19010
|
+
header?: never;
|
|
19011
|
+
path?: never;
|
|
19012
|
+
cookie?: never;
|
|
19013
|
+
};
|
|
19014
|
+
requestBody?: never;
|
|
19015
|
+
responses: {
|
|
19016
|
+
/** @description Policy backend settings */
|
|
19017
|
+
200: {
|
|
19018
|
+
headers: {
|
|
19019
|
+
[name: string]: unknown;
|
|
19020
|
+
};
|
|
19021
|
+
content: {
|
|
19022
|
+
"application/json": components["schemas"]["PolicyBackendSettingsResponse"];
|
|
19023
|
+
};
|
|
19024
|
+
};
|
|
19025
|
+
401: components["responses"]["Unauthorized"];
|
|
19026
|
+
403: components["responses"]["Forbidden"];
|
|
19027
|
+
};
|
|
19028
|
+
};
|
|
19029
|
+
updatePolicyBackendSettings: {
|
|
19030
|
+
parameters: {
|
|
19031
|
+
query?: never;
|
|
19032
|
+
header?: never;
|
|
19033
|
+
path?: never;
|
|
19034
|
+
cookie?: never;
|
|
19035
|
+
};
|
|
19036
|
+
requestBody: {
|
|
19037
|
+
content: {
|
|
19038
|
+
"application/json": components["schemas"]["UpdatePolicyBackendSettingsRequest"];
|
|
19039
|
+
};
|
|
19040
|
+
};
|
|
19041
|
+
responses: {
|
|
19042
|
+
/** @description Updated settings */
|
|
19043
|
+
200: {
|
|
19044
|
+
headers: {
|
|
19045
|
+
[name: string]: unknown;
|
|
19046
|
+
};
|
|
19047
|
+
content: {
|
|
19048
|
+
"application/json": components["schemas"]["PolicyBackendSettingsResponse"];
|
|
19049
|
+
};
|
|
19050
|
+
};
|
|
19051
|
+
400: components["responses"]["BadRequest"];
|
|
19052
|
+
401: components["responses"]["Unauthorized"];
|
|
19053
|
+
403: components["responses"]["Forbidden"];
|
|
19054
|
+
};
|
|
19055
|
+
};
|
|
19056
|
+
getPolicyShadowReport: {
|
|
19057
|
+
parameters: {
|
|
19058
|
+
query?: never;
|
|
19059
|
+
header?: never;
|
|
19060
|
+
path?: never;
|
|
19061
|
+
cookie?: never;
|
|
19062
|
+
};
|
|
19063
|
+
requestBody?: never;
|
|
19064
|
+
responses: {
|
|
19065
|
+
/** @description Shadow divergence report */
|
|
19066
|
+
200: {
|
|
19067
|
+
headers: {
|
|
19068
|
+
[name: string]: unknown;
|
|
19069
|
+
};
|
|
19070
|
+
content: {
|
|
19071
|
+
"application/json": components["schemas"]["PolicyShadowReportResponse"];
|
|
19072
|
+
};
|
|
19073
|
+
};
|
|
19074
|
+
401: components["responses"]["Unauthorized"];
|
|
19075
|
+
403: components["responses"]["Forbidden"];
|
|
19076
|
+
};
|
|
19077
|
+
};
|
|
19078
|
+
listContractAbis: {
|
|
19079
|
+
parameters: {
|
|
19080
|
+
query?: {
|
|
19081
|
+
/** @description Filter by chain name */
|
|
19082
|
+
chain?: string;
|
|
19083
|
+
};
|
|
19084
|
+
header?: never;
|
|
19085
|
+
path?: never;
|
|
19086
|
+
cookie?: never;
|
|
19087
|
+
};
|
|
19088
|
+
requestBody?: never;
|
|
19089
|
+
responses: {
|
|
19090
|
+
/** @description ABI list */
|
|
19091
|
+
200: {
|
|
19092
|
+
headers: {
|
|
19093
|
+
[name: string]: unknown;
|
|
19094
|
+
};
|
|
19095
|
+
content: {
|
|
19096
|
+
"application/json": components["schemas"]["ContractAbiListResponse"];
|
|
19097
|
+
};
|
|
19098
|
+
};
|
|
19099
|
+
401: components["responses"]["Unauthorized"];
|
|
19100
|
+
403: components["responses"]["Forbidden"];
|
|
19101
|
+
};
|
|
19102
|
+
};
|
|
19103
|
+
createContractAbi: {
|
|
19104
|
+
parameters: {
|
|
19105
|
+
query?: never;
|
|
19106
|
+
header?: never;
|
|
19107
|
+
path?: never;
|
|
19108
|
+
cookie?: never;
|
|
19109
|
+
};
|
|
19110
|
+
requestBody: {
|
|
19111
|
+
content: {
|
|
19112
|
+
"application/json": components["schemas"]["CreateContractAbiRequest"];
|
|
19113
|
+
};
|
|
19114
|
+
};
|
|
19115
|
+
responses: {
|
|
19116
|
+
/** @description ABI registered */
|
|
19117
|
+
201: {
|
|
19118
|
+
headers: {
|
|
19119
|
+
[name: string]: unknown;
|
|
19120
|
+
};
|
|
19121
|
+
content: {
|
|
19122
|
+
"application/json": components["schemas"]["ContractAbiResponse"];
|
|
19123
|
+
};
|
|
19124
|
+
};
|
|
19125
|
+
400: components["responses"]["BadRequest"];
|
|
19126
|
+
401: components["responses"]["Unauthorized"];
|
|
19127
|
+
403: components["responses"]["Forbidden"];
|
|
19128
|
+
409: components["responses"]["Conflict"];
|
|
19129
|
+
};
|
|
19130
|
+
};
|
|
19131
|
+
getContractAbi: {
|
|
19132
|
+
parameters: {
|
|
19133
|
+
query?: never;
|
|
19134
|
+
header?: never;
|
|
19135
|
+
path: {
|
|
19136
|
+
id: string;
|
|
19137
|
+
};
|
|
19138
|
+
cookie?: never;
|
|
19139
|
+
};
|
|
19140
|
+
requestBody?: never;
|
|
19141
|
+
responses: {
|
|
19142
|
+
/** @description ABI details */
|
|
19143
|
+
200: {
|
|
19144
|
+
headers: {
|
|
19145
|
+
[name: string]: unknown;
|
|
19146
|
+
};
|
|
19147
|
+
content: {
|
|
19148
|
+
"application/json": components["schemas"]["ContractAbiResponse"];
|
|
19149
|
+
};
|
|
19150
|
+
};
|
|
19151
|
+
401: components["responses"]["Unauthorized"];
|
|
19152
|
+
403: components["responses"]["Forbidden"];
|
|
19153
|
+
404: components["responses"]["NotFound"];
|
|
19154
|
+
};
|
|
19155
|
+
};
|
|
19156
|
+
deleteContractAbi: {
|
|
19157
|
+
parameters: {
|
|
19158
|
+
query?: never;
|
|
19159
|
+
header?: never;
|
|
19160
|
+
path: {
|
|
19161
|
+
id: string;
|
|
19162
|
+
};
|
|
19163
|
+
cookie?: never;
|
|
19164
|
+
};
|
|
19165
|
+
requestBody?: never;
|
|
19166
|
+
responses: {
|
|
19167
|
+
/** @description ABI deleted */
|
|
19168
|
+
204: {
|
|
19169
|
+
headers: {
|
|
19170
|
+
[name: string]: unknown;
|
|
19171
|
+
};
|
|
19172
|
+
content?: never;
|
|
19173
|
+
};
|
|
19174
|
+
401: components["responses"]["Unauthorized"];
|
|
19175
|
+
403: components["responses"]["Forbidden"];
|
|
19176
|
+
404: components["responses"]["NotFound"];
|
|
19177
|
+
};
|
|
19178
|
+
};
|
|
19179
|
+
listPendingApprovals: {
|
|
19180
|
+
parameters: {
|
|
19181
|
+
query?: {
|
|
19182
|
+
status?: string;
|
|
19183
|
+
agent_id?: string;
|
|
19184
|
+
limit?: number;
|
|
19185
|
+
offset?: number;
|
|
19186
|
+
};
|
|
19187
|
+
header?: never;
|
|
19188
|
+
path?: never;
|
|
19189
|
+
cookie?: never;
|
|
19190
|
+
};
|
|
19191
|
+
requestBody?: never;
|
|
19192
|
+
responses: {
|
|
19193
|
+
/** @description Pending approvals list */
|
|
19194
|
+
200: {
|
|
19195
|
+
headers: {
|
|
19196
|
+
[name: string]: unknown;
|
|
19197
|
+
};
|
|
19198
|
+
content: {
|
|
19199
|
+
"application/json": components["schemas"]["PendingApprovalListResponse"];
|
|
19200
|
+
};
|
|
19201
|
+
};
|
|
19202
|
+
401: components["responses"]["Unauthorized"];
|
|
19203
|
+
};
|
|
19204
|
+
};
|
|
19205
|
+
submitPendingApproval: {
|
|
19206
|
+
parameters: {
|
|
19207
|
+
query?: never;
|
|
19208
|
+
header?: never;
|
|
19209
|
+
path?: never;
|
|
19210
|
+
cookie?: never;
|
|
19211
|
+
};
|
|
19212
|
+
requestBody: {
|
|
19213
|
+
content: {
|
|
19214
|
+
"application/json": components["schemas"]["SubmitPendingApprovalRequest"];
|
|
19215
|
+
};
|
|
19216
|
+
};
|
|
19217
|
+
responses: {
|
|
19218
|
+
/** @description Approval required */
|
|
19219
|
+
202: {
|
|
19220
|
+
headers: {
|
|
19221
|
+
[name: string]: unknown;
|
|
19222
|
+
};
|
|
19223
|
+
content: {
|
|
19224
|
+
"application/json": components["schemas"]["SubmitPendingApprovalResponse"];
|
|
19225
|
+
};
|
|
19226
|
+
};
|
|
19227
|
+
400: components["responses"]["BadRequest"];
|
|
19228
|
+
401: components["responses"]["Unauthorized"];
|
|
19229
|
+
404: components["responses"]["NotFound"];
|
|
19230
|
+
};
|
|
19231
|
+
};
|
|
19232
|
+
getPendingApproval: {
|
|
19233
|
+
parameters: {
|
|
19234
|
+
query?: never;
|
|
19235
|
+
header?: never;
|
|
19236
|
+
path: {
|
|
19237
|
+
id: string;
|
|
19238
|
+
};
|
|
19239
|
+
cookie?: never;
|
|
19240
|
+
};
|
|
19241
|
+
requestBody?: never;
|
|
19242
|
+
responses: {
|
|
19243
|
+
/** @description Pending approval with signatures */
|
|
19244
|
+
200: {
|
|
19245
|
+
headers: {
|
|
19246
|
+
[name: string]: unknown;
|
|
19247
|
+
};
|
|
19248
|
+
content: {
|
|
19249
|
+
"application/json": components["schemas"]["PendingApprovalResponse"];
|
|
19250
|
+
};
|
|
19251
|
+
};
|
|
19252
|
+
401: components["responses"]["Unauthorized"];
|
|
19253
|
+
403: components["responses"]["Forbidden"];
|
|
19254
|
+
404: components["responses"]["NotFound"];
|
|
19255
|
+
};
|
|
19256
|
+
};
|
|
19257
|
+
approvePendingApproval: {
|
|
19258
|
+
parameters: {
|
|
19259
|
+
query?: never;
|
|
19260
|
+
header?: never;
|
|
19261
|
+
path: {
|
|
19262
|
+
id: string;
|
|
19263
|
+
};
|
|
19264
|
+
cookie?: never;
|
|
19265
|
+
};
|
|
19266
|
+
requestBody: {
|
|
19267
|
+
content: {
|
|
19268
|
+
"application/json": components["schemas"]["ApprovePendingApprovalRequest"];
|
|
19269
|
+
};
|
|
19270
|
+
};
|
|
19271
|
+
responses: {
|
|
19272
|
+
/** @description Updated pending approval */
|
|
19273
|
+
200: {
|
|
19274
|
+
headers: {
|
|
19275
|
+
[name: string]: unknown;
|
|
19276
|
+
};
|
|
19277
|
+
content: {
|
|
19278
|
+
"application/json": components["schemas"]["PendingApprovalResponse"];
|
|
19279
|
+
};
|
|
19280
|
+
};
|
|
19281
|
+
400: components["responses"]["BadRequest"];
|
|
19282
|
+
401: components["responses"]["Unauthorized"];
|
|
19283
|
+
403: components["responses"]["Forbidden"];
|
|
19284
|
+
404: components["responses"]["NotFound"];
|
|
19285
|
+
409: components["responses"]["Conflict"];
|
|
19286
|
+
};
|
|
19287
|
+
};
|
|
19288
|
+
executePendingApproval: {
|
|
19289
|
+
parameters: {
|
|
19290
|
+
query?: never;
|
|
19291
|
+
header?: never;
|
|
19292
|
+
path: {
|
|
19293
|
+
id: string;
|
|
19294
|
+
};
|
|
19295
|
+
cookie?: never;
|
|
19296
|
+
};
|
|
19297
|
+
requestBody?: never;
|
|
19298
|
+
responses: {
|
|
19299
|
+
/** @description Action executed */
|
|
19300
|
+
200: {
|
|
19301
|
+
headers: {
|
|
19302
|
+
[name: string]: unknown;
|
|
19303
|
+
};
|
|
19304
|
+
content: {
|
|
19305
|
+
"application/json": components["schemas"]["ExecutePendingApprovalResponse"];
|
|
19306
|
+
};
|
|
19307
|
+
};
|
|
19308
|
+
400: components["responses"]["BadRequest"];
|
|
19309
|
+
401: components["responses"]["Unauthorized"];
|
|
19310
|
+
403: components["responses"]["Forbidden"];
|
|
19311
|
+
404: components["responses"]["NotFound"];
|
|
19312
|
+
};
|
|
19313
|
+
};
|
|
19314
|
+
cancelPendingApproval: {
|
|
19315
|
+
parameters: {
|
|
19316
|
+
query?: never;
|
|
19317
|
+
header?: never;
|
|
19318
|
+
path: {
|
|
19319
|
+
id: string;
|
|
19320
|
+
};
|
|
19321
|
+
cookie?: never;
|
|
19322
|
+
};
|
|
19323
|
+
requestBody?: never;
|
|
19324
|
+
responses: {
|
|
19325
|
+
/** @description Cancelled pending approval */
|
|
19326
|
+
200: {
|
|
19327
|
+
headers: {
|
|
19328
|
+
[name: string]: unknown;
|
|
19329
|
+
};
|
|
19330
|
+
content: {
|
|
19331
|
+
"application/json": components["schemas"]["PendingApprovalResponse"];
|
|
19332
|
+
};
|
|
19333
|
+
};
|
|
19334
|
+
400: components["responses"]["BadRequest"];
|
|
19335
|
+
401: components["responses"]["Unauthorized"];
|
|
19336
|
+
403: components["responses"]["Forbidden"];
|
|
19337
|
+
404: components["responses"]["NotFound"];
|
|
19338
|
+
};
|
|
19339
|
+
};
|
|
18585
19340
|
listSubOrgs: {
|
|
18586
19341
|
parameters: {
|
|
18587
19342
|
query?: never;
|