@dakota-xyz/ts-sdk 1.0.15 → 1.0.16

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/README.md CHANGED
@@ -327,6 +327,63 @@ const client = new DakotaClient({
327
327
  });
328
328
  ```
329
329
 
330
+ ## Idempotency Keys
331
+
332
+ Dakota requires idempotency keys (UUID format) for all `POST`, `PUT`, and `PATCH` requests to ensure safe retries. By default, the SDK auto-generates keys for you, but you can provide your own for deterministic API calls:
333
+
334
+ ```typescript
335
+ import { v4 as uuid } from 'uuid';
336
+
337
+ // Auto-generated idempotency key (default behavior)
338
+ const customer = await client.customers.create({
339
+ name: 'Acme Corp',
340
+ customer_type: 'business',
341
+ });
342
+
343
+ // Custom idempotency key for deterministic retries
344
+ const customerId = 'acme-corp-123';
345
+ const customer = await client.customers.create(
346
+ { name: 'Acme Corp', customer_type: 'business' },
347
+ { idempotencyKey: uuid() } // or your own deterministic key
348
+ );
349
+
350
+ // Use deterministic keys for replay safety
351
+ const txKey = `invoice-${invoiceId}-payment`;
352
+ const tx = await client.transactions.create(
353
+ {
354
+ customer_id: customerId,
355
+ amount: '1000.00',
356
+ source_asset: 'USDC',
357
+ source_network_id: 'ethereum-mainnet',
358
+ destination_id: destinationId,
359
+ destination_asset: 'USD',
360
+ destination_payment_rail: 'ach',
361
+ },
362
+ { idempotencyKey: txKey }
363
+ );
364
+
365
+ // Retrying with the same key returns the original response
366
+ const txRetry = await client.transactions.create(
367
+ { /* same data */ },
368
+ { idempotencyKey: txKey } // Returns cached response, no duplicate created
369
+ );
370
+ ```
371
+
372
+ ### When to Use Custom Idempotency Keys
373
+
374
+ - **Retry safety**: Use deterministic keys based on your business logic (e.g., `invoice-{id}-payment`)
375
+ - **Distributed systems**: When requests may be retried across different processes
376
+ - **Exactly-once semantics**: When you need to guarantee no duplicate side effects
377
+
378
+ ### Disable Auto-Generated Keys
379
+
380
+ ```typescript
381
+ const client = new DakotaClient({
382
+ apiKey: 'your_api_key',
383
+ automaticIdempotency: false, // You must provide keys manually
384
+ });
385
+ ```
386
+
330
387
  ## Supported Networks
331
388
 
332
389
  | Network | Production | Sandbox |
package/dist/index.d.mts CHANGED
@@ -4413,6 +4413,34 @@ interface SimulationInspection {
4413
4413
  }
4414
4414
  /** Sandbox scenario */
4415
4415
  type SandboxScenario = components['schemas']['SandboxScenario'];
4416
+ /**
4417
+ * Options for API requests.
4418
+ *
4419
+ * Use this to pass custom idempotency keys for deterministic API calls.
4420
+ *
4421
+ * @example
4422
+ * ```typescript
4423
+ * // Use a custom idempotency key for replay safety
4424
+ * const tx = await client.transactions.create(
4425
+ * { customer_id: '...', amount: '100.00', ... },
4426
+ * { idempotencyKey: 'my-unique-key-123' }
4427
+ * );
4428
+ * ```
4429
+ */
4430
+ interface RequestOptions {
4431
+ /**
4432
+ * Custom idempotency key (UUID format).
4433
+ *
4434
+ * If provided, this key will be used instead of auto-generating one.
4435
+ * The same key with the same request body will return the cached response.
4436
+ *
4437
+ * Requirements:
4438
+ * - Must be a valid UUID
4439
+ * - Stable per logical operation
4440
+ * - Not reused across different business intents
4441
+ */
4442
+ idempotencyKey?: string;
4443
+ }
4416
4444
  /** Pagination metadata */
4417
4445
  type Meta = components['schemas']['Meta'];
4418
4446
  /** Common list parameters */
@@ -4454,6 +4482,7 @@ declare class CustomersResource extends BaseResource {
4454
4482
  * Returns a URL where the customer can complete verification.
4455
4483
  *
4456
4484
  * @param data - Customer creation data
4485
+ * @param options - Request options (e.g., custom idempotency key)
4457
4486
  * @returns Created customer with KYB onboarding URL
4458
4487
  *
4459
4488
  * @example
@@ -4463,10 +4492,16 @@ declare class CustomersResource extends BaseResource {
4463
4492
  * customerType: 'business',
4464
4493
  * externalId: 'your-internal-id',
4465
4494
  * });
4495
+ *
4496
+ * // With custom idempotency key
4497
+ * const customer = await client.customers.create(
4498
+ * { name: 'Acme Corp', customerType: 'business' },
4499
+ * { idempotencyKey: 'create-acme-corp-001' }
4500
+ * );
4466
4501
  * console.log(customer.applicationUrl); // KYB onboarding URL
4467
4502
  * ```
4468
4503
  */
4469
- create(data: CustomerCreateRequest): Promise<CustomerCreateResponse>;
4504
+ create(data: CustomerCreateRequest, options?: RequestOptions): Promise<CustomerCreateResponse>;
4470
4505
  /**
4471
4506
  * List all customers.
4472
4507
  *
@@ -4529,7 +4564,7 @@ declare class RecipientsResource extends BaseResource {
4529
4564
  * });
4530
4565
  * ```
4531
4566
  */
4532
- create(customerId: string, data: RecipientRequest): Promise<Recipient>;
4567
+ create(customerId: string, data: RecipientRequest, options?: RequestOptions): Promise<Recipient>;
4533
4568
  /**
4534
4569
  * List recipients for a customer.
4535
4570
  *
@@ -4571,7 +4606,7 @@ declare class RecipientsResource extends BaseResource {
4571
4606
  * });
4572
4607
  * ```
4573
4608
  */
4574
- update(recipientId: string, data: RecipientUpdateRequest): Promise<Recipient>;
4609
+ update(recipientId: string, data: RecipientUpdateRequest, options?: RequestOptions): Promise<Recipient>;
4575
4610
  }
4576
4611
 
4577
4612
  /**
@@ -4611,7 +4646,7 @@ declare class DestinationsResource extends BaseResource {
4611
4646
  * });
4612
4647
  * ```
4613
4648
  */
4614
- create(recipientId: string, data: DestinationRequest): Promise<Destination>;
4649
+ create(recipientId: string, data: DestinationRequest, options?: RequestOptions): Promise<Destination>;
4615
4650
  /**
4616
4651
  * List destinations for a recipient.
4617
4652
  *
@@ -4680,7 +4715,7 @@ declare class AccountsResource extends BaseResource {
4680
4715
  * // Returns: { bank_account: { bank_name, aba_routing_number, account_number } } - customer sends USD here
4681
4716
  * ```
4682
4717
  */
4683
- create(data: AccountCreateRequest): Promise<Account>;
4718
+ create(data: AccountCreateRequest, options?: RequestOptions): Promise<Account>;
4684
4719
  /**
4685
4720
  * List accounts.
4686
4721
  *
@@ -4725,7 +4760,7 @@ declare class AccountsResource extends BaseResource {
4725
4760
  * });
4726
4761
  * ```
4727
4762
  */
4728
- update(accountId: string, data: AccountUpdateRequest): Promise<Account>;
4763
+ update(accountId: string, data: AccountUpdateRequest, options?: RequestOptions): Promise<Account>;
4729
4764
  }
4730
4765
 
4731
4766
  /**
@@ -4742,6 +4777,7 @@ declare class TransactionsResource extends BaseResource {
4742
4777
  * One-off transactions allow single transfers without setting up accounts.
4743
4778
  *
4744
4779
  * @param data - Transaction creation data
4780
+ * @param options - Request options (e.g., custom idempotency key)
4745
4781
  * @returns Created transaction
4746
4782
  *
4747
4783
  * @example
@@ -4757,11 +4793,17 @@ declare class TransactionsResource extends BaseResource {
4757
4793
  * payment_reference: 'Invoice #12345',
4758
4794
  * });
4759
4795
  *
4796
+ * // With custom idempotency key
4797
+ * const tx = await client.transactions.create(
4798
+ * { customer_id: customerId, amount: '1000.00', ... },
4799
+ * { idempotencyKey: 'invoice-12345-payment' }
4800
+ * );
4801
+ *
4760
4802
  * console.log(tx.crypto_address); // Send USDC here
4761
4803
  * console.log(tx.status); // Transaction status
4762
4804
  * ```
4763
4805
  */
4764
- create(data: OneOffTransactionRequest): Promise<OneOffTransaction>;
4806
+ create(data: OneOffTransactionRequest, options?: RequestOptions): Promise<OneOffTransaction>;
4765
4807
  /**
4766
4808
  * List one-off transactions.
4767
4809
  *
@@ -4802,6 +4844,7 @@ declare class TransactionsResource extends BaseResource {
4802
4844
  * Only pending transactions can be cancelled.
4803
4845
  *
4804
4846
  * @param transactionId - Transaction ID
4847
+ * @param options - Request options (e.g., custom idempotency key)
4805
4848
  * @returns Cancelled transaction
4806
4849
  *
4807
4850
  * @example
@@ -4810,7 +4853,7 @@ declare class TransactionsResource extends BaseResource {
4810
4853
  * console.log(tx.status); // 'cancelled'
4811
4854
  * ```
4812
4855
  */
4813
- cancel(transactionId: string): Promise<OneOffTransaction>;
4856
+ cancel(transactionId: string, options?: RequestOptions): Promise<OneOffTransaction>;
4814
4857
  }
4815
4858
  /**
4816
4859
  * Auto Transactions API resource.
@@ -4858,7 +4901,7 @@ declare class WalletsResource extends BaseResource {
4858
4901
  * console.log(wallet.address);
4859
4902
  * ```
4860
4903
  */
4861
- create(data: WalletCreateRequest): Promise<Wallet>;
4904
+ create(data: WalletCreateRequest, options?: RequestOptions): Promise<Wallet>;
4862
4905
  /**
4863
4906
  * Get wallet balances.
4864
4907
  *
@@ -4891,7 +4934,7 @@ declare class WalletsResource extends BaseResource {
4891
4934
  * });
4892
4935
  * ```
4893
4936
  */
4894
- createTransaction(walletId: string, data: WalletTransactionRequest): Promise<WalletTransaction>;
4937
+ createTransaction(walletId: string, data: WalletTransactionRequest, options?: RequestOptions): Promise<WalletTransaction>;
4895
4938
  }
4896
4939
 
4897
4940
  /**
@@ -4966,7 +5009,7 @@ declare class ApplicationsResource extends BaseResource {
4966
5009
  * @param data - Submission data
4967
5010
  * @returns Submitted application
4968
5011
  */
4969
- submit(applicationId: string, data?: ApplicationSubmissionRequest): Promise<Application>;
5012
+ submit(applicationId: string, data?: ApplicationSubmissionRequest, options?: RequestOptions): Promise<Application>;
4970
5013
  /**
4971
5014
  * List associated individuals for an application.
4972
5015
  *
@@ -4982,7 +5025,7 @@ declare class ApplicationsResource extends BaseResource {
4982
5025
  * @param data - Individual data
4983
5026
  * @returns Created individual
4984
5027
  */
4985
- addIndividual(applicationId: string, data: AssociatedIndividualRequest): Promise<AssociatedIndividual>;
5028
+ addIndividual(applicationId: string, data: AssociatedIndividualRequest, options?: RequestOptions): Promise<AssociatedIndividual>;
4986
5029
  /**
4987
5030
  * Get an associated individual.
4988
5031
  *
@@ -4999,7 +5042,7 @@ declare class ApplicationsResource extends BaseResource {
4999
5042
  * @param data - Update data
5000
5043
  * @returns Updated individual
5001
5044
  */
5002
- updateIndividual(applicationId: string, individualId: string, data: Partial<AssociatedIndividualRequest>): Promise<AssociatedIndividual>;
5045
+ updateIndividual(applicationId: string, individualId: string, data: Partial<AssociatedIndividualRequest>, options?: RequestOptions): Promise<AssociatedIndividual>;
5003
5046
  /**
5004
5047
  * Delete an associated individual.
5005
5048
  *
@@ -5014,7 +5057,7 @@ declare class ApplicationsResource extends BaseResource {
5014
5057
  * @param data - Business details
5015
5058
  * @returns Updated application
5016
5059
  */
5017
- updateBusinessDetails(applicationId: string, data: Record<string, unknown>): Promise<Application>;
5060
+ updateBusinessDetails(applicationId: string, data: Record<string, unknown>, options?: RequestOptions): Promise<Application>;
5018
5061
  /**
5019
5062
  * Get document upload URL for an application.
5020
5063
  *
@@ -5025,7 +5068,7 @@ declare class ApplicationsResource extends BaseResource {
5025
5068
  getDocumentUploadUrl(applicationId: string, data: {
5026
5069
  document_type: string;
5027
5070
  file_name: string;
5028
- }): Promise<{
5071
+ }, options?: RequestOptions): Promise<{
5029
5072
  upload_url: string;
5030
5073
  document_id: string;
5031
5074
  }>;
@@ -5045,7 +5088,7 @@ declare class PoliciesResource extends BaseResource {
5045
5088
  * @param data - Policy creation data
5046
5089
  * @returns Created policy
5047
5090
  */
5048
- create(data: PolicyCreateRequest): Promise<Policy>;
5091
+ create(data: PolicyCreateRequest, options?: RequestOptions): Promise<Policy>;
5049
5092
  /**
5050
5093
  * List policies.
5051
5094
  *
@@ -5073,7 +5116,7 @@ declare class PoliciesResource extends BaseResource {
5073
5116
  * @param data - Rule creation data
5074
5117
  * @returns Created rule
5075
5118
  */
5076
- addRule(policyId: string, data: PolicyRuleCreateRequest): Promise<PolicyRule>;
5119
+ addRule(policyId: string, data: PolicyRuleCreateRequest, options?: RequestOptions): Promise<PolicyRule>;
5077
5120
  /**
5078
5121
  * Update a policy rule.
5079
5122
  *
@@ -5082,7 +5125,7 @@ declare class PoliciesResource extends BaseResource {
5082
5125
  * @param data - Update data
5083
5126
  * @returns Updated rule
5084
5127
  */
5085
- updateRule(policyId: string, ruleId: string, data: Partial<PolicyRuleCreateRequest>): Promise<PolicyRule>;
5128
+ updateRule(policyId: string, ruleId: string, data: Partial<PolicyRuleCreateRequest>, options?: RequestOptions): Promise<PolicyRule>;
5086
5129
  /**
5087
5130
  * Delete a policy rule.
5088
5131
  *
@@ -5096,7 +5139,7 @@ declare class PoliciesResource extends BaseResource {
5096
5139
  * @param policyId - Policy ID
5097
5140
  * @param walletId - Wallet ID
5098
5141
  */
5099
- attachToWallet(policyId: string, walletId: string): Promise<void>;
5142
+ attachToWallet(policyId: string, walletId: string, options?: RequestOptions): Promise<void>;
5100
5143
  /**
5101
5144
  * Detach a policy from a wallet.
5102
5145
  *
@@ -5120,7 +5163,7 @@ declare class SignerGroupsResource extends BaseResource {
5120
5163
  * @param data - Signer group creation data
5121
5164
  * @returns Created signer group
5122
5165
  */
5123
- create(data: SignerGroupCreateRequest): Promise<SignerGroup>;
5166
+ create(data: SignerGroupCreateRequest, options?: RequestOptions): Promise<SignerGroup>;
5124
5167
  /**
5125
5168
  * List signer groups.
5126
5169
  *
@@ -5142,7 +5185,7 @@ declare class SignerGroupsResource extends BaseResource {
5142
5185
  * @param data - Signer creation data
5143
5186
  * @returns Created signer
5144
5187
  */
5145
- addSigner(signerGroupId: string, data: SignerCreateRequest): Promise<Signer>;
5188
+ addSigner(signerGroupId: string, data: SignerCreateRequest, options?: RequestOptions): Promise<Signer>;
5146
5189
  /**
5147
5190
  * Remove a signer from a group.
5148
5191
  *
@@ -5156,7 +5199,7 @@ declare class SignerGroupsResource extends BaseResource {
5156
5199
  * @param walletId - Wallet ID
5157
5200
  * @param signerGroupId - Signer group ID
5158
5201
  */
5159
- attachToWallet(walletId: string, signerGroupId: string): Promise<void>;
5202
+ attachToWallet(walletId: string, signerGroupId: string, options?: RequestOptions): Promise<void>;
5160
5203
  /**
5161
5204
  * Detach a signer group from a wallet.
5162
5205
  *
@@ -5207,7 +5250,7 @@ declare class ApiKeysResource extends BaseResource {
5207
5250
  * @param data - API key creation data
5208
5251
  * @returns Created API key (includes secret, only shown once)
5209
5252
  */
5210
- create(data: ApiKeyCreateRequest): Promise<ApiKey & {
5253
+ create(data: ApiKeyCreateRequest, options?: RequestOptions): Promise<ApiKey & {
5211
5254
  secret: string;
5212
5255
  }>;
5213
5256
  /**
@@ -5239,7 +5282,7 @@ declare class UsersResource extends BaseResource {
5239
5282
  * @param data - User creation data
5240
5283
  * @returns Created user
5241
5284
  */
5242
- create(data: UserCreateRequest): Promise<User>;
5285
+ create(data: UserCreateRequest, options?: RequestOptions): Promise<User>;
5243
5286
  /**
5244
5287
  * List users.
5245
5288
  *
@@ -5261,7 +5304,7 @@ declare class UsersResource extends BaseResource {
5261
5304
  * @param data - Update data
5262
5305
  * @returns Updated user
5263
5306
  */
5264
- update(userId: string, data: UserUpdateRequest): Promise<User>;
5307
+ update(userId: string, data: UserUpdateRequest, options?: RequestOptions): Promise<User>;
5265
5308
  /**
5266
5309
  * Delete a user.
5267
5310
  *
@@ -5284,7 +5327,7 @@ declare class WebhooksResource extends BaseResource {
5284
5327
  * @param data - Webhook target creation data
5285
5328
  * @returns Created webhook target
5286
5329
  */
5287
- createTarget(data: WebhookTargetCreateRequest): Promise<WebhookTarget>;
5330
+ createTarget(data: WebhookTargetCreateRequest, options?: RequestOptions): Promise<WebhookTarget>;
5288
5331
  /**
5289
5332
  * List webhook targets.
5290
5333
  *
@@ -5306,7 +5349,7 @@ declare class WebhooksResource extends BaseResource {
5306
5349
  * @param data - Update data
5307
5350
  * @returns Updated webhook target
5308
5351
  */
5309
- updateTarget(targetId: string, data: WebhookTargetUpdateRequest): Promise<WebhookTarget>;
5352
+ updateTarget(targetId: string, data: WebhookTargetUpdateRequest, options?: RequestOptions): Promise<WebhookTarget>;
5310
5353
  /**
5311
5354
  * Delete a webhook target.
5312
5355
  *
@@ -5332,7 +5375,7 @@ declare class WebhooksResource extends BaseResource {
5332
5375
  *
5333
5376
  * @param eventId - Webhook event ID
5334
5377
  */
5335
- replayEvent(eventId: string): Promise<void>;
5378
+ replayEvent(eventId: string, options?: RequestOptions): Promise<void>;
5336
5379
  }
5337
5380
 
5338
5381
  /**
@@ -5470,7 +5513,7 @@ declare class SandboxResource extends BaseResource {
5470
5513
  * });
5471
5514
  * ```
5472
5515
  */
5473
- simulateInbound(data: SimulateInboundRequest): Promise<SimulationResponse>;
5516
+ simulateInbound(data: SimulateInboundRequest, options?: RequestOptions): Promise<SimulationResponse>;
5474
5517
  /**
5475
5518
  * Simulate an onboarding state transition.
5476
5519
  *
@@ -5511,7 +5554,7 @@ declare class SandboxResource extends BaseResource {
5511
5554
  * });
5512
5555
  * ```
5513
5556
  */
5514
- simulateOnboarding(data: SimulateOnboardingRequest): Promise<SimulateOnboardingResponse>;
5557
+ simulateOnboarding(data: SimulateOnboardingRequest, options?: RequestOptions): Promise<SimulateOnboardingResponse>;
5515
5558
  /**
5516
5559
  * Get detailed simulation status and callback history.
5517
5560
  *
@@ -5547,7 +5590,7 @@ declare class SandboxResource extends BaseResource {
5547
5590
  * console.log('New state:', result.new_state);
5548
5591
  * ```
5549
5592
  */
5550
- advanceSimulation(simulationId: string, data?: AdvanceSimulationRequest): Promise<AdvanceSimulationResult>;
5593
+ advanceSimulation(simulationId: string, data?: AdvanceSimulationRequest, options?: RequestOptions): Promise<AdvanceSimulationResult>;
5551
5594
  /**
5552
5595
  * List available sandbox scenarios.
5553
5596
  *
@@ -5720,4 +5763,4 @@ declare class ConfigurationError extends Error {
5720
5763
  constructor(message: string);
5721
5764
  }
5722
5765
 
5723
- export { APIError, type Account, type AccountCreateRequest, type AccountListParams, type AccountUpdateRequest, AccountsResource, type Address, type AdvanceSimulationRequest, type AdvanceSimulationResult, type ApiKey, type ApiKeyCreateRequest, type ApiKeyResponse, ApiKeysResource, type Application, type ApplicationListItem, type ApplicationStatus, type ApplicationSubmissionRequest, ApplicationsResource, type AssociatedIndividual, type AssociatedIndividualRequest, AuthMode, type AutoTransaction, AutoTransactionsResource, type AverageMonthlyRevenue, type BusinessApplicationCreateRequest, type BusinessPurposeOfAccount, type BusinessSourceOfFunds, ConfigurationError, type Country, type CryptoDestination, type CryptoDestinationRequest, type CursorExtractor, type Customer, type CustomerCreateRequest, type CustomerCreateResponse, type CustomerListParams, CustomersResource, DEFAULT_RETRY_POLICY, DakotaClient, type DakotaClientConfig, type Destination, type DestinationRequest, DestinationsResource, type EmploymentStatus, Environment, type Event, type EventListParams, type EventType, EventsResource, type ExpectedMonthlyDeposit, type Family, type FiatUSDestination, type FiatUSDestinationRequest, type IndividualRequest, type IndividualRole, type IndividualTitle, InfoResource, type KSUID, type KybStatus, type LegalStructure, type ListParams, type Logger, type Meta, type Network, type NetworkId, type OfframpAccount, type OfframpAccountCreateRequest, type OneOffTransaction, type OneOffTransactionRequest, type OnrampAccount, type OnrampAccountCreateRequest, type PageFetcher, PaginatedIterator, type PaginatedResponse, type PaginationMeta, type PaginationParams, type PaymentCapability, type PersonName, PoliciesResource, type Policy, type PolicyCreateRequest, type PolicyRule, type PolicyRuleCreateRequest, type Recipient, type RecipientRequest, type RecipientUpdateRequest, RecipientsResource, type ResolvedConfig, type RetryPolicy, SandboxResource, type SandboxScenario, type Signer, type SignerCreateRequest, type SignerGroup, type SignerGroupCreateRequest, SignerGroupsResource, SignersResource, type SimulateInboundRequest, type SimulateInboundType, type SimulateOnboardingRequest, type SimulateOnboardingResponse, type SimulateOnboardingType, type SimulationCallbackRecord, type SimulationInspection, type SimulationResponse, type SwapAccount, type SwapAccountCreateRequest, type TransactionListParams, type TransactionStatus, TransactionsResource, TransportError, type User, type UserCreateRequest, type UserUpdateRequest, UsersResource, type Wallet, type WalletBalance, type WalletBalances, type WalletCreateRequest, type WalletTransaction, type WalletTransactionRequest, WalletsResource, type WebhookEvent, type WebhookTarget, type WebhookTargetCreateRequest, type WebhookTargetUpdateRequest, WebhooksResource, consoleLogger, getEnvironmentURL, noopLogger, paginate };
5766
+ export { APIError, type Account, type AccountCreateRequest, type AccountListParams, type AccountUpdateRequest, AccountsResource, type Address, type AdvanceSimulationRequest, type AdvanceSimulationResult, type ApiKey, type ApiKeyCreateRequest, type ApiKeyResponse, ApiKeysResource, type Application, type ApplicationListItem, type ApplicationStatus, type ApplicationSubmissionRequest, ApplicationsResource, type AssociatedIndividual, type AssociatedIndividualRequest, AuthMode, type AutoTransaction, AutoTransactionsResource, type AverageMonthlyRevenue, type BusinessApplicationCreateRequest, type BusinessPurposeOfAccount, type BusinessSourceOfFunds, ConfigurationError, type Country, type CryptoDestination, type CryptoDestinationRequest, type CursorExtractor, type Customer, type CustomerCreateRequest, type CustomerCreateResponse, type CustomerListParams, CustomersResource, DEFAULT_RETRY_POLICY, DakotaClient, type DakotaClientConfig, type Destination, type DestinationRequest, DestinationsResource, type EmploymentStatus, Environment, type Event, type EventListParams, type EventType, EventsResource, type ExpectedMonthlyDeposit, type Family, type FiatUSDestination, type FiatUSDestinationRequest, type IndividualRequest, type IndividualRole, type IndividualTitle, InfoResource, type KSUID, type KybStatus, type LegalStructure, type ListParams, type Logger, type Meta, type Network, type NetworkId, type OfframpAccount, type OfframpAccountCreateRequest, type OneOffTransaction, type OneOffTransactionRequest, type OnrampAccount, type OnrampAccountCreateRequest, type PageFetcher, PaginatedIterator, type PaginatedResponse, type PaginationMeta, type PaginationParams, type PaymentCapability, type PersonName, PoliciesResource, type Policy, type PolicyCreateRequest, type PolicyRule, type PolicyRuleCreateRequest, type Recipient, type RecipientRequest, type RecipientUpdateRequest, RecipientsResource, type RequestOptions, type ResolvedConfig, type RetryPolicy, SandboxResource, type SandboxScenario, type Signer, type SignerCreateRequest, type SignerGroup, type SignerGroupCreateRequest, SignerGroupsResource, SignersResource, type SimulateInboundRequest, type SimulateInboundType, type SimulateOnboardingRequest, type SimulateOnboardingResponse, type SimulateOnboardingType, type SimulationCallbackRecord, type SimulationInspection, type SimulationResponse, type SwapAccount, type SwapAccountCreateRequest, type TransactionListParams, type TransactionStatus, TransactionsResource, TransportError, type User, type UserCreateRequest, type UserUpdateRequest, UsersResource, type Wallet, type WalletBalance, type WalletBalances, type WalletCreateRequest, type WalletTransaction, type WalletTransactionRequest, WalletsResource, type WebhookEvent, type WebhookTarget, type WebhookTargetCreateRequest, type WebhookTargetUpdateRequest, WebhooksResource, consoleLogger, getEnvironmentURL, noopLogger, paginate };