@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/index.cjs
CHANGED
|
@@ -1177,13 +1177,9 @@ var Payments = class {
|
|
|
1177
1177
|
async listByFilter(params) {
|
|
1178
1178
|
return this.request("POST", "/payments/list", { body: params });
|
|
1179
1179
|
}
|
|
1180
|
-
/** Get payment filter options. `
|
|
1180
|
+
/** Get payment filter options. `GET /payments/filter` */
|
|
1181
1181
|
async getFilters(params) {
|
|
1182
|
-
return this.request("
|
|
1183
|
-
}
|
|
1184
|
-
/** Get payment filters (v2). `GET /payments/v2/filter` */
|
|
1185
|
-
async getFiltersV2(params) {
|
|
1186
|
-
return this.request("GET", "/payments/v2/filter", { query: params });
|
|
1182
|
+
return this.request("GET", "/payments/filter", { query: params });
|
|
1187
1183
|
}
|
|
1188
1184
|
/** Get payment aggregates. `GET /payments/aggregate` */
|
|
1189
1185
|
async aggregate(params) {
|
|
@@ -1575,13 +1571,9 @@ var Refunds = class {
|
|
|
1575
1571
|
async listByProfile(params) {
|
|
1576
1572
|
return this.request("POST", "/refunds/profile/list", { body: params });
|
|
1577
1573
|
}
|
|
1578
|
-
/** Get refund filter options. `
|
|
1574
|
+
/** Get refund filter options. `GET /refunds/filter` */
|
|
1579
1575
|
async getFilters(params) {
|
|
1580
|
-
return this.request("
|
|
1581
|
-
}
|
|
1582
|
-
/** Get refund filters (v2). `GET /refunds/v2/filter` */
|
|
1583
|
-
async getFiltersV2(params) {
|
|
1584
|
-
return this.request("GET", "/refunds/v2/filter", { query: params });
|
|
1576
|
+
return this.request("GET", "/refunds/filter", { query: params });
|
|
1585
1577
|
}
|
|
1586
1578
|
/** Get refund aggregates. `GET /refunds/aggregate` */
|
|
1587
1579
|
async aggregate(params) {
|
|
@@ -1755,7 +1747,7 @@ var Search = class {
|
|
|
1755
1747
|
}
|
|
1756
1748
|
/**
|
|
1757
1749
|
* Search every supported index for `query`.
|
|
1758
|
-
* `POST /analytics/
|
|
1750
|
+
* `POST /analytics/search`
|
|
1759
1751
|
*
|
|
1760
1752
|
* @example
|
|
1761
1753
|
* ```typescript
|
|
@@ -1764,7 +1756,7 @@ var Search = class {
|
|
|
1764
1756
|
* ```
|
|
1765
1757
|
*/
|
|
1766
1758
|
async global(params, options) {
|
|
1767
|
-
return this.request("POST", "/analytics/
|
|
1759
|
+
return this.request("POST", "/analytics/search", {
|
|
1768
1760
|
body: params,
|
|
1769
1761
|
...options?.signal ? { signal: options.signal } : {}
|
|
1770
1762
|
});
|
|
@@ -2150,9 +2142,6 @@ var Users = class {
|
|
|
2150
2142
|
async verifyPhoneOtp(params) {
|
|
2151
2143
|
return this.request("POST", "/user/phone/verify-otp", { body: params });
|
|
2152
2144
|
}
|
|
2153
|
-
async getRoleFromToken() {
|
|
2154
|
-
return this.request("GET", "/user/role");
|
|
2155
|
-
}
|
|
2156
2145
|
async listRoles() {
|
|
2157
2146
|
return this.request("GET", "/user/role/list");
|
|
2158
2147
|
}
|
|
@@ -2165,11 +2154,6 @@ var Users = class {
|
|
|
2165
2154
|
async deleteUserRole(params) {
|
|
2166
2155
|
return this.request("DELETE", "/user/user/delete", { body: params });
|
|
2167
2156
|
}
|
|
2168
|
-
// --- Advanced methods (Task 4.7) ---
|
|
2169
|
-
/** Sign in (v2). `POST /user/v2/signin` */
|
|
2170
|
-
async signInV2(params) {
|
|
2171
|
-
return this.request("POST", "/user/v2/signin", { body: params });
|
|
2172
|
-
}
|
|
2173
2157
|
/** Sign in via OIDC. `POST /user/oidc` */
|
|
2174
2158
|
async signInOidc(params) {
|
|
2175
2159
|
return this.request("POST", "/user/oidc", { body: params });
|
|
@@ -2186,10 +2170,6 @@ var Users = class {
|
|
|
2186
2170
|
async check2faStatus() {
|
|
2187
2171
|
return this.request("GET", "/user/2fa");
|
|
2188
2172
|
}
|
|
2189
|
-
/** Check 2FA status (v2). `GET /user/2fa/v2` */
|
|
2190
|
-
async check2faStatusV2() {
|
|
2191
|
-
return this.request("GET", "/user/2fa/v2");
|
|
2192
|
-
}
|
|
2193
2173
|
/**
|
|
2194
2174
|
* Finish first-time TOTP setup: commit the secret generated by `beginTotp`
|
|
2195
2175
|
* against a 6-digit code from the user's authenticator app.
|
|
@@ -2234,37 +2214,21 @@ var Users = class {
|
|
|
2234
2214
|
async selectAuth(params) {
|
|
2235
2215
|
return this.request("POST", "/user/auth/select", { body: params });
|
|
2236
2216
|
}
|
|
2237
|
-
/** List user roles (v2). `POST /user/user/v2` */
|
|
2238
|
-
async listUserRolesV2(params) {
|
|
2239
|
-
return this.request("POST", "/user/user/v2", { body: params });
|
|
2240
|
-
}
|
|
2241
2217
|
/** List users in lineage. `GET /user/user/list` */
|
|
2242
2218
|
async listUsersInLineage() {
|
|
2243
2219
|
return this.request("GET", "/user/user/list");
|
|
2244
2220
|
}
|
|
2245
|
-
/** List users in lineage (v2). `GET /user/user/v2/list` */
|
|
2246
|
-
async listUsersInLineageV2() {
|
|
2247
|
-
return this.request("GET", "/user/user/v2/list");
|
|
2248
|
-
}
|
|
2249
|
-
/** Accept invitation (v2). `POST /user/user/invite/accept/v2` */
|
|
2250
|
-
async acceptInvitationV2(params) {
|
|
2251
|
-
return this.request("POST", "/user/user/invite/accept/v2", { body: params });
|
|
2252
|
-
}
|
|
2253
2221
|
/** Resend invite. `POST /user/user/resend_invite` */
|
|
2254
2222
|
async resendInvite(params) {
|
|
2255
2223
|
return this.request("POST", "/user/user/resend_invite", { body: params });
|
|
2256
2224
|
}
|
|
2257
|
-
/**
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
async
|
|
2263
|
-
return this.request("GET", "/user/role
|
|
2264
|
-
}
|
|
2265
|
-
/** List roles (v2). `GET /user/role/v2/list` */
|
|
2266
|
-
async listRolesV2() {
|
|
2267
|
-
return this.request("GET", "/user/role/v2/list");
|
|
2225
|
+
/**
|
|
2226
|
+
* Get the caller's parent permission groups + scopes.
|
|
2227
|
+
*
|
|
2228
|
+
* `GET /user/role`
|
|
2229
|
+
*/
|
|
2230
|
+
async getRolePermissions() {
|
|
2231
|
+
return this.request("GET", "/user/role");
|
|
2268
2232
|
}
|
|
2269
2233
|
/**
|
|
2270
2234
|
* List invitable roles. `GET /user/role/list/invite`
|
|
@@ -2421,30 +2385,30 @@ var AnalyticsDomain = class {
|
|
|
2421
2385
|
this.request = request;
|
|
2422
2386
|
this.domain = domain;
|
|
2423
2387
|
}
|
|
2424
|
-
/** Get metrics. `POST /analytics/
|
|
2388
|
+
/** Get metrics. `POST /analytics/metrics/{domain}` */
|
|
2425
2389
|
async metrics(params, scope) {
|
|
2426
|
-
const prefix = scope ? `/analytics
|
|
2390
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
|
|
2427
2391
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}`, {
|
|
2428
2392
|
body: [params]
|
|
2429
2393
|
});
|
|
2430
2394
|
}
|
|
2431
|
-
/** Get filters. `POST /analytics/
|
|
2395
|
+
/** Get filters. `POST /analytics/filters/{domain}` */
|
|
2432
2396
|
async filters(params, scope) {
|
|
2433
|
-
const prefix = scope ? `/analytics
|
|
2397
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
|
|
2434
2398
|
return this.request("POST", `${prefix}/filters/${encodeURIComponent(this.domain)}`, {
|
|
2435
2399
|
body: params
|
|
2436
2400
|
});
|
|
2437
2401
|
}
|
|
2438
|
-
/** Generate report. `POST /analytics/
|
|
2402
|
+
/** Generate report. `POST /analytics/report/{domain}` */
|
|
2439
2403
|
async report(params, scope) {
|
|
2440
|
-
const prefix = scope ? `/analytics
|
|
2404
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
|
|
2441
2405
|
return this.request("POST", `${prefix}/report/${encodeURIComponent(this.domain)}`, {
|
|
2442
2406
|
body: params
|
|
2443
2407
|
});
|
|
2444
2408
|
}
|
|
2445
|
-
/** Sankey chart data. `POST /analytics/
|
|
2409
|
+
/** Sankey chart data. `POST /analytics/metrics/{domain}/sankey` */
|
|
2446
2410
|
async sankey(params, scope) {
|
|
2447
|
-
const prefix = scope ? `/analytics
|
|
2411
|
+
const prefix = scope ? `/analytics/${scope}` : "/analytics/v1";
|
|
2448
2412
|
return this.request("POST", `${prefix}/metrics/${encodeURIComponent(this.domain)}/sankey`, {
|
|
2449
2413
|
body: params
|
|
2450
2414
|
});
|
|
@@ -2462,39 +2426,39 @@ var Analytics = class {
|
|
|
2462
2426
|
this.apiEvents = new AnalyticsDomain(request, "api_events");
|
|
2463
2427
|
this.routing = new AnalyticsDomain(request, "routing");
|
|
2464
2428
|
}
|
|
2465
|
-
/** Global search. `POST /analytics/
|
|
2429
|
+
/** Global search. `POST /analytics/search` */
|
|
2466
2430
|
async search(params) {
|
|
2467
|
-
return this.request("POST", "/analytics/
|
|
2431
|
+
return this.request("POST", "/analytics/search", { body: params });
|
|
2468
2432
|
}
|
|
2469
|
-
/** Domain-specific search. `POST /analytics/
|
|
2433
|
+
/** Domain-specific search. `POST /analytics/search/{domain}` */
|
|
2470
2434
|
async searchDomain(domain, params) {
|
|
2471
|
-
return this.request("POST", `/analytics/
|
|
2435
|
+
return this.request("POST", `/analytics/search/${encodeURIComponent(domain)}`, {
|
|
2472
2436
|
body: params
|
|
2473
2437
|
});
|
|
2474
2438
|
}
|
|
2475
|
-
/** Get analytics info. `GET /analytics/
|
|
2439
|
+
/** Get analytics info. `GET /analytics/{domain}/info` */
|
|
2476
2440
|
async getInfo(domain) {
|
|
2477
|
-
return this.request("GET", `/analytics
|
|
2441
|
+
return this.request("GET", `/analytics/${encodeURIComponent(domain)}/info`);
|
|
2478
2442
|
}
|
|
2479
|
-
/** Get API event logs. `GET /analytics/
|
|
2443
|
+
/** Get API event logs. `GET /analytics/api_event_logs` */
|
|
2480
2444
|
async apiEventLogs(params) {
|
|
2481
|
-
return this.request("GET", "/analytics/
|
|
2445
|
+
return this.request("GET", "/analytics/api_event_logs", { query: params });
|
|
2482
2446
|
}
|
|
2483
|
-
/** Get SDK event logs. `POST /analytics/
|
|
2447
|
+
/** Get SDK event logs. `POST /analytics/sdk_event_logs` */
|
|
2484
2448
|
async sdkEventLogs(params) {
|
|
2485
|
-
return this.request("POST", "/analytics/
|
|
2449
|
+
return this.request("POST", "/analytics/sdk_event_logs", { body: params });
|
|
2486
2450
|
}
|
|
2487
|
-
/** Get connector event logs. `GET /analytics/
|
|
2451
|
+
/** Get connector event logs. `GET /analytics/connector_event_logs` */
|
|
2488
2452
|
async connectorEventLogs(params) {
|
|
2489
|
-
return this.request("GET", "/analytics/
|
|
2453
|
+
return this.request("GET", "/analytics/connector_event_logs", { query: params });
|
|
2490
2454
|
}
|
|
2491
|
-
/** Get routing event logs. `GET /analytics/
|
|
2455
|
+
/** Get routing event logs. `GET /analytics/routing_event_logs` */
|
|
2492
2456
|
async routingEventLogs(params) {
|
|
2493
|
-
return this.request("GET", "/analytics/
|
|
2457
|
+
return this.request("GET", "/analytics/routing_event_logs", { query: params });
|
|
2494
2458
|
}
|
|
2495
|
-
/** Get outgoing webhook event logs. `GET /analytics/
|
|
2459
|
+
/** Get outgoing webhook event logs. `GET /analytics/outgoing_webhook_event_logs` */
|
|
2496
2460
|
async outgoingWebhookEventLogs(params) {
|
|
2497
|
-
return this.request("GET", "/analytics/
|
|
2461
|
+
return this.request("GET", "/analytics/outgoing_webhook_event_logs", { query: params });
|
|
2498
2462
|
}
|
|
2499
2463
|
};
|
|
2500
2464
|
|