@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS
|
|
3
|
+
} from "./chunk-YPSWSI3M.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/design-runtime.json
|
|
6
|
+
var require_design_runtime = __commonJS({
|
|
7
|
+
"src/definitions/design-runtime.json"(exports, module) {
|
|
8
|
+
module.exports = { s: "https://design-builder-api.sls.epilot.io", o: [["getAllDesigns", "get", "/v1/designs"], ["addDesign", "post", "/v1/designs", null, 1], ["getDesign", "get", "/v1/designs/{designId}", [["designId", "p", true]]], ["deleteDesign", "delete", "/v1/designs/{designId}", [["designId", "p", true]]], ["updateDesign", "put", "/v1/designs/{designId}", [["designId", "p", true]], 1], ["getThemeFromDesign", "get", "/v1/designs/{designId}/parse", [["designId", "p", true], ["orgId", "q"], ["theme", "q", true]]], ["uploadFile", "post", "/v1/designs/files", null, 1], ["getFiles", "get", "/v1/designs/files", [["type", "q"]]], ["getLimit", "get", "/v1/designs/limit"], ["getBrands", "get", "/v1/brands"], ["getConsumerDesign", "get", "/v1/designs/consumer/{application}/{consumerId}", [["consumerId", "p", true], ["application", "p", true]]], ["addConsumer", "put", "/v1/designs/addConsumer/{application}/{designId}", [["designId", "p", true], ["application", "p", true]], 1], ["removeConsumer", "put", "/v1/designs/removeConsumer/{application}/{designId}", [["designId", "p", true], ["application", "p", true]], 1]], v: "3.0.3" };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
require_design_runtime
|
|
14
|
+
};
|
|
@@ -3,16 +3,25 @@
|
|
|
3
3
|
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
4
4
|
|
|
5
5
|
// src/authorize.ts
|
|
6
|
+
var AUTH_INTERCEPTOR_KEY = /* @__PURE__ */ Symbol.for("@epilot/sdk:authInterceptorId");
|
|
6
7
|
var authorize = (client, token) => {
|
|
8
|
+
const marked = client;
|
|
9
|
+
const prev = marked[AUTH_INTERCEPTOR_KEY];
|
|
10
|
+
if (typeof prev === "number") {
|
|
11
|
+
client.interceptors.request.eject(prev);
|
|
12
|
+
marked[AUTH_INTERCEPTOR_KEY] = void 0;
|
|
13
|
+
}
|
|
7
14
|
if (typeof token === "string") {
|
|
8
15
|
client.defaults.headers.common.authorization = `Bearer ${token}`;
|
|
9
|
-
|
|
10
|
-
client.interceptors.request.use(async (config) => {
|
|
11
|
-
const resolved = await token();
|
|
12
|
-
config.headers.authorization = `Bearer ${resolved}`;
|
|
13
|
-
return config;
|
|
14
|
-
});
|
|
16
|
+
return client;
|
|
15
17
|
}
|
|
18
|
+
delete client.defaults.headers.common.authorization;
|
|
19
|
+
const id = client.interceptors.request.use(async (config) => {
|
|
20
|
+
const resolved = await token();
|
|
21
|
+
config.headers.authorization = `Bearer ${resolved}`;
|
|
22
|
+
return config;
|
|
23
|
+
});
|
|
24
|
+
marked[AUTH_INTERCEPTOR_KEY] = id;
|
|
16
25
|
return client;
|
|
17
26
|
};
|
|
18
27
|
|
|
@@ -24,19 +33,19 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
24
33
|
"./docs/address-suggestions.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-suggestions-IUQMYF27.cjs"))),
|
|
25
34
|
"./docs/address.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-HA4RMRNQ.cjs"))),
|
|
26
35
|
"./docs/ai-agents.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./ai-agents-PWHKNRCX.cjs"))),
|
|
27
|
-
"./docs/app.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./app-
|
|
36
|
+
"./docs/app.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./app-74LECFMK.cjs"))),
|
|
28
37
|
"./docs/audit-logs.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./audit-logs-D2LFUA2R.cjs"))),
|
|
29
38
|
"./docs/automation.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./automation-BMO7ZFTN.cjs"))),
|
|
30
39
|
"./docs/billing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./billing-DUWDISHP.cjs"))),
|
|
31
40
|
"./docs/blueprint-manifest.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./blueprint-manifest-IEQ6YBY7.cjs"))),
|
|
32
41
|
"./docs/calendar.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./calendar-2YDAYG7S.cjs"))),
|
|
33
|
-
"./docs/configuration-hub.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./configuration-hub-
|
|
42
|
+
"./docs/configuration-hub.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./configuration-hub-Q5JBYB52.cjs"))),
|
|
34
43
|
"./docs/consent.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./consent-CS2ZBZX4.cjs"))),
|
|
35
|
-
"./docs/customer-portal.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./customer-portal-
|
|
44
|
+
"./docs/customer-portal.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./customer-portal-IBM3K2EZ.cjs"))),
|
|
36
45
|
"./docs/dashboard.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./dashboard-UHYR5RTY.cjs"))),
|
|
37
46
|
"./docs/data-governance.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-governance-2U5UU4GM.cjs"))),
|
|
38
47
|
"./docs/deduplication.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-PKKTZAEA.cjs"))),
|
|
39
|
-
"./docs/design.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./design-
|
|
48
|
+
"./docs/design.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./design-W3D3UPGB.cjs"))),
|
|
40
49
|
"./docs/document.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./document-RYQ7MF6U.cjs"))),
|
|
41
50
|
"./docs/email-settings.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./email-settings-YJ4X5VFU.cjs"))),
|
|
42
51
|
"./docs/email-template.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./email-template-M2VVL4TI.cjs"))),
|
|
@@ -45,20 +54,20 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
45
54
|
"./docs/environments.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./environments-QJ4UMJ5C.cjs"))),
|
|
46
55
|
"./docs/erp-integration.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./erp-integration-PAVHSUDM.cjs"))),
|
|
47
56
|
"./docs/event-catalog.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-5JBHJJ2I.cjs"))),
|
|
48
|
-
"./docs/file.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-
|
|
57
|
+
"./docs/file.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-BGJVE7QG.cjs"))),
|
|
49
58
|
"./docs/iban.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./iban-24GHLFDB.cjs"))),
|
|
50
59
|
"./docs/integration-toolkit.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./integration-toolkit-3I3IPVFN.cjs"))),
|
|
51
|
-
"./docs/journey.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./journey-
|
|
60
|
+
"./docs/journey.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./journey-ATC3Y5AW.cjs"))),
|
|
52
61
|
"./docs/kanban.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./kanban-FSATKIGH.cjs"))),
|
|
53
62
|
"./docs/message.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./message-7LNAFKKV.cjs"))),
|
|
54
63
|
"./docs/metering.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./metering-MHBFU7QH.cjs"))),
|
|
55
|
-
"./docs/notes.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./notes-
|
|
64
|
+
"./docs/notes.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./notes-SLEUSNP4.cjs"))),
|
|
56
65
|
"./docs/notification.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./notification-PZOCUYD5.cjs"))),
|
|
57
66
|
"./docs/organization.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./organization-RARYYG2E.cjs"))),
|
|
58
67
|
"./docs/partner-directory.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./partner-directory-ZQIBKD5Q.cjs"))),
|
|
59
68
|
"./docs/permissions.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./permissions-ZJHUIBWY.cjs"))),
|
|
60
69
|
"./docs/pricing-tier.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-tier-NI35WOUP.cjs"))),
|
|
61
|
-
"./docs/pricing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-
|
|
70
|
+
"./docs/pricing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./pricing-F7HQ6BWC.cjs"))),
|
|
62
71
|
"./docs/purpose.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./purpose-AKOEUHZ4.cjs"))),
|
|
63
72
|
"./docs/query.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./query-JSDB2F2U.cjs"))),
|
|
64
73
|
"./docs/sandbox.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./sandbox-2KN4X66E.cjs"))),
|
|
@@ -109,7 +118,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
109
118
|
"./definitions/blueprint-manifest-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./blueprint-manifest-runtime-QN2IECSA.cjs"))),
|
|
110
119
|
"./definitions/blueprint-manifest.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./blueprint-manifest-5TNVSDKC.cjs"))),
|
|
111
120
|
"./definitions/calendar-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./calendar-runtime-G4SN5PDY.cjs"))),
|
|
112
|
-
"./definitions/configuration-hub-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./configuration-hub-runtime-
|
|
121
|
+
"./definitions/configuration-hub-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./configuration-hub-runtime-QVLJKEZD.cjs"))),
|
|
113
122
|
"./definitions/consent-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./consent-runtime-KZ5D4XZU.cjs"))),
|
|
114
123
|
"./definitions/consent.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./consent-6SIH4NQS.cjs"))),
|
|
115
124
|
"./definitions/customer-portal-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./customer-portal-runtime-IYHJ3RME.cjs"))),
|
|
@@ -120,7 +129,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
120
129
|
"./definitions/data-governance.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./data-governance-ZJ2K4ZWX.cjs"))),
|
|
121
130
|
"./definitions/deduplication-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-runtime-5QS6I4S7.cjs"))),
|
|
122
131
|
"./definitions/deduplication.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./deduplication-7RTGTLN5.cjs"))),
|
|
123
|
-
"./definitions/design-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./design-runtime-
|
|
132
|
+
"./definitions/design-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./design-runtime-3RHYNHUV.cjs"))),
|
|
124
133
|
"./definitions/design.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./design-AO6EGLHD.cjs"))),
|
|
125
134
|
"./definitions/document-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./document-runtime-RG3F4R6O.cjs"))),
|
|
126
135
|
"./definitions/document.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./document-OVTR7RVH.cjs"))),
|
|
@@ -138,12 +147,12 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
138
147
|
"./definitions/erp-integration.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./erp-integration-W7FZDJOB.cjs"))),
|
|
139
148
|
"./definitions/event-catalog-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-runtime-B2BPKQVG.cjs"))),
|
|
140
149
|
"./definitions/event-catalog.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./event-catalog-MZYFJ23V.cjs"))),
|
|
141
|
-
"./definitions/file-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-runtime-
|
|
150
|
+
"./definitions/file-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-runtime-7AWKNQU6.cjs"))),
|
|
142
151
|
"./definitions/file.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./file-637CTR4Y.cjs"))),
|
|
143
152
|
"./definitions/iban-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./iban-runtime-TUM5LVHO.cjs"))),
|
|
144
153
|
"./definitions/iban.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./iban-ETTCKOHK.cjs"))),
|
|
145
154
|
"./definitions/integration-toolkit-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./integration-toolkit-runtime-YHTU4X5J.cjs"))),
|
|
146
|
-
"./definitions/journey-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./journey-runtime-
|
|
155
|
+
"./definitions/journey-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./journey-runtime-G2O5C3N2.cjs"))),
|
|
147
156
|
"./definitions/journey.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./journey-XIMSLSZC.cjs"))),
|
|
148
157
|
"./definitions/kanban-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./kanban-runtime-NHEUWTCG.cjs"))),
|
|
149
158
|
"./definitions/kanban.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./kanban-M4P7R5TM.cjs"))),
|
|
@@ -151,7 +160,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
151
160
|
"./definitions/message.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./message-2VOVRXBB.cjs"))),
|
|
152
161
|
"./definitions/metering-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./metering-runtime-IUZJHBVS.cjs"))),
|
|
153
162
|
"./definitions/metering.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./metering-KEMILE75.cjs"))),
|
|
154
|
-
"./definitions/notes-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./notes-runtime-
|
|
163
|
+
"./definitions/notes-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./notes-runtime-YWTRRNH5.cjs"))),
|
|
155
164
|
"./definitions/notes.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./notes-OBM5POWI.cjs"))),
|
|
156
165
|
"./definitions/notification-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./notification-runtime-7QLZTPHG.cjs"))),
|
|
157
166
|
"./definitions/notification.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./notification-EEYPLPUV.cjs"))),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS
|
|
3
|
+
} from "./chunk-YPSWSI3M.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/file-runtime.json
|
|
6
|
+
var require_file_runtime = __commonJS({
|
|
7
|
+
"src/definitions/file-runtime.json"(exports, module) {
|
|
8
|
+
module.exports = { s: "https://file.sls.epilot.io", o: [["uploadFileV2", "post", "/v2/files/upload", [["file_entity_id", "q"]], 1], ["saveFileV2", "post", "/v2/files", [["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["StrictQueryParam"], ["AsyncOperationQueryParam"], ["DeleteTempFileQueryParam"], ["VersionOnlyQueryParam"]], 1], ["uploadFile", "post", "/v1/files/upload", [["file_entity_id", "q"]], 1], ["saveFile", "post", "/v1/files", [["ActivityIdQueryParam"], ["AsyncOperationQueryParam"], ["VersionOnlyQueryParam"]], 1], ["getFile", "get", "/v2/files/{id}", [["id", "p", true], ["source_url", "q"], ["StrictQueryParam"], ["AsyncOperationQueryParam"]]], ["deleteFile", "delete", "/v2/files/{id}", [["id", "p", true], ["purge", "q"], ["ActivityIdQueryParam"], ["StrictQueryParam"]]], ["downloadFile", "get", "/v1/files/{id}/download", [["id", "p", true], ["version", "q"], ["attachment", "q"]]], ["downloadS3File", "post", "/v1/files:downloadS3", [["s3_key", "q", true], ["s3_bucket", "q", true], ["attachment", "q"]]], ["downloadFiles", "post", "/v1/files:downloadFiles", null, 1], ["createZipJob", "post", "/v1/files:zipJob", null, 1], ["getZipJob", "get", "/v1/files:zipJob/{job_id}", [["job_id", "p", true]]], ["generateFileSummary", "post", "/v1/files/{id}/summary:generate", [["id", "p", true]]], ["previewFile", "get", "/v1/files/{id}/preview", [["id", "p", true], ["version", "q"], ["w", "q"], ["h", "q"]]], ["previewS3File", "post", "/v1/files:previewS3", [["w", "q"], ["h", "q"]], 1], ["previewS3FileGet", "get", "/v1/files:previewS3", [["key", "q", true], ["bucket", "q", true], ["w", "q"], ["h", "q"]]], ["previewPublicFile", "get", "/v1/files/public/{id}/preview", [["id", "p", true], ["version", "q"], ["w", "q"], ["h", "q"], ["org_id", "q"]]], ["getSession", "get", "/v1/files/session"], ["deleteSession", "delete", "/v1/files/session"], ["generatePublicLink", "post", "/v1/files/{id}/public/links", [["id", "p", true]]], ["listPublicLinksForFile", "get", "/v1/files/{id}/public/links", [["id", "p", true]]], ["accessPublicLink", "get", "/v1/files/public/links/{id}/{filename}", [["id", "p", true], ["filename", "p", true], ["hash", "q"]]], ["revokePublicLink", "delete", "/v1/files/public/links/{id}", [["id", "p", true]]], ["verifyCustomDownloadUrl", "post", "/v1/files/download:verify", null, 1], ["uploadFilePublic", "post", "/v1/files/public/upload", null, 1], ["getUserSchemaFileCollections", "get", "/v1/{slug}/collections", [["slug", "p", true]]], ["createUserSchemaFileCollection", "post", "/v1/{slug}/collections", [["slug", "p", true]], 1], ["updateUserSchemaFileCollection", "put", "/v1/{slug}/collections/{collectionSlug}", [["slug", "p", true], ["collectionSlug", "p", true]], 1], ["deleteUserSchemaFileCollection", "delete", "/v1/{slug}/collections/{collectionSlug}", [["slug", "p", true], ["collectionSlug", "p", true]]], ["getFilesInCollection", "get", "/v1/entity/{id}/collections/{collectionSlug}/files", [["EntityIdPathParam"], ["collectionSlug", "p", true]]], ["getGlobalFileCollections", "get", "/v1/collections/{schemaSlug}", [["schemaSlug", "p", true]]]], v: "3.0.3", cp: { EntityIdPathParam: ["id", "p", true], StrictQueryParam: ["strict", "q"], ActivityIdQueryParam: ["activity_id", "q"], FillActivityQueryParam: ["fill_activity", "q"], AsyncOperationQueryParam: ["async", "q"], DeleteTempFileQueryParam: ["delete_temp_file", "q"], VersionOnlyQueryParam: ["version_only", "q"] } };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
require_file_runtime
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
4
|
+
|
|
5
|
+
// src/definitions/design-runtime.json
|
|
6
|
+
var require_design_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
|
+
"src/definitions/design-runtime.json"(exports, module) {
|
|
8
|
+
module.exports = { s: "https://design-builder-api.sls.epilot.io", o: [["getAllDesigns", "get", "/v1/designs"], ["addDesign", "post", "/v1/designs", null, 1], ["getDesign", "get", "/v1/designs/{designId}", [["designId", "p", true]]], ["deleteDesign", "delete", "/v1/designs/{designId}", [["designId", "p", true]]], ["updateDesign", "put", "/v1/designs/{designId}", [["designId", "p", true]], 1], ["getThemeFromDesign", "get", "/v1/designs/{designId}/parse", [["designId", "p", true], ["orgId", "q"], ["theme", "q", true]]], ["uploadFile", "post", "/v1/designs/files", null, 1], ["getFiles", "get", "/v1/designs/files", [["type", "q"]]], ["getLimit", "get", "/v1/designs/limit"], ["getBrands", "get", "/v1/brands"], ["getConsumerDesign", "get", "/v1/designs/consumer/{application}/{consumerId}", [["consumerId", "p", true], ["application", "p", true]]], ["addConsumer", "put", "/v1/designs/addConsumer/{application}/{designId}", [["designId", "p", true], ["application", "p", true]], 1], ["removeConsumer", "put", "/v1/designs/removeConsumer/{application}/{designId}", [["designId", "p", true], ["application", "p", true]], 1]], v: "3.0.3" };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.require_design_runtime = require_design_runtime;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/definitions/notes-runtime.json
|
|
6
6
|
var require_notes_runtime = __commonJS({
|
|
7
7
|
"src/definitions/notes-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://notes.sls.epilot.io", o: [["createNote", "post", "/v1/note", null, 1], ["getNote", "get", "/v1/note/{id}", [["id", "p", true], ["hydrate", "q"]]], ["patchNote", "patch", "/v1/note/{id}", [["id", "p", true]], 1], ["updateNote", "put", "/v1/note/{id}", [["id", "p", true]], 1], ["deleteNote", "delete", "/v1/note/{id}", [["id", "p", true]]], ["searchNotesByContext", "post", "/v1/notes:search", null, 1], ["getNotesByContext", "get", "/v1/notes/{entity_id}", [["entity_id", "p", true], ["contexts", "q"], ["from", "q"], ["size", "q"]]], ["pinNote", "post", "/v1/note/{id}/pin", [["id", "p", true]]], ["getNoteContexts", "get", "/v1/note/{id}/context", [["id", "p", true]]], ["addNoteReaction", "post", "/v1/note/{id}/reaction", [["id", "p", true]], 1], ["removeNoteReaction", "delete", "/v1/note/{id}/reaction/{emoji_shortcode}", [["id", "p", true], ["emoji_shortcode", "p", true]]], ["toggleNoteReactions", "post", "/v1/note/{id}/reactions/toggle", [["id", "p", true]], 1]] };
|
|
8
|
+
module.exports = { s: "https://notes.sls.epilot.io", o: [["createNote", "post", "/v1/note", null, 1], ["getNote", "get", "/v1/note/{id}", [["id", "p", true], ["hydrate", "q"]]], ["patchNote", "patch", "/v1/note/{id}", [["id", "p", true]], 1], ["updateNote", "put", "/v1/note/{id}", [["id", "p", true]], 1], ["deleteNote", "delete", "/v1/note/{id}", [["id", "p", true]]], ["searchNotesByContext", "post", "/v1/notes:search", null, 1], ["getNotesByContext", "get", "/v1/notes/{entity_id}", [["entity_id", "p", true], ["contexts", "q"], ["filter", "q"], ["from", "q"], ["size", "q"]]], ["pinNote", "post", "/v1/note/{id}/pin", [["id", "p", true]]], ["archiveNote", "post", "/v1/note/{id}/archive", [["id", "p", true]]], ["unarchiveNote", "post", "/v1/note/{id}/unarchive", [["id", "p", true]]], ["getNoteContexts", "get", "/v1/note/{id}/context", [["id", "p", true]]], ["addNoteReaction", "post", "/v1/note/{id}/reaction", [["id", "p", true]], 1], ["removeNoteReaction", "delete", "/v1/note/{id}/reaction/{emoji_shortcode}", [["id", "p", true], ["emoji_shortcode", "p", true]]], ["toggleNoteReactions", "post", "/v1/note/{id}/reactions/toggle", [["id", "p", true]], 1]] };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/definitions/configuration-hub-runtime.json
|
|
6
6
|
var require_configuration_hub_runtime = __commonJS({
|
|
7
7
|
"src/definitions/configuration-hub-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://configuration-hub.sls.epilot.io", o: [["listConfigTypes", "get", "/v1/configs/types"], ["listConfigs", "get", "/v1/configs/{type}", [["ConfigType"], ["CursorParam"], ["SizeParam"], ["q", "q"], ["updated_after", "q"], ["updated_before", "q"], ["purposes", "q"], ["blueprint_ids", "q"], ["sort", "q"], ["active_only", "q"]]], ["getConfigDependencies", "get", "/v1/configs/{type}/{id}/dependencies", [["ConfigType"], ["ConfigId"], ["CursorParam"], ["SizeParam"]]], ["getConfigUsedBy", "get", "/v1/configs/{type}/{id}/used_by", [["ConfigType"], ["ConfigId"]]], ["getIndex", "get", "/v1/configs/index"], ["rebuildIndex", "post", "/v1/configs/index:rebuild"]], v: "3.0.3", cp: { ConfigType: ["type", "p", true], ConfigId: ["id", "p", true], CursorParam: ["cursor", "q"], SizeParam: ["size", "q"] } };
|
|
8
|
+
module.exports = { s: "https://configuration-hub.sls.epilot.io", o: [["listConfigTypes", "get", "/v1/configs/types"], ["listConfigs", "get", "/v1/configs/{type}", [["ConfigType"], ["CursorParam"], ["SizeParam"], ["q", "q"], ["updated_after", "q"], ["updated_before", "q"], ["purposes", "q"], ["blueprint_ids", "q"], ["sort", "q"], ["active_only", "q"]]], ["getConfigDependencies", "get", "/v1/configs/{type}/{id}/dependencies", [["ConfigType"], ["ConfigId"], ["CursorParam"], ["SizeParam"]]], ["getConfigUsedBy", "get", "/v1/configs/{type}/{id}/used_by", [["ConfigType"], ["ConfigId"]]], ["getIndex", "get", "/v1/configs/index"], ["createSyncJob", "post", "/v1/configs/sync-jobs", null, 1], ["listSyncJobs", "get", "/v1/configs/sync-jobs", [["CursorParam"], ["SizeParam"], ["status", "q"]]], ["getSyncJob", "get", "/v1/configs/sync-jobs/{id}", [["SyncJobId"]]], ["retrySyncJob", "post", "/v1/configs/sync-jobs/{id}/retry", [["SyncJobId"]], 1], ["listSyncJobResources", "get", "/v1/configs/sync-jobs/{id}/resources", [["SyncJobId"], ["CursorParam"], ["SizeParam"], ["status", "q"]]], ["rebuildIndex", "post", "/v1/configs/index:rebuild"]], v: "3.0.3", cp: { ConfigType: ["type", "p", true], ConfigId: ["id", "p", true], CursorParam: ["cursor", "q"], SizeParam: ["size", "q"], SyncJobId: ["id", "p", true] } };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
|
5
5
|
// src/definitions/notes-runtime.json
|
|
6
6
|
var require_notes_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
7
|
"src/definitions/notes-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://notes.sls.epilot.io", o: [["createNote", "post", "/v1/note", null, 1], ["getNote", "get", "/v1/note/{id}", [["id", "p", true], ["hydrate", "q"]]], ["patchNote", "patch", "/v1/note/{id}", [["id", "p", true]], 1], ["updateNote", "put", "/v1/note/{id}", [["id", "p", true]], 1], ["deleteNote", "delete", "/v1/note/{id}", [["id", "p", true]]], ["searchNotesByContext", "post", "/v1/notes:search", null, 1], ["getNotesByContext", "get", "/v1/notes/{entity_id}", [["entity_id", "p", true], ["contexts", "q"], ["from", "q"], ["size", "q"]]], ["pinNote", "post", "/v1/note/{id}/pin", [["id", "p", true]]], ["getNoteContexts", "get", "/v1/note/{id}/context", [["id", "p", true]]], ["addNoteReaction", "post", "/v1/note/{id}/reaction", [["id", "p", true]], 1], ["removeNoteReaction", "delete", "/v1/note/{id}/reaction/{emoji_shortcode}", [["id", "p", true], ["emoji_shortcode", "p", true]]], ["toggleNoteReactions", "post", "/v1/note/{id}/reactions/toggle", [["id", "p", true]], 1]] };
|
|
8
|
+
module.exports = { s: "https://notes.sls.epilot.io", o: [["createNote", "post", "/v1/note", null, 1], ["getNote", "get", "/v1/note/{id}", [["id", "p", true], ["hydrate", "q"]]], ["patchNote", "patch", "/v1/note/{id}", [["id", "p", true]], 1], ["updateNote", "put", "/v1/note/{id}", [["id", "p", true]], 1], ["deleteNote", "delete", "/v1/note/{id}", [["id", "p", true]]], ["searchNotesByContext", "post", "/v1/notes:search", null, 1], ["getNotesByContext", "get", "/v1/notes/{entity_id}", [["entity_id", "p", true], ["contexts", "q"], ["filter", "q"], ["from", "q"], ["size", "q"]]], ["pinNote", "post", "/v1/note/{id}/pin", [["id", "p", true]]], ["archiveNote", "post", "/v1/note/{id}/archive", [["id", "p", true]]], ["unarchiveNote", "post", "/v1/note/{id}/unarchive", [["id", "p", true]]], ["getNoteContexts", "get", "/v1/note/{id}/context", [["id", "p", true]]], ["addNoteReaction", "post", "/v1/note/{id}/reaction", [["id", "p", true]], 1], ["removeNoteReaction", "delete", "/v1/note/{id}/reaction/{emoji_shortcode}", [["id", "p", true], ["emoji_shortcode", "p", true]]], ["toggleNoteReactions", "post", "/v1/note/{id}/reactions/toggle", [["id", "p", true]], 1]] };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./chunk-YPSWSI3M.js";
|
|
2
|
+
|
|
3
|
+
// src/docs/configuration-hub.json
|
|
4
|
+
var configuration_hub_default = '# Configuration Hub API\n\n- **Base URL:** `https://configuration-hub.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/configuration-hub](https://docs.epilot.io/api/configuration-hub)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.configurationHub.listConfigTypes(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/configuration-hub\'\n\nconst configurationHubClient = getClient()\nauthorize(configurationHubClient, () => \'<token>\')\nconst { data } = await configurationHubClient.listConfigTypes(...)\n```\n\n## Operations\n\n**Configs**\n- [`listConfigTypes`](#listconfigtypes)\n- [`listConfigs`](#listconfigs)\n- [`getConfigDependencies`](#getconfigdependencies)\n- [`getConfigUsedBy`](#getconfigusedby)\n- [`getIndex`](#getindex)\n- [`rebuildIndex`](#rebuildindex)\n\n**Sync**\n- [`createSyncJob`](#createsyncjob)\n- [`listSyncJobs`](#listsyncjobs)\n- [`getSyncJob`](#getsyncjob)\n- [`retrySyncJob`](#retrysyncjob)\n- [`listSyncJobResources`](#listsyncjobresources)\n\n**Schemas**\n- [`ResourceType`](#resourcetype)\n- [`ConfigTypeInfo`](#configtypeinfo)\n- [`ConfigNode`](#confignode)\n- [`ConfigListResponse`](#configlistresponse)\n- [`ConfigDependenciesResponse`](#configdependenciesresponse)\n- [`IndexRebuildResponse`](#indexrebuildresponse)\n- [`IndexStatusResponse`](#indexstatusresponse)\n- [`ErrorResponse`](#errorresponse)\n- [`SyncJobStatus`](#syncjobstatus)\n- [`SyncDirection`](#syncdirection)\n- [`SyncPhase`](#syncphase)\n- [`SyncJobResourceStatus`](#syncjobresourcestatus)\n- [`SyncJobRequest`](#syncjobrequest)\n- [`SyncJobRetryRequest`](#syncjobretryrequest)\n- [`SyncJobCounts`](#syncjobcounts)\n- [`SyncJobEvent`](#syncjobevent)\n- [`SyncJobBatch`](#syncjobbatch)\n- [`SyncJob`](#syncjob)\n- [`SyncJobListResponse`](#syncjoblistresponse)\n- [`SyncJobResource`](#syncjobresource)\n- [`SyncJobResourceListResponse`](#syncjobresourcelistresponse)\n\n### `listConfigTypes`\n\nReturns the static list of available configuration types with display metadata.\nThis is a cheap call \u2014 no fan-out to downstream APIs. Returns all known types\nwith labels and icons. The frontend should\n\n`GET /v1/configs/types`\n\n```ts\nconst { data } = await client.listConfigTypes()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "type": "journey",\n "label": "Journeys",\n "icon": "Route",\n "source_api": "https://journey.sls.epilot.io",\n "sdk_client": "@epilot/sdk/journey"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listConfigs`\n\nList configs of a given type with pagination. Returns summary metadata only\n(not full payloads). The frontend calls this per type folder when expanding.\n\n`GET /v1/configs/{type}`\n\n```ts\nconst { data } = await client.listConfigs({\n type: \'example\',\n cursor: \'example\',\n size: 1,\n q: \'example\',\n updated_after: \'example\',\n updated_before: \'example\',\n purposes: \'example\',\n blueprint_ids: \'example\',\n sort: \'example\',\n active_only: true,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "type": "journey",\n "label": "string",\n "icon": "string",\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "active": true,\n "blueprints": [\n {\n "id": "string",\n "title": "string"\n }\n ],\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigDependencies`\n\nGet configs that are referenced by the given config.\nUsed to render children when expanding a config node in the tree.\n\n`GET /v1/configs/{type}/{id}/dependencies`\n\n```ts\nconst { data } = await client.getConfigDependencies({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n cursor: \'example\',\n size: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "active": true,\n "blueprints": [\n {\n "id": "string",\n "title": "string"\n }\n ],\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigUsedBy`\n\nGet configs that reference the given config (reverse dependencies).\nScans the indexed config items for references to this config\'s ID or aliases.\n\n`GET /v1/configs/{type}/{id}/used_by`\n\n```ts\nconst { data } = await client.getConfigUsedBy({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "active": true,\n "blueprints": [\n {\n "id": "string",\n "title": "string"\n }\n ],\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getIndex`\n\nReturn the current index build state for the caller\'s organization.\nClients poll this to decide whether to show a "building" indicator\nand when to refetch data.\n\n`GET /v1/configs/index`\n\n```ts\nconst { data } = await client.getIndex()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status": "missing",\n "last_built_at": "1970-01-01T00:00:00.000Z",\n "total_items": 0,\n "build_duration_ms": 0\n}\n```\n\n</details>\n\n---\n\n### `createSyncJob`\n\nCreate 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\n`POST /v1/configs/sync-jobs`\n\n```ts\nconst { data } = await client.createSyncJob(\n null,\n {\n source_org_id: \'string\',\n target_org_id: \'string\',\n target_auth_token: \'string\',\n name: \'string\',\n dry_run: false,\n include_dependencies: true,\n resources: [\n {\n type: \'string\',\n id: \'string\'\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "name": "string",\n "status": "pending",\n "direction": "push",\n "source_org_id": "string",\n "target_org_id": "string",\n "dry_run": true,\n "counts": {\n "total": 0,\n "pending": 0,\n "in_progress": 0,\n "succeeded": 0,\n "failed": 0,\n "skipped_unchanged": 0\n },\n "current_phase": "phase_0",\n "current_batch": {\n "index": 0,\n "of": 0,\n "level": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "finished_at": "1970-01-01T00:00:00.000Z",\n "events": [\n {\n "seq": 0,\n "ts": "1970-01-01T00:00:00.000Z",\n "phase": "phase_0",\n "type": "string",\n "source_id": "string",\n "target_id": "string",\n "status": "pending",\n "message": "string",\n "error": "string"\n }\n ],\n "errors_sample": [\n {\n "type": "string",\n "source_id": "string",\n "error": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listSyncJobs`\n\nList sync jobs scoped to the caller\'s organization, paginated with an opaque\ncursor. Defaults to most-recent first.\n\n`GET /v1/configs/sync-jobs`\n\n```ts\nconst { data } = await client.listSyncJobs({\n cursor: \'example\',\n size: 1,\n status: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "next_cursor": "string",\n "results": [\n {\n "id": "string",\n "name": "string",\n "status": "pending",\n "direction": "push",\n "source_org_id": "string",\n "target_org_id": "string",\n "dry_run": true,\n "counts": {\n "total": 0,\n "pending": 0,\n "in_progress": 0,\n "succeeded": 0,\n "failed": 0,\n "skipped_unchanged": 0\n },\n "current_phase": "phase_0",\n "current_batch": {\n "index": 0,\n "of": 0,\n "level": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "finished_at": "1970-01-01T00:00:00.000Z",\n "events": [\n {\n "seq": 0,\n "ts": "1970-01-01T00:00:00.000Z",\n "phase": "phase_0",\n "type": "string",\n "source_id": "string",\n "target_id": "string",\n "status": "pending",\n "message": "string",\n "error": "string"\n }\n ],\n "errors_sample": [\n {\n "type": "string",\n "source_id": "string",\n "error": "string"\n }\n ]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getSyncJob`\n\nFetch 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\n`GET /v1/configs/sync-jobs/{id}`\n\n```ts\nconst { data } = await client.getSyncJob({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "name": "string",\n "status": "pending",\n "direction": "push",\n "source_org_id": "string",\n "target_org_id": "string",\n "dry_run": true,\n "counts": {\n "total": 0,\n "pending": 0,\n "in_progress": 0,\n "succeeded": 0,\n "failed": 0,\n "skipped_unchanged": 0\n },\n "current_phase": "phase_0",\n "current_batch": {\n "index": 0,\n "of": 0,\n "level": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "finished_at": "1970-01-01T00:00:00.000Z",\n "events": [\n {\n "seq": 0,\n "ts": "1970-01-01T00:00:00.000Z",\n "phase": "phase_0",\n "type": "string",\n "source_id": "string",\n "target_id": "string",\n "status": "pending",\n "message": "string",\n "error": "string"\n }\n ],\n "errors_sample": [\n {\n "type": "string",\n "source_id": "string",\n "error": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `retrySyncJob`\n\nRetry 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 paylo\n\n`POST /v1/configs/sync-jobs/{id}/retry`\n\n```ts\nconst { data } = await client.retrySyncJob(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n payload_overrides: {}\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "name": "string",\n "status": "pending",\n "direction": "push",\n "source_org_id": "string",\n "target_org_id": "string",\n "dry_run": true,\n "counts": {\n "total": 0,\n "pending": 0,\n "in_progress": 0,\n "succeeded": 0,\n "failed": 0,\n "skipped_unchanged": 0\n },\n "current_phase": "phase_0",\n "current_batch": {\n "index": 0,\n "of": 0,\n "level": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "finished_at": "1970-01-01T00:00:00.000Z",\n "events": [\n {\n "seq": 0,\n "ts": "1970-01-01T00:00:00.000Z",\n "phase": "phase_0",\n "type": "string",\n "source_id": "string",\n "target_id": "string",\n "status": "pending",\n "message": "string",\n "error": "string"\n }\n ],\n "errors_sample": [\n {\n "type": "string",\n "source_id": "string",\n "error": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listSyncJobResources`\n\nList 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\n`GET /v1/configs/sync-jobs/{id}/resources`\n\n```ts\nconst { data } = await client.listSyncJobResources({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n cursor: \'example\',\n size: 1,\n status: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "next_cursor": "string",\n "results": [\n {\n "type": "string",\n "source_id": "string",\n "target_id": "string",\n "status": "pending",\n "phase": "phase_0",\n "attempt": 0,\n "error": "string",\n "updated_at": "1970-01-01T00:00:00.000Z"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `rebuildIndex`\n\nRebuild the configuration index for the caller\'s organization.\nFire-and-forget: invokes the async worker and returns immediately.\nA new rebuild will cancel any in-flight build (see `build_token`).\n\n`POST /v1/configs/index:rebuild`\n\n```ts\nconst { data } = await client.rebuildIndex()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status": "ready",\n "last_built_at": "1970-01-01T00:00:00.000Z",\n "total_items": 0,\n "build_duration_ms": 0,\n "failed_types": ["string"]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ResourceType`\n\nConfiguration resource type identifier.\nMatches blueprint-manifest-api V3 naming conventions.\n\n\n```ts\ntype ResourceType = "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n```\n\n### `ConfigTypeInfo`\n\nStatic metadata for a config type folder in the tree.\nNo downstream API calls \u2014 just type + label + icon + source API info.\n\n\n```ts\ntype ConfigTypeInfo = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n label: string\n icon: string\n source_api: string\n sdk_client: string\n}\n```\n\n### `ConfigNode`\n\nSummary metadata for a single configuration item in the tree\n\n```ts\ntype ConfigNode = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n active?: boolean\n blueprints?: Array<{\n id: string\n title: string\n }>\n metadata?: Record<string, unknown>\n}\n```\n\n### `ConfigListResponse`\n\nCursor-paginated list of configs for a specific type\n\n```ts\ntype ConfigListResponse = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n label: string\n icon: string\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n active?: boolean\n blueprints?: Array<{\n id: { ... }\n title: { ... }\n }>\n metadata?: Record<string, unknown>\n }>\n}\n```\n\n### `ConfigDependenciesResponse`\n\nCursor-paginated list of configs referenced by a given config\n\n```ts\ntype ConfigDependenciesResponse = {\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n active?: boolean\n blueprints?: Array<{\n id: { ... }\n title: { ... }\n }>\n metadata?: Record<string, unknown>\n }>\n}\n```\n\n### `IndexRebuildResponse`\n\nResult of an index rebuild operation\n\n```ts\ntype IndexRebuildResponse = {\n status: "ready" | "building" | "failed" | "already_building"\n last_built_at?: string // date-time\n total_items?: number\n build_duration_ms?: number\n failed_types?: string[]\n}\n```\n\n### `IndexStatusResponse`\n\nCurrent index build state\n\n```ts\ntype IndexStatusResponse = {\n status: "missing" | "building" | "ready" | "failed"\n last_built_at?: string // date-time\n total_items?: number\n build_duration_ms?: number\n}\n```\n\n### `ErrorResponse`\n\n```ts\ntype ErrorResponse = {\n status: number\n error: string\n}\n```\n\n### `SyncJobStatus`\n\nLifecycle status of a sync job. See `docs/sync/INTERFACES.md` for state\ntransitions.\n\n\n```ts\ntype SyncJobStatus = "pending" | "in_progress" | "succeeded" | "partial" | "failed" | "cancelled"\n```\n\n### `SyncDirection`\n\nDirection of the sync, derived from the source/target pane selection in the\nconfiguration hub UI.\n\n\n```ts\ntype SyncDirection = "push" | "pull"\n```\n\n### `SyncPhase`\n\nThree-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\n\n```ts\ntype SyncPhase = "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n```\n\n### `SyncJobResourceStatus`\n\nPer-resource status. `would_*` values are produced by dry-run jobs.\n\n\n```ts\ntype SyncJobResourceStatus = "pending" | "in_progress" | "created" | "patched" | "skipped" | "would_create" | "would_patch" | "would_skip_unchanged" | "would_match_heuristic" | "failed"\n```\n\n### `SyncJobRequest`\n\nRequest body for `createSyncJob`. `target_auth_token` is the destination\norg\'s auth token and MUST NOT be persisted or logged \u2014 it is `writeOnly`.\n\n\n```ts\ntype SyncJobRequest = {\n source_org_id: string\n target_org_id: string\n target_auth_token: string\n name?: string\n dry_run?: boolean\n include_dependencies?: boolean\n resources: Array<{\n type: string\n id: string\n }>\n}\n```\n\n### `SyncJobRetryRequest`\n\nOptional body for `retrySyncJob`. Defaults to retrying every failed\nresource of the original job.\n\n\n```ts\ntype SyncJobRetryRequest = {\n payload_overrides?: Record<string, unknown>\n}\n```\n\n### `SyncJobCounts`\n\nAggregate counters by resource status.\n\n```ts\ntype SyncJobCounts = {\n total: number\n pending: number\n in_progress: number\n succeeded: number\n failed: number\n skipped_unchanged: number\n}\n```\n\n### `SyncJobEvent`\n\nActivity-log entry surfaced to the frontend. Backed by the op-log rows in\nthe index table (`SYNC#`<jobId>`#OP#`<seq>``).\n\n\n```ts\ntype SyncJobEvent = {\n seq: number\n ts: string // date-time\n phase?: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n type?: string\n source_id?: string\n target_id?: string\n status: "pending" | "in_progress" | "created" | "patched" | "skipped" | "would_create" | "would_patch" | "would_skip_unchanged" | "would_match_heuristic" | "failed"\n message?: string\n error?: string\n}\n```\n\n### `SyncJobBatch`\n\nPosition within the current topological batch for the active phase.\n\n```ts\ntype SyncJobBatch = {\n index: number\n of: number\n level: number\n}\n```\n\n### `SyncJob`\n\nSync job header as surfaced by `getSyncJob` and the create response. The\ncanonical persistence shape is described in `docs/sync/INTERFACES.md`.\n\n\n```ts\ntype SyncJob = {\n id: string\n name?: string\n status: "pending" | "in_progress" | "succeeded" | "partial" | "failed" | "cancelled"\n direction: "push" | "pull"\n source_org_id: string\n target_org_id: string\n dry_run: boolean\n counts: {\n total: number\n pending: number\n in_progress: number\n succeeded: number\n failed: number\n skipped_unchanged: number\n }\n current_phase?: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n current_batch?: {\n index: number\n of: number\n level: number\n }\n started_at: string // date-time\n finished_at?: string // date-time\n events?: Array<{\n seq: number\n ts: string // date-time\n phase?: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n type?: string\n source_id?: string\n target_id?: string\n status: "pending" | "in_progress" | "created" | "patched" | "skipped" | "would_create" | "would_patch" | "would_skip_unchanged" | "would_match_heuristic" | "failed"\n message?: string\n error?: string\n }>\n errors_sample?: Array<{\n type: string\n source_id: string\n error: string\n }>\n}\n```\n\n### `SyncJobListResponse`\n\nCursor-paginated list of sync jobs.\n\n```ts\ntype SyncJobListResponse = {\n next_cursor?: string\n results: Array<{\n id: string\n name?: string\n status: "pending" | "in_progress" | "succeeded" | "partial" | "failed" | "cancelled"\n direction: "push" | "pull"\n source_org_id: string\n target_org_id: string\n dry_run: boolean\n counts: {\n total: { ... }\n pending: { ... }\n in_progress: { ... }\n succeeded: { ... }\n failed: { ... }\n skipped_unchanged: { ... }\n }\n current_phase?: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n current_batch?: {\n index: { ... }\n of: { ... }\n level: { ... }\n }\n started_at: string // date-time\n finished_at?: string // date-time\n events?: Array<{\n seq: { ... }\n ts: { ... }\n phase?: { ... }\n type?: { ... }\n source_id?: { ... }\n target_id?: { ... }\n status: { ... }\n message?: { ... }\n error?: { ... }\n }>\n errors_sample?: Array<{\n type: { ... }\n source_id: { ... }\n error: { ... }\n }>\n }>\n}\n```\n\n### `SyncJobResource`\n\nPer-resource row backed by `SyncResourcesTable`. See\n`docs/sync/INTERFACES.md` for the DDB shape.\n\n\n```ts\ntype SyncJobResource = {\n type: string\n source_id: string\n target_id?: string\n status: "pending" | "in_progress" | "created" | "patched" | "skipped" | "would_create" | "would_patch" | "would_skip_unchanged" | "would_match_heuristic" | "failed"\n phase: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n attempt: number\n error?: string\n updated_at: string // date-time\n}\n```\n\n### `SyncJobResourceListResponse`\n\nCursor-paginated list of sync job resources.\n\n```ts\ntype SyncJobResourceListResponse = {\n next_cursor?: string\n results: Array<{\n type: string\n source_id: string\n target_id?: string\n status: "pending" | "in_progress" | "created" | "patched" | "skipped" | "would_create" | "would_patch" | "would_skip_unchanged" | "would_match_heuristic" | "failed"\n phase: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n attempt: number\n error?: string\n updated_at: string // date-time\n }>\n}\n```\n';
|
|
5
|
+
export {
|
|
6
|
+
configuration_hub_default as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');
|
|
2
|
+
|
|
3
|
+
// src/docs/configuration-hub.json
|
|
4
|
+
var configuration_hub_default = '# Configuration Hub API\n\n- **Base URL:** `https://configuration-hub.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/configuration-hub](https://docs.epilot.io/api/configuration-hub)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.configurationHub.listConfigTypes(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/configuration-hub\'\n\nconst configurationHubClient = getClient()\nauthorize(configurationHubClient, () => \'<token>\')\nconst { data } = await configurationHubClient.listConfigTypes(...)\n```\n\n## Operations\n\n**Configs**\n- [`listConfigTypes`](#listconfigtypes)\n- [`listConfigs`](#listconfigs)\n- [`getConfigDependencies`](#getconfigdependencies)\n- [`getConfigUsedBy`](#getconfigusedby)\n- [`getIndex`](#getindex)\n- [`rebuildIndex`](#rebuildindex)\n\n**Sync**\n- [`createSyncJob`](#createsyncjob)\n- [`listSyncJobs`](#listsyncjobs)\n- [`getSyncJob`](#getsyncjob)\n- [`retrySyncJob`](#retrysyncjob)\n- [`listSyncJobResources`](#listsyncjobresources)\n\n**Schemas**\n- [`ResourceType`](#resourcetype)\n- [`ConfigTypeInfo`](#configtypeinfo)\n- [`ConfigNode`](#confignode)\n- [`ConfigListResponse`](#configlistresponse)\n- [`ConfigDependenciesResponse`](#configdependenciesresponse)\n- [`IndexRebuildResponse`](#indexrebuildresponse)\n- [`IndexStatusResponse`](#indexstatusresponse)\n- [`ErrorResponse`](#errorresponse)\n- [`SyncJobStatus`](#syncjobstatus)\n- [`SyncDirection`](#syncdirection)\n- [`SyncPhase`](#syncphase)\n- [`SyncJobResourceStatus`](#syncjobresourcestatus)\n- [`SyncJobRequest`](#syncjobrequest)\n- [`SyncJobRetryRequest`](#syncjobretryrequest)\n- [`SyncJobCounts`](#syncjobcounts)\n- [`SyncJobEvent`](#syncjobevent)\n- [`SyncJobBatch`](#syncjobbatch)\n- [`SyncJob`](#syncjob)\n- [`SyncJobListResponse`](#syncjoblistresponse)\n- [`SyncJobResource`](#syncjobresource)\n- [`SyncJobResourceListResponse`](#syncjobresourcelistresponse)\n\n### `listConfigTypes`\n\nReturns the static list of available configuration types with display metadata.\nThis is a cheap call \u2014 no fan-out to downstream APIs. Returns all known types\nwith labels and icons. The frontend should\n\n`GET /v1/configs/types`\n\n```ts\nconst { data } = await client.listConfigTypes()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "type": "journey",\n "label": "Journeys",\n "icon": "Route",\n "source_api": "https://journey.sls.epilot.io",\n "sdk_client": "@epilot/sdk/journey"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listConfigs`\n\nList configs of a given type with pagination. Returns summary metadata only\n(not full payloads). The frontend calls this per type folder when expanding.\n\n`GET /v1/configs/{type}`\n\n```ts\nconst { data } = await client.listConfigs({\n type: \'example\',\n cursor: \'example\',\n size: 1,\n q: \'example\',\n updated_after: \'example\',\n updated_before: \'example\',\n purposes: \'example\',\n blueprint_ids: \'example\',\n sort: \'example\',\n active_only: true,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "type": "journey",\n "label": "string",\n "icon": "string",\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "active": true,\n "blueprints": [\n {\n "id": "string",\n "title": "string"\n }\n ],\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigDependencies`\n\nGet configs that are referenced by the given config.\nUsed to render children when expanding a config node in the tree.\n\n`GET /v1/configs/{type}/{id}/dependencies`\n\n```ts\nconst { data } = await client.getConfigDependencies({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n cursor: \'example\',\n size: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "active": true,\n "blueprints": [\n {\n "id": "string",\n "title": "string"\n }\n ],\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getConfigUsedBy`\n\nGet configs that reference the given config (reverse dependencies).\nScans the indexed config items for references to this config\'s ID or aliases.\n\n`GET /v1/configs/{type}/{id}/used_by`\n\n```ts\nconst { data } = await client.getConfigUsedBy({\n type: \'example\',\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "total": 0,\n "next_cursor": "string",\n "results": [\n {\n "type": "journey",\n "id": "string",\n "title": "string",\n "updated_at": "1970-01-01T00:00:00.000Z",\n "updated_by": "string",\n "tags": ["string"],\n "aliases": ["string"],\n "purposes": ["string"],\n "link": "https://example.com/path",\n "active": true,\n "blueprints": [\n {\n "id": "string",\n "title": "string"\n }\n ],\n "metadata": {}\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getIndex`\n\nReturn the current index build state for the caller\'s organization.\nClients poll this to decide whether to show a "building" indicator\nand when to refetch data.\n\n`GET /v1/configs/index`\n\n```ts\nconst { data } = await client.getIndex()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status": "missing",\n "last_built_at": "1970-01-01T00:00:00.000Z",\n "total_items": 0,\n "build_duration_ms": 0\n}\n```\n\n</details>\n\n---\n\n### `createSyncJob`\n\nCreate 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\n`POST /v1/configs/sync-jobs`\n\n```ts\nconst { data } = await client.createSyncJob(\n null,\n {\n source_org_id: \'string\',\n target_org_id: \'string\',\n target_auth_token: \'string\',\n name: \'string\',\n dry_run: false,\n include_dependencies: true,\n resources: [\n {\n type: \'string\',\n id: \'string\'\n }\n ]\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "name": "string",\n "status": "pending",\n "direction": "push",\n "source_org_id": "string",\n "target_org_id": "string",\n "dry_run": true,\n "counts": {\n "total": 0,\n "pending": 0,\n "in_progress": 0,\n "succeeded": 0,\n "failed": 0,\n "skipped_unchanged": 0\n },\n "current_phase": "phase_0",\n "current_batch": {\n "index": 0,\n "of": 0,\n "level": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "finished_at": "1970-01-01T00:00:00.000Z",\n "events": [\n {\n "seq": 0,\n "ts": "1970-01-01T00:00:00.000Z",\n "phase": "phase_0",\n "type": "string",\n "source_id": "string",\n "target_id": "string",\n "status": "pending",\n "message": "string",\n "error": "string"\n }\n ],\n "errors_sample": [\n {\n "type": "string",\n "source_id": "string",\n "error": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listSyncJobs`\n\nList sync jobs scoped to the caller\'s organization, paginated with an opaque\ncursor. Defaults to most-recent first.\n\n`GET /v1/configs/sync-jobs`\n\n```ts\nconst { data } = await client.listSyncJobs({\n cursor: \'example\',\n size: 1,\n status: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "next_cursor": "string",\n "results": [\n {\n "id": "string",\n "name": "string",\n "status": "pending",\n "direction": "push",\n "source_org_id": "string",\n "target_org_id": "string",\n "dry_run": true,\n "counts": {\n "total": 0,\n "pending": 0,\n "in_progress": 0,\n "succeeded": 0,\n "failed": 0,\n "skipped_unchanged": 0\n },\n "current_phase": "phase_0",\n "current_batch": {\n "index": 0,\n "of": 0,\n "level": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "finished_at": "1970-01-01T00:00:00.000Z",\n "events": [\n {\n "seq": 0,\n "ts": "1970-01-01T00:00:00.000Z",\n "phase": "phase_0",\n "type": "string",\n "source_id": "string",\n "target_id": "string",\n "status": "pending",\n "message": "string",\n "error": "string"\n }\n ],\n "errors_sample": [\n {\n "type": "string",\n "source_id": "string",\n "error": "string"\n }\n ]\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getSyncJob`\n\nFetch 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\n`GET /v1/configs/sync-jobs/{id}`\n\n```ts\nconst { data } = await client.getSyncJob({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "name": "string",\n "status": "pending",\n "direction": "push",\n "source_org_id": "string",\n "target_org_id": "string",\n "dry_run": true,\n "counts": {\n "total": 0,\n "pending": 0,\n "in_progress": 0,\n "succeeded": 0,\n "failed": 0,\n "skipped_unchanged": 0\n },\n "current_phase": "phase_0",\n "current_batch": {\n "index": 0,\n "of": 0,\n "level": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "finished_at": "1970-01-01T00:00:00.000Z",\n "events": [\n {\n "seq": 0,\n "ts": "1970-01-01T00:00:00.000Z",\n "phase": "phase_0",\n "type": "string",\n "source_id": "string",\n "target_id": "string",\n "status": "pending",\n "message": "string",\n "error": "string"\n }\n ],\n "errors_sample": [\n {\n "type": "string",\n "source_id": "string",\n "error": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `retrySyncJob`\n\nRetry 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 paylo\n\n`POST /v1/configs/sync-jobs/{id}/retry`\n\n```ts\nconst { data } = await client.retrySyncJob(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n payload_overrides: {}\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "name": "string",\n "status": "pending",\n "direction": "push",\n "source_org_id": "string",\n "target_org_id": "string",\n "dry_run": true,\n "counts": {\n "total": 0,\n "pending": 0,\n "in_progress": 0,\n "succeeded": 0,\n "failed": 0,\n "skipped_unchanged": 0\n },\n "current_phase": "phase_0",\n "current_batch": {\n "index": 0,\n "of": 0,\n "level": 0\n },\n "started_at": "1970-01-01T00:00:00.000Z",\n "finished_at": "1970-01-01T00:00:00.000Z",\n "events": [\n {\n "seq": 0,\n "ts": "1970-01-01T00:00:00.000Z",\n "phase": "phase_0",\n "type": "string",\n "source_id": "string",\n "target_id": "string",\n "status": "pending",\n "message": "string",\n "error": "string"\n }\n ],\n "errors_sample": [\n {\n "type": "string",\n "source_id": "string",\n "error": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `listSyncJobResources`\n\nList 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\n`GET /v1/configs/sync-jobs/{id}/resources`\n\n```ts\nconst { data } = await client.listSyncJobResources({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n cursor: \'example\',\n size: 1,\n status: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "next_cursor": "string",\n "results": [\n {\n "type": "string",\n "source_id": "string",\n "target_id": "string",\n "status": "pending",\n "phase": "phase_0",\n "attempt": 0,\n "error": "string",\n "updated_at": "1970-01-01T00:00:00.000Z"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `rebuildIndex`\n\nRebuild the configuration index for the caller\'s organization.\nFire-and-forget: invokes the async worker and returns immediately.\nA new rebuild will cancel any in-flight build (see `build_token`).\n\n`POST /v1/configs/index:rebuild`\n\n```ts\nconst { data } = await client.rebuildIndex()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "status": "ready",\n "last_built_at": "1970-01-01T00:00:00.000Z",\n "total_items": 0,\n "build_duration_ms": 0,\n "failed_types": ["string"]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `ResourceType`\n\nConfiguration resource type identifier.\nMatches blueprint-manifest-api V3 naming conventions.\n\n\n```ts\ntype ResourceType = "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n```\n\n### `ConfigTypeInfo`\n\nStatic metadata for a config type folder in the tree.\nNo downstream API calls \u2014 just type + label + icon + source API info.\n\n\n```ts\ntype ConfigTypeInfo = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n label: string\n icon: string\n source_api: string\n sdk_client: string\n}\n```\n\n### `ConfigNode`\n\nSummary metadata for a single configuration item in the tree\n\n```ts\ntype ConfigNode = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n active?: boolean\n blueprints?: Array<{\n id: string\n title: string\n }>\n metadata?: Record<string, unknown>\n}\n```\n\n### `ConfigListResponse`\n\nCursor-paginated list of configs for a specific type\n\n```ts\ntype ConfigListResponse = {\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n label: string\n icon: string\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n active?: boolean\n blueprints?: Array<{\n id: { ... }\n title: { ... }\n }>\n metadata?: Record<string, unknown>\n }>\n}\n```\n\n### `ConfigDependenciesResponse`\n\nCursor-paginated list of configs referenced by a given config\n\n```ts\ntype ConfigDependenciesResponse = {\n total?: number\n next_cursor?: string\n results: Array<{\n type: "journey" | "automation_flow" | "workflow_definition" | "closing_reason" | "flow_template" | "schema" | "emailtemplate" | "product" | "price" | "tax" | "coupon" | "file" | "document_template" | "webhook" | "saved_view" | "dashboard" | "kanban" | "role" | "usergroup" | "validation_rule" | "integration" | "app" | "designbuilder" | "notification_template" | "custom_variable" | "environment_variable" | "taxonomy" | "taxonomy_classification" | "entity_mapping" | "portal_config" | "target" | "product_recommendation" | "access_token"\n id: string\n title: string\n updated_at?: string // date-time\n updated_by?: string\n tags?: string[]\n aliases?: string[]\n purposes?: string[]\n link?: string // uri\n active?: boolean\n blueprints?: Array<{\n id: { ... }\n title: { ... }\n }>\n metadata?: Record<string, unknown>\n }>\n}\n```\n\n### `IndexRebuildResponse`\n\nResult of an index rebuild operation\n\n```ts\ntype IndexRebuildResponse = {\n status: "ready" | "building" | "failed" | "already_building"\n last_built_at?: string // date-time\n total_items?: number\n build_duration_ms?: number\n failed_types?: string[]\n}\n```\n\n### `IndexStatusResponse`\n\nCurrent index build state\n\n```ts\ntype IndexStatusResponse = {\n status: "missing" | "building" | "ready" | "failed"\n last_built_at?: string // date-time\n total_items?: number\n build_duration_ms?: number\n}\n```\n\n### `ErrorResponse`\n\n```ts\ntype ErrorResponse = {\n status: number\n error: string\n}\n```\n\n### `SyncJobStatus`\n\nLifecycle status of a sync job. See `docs/sync/INTERFACES.md` for state\ntransitions.\n\n\n```ts\ntype SyncJobStatus = "pending" | "in_progress" | "succeeded" | "partial" | "failed" | "cancelled"\n```\n\n### `SyncDirection`\n\nDirection of the sync, derived from the source/target pane selection in the\nconfiguration hub UI.\n\n\n```ts\ntype SyncDirection = "push" | "pull"\n```\n\n### `SyncPhase`\n\nThree-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\n\n```ts\ntype SyncPhase = "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n```\n\n### `SyncJobResourceStatus`\n\nPer-resource status. `would_*` values are produced by dry-run jobs.\n\n\n```ts\ntype SyncJobResourceStatus = "pending" | "in_progress" | "created" | "patched" | "skipped" | "would_create" | "would_patch" | "would_skip_unchanged" | "would_match_heuristic" | "failed"\n```\n\n### `SyncJobRequest`\n\nRequest body for `createSyncJob`. `target_auth_token` is the destination\norg\'s auth token and MUST NOT be persisted or logged \u2014 it is `writeOnly`.\n\n\n```ts\ntype SyncJobRequest = {\n source_org_id: string\n target_org_id: string\n target_auth_token: string\n name?: string\n dry_run?: boolean\n include_dependencies?: boolean\n resources: Array<{\n type: string\n id: string\n }>\n}\n```\n\n### `SyncJobRetryRequest`\n\nOptional body for `retrySyncJob`. Defaults to retrying every failed\nresource of the original job.\n\n\n```ts\ntype SyncJobRetryRequest = {\n payload_overrides?: Record<string, unknown>\n}\n```\n\n### `SyncJobCounts`\n\nAggregate counters by resource status.\n\n```ts\ntype SyncJobCounts = {\n total: number\n pending: number\n in_progress: number\n succeeded: number\n failed: number\n skipped_unchanged: number\n}\n```\n\n### `SyncJobEvent`\n\nActivity-log entry surfaced to the frontend. Backed by the op-log rows in\nthe index table (`SYNC#`<jobId>`#OP#`<seq>``).\n\n\n```ts\ntype SyncJobEvent = {\n seq: number\n ts: string // date-time\n phase?: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n type?: string\n source_id?: string\n target_id?: string\n status: "pending" | "in_progress" | "created" | "patched" | "skipped" | "would_create" | "would_patch" | "would_skip_unchanged" | "would_match_heuristic" | "failed"\n message?: string\n error?: string\n}\n```\n\n### `SyncJobBatch`\n\nPosition within the current topological batch for the active phase.\n\n```ts\ntype SyncJobBatch = {\n index: number\n of: number\n level: number\n}\n```\n\n### `SyncJob`\n\nSync job header as surfaced by `getSyncJob` and the create response. The\ncanonical persistence shape is described in `docs/sync/INTERFACES.md`.\n\n\n```ts\ntype SyncJob = {\n id: string\n name?: string\n status: "pending" | "in_progress" | "succeeded" | "partial" | "failed" | "cancelled"\n direction: "push" | "pull"\n source_org_id: string\n target_org_id: string\n dry_run: boolean\n counts: {\n total: number\n pending: number\n in_progress: number\n succeeded: number\n failed: number\n skipped_unchanged: number\n }\n current_phase?: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n current_batch?: {\n index: number\n of: number\n level: number\n }\n started_at: string // date-time\n finished_at?: string // date-time\n events?: Array<{\n seq: number\n ts: string // date-time\n phase?: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n type?: string\n source_id?: string\n target_id?: string\n status: "pending" | "in_progress" | "created" | "patched" | "skipped" | "would_create" | "would_patch" | "would_skip_unchanged" | "would_match_heuristic" | "failed"\n message?: string\n error?: string\n }>\n errors_sample?: Array<{\n type: string\n source_id: string\n error: string\n }>\n}\n```\n\n### `SyncJobListResponse`\n\nCursor-paginated list of sync jobs.\n\n```ts\ntype SyncJobListResponse = {\n next_cursor?: string\n results: Array<{\n id: string\n name?: string\n status: "pending" | "in_progress" | "succeeded" | "partial" | "failed" | "cancelled"\n direction: "push" | "pull"\n source_org_id: string\n target_org_id: string\n dry_run: boolean\n counts: {\n total: { ... }\n pending: { ... }\n in_progress: { ... }\n succeeded: { ... }\n failed: { ... }\n skipped_unchanged: { ... }\n }\n current_phase?: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n current_batch?: {\n index: { ... }\n of: { ... }\n level: { ... }\n }\n started_at: string // date-time\n finished_at?: string // date-time\n events?: Array<{\n seq: { ... }\n ts: { ... }\n phase?: { ... }\n type?: { ... }\n source_id?: { ... }\n target_id?: { ... }\n status: { ... }\n message?: { ... }\n error?: { ... }\n }>\n errors_sample?: Array<{\n type: { ... }\n source_id: { ... }\n error: { ... }\n }>\n }>\n}\n```\n\n### `SyncJobResource`\n\nPer-resource row backed by `SyncResourcesTable`. See\n`docs/sync/INTERFACES.md` for the DDB shape.\n\n\n```ts\ntype SyncJobResource = {\n type: string\n source_id: string\n target_id?: string\n status: "pending" | "in_progress" | "created" | "patched" | "skipped" | "would_create" | "would_patch" | "would_skip_unchanged" | "would_match_heuristic" | "failed"\n phase: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n attempt: number\n error?: string\n updated_at: string // date-time\n}\n```\n\n### `SyncJobResourceListResponse`\n\nCursor-paginated list of sync job resources.\n\n```ts\ntype SyncJobResourceListResponse = {\n next_cursor?: string\n results: Array<{\n type: string\n source_id: string\n target_id?: string\n status: "pending" | "in_progress" | "created" | "patched" | "skipped" | "would_create" | "would_patch" | "would_skip_unchanged" | "would_match_heuristic" | "failed"\n phase: "phase_0" | "phase_a" | "phase_a5" | "phase_b" | "finalize"\n attempt: number\n error?: string\n updated_at: string // date-time\n }>\n}\n```\n';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.default = configuration_hub_default;
|
package/dist/{configuration-hub-runtime-I5Y67CXD.cjs → configuration-hub-runtime-QVLJKEZD.cjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkMOLFG5L4cjs = require('./chunk-MOLFG5L4.cjs');
|
|
4
4
|
require('./chunk-NJK5F5TF.cjs');
|
|
5
|
-
exports. default =
|
|
5
|
+
exports. default = _chunkMOLFG5L4cjs.require_configuration_hub_runtime.call(void 0, );
|