@connectedxm/admin-sdk 11.14.1 → 11.16.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.
@@ -0,0 +1,42 @@
1
+ # BaseWebhookFailure
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **webhookId** | **string** | | [default to undefined]
10
+ **error** | **string** | | [default to undefined]
11
+ **statusCode** | **number** | | [default to undefined]
12
+ **source** | **string** | | [default to undefined]
13
+ **sourceId** | **string** | | [default to undefined]
14
+ **attempts** | **number** | | [default to undefined]
15
+ **retries** | **number** | | [default to undefined]
16
+ **lastAttemptAt** | **string** | | [default to undefined]
17
+ **lockedAt** | **string** | | [default to undefined]
18
+ **createdAt** | **string** | | [default to undefined]
19
+ **updatedAt** | **string** | | [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { BaseWebhookFailure } from '@connectedxm/admin-sdk';
25
+
26
+ const instance: BaseWebhookFailure = {
27
+ id,
28
+ webhookId,
29
+ error,
30
+ statusCode,
31
+ source,
32
+ sourceId,
33
+ attempts,
34
+ retries,
35
+ lastAttemptAt,
36
+ lockedAt,
37
+ createdAt,
38
+ updatedAt,
39
+ };
40
+ ```
41
+
42
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # GetOrganizationWebhookFailure200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+ **data** | [**WebhookFailure**](WebhookFailure.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { GetOrganizationWebhookFailure200Response } from '@connectedxm/admin-sdk';
16
+
17
+ const instance: GetOrganizationWebhookFailure200Response = {
18
+ status,
19
+ message,
20
+ data,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # GetOrganizationWebhookFailures200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+ **data** | [**Array<BaseWebhookFailure>**](BaseWebhookFailure.md) | | [default to undefined]
11
+ **count** | **number** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { GetOrganizationWebhookFailures200Response } from '@connectedxm/admin-sdk';
17
+
18
+ const instance: GetOrganizationWebhookFailures200Response = {
19
+ status,
20
+ message,
21
+ data,
22
+ count,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -6,8 +6,13 @@ All URIs are relative to *https://admin-api.connected.dev*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**createOrganizationWebhook**](#createorganizationwebhook) | **POST** /organization/webhooks | Create an organization webhook|
8
8
  |[**deleteOrganizationWebhook**](#deleteorganizationwebhook) | **DELETE** /organization/webhooks/{webhookId} | Delete an organization webhook|
9
+ |[**deleteOrganizationWebhookFailure**](#deleteorganizationwebhookfailure) | **DELETE** /organization/webhooks/{webhookId}/failures/{failureId} | Discard a queued webhook delivery failure|
9
10
  |[**getOrganizationWebhook**](#getorganizationwebhook) | **GET** /organization/webhooks/{webhookId} | Get an organization webhook|
11
+ |[**getOrganizationWebhookFailure**](#getorganizationwebhookfailure) | **GET** /organization/webhooks/{webhookId}/failures/{failureId} | Get a queued webhook delivery failure|
12
+ |[**getOrganizationWebhookFailures**](#getorganizationwebhookfailures) | **GET** /organization/webhooks/{webhookId}/failures | List a webhook\'s queued delivery failures|
10
13
  |[**getOrganizationWebhooks**](#getorganizationwebhooks) | **GET** /organization/webhooks | List an organization\'s webhooks|
14
+ |[**retryOrganizationWebhookFailure**](#retryorganizationwebhookfailure) | **POST** /organization/webhooks/{webhookId}/failures/{failureId}/retry | Retry one queued webhook delivery|
15
+ |[**retryOrganizationWebhookFailures**](#retryorganizationwebhookfailures) | **POST** /organization/webhooks/{webhookId}/failures/retry | Retry all of a webhook\'s queued deliveries|
11
16
  |[**updateOrganizationWebhook**](#updateorganizationwebhook) | **PUT** /organization/webhooks/{webhookId} | Update an organization webhook|
12
17
  |[**verifyOrganizationWebhook**](#verifyorganizationwebhook) | **POST** /organization/webhooks/{webhookId}/verify | Verify an organization webhook endpoint|
13
18
 
@@ -93,6 +98,60 @@ const { status, data } = await apiInstance.deleteOrganizationWebhook(
93
98
  | **webhookId** | [**string**] | The webhook identifier | defaults to undefined|
94
99
 
95
100
 
101
+ ### Return type
102
+
103
+ **CreateAccountInvitations200Response**
104
+
105
+ ### Authorization
106
+
107
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: application/json
113
+
114
+
115
+ ### HTTP response details
116
+ | Status code | Description | Response headers |
117
+ |-------------|-------------|------------------|
118
+ |**200** | Successful response | - |
119
+
120
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
121
+
122
+ # **deleteOrganizationWebhookFailure**
123
+ > CreateAccountInvitations200Response deleteOrganizationWebhookFailure()
124
+
125
+ Removes a failed webhook delivery from the retry queue without re-sending it; the webhook returns to verified once its queue is empty. Requires organization read and update permissions.
126
+
127
+ ### Example
128
+
129
+ ```typescript
130
+ import {
131
+ OrganizationWebhooksApi,
132
+ Configuration
133
+ } from '@connectedxm/admin-sdk';
134
+
135
+ const configuration = new Configuration();
136
+ const apiInstance = new OrganizationWebhooksApi(configuration);
137
+
138
+ let webhookId: string; //The webhook identifier (default to undefined)
139
+ let failureId: string; //The failure identifier (default to undefined)
140
+
141
+ const { status, data } = await apiInstance.deleteOrganizationWebhookFailure(
142
+ webhookId,
143
+ failureId
144
+ );
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+ |Name | Type | Description | Notes|
150
+ |------------- | ------------- | ------------- | -------------|
151
+ | **webhookId** | [**string**] | The webhook identifier | defaults to undefined|
152
+ | **failureId** | [**string**] | The failure identifier | defaults to undefined|
153
+
154
+
96
155
  ### Return type
97
156
 
98
157
  **CreateAccountInvitations200Response**
@@ -158,6 +217,123 @@ const { status, data } = await apiInstance.getOrganizationWebhook(
158
217
  - **Accept**: application/json
159
218
 
160
219
 
220
+ ### HTTP response details
221
+ | Status code | Description | Response headers |
222
+ |-------------|-------------|------------------|
223
+ |**200** | Successful response | - |
224
+
225
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
226
+
227
+ # **getOrganizationWebhookFailure**
228
+ > GetOrganizationWebhookFailure200Response getOrganizationWebhookFailure()
229
+
230
+ Retrieves one failed webhook delivery by ID, including the exact payload that was sent, the last error and HTTP status, attempt and retry counts, and the webhook it belongs to; requires read permission on the org resource.
231
+
232
+ ### Example
233
+
234
+ ```typescript
235
+ import {
236
+ OrganizationWebhooksApi,
237
+ Configuration
238
+ } from '@connectedxm/admin-sdk';
239
+
240
+ const configuration = new Configuration();
241
+ const apiInstance = new OrganizationWebhooksApi(configuration);
242
+
243
+ let webhookId: string; //The webhook identifier (default to undefined)
244
+ let failureId: string; //The failure identifier (default to undefined)
245
+
246
+ const { status, data } = await apiInstance.getOrganizationWebhookFailure(
247
+ webhookId,
248
+ failureId
249
+ );
250
+ ```
251
+
252
+ ### Parameters
253
+
254
+ |Name | Type | Description | Notes|
255
+ |------------- | ------------- | ------------- | -------------|
256
+ | **webhookId** | [**string**] | The webhook identifier | defaults to undefined|
257
+ | **failureId** | [**string**] | The failure identifier | defaults to undefined|
258
+
259
+
260
+ ### Return type
261
+
262
+ **GetOrganizationWebhookFailure200Response**
263
+
264
+ ### Authorization
265
+
266
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
267
+
268
+ ### HTTP request headers
269
+
270
+ - **Content-Type**: Not defined
271
+ - **Accept**: application/json
272
+
273
+
274
+ ### HTTP response details
275
+ | Status code | Description | Response headers |
276
+ |-------------|-------------|------------------|
277
+ |**200** | Successful response | - |
278
+
279
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
280
+
281
+ # **getOrganizationWebhookFailures**
282
+ > GetOrganizationWebhookFailures200Response getOrganizationWebhookFailures()
283
+
284
+ Returns a paginated list of this webhook\'s outbound deliveries that failed and are waiting to be retried, newest first, searchable by error, source, or source id; requires read permission on the org resource.
285
+
286
+ ### Example
287
+
288
+ ```typescript
289
+ import {
290
+ OrganizationWebhooksApi,
291
+ Configuration
292
+ } from '@connectedxm/admin-sdk';
293
+
294
+ const configuration = new Configuration();
295
+ const apiInstance = new OrganizationWebhooksApi(configuration);
296
+
297
+ let webhookId: string; //The webhook identifier (default to undefined)
298
+ let page: number; //Page number (optional) (default to 1)
299
+ let pageSize: number; //Number of items per page (optional) (default to 25)
300
+ let orderBy: string; //Field to order by (optional) (default to undefined)
301
+ let search: string; //Search query (optional) (default to undefined)
302
+
303
+ const { status, data } = await apiInstance.getOrganizationWebhookFailures(
304
+ webhookId,
305
+ page,
306
+ pageSize,
307
+ orderBy,
308
+ search
309
+ );
310
+ ```
311
+
312
+ ### Parameters
313
+
314
+ |Name | Type | Description | Notes|
315
+ |------------- | ------------- | ------------- | -------------|
316
+ | **webhookId** | [**string**] | The webhook identifier | defaults to undefined|
317
+ | **page** | [**number**] | Page number | (optional) defaults to 1|
318
+ | **pageSize** | [**number**] | Number of items per page | (optional) defaults to 25|
319
+ | **orderBy** | [**string**] | Field to order by | (optional) defaults to undefined|
320
+ | **search** | [**string**] | Search query | (optional) defaults to undefined|
321
+
322
+
323
+ ### Return type
324
+
325
+ **GetOrganizationWebhookFailures200Response**
326
+
327
+ ### Authorization
328
+
329
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
330
+
331
+ ### HTTP request headers
332
+
333
+ - **Content-Type**: Not defined
334
+ - **Accept**: application/json
335
+
336
+
161
337
  ### HTTP response details
162
338
  | Status code | Description | Response headers |
163
339
  |-------------|-------------|------------------|
@@ -218,6 +394,111 @@ const { status, data } = await apiInstance.getOrganizationWebhooks(
218
394
  - **Accept**: application/json
219
395
 
220
396
 
397
+ ### HTTP response details
398
+ | Status code | Description | Response headers |
399
+ |-------------|-------------|------------------|
400
+ |**200** | Successful response | - |
401
+
402
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
403
+
404
+ # **retryOrganizationWebhookFailure**
405
+ > RetryOrganizationWebhookFailure200Response retryOrganizationWebhookFailure()
406
+
407
+ Re-sends the stored payload of a failed webhook delivery once. On success the failure is removed from the queue and the webhook returns to verified when its queue is empty; on failure the row is kept with its updated error and attempt counts, returned as `data.failure`. Responds 409 while another retry of the same delivery is in flight. Requires organization read and update permissions.
408
+
409
+ ### Example
410
+
411
+ ```typescript
412
+ import {
413
+ OrganizationWebhooksApi,
414
+ Configuration
415
+ } from '@connectedxm/admin-sdk';
416
+
417
+ const configuration = new Configuration();
418
+ const apiInstance = new OrganizationWebhooksApi(configuration);
419
+
420
+ let webhookId: string; //The webhook identifier (default to undefined)
421
+ let failureId: string; //The failure identifier (default to undefined)
422
+
423
+ const { status, data } = await apiInstance.retryOrganizationWebhookFailure(
424
+ webhookId,
425
+ failureId
426
+ );
427
+ ```
428
+
429
+ ### Parameters
430
+
431
+ |Name | Type | Description | Notes|
432
+ |------------- | ------------- | ------------- | -------------|
433
+ | **webhookId** | [**string**] | The webhook identifier | defaults to undefined|
434
+ | **failureId** | [**string**] | The failure identifier | defaults to undefined|
435
+
436
+
437
+ ### Return type
438
+
439
+ **RetryOrganizationWebhookFailure200Response**
440
+
441
+ ### Authorization
442
+
443
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
444
+
445
+ ### HTTP request headers
446
+
447
+ - **Content-Type**: Not defined
448
+ - **Accept**: application/json
449
+
450
+
451
+ ### HTTP response details
452
+ | Status code | Description | Response headers |
453
+ |-------------|-------------|------------------|
454
+ |**200** | Successful response | - |
455
+
456
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
457
+
458
+ # **retryOrganizationWebhookFailures**
459
+ > CreateAccountInvitations200Response retryOrganizationWebhookFailures()
460
+
461
+ Queues a background job that re-sends every failed delivery of this webhook, oldest first, stopping at the first failure so a down endpoint is not hammered. The job runs after this call returns, so nothing is invalidated here. Poll the webhook and its failures on an interval, with a timeout, until `_count.failures` reaches 0 or the oldest failure\'s `attempts` / `lastAttemptAt` advance and then hold still (the drain halted on a failed re-send). An unchanged count alone does not mean the job finished; it also looks like that before the job starts. Requires organization read and update permissions.
462
+
463
+ ### Example
464
+
465
+ ```typescript
466
+ import {
467
+ OrganizationWebhooksApi,
468
+ Configuration
469
+ } from '@connectedxm/admin-sdk';
470
+
471
+ const configuration = new Configuration();
472
+ const apiInstance = new OrganizationWebhooksApi(configuration);
473
+
474
+ let webhookId: string; //The webhook identifier (default to undefined)
475
+
476
+ const { status, data } = await apiInstance.retryOrganizationWebhookFailures(
477
+ webhookId
478
+ );
479
+ ```
480
+
481
+ ### Parameters
482
+
483
+ |Name | Type | Description | Notes|
484
+ |------------- | ------------- | ------------- | -------------|
485
+ | **webhookId** | [**string**] | The webhook identifier | defaults to undefined|
486
+
487
+
488
+ ### Return type
489
+
490
+ **CreateAccountInvitations200Response**
491
+
492
+ ### Authorization
493
+
494
+ [ApiKeyAuth](../README.md#ApiKeyAuth), [OrganizationId](../README.md#OrganizationId)
495
+
496
+ ### HTTP request headers
497
+
498
+ - **Content-Type**: Not defined
499
+ - **Accept**: application/json
500
+
501
+
221
502
  ### HTTP response details
222
503
  | Status code | Description | Response headers |
223
504
  |-------------|-------------|------------------|
@@ -0,0 +1,24 @@
1
+ # RetryOrganizationWebhookFailure200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | | [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+ **data** | [**WebhookFailureRetryResult**](WebhookFailureRetryResult.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { RetryOrganizationWebhookFailure200Response } from '@connectedxm/admin-sdk';
16
+
17
+ const instance: RetryOrganizationWebhookFailure200Response = {
18
+ status,
19
+ message,
20
+ data,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/Webhook.md CHANGED
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
9
9
  **url** | **string** | | [default to undefined]
10
10
  **name** | **string** | | [default to undefined]
11
11
  **verified** | **boolean** | | [default to undefined]
12
+ **status** | [**WebhookStatus**](WebhookStatus.md) | | [default to undefined]
13
+ **_count** | [**WebhookAllOfCount**](WebhookAllOfCount.md) | | [default to undefined]
12
14
  **createdAt** | **string** | | [default to undefined]
13
15
  **updatedAt** | **string** | | [default to undefined]
14
16
 
@@ -22,6 +24,8 @@ const instance: Webhook = {
22
24
  url,
23
25
  name,
24
26
  verified,
27
+ status,
28
+ _count,
25
29
  createdAt,
26
30
  updatedAt,
27
31
  };
@@ -1,21 +1,19 @@
1
- # AnnouncementAllOfCount
1
+ # WebhookAllOfCount
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **notifications** | **number** | | [default to undefined]
9
- **emailReceipt** | **number** | | [default to undefined]
8
+ **failures** | **number** | | [default to undefined]
10
9
 
11
10
  ## Example
12
11
 
13
12
  ```typescript
14
- import { AnnouncementAllOfCount } from '@connectedxm/admin-sdk';
13
+ import { WebhookAllOfCount } from '@connectedxm/admin-sdk';
15
14
 
16
- const instance: AnnouncementAllOfCount = {
17
- notifications,
18
- emailReceipt,
15
+ const instance: WebhookAllOfCount = {
16
+ failures,
19
17
  };
20
18
  ```
21
19
 
@@ -0,0 +1,46 @@
1
+ # WebhookFailure
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **webhookId** | **string** | | [default to undefined]
10
+ **error** | **string** | | [default to undefined]
11
+ **statusCode** | **number** | | [default to undefined]
12
+ **source** | **string** | | [default to undefined]
13
+ **sourceId** | **string** | | [default to undefined]
14
+ **attempts** | **number** | | [default to undefined]
15
+ **retries** | **number** | | [default to undefined]
16
+ **lastAttemptAt** | **string** | | [default to undefined]
17
+ **lockedAt** | **string** | | [default to undefined]
18
+ **createdAt** | **string** | | [default to undefined]
19
+ **updatedAt** | **string** | | [default to undefined]
20
+ **payload** | **{ [key: string]: any; }** | | [default to undefined]
21
+ **webhook** | [**BaseWebhook**](BaseWebhook.md) | | [default to undefined]
22
+
23
+ ## Example
24
+
25
+ ```typescript
26
+ import { WebhookFailure } from '@connectedxm/admin-sdk';
27
+
28
+ const instance: WebhookFailure = {
29
+ id,
30
+ webhookId,
31
+ error,
32
+ statusCode,
33
+ source,
34
+ sourceId,
35
+ attempts,
36
+ retries,
37
+ lastAttemptAt,
38
+ lockedAt,
39
+ createdAt,
40
+ updatedAt,
41
+ payload,
42
+ webhook,
43
+ };
44
+ ```
45
+
46
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # WebhookFailureRetryResult
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **success** | **boolean** | | [default to undefined]
9
+ **failure** | [**BaseWebhookFailure**](BaseWebhookFailure.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { WebhookFailureRetryResult } from '@connectedxm/admin-sdk';
15
+
16
+ const instance: WebhookFailureRetryResult = {
17
+ success,
18
+ failure,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,12 @@
1
+ # WebhookStatus
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Unverified` (value: `'unverified'`)
7
+
8
+ * `Verified` (value: `'verified'`)
9
+
10
+ * `Failed` (value: `'failed'`)
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin-sdk",
3
- "version": "11.14.1",
3
+ "version": "11.16.0",
4
4
  "description": "OpenAPI client for @connectedxm/admin-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {