@delopay/sdk 0.25.0 → 0.26.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-64E3LG2C.js → chunk-XK6RSV5Y.js} +38 -74
- package/dist/chunk-XK6RSV5Y.js.map +1 -0
- package/dist/index.cjs +37 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -39
- package/dist/index.d.ts +60 -39
- package/dist/index.js +1 -1
- package/dist/internal.cjs +37 -73
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +10 -1
- package/dist/internal.d.ts +10 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-64E3LG2C.js.map +0 -1
package/dist/internal.cjs
CHANGED
|
@@ -1188,13 +1188,9 @@ var Payments = class {
|
|
|
1188
1188
|
async listByFilter(params) {
|
|
1189
1189
|
return this.request("POST", "/payments/list", { body: params });
|
|
1190
1190
|
}
|
|
1191
|
-
/** Get payment filter options. `
|
|
1191
|
+
/** Get payment filter options. `GET /payments/filter` */
|
|
1192
1192
|
async getFilters(params) {
|
|
1193
|
-
return this.request("
|
|
1194
|
-
}
|
|
1195
|
-
/** Get payment filters (v2). `GET /payments/v2/filter` */
|
|
1196
|
-
async getFiltersV2(params) {
|
|
1197
|
-
return this.request("GET", "/payments/v2/filter", { query: params });
|
|
1193
|
+
return this.request("GET", "/payments/filter", { query: params });
|
|
1198
1194
|
}
|
|
1199
1195
|
/** Get payment aggregates. `GET /payments/aggregate` */
|
|
1200
1196
|
async aggregate(params) {
|
|
@@ -1586,13 +1582,9 @@ var Refunds = class {
|
|
|
1586
1582
|
async listByProfile(params) {
|
|
1587
1583
|
return this.request("POST", "/refunds/profile/list", { body: params });
|
|
1588
1584
|
}
|
|
1589
|
-
/** Get refund filter options. `
|
|
1585
|
+
/** Get refund filter options. `GET /refunds/filter` */
|
|
1590
1586
|
async getFilters(params) {
|
|
1591
|
-
return this.request("
|
|
1592
|
-
}
|
|
1593
|
-
/** Get refund filters (v2). `GET /refunds/v2/filter` */
|
|
1594
|
-
async getFiltersV2(params) {
|
|
1595
|
-
return this.request("GET", "/refunds/v2/filter", { query: params });
|
|
1587
|
+
return this.request("GET", "/refunds/filter", { query: params });
|
|
1596
1588
|
}
|
|
1597
1589
|
/** Get refund aggregates. `GET /refunds/aggregate` */
|
|
1598
1590
|
async aggregate(params) {
|
|
@@ -1766,7 +1758,7 @@ var Search = class {
|
|
|
1766
1758
|
}
|
|
1767
1759
|
/**
|
|
1768
1760
|
* Search every supported index for `query`.
|
|
1769
|
-
* `POST /analytics/
|
|
1761
|
+
* `POST /analytics/search`
|
|
1770
1762
|
*
|
|
1771
1763
|
* @example
|
|
1772
1764
|
* ```typescript
|
|
@@ -1775,7 +1767,7 @@ var Search = class {
|
|
|
1775
1767
|
* ```
|
|
1776
1768
|
*/
|
|
1777
1769
|
async global(params, options) {
|
|
1778
|
-
return this.request("POST", "/analytics/
|
|
1770
|
+
return this.request("POST", "/analytics/search", {
|
|
1779
1771
|
body: params,
|
|
1780
1772
|
...options?.signal ? { signal: options.signal } : {}
|
|
1781
1773
|
});
|
|
@@ -2161,9 +2153,6 @@ var Users = class {
|
|
|
2161
2153
|
async verifyPhoneOtp(params) {
|
|
2162
2154
|
return this.request("POST", "/user/phone/verify-otp", { body: params });
|
|
2163
2155
|
}
|
|
2164
|
-
async getRoleFromToken() {
|
|
2165
|
-
return this.request("GET", "/user/role");
|
|
2166
|
-
}
|
|
2167
2156
|
async listRoles() {
|
|
2168
2157
|
return this.request("GET", "/user/role/list");
|
|
2169
2158
|
}
|
|
@@ -2176,11 +2165,6 @@ var Users = class {
|
|
|
2176
2165
|
async deleteUserRole(params) {
|
|
2177
2166
|
return this.request("DELETE", "/user/user/delete", { body: params });
|
|
2178
2167
|
}
|
|
2179
|
-
// --- Advanced methods (Task 4.7) ---
|
|
2180
|
-
/** Sign in (v2). `POST /user/v2/signin` */
|
|
2181
|
-
async signInV2(params) {
|
|
2182
|
-
return this.request("POST", "/user/v2/signin", { body: params });
|
|
2183
|
-
}
|
|
2184
2168
|
/** Sign in via OIDC. `POST /user/oidc` */
|
|
2185
2169
|
async signInOidc(params) {
|
|
2186
2170
|
return this.request("POST", "/user/oidc", { body: params });
|
|
@@ -2197,10 +2181,6 @@ var Users = class {
|
|
|
2197
2181
|
async check2faStatus() {
|
|
2198
2182
|
return this.request("GET", "/user/2fa");
|
|
2199
2183
|
}
|
|
2200
|
-
/** Check 2FA status (v2). `GET /user/2fa/v2` */
|
|
2201
|
-
async check2faStatusV2() {
|
|
2202
|
-
return this.request("GET", "/user/2fa/v2");
|
|
2203
|
-
}
|
|
2204
2184
|
/**
|
|
2205
2185
|
* Finish first-time TOTP setup: commit the secret generated by `beginTotp`
|
|
2206
2186
|
* against a 6-digit code from the user's authenticator app.
|
|
@@ -2245,37 +2225,21 @@ var Users = class {
|
|
|
2245
2225
|
async selectAuth(params) {
|
|
2246
2226
|
return this.request("POST", "/user/auth/select", { body: params });
|
|
2247
2227
|
}
|
|
2248
|
-
/** List user roles (v2). `POST /user/user/v2` */
|
|
2249
|
-
async listUserRolesV2(params) {
|
|
2250
|
-
return this.request("POST", "/user/user/v2", { body: params });
|
|
2251
|
-
}
|
|
2252
2228
|
/** List users in lineage. `GET /user/user/list` */
|
|
2253
2229
|
async listUsersInLineage() {
|
|
2254
2230
|
return this.request("GET", "/user/user/list");
|
|
2255
2231
|
}
|
|
2256
|
-
/** List users in lineage (v2). `GET /user/user/v2/list` */
|
|
2257
|
-
async listUsersInLineageV2() {
|
|
2258
|
-
return this.request("GET", "/user/user/v2/list");
|
|
2259
|
-
}
|
|
2260
|
-
/** Accept invitation (v2). `POST /user/user/invite/accept/v2` */
|
|
2261
|
-
async acceptInvitationV2(params) {
|
|
2262
|
-
return this.request("POST", "/user/user/invite/accept/v2", { body: params });
|
|
2263
|
-
}
|
|
2264
2232
|
/** Resend invite. `POST /user/user/resend_invite` */
|
|
2265
2233
|
async resendInvite(params) {
|
|
2266
2234
|
return this.request("POST", "/user/user/resend_invite", { body: params });
|
|
2267
2235
|
}
|
|
2268
|
-
/**
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
async
|
|
2274
|
-
return this.request("GET", "/user/role
|
|
2275
|
-
}
|
|
2276
|
-
/** List roles (v2). `GET /user/role/v2/list` */
|
|
2277
|
-
async listRolesV2() {
|
|
2278
|
-
return this.request("GET", "/user/role/v2/list");
|
|
2236
|
+
/**
|
|
2237
|
+
* Get the caller's parent permission groups + scopes.
|
|
2238
|
+
*
|
|
2239
|
+
* `GET /user/role`
|
|
2240
|
+
*/
|
|
2241
|
+
async getRolePermissions() {
|
|
2242
|
+
return this.request("GET", "/user/role");
|
|
2279
2243
|
}
|
|
2280
2244
|
/**
|
|
2281
2245
|
* List invitable roles. `GET /user/role/list/invite`
|
|
@@ -2432,30 +2396,30 @@ var AnalyticsDomain = class {
|
|
|
2432
2396
|
this.request = request;
|
|
2433
2397
|
this.domain = domain;
|
|
2434
2398
|
}
|
|
2435
|
-
/** Get metrics. `POST /analytics/
|
|
2399
|
+
/** Get metrics. `POST /analytics/metrics/{domain}` */
|
|
2436
2400
|
async metrics(params, scope) {
|
|
2437
|
-
const prefix = scope ? `/analytics
|
|
2401
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
|
|
2438
2402
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}`, {
|
|
2439
2403
|
body: [params]
|
|
2440
2404
|
});
|
|
2441
2405
|
}
|
|
2442
|
-
/** Get filters. `POST /analytics/
|
|
2406
|
+
/** Get filters. `POST /analytics/filters/{domain}` */
|
|
2443
2407
|
async filters(params, scope) {
|
|
2444
|
-
const prefix = scope ? `/analytics
|
|
2408
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
|
|
2445
2409
|
return this.request("POST", `${prefix}/filters/${encodeURIComponent(this.domain)}`, {
|
|
2446
2410
|
body: params
|
|
2447
2411
|
});
|
|
2448
2412
|
}
|
|
2449
|
-
/** Generate report. `POST /analytics/
|
|
2413
|
+
/** Generate report. `POST /analytics/report/{domain}` */
|
|
2450
2414
|
async report(params, scope) {
|
|
2451
|
-
const prefix = scope ? `/analytics
|
|
2415
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
|
|
2452
2416
|
return this.request("POST", `${prefix}/report/${encodeURIComponent(this.domain)}`, {
|
|
2453
2417
|
body: params
|
|
2454
2418
|
});
|
|
2455
2419
|
}
|
|
2456
|
-
/** Sankey chart data. `POST /analytics/
|
|
2420
|
+
/** Sankey chart data. `POST /analytics/metrics/{domain}/sankey` */
|
|
2457
2421
|
async sankey(params, scope) {
|
|
2458
|
-
const prefix = scope ? `/analytics
|
|
2422
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
|
|
2459
2423
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}/sankey`, {
|
|
2460
2424
|
body: params
|
|
2461
2425
|
});
|
|
@@ -2473,39 +2437,39 @@ var Analytics = class {
|
|
|
2473
2437
|
this.apiEvents = new AnalyticsDomain(request, "api_events");
|
|
2474
2438
|
this.routing = new AnalyticsDomain(request, "routing");
|
|
2475
2439
|
}
|
|
2476
|
-
/** Global search. `POST /analytics/
|
|
2440
|
+
/** Global search. `POST /analytics/search` */
|
|
2477
2441
|
async search(params) {
|
|
2478
|
-
return this.request("POST", "/analytics/
|
|
2442
|
+
return this.request("POST", "/analytics/search", { body: params });
|
|
2479
2443
|
}
|
|
2480
|
-
/** Domain-specific search. `POST /analytics/
|
|
2444
|
+
/** Domain-specific search. `POST /analytics/search/{domain}` */
|
|
2481
2445
|
async searchDomain(domain, params) {
|
|
2482
|
-
return this.request("POST", `/analytics/
|
|
2446
|
+
return this.request("POST", `/analytics/search/${encodeURIComponent(domain)}`, {
|
|
2483
2447
|
body: params
|
|
2484
2448
|
});
|
|
2485
2449
|
}
|
|
2486
|
-
/** Get analytics info. `GET /analytics/
|
|
2450
|
+
/** Get analytics info. `GET /analytics/{domain}/info` */
|
|
2487
2451
|
async getInfo(domain) {
|
|
2488
|
-
return this.request("GET", `/analytics
|
|
2452
|
+
return this.request("GET", `/analytics/${encodeURIComponent(domain)}/info`);
|
|
2489
2453
|
}
|
|
2490
|
-
/** Get API event logs. `GET /analytics/
|
|
2454
|
+
/** Get API event logs. `GET /analytics/api_event_logs` */
|
|
2491
2455
|
async apiEventLogs(params) {
|
|
2492
|
-
return this.request("GET", "/analytics/
|
|
2456
|
+
return this.request("GET", "/analytics/api_event_logs", { query: params });
|
|
2493
2457
|
}
|
|
2494
|
-
/** Get SDK event logs. `POST /analytics/
|
|
2458
|
+
/** Get SDK event logs. `POST /analytics/sdk_event_logs` */
|
|
2495
2459
|
async sdkEventLogs(params) {
|
|
2496
|
-
return this.request("POST", "/analytics/
|
|
2460
|
+
return this.request("POST", "/analytics/sdk_event_logs", { body: params });
|
|
2497
2461
|
}
|
|
2498
|
-
/** Get connector event logs. `GET /analytics/
|
|
2462
|
+
/** Get connector event logs. `GET /analytics/connector_event_logs` */
|
|
2499
2463
|
async connectorEventLogs(params) {
|
|
2500
|
-
return this.request("GET", "/analytics/
|
|
2464
|
+
return this.request("GET", "/analytics/connector_event_logs", { query: params });
|
|
2501
2465
|
}
|
|
2502
|
-
/** Get routing event logs. `GET /analytics/
|
|
2466
|
+
/** Get routing event logs. `GET /analytics/routing_event_logs` */
|
|
2503
2467
|
async routingEventLogs(params) {
|
|
2504
|
-
return this.request("GET", "/analytics/
|
|
2468
|
+
return this.request("GET", "/analytics/routing_event_logs", { query: params });
|
|
2505
2469
|
}
|
|
2506
|
-
/** Get outgoing webhook event logs. `GET /analytics/
|
|
2470
|
+
/** Get outgoing webhook event logs. `GET /analytics/outgoing_webhook_event_logs` */
|
|
2507
2471
|
async outgoingWebhookEventLogs(params) {
|
|
2508
|
-
return this.request("GET", "/analytics/
|
|
2472
|
+
return this.request("GET", "/analytics/outgoing_webhook_event_logs", { query: params });
|
|
2509
2473
|
}
|
|
2510
2474
|
};
|
|
2511
2475
|
|