@1claw/sdk 0.46.0 → 0.47.1

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 (49) hide show
  1. package/dist/core/client.d.ts +12 -0
  2. package/dist/core/client.d.ts.map +1 -1
  3. package/dist/core/client.js +8 -0
  4. package/dist/core/client.js.map +1 -1
  5. package/dist/generated/api-types.d.ts +1295 -113
  6. package/dist/generated/api-types.d.ts.map +1 -1
  7. package/dist/index.d.ts +6 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +4 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/resources/access.d.ts +6 -0
  12. package/dist/resources/access.d.ts.map +1 -1
  13. package/dist/resources/access.js +6 -0
  14. package/dist/resources/access.js.map +1 -1
  15. package/dist/resources/agents.d.ts +5 -1
  16. package/dist/resources/agents.d.ts.map +1 -1
  17. package/dist/resources/agents.js +6 -0
  18. package/dist/resources/agents.js.map +1 -1
  19. package/dist/resources/billing.d.ts +3 -1
  20. package/dist/resources/billing.d.ts.map +1 -1
  21. package/dist/resources/billing.js +4 -0
  22. package/dist/resources/billing.js.map +1 -1
  23. package/dist/resources/cedar-policies.d.ts +12 -0
  24. package/dist/resources/cedar-policies.d.ts.map +1 -0
  25. package/dist/resources/cedar-policies.js +21 -0
  26. package/dist/resources/cedar-policies.js.map +1 -0
  27. package/dist/resources/opa-policies.d.ts +12 -0
  28. package/dist/resources/opa-policies.d.ts.map +1 -0
  29. package/dist/resources/opa-policies.js +21 -0
  30. package/dist/resources/opa-policies.js.map +1 -0
  31. package/dist/resources/portfolio.d.ts +12 -0
  32. package/dist/resources/portfolio.d.ts.map +1 -0
  33. package/dist/resources/portfolio.js +15 -0
  34. package/dist/resources/portfolio.js.map +1 -0
  35. package/dist/resources/signing-keys.d.ts +3 -1
  36. package/dist/resources/signing-keys.d.ts.map +1 -1
  37. package/dist/resources/signing-keys.js +4 -0
  38. package/dist/resources/signing-keys.js.map +1 -1
  39. package/dist/resources/sub-orgs.d.ts +15 -0
  40. package/dist/resources/sub-orgs.d.ts.map +1 -0
  41. package/dist/resources/sub-orgs.js +30 -0
  42. package/dist/resources/sub-orgs.js.map +1 -0
  43. package/dist/resources/treasury-wallets.d.ts +11 -1
  44. package/dist/resources/treasury-wallets.d.ts.map +1 -1
  45. package/dist/resources/treasury-wallets.js +4 -0
  46. package/dist/resources/treasury-wallets.js.map +1 -1
  47. package/dist/types.d.ts +125 -1
  48. package/dist/types.d.ts.map +1 -1
  49. 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;
@@ -2177,6 +2198,26 @@ export interface paths {
2177
2198
  patch?: never;
2178
2199
  trace?: never;
2179
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
+ };
2180
2221
  "/v1/billing/overage-method": {
2181
2222
  parameters: {
2182
2223
  query?: never;
@@ -2636,6 +2677,27 @@ export interface paths {
2636
2677
  patch?: never;
2637
2678
  trace?: never;
2638
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
+ };
2639
2701
  "/v1/treasury/wallets/spend-policy": {
2640
2702
  parameters: {
2641
2703
  query?: never;
@@ -5830,122 +5892,432 @@ export interface paths {
5830
5892
  patch?: never;
5831
5893
  trace?: never;
5832
5894
  };
5833
- }
5834
- export type webhooks = Record<string, never>;
5835
- export interface components {
5836
- schemas: {
5837
- OrderCardRequest: {
5838
- /** @enum {string} */
5839
- kind: "prepaid" | "gift_card";
5840
- /**
5841
- * @description USD amount to load onto the card.
5842
- * @example 25.00
5843
- */
5844
- amount_usd: string;
5845
- /** @description Optional Laso gift-card server/brand id (gift cards only). */
5846
- laso_server_id?: string;
5847
- /** @description Optional country (prepaid cards; defaults to US). */
5848
- country?: string;
5849
- };
5850
- /** @description Masked card view — never contains PAN/CVV. */
5851
- CardResponse: {
5852
- /** Format: uuid */
5853
- id: string;
5854
- /** Format: uuid */
5855
- agent_id?: string | null;
5856
- /** @enum {string} */
5857
- issuer: "laso" | "manual";
5858
- /** @enum {string} */
5859
- kind: "prepaid" | "gift_card";
5860
- brand?: string;
5861
- last4?: string;
5862
- exp_month?: number;
5863
- exp_year?: number;
5864
- currency: string;
5865
- order_amount_usd?: string;
5866
- balance?: string;
5867
- /** @enum {string} */
5868
- status: "ordering" | "pending" | "ready" | "depleted" | "expired" | "voided" | "orphaned_payment" | "awaiting_approval" | "rejected";
5869
- /** @enum {string} */
5870
- storage_mode: "reference" | "full";
5871
- reveal_policy: {
5872
- [key: string]: unknown;
5873
- };
5874
- /**
5875
- * Format: uuid
5876
- * @description Linked approval when status is awaiting_approval
5877
- */
5878
- approval_id?: string;
5879
- /** Format: date-time */
5880
- void_after?: string;
5881
- /** Format: date-time */
5882
- created_at: string;
5883
- /** Format: date-time */
5884
- updated_at: string;
5885
- };
5886
- CardListResponse: {
5887
- cards: components["schemas"]["CardResponse"][];
5888
- };
5889
- /** @description Revealed card details — sensitive. Returned only by the reveal endpoint. */
5890
- CardRevealResponse: {
5891
- /** Format: uuid */
5892
- id: string;
5893
- pan?: string;
5894
- cvv?: string;
5895
- exp_month?: number;
5896
- exp_year?: number;
5897
- brand?: string;
5898
- /** @description Gift-card redemption payload (URL/code/PIN) when applicable. */
5899
- redemption?: {
5900
- [key: string]: unknown;
5901
- };
5902
- disclaimer: string;
5895
+ "/v1/org/cedar-policies": {
5896
+ parameters: {
5897
+ query?: never;
5898
+ header?: never;
5899
+ path?: never;
5900
+ cookie?: never;
5903
5901
  };
5904
- /** @description Human-settable per-card reveal policy + lifecycle controls. */
5905
- UpdateCardRequest: {
5906
- agent_reveal?: boolean;
5907
- max_reveals?: number;
5908
- /** Format: date-time */
5909
- reveal_expires_at?: string | null;
5910
- /** Format: date-time */
5911
- void_after?: string | null;
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;
5912
5925
  };
5913
- ImportCardRequest: {
5914
- pan: string;
5915
- cvv: string;
5916
- exp_month: number;
5917
- exp_year: number;
5918
- brand?: string;
5919
- currency?: string;
5920
- balance?: string;
5921
- /** Format: uuid */
5922
- agent_id?: string;
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;
5923
5949
  };
5924
- SearchGiftCardsRequest: {
5925
- query?: string;
5926
- country?: 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;
5927
5969
  };
5928
- /** @description RFC 7807 error envelope */
5929
- ProblemDetails: {
5930
- type?: string;
5931
- title?: string;
5932
- status?: number;
5933
- detail?: 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;
5934
5993
  };
5935
- ResetUsageEventsResponse: {
5936
- /**
5937
- * Format: int64
5938
- * @description Number of usage_events rows removed
5939
- */
5940
- deleted_events: number;
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;
5941
6017
  };
5942
- ResetUsageForUserEmailRequest: {
5943
- /** Format: email */
5944
- email: string;
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;
5945
6037
  };
5946
- ResetUsageForUserEmailResponse: {
5947
- /** Format: int64 */
5948
- deleted_events: number;
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}/permissions/{permission}": {
6124
+ parameters: {
6125
+ query?: never;
6126
+ header?: never;
6127
+ path?: never;
6128
+ cookie?: never;
6129
+ };
6130
+ get?: never;
6131
+ put?: never;
6132
+ post?: never;
6133
+ /**
6134
+ * Revoke a sub-organization permission
6135
+ * @description Revoke a specific permission scope from the sub-organization.
6136
+ */
6137
+ delete: operations["revokeSubOrgPermission"];
6138
+ options?: never;
6139
+ head?: never;
6140
+ patch?: never;
6141
+ trace?: never;
6142
+ };
6143
+ "/v1/org/sub-orgs/{sub_org_id}/wallets/generate": {
6144
+ parameters: {
6145
+ query?: never;
6146
+ header?: never;
6147
+ path?: never;
6148
+ cookie?: never;
6149
+ };
6150
+ get?: never;
6151
+ put?: never;
6152
+ /**
6153
+ * Generate wallets for a sub-organization
6154
+ * @description Generate treasury wallets for specified chains within the sub-org.
6155
+ */
6156
+ post: operations["generateSubOrgWallets"];
6157
+ delete?: never;
6158
+ options?: never;
6159
+ head?: never;
6160
+ patch?: never;
6161
+ trace?: never;
6162
+ };
6163
+ "/v1/portfolio": {
6164
+ parameters: {
6165
+ query?: never;
6166
+ header?: never;
6167
+ path?: never;
6168
+ cookie?: never;
6169
+ };
6170
+ /**
6171
+ * Get unified portfolio
6172
+ * @description Returns an aggregated view of all wallet balances (treasury wallets,
6173
+ * signing keys, smart accounts) with USD estimates.
6174
+ */
6175
+ get: operations["getPortfolio"];
6176
+ put?: never;
6177
+ post?: never;
6178
+ delete?: never;
6179
+ options?: never;
6180
+ head?: never;
6181
+ patch?: never;
6182
+ trace?: never;
6183
+ };
6184
+ "/v1/agents/{agent_id}/smart-accounts/import": {
6185
+ parameters: {
6186
+ query?: never;
6187
+ header?: never;
6188
+ path?: never;
6189
+ cookie?: never;
6190
+ };
6191
+ get?: never;
6192
+ put?: never;
6193
+ /**
6194
+ * Import an existing Safe smart account
6195
+ * @description Import an existing Safe smart account for an agent. Optionally verifies
6196
+ * on-chain that the agent's EOA is a signer on the Safe.
6197
+ */
6198
+ post: operations["importSmartAccount"];
6199
+ delete?: never;
6200
+ options?: never;
6201
+ head?: never;
6202
+ patch?: never;
6203
+ trace?: never;
6204
+ };
6205
+ }
6206
+ export type webhooks = Record<string, never>;
6207
+ export interface components {
6208
+ schemas: {
6209
+ OrderCardRequest: {
6210
+ /** @enum {string} */
6211
+ kind: "prepaid" | "gift_card";
6212
+ /**
6213
+ * @description USD amount to load onto the card.
6214
+ * @example 25.00
6215
+ */
6216
+ amount_usd: string;
6217
+ /** @description Optional Laso gift-card server/brand id (gift cards only). */
6218
+ laso_server_id?: string;
6219
+ /** @description Optional country (prepaid cards; defaults to US). */
6220
+ country?: string;
6221
+ };
6222
+ /** @description Masked card view — never contains PAN/CVV. */
6223
+ CardResponse: {
6224
+ /** Format: uuid */
6225
+ id: string;
6226
+ /** Format: uuid */
6227
+ agent_id?: string | null;
6228
+ /** @enum {string} */
6229
+ issuer: "laso" | "manual";
6230
+ /** @enum {string} */
6231
+ kind: "prepaid" | "gift_card";
6232
+ brand?: string;
6233
+ last4?: string;
6234
+ exp_month?: number;
6235
+ exp_year?: number;
6236
+ currency: string;
6237
+ order_amount_usd?: string;
6238
+ balance?: string;
6239
+ /** @enum {string} */
6240
+ status: "ordering" | "pending" | "ready" | "depleted" | "expired" | "voided" | "orphaned_payment" | "awaiting_approval" | "rejected";
6241
+ /** @enum {string} */
6242
+ storage_mode: "reference" | "full";
6243
+ reveal_policy: {
6244
+ [key: string]: unknown;
6245
+ };
6246
+ /**
6247
+ * Format: uuid
6248
+ * @description Linked approval when status is awaiting_approval
6249
+ */
6250
+ approval_id?: string;
6251
+ /** Format: date-time */
6252
+ void_after?: string;
6253
+ /** Format: date-time */
6254
+ created_at: string;
6255
+ /** Format: date-time */
6256
+ updated_at: string;
6257
+ };
6258
+ CardListResponse: {
6259
+ cards: components["schemas"]["CardResponse"][];
6260
+ };
6261
+ /** @description Revealed card details — sensitive. Returned only by the reveal endpoint. */
6262
+ CardRevealResponse: {
6263
+ /** Format: uuid */
6264
+ id: string;
6265
+ pan?: string;
6266
+ cvv?: string;
6267
+ exp_month?: number;
6268
+ exp_year?: number;
6269
+ brand?: string;
6270
+ /** @description Gift-card redemption payload (URL/code/PIN) when applicable. */
6271
+ redemption?: {
6272
+ [key: string]: unknown;
6273
+ };
6274
+ disclaimer: string;
6275
+ };
6276
+ /** @description Human-settable per-card reveal policy + lifecycle controls. */
6277
+ UpdateCardRequest: {
6278
+ agent_reveal?: boolean;
6279
+ max_reveals?: number;
6280
+ /** Format: date-time */
6281
+ reveal_expires_at?: string | null;
6282
+ /** Format: date-time */
6283
+ void_after?: string | null;
6284
+ };
6285
+ ImportCardRequest: {
6286
+ pan: string;
6287
+ cvv: string;
6288
+ exp_month: number;
6289
+ exp_year: number;
6290
+ brand?: string;
6291
+ currency?: string;
6292
+ balance?: string;
6293
+ /** Format: uuid */
6294
+ agent_id?: string;
6295
+ };
6296
+ SearchGiftCardsRequest: {
6297
+ query?: string;
6298
+ country?: string;
6299
+ };
6300
+ /** @description RFC 7807 error envelope */
6301
+ ProblemDetails: {
6302
+ type?: string;
6303
+ title?: string;
6304
+ status?: number;
6305
+ detail?: string;
6306
+ };
6307
+ ResetUsageEventsResponse: {
6308
+ /**
6309
+ * Format: int64
6310
+ * @description Number of usage_events rows removed
6311
+ */
6312
+ deleted_events: number;
6313
+ };
6314
+ ResetUsageForUserEmailRequest: {
6315
+ /** Format: email */
6316
+ email: string;
6317
+ };
6318
+ ResetUsageForUserEmailResponse: {
6319
+ /** Format: int64 */
6320
+ deleted_events: number;
5949
6321
  /** Format: uuid */
5950
6322
  org_id: string;
5951
6323
  /** Format: uuid */
@@ -6313,6 +6685,16 @@ export interface components {
6313
6685
  };
6314
6686
  /** Format: date-time */
6315
6687
  expires_at?: string;
6688
+ /**
6689
+ * @default allow
6690
+ * @enum {string}
6691
+ */
6692
+ effect: "allow" | "deny";
6693
+ /** @default 0 */
6694
+ priority: number;
6695
+ attribute_conditions?: {
6696
+ [key: string]: unknown;
6697
+ };
6316
6698
  };
6317
6699
  UpdatePolicyRequest: {
6318
6700
  permissions?: string[];
@@ -6321,6 +6703,16 @@ export interface components {
6321
6703
  };
6322
6704
  /** Format: date-time */
6323
6705
  expires_at?: string;
6706
+ /**
6707
+ * @default allow
6708
+ * @enum {string}
6709
+ */
6710
+ effect: "allow" | "deny";
6711
+ /** @default 0 */
6712
+ priority: number;
6713
+ attribute_conditions?: {
6714
+ [key: string]: unknown;
6715
+ };
6324
6716
  };
6325
6717
  PolicyResponse: {
6326
6718
  /** Format: uuid */
@@ -6340,9 +6732,19 @@ export interface components {
6340
6732
  created_by_type?: string;
6341
6733
  /** Format: date-time */
6342
6734
  created_at: string;
6343
- };
6344
- PolicyListResponse: {
6345
- policies?: components["schemas"]["PolicyResponse"][];
6735
+ /**
6736
+ * @default allow
6737
+ * @enum {string}
6738
+ */
6739
+ effect: "allow" | "deny";
6740
+ /** @default 0 */
6741
+ priority: number;
6742
+ attribute_conditions?: {
6743
+ [key: string]: unknown;
6744
+ };
6745
+ };
6746
+ PolicyListResponse: {
6747
+ policies?: components["schemas"]["PolicyResponse"][];
6346
6748
  };
6347
6749
  EnrollAgentRequest: {
6348
6750
  /** @description Display name for the new agent */
@@ -7735,10 +8137,20 @@ export interface components {
7735
8137
  subscription_status?: "active" | "inactive";
7736
8138
  credit_balance?: components["schemas"]["LlmCreditBalance"];
7737
8139
  billing_cycle_usage?: components["schemas"]["LlmBillingCycleUsage"];
8140
+ active_subscription_count?: number;
8141
+ subscription_ids?: string[];
8142
+ warning?: string;
7738
8143
  };
7739
8144
  LlmCheckoutResponse: {
7740
8145
  /** Format: uri */
7741
8146
  checkout_url?: string;
8147
+ already_subscribed?: boolean;
8148
+ subscription_id?: string;
8149
+ };
8150
+ LlmCancelDuplicatesResponse: {
8151
+ cancelled_count: number;
8152
+ cancelled_subscription_ids: string[];
8153
+ remaining_subscription_ids: string[];
7742
8154
  };
7743
8155
  LlmDisableResponse: {
7744
8156
  enabled?: boolean;
@@ -8057,7 +8469,7 @@ export interface components {
8057
8469
  TreasuryWalletSendRequest: {
8058
8470
  /** @description Destination address (0x-prefixed) */
8059
8471
  to: string;
8060
- /** @description Value in wei */
8472
+ /** @description Value in wei (or major-unit decimal string for non-EVM) */
8061
8473
  value_wei: string;
8062
8474
  /** @description Hex-encoded calldata (optional) */
8063
8475
  data?: string;
@@ -8068,6 +8480,22 @@ export interface components {
8068
8480
  * @default false
8069
8481
  */
8070
8482
  gasless: boolean;
8483
+ /** @description Token contract address / mint (ERC-20, SPL, TRC-20, Cardano policy_id.asset_name) */
8484
+ token_mint?: string;
8485
+ /** @description Transaction memo (Solana Memo Program, XRP Memos, Tron extra_data) */
8486
+ memo?: string;
8487
+ /** @description XRP destination tag */
8488
+ destination_tag?: number;
8489
+ /** @description Bitcoin fee rate in sat/vbyte */
8490
+ fee_rate_sat_per_vbyte?: number;
8491
+ /** @description Raw XRPL transaction JSON for advanced XRP transaction types */
8492
+ xrpl_tx_json?: Record<string, never>;
8493
+ /** @description Tron fee limit in sun */
8494
+ fee_limit_sun?: number;
8495
+ /** @description Token decimals (required for non-EVM token transfers when not in known_tokens) */
8496
+ token_decimals?: number;
8497
+ /** @description Cardano transaction TTL (slot number) */
8498
+ ttl?: number;
8071
8499
  };
8072
8500
  TreasuryWalletSendResponse: {
8073
8501
  tx_hash: string;
@@ -9622,6 +10050,161 @@ export interface components {
9622
10050
  OAuthAppCredentialListResponse: {
9623
10051
  credentials?: components["schemas"]["OAuthAppCredentialResponse"][];
9624
10052
  };
10053
+ ImportKeyRequest: {
10054
+ /** @description The private key to import */
10055
+ private_key: string;
10056
+ /**
10057
+ * @description Key format (default hex)
10058
+ * @enum {string}
10059
+ */
10060
+ format?: "hex" | "base64" | "wif";
10061
+ };
10062
+ CreateCedarPolicyRequest: {
10063
+ /** @description Cedar policy text */
10064
+ policy_text: string;
10065
+ description?: string;
10066
+ };
10067
+ CedarPolicyResponse: {
10068
+ /** Format: uuid */
10069
+ id?: string;
10070
+ policy_text?: string;
10071
+ description?: string;
10072
+ /** Format: date-time */
10073
+ created_at?: string;
10074
+ /** Format: uuid */
10075
+ created_by?: string;
10076
+ };
10077
+ CedarPolicyListResponse: {
10078
+ policies?: components["schemas"]["CedarPolicyResponse"][];
10079
+ };
10080
+ CedarPolicyTestRequest: {
10081
+ principal: string;
10082
+ action: string;
10083
+ resource: string;
10084
+ context?: Record<string, never>;
10085
+ };
10086
+ CedarPolicyTestResponse: {
10087
+ /** @enum {string} */
10088
+ decision?: "allow" | "deny";
10089
+ reasons?: string[];
10090
+ };
10091
+ CreateOpaPolicyRequest: {
10092
+ /** @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>;
10097
+ };
10098
+ OpaPolicyResponse: {
10099
+ /** Format: uuid */
10100
+ id?: string;
10101
+ rego_module?: string;
10102
+ description?: string;
10103
+ data?: Record<string, never>;
10104
+ /** Format: date-time */
10105
+ created_at?: string;
10106
+ /** Format: uuid */
10107
+ created_by?: string;
10108
+ };
10109
+ OpaPolicyListResponse: {
10110
+ policies?: components["schemas"]["OpaPolicyResponse"][];
10111
+ };
10112
+ OpaPolicyTestRequest: {
10113
+ /** @description Input document for policy evaluation */
10114
+ input: Record<string, never>;
10115
+ /** @description Optional data override */
10116
+ data?: Record<string, never>;
10117
+ };
10118
+ OpaPolicyTestResponse: {
10119
+ result?: Record<string, never>;
10120
+ /** @enum {string} */
10121
+ decision?: "allow" | "deny";
10122
+ };
10123
+ CreateSubOrgRequest: {
10124
+ name: string;
10125
+ description?: string;
10126
+ /**
10127
+ * @default inherit
10128
+ * @enum {string}
10129
+ */
10130
+ billing_model: "inherit" | "independent";
10131
+ };
10132
+ SubOrgResponse: {
10133
+ /** Format: uuid */
10134
+ id?: string;
10135
+ /** Format: uuid */
10136
+ parent_org_id?: string;
10137
+ name?: string;
10138
+ description?: string;
10139
+ billing_model?: string;
10140
+ /** @enum {string} */
10141
+ status?: "active" | "archived";
10142
+ /** Format: date-time */
10143
+ created_at?: string;
10144
+ };
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[];
10152
+ };
10153
+ SubOrgAddUserRequest: {
10154
+ /** Format: uuid */
10155
+ user_id: string;
10156
+ /**
10157
+ * @default member
10158
+ * @enum {string}
10159
+ */
10160
+ role: "admin" | "member" | "viewer";
10161
+ };
10162
+ SubOrgGenerateWalletsRequest: {
10163
+ chains?: string[];
10164
+ };
10165
+ PortfolioResponse: {
10166
+ wallets?: components["schemas"]["PortfolioWalletEntry"][];
10167
+ total_usd_estimate?: string;
10168
+ };
10169
+ PortfolioWalletEntry: {
10170
+ /** @enum {string} */
10171
+ wallet_type?: "treasury" | "signing_key" | "smart_account";
10172
+ chain?: string;
10173
+ address?: string;
10174
+ native_balance?: string;
10175
+ native_balance_usd?: string;
10176
+ tokens?: components["schemas"]["PortfolioTokenBalance"][];
10177
+ };
10178
+ PortfolioTokenBalance: {
10179
+ contract_address?: string;
10180
+ symbol?: string;
10181
+ name?: string;
10182
+ balance?: string;
10183
+ balance_usd?: string;
10184
+ decimals?: number;
10185
+ };
10186
+ ImportSmartAccountRequest: {
10187
+ chain: string;
10188
+ chain_id: number;
10189
+ safe_address: string;
10190
+ /**
10191
+ * @description Verify on-chain Safe ownership
10192
+ * @default true
10193
+ */
10194
+ verify: boolean;
10195
+ };
10196
+ ImportSmartAccountResponse: {
10197
+ /** Format: uuid */
10198
+ id?: string;
10199
+ /** Format: uuid */
10200
+ agent_id?: string;
10201
+ chain?: string;
10202
+ chain_id?: number;
10203
+ safe_address?: string;
10204
+ nonce?: number | null;
10205
+ /** Format: date-time */
10206
+ created_at?: string;
10207
+ };
9625
10208
  };
9626
10209
  responses: {
9627
10210
  /** @description Invalid request */
@@ -12108,6 +12691,35 @@ export interface operations {
12108
12691
  404: components["responses"]["NotFound"];
12109
12692
  };
12110
12693
  };
12694
+ importSigningKey: {
12695
+ parameters: {
12696
+ query?: never;
12697
+ header?: never;
12698
+ path: {
12699
+ agent_id: components["parameters"]["AgentId"];
12700
+ chain: string;
12701
+ };
12702
+ cookie?: never;
12703
+ };
12704
+ requestBody: {
12705
+ content: {
12706
+ "application/json": components["schemas"]["ImportKeyRequest"];
12707
+ };
12708
+ };
12709
+ responses: {
12710
+ /** @description Signing key imported */
12711
+ 201: {
12712
+ headers: {
12713
+ [name: string]: unknown;
12714
+ };
12715
+ content: {
12716
+ "application/json": components["schemas"]["SigningKeyResponse"];
12717
+ };
12718
+ };
12719
+ 401: components["responses"]["Unauthorized"];
12720
+ 403: components["responses"]["Forbidden"];
12721
+ };
12722
+ };
12111
12723
  leaseBankrKey: {
12112
12724
  parameters: {
12113
12725
  query?: never;
@@ -13320,6 +13932,26 @@ export interface operations {
13320
13932
  };
13321
13933
  };
13322
13934
  };
13935
+ cancelLlmDuplicateSubscriptions: {
13936
+ parameters: {
13937
+ query?: never;
13938
+ header?: never;
13939
+ path?: never;
13940
+ cookie?: never;
13941
+ };
13942
+ requestBody?: never;
13943
+ responses: {
13944
+ /** @description Duplicate subscriptions cancelled */
13945
+ 200: {
13946
+ headers: {
13947
+ [name: string]: unknown;
13948
+ };
13949
+ content: {
13950
+ "application/json": components["schemas"]["LlmCancelDuplicatesResponse"];
13951
+ };
13952
+ };
13953
+ };
13954
+ };
13323
13955
  billingOverageMethod: {
13324
13956
  parameters: {
13325
13957
  query?: never;
@@ -14120,6 +14752,34 @@ export interface operations {
14120
14752
  404: components["responses"]["NotFound"];
14121
14753
  };
14122
14754
  };
14755
+ importTreasuryWallet: {
14756
+ parameters: {
14757
+ query?: never;
14758
+ header?: never;
14759
+ path: {
14760
+ chain: string;
14761
+ };
14762
+ cookie?: never;
14763
+ };
14764
+ requestBody: {
14765
+ content: {
14766
+ "application/json": components["schemas"]["ImportKeyRequest"];
14767
+ };
14768
+ };
14769
+ responses: {
14770
+ /** @description Treasury wallet imported */
14771
+ 201: {
14772
+ headers: {
14773
+ [name: string]: unknown;
14774
+ };
14775
+ content: {
14776
+ "application/json": components["schemas"]["TreasuryWalletResponse"];
14777
+ };
14778
+ };
14779
+ 401: components["responses"]["Unauthorized"];
14780
+ 403: components["responses"]["Forbidden"];
14781
+ };
14782
+ };
14123
14783
  getEffectiveSpendPolicy: {
14124
14784
  parameters: {
14125
14785
  query?: never;
@@ -17681,5 +18341,527 @@ export interface operations {
17681
18341
  };
17682
18342
  };
17683
18343
  };
18344
+ listCedarPolicies: {
18345
+ parameters: {
18346
+ query?: never;
18347
+ header?: never;
18348
+ path?: never;
18349
+ cookie?: never;
18350
+ };
18351
+ requestBody?: never;
18352
+ responses: {
18353
+ /** @description Cedar policies list */
18354
+ 200: {
18355
+ headers: {
18356
+ [name: string]: unknown;
18357
+ };
18358
+ content: {
18359
+ "application/json": components["schemas"]["CedarPolicyListResponse"];
18360
+ };
18361
+ };
18362
+ 401: components["responses"]["Unauthorized"];
18363
+ };
18364
+ };
18365
+ createCedarPolicy: {
18366
+ parameters: {
18367
+ query?: never;
18368
+ header?: never;
18369
+ path?: never;
18370
+ cookie?: never;
18371
+ };
18372
+ requestBody: {
18373
+ content: {
18374
+ "application/json": components["schemas"]["CreateCedarPolicyRequest"];
18375
+ };
18376
+ };
18377
+ responses: {
18378
+ /** @description Cedar policy created */
18379
+ 201: {
18380
+ headers: {
18381
+ [name: string]: unknown;
18382
+ };
18383
+ content: {
18384
+ "application/json": components["schemas"]["CedarPolicyResponse"];
18385
+ };
18386
+ };
18387
+ 400: components["responses"]["BadRequest"];
18388
+ 401: components["responses"]["Unauthorized"];
18389
+ 403: components["responses"]["Forbidden"];
18390
+ };
18391
+ };
18392
+ getCedarPolicy: {
18393
+ parameters: {
18394
+ query?: never;
18395
+ header?: never;
18396
+ path: {
18397
+ id: string;
18398
+ };
18399
+ cookie?: never;
18400
+ };
18401
+ requestBody?: never;
18402
+ responses: {
18403
+ /** @description Cedar policy details */
18404
+ 200: {
18405
+ headers: {
18406
+ [name: string]: unknown;
18407
+ };
18408
+ content: {
18409
+ "application/json": components["schemas"]["CedarPolicyResponse"];
18410
+ };
18411
+ };
18412
+ 401: components["responses"]["Unauthorized"];
18413
+ 404: components["responses"]["NotFound"];
18414
+ };
18415
+ };
18416
+ deleteCedarPolicy: {
18417
+ parameters: {
18418
+ query?: never;
18419
+ header?: never;
18420
+ path: {
18421
+ id: string;
18422
+ };
18423
+ cookie?: never;
18424
+ };
18425
+ requestBody?: never;
18426
+ responses: {
18427
+ /** @description Cedar policy deleted */
18428
+ 204: {
18429
+ headers: {
18430
+ [name: string]: unknown;
18431
+ };
18432
+ content?: never;
18433
+ };
18434
+ 401: components["responses"]["Unauthorized"];
18435
+ 404: components["responses"]["NotFound"];
18436
+ };
18437
+ };
18438
+ testCedarPolicy: {
18439
+ parameters: {
18440
+ query?: never;
18441
+ header?: never;
18442
+ path?: never;
18443
+ cookie?: never;
18444
+ };
18445
+ requestBody: {
18446
+ content: {
18447
+ "application/json": components["schemas"]["CedarPolicyTestRequest"];
18448
+ };
18449
+ };
18450
+ responses: {
18451
+ /** @description Policy evaluation result */
18452
+ 200: {
18453
+ headers: {
18454
+ [name: string]: unknown;
18455
+ };
18456
+ content: {
18457
+ "application/json": components["schemas"]["CedarPolicyTestResponse"];
18458
+ };
18459
+ };
18460
+ 400: components["responses"]["BadRequest"];
18461
+ 401: components["responses"]["Unauthorized"];
18462
+ };
18463
+ };
18464
+ listOpaPolicies: {
18465
+ parameters: {
18466
+ query?: never;
18467
+ header?: never;
18468
+ path?: never;
18469
+ cookie?: never;
18470
+ };
18471
+ requestBody?: never;
18472
+ responses: {
18473
+ /** @description OPA policies list */
18474
+ 200: {
18475
+ headers: {
18476
+ [name: string]: unknown;
18477
+ };
18478
+ content: {
18479
+ "application/json": components["schemas"]["OpaPolicyListResponse"];
18480
+ };
18481
+ };
18482
+ 401: components["responses"]["Unauthorized"];
18483
+ };
18484
+ };
18485
+ createOpaPolicy: {
18486
+ parameters: {
18487
+ query?: never;
18488
+ header?: never;
18489
+ path?: never;
18490
+ cookie?: never;
18491
+ };
18492
+ requestBody: {
18493
+ content: {
18494
+ "application/json": components["schemas"]["CreateOpaPolicyRequest"];
18495
+ };
18496
+ };
18497
+ responses: {
18498
+ /** @description OPA policy created */
18499
+ 201: {
18500
+ headers: {
18501
+ [name: string]: unknown;
18502
+ };
18503
+ content: {
18504
+ "application/json": components["schemas"]["OpaPolicyResponse"];
18505
+ };
18506
+ };
18507
+ 400: components["responses"]["BadRequest"];
18508
+ 401: components["responses"]["Unauthorized"];
18509
+ 403: components["responses"]["Forbidden"];
18510
+ };
18511
+ };
18512
+ getOpaPolicy: {
18513
+ parameters: {
18514
+ query?: never;
18515
+ header?: never;
18516
+ path: {
18517
+ id: string;
18518
+ };
18519
+ cookie?: never;
18520
+ };
18521
+ requestBody?: never;
18522
+ responses: {
18523
+ /** @description OPA policy details */
18524
+ 200: {
18525
+ headers: {
18526
+ [name: string]: unknown;
18527
+ };
18528
+ content: {
18529
+ "application/json": components["schemas"]["OpaPolicyResponse"];
18530
+ };
18531
+ };
18532
+ 401: components["responses"]["Unauthorized"];
18533
+ 404: components["responses"]["NotFound"];
18534
+ };
18535
+ };
18536
+ deleteOpaPolicy: {
18537
+ parameters: {
18538
+ query?: never;
18539
+ header?: never;
18540
+ path: {
18541
+ id: string;
18542
+ };
18543
+ cookie?: never;
18544
+ };
18545
+ requestBody?: never;
18546
+ responses: {
18547
+ /** @description OPA policy deleted */
18548
+ 204: {
18549
+ headers: {
18550
+ [name: string]: unknown;
18551
+ };
18552
+ content?: never;
18553
+ };
18554
+ 401: components["responses"]["Unauthorized"];
18555
+ 404: components["responses"]["NotFound"];
18556
+ };
18557
+ };
18558
+ testOpaPolicy: {
18559
+ parameters: {
18560
+ query?: never;
18561
+ header?: never;
18562
+ path?: never;
18563
+ cookie?: never;
18564
+ };
18565
+ requestBody: {
18566
+ content: {
18567
+ "application/json": components["schemas"]["OpaPolicyTestRequest"];
18568
+ };
18569
+ };
18570
+ responses: {
18571
+ /** @description Policy evaluation result */
18572
+ 200: {
18573
+ headers: {
18574
+ [name: string]: unknown;
18575
+ };
18576
+ content: {
18577
+ "application/json": components["schemas"]["OpaPolicyTestResponse"];
18578
+ };
18579
+ };
18580
+ 400: components["responses"]["BadRequest"];
18581
+ 401: components["responses"]["Unauthorized"];
18582
+ };
18583
+ };
18584
+ listSubOrgs: {
18585
+ parameters: {
18586
+ query?: never;
18587
+ header?: never;
18588
+ path?: never;
18589
+ cookie?: never;
18590
+ };
18591
+ requestBody?: never;
18592
+ responses: {
18593
+ /** @description Sub-organizations list */
18594
+ 200: {
18595
+ headers: {
18596
+ [name: string]: unknown;
18597
+ };
18598
+ content: {
18599
+ "application/json": components["schemas"]["SubOrgListResponse"];
18600
+ };
18601
+ };
18602
+ 401: components["responses"]["Unauthorized"];
18603
+ };
18604
+ };
18605
+ createSubOrg: {
18606
+ parameters: {
18607
+ query?: never;
18608
+ header?: never;
18609
+ path?: never;
18610
+ cookie?: never;
18611
+ };
18612
+ requestBody: {
18613
+ content: {
18614
+ "application/json": components["schemas"]["CreateSubOrgRequest"];
18615
+ };
18616
+ };
18617
+ responses: {
18618
+ /** @description Sub-organization created */
18619
+ 201: {
18620
+ headers: {
18621
+ [name: string]: unknown;
18622
+ };
18623
+ content: {
18624
+ "application/json": components["schemas"]["SubOrgResponse"];
18625
+ };
18626
+ };
18627
+ 400: components["responses"]["BadRequest"];
18628
+ 401: components["responses"]["Unauthorized"];
18629
+ 403: components["responses"]["Forbidden"];
18630
+ };
18631
+ };
18632
+ getSubOrg: {
18633
+ parameters: {
18634
+ query?: never;
18635
+ header?: never;
18636
+ path: {
18637
+ sub_org_id: string;
18638
+ };
18639
+ cookie?: never;
18640
+ };
18641
+ requestBody?: never;
18642
+ responses: {
18643
+ /** @description Sub-organization details */
18644
+ 200: {
18645
+ headers: {
18646
+ [name: string]: unknown;
18647
+ };
18648
+ content: {
18649
+ "application/json": components["schemas"]["SubOrgResponse"];
18650
+ };
18651
+ };
18652
+ 401: components["responses"]["Unauthorized"];
18653
+ 404: components["responses"]["NotFound"];
18654
+ };
18655
+ };
18656
+ deleteSubOrg: {
18657
+ parameters: {
18658
+ query?: never;
18659
+ header?: never;
18660
+ path: {
18661
+ sub_org_id: string;
18662
+ };
18663
+ cookie?: never;
18664
+ };
18665
+ requestBody?: never;
18666
+ responses: {
18667
+ /** @description Sub-organization archived */
18668
+ 204: {
18669
+ headers: {
18670
+ [name: string]: unknown;
18671
+ };
18672
+ content?: never;
18673
+ };
18674
+ 401: components["responses"]["Unauthorized"];
18675
+ 404: components["responses"]["NotFound"];
18676
+ };
18677
+ };
18678
+ updateSubOrg: {
18679
+ parameters: {
18680
+ query?: never;
18681
+ header?: never;
18682
+ path: {
18683
+ sub_org_id: string;
18684
+ };
18685
+ cookie?: never;
18686
+ };
18687
+ requestBody: {
18688
+ content: {
18689
+ "application/json": components["schemas"]["CreateSubOrgRequest"];
18690
+ };
18691
+ };
18692
+ responses: {
18693
+ /** @description Sub-organization updated */
18694
+ 200: {
18695
+ headers: {
18696
+ [name: string]: unknown;
18697
+ };
18698
+ content: {
18699
+ "application/json": components["schemas"]["SubOrgResponse"];
18700
+ };
18701
+ };
18702
+ 401: components["responses"]["Unauthorized"];
18703
+ 404: components["responses"]["NotFound"];
18704
+ };
18705
+ };
18706
+ addSubOrgUser: {
18707
+ parameters: {
18708
+ query?: never;
18709
+ header?: never;
18710
+ path: {
18711
+ sub_org_id: string;
18712
+ };
18713
+ cookie?: never;
18714
+ };
18715
+ requestBody: {
18716
+ content: {
18717
+ "application/json": components["schemas"]["SubOrgAddUserRequest"];
18718
+ };
18719
+ };
18720
+ responses: {
18721
+ /** @description User added to sub-organization */
18722
+ 201: {
18723
+ headers: {
18724
+ [name: string]: unknown;
18725
+ };
18726
+ content?: never;
18727
+ };
18728
+ 400: components["responses"]["BadRequest"];
18729
+ 401: components["responses"]["Unauthorized"];
18730
+ 404: components["responses"]["NotFound"];
18731
+ };
18732
+ };
18733
+ grantSubOrgPermission: {
18734
+ parameters: {
18735
+ query?: never;
18736
+ header?: never;
18737
+ path: {
18738
+ sub_org_id: string;
18739
+ };
18740
+ cookie?: never;
18741
+ };
18742
+ requestBody: {
18743
+ content: {
18744
+ "application/json": components["schemas"]["SubOrgPermissionRequest"];
18745
+ };
18746
+ };
18747
+ responses: {
18748
+ /** @description Permission granted */
18749
+ 201: {
18750
+ headers: {
18751
+ [name: string]: unknown;
18752
+ };
18753
+ content?: never;
18754
+ };
18755
+ 400: components["responses"]["BadRequest"];
18756
+ 401: components["responses"]["Unauthorized"];
18757
+ 404: components["responses"]["NotFound"];
18758
+ };
18759
+ };
18760
+ revokeSubOrgPermission: {
18761
+ parameters: {
18762
+ query?: never;
18763
+ header?: never;
18764
+ path: {
18765
+ sub_org_id: string;
18766
+ /** @description The permission scope to revoke */
18767
+ permission: string;
18768
+ };
18769
+ cookie?: never;
18770
+ };
18771
+ requestBody?: never;
18772
+ responses: {
18773
+ /** @description Permission revoked */
18774
+ 204: {
18775
+ headers: {
18776
+ [name: string]: unknown;
18777
+ };
18778
+ content?: never;
18779
+ };
18780
+ 401: components["responses"]["Unauthorized"];
18781
+ 404: components["responses"]["NotFound"];
18782
+ };
18783
+ };
18784
+ generateSubOrgWallets: {
18785
+ parameters: {
18786
+ query?: never;
18787
+ header?: never;
18788
+ path: {
18789
+ sub_org_id: string;
18790
+ };
18791
+ cookie?: never;
18792
+ };
18793
+ requestBody?: {
18794
+ content: {
18795
+ "application/json": components["schemas"]["SubOrgGenerateWalletsRequest"];
18796
+ };
18797
+ };
18798
+ responses: {
18799
+ /** @description Wallets generated */
18800
+ 201: {
18801
+ headers: {
18802
+ [name: string]: unknown;
18803
+ };
18804
+ content?: never;
18805
+ };
18806
+ 401: components["responses"]["Unauthorized"];
18807
+ 403: components["responses"]["Forbidden"];
18808
+ 404: components["responses"]["NotFound"];
18809
+ };
18810
+ };
18811
+ getPortfolio: {
18812
+ parameters: {
18813
+ query?: {
18814
+ /** @description Comma-separated list of chain names to filter by (e.g. "ethereum,solana") */
18815
+ chains?: string;
18816
+ /** @description Whether to include token balances alongside native balances */
18817
+ include_tokens?: boolean;
18818
+ };
18819
+ header?: never;
18820
+ path?: never;
18821
+ cookie?: never;
18822
+ };
18823
+ requestBody?: never;
18824
+ responses: {
18825
+ /** @description Portfolio summary */
18826
+ 200: {
18827
+ headers: {
18828
+ [name: string]: unknown;
18829
+ };
18830
+ content: {
18831
+ "application/json": components["schemas"]["PortfolioResponse"];
18832
+ };
18833
+ };
18834
+ 401: components["responses"]["Unauthorized"];
18835
+ };
18836
+ };
18837
+ importSmartAccount: {
18838
+ parameters: {
18839
+ query?: never;
18840
+ header?: never;
18841
+ path: {
18842
+ agent_id: components["parameters"]["AgentId"];
18843
+ };
18844
+ cookie?: never;
18845
+ };
18846
+ requestBody: {
18847
+ content: {
18848
+ "application/json": components["schemas"]["ImportSmartAccountRequest"];
18849
+ };
18850
+ };
18851
+ responses: {
18852
+ /** @description Smart account imported */
18853
+ 201: {
18854
+ headers: {
18855
+ [name: string]: unknown;
18856
+ };
18857
+ content: {
18858
+ "application/json": components["schemas"]["ImportSmartAccountResponse"];
18859
+ };
18860
+ };
18861
+ 400: components["responses"]["BadRequest"];
18862
+ 401: components["responses"]["Unauthorized"];
18863
+ 403: components["responses"]["Forbidden"];
18864
+ };
18865
+ };
17684
18866
  }
17685
18867
  //# sourceMappingURL=api-types.d.ts.map