@1claw/sdk 0.56.3 → 0.57.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/generated/api-types.d.ts +551 -1
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/resources/platform.d.ts +83 -0
- package/dist/resources/platform.d.ts.map +1 -1
- package/dist/resources/platform.js +24 -0
- package/dist/resources/platform.js.map +1 -1
- package/dist/resources/treasury-wallets.d.ts +2 -0
- package/dist/resources/treasury-wallets.d.ts.map +1 -1
- package/dist/resources/treasury-wallets.js +4 -0
- package/dist/resources/treasury-wallets.js.map +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -106,7 +106,8 @@ await client.auth.verifyEmailChange({ code: "123456" });
|
|
|
106
106
|
| `client.fiat` | `createOnrampSession`, `initiateOfframp` |
|
|
107
107
|
| `client.signingKeys` | `create`, `list`, `rotate`, `deactivate`, `export` |
|
|
108
108
|
| `client.agents` (Bankr) | `leaseBankrKey`, `listBankrKeys`, `revokeBankrKey` — privileged; `api_key` omitted for agent JWTs (use Shroud) |
|
|
109
|
-
| `client.platform` | `createApp`, `listApps`, `getApp`, `updateApp`, `deleteApp`, `rotateKey`, `rotateWebhookSecret`, `getAppStats`, `marketplace`, `createTemplate`, `listTemplates`, `upsertUser`, `listUsers`, `bootstrapUser`, `reissueClaim`, `claimPreview`, `claimRedeem`, `listConnectedApps`, `disconnectApp`, `grantAccess`, `listGrants`, `revokeGrant`, `createSpendPolicy`, `listSpendPolicies`, `setUserSpendPolicy`, `deleteSpendPolicy`, `updateConnectionDelegation
|
|
109
|
+
| `client.platform` | `createApp`, `listApps`, `getApp`, `updateApp`, `deleteApp`, `rotateKey`, `rotateWebhookSecret`, `getAppStats`, `marketplace`, `createTemplate`, `listTemplates`, `upsertUser`, `listUsers`, `bootstrapUser`, `reissueClaim`, `claimPreview`, `claimRedeem`, `listConnectedApps`, `disconnectApp`, `grantAccess`, `listGrants`, `revokeGrant`, `createSpendPolicy`, `listSpendPolicies`, `setUserSpendPolicy`, `deleteSpendPolicy`, `updateConnectionDelegation`, **`siweChallenge`**, **`getConnection`**, **`getConnectionUsage`**, **`listEntitlements`**, **`refreshEntitlements`**, **`previewTemplate`** |
|
|
110
|
+
| `client.treasuryWallets` | … **`getInferenceBudget`** (platform-connected users) |
|
|
110
111
|
| `client.devices` | `register`, `list`, `delete`, `challenge`, `attest`, `setPushToken` |
|
|
111
112
|
| `client.passkeys` | `list`, `registerBegin`, `registerComplete`, `assertBegin`, `assertComplete`, `delete` |
|
|
112
113
|
| `client.risk` | `listEvents`, `getVerdict`, `listVerdicts`, `createHoneytoken`, `listHoneytokens`, `deleteHoneytoken` |
|
|
@@ -535,6 +535,10 @@ export interface paths {
|
|
|
535
535
|
* @description Disabling `require_passkey_for_vaults` requires `X-Auth-Confirm`
|
|
536
536
|
* (purpose `security.vault_passkey.disable`) with a passkey or TOTP
|
|
537
537
|
* when either is enrolled.
|
|
538
|
+
*
|
|
539
|
+
* Disabling `require_passkey_for_mfa` requires `X-Auth-Confirm`
|
|
540
|
+
* (purpose `security.mfa_passkey.disable`) with a passkey or TOTP
|
|
541
|
+
* when either is enrolled.
|
|
538
542
|
*/
|
|
539
543
|
patch: operations["updateSecuritySettings"];
|
|
540
544
|
trace?: never;
|
|
@@ -629,6 +633,40 @@ export interface paths {
|
|
|
629
633
|
patch?: never;
|
|
630
634
|
trace?: never;
|
|
631
635
|
};
|
|
636
|
+
"/v1/auth/mfa/passkey/begin": {
|
|
637
|
+
parameters: {
|
|
638
|
+
query?: never;
|
|
639
|
+
header?: never;
|
|
640
|
+
path?: never;
|
|
641
|
+
cookie?: never;
|
|
642
|
+
};
|
|
643
|
+
get?: never;
|
|
644
|
+
put?: never;
|
|
645
|
+
/** Begin passkey MFA verification during login */
|
|
646
|
+
post: operations["mfaPasskeyBegin"];
|
|
647
|
+
delete?: never;
|
|
648
|
+
options?: never;
|
|
649
|
+
head?: never;
|
|
650
|
+
patch?: never;
|
|
651
|
+
trace?: never;
|
|
652
|
+
};
|
|
653
|
+
"/v1/auth/mfa/passkey/complete": {
|
|
654
|
+
parameters: {
|
|
655
|
+
query?: never;
|
|
656
|
+
header?: never;
|
|
657
|
+
path?: never;
|
|
658
|
+
cookie?: never;
|
|
659
|
+
};
|
|
660
|
+
get?: never;
|
|
661
|
+
put?: never;
|
|
662
|
+
/** Complete passkey MFA verification during login */
|
|
663
|
+
post: operations["mfaPasskeyComplete"];
|
|
664
|
+
delete?: never;
|
|
665
|
+
options?: never;
|
|
666
|
+
head?: never;
|
|
667
|
+
patch?: never;
|
|
668
|
+
trace?: never;
|
|
669
|
+
};
|
|
632
670
|
"/v1/auth/mfa": {
|
|
633
671
|
parameters: {
|
|
634
672
|
query?: never;
|
|
@@ -3295,6 +3333,27 @@ export interface paths {
|
|
|
3295
3333
|
patch?: never;
|
|
3296
3334
|
trace?: never;
|
|
3297
3335
|
};
|
|
3336
|
+
"/v1/treasury/wallets/inference-budget": {
|
|
3337
|
+
parameters: {
|
|
3338
|
+
query?: never;
|
|
3339
|
+
header?: never;
|
|
3340
|
+
path?: never;
|
|
3341
|
+
cookie?: never;
|
|
3342
|
+
};
|
|
3343
|
+
/**
|
|
3344
|
+
* Get inference budget for current user
|
|
3345
|
+
* @description Returns the user's remaining LLM inference allowance when connected via a platform app.
|
|
3346
|
+
* Includes allowance, spent, remaining USD, per-request cap, and billing period end.
|
|
3347
|
+
*/
|
|
3348
|
+
get: operations["getUserInferenceBudget"];
|
|
3349
|
+
put?: never;
|
|
3350
|
+
post?: never;
|
|
3351
|
+
delete?: never;
|
|
3352
|
+
options?: never;
|
|
3353
|
+
head?: never;
|
|
3354
|
+
patch?: never;
|
|
3355
|
+
trace?: never;
|
|
3356
|
+
};
|
|
3298
3357
|
"/v1/webhooks": {
|
|
3299
3358
|
parameters: {
|
|
3300
3359
|
query?: never;
|
|
@@ -4077,6 +4136,54 @@ export interface paths {
|
|
|
4077
4136
|
patch: operations["updatePlatformTemplate"];
|
|
4078
4137
|
trace?: never;
|
|
4079
4138
|
};
|
|
4139
|
+
"/v1/platform/apps/{appId}/templates/{template_id}/preview": {
|
|
4140
|
+
parameters: {
|
|
4141
|
+
query?: never;
|
|
4142
|
+
header?: never;
|
|
4143
|
+
path?: never;
|
|
4144
|
+
cookie?: never;
|
|
4145
|
+
};
|
|
4146
|
+
get?: never;
|
|
4147
|
+
put?: never;
|
|
4148
|
+
/**
|
|
4149
|
+
* Preview resolved template spec
|
|
4150
|
+
* @description Resolves `{{params.*}}` and `{{subject.*}}` placeholders in a template spec
|
|
4151
|
+
* without provisioning resources. Useful for validating parameterized bootstrap templates.
|
|
4152
|
+
*/
|
|
4153
|
+
post: {
|
|
4154
|
+
parameters: {
|
|
4155
|
+
query?: never;
|
|
4156
|
+
header?: never;
|
|
4157
|
+
path: {
|
|
4158
|
+
appId: string;
|
|
4159
|
+
template_id: string;
|
|
4160
|
+
};
|
|
4161
|
+
cookie?: never;
|
|
4162
|
+
};
|
|
4163
|
+
requestBody?: {
|
|
4164
|
+
content: {
|
|
4165
|
+
"application/json": components["schemas"]["TemplatePreviewRequest"];
|
|
4166
|
+
};
|
|
4167
|
+
};
|
|
4168
|
+
responses: {
|
|
4169
|
+
/** @description Resolved template spec */
|
|
4170
|
+
200: {
|
|
4171
|
+
headers: {
|
|
4172
|
+
[name: string]: unknown;
|
|
4173
|
+
};
|
|
4174
|
+
content: {
|
|
4175
|
+
"application/json": components["schemas"]["TemplatePreviewResponse"];
|
|
4176
|
+
};
|
|
4177
|
+
};
|
|
4178
|
+
404: components["responses"]["NotFound"];
|
|
4179
|
+
};
|
|
4180
|
+
};
|
|
4181
|
+
delete?: never;
|
|
4182
|
+
options?: never;
|
|
4183
|
+
head?: never;
|
|
4184
|
+
patch?: never;
|
|
4185
|
+
trace?: never;
|
|
4186
|
+
};
|
|
4080
4187
|
"/v1/platform/users/upsert": {
|
|
4081
4188
|
parameters: {
|
|
4082
4189
|
query?: never;
|
|
@@ -4138,6 +4245,57 @@ export interface paths {
|
|
|
4138
4245
|
patch?: never;
|
|
4139
4246
|
trace?: never;
|
|
4140
4247
|
};
|
|
4248
|
+
"/v1/platform/siwe/challenge": {
|
|
4249
|
+
parameters: {
|
|
4250
|
+
query?: never;
|
|
4251
|
+
header?: never;
|
|
4252
|
+
path?: never;
|
|
4253
|
+
cookie?: never;
|
|
4254
|
+
};
|
|
4255
|
+
get?: never;
|
|
4256
|
+
put?: never;
|
|
4257
|
+
/**
|
|
4258
|
+
* Issue SIWE nonce
|
|
4259
|
+
* @description Creates a one-time nonce for Sign-In With Ethereum user provisioning.
|
|
4260
|
+
* Requires platform (`plt_`) authentication. The nonce expires in 5 minutes.
|
|
4261
|
+
*/
|
|
4262
|
+
post: {
|
|
4263
|
+
parameters: {
|
|
4264
|
+
query?: never;
|
|
4265
|
+
header?: never;
|
|
4266
|
+
path?: never;
|
|
4267
|
+
cookie?: never;
|
|
4268
|
+
};
|
|
4269
|
+
requestBody?: {
|
|
4270
|
+
content: {
|
|
4271
|
+
"application/json": components["schemas"]["SiweChallengeRequest"];
|
|
4272
|
+
};
|
|
4273
|
+
};
|
|
4274
|
+
responses: {
|
|
4275
|
+
/** @description Nonce issued */
|
|
4276
|
+
200: {
|
|
4277
|
+
headers: {
|
|
4278
|
+
[name: string]: unknown;
|
|
4279
|
+
};
|
|
4280
|
+
content: {
|
|
4281
|
+
"application/json": components["schemas"]["SiweChallengeResponse"];
|
|
4282
|
+
};
|
|
4283
|
+
};
|
|
4284
|
+
/** @description SIWE domain not configured */
|
|
4285
|
+
400: {
|
|
4286
|
+
headers: {
|
|
4287
|
+
[name: string]: unknown;
|
|
4288
|
+
};
|
|
4289
|
+
content?: never;
|
|
4290
|
+
};
|
|
4291
|
+
};
|
|
4292
|
+
};
|
|
4293
|
+
delete?: never;
|
|
4294
|
+
options?: never;
|
|
4295
|
+
head?: never;
|
|
4296
|
+
patch?: never;
|
|
4297
|
+
trace?: never;
|
|
4298
|
+
};
|
|
4141
4299
|
"/v1/platform/apps/{appId}/users": {
|
|
4142
4300
|
parameters: {
|
|
4143
4301
|
query?: never;
|
|
@@ -4293,6 +4451,173 @@ export interface paths {
|
|
|
4293
4451
|
patch?: never;
|
|
4294
4452
|
trace?: never;
|
|
4295
4453
|
};
|
|
4454
|
+
"/v1/platform/connections/{connectionId}": {
|
|
4455
|
+
parameters: {
|
|
4456
|
+
query?: never;
|
|
4457
|
+
header?: never;
|
|
4458
|
+
path?: never;
|
|
4459
|
+
cookie?: never;
|
|
4460
|
+
};
|
|
4461
|
+
/**
|
|
4462
|
+
* Get connection details
|
|
4463
|
+
* @description Returns connection status, claim state, wallet address, and provisioned resource IDs.
|
|
4464
|
+
* Use for polling the claim loop after bootstrap.
|
|
4465
|
+
*/
|
|
4466
|
+
get: {
|
|
4467
|
+
parameters: {
|
|
4468
|
+
query?: never;
|
|
4469
|
+
header?: never;
|
|
4470
|
+
path: {
|
|
4471
|
+
connectionId: string;
|
|
4472
|
+
};
|
|
4473
|
+
cookie?: never;
|
|
4474
|
+
};
|
|
4475
|
+
requestBody?: never;
|
|
4476
|
+
responses: {
|
|
4477
|
+
/** @description Connection details */
|
|
4478
|
+
200: {
|
|
4479
|
+
headers: {
|
|
4480
|
+
[name: string]: unknown;
|
|
4481
|
+
};
|
|
4482
|
+
content: {
|
|
4483
|
+
"application/json": components["schemas"]["ConnectionDetailResponse"];
|
|
4484
|
+
};
|
|
4485
|
+
};
|
|
4486
|
+
404: components["responses"]["NotFound"];
|
|
4487
|
+
};
|
|
4488
|
+
};
|
|
4489
|
+
put?: never;
|
|
4490
|
+
post?: never;
|
|
4491
|
+
delete?: never;
|
|
4492
|
+
options?: never;
|
|
4493
|
+
head?: never;
|
|
4494
|
+
patch?: never;
|
|
4495
|
+
trace?: never;
|
|
4496
|
+
};
|
|
4497
|
+
"/v1/platform/connections/{connectionId}/usage": {
|
|
4498
|
+
parameters: {
|
|
4499
|
+
query?: never;
|
|
4500
|
+
header?: never;
|
|
4501
|
+
path?: never;
|
|
4502
|
+
cookie?: never;
|
|
4503
|
+
};
|
|
4504
|
+
/**
|
|
4505
|
+
* Get per-connection usage
|
|
4506
|
+
* @description Returns inference spend for the current UTC month for this connection.
|
|
4507
|
+
*/
|
|
4508
|
+
get: {
|
|
4509
|
+
parameters: {
|
|
4510
|
+
query?: never;
|
|
4511
|
+
header?: never;
|
|
4512
|
+
path: {
|
|
4513
|
+
connectionId: string;
|
|
4514
|
+
};
|
|
4515
|
+
cookie?: never;
|
|
4516
|
+
};
|
|
4517
|
+
requestBody?: never;
|
|
4518
|
+
responses: {
|
|
4519
|
+
/** @description Usage summary */
|
|
4520
|
+
200: {
|
|
4521
|
+
headers: {
|
|
4522
|
+
[name: string]: unknown;
|
|
4523
|
+
};
|
|
4524
|
+
content: {
|
|
4525
|
+
"application/json": components["schemas"]["ConnectionUsageResponse"];
|
|
4526
|
+
};
|
|
4527
|
+
};
|
|
4528
|
+
404: components["responses"]["NotFound"];
|
|
4529
|
+
};
|
|
4530
|
+
};
|
|
4531
|
+
put?: never;
|
|
4532
|
+
post?: never;
|
|
4533
|
+
delete?: never;
|
|
4534
|
+
options?: never;
|
|
4535
|
+
head?: never;
|
|
4536
|
+
patch?: never;
|
|
4537
|
+
trace?: never;
|
|
4538
|
+
};
|
|
4539
|
+
"/v1/platform/connections/{connectionId}/entitlements": {
|
|
4540
|
+
parameters: {
|
|
4541
|
+
query?: never;
|
|
4542
|
+
header?: never;
|
|
4543
|
+
path?: never;
|
|
4544
|
+
cookie?: never;
|
|
4545
|
+
};
|
|
4546
|
+
/**
|
|
4547
|
+
* List entitlement evaluations
|
|
4548
|
+
* @description Returns on-chain entitlement watch status for the connection.
|
|
4549
|
+
*/
|
|
4550
|
+
get: {
|
|
4551
|
+
parameters: {
|
|
4552
|
+
query?: never;
|
|
4553
|
+
header?: never;
|
|
4554
|
+
path: {
|
|
4555
|
+
connectionId: string;
|
|
4556
|
+
};
|
|
4557
|
+
cookie?: never;
|
|
4558
|
+
};
|
|
4559
|
+
requestBody?: never;
|
|
4560
|
+
responses: {
|
|
4561
|
+
/** @description Entitlement watches */
|
|
4562
|
+
200: {
|
|
4563
|
+
headers: {
|
|
4564
|
+
[name: string]: unknown;
|
|
4565
|
+
};
|
|
4566
|
+
content: {
|
|
4567
|
+
"application/json": components["schemas"]["EntitlementsListResponse"];
|
|
4568
|
+
};
|
|
4569
|
+
};
|
|
4570
|
+
404: components["responses"]["NotFound"];
|
|
4571
|
+
};
|
|
4572
|
+
};
|
|
4573
|
+
put?: never;
|
|
4574
|
+
post?: never;
|
|
4575
|
+
delete?: never;
|
|
4576
|
+
options?: never;
|
|
4577
|
+
head?: never;
|
|
4578
|
+
patch?: never;
|
|
4579
|
+
trace?: never;
|
|
4580
|
+
};
|
|
4581
|
+
"/v1/platform/connections/{connectionId}/entitlements/refresh": {
|
|
4582
|
+
parameters: {
|
|
4583
|
+
query?: never;
|
|
4584
|
+
header?: never;
|
|
4585
|
+
path?: never;
|
|
4586
|
+
cookie?: never;
|
|
4587
|
+
};
|
|
4588
|
+
get?: never;
|
|
4589
|
+
put?: never;
|
|
4590
|
+
/**
|
|
4591
|
+
* Refresh entitlement evaluations
|
|
4592
|
+
* @description Triggers an immediate entitlement monitor cycle for this connection's org.
|
|
4593
|
+
*/
|
|
4594
|
+
post: {
|
|
4595
|
+
parameters: {
|
|
4596
|
+
query?: never;
|
|
4597
|
+
header?: never;
|
|
4598
|
+
path: {
|
|
4599
|
+
connectionId: string;
|
|
4600
|
+
};
|
|
4601
|
+
cookie?: never;
|
|
4602
|
+
};
|
|
4603
|
+
requestBody?: never;
|
|
4604
|
+
responses: {
|
|
4605
|
+
/** @description Refresh accepted */
|
|
4606
|
+
202: {
|
|
4607
|
+
headers: {
|
|
4608
|
+
[name: string]: unknown;
|
|
4609
|
+
};
|
|
4610
|
+
content?: never;
|
|
4611
|
+
};
|
|
4612
|
+
404: components["responses"]["NotFound"];
|
|
4613
|
+
};
|
|
4614
|
+
};
|
|
4615
|
+
delete?: never;
|
|
4616
|
+
options?: never;
|
|
4617
|
+
head?: never;
|
|
4618
|
+
patch?: never;
|
|
4619
|
+
trace?: never;
|
|
4620
|
+
};
|
|
4296
4621
|
"/v1/platform/apps/{appId}/audit": {
|
|
4297
4622
|
parameters: {
|
|
4298
4623
|
query?: never;
|
|
@@ -7442,12 +7767,21 @@ export interface components {
|
|
|
7442
7767
|
refresh_token?: string;
|
|
7443
7768
|
mfa_required?: boolean;
|
|
7444
7769
|
mfa_token?: string;
|
|
7770
|
+
/**
|
|
7771
|
+
* @description When MFA is required, which second factor to collect
|
|
7772
|
+
* @enum {string}
|
|
7773
|
+
*/
|
|
7774
|
+
mfa_method?: "totp" | "passkey";
|
|
7445
7775
|
};
|
|
7446
7776
|
TokenResponse: {
|
|
7447
7777
|
access_token: string;
|
|
7448
7778
|
token_type: string;
|
|
7449
7779
|
expires_in?: number;
|
|
7450
7780
|
refresh_token?: string;
|
|
7781
|
+
mfa_required?: boolean;
|
|
7782
|
+
mfa_token?: string;
|
|
7783
|
+
/** @enum {string} */
|
|
7784
|
+
mfa_method?: "totp" | "passkey";
|
|
7451
7785
|
};
|
|
7452
7786
|
AgentTokenRequest: {
|
|
7453
7787
|
/**
|
|
@@ -7537,6 +7871,9 @@ export interface components {
|
|
|
7537
7871
|
};
|
|
7538
7872
|
MfaStatusResponse: {
|
|
7539
7873
|
enabled?: boolean;
|
|
7874
|
+
eligible?: boolean;
|
|
7875
|
+
totp_enabled?: boolean;
|
|
7876
|
+
passkey_mfa_enabled?: boolean;
|
|
7540
7877
|
};
|
|
7541
7878
|
MfaSetupResponse: {
|
|
7542
7879
|
otpauth_uri?: string;
|
|
@@ -10202,7 +10539,11 @@ export interface components {
|
|
|
10202
10539
|
UpsertPlatformUserRequest: {
|
|
10203
10540
|
/** @description OIDC JWT from the platform's IdP (verified against JWKS) */
|
|
10204
10541
|
subject_token?: string;
|
|
10205
|
-
/**
|
|
10542
|
+
/**
|
|
10543
|
+
* @description Token type for subject_token. Use `urn:1claw:params:oauth:token-type:siwe`
|
|
10544
|
+
* with `siwe_message` and `siwe_signature` for wallet-based provisioning.
|
|
10545
|
+
* @default urn:ietf:params:oauth:token-type:jwt
|
|
10546
|
+
*/
|
|
10206
10547
|
subject_token_type: string;
|
|
10207
10548
|
/**
|
|
10208
10549
|
* Format: email
|
|
@@ -10210,6 +10551,20 @@ export interface components {
|
|
|
10210
10551
|
*/
|
|
10211
10552
|
email?: string;
|
|
10212
10553
|
display_name?: string;
|
|
10554
|
+
/** @description EIP-4361 Sign-In With Ethereum message (required for SIWE upsert) */
|
|
10555
|
+
siwe_message?: string;
|
|
10556
|
+
/** @description Hex-encoded SIWE signature (required for SIWE upsert) */
|
|
10557
|
+
siwe_signature?: string;
|
|
10558
|
+
/**
|
|
10559
|
+
* Format: uri
|
|
10560
|
+
* @description Redirect URL after cross-org link consent
|
|
10561
|
+
*/
|
|
10562
|
+
return_to?: string;
|
|
10563
|
+
/**
|
|
10564
|
+
* @description When true, creates a sub-org under the platform app's org
|
|
10565
|
+
* @default false
|
|
10566
|
+
*/
|
|
10567
|
+
create_sub_org: boolean;
|
|
10213
10568
|
};
|
|
10214
10569
|
PlatformUserResponse: {
|
|
10215
10570
|
/** Format: uuid */
|
|
@@ -10263,6 +10618,13 @@ export interface components {
|
|
|
10263
10618
|
* @description URL to redirect the user to after claiming resources.
|
|
10264
10619
|
*/
|
|
10265
10620
|
return_to?: string;
|
|
10621
|
+
/**
|
|
10622
|
+
* @description Template parameters substituted as `{{params.*}}` during bootstrap.
|
|
10623
|
+
* Combined with `Idempotency-Key` header for params-aware idempotent replay.
|
|
10624
|
+
*/
|
|
10625
|
+
parameters?: {
|
|
10626
|
+
[key: string]: unknown;
|
|
10627
|
+
};
|
|
10266
10628
|
};
|
|
10267
10629
|
BootstrapResponse: {
|
|
10268
10630
|
/** Format: uri */
|
|
@@ -10593,6 +10955,25 @@ export interface components {
|
|
|
10593
10955
|
allowed_tokens?: string[];
|
|
10594
10956
|
/** @description Maximum number of transactions per 24h window */
|
|
10595
10957
|
max_transactions_per_day?: number;
|
|
10958
|
+
/** @description Monthly LLM inference allowance in USD (decimal string) */
|
|
10959
|
+
inference_allowance_usd?: string;
|
|
10960
|
+
/**
|
|
10961
|
+
* @description Percent of allowance held in reserve (not spendable)
|
|
10962
|
+
* @default 25
|
|
10963
|
+
*/
|
|
10964
|
+
inference_reserved_pct: number;
|
|
10965
|
+
/**
|
|
10966
|
+
* @description When true, block inference when allowance is exhausted
|
|
10967
|
+
* @default true
|
|
10968
|
+
*/
|
|
10969
|
+
inference_hard_stop: boolean;
|
|
10970
|
+
/**
|
|
10971
|
+
* @default policy
|
|
10972
|
+
* @enum {string}
|
|
10973
|
+
*/
|
|
10974
|
+
inference_allowance_mode: "policy" | "credits";
|
|
10975
|
+
/** @description Maximum estimated cost per LLM request in USD */
|
|
10976
|
+
max_request_cost_usd?: string;
|
|
10596
10977
|
/**
|
|
10597
10978
|
* @description Human factor auth requirements for send/swap/export.
|
|
10598
10979
|
* Fields: send, swap, export (password_or_passkey | passkey_only | passkey_required | password_only | reauth_token_only),
|
|
@@ -10602,6 +10983,88 @@ export interface components {
|
|
|
10602
10983
|
[key: string]: unknown;
|
|
10603
10984
|
};
|
|
10604
10985
|
};
|
|
10986
|
+
SiweChallengeRequest: {
|
|
10987
|
+
/** @description Optional SIWE domain override (defaults to platform app's siwe_domain) */
|
|
10988
|
+
domain?: string;
|
|
10989
|
+
};
|
|
10990
|
+
SiweChallengeResponse: {
|
|
10991
|
+
nonce: string;
|
|
10992
|
+
/** @description Seconds until nonce expiry */
|
|
10993
|
+
expires_in: number;
|
|
10994
|
+
domain: string;
|
|
10995
|
+
};
|
|
10996
|
+
ConnectionDetailResponse: {
|
|
10997
|
+
/** Format: uuid */
|
|
10998
|
+
connection_id: string;
|
|
10999
|
+
/** Format: uuid */
|
|
11000
|
+
user_id: string;
|
|
11001
|
+
status: string;
|
|
11002
|
+
entitlement_status: string;
|
|
11003
|
+
wallet_address?: string | null;
|
|
11004
|
+
vault_ids: string[];
|
|
11005
|
+
agent_ids: string[];
|
|
11006
|
+
/** Format: date-time */
|
|
11007
|
+
claimed_at?: string | null;
|
|
11008
|
+
claim: components["schemas"]["ClaimStatusResponse"];
|
|
11009
|
+
};
|
|
11010
|
+
ClaimStatusResponse: {
|
|
11011
|
+
/** @enum {string} */
|
|
11012
|
+
status: "pending" | "active" | "claimed";
|
|
11013
|
+
/** Format: date-time */
|
|
11014
|
+
redeemed_at?: string | null;
|
|
11015
|
+
};
|
|
11016
|
+
ConnectionUsageResponse: {
|
|
11017
|
+
/** Format: uuid */
|
|
11018
|
+
connection_id: string;
|
|
11019
|
+
/** @description UTC month (YYYY-MM) */
|
|
11020
|
+
period: string;
|
|
11021
|
+
inference_spent_usd: string;
|
|
11022
|
+
};
|
|
11023
|
+
EntitlementsListResponse: {
|
|
11024
|
+
evaluations: components["schemas"]["EntitlementEvaluationResponse"][];
|
|
11025
|
+
};
|
|
11026
|
+
EntitlementEvaluationResponse: {
|
|
11027
|
+
id: string;
|
|
11028
|
+
status: string;
|
|
11029
|
+
watch_kind: string;
|
|
11030
|
+
chain: string;
|
|
11031
|
+
holder_address: string;
|
|
11032
|
+
last_value_raw?: string | null;
|
|
11033
|
+
/** Format: date-time */
|
|
11034
|
+
last_checked_at?: string | null;
|
|
11035
|
+
};
|
|
11036
|
+
TemplatePreviewRequest: {
|
|
11037
|
+
parameters?: {
|
|
11038
|
+
[key: string]: unknown;
|
|
11039
|
+
};
|
|
11040
|
+
subject?: {
|
|
11041
|
+
user_id?: string;
|
|
11042
|
+
external_subject?: string;
|
|
11043
|
+
wallet_address?: string;
|
|
11044
|
+
email?: string;
|
|
11045
|
+
};
|
|
11046
|
+
};
|
|
11047
|
+
TemplatePreviewResponse: {
|
|
11048
|
+
resolved_spec: {
|
|
11049
|
+
[key: string]: unknown;
|
|
11050
|
+
};
|
|
11051
|
+
};
|
|
11052
|
+
InferenceBudgetResponse: {
|
|
11053
|
+
allowance_usd: string;
|
|
11054
|
+
spent_usd: string;
|
|
11055
|
+
remaining_usd: string;
|
|
11056
|
+
reserved_pct: number;
|
|
11057
|
+
max_request_cost_usd: string;
|
|
11058
|
+
/** Format: date-time */
|
|
11059
|
+
period_end: string;
|
|
11060
|
+
/** Format: uuid */
|
|
11061
|
+
connection_id?: string | null;
|
|
11062
|
+
};
|
|
11063
|
+
InferenceBudgetUnconfiguredResponse: {
|
|
11064
|
+
allowance_usd?: string | null;
|
|
11065
|
+
remaining_usd?: unknown;
|
|
11066
|
+
message?: string;
|
|
11067
|
+
};
|
|
10605
11068
|
SpendPolicyResponse: {
|
|
10606
11069
|
/** Format: uuid */
|
|
10607
11070
|
id: string;
|
|
@@ -10616,6 +11079,11 @@ export interface components {
|
|
|
10616
11079
|
allowed_chains?: string[];
|
|
10617
11080
|
allowed_tokens?: string[];
|
|
10618
11081
|
max_transactions_per_day?: number | null;
|
|
11082
|
+
inference_allowance_usd?: string | null;
|
|
11083
|
+
inference_reserved_pct?: number | null;
|
|
11084
|
+
inference_hard_stop?: boolean | null;
|
|
11085
|
+
inference_allowance_mode?: string | null;
|
|
11086
|
+
max_request_cost_usd?: string | null;
|
|
10619
11087
|
human_factor_auth?: {
|
|
10620
11088
|
[key: string]: unknown;
|
|
10621
11089
|
} | null;
|
|
@@ -10672,6 +11140,13 @@ export interface components {
|
|
|
10672
11140
|
type: "public-key";
|
|
10673
11141
|
transports?: string[];
|
|
10674
11142
|
};
|
|
11143
|
+
MfaPasskeyCompleteRequest: {
|
|
11144
|
+
mfa_token: string;
|
|
11145
|
+
credential_id: string;
|
|
11146
|
+
authenticator_data: string;
|
|
11147
|
+
client_data_json: string;
|
|
11148
|
+
signature: string;
|
|
11149
|
+
};
|
|
10675
11150
|
GuardrailWideningQueuedResponse: {
|
|
10676
11151
|
/** @enum {string} */
|
|
10677
11152
|
status: "awaiting_approval";
|
|
@@ -13437,6 +13912,7 @@ export interface operations {
|
|
|
13437
13912
|
content: {
|
|
13438
13913
|
"application/json": {
|
|
13439
13914
|
require_passkey_for_vaults?: boolean;
|
|
13915
|
+
require_passkey_for_mfa?: boolean;
|
|
13440
13916
|
passkey_count?: number;
|
|
13441
13917
|
};
|
|
13442
13918
|
};
|
|
@@ -13456,6 +13932,7 @@ export interface operations {
|
|
|
13456
13932
|
content: {
|
|
13457
13933
|
"application/json": {
|
|
13458
13934
|
require_passkey_for_vaults?: boolean;
|
|
13935
|
+
require_passkey_for_mfa?: boolean;
|
|
13459
13936
|
};
|
|
13460
13937
|
};
|
|
13461
13938
|
};
|
|
@@ -13606,6 +14083,58 @@ export interface operations {
|
|
|
13606
14083
|
401: components["responses"]["Unauthorized"];
|
|
13607
14084
|
};
|
|
13608
14085
|
};
|
|
14086
|
+
mfaPasskeyBegin: {
|
|
14087
|
+
parameters: {
|
|
14088
|
+
query?: never;
|
|
14089
|
+
header?: never;
|
|
14090
|
+
path?: never;
|
|
14091
|
+
cookie?: never;
|
|
14092
|
+
};
|
|
14093
|
+
requestBody: {
|
|
14094
|
+
content: {
|
|
14095
|
+
"application/json": {
|
|
14096
|
+
mfa_token: string;
|
|
14097
|
+
};
|
|
14098
|
+
};
|
|
14099
|
+
};
|
|
14100
|
+
responses: {
|
|
14101
|
+
/** @description WebAuthn challenge */
|
|
14102
|
+
200: {
|
|
14103
|
+
headers: {
|
|
14104
|
+
[name: string]: unknown;
|
|
14105
|
+
};
|
|
14106
|
+
content: {
|
|
14107
|
+
"application/json": components["schemas"]["PasskeyAssertBeginResponse"];
|
|
14108
|
+
};
|
|
14109
|
+
};
|
|
14110
|
+
400: components["responses"]["BadRequest"];
|
|
14111
|
+
};
|
|
14112
|
+
};
|
|
14113
|
+
mfaPasskeyComplete: {
|
|
14114
|
+
parameters: {
|
|
14115
|
+
query?: never;
|
|
14116
|
+
header?: never;
|
|
14117
|
+
path?: never;
|
|
14118
|
+
cookie?: never;
|
|
14119
|
+
};
|
|
14120
|
+
requestBody: {
|
|
14121
|
+
content: {
|
|
14122
|
+
"application/json": components["schemas"]["MfaPasskeyCompleteRequest"];
|
|
14123
|
+
};
|
|
14124
|
+
};
|
|
14125
|
+
responses: {
|
|
14126
|
+
/** @description MFA verified, JWT issued */
|
|
14127
|
+
200: {
|
|
14128
|
+
headers: {
|
|
14129
|
+
[name: string]: unknown;
|
|
14130
|
+
};
|
|
14131
|
+
content: {
|
|
14132
|
+
"application/json": components["schemas"]["TokenResponse"];
|
|
14133
|
+
};
|
|
14134
|
+
};
|
|
14135
|
+
401: components["responses"]["Unauthorized"];
|
|
14136
|
+
};
|
|
14137
|
+
};
|
|
13609
14138
|
mfaDisable: {
|
|
13610
14139
|
parameters: {
|
|
13611
14140
|
query?: never;
|
|
@@ -18194,6 +18723,27 @@ export interface operations {
|
|
|
18194
18723
|
401: components["responses"]["Unauthorized"];
|
|
18195
18724
|
};
|
|
18196
18725
|
};
|
|
18726
|
+
getUserInferenceBudget: {
|
|
18727
|
+
parameters: {
|
|
18728
|
+
query?: never;
|
|
18729
|
+
header?: never;
|
|
18730
|
+
path?: never;
|
|
18731
|
+
cookie?: never;
|
|
18732
|
+
};
|
|
18733
|
+
requestBody?: never;
|
|
18734
|
+
responses: {
|
|
18735
|
+
/** @description Inference budget (or unconfigured message) */
|
|
18736
|
+
200: {
|
|
18737
|
+
headers: {
|
|
18738
|
+
[name: string]: unknown;
|
|
18739
|
+
};
|
|
18740
|
+
content: {
|
|
18741
|
+
"application/json": components["schemas"]["InferenceBudgetResponse"] | components["schemas"]["InferenceBudgetUnconfiguredResponse"];
|
|
18742
|
+
};
|
|
18743
|
+
};
|
|
18744
|
+
403: components["responses"]["Forbidden"];
|
|
18745
|
+
};
|
|
18746
|
+
};
|
|
18197
18747
|
listWebhooks: {
|
|
18198
18748
|
parameters: {
|
|
18199
18749
|
query?: never;
|