@sentdm/sentdm 0.23.0 → 0.25.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/CHANGELOG.md +21 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/contacts.d.mts +3 -10
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +3 -10
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +2 -3
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +2 -3
- package/resources/contacts.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/profiles/campaigns.d.mts +4 -13
- package/resources/profiles/campaigns.d.mts.map +1 -1
- package/resources/profiles/campaigns.d.ts +4 -13
- package/resources/profiles/campaigns.d.ts.map +1 -1
- package/resources/profiles/campaigns.js +3 -6
- package/resources/profiles/campaigns.js.map +1 -1
- package/resources/profiles/campaigns.mjs +3 -6
- package/resources/profiles/campaigns.mjs.map +1 -1
- package/resources/profiles/profiles.d.mts +44 -12
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +44 -12
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js +3 -3
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs +3 -3
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/users.d.mts +4 -10
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +4 -10
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +3 -3
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +3 -3
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +13 -19
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +13 -19
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +2 -3
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +2 -3
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +2 -0
- package/src/internal/types.ts +6 -8
- package/src/resources/contacts.ts +5 -12
- package/src/resources/index.ts +1 -0
- package/src/resources/profiles/campaigns.ts +6 -15
- package/src/resources/profiles/profiles.ts +55 -14
- package/src/resources/users.ts +6 -12
- package/src/resources/webhooks.ts +21 -26
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;OAOG;IACH,MAAM,CAAC,MAA2B,EAAE,OAAwB;QAC1D,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE;YACvC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG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,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACrE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -78,6 +78,7 @@ import {
|
|
|
78
78
|
PaginationMeta,
|
|
79
79
|
WebhookCreateParams,
|
|
80
80
|
WebhookDeleteParams,
|
|
81
|
+
WebhookEventType,
|
|
81
82
|
WebhookListEventTypesParams,
|
|
82
83
|
WebhookListEventTypesResponse,
|
|
83
84
|
WebhookListEventsParams,
|
|
@@ -881,6 +882,7 @@ export declare namespace Sent {
|
|
|
881
882
|
type ErrorDetail as ErrorDetail,
|
|
882
883
|
type MutationRequest as MutationRequest,
|
|
883
884
|
type PaginationMeta as PaginationMeta,
|
|
885
|
+
type WebhookEventType as WebhookEventType,
|
|
884
886
|
type WebhookResponse as WebhookResponse,
|
|
885
887
|
type WebhookListResponse as WebhookListResponse,
|
|
886
888
|
type WebhookListEventTypesResponse as WebhookListEventTypesResponse,
|
package/src/internal/types.ts
CHANGED
|
@@ -40,7 +40,6 @@ type OverloadedParameters<T> =
|
|
|
40
40
|
: T extends (...args: infer A) => unknown ? A
|
|
41
41
|
: never;
|
|
42
42
|
|
|
43
|
-
/* eslint-disable */
|
|
44
43
|
/**
|
|
45
44
|
* These imports attempt to get types from a parent package's dependencies.
|
|
46
45
|
* Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which
|
|
@@ -63,19 +62,18 @@ type OverloadedParameters<T> =
|
|
|
63
62
|
*
|
|
64
63
|
* [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition
|
|
65
64
|
*/
|
|
66
|
-
/** @ts-ignore For users with \@types/node */
|
|
65
|
+
/** @ts-ignore For users with \@types/node */ /* prettier-ignore */
|
|
67
66
|
type UndiciTypesRequestInit = NotAny<import('../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit>;
|
|
68
|
-
/** @ts-ignore For users with undici */
|
|
67
|
+
/** @ts-ignore For users with undici */ /* prettier-ignore */
|
|
69
68
|
type UndiciRequestInit = NotAny<import('../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici/index.d.ts').RequestInit>;
|
|
70
|
-
/** @ts-ignore For users with \@types/bun */
|
|
69
|
+
/** @ts-ignore For users with \@types/bun */ /* prettier-ignore */
|
|
71
70
|
type BunRequestInit = globalThis.FetchRequestInit;
|
|
72
|
-
/** @ts-ignore For users with node-fetch@2 */
|
|
71
|
+
/** @ts-ignore For users with node-fetch@2 */ /* prettier-ignore */
|
|
73
72
|
type NodeFetch2RequestInit = NotAny<import('../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit>;
|
|
74
|
-
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */
|
|
73
|
+
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* prettier-ignore */
|
|
75
74
|
type NodeFetch3RequestInit = NotAny<import('../node_modules/node-fetch').RequestInit> | NotAny<import('../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/node-fetch').RequestInit>;
|
|
76
|
-
/** @ts-ignore For users who use Deno */
|
|
75
|
+
/** @ts-ignore For users who use Deno */ /* prettier-ignore */
|
|
77
76
|
type FetchRequestInit = NonNullable<OverloadedParameters<typeof fetch>[1]>;
|
|
78
|
-
/* eslint-enable */
|
|
79
77
|
|
|
80
78
|
type RequestInits =
|
|
81
79
|
| NotAny<UndiciTypesRequestInit>
|
|
@@ -125,14 +125,13 @@ export class Contacts extends APIResource {
|
|
|
125
125
|
* ```ts
|
|
126
126
|
* await client.contacts.delete(
|
|
127
127
|
* '6ba7b810-9dad-11d1-80b4-00c04fd430c8',
|
|
128
|
-
* { body: {} },
|
|
129
128
|
* );
|
|
130
129
|
* ```
|
|
131
130
|
*/
|
|
132
131
|
delete(id: string, params: ContactDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
133
|
-
const {
|
|
132
|
+
const { 'x-profile-id': xProfileID, ...body } = params;
|
|
134
133
|
return this._client.delete(path`/v3/contacts/${id}`, {
|
|
135
|
-
body
|
|
134
|
+
body,
|
|
136
135
|
...options,
|
|
137
136
|
headers: buildHeaders([
|
|
138
137
|
{ Accept: '*/*', ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
|
|
@@ -405,9 +404,10 @@ export interface ContactListParams {
|
|
|
405
404
|
|
|
406
405
|
export interface ContactDeleteParams {
|
|
407
406
|
/**
|
|
408
|
-
* Body param:
|
|
407
|
+
* Body param: Sandbox flag - when true, the operation is simulated without side
|
|
408
|
+
* effects Useful for testing integrations without actual execution
|
|
409
409
|
*/
|
|
410
|
-
|
|
410
|
+
sandbox?: boolean;
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
413
|
* Header param: Profile UUID to scope the request to a child profile. Only
|
|
@@ -417,13 +417,6 @@ export interface ContactDeleteParams {
|
|
|
417
417
|
'x-profile-id'?: string;
|
|
418
418
|
}
|
|
419
419
|
|
|
420
|
-
export namespace ContactDeleteParams {
|
|
421
|
-
/**
|
|
422
|
-
* Request to delete/dissociate a contact
|
|
423
|
-
*/
|
|
424
|
-
export interface Body extends WebhooksAPI.MutationRequest {}
|
|
425
|
-
}
|
|
426
|
-
|
|
427
420
|
export declare namespace Contacts {
|
|
428
421
|
export {
|
|
429
422
|
type APIResponseOfContact as APIResponseOfContact,
|
package/src/resources/index.ts
CHANGED
|
@@ -143,17 +143,14 @@ export class Campaigns extends APIResource {
|
|
|
143
143
|
* ```ts
|
|
144
144
|
* await client.profiles.campaigns.delete(
|
|
145
145
|
* 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
|
|
146
|
-
* {
|
|
147
|
-
* profileId: '770e8400-e29b-41d4-a716-446655440002',
|
|
148
|
-
* body: {},
|
|
149
|
-
* },
|
|
146
|
+
* { profileId: '770e8400-e29b-41d4-a716-446655440002' },
|
|
150
147
|
* );
|
|
151
148
|
* ```
|
|
152
149
|
*/
|
|
153
150
|
delete(campaignID: string, params: CampaignDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
154
|
-
const { profileId,
|
|
151
|
+
const { profileId, 'x-profile-id': xProfileID, ...body } = params;
|
|
155
152
|
return this._client.delete(path`/v3/profiles/${profileId}/campaigns/${campaignID}`, {
|
|
156
|
-
body
|
|
153
|
+
body,
|
|
157
154
|
...options,
|
|
158
155
|
headers: buildHeaders([
|
|
159
156
|
{ Accept: '*/*', ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
|
|
@@ -465,9 +462,10 @@ export interface CampaignDeleteParams {
|
|
|
465
462
|
profileId: string;
|
|
466
463
|
|
|
467
464
|
/**
|
|
468
|
-
* Body param:
|
|
465
|
+
* Body param: Sandbox flag - when true, the operation is simulated without side
|
|
466
|
+
* effects Useful for testing integrations without actual execution
|
|
469
467
|
*/
|
|
470
|
-
|
|
468
|
+
sandbox?: boolean;
|
|
471
469
|
|
|
472
470
|
/**
|
|
473
471
|
* Header param: Profile UUID to scope the request to a child profile. Only
|
|
@@ -477,13 +475,6 @@ export interface CampaignDeleteParams {
|
|
|
477
475
|
'x-profile-id'?: string;
|
|
478
476
|
}
|
|
479
477
|
|
|
480
|
-
export namespace CampaignDeleteParams {
|
|
481
|
-
/**
|
|
482
|
-
* Request to delete a campaign from a brand
|
|
483
|
-
*/
|
|
484
|
-
export interface Body extends WebhooksAPI.MutationRequest {}
|
|
485
|
-
}
|
|
486
|
-
|
|
487
478
|
export declare namespace Campaigns {
|
|
488
479
|
export {
|
|
489
480
|
type APIResponseOfTcrCampaignWithUseCases as APIResponseOfTcrCampaignWithUseCases,
|
|
@@ -190,13 +190,13 @@ export class Profiles extends APIResource {
|
|
|
190
190
|
*
|
|
191
191
|
* @example
|
|
192
192
|
* ```ts
|
|
193
|
-
* await client.profiles.delete('profileId'
|
|
193
|
+
* await client.profiles.delete('profileId');
|
|
194
194
|
* ```
|
|
195
195
|
*/
|
|
196
196
|
delete(profileID: string, params: ProfileDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
197
|
-
const {
|
|
197
|
+
const { 'x-profile-id': xProfileID, ...body } = params;
|
|
198
198
|
return this._client.delete(path`/v3/profiles/${profileID}`, {
|
|
199
|
-
body
|
|
199
|
+
body,
|
|
200
200
|
...options,
|
|
201
201
|
headers: buildHeaders([
|
|
202
202
|
{ Accept: '*/*', ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
|
|
@@ -236,7 +236,11 @@ export class Profiles extends APIResource {
|
|
|
236
236
|
* );
|
|
237
237
|
* ```
|
|
238
238
|
*/
|
|
239
|
-
complete(
|
|
239
|
+
complete(
|
|
240
|
+
profileID: string,
|
|
241
|
+
params: ProfileCompleteParams,
|
|
242
|
+
options?: RequestOptions,
|
|
243
|
+
): APIPromise<ProfileCompleteResponse> {
|
|
240
244
|
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
241
245
|
return this._client.post(path`/v3/profiles/${profileID}/complete`, {
|
|
242
246
|
body,
|
|
@@ -911,7 +915,50 @@ export namespace ProfileListResponse {
|
|
|
911
915
|
}
|
|
912
916
|
}
|
|
913
917
|
|
|
914
|
-
|
|
918
|
+
/**
|
|
919
|
+
* Standard API response envelope for all v3 endpoints
|
|
920
|
+
*/
|
|
921
|
+
export interface ProfileCompleteResponse {
|
|
922
|
+
/**
|
|
923
|
+
* Response when a profile is already in the completed state and no further action
|
|
924
|
+
* is taken.
|
|
925
|
+
*/
|
|
926
|
+
data?: ProfileCompleteResponse.Data | null;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Error information
|
|
930
|
+
*/
|
|
931
|
+
error?: WebhooksAPI.ErrorDetail | null;
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Request and response metadata
|
|
935
|
+
*/
|
|
936
|
+
meta?: WebhooksAPI.APIMeta;
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Indicates whether the request was successful
|
|
940
|
+
*/
|
|
941
|
+
success?: boolean;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
export namespace ProfileCompleteResponse {
|
|
945
|
+
/**
|
|
946
|
+
* Response when a profile is already in the completed state and no further action
|
|
947
|
+
* is taken.
|
|
948
|
+
*/
|
|
949
|
+
export interface Data {
|
|
950
|
+
/**
|
|
951
|
+
* Human-readable message describing the result.
|
|
952
|
+
*/
|
|
953
|
+
message?: string;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Current process status of the profile (e.g., "completed", "submitted",
|
|
957
|
+
* "in_progress").
|
|
958
|
+
*/
|
|
959
|
+
status?: string;
|
|
960
|
+
}
|
|
961
|
+
}
|
|
915
962
|
|
|
916
963
|
export interface ProfileCreateParams {
|
|
917
964
|
/**
|
|
@@ -1213,9 +1260,10 @@ export interface ProfileListParams {
|
|
|
1213
1260
|
|
|
1214
1261
|
export interface ProfileDeleteParams {
|
|
1215
1262
|
/**
|
|
1216
|
-
* Body param:
|
|
1263
|
+
* Body param: Sandbox flag - when true, the operation is simulated without side
|
|
1264
|
+
* effects Useful for testing integrations without actual execution
|
|
1217
1265
|
*/
|
|
1218
|
-
|
|
1266
|
+
sandbox?: boolean;
|
|
1219
1267
|
|
|
1220
1268
|
/**
|
|
1221
1269
|
* Header param: Profile UUID to scope the request to a child profile. Only
|
|
@@ -1225,13 +1273,6 @@ export interface ProfileDeleteParams {
|
|
|
1225
1273
|
'x-profile-id'?: string;
|
|
1226
1274
|
}
|
|
1227
1275
|
|
|
1228
|
-
export namespace ProfileDeleteParams {
|
|
1229
|
-
/**
|
|
1230
|
-
* Request to delete a profile
|
|
1231
|
-
*/
|
|
1232
|
-
export interface Body extends WebhooksAPI.MutationRequest {}
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
1276
|
export interface ProfileCompleteParams {
|
|
1236
1277
|
/**
|
|
1237
1278
|
* Body param: Webhook URL to call when profile completion finishes (success or
|
package/src/resources/users.ts
CHANGED
|
@@ -93,13 +93,13 @@ export class Users extends APIResource {
|
|
|
93
93
|
*
|
|
94
94
|
* @example
|
|
95
95
|
* ```ts
|
|
96
|
-
* await client.users.remove('userId'
|
|
96
|
+
* await client.users.remove('userId');
|
|
97
97
|
* ```
|
|
98
98
|
*/
|
|
99
99
|
remove(userID: string, params: UserRemoveParams, options?: RequestOptions): APIPromise<void> {
|
|
100
|
-
const {
|
|
100
|
+
const { 'x-profile-id': xProfileID, ...body } = params;
|
|
101
101
|
return this._client.delete(path`/v3/users/${userID}`, {
|
|
102
|
-
body
|
|
102
|
+
body,
|
|
103
103
|
...options,
|
|
104
104
|
headers: buildHeaders([
|
|
105
105
|
{ Accept: '*/*', ...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined) },
|
|
@@ -306,9 +306,10 @@ export interface UserInviteParams {
|
|
|
306
306
|
|
|
307
307
|
export interface UserRemoveParams {
|
|
308
308
|
/**
|
|
309
|
-
* Body param:
|
|
309
|
+
* Body param: Sandbox flag - when true, the operation is simulated without side
|
|
310
|
+
* effects Useful for testing integrations without actual execution
|
|
310
311
|
*/
|
|
311
|
-
|
|
312
|
+
sandbox?: boolean;
|
|
312
313
|
|
|
313
314
|
/**
|
|
314
315
|
* Header param: Profile UUID to scope the request to a child profile. Only
|
|
@@ -318,13 +319,6 @@ export interface UserRemoveParams {
|
|
|
318
319
|
'x-profile-id'?: string;
|
|
319
320
|
}
|
|
320
321
|
|
|
321
|
-
export namespace UserRemoveParams {
|
|
322
|
-
/**
|
|
323
|
-
* Request to remove a user from an organization
|
|
324
|
-
*/
|
|
325
|
-
export interface Body extends WebhooksAPI.MutationRequest {}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
322
|
export interface UserUpdateRoleParams {
|
|
329
323
|
/**
|
|
330
324
|
* Body param: User role: admin, billing, or developer (required)
|
|
@@ -189,7 +189,6 @@ export class Webhooks extends APIResource {
|
|
|
189
189
|
* ```ts
|
|
190
190
|
* const response = await client.webhooks.rotateSecret(
|
|
191
191
|
* 'd4f5a6b7-c8d9-4e0f-a1b2-c3d4e5f6a7b8',
|
|
192
|
-
* { body: {} },
|
|
193
192
|
* );
|
|
194
193
|
* ```
|
|
195
194
|
*/
|
|
@@ -198,9 +197,9 @@ export class Webhooks extends APIResource {
|
|
|
198
197
|
params: WebhookRotateSecretParams,
|
|
199
198
|
options?: RequestOptions,
|
|
200
199
|
): APIPromise<WebhookRotateSecretResponse> {
|
|
201
|
-
const {
|
|
200
|
+
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
202
201
|
return this._client.post(path`/v3/webhooks/${id}/rotate-secret`, {
|
|
203
|
-
body
|
|
202
|
+
body,
|
|
204
203
|
...options,
|
|
205
204
|
headers: buildHeaders([
|
|
206
205
|
{
|
|
@@ -398,6 +397,20 @@ export namespace PaginationMeta {
|
|
|
398
397
|
}
|
|
399
398
|
}
|
|
400
399
|
|
|
400
|
+
export interface WebhookEventType {
|
|
401
|
+
description?: string | null;
|
|
402
|
+
|
|
403
|
+
display_name?: string;
|
|
404
|
+
|
|
405
|
+
event_type?: string | null;
|
|
406
|
+
|
|
407
|
+
is_active?: boolean;
|
|
408
|
+
|
|
409
|
+
name?: string;
|
|
410
|
+
|
|
411
|
+
sub_types?: Array<WebhookEventType> | null;
|
|
412
|
+
}
|
|
413
|
+
|
|
401
414
|
export interface WebhookResponse {
|
|
402
415
|
id?: string;
|
|
403
416
|
|
|
@@ -497,23 +510,7 @@ export namespace WebhookListEventTypesResponse {
|
|
|
497
510
|
* The response data (null if error)
|
|
498
511
|
*/
|
|
499
512
|
export interface Data {
|
|
500
|
-
event_types?: Array<
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
export namespace Data {
|
|
504
|
-
export interface EventType {
|
|
505
|
-
description?: string | null;
|
|
506
|
-
|
|
507
|
-
display_name?: string;
|
|
508
|
-
|
|
509
|
-
event_type?: string | null;
|
|
510
|
-
|
|
511
|
-
is_active?: boolean;
|
|
512
|
-
|
|
513
|
-
name?: string;
|
|
514
|
-
|
|
515
|
-
sub_types?: Array<unknown> | null;
|
|
516
|
-
}
|
|
513
|
+
event_types?: Array<WebhooksAPI.WebhookEventType>;
|
|
517
514
|
}
|
|
518
515
|
}
|
|
519
516
|
|
|
@@ -835,9 +832,10 @@ export interface WebhookListEventsParams {
|
|
|
835
832
|
|
|
836
833
|
export interface WebhookRotateSecretParams {
|
|
837
834
|
/**
|
|
838
|
-
* Body param
|
|
835
|
+
* Body param: Sandbox flag - when true, the operation is simulated without side
|
|
836
|
+
* effects Useful for testing integrations without actual execution
|
|
839
837
|
*/
|
|
840
|
-
|
|
838
|
+
sandbox?: boolean;
|
|
841
839
|
|
|
842
840
|
/**
|
|
843
841
|
* Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
@@ -854,10 +852,6 @@ export interface WebhookRotateSecretParams {
|
|
|
854
852
|
'x-profile-id'?: string;
|
|
855
853
|
}
|
|
856
854
|
|
|
857
|
-
export namespace WebhookRotateSecretParams {
|
|
858
|
-
export interface Body extends WebhooksAPI.MutationRequest {}
|
|
859
|
-
}
|
|
860
|
-
|
|
861
855
|
export interface WebhookTestParams {
|
|
862
856
|
/**
|
|
863
857
|
* Body param
|
|
@@ -919,6 +913,7 @@ export declare namespace Webhooks {
|
|
|
919
913
|
type ErrorDetail as ErrorDetail,
|
|
920
914
|
type MutationRequest as MutationRequest,
|
|
921
915
|
type PaginationMeta as PaginationMeta,
|
|
916
|
+
type WebhookEventType as WebhookEventType,
|
|
922
917
|
type WebhookResponse as WebhookResponse,
|
|
923
918
|
type WebhookListResponse as WebhookListResponse,
|
|
924
919
|
type WebhookListEventTypesResponse as WebhookListEventTypesResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.25.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.25.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.25.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.25.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|