@1claw/sdk 0.13.2 → 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/LICENSE CHANGED
@@ -1,133 +1,21 @@
1
- # PolyForm Noncommercial License 1.0.0
2
-
3
- <https://polyformproject.org/licenses/noncommercial/1.0.0>
4
-
5
- Required Notice: Copyright (c) 2026 1Claw Contributors
6
-
7
- ## Acceptance
8
-
9
- In order to get any license under these terms, you must agree
10
- to them as both strict obligations and conditions to all
11
- your licenses.
12
-
13
- ## Copyright License
14
-
15
- The licensor grants you a copyright license for the
16
- software to do everything you might do with the software
17
- that would otherwise infringe the licensor's copyright
18
- in it for any permitted purpose. However, you may
19
- only distribute the software according to [Distribution
20
- License](#distribution-license) and make changes or new works
21
- based on the software according to [Changes and New Works
22
- License](#changes-and-new-works-license).
23
-
24
- ## Distribution License
25
-
26
- The licensor grants you an additional copyright license
27
- to distribute copies of the software. Your license
28
- to distribute covers distributing the software with
29
- changes and new works permitted by [Changes and New Works
30
- License](#changes-and-new-works-license).
31
-
32
- ## Notices
33
-
34
- You must ensure that anyone who gets a copy of any part of
35
- the software from you also gets a copy of these terms or the
36
- URL for them above, as well as copies of any plain-text lines
37
- beginning with `Required Notice:` that the licensor provided
38
- with the software. For example:
39
-
40
- > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
41
-
42
- ## Changes and New Works License
43
-
44
- The licensor grants you an additional copyright license to
45
- make changes and new works based on the software for any
46
- permitted purpose.
47
-
48
- ## Patent License
49
-
50
- The licensor grants you a patent license for the software that
51
- covers patent claims the licensor can license, or becomes able
52
- to license, that you would infringe by using the software.
53
-
54
- ## Noncommercial Purposes
55
-
56
- Any noncommercial purpose is a permitted purpose.
57
-
58
- ## Personal Uses
59
-
60
- Personal use for research, experiment, and testing for
61
- the benefit of public knowledge, personal study, private
62
- entertainment, hobby projects, amateur pursuits, or religious
63
- observance, without any anticipated commercial application,
64
- is use for a permitted purpose.
65
-
66
- ## Noncommercial Organizations
67
-
68
- Use by any charitable organization, educational institution,
69
- public research organization, public safety or health
70
- organization, environmental protection organization,
71
- or government institution is use for a permitted purpose
72
- regardless of the source of funding or obligations resulting
73
- from the funding.
74
-
75
- ## Fair Use
76
-
77
- You may have "fair use" rights for the software under the
78
- law. These terms do not limit them.
79
-
80
- ## No Other Rights
81
-
82
- These terms do not allow you to sublicense or transfer any of
83
- your licenses to anyone else, or prevent the licensor from
84
- granting licenses to anyone else. These terms do not imply
85
- any other licenses.
86
-
87
- ## Patent Defense
88
-
89
- If you make any written claim that the software infringes or
90
- contributes to infringement of any patent, your patent license
91
- for the software granted under these terms ends immediately. If
92
- your company makes such a claim, your patent license ends
93
- immediately for work on behalf of your company.
94
-
95
- ## Violations
96
-
97
- The first time you are notified in writing that you have
98
- violated any of these terms, or done anything with the software
99
- not covered by your licenses, your licenses can nonetheless
100
- continue if you come into full compliance with these terms,
101
- and take practical steps to correct past violations, within
102
- 32 days of receiving notice. Otherwise, all your licenses
103
- end immediately.
104
-
105
- ## No Liability
106
-
107
- ***As far as the law allows, the software comes as is, without
108
- any warranty or condition, and the licensor will not be liable
109
- to you for any damages arising out of these terms or the use
110
- or nature of the software, under any kind of legal claim.***
111
-
112
- ## Definitions
113
-
114
- The **licensor** is the individual or entity offering these
115
- terms, and the **software** is the software the licensor makes
116
- available under these terms.
117
-
118
- **You** refers to the individual or entity agreeing to these
119
- terms.
120
-
121
- **Your company** is any legal entity, sole proprietorship,
122
- or other kind of organization that you work for, plus all
123
- organizations that have control over, are under the control of,
124
- or are under common control with that organization. **Control**
125
- means ownership of substantially all the assets of an entity,
126
- or the power to direct its management and policies by vote,
127
- contract, or otherwise. Control can be direct or indirect.
128
-
129
- **Your licenses** are all the licenses granted to you for the
130
- software under these terms.
131
-
132
- **Use** means anything you do with the software requiring one
133
- of your licenses.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 1Claw Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
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.
@@ -418,4 +419,4 @@ export const oneclawTools = {
418
419
 
419
420
  ## License
420
421
 
421
- PolyForm Noncommercial 1.0.0
422
+ [MIT](./LICENSE)
@@ -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,C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C,IAAI,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,GAAW;IAClC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO,IAAI,UAAU,CAAC,MAAO,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;IACvD,CAAC;IACD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;IACzB,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,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"}
@@ -72,6 +72,28 @@ export interface paths {
72
72
  patch?: never;
73
73
  trace?: never;
74
74
  };
75
+ "/v1/auth/jwt-public-key": {
76
+ parameters: {
77
+ query?: never;
78
+ header?: never;
79
+ path?: never;
80
+ cookie?: never;
81
+ };
82
+ /**
83
+ * Get JWT verification public key
84
+ * @description Returns the Ed25519 public key used to sign JWTs.
85
+ * Use this to verify tokens independently (e.g. in a TEE proxy or
86
+ * gateway). No authentication required.
87
+ */
88
+ get: operations["getJwtPublicKey"];
89
+ put?: never;
90
+ post?: never;
91
+ delete?: never;
92
+ options?: never;
93
+ head?: never;
94
+ patch?: never;
95
+ trace?: never;
96
+ };
75
97
  "/v1/auth/signup": {
76
98
  parameters: {
77
99
  query?: never;
@@ -1173,6 +1195,127 @@ export interface paths {
1173
1195
  patch?: never;
1174
1196
  trace?: never;
1175
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
+ };
1176
1319
  "/v1/admin/settings": {
1177
1320
  parameters: {
1178
1321
  query?: never;
@@ -2366,6 +2509,58 @@ export interface components {
2366
2509
  /** @description How many days the tier lasts (default 365). Use 90 for a 3-month trial. */
2367
2510
  duration_days?: number;
2368
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
+ };
2369
2564
  PaymentRequirement: {
2370
2565
  x402Version?: number;
2371
2566
  accepts?: {
@@ -2566,6 +2761,31 @@ export interface operations {
2566
2761
  401: components["responses"]["Unauthorized"];
2567
2762
  };
2568
2763
  };
2764
+ getJwtPublicKey: {
2765
+ parameters: {
2766
+ query?: never;
2767
+ header?: never;
2768
+ path?: never;
2769
+ cookie?: never;
2770
+ };
2771
+ requestBody?: never;
2772
+ responses: {
2773
+ /** @description JWT public key */
2774
+ 200: {
2775
+ headers: {
2776
+ [name: string]: unknown;
2777
+ };
2778
+ content: {
2779
+ "application/json": {
2780
+ /** @example EdDSA */
2781
+ alg: string;
2782
+ /** @description Base64-encoded Ed25519 public key */
2783
+ public_key_base64: string;
2784
+ };
2785
+ };
2786
+ };
2787
+ };
2788
+ };
2569
2789
  signup: {
2570
2790
  parameters: {
2571
2791
  query?: never;
@@ -4495,6 +4715,216 @@ export interface operations {
4495
4715
  };
4496
4716
  };
4497
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
+ };
4498
4928
  adminListSettings: {
4499
4929
  parameters: {
4500
4930
  query?: never;