@datocms/cma-client 3.3.5 → 3.3.7

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.
@@ -662,7 +662,6 @@ export type ItemInstancesHrefSchema = {
662
662
  * The maximum number of entities to return (defaults to 30, maximum is 500)
663
663
  */
664
664
  limit?: number;
665
- [k: string]: unknown;
666
665
  };
667
666
  /**
668
667
  * Fields used to order results. You **must** specify also `filter[type]` with one element only to be able use this option. Format: `<field_name>_(ASC|DESC)`, where `<field_name>` can be either the API key of a model's field, or one of the following meta columns: `id`, `_updated_at`, `_created_at`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `_is_valid`, `position` (only for sortable models). You can pass multiple comma separated rules.
@@ -916,7 +915,6 @@ export type ItemVersionInstancesHrefSchema = {
916
915
  * The maximum number of entities to return (defaults to 15, maximum is 50)
917
916
  */
918
917
  limit?: number;
919
- [k: string]: unknown;
920
918
  };
921
919
  [k: string]: unknown;
922
920
  };
@@ -985,7 +983,6 @@ export type UploadInstancesHrefSchema = {
985
983
  * The maximum number of entities to return (defaults to 30, maximum is 500)
986
984
  */
987
985
  limit?: number;
988
- [k: string]: unknown;
989
986
  };
990
987
  [k: string]: unknown;
991
988
  };
@@ -1123,7 +1120,6 @@ export type SearchResultInstancesHrefSchema = {
1123
1120
  * The maximum number of entities to return (defaults to 20, maximum is 100)
1124
1121
  */
1125
1122
  limit?: number;
1126
- [k: string]: unknown;
1127
1123
  };
1128
1124
  /**
1129
1125
  * Attributes to filter search results
@@ -1271,8 +1267,55 @@ export type WebhookCallInstancesHrefSchema = {
1271
1267
  * The maximum number of entities to return (defaults to 30, maximum is 500)
1272
1268
  */
1273
1269
  limit?: number;
1274
- [k: string]: unknown;
1275
1270
  };
1271
+ /**
1272
+ * Attributes to filter
1273
+ */
1274
+ filter?: {
1275
+ /**
1276
+ * IDs to fetch, comma separated
1277
+ */
1278
+ ids?: string;
1279
+ fields?: {
1280
+ webhook_id?: {
1281
+ eq?: string;
1282
+ };
1283
+ entity_type?: {
1284
+ /**
1285
+ * The subject of webhook triggering
1286
+ */
1287
+ eq?: 'item_type' | 'item' | 'upload' | 'build_trigger' | 'environment' | 'maintenance_mode' | 'sso_user' | 'cda_cache_tags';
1288
+ };
1289
+ event_type?: {
1290
+ /**
1291
+ * The event that triggers the webhook call
1292
+ */
1293
+ eq?: 'create' | 'update' | 'delete' | 'publish' | 'unpublish' | 'promote' | 'deploy_started' | 'deploy_succeeded' | 'deploy_failed' | 'change' | 'invalidate';
1294
+ };
1295
+ status?: {
1296
+ /**
1297
+ * The current status
1298
+ */
1299
+ eq?: 'pending' | 'success' | 'failed' | 'rescheduled';
1300
+ };
1301
+ last_sent_at?: {
1302
+ gt?: string;
1303
+ lt?: string;
1304
+ };
1305
+ next_retry_at?: {
1306
+ gt?: string;
1307
+ lt?: string;
1308
+ };
1309
+ created_at?: {
1310
+ gt?: string;
1311
+ lt?: string;
1312
+ };
1313
+ };
1314
+ };
1315
+ /**
1316
+ * Fields used to order results
1317
+ */
1318
+ order_by?: 'webhook_id_asc' | 'webhook_id_desc' | 'created_at_asc' | 'created_at_desc' | 'last_sent_at_asc' | 'last_sent_at_desc' | 'next_retry_at_asc' | 'next_retry_at_desc';
1276
1319
  [k: string]: unknown;
1277
1320
  };
1278
1321
  /**
@@ -1561,7 +1604,6 @@ export type UploadTagInstancesHrefSchema = {
1561
1604
  * The maximum number of entities to return (defaults to 50, maximum is 500)
1562
1605
  */
1563
1606
  limit?: number;
1564
- [k: string]: unknown;
1565
1607
  };
1566
1608
  [k: string]: unknown;
1567
1609
  };
@@ -1612,7 +1654,6 @@ export type UploadSmartTagInstancesHrefSchema = {
1612
1654
  * The maximum number of entities to return (defaults to 50, maximum is 500)
1613
1655
  */
1614
1656
  limit?: number;
1615
- [k: string]: unknown;
1616
1657
  };
1617
1658
  [k: string]: unknown;
1618
1659
  };
@@ -8087,12 +8128,19 @@ export type Webhook = {
8087
8128
  * Additional headers that will be sent
8088
8129
  */
8089
8130
  headers: {
8090
- [k: string]: unknown;
8131
+ [k: string]: string;
8091
8132
  };
8092
- /**
8093
- * All the events you will be notified for
8094
- */
8095
- events: unknown[];
8133
+ events: {
8134
+ /**
8135
+ * The subject of webhook triggering
8136
+ */
8137
+ entity_type: 'item_type' | 'item' | 'upload' | 'build_trigger' | 'environment' | 'maintenance_mode' | 'sso_user' | 'cda_cache_tags';
8138
+ event_types: ('create' | 'update' | 'delete' | 'publish' | 'unpublish' | 'promote' | 'deploy_started' | 'deploy_succeeded' | 'deploy_failed' | 'change' | 'invalidate')[];
8139
+ filters?: {
8140
+ entity_type: 'item_type' | 'item' | 'build_trigger' | 'environment' | 'environment_type';
8141
+ entity_ids: [string, ...string[]];
8142
+ }[] | null;
8143
+ }[];
8096
8144
  /**
8097
8145
  * Specifies which API version to use when serializing entities in the webhook payload
8098
8146
  */
@@ -8101,6 +8149,10 @@ export type Webhook = {
8101
8149
  * Whether the you want records present in the payload to show blocks expanded or not
8102
8150
  */
8103
8151
  nested_items_in_payload: boolean;
8152
+ /**
8153
+ * If enabled, the system will attempt to retry the call several times when the webhook operation fails due to timeouts or errors.
8154
+ */
8155
+ auto_retry: boolean;
8104
8156
  };
8105
8157
  export type WebhookCreateTargetSchema = Webhook;
8106
8158
  export type WebhookUpdateTargetSchema = Webhook;
@@ -8151,12 +8203,19 @@ export type WebhookAttributes = {
8151
8203
  * Additional headers that will be sent
8152
8204
  */
8153
8205
  headers: {
8154
- [k: string]: unknown;
8206
+ [k: string]: string;
8155
8207
  };
8156
- /**
8157
- * All the events you will be notified for
8158
- */
8159
- events: unknown[];
8208
+ events: {
8209
+ /**
8210
+ * The subject of webhook triggering
8211
+ */
8212
+ entity_type: 'item_type' | 'item' | 'upload' | 'build_trigger' | 'environment' | 'maintenance_mode' | 'sso_user' | 'cda_cache_tags';
8213
+ event_types: ('create' | 'update' | 'delete' | 'publish' | 'unpublish' | 'promote' | 'deploy_started' | 'deploy_succeeded' | 'deploy_failed' | 'change' | 'invalidate')[];
8214
+ filters?: {
8215
+ entity_type: 'item_type' | 'item' | 'build_trigger' | 'environment' | 'environment_type';
8216
+ entity_ids: [string, ...string[]];
8217
+ }[] | null;
8218
+ }[];
8160
8219
  /**
8161
8220
  * Specifies which API version to use when serializing entities in the webhook payload
8162
8221
  */
@@ -8165,6 +8224,10 @@ export type WebhookAttributes = {
8165
8224
  * Whether the you want records present in the payload to show blocks expanded or not
8166
8225
  */
8167
8226
  nested_items_in_payload: boolean;
8227
+ /**
8228
+ * If enabled, the system will attempt to retry the call several times when the webhook operation fails due to timeouts or errors.
8229
+ */
8230
+ auto_retry: boolean;
8168
8231
  };
8169
8232
  /**
8170
8233
  * This interface was referenced by `Webhook`'s JSON-Schema
@@ -8188,12 +8251,19 @@ export type WebhookCreateSchema = {
8188
8251
  * Additional headers that will be sent
8189
8252
  */
8190
8253
  headers: {
8191
- [k: string]: unknown;
8254
+ [k: string]: string;
8192
8255
  };
8193
- /**
8194
- * All the events you will be notified for
8195
- */
8196
- events: unknown[];
8256
+ events: {
8257
+ /**
8258
+ * The subject of webhook triggering
8259
+ */
8260
+ entity_type: 'item_type' | 'item' | 'upload' | 'build_trigger' | 'environment' | 'maintenance_mode' | 'sso_user' | 'cda_cache_tags';
8261
+ event_types: ('create' | 'update' | 'delete' | 'publish' | 'unpublish' | 'promote' | 'deploy_started' | 'deploy_succeeded' | 'deploy_failed' | 'change' | 'invalidate')[];
8262
+ filters?: {
8263
+ entity_type: 'item_type' | 'item' | 'build_trigger' | 'environment' | 'environment_type';
8264
+ entity_ids: [string, ...string[]];
8265
+ }[] | null;
8266
+ }[];
8197
8267
  /**
8198
8268
  * HTTP Basic Authorization username
8199
8269
  */
@@ -8214,6 +8284,10 @@ export type WebhookCreateSchema = {
8214
8284
  * Whether the you want records present in the payload to show blocks expanded or not
8215
8285
  */
8216
8286
  nested_items_in_payload?: boolean;
8287
+ /**
8288
+ * If enabled, the system will attempt to retry the call several times when the webhook operation fails due to timeouts or errors.
8289
+ */
8290
+ auto_retry?: boolean;
8217
8291
  };
8218
8292
  /**
8219
8293
  * This interface was referenced by `Webhook`'s JSON-Schema
@@ -8238,12 +8312,19 @@ export type WebhookUpdateSchema = {
8238
8312
  * Additional headers that will be sent
8239
8313
  */
8240
8314
  headers?: {
8241
- [k: string]: unknown;
8315
+ [k: string]: string;
8242
8316
  };
8243
- /**
8244
- * All the events you will be notified for
8245
- */
8246
- events?: unknown[];
8317
+ events?: {
8318
+ /**
8319
+ * The subject of webhook triggering
8320
+ */
8321
+ entity_type: 'item_type' | 'item' | 'upload' | 'build_trigger' | 'environment' | 'maintenance_mode' | 'sso_user' | 'cda_cache_tags';
8322
+ event_types: ('create' | 'update' | 'delete' | 'publish' | 'unpublish' | 'promote' | 'deploy_started' | 'deploy_succeeded' | 'deploy_failed' | 'change' | 'invalidate')[];
8323
+ filters?: {
8324
+ entity_type: 'item_type' | 'item' | 'build_trigger' | 'environment' | 'environment_type';
8325
+ entity_ids: [string, ...string[]];
8326
+ }[] | null;
8327
+ }[];
8247
8328
  /**
8248
8329
  * HTTP Basic Authorization username
8249
8330
  */
@@ -8264,6 +8345,10 @@ export type WebhookUpdateSchema = {
8264
8345
  * Whether the you want records present in the payload to show blocks expanded or not
8265
8346
  */
8266
8347
  nested_items_in_payload?: boolean;
8348
+ /**
8349
+ * If enabled, the system will attempt to retry the call several times when the webhook operation fails due to timeouts or errors.
8350
+ */
8351
+ auto_retry?: boolean;
8267
8352
  };
8268
8353
  /**
8269
8354
  * Represents a log entry in the webhooks activity list.
@@ -8277,13 +8362,13 @@ export type WebhookCall = {
8277
8362
  /**
8278
8363
  * The subject of webhook triggering
8279
8364
  */
8280
- entity_type: 'item' | 'item_type' | 'upload';
8365
+ entity_type: 'item_type' | 'item' | 'upload' | 'build_trigger' | 'environment' | 'maintenance_mode' | 'sso_user' | 'cda_cache_tags';
8281
8366
  /**
8282
8367
  * The event that triggers the webhook call
8283
8368
  */
8284
- event_type: 'create' | 'update' | 'delete' | 'publish' | 'unpublish';
8369
+ event_type: 'create' | 'update' | 'delete' | 'publish' | 'unpublish' | 'promote' | 'deploy_started' | 'deploy_succeeded' | 'deploy_failed' | 'change' | 'invalidate';
8285
8370
  /**
8286
- * The moment the call occurred
8371
+ * The moment the event was created
8287
8372
  */
8288
8373
  created_at: string;
8289
8374
  /**
@@ -8309,13 +8394,30 @@ export type WebhookCall = {
8309
8394
  */
8310
8395
  response_headers: {
8311
8396
  [k: string]: unknown;
8312
- };
8397
+ } | null;
8313
8398
  /**
8314
8399
  * The body of the response
8315
8400
  */
8316
8401
  response_payload: string | null;
8402
+ /**
8403
+ * The number of retries attempted so far
8404
+ */
8405
+ attempted_auto_retries_count: number;
8406
+ /**
8407
+ * The last moment the call occurred
8408
+ */
8409
+ last_sent_at: string;
8410
+ /**
8411
+ * The date when the next retry attempt is scheduled to run. If no retry attempt is scheduled, it is set to null
8412
+ */
8413
+ next_retry_at: string | null;
8414
+ /**
8415
+ * The current status
8416
+ */
8417
+ status: 'pending' | 'success' | 'failed' | 'rescheduled';
8317
8418
  webhook: WebhookData;
8318
8419
  };
8420
+ export type WebhookCallSelfTargetSchema = WebhookCall;
8319
8421
  /**
8320
8422
  * JSON API data
8321
8423
  *
@@ -8336,13 +8438,13 @@ export type WebhookCallAttributes = {
8336
8438
  /**
8337
8439
  * The subject of webhook triggering
8338
8440
  */
8339
- entity_type: 'item' | 'item_type' | 'upload';
8441
+ entity_type: 'item_type' | 'item' | 'upload' | 'build_trigger' | 'environment' | 'maintenance_mode' | 'sso_user' | 'cda_cache_tags';
8340
8442
  /**
8341
8443
  * The event that triggers the webhook call
8342
8444
  */
8343
- event_type: 'create' | 'update' | 'delete' | 'publish' | 'unpublish';
8445
+ event_type: 'create' | 'update' | 'delete' | 'publish' | 'unpublish' | 'promote' | 'deploy_started' | 'deploy_succeeded' | 'deploy_failed' | 'change' | 'invalidate';
8344
8446
  /**
8345
- * The moment the call occurred
8447
+ * The moment the event was created
8346
8448
  */
8347
8449
  created_at: string;
8348
8450
  /**
@@ -8368,11 +8470,27 @@ export type WebhookCallAttributes = {
8368
8470
  */
8369
8471
  response_headers: {
8370
8472
  [k: string]: unknown;
8371
- };
8473
+ } | null;
8372
8474
  /**
8373
8475
  * The body of the response
8374
8476
  */
8375
8477
  response_payload: string | null;
8478
+ /**
8479
+ * The number of retries attempted so far
8480
+ */
8481
+ attempted_auto_retries_count: number;
8482
+ /**
8483
+ * The last moment the call occurred
8484
+ */
8485
+ last_sent_at: string;
8486
+ /**
8487
+ * The date when the next retry attempt is scheduled to run. If no retry attempt is scheduled, it is set to null
8488
+ */
8489
+ next_retry_at: string | null;
8490
+ /**
8491
+ * The current status
8492
+ */
8493
+ status: 'pending' | 'success' | 'failed' | 'rescheduled';
8376
8494
  };
8377
8495
  /**
8378
8496
  * JSON API links
@@ -42,6 +42,7 @@ var Webhook = /** @class */ (function (_super) {
42
42
  'enabled',
43
43
  'payload_api_version',
44
44
  'nested_items_in_payload',
45
+ 'auto_retry',
45
46
  ],
46
47
  relationships: [],
47
48
  })).then(function (body) {
@@ -86,6 +87,7 @@ var Webhook = /** @class */ (function (_super) {
86
87
  'enabled',
87
88
  'payload_api_version',
88
89
  'nested_items_in_payload',
90
+ 'auto_retry',
89
91
  ],
90
92
  relationships: [],
91
93
  })).then(function (body) {
@@ -1 +1 @@
1
- {"version":3,"file":"Webhook.js","sourceRoot":"","sources":["../../../../src/generated/resources/Webhook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C;IAAqC,2BAAY;IAAjD;;IA6MA,CAAC;IA1MC;;;;;;;OAOG;IACH,wBAAM,GAAN,UAAO,IAA2C;QAChD,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAAkC,IAAI,EAAE;YAChE,IAAI,EAAE,SAAS;YACf,UAAU,EAAE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AS,CAAE;SAC9B,CAAC,CAAC;IACL,CAAC;IA3Me,YAAI,GAAG,SAAkB,CAAC;IA4M5C,cAAC;CAAA,AA7MD,CAAqC,YAAY,GA6MhD;eA7MoB,OAAO"}
1
+ {"version":3,"file":"Webhook.js","sourceRoot":"","sources":["../../../../src/generated/resources/Webhook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C;IAAqC,2BAAY;IAAjD;;IA+MA,CAAC;IA5MC;;;;;;;OAOG;IACH,wBAAM,GAAN,UAAO,IAA2C;QAChD,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAAkC,IAAI,EAAE;YAChE,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACV,MAAM;gBACN,KAAK;gBACL,gBAAgB;gBAChB,SAAS;gBACT,QAAQ;gBACR,iBAAiB;gBACjB,qBAAqB;gBACrB,SAAS;gBACT,qBAAqB;gBACrB,yBAAyB;gBACzB,YAAY;aACb;YACD,aAAa,EAAE,EAAE;SAClB,CAAC,CACH,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,2BAAS,GAAT,UACE,IAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAwC;YAChE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,WAAW;YAChB,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,wBAAM,GAAN,UACE,SAAiD,EACjD,IAA2C;QAE3C,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,EACrB,KAAK,CAAC,oBAAoB,CAAkC,IAAI,EAAE;YAChE,EAAE,EAAE,KAA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AAQ,SAAiB;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAsC;YAC9D,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,oBAAa,SAAS,CAAE;SAC9B,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,yBAAO,GAAP,UAAQ,SAAiD;QACvD,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAC,IAAI;YACtD,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,4BAAU,GAAV,UACE,SAAiB;QAEjB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAyC;YACjE,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,oBAAa,SAAS,CAAE;SAC9B,CAAC,CAAC;IACL,CAAC;IA7Me,YAAI,GAAG,SAAkB,CAAC;IA8M5C,cAAC;CAAA,AA/MD,CAAqC,YAAY,GA+MhD;eA/MoB,OAAO"}
@@ -40,6 +40,24 @@ export default class WebhookCall extends BaseResource {
40
40
  * @throws {TimeoutError}
41
41
  */
42
42
  rawListPagedIterator(queryParams?: Utils.OmitFromKnownKeys<SchemaTypes.WebhookCallInstancesHrefSchema, 'page'>, iteratorOptions?: Utils.IteratorOptions): AsyncGenerator<SchemaTypes.WebhookCall, void, unknown>;
43
+ /**
44
+ * Retrieve a webhook call
45
+ *
46
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/webhook-call/self
47
+ *
48
+ * @throws {ApiError}
49
+ * @throws {TimeoutError}
50
+ */
51
+ find(webhookCallId: string | SimpleSchemaTypes.WebhookCallData): Promise<SimpleSchemaTypes.WebhookCall>;
52
+ /**
53
+ * Retrieve a webhook call
54
+ *
55
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/webhook-call/self
56
+ *
57
+ * @throws {ApiError}
58
+ * @throws {TimeoutError}
59
+ */
60
+ rawFind(webhookCallId: string): Promise<SchemaTypes.WebhookCallSelfTargetSchema>;
43
61
  /**
44
62
  * Re-send the webhook call
45
63
  *
@@ -181,6 +181,33 @@ var WebhookCall = /** @class */ (function (_super) {
181
181
  return _this.rawList(__assign(__assign({}, queryParams), { page: page }));
182
182
  }, iteratorOptions);
183
183
  };
184
+ /**
185
+ * Retrieve a webhook call
186
+ *
187
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/webhook-call/self
188
+ *
189
+ * @throws {ApiError}
190
+ * @throws {TimeoutError}
191
+ */
192
+ WebhookCall.prototype.find = function (webhookCallId) {
193
+ return this.rawFind(Utils.toId(webhookCallId)).then(function (body) {
194
+ return Utils.deserializeResponseBody(body);
195
+ });
196
+ };
197
+ /**
198
+ * Retrieve a webhook call
199
+ *
200
+ * Read more: https://www.datocms.com/docs/content-management-api/resources/webhook-call/self
201
+ *
202
+ * @throws {ApiError}
203
+ * @throws {TimeoutError}
204
+ */
205
+ WebhookCall.prototype.rawFind = function (webhookCallId) {
206
+ return this.client.request({
207
+ method: 'GET',
208
+ url: "/webhook_calls/".concat(webhookCallId),
209
+ });
210
+ };
184
211
  /**
185
212
  * Re-send the webhook call
186
213
  *
@@ -1 +1 @@
1
- {"version":3,"file":"WebhookCall.js","sourceRoot":"","sources":["../../../../src/generated/resources/WebhookCall.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C;IAAyC,+BAAY;IAArD;;IAsHA,CAAC;IAnHC;;;;;;;OAOG;IACH,0BAAI,GAAJ,UAAK,WAA8D;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,UAAC,IAAI;YACzC,OAAA,KAAK,CAAC,uBAAuB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AM,oBAAiB;SAC/C,CAAC,CAAC;IACL,CAAC;IApHe,gBAAI,GAAG,cAAuB,CAAC;IAqHjD,kBAAC;CAAA,AAtHD,CAAyC,YAAY,GAsHpD;eAtHoB,WAAW"}
1
+ {"version":3,"file":"WebhookCall.js","sourceRoot":"","sources":["../../../../src/generated/resources/WebhookCall.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AACpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAI9C;IAAyC,+BAAY;IAArD;;IAuJA,CAAC;IApJC;;;;;;;OAOG;IACH,0BAAI,GAAJ,UAAK,WAA8D;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,UAAC,IAAI;YACzC,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,6BAAO,GAAP,UACE,WAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA+C;YACvE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,gBAAgB;YACrB,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACI,uCAAiB,GAAxB,UACE,WAGC,EACD,eAAuC;;;;;;;;mCAEX,KAAA,cAAA,IAAI,CAAC,oBAAoB,CACnD,WAAW,EACX,eAAe,CAChB,CAAA;;;;;wBAH2B,cAG3B;wBAH2B,WAG3B;;;;wBAHgB,OAAO,KAAA,CAAA;qDAIhB,KAAK,CAAC,qBAAqB,CAE/B,OAAO,CAAC;4BAFV,gCAEU;;wBAFV,SAEU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEd;IAED;;;;;;;OAOG;IACH,0CAAoB,GAApB,UACE,WAGC,EACD,eA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