@1claw/sdk 0.47.1 → 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.
@@ -2522,8 +2522,8 @@ export interface paths {
2522
2522
  * Generate multi-chain wallets for the authenticated user
2523
2523
  * @description Generates keypairs for the requested chains (or all supported chains if omitted).
2524
2524
  * Private keys are stored in a per-org `__treasury-keys` vault with tier-appropriate
2525
- * MPC custody. Skips chains where the user already has an active wallet. Requires
2526
- * Pro or higher billing tier. Human users only — agents get 403.
2525
+ * MPC custody. Skips chains where the user already has an active wallet. Available
2526
+ * on all tiers (counts toward wallet quota). Human users only — agents get 403.
2527
2527
  */
2528
2528
  post: operations["generateTreasuryWallets"];
2529
2529
  delete?: never;
@@ -2603,7 +2603,7 @@ export interface paths {
2603
2603
  * Rotate the user's wallet key for a chain
2604
2604
  * @description Generates a new keypair, deactivates the old wallet, and creates a
2605
2605
  * new active wallet. The old private key version is retained in the
2606
- * vault for audit. Requires Pro or higher.
2606
+ * vault for audit. Counts toward wallet quota (does not require a paid plan).
2607
2607
  */
2608
2608
  post: operations["rotateTreasuryWallet"];
2609
2609
  delete?: never;
@@ -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"][];
@@ -8095,6 +8279,7 @@ export interface components {
8095
8279
  vaults?: components["schemas"]["UsageMeter"];
8096
8280
  team_members?: components["schemas"]["UsageMeter"];
8097
8281
  intent_transactions?: components["schemas"]["UsageMeter"];
8282
+ wallets?: components["schemas"]["UsageMeter"];
8098
8283
  shares?: components["schemas"]["UsageMeter"];
8099
8284
  };
8100
8285
  };
@@ -10060,117 +10245,355 @@ export interface components {
10060
10245
  format?: "hex" | "base64" | "wif";
10061
10246
  };
10062
10247
  CreateCedarPolicyRequest: {
10248
+ name: string;
10063
10249
  /** @description Cedar policy text */
10064
- policy_text: string;
10065
- description?: string;
10250
+ cedar_text: string;
10066
10251
  };
10067
10252
  CedarPolicyResponse: {
10068
10253
  /** Format: uuid */
10069
10254
  id?: string;
10070
- policy_text?: string;
10071
- description?: string;
10072
- /** Format: date-time */
10073
- created_at?: string;
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";
10074
10265
  /** Format: uuid */
10075
10266
  created_by?: string;
10267
+ /** Format: date-time */
10268
+ created_at?: string;
10269
+ /** Format: date-time */
10270
+ updated_at?: string;
10076
10271
  };
10077
10272
  CedarPolicyListResponse: {
10078
10273
  policies?: components["schemas"]["CedarPolicyResponse"][];
10079
10274
  };
10080
10275
  CedarPolicyTestRequest: {
10081
- principal: string;
10276
+ /** @description Optional inline Cedar text to test */
10277
+ cedar_text?: string;
10278
+ principal_type: string;
10279
+ /** Format: uuid */
10280
+ principal_id: string;
10082
10281
  action: string;
10083
- resource: string;
10282
+ resource_path: string;
10283
+ /** Format: uuid */
10284
+ vault_id: string;
10084
10285
  context?: Record<string, never>;
10085
10286
  };
10086
10287
  CedarPolicyTestResponse: {
10087
10288
  /** @enum {string} */
10088
10289
  decision?: "allow" | "deny";
10089
- reasons?: string[];
10290
+ backend?: string;
10291
+ /** @enum {string} */
10292
+ enforcement_status?: "shadow" | "enforce" | "inactive";
10293
+ note?: string;
10090
10294
  };
10091
10295
  CreateOpaPolicyRequest: {
10296
+ name: string;
10092
10297
  /** @description OPA Rego module source */
10093
- rego_module: string;
10094
- description?: string;
10095
- /** @description Static data document for the policy */
10096
- data?: Record<string, never>;
10298
+ rego_source?: string;
10299
+ /** @description Optional WASM bundle (base64) */
10300
+ wasm_bundle_base64?: string;
10301
+ /** @default oneclaw/allow */
10302
+ entrypoint: string;
10097
10303
  };
10098
10304
  OpaPolicyResponse: {
10099
10305
  /** Format: uuid */
10100
10306
  id?: string;
10101
- rego_module?: string;
10102
- description?: string;
10103
- data?: Record<string, never>;
10104
- /** Format: date-time */
10105
- created_at?: string;
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";
10106
10316
  /** Format: uuid */
10107
10317
  created_by?: string;
10318
+ /** Format: date-time */
10319
+ created_at?: string;
10320
+ /** Format: date-time */
10321
+ updated_at?: string;
10108
10322
  };
10109
10323
  OpaPolicyListResponse: {
10110
10324
  policies?: components["schemas"]["OpaPolicyResponse"][];
10111
10325
  };
10112
10326
  OpaPolicyTestRequest: {
10113
- /** @description Input document for policy evaluation */
10114
- input: Record<string, never>;
10115
- /** @description Optional data override */
10116
- data?: Record<string, never>;
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>;
10117
10335
  };
10118
10336
  OpaPolicyTestResponse: {
10119
- result?: Record<string, never>;
10120
10337
  /** @enum {string} */
10121
10338
  decision?: "allow" | "deny";
10339
+ backend?: string;
10340
+ /** @enum {string} */
10341
+ enforcement_status?: "shadow" | "enforce" | "inactive";
10342
+ note?: string;
10122
10343
  };
10123
- CreateSubOrgRequest: {
10124
- name: string;
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;
10125
10403
  description?: string;
10126
- /**
10127
- * @default inherit
10128
- * @enum {string}
10129
- */
10130
- billing_model: "inherit" | "independent";
10404
+ token_decimals?: number;
10131
10405
  };
10132
- SubOrgResponse: {
10406
+ ContractAbiResponse: {
10133
10407
  /** Format: uuid */
10134
10408
  id?: string;
10135
10409
  /** Format: uuid */
10136
- parent_org_id?: string;
10410
+ org_id?: string;
10411
+ chain?: string;
10412
+ contract_address?: string;
10413
+ abi_json?: Record<string, never>[];
10137
10414
  name?: string;
10138
10415
  description?: string;
10139
- billing_model?: string;
10140
- /** @enum {string} */
10141
- status?: "active" | "archived";
10416
+ token_decimals?: number;
10417
+ /** Format: uuid */
10418
+ created_by?: string;
10142
10419
  /** Format: date-time */
10143
10420
  created_at?: string;
10421
+ /** Format: date-time */
10422
+ updated_at?: string;
10144
10423
  };
10145
- SubOrgListResponse: {
10146
- sub_orgs?: components["schemas"]["SubOrgResponse"][];
10147
- };
10148
- SubOrgPermissionRequest: {
10149
- /** @description Permission to grant (e.g. vaults:read, agents:write) */
10150
- permission: string;
10151
- resource_ids?: string[];
10424
+ ContractAbiListResponse: {
10425
+ abis?: components["schemas"]["ContractAbiResponse"][];
10152
10426
  };
10153
- SubOrgAddUserRequest: {
10154
- /** Format: uuid */
10155
- user_id: string;
10427
+ ConsensusTrigger: {
10428
+ conditions: components["schemas"]["ConsensusCondition"][];
10429
+ approval: components["schemas"]["ApprovalRequirement"];
10156
10430
  /**
10157
- * @default member
10158
- * @enum {string}
10431
+ * Format: int64
10432
+ * @default 86400
10159
10433
  */
10160
- role: "admin" | "member" | "viewer";
10161
- };
10162
- SubOrgGenerateWalletsRequest: {
10163
- chains?: string[];
10164
- };
10165
- PortfolioResponse: {
10166
- wallets?: components["schemas"]["PortfolioWalletEntry"][];
10167
- total_usd_estimate?: string;
10434
+ expiry_secs: number;
10435
+ /** @default false */
10436
+ self_approval_allowed: boolean;
10168
10437
  };
10169
- PortfolioWalletEntry: {
10438
+ ConsensusCondition: {
10170
10439
  /** @enum {string} */
10171
- wallet_type?: "treasury" | "signing_key" | "smart_account";
10172
- chain?: string;
10173
- address?: string;
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;
10174
10597
  native_balance?: string;
10175
10598
  native_balance_usd?: string;
10176
10599
  tokens?: components["schemas"]["PortfolioTokenBalance"][];
@@ -18581,6 +19004,339 @@ export interface operations {
18581
19004
  401: components["responses"]["Unauthorized"];
18582
19005
  };
18583
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
+ };
18584
19340
  listSubOrgs: {
18585
19341
  parameters: {
18586
19342
  query?: never;