@verdocs/js-sdk 6.6.1 → 6.6.3
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 +28 -9
- package/dist/index.d.ts +28 -9
- 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.d.mts
CHANGED
|
@@ -508,7 +508,7 @@ type TAccessKey = IInPersonAccessKey | IInAppAccessKey | IEmailAccessKey | ISMSA
|
|
|
508
508
|
interface IEnvelope {
|
|
509
509
|
/** Unique identifier for the envelope (UUID) */
|
|
510
510
|
id: string;
|
|
511
|
-
/** Current status of the envelope. Note that 'complete', 'declined', and 'canceled' are immutable/permanent end states. */
|
|
511
|
+
/** Current status of the envelope. Note that 'complete', 'declined', and 'canceled' are immutable/permanent end states. Also, 'complete' does NOT mean "fully signed in all aspects" (see "signed" for that). 'complete' means complete from a user's perspective: all required data has been submitted and workflow steps completed. */
|
|
512
512
|
status: TEnvelopeStatus;
|
|
513
513
|
/** ID of the envelope's creator. */
|
|
514
514
|
profile_id: string;
|
|
@@ -540,7 +540,7 @@ interface IEnvelope {
|
|
|
540
540
|
expires_at?: string;
|
|
541
541
|
/** Defaults to 'private'. If set to 'shared', this envelope will be visible to other users in the same organization. Ignored for personal profiles. */
|
|
542
542
|
visibility: "private" | "shared";
|
|
543
|
-
/** If true, the
|
|
543
|
+
/** If true, the envelope is fully submitted, processed, certificate-generated, and all documents have been stamped and signed. */
|
|
544
544
|
signed: boolean;
|
|
545
545
|
/**
|
|
546
546
|
* Storage for arbitrary data that may be used e.g. to track source database/record IDs to relate Envelopes back to
|
|
@@ -581,6 +581,8 @@ interface IEnvelopeDocument {
|
|
|
581
581
|
mime: string;
|
|
582
582
|
/** File size (bytes) */
|
|
583
583
|
size: number;
|
|
584
|
+
/** Whether the file has been signed. Note that document.signed is different from envelope.signed. Documents are signed first, then the certificate is created and signed, then the envelope is finally marked signed. */
|
|
585
|
+
signed: boolean;
|
|
584
586
|
/** Collection of width/height dimensions for each page */
|
|
585
587
|
page_sizes: {
|
|
586
588
|
width: number;
|
|
@@ -755,6 +757,7 @@ interface IRecipient {
|
|
|
755
757
|
message: string | null;
|
|
756
758
|
claimed: boolean;
|
|
757
759
|
agreed: boolean;
|
|
760
|
+
name_locked: boolean;
|
|
758
761
|
key_used_to_conclude?: string;
|
|
759
762
|
environment?: string;
|
|
760
763
|
created_at: string;
|
|
@@ -818,7 +821,10 @@ interface IRole {
|
|
|
818
821
|
* arrange recipients to match related business processes so this field allows for that.
|
|
819
822
|
*/
|
|
820
823
|
order: number;
|
|
824
|
+
// TODO: Most booleans should probably become non-nullable
|
|
821
825
|
delegator: boolean | null;
|
|
826
|
+
/** If set, the recipient will not be allowed to change their legal name. */
|
|
827
|
+
name_locked: boolean;
|
|
822
828
|
}
|
|
823
829
|
interface ISignature {
|
|
824
830
|
id: string;
|
|
@@ -1480,6 +1486,8 @@ interface IUpdateRecipientParams {
|
|
|
1480
1486
|
dob?: string;
|
|
1481
1487
|
/** If KBA-based authentication is used, the recipient's SSN-Last-4 to prefill. May only be changed if the recipient has not already completed KBA-based auth. */
|
|
1482
1488
|
ssn_last_4?: string;
|
|
1489
|
+
/** If set, the recipient will not be allowed to change their legal name. */
|
|
1490
|
+
name_locked?: string;
|
|
1483
1491
|
}
|
|
1484
1492
|
interface ICreateEnvelopeDocumentFromData {
|
|
1485
1493
|
/** The order in which the document should be displayed. */
|
|
@@ -1665,6 +1673,9 @@ type TAuthenticateRecipientRequest = IAuthenticateRecipientViaPasscodeRequest |
|
|
|
1665
1673
|
* be applied at the Organization level before creating an envelope.
|
|
1666
1674
|
*/
|
|
1667
1675
|
declare const DEFAULT_DISCLOSURES = "\n<ul>\n <li>\n Agree to use electronic records and signatures, and confirm you have read the\n <a href=\"https://verdocs.com/en/electronic-record-signature-disclosure/\" target=\"_blank\">\n Electronic Record and Signatures Disclosure</a>.</li>\n <li>\n Agree to Verdocs'\n <a href=\"https://verdocs.com/en/eula\" target=\"_blank\">\n End User License Agreement</a>\n and confirm you have read Verdocs'\n <a href=\"https://verdocs.com/en/privacy-policy/\" target=\"_blank\">\n Privacy Policy</a>.\n </li>\n</ul>";
|
|
1676
|
+
// TODO: We need to re-review all of the models and input types/docs to be sure they match the latest
|
|
1677
|
+
// API work.
|
|
1678
|
+
// INIT
|
|
1668
1679
|
/**
|
|
1669
1680
|
* Create an envelope
|
|
1670
1681
|
*
|
|
@@ -2969,12 +2980,13 @@ declare const getOrganizationMembers: (endpoint: VerdocsEndpoint) => Promise<IPr
|
|
|
2969
2980
|
* ```
|
|
2970
2981
|
*
|
|
2971
2982
|
* @group Organization Members
|
|
2983
|
+
* @apiParam string(format:uuid) profile_id The Profile ID to remove.
|
|
2972
2984
|
* @api DELETE /v2/organization-members/:profile_id Delete a member from the organization
|
|
2973
2985
|
* @apiSuccess string . Success
|
|
2974
2986
|
*/
|
|
2975
2987
|
declare const deleteOrganizationMember: (endpoint: VerdocsEndpoint, profileId: string) => Promise<any>;
|
|
2976
2988
|
/**
|
|
2977
|
-
* Update
|
|
2989
|
+
* Update an organization member.
|
|
2978
2990
|
*
|
|
2979
2991
|
* ```typescript
|
|
2980
2992
|
* import {updateOrganizationMember} from '@verdocs/js-sdk';
|
|
@@ -2984,12 +2996,13 @@ declare const deleteOrganizationMember: (endpoint: VerdocsEndpoint, profileId: s
|
|
|
2984
2996
|
*
|
|
2985
2997
|
* @group Organization Members
|
|
2986
2998
|
* @api PATCH /v2/organization-members/:profile_id Update an organization member.
|
|
2987
|
-
* @
|
|
2988
|
-
* @apiBody string first_name
|
|
2989
|
-
* @apiBody string last_name
|
|
2990
|
-
* @
|
|
2999
|
+
* @apiParam string(format:uuid) profile_id The Profile ID to update.
|
|
3000
|
+
* @apiBody string first_name? First name for the member
|
|
3001
|
+
* @apiBody string last_name? Last name for the member
|
|
3002
|
+
* @apiBody array(items:TRole) roles? Roles (e.g. "member" or "admin") to assign to the user.
|
|
3003
|
+
* @apiSuccess IProfile . The updated profile for the member.
|
|
2991
3004
|
*/
|
|
2992
|
-
declare const updateOrganizationMember: (endpoint: VerdocsEndpoint, profileId: string, params: Pick<IProfile, "roles" | "first_name" | "last_name"
|
|
3005
|
+
declare const updateOrganizationMember: (endpoint: VerdocsEndpoint, profileId: string, params: Partial<Pick<IProfile, "roles" | "first_name" | "last_name">>) => Promise<IProfile>;
|
|
2993
3006
|
/**
|
|
2994
3007
|
* Get an organization by ID. Note that this endpoint will return only a subset of fields
|
|
2995
3008
|
* if the caller is not a member of the organization (the public fields).
|
|
@@ -3164,7 +3177,8 @@ declare const getEntitlements: (endpoint: VerdocsEndpoint) => Promise<IEntitleme
|
|
|
3164
3177
|
*/
|
|
3165
3178
|
declare const getActiveEntitlements: (endpoint: VerdocsEndpoint) => Promise<Partial<Record<TEntitlement, IEntitlement>>>;
|
|
3166
3179
|
/**
|
|
3167
|
-
* Get the registered Webhook configuration for the caller's organization.
|
|
3180
|
+
* Get the registered Webhook configuration for the caller's organization. Note that an organization
|
|
3181
|
+
* may only have a single Webhook configuration.
|
|
3168
3182
|
*
|
|
3169
3183
|
* ```typescript
|
|
3170
3184
|
* import {getWebhooks} from '@verdocs/js-sdk';
|
|
@@ -3193,6 +3207,11 @@ declare const getWebhooks: (endpoint: VerdocsEndpoint) => Promise<IWebhook>;
|
|
|
3193
3207
|
* @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.
|
|
3194
3208
|
* @apiBody string url URL to send Webhook events to. An empty or invalid URL will disable Webhook calls.
|
|
3195
3209
|
* @apiBody boolean active Set to true to enable Webhooks calls.
|
|
3210
|
+
* @apiBody string(enum:'none'|'hmac'|'client_credentials') auth_method? Enable HMAC or Client Credentials authentication for Webhooks calls.
|
|
3211
|
+
* @apiBody string token_endpoint? Required if `auth_method` is set to `client_credentials`. Token endpoint to use for authenticating Webhooks calls.
|
|
3212
|
+
* @apiBody string client_id? Required if `auth_method` is set to `client_credentials`. Client ID to use for authenticating Webhooks calls.
|
|
3213
|
+
* @apiBody string client_secret? Required if `auth_method` is set to `client_credentials`. Client secret to use for authenticating Webhooks calls.
|
|
3214
|
+
* @apiBody string scope? Optional scope to include in authentication calls if `auth_method` is set to `client_credentials`.
|
|
3196
3215
|
* @apiBody object events Record<TWebhookEvent, boolean> map of events to enable/disable.
|
|
3197
3216
|
* @apiSuccess IWebhook . The updated Webhooks config for the caller's organization.
|
|
3198
3217
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -508,7 +508,7 @@ type TAccessKey = IInPersonAccessKey | IInAppAccessKey | IEmailAccessKey | ISMSA
|
|
|
508
508
|
interface IEnvelope {
|
|
509
509
|
/** Unique identifier for the envelope (UUID) */
|
|
510
510
|
id: string;
|
|
511
|
-
/** Current status of the envelope. Note that 'complete', 'declined', and 'canceled' are immutable/permanent end states. */
|
|
511
|
+
/** Current status of the envelope. Note that 'complete', 'declined', and 'canceled' are immutable/permanent end states. Also, 'complete' does NOT mean "fully signed in all aspects" (see "signed" for that). 'complete' means complete from a user's perspective: all required data has been submitted and workflow steps completed. */
|
|
512
512
|
status: TEnvelopeStatus;
|
|
513
513
|
/** ID of the envelope's creator. */
|
|
514
514
|
profile_id: string;
|
|
@@ -540,7 +540,7 @@ interface IEnvelope {
|
|
|
540
540
|
expires_at?: string;
|
|
541
541
|
/** Defaults to 'private'. If set to 'shared', this envelope will be visible to other users in the same organization. Ignored for personal profiles. */
|
|
542
542
|
visibility: "private" | "shared";
|
|
543
|
-
/** If true, the
|
|
543
|
+
/** If true, the envelope is fully submitted, processed, certificate-generated, and all documents have been stamped and signed. */
|
|
544
544
|
signed: boolean;
|
|
545
545
|
/**
|
|
546
546
|
* Storage for arbitrary data that may be used e.g. to track source database/record IDs to relate Envelopes back to
|
|
@@ -581,6 +581,8 @@ interface IEnvelopeDocument {
|
|
|
581
581
|
mime: string;
|
|
582
582
|
/** File size (bytes) */
|
|
583
583
|
size: number;
|
|
584
|
+
/** Whether the file has been signed. Note that document.signed is different from envelope.signed. Documents are signed first, then the certificate is created and signed, then the envelope is finally marked signed. */
|
|
585
|
+
signed: boolean;
|
|
584
586
|
/** Collection of width/height dimensions for each page */
|
|
585
587
|
page_sizes: {
|
|
586
588
|
width: number;
|
|
@@ -755,6 +757,7 @@ interface IRecipient {
|
|
|
755
757
|
message: string | null;
|
|
756
758
|
claimed: boolean;
|
|
757
759
|
agreed: boolean;
|
|
760
|
+
name_locked: boolean;
|
|
758
761
|
key_used_to_conclude?: string;
|
|
759
762
|
environment?: string;
|
|
760
763
|
created_at: string;
|
|
@@ -818,7 +821,10 @@ interface IRole {
|
|
|
818
821
|
* arrange recipients to match related business processes so this field allows for that.
|
|
819
822
|
*/
|
|
820
823
|
order: number;
|
|
824
|
+
// TODO: Most booleans should probably become non-nullable
|
|
821
825
|
delegator: boolean | null;
|
|
826
|
+
/** If set, the recipient will not be allowed to change their legal name. */
|
|
827
|
+
name_locked: boolean;
|
|
822
828
|
}
|
|
823
829
|
interface ISignature {
|
|
824
830
|
id: string;
|
|
@@ -1480,6 +1486,8 @@ interface IUpdateRecipientParams {
|
|
|
1480
1486
|
dob?: string;
|
|
1481
1487
|
/** If KBA-based authentication is used, the recipient's SSN-Last-4 to prefill. May only be changed if the recipient has not already completed KBA-based auth. */
|
|
1482
1488
|
ssn_last_4?: string;
|
|
1489
|
+
/** If set, the recipient will not be allowed to change their legal name. */
|
|
1490
|
+
name_locked?: string;
|
|
1483
1491
|
}
|
|
1484
1492
|
interface ICreateEnvelopeDocumentFromData {
|
|
1485
1493
|
/** The order in which the document should be displayed. */
|
|
@@ -1665,6 +1673,9 @@ type TAuthenticateRecipientRequest = IAuthenticateRecipientViaPasscodeRequest |
|
|
|
1665
1673
|
* be applied at the Organization level before creating an envelope.
|
|
1666
1674
|
*/
|
|
1667
1675
|
declare const DEFAULT_DISCLOSURES = "\n<ul>\n <li>\n Agree to use electronic records and signatures, and confirm you have read the\n <a href=\"https://verdocs.com/en/electronic-record-signature-disclosure/\" target=\"_blank\">\n Electronic Record and Signatures Disclosure</a>.</li>\n <li>\n Agree to Verdocs'\n <a href=\"https://verdocs.com/en/eula\" target=\"_blank\">\n End User License Agreement</a>\n and confirm you have read Verdocs'\n <a href=\"https://verdocs.com/en/privacy-policy/\" target=\"_blank\">\n Privacy Policy</a>.\n </li>\n</ul>";
|
|
1676
|
+
// TODO: We need to re-review all of the models and input types/docs to be sure they match the latest
|
|
1677
|
+
// API work.
|
|
1678
|
+
// INIT
|
|
1668
1679
|
/**
|
|
1669
1680
|
* Create an envelope
|
|
1670
1681
|
*
|
|
@@ -2969,12 +2980,13 @@ declare const getOrganizationMembers: (endpoint: VerdocsEndpoint) => Promise<IPr
|
|
|
2969
2980
|
* ```
|
|
2970
2981
|
*
|
|
2971
2982
|
* @group Organization Members
|
|
2983
|
+
* @apiParam string(format:uuid) profile_id The Profile ID to remove.
|
|
2972
2984
|
* @api DELETE /v2/organization-members/:profile_id Delete a member from the organization
|
|
2973
2985
|
* @apiSuccess string . Success
|
|
2974
2986
|
*/
|
|
2975
2987
|
declare const deleteOrganizationMember: (endpoint: VerdocsEndpoint, profileId: string) => Promise<any>;
|
|
2976
2988
|
/**
|
|
2977
|
-
* Update
|
|
2989
|
+
* Update an organization member.
|
|
2978
2990
|
*
|
|
2979
2991
|
* ```typescript
|
|
2980
2992
|
* import {updateOrganizationMember} from '@verdocs/js-sdk';
|
|
@@ -2984,12 +2996,13 @@ declare const deleteOrganizationMember: (endpoint: VerdocsEndpoint, profileId: s
|
|
|
2984
2996
|
*
|
|
2985
2997
|
* @group Organization Members
|
|
2986
2998
|
* @api PATCH /v2/organization-members/:profile_id Update an organization member.
|
|
2987
|
-
* @
|
|
2988
|
-
* @apiBody string first_name
|
|
2989
|
-
* @apiBody string last_name
|
|
2990
|
-
* @
|
|
2999
|
+
* @apiParam string(format:uuid) profile_id The Profile ID to update.
|
|
3000
|
+
* @apiBody string first_name? First name for the member
|
|
3001
|
+
* @apiBody string last_name? Last name for the member
|
|
3002
|
+
* @apiBody array(items:TRole) roles? Roles (e.g. "member" or "admin") to assign to the user.
|
|
3003
|
+
* @apiSuccess IProfile . The updated profile for the member.
|
|
2991
3004
|
*/
|
|
2992
|
-
declare const updateOrganizationMember: (endpoint: VerdocsEndpoint, profileId: string, params: Pick<IProfile, "roles" | "first_name" | "last_name"
|
|
3005
|
+
declare const updateOrganizationMember: (endpoint: VerdocsEndpoint, profileId: string, params: Partial<Pick<IProfile, "roles" | "first_name" | "last_name">>) => Promise<IProfile>;
|
|
2993
3006
|
/**
|
|
2994
3007
|
* Get an organization by ID. Note that this endpoint will return only a subset of fields
|
|
2995
3008
|
* if the caller is not a member of the organization (the public fields).
|
|
@@ -3164,7 +3177,8 @@ declare const getEntitlements: (endpoint: VerdocsEndpoint) => Promise<IEntitleme
|
|
|
3164
3177
|
*/
|
|
3165
3178
|
declare const getActiveEntitlements: (endpoint: VerdocsEndpoint) => Promise<Partial<Record<TEntitlement, IEntitlement>>>;
|
|
3166
3179
|
/**
|
|
3167
|
-
* Get the registered Webhook configuration for the caller's organization.
|
|
3180
|
+
* Get the registered Webhook configuration for the caller's organization. Note that an organization
|
|
3181
|
+
* may only have a single Webhook configuration.
|
|
3168
3182
|
*
|
|
3169
3183
|
* ```typescript
|
|
3170
3184
|
* import {getWebhooks} from '@verdocs/js-sdk';
|
|
@@ -3193,6 +3207,11 @@ declare const getWebhooks: (endpoint: VerdocsEndpoint) => Promise<IWebhook>;
|
|
|
3193
3207
|
* @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.
|
|
3194
3208
|
* @apiBody string url URL to send Webhook events to. An empty or invalid URL will disable Webhook calls.
|
|
3195
3209
|
* @apiBody boolean active Set to true to enable Webhooks calls.
|
|
3210
|
+
* @apiBody string(enum:'none'|'hmac'|'client_credentials') auth_method? Enable HMAC or Client Credentials authentication for Webhooks calls.
|
|
3211
|
+
* @apiBody string token_endpoint? Required if `auth_method` is set to `client_credentials`. Token endpoint to use for authenticating Webhooks calls.
|
|
3212
|
+
* @apiBody string client_id? Required if `auth_method` is set to `client_credentials`. Client ID to use for authenticating Webhooks calls.
|
|
3213
|
+
* @apiBody string client_secret? Required if `auth_method` is set to `client_credentials`. Client secret to use for authenticating Webhooks calls.
|
|
3214
|
+
* @apiBody string scope? Optional scope to include in authentication calls if `auth_method` is set to `client_credentials`.
|
|
3196
3215
|
* @apiBody object events Record<TWebhookEvent, boolean> map of events to enable/disable.
|
|
3197
3216
|
* @apiSuccess IWebhook . The updated Webhooks config for the caller's organization.
|
|
3198
3217
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1529,6 +1529,9 @@ class VerdocsEndpoint {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
1531
|
|
|
1532
|
+
// TODO: We need to re-review all of the models and input types/docs to be sure they match the latest
|
|
1533
|
+
// API work.
|
|
1534
|
+
// INIT
|
|
1532
1535
|
/**
|
|
1533
1536
|
* Create an envelope
|
|
1534
1537
|
*
|
|
@@ -3446,6 +3449,7 @@ const getOrganizationMembers = (endpoint) => endpoint.api //
|
|
|
3446
3449
|
* ```
|
|
3447
3450
|
*
|
|
3448
3451
|
* @group Organization Members
|
|
3452
|
+
* @apiParam string(format:uuid) profile_id The Profile ID to remove.
|
|
3449
3453
|
* @api DELETE /v2/organization-members/:profile_id Delete a member from the organization
|
|
3450
3454
|
* @apiSuccess string . Success
|
|
3451
3455
|
*/
|
|
@@ -3453,7 +3457,7 @@ const deleteOrganizationMember = (endpoint, profileId) => endpoint.api //
|
|
|
3453
3457
|
.delete(`/v2/organization-members/${profileId}`)
|
|
3454
3458
|
.then((r) => r.data);
|
|
3455
3459
|
/**
|
|
3456
|
-
* Update
|
|
3460
|
+
* Update an organization member.
|
|
3457
3461
|
*
|
|
3458
3462
|
* ```typescript
|
|
3459
3463
|
* import {updateOrganizationMember} from '@verdocs/js-sdk';
|
|
@@ -3463,10 +3467,11 @@ const deleteOrganizationMember = (endpoint, profileId) => endpoint.api //
|
|
|
3463
3467
|
*
|
|
3464
3468
|
* @group Organization Members
|
|
3465
3469
|
* @api PATCH /v2/organization-members/:profile_id Update an organization member.
|
|
3466
|
-
* @
|
|
3467
|
-
* @apiBody string first_name
|
|
3468
|
-
* @apiBody string last_name
|
|
3469
|
-
* @
|
|
3470
|
+
* @apiParam string(format:uuid) profile_id The Profile ID to update.
|
|
3471
|
+
* @apiBody string first_name? First name for the member
|
|
3472
|
+
* @apiBody string last_name? Last name for the member
|
|
3473
|
+
* @apiBody array(items:TRole) roles? Roles (e.g. "member" or "admin") to assign to the user.
|
|
3474
|
+
* @apiSuccess IProfile . The updated profile for the member.
|
|
3470
3475
|
*/
|
|
3471
3476
|
const updateOrganizationMember = (endpoint, profileId, params) => endpoint.api //
|
|
3472
3477
|
.patch(`/v2/organization-members/${profileId}`, params)
|
|
@@ -3701,7 +3706,8 @@ const getActiveEntitlements = async (endpoint) => {
|
|
|
3701
3706
|
* @module
|
|
3702
3707
|
*/
|
|
3703
3708
|
/**
|
|
3704
|
-
* Get the registered Webhook configuration for the caller's organization.
|
|
3709
|
+
* Get the registered Webhook configuration for the caller's organization. Note that an organization
|
|
3710
|
+
* may only have a single Webhook configuration.
|
|
3705
3711
|
*
|
|
3706
3712
|
* ```typescript
|
|
3707
3713
|
* import {getWebhooks} from '@verdocs/js-sdk';
|
|
@@ -3732,6 +3738,11 @@ const getWebhooks = (endpoint) => endpoint.api //
|
|
|
3732
3738
|
* @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.
|
|
3733
3739
|
* @apiBody string url URL to send Webhook events to. An empty or invalid URL will disable Webhook calls.
|
|
3734
3740
|
* @apiBody boolean active Set to true to enable Webhooks calls.
|
|
3741
|
+
* @apiBody string(enum:'none'|'hmac'|'client_credentials') auth_method? Enable HMAC or Client Credentials authentication for Webhooks calls.
|
|
3742
|
+
* @apiBody string token_endpoint? Required if `auth_method` is set to `client_credentials`. Token endpoint to use for authenticating Webhooks calls.
|
|
3743
|
+
* @apiBody string client_id? Required if `auth_method` is set to `client_credentials`. Client ID to use for authenticating Webhooks calls.
|
|
3744
|
+
* @apiBody string client_secret? Required if `auth_method` is set to `client_credentials`. Client secret to use for authenticating Webhooks calls.
|
|
3745
|
+
* @apiBody string scope? Optional scope to include in authentication calls if `auth_method` is set to `client_credentials`.
|
|
3735
3746
|
* @apiBody object events Record<TWebhookEvent, boolean> map of events to enable/disable.
|
|
3736
3747
|
* @apiSuccess IWebhook . The updated Webhooks config for the caller's organization.
|
|
3737
3748
|
*/
|