@coinbase/cdp-api-client 0.0.69 → 0.0.71
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/esm/index10.js +1 -1
- package/dist/esm/index12.js +7 -38
- package/dist/esm/index14.js +375 -67
- package/dist/esm/index15.js +835 -34
- package/dist/esm/index16.js +38 -20
- package/dist/esm/index17.js +2 -8
- package/dist/esm/index18.js +70 -2
- package/dist/esm/index19.js +30 -373
- package/dist/esm/index20.js +20 -832
- package/dist/esm/index21.js +2 -2
- package/dist/esm/index22.js +2 -2
- package/dist/esm/index23.js +2 -2
- package/dist/esm/index3.js +1 -1
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index6.js +10 -11
- package/dist/types/index.d.ts +43 -22
- package/package.json +1 -1
package/dist/esm/index21.js
CHANGED
package/dist/esm/index22.js
CHANGED
package/dist/esm/index23.js
CHANGED
package/dist/esm/index3.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { __require as r } from "./
|
|
1
|
+
import { __require as r } from "./index12.js";
|
|
2
2
|
r();
|
package/dist/esm/index4.js
CHANGED
package/dist/esm/index6.js
CHANGED
|
@@ -76,7 +76,6 @@ const e = {
|
|
|
76
76
|
solana: "solana",
|
|
77
77
|
aptos: "aptos",
|
|
78
78
|
arbitrum: "arbitrum",
|
|
79
|
-
avacchain: "avacchain",
|
|
80
79
|
optimism: "optimism",
|
|
81
80
|
polygon: "polygon",
|
|
82
81
|
sui: "sui"
|
|
@@ -119,9 +118,9 @@ const e = {
|
|
|
119
118
|
email: "email"
|
|
120
119
|
}, f = {
|
|
121
120
|
sms: "sms"
|
|
122
|
-
}, h = {
|
|
123
|
-
jwt: "jwt"
|
|
124
121
|
}, g = {
|
|
122
|
+
jwt: "jwt"
|
|
123
|
+
}, h = {
|
|
125
124
|
google: "google",
|
|
126
125
|
apple: "apple",
|
|
127
126
|
x: "x"
|
|
@@ -336,9 +335,9 @@ const e = {
|
|
|
336
335
|
}, fe = {
|
|
337
336
|
in: "in",
|
|
338
337
|
not_in: "not in"
|
|
339
|
-
}, he = {
|
|
340
|
-
splValue: "splValue"
|
|
341
338
|
}, ge = {
|
|
339
|
+
splValue: "splValue"
|
|
340
|
+
}, he = {
|
|
342
341
|
">": ">",
|
|
343
342
|
">=": ">=",
|
|
344
343
|
"<": "<",
|
|
@@ -568,7 +567,7 @@ const e = {
|
|
|
568
567
|
polygon: "polygon",
|
|
569
568
|
optimism: "optimism",
|
|
570
569
|
arbitrum: "arbitrum"
|
|
571
|
-
},
|
|
570
|
+
}, ga = {
|
|
572
571
|
solana: "solana",
|
|
573
572
|
"solana-devnet": "solana-devnet"
|
|
574
573
|
};
|
|
@@ -589,7 +588,7 @@ export {
|
|
|
589
588
|
d as CryptoDepositDestinationType,
|
|
590
589
|
i as CustomerType,
|
|
591
590
|
s as DepositDestinationType,
|
|
592
|
-
|
|
591
|
+
g as DeveloperJWTAuthenticationType,
|
|
593
592
|
T as EmailAuthenticationType,
|
|
594
593
|
a as ErrorType,
|
|
595
594
|
q as EthValueCriterionOperator,
|
|
@@ -627,7 +626,7 @@ export {
|
|
|
627
626
|
W as NetUSDChangeCriterionOperator,
|
|
628
627
|
K as NetUSDChangeCriterionType,
|
|
629
628
|
c as Network,
|
|
630
|
-
|
|
629
|
+
h as OAuth2ProviderType,
|
|
631
630
|
Ge as OnchainDataResultSchemaColumnsItemType,
|
|
632
631
|
oa as OnrampOrderFeeType,
|
|
633
632
|
ia as OnrampOrderPaymentMethodTypeId,
|
|
@@ -650,7 +649,7 @@ export {
|
|
|
650
649
|
fa as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
651
650
|
Ie as SendSolTransactionRuleAction,
|
|
652
651
|
Ue as SendSolTransactionRuleOperation,
|
|
653
|
-
|
|
652
|
+
ga as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
654
653
|
Ve as SendUserOperationRuleAction,
|
|
655
654
|
Be as SendUserOperationRuleOperation,
|
|
656
655
|
ze as SignEvmHashRuleAction,
|
|
@@ -683,8 +682,8 @@ export {
|
|
|
683
682
|
w as SpendPermissionNetwork,
|
|
684
683
|
fe as SplAddressCriterionOperator,
|
|
685
684
|
Te as SplAddressCriterionType,
|
|
686
|
-
|
|
687
|
-
|
|
685
|
+
he as SplValueCriterionOperator,
|
|
686
|
+
ge as SplValueCriterionType,
|
|
688
687
|
u as TransferCancellationReason,
|
|
689
688
|
m as TransferFeeName,
|
|
690
689
|
y as TransferRequestAmountType,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -298,8 +298,8 @@ export declare interface CreateAccountRequest {
|
|
|
298
298
|
|
|
299
299
|
export declare interface CreateCustomAuthConfigRequest {
|
|
300
300
|
enabled: boolean;
|
|
301
|
-
jwksUrl:
|
|
302
|
-
issuer:
|
|
301
|
+
jwksUrl: Url;
|
|
302
|
+
issuer: Url;
|
|
303
303
|
audience?: string;
|
|
304
304
|
}
|
|
305
305
|
|
|
@@ -383,7 +383,7 @@ export declare interface CreateSpendPermissionRequest {
|
|
|
383
383
|
salt?: string;
|
|
384
384
|
extraData?: string;
|
|
385
385
|
useCdpPaymaster: boolean;
|
|
386
|
-
paymasterUrl?:
|
|
386
|
+
paymasterUrl?: Url;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
export declare const createSpendPermissionWithEndUserAccount: (projectId: string, userId: string, address: string, createSpendPermissionRequest: CreateSpendPermissionRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
|
|
@@ -438,7 +438,7 @@ export declare const CryptoDepositDestinationType: {
|
|
|
438
438
|
export declare interface CustomAuthConfig {
|
|
439
439
|
enabled: boolean;
|
|
440
440
|
jwksUrl: string;
|
|
441
|
-
issuer:
|
|
441
|
+
issuer: Url;
|
|
442
442
|
audience?: string;
|
|
443
443
|
createdAt?: string;
|
|
444
444
|
updatedAt?: string;
|
|
@@ -569,15 +569,33 @@ export declare interface EndUser {
|
|
|
569
569
|
authenticationMethods: AuthenticationMethods;
|
|
570
570
|
mfaMethods?: MFAMethods;
|
|
571
571
|
evmAccounts: string[];
|
|
572
|
+
evmAccountObjects?: EndUserEvmAccount[];
|
|
572
573
|
evmSmartAccounts: string[];
|
|
574
|
+
evmSmartAccountObjects?: EndUserEvmSmartAccount[];
|
|
573
575
|
solanaAccounts: string[];
|
|
576
|
+
solanaAccountObjects?: EndUserSolanaAccount[];
|
|
577
|
+
createdAt: string;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
export declare interface EndUserEvmAccount {
|
|
581
|
+
address: string;
|
|
582
|
+
createdAt: string;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export declare interface EndUserEvmSmartAccount {
|
|
586
|
+
address: string;
|
|
587
|
+
ownerAddresses: string[];
|
|
588
|
+
createdAt: string;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
export declare interface EndUserSolanaAccount {
|
|
592
|
+
address: string;
|
|
574
593
|
createdAt: string;
|
|
575
594
|
}
|
|
576
595
|
|
|
577
596
|
export declare interface Entity {
|
|
578
597
|
entityId: EntityId;
|
|
579
598
|
name: string;
|
|
580
|
-
productionEntityId?: string;
|
|
581
599
|
legalEntityId?: string | null;
|
|
582
600
|
type?: string;
|
|
583
601
|
capabilities: CapabilitiesMap;
|
|
@@ -595,7 +613,7 @@ declare interface Error_2 {
|
|
|
595
613
|
errorType: ErrorType;
|
|
596
614
|
errorMessage: string;
|
|
597
615
|
correlationId?: string;
|
|
598
|
-
errorLink?:
|
|
616
|
+
errorLink?: Url;
|
|
599
617
|
}
|
|
600
618
|
export { Error_2 as Error }
|
|
601
619
|
|
|
@@ -812,13 +830,13 @@ export declare interface EvmSpendPermissionsCreateSpendPermissionRequest {
|
|
|
812
830
|
end: string;
|
|
813
831
|
salt?: string;
|
|
814
832
|
extraData?: string;
|
|
815
|
-
paymasterUrl?:
|
|
833
|
+
paymasterUrl?: Url;
|
|
816
834
|
}
|
|
817
835
|
|
|
818
836
|
export declare interface EvmSpendPermissionsRevokeSpendPermissionRequest {
|
|
819
837
|
network: SpendPermissionNetwork;
|
|
820
838
|
permissionHash: string;
|
|
821
|
-
paymasterUrl?:
|
|
839
|
+
paymasterUrl?: Url;
|
|
822
840
|
}
|
|
823
841
|
|
|
824
842
|
export declare type EvmSwapsNetwork = (typeof EvmSwapsNetwork)[keyof typeof EvmSwapsNetwork];
|
|
@@ -909,7 +927,7 @@ export declare type ExportEndUserEvmAccountBody = {
|
|
|
909
927
|
address: string;
|
|
910
928
|
exportEncryptionKey: string;
|
|
911
929
|
walletSecretId: string;
|
|
912
|
-
parentOrigin?:
|
|
930
|
+
parentOrigin?: Url;
|
|
913
931
|
};
|
|
914
932
|
|
|
915
933
|
export declare type ExportEndUserEvmAccountResult = NonNullable<Awaited<ReturnType<typeof exportEndUserEvmAccount>>>;
|
|
@@ -924,7 +942,7 @@ export declare type ExportEndUserSolanaAccountBody = {
|
|
|
924
942
|
address: string;
|
|
925
943
|
exportEncryptionKey: string;
|
|
926
944
|
walletSecretId: string;
|
|
927
|
-
parentOrigin?:
|
|
945
|
+
parentOrigin?: Url;
|
|
928
946
|
};
|
|
929
947
|
|
|
930
948
|
export declare type ExportEndUserSolanaAccountResult = NonNullable<Awaited<ReturnType<typeof exportEndUserSolanaAccount>>>;
|
|
@@ -1056,7 +1074,7 @@ export declare type InitiateAuthenticationResult = NonNullable<Awaited<ReturnTyp
|
|
|
1056
1074
|
|
|
1057
1075
|
export declare interface InitiateEmailAuthenticationNextStep {
|
|
1058
1076
|
type: InitiateEmailAuthenticationNextStepType;
|
|
1059
|
-
url:
|
|
1077
|
+
url: Url;
|
|
1060
1078
|
}
|
|
1061
1079
|
|
|
1062
1080
|
export declare type InitiateEmailAuthenticationNextStepType = (typeof InitiateEmailAuthenticationNextStepType)[keyof typeof InitiateEmailAuthenticationNextStepType];
|
|
@@ -1099,12 +1117,12 @@ export declare type InitiateMfaVerificationResult = NonNullable<Awaited<ReturnTy
|
|
|
1099
1117
|
|
|
1100
1118
|
export declare interface InitiateOAuthAuthenticationRequest {
|
|
1101
1119
|
type: OAuth2ProviderType;
|
|
1102
|
-
redirectUrl:
|
|
1120
|
+
redirectUrl: Url;
|
|
1103
1121
|
}
|
|
1104
1122
|
|
|
1105
1123
|
export declare interface InitiateOAuthAuthenticationResponse {
|
|
1106
1124
|
flowId: string;
|
|
1107
|
-
authUrl:
|
|
1125
|
+
authUrl: Url;
|
|
1108
1126
|
}
|
|
1109
1127
|
|
|
1110
1128
|
export declare interface InitiateSmsAuthenticationNextStep {
|
|
@@ -1365,7 +1383,6 @@ export declare const Network: {
|
|
|
1365
1383
|
readonly solana: "solana";
|
|
1366
1384
|
readonly aptos: "aptos";
|
|
1367
1385
|
readonly arbitrum: "arbitrum";
|
|
1368
|
-
readonly avacchain: "avacchain";
|
|
1369
1386
|
readonly optimism: "optimism";
|
|
1370
1387
|
readonly polygon: "polygon";
|
|
1371
1388
|
readonly sui: "sui";
|
|
@@ -1522,7 +1539,7 @@ export declare const OnrampOrderStatus: {
|
|
|
1522
1539
|
};
|
|
1523
1540
|
|
|
1524
1541
|
export declare interface OnrampPaymentLink {
|
|
1525
|
-
url:
|
|
1542
|
+
url: Url;
|
|
1526
1543
|
paymentLinkType: OnrampPaymentLinkType;
|
|
1527
1544
|
}
|
|
1528
1545
|
|
|
@@ -1555,7 +1572,7 @@ export declare const OnrampQuotePaymentMethodTypeId: {
|
|
|
1555
1572
|
};
|
|
1556
1573
|
|
|
1557
1574
|
export declare interface OnrampSession {
|
|
1558
|
-
onrampUrl:
|
|
1575
|
+
onrampUrl: Url;
|
|
1559
1576
|
}
|
|
1560
1577
|
|
|
1561
1578
|
export declare type Owner = string;
|
|
@@ -1813,7 +1830,7 @@ export declare interface RevokeSpendPermissionRequest {
|
|
|
1813
1830
|
network: SpendPermissionNetwork;
|
|
1814
1831
|
permissionHash: string;
|
|
1815
1832
|
useCdpPaymaster: boolean;
|
|
1816
|
-
paymasterUrl?:
|
|
1833
|
+
paymasterUrl?: Url;
|
|
1817
1834
|
}
|
|
1818
1835
|
|
|
1819
1836
|
export declare const revokeSpendPermissionWithEndUserAccount: (projectId: string, userId: string, address: string, revokeSpendPermissionRequest: RevokeSpendPermissionRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
|
|
@@ -1962,7 +1979,7 @@ export declare type SendUserOperationWithEndUserAccountBody = {
|
|
|
1962
1979
|
network: EvmUserOperationNetwork;
|
|
1963
1980
|
calls: EvmCall[];
|
|
1964
1981
|
useCdpPaymaster: boolean;
|
|
1965
|
-
paymasterUrl?:
|
|
1982
|
+
paymasterUrl?: Url;
|
|
1966
1983
|
walletSecretId: string;
|
|
1967
1984
|
};
|
|
1968
1985
|
|
|
@@ -2725,11 +2742,15 @@ export declare class UnknownError extends Error {
|
|
|
2725
2742
|
|
|
2726
2743
|
export declare interface UpdateCustomAuthConfigRequest {
|
|
2727
2744
|
enabled?: boolean;
|
|
2728
|
-
jwksUrl?:
|
|
2729
|
-
issuer?:
|
|
2745
|
+
jwksUrl?: Url;
|
|
2746
|
+
issuer?: Url;
|
|
2730
2747
|
audience?: string;
|
|
2731
2748
|
}
|
|
2732
2749
|
|
|
2750
|
+
export declare type Uri = string;
|
|
2751
|
+
|
|
2752
|
+
export declare type Url = string;
|
|
2753
|
+
|
|
2733
2754
|
export declare interface UserOperationReceipt {
|
|
2734
2755
|
revert?: UserOperationReceiptRevert;
|
|
2735
2756
|
transactionHash?: string;
|
|
@@ -2885,7 +2906,7 @@ export declare type WebhookSubscriptionUpdateRequestMetadata = {
|
|
|
2885
2906
|
};
|
|
2886
2907
|
|
|
2887
2908
|
export declare interface WebhookTarget {
|
|
2888
|
-
url:
|
|
2909
|
+
url: Url;
|
|
2889
2910
|
headers?: WebhookTargetHeaders;
|
|
2890
2911
|
}
|
|
2891
2912
|
|
|
@@ -2970,7 +2991,7 @@ export declare interface X402PaymentRequirements {
|
|
|
2970
2991
|
scheme: X402PaymentRequirementsScheme;
|
|
2971
2992
|
network: X402PaymentRequirementsNetwork;
|
|
2972
2993
|
maxAmountRequired: string;
|
|
2973
|
-
resource:
|
|
2994
|
+
resource: Url;
|
|
2974
2995
|
description: string;
|
|
2975
2996
|
mimeType: string;
|
|
2976
2997
|
outputSchema?: X402PaymentRequirementsOutputSchema;
|