@coinbase/cdp-api-client 0.0.96 → 0.0.97

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.
@@ -445,6 +445,19 @@ export declare interface CreateCustomOAuthXConfig {
445
445
  clientSecret: string;
446
446
  }
447
447
 
448
+ export declare const createDelegationForEndUser: (projectId: string, userId: string, createDelegationForEndUserBody: CreateDelegationForEndUserBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<CreateDelegationForEndUser201>;
449
+
450
+ export declare type CreateDelegationForEndUser201 = {
451
+ delegationId: string;
452
+ };
453
+
454
+ export declare type CreateDelegationForEndUserBody = {
455
+ expiresAt: string;
456
+ walletSecretId: string;
457
+ };
458
+
459
+ export declare type CreateDelegationForEndUserResult = NonNullable<Awaited<ReturnType<typeof createDelegationForEndUser>>>;
460
+
448
461
  export declare interface CreateDepositDestinationRequest {
449
462
  accountId: AccountId;
450
463
  type: CreateDepositDestinationRequestType;
@@ -513,6 +526,7 @@ export declare type CreateEvmEip7702DelegationWithEndUserAccountResult = NonNull
513
526
 
514
527
  export declare interface CreateProjectConfigRequest {
515
528
  name?: string;
529
+ delegatedSigningEnabled?: boolean;
516
530
  }
517
531
 
518
532
  export declare type CreateReportDestinationRequest = CreateReportDestinationRequestAllOf & CreateReportDestinationRequestAllOfThreeOneOf;
@@ -704,6 +718,44 @@ export declare const DepositDestinationType: {
704
718
  readonly crypto: "crypto";
705
719
  };
706
720
 
721
+ export declare interface DepositTravelRuleBeneficiary {
722
+ name?: string;
723
+ }
724
+
725
+ export declare interface DepositTravelRuleOriginator {
726
+ name?: string;
727
+ address?: PhysicalAddress;
728
+ walletType?: DepositTravelRuleOriginatorWalletType;
729
+ vasp?: DepositTravelRuleVasp;
730
+ personalId?: string;
731
+ dateOfBirth?: DateOfBirth;
732
+ }
733
+
734
+ export declare type DepositTravelRuleOriginatorWalletType = (typeof DepositTravelRuleOriginatorWalletType)[keyof typeof DepositTravelRuleOriginatorWalletType];
735
+
736
+ export declare const DepositTravelRuleOriginatorWalletType: {
737
+ readonly custodial: "custodial";
738
+ readonly self_custody: "self_custody";
739
+ };
740
+
741
+ export declare interface DepositTravelRuleRequest {
742
+ originator?: DepositTravelRuleOriginator;
743
+ beneficiary?: DepositTravelRuleBeneficiary;
744
+ isSelf?: boolean;
745
+ optOutOfOwnershipVerification?: boolean;
746
+ }
747
+
748
+ export declare interface DepositTravelRuleResponse {
749
+ status: TravelRuleStatus;
750
+ missingFields?: string[];
751
+ reason?: string;
752
+ }
753
+
754
+ export declare interface DepositTravelRuleVasp {
755
+ identifier?: string;
756
+ name?: string;
757
+ }
758
+
707
759
  export declare type Description = string;
708
760
 
709
761
  export declare type DestinationType = (typeof DestinationType)[keyof typeof DestinationType];
@@ -1826,7 +1878,6 @@ export declare const Network: {
1826
1878
  readonly arbitrum: "arbitrum";
1827
1879
  readonly optimism: "optimism";
1828
1880
  readonly polygon: "polygon";
1829
- readonly sui: "sui";
1830
1881
  };
1831
1882
 
1832
1883
  export declare interface OAuth2Authentication {
@@ -2355,6 +2406,9 @@ export declare interface ProjectConfig {
2355
2406
  name?: string;
2356
2407
  createdAt: string;
2357
2408
  updatedAt: string;
2409
+ gmailAutoLinkingEnabled?: boolean;
2410
+ iCloudAutoLinkingEnabled?: boolean;
2411
+ delegatedSigningEnabled?: boolean;
2358
2412
  appAttestation?: AppAttestationProjectConfig;
2359
2413
  }
2360
2414
 
@@ -2519,6 +2573,10 @@ export declare const ResourceType: {
2519
2573
  readonly transfers: "transfers";
2520
2574
  };
2521
2575
 
2576
+ export declare const revokeDelegationForEndUser: (projectId: string, userId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
2577
+
2578
+ export declare type RevokeDelegationForEndUserResult = NonNullable<Awaited<ReturnType<typeof revokeDelegationForEndUser>>>;
2579
+
2522
2580
  export declare interface RevokeSpendPermissionRequest {
2523
2581
  walletSecretId: string;
2524
2582
  network: SpendPermissionNetwork;
@@ -3649,6 +3707,7 @@ export declare const TransferColumn: {
3649
3707
  export declare interface TransferDetails {
3650
3708
  depositDestination?: DepositDestinationReference;
3651
3709
  onchainTransactions?: TransferDetailsOnchainTransactionsItem[];
3710
+ travelRule?: TransferDetailsTravelRule;
3652
3711
  }
3653
3712
 
3654
3713
  export declare type TransferDetailsOnchainTransactionsItem = {
@@ -3656,6 +3715,11 @@ export declare type TransferDetailsOnchainTransactionsItem = {
3656
3715
  network: Network;
3657
3716
  };
3658
3717
 
3718
+ export declare type TransferDetailsTravelRule = {
3719
+ status?: TravelRuleStatus;
3720
+ statusMessage?: string;
3721
+ };
3722
+
3659
3723
  export declare interface TransferEvent {
3660
3724
  eventType: TransferEventEventType;
3661
3725
  eventId: string;
@@ -3667,9 +3731,15 @@ export declare type TransferEventEventType = (typeof TransferEventEventType)[key
3667
3731
 
3668
3732
  export declare const TransferEventEventType: {
3669
3733
  readonly paymentstransfersquoted: "payments.transfers.quoted";
3734
+ readonly paymentstransferspending: "payments.transfers.pending";
3670
3735
  readonly paymentstransfersprocessing: "payments.transfers.processing";
3671
3736
  readonly paymentstransferscompleted: "payments.transfers.completed";
3672
3737
  readonly paymentstransfersfailed: "payments.transfers.failed";
3738
+ readonly paymentstransfersaction_required: "payments.transfers.action_required";
3739
+ readonly paymentstransferstravel_ruleincomplete: "payments.transfers.travel_rule.incomplete";
3740
+ readonly paymentstransferstravel_rulecomplete: "payments.transfers.travel_rule.complete";
3741
+ readonly paymentstransferstravel_rulein_review: "payments.transfers.travel_rule.in_review";
3742
+ readonly paymentstransferstravel_ruleblocked: "payments.transfers.travel_rule.blocked";
3673
3743
  };
3674
3744
 
3675
3745
  export declare type TransferExchangeRate = {
@@ -3740,6 +3810,7 @@ export declare const TransferStatus: {
3740
3810
  readonly processing: "processing";
3741
3811
  readonly completed: "completed";
3742
3812
  readonly failed: "failed";
3813
+ readonly action_required: "action_required";
3743
3814
  };
3744
3815
 
3745
3816
  export declare type TransferTarget = TransfersAccount | PaymentMethod | OnchainAddress | EmailInstrument;
@@ -3782,6 +3853,15 @@ export declare interface TravelRuleParty {
3782
3853
  address?: PhysicalAddress;
3783
3854
  }
3784
3855
 
3856
+ export declare type TravelRuleStatus = (typeof TravelRuleStatus)[keyof typeof TravelRuleStatus];
3857
+
3858
+ export declare const TravelRuleStatus: {
3859
+ readonly incomplete: "incomplete";
3860
+ readonly complete: "complete";
3861
+ readonly in_review: "in_review";
3862
+ readonly blocked: "blocked";
3863
+ };
3864
+
3785
3865
  export declare type UnauthorizedErrorResponse = Error_2;
3786
3866
 
3787
3867
  export declare class UnknownApiError extends APIError {
@@ -3843,6 +3923,9 @@ export declare interface UpdateMfaConfigRequest {
3843
3923
 
3844
3924
  export declare interface UpdateProjectConfigRequest {
3845
3925
  name?: string;
3926
+ gmailAutoLinkingEnabled?: boolean | null;
3927
+ iCloudAutoLinkingEnabled?: boolean | null;
3928
+ delegatedSigningEnabled?: boolean | null;
3846
3929
  }
3847
3930
 
3848
3931
  export declare type UpdateReportDestinationRequest = UpdateReportDestinationRequestAllOf & UpdateReportDestinationRequestAllOfTwo;
@@ -3912,6 +3995,12 @@ export declare interface VerifyEmailAuthenticationRequest {
3912
3995
 
3913
3996
  export declare type VerifyEmailAuthenticationResult = NonNullable<Awaited<ReturnType<typeof verifyEmailAuthentication>>>;
3914
3997
 
3998
+ export declare interface VerifyOAuthAppleNativeRequest {
3999
+ flowId: string;
4000
+ identityToken: string;
4001
+ authorizationCode?: string;
4002
+ }
4003
+
3915
4004
  export declare const verifyOAuthCode: (projectId: string, providerType: OAuth2ProviderType, verifyOAuthCodeRequest: VerifyOAuthCodeRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifyOAuthCode200>;
3916
4005
 
3917
4006
  export declare type VerifyOAuthCode200 = {
@@ -3930,7 +4019,7 @@ export declare interface VerifyOAuthCodeRequest {
3930
4019
 
3931
4020
  export declare type VerifyOAuthCodeResult = NonNullable<Awaited<ReturnType<typeof verifyOAuthCode>>>;
3932
4021
 
3933
- export declare type VerifyOAuthEndUserIdentity = VerifyOAuthTelegramRequest;
4022
+ export declare type VerifyOAuthEndUserIdentity = VerifyOAuthTelegramRequest | VerifyOAuthAppleNativeRequest;
3934
4023
 
3935
4024
  export declare const verifyOAuthEndUserIdentity: (projectId: string, providerType: OAuth2ProviderType, verifyOAuthEndUserIdentity: VerifyOAuthEndUserIdentity, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifyOAuthEndUserIdentity200>;
3936
4025
 
@@ -4041,6 +4130,19 @@ export declare type WebhookTargetHeaders = {
4041
4130
  [key: string]: string;
4042
4131
  };
4043
4132
 
4133
+ export declare interface X402DiscoveryMerchantResponse {
4134
+ x402Version: X402Version;
4135
+ payTo: BlockchainAddress;
4136
+ resources: X402DiscoveryResource[];
4137
+ pagination: X402DiscoveryMerchantResponsePagination;
4138
+ }
4139
+
4140
+ export declare type X402DiscoveryMerchantResponsePagination = {
4141
+ limit?: number;
4142
+ offset?: number;
4143
+ total?: number;
4144
+ };
4145
+
4044
4146
  export declare interface X402DiscoveryResource {
4045
4147
  resource: string;
4046
4148
  type: X402DiscoveryResourceType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-api-client",
3
- "version": "0.0.96",
3
+ "version": "0.0.97",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/**",