@delopay/sdk 0.263.0 → 0.264.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-YZCDGNZL.js → chunk-2MA2A66Y.js} +80 -1
- package/dist/chunk-2MA2A66Y.js.map +1 -0
- package/dist/index.cjs +79 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +317 -4
- package/dist/index.d.ts +317 -4
- package/dist/index.js +1 -1
- package/dist/internal.cjs +79 -0
- 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/chunk-YZCDGNZL.js.map +0 -1
|
@@ -4653,6 +4653,85 @@ var Users = class {
|
|
|
4653
4653
|
async updateMemberExpiry(params) {
|
|
4654
4654
|
return this.request("POST", "/user/employees/update-expiry", { body: params });
|
|
4655
4655
|
}
|
|
4656
|
+
/**
|
|
4657
|
+
* Create a reusable team invitation link. `POST /user/employees/invitation-links`
|
|
4658
|
+
*
|
|
4659
|
+
* Each person who joins through it gets `role_id` on the target, up to
|
|
4660
|
+
* `max_uses` people, until `expires_at`, and only from the networks and
|
|
4661
|
+
* countries `restrictions` allow. Creating it grants nothing and sends
|
|
4662
|
+
* nothing. You may grant only what you could invite with; a shop-level
|
|
4663
|
+
* caller only for its own shop. The secret to share comes back once, in
|
|
4664
|
+
* `token`. A refusal is a `UR_72` error whose `data` is an `InvitationLinkRefusal`.
|
|
4665
|
+
*/
|
|
4666
|
+
async createInvitationLink(params) {
|
|
4667
|
+
return this.request("POST", "/user/employees/invitation-links", { body: params });
|
|
4668
|
+
}
|
|
4669
|
+
/**
|
|
4670
|
+
* Your merchant's team invitation links, newest first, with their usage and
|
|
4671
|
+
* status. A shop-level caller sees its own shop's.
|
|
4672
|
+
* `GET /user/employees/invitation-links`
|
|
4673
|
+
*/
|
|
4674
|
+
async listInvitationLinks() {
|
|
4675
|
+
return this.request("GET", "/user/employees/invitation-links");
|
|
4676
|
+
}
|
|
4677
|
+
/**
|
|
4678
|
+
* Change a link's name, limit, expiry, access expiry or restrictions.
|
|
4679
|
+
* `PUT /user/employees/invitation-links/{link_id}`
|
|
4680
|
+
*
|
|
4681
|
+
* Send the whole policy and the `modified_at` you read as `version`. Saving
|
|
4682
|
+
* also reconfirms the link under your authority.
|
|
4683
|
+
*/
|
|
4684
|
+
async updateInvitationLink(linkId, params) {
|
|
4685
|
+
return this.request("PUT", `/user/employees/invitation-links/${encodeURIComponent(linkId)}`, {
|
|
4686
|
+
body: params
|
|
4687
|
+
});
|
|
4688
|
+
}
|
|
4689
|
+
/**
|
|
4690
|
+
* Revoke a link: nobody joins through it from now on, and who already
|
|
4691
|
+
* joined keeps their access. Revoking a revoked link answers it unchanged.
|
|
4692
|
+
* `POST /user/employees/invitation-links/{link_id}/revoke`
|
|
4693
|
+
*/
|
|
4694
|
+
async revokeInvitationLink(linkId) {
|
|
4695
|
+
return this.request(
|
|
4696
|
+
"POST",
|
|
4697
|
+
`/user/employees/invitation-links/${encodeURIComponent(linkId)}/revoke`
|
|
4698
|
+
);
|
|
4699
|
+
}
|
|
4700
|
+
/**
|
|
4701
|
+
* What a shared link offers, before joining. No authentication; grants
|
|
4702
|
+
* nothing. `POST /user/invitation-link/preview`
|
|
4703
|
+
*/
|
|
4704
|
+
async previewInvitationLink(token) {
|
|
4705
|
+
return this.request("POST", "/user/invitation-link/preview", { body: { token } });
|
|
4706
|
+
}
|
|
4707
|
+
/**
|
|
4708
|
+
* Join through a shared link from a signed-in session.
|
|
4709
|
+
* `POST /user/invitation-link/join`
|
|
4710
|
+
*
|
|
4711
|
+
* Needs a verified email address. Joining twice answers `already_member`
|
|
4712
|
+
* and uses no second place.
|
|
4713
|
+
*/
|
|
4714
|
+
async joinInvitationLink(token) {
|
|
4715
|
+
return this.request("POST", "/user/invitation-link/join", { body: { token } });
|
|
4716
|
+
}
|
|
4717
|
+
/**
|
|
4718
|
+
* Join through a shared link during sign-in, for someone who holds no access
|
|
4719
|
+
* yet: call it with the `accept_invite` single-purpose token set on the
|
|
4720
|
+
* client. Answers the token for the next sign-in step.
|
|
4721
|
+
* `POST /user/invitation-link/join/pre-auth`
|
|
4722
|
+
*/
|
|
4723
|
+
async joinInvitationLinkPreAuth(token) {
|
|
4724
|
+
return this.request("POST", "/user/invitation-link/join/pre-auth", { body: { token } });
|
|
4725
|
+
}
|
|
4726
|
+
/**
|
|
4727
|
+
* Make an account through a shared link, for someone who has none. No
|
|
4728
|
+
* authentication. The account holds no access: its owner verifies the
|
|
4729
|
+
* address from the email this sends, signs in and joins.
|
|
4730
|
+
* `POST /user/invitation-link/register`
|
|
4731
|
+
*/
|
|
4732
|
+
async registerThroughInvitationLink(params) {
|
|
4733
|
+
return this.request("POST", "/user/invitation-link/register", { body: params });
|
|
4734
|
+
}
|
|
4656
4735
|
/**
|
|
4657
4736
|
* One member of your merchant, with the person fields the member list
|
|
4658
4737
|
* omits. `GET /user/employees/{user_id}/details`
|
|
@@ -13579,4 +13658,4 @@ export {
|
|
|
13579
13658
|
decodeNativePanes,
|
|
13580
13659
|
encodeNativePanes
|
|
13581
13660
|
};
|
|
13582
|
-
//# sourceMappingURL=chunk-
|
|
13661
|
+
//# sourceMappingURL=chunk-2MA2A66Y.js.map
|