@delopay/sdk 0.400.0 → 0.403.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.cjs CHANGED
@@ -543,6 +543,23 @@ var ApiKeys = class {
543
543
  async list(merchantId) {
544
544
  return this.request("GET", `/api-keys/${encodeURIComponent(merchantId)}/list`);
545
545
  }
546
+ /**
547
+ * The key templates the caller may use, with the values each prefills.
548
+ * Create the key with `create`; the template itself is not sent.
549
+ * `GET /api-keys/{merchantId}/templates`
550
+ *
551
+ * @param merchantId - The merchant account ID.
552
+ * @returns The templates, each limited to what the caller may grant.
553
+ *
554
+ * @example
555
+ * ```typescript
556
+ * const { templates } = await delopay.apiKeys.listTemplates('merch_123');
557
+ * const readOnly = templates.find((t) => t.id === 'ai_agent_read_only');
558
+ * ```
559
+ */
560
+ async listTemplates(merchantId) {
561
+ return this.request("GET", `/api-keys/${encodeURIComponent(merchantId)}/templates`);
562
+ }
546
563
  // --- Profile-scoped (shop-level) API keys ---------------------------------
547
564
  //
548
565
  // JWT-authenticated routes under `/account/{merchantId}/profile/api-keys`.
@@ -7880,6 +7897,17 @@ var PayoutDestinations = class {
7880
7897
  body: { user_id: userId }
7881
7898
  });
7882
7899
  }
7900
+ /**
7901
+ * The merchant's revenue-share holders, each with the team member it is
7902
+ * linked to, if any.
7903
+ *
7904
+ * `GET /revenue-shares/holders?merchant_id={merchantId}`
7905
+ */
7906
+ async listRevenueShareHolders(merchantId) {
7907
+ return this.request("GET", "/revenue-shares/holders", {
7908
+ query: { merchant_id: merchantId }
7909
+ });
7910
+ }
7883
7911
  /**
7884
7912
  * The share terms of the holders linked to the caller. Read-only.
7885
7913
  *