@celigo/api-specs 0.2.239 → 0.2.240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/marketplace.yml +22 -0
- package/dist/template.yml +13 -2
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/marketplace.yml
CHANGED
|
@@ -266,6 +266,28 @@ paths:
|
|
|
266
266
|
errors:
|
|
267
267
|
- code: invalid_ref
|
|
268
268
|
message: Template not found.
|
|
269
|
+
'422':
|
|
270
|
+
description: |-
|
|
271
|
+
The platform could not read the template's published zip (`corrupted_file`).
|
|
272
|
+
The copy stored for this region is unreadable, so every caller in the
|
|
273
|
+
region gets this on the listing's preview and on
|
|
274
|
+
`POST /v1/integrations/template/{_id}`, which reads the same zip before
|
|
275
|
+
anything is created; nothing in the caller's account causes it and
|
|
276
|
+
retrying does not help. Report the listing to Celigo Support. Each
|
|
277
|
+
region keeps its own published zip under its own listing id, so this
|
|
278
|
+
id may not exist in another region. The UI shows the message as a
|
|
279
|
+
toast when the listing is opened.
|
|
280
|
+
content:
|
|
281
|
+
application/json:
|
|
282
|
+
schema:
|
|
283
|
+
$ref: '#/components/schemas/Error'
|
|
284
|
+
examples:
|
|
285
|
+
corrupted:
|
|
286
|
+
summary: The listing's published zip is unreadable in this region
|
|
287
|
+
value:
|
|
288
|
+
errors:
|
|
289
|
+
- code: corrupted_file
|
|
290
|
+
message: Looks like the uploaded zip is corrupted. Please contact Celigo support if the issue persists.
|
|
269
291
|
/v1/published:
|
|
270
292
|
get:
|
|
271
293
|
x-internal: false
|
package/dist/template.yml
CHANGED
|
@@ -350,6 +350,7 @@ paths:
|
|
|
350
350
|
x-celigo-ai-guidance:
|
|
351
351
|
- Read `GET /v1/templates/{_id}/preview` first. Every `Connection` object's `_id` must be a key of `connectionMap`, and an `installSteps` entry with `type` `template_zip` on the `Integration` object means this endpoint refuses the template — send the user to the marketplace installer instead.
|
|
352
352
|
- Never retry this POST after a timeout or an ambiguous failure without first listing integrations for one carrying this template's `_templateId`, created by the earlier request. If it exists, the install went through; a second request installs a duplicate.
|
|
353
|
+
- A 422 `corrupted_file` is the listing's published zip, not the `connectionMap`: the same listing's preview fails identically for every user in the region, so neither a retry nor a different mapping helps — tell the user the listing's stored copy is defective and report it to Celigo Support by name.
|
|
353
354
|
parameters:
|
|
354
355
|
- name: _id
|
|
355
356
|
in: path
|
|
@@ -483,8 +484,12 @@ paths:
|
|
|
483
484
|
'422':
|
|
484
485
|
description: |-
|
|
485
486
|
Connection IDs in `connectionMap` do not match the template's
|
|
486
|
-
expected connection IDs
|
|
487
|
-
`template_zip` step, which this install doesn't run
|
|
487
|
+
expected connection IDs; the template's install steps include a
|
|
488
|
+
`template_zip` step, which this install doesn't run; or the template's
|
|
489
|
+
published zip cannot be read (`corrupted_file`) — the copy stored for
|
|
490
|
+
this region is unreadable, `GET /v1/templates/{_id}/preview` fails the
|
|
491
|
+
same way, and the zip is read before `connectionMap` is checked, so no
|
|
492
|
+
mapping fixes it. Nothing is created.
|
|
488
493
|
content:
|
|
489
494
|
application/json:
|
|
490
495
|
schema:
|
|
@@ -500,6 +505,12 @@ paths:
|
|
|
500
505
|
value:
|
|
501
506
|
errors:
|
|
502
507
|
- message: 'Failed to create Integration due to: Install step is invalid: invalid templateZip.'
|
|
508
|
+
corrupted:
|
|
509
|
+
summary: The listing's published zip is unreadable in this region
|
|
510
|
+
value:
|
|
511
|
+
errors:
|
|
512
|
+
- code: corrupted_file
|
|
513
|
+
message: Looks like the uploaded zip is corrupted. Please contact Celigo support if the issue persists.
|
|
503
514
|
/v1/integrations/template/preview:
|
|
504
515
|
get:
|
|
505
516
|
x-internal: false
|
package/package.json
CHANGED