@dakota-xyz/ts-sdk 1.1.0 → 1.2.0

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/index.mjs CHANGED
@@ -716,6 +716,36 @@ var CustomersResource = class extends BaseResource {
716
716
  });
717
717
  return response.data;
718
718
  }
719
+ /**
720
+ * Bulk-import customers from Sumsub share tokens.
721
+ *
722
+ * Exchanges one or more Sumsub share tokens for Dakota customers + applications.
723
+ * The response surfaces per-token results — individual tokens can fail while
724
+ * others succeed.
725
+ *
726
+ * @param data - Bulk-import request containing the share tokens to redeem
727
+ * @param options - Request options (e.g., custom idempotency key)
728
+ * @returns Bulk-import summary with per-token results
729
+ *
730
+ * @example
731
+ * ```typescript
732
+ * const result = await client.customers.bulkImportFromSumsubTokens({
733
+ * tokens: ['_act-sbx-jwt-...', '_act-sbx-jwt-...'],
734
+ * });
735
+ * console.log(`Imported ${result.succeeded}/${result.total}`);
736
+ * for (const r of result.results ?? []) {
737
+ * if (!r.success) console.error(r.name, r.error);
738
+ * }
739
+ * ```
740
+ */
741
+ async bulkImportFromSumsubTokens(data, options) {
742
+ return this.transport.request({
743
+ method: "POST",
744
+ path: "/customers/bulk-import-sumsub-tokens",
745
+ body: data,
746
+ idempotencyKey: options?.idempotencyKey
747
+ });
748
+ }
719
749
  };
720
750
 
721
751
  // src/client/resources/recipients.ts
@@ -2402,6 +2432,27 @@ var SelfServeResource = class extends BaseResource {
2402
2432
  path: "/self-serve/credits/tiers"
2403
2433
  });
2404
2434
  }
2435
+ /**
2436
+ * Get the self-serve client's pricing config (fee schedule).
2437
+ *
2438
+ * Returns the caller's current `ClientPricingConfig` — transfer/ACH/wire/SEPA/SWIFT/KYC/KYB
2439
+ * fees plus the monthly minimum. Self-serve clients only.
2440
+ *
2441
+ * @returns The current pricing configuration
2442
+ *
2443
+ * @example
2444
+ * ```typescript
2445
+ * const pricing = await client.selfServe.getPricing();
2446
+ * console.log(`ACH fee: ${pricing.achFeeCents} cents`);
2447
+ * console.log(`Wire fee: ${pricing.wireFeeCents} cents`);
2448
+ * ```
2449
+ */
2450
+ async getPricing() {
2451
+ return this.transport.request({
2452
+ method: "GET",
2453
+ path: "/self-serve/credits/pricing"
2454
+ });
2455
+ }
2405
2456
  };
2406
2457
 
2407
2458
  // src/client/client.ts