@1claw/sdk 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -82,6 +82,7 @@ await client.auth.google({ id_token: "..." });
82
82
  | `client.org` | `listMembers`, `updateMemberRole`, `removeMember` |
83
83
  | `client.auth` | `login`, `signup`, `agentToken`, `apiKeyToken`, `google`, `changePassword`, `logout`, `getMe`, `updateMe`, `deleteMe` |
84
84
  | `client.apiKeys` | `create`, `list`, `revoke` |
85
+ | `client.treasury` | `create`, `list`, `get`, `addSigner`, `removeSigner`, `requestAccess`, `listAccessRequests`, `approveAccess`, `denyAccess` |
85
86
  | `client.x402` | `getPaymentRequirement`, `pay`, `verifyReceipt`, `withPayment` |
86
87
 
87
88
  **Agent create response:** `agents.create()` returns `{ agent: AgentResponse, api_key?: string }`. The `api_key` is only present for `auth_method: "api_key"` and is shown once — use `data.agent.id` and `data.api_key` from the response.
@@ -1 +1 @@
1
- {"version":3,"file":"cmek.d.ts","sourceRoot":"","sources":["../src/cmek.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAaH;;;GAGG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,UAAU,CAAC,CAI3D;AAED;;;GAGG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAKtE;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAC7B,SAAS,EAAE,UAAU,EACrB,QAAQ,EAAE,UAAU,GACrB,OAAO,CAAC,UAAU,CAAC,CAuBrB;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,UAAU,GACrB,OAAO,CAAC,UAAU,CAAC,CA0BrB;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CASjD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAUlD"}
1
+ {"version":3,"file":"cmek.d.ts","sourceRoot":"","sources":["../src/cmek.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAaH;;;GAGG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,UAAU,CAAC,CAI3D;AAED;;;GAGG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAKtE;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAC7B,SAAS,EAAE,UAAU,EACrB,QAAQ,EAAE,UAAU,GACrB,OAAO,CAAC,UAAU,CAAC,CAuBrB;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAC7B,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,UAAU,GACrB,OAAO,CAAC,UAAU,CAAC,CA0BrB;AAKD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CASjD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAUlD"}
package/dist/cmek.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cmek.js","sourceRoot":"","sources":["../src/cmek.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,YAAY,GAAG,IAAI,CAAC;AAC1B,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,UAAU,GAAG,EAAE,CAAC,CAAC,UAAU;AAEjC,0GAA0G;AAC1G,SAAS,aAAa,CAAC,IAAgB;IACnC,MAAM,GAAG,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7C,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,GAAG,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe;IACjC,MAA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AAK,CAAC;AACjB,CAAC"}
@@ -1195,6 +1195,127 @@ export interface paths {
1195
1195
  patch?: never;
1196
1196
  trace?: never;
1197
1197
  };
1198
+ "/v1/treasury": {
1199
+ parameters: {
1200
+ query?: never;
1201
+ header?: never;
1202
+ path?: never;
1203
+ cookie?: never;
1204
+ };
1205
+ /** List treasuries */
1206
+ get: operations["listTreasuries"];
1207
+ put?: never;
1208
+ /** Create a treasury (Safe multisig) */
1209
+ post: operations["createTreasury"];
1210
+ delete?: never;
1211
+ options?: never;
1212
+ head?: never;
1213
+ patch?: never;
1214
+ trace?: never;
1215
+ };
1216
+ "/v1/treasury/{treasury_id}": {
1217
+ parameters: {
1218
+ query?: never;
1219
+ header?: never;
1220
+ path?: never;
1221
+ cookie?: never;
1222
+ };
1223
+ /** Get treasury details */
1224
+ get: operations["getTreasury"];
1225
+ put?: never;
1226
+ post?: never;
1227
+ delete?: never;
1228
+ options?: never;
1229
+ head?: never;
1230
+ patch?: never;
1231
+ trace?: never;
1232
+ };
1233
+ "/v1/treasury/{treasury_id}/signers": {
1234
+ parameters: {
1235
+ query?: never;
1236
+ header?: never;
1237
+ path?: never;
1238
+ cookie?: never;
1239
+ };
1240
+ get?: never;
1241
+ put?: never;
1242
+ /** Add a signer to a treasury */
1243
+ post: operations["addTreasurySigner"];
1244
+ delete?: never;
1245
+ options?: never;
1246
+ head?: never;
1247
+ patch?: never;
1248
+ trace?: never;
1249
+ };
1250
+ "/v1/treasury/{treasury_id}/signers/{signer_id}": {
1251
+ parameters: {
1252
+ query?: never;
1253
+ header?: never;
1254
+ path?: never;
1255
+ cookie?: never;
1256
+ };
1257
+ get?: never;
1258
+ put?: never;
1259
+ post?: never;
1260
+ /** Remove a signer from a treasury */
1261
+ delete: operations["removeTreasurySigner"];
1262
+ options?: never;
1263
+ head?: never;
1264
+ patch?: never;
1265
+ trace?: never;
1266
+ };
1267
+ "/v1/treasury/{treasury_id}/access-requests": {
1268
+ parameters: {
1269
+ query?: never;
1270
+ header?: never;
1271
+ path?: never;
1272
+ cookie?: never;
1273
+ };
1274
+ /** List access requests for a treasury */
1275
+ get: operations["listTreasuryAccessRequests"];
1276
+ put?: never;
1277
+ /** Request access to a treasury (agent-only) */
1278
+ post: operations["requestTreasuryAccess"];
1279
+ delete?: never;
1280
+ options?: never;
1281
+ head?: never;
1282
+ patch?: never;
1283
+ trace?: never;
1284
+ };
1285
+ "/v1/treasury/{treasury_id}/access-requests/{request_id}/approve": {
1286
+ parameters: {
1287
+ query?: never;
1288
+ header?: never;
1289
+ path?: never;
1290
+ cookie?: never;
1291
+ };
1292
+ get?: never;
1293
+ put?: never;
1294
+ /** Approve an access request */
1295
+ post: operations["approveTreasuryAccess"];
1296
+ delete?: never;
1297
+ options?: never;
1298
+ head?: never;
1299
+ patch?: never;
1300
+ trace?: never;
1301
+ };
1302
+ "/v1/treasury/{treasury_id}/access-requests/{request_id}/deny": {
1303
+ parameters: {
1304
+ query?: never;
1305
+ header?: never;
1306
+ path?: never;
1307
+ cookie?: never;
1308
+ };
1309
+ get?: never;
1310
+ put?: never;
1311
+ /** Deny an access request */
1312
+ post: operations["denyTreasuryAccess"];
1313
+ delete?: never;
1314
+ options?: never;
1315
+ head?: never;
1316
+ patch?: never;
1317
+ trace?: never;
1318
+ };
1198
1319
  "/v1/admin/settings": {
1199
1320
  parameters: {
1200
1321
  query?: never;
@@ -2388,6 +2509,58 @@ export interface components {
2388
2509
  /** @description How many days the tier lasts (default 365). Use 90 for a 3-month trial. */
2389
2510
  duration_days?: number;
2390
2511
  };
2512
+ CreateTreasuryRequest: {
2513
+ name: string;
2514
+ chain: string;
2515
+ chain_id: number;
2516
+ threshold: number;
2517
+ /** @description Pre-deployed Safe address (optional) */
2518
+ safe_address?: string;
2519
+ };
2520
+ TreasuryResponse: {
2521
+ /** Format: uuid */
2522
+ id?: string;
2523
+ /** Format: uuid */
2524
+ org_id?: string;
2525
+ name?: string;
2526
+ safe_address?: string;
2527
+ chain?: string;
2528
+ chain_id?: number;
2529
+ threshold?: number;
2530
+ signers?: components["schemas"]["TreasurySignerResponse"][];
2531
+ /** Format: date-time */
2532
+ created_at?: string;
2533
+ };
2534
+ TreasurySignerResponse: {
2535
+ /** Format: uuid */
2536
+ id?: string;
2537
+ /** @enum {string} */
2538
+ signer_type?: "user" | "agent";
2539
+ /** Format: uuid */
2540
+ signer_id?: string;
2541
+ evm_address?: string;
2542
+ /** Format: date-time */
2543
+ created_at?: string;
2544
+ };
2545
+ AddSignerRequest: {
2546
+ /** @enum {string} */
2547
+ signer_type: "user" | "agent";
2548
+ /** Format: uuid */
2549
+ signer_id: string;
2550
+ };
2551
+ AccessRequestResponse: {
2552
+ /** Format: uuid */
2553
+ id?: string;
2554
+ /** Format: uuid */
2555
+ treasury_id?: string;
2556
+ /** Format: uuid */
2557
+ agent_id?: string;
2558
+ /** @enum {string} */
2559
+ status?: "pending" | "approved" | "denied";
2560
+ evm_address?: string;
2561
+ /** Format: date-time */
2562
+ created_at?: string;
2563
+ };
2391
2564
  PaymentRequirement: {
2392
2565
  x402Version?: number;
2393
2566
  accepts?: {
@@ -4542,6 +4715,216 @@ export interface operations {
4542
4715
  };
4543
4716
  };
4544
4717
  };
4718
+ listTreasuries: {
4719
+ parameters: {
4720
+ query?: never;
4721
+ header?: never;
4722
+ path?: never;
4723
+ cookie?: never;
4724
+ };
4725
+ requestBody?: never;
4726
+ responses: {
4727
+ /** @description List of treasuries */
4728
+ 200: {
4729
+ headers: {
4730
+ [name: string]: unknown;
4731
+ };
4732
+ content: {
4733
+ "application/json": {
4734
+ treasuries?: components["schemas"]["TreasuryResponse"][];
4735
+ };
4736
+ };
4737
+ };
4738
+ 401: components["responses"]["Unauthorized"];
4739
+ };
4740
+ };
4741
+ createTreasury: {
4742
+ parameters: {
4743
+ query?: never;
4744
+ header?: never;
4745
+ path?: never;
4746
+ cookie?: never;
4747
+ };
4748
+ requestBody: {
4749
+ content: {
4750
+ "application/json": components["schemas"]["CreateTreasuryRequest"];
4751
+ };
4752
+ };
4753
+ responses: {
4754
+ /** @description Treasury created */
4755
+ 201: {
4756
+ headers: {
4757
+ [name: string]: unknown;
4758
+ };
4759
+ content: {
4760
+ "application/json": components["schemas"]["TreasuryResponse"];
4761
+ };
4762
+ };
4763
+ 400: components["responses"]["BadRequest"];
4764
+ 401: components["responses"]["Unauthorized"];
4765
+ };
4766
+ };
4767
+ getTreasury: {
4768
+ parameters: {
4769
+ query?: never;
4770
+ header?: never;
4771
+ path: {
4772
+ treasury_id: string;
4773
+ };
4774
+ cookie?: never;
4775
+ };
4776
+ requestBody?: never;
4777
+ responses: {
4778
+ /** @description Treasury details */
4779
+ 200: {
4780
+ headers: {
4781
+ [name: string]: unknown;
4782
+ };
4783
+ content: {
4784
+ "application/json": components["schemas"]["TreasuryResponse"];
4785
+ };
4786
+ };
4787
+ 404: components["responses"]["NotFound"];
4788
+ };
4789
+ };
4790
+ addTreasurySigner: {
4791
+ parameters: {
4792
+ query?: never;
4793
+ header?: never;
4794
+ path: {
4795
+ treasury_id: string;
4796
+ };
4797
+ cookie?: never;
4798
+ };
4799
+ requestBody: {
4800
+ content: {
4801
+ "application/json": components["schemas"]["AddSignerRequest"];
4802
+ };
4803
+ };
4804
+ responses: {
4805
+ /** @description Signer added */
4806
+ 201: {
4807
+ headers: {
4808
+ [name: string]: unknown;
4809
+ };
4810
+ content?: never;
4811
+ };
4812
+ 400: components["responses"]["BadRequest"];
4813
+ };
4814
+ };
4815
+ removeTreasurySigner: {
4816
+ parameters: {
4817
+ query?: never;
4818
+ header?: never;
4819
+ path: {
4820
+ treasury_id: string;
4821
+ signer_id: string;
4822
+ };
4823
+ cookie?: never;
4824
+ };
4825
+ requestBody?: never;
4826
+ responses: {
4827
+ /** @description Signer removed */
4828
+ 204: {
4829
+ headers: {
4830
+ [name: string]: unknown;
4831
+ };
4832
+ content?: never;
4833
+ };
4834
+ 404: components["responses"]["NotFound"];
4835
+ };
4836
+ };
4837
+ listTreasuryAccessRequests: {
4838
+ parameters: {
4839
+ query?: never;
4840
+ header?: never;
4841
+ path: {
4842
+ treasury_id: string;
4843
+ };
4844
+ cookie?: never;
4845
+ };
4846
+ requestBody?: never;
4847
+ responses: {
4848
+ /** @description List of access requests */
4849
+ 200: {
4850
+ headers: {
4851
+ [name: string]: unknown;
4852
+ };
4853
+ content: {
4854
+ "application/json": {
4855
+ access_requests?: components["schemas"]["AccessRequestResponse"][];
4856
+ };
4857
+ };
4858
+ };
4859
+ };
4860
+ };
4861
+ requestTreasuryAccess: {
4862
+ parameters: {
4863
+ query?: never;
4864
+ header?: never;
4865
+ path: {
4866
+ treasury_id: string;
4867
+ };
4868
+ cookie?: never;
4869
+ };
4870
+ requestBody?: never;
4871
+ responses: {
4872
+ /** @description Access request created */
4873
+ 201: {
4874
+ headers: {
4875
+ [name: string]: unknown;
4876
+ };
4877
+ content: {
4878
+ "application/json": components["schemas"]["AccessRequestResponse"];
4879
+ };
4880
+ };
4881
+ 403: components["responses"]["Forbidden"];
4882
+ };
4883
+ };
4884
+ approveTreasuryAccess: {
4885
+ parameters: {
4886
+ query?: never;
4887
+ header?: never;
4888
+ path: {
4889
+ treasury_id: string;
4890
+ request_id: string;
4891
+ };
4892
+ cookie?: never;
4893
+ };
4894
+ requestBody?: never;
4895
+ responses: {
4896
+ /** @description Access request approved */
4897
+ 200: {
4898
+ headers: {
4899
+ [name: string]: unknown;
4900
+ };
4901
+ content?: never;
4902
+ };
4903
+ 404: components["responses"]["NotFound"];
4904
+ };
4905
+ };
4906
+ denyTreasuryAccess: {
4907
+ parameters: {
4908
+ query?: never;
4909
+ header?: never;
4910
+ path: {
4911
+ treasury_id: string;
4912
+ request_id: string;
4913
+ };
4914
+ cookie?: never;
4915
+ };
4916
+ requestBody?: never;
4917
+ responses: {
4918
+ /** @description Access request denied */
4919
+ 200: {
4920
+ headers: {
4921
+ [name: string]: unknown;
4922
+ };
4923
+ content?: never;
4924
+ };
4925
+ 404: components["responses"]["NotFound"];
4926
+ };
4927
+ };
4545
4928
  adminListSettings: {
4546
4929
  parameters: {
4547
4930
  query?: never;