@delopay/sdk 0.29.0 → 0.30.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-4Q3E7XLP.js → chunk-INP6UXMJ.js} +24 -27
- package/dist/chunk-INP6UXMJ.js.map +1 -0
- package/dist/index.cjs +23 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -13
- package/dist/index.d.ts +10 -13
- package/dist/index.js +1 -1
- package/dist/internal.cjs +37 -40
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +4 -4
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +15 -15
- package/dist/internal.js.map +1 -1
- package/package.json +16 -16
- package/dist/chunk-4Q3E7XLP.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1948,9 +1948,10 @@ declare class Authentication {
|
|
|
1948
1948
|
create(params: AuthenticationCreateRequest): Promise<AuthenticationResponse>;
|
|
1949
1949
|
checkEligibility(authId: string): Promise<AuthenticationResponse>;
|
|
1950
1950
|
authenticate(authId: string, params: Record<string, unknown>): Promise<AuthenticationResponse>;
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1951
|
+
/** Sync authentication status. `POST /authentication/{merchantId}/{authId}/sync` */
|
|
1952
|
+
sync(merchantId: string, authId: string, params?: Record<string, unknown>): Promise<AuthenticationResponse>;
|
|
1953
|
+
/** Redirect after authentication. `POST /authentication/{merchantId}/{authId}/redirect` */
|
|
1954
|
+
redirect(merchantId: string, authId: string, params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
1954
1955
|
/** Enable authn methods token. `POST /authentication/{authId}/enabled-authn-methods-token` */
|
|
1955
1956
|
enabledAuthnMethodsToken(authId: string, params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
1956
1957
|
/** Submit eligibility check. `POST /authentication/{authId}/eligibility-check` */
|
|
@@ -2381,7 +2382,7 @@ declare class PaymentLinks {
|
|
|
2381
2382
|
list(params?: PaymentLinkListParams): Promise<PaymentLinkListResponse>;
|
|
2382
2383
|
/** Initiate (render) a payment link page. `GET /payment-link/{merchantId}/{paymentId}` */
|
|
2383
2384
|
initiate(merchantId: string, paymentId: string): Promise<Record<string, unknown>>;
|
|
2384
|
-
/** Get payment link status. `GET /payment-
|
|
2385
|
+
/** Get payment link status. `GET /payment-link/status/{merchantId}/{paymentId}` */
|
|
2385
2386
|
status(merchantId: string, paymentId: string): Promise<Record<string, unknown>>;
|
|
2386
2387
|
}
|
|
2387
2388
|
|
|
@@ -2677,10 +2678,10 @@ declare class Payouts {
|
|
|
2677
2678
|
listByProfile(params?: PayoutListParams): Promise<PayoutListResponse>;
|
|
2678
2679
|
/** List payouts by filter (POST body). `POST /payouts/list` */
|
|
2679
2680
|
listByFilter(params: Record<string, unknown>): Promise<PayoutListResponse>;
|
|
2680
|
-
/** Get payout filter options. `
|
|
2681
|
-
getFilters(params?: Record<string,
|
|
2682
|
-
/** Get payout filters (profile-scoped). `
|
|
2683
|
-
getFiltersByProfile(params?: Record<string,
|
|
2681
|
+
/** Get payout filter options. `GET /payouts/filter` */
|
|
2682
|
+
getFilters(params?: Record<string, string | number | undefined>): Promise<Record<string, unknown>>;
|
|
2683
|
+
/** Get payout filters (profile-scoped). `GET /payouts/profile/filter` */
|
|
2684
|
+
getFiltersByProfile(params?: Record<string, string | number | undefined>): Promise<Record<string, unknown>>;
|
|
2684
2685
|
/** Get payout aggregates. `GET /payouts/aggregate` */
|
|
2685
2686
|
aggregate(params?: Record<string, string | number | undefined>): Promise<Record<string, unknown>>;
|
|
2686
2687
|
/** Get payout aggregates (profile-scoped). `GET /payouts/profile/aggregate` */
|
|
@@ -3272,7 +3273,7 @@ declare class Users {
|
|
|
3272
3273
|
listUsersInLineage(params?: {
|
|
3273
3274
|
entity_type?: string;
|
|
3274
3275
|
}): Promise<Record<string, unknown>[]>;
|
|
3275
|
-
/** Resend invite. `POST /user/
|
|
3276
|
+
/** Resend invite. `POST /user/resend-invite` */
|
|
3276
3277
|
resendInvite(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
3277
3278
|
/**
|
|
3278
3279
|
* Get the caller's parent permission groups + scopes.
|
|
@@ -3290,10 +3291,6 @@ declare class Users {
|
|
|
3290
3291
|
listInvitableRoles(params?: ListInvitableRolesParams): Promise<Record<string, unknown>[]>;
|
|
3291
3292
|
/** List updatable roles. `GET /user/role/list/update` */
|
|
3292
3293
|
listUpdatableRoles(): Promise<Record<string, unknown>[]>;
|
|
3293
|
-
/** Get permission info. `GET /user/permission-info` */
|
|
3294
|
-
getPermissionInfo(): Promise<Record<string, unknown>>;
|
|
3295
|
-
/** Get module list. `GET /user/module/list` */
|
|
3296
|
-
getModuleList(): Promise<Record<string, unknown>[]>;
|
|
3297
3294
|
/** Get parent list. `GET /user/parent/list` */
|
|
3298
3295
|
getParentList(): Promise<Record<string, unknown>[]>;
|
|
3299
3296
|
/** Create a role. `POST /user/role` */
|
package/dist/index.d.ts
CHANGED
|
@@ -1948,9 +1948,10 @@ declare class Authentication {
|
|
|
1948
1948
|
create(params: AuthenticationCreateRequest): Promise<AuthenticationResponse>;
|
|
1949
1949
|
checkEligibility(authId: string): Promise<AuthenticationResponse>;
|
|
1950
1950
|
authenticate(authId: string, params: Record<string, unknown>): Promise<AuthenticationResponse>;
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1951
|
+
/** Sync authentication status. `POST /authentication/{merchantId}/{authId}/sync` */
|
|
1952
|
+
sync(merchantId: string, authId: string, params?: Record<string, unknown>): Promise<AuthenticationResponse>;
|
|
1953
|
+
/** Redirect after authentication. `POST /authentication/{merchantId}/{authId}/redirect` */
|
|
1954
|
+
redirect(merchantId: string, authId: string, params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
1954
1955
|
/** Enable authn methods token. `POST /authentication/{authId}/enabled-authn-methods-token` */
|
|
1955
1956
|
enabledAuthnMethodsToken(authId: string, params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
1956
1957
|
/** Submit eligibility check. `POST /authentication/{authId}/eligibility-check` */
|
|
@@ -2381,7 +2382,7 @@ declare class PaymentLinks {
|
|
|
2381
2382
|
list(params?: PaymentLinkListParams): Promise<PaymentLinkListResponse>;
|
|
2382
2383
|
/** Initiate (render) a payment link page. `GET /payment-link/{merchantId}/{paymentId}` */
|
|
2383
2384
|
initiate(merchantId: string, paymentId: string): Promise<Record<string, unknown>>;
|
|
2384
|
-
/** Get payment link status. `GET /payment-
|
|
2385
|
+
/** Get payment link status. `GET /payment-link/status/{merchantId}/{paymentId}` */
|
|
2385
2386
|
status(merchantId: string, paymentId: string): Promise<Record<string, unknown>>;
|
|
2386
2387
|
}
|
|
2387
2388
|
|
|
@@ -2677,10 +2678,10 @@ declare class Payouts {
|
|
|
2677
2678
|
listByProfile(params?: PayoutListParams): Promise<PayoutListResponse>;
|
|
2678
2679
|
/** List payouts by filter (POST body). `POST /payouts/list` */
|
|
2679
2680
|
listByFilter(params: Record<string, unknown>): Promise<PayoutListResponse>;
|
|
2680
|
-
/** Get payout filter options. `
|
|
2681
|
-
getFilters(params?: Record<string,
|
|
2682
|
-
/** Get payout filters (profile-scoped). `
|
|
2683
|
-
getFiltersByProfile(params?: Record<string,
|
|
2681
|
+
/** Get payout filter options. `GET /payouts/filter` */
|
|
2682
|
+
getFilters(params?: Record<string, string | number | undefined>): Promise<Record<string, unknown>>;
|
|
2683
|
+
/** Get payout filters (profile-scoped). `GET /payouts/profile/filter` */
|
|
2684
|
+
getFiltersByProfile(params?: Record<string, string | number | undefined>): Promise<Record<string, unknown>>;
|
|
2684
2685
|
/** Get payout aggregates. `GET /payouts/aggregate` */
|
|
2685
2686
|
aggregate(params?: Record<string, string | number | undefined>): Promise<Record<string, unknown>>;
|
|
2686
2687
|
/** Get payout aggregates (profile-scoped). `GET /payouts/profile/aggregate` */
|
|
@@ -3272,7 +3273,7 @@ declare class Users {
|
|
|
3272
3273
|
listUsersInLineage(params?: {
|
|
3273
3274
|
entity_type?: string;
|
|
3274
3275
|
}): Promise<Record<string, unknown>[]>;
|
|
3275
|
-
/** Resend invite. `POST /user/
|
|
3276
|
+
/** Resend invite. `POST /user/resend-invite` */
|
|
3276
3277
|
resendInvite(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
3277
3278
|
/**
|
|
3278
3279
|
* Get the caller's parent permission groups + scopes.
|
|
@@ -3290,10 +3291,6 @@ declare class Users {
|
|
|
3290
3291
|
listInvitableRoles(params?: ListInvitableRolesParams): Promise<Record<string, unknown>[]>;
|
|
3291
3292
|
/** List updatable roles. `GET /user/role/list/update` */
|
|
3292
3293
|
listUpdatableRoles(): Promise<Record<string, unknown>[]>;
|
|
3293
|
-
/** Get permission info. `GET /user/permission-info` */
|
|
3294
|
-
getPermissionInfo(): Promise<Record<string, unknown>>;
|
|
3295
|
-
/** Get module list. `GET /user/module/list` */
|
|
3296
|
-
getModuleList(): Promise<Record<string, unknown>[]>;
|
|
3297
3294
|
/** Get parent list. `GET /user/parent/list` */
|
|
3298
3295
|
getParentList(): Promise<Record<string, unknown>[]>;
|
|
3299
3296
|
/** Create a role. `POST /user/role` */
|
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -196,16 +196,21 @@ var Authentication = class {
|
|
|
196
196
|
body: params
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
199
|
+
/** Sync authentication status. `POST /authentication/{merchantId}/{authId}/sync` */
|
|
200
|
+
async sync(merchantId, authId, params) {
|
|
201
|
+
return this.request(
|
|
202
|
+
"POST",
|
|
203
|
+
`/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/sync`,
|
|
204
|
+
{ body: params }
|
|
205
|
+
);
|
|
203
206
|
}
|
|
204
|
-
/** Redirect after authentication. `POST /authentication/{authId}/redirect` */
|
|
205
|
-
async redirect(authId, params) {
|
|
206
|
-
return this.request(
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
/** Redirect after authentication. `POST /authentication/{merchantId}/{authId}/redirect` */
|
|
208
|
+
async redirect(merchantId, authId, params) {
|
|
209
|
+
return this.request(
|
|
210
|
+
"POST",
|
|
211
|
+
`/authentication/${encodeURIComponent(merchantId)}/${encodeURIComponent(authId)}/redirect`,
|
|
212
|
+
{ body: params }
|
|
213
|
+
);
|
|
209
214
|
}
|
|
210
215
|
/** Enable authn methods token. `POST /authentication/{authId}/enabled-authn-methods-token` */
|
|
211
216
|
async enabledAuthnMethodsToken(authId, params) {
|
|
@@ -842,11 +847,11 @@ var PaymentLinks = class {
|
|
|
842
847
|
`/payment-link/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
|
|
843
848
|
);
|
|
844
849
|
}
|
|
845
|
-
/** Get payment link status. `GET /payment-
|
|
850
|
+
/** Get payment link status. `GET /payment-link/status/{merchantId}/{paymentId}` */
|
|
846
851
|
async status(merchantId, paymentId) {
|
|
847
852
|
return this.request(
|
|
848
853
|
"GET",
|
|
849
|
-
`/payment-
|
|
854
|
+
`/payment-link/status/${encodeURIComponent(merchantId)}/${encodeURIComponent(paymentId)}`
|
|
850
855
|
);
|
|
851
856
|
}
|
|
852
857
|
};
|
|
@@ -1319,13 +1324,13 @@ var Payouts = class {
|
|
|
1319
1324
|
async listByFilter(params) {
|
|
1320
1325
|
return this.request("POST", "/payouts/list", { body: params });
|
|
1321
1326
|
}
|
|
1322
|
-
/** Get payout filter options. `
|
|
1327
|
+
/** Get payout filter options. `GET /payouts/filter` */
|
|
1323
1328
|
async getFilters(params) {
|
|
1324
|
-
return this.request("
|
|
1329
|
+
return this.request("GET", "/payouts/filter", { query: params });
|
|
1325
1330
|
}
|
|
1326
|
-
/** Get payout filters (profile-scoped). `
|
|
1331
|
+
/** Get payout filters (profile-scoped). `GET /payouts/profile/filter` */
|
|
1327
1332
|
async getFiltersByProfile(params) {
|
|
1328
|
-
return this.request("
|
|
1333
|
+
return this.request("GET", "/payouts/profile/filter", { query: params });
|
|
1329
1334
|
}
|
|
1330
1335
|
/** Get payout aggregates. `GET /payouts/aggregate` */
|
|
1331
1336
|
async aggregate(params) {
|
|
@@ -2099,7 +2104,7 @@ var Users = class {
|
|
|
2099
2104
|
return this.request("POST", "/user/employees/invite", { body: params });
|
|
2100
2105
|
}
|
|
2101
2106
|
async acceptInvitation(params) {
|
|
2102
|
-
return this.request("POST", "/user/invite/accept", { body: params });
|
|
2107
|
+
return this.request("POST", "/user/employees/invite/accept", { body: params });
|
|
2103
2108
|
}
|
|
2104
2109
|
/**
|
|
2105
2110
|
* Accept an invitation via the email-link flow.
|
|
@@ -2228,9 +2233,9 @@ var Users = class {
|
|
|
2228
2233
|
query: params
|
|
2229
2234
|
});
|
|
2230
2235
|
}
|
|
2231
|
-
/** Resend invite. `POST /user/
|
|
2236
|
+
/** Resend invite. `POST /user/resend-invite` */
|
|
2232
2237
|
async resendInvite(params) {
|
|
2233
|
-
return this.request("POST", "/user/
|
|
2238
|
+
return this.request("POST", "/user/resend-invite", { body: params });
|
|
2234
2239
|
}
|
|
2235
2240
|
/**
|
|
2236
2241
|
* Get the caller's parent permission groups + scopes.
|
|
@@ -2259,14 +2264,6 @@ var Users = class {
|
|
|
2259
2264
|
async listUpdatableRoles() {
|
|
2260
2265
|
return this.request("GET", "/user/role/list/update");
|
|
2261
2266
|
}
|
|
2262
|
-
/** Get permission info. `GET /user/permission-info` */
|
|
2263
|
-
async getPermissionInfo() {
|
|
2264
|
-
return this.request("GET", "/user/permission-info");
|
|
2265
|
-
}
|
|
2266
|
-
/** Get module list. `GET /user/module/list` */
|
|
2267
|
-
async getModuleList() {
|
|
2268
|
-
return this.request("GET", "/user/module/list");
|
|
2269
|
-
}
|
|
2270
2267
|
/** Get parent list. `GET /user/parent/list` */
|
|
2271
2268
|
async getParentList() {
|
|
2272
2269
|
return this.request("GET", "/user/parent/list");
|
|
@@ -3667,22 +3664,22 @@ var Admin = class {
|
|
|
3667
3664
|
return this.request("POST", "/admin/signin", { body: params });
|
|
3668
3665
|
}
|
|
3669
3666
|
async createInternalUser(params) {
|
|
3670
|
-
return this.request("POST", "/admin/
|
|
3667
|
+
return this.request("POST", "/admin/internal-signup", { body: params });
|
|
3671
3668
|
}
|
|
3672
3669
|
async createTenant(params) {
|
|
3673
|
-
return this.request("POST", "/admin/
|
|
3670
|
+
return this.request("POST", "/admin/tenant-signup", { body: params });
|
|
3674
3671
|
}
|
|
3675
3672
|
/**
|
|
3676
3673
|
* Create a new merchant admin user and merchant account atomically.
|
|
3677
3674
|
*
|
|
3678
3675
|
* This is the correct endpoint for bootstrapping the first admin user in a
|
|
3679
|
-
* fresh deployment — `
|
|
3676
|
+
* fresh deployment — `internal-signup`/`tenant-signup` both require
|
|
3680
3677
|
* pre-existing merchant records that don't exist on a clean database.
|
|
3681
3678
|
*
|
|
3682
|
-
* `POST /admin/
|
|
3679
|
+
* `POST /admin/signup-with-merchant-id`
|
|
3683
3680
|
*/
|
|
3684
3681
|
async signupWithMerchantId(params) {
|
|
3685
|
-
return this.request("POST", "/admin/
|
|
3682
|
+
return this.request("POST", "/admin/signup-with-merchant-id", { body: params });
|
|
3686
3683
|
}
|
|
3687
3684
|
/** Toggle public signup on/off. `POST /admin/settings/signup` */
|
|
3688
3685
|
async setSignupSettings(params) {
|
|
@@ -3692,9 +3689,9 @@ var Admin = class {
|
|
|
3692
3689
|
async getSignupSettings() {
|
|
3693
3690
|
return this.request("GET", "/admin/settings/signup");
|
|
3694
3691
|
}
|
|
3695
|
-
/** Full merchant bootstrap — user + merchant + project + profile + keys. `POST /admin/
|
|
3692
|
+
/** Full merchant bootstrap — user + merchant + project + profile + keys. `POST /admin/onboard-merchant` */
|
|
3696
3693
|
async onboardMerchant(params) {
|
|
3697
|
-
return this.request("POST", "/admin/
|
|
3694
|
+
return this.request("POST", "/admin/onboard-merchant", { body: params });
|
|
3698
3695
|
}
|
|
3699
3696
|
};
|
|
3700
3697
|
|
|
@@ -3831,13 +3828,13 @@ var CardIssuers = class {
|
|
|
3831
3828
|
this.request = request;
|
|
3832
3829
|
}
|
|
3833
3830
|
async create(params) {
|
|
3834
|
-
return this.request("POST", "/
|
|
3831
|
+
return this.request("POST", "/card-issuers", { body: params });
|
|
3835
3832
|
}
|
|
3836
3833
|
async update(issuerId, params) {
|
|
3837
|
-
return this.request("PUT", `/
|
|
3834
|
+
return this.request("PUT", `/card-issuers/${encodeURIComponent(issuerId)}`, { body: params });
|
|
3838
3835
|
}
|
|
3839
3836
|
async list() {
|
|
3840
|
-
return this.request("GET", "/
|
|
3837
|
+
return this.request("GET", "/card-issuers");
|
|
3841
3838
|
}
|
|
3842
3839
|
};
|
|
3843
3840
|
|
|
@@ -3875,22 +3872,22 @@ var ConnectorRestrictions = class {
|
|
|
3875
3872
|
* everyone again, call `delete()`.
|
|
3876
3873
|
*/
|
|
3877
3874
|
async upsert(body) {
|
|
3878
|
-
return this.request("POST", "/admin/
|
|
3875
|
+
return this.request("POST", "/admin/connector-restrictions", { body });
|
|
3879
3876
|
}
|
|
3880
3877
|
async list() {
|
|
3881
|
-
return this.request("GET", "/admin/
|
|
3878
|
+
return this.request("GET", "/admin/connector-restrictions");
|
|
3882
3879
|
}
|
|
3883
3880
|
async retrieve(connectorName) {
|
|
3884
3881
|
return this.request(
|
|
3885
3882
|
"GET",
|
|
3886
|
-
`/admin/
|
|
3883
|
+
`/admin/connector-restrictions/${encodeURIComponent(connectorName)}`
|
|
3887
3884
|
);
|
|
3888
3885
|
}
|
|
3889
3886
|
/** Removing the row makes the connector public again. */
|
|
3890
3887
|
async delete(connectorName) {
|
|
3891
3888
|
return this.request(
|
|
3892
3889
|
"DELETE",
|
|
3893
|
-
`/admin/
|
|
3890
|
+
`/admin/connector-restrictions/${encodeURIComponent(connectorName)}`
|
|
3894
3891
|
);
|
|
3895
3892
|
}
|
|
3896
3893
|
};
|