@epilot/sdk 2.7.1 → 2.7.3
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/definitions/app.json +101 -8
- package/definitions/configuration-hub-runtime.json +1 -1
- package/definitions/configuration-hub.json +623 -0
- package/definitions/customer-portal.json +72 -58
- package/definitions/design-runtime.json +1 -1
- package/definitions/design.json +52 -12
- package/definitions/file-runtime.json +1 -1
- package/definitions/file.json +88 -4
- package/definitions/journey-runtime.json +1 -1
- package/definitions/journey.json +21 -1
- package/definitions/notes-runtime.json +1 -1
- package/definitions/notes.json +123 -1
- package/definitions/pricing.json +149 -404
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.d.cts +2 -2
- package/dist/apis/app.d.ts +2 -2
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +8 -8
- package/dist/apis/configuration-hub.d.cts +2 -2
- package/dist/apis/configuration-hub.d.ts +2 -2
- package/dist/apis/configuration-hub.js +2 -2
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +8 -8
- package/dist/apis/design.d.cts +2 -2
- package/dist/apis/design.d.ts +2 -2
- package/dist/apis/design.js +2 -2
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +8 -8
- package/dist/apis/file.d.cts +2 -2
- package/dist/apis/file.d.ts +2 -2
- package/dist/apis/file.js +2 -2
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +8 -8
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- package/dist/apis/journey.js +2 -2
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +8 -8
- package/dist/apis/notes.d.cts +2 -2
- package/dist/apis/notes.d.ts +2 -2
- package/dist/apis/notes.js +2 -2
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.d.cts +2 -2
- package/dist/apis/pricing.d.ts +2 -2
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{app-SSF545U7.cjs → app-74LECFMK.cjs} +1 -1
- package/dist/{app-34OBBTA4.js → app-GNUHCGPO.js} +1 -1
- package/dist/{app.d--5n0FQQ4.d.cts → app.d-BOR23dso.d.cts} +104 -4
- package/dist/{app.d--5n0FQQ4.d.ts → app.d-BOR23dso.d.ts} +104 -4
- package/dist/bin/cli.js +1 -1
- package/dist/{chunk-SCMAZ73K.js → chunk-2FJMQLXE.js} +28 -19
- package/dist/chunk-4M5V6BIT.cjs +14 -0
- package/dist/chunk-JOUTFBLN.js +14 -0
- package/dist/chunk-LAWKCWVU.cjs +14 -0
- package/dist/{chunk-ZSONBZIF.cjs → chunk-MOLFG5L4.cjs} +1 -1
- package/dist/chunk-P4NA7NWG.js +14 -0
- package/dist/{chunk-R7XDTILZ.cjs → chunk-QNMDISUR.cjs} +28 -19
- package/dist/chunk-RDVFQOCQ.js +14 -0
- package/dist/chunk-WHXYES2D.cjs +14 -0
- package/dist/{chunk-RW5JOHG7.js → chunk-WIQXF7DD.js} +1 -1
- package/dist/{chunk-ONOGGR6Q.js → chunk-WW6DVKJR.js} +1 -1
- package/dist/{chunk-M2SSGV7K.cjs → chunk-ZOQUGWQL.cjs} +1 -1
- package/dist/configuration-hub-E7S4JB2T.js +7 -0
- package/dist/configuration-hub-Q5JBYB52.cjs +7 -0
- package/dist/{configuration-hub-runtime-L6IOERSP.js → configuration-hub-runtime-CXME7TCX.js} +1 -1
- package/dist/{configuration-hub-runtime-I5Y67CXD.cjs → configuration-hub-runtime-QVLJKEZD.cjs} +2 -2
- package/dist/configuration-hub.d-CbSJDa7k.d.cts +1096 -0
- package/dist/configuration-hub.d-CbSJDa7k.d.ts +1096 -0
- package/dist/customer-portal-IBM3K2EZ.cjs +7 -0
- package/dist/customer-portal-XPYKMIIA.js +7 -0
- package/dist/{customer-portal.d-C7ZCbjiY.d.cts → customer-portal.d-CTTCBAZI.d.cts} +217 -61
- package/dist/{customer-portal.d-C7ZCbjiY.d.ts → customer-portal.d-CTTCBAZI.d.ts} +217 -61
- package/dist/design-DUFBH5ZB.js +7 -0
- package/dist/design-W3D3UPGB.cjs +7 -0
- package/dist/design-runtime-3RHYNHUV.cjs +5 -0
- package/dist/{design-runtime-QMJM4FAF.js → design-runtime-DLMA4EHQ.js} +1 -1
- package/dist/{design.d-BRre8iLg.d.cts → design.d-DzSDu8cy.d.cts} +41 -3
- package/dist/{design.d-BRre8iLg.d.ts → design.d-DzSDu8cy.d.ts} +41 -3
- package/dist/file-BGJVE7QG.cjs +7 -0
- package/dist/file-DRLPMLFW.js +7 -0
- package/dist/file-runtime-7AWKNQU6.cjs +5 -0
- package/dist/{file-runtime-BIRMXYRH.js → file-runtime-DKGFS44O.js} +1 -1
- package/dist/{file.d-DTlrbI40.d.cts → file.d-Rq_mbdOo.d.cts} +145 -5
- package/dist/{file.d-DTlrbI40.d.ts → file.d-Rq_mbdOo.d.ts} +145 -5
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +6 -6
- package/dist/journey-4DIIPRU4.js +7 -0
- package/dist/journey-ATC3Y5AW.cjs +7 -0
- package/dist/{journey-runtime-SPBL3F32.cjs → journey-runtime-G2O5C3N2.cjs} +2 -2
- package/dist/{journey-runtime-YXIAOTMD.js → journey-runtime-RI2LJO5S.js} +1 -1
- package/dist/{journey.d-ClXO0xK8.d.cts → journey.d-BenIUWaO.d.cts} +9 -3
- package/dist/{journey.d-ClXO0xK8.d.ts → journey.d-BenIUWaO.d.ts} +9 -3
- package/dist/{js-yaml-UPZKYVRY.js → js-yaml-DLCVPJ7G.js} +17 -15
- package/dist/notes-6JESMRLW.js +7 -0
- package/dist/notes-SLEUSNP4.cjs +7 -0
- package/dist/{notes-runtime-CVNAVKPP.js → notes-runtime-I4SWR3PZ.js} +1 -1
- package/dist/notes-runtime-YWTRRNH5.cjs +5 -0
- package/dist/{notes.d-BcV_m5fe.d.cts → notes.d-rbcyHfiB.d.cts} +101 -3
- package/dist/{notes.d-BcV_m5fe.d.ts → notes.d-rbcyHfiB.d.ts} +101 -3
- package/dist/pricing-F7HQ6BWC.cjs +7 -0
- package/dist/pricing-YCD4EUGI.js +7 -0
- package/dist/{pricing.d-BHpMU4KU.d.cts → pricing.d-exMaGWm1.d.cts} +140 -280
- package/dist/{pricing.d-BHpMU4KU.d.ts → pricing.d-exMaGWm1.d.ts} +140 -280
- package/docs/app.md +34 -10
- package/docs/configuration-hub.md +660 -0
- package/docs/customer-portal.md +221 -159
- package/docs/design.md +81 -4
- package/docs/file.md +81 -0
- package/docs/journey.md +2 -0
- package/docs/notes.md +47 -1
- package/docs/pricing.md +269 -218
- package/package.json +1 -1
- package/dist/chunk-3APTSPY4.js +0 -14
- package/dist/chunk-EIIIKDOJ.cjs +0 -14
- package/dist/chunk-KIWRGUKM.js +0 -14
- package/dist/chunk-MB6NKETA.cjs +0 -14
- package/dist/chunk-OPXGJKZR.cjs +0 -14
- package/dist/chunk-VSZEOCIE.js +0 -14
- package/dist/configuration-hub-A3S6ND6R.cjs +0 -7
- package/dist/configuration-hub-PMAW44U5.js +0 -7
- package/dist/configuration-hub.d-Cqaq2F-W.d.cts +0 -478
- package/dist/configuration-hub.d-Cqaq2F-W.d.ts +0 -478
- package/dist/customer-portal-7HYSBH7H.cjs +0 -7
- package/dist/customer-portal-X4LJX6AU.js +0 -7
- package/dist/design-DROLIWS3.js +0 -7
- package/dist/design-XZKOZLTR.cjs +0 -7
- package/dist/design-runtime-OXEXKZVG.cjs +0 -5
- package/dist/file-P2FUUER2.js +0 -7
- package/dist/file-XTY74SIX.cjs +0 -7
- package/dist/file-runtime-24S3QPA7.cjs +0 -5
- package/dist/journey-KDR5EU3W.js +0 -7
- package/dist/journey-REBN4TGQ.cjs +0 -7
- package/dist/notes-K2IIFCX3.cjs +0 -7
- package/dist/notes-Q7JGS7O3.js +0 -7
- package/dist/notes-runtime-E3YYF74V.cjs +0 -5
- package/dist/pricing-FODHQFCB.cjs +0 -7
- package/dist/pricing-XRIDVZFC.js +0 -7
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
{
|
|
24
24
|
"name": "Configs",
|
|
25
25
|
"description": "Configuration tree index"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Sync",
|
|
29
|
+
"description": "Cross-org configuration sync jobs"
|
|
26
30
|
}
|
|
27
31
|
],
|
|
28
32
|
"paths": {
|
|
@@ -263,6 +267,219 @@
|
|
|
263
267
|
}
|
|
264
268
|
}
|
|
265
269
|
},
|
|
270
|
+
"/v1/configs/sync-jobs": {
|
|
271
|
+
"post": {
|
|
272
|
+
"operationId": "createSyncJob",
|
|
273
|
+
"summary": "createSyncJob",
|
|
274
|
+
"description": "Create a new cross-org sync job. The job is enqueued for asynchronous execution\nby the worker Lambda; the response returns the persisted job header with status\n`pending`.\n\nSee `docs/sync/INTERFACES.md` for the locked request/response contract.\n",
|
|
275
|
+
"tags": [
|
|
276
|
+
"Sync"
|
|
277
|
+
],
|
|
278
|
+
"requestBody": {
|
|
279
|
+
"required": true,
|
|
280
|
+
"content": {
|
|
281
|
+
"application/json": {
|
|
282
|
+
"schema": {
|
|
283
|
+
"$ref": "#/components/schemas/SyncJobRequest"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"responses": {
|
|
289
|
+
"201": {
|
|
290
|
+
"description": "Sync job accepted",
|
|
291
|
+
"content": {
|
|
292
|
+
"application/json": {
|
|
293
|
+
"schema": {
|
|
294
|
+
"$ref": "#/components/schemas/SyncJob"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"400": {
|
|
300
|
+
"description": "Invalid request body",
|
|
301
|
+
"content": {
|
|
302
|
+
"application/json": {
|
|
303
|
+
"schema": {
|
|
304
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
"get": {
|
|
312
|
+
"operationId": "listSyncJobs",
|
|
313
|
+
"summary": "listSyncJobs",
|
|
314
|
+
"description": "List sync jobs scoped to the caller's organization, paginated with an opaque\ncursor. Defaults to most-recent first.\n",
|
|
315
|
+
"tags": [
|
|
316
|
+
"Sync"
|
|
317
|
+
],
|
|
318
|
+
"parameters": [
|
|
319
|
+
{
|
|
320
|
+
"$ref": "#/components/parameters/CursorParam"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"$ref": "#/components/parameters/SizeParam"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "status",
|
|
327
|
+
"in": "query",
|
|
328
|
+
"description": "Filter jobs by status",
|
|
329
|
+
"schema": {
|
|
330
|
+
"$ref": "#/components/schemas/SyncJobStatus"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"responses": {
|
|
335
|
+
"200": {
|
|
336
|
+
"description": "Paginated sync jobs",
|
|
337
|
+
"content": {
|
|
338
|
+
"application/json": {
|
|
339
|
+
"schema": {
|
|
340
|
+
"$ref": "#/components/schemas/SyncJobListResponse"
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
"/v1/configs/sync-jobs/{id}": {
|
|
349
|
+
"get": {
|
|
350
|
+
"operationId": "getSyncJob",
|
|
351
|
+
"summary": "getSyncJob",
|
|
352
|
+
"description": "Fetch a single sync job by ID. Returns the job header, counts summary,\ncurrent phase pointer, and the latest activity events. Frontend polls this\nendpoint with a ramping interval.\n",
|
|
353
|
+
"tags": [
|
|
354
|
+
"Sync"
|
|
355
|
+
],
|
|
356
|
+
"parameters": [
|
|
357
|
+
{
|
|
358
|
+
"$ref": "#/components/parameters/SyncJobId"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"responses": {
|
|
362
|
+
"200": {
|
|
363
|
+
"description": "Sync job detail",
|
|
364
|
+
"content": {
|
|
365
|
+
"application/json": {
|
|
366
|
+
"schema": {
|
|
367
|
+
"$ref": "#/components/schemas/SyncJob"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"404": {
|
|
373
|
+
"description": "Sync job not found",
|
|
374
|
+
"content": {
|
|
375
|
+
"application/json": {
|
|
376
|
+
"schema": {
|
|
377
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"/v1/configs/sync-jobs/{id}/retry": {
|
|
386
|
+
"post": {
|
|
387
|
+
"operationId": "retrySyncJob",
|
|
388
|
+
"summary": "retrySyncJob",
|
|
389
|
+
"description": "Retry the failed resources from a prior sync job. Creates a new job whose\nscope is the failed `(type, source_id)` set of the original job and enqueues\nit for execution. Optionally accepts inline payload overrides.\n",
|
|
390
|
+
"tags": [
|
|
391
|
+
"Sync"
|
|
392
|
+
],
|
|
393
|
+
"parameters": [
|
|
394
|
+
{
|
|
395
|
+
"$ref": "#/components/parameters/SyncJobId"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"requestBody": {
|
|
399
|
+
"required": false,
|
|
400
|
+
"content": {
|
|
401
|
+
"application/json": {
|
|
402
|
+
"schema": {
|
|
403
|
+
"$ref": "#/components/schemas/SyncJobRetryRequest"
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"responses": {
|
|
409
|
+
"201": {
|
|
410
|
+
"description": "Retry job accepted",
|
|
411
|
+
"content": {
|
|
412
|
+
"application/json": {
|
|
413
|
+
"schema": {
|
|
414
|
+
"$ref": "#/components/schemas/SyncJob"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"404": {
|
|
420
|
+
"description": "Sync job not found",
|
|
421
|
+
"content": {
|
|
422
|
+
"application/json": {
|
|
423
|
+
"schema": {
|
|
424
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"/v1/configs/sync-jobs/{id}/resources": {
|
|
433
|
+
"get": {
|
|
434
|
+
"operationId": "listSyncJobResources",
|
|
435
|
+
"summary": "listSyncJobResources",
|
|
436
|
+
"description": "List the per-resource rows for a sync job. Supports filtering by status\n(e.g. `failed`) and cursor pagination. Used by the failures table and the\ndry-run plan view in the frontend.\n",
|
|
437
|
+
"tags": [
|
|
438
|
+
"Sync"
|
|
439
|
+
],
|
|
440
|
+
"parameters": [
|
|
441
|
+
{
|
|
442
|
+
"$ref": "#/components/parameters/SyncJobId"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"$ref": "#/components/parameters/CursorParam"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"$ref": "#/components/parameters/SizeParam"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"name": "status",
|
|
452
|
+
"in": "query",
|
|
453
|
+
"description": "Filter resources by status",
|
|
454
|
+
"schema": {
|
|
455
|
+
"$ref": "#/components/schemas/SyncJobResourceStatus"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"responses": {
|
|
460
|
+
"200": {
|
|
461
|
+
"description": "Paginated sync job resources",
|
|
462
|
+
"content": {
|
|
463
|
+
"application/json": {
|
|
464
|
+
"schema": {
|
|
465
|
+
"$ref": "#/components/schemas/SyncJobResourceListResponse"
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
"404": {
|
|
471
|
+
"description": "Sync job not found",
|
|
472
|
+
"content": {
|
|
473
|
+
"application/json": {
|
|
474
|
+
"schema": {
|
|
475
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
},
|
|
266
483
|
"/v1/configs/index:rebuild": {
|
|
267
484
|
"post": {
|
|
268
485
|
"operationId": "rebuildIndex",
|
|
@@ -331,6 +548,15 @@
|
|
|
331
548
|
"minimum": 1,
|
|
332
549
|
"maximum": 100
|
|
333
550
|
}
|
|
551
|
+
},
|
|
552
|
+
"SyncJobId": {
|
|
553
|
+
"name": "id",
|
|
554
|
+
"in": "path",
|
|
555
|
+
"required": true,
|
|
556
|
+
"description": "Sync job ID",
|
|
557
|
+
"schema": {
|
|
558
|
+
"type": "string"
|
|
559
|
+
}
|
|
334
560
|
}
|
|
335
561
|
},
|
|
336
562
|
"schemas": {
|
|
@@ -459,6 +685,29 @@
|
|
|
459
685
|
"format": "uri",
|
|
460
686
|
"description": "Direct link to open this config in epilot"
|
|
461
687
|
},
|
|
688
|
+
"active": {
|
|
689
|
+
"type": "boolean",
|
|
690
|
+
"description": "Whether this config is currently active/enabled (omitted when not applicable)"
|
|
691
|
+
},
|
|
692
|
+
"blueprints": {
|
|
693
|
+
"type": "array",
|
|
694
|
+
"description": "Installed blueprints that produced this config (tagged during the rebuild lineage pass)",
|
|
695
|
+
"items": {
|
|
696
|
+
"type": "object",
|
|
697
|
+
"properties": {
|
|
698
|
+
"id": {
|
|
699
|
+
"type": "string"
|
|
700
|
+
},
|
|
701
|
+
"title": {
|
|
702
|
+
"type": "string"
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
"required": [
|
|
706
|
+
"id",
|
|
707
|
+
"title"
|
|
708
|
+
]
|
|
709
|
+
}
|
|
710
|
+
},
|
|
462
711
|
"metadata": {
|
|
463
712
|
"type": "object",
|
|
464
713
|
"description": "Type-specific metadata (e.g., submission count for journeys)",
|
|
@@ -605,6 +854,380 @@
|
|
|
605
854
|
"status",
|
|
606
855
|
"error"
|
|
607
856
|
]
|
|
857
|
+
},
|
|
858
|
+
"SyncJobStatus": {
|
|
859
|
+
"type": "string",
|
|
860
|
+
"description": "Lifecycle status of a sync job. See `docs/sync/INTERFACES.md` for state\ntransitions.\n",
|
|
861
|
+
"enum": [
|
|
862
|
+
"pending",
|
|
863
|
+
"in_progress",
|
|
864
|
+
"succeeded",
|
|
865
|
+
"partial",
|
|
866
|
+
"failed",
|
|
867
|
+
"cancelled"
|
|
868
|
+
]
|
|
869
|
+
},
|
|
870
|
+
"SyncDirection": {
|
|
871
|
+
"type": "string",
|
|
872
|
+
"description": "Direction of the sync, derived from the source/target pane selection in the\nconfiguration hub UI.\n",
|
|
873
|
+
"enum": [
|
|
874
|
+
"push",
|
|
875
|
+
"pull"
|
|
876
|
+
]
|
|
877
|
+
},
|
|
878
|
+
"SyncPhase": {
|
|
879
|
+
"type": "string",
|
|
880
|
+
"description": "Three-phase orchestrator phase. `phase_0` fetches source payloads,\n`phase_a` creates/matches with topological batches, `phase_a5` resolves\nderived references, `phase_b` patches with the full ID map, `finalize`\nruns cycle-breaking finalizers.\n",
|
|
881
|
+
"enum": [
|
|
882
|
+
"phase_0",
|
|
883
|
+
"phase_a",
|
|
884
|
+
"phase_a5",
|
|
885
|
+
"phase_b",
|
|
886
|
+
"finalize"
|
|
887
|
+
]
|
|
888
|
+
},
|
|
889
|
+
"SyncJobResourceStatus": {
|
|
890
|
+
"type": "string",
|
|
891
|
+
"description": "Per-resource status. `would_*` values are produced by dry-run jobs.\n",
|
|
892
|
+
"enum": [
|
|
893
|
+
"pending",
|
|
894
|
+
"in_progress",
|
|
895
|
+
"created",
|
|
896
|
+
"patched",
|
|
897
|
+
"skipped",
|
|
898
|
+
"would_create",
|
|
899
|
+
"would_patch",
|
|
900
|
+
"would_skip_unchanged",
|
|
901
|
+
"would_match_heuristic",
|
|
902
|
+
"failed"
|
|
903
|
+
]
|
|
904
|
+
},
|
|
905
|
+
"SyncJobRequest": {
|
|
906
|
+
"type": "object",
|
|
907
|
+
"description": "Request body for `createSyncJob`. `target_auth_token` is the destination\norg's auth token and MUST NOT be persisted or logged — it is `writeOnly`.\n",
|
|
908
|
+
"required": [
|
|
909
|
+
"source_org_id",
|
|
910
|
+
"target_org_id",
|
|
911
|
+
"target_auth_token",
|
|
912
|
+
"resources"
|
|
913
|
+
],
|
|
914
|
+
"properties": {
|
|
915
|
+
"source_org_id": {
|
|
916
|
+
"type": "string",
|
|
917
|
+
"description": "Org ID the resources are sourced from."
|
|
918
|
+
},
|
|
919
|
+
"target_org_id": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
"description": "Org ID the resources are written into."
|
|
922
|
+
},
|
|
923
|
+
"target_auth_token": {
|
|
924
|
+
"type": "string",
|
|
925
|
+
"writeOnly": true,
|
|
926
|
+
"description": "Destination-org auth token forwarded to adapter writes. Never returned\nin responses and never logged.\n"
|
|
927
|
+
},
|
|
928
|
+
"name": {
|
|
929
|
+
"type": "string",
|
|
930
|
+
"description": "Optional human-friendly job name shown in the history list."
|
|
931
|
+
},
|
|
932
|
+
"dry_run": {
|
|
933
|
+
"type": "boolean",
|
|
934
|
+
"default": false,
|
|
935
|
+
"description": "If true, the orchestrator runs Phase 0 + a planning pass and writes\n`would_*` resource rows but performs no destination writes.\n"
|
|
936
|
+
},
|
|
937
|
+
"include_dependencies": {
|
|
938
|
+
"type": "boolean",
|
|
939
|
+
"default": true,
|
|
940
|
+
"description": "If true, the orchestrator expands the resource set by following\ndependency edges discovered during Phase 0.\n"
|
|
941
|
+
},
|
|
942
|
+
"resources": {
|
|
943
|
+
"type": "array",
|
|
944
|
+
"description": "Initial resource selection. Dependencies may be added.",
|
|
945
|
+
"items": {
|
|
946
|
+
"type": "object",
|
|
947
|
+
"required": [
|
|
948
|
+
"type",
|
|
949
|
+
"id"
|
|
950
|
+
],
|
|
951
|
+
"properties": {
|
|
952
|
+
"type": {
|
|
953
|
+
"type": "string",
|
|
954
|
+
"description": "Resource type identifier"
|
|
955
|
+
},
|
|
956
|
+
"id": {
|
|
957
|
+
"type": "string",
|
|
958
|
+
"description": "Source-org resource ID"
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
},
|
|
965
|
+
"SyncJobRetryRequest": {
|
|
966
|
+
"type": "object",
|
|
967
|
+
"description": "Optional body for `retrySyncJob`. Defaults to retrying every failed\nresource of the original job.\n",
|
|
968
|
+
"properties": {
|
|
969
|
+
"payload_overrides": {
|
|
970
|
+
"type": "object",
|
|
971
|
+
"description": "Map of `<type>:<source_id>` → partial payload patch. Applied on top of\nthe originally fetched payload before re-running Phase A.\n",
|
|
972
|
+
"additionalProperties": true
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
"SyncJobCounts": {
|
|
977
|
+
"type": "object",
|
|
978
|
+
"description": "Aggregate counters by resource status.",
|
|
979
|
+
"properties": {
|
|
980
|
+
"total": {
|
|
981
|
+
"type": "integer"
|
|
982
|
+
},
|
|
983
|
+
"pending": {
|
|
984
|
+
"type": "integer"
|
|
985
|
+
},
|
|
986
|
+
"in_progress": {
|
|
987
|
+
"type": "integer"
|
|
988
|
+
},
|
|
989
|
+
"succeeded": {
|
|
990
|
+
"type": "integer"
|
|
991
|
+
},
|
|
992
|
+
"failed": {
|
|
993
|
+
"type": "integer"
|
|
994
|
+
},
|
|
995
|
+
"skipped_unchanged": {
|
|
996
|
+
"type": "integer"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"required": [
|
|
1000
|
+
"total",
|
|
1001
|
+
"pending",
|
|
1002
|
+
"in_progress",
|
|
1003
|
+
"succeeded",
|
|
1004
|
+
"failed",
|
|
1005
|
+
"skipped_unchanged"
|
|
1006
|
+
]
|
|
1007
|
+
},
|
|
1008
|
+
"SyncJobEvent": {
|
|
1009
|
+
"type": "object",
|
|
1010
|
+
"description": "Activity-log entry surfaced to the frontend. Backed by the op-log rows in\nthe index table (`SYNC#<jobId>#OP#<seq>`).\n",
|
|
1011
|
+
"properties": {
|
|
1012
|
+
"seq": {
|
|
1013
|
+
"type": "integer",
|
|
1014
|
+
"description": "Monotonic sequence number assigned at write time."
|
|
1015
|
+
},
|
|
1016
|
+
"ts": {
|
|
1017
|
+
"type": "string",
|
|
1018
|
+
"format": "date-time"
|
|
1019
|
+
},
|
|
1020
|
+
"phase": {
|
|
1021
|
+
"$ref": "#/components/schemas/SyncPhase"
|
|
1022
|
+
},
|
|
1023
|
+
"type": {
|
|
1024
|
+
"type": "string",
|
|
1025
|
+
"description": "Resource type"
|
|
1026
|
+
},
|
|
1027
|
+
"source_id": {
|
|
1028
|
+
"type": "string"
|
|
1029
|
+
},
|
|
1030
|
+
"target_id": {
|
|
1031
|
+
"type": "string"
|
|
1032
|
+
},
|
|
1033
|
+
"status": {
|
|
1034
|
+
"$ref": "#/components/schemas/SyncJobResourceStatus"
|
|
1035
|
+
},
|
|
1036
|
+
"message": {
|
|
1037
|
+
"type": "string"
|
|
1038
|
+
},
|
|
1039
|
+
"error": {
|
|
1040
|
+
"type": "string"
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
"required": [
|
|
1044
|
+
"seq",
|
|
1045
|
+
"ts",
|
|
1046
|
+
"status"
|
|
1047
|
+
]
|
|
1048
|
+
},
|
|
1049
|
+
"SyncJobBatch": {
|
|
1050
|
+
"type": "object",
|
|
1051
|
+
"description": "Position within the current topological batch for the active phase.",
|
|
1052
|
+
"properties": {
|
|
1053
|
+
"index": {
|
|
1054
|
+
"type": "integer",
|
|
1055
|
+
"description": "Zero-based index of the batch currently executing."
|
|
1056
|
+
},
|
|
1057
|
+
"of": {
|
|
1058
|
+
"type": "integer",
|
|
1059
|
+
"description": "Total number of batches in the current phase."
|
|
1060
|
+
},
|
|
1061
|
+
"level": {
|
|
1062
|
+
"type": "integer",
|
|
1063
|
+
"description": "Dependency level (matches `dependencyLevel` from the topological sort)."
|
|
1064
|
+
}
|
|
1065
|
+
},
|
|
1066
|
+
"required": [
|
|
1067
|
+
"index",
|
|
1068
|
+
"of",
|
|
1069
|
+
"level"
|
|
1070
|
+
]
|
|
1071
|
+
},
|
|
1072
|
+
"SyncJob": {
|
|
1073
|
+
"type": "object",
|
|
1074
|
+
"description": "Sync job header as surfaced by `getSyncJob` and the create response. The\ncanonical persistence shape is described in `docs/sync/INTERFACES.md`.\n",
|
|
1075
|
+
"properties": {
|
|
1076
|
+
"id": {
|
|
1077
|
+
"type": "string"
|
|
1078
|
+
},
|
|
1079
|
+
"name": {
|
|
1080
|
+
"type": "string"
|
|
1081
|
+
},
|
|
1082
|
+
"status": {
|
|
1083
|
+
"$ref": "#/components/schemas/SyncJobStatus"
|
|
1084
|
+
},
|
|
1085
|
+
"direction": {
|
|
1086
|
+
"$ref": "#/components/schemas/SyncDirection"
|
|
1087
|
+
},
|
|
1088
|
+
"source_org_id": {
|
|
1089
|
+
"type": "string"
|
|
1090
|
+
},
|
|
1091
|
+
"target_org_id": {
|
|
1092
|
+
"type": "string"
|
|
1093
|
+
},
|
|
1094
|
+
"dry_run": {
|
|
1095
|
+
"type": "boolean"
|
|
1096
|
+
},
|
|
1097
|
+
"counts": {
|
|
1098
|
+
"$ref": "#/components/schemas/SyncJobCounts"
|
|
1099
|
+
},
|
|
1100
|
+
"current_phase": {
|
|
1101
|
+
"$ref": "#/components/schemas/SyncPhase"
|
|
1102
|
+
},
|
|
1103
|
+
"current_batch": {
|
|
1104
|
+
"$ref": "#/components/schemas/SyncJobBatch"
|
|
1105
|
+
},
|
|
1106
|
+
"started_at": {
|
|
1107
|
+
"type": "string",
|
|
1108
|
+
"format": "date-time"
|
|
1109
|
+
},
|
|
1110
|
+
"finished_at": {
|
|
1111
|
+
"type": "string",
|
|
1112
|
+
"format": "date-time"
|
|
1113
|
+
},
|
|
1114
|
+
"events": {
|
|
1115
|
+
"type": "array",
|
|
1116
|
+
"description": "Most recent events (capped server-side, typically last 10).",
|
|
1117
|
+
"items": {
|
|
1118
|
+
"$ref": "#/components/schemas/SyncJobEvent"
|
|
1119
|
+
}
|
|
1120
|
+
},
|
|
1121
|
+
"errors_sample": {
|
|
1122
|
+
"type": "array",
|
|
1123
|
+
"description": "Up to 20 sample error messages from failed resources.",
|
|
1124
|
+
"maxItems": 20,
|
|
1125
|
+
"items": {
|
|
1126
|
+
"type": "object",
|
|
1127
|
+
"properties": {
|
|
1128
|
+
"type": {
|
|
1129
|
+
"type": "string"
|
|
1130
|
+
},
|
|
1131
|
+
"source_id": {
|
|
1132
|
+
"type": "string"
|
|
1133
|
+
},
|
|
1134
|
+
"error": {
|
|
1135
|
+
"type": "string"
|
|
1136
|
+
}
|
|
1137
|
+
},
|
|
1138
|
+
"required": [
|
|
1139
|
+
"type",
|
|
1140
|
+
"source_id",
|
|
1141
|
+
"error"
|
|
1142
|
+
]
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
"required": [
|
|
1147
|
+
"id",
|
|
1148
|
+
"status",
|
|
1149
|
+
"direction",
|
|
1150
|
+
"source_org_id",
|
|
1151
|
+
"target_org_id",
|
|
1152
|
+
"dry_run",
|
|
1153
|
+
"counts",
|
|
1154
|
+
"started_at"
|
|
1155
|
+
]
|
|
1156
|
+
},
|
|
1157
|
+
"SyncJobListResponse": {
|
|
1158
|
+
"type": "object",
|
|
1159
|
+
"description": "Cursor-paginated list of sync jobs.",
|
|
1160
|
+
"properties": {
|
|
1161
|
+
"next_cursor": {
|
|
1162
|
+
"type": "string"
|
|
1163
|
+
},
|
|
1164
|
+
"results": {
|
|
1165
|
+
"type": "array",
|
|
1166
|
+
"items": {
|
|
1167
|
+
"$ref": "#/components/schemas/SyncJob"
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
},
|
|
1171
|
+
"required": [
|
|
1172
|
+
"results"
|
|
1173
|
+
]
|
|
1174
|
+
},
|
|
1175
|
+
"SyncJobResource": {
|
|
1176
|
+
"type": "object",
|
|
1177
|
+
"description": "Per-resource row backed by `SyncResourcesTable`. See\n`docs/sync/INTERFACES.md` for the DDB shape.\n",
|
|
1178
|
+
"properties": {
|
|
1179
|
+
"type": {
|
|
1180
|
+
"type": "string"
|
|
1181
|
+
},
|
|
1182
|
+
"source_id": {
|
|
1183
|
+
"type": "string"
|
|
1184
|
+
},
|
|
1185
|
+
"target_id": {
|
|
1186
|
+
"type": "string"
|
|
1187
|
+
},
|
|
1188
|
+
"status": {
|
|
1189
|
+
"$ref": "#/components/schemas/SyncJobResourceStatus"
|
|
1190
|
+
},
|
|
1191
|
+
"phase": {
|
|
1192
|
+
"$ref": "#/components/schemas/SyncPhase"
|
|
1193
|
+
},
|
|
1194
|
+
"attempt": {
|
|
1195
|
+
"type": "integer"
|
|
1196
|
+
},
|
|
1197
|
+
"error": {
|
|
1198
|
+
"type": "string"
|
|
1199
|
+
},
|
|
1200
|
+
"updated_at": {
|
|
1201
|
+
"type": "string",
|
|
1202
|
+
"format": "date-time"
|
|
1203
|
+
}
|
|
1204
|
+
},
|
|
1205
|
+
"required": [
|
|
1206
|
+
"type",
|
|
1207
|
+
"source_id",
|
|
1208
|
+
"status",
|
|
1209
|
+
"phase",
|
|
1210
|
+
"attempt",
|
|
1211
|
+
"updated_at"
|
|
1212
|
+
]
|
|
1213
|
+
},
|
|
1214
|
+
"SyncJobResourceListResponse": {
|
|
1215
|
+
"type": "object",
|
|
1216
|
+
"description": "Cursor-paginated list of sync job resources.",
|
|
1217
|
+
"properties": {
|
|
1218
|
+
"next_cursor": {
|
|
1219
|
+
"type": "string"
|
|
1220
|
+
},
|
|
1221
|
+
"results": {
|
|
1222
|
+
"type": "array",
|
|
1223
|
+
"items": {
|
|
1224
|
+
"$ref": "#/components/schemas/SyncJobResource"
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
"required": [
|
|
1229
|
+
"results"
|
|
1230
|
+
]
|
|
608
1231
|
}
|
|
609
1232
|
}
|
|
610
1233
|
}
|