@1claw/sdk 0.14.0 → 0.15.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.
package/README.md CHANGED
@@ -79,9 +79,10 @@ await client.auth.google({ id_token: "..." });
79
79
  | `client.approvals` | `request`, `list`, `approve`, `deny`, `check`, `subscribe` |
80
80
  | `client.billing` | `usage`, `history` |
81
81
  | `client.audit` | `query` |
82
- | `client.org` | `listMembers`, `updateMemberRole`, `removeMember` |
82
+ | `client.org` | `listMembers`, `getAgentKeysVault`, `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,IA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,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}
@@ -938,6 +938,26 @@ export interface paths {
938
938
  patch?: never;
939
939
  trace?: never;
940
940
  };
941
+ "/v1/org/agent-keys-vault": {
942
+ parameters: {
943
+ query?: never;
944
+ header?: never;
945
+ path?: never;
946
+ cookie?: never;
947
+ };
948
+ /**
949
+ * Get the org's __agent-keys vault id
950
+ * @description Returns the vault id for the caller's org agent-keys vault (used for revealing agent identity keys). Users only; 404 if the vault does not exist.
951
+ */
952
+ get: operations["getAgentKeysVault"];
953
+ put?: never;
954
+ post?: never;
955
+ delete?: never;
956
+ options?: never;
957
+ head?: never;
958
+ patch?: never;
959
+ trace?: never;
960
+ };
941
961
  "/v1/org/invite": {
942
962
  parameters: {
943
963
  query?: never;
@@ -1195,6 +1215,127 @@ export interface paths {
1195
1215
  patch?: never;
1196
1216
  trace?: never;
1197
1217
  };
1218
+ "/v1/treasury": {
1219
+ parameters: {
1220
+ query?: never;
1221
+ header?: never;
1222
+ path?: never;
1223
+ cookie?: never;
1224
+ };
1225
+ /** List treasuries */
1226
+ get: operations["listTreasuries"];
1227
+ put?: never;
1228
+ /** Create a treasury (Safe multisig) */
1229
+ post: operations["createTreasury"];
1230
+ delete?: never;
1231
+ options?: never;
1232
+ head?: never;
1233
+ patch?: never;
1234
+ trace?: never;
1235
+ };
1236
+ "/v1/treasury/{treasury_id}": {
1237
+ parameters: {
1238
+ query?: never;
1239
+ header?: never;
1240
+ path?: never;
1241
+ cookie?: never;
1242
+ };
1243
+ /** Get treasury details */
1244
+ get: operations["getTreasury"];
1245
+ put?: never;
1246
+ post?: never;
1247
+ delete?: never;
1248
+ options?: never;
1249
+ head?: never;
1250
+ patch?: never;
1251
+ trace?: never;
1252
+ };
1253
+ "/v1/treasury/{treasury_id}/signers": {
1254
+ parameters: {
1255
+ query?: never;
1256
+ header?: never;
1257
+ path?: never;
1258
+ cookie?: never;
1259
+ };
1260
+ get?: never;
1261
+ put?: never;
1262
+ /** Add a signer to a treasury */
1263
+ post: operations["addTreasurySigner"];
1264
+ delete?: never;
1265
+ options?: never;
1266
+ head?: never;
1267
+ patch?: never;
1268
+ trace?: never;
1269
+ };
1270
+ "/v1/treasury/{treasury_id}/signers/{signer_id}": {
1271
+ parameters: {
1272
+ query?: never;
1273
+ header?: never;
1274
+ path?: never;
1275
+ cookie?: never;
1276
+ };
1277
+ get?: never;
1278
+ put?: never;
1279
+ post?: never;
1280
+ /** Remove a signer from a treasury */
1281
+ delete: operations["removeTreasurySigner"];
1282
+ options?: never;
1283
+ head?: never;
1284
+ patch?: never;
1285
+ trace?: never;
1286
+ };
1287
+ "/v1/treasury/{treasury_id}/access-requests": {
1288
+ parameters: {
1289
+ query?: never;
1290
+ header?: never;
1291
+ path?: never;
1292
+ cookie?: never;
1293
+ };
1294
+ /** List access requests for a treasury */
1295
+ get: operations["listTreasuryAccessRequests"];
1296
+ put?: never;
1297
+ /** Request access to a treasury (agent-only) */
1298
+ post: operations["requestTreasuryAccess"];
1299
+ delete?: never;
1300
+ options?: never;
1301
+ head?: never;
1302
+ patch?: never;
1303
+ trace?: never;
1304
+ };
1305
+ "/v1/treasury/{treasury_id}/access-requests/{request_id}/approve": {
1306
+ parameters: {
1307
+ query?: never;
1308
+ header?: never;
1309
+ path?: never;
1310
+ cookie?: never;
1311
+ };
1312
+ get?: never;
1313
+ put?: never;
1314
+ /** Approve an access request */
1315
+ post: operations["approveTreasuryAccess"];
1316
+ delete?: never;
1317
+ options?: never;
1318
+ head?: never;
1319
+ patch?: never;
1320
+ trace?: never;
1321
+ };
1322
+ "/v1/treasury/{treasury_id}/access-requests/{request_id}/deny": {
1323
+ parameters: {
1324
+ query?: never;
1325
+ header?: never;
1326
+ path?: never;
1327
+ cookie?: never;
1328
+ };
1329
+ get?: never;
1330
+ put?: never;
1331
+ /** Deny an access request */
1332
+ post: operations["denyTreasuryAccess"];
1333
+ delete?: never;
1334
+ options?: never;
1335
+ head?: never;
1336
+ patch?: never;
1337
+ trace?: never;
1338
+ };
1198
1339
  "/v1/admin/settings": {
1199
1340
  parameters: {
1200
1341
  query?: never;
@@ -2191,6 +2332,10 @@ export interface components {
2191
2332
  message?: string;
2192
2333
  email?: string;
2193
2334
  };
2335
+ AgentKeysVaultResponse: {
2336
+ /** Format: uuid */
2337
+ vault_id?: string;
2338
+ };
2194
2339
  UsageSummaryResponse: {
2195
2340
  billing_tier?: string;
2196
2341
  free_tier_limit?: number;
@@ -2388,6 +2533,58 @@ export interface components {
2388
2533
  /** @description How many days the tier lasts (default 365). Use 90 for a 3-month trial. */
2389
2534
  duration_days?: number;
2390
2535
  };
2536
+ CreateTreasuryRequest: {
2537
+ name: string;
2538
+ chain: string;
2539
+ chain_id: number;
2540
+ threshold: number;
2541
+ /** @description Pre-deployed Safe address (optional) */
2542
+ safe_address?: string;
2543
+ };
2544
+ TreasuryResponse: {
2545
+ /** Format: uuid */
2546
+ id?: string;
2547
+ /** Format: uuid */
2548
+ org_id?: string;
2549
+ name?: string;
2550
+ safe_address?: string;
2551
+ chain?: string;
2552
+ chain_id?: number;
2553
+ threshold?: number;
2554
+ signers?: components["schemas"]["TreasurySignerResponse"][];
2555
+ /** Format: date-time */
2556
+ created_at?: string;
2557
+ };
2558
+ TreasurySignerResponse: {
2559
+ /** Format: uuid */
2560
+ id?: string;
2561
+ /** @enum {string} */
2562
+ signer_type?: "user" | "agent";
2563
+ /** Format: uuid */
2564
+ signer_id?: string;
2565
+ evm_address?: string;
2566
+ /** Format: date-time */
2567
+ created_at?: string;
2568
+ };
2569
+ AddSignerRequest: {
2570
+ /** @enum {string} */
2571
+ signer_type: "user" | "agent";
2572
+ /** Format: uuid */
2573
+ signer_id: string;
2574
+ };
2575
+ AccessRequestResponse: {
2576
+ /** Format: uuid */
2577
+ id?: string;
2578
+ /** Format: uuid */
2579
+ treasury_id?: string;
2580
+ /** Format: uuid */
2581
+ agent_id?: string;
2582
+ /** @enum {string} */
2583
+ status?: "pending" | "approved" | "denied";
2584
+ evm_address?: string;
2585
+ /** Format: date-time */
2586
+ created_at?: string;
2587
+ };
2391
2588
  PaymentRequirement: {
2392
2589
  x402Version?: number;
2393
2590
  accepts?: {
@@ -4164,6 +4361,33 @@ export interface operations {
4164
4361
  };
4165
4362
  };
4166
4363
  };
4364
+ getAgentKeysVault: {
4365
+ parameters: {
4366
+ query?: never;
4367
+ header?: never;
4368
+ path?: never;
4369
+ cookie?: never;
4370
+ };
4371
+ requestBody?: never;
4372
+ responses: {
4373
+ /** @description Agent-keys vault id */
4374
+ 200: {
4375
+ headers: {
4376
+ [name: string]: unknown;
4377
+ };
4378
+ content: {
4379
+ "application/json": components["schemas"]["AgentKeysVaultResponse"];
4380
+ };
4381
+ };
4382
+ /** @description Agent-keys vault not found */
4383
+ 404: {
4384
+ headers: {
4385
+ [name: string]: unknown;
4386
+ };
4387
+ content?: never;
4388
+ };
4389
+ };
4390
+ };
4167
4391
  inviteMember: {
4168
4392
  parameters: {
4169
4393
  query?: never;
@@ -4542,6 +4766,216 @@ export interface operations {
4542
4766
  };
4543
4767
  };
4544
4768
  };
4769
+ listTreasuries: {
4770
+ parameters: {
4771
+ query?: never;
4772
+ header?: never;
4773
+ path?: never;
4774
+ cookie?: never;
4775
+ };
4776
+ requestBody?: never;
4777
+ responses: {
4778
+ /** @description List of treasuries */
4779
+ 200: {
4780
+ headers: {
4781
+ [name: string]: unknown;
4782
+ };
4783
+ content: {
4784
+ "application/json": {
4785
+ treasuries?: components["schemas"]["TreasuryResponse"][];
4786
+ };
4787
+ };
4788
+ };
4789
+ 401: components["responses"]["Unauthorized"];
4790
+ };
4791
+ };
4792
+ createTreasury: {
4793
+ parameters: {
4794
+ query?: never;
4795
+ header?: never;
4796
+ path?: never;
4797
+ cookie?: never;
4798
+ };
4799
+ requestBody: {
4800
+ content: {
4801
+ "application/json": components["schemas"]["CreateTreasuryRequest"];
4802
+ };
4803
+ };
4804
+ responses: {
4805
+ /** @description Treasury created */
4806
+ 201: {
4807
+ headers: {
4808
+ [name: string]: unknown;
4809
+ };
4810
+ content: {
4811
+ "application/json": components["schemas"]["TreasuryResponse"];
4812
+ };
4813
+ };
4814
+ 400: components["responses"]["BadRequest"];
4815
+ 401: components["responses"]["Unauthorized"];
4816
+ };
4817
+ };
4818
+ getTreasury: {
4819
+ parameters: {
4820
+ query?: never;
4821
+ header?: never;
4822
+ path: {
4823
+ treasury_id: string;
4824
+ };
4825
+ cookie?: never;
4826
+ };
4827
+ requestBody?: never;
4828
+ responses: {
4829
+ /** @description Treasury details */
4830
+ 200: {
4831
+ headers: {
4832
+ [name: string]: unknown;
4833
+ };
4834
+ content: {
4835
+ "application/json": components["schemas"]["TreasuryResponse"];
4836
+ };
4837
+ };
4838
+ 404: components["responses"]["NotFound"];
4839
+ };
4840
+ };
4841
+ addTreasurySigner: {
4842
+ parameters: {
4843
+ query?: never;
4844
+ header?: never;
4845
+ path: {
4846
+ treasury_id: string;
4847
+ };
4848
+ cookie?: never;
4849
+ };
4850
+ requestBody: {
4851
+ content: {
4852
+ "application/json": components["schemas"]["AddSignerRequest"];
4853
+ };
4854
+ };
4855
+ responses: {
4856
+ /** @description Signer added */
4857
+ 201: {
4858
+ headers: {
4859
+ [name: string]: unknown;
4860
+ };
4861
+ content?: never;
4862
+ };
4863
+ 400: components["responses"]["BadRequest"];
4864
+ };
4865
+ };
4866
+ removeTreasurySigner: {
4867
+ parameters: {
4868
+ query?: never;
4869
+ header?: never;
4870
+ path: {
4871
+ treasury_id: string;
4872
+ signer_id: string;
4873
+ };
4874
+ cookie?: never;
4875
+ };
4876
+ requestBody?: never;
4877
+ responses: {
4878
+ /** @description Signer removed */
4879
+ 204: {
4880
+ headers: {
4881
+ [name: string]: unknown;
4882
+ };
4883
+ content?: never;
4884
+ };
4885
+ 404: components["responses"]["NotFound"];
4886
+ };
4887
+ };
4888
+ listTreasuryAccessRequests: {
4889
+ parameters: {
4890
+ query?: never;
4891
+ header?: never;
4892
+ path: {
4893
+ treasury_id: string;
4894
+ };
4895
+ cookie?: never;
4896
+ };
4897
+ requestBody?: never;
4898
+ responses: {
4899
+ /** @description List of access requests */
4900
+ 200: {
4901
+ headers: {
4902
+ [name: string]: unknown;
4903
+ };
4904
+ content: {
4905
+ "application/json": {
4906
+ access_requests?: components["schemas"]["AccessRequestResponse"][];
4907
+ };
4908
+ };
4909
+ };
4910
+ };
4911
+ };
4912
+ requestTreasuryAccess: {
4913
+ parameters: {
4914
+ query?: never;
4915
+ header?: never;
4916
+ path: {
4917
+ treasury_id: string;
4918
+ };
4919
+ cookie?: never;
4920
+ };
4921
+ requestBody?: never;
4922
+ responses: {
4923
+ /** @description Access request created */
4924
+ 201: {
4925
+ headers: {
4926
+ [name: string]: unknown;
4927
+ };
4928
+ content: {
4929
+ "application/json": components["schemas"]["AccessRequestResponse"];
4930
+ };
4931
+ };
4932
+ 403: components["responses"]["Forbidden"];
4933
+ };
4934
+ };
4935
+ approveTreasuryAccess: {
4936
+ parameters: {
4937
+ query?: never;
4938
+ header?: never;
4939
+ path: {
4940
+ treasury_id: string;
4941
+ request_id: string;
4942
+ };
4943
+ cookie?: never;
4944
+ };
4945
+ requestBody?: never;
4946
+ responses: {
4947
+ /** @description Access request approved */
4948
+ 200: {
4949
+ headers: {
4950
+ [name: string]: unknown;
4951
+ };
4952
+ content?: never;
4953
+ };
4954
+ 404: components["responses"]["NotFound"];
4955
+ };
4956
+ };
4957
+ denyTreasuryAccess: {
4958
+ parameters: {
4959
+ query?: never;
4960
+ header?: never;
4961
+ path: {
4962
+ treasury_id: string;
4963
+ request_id: string;
4964
+ };
4965
+ cookie?: never;
4966
+ };
4967
+ requestBody?: never;
4968
+ responses: {
4969
+ /** @description Access request denied */
4970
+ 200: {
4971
+ headers: {
4972
+ [name: string]: unknown;
4973
+ };
4974
+ content?: never;
4975
+ };
4976
+ 404: components["responses"]["NotFound"];
4977
+ };
4978
+ };
4545
4979
  adminListSettings: {
4546
4980
  parameters: {
4547
4981
  query?: never;