@coinbase/cdp-api-client 0.0.96 → 0.0.98
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/index.js +251 -233
- package/dist/esm/index16.js +0 -6
- package/dist/esm/index19.js +0 -9
- package/dist/esm/index20.js +0 -9
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +1086 -365
- package/dist/esm/index6.js +400 -1004
- package/dist/types/index.d.ts +615 -21
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -65,6 +65,11 @@ export declare type AccountId = string;
|
|
|
65
65
|
|
|
66
66
|
export declare type AccountName = string;
|
|
67
67
|
|
|
68
|
+
export declare interface AccountNetworkCapabilities {
|
|
69
|
+
accountId: AccountId;
|
|
70
|
+
depositDestinations: DepositDestinationCapabilities;
|
|
71
|
+
}
|
|
72
|
+
|
|
68
73
|
export declare interface AccountTokenAddressesResponse {
|
|
69
74
|
accountAddress?: string;
|
|
70
75
|
tokenAddresses?: string[];
|
|
@@ -237,6 +242,25 @@ export declare interface AuthManager {
|
|
|
237
242
|
}) => Promise<string>;
|
|
238
243
|
}
|
|
239
244
|
|
|
245
|
+
export declare interface Authorization {
|
|
246
|
+
authorizationId?: AuthorizationId;
|
|
247
|
+
paymentSessionId?: PaymentSessionId;
|
|
248
|
+
status?: PaymentActionStatus;
|
|
249
|
+
amount?: string;
|
|
250
|
+
error?: PaymentError;
|
|
251
|
+
metadata?: Metadata;
|
|
252
|
+
onchainTransactions?: AuthorizationOnchainTransactionsItem[];
|
|
253
|
+
createdAt?: string;
|
|
254
|
+
updatedAt?: string;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export declare type AuthorizationId = string;
|
|
258
|
+
|
|
259
|
+
export declare type AuthorizationOnchainTransactionsItem = {
|
|
260
|
+
transactionHash: string;
|
|
261
|
+
network: PaymentSourceNetwork;
|
|
262
|
+
};
|
|
263
|
+
|
|
240
264
|
export declare type BadGatewayErrorResponse = Error_2;
|
|
241
265
|
|
|
242
266
|
export declare interface Balance {
|
|
@@ -261,6 +285,10 @@ export declare interface BalancesAsset {
|
|
|
261
285
|
|
|
262
286
|
export declare type BlockchainAddress = string;
|
|
263
287
|
|
|
288
|
+
export declare interface CancelPaymentSessionRequest {
|
|
289
|
+
cancellationReason?: string;
|
|
290
|
+
}
|
|
291
|
+
|
|
264
292
|
export declare interface CapabilitiesMap {
|
|
265
293
|
custodyCrypto?: Capability;
|
|
266
294
|
custodyFiat?: Capability;
|
|
@@ -347,6 +375,26 @@ export declare const CapabilityStatus: {
|
|
|
347
375
|
readonly inactive: "inactive";
|
|
348
376
|
};
|
|
349
377
|
|
|
378
|
+
export declare interface Capture {
|
|
379
|
+
captureId?: CaptureId;
|
|
380
|
+
paymentSessionId?: PaymentSessionId;
|
|
381
|
+
status?: PaymentActionStatus;
|
|
382
|
+
amount?: string;
|
|
383
|
+
transferId?: string;
|
|
384
|
+
error?: PaymentError;
|
|
385
|
+
metadata?: Metadata;
|
|
386
|
+
onchainTransactions?: CaptureOnchainTransactionsItem[];
|
|
387
|
+
createdAt?: string;
|
|
388
|
+
updatedAt?: string;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export declare type CaptureId = string;
|
|
392
|
+
|
|
393
|
+
export declare type CaptureOnchainTransactionsItem = {
|
|
394
|
+
transactionHash: string;
|
|
395
|
+
network: PaymentSourceNetwork;
|
|
396
|
+
};
|
|
397
|
+
|
|
350
398
|
declare const cdpApiClient: <T>(config: AxiosRequestConfig, idempotencyKey?: string) => Promise<T>;
|
|
351
399
|
|
|
352
400
|
export declare type CdpOptions = {
|
|
@@ -399,11 +447,23 @@ export declare type CommonSwapResponseIssuesBalance = {
|
|
|
399
447
|
|
|
400
448
|
export declare const configureCdpApiClient: (options: CdpOptions) => void;
|
|
401
449
|
|
|
450
|
+
export declare type ConfirmPaymentSessionRequest = OnchainSelectedOption;
|
|
451
|
+
|
|
402
452
|
export declare interface CreateAccountRequest {
|
|
403
453
|
owner?: string;
|
|
404
454
|
name?: AccountName;
|
|
405
455
|
}
|
|
406
456
|
|
|
457
|
+
export declare interface CreateAuthorizationRequest {
|
|
458
|
+
amount?: string;
|
|
459
|
+
metadata?: Metadata;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export declare interface CreateCaptureRequest {
|
|
463
|
+
amount?: string;
|
|
464
|
+
metadata?: Metadata;
|
|
465
|
+
}
|
|
466
|
+
|
|
407
467
|
export declare interface CreateCustomAuthConfigRequest {
|
|
408
468
|
enabled: boolean;
|
|
409
469
|
jwksUrl: Url;
|
|
@@ -445,6 +505,19 @@ export declare interface CreateCustomOAuthXConfig {
|
|
|
445
505
|
clientSecret: string;
|
|
446
506
|
}
|
|
447
507
|
|
|
508
|
+
export declare const createDelegationForEndUser: (projectId: string, userId: string, createDelegationForEndUserBody: CreateDelegationForEndUserBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<CreateDelegationForEndUser201>;
|
|
509
|
+
|
|
510
|
+
export declare type CreateDelegationForEndUser201 = {
|
|
511
|
+
delegationId: string;
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
export declare type CreateDelegationForEndUserBody = {
|
|
515
|
+
expiresAt: string;
|
|
516
|
+
walletSecretId: string;
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
export declare type CreateDelegationForEndUserResult = NonNullable<Awaited<ReturnType<typeof createDelegationForEndUser>>>;
|
|
520
|
+
|
|
448
521
|
export declare interface CreateDepositDestinationRequest {
|
|
449
522
|
accountId: AccountId;
|
|
450
523
|
type: CreateDepositDestinationRequestType;
|
|
@@ -488,6 +561,44 @@ export declare type CreateEndUserEvmSmartAccountBody = {
|
|
|
488
561
|
|
|
489
562
|
export declare type CreateEndUserEvmSmartAccountResult = NonNullable<Awaited<ReturnType<typeof createEndUserEvmSmartAccount>>>;
|
|
490
563
|
|
|
564
|
+
export declare const createEndUserEvmSwap: (projectId: string, userId: string, createEndUserEvmSwapBody: CreateEndUserEvmSwapBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<CreateEndUserEvmSwap200>;
|
|
565
|
+
|
|
566
|
+
export declare type CreateEndUserEvmSwap200 = {
|
|
567
|
+
transactionHash: string | null;
|
|
568
|
+
userOpHash: string | null;
|
|
569
|
+
network: EvmSwapsNetwork;
|
|
570
|
+
fromToken: string;
|
|
571
|
+
fromAmount: string;
|
|
572
|
+
toToken: string;
|
|
573
|
+
toAmount: string;
|
|
574
|
+
minToAmount: string;
|
|
575
|
+
totalNetworkFee?: string | null;
|
|
576
|
+
fees?: CreateEndUserEvmSwap200Fees;
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
export declare type CreateEndUserEvmSwap200Fees = {
|
|
580
|
+
gasFee?: CreateEndUserEvmSwap200FeesGasFee;
|
|
581
|
+
protocolFee?: CreateEndUserEvmSwap200FeesProtocolFee;
|
|
582
|
+
} | null;
|
|
583
|
+
|
|
584
|
+
export declare type CreateEndUserEvmSwap200FeesGasFee = TokenFee | null;
|
|
585
|
+
|
|
586
|
+
export declare type CreateEndUserEvmSwap200FeesProtocolFee = TokenFee | null;
|
|
587
|
+
|
|
588
|
+
export declare type CreateEndUserEvmSwapBody = {
|
|
589
|
+
walletSecretId: string;
|
|
590
|
+
taker: string;
|
|
591
|
+
network: EvmSwapsNetwork;
|
|
592
|
+
fromToken: string;
|
|
593
|
+
toToken: string;
|
|
594
|
+
fromAmount: string;
|
|
595
|
+
slippageBps?: number;
|
|
596
|
+
useCdpPaymaster?: boolean;
|
|
597
|
+
paymasterUrl?: Url;
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
export declare type CreateEndUserEvmSwapResult = NonNullable<Awaited<ReturnType<typeof createEndUserEvmSwap>>>;
|
|
601
|
+
|
|
491
602
|
export declare const createEndUserSolanaAccount: (projectId: string, userId: string, createEndUserSolanaAccountBody: CreateEndUserSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
|
|
492
603
|
|
|
493
604
|
export declare type CreateEndUserSolanaAccountBody = {
|
|
@@ -506,13 +617,31 @@ export declare type CreateEvmEip7702DelegationWithEndUserAccountBody = {
|
|
|
506
617
|
address: string;
|
|
507
618
|
network: EvmEip7702DelegationNetwork;
|
|
508
619
|
enableSpendPermissions?: boolean;
|
|
509
|
-
walletSecretId
|
|
620
|
+
walletSecretId?: string;
|
|
510
621
|
};
|
|
511
622
|
|
|
512
623
|
export declare type CreateEvmEip7702DelegationWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof createEvmEip7702DelegationWithEndUserAccount>>>;
|
|
513
624
|
|
|
625
|
+
export declare interface CreatePaymentSessionRequest {
|
|
626
|
+
amount: string;
|
|
627
|
+
asset: Asset;
|
|
628
|
+
target: PaymentSessionTarget;
|
|
629
|
+
expiries?: PaymentExpiries;
|
|
630
|
+
redirect?: PaymentRedirect;
|
|
631
|
+
execute?: PaymentExecutionBehavior;
|
|
632
|
+
metadata?: Metadata;
|
|
633
|
+
}
|
|
634
|
+
|
|
514
635
|
export declare interface CreateProjectConfigRequest {
|
|
515
636
|
name?: string;
|
|
637
|
+
delegatedSigningEnabled?: boolean;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
export declare interface CreateRefundRequest {
|
|
641
|
+
source: RefundSource;
|
|
642
|
+
amount?: string;
|
|
643
|
+
reason?: string;
|
|
644
|
+
metadata?: Metadata;
|
|
516
645
|
}
|
|
517
646
|
|
|
518
647
|
export declare type CreateReportDestinationRequest = CreateReportDestinationRequestAllOf & CreateReportDestinationRequestAllOfThreeOneOf;
|
|
@@ -588,6 +717,10 @@ export declare type CreateSwapQuoteResponseWrapper = CreateSwapQuoteResponse | S
|
|
|
588
717
|
|
|
589
718
|
export declare type CreateTransferSource = TransfersAccount | PaymentMethod;
|
|
590
719
|
|
|
720
|
+
export declare interface CreateVoidRequest {
|
|
721
|
+
metadata?: Metadata;
|
|
722
|
+
}
|
|
723
|
+
|
|
591
724
|
export declare interface CryptoDepositDestination {
|
|
592
725
|
depositDestinationId: DepositDestinationId;
|
|
593
726
|
accountId: AccountId;
|
|
@@ -685,6 +818,12 @@ export declare const DeliveryStatus: {
|
|
|
685
818
|
|
|
686
819
|
export declare type DepositDestination = CryptoDepositDestination;
|
|
687
820
|
|
|
821
|
+
export declare type DepositDestinationCapabilities = NetworkCapabilities & DepositDestinationCapabilitiesAllOf;
|
|
822
|
+
|
|
823
|
+
export declare type DepositDestinationCapabilitiesAllOf = {
|
|
824
|
+
liquidationSupported: boolean;
|
|
825
|
+
};
|
|
826
|
+
|
|
688
827
|
export declare type DepositDestinationId = string;
|
|
689
828
|
|
|
690
829
|
export declare interface DepositDestinationReference {
|
|
@@ -704,6 +843,43 @@ export declare const DepositDestinationType: {
|
|
|
704
843
|
readonly crypto: "crypto";
|
|
705
844
|
};
|
|
706
845
|
|
|
846
|
+
export declare interface DepositTravelRuleBeneficiary {
|
|
847
|
+
name?: string;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
export declare interface DepositTravelRuleOriginator {
|
|
851
|
+
name?: string;
|
|
852
|
+
address?: PhysicalAddress;
|
|
853
|
+
walletType?: DepositTravelRuleOriginatorWalletType;
|
|
854
|
+
virtualAssetServiceProvider?: DepositTravelRuleVasp;
|
|
855
|
+
personalId?: string;
|
|
856
|
+
dateOfBirth?: DateOfBirth;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
export declare type DepositTravelRuleOriginatorWalletType = (typeof DepositTravelRuleOriginatorWalletType)[keyof typeof DepositTravelRuleOriginatorWalletType];
|
|
860
|
+
|
|
861
|
+
export declare const DepositTravelRuleOriginatorWalletType: {
|
|
862
|
+
readonly custodial: "custodial";
|
|
863
|
+
readonly self_custody: "self_custody";
|
|
864
|
+
};
|
|
865
|
+
|
|
866
|
+
export declare interface DepositTravelRuleRequest {
|
|
867
|
+
originator?: DepositTravelRuleOriginator;
|
|
868
|
+
beneficiary?: DepositTravelRuleBeneficiary;
|
|
869
|
+
isSelf?: boolean;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
export declare interface DepositTravelRuleResponse {
|
|
873
|
+
status: TravelRuleStatus;
|
|
874
|
+
missingFields?: string[];
|
|
875
|
+
reason?: string;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
export declare interface DepositTravelRuleVasp {
|
|
879
|
+
identifier?: string;
|
|
880
|
+
name?: string;
|
|
881
|
+
}
|
|
882
|
+
|
|
707
883
|
export declare type Description = string;
|
|
708
884
|
|
|
709
885
|
export declare type DestinationType = (typeof DestinationType)[keyof typeof DestinationType];
|
|
@@ -724,6 +900,18 @@ export declare const DeveloperJWTAuthenticationType: {
|
|
|
724
900
|
readonly jwt: "jwt";
|
|
725
901
|
};
|
|
726
902
|
|
|
903
|
+
export declare interface EIP3009Payload {
|
|
904
|
+
payloadId: string;
|
|
905
|
+
type: EIP3009PayloadType;
|
|
906
|
+
data: EIP712Message;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
export declare type EIP3009PayloadType = (typeof EIP3009PayloadType)[keyof typeof EIP3009PayloadType];
|
|
910
|
+
|
|
911
|
+
export declare const EIP3009PayloadType: {
|
|
912
|
+
readonly eip3009: "eip3009";
|
|
913
|
+
};
|
|
914
|
+
|
|
727
915
|
export declare interface EIP712Domain {
|
|
728
916
|
name?: string;
|
|
729
917
|
version?: string;
|
|
@@ -882,16 +1070,43 @@ export declare interface Entity {
|
|
|
882
1070
|
type?: string;
|
|
883
1071
|
productionEntityId?: EntityId;
|
|
884
1072
|
capabilities: CapabilitiesMap;
|
|
1073
|
+
featureFlags: EntityFeatureFlags;
|
|
885
1074
|
createdAt: string;
|
|
886
1075
|
otherInfo?: EntityOtherInfo;
|
|
887
1076
|
}
|
|
888
1077
|
|
|
1078
|
+
export declare type EntityFeatureFlags = {
|
|
1079
|
+
[key: string]: boolean;
|
|
1080
|
+
};
|
|
1081
|
+
|
|
889
1082
|
export declare type EntityId = string;
|
|
890
1083
|
|
|
891
1084
|
export declare type EntityOtherInfo = {
|
|
892
1085
|
[key: string]: unknown;
|
|
893
1086
|
};
|
|
894
1087
|
|
|
1088
|
+
export declare interface Erc20ApprovalPayload {
|
|
1089
|
+
payloadId: string;
|
|
1090
|
+
type: Erc20ApprovalPayloadType;
|
|
1091
|
+
data: Erc20ApprovalPayloadData;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
export declare type Erc20ApprovalPayloadData = {
|
|
1095
|
+
chainId: number;
|
|
1096
|
+
to: string;
|
|
1097
|
+
data: string;
|
|
1098
|
+
value: string;
|
|
1099
|
+
gas?: string;
|
|
1100
|
+
maxFeePerGas?: string;
|
|
1101
|
+
maxPriorityFeePerGas?: string;
|
|
1102
|
+
};
|
|
1103
|
+
|
|
1104
|
+
export declare type Erc20ApprovalPayloadType = (typeof Erc20ApprovalPayloadType)[keyof typeof Erc20ApprovalPayloadType];
|
|
1105
|
+
|
|
1106
|
+
export declare const Erc20ApprovalPayloadType: {
|
|
1107
|
+
readonly erc20_approval: "erc20_approval";
|
|
1108
|
+
};
|
|
1109
|
+
|
|
895
1110
|
declare interface Error_2 {
|
|
896
1111
|
errorType: ErrorType;
|
|
897
1112
|
errorMessage: string;
|
|
@@ -961,6 +1176,9 @@ export declare const ErrorType: {
|
|
|
961
1176
|
readonly order_already_filled: "order_already_filled";
|
|
962
1177
|
readonly order_already_canceled: "order_already_canceled";
|
|
963
1178
|
readonly account_not_ready: "account_not_ready";
|
|
1179
|
+
readonly insufficient_liquidity: "insufficient_liquidity";
|
|
1180
|
+
readonly insufficient_allowance: "insufficient_allowance";
|
|
1181
|
+
readonly transaction_simulation_failed: "transaction_simulation_failed";
|
|
964
1182
|
};
|
|
965
1183
|
|
|
966
1184
|
export declare interface EthValueCriterion {
|
|
@@ -1343,6 +1561,57 @@ export declare const getAuthenticatedEndUser: (projectId: string, userId: string
|
|
|
1343
1561
|
|
|
1344
1562
|
export declare type GetAuthenticatedEndUserResult = NonNullable<Awaited<ReturnType<typeof getAuthenticatedEndUser>>>;
|
|
1345
1563
|
|
|
1564
|
+
export declare const getEndUserEvmSwapPrice: (projectId: string, userId: string, params: GetEndUserEvmSwapPriceParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<GetEndUserEvmSwapPrice200>;
|
|
1565
|
+
|
|
1566
|
+
export declare type GetEndUserEvmSwapPrice200 = {
|
|
1567
|
+
liquidityAvailable: boolean;
|
|
1568
|
+
network?: EvmSwapsNetwork;
|
|
1569
|
+
fromToken?: string;
|
|
1570
|
+
fromAmount?: string;
|
|
1571
|
+
toToken?: string;
|
|
1572
|
+
toAmount?: string;
|
|
1573
|
+
minToAmount?: string;
|
|
1574
|
+
totalNetworkFee?: string | null;
|
|
1575
|
+
fees?: GetEndUserEvmSwapPrice200Fees;
|
|
1576
|
+
issues?: GetEndUserEvmSwapPrice200Issues;
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
export declare type GetEndUserEvmSwapPrice200Fees = {
|
|
1580
|
+
gasFee?: GetEndUserEvmSwapPrice200FeesGasFee;
|
|
1581
|
+
protocolFee?: GetEndUserEvmSwapPrice200FeesProtocolFee;
|
|
1582
|
+
} | null;
|
|
1583
|
+
|
|
1584
|
+
export declare type GetEndUserEvmSwapPrice200FeesGasFee = TokenFee | null;
|
|
1585
|
+
|
|
1586
|
+
export declare type GetEndUserEvmSwapPrice200FeesProtocolFee = TokenFee | null;
|
|
1587
|
+
|
|
1588
|
+
export declare type GetEndUserEvmSwapPrice200Issues = {
|
|
1589
|
+
allowance: GetEndUserEvmSwapPrice200IssuesAllowance;
|
|
1590
|
+
balance: GetEndUserEvmSwapPrice200IssuesBalance;
|
|
1591
|
+
} | null;
|
|
1592
|
+
|
|
1593
|
+
export declare type GetEndUserEvmSwapPrice200IssuesAllowance = {
|
|
1594
|
+
currentAllowance: string;
|
|
1595
|
+
spender: string;
|
|
1596
|
+
} | null;
|
|
1597
|
+
|
|
1598
|
+
export declare type GetEndUserEvmSwapPrice200IssuesBalance = {
|
|
1599
|
+
token: string;
|
|
1600
|
+
currentBalance: string;
|
|
1601
|
+
requiredBalance: string;
|
|
1602
|
+
} | null;
|
|
1603
|
+
|
|
1604
|
+
export declare type GetEndUserEvmSwapPriceParams = {
|
|
1605
|
+
taker: string;
|
|
1606
|
+
network: EvmSwapsNetwork;
|
|
1607
|
+
fromToken: string;
|
|
1608
|
+
toToken: string;
|
|
1609
|
+
fromAmount: string;
|
|
1610
|
+
slippageBps?: number;
|
|
1611
|
+
};
|
|
1612
|
+
|
|
1613
|
+
export declare type GetEndUserEvmSwapPriceResult = NonNullable<Awaited<ReturnType<typeof getEndUserEvmSwapPrice>>>;
|
|
1614
|
+
|
|
1346
1615
|
export declare const getEvmEip7702DelegationOperationByIdWithEndUserAccount: (projectId: string, userId: string, delegationOperationId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmEip7702DelegationOperation>;
|
|
1347
1616
|
|
|
1348
1617
|
export declare type GetEvmEip7702DelegationOperationByIdWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof getEvmEip7702DelegationOperationByIdWithEndUserAccount>>>;
|
|
@@ -1826,9 +2095,17 @@ export declare const Network: {
|
|
|
1826
2095
|
readonly arbitrum: "arbitrum";
|
|
1827
2096
|
readonly optimism: "optimism";
|
|
1828
2097
|
readonly polygon: "polygon";
|
|
1829
|
-
readonly sui: "sui";
|
|
1830
2098
|
};
|
|
1831
2099
|
|
|
2100
|
+
export declare interface NetworkAssets {
|
|
2101
|
+
network: Network;
|
|
2102
|
+
assets: Asset[];
|
|
2103
|
+
}
|
|
2104
|
+
|
|
2105
|
+
export declare interface NetworkCapabilities {
|
|
2106
|
+
networks: NetworkAssets[];
|
|
2107
|
+
}
|
|
2108
|
+
|
|
1832
2109
|
export declare interface OAuth2Authentication {
|
|
1833
2110
|
type: OAuth2ProviderType;
|
|
1834
2111
|
sub: string;
|
|
@@ -1932,6 +2209,27 @@ export declare interface OnchainDataTableSchema {
|
|
|
1932
2209
|
columns?: OnchainDataColumnSchema[];
|
|
1933
2210
|
}
|
|
1934
2211
|
|
|
2212
|
+
export declare interface OnchainPaymentOption {
|
|
2213
|
+
optionId: string;
|
|
2214
|
+
source?: PaymentSourceOnchainAddress;
|
|
2215
|
+
amount: string;
|
|
2216
|
+
asset: Asset;
|
|
2217
|
+
network: PaymentSourceNetwork;
|
|
2218
|
+
payloads: OnchainSignaturePayload[];
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
export declare interface OnchainSelectedOption {
|
|
2222
|
+
optionId: string;
|
|
2223
|
+
signedPayloads: OnchainSignedPayload[];
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
export declare type OnchainSignaturePayload = EIP3009Payload | Permit2Payload | Erc20ApprovalPayload;
|
|
2227
|
+
|
|
2228
|
+
export declare interface OnchainSignedPayload {
|
|
2229
|
+
payloadId?: string;
|
|
2230
|
+
signature?: string;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
1935
2233
|
export declare type OnrampLimitType = (typeof OnrampLimitType)[keyof typeof OnrampLimitType];
|
|
1936
2234
|
|
|
1937
2235
|
export declare const OnrampLimitType: {
|
|
@@ -1948,10 +2246,12 @@ export declare type OnrampLimitUpgradeIdentityFieldKey = (typeof OnrampLimitUpgr
|
|
|
1948
2246
|
|
|
1949
2247
|
export declare const OnrampLimitUpgradeIdentityFieldKey: {
|
|
1950
2248
|
readonly ssnLast4: "ssnLast4";
|
|
2249
|
+
readonly dateOfBirth: "dateOfBirth";
|
|
1951
2250
|
};
|
|
1952
2251
|
|
|
1953
2252
|
export declare interface OnrampLimitUpgradeIdentityFields {
|
|
1954
2253
|
ssnLast4?: string;
|
|
2254
|
+
dateOfBirth?: DateOfBirth;
|
|
1955
2255
|
}
|
|
1956
2256
|
|
|
1957
2257
|
export declare interface OnrampLimitUpgradeOption {
|
|
@@ -1977,10 +2277,11 @@ export declare interface OnrampLimitUpgradeRequest {
|
|
|
1977
2277
|
export declare type OnrampLimitUpgradeStatus = (typeof OnrampLimitUpgradeStatus)[keyof typeof OnrampLimitUpgradeStatus];
|
|
1978
2278
|
|
|
1979
2279
|
export declare const OnrampLimitUpgradeStatus: {
|
|
1980
|
-
readonly
|
|
1981
|
-
readonly
|
|
2280
|
+
readonly unrequested: "unrequested";
|
|
2281
|
+
readonly resubmit: "resubmit";
|
|
2282
|
+
readonly pending: "pending";
|
|
1982
2283
|
readonly active: "active";
|
|
1983
|
-
readonly
|
|
2284
|
+
readonly inactive: "inactive";
|
|
1984
2285
|
};
|
|
1985
2286
|
|
|
1986
2287
|
export declare interface OnrampOrder {
|
|
@@ -2180,6 +2481,34 @@ export declare type PageSizeParameter = number;
|
|
|
2180
2481
|
|
|
2181
2482
|
export declare type PageTokenParameter = string;
|
|
2182
2483
|
|
|
2484
|
+
export declare type PaymentActionStatus = (typeof PaymentActionStatus)[keyof typeof PaymentActionStatus];
|
|
2485
|
+
|
|
2486
|
+
export declare const PaymentActionStatus: {
|
|
2487
|
+
readonly pending: "pending";
|
|
2488
|
+
readonly succeeded: "succeeded";
|
|
2489
|
+
readonly failed: "failed";
|
|
2490
|
+
};
|
|
2491
|
+
|
|
2492
|
+
export declare interface PaymentError {
|
|
2493
|
+
code?: string;
|
|
2494
|
+
message?: string;
|
|
2495
|
+
occurredAt?: string;
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
export declare type PaymentExecutionBehavior = (typeof PaymentExecutionBehavior)[keyof typeof PaymentExecutionBehavior];
|
|
2499
|
+
|
|
2500
|
+
export declare const PaymentExecutionBehavior: {
|
|
2501
|
+
readonly manual: "manual";
|
|
2502
|
+
readonly auto_authorize: "auto_authorize";
|
|
2503
|
+
readonly auto_capture: "auto_capture";
|
|
2504
|
+
};
|
|
2505
|
+
|
|
2506
|
+
export declare interface PaymentExpiries {
|
|
2507
|
+
authorizationExpiresAt?: string;
|
|
2508
|
+
captureExpiresAt?: string;
|
|
2509
|
+
refundExpiresAt?: string;
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2183
2512
|
export declare interface PaymentMethod {
|
|
2184
2513
|
paymentMethodId: string;
|
|
2185
2514
|
asset: Asset;
|
|
@@ -2198,6 +2527,102 @@ export declare type PaymentMethodRequiredErrorResponse = Error_2;
|
|
|
2198
2527
|
|
|
2199
2528
|
export declare type PaymentMethodsPaymentMethod = FedwirePaymentMethod | SwiftPaymentMethod;
|
|
2200
2529
|
|
|
2530
|
+
export declare type PaymentOption = OnchainPaymentOption;
|
|
2531
|
+
|
|
2532
|
+
export declare interface PaymentRedirect {
|
|
2533
|
+
failureUrl?: Url;
|
|
2534
|
+
successUrl?: Url;
|
|
2535
|
+
}
|
|
2536
|
+
|
|
2537
|
+
export declare interface PaymentSession {
|
|
2538
|
+
paymentSessionId?: PaymentSessionId;
|
|
2539
|
+
entityId?: string;
|
|
2540
|
+
amount?: string;
|
|
2541
|
+
asset?: Asset;
|
|
2542
|
+
target?: PaymentSessionTarget;
|
|
2543
|
+
execute?: PaymentExecutionBehavior;
|
|
2544
|
+
expiries?: PaymentExpiries;
|
|
2545
|
+
source?: PaymentSessionSource;
|
|
2546
|
+
status?: PaymentSessionStatus;
|
|
2547
|
+
balances?: PaymentSessionBalances;
|
|
2548
|
+
authorizations?: Authorization[];
|
|
2549
|
+
captures?: Capture[];
|
|
2550
|
+
voids?: Void[];
|
|
2551
|
+
refunds?: Refund[];
|
|
2552
|
+
readonly url?: Url;
|
|
2553
|
+
redirect?: PaymentRedirect;
|
|
2554
|
+
metadata?: Metadata;
|
|
2555
|
+
cancellationReason?: string;
|
|
2556
|
+
createdAt?: string;
|
|
2557
|
+
updatedAt?: string;
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
export declare interface PaymentSessionBalances {
|
|
2561
|
+
capturable?: string;
|
|
2562
|
+
captured?: string;
|
|
2563
|
+
refundable?: string;
|
|
2564
|
+
refunded?: string;
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2567
|
+
export declare type PaymentSessionId = string;
|
|
2568
|
+
|
|
2569
|
+
export declare interface PaymentSessionPreparation {
|
|
2570
|
+
paymentSession?: PaymentSession;
|
|
2571
|
+
paymentOptions?: PaymentOption[];
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
export declare type PaymentSessionSource = PaymentSourceOnchainAddress;
|
|
2575
|
+
|
|
2576
|
+
export declare type PaymentSessionStatus = (typeof PaymentSessionStatus)[keyof typeof PaymentSessionStatus];
|
|
2577
|
+
|
|
2578
|
+
export declare const PaymentSessionStatus: {
|
|
2579
|
+
readonly created: "created";
|
|
2580
|
+
readonly prepared: "prepared";
|
|
2581
|
+
readonly confirmed: "confirmed";
|
|
2582
|
+
readonly authorized: "authorized";
|
|
2583
|
+
readonly partially_captured: "partially_captured";
|
|
2584
|
+
readonly captured: "captured";
|
|
2585
|
+
readonly voided: "voided";
|
|
2586
|
+
readonly partially_refunded: "partially_refunded";
|
|
2587
|
+
readonly refunded: "refunded";
|
|
2588
|
+
readonly cancelled: "cancelled";
|
|
2589
|
+
};
|
|
2590
|
+
|
|
2591
|
+
export declare type PaymentSessionTarget = PaymentTargetOnchainAddress;
|
|
2592
|
+
|
|
2593
|
+
export declare type PaymentSourceNetwork = (typeof PaymentSourceNetwork)[keyof typeof PaymentSourceNetwork];
|
|
2594
|
+
|
|
2595
|
+
export declare const PaymentSourceNetwork: {
|
|
2596
|
+
readonly arbitrum: "arbitrum";
|
|
2597
|
+
readonly "arbitrum-sepolia": "arbitrum-sepolia";
|
|
2598
|
+
readonly base: "base";
|
|
2599
|
+
readonly "base-sepolia": "base-sepolia";
|
|
2600
|
+
readonly ethereum: "ethereum";
|
|
2601
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
2602
|
+
readonly optimism: "optimism";
|
|
2603
|
+
readonly "optimism-sepolia": "optimism-sepolia";
|
|
2604
|
+
readonly polygon: "polygon";
|
|
2605
|
+
readonly "polygon-amoy": "polygon-amoy";
|
|
2606
|
+
};
|
|
2607
|
+
|
|
2608
|
+
export declare interface PaymentSourceOnchainAddress {
|
|
2609
|
+
address: BlockchainAddress;
|
|
2610
|
+
network?: PaymentSourceNetwork;
|
|
2611
|
+
asset?: Asset;
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
export declare type PaymentTargetNetwork = (typeof PaymentTargetNetwork)[keyof typeof PaymentTargetNetwork];
|
|
2615
|
+
|
|
2616
|
+
export declare const PaymentTargetNetwork: {
|
|
2617
|
+
readonly base: "base";
|
|
2618
|
+
readonly "base-sepolia": "base-sepolia";
|
|
2619
|
+
};
|
|
2620
|
+
|
|
2621
|
+
export declare interface PaymentTargetOnchainAddress {
|
|
2622
|
+
address: BlockchainAddress;
|
|
2623
|
+
network?: PaymentTargetNetwork;
|
|
2624
|
+
}
|
|
2625
|
+
|
|
2201
2626
|
export declare interface Permission {
|
|
2202
2627
|
permissionId: PermissionId;
|
|
2203
2628
|
name: string;
|
|
@@ -2273,6 +2698,18 @@ export declare const PermissionVerb: {
|
|
|
2273
2698
|
readonly manage_all: "manage_all";
|
|
2274
2699
|
};
|
|
2275
2700
|
|
|
2701
|
+
export declare interface Permit2Payload {
|
|
2702
|
+
payloadId: string;
|
|
2703
|
+
type: Permit2PayloadType;
|
|
2704
|
+
data: EIP712Message;
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
export declare type Permit2PayloadType = (typeof Permit2PayloadType)[keyof typeof Permit2PayloadType];
|
|
2708
|
+
|
|
2709
|
+
export declare const Permit2PayloadType: {
|
|
2710
|
+
readonly permit2: "permit2";
|
|
2711
|
+
};
|
|
2712
|
+
|
|
2276
2713
|
export declare interface PhysicalAddress {
|
|
2277
2714
|
line1?: string;
|
|
2278
2715
|
line2?: string;
|
|
@@ -2298,6 +2735,10 @@ export declare const PolicyScope: {
|
|
|
2298
2735
|
readonly account: "account";
|
|
2299
2736
|
};
|
|
2300
2737
|
|
|
2738
|
+
export declare interface PreparePaymentSessionRequest {
|
|
2739
|
+
sources: PaymentSessionSource[];
|
|
2740
|
+
}
|
|
2741
|
+
|
|
2301
2742
|
export declare type PrepareUserOperationCriteria = PrepareUserOperationCriteriaItem[];
|
|
2302
2743
|
|
|
2303
2744
|
export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
@@ -2355,6 +2796,9 @@ export declare interface ProjectConfig {
|
|
|
2355
2796
|
name?: string;
|
|
2356
2797
|
createdAt: string;
|
|
2357
2798
|
updatedAt: string;
|
|
2799
|
+
gmailAutoLinkingEnabled?: boolean;
|
|
2800
|
+
iCloudAutoLinkingEnabled?: boolean;
|
|
2801
|
+
delegatedSigningEnabled?: boolean;
|
|
2358
2802
|
appAttestation?: AppAttestationProjectConfig;
|
|
2359
2803
|
}
|
|
2360
2804
|
|
|
@@ -2411,6 +2855,34 @@ export declare interface RefreshTokenStorage {
|
|
|
2411
2855
|
removeRefreshToken(): Promise<void>;
|
|
2412
2856
|
}
|
|
2413
2857
|
|
|
2858
|
+
export declare interface Refund {
|
|
2859
|
+
refundId?: RefundId;
|
|
2860
|
+
paymentSessionId?: PaymentSessionId;
|
|
2861
|
+
source?: RefundSource;
|
|
2862
|
+
status?: PaymentActionStatus;
|
|
2863
|
+
amount?: string;
|
|
2864
|
+
transferId?: string;
|
|
2865
|
+
reason?: string;
|
|
2866
|
+
error?: PaymentError;
|
|
2867
|
+
metadata?: Metadata;
|
|
2868
|
+
onchainTransactions?: RefundOnchainTransactionsItem[];
|
|
2869
|
+
createdAt?: string;
|
|
2870
|
+
updatedAt?: string;
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
export declare type RefundId = string;
|
|
2874
|
+
|
|
2875
|
+
export declare interface RefundOnchainAddress {
|
|
2876
|
+
address: BlockchainAddress;
|
|
2877
|
+
}
|
|
2878
|
+
|
|
2879
|
+
export declare type RefundOnchainTransactionsItem = {
|
|
2880
|
+
transactionHash: string;
|
|
2881
|
+
network: PaymentSourceNetwork;
|
|
2882
|
+
};
|
|
2883
|
+
|
|
2884
|
+
export declare type RefundSource = TransfersAccount | RefundOnchainAddress;
|
|
2885
|
+
|
|
2414
2886
|
export declare const registerAttestation: (projectId: string, iosAttestationRegistrationRequest: IosAttestationRegistrationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<IosAttestationRegistrationResponse>;
|
|
2415
2887
|
|
|
2416
2888
|
export declare type RegisterAttestationResult = NonNullable<Awaited<ReturnType<typeof registerAttestation>>>;
|
|
@@ -2519,6 +2991,14 @@ export declare const ResourceType: {
|
|
|
2519
2991
|
readonly transfers: "transfers";
|
|
2520
2992
|
};
|
|
2521
2993
|
|
|
2994
|
+
export declare const revokeDelegationForEndUser: (projectId: string, userId: string, revokeDelegationForEndUserBody: RevokeDelegationForEndUserBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
|
|
2995
|
+
|
|
2996
|
+
export declare type RevokeDelegationForEndUserBody = {
|
|
2997
|
+
walletSecretId?: string;
|
|
2998
|
+
};
|
|
2999
|
+
|
|
3000
|
+
export declare type RevokeDelegationForEndUserResult = NonNullable<Awaited<ReturnType<typeof revokeDelegationForEndUser>>>;
|
|
3001
|
+
|
|
2522
3002
|
export declare interface RevokeSpendPermissionRequest {
|
|
2523
3003
|
walletSecretId: string;
|
|
2524
3004
|
network: SpendPermissionNetwork;
|
|
@@ -2542,7 +3022,7 @@ export declare interface Role {
|
|
|
2542
3022
|
|
|
2543
3023
|
export declare type RoleId = "role_entity_admin" | "role_entity_viewer" | string;
|
|
2544
3024
|
|
|
2545
|
-
export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule | SignEndUserEvmTransactionRule | SendEndUserEvmTransactionRule | SignEndUserEvmMessageRule | SignEndUserEvmTypedDataRule | SignEndUserSolTransactionRule | SendEndUserSolTransactionRule | SignEndUserSolMessageRule;
|
|
3025
|
+
export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule | SignEndUserEvmTransactionRule | SendEndUserEvmTransactionRule | SignEndUserEvmMessageRule | SignEndUserEvmTypedDataRule | SignEndUserSolTransactionRule | SendEndUserSolTransactionRule | SignEndUserSolMessageRule | SendEndUserEvmAssetRule | SendEndUserSolAssetRule;
|
|
2546
3026
|
|
|
2547
3027
|
export declare interface Schedule {
|
|
2548
3028
|
scheduleId: string;
|
|
@@ -2576,6 +3056,29 @@ export declare type SecondFactorProofTokenParameter = string;
|
|
|
2576
3056
|
|
|
2577
3057
|
declare type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
2578
3058
|
|
|
3059
|
+
export declare type SendEndUserEvmAssetCriteria = SendEndUserEvmAssetCriteriaItem[];
|
|
3060
|
+
|
|
3061
|
+
export declare type SendEndUserEvmAssetCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
3062
|
+
|
|
3063
|
+
export declare interface SendEndUserEvmAssetRule {
|
|
3064
|
+
action: SendEndUserEvmAssetRuleAction;
|
|
3065
|
+
operation: SendEndUserEvmAssetRuleOperation;
|
|
3066
|
+
criteria: SendEndUserEvmAssetCriteria;
|
|
3067
|
+
}
|
|
3068
|
+
|
|
3069
|
+
export declare type SendEndUserEvmAssetRuleAction = (typeof SendEndUserEvmAssetRuleAction)[keyof typeof SendEndUserEvmAssetRuleAction];
|
|
3070
|
+
|
|
3071
|
+
export declare const SendEndUserEvmAssetRuleAction: {
|
|
3072
|
+
readonly reject: "reject";
|
|
3073
|
+
readonly accept: "accept";
|
|
3074
|
+
};
|
|
3075
|
+
|
|
3076
|
+
export declare type SendEndUserEvmAssetRuleOperation = (typeof SendEndUserEvmAssetRuleOperation)[keyof typeof SendEndUserEvmAssetRuleOperation];
|
|
3077
|
+
|
|
3078
|
+
export declare const SendEndUserEvmAssetRuleOperation: {
|
|
3079
|
+
readonly sendEndUserEvmAsset: "sendEndUserEvmAsset";
|
|
3080
|
+
};
|
|
3081
|
+
|
|
2579
3082
|
export declare type SendEndUserEvmTransactionCriteria = SendEndUserEvmTransactionCriteriaItem[];
|
|
2580
3083
|
|
|
2581
3084
|
export declare type SendEndUserEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
@@ -2599,6 +3102,29 @@ export declare const SendEndUserEvmTransactionRuleOperation: {
|
|
|
2599
3102
|
readonly sendEndUserEvmTransaction: "sendEndUserEvmTransaction";
|
|
2600
3103
|
};
|
|
2601
3104
|
|
|
3105
|
+
export declare type SendEndUserSolAssetCriteria = SendEndUserSolAssetCriteriaItem[];
|
|
3106
|
+
|
|
3107
|
+
export declare type SendEndUserSolAssetCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion | ProgramIdCriterion | SolNetworkCriterion | RateLimitingCriterion;
|
|
3108
|
+
|
|
3109
|
+
export declare interface SendEndUserSolAssetRule {
|
|
3110
|
+
action: SendEndUserSolAssetRuleAction;
|
|
3111
|
+
operation: SendEndUserSolAssetRuleOperation;
|
|
3112
|
+
criteria: SendEndUserSolAssetCriteria;
|
|
3113
|
+
}
|
|
3114
|
+
|
|
3115
|
+
export declare type SendEndUserSolAssetRuleAction = (typeof SendEndUserSolAssetRuleAction)[keyof typeof SendEndUserSolAssetRuleAction];
|
|
3116
|
+
|
|
3117
|
+
export declare const SendEndUserSolAssetRuleAction: {
|
|
3118
|
+
readonly reject: "reject";
|
|
3119
|
+
readonly accept: "accept";
|
|
3120
|
+
};
|
|
3121
|
+
|
|
3122
|
+
export declare type SendEndUserSolAssetRuleOperation = (typeof SendEndUserSolAssetRuleOperation)[keyof typeof SendEndUserSolAssetRuleOperation];
|
|
3123
|
+
|
|
3124
|
+
export declare const SendEndUserSolAssetRuleOperation: {
|
|
3125
|
+
readonly sendEndUserSolAsset: "sendEndUserSolAsset";
|
|
3126
|
+
};
|
|
3127
|
+
|
|
2602
3128
|
export declare type SendEndUserSolTransactionCriteria = SendEndUserSolTransactionCriteriaItem[];
|
|
2603
3129
|
|
|
2604
3130
|
export declare type SendEndUserSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion | ProgramIdCriterion | SolNetworkCriterion | RateLimitingCriterion;
|
|
@@ -2635,7 +3161,7 @@ export declare type SendEvmAssetWithEndUserAccountBody = {
|
|
|
2635
3161
|
network: SendEvmAssetWithEndUserAccountBodyNetwork;
|
|
2636
3162
|
useCdpPaymaster?: boolean;
|
|
2637
3163
|
paymasterUrl?: Url;
|
|
2638
|
-
walletSecretId
|
|
3164
|
+
walletSecretId?: string;
|
|
2639
3165
|
};
|
|
2640
3166
|
|
|
2641
3167
|
export declare type SendEvmAssetWithEndUserAccountBodyNetwork = (typeof SendEvmAssetWithEndUserAccountBodyNetwork)[keyof typeof SendEvmAssetWithEndUserAccountBodyNetwork];
|
|
@@ -2685,7 +3211,7 @@ export declare type SendEvmTransactionWithEndUserAccount200 = {
|
|
|
2685
3211
|
export declare type SendEvmTransactionWithEndUserAccountBody = {
|
|
2686
3212
|
address: string;
|
|
2687
3213
|
network: SendEvmTransactionWithEndUserAccountBodyNetwork;
|
|
2688
|
-
walletSecretId
|
|
3214
|
+
walletSecretId?: string;
|
|
2689
3215
|
transaction: string;
|
|
2690
3216
|
};
|
|
2691
3217
|
|
|
@@ -2715,7 +3241,8 @@ export declare type SendSolanaAssetWithEndUserAccountBody = {
|
|
|
2715
3241
|
amount: string;
|
|
2716
3242
|
network: SendSolanaAssetWithEndUserAccountBodyNetwork;
|
|
2717
3243
|
createRecipientAta?: boolean;
|
|
2718
|
-
walletSecretId
|
|
3244
|
+
walletSecretId?: string;
|
|
3245
|
+
useCdpSponsor?: boolean;
|
|
2719
3246
|
};
|
|
2720
3247
|
|
|
2721
3248
|
export declare type SendSolanaAssetWithEndUserAccountBodyNetwork = (typeof SendSolanaAssetWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaAssetWithEndUserAccountBodyNetwork];
|
|
@@ -2736,8 +3263,9 @@ export declare type SendSolanaTransactionWithEndUserAccount200 = {
|
|
|
2736
3263
|
export declare type SendSolanaTransactionWithEndUserAccountBody = {
|
|
2737
3264
|
address: string;
|
|
2738
3265
|
network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
|
|
2739
|
-
walletSecretId
|
|
3266
|
+
walletSecretId?: string;
|
|
2740
3267
|
transaction: string;
|
|
3268
|
+
useCdpSponsor?: boolean;
|
|
2741
3269
|
};
|
|
2742
3270
|
|
|
2743
3271
|
export declare type SendSolanaTransactionWithEndUserAccountBodyNetwork = (typeof SendSolanaTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaTransactionWithEndUserAccountBodyNetwork];
|
|
@@ -2802,7 +3330,7 @@ export declare type SendUserOperationWithEndUserAccountBody = {
|
|
|
2802
3330
|
calls: EvmCall[];
|
|
2803
3331
|
useCdpPaymaster: boolean;
|
|
2804
3332
|
paymasterUrl?: Url;
|
|
2805
|
-
walletSecretId
|
|
3333
|
+
walletSecretId?: string;
|
|
2806
3334
|
dataSuffix?: string;
|
|
2807
3335
|
};
|
|
2808
3336
|
|
|
@@ -2960,7 +3488,7 @@ export declare type SignEvmHashWithEndUserAccount200 = {
|
|
|
2960
3488
|
export declare type SignEvmHashWithEndUserAccountBody = {
|
|
2961
3489
|
hash: string;
|
|
2962
3490
|
address: string;
|
|
2963
|
-
walletSecretId
|
|
3491
|
+
walletSecretId?: string;
|
|
2964
3492
|
};
|
|
2965
3493
|
|
|
2966
3494
|
export declare type SignEvmHashWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signEvmHashWithEndUserAccount>>>;
|
|
@@ -2995,7 +3523,7 @@ export declare type SignEvmMessageWithEndUserAccount200 = {
|
|
|
2995
3523
|
export declare type SignEvmMessageWithEndUserAccountBody = {
|
|
2996
3524
|
address: string;
|
|
2997
3525
|
message: string;
|
|
2998
|
-
walletSecretId
|
|
3526
|
+
walletSecretId?: string;
|
|
2999
3527
|
};
|
|
3000
3528
|
|
|
3001
3529
|
export declare type SignEvmMessageWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signEvmMessageWithEndUserAccount>>>;
|
|
@@ -3032,7 +3560,7 @@ export declare type SignEvmTransactionWithEndUserAccount200 = {
|
|
|
3032
3560
|
export declare type SignEvmTransactionWithEndUserAccountBody = {
|
|
3033
3561
|
address: string;
|
|
3034
3562
|
transaction: string;
|
|
3035
|
-
walletSecretId
|
|
3563
|
+
walletSecretId?: string;
|
|
3036
3564
|
};
|
|
3037
3565
|
|
|
3038
3566
|
export declare type SignEvmTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signEvmTransactionWithEndUserAccount>>>;
|
|
@@ -3116,7 +3644,7 @@ export declare type SignEvmTypedDataWithEndUserAccount200 = {
|
|
|
3116
3644
|
export declare type SignEvmTypedDataWithEndUserAccountBody = {
|
|
3117
3645
|
address: string;
|
|
3118
3646
|
typedData: EIP712Message;
|
|
3119
|
-
walletSecretId
|
|
3647
|
+
walletSecretId?: string;
|
|
3120
3648
|
};
|
|
3121
3649
|
|
|
3122
3650
|
export declare type SignEvmTypedDataWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signEvmTypedDataWithEndUserAccount>>>;
|
|
@@ -3130,7 +3658,7 @@ export declare type SignSolanaHashWithEndUserAccount200 = {
|
|
|
3130
3658
|
export declare type SignSolanaHashWithEndUserAccountBody = {
|
|
3131
3659
|
hash: string;
|
|
3132
3660
|
address: string;
|
|
3133
|
-
walletSecretId
|
|
3661
|
+
walletSecretId?: string;
|
|
3134
3662
|
};
|
|
3135
3663
|
|
|
3136
3664
|
export declare type SignSolanaHashWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signSolanaHashWithEndUserAccount>>>;
|
|
@@ -3144,7 +3672,7 @@ export declare type SignSolanaMessageWithEndUserAccount200 = {
|
|
|
3144
3672
|
export declare type SignSolanaMessageWithEndUserAccountBody = {
|
|
3145
3673
|
address: string;
|
|
3146
3674
|
message: string;
|
|
3147
|
-
walletSecretId
|
|
3675
|
+
walletSecretId?: string;
|
|
3148
3676
|
};
|
|
3149
3677
|
|
|
3150
3678
|
export declare type SignSolanaMessageWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signSolanaMessageWithEndUserAccount>>>;
|
|
@@ -3158,7 +3686,7 @@ export declare type SignSolanaTransactionWithEndUserAccount200 = {
|
|
|
3158
3686
|
export declare type SignSolanaTransactionWithEndUserAccountBody = {
|
|
3159
3687
|
address: string;
|
|
3160
3688
|
transaction: string;
|
|
3161
|
-
walletSecretId
|
|
3689
|
+
walletSecretId?: string;
|
|
3162
3690
|
};
|
|
3163
3691
|
|
|
3164
3692
|
export declare type SignSolanaTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signSolanaTransactionWithEndUserAccount>>>;
|
|
@@ -3649,6 +4177,7 @@ export declare const TransferColumn: {
|
|
|
3649
4177
|
export declare interface TransferDetails {
|
|
3650
4178
|
depositDestination?: DepositDestinationReference;
|
|
3651
4179
|
onchainTransactions?: TransferDetailsOnchainTransactionsItem[];
|
|
4180
|
+
travelRule?: TransferDetailsTravelRule;
|
|
3652
4181
|
}
|
|
3653
4182
|
|
|
3654
4183
|
export declare type TransferDetailsOnchainTransactionsItem = {
|
|
@@ -3656,6 +4185,11 @@ export declare type TransferDetailsOnchainTransactionsItem = {
|
|
|
3656
4185
|
network: Network;
|
|
3657
4186
|
};
|
|
3658
4187
|
|
|
4188
|
+
export declare type TransferDetailsTravelRule = {
|
|
4189
|
+
status?: TravelRuleStatus;
|
|
4190
|
+
statusMessage?: string;
|
|
4191
|
+
};
|
|
4192
|
+
|
|
3659
4193
|
export declare interface TransferEvent {
|
|
3660
4194
|
eventType: TransferEventEventType;
|
|
3661
4195
|
eventId: string;
|
|
@@ -3667,9 +4201,15 @@ export declare type TransferEventEventType = (typeof TransferEventEventType)[key
|
|
|
3667
4201
|
|
|
3668
4202
|
export declare const TransferEventEventType: {
|
|
3669
4203
|
readonly paymentstransfersquoted: "payments.transfers.quoted";
|
|
4204
|
+
readonly paymentstransferspending: "payments.transfers.pending";
|
|
3670
4205
|
readonly paymentstransfersprocessing: "payments.transfers.processing";
|
|
3671
4206
|
readonly paymentstransferscompleted: "payments.transfers.completed";
|
|
3672
4207
|
readonly paymentstransfersfailed: "payments.transfers.failed";
|
|
4208
|
+
readonly paymentstransfersaction_required: "payments.transfers.action_required";
|
|
4209
|
+
readonly paymentstransferstravel_rule_incomplete: "payments.transfers.travel_rule_incomplete";
|
|
4210
|
+
readonly paymentstransferstravel_rule_completed: "payments.transfers.travel_rule_completed";
|
|
4211
|
+
readonly paymentstransferstravel_rule_in_review: "payments.transfers.travel_rule_in_review";
|
|
4212
|
+
readonly paymentstransferstravel_rule_blocked: "payments.transfers.travel_rule_blocked";
|
|
3673
4213
|
};
|
|
3674
4214
|
|
|
3675
4215
|
export declare type TransferExchangeRate = {
|
|
@@ -3740,6 +4280,7 @@ export declare const TransferStatus: {
|
|
|
3740
4280
|
readonly processing: "processing";
|
|
3741
4281
|
readonly completed: "completed";
|
|
3742
4282
|
readonly failed: "failed";
|
|
4283
|
+
readonly action_required: "action_required";
|
|
3743
4284
|
};
|
|
3744
4285
|
|
|
3745
4286
|
export declare type TransferTarget = TransfersAccount | PaymentMethod | OnchainAddress | EmailInstrument;
|
|
@@ -3782,6 +4323,15 @@ export declare interface TravelRuleParty {
|
|
|
3782
4323
|
address?: PhysicalAddress;
|
|
3783
4324
|
}
|
|
3784
4325
|
|
|
4326
|
+
export declare type TravelRuleStatus = (typeof TravelRuleStatus)[keyof typeof TravelRuleStatus];
|
|
4327
|
+
|
|
4328
|
+
export declare const TravelRuleStatus: {
|
|
4329
|
+
readonly incomplete: "incomplete";
|
|
4330
|
+
readonly complete: "complete";
|
|
4331
|
+
readonly in_review: "in_review";
|
|
4332
|
+
readonly blocked: "blocked";
|
|
4333
|
+
};
|
|
4334
|
+
|
|
3785
4335
|
export declare type UnauthorizedErrorResponse = Error_2;
|
|
3786
4336
|
|
|
3787
4337
|
export declare class UnknownApiError extends APIError {
|
|
@@ -3843,6 +4393,9 @@ export declare interface UpdateMfaConfigRequest {
|
|
|
3843
4393
|
|
|
3844
4394
|
export declare interface UpdateProjectConfigRequest {
|
|
3845
4395
|
name?: string;
|
|
4396
|
+
gmailAutoLinkingEnabled?: boolean | null;
|
|
4397
|
+
iCloudAutoLinkingEnabled?: boolean | null;
|
|
4398
|
+
delegatedSigningEnabled?: boolean | null;
|
|
3846
4399
|
}
|
|
3847
4400
|
|
|
3848
4401
|
export declare type UpdateReportDestinationRequest = UpdateReportDestinationRequestAllOf & UpdateReportDestinationRequestAllOfTwo;
|
|
@@ -3912,6 +4465,12 @@ export declare interface VerifyEmailAuthenticationRequest {
|
|
|
3912
4465
|
|
|
3913
4466
|
export declare type VerifyEmailAuthenticationResult = NonNullable<Awaited<ReturnType<typeof verifyEmailAuthentication>>>;
|
|
3914
4467
|
|
|
4468
|
+
export declare interface VerifyOAuthAppleNativeRequest {
|
|
4469
|
+
flowId: string;
|
|
4470
|
+
identityToken: string;
|
|
4471
|
+
authorizationCode?: string;
|
|
4472
|
+
}
|
|
4473
|
+
|
|
3915
4474
|
export declare const verifyOAuthCode: (projectId: string, providerType: OAuth2ProviderType, verifyOAuthCodeRequest: VerifyOAuthCodeRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifyOAuthCode200>;
|
|
3916
4475
|
|
|
3917
4476
|
export declare type VerifyOAuthCode200 = {
|
|
@@ -3930,7 +4489,7 @@ export declare interface VerifyOAuthCodeRequest {
|
|
|
3930
4489
|
|
|
3931
4490
|
export declare type VerifyOAuthCodeResult = NonNullable<Awaited<ReturnType<typeof verifyOAuthCode>>>;
|
|
3932
4491
|
|
|
3933
|
-
export declare type VerifyOAuthEndUserIdentity = VerifyOAuthTelegramRequest;
|
|
4492
|
+
export declare type VerifyOAuthEndUserIdentity = VerifyOAuthTelegramRequest | VerifyOAuthAppleNativeRequest;
|
|
3934
4493
|
|
|
3935
4494
|
export declare const verifyOAuthEndUserIdentity: (projectId: string, providerType: OAuth2ProviderType, verifyOAuthEndUserIdentity: VerifyOAuthEndUserIdentity, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifyOAuthEndUserIdentity200>;
|
|
3936
4495
|
|
|
@@ -3974,6 +4533,25 @@ export declare interface VerifySmsAuthenticationRequest {
|
|
|
3974
4533
|
|
|
3975
4534
|
export declare type VerifySmsAuthenticationResult = NonNullable<Awaited<ReturnType<typeof verifySmsAuthentication>>>;
|
|
3976
4535
|
|
|
4536
|
+
export declare interface Void {
|
|
4537
|
+
voidId?: VoidId;
|
|
4538
|
+
paymentSessionId?: PaymentSessionId;
|
|
4539
|
+
status?: PaymentActionStatus;
|
|
4540
|
+
amount?: string;
|
|
4541
|
+
error?: PaymentError;
|
|
4542
|
+
metadata?: Metadata;
|
|
4543
|
+
onchainTransactions?: VoidOnchainTransactionsItem[];
|
|
4544
|
+
createdAt?: string;
|
|
4545
|
+
updatedAt?: string;
|
|
4546
|
+
}
|
|
4547
|
+
|
|
4548
|
+
export declare type VoidId = string;
|
|
4549
|
+
|
|
4550
|
+
export declare type VoidOnchainTransactionsItem = {
|
|
4551
|
+
transactionHash: string;
|
|
4552
|
+
network: PaymentSourceNetwork;
|
|
4553
|
+
};
|
|
4554
|
+
|
|
3977
4555
|
export declare interface WalletSecretMetadata {
|
|
3978
4556
|
updatedAt: string;
|
|
3979
4557
|
}
|
|
@@ -3999,6 +4577,7 @@ export declare type WebhookSubscriptionRequestLabels = {
|
|
|
3999
4577
|
|
|
4000
4578
|
export declare interface WebhookSubscriptionResponse {
|
|
4001
4579
|
createdAt: string;
|
|
4580
|
+
updatedAt?: string;
|
|
4002
4581
|
description?: Description;
|
|
4003
4582
|
eventTypes: string[];
|
|
4004
4583
|
isEnabled: boolean;
|
|
@@ -4041,6 +4620,19 @@ export declare type WebhookTargetHeaders = {
|
|
|
4041
4620
|
[key: string]: string;
|
|
4042
4621
|
};
|
|
4043
4622
|
|
|
4623
|
+
export declare interface X402DiscoveryMerchantResponse {
|
|
4624
|
+
x402Version: X402Version;
|
|
4625
|
+
payTo: BlockchainAddress;
|
|
4626
|
+
resources: X402DiscoveryResource[];
|
|
4627
|
+
pagination: X402DiscoveryMerchantResponsePagination;
|
|
4628
|
+
}
|
|
4629
|
+
|
|
4630
|
+
export declare type X402DiscoveryMerchantResponsePagination = {
|
|
4631
|
+
limit?: number;
|
|
4632
|
+
offset?: number;
|
|
4633
|
+
total?: number;
|
|
4634
|
+
};
|
|
4635
|
+
|
|
4044
4636
|
export declare interface X402DiscoveryResource {
|
|
4045
4637
|
resource: string;
|
|
4046
4638
|
type: X402DiscoveryResourceType;
|
|
@@ -4163,9 +4755,9 @@ export declare type X402McpResponseResult = {
|
|
|
4163
4755
|
[key: string]: unknown;
|
|
4164
4756
|
};
|
|
4165
4757
|
|
|
4166
|
-
export declare type X402PaymentPayload =
|
|
4758
|
+
export declare type X402PaymentPayload = X402V2PaymentPayload | X402V1PaymentPayload;
|
|
4167
4759
|
|
|
4168
|
-
export declare type X402PaymentRequirements =
|
|
4760
|
+
export declare type X402PaymentRequirements = X402V2PaymentRequirements | X402V1PaymentRequirements;
|
|
4169
4761
|
|
|
4170
4762
|
export declare interface X402ResourceInfo {
|
|
4171
4763
|
url?: string;
|
|
@@ -4465,6 +5057,8 @@ export declare interface XConfig {
|
|
|
4465
5057
|
|
|
4466
5058
|
export declare type XDeveloperAuthParameter = string;
|
|
4467
5059
|
|
|
5060
|
+
export declare type XWalletAuthOptionalParameter = string;
|
|
5061
|
+
|
|
4468
5062
|
export declare type XWalletAuthParameter = string;
|
|
4469
5063
|
|
|
4470
5064
|
export { }
|