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