@1claw/sdk 0.53.0 → 0.53.2
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/dist/generated/api-types.d.ts +887 -28
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/types.d.ts +108 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6652,6 +6652,267 @@ export interface paths {
|
|
|
6652
6652
|
patch?: never;
|
|
6653
6653
|
trace?: never;
|
|
6654
6654
|
};
|
|
6655
|
+
"/v1/treasury/wallets/access-policies": {
|
|
6656
|
+
parameters: {
|
|
6657
|
+
query?: never;
|
|
6658
|
+
header?: never;
|
|
6659
|
+
path?: never;
|
|
6660
|
+
cookie?: never;
|
|
6661
|
+
};
|
|
6662
|
+
/** List wallet access policies for the org */
|
|
6663
|
+
get: operations["listWalletAccessPolicies"];
|
|
6664
|
+
put?: never;
|
|
6665
|
+
/**
|
|
6666
|
+
* Create a wallet access policy
|
|
6667
|
+
* @description Create a role-based wallet access policy granting an agent, user, role,
|
|
6668
|
+
* or platform app specific permissions on treasury wallets within a scope
|
|
6669
|
+
* (org-wide, platform app, or single wallet). Requires Pro+ tier.
|
|
6670
|
+
*/
|
|
6671
|
+
post: operations["createWalletAccessPolicy"];
|
|
6672
|
+
delete?: never;
|
|
6673
|
+
options?: never;
|
|
6674
|
+
head?: never;
|
|
6675
|
+
patch?: never;
|
|
6676
|
+
trace?: never;
|
|
6677
|
+
};
|
|
6678
|
+
"/v1/treasury/wallets/access-policies/{id}": {
|
|
6679
|
+
parameters: {
|
|
6680
|
+
query?: never;
|
|
6681
|
+
header?: never;
|
|
6682
|
+
path?: never;
|
|
6683
|
+
cookie?: never;
|
|
6684
|
+
};
|
|
6685
|
+
get?: never;
|
|
6686
|
+
put?: never;
|
|
6687
|
+
post?: never;
|
|
6688
|
+
/** Delete a wallet access policy */
|
|
6689
|
+
delete: operations["deleteWalletAccessPolicy"];
|
|
6690
|
+
options?: never;
|
|
6691
|
+
head?: never;
|
|
6692
|
+
patch?: never;
|
|
6693
|
+
trace?: never;
|
|
6694
|
+
};
|
|
6695
|
+
"/v1/auth/credential-recovery/request": {
|
|
6696
|
+
parameters: {
|
|
6697
|
+
query?: never;
|
|
6698
|
+
header?: never;
|
|
6699
|
+
path?: never;
|
|
6700
|
+
cookie?: never;
|
|
6701
|
+
};
|
|
6702
|
+
get?: never;
|
|
6703
|
+
put?: never;
|
|
6704
|
+
/**
|
|
6705
|
+
* Initiate credential recovery
|
|
6706
|
+
* @description Start a credential recovery request for MFA reset, passkey reset,
|
|
6707
|
+
* or password reset. Requires admin approval per org policy.
|
|
6708
|
+
*/
|
|
6709
|
+
post: operations["requestCredentialRecovery"];
|
|
6710
|
+
delete?: never;
|
|
6711
|
+
options?: never;
|
|
6712
|
+
head?: never;
|
|
6713
|
+
patch?: never;
|
|
6714
|
+
trace?: never;
|
|
6715
|
+
};
|
|
6716
|
+
"/v1/auth/credential-recovery/requests": {
|
|
6717
|
+
parameters: {
|
|
6718
|
+
query?: never;
|
|
6719
|
+
header?: never;
|
|
6720
|
+
path?: never;
|
|
6721
|
+
cookie?: never;
|
|
6722
|
+
};
|
|
6723
|
+
/**
|
|
6724
|
+
* List recovery requests for the org
|
|
6725
|
+
* @description Admin/owner only. Returns pending, approved, and rejected recovery requests.
|
|
6726
|
+
*/
|
|
6727
|
+
get: operations["listCredentialRecoveryRequests"];
|
|
6728
|
+
put?: never;
|
|
6729
|
+
post?: never;
|
|
6730
|
+
delete?: never;
|
|
6731
|
+
options?: never;
|
|
6732
|
+
head?: never;
|
|
6733
|
+
patch?: never;
|
|
6734
|
+
trace?: never;
|
|
6735
|
+
};
|
|
6736
|
+
"/v1/auth/credential-recovery/requests/{id}/approve": {
|
|
6737
|
+
parameters: {
|
|
6738
|
+
query?: never;
|
|
6739
|
+
header?: never;
|
|
6740
|
+
path?: never;
|
|
6741
|
+
cookie?: never;
|
|
6742
|
+
};
|
|
6743
|
+
get?: never;
|
|
6744
|
+
put?: never;
|
|
6745
|
+
/**
|
|
6746
|
+
* Approve a recovery request
|
|
6747
|
+
* @description Admin/owner approves a pending recovery request. May return a one-time recovery code.
|
|
6748
|
+
*/
|
|
6749
|
+
post: operations["approveCredentialRecovery"];
|
|
6750
|
+
delete?: never;
|
|
6751
|
+
options?: never;
|
|
6752
|
+
head?: never;
|
|
6753
|
+
patch?: never;
|
|
6754
|
+
trace?: never;
|
|
6755
|
+
};
|
|
6756
|
+
"/v1/auth/credential-recovery/requests/{id}/execute": {
|
|
6757
|
+
parameters: {
|
|
6758
|
+
query?: never;
|
|
6759
|
+
header?: never;
|
|
6760
|
+
path?: never;
|
|
6761
|
+
cookie?: never;
|
|
6762
|
+
};
|
|
6763
|
+
get?: never;
|
|
6764
|
+
put?: never;
|
|
6765
|
+
/**
|
|
6766
|
+
* Execute an approved credential recovery request
|
|
6767
|
+
* @description Execute an approved credential recovery request after the delay window has elapsed. Only org owners or admins can execute.
|
|
6768
|
+
*/
|
|
6769
|
+
post: operations["executeCredentialRecovery"];
|
|
6770
|
+
delete?: never;
|
|
6771
|
+
options?: never;
|
|
6772
|
+
head?: never;
|
|
6773
|
+
patch?: never;
|
|
6774
|
+
trace?: never;
|
|
6775
|
+
};
|
|
6776
|
+
"/v1/auth/credential-recovery/requests/{id}": {
|
|
6777
|
+
parameters: {
|
|
6778
|
+
query?: never;
|
|
6779
|
+
header?: never;
|
|
6780
|
+
path?: never;
|
|
6781
|
+
cookie?: never;
|
|
6782
|
+
};
|
|
6783
|
+
get?: never;
|
|
6784
|
+
put?: never;
|
|
6785
|
+
post?: never;
|
|
6786
|
+
/** Cancel or reject a recovery request */
|
|
6787
|
+
delete: operations["cancelCredentialRecovery"];
|
|
6788
|
+
options?: never;
|
|
6789
|
+
head?: never;
|
|
6790
|
+
patch?: never;
|
|
6791
|
+
trace?: never;
|
|
6792
|
+
};
|
|
6793
|
+
"/v1/org/credential-recovery-policy": {
|
|
6794
|
+
parameters: {
|
|
6795
|
+
query?: never;
|
|
6796
|
+
header?: never;
|
|
6797
|
+
path?: never;
|
|
6798
|
+
cookie?: never;
|
|
6799
|
+
};
|
|
6800
|
+
/** Get org credential recovery policy */
|
|
6801
|
+
get: operations["getCredentialRecoveryPolicy"];
|
|
6802
|
+
put?: never;
|
|
6803
|
+
post?: never;
|
|
6804
|
+
delete?: never;
|
|
6805
|
+
options?: never;
|
|
6806
|
+
head?: never;
|
|
6807
|
+
/** Update org credential recovery policy */
|
|
6808
|
+
patch: operations["updateCredentialRecoveryPolicy"];
|
|
6809
|
+
trace?: never;
|
|
6810
|
+
};
|
|
6811
|
+
"/v1/org/shamir-kek/setup": {
|
|
6812
|
+
parameters: {
|
|
6813
|
+
query?: never;
|
|
6814
|
+
header?: never;
|
|
6815
|
+
path?: never;
|
|
6816
|
+
cookie?: never;
|
|
6817
|
+
};
|
|
6818
|
+
get?: never;
|
|
6819
|
+
put?: never;
|
|
6820
|
+
/**
|
|
6821
|
+
* Set up Shamir KEK for the org
|
|
6822
|
+
* @description Initialize a Shamir secret-sharing KEK for the org. Splits the master
|
|
6823
|
+
* key into shares distributed to custodians. Shares are returned one-time
|
|
6824
|
+
* only and must be stored securely by each custodian.
|
|
6825
|
+
*/
|
|
6826
|
+
post: operations["setupShamirKek"];
|
|
6827
|
+
delete?: never;
|
|
6828
|
+
options?: never;
|
|
6829
|
+
head?: never;
|
|
6830
|
+
patch?: never;
|
|
6831
|
+
trace?: never;
|
|
6832
|
+
};
|
|
6833
|
+
"/v1/org/shamir-kek": {
|
|
6834
|
+
parameters: {
|
|
6835
|
+
query?: never;
|
|
6836
|
+
header?: never;
|
|
6837
|
+
path?: never;
|
|
6838
|
+
cookie?: never;
|
|
6839
|
+
};
|
|
6840
|
+
/**
|
|
6841
|
+
* Get Shamir KEK status
|
|
6842
|
+
* @description Returns the current Shamir KEK configuration status for the org.
|
|
6843
|
+
*/
|
|
6844
|
+
get: operations["getShamirKekStatus"];
|
|
6845
|
+
put?: never;
|
|
6846
|
+
post?: never;
|
|
6847
|
+
delete?: never;
|
|
6848
|
+
options?: never;
|
|
6849
|
+
head?: never;
|
|
6850
|
+
patch?: never;
|
|
6851
|
+
trace?: never;
|
|
6852
|
+
};
|
|
6853
|
+
"/v1/org/shamir-kek/reconstruct": {
|
|
6854
|
+
parameters: {
|
|
6855
|
+
query?: never;
|
|
6856
|
+
header?: never;
|
|
6857
|
+
path?: never;
|
|
6858
|
+
cookie?: never;
|
|
6859
|
+
};
|
|
6860
|
+
get?: never;
|
|
6861
|
+
put?: never;
|
|
6862
|
+
/**
|
|
6863
|
+
* Reconstruct KEK from shares
|
|
6864
|
+
* @description Submit Shamir shares to reconstruct the org KEK. Requires at least
|
|
6865
|
+
* `threshold` valid shares. Used during disaster recovery.
|
|
6866
|
+
*/
|
|
6867
|
+
post: operations["reconstructShamirKek"];
|
|
6868
|
+
delete?: never;
|
|
6869
|
+
options?: never;
|
|
6870
|
+
head?: never;
|
|
6871
|
+
patch?: never;
|
|
6872
|
+
trace?: never;
|
|
6873
|
+
};
|
|
6874
|
+
"/v1/org/shamir-kek/recovery-codes": {
|
|
6875
|
+
parameters: {
|
|
6876
|
+
query?: never;
|
|
6877
|
+
header?: never;
|
|
6878
|
+
path?: never;
|
|
6879
|
+
cookie?: never;
|
|
6880
|
+
};
|
|
6881
|
+
/**
|
|
6882
|
+
* Get Shamir recovery codes (one-time)
|
|
6883
|
+
* @description Returns the one-time recovery codes for the Shamir KEK. These codes
|
|
6884
|
+
* can be used as an emergency fallback if custodian shares are lost.
|
|
6885
|
+
* Codes are only returned once — subsequent calls return 410.
|
|
6886
|
+
*/
|
|
6887
|
+
get: operations["getShamirKekRecoveryCodes"];
|
|
6888
|
+
put?: never;
|
|
6889
|
+
post?: never;
|
|
6890
|
+
delete?: never;
|
|
6891
|
+
options?: never;
|
|
6892
|
+
head?: never;
|
|
6893
|
+
patch?: never;
|
|
6894
|
+
trace?: never;
|
|
6895
|
+
};
|
|
6896
|
+
"/v1/org/shamir-kek/verify-recovery-code": {
|
|
6897
|
+
parameters: {
|
|
6898
|
+
query?: never;
|
|
6899
|
+
header?: never;
|
|
6900
|
+
path?: never;
|
|
6901
|
+
cookie?: never;
|
|
6902
|
+
};
|
|
6903
|
+
get?: never;
|
|
6904
|
+
put?: never;
|
|
6905
|
+
/**
|
|
6906
|
+
* Verify a Shamir recovery code
|
|
6907
|
+
* @description Check whether a recovery code is valid without consuming it.
|
|
6908
|
+
*/
|
|
6909
|
+
post: operations["verifyShamirKekRecoveryCode"];
|
|
6910
|
+
delete?: never;
|
|
6911
|
+
options?: never;
|
|
6912
|
+
head?: never;
|
|
6913
|
+
patch?: never;
|
|
6914
|
+
trace?: never;
|
|
6915
|
+
};
|
|
6655
6916
|
}
|
|
6656
6917
|
export type webhooks = Record<string, never>;
|
|
6657
6918
|
export interface components {
|
|
@@ -8094,6 +8355,12 @@ export interface components {
|
|
|
8094
8355
|
* @description Optional pending approval ID. When consensus policies match, clients resubmit with this field set to bypass the 202 gate after the approval has been executed.
|
|
8095
8356
|
*/
|
|
8096
8357
|
approval_id?: string;
|
|
8358
|
+
/** @description Pre-built raw transaction as a base64-encoded byte string. When provided, the handler decodes and deep-inspects the transaction for policy evaluation before signing. Supported for non-EVM chains where the client constructs the transaction payload. */
|
|
8359
|
+
raw_transaction?: string;
|
|
8360
|
+
/** @description Pre-built Tron transaction JSON object. When provided, the handler signs the transaction as-is using the Tron protobuf format. Enables full Tron transaction type coverage beyond simple TRX/TRC-20 transfers. */
|
|
8361
|
+
tron_transaction?: {
|
|
8362
|
+
[key: string]: unknown;
|
|
8363
|
+
};
|
|
8097
8364
|
};
|
|
8098
8365
|
SignTransactionRequest: {
|
|
8099
8366
|
/** @description Destination address (0x-prefixed) */
|
|
@@ -8350,6 +8617,12 @@ export interface components {
|
|
|
8350
8617
|
* @description Optional pending approval ID. When consensus policies match, clients resubmit with this field set to bypass the 202 gate after the approval has been executed.
|
|
8351
8618
|
*/
|
|
8352
8619
|
approval_id?: string;
|
|
8620
|
+
/** @description Pre-built raw transaction as a base64-encoded byte string. When provided, the handler decodes and deep-inspects the transaction for policy evaluation before signing. Supported for non-EVM chains where the client constructs the transaction payload. */
|
|
8621
|
+
raw_transaction?: string;
|
|
8622
|
+
/** @description Pre-built Tron transaction JSON object. When provided, the handler signs the transaction as-is using the Tron protobuf format. Enables full Tron transaction type coverage beyond simple TRX/TRC-20 transfers. */
|
|
8623
|
+
tron_transaction?: {
|
|
8624
|
+
[key: string]: unknown;
|
|
8625
|
+
};
|
|
8353
8626
|
};
|
|
8354
8627
|
SignIntentResponse: {
|
|
8355
8628
|
intent_type?: string;
|
|
@@ -8738,12 +9011,25 @@ export interface components {
|
|
|
8738
9011
|
};
|
|
8739
9012
|
};
|
|
8740
9013
|
ShroudAttestationResponse: {
|
|
8741
|
-
/**
|
|
9014
|
+
/**
|
|
9015
|
+
* @description Whether at least an identity token was obtained (true for identity,
|
|
9016
|
+
* confidential, or sev_snp levels). Backward-compatible boolean; prefer
|
|
9017
|
+
* attestation_level for granularity.
|
|
9018
|
+
*/
|
|
8742
9019
|
attested: boolean;
|
|
9020
|
+
/**
|
|
9021
|
+
* @description Granularity of TEE attestation achieved. `none` = dev/non-GCE;
|
|
9022
|
+
* `identity` = GCE metadata JWT only; `confidential` = CC claims present;
|
|
9023
|
+
* `sev_snp` = full SEV-SNP measurement verified against image digest.
|
|
9024
|
+
* @enum {string}
|
|
9025
|
+
*/
|
|
9026
|
+
attestation_level: "none" | "identity" | "confidential" | "sev_snp";
|
|
8743
9027
|
/** @description Confidential VM image hash (compare against published Docker digest) */
|
|
8744
9028
|
image_hash: string;
|
|
8745
9029
|
/** @description GCE metadata identity JWT (verify against Google public keys) */
|
|
8746
9030
|
identity_token: string;
|
|
9031
|
+
/** @description Confidential Computing claims extracted from the identity JWT */
|
|
9032
|
+
confidential_claims?: components["schemas"]["ConfidentialClaims"];
|
|
8747
9033
|
verification: {
|
|
8748
9034
|
steps?: string[];
|
|
8749
9035
|
/** Format: uri */
|
|
@@ -8751,6 +9037,16 @@ export interface components {
|
|
|
8751
9037
|
expected_audience?: string;
|
|
8752
9038
|
};
|
|
8753
9039
|
};
|
|
9040
|
+
ConfidentialClaims: {
|
|
9041
|
+
/** @description Whether secure boot was enabled */
|
|
9042
|
+
secboot?: boolean;
|
|
9043
|
+
/** @description Hardware model string (e.g. GCP_AMD_SEV) */
|
|
9044
|
+
hwmodel?: string;
|
|
9045
|
+
/** @description Instance confidentiality level from google.compute_engine */
|
|
9046
|
+
instance_confidentiality?: string;
|
|
9047
|
+
/** @description Software name claim (swname or sw_name) */
|
|
9048
|
+
sw_name?: string;
|
|
9049
|
+
} | null;
|
|
8754
9050
|
AuditEvent: {
|
|
8755
9051
|
/** Format: uuid */
|
|
8756
9052
|
id?: string;
|
|
@@ -11263,34 +11559,219 @@ export interface components {
|
|
|
11263
11559
|
environments?: string[];
|
|
11264
11560
|
comment?: string;
|
|
11265
11561
|
};
|
|
11266
|
-
|
|
11267
|
-
|
|
11268
|
-
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
|
|
11282
|
-
|
|
11283
|
-
|
|
11284
|
-
|
|
11562
|
+
CreateWalletAccessPolicyRequest: {
|
|
11563
|
+
/**
|
|
11564
|
+
* @description Policy scope — org-wide, platform app, or single wallet
|
|
11565
|
+
* @enum {string}
|
|
11566
|
+
*/
|
|
11567
|
+
scope_type: "wallet" | "platform_app" | "org";
|
|
11568
|
+
/**
|
|
11569
|
+
* Format: uuid
|
|
11570
|
+
* @description Wallet or platform app UUID when scope_type is not org
|
|
11571
|
+
*/
|
|
11572
|
+
scope_id?: string | null;
|
|
11573
|
+
/**
|
|
11574
|
+
* @description Who receives the grant
|
|
11575
|
+
* @enum {string}
|
|
11576
|
+
*/
|
|
11577
|
+
principal_type: "user" | "agent" | "role" | "platform_app";
|
|
11578
|
+
/** @description User/agent UUID, role name, or platform app UUID */
|
|
11579
|
+
principal_id: string;
|
|
11580
|
+
/** @default false */
|
|
11581
|
+
can_sign: boolean;
|
|
11582
|
+
/** @default true */
|
|
11583
|
+
can_view_balance: boolean;
|
|
11584
|
+
/** @default false */
|
|
11585
|
+
can_export: boolean;
|
|
11586
|
+
/** @default false */
|
|
11587
|
+
can_send: boolean;
|
|
11588
|
+
/** @default false */
|
|
11589
|
+
can_swap: boolean;
|
|
11590
|
+
/** @description Chains this policy applies to (empty = all) */
|
|
11591
|
+
allowed_chains?: string[];
|
|
11592
|
+
/** @description Max value per transaction in ETH */
|
|
11593
|
+
max_value_per_tx_eth?: string;
|
|
11594
|
+
/** @description Daily spend limit in ETH */
|
|
11595
|
+
daily_limit_eth?: string;
|
|
11596
|
+
/** @description Additional JSON conditions (reserved for future enforcement) */
|
|
11597
|
+
conditions?: Record<string, never>;
|
|
11598
|
+
/** Format: date-time */
|
|
11599
|
+
expires_at?: string;
|
|
11285
11600
|
};
|
|
11286
|
-
|
|
11287
|
-
|
|
11288
|
-
|
|
11289
|
-
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11601
|
+
WalletAccessPolicyResponse: {
|
|
11602
|
+
/** Format: uuid */
|
|
11603
|
+
id?: string;
|
|
11604
|
+
/** Format: uuid */
|
|
11605
|
+
org_id?: string;
|
|
11606
|
+
scope_type?: string;
|
|
11607
|
+
/** Format: uuid */
|
|
11608
|
+
scope_id?: string | null;
|
|
11609
|
+
principal_type?: string;
|
|
11610
|
+
principal_id?: string;
|
|
11611
|
+
can_sign?: boolean;
|
|
11612
|
+
can_view_balance?: boolean;
|
|
11613
|
+
can_export?: boolean;
|
|
11614
|
+
can_send?: boolean;
|
|
11615
|
+
can_swap?: boolean;
|
|
11616
|
+
allowed_chains?: string[];
|
|
11617
|
+
max_value_per_tx_eth?: string | null;
|
|
11618
|
+
daily_limit_eth?: string | null;
|
|
11619
|
+
conditions?: Record<string, never>;
|
|
11620
|
+
is_active?: boolean;
|
|
11621
|
+
/** Format: date-time */
|
|
11622
|
+
expires_at?: string | null;
|
|
11623
|
+
/** Format: uuid */
|
|
11624
|
+
created_by?: string;
|
|
11625
|
+
/** Format: date-time */
|
|
11626
|
+
created_at?: string;
|
|
11627
|
+
/** Format: date-time */
|
|
11628
|
+
updated_at?: string;
|
|
11629
|
+
};
|
|
11630
|
+
WalletAccessPolicyListResponse: {
|
|
11631
|
+
policies?: components["schemas"]["WalletAccessPolicyResponse"][];
|
|
11632
|
+
};
|
|
11633
|
+
CredentialRecoveryRequest: {
|
|
11634
|
+
/** @enum {string} */
|
|
11635
|
+
recovery_type: "mfa_reset" | "passkey_reset" | "password_reset";
|
|
11636
|
+
/** @description Optional justification for the recovery request */
|
|
11637
|
+
reason?: string;
|
|
11638
|
+
};
|
|
11639
|
+
CredentialRecoveryResponse: {
|
|
11640
|
+
/** Format: uuid */
|
|
11641
|
+
request_id?: string;
|
|
11642
|
+
/** @enum {string} */
|
|
11643
|
+
status?: "pending_approval" | "approved" | "rejected" | "expired";
|
|
11644
|
+
/** @enum {string} */
|
|
11645
|
+
recovery_type?: "mfa_reset" | "passkey_reset" | "password_reset";
|
|
11646
|
+
/** Format: date-time */
|
|
11647
|
+
created_at?: string;
|
|
11648
|
+
};
|
|
11649
|
+
CredentialRecoveryListResponse: {
|
|
11650
|
+
requests?: components["schemas"]["CredentialRecoveryResponse"][];
|
|
11651
|
+
};
|
|
11652
|
+
CredentialRecoveryApproveResponse: {
|
|
11653
|
+
/** Format: uuid */
|
|
11654
|
+
request_id?: string;
|
|
11655
|
+
/** @enum {string} */
|
|
11656
|
+
status?: "approved";
|
|
11657
|
+
/** @description One-time recovery code (only present for certain recovery types) */
|
|
11658
|
+
recovery_code?: string | null;
|
|
11659
|
+
};
|
|
11660
|
+
CredentialRecoveryExecuteResponse: {
|
|
11661
|
+
/** Format: uuid */
|
|
11662
|
+
request_id?: string;
|
|
11663
|
+
/** @enum {string} */
|
|
11664
|
+
status?: "executed";
|
|
11665
|
+
recovery_type?: string;
|
|
11666
|
+
/** Format: date-time */
|
|
11667
|
+
executed_at?: string;
|
|
11668
|
+
};
|
|
11669
|
+
CredentialRecoveryPolicyResponse: {
|
|
11670
|
+
enabled?: boolean;
|
|
11671
|
+
require_admin_approval?: boolean;
|
|
11672
|
+
/** @description Waiting period before recovery takes effect */
|
|
11673
|
+
delay_hours?: number;
|
|
11674
|
+
allowed_types?: ("mfa_reset" | "passkey_reset" | "password_reset")[];
|
|
11675
|
+
};
|
|
11676
|
+
CredentialRecoveryPolicyRequest: {
|
|
11677
|
+
enabled?: boolean;
|
|
11678
|
+
require_admin_approval?: boolean;
|
|
11679
|
+
delay_hours?: number;
|
|
11680
|
+
allowed_types?: ("mfa_reset" | "passkey_reset" | "password_reset")[];
|
|
11681
|
+
};
|
|
11682
|
+
ShamirKekSetupRequest: {
|
|
11683
|
+
/**
|
|
11684
|
+
* @description Minimum shares required to reconstruct the KEK
|
|
11685
|
+
* @enum {integer}
|
|
11686
|
+
*/
|
|
11687
|
+
threshold: 2 | 3;
|
|
11688
|
+
/**
|
|
11689
|
+
* @description Total number of shares to generate
|
|
11690
|
+
* @enum {integer}
|
|
11691
|
+
*/
|
|
11692
|
+
total_shares: 3 | 5;
|
|
11693
|
+
/** @description Email addresses of share custodians */
|
|
11694
|
+
custodian_emails: string[];
|
|
11695
|
+
};
|
|
11696
|
+
ShamirKekSetupResponse: {
|
|
11697
|
+
kek_id?: string;
|
|
11698
|
+
threshold?: number;
|
|
11699
|
+
total_shares?: number;
|
|
11700
|
+
/** @description One-time share distribution (never returned again) */
|
|
11701
|
+
shares?: {
|
|
11702
|
+
index?: number;
|
|
11703
|
+
/** Format: email */
|
|
11704
|
+
custodian_email?: string;
|
|
11705
|
+
/** @description Base64-encoded share */
|
|
11706
|
+
share_b64?: string;
|
|
11707
|
+
}[];
|
|
11708
|
+
custody_mode?: string;
|
|
11709
|
+
/** Format: date-time */
|
|
11710
|
+
created_at?: string;
|
|
11711
|
+
};
|
|
11712
|
+
ShamirKekStatusResponse: {
|
|
11713
|
+
configured?: boolean;
|
|
11714
|
+
kek_id?: string | null;
|
|
11715
|
+
threshold?: number | null;
|
|
11716
|
+
total_shares?: number | null;
|
|
11717
|
+
custody_mode?: string | null;
|
|
11718
|
+
custodians?: {
|
|
11719
|
+
/** Format: email */
|
|
11720
|
+
email?: string;
|
|
11721
|
+
share_provided?: boolean;
|
|
11722
|
+
}[] | null;
|
|
11723
|
+
/** Format: date-time */
|
|
11724
|
+
created_at?: string | null;
|
|
11725
|
+
};
|
|
11726
|
+
ShamirKekReconstructRequest: {
|
|
11727
|
+
shares: {
|
|
11728
|
+
index: number;
|
|
11729
|
+
/** @description Base64-encoded share */
|
|
11730
|
+
share_b64: string;
|
|
11731
|
+
}[];
|
|
11732
|
+
};
|
|
11733
|
+
ShamirKekReconstructResponse: {
|
|
11734
|
+
/** @enum {string} */
|
|
11735
|
+
status?: "accepted" | "reconstructed";
|
|
11736
|
+
message?: string;
|
|
11737
|
+
};
|
|
11738
|
+
ShamirKekRecoveryCodesResponse: {
|
|
11739
|
+
codes?: string[];
|
|
11740
|
+
};
|
|
11741
|
+
ShamirKekVerifyCodeRequest: {
|
|
11742
|
+
code: string;
|
|
11743
|
+
};
|
|
11744
|
+
ShamirKekVerifyCodeResponse: {
|
|
11745
|
+
valid?: boolean;
|
|
11746
|
+
};
|
|
11747
|
+
};
|
|
11748
|
+
responses: {
|
|
11749
|
+
/** @description Invalid request */
|
|
11750
|
+
BadRequest: {
|
|
11751
|
+
headers: {
|
|
11752
|
+
[name: string]: unknown;
|
|
11753
|
+
};
|
|
11754
|
+
content: {
|
|
11755
|
+
"application/json": components["schemas"]["ProblemDetails"];
|
|
11756
|
+
};
|
|
11757
|
+
};
|
|
11758
|
+
/** @description Authentication required or invalid */
|
|
11759
|
+
Unauthorized: {
|
|
11760
|
+
headers: {
|
|
11761
|
+
[name: string]: unknown;
|
|
11762
|
+
};
|
|
11763
|
+
content: {
|
|
11764
|
+
"application/json": components["schemas"]["ProblemDetails"];
|
|
11765
|
+
};
|
|
11766
|
+
};
|
|
11767
|
+
/** @description Insufficient permissions */
|
|
11768
|
+
Forbidden: {
|
|
11769
|
+
headers: {
|
|
11770
|
+
[name: string]: unknown;
|
|
11771
|
+
};
|
|
11772
|
+
content: {
|
|
11773
|
+
"application/json": components["schemas"]["ProblemDetails"];
|
|
11774
|
+
};
|
|
11294
11775
|
};
|
|
11295
11776
|
/** @description Resource not found */
|
|
11296
11777
|
NotFound: {
|
|
@@ -20737,5 +21218,383 @@ export interface operations {
|
|
|
20737
21218
|
403: components["responses"]["Forbidden"];
|
|
20738
21219
|
};
|
|
20739
21220
|
};
|
|
21221
|
+
listWalletAccessPolicies: {
|
|
21222
|
+
parameters: {
|
|
21223
|
+
query?: {
|
|
21224
|
+
/** @description Filter by scope type */
|
|
21225
|
+
scope_type?: "wallet" | "platform_app" | "org";
|
|
21226
|
+
/** @description Filter by scope ID (wallet or platform app UUID) */
|
|
21227
|
+
scope_id?: string;
|
|
21228
|
+
};
|
|
21229
|
+
header?: never;
|
|
21230
|
+
path?: never;
|
|
21231
|
+
cookie?: never;
|
|
21232
|
+
};
|
|
21233
|
+
requestBody?: never;
|
|
21234
|
+
responses: {
|
|
21235
|
+
/** @description Policy list */
|
|
21236
|
+
200: {
|
|
21237
|
+
headers: {
|
|
21238
|
+
[name: string]: unknown;
|
|
21239
|
+
};
|
|
21240
|
+
content: {
|
|
21241
|
+
"application/json": components["schemas"]["WalletAccessPolicyListResponse"];
|
|
21242
|
+
};
|
|
21243
|
+
};
|
|
21244
|
+
401: components["responses"]["Unauthorized"];
|
|
21245
|
+
};
|
|
21246
|
+
};
|
|
21247
|
+
createWalletAccessPolicy: {
|
|
21248
|
+
parameters: {
|
|
21249
|
+
query?: never;
|
|
21250
|
+
header?: never;
|
|
21251
|
+
path?: never;
|
|
21252
|
+
cookie?: never;
|
|
21253
|
+
};
|
|
21254
|
+
requestBody: {
|
|
21255
|
+
content: {
|
|
21256
|
+
"application/json": components["schemas"]["CreateWalletAccessPolicyRequest"];
|
|
21257
|
+
};
|
|
21258
|
+
};
|
|
21259
|
+
responses: {
|
|
21260
|
+
/** @description Policy created */
|
|
21261
|
+
201: {
|
|
21262
|
+
headers: {
|
|
21263
|
+
[name: string]: unknown;
|
|
21264
|
+
};
|
|
21265
|
+
content: {
|
|
21266
|
+
"application/json": components["schemas"]["WalletAccessPolicyResponse"];
|
|
21267
|
+
};
|
|
21268
|
+
};
|
|
21269
|
+
400: components["responses"]["BadRequest"];
|
|
21270
|
+
401: components["responses"]["Unauthorized"];
|
|
21271
|
+
403: components["responses"]["Forbidden"];
|
|
21272
|
+
};
|
|
21273
|
+
};
|
|
21274
|
+
deleteWalletAccessPolicy: {
|
|
21275
|
+
parameters: {
|
|
21276
|
+
query?: never;
|
|
21277
|
+
header?: never;
|
|
21278
|
+
path: {
|
|
21279
|
+
id: string;
|
|
21280
|
+
};
|
|
21281
|
+
cookie?: never;
|
|
21282
|
+
};
|
|
21283
|
+
requestBody?: never;
|
|
21284
|
+
responses: {
|
|
21285
|
+
/** @description Policy deleted */
|
|
21286
|
+
204: {
|
|
21287
|
+
headers: {
|
|
21288
|
+
[name: string]: unknown;
|
|
21289
|
+
};
|
|
21290
|
+
content?: never;
|
|
21291
|
+
};
|
|
21292
|
+
401: components["responses"]["Unauthorized"];
|
|
21293
|
+
403: components["responses"]["Forbidden"];
|
|
21294
|
+
404: components["responses"]["NotFound"];
|
|
21295
|
+
};
|
|
21296
|
+
};
|
|
21297
|
+
requestCredentialRecovery: {
|
|
21298
|
+
parameters: {
|
|
21299
|
+
query?: never;
|
|
21300
|
+
header?: never;
|
|
21301
|
+
path?: never;
|
|
21302
|
+
cookie?: never;
|
|
21303
|
+
};
|
|
21304
|
+
requestBody: {
|
|
21305
|
+
content: {
|
|
21306
|
+
"application/json": components["schemas"]["CredentialRecoveryRequest"];
|
|
21307
|
+
};
|
|
21308
|
+
};
|
|
21309
|
+
responses: {
|
|
21310
|
+
/** @description Recovery request created */
|
|
21311
|
+
201: {
|
|
21312
|
+
headers: {
|
|
21313
|
+
[name: string]: unknown;
|
|
21314
|
+
};
|
|
21315
|
+
content: {
|
|
21316
|
+
"application/json": components["schemas"]["CredentialRecoveryResponse"];
|
|
21317
|
+
};
|
|
21318
|
+
};
|
|
21319
|
+
400: components["responses"]["BadRequest"];
|
|
21320
|
+
401: components["responses"]["Unauthorized"];
|
|
21321
|
+
};
|
|
21322
|
+
};
|
|
21323
|
+
listCredentialRecoveryRequests: {
|
|
21324
|
+
parameters: {
|
|
21325
|
+
query?: {
|
|
21326
|
+
/** @description Filter by status */
|
|
21327
|
+
status?: "pending_approval" | "approved" | "rejected" | "expired";
|
|
21328
|
+
};
|
|
21329
|
+
header?: never;
|
|
21330
|
+
path?: never;
|
|
21331
|
+
cookie?: never;
|
|
21332
|
+
};
|
|
21333
|
+
requestBody?: never;
|
|
21334
|
+
responses: {
|
|
21335
|
+
/** @description Recovery request list */
|
|
21336
|
+
200: {
|
|
21337
|
+
headers: {
|
|
21338
|
+
[name: string]: unknown;
|
|
21339
|
+
};
|
|
21340
|
+
content: {
|
|
21341
|
+
"application/json": components["schemas"]["CredentialRecoveryListResponse"];
|
|
21342
|
+
};
|
|
21343
|
+
};
|
|
21344
|
+
401: components["responses"]["Unauthorized"];
|
|
21345
|
+
403: components["responses"]["Forbidden"];
|
|
21346
|
+
};
|
|
21347
|
+
};
|
|
21348
|
+
approveCredentialRecovery: {
|
|
21349
|
+
parameters: {
|
|
21350
|
+
query?: never;
|
|
21351
|
+
header?: never;
|
|
21352
|
+
path: {
|
|
21353
|
+
id: string;
|
|
21354
|
+
};
|
|
21355
|
+
cookie?: never;
|
|
21356
|
+
};
|
|
21357
|
+
requestBody?: never;
|
|
21358
|
+
responses: {
|
|
21359
|
+
/** @description Request approved */
|
|
21360
|
+
200: {
|
|
21361
|
+
headers: {
|
|
21362
|
+
[name: string]: unknown;
|
|
21363
|
+
};
|
|
21364
|
+
content: {
|
|
21365
|
+
"application/json": components["schemas"]["CredentialRecoveryApproveResponse"];
|
|
21366
|
+
};
|
|
21367
|
+
};
|
|
21368
|
+
401: components["responses"]["Unauthorized"];
|
|
21369
|
+
403: components["responses"]["Forbidden"];
|
|
21370
|
+
404: components["responses"]["NotFound"];
|
|
21371
|
+
};
|
|
21372
|
+
};
|
|
21373
|
+
executeCredentialRecovery: {
|
|
21374
|
+
parameters: {
|
|
21375
|
+
query?: never;
|
|
21376
|
+
header?: never;
|
|
21377
|
+
path: {
|
|
21378
|
+
id: string;
|
|
21379
|
+
};
|
|
21380
|
+
cookie?: never;
|
|
21381
|
+
};
|
|
21382
|
+
requestBody?: never;
|
|
21383
|
+
responses: {
|
|
21384
|
+
/** @description Recovery executed */
|
|
21385
|
+
200: {
|
|
21386
|
+
headers: {
|
|
21387
|
+
[name: string]: unknown;
|
|
21388
|
+
};
|
|
21389
|
+
content: {
|
|
21390
|
+
"application/json": components["schemas"]["CredentialRecoveryExecuteResponse"];
|
|
21391
|
+
};
|
|
21392
|
+
};
|
|
21393
|
+
401: components["responses"]["Unauthorized"];
|
|
21394
|
+
403: components["responses"]["Forbidden"];
|
|
21395
|
+
404: components["responses"]["NotFound"];
|
|
21396
|
+
};
|
|
21397
|
+
};
|
|
21398
|
+
cancelCredentialRecovery: {
|
|
21399
|
+
parameters: {
|
|
21400
|
+
query?: never;
|
|
21401
|
+
header?: never;
|
|
21402
|
+
path: {
|
|
21403
|
+
id: string;
|
|
21404
|
+
};
|
|
21405
|
+
cookie?: never;
|
|
21406
|
+
};
|
|
21407
|
+
requestBody?: never;
|
|
21408
|
+
responses: {
|
|
21409
|
+
/** @description Request cancelled */
|
|
21410
|
+
204: {
|
|
21411
|
+
headers: {
|
|
21412
|
+
[name: string]: unknown;
|
|
21413
|
+
};
|
|
21414
|
+
content?: never;
|
|
21415
|
+
};
|
|
21416
|
+
401: components["responses"]["Unauthorized"];
|
|
21417
|
+
403: components["responses"]["Forbidden"];
|
|
21418
|
+
404: components["responses"]["NotFound"];
|
|
21419
|
+
};
|
|
21420
|
+
};
|
|
21421
|
+
getCredentialRecoveryPolicy: {
|
|
21422
|
+
parameters: {
|
|
21423
|
+
query?: never;
|
|
21424
|
+
header?: never;
|
|
21425
|
+
path?: never;
|
|
21426
|
+
cookie?: never;
|
|
21427
|
+
};
|
|
21428
|
+
requestBody?: never;
|
|
21429
|
+
responses: {
|
|
21430
|
+
/** @description Recovery policy */
|
|
21431
|
+
200: {
|
|
21432
|
+
headers: {
|
|
21433
|
+
[name: string]: unknown;
|
|
21434
|
+
};
|
|
21435
|
+
content: {
|
|
21436
|
+
"application/json": components["schemas"]["CredentialRecoveryPolicyResponse"];
|
|
21437
|
+
};
|
|
21438
|
+
};
|
|
21439
|
+
401: components["responses"]["Unauthorized"];
|
|
21440
|
+
};
|
|
21441
|
+
};
|
|
21442
|
+
updateCredentialRecoveryPolicy: {
|
|
21443
|
+
parameters: {
|
|
21444
|
+
query?: never;
|
|
21445
|
+
header?: never;
|
|
21446
|
+
path?: never;
|
|
21447
|
+
cookie?: never;
|
|
21448
|
+
};
|
|
21449
|
+
requestBody: {
|
|
21450
|
+
content: {
|
|
21451
|
+
"application/json": components["schemas"]["CredentialRecoveryPolicyRequest"];
|
|
21452
|
+
};
|
|
21453
|
+
};
|
|
21454
|
+
responses: {
|
|
21455
|
+
/** @description Policy updated */
|
|
21456
|
+
200: {
|
|
21457
|
+
headers: {
|
|
21458
|
+
[name: string]: unknown;
|
|
21459
|
+
};
|
|
21460
|
+
content: {
|
|
21461
|
+
"application/json": components["schemas"]["CredentialRecoveryPolicyResponse"];
|
|
21462
|
+
};
|
|
21463
|
+
};
|
|
21464
|
+
400: components["responses"]["BadRequest"];
|
|
21465
|
+
401: components["responses"]["Unauthorized"];
|
|
21466
|
+
403: components["responses"]["Forbidden"];
|
|
21467
|
+
};
|
|
21468
|
+
};
|
|
21469
|
+
setupShamirKek: {
|
|
21470
|
+
parameters: {
|
|
21471
|
+
query?: never;
|
|
21472
|
+
header?: never;
|
|
21473
|
+
path?: never;
|
|
21474
|
+
cookie?: never;
|
|
21475
|
+
};
|
|
21476
|
+
requestBody: {
|
|
21477
|
+
content: {
|
|
21478
|
+
"application/json": components["schemas"]["ShamirKekSetupRequest"];
|
|
21479
|
+
};
|
|
21480
|
+
};
|
|
21481
|
+
responses: {
|
|
21482
|
+
/** @description Shamir KEK configured (shares returned one-time) */
|
|
21483
|
+
201: {
|
|
21484
|
+
headers: {
|
|
21485
|
+
[name: string]: unknown;
|
|
21486
|
+
};
|
|
21487
|
+
content: {
|
|
21488
|
+
"application/json": components["schemas"]["ShamirKekSetupResponse"];
|
|
21489
|
+
};
|
|
21490
|
+
};
|
|
21491
|
+
400: components["responses"]["BadRequest"];
|
|
21492
|
+
401: components["responses"]["Unauthorized"];
|
|
21493
|
+
403: components["responses"]["Forbidden"];
|
|
21494
|
+
};
|
|
21495
|
+
};
|
|
21496
|
+
getShamirKekStatus: {
|
|
21497
|
+
parameters: {
|
|
21498
|
+
query?: never;
|
|
21499
|
+
header?: never;
|
|
21500
|
+
path?: never;
|
|
21501
|
+
cookie?: never;
|
|
21502
|
+
};
|
|
21503
|
+
requestBody?: never;
|
|
21504
|
+
responses: {
|
|
21505
|
+
/** @description Shamir KEK status */
|
|
21506
|
+
200: {
|
|
21507
|
+
headers: {
|
|
21508
|
+
[name: string]: unknown;
|
|
21509
|
+
};
|
|
21510
|
+
content: {
|
|
21511
|
+
"application/json": components["schemas"]["ShamirKekStatusResponse"];
|
|
21512
|
+
};
|
|
21513
|
+
};
|
|
21514
|
+
401: components["responses"]["Unauthorized"];
|
|
21515
|
+
};
|
|
21516
|
+
};
|
|
21517
|
+
reconstructShamirKek: {
|
|
21518
|
+
parameters: {
|
|
21519
|
+
query?: never;
|
|
21520
|
+
header?: never;
|
|
21521
|
+
path?: never;
|
|
21522
|
+
cookie?: never;
|
|
21523
|
+
};
|
|
21524
|
+
requestBody: {
|
|
21525
|
+
content: {
|
|
21526
|
+
"application/json": components["schemas"]["ShamirKekReconstructRequest"];
|
|
21527
|
+
};
|
|
21528
|
+
};
|
|
21529
|
+
responses: {
|
|
21530
|
+
/** @description Reconstruction result */
|
|
21531
|
+
200: {
|
|
21532
|
+
headers: {
|
|
21533
|
+
[name: string]: unknown;
|
|
21534
|
+
};
|
|
21535
|
+
content: {
|
|
21536
|
+
"application/json": components["schemas"]["ShamirKekReconstructResponse"];
|
|
21537
|
+
};
|
|
21538
|
+
};
|
|
21539
|
+
400: components["responses"]["BadRequest"];
|
|
21540
|
+
401: components["responses"]["Unauthorized"];
|
|
21541
|
+
403: components["responses"]["Forbidden"];
|
|
21542
|
+
};
|
|
21543
|
+
};
|
|
21544
|
+
getShamirKekRecoveryCodes: {
|
|
21545
|
+
parameters: {
|
|
21546
|
+
query?: never;
|
|
21547
|
+
header?: never;
|
|
21548
|
+
path?: never;
|
|
21549
|
+
cookie?: never;
|
|
21550
|
+
};
|
|
21551
|
+
requestBody?: never;
|
|
21552
|
+
responses: {
|
|
21553
|
+
/** @description Recovery codes (one-time) */
|
|
21554
|
+
200: {
|
|
21555
|
+
headers: {
|
|
21556
|
+
[name: string]: unknown;
|
|
21557
|
+
};
|
|
21558
|
+
content: {
|
|
21559
|
+
"application/json": components["schemas"]["ShamirKekRecoveryCodesResponse"];
|
|
21560
|
+
};
|
|
21561
|
+
};
|
|
21562
|
+
401: components["responses"]["Unauthorized"];
|
|
21563
|
+
403: components["responses"]["Forbidden"];
|
|
21564
|
+
/** @description Codes already retrieved */
|
|
21565
|
+
410: {
|
|
21566
|
+
headers: {
|
|
21567
|
+
[name: string]: unknown;
|
|
21568
|
+
};
|
|
21569
|
+
content?: never;
|
|
21570
|
+
};
|
|
21571
|
+
};
|
|
21572
|
+
};
|
|
21573
|
+
verifyShamirKekRecoveryCode: {
|
|
21574
|
+
parameters: {
|
|
21575
|
+
query?: never;
|
|
21576
|
+
header?: never;
|
|
21577
|
+
path?: never;
|
|
21578
|
+
cookie?: never;
|
|
21579
|
+
};
|
|
21580
|
+
requestBody: {
|
|
21581
|
+
content: {
|
|
21582
|
+
"application/json": components["schemas"]["ShamirKekVerifyCodeRequest"];
|
|
21583
|
+
};
|
|
21584
|
+
};
|
|
21585
|
+
responses: {
|
|
21586
|
+
/** @description Verification result */
|
|
21587
|
+
200: {
|
|
21588
|
+
headers: {
|
|
21589
|
+
[name: string]: unknown;
|
|
21590
|
+
};
|
|
21591
|
+
content: {
|
|
21592
|
+
"application/json": components["schemas"]["ShamirKekVerifyCodeResponse"];
|
|
21593
|
+
};
|
|
21594
|
+
};
|
|
21595
|
+
400: components["responses"]["BadRequest"];
|
|
21596
|
+
401: components["responses"]["Unauthorized"];
|
|
21597
|
+
};
|
|
21598
|
+
};
|
|
20740
21599
|
}
|
|
20741
21600
|
//# sourceMappingURL=api-types.d.ts.map
|