@delopay/sdk 0.127.0 → 0.128.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-D44FJRXS.js → chunk-PKPIWKB2.js} +20 -2
- package/dist/{chunk-D44FJRXS.js.map → chunk-PKPIWKB2.js.map} +1 -1
- package/dist/index.cjs +19 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -3
- package/dist/index.d.ts +37 -3
- package/dist/index.js +1 -1
- package/dist/internal.cjs +19 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3373,6 +3373,19 @@ var Users = class {
|
|
|
3373
3373
|
async acceptInvitation(params) {
|
|
3374
3374
|
return this.request("POST", "/user/employees/invite/accept", { body: params });
|
|
3375
3375
|
}
|
|
3376
|
+
/**
|
|
3377
|
+
* Accept invitations before a session exists.
|
|
3378
|
+
*
|
|
3379
|
+
* Sign-in issues a `token_type: "accept_invite"` step token instead of a
|
|
3380
|
+
* session when the caller has no active role yet — every role is still an
|
|
3381
|
+
* unaccepted invitation. With that token set via `setJwtToken`, pass the
|
|
3382
|
+
* entities from `listInvitations` here; the response is the next step of
|
|
3383
|
+
* the sign-in flow (`user_info` for the session, or `force_set_password`
|
|
3384
|
+
* first). Rejected when none of the entities carries a pending invitation.
|
|
3385
|
+
*/
|
|
3386
|
+
async acceptInvitationsPreAuth(params) {
|
|
3387
|
+
return this.request("POST", "/user/employees/invite/accept/pre-auth", { body: params });
|
|
3388
|
+
}
|
|
3376
3389
|
/**
|
|
3377
3390
|
* Accept an invitation via the email-link flow.
|
|
3378
3391
|
*
|
|
@@ -3467,7 +3480,12 @@ var Users = class {
|
|
|
3467
3480
|
async transferKey(params) {
|
|
3468
3481
|
return this.request("POST", "/user/key/transfer", { body: params });
|
|
3469
3482
|
}
|
|
3470
|
-
/**
|
|
3483
|
+
/**
|
|
3484
|
+
* Invitations still waiting on the caller. `GET /user/list/invitation`
|
|
3485
|
+
*
|
|
3486
|
+
* Accepts an `accept_invite` step token as well as a session JWT, so it
|
|
3487
|
+
* can feed `acceptInvitationsPreAuth` during sign-in.
|
|
3488
|
+
*/
|
|
3471
3489
|
async listInvitations() {
|
|
3472
3490
|
return this.request("GET", "/user/list/invitation");
|
|
3473
3491
|
}
|