@1claw/sdk 0.20.4 → 0.21.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 +2 -1
- package/dist/core/client.d.ts +3 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +2 -0
- package/dist/core/client.js.map +1 -1
- package/dist/generated/api-types.d.ts +271 -0
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/agents.d.ts +7 -1
- package/dist/resources/agents.d.ts.map +1 -1
- package/dist/resources/agents.js +9 -0
- package/dist/resources/agents.js.map +1 -1
- package/dist/resources/signing-keys.d.ts +26 -0
- package/dist/resources/signing-keys.d.ts.map +1 -0
- package/dist/resources/signing-keys.js +33 -0
- package/dist/resources/signing-keys.js.map +1 -0
- package/dist/types.d.ts +80 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ await client.auth.resetPassword({ token: "...", new_password: "..." });
|
|
|
79
79
|
| `client.vault` | `create`, `get`, `list`, `delete`, `enableMpc`, `disableMpc` |
|
|
80
80
|
| `client.secrets` | `set`, `get`, `delete`, `list`, `rotate` |
|
|
81
81
|
| `client.access` | `grantHuman`, `grantAgent`, `update`, `revoke`, `listGrants` |
|
|
82
|
-
| `client.agents` | `enroll` (also `AgentsResource.enroll(baseUrl, …)` static), `create`, `getSelf`, `get`, `list`, `update`, `delete`, `rotateKey`, `rotateIdentityKeys`, `submitTransaction`, `signTransaction`, `getTransaction`, `listTransactions`, `simulateTransaction`, `simulateBundle` |
|
|
82
|
+
| `client.agents` | `enroll` (also `AgentsResource.enroll(baseUrl, …)` static), `create`, `getSelf`, `get`, `list`, `update`, `delete`, `rotateKey`, `rotateIdentityKeys`, `submitTransaction`, `signTransaction`, `getTransaction`, `listTransactions`, `simulateTransaction`, `simulateBundle`, `sign` |
|
|
83
83
|
| `client.chains` | `list`, `get`, `adminList`, `create`, `update`, `delete` |
|
|
84
84
|
| `client.sharing` | `create`, `access`, `listOutbound`, `listInbound`, `accept`, `decline`, `revoke` |
|
|
85
85
|
| `client.approvals` | `request`, `list`, `approve`, `deny`, `check`, `subscribe` |
|
|
@@ -89,6 +89,7 @@ await client.auth.resetPassword({ token: "...", new_password: "..." });
|
|
|
89
89
|
| `client.auth` | `login`, `signup`, `agentToken`, `apiKeyToken`, `google`, `changePassword`, `forgotPassword`, `resetPassword`, `exportData`, `exchangeFederatedToken`, `logout`, `getMe`, `updateMe`, `deleteMe` |
|
|
90
90
|
| `client.apiKeys` | `create`, `list`, `revoke` |
|
|
91
91
|
| `client.treasury` | `create`, `list`, `get`, `update`, `delete`, `addSigner`, `removeSigner`, `requestAccess`, `listAccessRequests`, `approveAccess`, `denyAccess` |
|
|
92
|
+
| `client.signingKeys` | `create`, `list`, `rotate`, `deactivate` |
|
|
92
93
|
| `client.x402` | `getPaymentRequirement`, `pay`, `verifyReceipt`, `withPayment` |
|
|
93
94
|
|
|
94
95
|
**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.
|
package/dist/core/client.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { ApiKeysResource } from "../resources/api-keys";
|
|
|
13
13
|
import { ChainsResource } from "../resources/chains";
|
|
14
14
|
import { X402Resource } from "../resources/x402";
|
|
15
15
|
import { TreasuryResource } from "../resources/treasury";
|
|
16
|
+
import { SigningKeysResource } from "../resources/signing-keys";
|
|
16
17
|
/**
|
|
17
18
|
* The main 1Claw SDK client. All API resources are exposed as
|
|
18
19
|
* namespaced properties for discoverability and tree-shaking.
|
|
@@ -64,6 +65,8 @@ export declare class OneclawClient {
|
|
|
64
65
|
readonly x402: X402Resource;
|
|
65
66
|
/** Safe multisig treasuries — CRUD, signers, agent access requests. */
|
|
66
67
|
readonly treasury: TreasuryResource;
|
|
68
|
+
/** Multi-chain signing keys — create, list, rotate, deactivate per-agent keys. */
|
|
69
|
+
readonly signingKeys: SigningKeysResource;
|
|
67
70
|
constructor(config: OneclawClientConfig);
|
|
68
71
|
private autoAuthenticateUserKey;
|
|
69
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,aAA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AAO,EAAE,eAAe,CAAC;IAClC,mDAAmD;IACnD,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,+CAA+C;IAC/C,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC;IAC1B,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,wEAAwE;IACxE,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,uEAAuE;IACvE,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,kFAAkF;IAClF,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;gBAE9B,MAAM,EAAE,mBAAmB;IA4BvC,OAAO,CAAC,uBAAuB;CAclC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,aAAa,CAEvE"}
|
package/dist/core/client.js
CHANGED
|
@@ -13,6 +13,7 @@ import { ApiKeysResource } from "../resources/api-keys";
|
|
|
13
13
|
import { ChainsResource } from "../resources/chains";
|
|
14
14
|
import { X402Resource } from "../resources/x402";
|
|
15
15
|
import { TreasuryResource } from "../resources/treasury";
|
|
16
|
+
import { SigningKeysResource } from "../resources/signing-keys";
|
|
16
17
|
/**
|
|
17
18
|
* The main 1Claw SDK client. All API resources are exposed as
|
|
18
19
|
* namespaced properties for discoverability and tree-shaking.
|
|
@@ -58,6 +59,7 @@ export class OneclawClient {
|
|
|
58
59
|
this.chains = new ChainsResource(this.http);
|
|
59
60
|
this.x402 = new X402Resource(this.http, config.x402Signer);
|
|
60
61
|
this.treasury = new TreasuryResource(this.http);
|
|
62
|
+
this.signingKeys = new SigningKeysResource(this.http);
|
|
61
63
|
}
|
|
62
64
|
autoAuthenticateUserKey(config) {
|
|
63
65
|
const authPromise = this.http
|
package/dist/core/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAA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IAAI,EAAE,YAAY;gBACtB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEP,WAAW,CAAC,KAAK,CAAC,GAAG,EAAE;YACnB,mDAAmD;QACvD,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,YAAY,CAAC,MAA2B;IACpD,OAAO,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -1067,6 +1067,75 @@ export interface paths {
|
|
|
1067
1067
|
patch?: never;
|
|
1068
1068
|
trace?: never;
|
|
1069
1069
|
};
|
|
1070
|
+
"/v1/agents/{agent_id}/signing-keys": {
|
|
1071
|
+
parameters: {
|
|
1072
|
+
query?: never;
|
|
1073
|
+
header?: never;
|
|
1074
|
+
path?: never;
|
|
1075
|
+
cookie?: never;
|
|
1076
|
+
};
|
|
1077
|
+
/** List signing keys for an agent */
|
|
1078
|
+
get: operations["listSigningKeys"];
|
|
1079
|
+
put?: never;
|
|
1080
|
+
/** Provision a signing key for a chain */
|
|
1081
|
+
post: operations["createSigningKey"];
|
|
1082
|
+
delete?: never;
|
|
1083
|
+
options?: never;
|
|
1084
|
+
head?: never;
|
|
1085
|
+
patch?: never;
|
|
1086
|
+
trace?: never;
|
|
1087
|
+
};
|
|
1088
|
+
"/v1/agents/{agent_id}/signing-keys/{chain}/rotate": {
|
|
1089
|
+
parameters: {
|
|
1090
|
+
query?: never;
|
|
1091
|
+
header?: never;
|
|
1092
|
+
path?: never;
|
|
1093
|
+
cookie?: never;
|
|
1094
|
+
};
|
|
1095
|
+
get?: never;
|
|
1096
|
+
put?: never;
|
|
1097
|
+
/** Rotate a signing key for a chain */
|
|
1098
|
+
post: operations["rotateSigningKey"];
|
|
1099
|
+
delete?: never;
|
|
1100
|
+
options?: never;
|
|
1101
|
+
head?: never;
|
|
1102
|
+
patch?: never;
|
|
1103
|
+
trace?: never;
|
|
1104
|
+
};
|
|
1105
|
+
"/v1/agents/{agent_id}/signing-keys/{chain}": {
|
|
1106
|
+
parameters: {
|
|
1107
|
+
query?: never;
|
|
1108
|
+
header?: never;
|
|
1109
|
+
path?: never;
|
|
1110
|
+
cookie?: never;
|
|
1111
|
+
};
|
|
1112
|
+
get?: never;
|
|
1113
|
+
put?: never;
|
|
1114
|
+
post?: never;
|
|
1115
|
+
/** Deactivate a signing key for a chain */
|
|
1116
|
+
delete: operations["deactivateSigningKey"];
|
|
1117
|
+
options?: never;
|
|
1118
|
+
head?: never;
|
|
1119
|
+
patch?: never;
|
|
1120
|
+
trace?: never;
|
|
1121
|
+
};
|
|
1122
|
+
"/v1/agents/{agent_id}/sign": {
|
|
1123
|
+
parameters: {
|
|
1124
|
+
query?: never;
|
|
1125
|
+
header?: never;
|
|
1126
|
+
path?: never;
|
|
1127
|
+
cookie?: never;
|
|
1128
|
+
};
|
|
1129
|
+
get?: never;
|
|
1130
|
+
put?: never;
|
|
1131
|
+
/** Unified signing intent (EIP-191, EIP-712, EIP-2718 types 0-4) */
|
|
1132
|
+
post: operations["signIntent"];
|
|
1133
|
+
delete?: never;
|
|
1134
|
+
options?: never;
|
|
1135
|
+
head?: never;
|
|
1136
|
+
patch?: never;
|
|
1137
|
+
trace?: never;
|
|
1138
|
+
};
|
|
1070
1139
|
"/v1/chains": {
|
|
1071
1140
|
parameters: {
|
|
1072
1141
|
query?: never;
|
|
@@ -2621,6 +2690,17 @@ export interface components {
|
|
|
2621
2690
|
federation_audiences?: string[];
|
|
2622
2691
|
/** @description Per-agent TTL override for federation tokens (60..=3600). */
|
|
2623
2692
|
federated_token_ttl_seconds?: number | null;
|
|
2693
|
+
/** @description Chains for which this agent has provisioned signing keys. */
|
|
2694
|
+
signing_chains?: string[];
|
|
2695
|
+
/** @description JSON array of allowed EIP-712 domain entries. */
|
|
2696
|
+
eip712_domain_allowlist?: Record<string, never>[];
|
|
2697
|
+
/**
|
|
2698
|
+
* @description Default EIP-712 policy (deny blocks all unless allowlisted).
|
|
2699
|
+
* @enum {string}
|
|
2700
|
+
*/
|
|
2701
|
+
eip712_default_policy?: "deny" | "allow";
|
|
2702
|
+
/** @description Whether EIP-191 personal_sign is enabled. */
|
|
2703
|
+
message_signing_enabled?: boolean;
|
|
2624
2704
|
/** Format: date-time */
|
|
2625
2705
|
created_at: string;
|
|
2626
2706
|
/** Format: date-time */
|
|
@@ -3076,6 +3156,64 @@ export interface components {
|
|
|
3076
3156
|
SimulateBundleRequest: {
|
|
3077
3157
|
transactions: components["schemas"]["SimulateTransactionRequest"][];
|
|
3078
3158
|
};
|
|
3159
|
+
CreateSigningKeyRequest: {
|
|
3160
|
+
/** @enum {string} */
|
|
3161
|
+
chain: "ethereum" | "bitcoin" | "solana" | "xrp" | "cardano" | "tron";
|
|
3162
|
+
};
|
|
3163
|
+
SigningKeyResponse: {
|
|
3164
|
+
/** Format: uuid */
|
|
3165
|
+
id?: string;
|
|
3166
|
+
/** Format: uuid */
|
|
3167
|
+
agent_id?: string;
|
|
3168
|
+
chain?: string;
|
|
3169
|
+
curve?: string;
|
|
3170
|
+
public_key?: string;
|
|
3171
|
+
address?: string | null;
|
|
3172
|
+
key_version?: number;
|
|
3173
|
+
is_active?: boolean;
|
|
3174
|
+
/** Format: date-time */
|
|
3175
|
+
created_at?: string;
|
|
3176
|
+
/** Format: date-time */
|
|
3177
|
+
rotated_at?: string | null;
|
|
3178
|
+
};
|
|
3179
|
+
SigningKeyListResponse: {
|
|
3180
|
+
keys?: components["schemas"]["SigningKeyResponse"][];
|
|
3181
|
+
};
|
|
3182
|
+
SignIntentRequest: {
|
|
3183
|
+
/** @enum {string} */
|
|
3184
|
+
intent_type: "personal_sign" | "typed_data" | "transaction";
|
|
3185
|
+
chain: string;
|
|
3186
|
+
signing_key_path?: string;
|
|
3187
|
+
/** @description Hex-encoded message bytes (for personal_sign) */
|
|
3188
|
+
message?: string;
|
|
3189
|
+
/** @description EIP-712 typed data JSON (for typed_data) */
|
|
3190
|
+
typed_data?: Record<string, never>;
|
|
3191
|
+
/** @description EIP-2718 type: 0=legacy, 1=2930, 2=1559, 3=4844, 4=7702 */
|
|
3192
|
+
tx_type?: number;
|
|
3193
|
+
to?: string;
|
|
3194
|
+
value?: string;
|
|
3195
|
+
data?: string;
|
|
3196
|
+
nonce?: number;
|
|
3197
|
+
gas_limit?: number;
|
|
3198
|
+
gas_price?: string;
|
|
3199
|
+
max_fee_per_gas?: string;
|
|
3200
|
+
max_priority_fee_per_gas?: string;
|
|
3201
|
+
access_list?: Record<string, never>[];
|
|
3202
|
+
max_fee_per_blob_gas?: string;
|
|
3203
|
+
blob_versioned_hashes?: string[];
|
|
3204
|
+
authorization_list?: Record<string, never>[];
|
|
3205
|
+
};
|
|
3206
|
+
SignIntentResponse: {
|
|
3207
|
+
intent_type?: string;
|
|
3208
|
+
chain?: string;
|
|
3209
|
+
from?: string;
|
|
3210
|
+
signature?: string | null;
|
|
3211
|
+
signed_tx?: string | null;
|
|
3212
|
+
tx_hash?: string | null;
|
|
3213
|
+
message_hash?: string | null;
|
|
3214
|
+
typed_data_hash?: string | null;
|
|
3215
|
+
tx_type?: number | null;
|
|
3216
|
+
};
|
|
3079
3217
|
TransactionResponse: {
|
|
3080
3218
|
/** Format: uuid */
|
|
3081
3219
|
id?: string;
|
|
@@ -3736,6 +3874,15 @@ export interface components {
|
|
|
3736
3874
|
"application/json": components["schemas"]["PaymentRequirement"];
|
|
3737
3875
|
};
|
|
3738
3876
|
};
|
|
3877
|
+
/** @description Resource already exists or conflict */
|
|
3878
|
+
Conflict: {
|
|
3879
|
+
headers: {
|
|
3880
|
+
[name: string]: unknown;
|
|
3881
|
+
};
|
|
3882
|
+
content: {
|
|
3883
|
+
"application/json": components["schemas"]["ProblemDetails"];
|
|
3884
|
+
};
|
|
3885
|
+
};
|
|
3739
3886
|
};
|
|
3740
3887
|
parameters: {
|
|
3741
3888
|
VaultId: string;
|
|
@@ -5543,6 +5690,130 @@ export interface operations {
|
|
|
5543
5690
|
402: components["responses"]["PaymentRequired"];
|
|
5544
5691
|
};
|
|
5545
5692
|
};
|
|
5693
|
+
listSigningKeys: {
|
|
5694
|
+
parameters: {
|
|
5695
|
+
query?: never;
|
|
5696
|
+
header?: never;
|
|
5697
|
+
path: {
|
|
5698
|
+
agent_id: components["parameters"]["AgentId"];
|
|
5699
|
+
};
|
|
5700
|
+
cookie?: never;
|
|
5701
|
+
};
|
|
5702
|
+
requestBody?: never;
|
|
5703
|
+
responses: {
|
|
5704
|
+
/** @description Signing keys list */
|
|
5705
|
+
200: {
|
|
5706
|
+
headers: {
|
|
5707
|
+
[name: string]: unknown;
|
|
5708
|
+
};
|
|
5709
|
+
content: {
|
|
5710
|
+
"application/json": components["schemas"]["SigningKeyListResponse"];
|
|
5711
|
+
};
|
|
5712
|
+
};
|
|
5713
|
+
};
|
|
5714
|
+
};
|
|
5715
|
+
createSigningKey: {
|
|
5716
|
+
parameters: {
|
|
5717
|
+
query?: never;
|
|
5718
|
+
header?: never;
|
|
5719
|
+
path: {
|
|
5720
|
+
agent_id: components["parameters"]["AgentId"];
|
|
5721
|
+
};
|
|
5722
|
+
cookie?: never;
|
|
5723
|
+
};
|
|
5724
|
+
requestBody: {
|
|
5725
|
+
content: {
|
|
5726
|
+
"application/json": components["schemas"]["CreateSigningKeyRequest"];
|
|
5727
|
+
};
|
|
5728
|
+
};
|
|
5729
|
+
responses: {
|
|
5730
|
+
/** @description Signing key created */
|
|
5731
|
+
201: {
|
|
5732
|
+
headers: {
|
|
5733
|
+
[name: string]: unknown;
|
|
5734
|
+
};
|
|
5735
|
+
content: {
|
|
5736
|
+
"application/json": components["schemas"]["SigningKeyResponse"];
|
|
5737
|
+
};
|
|
5738
|
+
};
|
|
5739
|
+
400: components["responses"]["BadRequest"];
|
|
5740
|
+
409: components["responses"]["Conflict"];
|
|
5741
|
+
};
|
|
5742
|
+
};
|
|
5743
|
+
rotateSigningKey: {
|
|
5744
|
+
parameters: {
|
|
5745
|
+
query?: never;
|
|
5746
|
+
header?: never;
|
|
5747
|
+
path: {
|
|
5748
|
+
agent_id: components["parameters"]["AgentId"];
|
|
5749
|
+
chain: string;
|
|
5750
|
+
};
|
|
5751
|
+
cookie?: never;
|
|
5752
|
+
};
|
|
5753
|
+
requestBody?: never;
|
|
5754
|
+
responses: {
|
|
5755
|
+
/** @description Rotated signing key */
|
|
5756
|
+
200: {
|
|
5757
|
+
headers: {
|
|
5758
|
+
[name: string]: unknown;
|
|
5759
|
+
};
|
|
5760
|
+
content: {
|
|
5761
|
+
"application/json": components["schemas"]["SigningKeyResponse"];
|
|
5762
|
+
};
|
|
5763
|
+
};
|
|
5764
|
+
404: components["responses"]["NotFound"];
|
|
5765
|
+
};
|
|
5766
|
+
};
|
|
5767
|
+
deactivateSigningKey: {
|
|
5768
|
+
parameters: {
|
|
5769
|
+
query?: never;
|
|
5770
|
+
header?: never;
|
|
5771
|
+
path: {
|
|
5772
|
+
agent_id: components["parameters"]["AgentId"];
|
|
5773
|
+
chain: string;
|
|
5774
|
+
};
|
|
5775
|
+
cookie?: never;
|
|
5776
|
+
};
|
|
5777
|
+
requestBody?: never;
|
|
5778
|
+
responses: {
|
|
5779
|
+
/** @description Key deactivated */
|
|
5780
|
+
204: {
|
|
5781
|
+
headers: {
|
|
5782
|
+
[name: string]: unknown;
|
|
5783
|
+
};
|
|
5784
|
+
content?: never;
|
|
5785
|
+
};
|
|
5786
|
+
404: components["responses"]["NotFound"];
|
|
5787
|
+
};
|
|
5788
|
+
};
|
|
5789
|
+
signIntent: {
|
|
5790
|
+
parameters: {
|
|
5791
|
+
query?: never;
|
|
5792
|
+
header?: never;
|
|
5793
|
+
path: {
|
|
5794
|
+
agent_id: components["parameters"]["AgentId"];
|
|
5795
|
+
};
|
|
5796
|
+
cookie?: never;
|
|
5797
|
+
};
|
|
5798
|
+
requestBody: {
|
|
5799
|
+
content: {
|
|
5800
|
+
"application/json": components["schemas"]["SignIntentRequest"];
|
|
5801
|
+
};
|
|
5802
|
+
};
|
|
5803
|
+
responses: {
|
|
5804
|
+
/** @description Signed result */
|
|
5805
|
+
200: {
|
|
5806
|
+
headers: {
|
|
5807
|
+
[name: string]: unknown;
|
|
5808
|
+
};
|
|
5809
|
+
content: {
|
|
5810
|
+
"application/json": components["schemas"]["SignIntentResponse"];
|
|
5811
|
+
};
|
|
5812
|
+
};
|
|
5813
|
+
400: components["responses"]["BadRequest"];
|
|
5814
|
+
403: components["responses"]["Forbidden"];
|
|
5815
|
+
};
|
|
5816
|
+
};
|
|
5546
5817
|
listChains: {
|
|
5547
5818
|
parameters: {
|
|
5548
5819
|
query?: never;
|