@delopay/sdk 0.22.0 → 0.23.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-4PBWNLYU.js → chunk-ZGDBGVGC.js} +14 -1
- package/dist/{chunk-4PBWNLYU.js.map → chunk-ZGDBGVGC.js.map} +1 -1
- package/dist/index.cjs +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1 -1
- package/dist/internal.cjs +13 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3155,6 +3155,17 @@ declare class Users {
|
|
|
3155
3155
|
listProfiles(): Promise<Record<string, unknown>[]>;
|
|
3156
3156
|
inviteUsers(params: InviteUsersRequest[]): Promise<InviteUsersResponse[]>;
|
|
3157
3157
|
acceptInvitation(params: Record<string, unknown>): Promise<AuthResponse>;
|
|
3158
|
+
/**
|
|
3159
|
+
* Accept an invitation via the email-link flow.
|
|
3160
|
+
*
|
|
3161
|
+
* Caller must already hold a `SinglePurposeToken` with
|
|
3162
|
+
* `purpose: accept_invitation_from_email` (obtained via `fromEmail` + any
|
|
3163
|
+
* required TOTP step) and have set it on the client via `setJwtToken`.
|
|
3164
|
+
* `body.token` must still be the original `EmailToken` from the
|
|
3165
|
+
* invite-link URL — the handler decodes it a second time to find the
|
|
3166
|
+
* invitee and the entity lineage.
|
|
3167
|
+
*/
|
|
3168
|
+
acceptInviteFromEmail(params: FromEmailRequest): Promise<AuthResponse>;
|
|
3158
3169
|
/**
|
|
3159
3170
|
* Start TOTP setup (or no-op if already set).
|
|
3160
3171
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -3155,6 +3155,17 @@ declare class Users {
|
|
|
3155
3155
|
listProfiles(): Promise<Record<string, unknown>[]>;
|
|
3156
3156
|
inviteUsers(params: InviteUsersRequest[]): Promise<InviteUsersResponse[]>;
|
|
3157
3157
|
acceptInvitation(params: Record<string, unknown>): Promise<AuthResponse>;
|
|
3158
|
+
/**
|
|
3159
|
+
* Accept an invitation via the email-link flow.
|
|
3160
|
+
*
|
|
3161
|
+
* Caller must already hold a `SinglePurposeToken` with
|
|
3162
|
+
* `purpose: accept_invitation_from_email` (obtained via `fromEmail` + any
|
|
3163
|
+
* required TOTP step) and have set it on the client via `setJwtToken`.
|
|
3164
|
+
* `body.token` must still be the original `EmailToken` from the
|
|
3165
|
+
* invite-link URL — the handler decodes it a second time to find the
|
|
3166
|
+
* invitee and the entity lineage.
|
|
3167
|
+
*/
|
|
3168
|
+
acceptInviteFromEmail(params: FromEmailRequest): Promise<AuthResponse>;
|
|
3158
3169
|
/**
|
|
3159
3170
|
* Start TOTP setup (or no-op if already set).
|
|
3160
3171
|
*
|
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -2097,6 +2097,19 @@ var Users = class {
|
|
|
2097
2097
|
async acceptInvitation(params) {
|
|
2098
2098
|
return this.request("POST", "/user/user/invite/accept", { body: params });
|
|
2099
2099
|
}
|
|
2100
|
+
/**
|
|
2101
|
+
* Accept an invitation via the email-link flow.
|
|
2102
|
+
*
|
|
2103
|
+
* Caller must already hold a `SinglePurposeToken` with
|
|
2104
|
+
* `purpose: accept_invitation_from_email` (obtained via `fromEmail` + any
|
|
2105
|
+
* required TOTP step) and have set it on the client via `setJwtToken`.
|
|
2106
|
+
* `body.token` must still be the original `EmailToken` from the
|
|
2107
|
+
* invite-link URL — the handler decodes it a second time to find the
|
|
2108
|
+
* invitee and the entity lineage.
|
|
2109
|
+
*/
|
|
2110
|
+
async acceptInviteFromEmail(params) {
|
|
2111
|
+
return this.request("POST", "/user/accept_invite_from_email", { body: params });
|
|
2112
|
+
}
|
|
2100
2113
|
/**
|
|
2101
2114
|
* Start TOTP setup (or no-op if already set).
|
|
2102
2115
|
*
|