@emilgroup/webhook-sdk-node 1.0.1-beta.1 → 1.0.1-beta.12

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.
Files changed (43) hide show
  1. package/.openapi-generator/FILES +9 -1
  2. package/README.md +2 -2
  3. package/api/{health-api.ts → health-checks-api.ts} +45 -19
  4. package/api/inbound-webhooks-api.ts +417 -8
  5. package/api/trigger-inbound-webhooks-api.ts +178 -0
  6. package/api/webhook-requests-api.ts +250 -0
  7. package/api.ts +6 -2
  8. package/dist/api/{health-api.d.ts → health-checks-api.d.ts} +31 -14
  9. package/dist/api/{health-api.js → health-checks-api.js} +60 -42
  10. package/dist/api/inbound-webhooks-api.d.ts +239 -8
  11. package/dist/api/inbound-webhooks-api.js +328 -8
  12. package/dist/api/trigger-inbound-webhooks-api.d.ts +105 -0
  13. package/dist/api/trigger-inbound-webhooks-api.js +233 -0
  14. package/dist/api/webhook-requests-api.d.ts +150 -0
  15. package/dist/api/webhook-requests-api.js +264 -0
  16. package/dist/api.d.ts +3 -1
  17. package/dist/api.js +3 -1
  18. package/dist/models/create-inbound-webhook-request-dto.d.ts +0 -6
  19. package/dist/models/inbound-webhook-class.d.ts +6 -6
  20. package/dist/models/index.d.ts +6 -0
  21. package/dist/models/index.js +6 -0
  22. package/dist/models/list-inbound-webhook-response-class.d.ts +43 -0
  23. package/dist/models/list-inbound-webhook-response-class.js +15 -0
  24. package/dist/models/list-webhook-requests-response-class.d.ts +43 -0
  25. package/dist/models/list-webhook-requests-response-class.js +15 -0
  26. package/dist/models/trigger-inbound-webhook-response-class.d.ts +42 -0
  27. package/dist/models/trigger-inbound-webhook-response-class.js +15 -0
  28. package/dist/models/update-inbound-webhook-request-dto.d.ts +54 -0
  29. package/dist/models/update-inbound-webhook-request-dto.js +21 -0
  30. package/dist/models/update-inbound-webhook-response-class.d.ts +25 -0
  31. package/dist/models/update-inbound-webhook-response-class.js +15 -0
  32. package/dist/models/webhook-request-class.d.ts +139 -0
  33. package/dist/models/webhook-request-class.js +22 -0
  34. package/models/create-inbound-webhook-request-dto.ts +0 -6
  35. package/models/inbound-webhook-class.ts +6 -6
  36. package/models/index.ts +6 -0
  37. package/models/list-inbound-webhook-response-class.ts +49 -0
  38. package/models/list-webhook-requests-response-class.ts +49 -0
  39. package/models/trigger-inbound-webhook-response-class.ts +48 -0
  40. package/models/update-inbound-webhook-request-dto.ts +63 -0
  41. package/models/update-inbound-webhook-response-class.ts +31 -0
  42. package/models/webhook-request-class.ts +148 -0
  43. package/package.json +2 -2
@@ -26,6 +26,12 @@ import { CreateInboundWebhookRequestDto } from '../models';
26
26
  import { CreateInboundWebhookResponseClass } from '../models';
27
27
  // @ts-ignore
28
28
  import { GetInboundWebhookResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListInboundWebhookResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateInboundWebhookRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateInboundWebhookResponseClass } from '../models';
29
35
  // URLSearchParams not necessarily used
30
36
  // @ts-ignore
31
37
  import { URL, URLSearchParams } from 'url';
@@ -37,7 +43,7 @@ const FormData = require('form-data');
37
43
  export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
38
44
  return {
39
45
  /**
40
- * Creates a new inbound webhook configuration **Required Permissions** none
46
+ * Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
41
47
  * @summary Create the inbound webhook
42
48
  * @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
43
49
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -84,7 +90,52 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
84
90
  };
85
91
  },
86
92
  /**
87
- * Retrieves an inbound webhook by its code **Required Permissions** none
93
+ * Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
94
+ * @summary Delete the inbound webhook
95
+ * @param {string} code Unique identifier code for the inbound webhook
96
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ deleteInboundWebhook: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ // verify required parameter 'code' is not null or undefined
102
+ assertParamExists('deleteInboundWebhook', 'code', code)
103
+ const localVarPath = `/webhookservice/v1/inbound-webhooks/{code}`
104
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ let baseAccessToken;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ baseAccessToken = configuration.accessToken;
112
+ }
113
+
114
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
115
+ const localVarHeaderParameter = {} as any;
116
+ const localVarQueryParameter = {} as any;
117
+
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
+
122
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
+ }
125
+
126
+
127
+
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
137
+ /**
138
+ * Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
88
139
  * @summary Retrieve the inbound webhook
89
140
  * @param {string} code Unique identifier code for the inbound webhook
90
141
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -123,6 +174,133 @@ export const InboundWebhooksApiAxiosParamCreator = function (configuration?: Con
123
174
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
175
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
125
176
 
177
+ return {
178
+ url: toPathString(localVarUrlObj),
179
+ options: localVarRequestOptions,
180
+ };
181
+ },
182
+ /**
183
+ * Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
184
+ * @summary List inbound webhooks
185
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
186
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
187
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
188
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
189
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
190
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
191
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
192
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ listInboundWebhooks: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
+ const localVarPath = `/webhookservice/v1/inbound-webhooks`;
198
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
200
+ let baseOptions;
201
+ let baseAccessToken;
202
+ if (configuration) {
203
+ baseOptions = configuration.baseOptions;
204
+ baseAccessToken = configuration.accessToken;
205
+ }
206
+
207
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
208
+ const localVarHeaderParameter = {} as any;
209
+ const localVarQueryParameter = {} as any;
210
+
211
+ // authentication bearer required
212
+ // http bearer authentication required
213
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
214
+
215
+ if (pageSize !== undefined) {
216
+ localVarQueryParameter['pageSize'] = pageSize;
217
+ }
218
+
219
+ if (pageToken !== undefined) {
220
+ localVarQueryParameter['pageToken'] = pageToken;
221
+ }
222
+
223
+ if (filter !== undefined) {
224
+ localVarQueryParameter['filter'] = filter;
225
+ }
226
+
227
+ if (search !== undefined) {
228
+ localVarQueryParameter['search'] = search;
229
+ }
230
+
231
+ if (order !== undefined) {
232
+ localVarQueryParameter['order'] = order;
233
+ }
234
+
235
+ if (expand !== undefined) {
236
+ localVarQueryParameter['expand'] = expand;
237
+ }
238
+
239
+ if (filters !== undefined) {
240
+ localVarQueryParameter['filters'] = filters;
241
+ }
242
+
243
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
244
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
245
+ }
246
+
247
+
248
+
249
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
250
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
251
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
252
+
253
+ return {
254
+ url: toPathString(localVarUrlObj),
255
+ options: localVarRequestOptions,
256
+ };
257
+ },
258
+ /**
259
+ * Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
260
+ * @summary Update the inbound webhook
261
+ * @param {string} code Unique identifier code for the inbound webhook
262
+ * @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
263
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ updateInboundWebhook: async (code: string, updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
268
+ // verify required parameter 'code' is not null or undefined
269
+ assertParamExists('updateInboundWebhook', 'code', code)
270
+ // verify required parameter 'updateInboundWebhookRequestDto' is not null or undefined
271
+ assertParamExists('updateInboundWebhook', 'updateInboundWebhookRequestDto', updateInboundWebhookRequestDto)
272
+ const localVarPath = `/webhookservice/v1/inbound-webhooks/{code}`
273
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
274
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
275
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
276
+ let baseOptions;
277
+ let baseAccessToken;
278
+ if (configuration) {
279
+ baseOptions = configuration.baseOptions;
280
+ baseAccessToken = configuration.accessToken;
281
+ }
282
+
283
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
284
+ const localVarHeaderParameter = {} as any;
285
+ const localVarQueryParameter = {} as any;
286
+
287
+ // authentication bearer required
288
+ // http bearer authentication required
289
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
290
+
291
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
292
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
293
+ }
294
+
295
+
296
+
297
+ localVarHeaderParameter['Content-Type'] = 'application/json';
298
+
299
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
300
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
301
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
302
+ localVarRequestOptions.data = serializeDataIfNeeded(updateInboundWebhookRequestDto, localVarRequestOptions, configuration)
303
+
126
304
  return {
127
305
  url: toPathString(localVarUrlObj),
128
306
  options: localVarRequestOptions,
@@ -139,7 +317,7 @@ export const InboundWebhooksApiFp = function(configuration?: Configuration) {
139
317
  const localVarAxiosParamCreator = InboundWebhooksApiAxiosParamCreator(configuration)
140
318
  return {
141
319
  /**
142
- * Creates a new inbound webhook configuration **Required Permissions** none
320
+ * Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
143
321
  * @summary Create the inbound webhook
144
322
  * @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
145
323
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -151,7 +329,19 @@ export const InboundWebhooksApiFp = function(configuration?: Configuration) {
151
329
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
152
330
  },
153
331
  /**
154
- * Retrieves an inbound webhook by its code **Required Permissions** none
332
+ * Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
333
+ * @summary Delete the inbound webhook
334
+ * @param {string} code Unique identifier code for the inbound webhook
335
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ async deleteInboundWebhook(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInboundWebhook(code, authorization, options);
341
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
342
+ },
343
+ /**
344
+ * Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
155
345
  * @summary Retrieve the inbound webhook
156
346
  * @param {string} code Unique identifier code for the inbound webhook
157
347
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -162,6 +352,37 @@ export const InboundWebhooksApiFp = function(configuration?: Configuration) {
162
352
  const localVarAxiosArgs = await localVarAxiosParamCreator.getInboundWebhook(code, authorization, options);
163
353
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
164
354
  },
355
+ /**
356
+ * Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
357
+ * @summary List inbound webhooks
358
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
359
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
360
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
361
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
362
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
363
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
364
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
365
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ async listInboundWebhooks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInboundWebhookResponseClass>> {
370
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInboundWebhooks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
371
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
372
+ },
373
+ /**
374
+ * Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
375
+ * @summary Update the inbound webhook
376
+ * @param {string} code Unique identifier code for the inbound webhook
377
+ * @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
378
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ async updateInboundWebhook(code: string, updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateInboundWebhookResponseClass>> {
383
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateInboundWebhook(code, updateInboundWebhookRequestDto, authorization, options);
384
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
385
+ },
165
386
  }
166
387
  };
167
388
 
@@ -173,7 +394,7 @@ export const InboundWebhooksApiFactory = function (configuration?: Configuration
173
394
  const localVarFp = InboundWebhooksApiFp(configuration)
174
395
  return {
175
396
  /**
176
- * Creates a new inbound webhook configuration **Required Permissions** none
397
+ * Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
177
398
  * @summary Create the inbound webhook
178
399
  * @param {CreateInboundWebhookRequestDto} createInboundWebhookRequestDto
179
400
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -184,7 +405,18 @@ export const InboundWebhooksApiFactory = function (configuration?: Configuration
184
405
  return localVarFp.createInboundWebhook(createInboundWebhookRequestDto, authorization, options).then((request) => request(axios, basePath));
185
406
  },
186
407
  /**
187
- * Retrieves an inbound webhook by its code **Required Permissions** none
408
+ * Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
409
+ * @summary Delete the inbound webhook
410
+ * @param {string} code Unique identifier code for the inbound webhook
411
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ deleteInboundWebhook(code: string, authorization?: string, options?: any): AxiosPromise<void> {
416
+ return localVarFp.deleteInboundWebhook(code, authorization, options).then((request) => request(axios, basePath));
417
+ },
418
+ /**
419
+ * Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
188
420
  * @summary Retrieve the inbound webhook
189
421
  * @param {string} code Unique identifier code for the inbound webhook
190
422
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -194,6 +426,35 @@ export const InboundWebhooksApiFactory = function (configuration?: Configuration
194
426
  getInboundWebhook(code: string, authorization?: string, options?: any): AxiosPromise<GetInboundWebhookResponseClass> {
195
427
  return localVarFp.getInboundWebhook(code, authorization, options).then((request) => request(axios, basePath));
196
428
  },
429
+ /**
430
+ * Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
431
+ * @summary List inbound webhooks
432
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
433
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
434
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
435
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
436
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
437
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
438
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
439
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ listInboundWebhooks(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListInboundWebhookResponseClass> {
444
+ return localVarFp.listInboundWebhooks(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
445
+ },
446
+ /**
447
+ * Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
448
+ * @summary Update the inbound webhook
449
+ * @param {string} code Unique identifier code for the inbound webhook
450
+ * @param {UpdateInboundWebhookRequestDto} updateInboundWebhookRequestDto
451
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
452
+ * @param {*} [options] Override http request option.
453
+ * @throws {RequiredError}
454
+ */
455
+ updateInboundWebhook(code: string, updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateInboundWebhookResponseClass> {
456
+ return localVarFp.updateInboundWebhook(code, updateInboundWebhookRequestDto, authorization, options).then((request) => request(axios, basePath));
457
+ },
197
458
  };
198
459
  };
199
460
 
@@ -218,6 +479,27 @@ export interface InboundWebhooksApiCreateInboundWebhookRequest {
218
479
  readonly authorization?: string
219
480
  }
220
481
 
482
+ /**
483
+ * Request parameters for deleteInboundWebhook operation in InboundWebhooksApi.
484
+ * @export
485
+ * @interface InboundWebhooksApiDeleteInboundWebhookRequest
486
+ */
487
+ export interface InboundWebhooksApiDeleteInboundWebhookRequest {
488
+ /**
489
+ * Unique identifier code for the inbound webhook
490
+ * @type {string}
491
+ * @memberof InboundWebhooksApiDeleteInboundWebhook
492
+ */
493
+ readonly code: string
494
+
495
+ /**
496
+ * Bearer Token: provided by the login endpoint under the name accessToken.
497
+ * @type {string}
498
+ * @memberof InboundWebhooksApiDeleteInboundWebhook
499
+ */
500
+ readonly authorization?: string
501
+ }
502
+
221
503
  /**
222
504
  * Request parameters for getInboundWebhook operation in InboundWebhooksApi.
223
505
  * @export
@@ -239,6 +521,97 @@ export interface InboundWebhooksApiGetInboundWebhookRequest {
239
521
  readonly authorization?: string
240
522
  }
241
523
 
524
+ /**
525
+ * Request parameters for listInboundWebhooks operation in InboundWebhooksApi.
526
+ * @export
527
+ * @interface InboundWebhooksApiListInboundWebhooksRequest
528
+ */
529
+ export interface InboundWebhooksApiListInboundWebhooksRequest {
530
+ /**
531
+ * Bearer Token: provided by the login endpoint under the name accessToken.
532
+ * @type {string}
533
+ * @memberof InboundWebhooksApiListInboundWebhooks
534
+ */
535
+ readonly authorization?: string
536
+
537
+ /**
538
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
539
+ * @type {number}
540
+ * @memberof InboundWebhooksApiListInboundWebhooks
541
+ */
542
+ readonly pageSize?: number
543
+
544
+ /**
545
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
546
+ * @type {string}
547
+ * @memberof InboundWebhooksApiListInboundWebhooks
548
+ */
549
+ readonly pageToken?: string
550
+
551
+ /**
552
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
553
+ * @type {string}
554
+ * @memberof InboundWebhooksApiListInboundWebhooks
555
+ */
556
+ readonly filter?: string
557
+
558
+ /**
559
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
560
+ * @type {string}
561
+ * @memberof InboundWebhooksApiListInboundWebhooks
562
+ */
563
+ readonly search?: string
564
+
565
+ /**
566
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, workflowCode, createdAt, updatedAt&lt;/i&gt;
567
+ * @type {string}
568
+ * @memberof InboundWebhooksApiListInboundWebhooks
569
+ */
570
+ readonly order?: string
571
+
572
+ /**
573
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
574
+ * @type {string}
575
+ * @memberof InboundWebhooksApiListInboundWebhooks
576
+ */
577
+ readonly expand?: string
578
+
579
+ /**
580
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, name, slug, isEnabled, externalRefLocation, workflowCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
581
+ * @type {string}
582
+ * @memberof InboundWebhooksApiListInboundWebhooks
583
+ */
584
+ readonly filters?: string
585
+ }
586
+
587
+ /**
588
+ * Request parameters for updateInboundWebhook operation in InboundWebhooksApi.
589
+ * @export
590
+ * @interface InboundWebhooksApiUpdateInboundWebhookRequest
591
+ */
592
+ export interface InboundWebhooksApiUpdateInboundWebhookRequest {
593
+ /**
594
+ * Unique identifier code for the inbound webhook
595
+ * @type {string}
596
+ * @memberof InboundWebhooksApiUpdateInboundWebhook
597
+ */
598
+ readonly code: string
599
+
600
+ /**
601
+ *
602
+ * @type {UpdateInboundWebhookRequestDto}
603
+ * @memberof InboundWebhooksApiUpdateInboundWebhook
604
+ */
605
+ readonly updateInboundWebhookRequestDto: UpdateInboundWebhookRequestDto
606
+
607
+ /**
608
+ * Bearer Token: provided by the login endpoint under the name accessToken.
609
+ * @type {string}
610
+ * @memberof InboundWebhooksApiUpdateInboundWebhook
611
+ */
612
+ readonly authorization?: string
613
+ }
614
+
242
615
  /**
243
616
  * InboundWebhooksApi - object-oriented interface
244
617
  * @export
@@ -247,7 +620,7 @@ export interface InboundWebhooksApiGetInboundWebhookRequest {
247
620
  */
248
621
  export class InboundWebhooksApi extends BaseAPI {
249
622
  /**
250
- * Creates a new inbound webhook configuration **Required Permissions** none
623
+ * Creates a new inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.create\"
251
624
  * @summary Create the inbound webhook
252
625
  * @param {InboundWebhooksApiCreateInboundWebhookRequest} requestParameters Request parameters.
253
626
  * @param {*} [options] Override http request option.
@@ -259,7 +632,19 @@ export class InboundWebhooksApi extends BaseAPI {
259
632
  }
260
633
 
261
634
  /**
262
- * Retrieves an inbound webhook by its code **Required Permissions** none
635
+ * Deletes an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.delete\"
636
+ * @summary Delete the inbound webhook
637
+ * @param {InboundWebhooksApiDeleteInboundWebhookRequest} requestParameters Request parameters.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ * @memberof InboundWebhooksApi
641
+ */
642
+ public deleteInboundWebhook(requestParameters: InboundWebhooksApiDeleteInboundWebhookRequest, options?: AxiosRequestConfig) {
643
+ return InboundWebhooksApiFp(this.configuration).deleteInboundWebhook(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
644
+ }
645
+
646
+ /**
647
+ * Retrieves an inbound webhook by its code **Required Permissions** \"webhook-management.webhooks.view\"
263
648
  * @summary Retrieve the inbound webhook
264
649
  * @param {InboundWebhooksApiGetInboundWebhookRequest} requestParameters Request parameters.
265
650
  * @param {*} [options] Override http request option.
@@ -269,4 +654,28 @@ export class InboundWebhooksApi extends BaseAPI {
269
654
  public getInboundWebhook(requestParameters: InboundWebhooksApiGetInboundWebhookRequest, options?: AxiosRequestConfig) {
270
655
  return InboundWebhooksApiFp(this.configuration).getInboundWebhook(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
271
656
  }
657
+
658
+ /**
659
+ * Lists all inbound webhooks with optional filters **Required Permissions** \"webhook-management.webhooks.view\"
660
+ * @summary List inbound webhooks
661
+ * @param {InboundWebhooksApiListInboundWebhooksRequest} requestParameters Request parameters.
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ * @memberof InboundWebhooksApi
665
+ */
666
+ public listInboundWebhooks(requestParameters: InboundWebhooksApiListInboundWebhooksRequest = {}, options?: AxiosRequestConfig) {
667
+ return InboundWebhooksApiFp(this.configuration).listInboundWebhooks(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
668
+ }
669
+
670
+ /**
671
+ * Updates an existing inbound webhook configuration **Required Permissions** \"webhook-management.webhooks.update\"
672
+ * @summary Update the inbound webhook
673
+ * @param {InboundWebhooksApiUpdateInboundWebhookRequest} requestParameters Request parameters.
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ * @memberof InboundWebhooksApi
677
+ */
678
+ public updateInboundWebhook(requestParameters: InboundWebhooksApiUpdateInboundWebhookRequest, options?: AxiosRequestConfig) {
679
+ return InboundWebhooksApiFp(this.configuration).updateInboundWebhook(requestParameters.code, requestParameters.updateInboundWebhookRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
680
+ }
272
681
  }