@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/{chunk-AZRXI3FB.js → chunk-JJE7PY3K.js} +29 -1
- package/dist/chunk-JJE7PY3K.js.map +1 -0
- package/dist/{index-SqGJT_8j.d.cts → index-Dcy3Pwsx.d.cts} +122 -13
- package/dist/{index-SqGJT_8j.d.ts → index-Dcy3Pwsx.d.ts} +122 -13
- package/dist/index.cjs +28 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +52 -5
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +137 -7
- package/dist/internal.d.ts +137 -7
- package/dist/internal.js +25 -6
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-AZRXI3FB.js.map +0 -1
|
@@ -217,6 +217,23 @@ var ApiKeys = class {
|
|
|
217
217
|
async list(merchantId) {
|
|
218
218
|
return this.request("GET", `/api-keys/${encodeURIComponent(merchantId)}/list`);
|
|
219
219
|
}
|
|
220
|
+
/**
|
|
221
|
+
* The key templates the caller may use, with the values each prefills.
|
|
222
|
+
* Create the key with `create`; the template itself is not sent.
|
|
223
|
+
* `GET /api-keys/{merchantId}/templates`
|
|
224
|
+
*
|
|
225
|
+
* @param merchantId - The merchant account ID.
|
|
226
|
+
* @returns The templates, each limited to what the caller may grant.
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* ```typescript
|
|
230
|
+
* const { templates } = await delopay.apiKeys.listTemplates('merch_123');
|
|
231
|
+
* const readOnly = templates.find((t) => t.id === 'ai_agent_read_only');
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
async listTemplates(merchantId) {
|
|
235
|
+
return this.request("GET", `/api-keys/${encodeURIComponent(merchantId)}/templates`);
|
|
236
|
+
}
|
|
220
237
|
// --- Profile-scoped (shop-level) API keys ---------------------------------
|
|
221
238
|
//
|
|
222
239
|
// JWT-authenticated routes under `/account/{merchantId}/profile/api-keys`.
|
|
@@ -7554,6 +7571,17 @@ var PayoutDestinations = class {
|
|
|
7554
7571
|
body: { user_id: userId }
|
|
7555
7572
|
});
|
|
7556
7573
|
}
|
|
7574
|
+
/**
|
|
7575
|
+
* The merchant's revenue-share holders, each with the team member it is
|
|
7576
|
+
* linked to, if any.
|
|
7577
|
+
*
|
|
7578
|
+
* `GET /revenue-shares/holders?merchant_id={merchantId}`
|
|
7579
|
+
*/
|
|
7580
|
+
async listRevenueShareHolders(merchantId) {
|
|
7581
|
+
return this.request("GET", "/revenue-shares/holders", {
|
|
7582
|
+
query: { merchant_id: merchantId }
|
|
7583
|
+
});
|
|
7584
|
+
}
|
|
7557
7585
|
/**
|
|
7558
7586
|
* The share terms of the holders linked to the caller. Read-only.
|
|
7559
7587
|
*
|
|
@@ -17956,4 +17984,4 @@ export {
|
|
|
17956
17984
|
decodeNativePanes,
|
|
17957
17985
|
encodeNativePanes
|
|
17958
17986
|
};
|
|
17959
|
-
//# sourceMappingURL=chunk-
|
|
17987
|
+
//# sourceMappingURL=chunk-JJE7PY3K.js.map
|