@delopay/sdk 0.56.1 → 0.57.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/index.cjs CHANGED
@@ -2298,6 +2298,21 @@ var Users = class {
2298
2298
  async inviteUsers(params) {
2299
2299
  return this.request("POST", "/user/employees/invite", { body: params });
2300
2300
  }
2301
+ /**
2302
+ * Add a team member directly, without sending an invite email.
2303
+ * `POST /user/employees/add`
2304
+ *
2305
+ * Unlike `inviteUsers`, the account is active immediately and you hand over
2306
+ * the credentials yourself. Omit `password` to have the server generate one
2307
+ * and return it once in `password` on the response; supply your own and it is
2308
+ * not echoed back. Either way the member must change it on first sign-in.
2309
+ *
2310
+ * Same role rules as invite: you cannot grant a role above your own, and a
2311
+ * shop-scoped caller can only target their own shop.
2312
+ */
2313
+ async addUser(params) {
2314
+ return this.request("POST", "/user/employees/add", { body: params });
2315
+ }
2301
2316
  async acceptInvitation(params) {
2302
2317
  return this.request("POST", "/user/employees/invite/accept", { body: params });
2303
2318
  }