@1claw/sdk 0.45.0 → 0.47.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.
Files changed (50) hide show
  1. package/README.md +34 -1
  2. package/dist/core/client.d.ts +12 -0
  3. package/dist/core/client.d.ts.map +1 -1
  4. package/dist/core/client.js +8 -0
  5. package/dist/core/client.js.map +1 -1
  6. package/dist/generated/api-types.d.ts +1595 -164
  7. package/dist/generated/api-types.d.ts.map +1 -1
  8. package/dist/index.d.ts +6 -1
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +4 -0
  11. package/dist/index.js.map +1 -1
  12. package/dist/resources/access.d.ts +6 -0
  13. package/dist/resources/access.d.ts.map +1 -1
  14. package/dist/resources/access.js +6 -0
  15. package/dist/resources/access.js.map +1 -1
  16. package/dist/resources/agents.d.ts +32 -1
  17. package/dist/resources/agents.d.ts.map +1 -1
  18. package/dist/resources/agents.js +46 -0
  19. package/dist/resources/agents.js.map +1 -1
  20. package/dist/resources/billing.d.ts +3 -1
  21. package/dist/resources/billing.d.ts.map +1 -1
  22. package/dist/resources/billing.js +4 -0
  23. package/dist/resources/billing.js.map +1 -1
  24. package/dist/resources/cedar-policies.d.ts +12 -0
  25. package/dist/resources/cedar-policies.d.ts.map +1 -0
  26. package/dist/resources/cedar-policies.js +21 -0
  27. package/dist/resources/cedar-policies.js.map +1 -0
  28. package/dist/resources/opa-policies.d.ts +12 -0
  29. package/dist/resources/opa-policies.d.ts.map +1 -0
  30. package/dist/resources/opa-policies.js +21 -0
  31. package/dist/resources/opa-policies.js.map +1 -0
  32. package/dist/resources/portfolio.d.ts +12 -0
  33. package/dist/resources/portfolio.d.ts.map +1 -0
  34. package/dist/resources/portfolio.js +15 -0
  35. package/dist/resources/portfolio.js.map +1 -0
  36. package/dist/resources/signing-keys.d.ts +3 -1
  37. package/dist/resources/signing-keys.d.ts.map +1 -1
  38. package/dist/resources/signing-keys.js +4 -0
  39. package/dist/resources/signing-keys.js.map +1 -1
  40. package/dist/resources/sub-orgs.d.ts +15 -0
  41. package/dist/resources/sub-orgs.d.ts.map +1 -0
  42. package/dist/resources/sub-orgs.js +30 -0
  43. package/dist/resources/sub-orgs.js.map +1 -0
  44. package/dist/resources/treasury-wallets.d.ts +11 -1
  45. package/dist/resources/treasury-wallets.d.ts.map +1 -1
  46. package/dist/resources/treasury-wallets.js +4 -0
  47. package/dist/resources/treasury-wallets.js.map +1 -1
  48. package/dist/types.d.ts +168 -1
  49. package/dist/types.d.ts.map +1 -1
  50. package/package.json +1 -1
@@ -1453,6 +1453,27 @@ export interface paths {
1453
1453
  patch?: never;
1454
1454
  trace?: never;
1455
1455
  };
1456
+ "/v1/agents/{agent_id}/signing-keys/{chain}/import": {
1457
+ parameters: {
1458
+ query?: never;
1459
+ header?: never;
1460
+ path?: never;
1461
+ cookie?: never;
1462
+ };
1463
+ get?: never;
1464
+ put?: never;
1465
+ /**
1466
+ * Import a signing key for a chain
1467
+ * @description Import an existing private key for a specific chain. Human-only,
1468
+ * requires password re-authentication.
1469
+ */
1470
+ post: operations["importSigningKey"];
1471
+ delete?: never;
1472
+ options?: never;
1473
+ head?: never;
1474
+ patch?: never;
1475
+ trace?: never;
1476
+ };
1456
1477
  "/v1/agents/{agent_id}/bankr-keys/lease": {
1457
1478
  parameters: {
1458
1479
  query?: never;
@@ -1515,6 +1536,74 @@ export interface paths {
1515
1536
  patch?: never;
1516
1537
  trace?: never;
1517
1538
  };
1539
+ "/v1/agents/{agent_id}/delegations": {
1540
+ parameters: {
1541
+ query?: never;
1542
+ header?: never;
1543
+ path?: never;
1544
+ cookie?: never;
1545
+ };
1546
+ /**
1547
+ * List delegations for an agent
1548
+ * @description List all delegations where this agent is the delegator.
1549
+ */
1550
+ get: operations["listDelegations"];
1551
+ put?: never;
1552
+ /**
1553
+ * Create a delegation
1554
+ * @description Grant an agent (delegator) permission to delegate tasks to another agent (delegate).
1555
+ * Human-only — agents cannot create their own delegations.
1556
+ */
1557
+ post: operations["createDelegation"];
1558
+ delete?: never;
1559
+ options?: never;
1560
+ head?: never;
1561
+ patch?: never;
1562
+ trace?: never;
1563
+ };
1564
+ "/v1/agents/{agent_id}/delegations/effective": {
1565
+ parameters: {
1566
+ query?: never;
1567
+ header?: never;
1568
+ path?: never;
1569
+ cookie?: never;
1570
+ };
1571
+ /**
1572
+ * Get effective delegations
1573
+ * @description Get the effective delegations for an agent, including daily usage statistics.
1574
+ * Agents can call this on their own ID to discover what they are authorized to delegate to.
1575
+ */
1576
+ get: operations["getEffectiveDelegations"];
1577
+ put?: never;
1578
+ post?: never;
1579
+ delete?: never;
1580
+ options?: never;
1581
+ head?: never;
1582
+ patch?: never;
1583
+ trace?: never;
1584
+ };
1585
+ "/v1/agents/{agent_id}/delegations/{delegation_id}": {
1586
+ parameters: {
1587
+ query?: never;
1588
+ header?: never;
1589
+ path?: never;
1590
+ cookie?: never;
1591
+ };
1592
+ /** Get a specific delegation */
1593
+ get: operations["getDelegation"];
1594
+ put?: never;
1595
+ post?: never;
1596
+ /** Revoke a delegation */
1597
+ delete: operations["revokeDelegation"];
1598
+ options?: never;
1599
+ head?: never;
1600
+ /**
1601
+ * Update a delegation
1602
+ * @description Update delegation tools, limits, mode, or active status. Human-only.
1603
+ */
1604
+ patch: operations["updateDelegation"];
1605
+ trace?: never;
1606
+ };
1518
1607
  "/v1/agents/{agent_id}/sign": {
1519
1608
  parameters: {
1520
1609
  query?: never;
@@ -2109,6 +2198,26 @@ export interface paths {
2109
2198
  patch?: never;
2110
2199
  trace?: never;
2111
2200
  };
2201
+ "/v1/billing/llm-token-billing/cancel-duplicates": {
2202
+ parameters: {
2203
+ query?: never;
2204
+ header?: never;
2205
+ path?: never;
2206
+ cookie?: never;
2207
+ };
2208
+ get?: never;
2209
+ put?: never;
2210
+ /**
2211
+ * Cancel duplicate LLM billing subscriptions
2212
+ * @description Cancels extra Stripe LLM billing subscriptions for the org, keeping a single primary subscription (active preferred over trialing). Does not change the org LLM billing enabled setting.
2213
+ */
2214
+ post: operations["cancelLlmDuplicateSubscriptions"];
2215
+ delete?: never;
2216
+ options?: never;
2217
+ head?: never;
2218
+ patch?: never;
2219
+ trace?: never;
2220
+ };
2112
2221
  "/v1/billing/overage-method": {
2113
2222
  parameters: {
2114
2223
  query?: never;
@@ -2568,6 +2677,27 @@ export interface paths {
2568
2677
  patch?: never;
2569
2678
  trace?: never;
2570
2679
  };
2680
+ "/v1/treasury/wallets/{chain}/import": {
2681
+ parameters: {
2682
+ query?: never;
2683
+ header?: never;
2684
+ path?: never;
2685
+ cookie?: never;
2686
+ };
2687
+ get?: never;
2688
+ put?: never;
2689
+ /**
2690
+ * Import a treasury wallet
2691
+ * @description Import an existing private key as a treasury wallet. Human-only,
2692
+ * requires password re-authentication via X-Auth-Confirm header.
2693
+ */
2694
+ post: operations["importTreasuryWallet"];
2695
+ delete?: never;
2696
+ options?: never;
2697
+ head?: never;
2698
+ patch?: never;
2699
+ trace?: never;
2700
+ };
2571
2701
  "/v1/treasury/wallets/spend-policy": {
2572
2702
  parameters: {
2573
2703
  query?: never;
@@ -5762,104 +5892,394 @@ export interface paths {
5762
5892
  patch?: never;
5763
5893
  trace?: never;
5764
5894
  };
5765
- }
5766
- export type webhooks = Record<string, never>;
5767
- export interface components {
5768
- schemas: {
5769
- OrderCardRequest: {
5770
- /** @enum {string} */
5771
- kind: "prepaid" | "gift_card";
5772
- /**
5773
- * @description USD amount to load onto the card.
5774
- * @example 25.00
5775
- */
5776
- amount_usd: string;
5777
- /** @description Optional Laso gift-card server/brand id (gift cards only). */
5778
- laso_server_id?: string;
5779
- /** @description Optional country (prepaid cards; defaults to US). */
5780
- country?: string;
5781
- };
5782
- /** @description Masked card view — never contains PAN/CVV. */
5783
- CardResponse: {
5784
- /** Format: uuid */
5785
- id: string;
5786
- /** Format: uuid */
5787
- agent_id?: string | null;
5788
- /** @enum {string} */
5789
- issuer: "laso" | "manual";
5790
- /** @enum {string} */
5791
- kind: "prepaid" | "gift_card";
5792
- brand?: string;
5793
- last4?: string;
5794
- exp_month?: number;
5795
- exp_year?: number;
5796
- currency: string;
5797
- order_amount_usd?: string;
5798
- balance?: string;
5799
- /** @enum {string} */
5800
- status: "ordering" | "pending" | "ready" | "depleted" | "expired" | "voided" | "orphaned_payment" | "awaiting_approval" | "rejected";
5801
- /** @enum {string} */
5802
- storage_mode: "reference" | "full";
5803
- reveal_policy: {
5804
- [key: string]: unknown;
5805
- };
5806
- /**
5807
- * Format: uuid
5808
- * @description Linked approval when status is awaiting_approval
5809
- */
5810
- approval_id?: string;
5811
- /** Format: date-time */
5812
- void_after?: string;
5813
- /** Format: date-time */
5814
- created_at: string;
5815
- /** Format: date-time */
5816
- updated_at: string;
5817
- };
5818
- CardListResponse: {
5819
- cards: components["schemas"]["CardResponse"][];
5895
+ "/v1/org/cedar-policies": {
5896
+ parameters: {
5897
+ query?: never;
5898
+ header?: never;
5899
+ path?: never;
5900
+ cookie?: never;
5820
5901
  };
5821
- /** @description Revealed card details — sensitive. Returned only by the reveal endpoint. */
5822
- CardRevealResponse: {
5823
- /** Format: uuid */
5824
- id: string;
5825
- pan?: string;
5826
- cvv?: string;
5827
- exp_month?: number;
5828
- exp_year?: number;
5829
- brand?: string;
5830
- /** @description Gift-card redemption payload (URL/code/PIN) when applicable. */
5831
- redemption?: {
5832
- [key: string]: unknown;
5833
- };
5834
- disclaimer: string;
5902
+ /**
5903
+ * List Cedar policies
5904
+ * @description List all Cedar policies for the organization.
5905
+ */
5906
+ get: operations["listCedarPolicies"];
5907
+ put?: never;
5908
+ /**
5909
+ * Create a Cedar policy
5910
+ * @description Create a new Cedar policy for the organization. Team+ tier required.
5911
+ */
5912
+ post: operations["createCedarPolicy"];
5913
+ delete?: never;
5914
+ options?: never;
5915
+ head?: never;
5916
+ patch?: never;
5917
+ trace?: never;
5918
+ };
5919
+ "/v1/org/cedar-policies/{id}": {
5920
+ parameters: {
5921
+ query?: never;
5922
+ header?: never;
5923
+ path?: never;
5924
+ cookie?: never;
5835
5925
  };
5836
- /** @description Human-settable per-card reveal policy + lifecycle controls. */
5837
- UpdateCardRequest: {
5838
- agent_reveal?: boolean;
5839
- max_reveals?: number;
5840
- /** Format: date-time */
5841
- reveal_expires_at?: string | null;
5842
- /** Format: date-time */
5843
- void_after?: string | null;
5926
+ /**
5927
+ * Get a Cedar policy
5928
+ * @description Retrieve a specific Cedar policy by ID.
5929
+ */
5930
+ get: operations["getCedarPolicy"];
5931
+ put?: never;
5932
+ post?: never;
5933
+ /**
5934
+ * Delete a Cedar policy
5935
+ * @description Delete a Cedar policy by ID.
5936
+ */
5937
+ delete: operations["deleteCedarPolicy"];
5938
+ options?: never;
5939
+ head?: never;
5940
+ patch?: never;
5941
+ trace?: never;
5942
+ };
5943
+ "/v1/org/cedar-policies/test": {
5944
+ parameters: {
5945
+ query?: never;
5946
+ header?: never;
5947
+ path?: never;
5948
+ cookie?: never;
5844
5949
  };
5845
- ImportCardRequest: {
5846
- pan: string;
5847
- cvv: string;
5848
- exp_month: number;
5849
- exp_year: number;
5850
- brand?: string;
5851
- currency?: string;
5852
- balance?: string;
5853
- /** Format: uuid */
5854
- agent_id?: string;
5950
+ get?: never;
5951
+ put?: never;
5952
+ /**
5953
+ * Test Cedar policy evaluation
5954
+ * @description Evaluate the organization's Cedar policies against a test request.
5955
+ */
5956
+ post: operations["testCedarPolicy"];
5957
+ delete?: never;
5958
+ options?: never;
5959
+ head?: never;
5960
+ patch?: never;
5961
+ trace?: never;
5962
+ };
5963
+ "/v1/org/opa-policies": {
5964
+ parameters: {
5965
+ query?: never;
5966
+ header?: never;
5967
+ path?: never;
5968
+ cookie?: never;
5855
5969
  };
5856
- SearchGiftCardsRequest: {
5857
- query?: string;
5858
- country?: string;
5970
+ /**
5971
+ * List OPA policies
5972
+ * @description List all OPA policies for the organization.
5973
+ */
5974
+ get: operations["listOpaPolicies"];
5975
+ put?: never;
5976
+ /**
5977
+ * Create an OPA policy
5978
+ * @description Create a new OPA Rego policy for the organization. Business+ tier required.
5979
+ */
5980
+ post: operations["createOpaPolicy"];
5981
+ delete?: never;
5982
+ options?: never;
5983
+ head?: never;
5984
+ patch?: never;
5985
+ trace?: never;
5986
+ };
5987
+ "/v1/org/opa-policies/{id}": {
5988
+ parameters: {
5989
+ query?: never;
5990
+ header?: never;
5991
+ path?: never;
5992
+ cookie?: never;
5859
5993
  };
5860
- /** @description RFC 7807 error envelope */
5861
- ProblemDetails: {
5862
- type?: string;
5994
+ /**
5995
+ * Get an OPA policy
5996
+ * @description Retrieve a specific OPA policy by ID.
5997
+ */
5998
+ get: operations["getOpaPolicy"];
5999
+ put?: never;
6000
+ post?: never;
6001
+ /**
6002
+ * Delete an OPA policy
6003
+ * @description Delete an OPA policy by ID.
6004
+ */
6005
+ delete: operations["deleteOpaPolicy"];
6006
+ options?: never;
6007
+ head?: never;
6008
+ patch?: never;
6009
+ trace?: never;
6010
+ };
6011
+ "/v1/org/opa-policies/test": {
6012
+ parameters: {
6013
+ query?: never;
6014
+ header?: never;
6015
+ path?: never;
6016
+ cookie?: never;
6017
+ };
6018
+ get?: never;
6019
+ put?: never;
6020
+ /**
6021
+ * Test OPA policy evaluation
6022
+ * @description Evaluate the organization's OPA policies against a test input.
6023
+ */
6024
+ post: operations["testOpaPolicy"];
6025
+ delete?: never;
6026
+ options?: never;
6027
+ head?: never;
6028
+ patch?: never;
6029
+ trace?: never;
6030
+ };
6031
+ "/v1/org/sub-orgs": {
6032
+ parameters: {
6033
+ query?: never;
6034
+ header?: never;
6035
+ path?: never;
6036
+ cookie?: never;
6037
+ };
6038
+ /**
6039
+ * List sub-organizations
6040
+ * @description List all sub-organizations under the current org.
6041
+ */
6042
+ get: operations["listSubOrgs"];
6043
+ put?: never;
6044
+ /**
6045
+ * Create a sub-organization
6046
+ * @description Create a new sub-organization under the current org.
6047
+ */
6048
+ post: operations["createSubOrg"];
6049
+ delete?: never;
6050
+ options?: never;
6051
+ head?: never;
6052
+ patch?: never;
6053
+ trace?: never;
6054
+ };
6055
+ "/v1/org/sub-orgs/{sub_org_id}": {
6056
+ parameters: {
6057
+ query?: never;
6058
+ header?: never;
6059
+ path?: never;
6060
+ cookie?: never;
6061
+ };
6062
+ /**
6063
+ * Get a sub-organization
6064
+ * @description Retrieve a specific sub-organization by ID.
6065
+ */
6066
+ get: operations["getSubOrg"];
6067
+ put?: never;
6068
+ post?: never;
6069
+ /**
6070
+ * Archive a sub-organization
6071
+ * @description Archive (soft-delete) a sub-organization.
6072
+ */
6073
+ delete: operations["deleteSubOrg"];
6074
+ options?: never;
6075
+ head?: never;
6076
+ /**
6077
+ * Update a sub-organization
6078
+ * @description Update sub-organization name, description, or billing model.
6079
+ */
6080
+ patch: operations["updateSubOrg"];
6081
+ trace?: never;
6082
+ };
6083
+ "/v1/org/sub-orgs/{sub_org_id}/users": {
6084
+ parameters: {
6085
+ query?: never;
6086
+ header?: never;
6087
+ path?: never;
6088
+ cookie?: never;
6089
+ };
6090
+ get?: never;
6091
+ put?: never;
6092
+ /**
6093
+ * Add a user to a sub-organization
6094
+ * @description Add a user to a sub-organization with a specified role.
6095
+ */
6096
+ post: operations["addSubOrgUser"];
6097
+ delete?: never;
6098
+ options?: never;
6099
+ head?: never;
6100
+ patch?: never;
6101
+ trace?: never;
6102
+ };
6103
+ "/v1/org/sub-orgs/{sub_org_id}/permissions": {
6104
+ parameters: {
6105
+ query?: never;
6106
+ header?: never;
6107
+ path?: never;
6108
+ cookie?: never;
6109
+ };
6110
+ get?: never;
6111
+ put?: never;
6112
+ /**
6113
+ * Grant permissions to a sub-organization
6114
+ * @description Grant a permission scope to the sub-organization.
6115
+ */
6116
+ post: operations["grantSubOrgPermission"];
6117
+ delete?: never;
6118
+ options?: never;
6119
+ head?: never;
6120
+ patch?: never;
6121
+ trace?: never;
6122
+ };
6123
+ "/v1/org/sub-orgs/{sub_org_id}/wallets/generate": {
6124
+ parameters: {
6125
+ query?: never;
6126
+ header?: never;
6127
+ path?: never;
6128
+ cookie?: never;
6129
+ };
6130
+ get?: never;
6131
+ put?: never;
6132
+ /**
6133
+ * Generate wallets for a sub-organization
6134
+ * @description Generate treasury wallets for specified chains within the sub-org.
6135
+ */
6136
+ post: operations["generateSubOrgWallets"];
6137
+ delete?: never;
6138
+ options?: never;
6139
+ head?: never;
6140
+ patch?: never;
6141
+ trace?: never;
6142
+ };
6143
+ "/v1/portfolio": {
6144
+ parameters: {
6145
+ query?: never;
6146
+ header?: never;
6147
+ path?: never;
6148
+ cookie?: never;
6149
+ };
6150
+ /**
6151
+ * Get unified portfolio
6152
+ * @description Returns an aggregated view of all wallet balances (treasury wallets,
6153
+ * signing keys, smart accounts) with USD estimates.
6154
+ */
6155
+ get: operations["getPortfolio"];
6156
+ put?: never;
6157
+ post?: never;
6158
+ delete?: never;
6159
+ options?: never;
6160
+ head?: never;
6161
+ patch?: never;
6162
+ trace?: never;
6163
+ };
6164
+ "/v1/agents/{agent_id}/smart-accounts/import": {
6165
+ parameters: {
6166
+ query?: never;
6167
+ header?: never;
6168
+ path?: never;
6169
+ cookie?: never;
6170
+ };
6171
+ get?: never;
6172
+ put?: never;
6173
+ /**
6174
+ * Import an existing Safe smart account
6175
+ * @description Import an existing Safe smart account for an agent. Optionally verifies
6176
+ * on-chain that the agent's EOA is a signer on the Safe.
6177
+ */
6178
+ post: operations["importSmartAccount"];
6179
+ delete?: never;
6180
+ options?: never;
6181
+ head?: never;
6182
+ patch?: never;
6183
+ trace?: never;
6184
+ };
6185
+ }
6186
+ export type webhooks = Record<string, never>;
6187
+ export interface components {
6188
+ schemas: {
6189
+ OrderCardRequest: {
6190
+ /** @enum {string} */
6191
+ kind: "prepaid" | "gift_card";
6192
+ /**
6193
+ * @description USD amount to load onto the card.
6194
+ * @example 25.00
6195
+ */
6196
+ amount_usd: string;
6197
+ /** @description Optional Laso gift-card server/brand id (gift cards only). */
6198
+ laso_server_id?: string;
6199
+ /** @description Optional country (prepaid cards; defaults to US). */
6200
+ country?: string;
6201
+ };
6202
+ /** @description Masked card view — never contains PAN/CVV. */
6203
+ CardResponse: {
6204
+ /** Format: uuid */
6205
+ id: string;
6206
+ /** Format: uuid */
6207
+ agent_id?: string | null;
6208
+ /** @enum {string} */
6209
+ issuer: "laso" | "manual";
6210
+ /** @enum {string} */
6211
+ kind: "prepaid" | "gift_card";
6212
+ brand?: string;
6213
+ last4?: string;
6214
+ exp_month?: number;
6215
+ exp_year?: number;
6216
+ currency: string;
6217
+ order_amount_usd?: string;
6218
+ balance?: string;
6219
+ /** @enum {string} */
6220
+ status: "ordering" | "pending" | "ready" | "depleted" | "expired" | "voided" | "orphaned_payment" | "awaiting_approval" | "rejected";
6221
+ /** @enum {string} */
6222
+ storage_mode: "reference" | "full";
6223
+ reveal_policy: {
6224
+ [key: string]: unknown;
6225
+ };
6226
+ /**
6227
+ * Format: uuid
6228
+ * @description Linked approval when status is awaiting_approval
6229
+ */
6230
+ approval_id?: string;
6231
+ /** Format: date-time */
6232
+ void_after?: string;
6233
+ /** Format: date-time */
6234
+ created_at: string;
6235
+ /** Format: date-time */
6236
+ updated_at: string;
6237
+ };
6238
+ CardListResponse: {
6239
+ cards: components["schemas"]["CardResponse"][];
6240
+ };
6241
+ /** @description Revealed card details — sensitive. Returned only by the reveal endpoint. */
6242
+ CardRevealResponse: {
6243
+ /** Format: uuid */
6244
+ id: string;
6245
+ pan?: string;
6246
+ cvv?: string;
6247
+ exp_month?: number;
6248
+ exp_year?: number;
6249
+ brand?: string;
6250
+ /** @description Gift-card redemption payload (URL/code/PIN) when applicable. */
6251
+ redemption?: {
6252
+ [key: string]: unknown;
6253
+ };
6254
+ disclaimer: string;
6255
+ };
6256
+ /** @description Human-settable per-card reveal policy + lifecycle controls. */
6257
+ UpdateCardRequest: {
6258
+ agent_reveal?: boolean;
6259
+ max_reveals?: number;
6260
+ /** Format: date-time */
6261
+ reveal_expires_at?: string | null;
6262
+ /** Format: date-time */
6263
+ void_after?: string | null;
6264
+ };
6265
+ ImportCardRequest: {
6266
+ pan: string;
6267
+ cvv: string;
6268
+ exp_month: number;
6269
+ exp_year: number;
6270
+ brand?: string;
6271
+ currency?: string;
6272
+ balance?: string;
6273
+ /** Format: uuid */
6274
+ agent_id?: string;
6275
+ };
6276
+ SearchGiftCardsRequest: {
6277
+ query?: string;
6278
+ country?: string;
6279
+ };
6280
+ /** @description RFC 7807 error envelope */
6281
+ ProblemDetails: {
6282
+ type?: string;
5863
6283
  title?: string;
5864
6284
  status?: number;
5865
6285
  detail?: string;
@@ -6245,6 +6665,16 @@ export interface components {
6245
6665
  };
6246
6666
  /** Format: date-time */
6247
6667
  expires_at?: string;
6668
+ /**
6669
+ * @default allow
6670
+ * @enum {string}
6671
+ */
6672
+ effect: "allow" | "deny";
6673
+ /** @default 0 */
6674
+ priority: number;
6675
+ attribute_conditions?: {
6676
+ [key: string]: unknown;
6677
+ };
6248
6678
  };
6249
6679
  UpdatePolicyRequest: {
6250
6680
  permissions?: string[];
@@ -6253,6 +6683,16 @@ export interface components {
6253
6683
  };
6254
6684
  /** Format: date-time */
6255
6685
  expires_at?: string;
6686
+ /**
6687
+ * @default allow
6688
+ * @enum {string}
6689
+ */
6690
+ effect: "allow" | "deny";
6691
+ /** @default 0 */
6692
+ priority: number;
6693
+ attribute_conditions?: {
6694
+ [key: string]: unknown;
6695
+ };
6256
6696
  };
6257
6697
  PolicyResponse: {
6258
6698
  /** Format: uuid */
@@ -6272,10 +6712,20 @@ export interface components {
6272
6712
  created_by_type?: string;
6273
6713
  /** Format: date-time */
6274
6714
  created_at: string;
6275
- };
6276
- PolicyListResponse: {
6277
- policies?: components["schemas"]["PolicyResponse"][];
6278
- };
6715
+ /**
6716
+ * @default allow
6717
+ * @enum {string}
6718
+ */
6719
+ effect: "allow" | "deny";
6720
+ /** @default 0 */
6721
+ priority: number;
6722
+ attribute_conditions?: {
6723
+ [key: string]: unknown;
6724
+ };
6725
+ };
6726
+ PolicyListResponse: {
6727
+ policies?: components["schemas"]["PolicyResponse"][];
6728
+ };
6279
6729
  EnrollAgentRequest: {
6280
6730
  /** @description Display name for the new agent */
6281
6731
  name: string;
@@ -7232,6 +7682,82 @@ export interface components {
7232
7682
  BankrKeyLeaseListResponse: {
7233
7683
  leases?: components["schemas"]["BankrKeyLeaseResponse"][];
7234
7684
  };
7685
+ CreateDelegationRequest: {
7686
+ /**
7687
+ * Format: uuid
7688
+ * @description The agent ID to delegate to.
7689
+ */
7690
+ delegate_id: string;
7691
+ /** @description Tool names the delegate may use. Empty means all tools allowed. */
7692
+ allowed_tools?: string[];
7693
+ /** @description Tool names the delegate may NOT use. */
7694
+ blocked_tools?: string[];
7695
+ /** @description Maximum delegation calls per UTC day. NULL means unlimited. */
7696
+ max_daily_delegations?: number;
7697
+ /**
7698
+ * @description Maximum delegation chain depth (default 3).
7699
+ * @default 3
7700
+ */
7701
+ max_depth: number;
7702
+ /** @description Additional guardrail constraints for this delegation. */
7703
+ guardrails?: Record<string, never>;
7704
+ /**
7705
+ * @description Execution mode: caller (use delegator's creds), target (use delegate's config), or both.
7706
+ * @default caller
7707
+ * @enum {string}
7708
+ */
7709
+ delegation_mode: "caller" | "target" | "both";
7710
+ /**
7711
+ * Format: date-time
7712
+ * @description Optional expiration timestamp.
7713
+ */
7714
+ expires_at?: string;
7715
+ };
7716
+ UpdateDelegationRequest: {
7717
+ allowed_tools?: string[];
7718
+ blocked_tools?: string[];
7719
+ max_daily_delegations?: number;
7720
+ max_depth?: number;
7721
+ guardrails?: Record<string, never>;
7722
+ /** @enum {string} */
7723
+ delegation_mode?: "caller" | "target" | "both";
7724
+ is_active?: boolean;
7725
+ /** Format: date-time */
7726
+ expires_at?: string | null;
7727
+ };
7728
+ DelegationResponse: {
7729
+ /** Format: uuid */
7730
+ id?: string;
7731
+ /** Format: uuid */
7732
+ org_id?: string;
7733
+ /** Format: uuid */
7734
+ delegator_id?: string;
7735
+ /** Format: uuid */
7736
+ delegate_id?: string;
7737
+ delegator_name?: string;
7738
+ delegate_name?: string;
7739
+ allowed_tools?: string[];
7740
+ blocked_tools?: string[];
7741
+ max_daily_delegations?: number | null;
7742
+ max_depth?: number;
7743
+ guardrails?: Record<string, never>;
7744
+ /** @enum {string} */
7745
+ delegation_mode?: "caller" | "target" | "both";
7746
+ is_active?: boolean;
7747
+ /** Format: uuid */
7748
+ created_by?: string;
7749
+ /** Format: date-time */
7750
+ expires_at?: string | null;
7751
+ /** Format: date-time */
7752
+ created_at?: string;
7753
+ /** Format: date-time */
7754
+ updated_at?: string;
7755
+ /** @description Number of delegations used today (present in effective endpoint). */
7756
+ delegations_today?: number;
7757
+ };
7758
+ DelegationListResponse: {
7759
+ delegations?: components["schemas"]["DelegationResponse"][];
7760
+ };
7235
7761
  SignIntentRequest: {
7236
7762
  /** @enum {string} */
7237
7763
  intent_type: "personal_sign" | "typed_data" | "eip712_digest" | "transaction";
@@ -7591,10 +8117,20 @@ export interface components {
7591
8117
  subscription_status?: "active" | "inactive";
7592
8118
  credit_balance?: components["schemas"]["LlmCreditBalance"];
7593
8119
  billing_cycle_usage?: components["schemas"]["LlmBillingCycleUsage"];
8120
+ active_subscription_count?: number;
8121
+ subscription_ids?: string[];
8122
+ warning?: string;
7594
8123
  };
7595
8124
  LlmCheckoutResponse: {
7596
8125
  /** Format: uri */
7597
8126
  checkout_url?: string;
8127
+ already_subscribed?: boolean;
8128
+ subscription_id?: string;
8129
+ };
8130
+ LlmCancelDuplicatesResponse: {
8131
+ cancelled_count: number;
8132
+ cancelled_subscription_ids: string[];
8133
+ remaining_subscription_ids: string[];
7598
8134
  };
7599
8135
  LlmDisableResponse: {
7600
8136
  enabled?: boolean;
@@ -7913,7 +8449,7 @@ export interface components {
7913
8449
  TreasuryWalletSendRequest: {
7914
8450
  /** @description Destination address (0x-prefixed) */
7915
8451
  to: string;
7916
- /** @description Value in wei */
8452
+ /** @description Value in wei (or major-unit decimal string for non-EVM) */
7917
8453
  value_wei: string;
7918
8454
  /** @description Hex-encoded calldata (optional) */
7919
8455
  data?: string;
@@ -7924,6 +8460,22 @@ export interface components {
7924
8460
  * @default false
7925
8461
  */
7926
8462
  gasless: boolean;
8463
+ /** @description Token contract address / mint (ERC-20, SPL, TRC-20, Cardano policy_id.asset_name) */
8464
+ token_mint?: string;
8465
+ /** @description Transaction memo (Solana Memo Program, XRP Memos, Tron extra_data) */
8466
+ memo?: string;
8467
+ /** @description XRP destination tag */
8468
+ destination_tag?: number;
8469
+ /** @description Bitcoin fee rate in sat/vbyte */
8470
+ fee_rate_sat_per_vbyte?: number;
8471
+ /** @description Raw XRPL transaction JSON for advanced XRP transaction types */
8472
+ xrpl_tx_json?: Record<string, never>;
8473
+ /** @description Tron fee limit in sun */
8474
+ fee_limit_sun?: number;
8475
+ /** @description Token decimals (required for non-EVM token transfers when not in known_tokens) */
8476
+ token_decimals?: number;
8477
+ /** @description Cardano transaction TTL (slot number) */
8478
+ ttl?: number;
7927
8479
  };
7928
8480
  TreasuryWalletSendResponse: {
7929
8481
  tx_hash: string;
@@ -9283,7 +9835,12 @@ export interface components {
9283
9835
  config: {
9284
9836
  [key: string]: string;
9285
9837
  };
9286
- /** @description Enable slash commands on this channel */
9838
+ /**
9839
+ * @description Enable Hermes-compatible slash commands on this channel. When true,
9840
+ * messages starting with `/` are handled before the LLM. Commands:
9841
+ * /help, /new, /reset, /clear, /model, /mode, /personality, /retry,
9842
+ * /undo, /compress, /summarize, /stop, /status, /skills, /usage, /sethome.
9843
+ */
9287
9844
  slash_commands_enabled?: boolean;
9288
9845
  /** @description Enable voice message transcription */
9289
9846
  voice_transcription_enabled?: boolean;
@@ -9324,7 +9881,11 @@ export interface components {
9324
9881
  config?: {
9325
9882
  [key: string]: unknown;
9326
9883
  } | null;
9327
- /** @description Whether slash commands are enabled for this channel */
9884
+ /**
9885
+ * @description Whether Hermes-compatible slash commands are enabled for this channel.
9886
+ * Commands: /help, /new, /reset, /clear, /model, /mode, /personality, /retry,
9887
+ * /undo, /compress, /summarize, /stop, /status, /skills, /usage, /sethome.
9888
+ */
9328
9889
  slash_commands_enabled?: boolean;
9329
9890
  /** @description Whether voice message transcription is enabled */
9330
9891
  voice_transcription_enabled?: boolean;
@@ -9469,6 +10030,149 @@ export interface components {
9469
10030
  OAuthAppCredentialListResponse: {
9470
10031
  credentials?: components["schemas"]["OAuthAppCredentialResponse"][];
9471
10032
  };
10033
+ ImportKeyRequest: {
10034
+ /** @description The private key to import */
10035
+ private_key: string;
10036
+ /**
10037
+ * @description Key format (default hex)
10038
+ * @enum {string}
10039
+ */
10040
+ format?: "hex" | "base64" | "wif";
10041
+ };
10042
+ CreateCedarPolicyRequest: {
10043
+ /** @description Cedar policy text */
10044
+ policy_text: string;
10045
+ description?: string;
10046
+ };
10047
+ CedarPolicyResponse: {
10048
+ /** Format: uuid */
10049
+ id?: string;
10050
+ policy_text?: string;
10051
+ description?: string;
10052
+ /** Format: date-time */
10053
+ created_at?: string;
10054
+ /** Format: uuid */
10055
+ created_by?: string;
10056
+ };
10057
+ CedarPolicyListResponse: {
10058
+ policies?: components["schemas"]["CedarPolicyResponse"][];
10059
+ };
10060
+ CedarPolicyTestRequest: {
10061
+ principal: string;
10062
+ action: string;
10063
+ resource: string;
10064
+ context?: Record<string, never>;
10065
+ };
10066
+ CedarPolicyTestResponse: {
10067
+ /** @enum {string} */
10068
+ decision?: "allow" | "deny";
10069
+ reasons?: string[];
10070
+ };
10071
+ CreateOpaPolicyRequest: {
10072
+ /** @description OPA Rego module source */
10073
+ rego_module: string;
10074
+ description?: string;
10075
+ /** @description Static data document for the policy */
10076
+ data?: Record<string, never>;
10077
+ };
10078
+ OpaPolicyResponse: {
10079
+ /** Format: uuid */
10080
+ id?: string;
10081
+ rego_module?: string;
10082
+ description?: string;
10083
+ data?: Record<string, never>;
10084
+ /** Format: date-time */
10085
+ created_at?: string;
10086
+ /** Format: uuid */
10087
+ created_by?: string;
10088
+ };
10089
+ OpaPolicyListResponse: {
10090
+ policies?: components["schemas"]["OpaPolicyResponse"][];
10091
+ };
10092
+ OpaPolicyTestRequest: {
10093
+ /** @description Input document for policy evaluation */
10094
+ input: Record<string, never>;
10095
+ /** @description Optional data override */
10096
+ data?: Record<string, never>;
10097
+ };
10098
+ OpaPolicyTestResponse: {
10099
+ result?: Record<string, never>;
10100
+ /** @enum {string} */
10101
+ decision?: "allow" | "deny";
10102
+ };
10103
+ CreateSubOrgRequest: {
10104
+ name: string;
10105
+ description?: string;
10106
+ /**
10107
+ * @default inherit
10108
+ * @enum {string}
10109
+ */
10110
+ billing_model: "inherit" | "independent";
10111
+ };
10112
+ SubOrgResponse: {
10113
+ /** Format: uuid */
10114
+ id?: string;
10115
+ /** Format: uuid */
10116
+ parent_org_id?: string;
10117
+ name?: string;
10118
+ description?: string;
10119
+ billing_model?: string;
10120
+ /** @enum {string} */
10121
+ status?: "active" | "archived";
10122
+ /** Format: date-time */
10123
+ created_at?: string;
10124
+ };
10125
+ SubOrgListResponse: {
10126
+ sub_orgs?: components["schemas"]["SubOrgResponse"][];
10127
+ };
10128
+ SubOrgPermissionRequest: {
10129
+ /** @description Permission to grant (e.g. vaults:read, agents:write) */
10130
+ permission: string;
10131
+ resource_ids?: string[];
10132
+ };
10133
+ SubOrgAddUserRequest: {
10134
+ /** Format: uuid */
10135
+ user_id: string;
10136
+ /**
10137
+ * @default member
10138
+ * @enum {string}
10139
+ */
10140
+ role: "admin" | "member" | "viewer";
10141
+ };
10142
+ SubOrgGenerateWalletsRequest: {
10143
+ chains?: string[];
10144
+ };
10145
+ PortfolioResponse: {
10146
+ wallets?: components["schemas"]["PortfolioWalletEntry"][];
10147
+ total_usd_estimate?: string;
10148
+ };
10149
+ PortfolioWalletEntry: {
10150
+ /** @enum {string} */
10151
+ wallet_type?: "treasury" | "signing_key" | "smart_account";
10152
+ chain?: string;
10153
+ address?: string;
10154
+ native_balance?: string;
10155
+ native_balance_usd?: string;
10156
+ tokens?: components["schemas"]["PortfolioTokenBalance"][];
10157
+ };
10158
+ PortfolioTokenBalance: {
10159
+ contract_address?: string;
10160
+ symbol?: string;
10161
+ name?: string;
10162
+ balance?: string;
10163
+ balance_usd?: string;
10164
+ decimals?: number;
10165
+ };
10166
+ ImportSmartAccountRequest: {
10167
+ chain: string;
10168
+ chain_id: number;
10169
+ safe_address: string;
10170
+ /**
10171
+ * @description Verify on-chain Safe ownership
10172
+ * @default true
10173
+ */
10174
+ verify: boolean;
10175
+ };
9472
10176
  };
9473
10177
  responses: {
9474
10178
  /** @description Invalid request */
@@ -11955,6 +12659,35 @@ export interface operations {
11955
12659
  404: components["responses"]["NotFound"];
11956
12660
  };
11957
12661
  };
12662
+ importSigningKey: {
12663
+ parameters: {
12664
+ query?: never;
12665
+ header?: never;
12666
+ path: {
12667
+ agent_id: components["parameters"]["AgentId"];
12668
+ chain: string;
12669
+ };
12670
+ cookie?: never;
12671
+ };
12672
+ requestBody: {
12673
+ content: {
12674
+ "application/json": components["schemas"]["ImportKeyRequest"];
12675
+ };
12676
+ };
12677
+ responses: {
12678
+ /** @description Signing key imported */
12679
+ 201: {
12680
+ headers: {
12681
+ [name: string]: unknown;
12682
+ };
12683
+ content: {
12684
+ "application/json": components["schemas"]["SigningKeyResponse"];
12685
+ };
12686
+ };
12687
+ 401: components["responses"]["Unauthorized"];
12688
+ 403: components["responses"]["Forbidden"];
12689
+ };
12690
+ };
11958
12691
  leaseBankrKey: {
11959
12692
  parameters: {
11960
12693
  query?: never;
@@ -12028,7 +12761,7 @@ export interface operations {
12028
12761
  404: components["responses"]["NotFound"];
12029
12762
  };
12030
12763
  };
12031
- signIntent: {
12764
+ listDelegations: {
12032
12765
  parameters: {
12033
12766
  query?: never;
12034
12767
  header?: never;
@@ -12037,26 +12770,21 @@ export interface operations {
12037
12770
  };
12038
12771
  cookie?: never;
12039
12772
  };
12040
- requestBody: {
12041
- content: {
12042
- "application/json": components["schemas"]["SignIntentRequest"];
12043
- };
12044
- };
12773
+ requestBody?: never;
12045
12774
  responses: {
12046
- /** @description Signed result */
12775
+ /** @description List of delegations */
12047
12776
  200: {
12048
12777
  headers: {
12049
12778
  [name: string]: unknown;
12050
12779
  };
12051
12780
  content: {
12052
- "application/json": components["schemas"]["SignIntentResponse"];
12781
+ "application/json": components["schemas"]["DelegationListResponse"];
12053
12782
  };
12054
12783
  };
12055
- 400: components["responses"]["BadRequest"];
12056
- 403: components["responses"]["Forbidden"];
12784
+ 404: components["responses"]["NotFound"];
12057
12785
  };
12058
12786
  };
12059
- listBindings: {
12787
+ createDelegation: {
12060
12788
  parameters: {
12061
12789
  query?: never;
12062
12790
  header?: never;
@@ -12065,23 +12793,35 @@ export interface operations {
12065
12793
  };
12066
12794
  cookie?: never;
12067
12795
  };
12068
- requestBody?: never;
12796
+ requestBody: {
12797
+ content: {
12798
+ "application/json": components["schemas"]["CreateDelegationRequest"];
12799
+ };
12800
+ };
12069
12801
  responses: {
12070
- /** @description Binding list */
12071
- 200: {
12802
+ /** @description Delegation created */
12803
+ 201: {
12072
12804
  headers: {
12073
12805
  [name: string]: unknown;
12074
12806
  };
12075
12807
  content: {
12076
- "application/json": {
12077
- bindings: components["schemas"]["BindingResponse"][];
12078
- };
12808
+ "application/json": components["schemas"]["DelegationResponse"];
12079
12809
  };
12080
12810
  };
12811
+ 400: components["responses"]["BadRequest"];
12081
12812
  403: components["responses"]["Forbidden"];
12813
+ /** @description Delegation already exists for this delegator/delegate pair */
12814
+ 409: {
12815
+ headers: {
12816
+ [name: string]: unknown;
12817
+ };
12818
+ content: {
12819
+ "application/json": components["schemas"]["ProblemDetails"];
12820
+ };
12821
+ };
12082
12822
  };
12083
12823
  };
12084
- createBinding: {
12824
+ getEffectiveDelegations: {
12085
12825
  parameters: {
12086
12826
  query?: never;
12087
12827
  header?: never;
@@ -12090,62 +12830,57 @@ export interface operations {
12090
12830
  };
12091
12831
  cookie?: never;
12092
12832
  };
12093
- requestBody: {
12094
- content: {
12095
- "application/json": components["schemas"]["CreateBindingRequest"];
12096
- };
12097
- };
12833
+ requestBody?: never;
12098
12834
  responses: {
12099
- /** @description Binding created */
12100
- 201: {
12835
+ /** @description Effective delegations with usage stats */
12836
+ 200: {
12101
12837
  headers: {
12102
12838
  [name: string]: unknown;
12103
12839
  };
12104
12840
  content: {
12105
- "application/json": components["schemas"]["BindingResponse"];
12841
+ "application/json": components["schemas"]["DelegationListResponse"];
12106
12842
  };
12107
12843
  };
12108
- 400: components["responses"]["BadRequest"];
12109
- 403: components["responses"]["Forbidden"];
12844
+ 404: components["responses"]["NotFound"];
12110
12845
  };
12111
12846
  };
12112
- getBinding: {
12847
+ getDelegation: {
12113
12848
  parameters: {
12114
12849
  query?: never;
12115
12850
  header?: never;
12116
12851
  path: {
12117
12852
  agent_id: components["parameters"]["AgentId"];
12118
- binding_id: string;
12853
+ delegation_id: string;
12119
12854
  };
12120
12855
  cookie?: never;
12121
12856
  };
12122
12857
  requestBody?: never;
12123
12858
  responses: {
12124
- /** @description Binding details */
12859
+ /** @description Delegation details */
12125
12860
  200: {
12126
12861
  headers: {
12127
12862
  [name: string]: unknown;
12128
12863
  };
12129
12864
  content: {
12130
- "application/json": components["schemas"]["BindingResponse"];
12865
+ "application/json": components["schemas"]["DelegationResponse"];
12131
12866
  };
12132
12867
  };
12133
12868
  404: components["responses"]["NotFound"];
12134
12869
  };
12135
12870
  };
12136
- deleteBinding: {
12871
+ revokeDelegation: {
12137
12872
  parameters: {
12138
12873
  query?: never;
12139
12874
  header?: never;
12140
12875
  path: {
12141
12876
  agent_id: components["parameters"]["AgentId"];
12142
- binding_id: string;
12877
+ delegation_id: string;
12143
12878
  };
12144
12879
  cookie?: never;
12145
12880
  };
12146
12881
  requestBody?: never;
12147
12882
  responses: {
12148
- /** @description Binding deleted */
12883
+ /** @description Delegation revoked */
12149
12884
  204: {
12150
12885
  headers: {
12151
12886
  [name: string]: unknown;
@@ -12155,99 +12890,256 @@ export interface operations {
12155
12890
  404: components["responses"]["NotFound"];
12156
12891
  };
12157
12892
  };
12158
- updateBinding: {
12893
+ updateDelegation: {
12159
12894
  parameters: {
12160
12895
  query?: never;
12161
12896
  header?: never;
12162
12897
  path: {
12163
12898
  agent_id: components["parameters"]["AgentId"];
12164
- binding_id: string;
12899
+ delegation_id: string;
12165
12900
  };
12166
12901
  cookie?: never;
12167
12902
  };
12168
12903
  requestBody: {
12169
12904
  content: {
12170
- "application/json": components["schemas"]["UpdateBindingRequest"];
12905
+ "application/json": components["schemas"]["UpdateDelegationRequest"];
12171
12906
  };
12172
12907
  };
12173
12908
  responses: {
12174
- /** @description Binding updated */
12909
+ /** @description Delegation updated */
12175
12910
  200: {
12176
12911
  headers: {
12177
12912
  [name: string]: unknown;
12178
12913
  };
12179
12914
  content: {
12180
- "application/json": components["schemas"]["BindingResponse"];
12915
+ "application/json": components["schemas"]["DelegationResponse"];
12181
12916
  };
12182
12917
  };
12183
12918
  400: components["responses"]["BadRequest"];
12919
+ 403: components["responses"]["Forbidden"];
12184
12920
  404: components["responses"]["NotFound"];
12185
12921
  };
12186
12922
  };
12187
- testBinding: {
12923
+ signIntent: {
12188
12924
  parameters: {
12189
12925
  query?: never;
12190
12926
  header?: never;
12191
12927
  path: {
12192
12928
  agent_id: components["parameters"]["AgentId"];
12193
- binding_id: string;
12194
12929
  };
12195
12930
  cookie?: never;
12196
12931
  };
12197
- requestBody?: {
12932
+ requestBody: {
12198
12933
  content: {
12199
- "application/json": {
12200
- /** @description Connection test timeout in milliseconds */
12201
- timeout_ms?: number;
12202
- };
12934
+ "application/json": components["schemas"]["SignIntentRequest"];
12203
12935
  };
12204
12936
  };
12205
12937
  responses: {
12206
- /** @description Test result */
12938
+ /** @description Signed result */
12207
12939
  200: {
12208
12940
  headers: {
12209
12941
  [name: string]: unknown;
12210
12942
  };
12211
12943
  content: {
12212
- "application/json": components["schemas"]["TestBindingResponse"];
12944
+ "application/json": components["schemas"]["SignIntentResponse"];
12213
12945
  };
12214
12946
  };
12215
- 404: components["responses"]["NotFound"];
12947
+ 400: components["responses"]["BadRequest"];
12948
+ 403: components["responses"]["Forbidden"];
12216
12949
  };
12217
12950
  };
12218
- rotateBindingCredential: {
12951
+ listBindings: {
12219
12952
  parameters: {
12220
12953
  query?: never;
12221
12954
  header?: never;
12222
12955
  path: {
12223
12956
  agent_id: components["parameters"]["AgentId"];
12224
- binding_id: string;
12225
12957
  };
12226
12958
  cookie?: never;
12227
12959
  };
12228
- requestBody: {
12229
- content: {
12230
- "application/json": {
12231
- /** @description New credential material (object or string). Stored server-side. */
12232
- credential: unknown;
12233
- };
12234
- };
12235
- };
12960
+ requestBody?: never;
12236
12961
  responses: {
12237
- /** @description Updated binding */
12962
+ /** @description Binding list */
12238
12963
  200: {
12239
12964
  headers: {
12240
12965
  [name: string]: unknown;
12241
12966
  };
12242
12967
  content: {
12243
- "application/json": components["schemas"]["BindingResponse"];
12968
+ "application/json": {
12969
+ bindings: components["schemas"]["BindingResponse"][];
12970
+ };
12244
12971
  };
12245
12972
  };
12246
12973
  403: components["responses"]["Forbidden"];
12247
- 404: components["responses"]["NotFound"];
12248
12974
  };
12249
12975
  };
12250
- executeIntent: {
12976
+ createBinding: {
12977
+ parameters: {
12978
+ query?: never;
12979
+ header?: never;
12980
+ path: {
12981
+ agent_id: components["parameters"]["AgentId"];
12982
+ };
12983
+ cookie?: never;
12984
+ };
12985
+ requestBody: {
12986
+ content: {
12987
+ "application/json": components["schemas"]["CreateBindingRequest"];
12988
+ };
12989
+ };
12990
+ responses: {
12991
+ /** @description Binding created */
12992
+ 201: {
12993
+ headers: {
12994
+ [name: string]: unknown;
12995
+ };
12996
+ content: {
12997
+ "application/json": components["schemas"]["BindingResponse"];
12998
+ };
12999
+ };
13000
+ 400: components["responses"]["BadRequest"];
13001
+ 403: components["responses"]["Forbidden"];
13002
+ };
13003
+ };
13004
+ getBinding: {
13005
+ parameters: {
13006
+ query?: never;
13007
+ header?: never;
13008
+ path: {
13009
+ agent_id: components["parameters"]["AgentId"];
13010
+ binding_id: string;
13011
+ };
13012
+ cookie?: never;
13013
+ };
13014
+ requestBody?: never;
13015
+ responses: {
13016
+ /** @description Binding details */
13017
+ 200: {
13018
+ headers: {
13019
+ [name: string]: unknown;
13020
+ };
13021
+ content: {
13022
+ "application/json": components["schemas"]["BindingResponse"];
13023
+ };
13024
+ };
13025
+ 404: components["responses"]["NotFound"];
13026
+ };
13027
+ };
13028
+ deleteBinding: {
13029
+ parameters: {
13030
+ query?: never;
13031
+ header?: never;
13032
+ path: {
13033
+ agent_id: components["parameters"]["AgentId"];
13034
+ binding_id: string;
13035
+ };
13036
+ cookie?: never;
13037
+ };
13038
+ requestBody?: never;
13039
+ responses: {
13040
+ /** @description Binding deleted */
13041
+ 204: {
13042
+ headers: {
13043
+ [name: string]: unknown;
13044
+ };
13045
+ content?: never;
13046
+ };
13047
+ 404: components["responses"]["NotFound"];
13048
+ };
13049
+ };
13050
+ updateBinding: {
13051
+ parameters: {
13052
+ query?: never;
13053
+ header?: never;
13054
+ path: {
13055
+ agent_id: components["parameters"]["AgentId"];
13056
+ binding_id: string;
13057
+ };
13058
+ cookie?: never;
13059
+ };
13060
+ requestBody: {
13061
+ content: {
13062
+ "application/json": components["schemas"]["UpdateBindingRequest"];
13063
+ };
13064
+ };
13065
+ responses: {
13066
+ /** @description Binding updated */
13067
+ 200: {
13068
+ headers: {
13069
+ [name: string]: unknown;
13070
+ };
13071
+ content: {
13072
+ "application/json": components["schemas"]["BindingResponse"];
13073
+ };
13074
+ };
13075
+ 400: components["responses"]["BadRequest"];
13076
+ 404: components["responses"]["NotFound"];
13077
+ };
13078
+ };
13079
+ testBinding: {
13080
+ parameters: {
13081
+ query?: never;
13082
+ header?: never;
13083
+ path: {
13084
+ agent_id: components["parameters"]["AgentId"];
13085
+ binding_id: string;
13086
+ };
13087
+ cookie?: never;
13088
+ };
13089
+ requestBody?: {
13090
+ content: {
13091
+ "application/json": {
13092
+ /** @description Connection test timeout in milliseconds */
13093
+ timeout_ms?: number;
13094
+ };
13095
+ };
13096
+ };
13097
+ responses: {
13098
+ /** @description Test result */
13099
+ 200: {
13100
+ headers: {
13101
+ [name: string]: unknown;
13102
+ };
13103
+ content: {
13104
+ "application/json": components["schemas"]["TestBindingResponse"];
13105
+ };
13106
+ };
13107
+ 404: components["responses"]["NotFound"];
13108
+ };
13109
+ };
13110
+ rotateBindingCredential: {
13111
+ parameters: {
13112
+ query?: never;
13113
+ header?: never;
13114
+ path: {
13115
+ agent_id: components["parameters"]["AgentId"];
13116
+ binding_id: string;
13117
+ };
13118
+ cookie?: never;
13119
+ };
13120
+ requestBody: {
13121
+ content: {
13122
+ "application/json": {
13123
+ /** @description New credential material (object or string). Stored server-side. */
13124
+ credential: unknown;
13125
+ };
13126
+ };
13127
+ };
13128
+ responses: {
13129
+ /** @description Updated binding */
13130
+ 200: {
13131
+ headers: {
13132
+ [name: string]: unknown;
13133
+ };
13134
+ content: {
13135
+ "application/json": components["schemas"]["BindingResponse"];
13136
+ };
13137
+ };
13138
+ 403: components["responses"]["Forbidden"];
13139
+ 404: components["responses"]["NotFound"];
13140
+ };
13141
+ };
13142
+ executeIntent: {
12251
13143
  parameters: {
12252
13144
  query?: never;
12253
13145
  header?: never;
@@ -13008,6 +13900,26 @@ export interface operations {
13008
13900
  };
13009
13901
  };
13010
13902
  };
13903
+ cancelLlmDuplicateSubscriptions: {
13904
+ parameters: {
13905
+ query?: never;
13906
+ header?: never;
13907
+ path?: never;
13908
+ cookie?: never;
13909
+ };
13910
+ requestBody?: never;
13911
+ responses: {
13912
+ /** @description Duplicate subscriptions cancelled */
13913
+ 200: {
13914
+ headers: {
13915
+ [name: string]: unknown;
13916
+ };
13917
+ content: {
13918
+ "application/json": components["schemas"]["LlmCancelDuplicatesResponse"];
13919
+ };
13920
+ };
13921
+ };
13922
+ };
13011
13923
  billingOverageMethod: {
13012
13924
  parameters: {
13013
13925
  query?: never;
@@ -13808,6 +14720,34 @@ export interface operations {
13808
14720
  404: components["responses"]["NotFound"];
13809
14721
  };
13810
14722
  };
14723
+ importTreasuryWallet: {
14724
+ parameters: {
14725
+ query?: never;
14726
+ header?: never;
14727
+ path: {
14728
+ chain: string;
14729
+ };
14730
+ cookie?: never;
14731
+ };
14732
+ requestBody: {
14733
+ content: {
14734
+ "application/json": components["schemas"]["ImportKeyRequest"];
14735
+ };
14736
+ };
14737
+ responses: {
14738
+ /** @description Treasury wallet imported */
14739
+ 201: {
14740
+ headers: {
14741
+ [name: string]: unknown;
14742
+ };
14743
+ content: {
14744
+ "application/json": components["schemas"]["TreasuryWalletResponse"];
14745
+ };
14746
+ };
14747
+ 401: components["responses"]["Unauthorized"];
14748
+ 403: components["responses"]["Forbidden"];
14749
+ };
14750
+ };
13811
14751
  getEffectiveSpendPolicy: {
13812
14752
  parameters: {
13813
14753
  query?: never;
@@ -17369,5 +18309,496 @@ export interface operations {
17369
18309
  };
17370
18310
  };
17371
18311
  };
18312
+ listCedarPolicies: {
18313
+ parameters: {
18314
+ query?: never;
18315
+ header?: never;
18316
+ path?: never;
18317
+ cookie?: never;
18318
+ };
18319
+ requestBody?: never;
18320
+ responses: {
18321
+ /** @description Cedar policies list */
18322
+ 200: {
18323
+ headers: {
18324
+ [name: string]: unknown;
18325
+ };
18326
+ content: {
18327
+ "application/json": components["schemas"]["CedarPolicyListResponse"];
18328
+ };
18329
+ };
18330
+ 401: components["responses"]["Unauthorized"];
18331
+ };
18332
+ };
18333
+ createCedarPolicy: {
18334
+ parameters: {
18335
+ query?: never;
18336
+ header?: never;
18337
+ path?: never;
18338
+ cookie?: never;
18339
+ };
18340
+ requestBody: {
18341
+ content: {
18342
+ "application/json": components["schemas"]["CreateCedarPolicyRequest"];
18343
+ };
18344
+ };
18345
+ responses: {
18346
+ /** @description Cedar policy created */
18347
+ 201: {
18348
+ headers: {
18349
+ [name: string]: unknown;
18350
+ };
18351
+ content: {
18352
+ "application/json": components["schemas"]["CedarPolicyResponse"];
18353
+ };
18354
+ };
18355
+ 400: components["responses"]["BadRequest"];
18356
+ 401: components["responses"]["Unauthorized"];
18357
+ 403: components["responses"]["Forbidden"];
18358
+ };
18359
+ };
18360
+ getCedarPolicy: {
18361
+ parameters: {
18362
+ query?: never;
18363
+ header?: never;
18364
+ path: {
18365
+ id: string;
18366
+ };
18367
+ cookie?: never;
18368
+ };
18369
+ requestBody?: never;
18370
+ responses: {
18371
+ /** @description Cedar policy details */
18372
+ 200: {
18373
+ headers: {
18374
+ [name: string]: unknown;
18375
+ };
18376
+ content: {
18377
+ "application/json": components["schemas"]["CedarPolicyResponse"];
18378
+ };
18379
+ };
18380
+ 401: components["responses"]["Unauthorized"];
18381
+ 404: components["responses"]["NotFound"];
18382
+ };
18383
+ };
18384
+ deleteCedarPolicy: {
18385
+ parameters: {
18386
+ query?: never;
18387
+ header?: never;
18388
+ path: {
18389
+ id: string;
18390
+ };
18391
+ cookie?: never;
18392
+ };
18393
+ requestBody?: never;
18394
+ responses: {
18395
+ /** @description Cedar policy deleted */
18396
+ 204: {
18397
+ headers: {
18398
+ [name: string]: unknown;
18399
+ };
18400
+ content?: never;
18401
+ };
18402
+ 401: components["responses"]["Unauthorized"];
18403
+ 404: components["responses"]["NotFound"];
18404
+ };
18405
+ };
18406
+ testCedarPolicy: {
18407
+ parameters: {
18408
+ query?: never;
18409
+ header?: never;
18410
+ path?: never;
18411
+ cookie?: never;
18412
+ };
18413
+ requestBody: {
18414
+ content: {
18415
+ "application/json": components["schemas"]["CedarPolicyTestRequest"];
18416
+ };
18417
+ };
18418
+ responses: {
18419
+ /** @description Policy evaluation result */
18420
+ 200: {
18421
+ headers: {
18422
+ [name: string]: unknown;
18423
+ };
18424
+ content: {
18425
+ "application/json": components["schemas"]["CedarPolicyTestResponse"];
18426
+ };
18427
+ };
18428
+ 400: components["responses"]["BadRequest"];
18429
+ 401: components["responses"]["Unauthorized"];
18430
+ };
18431
+ };
18432
+ listOpaPolicies: {
18433
+ parameters: {
18434
+ query?: never;
18435
+ header?: never;
18436
+ path?: never;
18437
+ cookie?: never;
18438
+ };
18439
+ requestBody?: never;
18440
+ responses: {
18441
+ /** @description OPA policies list */
18442
+ 200: {
18443
+ headers: {
18444
+ [name: string]: unknown;
18445
+ };
18446
+ content: {
18447
+ "application/json": components["schemas"]["OpaPolicyListResponse"];
18448
+ };
18449
+ };
18450
+ 401: components["responses"]["Unauthorized"];
18451
+ };
18452
+ };
18453
+ createOpaPolicy: {
18454
+ parameters: {
18455
+ query?: never;
18456
+ header?: never;
18457
+ path?: never;
18458
+ cookie?: never;
18459
+ };
18460
+ requestBody: {
18461
+ content: {
18462
+ "application/json": components["schemas"]["CreateOpaPolicyRequest"];
18463
+ };
18464
+ };
18465
+ responses: {
18466
+ /** @description OPA policy created */
18467
+ 201: {
18468
+ headers: {
18469
+ [name: string]: unknown;
18470
+ };
18471
+ content: {
18472
+ "application/json": components["schemas"]["OpaPolicyResponse"];
18473
+ };
18474
+ };
18475
+ 400: components["responses"]["BadRequest"];
18476
+ 401: components["responses"]["Unauthorized"];
18477
+ 403: components["responses"]["Forbidden"];
18478
+ };
18479
+ };
18480
+ getOpaPolicy: {
18481
+ parameters: {
18482
+ query?: never;
18483
+ header?: never;
18484
+ path: {
18485
+ id: string;
18486
+ };
18487
+ cookie?: never;
18488
+ };
18489
+ requestBody?: never;
18490
+ responses: {
18491
+ /** @description OPA policy details */
18492
+ 200: {
18493
+ headers: {
18494
+ [name: string]: unknown;
18495
+ };
18496
+ content: {
18497
+ "application/json": components["schemas"]["OpaPolicyResponse"];
18498
+ };
18499
+ };
18500
+ 401: components["responses"]["Unauthorized"];
18501
+ 404: components["responses"]["NotFound"];
18502
+ };
18503
+ };
18504
+ deleteOpaPolicy: {
18505
+ parameters: {
18506
+ query?: never;
18507
+ header?: never;
18508
+ path: {
18509
+ id: string;
18510
+ };
18511
+ cookie?: never;
18512
+ };
18513
+ requestBody?: never;
18514
+ responses: {
18515
+ /** @description OPA policy deleted */
18516
+ 204: {
18517
+ headers: {
18518
+ [name: string]: unknown;
18519
+ };
18520
+ content?: never;
18521
+ };
18522
+ 401: components["responses"]["Unauthorized"];
18523
+ 404: components["responses"]["NotFound"];
18524
+ };
18525
+ };
18526
+ testOpaPolicy: {
18527
+ parameters: {
18528
+ query?: never;
18529
+ header?: never;
18530
+ path?: never;
18531
+ cookie?: never;
18532
+ };
18533
+ requestBody: {
18534
+ content: {
18535
+ "application/json": components["schemas"]["OpaPolicyTestRequest"];
18536
+ };
18537
+ };
18538
+ responses: {
18539
+ /** @description Policy evaluation result */
18540
+ 200: {
18541
+ headers: {
18542
+ [name: string]: unknown;
18543
+ };
18544
+ content: {
18545
+ "application/json": components["schemas"]["OpaPolicyTestResponse"];
18546
+ };
18547
+ };
18548
+ 400: components["responses"]["BadRequest"];
18549
+ 401: components["responses"]["Unauthorized"];
18550
+ };
18551
+ };
18552
+ listSubOrgs: {
18553
+ parameters: {
18554
+ query?: never;
18555
+ header?: never;
18556
+ path?: never;
18557
+ cookie?: never;
18558
+ };
18559
+ requestBody?: never;
18560
+ responses: {
18561
+ /** @description Sub-organizations list */
18562
+ 200: {
18563
+ headers: {
18564
+ [name: string]: unknown;
18565
+ };
18566
+ content: {
18567
+ "application/json": components["schemas"]["SubOrgListResponse"];
18568
+ };
18569
+ };
18570
+ 401: components["responses"]["Unauthorized"];
18571
+ };
18572
+ };
18573
+ createSubOrg: {
18574
+ parameters: {
18575
+ query?: never;
18576
+ header?: never;
18577
+ path?: never;
18578
+ cookie?: never;
18579
+ };
18580
+ requestBody: {
18581
+ content: {
18582
+ "application/json": components["schemas"]["CreateSubOrgRequest"];
18583
+ };
18584
+ };
18585
+ responses: {
18586
+ /** @description Sub-organization created */
18587
+ 201: {
18588
+ headers: {
18589
+ [name: string]: unknown;
18590
+ };
18591
+ content: {
18592
+ "application/json": components["schemas"]["SubOrgResponse"];
18593
+ };
18594
+ };
18595
+ 400: components["responses"]["BadRequest"];
18596
+ 401: components["responses"]["Unauthorized"];
18597
+ 403: components["responses"]["Forbidden"];
18598
+ };
18599
+ };
18600
+ getSubOrg: {
18601
+ parameters: {
18602
+ query?: never;
18603
+ header?: never;
18604
+ path: {
18605
+ sub_org_id: string;
18606
+ };
18607
+ cookie?: never;
18608
+ };
18609
+ requestBody?: never;
18610
+ responses: {
18611
+ /** @description Sub-organization details */
18612
+ 200: {
18613
+ headers: {
18614
+ [name: string]: unknown;
18615
+ };
18616
+ content: {
18617
+ "application/json": components["schemas"]["SubOrgResponse"];
18618
+ };
18619
+ };
18620
+ 401: components["responses"]["Unauthorized"];
18621
+ 404: components["responses"]["NotFound"];
18622
+ };
18623
+ };
18624
+ deleteSubOrg: {
18625
+ parameters: {
18626
+ query?: never;
18627
+ header?: never;
18628
+ path: {
18629
+ sub_org_id: string;
18630
+ };
18631
+ cookie?: never;
18632
+ };
18633
+ requestBody?: never;
18634
+ responses: {
18635
+ /** @description Sub-organization archived */
18636
+ 204: {
18637
+ headers: {
18638
+ [name: string]: unknown;
18639
+ };
18640
+ content?: never;
18641
+ };
18642
+ 401: components["responses"]["Unauthorized"];
18643
+ 404: components["responses"]["NotFound"];
18644
+ };
18645
+ };
18646
+ updateSubOrg: {
18647
+ parameters: {
18648
+ query?: never;
18649
+ header?: never;
18650
+ path: {
18651
+ sub_org_id: string;
18652
+ };
18653
+ cookie?: never;
18654
+ };
18655
+ requestBody: {
18656
+ content: {
18657
+ "application/json": components["schemas"]["CreateSubOrgRequest"];
18658
+ };
18659
+ };
18660
+ responses: {
18661
+ /** @description Sub-organization updated */
18662
+ 200: {
18663
+ headers: {
18664
+ [name: string]: unknown;
18665
+ };
18666
+ content: {
18667
+ "application/json": components["schemas"]["SubOrgResponse"];
18668
+ };
18669
+ };
18670
+ 401: components["responses"]["Unauthorized"];
18671
+ 404: components["responses"]["NotFound"];
18672
+ };
18673
+ };
18674
+ addSubOrgUser: {
18675
+ parameters: {
18676
+ query?: never;
18677
+ header?: never;
18678
+ path: {
18679
+ sub_org_id: string;
18680
+ };
18681
+ cookie?: never;
18682
+ };
18683
+ requestBody: {
18684
+ content: {
18685
+ "application/json": components["schemas"]["SubOrgAddUserRequest"];
18686
+ };
18687
+ };
18688
+ responses: {
18689
+ /** @description User added to sub-organization */
18690
+ 201: {
18691
+ headers: {
18692
+ [name: string]: unknown;
18693
+ };
18694
+ content?: never;
18695
+ };
18696
+ 400: components["responses"]["BadRequest"];
18697
+ 401: components["responses"]["Unauthorized"];
18698
+ 404: components["responses"]["NotFound"];
18699
+ };
18700
+ };
18701
+ grantSubOrgPermission: {
18702
+ parameters: {
18703
+ query?: never;
18704
+ header?: never;
18705
+ path: {
18706
+ sub_org_id: string;
18707
+ };
18708
+ cookie?: never;
18709
+ };
18710
+ requestBody: {
18711
+ content: {
18712
+ "application/json": components["schemas"]["SubOrgPermissionRequest"];
18713
+ };
18714
+ };
18715
+ responses: {
18716
+ /** @description Permission granted */
18717
+ 201: {
18718
+ headers: {
18719
+ [name: string]: unknown;
18720
+ };
18721
+ content?: never;
18722
+ };
18723
+ 400: components["responses"]["BadRequest"];
18724
+ 401: components["responses"]["Unauthorized"];
18725
+ 404: components["responses"]["NotFound"];
18726
+ };
18727
+ };
18728
+ generateSubOrgWallets: {
18729
+ parameters: {
18730
+ query?: never;
18731
+ header?: never;
18732
+ path: {
18733
+ sub_org_id: string;
18734
+ };
18735
+ cookie?: never;
18736
+ };
18737
+ requestBody?: {
18738
+ content: {
18739
+ "application/json": components["schemas"]["SubOrgGenerateWalletsRequest"];
18740
+ };
18741
+ };
18742
+ responses: {
18743
+ /** @description Wallets generated */
18744
+ 201: {
18745
+ headers: {
18746
+ [name: string]: unknown;
18747
+ };
18748
+ content?: never;
18749
+ };
18750
+ 401: components["responses"]["Unauthorized"];
18751
+ 403: components["responses"]["Forbidden"];
18752
+ 404: components["responses"]["NotFound"];
18753
+ };
18754
+ };
18755
+ getPortfolio: {
18756
+ parameters: {
18757
+ query?: never;
18758
+ header?: never;
18759
+ path?: never;
18760
+ cookie?: never;
18761
+ };
18762
+ requestBody?: never;
18763
+ responses: {
18764
+ /** @description Portfolio summary */
18765
+ 200: {
18766
+ headers: {
18767
+ [name: string]: unknown;
18768
+ };
18769
+ content: {
18770
+ "application/json": components["schemas"]["PortfolioResponse"];
18771
+ };
18772
+ };
18773
+ 401: components["responses"]["Unauthorized"];
18774
+ };
18775
+ };
18776
+ importSmartAccount: {
18777
+ parameters: {
18778
+ query?: never;
18779
+ header?: never;
18780
+ path: {
18781
+ agent_id: components["parameters"]["AgentId"];
18782
+ };
18783
+ cookie?: never;
18784
+ };
18785
+ requestBody: {
18786
+ content: {
18787
+ "application/json": components["schemas"]["ImportSmartAccountRequest"];
18788
+ };
18789
+ };
18790
+ responses: {
18791
+ /** @description Smart account imported */
18792
+ 201: {
18793
+ headers: {
18794
+ [name: string]: unknown;
18795
+ };
18796
+ content?: never;
18797
+ };
18798
+ 400: components["responses"]["BadRequest"];
18799
+ 401: components["responses"]["Unauthorized"];
18800
+ 403: components["responses"]["Forbidden"];
18801
+ };
18802
+ };
17372
18803
  }
17373
18804
  //# sourceMappingURL=api-types.d.ts.map