@verdocs/js-sdk 6.6.0 → 6.6.2
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.d.mts +34 -11
- package/dist/index.d.ts +34 -11
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -6
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1527,6 +1527,9 @@ class VerdocsEndpoint {
|
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
1529
|
|
|
1530
|
+
// TODO: We need to re-review all of the models and input types/docs to be sure they match the latest
|
|
1531
|
+
// API work.
|
|
1532
|
+
// INIT
|
|
1530
1533
|
/**
|
|
1531
1534
|
* Create an envelope
|
|
1532
1535
|
*
|
|
@@ -3444,6 +3447,7 @@ const getOrganizationMembers = (endpoint) => endpoint.api //
|
|
|
3444
3447
|
* ```
|
|
3445
3448
|
*
|
|
3446
3449
|
* @group Organization Members
|
|
3450
|
+
* @apiParam string(format:uuid) profile_id The Profile ID to remove.
|
|
3447
3451
|
* @api DELETE /v2/organization-members/:profile_id Delete a member from the organization
|
|
3448
3452
|
* @apiSuccess string . Success
|
|
3449
3453
|
*/
|
|
@@ -3451,7 +3455,7 @@ const deleteOrganizationMember = (endpoint, profileId) => endpoint.api //
|
|
|
3451
3455
|
.delete(`/v2/organization-members/${profileId}`)
|
|
3452
3456
|
.then((r) => r.data);
|
|
3453
3457
|
/**
|
|
3454
|
-
* Update
|
|
3458
|
+
* Update an organization member.
|
|
3455
3459
|
*
|
|
3456
3460
|
* ```typescript
|
|
3457
3461
|
* import {updateOrganizationMember} from '@verdocs/js-sdk';
|
|
@@ -3461,10 +3465,11 @@ const deleteOrganizationMember = (endpoint, profileId) => endpoint.api //
|
|
|
3461
3465
|
*
|
|
3462
3466
|
* @group Organization Members
|
|
3463
3467
|
* @api PATCH /v2/organization-members/:profile_id Update an organization member.
|
|
3464
|
-
* @
|
|
3465
|
-
* @apiBody string first_name
|
|
3466
|
-
* @apiBody string last_name
|
|
3467
|
-
* @
|
|
3468
|
+
* @apiParam string(format:uuid) profile_id The Profile ID to update.
|
|
3469
|
+
* @apiBody string first_name? First name for the member
|
|
3470
|
+
* @apiBody string last_name? Last name for the member
|
|
3471
|
+
* @apiBody array(items:TRole) roles? Roles (e.g. "member" or "admin") to assign to the user.
|
|
3472
|
+
* @apiSuccess IProfile . The updated profile for the member.
|
|
3468
3473
|
*/
|
|
3469
3474
|
const updateOrganizationMember = (endpoint, profileId, params) => endpoint.api //
|
|
3470
3475
|
.patch(`/v2/organization-members/${profileId}`, params)
|
|
@@ -3699,7 +3704,8 @@ const getActiveEntitlements = async (endpoint) => {
|
|
|
3699
3704
|
* @module
|
|
3700
3705
|
*/
|
|
3701
3706
|
/**
|
|
3702
|
-
* Get the registered Webhook configuration for the caller's organization.
|
|
3707
|
+
* Get the registered Webhook configuration for the caller's organization. Note that an organization
|
|
3708
|
+
* may only have a single Webhook configuration.
|
|
3703
3709
|
*
|
|
3704
3710
|
* ```typescript
|
|
3705
3711
|
* import {getWebhooks} from '@verdocs/js-sdk';
|
|
@@ -3730,6 +3736,11 @@ const getWebhooks = (endpoint) => endpoint.api //
|
|
|
3730
3736
|
* @apiDescription Note that Webhooks cannot currently be deleted, but may be easily disabled by setting `active` to `false` and/or setting the `url` to an empty string.
|
|
3731
3737
|
* @apiBody string url URL to send Webhook events to. An empty or invalid URL will disable Webhook calls.
|
|
3732
3738
|
* @apiBody boolean active Set to true to enable Webhooks calls.
|
|
3739
|
+
* @apiBody string(enum:'none'|'hmac'|'client_credentials') auth_method? Enable HMAC or Client Credentials authentication for Webhooks calls.
|
|
3740
|
+
* @apiBody string token_endpoint? Required if `auth_method` is set to `client_credentials`. Token endpoint to use for authenticating Webhooks calls.
|
|
3741
|
+
* @apiBody string client_id? Required if `auth_method` is set to `client_credentials`. Client ID to use for authenticating Webhooks calls.
|
|
3742
|
+
* @apiBody string client_secret? Required if `auth_method` is set to `client_credentials`. Client secret to use for authenticating Webhooks calls.
|
|
3743
|
+
* @apiBody string scope? Optional scope to include in authentication calls if `auth_method` is set to `client_credentials`.
|
|
3733
3744
|
* @apiBody object events Record<TWebhookEvent, boolean> map of events to enable/disable.
|
|
3734
3745
|
* @apiSuccess IWebhook . The updated Webhooks config for the caller's organization.
|
|
3735
3746
|
*/
|