@coinbase/cdp-api-client 0.0.18 → 0.0.20
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 +122 -93
- package/dist/esm/index2.js +70 -27
- package/dist/esm/index3.js +278 -149
- package/dist/types/index.d.ts +624 -123
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ export declare class APIError extends Error {
|
|
|
79
79
|
|
|
80
80
|
export declare type APIErrorType = ErrorType | HttpErrorType;
|
|
81
81
|
|
|
82
|
-
export declare type AuthenticationMethod = EmailAuthentication | DeveloperJWTAuthentication;
|
|
82
|
+
export declare type AuthenticationMethod = EmailAuthentication | SmsAuthentication | DeveloperJWTAuthentication;
|
|
83
83
|
|
|
84
84
|
export declare type AuthenticationMethods = AuthenticationMethod[];
|
|
85
85
|
|
|
@@ -145,11 +145,33 @@ export declare const configureCdpApiClient: (options: CdpOptions) => void;
|
|
|
145
145
|
export declare const createEndUserEvmAccount: (projectId: string, userId: string, createEndUserEvmAccountBody: CreateEndUserEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
|
|
146
146
|
|
|
147
147
|
export declare type CreateEndUserEvmAccountBody = {
|
|
148
|
-
walletSecretId
|
|
148
|
+
walletSecretId: string;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
export declare type CreateEndUserEvmAccountResult = NonNullable<Awaited<ReturnType<typeof createEndUserEvmAccount>>>;
|
|
152
152
|
|
|
153
|
+
export declare const createEndUserEvmSmartAccount: (projectId: string, userId: string, createEndUserEvmSmartAccountBody: CreateEndUserEvmSmartAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
|
|
154
|
+
|
|
155
|
+
export declare type CreateEndUserEvmSmartAccountBody = {
|
|
156
|
+
owner: string;
|
|
157
|
+
enableSpendPermissions: boolean;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export declare type CreateEndUserEvmSmartAccountResult = NonNullable<Awaited<ReturnType<typeof createEndUserEvmSmartAccount>>>;
|
|
161
|
+
|
|
162
|
+
export declare interface CreateSpendPermissionRequest {
|
|
163
|
+
network: SpendPermissionNetwork;
|
|
164
|
+
spender: string;
|
|
165
|
+
token: string;
|
|
166
|
+
allowance: string;
|
|
167
|
+
period: string;
|
|
168
|
+
start: string;
|
|
169
|
+
end: string;
|
|
170
|
+
salt?: string;
|
|
171
|
+
extraData?: string;
|
|
172
|
+
paymasterUrl?: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
153
175
|
export declare type CreateSwapQuoteResponse = CreateSwapQuoteResponseAllOf & CommonSwapResponse;
|
|
154
176
|
|
|
155
177
|
export declare type CreateSwapQuoteResponseAllOf = {
|
|
@@ -240,7 +262,9 @@ export declare const EmailAuthenticationType: {
|
|
|
240
262
|
export declare interface EndUser {
|
|
241
263
|
userId: string;
|
|
242
264
|
authenticationMethods: AuthenticationMethods;
|
|
243
|
-
evmAccounts
|
|
265
|
+
evmAccounts: string[];
|
|
266
|
+
evmSmartAccounts: string[];
|
|
267
|
+
solanaAccounts: string[];
|
|
244
268
|
}
|
|
245
269
|
|
|
246
270
|
declare interface Error_2 {
|
|
@@ -261,6 +285,7 @@ export declare const ErrorType: {
|
|
|
261
285
|
readonly idempotency_error: "idempotency_error";
|
|
262
286
|
readonly internal_server_error: "internal_server_error";
|
|
263
287
|
readonly invalid_request: "invalid_request";
|
|
288
|
+
readonly invalid_sql_query: "invalid_sql_query";
|
|
264
289
|
readonly invalid_signature: "invalid_signature";
|
|
265
290
|
readonly malformed_transaction: "malformed_transaction";
|
|
266
291
|
readonly not_found: "not_found";
|
|
@@ -278,7 +303,11 @@ export declare const ErrorType: {
|
|
|
278
303
|
readonly guest_region_forbidden: "guest_region_forbidden";
|
|
279
304
|
readonly guest_transaction_limit: "guest_transaction_limit";
|
|
280
305
|
readonly guest_transaction_count: "guest_transaction_count";
|
|
281
|
-
readonly
|
|
306
|
+
readonly phone_number_verification_expired: "phone_number_verification_expired";
|
|
307
|
+
readonly document_verification_failed: "document_verification_failed";
|
|
308
|
+
readonly recipient_allowlist_violation: "recipient_allowlist_violation";
|
|
309
|
+
readonly recipient_allowlist_pending: "recipient_allowlist_pending";
|
|
310
|
+
readonly travel_rules_recipient_violation: "travel_rules_recipient_violation";
|
|
282
311
|
};
|
|
283
312
|
|
|
284
313
|
export declare interface EthValueCriterion {
|
|
@@ -408,6 +437,14 @@ export declare type EvmNetworkCriterionNetworksItem = (typeof EvmNetworkCriterio
|
|
|
408
437
|
export declare const EvmNetworkCriterionNetworksItem: {
|
|
409
438
|
readonly "base-sepolia": "base-sepolia";
|
|
410
439
|
readonly base: "base";
|
|
440
|
+
readonly ethereum: "ethereum";
|
|
441
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
442
|
+
readonly avalanche: "avalanche";
|
|
443
|
+
readonly polygon: "polygon";
|
|
444
|
+
readonly optimism: "optimism";
|
|
445
|
+
readonly arbitrum: "arbitrum";
|
|
446
|
+
readonly zora: "zora";
|
|
447
|
+
readonly bnb: "bnb";
|
|
411
448
|
};
|
|
412
449
|
|
|
413
450
|
export declare type EvmNetworkCriterionOperator = (typeof EvmNetworkCriterionOperator)[keyof typeof EvmNetworkCriterionOperator];
|
|
@@ -437,6 +474,8 @@ export declare type EvmSwapsNetwork = (typeof EvmSwapsNetwork)[keyof typeof EvmS
|
|
|
437
474
|
export declare const EvmSwapsNetwork: {
|
|
438
475
|
readonly base: "base";
|
|
439
476
|
readonly ethereum: "ethereum";
|
|
477
|
+
readonly arbitrum: "arbitrum";
|
|
478
|
+
readonly optimism: "optimism";
|
|
440
479
|
};
|
|
441
480
|
|
|
442
481
|
export declare interface EvmTypedAddressCondition {
|
|
@@ -487,6 +526,14 @@ export declare type EvmUserOperationNetwork = (typeof EvmUserOperationNetwork)[k
|
|
|
487
526
|
export declare const EvmUserOperationNetwork: {
|
|
488
527
|
readonly "base-sepolia": "base-sepolia";
|
|
489
528
|
readonly base: "base";
|
|
529
|
+
readonly arbitrum: "arbitrum";
|
|
530
|
+
readonly optimism: "optimism";
|
|
531
|
+
readonly zora: "zora";
|
|
532
|
+
readonly polygon: "polygon";
|
|
533
|
+
readonly bnb: "bnb";
|
|
534
|
+
readonly avalanche: "avalanche";
|
|
535
|
+
readonly ethereum: "ethereum";
|
|
536
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
490
537
|
};
|
|
491
538
|
|
|
492
539
|
export declare type EvmUserOperationStatus = (typeof EvmUserOperationStatus)[keyof typeof EvmUserOperationStatus];
|
|
@@ -547,6 +594,10 @@ export declare type GetSwapPriceResponseAllOf = {
|
|
|
547
594
|
|
|
548
595
|
export declare type GetSwapPriceResponseWrapper = GetSwapPriceResponse | SwapUnavailableResponse;
|
|
549
596
|
|
|
597
|
+
export declare const getUserOperationWithEndUserAccount: (projectId: string, userId: string, address: string, userOpHash: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
|
|
598
|
+
|
|
599
|
+
export declare type GetUserOperationWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof getUserOperationWithEndUserAccount>>>;
|
|
600
|
+
|
|
550
601
|
export declare const HttpErrorType: {
|
|
551
602
|
readonly unexpected_error: "unexpected_error";
|
|
552
603
|
readonly unauthorized: "unauthorized";
|
|
@@ -562,9 +613,27 @@ export declare type IdempotencyErrorResponse = Error_2;
|
|
|
562
613
|
|
|
563
614
|
export declare type IdempotencyKeyParameter = string;
|
|
564
615
|
|
|
565
|
-
export declare
|
|
616
|
+
export declare interface Idl {
|
|
617
|
+
address: string;
|
|
618
|
+
instructions: IdlInstructionsItem[];
|
|
619
|
+
}
|
|
566
620
|
|
|
567
|
-
export declare type
|
|
621
|
+
export declare type IdlInstructionsItem = {
|
|
622
|
+
name: string;
|
|
623
|
+
discriminator: number[];
|
|
624
|
+
args: IdlInstructionsItemArgsItem[];
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
export declare type IdlInstructionsItemArgsItem = {
|
|
628
|
+
name: string;
|
|
629
|
+
type: string;
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
export declare const initiateAuthentication: (projectId: string, initiateAuthenticationRequest: InitiateAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateAuthenticationResponseWrapper>;
|
|
633
|
+
|
|
634
|
+
export declare type InitiateAuthenticationRequest = InitiateEmailAuthenticationRequest | InitiateSmsAuthenticationRequest;
|
|
635
|
+
|
|
636
|
+
export declare type InitiateAuthenticationResponseWrapper = InitiateEmailAuthenticationResponse | InitiateSmsAuthenticationResponse;
|
|
568
637
|
|
|
569
638
|
export declare type InitiateAuthenticationResult = NonNullable<Awaited<ReturnType<typeof initiateAuthentication>>>;
|
|
570
639
|
|
|
@@ -596,8 +665,38 @@ export declare interface InitiateEmailAuthenticationResponse {
|
|
|
596
665
|
nextStep: InitiateEmailAuthenticationNextStep;
|
|
597
666
|
}
|
|
598
667
|
|
|
668
|
+
export declare interface InitiateSmsAuthenticationNextStep {
|
|
669
|
+
type: InitiateSmsAuthenticationNextStepType;
|
|
670
|
+
url: string;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export declare type InitiateSmsAuthenticationNextStepType = (typeof InitiateSmsAuthenticationNextStepType)[keyof typeof InitiateSmsAuthenticationNextStepType];
|
|
674
|
+
|
|
675
|
+
export declare const InitiateSmsAuthenticationNextStepType: {
|
|
676
|
+
readonly "verify-otp": "verify-otp";
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
export declare interface InitiateSmsAuthenticationRequest {
|
|
680
|
+
type: InitiateSmsAuthenticationRequestType;
|
|
681
|
+
phoneNumber: string;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
export declare type InitiateSmsAuthenticationRequestType = (typeof InitiateSmsAuthenticationRequestType)[keyof typeof InitiateSmsAuthenticationRequestType];
|
|
685
|
+
|
|
686
|
+
export declare const InitiateSmsAuthenticationRequestType: {
|
|
687
|
+
readonly sms: "sms";
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
export declare interface InitiateSmsAuthenticationResponse {
|
|
691
|
+
message: string;
|
|
692
|
+
flowId: string;
|
|
693
|
+
nextStep: InitiateSmsAuthenticationNextStep;
|
|
694
|
+
}
|
|
695
|
+
|
|
599
696
|
export declare type InternalServerErrorResponse = Error_2;
|
|
600
697
|
|
|
698
|
+
export declare type InvalidSQLQueryErrorResponse = Error_2;
|
|
699
|
+
|
|
601
700
|
export declare function isOpenAPIError(obj: unknown): obj is Error_2;
|
|
602
701
|
|
|
603
702
|
export declare type KnownAbiType = (typeof KnownAbiType)[keyof typeof KnownAbiType];
|
|
@@ -608,6 +707,14 @@ export declare const KnownAbiType: {
|
|
|
608
707
|
readonly erc1155: "erc1155";
|
|
609
708
|
};
|
|
610
709
|
|
|
710
|
+
export declare type KnownIdlType = (typeof KnownIdlType)[keyof typeof KnownIdlType];
|
|
711
|
+
|
|
712
|
+
export declare const KnownIdlType: {
|
|
713
|
+
readonly SystemProgram: "SystemProgram";
|
|
714
|
+
readonly TokenProgram: "TokenProgram";
|
|
715
|
+
readonly AssociatedTokenProgram: "AssociatedTokenProgram";
|
|
716
|
+
};
|
|
717
|
+
|
|
611
718
|
export declare type ListEvmTokenBalancesNetwork = (typeof ListEvmTokenBalancesNetwork)[keyof typeof ListEvmTokenBalancesNetwork];
|
|
612
719
|
|
|
613
720
|
export declare const ListEvmTokenBalancesNetwork: {
|
|
@@ -631,28 +738,142 @@ export declare const logOutEndUser: (projectId: string, options?: SecondParamete
|
|
|
631
738
|
|
|
632
739
|
export declare type LogOutEndUserResult = NonNullable<Awaited<ReturnType<typeof logOutEndUser>>>;
|
|
633
740
|
|
|
741
|
+
export declare interface MintAddressCriterion {
|
|
742
|
+
type: MintAddressCriterionType;
|
|
743
|
+
addresses: string[];
|
|
744
|
+
operator: MintAddressCriterionOperator;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export declare type MintAddressCriterionOperator = (typeof MintAddressCriterionOperator)[keyof typeof MintAddressCriterionOperator];
|
|
748
|
+
|
|
749
|
+
export declare const MintAddressCriterionOperator: {
|
|
750
|
+
readonly in: "in";
|
|
751
|
+
readonly not_in: "not in";
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
export declare type MintAddressCriterionType = (typeof MintAddressCriterionType)[keyof typeof MintAddressCriterionType];
|
|
755
|
+
|
|
756
|
+
export declare const MintAddressCriterionType: {
|
|
757
|
+
readonly mintAddress: "mintAddress";
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
export declare interface NetUSDChangeCriterion {
|
|
761
|
+
type: NetUSDChangeCriterionType;
|
|
762
|
+
changeCents: number;
|
|
763
|
+
operator: NetUSDChangeCriterionOperator;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export declare type NetUSDChangeCriterionOperator = (typeof NetUSDChangeCriterionOperator)[keyof typeof NetUSDChangeCriterionOperator];
|
|
767
|
+
|
|
768
|
+
export declare const NetUSDChangeCriterionOperator: {
|
|
769
|
+
readonly ">": ">";
|
|
770
|
+
readonly ">=": ">=";
|
|
771
|
+
readonly "<": "<";
|
|
772
|
+
readonly "<=": "<=";
|
|
773
|
+
readonly "==": "==";
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
export declare type NetUSDChangeCriterionType = (typeof NetUSDChangeCriterionType)[keyof typeof NetUSDChangeCriterionType];
|
|
777
|
+
|
|
778
|
+
export declare const NetUSDChangeCriterionType: {
|
|
779
|
+
readonly netUSDChange: "netUSDChange";
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
export declare interface OnchainDataColumnSchema {
|
|
783
|
+
name?: string;
|
|
784
|
+
type?: string;
|
|
785
|
+
nullable?: boolean;
|
|
786
|
+
description?: string;
|
|
787
|
+
indexOrder?: number;
|
|
788
|
+
sample?: string;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
export declare interface OnchainDataQuery {
|
|
792
|
+
sql: string;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
export declare interface OnchainDataResult {
|
|
796
|
+
result?: OnchainDataResultResultItem[];
|
|
797
|
+
schema?: OnchainDataResultSchema;
|
|
798
|
+
metadata?: OnchainDataResultMetadata;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
export declare type OnchainDataResultMetadata = {
|
|
802
|
+
cached?: boolean;
|
|
803
|
+
executionTimeMs?: number;
|
|
804
|
+
rowCount?: number;
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
export declare type OnchainDataResultResultItem = {
|
|
808
|
+
[key: string]: unknown;
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
export declare type OnchainDataResultSchema = {
|
|
812
|
+
columns?: OnchainDataResultSchemaColumnsItem[];
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
export declare type OnchainDataResultSchemaColumnsItem = {
|
|
816
|
+
name?: string;
|
|
817
|
+
type?: OnchainDataResultSchemaColumnsItemType;
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
export declare type OnchainDataResultSchemaColumnsItemType = (typeof OnchainDataResultSchemaColumnsItemType)[keyof typeof OnchainDataResultSchemaColumnsItemType];
|
|
821
|
+
|
|
822
|
+
export declare const OnchainDataResultSchemaColumnsItemType: {
|
|
823
|
+
readonly String: "String";
|
|
824
|
+
readonly UInt8: "UInt8";
|
|
825
|
+
readonly UInt16: "UInt16";
|
|
826
|
+
readonly UInt32: "UInt32";
|
|
827
|
+
readonly UInt64: "UInt64";
|
|
828
|
+
readonly UInt128: "UInt128";
|
|
829
|
+
readonly UInt256: "UInt256";
|
|
830
|
+
readonly Int8: "Int8";
|
|
831
|
+
readonly Int16: "Int16";
|
|
832
|
+
readonly Int32: "Int32";
|
|
833
|
+
readonly Int64: "Int64";
|
|
834
|
+
readonly Int128: "Int128";
|
|
835
|
+
readonly Int256: "Int256";
|
|
836
|
+
readonly Float32: "Float32";
|
|
837
|
+
readonly Float64: "Float64";
|
|
838
|
+
readonly Bool: "Bool";
|
|
839
|
+
readonly Date: "Date";
|
|
840
|
+
readonly DateTime: "DateTime";
|
|
841
|
+
readonly DateTime64: "DateTime64";
|
|
842
|
+
readonly UUID: "UUID";
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
export declare interface OnchainDataSchemaResponse {
|
|
846
|
+
tables?: OnchainDataTableSchema[];
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
export declare interface OnchainDataTableSchema {
|
|
850
|
+
name?: string;
|
|
851
|
+
description?: string;
|
|
852
|
+
columns?: OnchainDataColumnSchema[];
|
|
853
|
+
}
|
|
854
|
+
|
|
634
855
|
export declare interface OnrampOrder {
|
|
635
|
-
orderId
|
|
636
|
-
paymentTotal
|
|
637
|
-
paymentSubtotal
|
|
638
|
-
paymentCurrency
|
|
639
|
-
paymentMethod
|
|
640
|
-
purchaseAmount
|
|
641
|
-
purchaseCurrency
|
|
642
|
-
fees
|
|
643
|
-
exchangeRate
|
|
644
|
-
destinationAddress
|
|
645
|
-
destinationNetwork
|
|
646
|
-
status
|
|
856
|
+
orderId: string;
|
|
857
|
+
paymentTotal: string;
|
|
858
|
+
paymentSubtotal: string;
|
|
859
|
+
paymentCurrency: string;
|
|
860
|
+
paymentMethod: OnrampPaymentMethodTypeId;
|
|
861
|
+
purchaseAmount: string;
|
|
862
|
+
purchaseCurrency: string;
|
|
863
|
+
fees: OnrampOrderFee[];
|
|
864
|
+
exchangeRate: string;
|
|
865
|
+
destinationAddress: string;
|
|
866
|
+
destinationNetwork: string;
|
|
867
|
+
status: OnrampOrderStatus;
|
|
647
868
|
txHash?: string;
|
|
648
|
-
createdAt
|
|
649
|
-
updatedAt
|
|
869
|
+
createdAt: string;
|
|
870
|
+
updatedAt: string;
|
|
650
871
|
}
|
|
651
872
|
|
|
652
873
|
export declare interface OnrampOrderFee {
|
|
653
|
-
type
|
|
654
|
-
amount
|
|
655
|
-
currency
|
|
874
|
+
type: OnrampOrderFeeType;
|
|
875
|
+
amount: string;
|
|
876
|
+
currency: string;
|
|
656
877
|
}
|
|
657
878
|
|
|
658
879
|
export declare type OnrampOrderFeeType = (typeof OnrampOrderFeeType)[keyof typeof OnrampOrderFeeType];
|
|
@@ -673,8 +894,8 @@ export declare const OnrampOrderStatus: {
|
|
|
673
894
|
};
|
|
674
895
|
|
|
675
896
|
export declare interface OnrampPaymentLink {
|
|
676
|
-
url
|
|
677
|
-
paymentLinkType
|
|
897
|
+
url: string;
|
|
898
|
+
paymentLinkType: OnrampPaymentLinkType;
|
|
678
899
|
}
|
|
679
900
|
|
|
680
901
|
export declare type OnrampPaymentLinkType = (typeof OnrampPaymentLinkType)[keyof typeof OnrampPaymentLinkType];
|
|
@@ -748,26 +969,6 @@ export declare const PolicyScope: {
|
|
|
748
969
|
readonly account: "account";
|
|
749
970
|
};
|
|
750
971
|
|
|
751
|
-
export declare interface PrepareRevokeSpendPermissionRequest {
|
|
752
|
-
network: string;
|
|
753
|
-
permissionHash: string;
|
|
754
|
-
paymasterUrl?: string;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
export declare interface PrepareSpendPermissionRequest {
|
|
758
|
-
network: string;
|
|
759
|
-
account: string;
|
|
760
|
-
spender: string;
|
|
761
|
-
token: string;
|
|
762
|
-
allowance: string;
|
|
763
|
-
period: string;
|
|
764
|
-
start: string;
|
|
765
|
-
end: string;
|
|
766
|
-
salt?: string;
|
|
767
|
-
extraData?: string;
|
|
768
|
-
paymasterUrl?: string;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
972
|
export declare type PrepareUserOperationCriteria = PrepareUserOperationCriteriaItem[];
|
|
772
973
|
|
|
773
974
|
export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion;
|
|
@@ -791,55 +992,6 @@ export declare const PrepareUserOperationRuleOperation: {
|
|
|
791
992
|
readonly prepareUserOperation: "prepareUserOperation";
|
|
792
993
|
};
|
|
793
994
|
|
|
794
|
-
export declare interface QueryRequest {
|
|
795
|
-
sql: string;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
export declare interface QueryResult {
|
|
799
|
-
result?: QueryResultResultItem[];
|
|
800
|
-
schema?: QueryResultSchema;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
export declare type QueryResultResultItem = {
|
|
804
|
-
[key: string]: unknown;
|
|
805
|
-
};
|
|
806
|
-
|
|
807
|
-
export declare type QueryResultSchema = {
|
|
808
|
-
columns?: QueryResultSchemaColumnsItem[];
|
|
809
|
-
};
|
|
810
|
-
|
|
811
|
-
export declare type QueryResultSchemaColumnsItem = {
|
|
812
|
-
name?: string;
|
|
813
|
-
type?: QueryResultSchemaColumnsItemType;
|
|
814
|
-
};
|
|
815
|
-
|
|
816
|
-
export declare type QueryResultSchemaColumnsItemType = (typeof QueryResultSchemaColumnsItemType)[keyof typeof QueryResultSchemaColumnsItemType];
|
|
817
|
-
|
|
818
|
-
export declare const QueryResultSchemaColumnsItemType: {
|
|
819
|
-
readonly String: "String";
|
|
820
|
-
readonly UInt8: "UInt8";
|
|
821
|
-
readonly UInt16: "UInt16";
|
|
822
|
-
readonly UInt32: "UInt32";
|
|
823
|
-
readonly UInt64: "UInt64";
|
|
824
|
-
readonly UInt128: "UInt128";
|
|
825
|
-
readonly UInt256: "UInt256";
|
|
826
|
-
readonly Int8: "Int8";
|
|
827
|
-
readonly Int16: "Int16";
|
|
828
|
-
readonly Int32: "Int32";
|
|
829
|
-
readonly Int64: "Int64";
|
|
830
|
-
readonly Int128: "Int128";
|
|
831
|
-
readonly Int256: "Int256";
|
|
832
|
-
readonly Float32: "Float32";
|
|
833
|
-
readonly Float64: "Float64";
|
|
834
|
-
readonly Bool: "Bool";
|
|
835
|
-
readonly Date: "Date";
|
|
836
|
-
readonly DateTime: "DateTime";
|
|
837
|
-
readonly DateTime64: "DateTime64";
|
|
838
|
-
readonly UUID: "UUID";
|
|
839
|
-
readonly IPv4: "IPv4";
|
|
840
|
-
readonly IPv6: "IPv6";
|
|
841
|
-
};
|
|
842
|
-
|
|
843
995
|
export declare type RateLimitExceededResponse = Error_2;
|
|
844
996
|
|
|
845
997
|
export declare const refreshAccessToken: (projectId: string, refreshAccessTokenBody: RefreshAccessTokenBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RefreshAccessToken200>;
|
|
@@ -877,7 +1029,13 @@ export declare type RegisterTemporaryWalletSecretBody = {
|
|
|
877
1029
|
|
|
878
1030
|
export declare type RegisterTemporaryWalletSecretResult = NonNullable<Awaited<ReturnType<typeof registerTemporaryWalletSecret>>>;
|
|
879
1031
|
|
|
880
|
-
export declare
|
|
1032
|
+
export declare interface RevokeSpendPermissionRequest {
|
|
1033
|
+
network: SpendPermissionNetwork;
|
|
1034
|
+
permissionHash: string;
|
|
1035
|
+
paymasterUrl?: string;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule;
|
|
881
1039
|
|
|
882
1040
|
export declare type SecondFactorProofTokenParameter = string;
|
|
883
1041
|
|
|
@@ -885,7 +1043,7 @@ declare type SecondParameter<T extends (...args: never) => unknown> = Parameters
|
|
|
885
1043
|
|
|
886
1044
|
export declare type SendEvmTransactionCriteria = SendEvmTransactionCriteriaItem[];
|
|
887
1045
|
|
|
888
|
-
export declare type SendEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion;
|
|
1046
|
+
export declare type SendEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
889
1047
|
|
|
890
1048
|
export declare interface SendEvmTransactionRule {
|
|
891
1049
|
action: SendEvmTransactionRuleAction;
|
|
@@ -924,18 +1082,39 @@ export declare type SendEvmTransactionWithEndUserAccountBodyNetwork = (typeof Se
|
|
|
924
1082
|
export declare const SendEvmTransactionWithEndUserAccountBodyNetwork: {
|
|
925
1083
|
readonly base: "base";
|
|
926
1084
|
readonly "base-sepolia": "base-sepolia";
|
|
1085
|
+
readonly ethereum: "ethereum";
|
|
1086
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
1087
|
+
readonly avalanche: "avalanche";
|
|
1088
|
+
readonly polygon: "polygon";
|
|
1089
|
+
readonly optimism: "optimism";
|
|
1090
|
+
readonly arbitrum: "arbitrum";
|
|
927
1091
|
};
|
|
928
1092
|
|
|
929
1093
|
export declare type SendEvmTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendEvmTransactionWithEndUserAccount>>>;
|
|
930
1094
|
|
|
931
|
-
export declare
|
|
932
|
-
signature: string;
|
|
933
|
-
}
|
|
1095
|
+
export declare type SendSolTransactionCriteria = SendSolTransactionCriteriaItem[];
|
|
934
1096
|
|
|
935
|
-
export declare
|
|
936
|
-
|
|
1097
|
+
export declare type SendSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion;
|
|
1098
|
+
|
|
1099
|
+
export declare interface SendSolTransactionRule {
|
|
1100
|
+
action: SendSolTransactionRuleAction;
|
|
1101
|
+
operation: SendSolTransactionRuleOperation;
|
|
1102
|
+
criteria: SendSolTransactionCriteria;
|
|
937
1103
|
}
|
|
938
1104
|
|
|
1105
|
+
export declare type SendSolTransactionRuleAction = (typeof SendSolTransactionRuleAction)[keyof typeof SendSolTransactionRuleAction];
|
|
1106
|
+
|
|
1107
|
+
export declare const SendSolTransactionRuleAction: {
|
|
1108
|
+
readonly reject: "reject";
|
|
1109
|
+
readonly accept: "accept";
|
|
1110
|
+
};
|
|
1111
|
+
|
|
1112
|
+
export declare type SendSolTransactionRuleOperation = (typeof SendSolTransactionRuleOperation)[keyof typeof SendSolTransactionRuleOperation];
|
|
1113
|
+
|
|
1114
|
+
export declare const SendSolTransactionRuleOperation: {
|
|
1115
|
+
readonly sendSolTransaction: "sendSolTransaction";
|
|
1116
|
+
};
|
|
1117
|
+
|
|
939
1118
|
export declare type SendUserOperationCriteria = SendUserOperationCriteriaItem[];
|
|
940
1119
|
|
|
941
1120
|
export declare type SendUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion;
|
|
@@ -959,6 +1138,17 @@ export declare const SendUserOperationRuleOperation: {
|
|
|
959
1138
|
readonly sendUserOperation: "sendUserOperation";
|
|
960
1139
|
};
|
|
961
1140
|
|
|
1141
|
+
export declare const sendUserOperationWithEndUserAccount: (projectId: string, userId: string, address: string, sendUserOperationWithEndUserAccountBody: SendUserOperationWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
|
|
1142
|
+
|
|
1143
|
+
export declare type SendUserOperationWithEndUserAccountBody = {
|
|
1144
|
+
network: EvmUserOperationNetwork;
|
|
1145
|
+
calls: EvmCall[];
|
|
1146
|
+
paymasterUrl?: string;
|
|
1147
|
+
walletSecretId: string;
|
|
1148
|
+
};
|
|
1149
|
+
|
|
1150
|
+
export declare type SendUserOperationWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendUserOperationWithEndUserAccount>>>;
|
|
1151
|
+
|
|
962
1152
|
export declare type ServiceUnavailableErrorResponse = Error_2;
|
|
963
1153
|
|
|
964
1154
|
export declare const setAuthManager: (manager: AuthManager) => void;
|
|
@@ -1034,7 +1224,7 @@ export declare type SignEvmMessageWithEndUserAccountResult = NonNullable<Awaited
|
|
|
1034
1224
|
|
|
1035
1225
|
export declare type SignEvmTransactionCriteria = SignEvmTransactionCriteriaItem[];
|
|
1036
1226
|
|
|
1037
|
-
export declare type SignEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion;
|
|
1227
|
+
export declare type SignEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
1038
1228
|
|
|
1039
1229
|
export declare interface SignEvmTransactionRule {
|
|
1040
1230
|
action: SignEvmTransactionRuleAction;
|
|
@@ -1153,7 +1343,44 @@ export declare type SignEvmTypedDataWithEndUserAccountBody = {
|
|
|
1153
1343
|
|
|
1154
1344
|
export declare type SignEvmTypedDataWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signEvmTypedDataWithEndUserAccount>>>;
|
|
1155
1345
|
|
|
1156
|
-
export declare
|
|
1346
|
+
export declare const signSolanaHashWithEndUserAccount: (projectId: string, userId: string, signSolanaHashWithEndUserAccountBody: SignSolanaHashWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignSolanaHashWithEndUserAccount200>;
|
|
1347
|
+
|
|
1348
|
+
export declare type SignSolanaHashWithEndUserAccount200 = {
|
|
1349
|
+
signature: string;
|
|
1350
|
+
};
|
|
1351
|
+
|
|
1352
|
+
export declare type SignSolanaHashWithEndUserAccountBody = {
|
|
1353
|
+
hash: string;
|
|
1354
|
+
address: string;
|
|
1355
|
+
walletSecretId: string;
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
export declare type SignSolanaHashWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signSolanaHashWithEndUserAccount>>>;
|
|
1359
|
+
|
|
1360
|
+
export declare type SignSolMessageCriteria = SolMessageCriterion[];
|
|
1361
|
+
|
|
1362
|
+
export declare interface SignSolMessageRule {
|
|
1363
|
+
action: SignSolMessageRuleAction;
|
|
1364
|
+
operation: SignSolMessageRuleOperation;
|
|
1365
|
+
criteria: SignSolMessageCriteria;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
export declare type SignSolMessageRuleAction = (typeof SignSolMessageRuleAction)[keyof typeof SignSolMessageRuleAction];
|
|
1369
|
+
|
|
1370
|
+
export declare const SignSolMessageRuleAction: {
|
|
1371
|
+
readonly reject: "reject";
|
|
1372
|
+
readonly accept: "accept";
|
|
1373
|
+
};
|
|
1374
|
+
|
|
1375
|
+
export declare type SignSolMessageRuleOperation = (typeof SignSolMessageRuleOperation)[keyof typeof SignSolMessageRuleOperation];
|
|
1376
|
+
|
|
1377
|
+
export declare const SignSolMessageRuleOperation: {
|
|
1378
|
+
readonly signSolMessage: "signSolMessage";
|
|
1379
|
+
};
|
|
1380
|
+
|
|
1381
|
+
export declare type SignSolTransactionCriteria = SignSolTransactionCriteriaItem[];
|
|
1382
|
+
|
|
1383
|
+
export declare type SignSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion;
|
|
1157
1384
|
|
|
1158
1385
|
export declare interface SignSolTransactionRule {
|
|
1159
1386
|
action: SignSolTransactionRuleAction;
|
|
@@ -1176,6 +1403,17 @@ export declare const SignSolTransactionRuleOperation: {
|
|
|
1176
1403
|
|
|
1177
1404
|
export declare type SlippageBps = number;
|
|
1178
1405
|
|
|
1406
|
+
export declare interface SmsAuthentication {
|
|
1407
|
+
type: SmsAuthenticationType;
|
|
1408
|
+
phoneNumber: string;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
export declare type SmsAuthenticationType = (typeof SmsAuthenticationType)[keyof typeof SmsAuthenticationType];
|
|
1412
|
+
|
|
1413
|
+
export declare const SmsAuthenticationType: {
|
|
1414
|
+
readonly sms: "sms";
|
|
1415
|
+
};
|
|
1416
|
+
|
|
1179
1417
|
export declare interface SolAddressCriterion {
|
|
1180
1418
|
type: SolAddressCriterionType;
|
|
1181
1419
|
addresses: string[];
|
|
@@ -1219,12 +1457,178 @@ export declare interface SolanaTokenBalance {
|
|
|
1219
1457
|
token: SolanaToken;
|
|
1220
1458
|
}
|
|
1221
1459
|
|
|
1460
|
+
export declare interface SolDataCondition {
|
|
1461
|
+
instruction: SolDataConditionInstruction;
|
|
1462
|
+
params?: SolDataConditionParamsItem[];
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
export declare type SolDataConditionInstruction = (typeof SolDataConditionInstruction)[keyof typeof SolDataConditionInstruction];
|
|
1466
|
+
|
|
1467
|
+
export declare const SolDataConditionInstruction: {
|
|
1468
|
+
readonly createAccount: "createAccount";
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
export declare type SolDataConditionParamsItem = SolDataParameterCondition | SolDataParameterConditionList;
|
|
1472
|
+
|
|
1473
|
+
export declare interface SolDataCriterion {
|
|
1474
|
+
type: SolDataCriterionType;
|
|
1475
|
+
idls: SolDataCriterionIdlsItem[];
|
|
1476
|
+
conditions: SolDataCondition[];
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
export declare type SolDataCriterionIdlsItem = KnownIdlType | Idl;
|
|
1480
|
+
|
|
1481
|
+
export declare type SolDataCriterionType = (typeof SolDataCriterionType)[keyof typeof SolDataCriterionType];
|
|
1482
|
+
|
|
1483
|
+
export declare const SolDataCriterionType: {
|
|
1484
|
+
readonly solData: "solData";
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
export declare interface SolDataParameterCondition {
|
|
1488
|
+
name: string;
|
|
1489
|
+
operator: SolDataParameterConditionOperator;
|
|
1490
|
+
value: string;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
export declare interface SolDataParameterConditionList {
|
|
1494
|
+
name: string;
|
|
1495
|
+
operator: SolDataParameterConditionListOperator;
|
|
1496
|
+
values: string[];
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
export declare type SolDataParameterConditionListOperator = (typeof SolDataParameterConditionListOperator)[keyof typeof SolDataParameterConditionListOperator];
|
|
1500
|
+
|
|
1501
|
+
export declare const SolDataParameterConditionListOperator: {
|
|
1502
|
+
readonly in: "in";
|
|
1503
|
+
readonly not_in: "not in";
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1506
|
+
export declare type SolDataParameterConditionOperator = (typeof SolDataParameterConditionOperator)[keyof typeof SolDataParameterConditionOperator];
|
|
1507
|
+
|
|
1508
|
+
export declare const SolDataParameterConditionOperator: {
|
|
1509
|
+
readonly ">": ">";
|
|
1510
|
+
readonly ">=": ">=";
|
|
1511
|
+
readonly "<": "<";
|
|
1512
|
+
readonly "<=": "<=";
|
|
1513
|
+
readonly "==": "==";
|
|
1514
|
+
};
|
|
1515
|
+
|
|
1516
|
+
export declare interface SolMessageCriterion {
|
|
1517
|
+
type: SolMessageCriterionType;
|
|
1518
|
+
match: string;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
export declare type SolMessageCriterionType = (typeof SolMessageCriterionType)[keyof typeof SolMessageCriterionType];
|
|
1522
|
+
|
|
1523
|
+
export declare const SolMessageCriterionType: {
|
|
1524
|
+
readonly solMessage: "solMessage";
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1527
|
+
export declare interface SolValueCriterion {
|
|
1528
|
+
type: SolValueCriterionType;
|
|
1529
|
+
solValue: string;
|
|
1530
|
+
operator: SolValueCriterionOperator;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
export declare type SolValueCriterionOperator = (typeof SolValueCriterionOperator)[keyof typeof SolValueCriterionOperator];
|
|
1534
|
+
|
|
1535
|
+
export declare const SolValueCriterionOperator: {
|
|
1536
|
+
readonly ">": ">";
|
|
1537
|
+
readonly ">=": ">=";
|
|
1538
|
+
readonly "<": "<";
|
|
1539
|
+
readonly "<=": "<=";
|
|
1540
|
+
readonly "==": "==";
|
|
1541
|
+
};
|
|
1542
|
+
|
|
1543
|
+
export declare type SolValueCriterionType = (typeof SolValueCriterionType)[keyof typeof SolValueCriterionType];
|
|
1544
|
+
|
|
1545
|
+
export declare const SolValueCriterionType: {
|
|
1546
|
+
readonly solValue: "solValue";
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
export declare interface SpendPermission {
|
|
1550
|
+
account: string;
|
|
1551
|
+
spender: string;
|
|
1552
|
+
token: string;
|
|
1553
|
+
allowance: string;
|
|
1554
|
+
period: string;
|
|
1555
|
+
start: string;
|
|
1556
|
+
end: string;
|
|
1557
|
+
salt: string;
|
|
1558
|
+
extraData: string;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
export declare type SpendPermissionNetwork = (typeof SpendPermissionNetwork)[keyof typeof SpendPermissionNetwork];
|
|
1562
|
+
|
|
1563
|
+
export declare const SpendPermissionNetwork: {
|
|
1564
|
+
readonly base: "base";
|
|
1565
|
+
readonly "base-sepolia": "base-sepolia";
|
|
1566
|
+
readonly ethereum: "ethereum";
|
|
1567
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
1568
|
+
readonly optimism: "optimism";
|
|
1569
|
+
readonly arbitrum: "arbitrum";
|
|
1570
|
+
readonly avalanche: "avalanche";
|
|
1571
|
+
readonly polygon: "polygon";
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1574
|
+
export declare interface SpendPermissionResponseObject {
|
|
1575
|
+
permission: SpendPermission;
|
|
1576
|
+
permissionHash: string;
|
|
1577
|
+
revoked: boolean;
|
|
1578
|
+
revokedAt?: string;
|
|
1579
|
+
createdAt: string;
|
|
1580
|
+
network: SpendPermissionNetwork;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
export declare interface SplAddressCriterion {
|
|
1584
|
+
type: SplAddressCriterionType;
|
|
1585
|
+
addresses: string[];
|
|
1586
|
+
operator: SplAddressCriterionOperator;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
export declare type SplAddressCriterionOperator = (typeof SplAddressCriterionOperator)[keyof typeof SplAddressCriterionOperator];
|
|
1590
|
+
|
|
1591
|
+
export declare const SplAddressCriterionOperator: {
|
|
1592
|
+
readonly in: "in";
|
|
1593
|
+
readonly not_in: "not in";
|
|
1594
|
+
};
|
|
1595
|
+
|
|
1596
|
+
export declare type SplAddressCriterionType = (typeof SplAddressCriterionType)[keyof typeof SplAddressCriterionType];
|
|
1597
|
+
|
|
1598
|
+
export declare const SplAddressCriterionType: {
|
|
1599
|
+
readonly splAddress: "splAddress";
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
export declare interface SplValueCriterion {
|
|
1603
|
+
type: SplValueCriterionType;
|
|
1604
|
+
splValue: string;
|
|
1605
|
+
operator: SplValueCriterionOperator;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
export declare type SplValueCriterionOperator = (typeof SplValueCriterionOperator)[keyof typeof SplValueCriterionOperator];
|
|
1609
|
+
|
|
1610
|
+
export declare const SplValueCriterionOperator: {
|
|
1611
|
+
readonly ">": ">";
|
|
1612
|
+
readonly ">=": ">=";
|
|
1613
|
+
readonly "<": "<";
|
|
1614
|
+
readonly "<=": "<=";
|
|
1615
|
+
readonly "==": "==";
|
|
1616
|
+
};
|
|
1617
|
+
|
|
1618
|
+
export declare type SplValueCriterionType = (typeof SplValueCriterionType)[keyof typeof SplValueCriterionType];
|
|
1619
|
+
|
|
1620
|
+
export declare const SplValueCriterionType: {
|
|
1621
|
+
readonly splValue: "splValue";
|
|
1622
|
+
};
|
|
1623
|
+
|
|
1222
1624
|
export declare interface SwapUnavailableResponse {
|
|
1223
1625
|
liquidityAvailable: boolean;
|
|
1224
1626
|
}
|
|
1225
1627
|
|
|
1226
1628
|
export declare type Taker = string;
|
|
1227
1629
|
|
|
1630
|
+
export declare type TimedOutErrorResponse = Error_2;
|
|
1631
|
+
|
|
1228
1632
|
export declare interface Token {
|
|
1229
1633
|
network: ListEvmTokenBalancesNetwork;
|
|
1230
1634
|
symbol?: string;
|
|
@@ -1306,12 +1710,16 @@ export declare class UnknownError extends Error {
|
|
|
1306
1710
|
|
|
1307
1711
|
export declare interface UserOperationReceipt {
|
|
1308
1712
|
revert?: UserOperationReceiptRevert;
|
|
1713
|
+
transactionHash?: string;
|
|
1714
|
+
blockHash?: string;
|
|
1715
|
+
blockNumber?: number;
|
|
1716
|
+
gasUsed?: string;
|
|
1309
1717
|
}
|
|
1310
1718
|
|
|
1311
|
-
export declare
|
|
1312
|
-
data
|
|
1313
|
-
message
|
|
1314
|
-
}
|
|
1719
|
+
export declare interface UserOperationReceiptRevert {
|
|
1720
|
+
data: string;
|
|
1721
|
+
message: string;
|
|
1722
|
+
}
|
|
1315
1723
|
|
|
1316
1724
|
export declare const verifyEmailAuthentication: (projectId: string, verifyEmailAuthenticationRequest: VerifyEmailAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifyEmailAuthentication200>;
|
|
1317
1725
|
|
|
@@ -1330,10 +1738,111 @@ export declare interface VerifyEmailAuthenticationRequest {
|
|
|
1330
1738
|
|
|
1331
1739
|
export declare type VerifyEmailAuthenticationResult = NonNullable<Awaited<ReturnType<typeof verifyEmailAuthentication>>>;
|
|
1332
1740
|
|
|
1741
|
+
export declare const verifySmsAuthentication: (projectId: string, verifySmsAuthenticationRequest: VerifySmsAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifySmsAuthentication200>;
|
|
1742
|
+
|
|
1743
|
+
export declare type VerifySmsAuthentication200 = {
|
|
1744
|
+
endUser: EndUser;
|
|
1745
|
+
isNewEndUser: boolean;
|
|
1746
|
+
message: string;
|
|
1747
|
+
accessToken: string;
|
|
1748
|
+
validUntil: string;
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
export declare interface VerifySmsAuthenticationRequest {
|
|
1752
|
+
flowId: string;
|
|
1753
|
+
otp: string;
|
|
1754
|
+
}
|
|
1755
|
+
|
|
1756
|
+
export declare type VerifySmsAuthenticationResult = NonNullable<Awaited<ReturnType<typeof verifySmsAuthentication>>>;
|
|
1757
|
+
|
|
1333
1758
|
export declare interface WalletSecretMetadata {
|
|
1334
1759
|
updatedAt: string;
|
|
1335
1760
|
}
|
|
1336
1761
|
|
|
1762
|
+
export declare interface WebhookSubscriptionRequest {
|
|
1763
|
+
description?: string;
|
|
1764
|
+
eventTypes: string[];
|
|
1765
|
+
isEnabled: boolean;
|
|
1766
|
+
labelKey: string;
|
|
1767
|
+
labelValue: string;
|
|
1768
|
+
metadata?: WebhookSubscriptionRequestMetadata;
|
|
1769
|
+
target: WebhookTarget;
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
export declare type WebhookSubscriptionRequestMetadata = {
|
|
1773
|
+
[key: string]: unknown;
|
|
1774
|
+
};
|
|
1775
|
+
|
|
1776
|
+
export declare interface WebhookSubscriptionResponse {
|
|
1777
|
+
createdAt: string;
|
|
1778
|
+
description?: string;
|
|
1779
|
+
eventTypes: string[];
|
|
1780
|
+
isEnabled: boolean;
|
|
1781
|
+
labelKey: string;
|
|
1782
|
+
labelValue: string;
|
|
1783
|
+
metadata?: WebhookSubscriptionResponseMetadata;
|
|
1784
|
+
subscriptionId: string;
|
|
1785
|
+
target: WebhookTarget;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
export declare type WebhookSubscriptionResponseMetadata = {
|
|
1789
|
+
secret?: string;
|
|
1790
|
+
};
|
|
1791
|
+
|
|
1792
|
+
export declare interface WebhookSubscriptionUpdateRequest {
|
|
1793
|
+
description?: string;
|
|
1794
|
+
eventTypes: string[];
|
|
1795
|
+
isEnabled: boolean;
|
|
1796
|
+
labelKey: string;
|
|
1797
|
+
labelValue: string;
|
|
1798
|
+
metadata?: WebhookSubscriptionUpdateRequestMetadata;
|
|
1799
|
+
target: WebhookTarget;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
export declare type WebhookSubscriptionUpdateRequestMetadata = {
|
|
1803
|
+
[key: string]: unknown;
|
|
1804
|
+
};
|
|
1805
|
+
|
|
1806
|
+
export declare interface WebhookTarget {
|
|
1807
|
+
url: string;
|
|
1808
|
+
headers?: WebhookTargetHeaders;
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
export declare type WebhookTargetHeaders = {
|
|
1812
|
+
[key: string]: string;
|
|
1813
|
+
};
|
|
1814
|
+
|
|
1815
|
+
export declare interface X402DiscoveryResource {
|
|
1816
|
+
resource: string;
|
|
1817
|
+
type: X402DiscoveryResourceType;
|
|
1818
|
+
x402Version: X402Version;
|
|
1819
|
+
accepts?: X402PaymentRequirements[];
|
|
1820
|
+
lastUpdated: string;
|
|
1821
|
+
metadata?: X402DiscoveryResourceMetadata;
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
export declare type X402DiscoveryResourceMetadata = {
|
|
1825
|
+
[key: string]: unknown;
|
|
1826
|
+
};
|
|
1827
|
+
|
|
1828
|
+
export declare interface X402DiscoveryResourcesResponse {
|
|
1829
|
+
x402Version: X402Version;
|
|
1830
|
+
items: X402DiscoveryResource[];
|
|
1831
|
+
pagination: X402DiscoveryResourcesResponsePagination;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
export declare type X402DiscoveryResourcesResponsePagination = {
|
|
1835
|
+
limit?: number;
|
|
1836
|
+
offset?: number;
|
|
1837
|
+
total?: number;
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
export declare type X402DiscoveryResourceType = (typeof X402DiscoveryResourceType)[keyof typeof X402DiscoveryResourceType];
|
|
1841
|
+
|
|
1842
|
+
export declare const X402DiscoveryResourceType: {
|
|
1843
|
+
readonly http: "http";
|
|
1844
|
+
};
|
|
1845
|
+
|
|
1337
1846
|
export declare interface X402ExactEvmPayload {
|
|
1338
1847
|
signature: string;
|
|
1339
1848
|
authorization: X402ExactEvmPayloadAuthorization;
|
|
@@ -1349,7 +1858,7 @@ export declare type X402ExactEvmPayloadAuthorization = {
|
|
|
1349
1858
|
};
|
|
1350
1859
|
|
|
1351
1860
|
export declare interface X402PaymentPayload {
|
|
1352
|
-
x402Version:
|
|
1861
|
+
x402Version: X402Version;
|
|
1353
1862
|
scheme: X402PaymentPayloadScheme;
|
|
1354
1863
|
network: X402PaymentPayloadNetwork;
|
|
1355
1864
|
payload: X402ExactEvmPayload;
|
|
@@ -1368,12 +1877,6 @@ export declare const X402PaymentPayloadScheme: {
|
|
|
1368
1877
|
readonly exact: "exact";
|
|
1369
1878
|
};
|
|
1370
1879
|
|
|
1371
|
-
export declare type X402PaymentPayloadX402Version = (typeof X402PaymentPayloadX402Version)[keyof typeof X402PaymentPayloadX402Version];
|
|
1372
|
-
|
|
1373
|
-
export declare const X402PaymentPayloadX402Version: {
|
|
1374
|
-
readonly NUMBER_1: 1;
|
|
1375
|
-
};
|
|
1376
|
-
|
|
1377
1880
|
export declare interface X402PaymentRequirements {
|
|
1378
1881
|
scheme: X402PaymentRequirementsScheme;
|
|
1379
1882
|
network: X402PaymentRequirementsNetwork;
|
|
@@ -1436,7 +1939,7 @@ export declare type X402SettleResponseResponse = {
|
|
|
1436
1939
|
};
|
|
1437
1940
|
|
|
1438
1941
|
export declare interface X402SupportedPaymentKind {
|
|
1439
|
-
x402Version:
|
|
1942
|
+
x402Version: X402Version;
|
|
1440
1943
|
scheme: X402SupportedPaymentKindScheme;
|
|
1441
1944
|
network: X402SupportedPaymentKindNetwork;
|
|
1442
1945
|
}
|
|
@@ -1458,12 +1961,6 @@ export declare type X402SupportedPaymentKindsResponseResponse = {
|
|
|
1458
1961
|
kinds: X402SupportedPaymentKind[];
|
|
1459
1962
|
};
|
|
1460
1963
|
|
|
1461
|
-
export declare type X402SupportedPaymentKindX402Version = (typeof X402SupportedPaymentKindX402Version)[keyof typeof X402SupportedPaymentKindX402Version];
|
|
1462
|
-
|
|
1463
|
-
export declare const X402SupportedPaymentKindX402Version: {
|
|
1464
|
-
readonly NUMBER_1: 1;
|
|
1465
|
-
};
|
|
1466
|
-
|
|
1467
1964
|
export declare type X402VerifyInvalidReason = (typeof X402VerifyInvalidReason)[keyof typeof X402VerifyInvalidReason];
|
|
1468
1965
|
|
|
1469
1966
|
export declare const X402VerifyInvalidReason: {
|
|
@@ -1489,9 +1986,13 @@ export declare type X402VerifyResponseResponse = {
|
|
|
1489
1986
|
payer: string;
|
|
1490
1987
|
};
|
|
1491
1988
|
|
|
1492
|
-
export declare type
|
|
1989
|
+
export declare type X402Version = (typeof X402Version)[keyof typeof X402Version];
|
|
1990
|
+
|
|
1991
|
+
export declare const X402Version: {
|
|
1992
|
+
readonly NUMBER_1: 1;
|
|
1993
|
+
};
|
|
1493
1994
|
|
|
1494
|
-
export declare type
|
|
1995
|
+
export declare type XDeveloperAuthParameter = string;
|
|
1495
1996
|
|
|
1496
1997
|
export declare type XWalletAuthParameter = string;
|
|
1497
1998
|
|