@epilot/sdk 2.8.1 → 2.8.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/README.md +1 -0
- package/definitions/access-token-runtime.json +1 -1
- package/definitions/access-token.json +155 -1
- package/definitions/snapshot-runtime.json +1 -0
- package/definitions/snapshot.json +734 -0
- package/definitions/user-runtime.json +1 -1
- package/definitions/user.json +441 -0
- package/dist/{_index-DB2VV4PQ.cjs → _index-D5TTZP5F.cjs} +4 -1
- package/dist/{_index-5FB6F5YY.js → _index-UY46ZN47.js} +3 -0
- package/dist/access-token-GD6REL4U.js +7 -0
- package/dist/access-token-NQ5BLMOW.cjs +7 -0
- package/dist/{access-token-runtime-KCKGT4O7.js → access-token-runtime-2PSLN2U3.js} +1 -1
- package/dist/{access-token-runtime-NZWZJPWV.cjs → access-token-runtime-B6Z7JLUS.cjs} +2 -2
- package/dist/{access-token.d-CnmUTOlq.d.cts → access-token.d-CegaQmrK.d.cts} +165 -5
- package/dist/{access-token.d-CnmUTOlq.d.ts → access-token.d-CegaQmrK.d.ts} +165 -5
- package/dist/apis/access-token.cjs +8 -8
- package/dist/apis/access-token.d.cts +2 -2
- package/dist/apis/access-token.d.ts +2 -2
- package/dist/apis/access-token.js +2 -2
- 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.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 +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- 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.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 +6 -6
- package/dist/apis/design.js +1 -1
- 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 +6 -6
- package/dist/apis/file.js +1 -1
- 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 +6 -6
- package/dist/apis/journey.js +1 -1
- 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 +6 -6
- package/dist/apis/notes.js +1 -1
- 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.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/snapshot.cjs +38 -0
- package/dist/apis/snapshot.d.cts +18 -0
- package/dist/apis/snapshot.d.ts +18 -0
- package/dist/apis/snapshot.js +38 -0
- 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 +8 -8
- package/dist/apis/user.d.cts +2 -2
- package/dist/apis/user.d.ts +2 -2
- package/dist/apis/user.js +2 -2
- 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/{chunk-ALMZO57K.js → chunk-76M3RIDP.js} +7 -5
- package/dist/chunk-BJGLY4Z2.js +14 -0
- package/dist/{chunk-WPBRWQPL.cjs → chunk-FBQ4WDTG.cjs} +7 -5
- package/dist/chunk-K2QVMO5M.cjs +14 -0
- package/dist/chunk-NFIYEMMM.js +14 -0
- package/dist/{chunk-XSE4CFSM.js → chunk-OHHHS4HH.js} +1 -1
- package/dist/chunk-OWXEZ56F.cjs +14 -0
- package/dist/{chunk-OXJOO2YF.cjs → chunk-S5HBBTKM.cjs} +1 -1
- package/dist/index.cjs +22 -14
- package/dist/index.d.cts +19 -17
- package/dist/index.d.ts +19 -17
- package/dist/index.js +13 -5
- package/dist/snapshot-427N6KCO.js +7 -0
- package/dist/snapshot-NEMUND3M.cjs +7 -0
- package/dist/snapshot-runtime-ALPJLXVW.js +5 -0
- package/dist/snapshot-runtime-NWQYU5UK.cjs +5 -0
- package/dist/snapshot.d-DvoJ2n-v.d.cts +591 -0
- package/dist/snapshot.d-DvoJ2n-v.d.ts +591 -0
- package/dist/user-3SLAEEVD.cjs +7 -0
- package/dist/user-PRUYBXQV.js +7 -0
- package/dist/{user-runtime-U4HYUWJU.js → user-runtime-6ICV2Y73.js} +1 -1
- package/dist/user-runtime-Y3227ETX.cjs +5 -0
- package/dist/{user.d-D18fe97W.d.cts → user.d-L-C7_K84.d.cts} +421 -1
- package/dist/{user.d-D18fe97W.d.ts → user.d-L-C7_K84.d.ts} +421 -1
- package/docs/access-token.md +111 -3
- package/docs/snapshot.md +501 -0
- package/docs/user.md +321 -8
- package/package.json +10 -1
- package/dist/access-token-6BJDZSFE.cjs +0 -7
- package/dist/access-token-GSQZLDXR.js +0 -7
- package/dist/chunk-3XKBB5AE.js +0 -14
- package/dist/chunk-Z5TVWG3I.cjs +0 -14
- package/dist/user-7ZN2XO7G.cjs +0 -7
- package/dist/user-ZK7BK6VY.js +0 -7
- package/dist/user-runtime-7O2HLFVQ.cjs +0 -5
package/dist/apis/workflow.cjs
CHANGED
|
@@ -6,25 +6,25 @@ var _chunkQNZPOA54cjs = require('../chunk-QNZPOA54.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkFBQ4WDTGcjs = require('../chunk-FBQ4WDTG.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/workflow.ts
|
|
13
13
|
var loadDefinition = () => {
|
|
14
14
|
const mod = _chunkQNZPOA54cjs.require_workflow_runtime.call(void 0, );
|
|
15
|
-
return
|
|
15
|
+
return _chunkFBQ4WDTGcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
16
16
|
};
|
|
17
17
|
var _instance = null;
|
|
18
18
|
var resolve = () => {
|
|
19
19
|
if (!_instance) {
|
|
20
20
|
const def = loadDefinition();
|
|
21
|
-
_instance =
|
|
21
|
+
_instance = _chunkFBQ4WDTGcjs.createApiClient.call(void 0, { definition: def, apiName: "workflow" });
|
|
22
22
|
}
|
|
23
23
|
return _instance;
|
|
24
24
|
};
|
|
25
|
-
var _handle =
|
|
25
|
+
var _handle = _chunkFBQ4WDTGcjs.createApiHandle.call(void 0, {
|
|
26
26
|
resolveClient: resolve,
|
|
27
|
-
createClient: () =>
|
|
27
|
+
createClient: () => _chunkFBQ4WDTGcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "workflow" }),
|
|
28
28
|
apiName: "workflow"
|
|
29
29
|
});
|
|
30
30
|
var getClient = _handle.getClient;
|
|
@@ -35,4 +35,4 @@ var workflow = _handle;
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
exports.authorize =
|
|
38
|
+
exports.authorize = _chunkFBQ4WDTGcjs.authorize; exports.createClient = createClient; exports.getClient = getClient; exports.workflow = workflow;
|
package/dist/apis/workflow.js
CHANGED
|
@@ -28,8 +28,8 @@ var authorize = (client, token) => {
|
|
|
28
28
|
// import("./docs/**/*") in src/help.ts
|
|
29
29
|
var globImport_docs = __glob({
|
|
30
30
|
"./docs/README.json": () => import("./README-46VYEGGW.js"),
|
|
31
|
-
"./docs/_index.json": () => import("./_index-
|
|
32
|
-
"./docs/access-token.json": () => import("./access-token-
|
|
31
|
+
"./docs/_index.json": () => import("./_index-UY46ZN47.js"),
|
|
32
|
+
"./docs/access-token.json": () => import("./access-token-GD6REL4U.js"),
|
|
33
33
|
"./docs/address-suggestions.json": () => import("./address-suggestions-74244BAJ.js"),
|
|
34
34
|
"./docs/address.json": () => import("./address-QVJUGMOG.js"),
|
|
35
35
|
"./docs/ai-agents.json": () => import("./ai-agents-IZWFEUSH.js"),
|
|
@@ -72,11 +72,12 @@ var globImport_docs = __glob({
|
|
|
72
72
|
"./docs/query.json": () => import("./query-RJ4M25PA.js"),
|
|
73
73
|
"./docs/sandbox.json": () => import("./sandbox-L2SOOGGR.js"),
|
|
74
74
|
"./docs/sharing.json": () => import("./sharing-MNDABPL7.js"),
|
|
75
|
+
"./docs/snapshot.json": () => import("./snapshot-427N6KCO.js"),
|
|
75
76
|
"./docs/submission.json": () => import("./submission-7BISSPO6.js"),
|
|
76
77
|
"./docs/target.json": () => import("./target-5MKRXCHX.js"),
|
|
77
78
|
"./docs/targeting.json": () => import("./targeting-TGPCRRI6.js"),
|
|
78
79
|
"./docs/template-variables.json": () => import("./template-variables-6CLOG67C.js"),
|
|
79
|
-
"./docs/user.json": () => import("./user-
|
|
80
|
+
"./docs/user.json": () => import("./user-PRUYBXQV.js"),
|
|
80
81
|
"./docs/validation-rules.json": () => import("./validation-rules-P6F5P73P.js"),
|
|
81
82
|
"./docs/webhooks.json": () => import("./webhooks-DTNKNJEN.js"),
|
|
82
83
|
"./docs/workflow-definition.json": () => import("./workflow-definition-2VF7S23G.js"),
|
|
@@ -99,7 +100,7 @@ var help = async (apiName) => {
|
|
|
99
100
|
|
|
100
101
|
// import("./definitions/**/*.json") in src/openapi.ts
|
|
101
102
|
var globImport_definitions_json = __glob({
|
|
102
|
-
"./definitions/access-token-runtime.json": () => import("./access-token-runtime-
|
|
103
|
+
"./definitions/access-token-runtime.json": () => import("./access-token-runtime-2PSLN2U3.js"),
|
|
103
104
|
"./definitions/access-token.json": () => import("./access-token-2O6ULCCN.js"),
|
|
104
105
|
"./definitions/address-runtime.json": () => import("./address-runtime-YFCNBJBW.js"),
|
|
105
106
|
"./definitions/address-suggestions-runtime.json": () => import("./address-suggestions-runtime-NIMC2J32.js"),
|
|
@@ -181,6 +182,7 @@ var globImport_definitions_json = __glob({
|
|
|
181
182
|
"./definitions/sandbox.json": () => import("./sandbox-O2NWMZGJ.js"),
|
|
182
183
|
"./definitions/sharing-runtime.json": () => import("./sharing-runtime-OZGIZWL3.js"),
|
|
183
184
|
"./definitions/sharing.json": () => import("./sharing-KEWK5LNG.js"),
|
|
185
|
+
"./definitions/snapshot-runtime.json": () => import("./snapshot-runtime-ALPJLXVW.js"),
|
|
184
186
|
"./definitions/submission-runtime.json": () => import("./submission-runtime-JPHKPQ77.js"),
|
|
185
187
|
"./definitions/submission.json": () => import("./submission-MWJU4L32.js"),
|
|
186
188
|
"./definitions/target-runtime.json": () => import("./target-runtime-PBF3WYL7.js"),
|
|
@@ -188,7 +190,7 @@ var globImport_definitions_json = __glob({
|
|
|
188
190
|
"./definitions/targeting.json": () => import("./targeting-RB7LBQMX.js"),
|
|
189
191
|
"./definitions/template-variables-runtime.json": () => import("./template-variables-runtime-62U3ZY5P.js"),
|
|
190
192
|
"./definitions/template-variables.json": () => import("./template-variables-XLIW4GY6.js"),
|
|
191
|
-
"./definitions/user-runtime.json": () => import("./user-runtime-
|
|
193
|
+
"./definitions/user-runtime.json": () => import("./user-runtime-6ICV2Y73.js"),
|
|
192
194
|
"./definitions/user.json": () => import("./user-O4JDAIRO.js"),
|
|
193
195
|
"./definitions/validation-rules-runtime.json": () => import("./validation-rules-runtime-6MRCS5X2.js"),
|
|
194
196
|
"./definitions/validation-rules.json": () => import("./validation-rules-GCI64B57.js"),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS
|
|
3
|
+
} from "./chunk-YPSWSI3M.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/snapshot-runtime.json
|
|
6
|
+
var require_snapshot_runtime = __commonJS({
|
|
7
|
+
"src/definitions/snapshot-runtime.json"(exports, module) {
|
|
8
|
+
module.exports = { s: "https://snapshot.sls.epilot.io", o: [["createSnapshot", "post", "/v1/snapshots", null, 1], ["listSnapshots", "get", "/v1/snapshots", [["cursor", "q"], ["size", "q"], ["resource", "q"]]], ["getSnapshot", "get", "/v1/snapshots/{id}"], ["deleteSnapshot", "delete", "/v1/snapshots/{id}"], ["restoreSnapshot", "post", "/v1/snapshots/{id}:restore"], ["listSnapshotResources", "get", "/v1/snapshots/{id}/resources"], ["getSnapshotResource", "get", "/v1/snapshots/{id}/resources/{lineage_id}"], ["listDependencies", "post", "/v1/snapshots:list-dependencies", null, 1]], v: "3.0.3", pp: { "/v1/snapshots/{id}": [["id", "p", true]], "/v1/snapshots/{id}:restore": [["id", "p", true]], "/v1/snapshots/{id}/resources": [["id", "p", true]], "/v1/snapshots/{id}/resources/{lineage_id}": [["id", "p", true], ["lineage_id", "p", true]] } };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
require_snapshot_runtime
|
|
14
|
+
};
|
|
@@ -28,8 +28,8 @@ var authorize = (client, token) => {
|
|
|
28
28
|
// import("./docs/**/*") in src/help.ts
|
|
29
29
|
var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
30
30
|
"./docs/README.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./README-IVBISSWB.cjs"))),
|
|
31
|
-
"./docs/_index.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./_index-
|
|
32
|
-
"./docs/access-token.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-
|
|
31
|
+
"./docs/_index.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./_index-D5TTZP5F.cjs"))),
|
|
32
|
+
"./docs/access-token.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-NQ5BLMOW.cjs"))),
|
|
33
33
|
"./docs/address-suggestions.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-suggestions-IUQMYF27.cjs"))),
|
|
34
34
|
"./docs/address.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-HA4RMRNQ.cjs"))),
|
|
35
35
|
"./docs/ai-agents.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./ai-agents-PWHKNRCX.cjs"))),
|
|
@@ -72,11 +72,12 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
72
72
|
"./docs/query.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./query-JSDB2F2U.cjs"))),
|
|
73
73
|
"./docs/sandbox.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./sandbox-2KN4X66E.cjs"))),
|
|
74
74
|
"./docs/sharing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./sharing-MR7ANOST.cjs"))),
|
|
75
|
+
"./docs/snapshot.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./snapshot-NEMUND3M.cjs"))),
|
|
75
76
|
"./docs/submission.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./submission-Q24BU4GS.cjs"))),
|
|
76
77
|
"./docs/target.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./target-3RS5BN2B.cjs"))),
|
|
77
78
|
"./docs/targeting.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./targeting-DAFJBPIZ.cjs"))),
|
|
78
79
|
"./docs/template-variables.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./template-variables-I72B5WS6.cjs"))),
|
|
79
|
-
"./docs/user.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./user-
|
|
80
|
+
"./docs/user.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./user-3SLAEEVD.cjs"))),
|
|
80
81
|
"./docs/validation-rules.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./validation-rules-VDU3CIZV.cjs"))),
|
|
81
82
|
"./docs/webhooks.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./webhooks-6CUXSTPH.cjs"))),
|
|
82
83
|
"./docs/workflow-definition.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-definition-U6YXD42W.cjs"))),
|
|
@@ -99,7 +100,7 @@ var help = async (apiName) => {
|
|
|
99
100
|
|
|
100
101
|
// import("./definitions/**/*.json") in src/openapi.ts
|
|
101
102
|
var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
102
|
-
"./definitions/access-token-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-runtime-
|
|
103
|
+
"./definitions/access-token-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-runtime-B6Z7JLUS.cjs"))),
|
|
103
104
|
"./definitions/access-token.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./access-token-RKP2A2F7.cjs"))),
|
|
104
105
|
"./definitions/address-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-runtime-2MNO2YRD.cjs"))),
|
|
105
106
|
"./definitions/address-suggestions-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./address-suggestions-runtime-ZNGLDADE.cjs"))),
|
|
@@ -181,6 +182,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
181
182
|
"./definitions/sandbox.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./sandbox-CLZTN7IW.cjs"))),
|
|
182
183
|
"./definitions/sharing-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./sharing-runtime-VOFLBIFW.cjs"))),
|
|
183
184
|
"./definitions/sharing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./sharing-WG4L7LH2.cjs"))),
|
|
185
|
+
"./definitions/snapshot-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./snapshot-runtime-NWQYU5UK.cjs"))),
|
|
184
186
|
"./definitions/submission-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./submission-runtime-5FD4AQSD.cjs"))),
|
|
185
187
|
"./definitions/submission.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./submission-6FD67HIE.cjs"))),
|
|
186
188
|
"./definitions/target-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./target-runtime-BMJ7EARM.cjs"))),
|
|
@@ -188,7 +190,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
188
190
|
"./definitions/targeting.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./targeting-4CQDSEKL.cjs"))),
|
|
189
191
|
"./definitions/template-variables-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./template-variables-runtime-LFOA32UM.cjs"))),
|
|
190
192
|
"./definitions/template-variables.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./template-variables-JYHE2VCH.cjs"))),
|
|
191
|
-
"./definitions/user-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./user-runtime-
|
|
193
|
+
"./definitions/user-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./user-runtime-Y3227ETX.cjs"))),
|
|
192
194
|
"./definitions/user.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./user-DKA6DDPX.cjs"))),
|
|
193
195
|
"./definitions/validation-rules-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./validation-rules-runtime-X7M3QE5I.cjs"))),
|
|
194
196
|
"./definitions/validation-rules.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./validation-rules-AYCAOVDZ.cjs"))),
|
|
@@ -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/snapshot-runtime.json
|
|
6
|
+
var require_snapshot_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
|
+
"src/definitions/snapshot-runtime.json"(exports, module) {
|
|
8
|
+
module.exports = { s: "https://snapshot.sls.epilot.io", o: [["createSnapshot", "post", "/v1/snapshots", null, 1], ["listSnapshots", "get", "/v1/snapshots", [["cursor", "q"], ["size", "q"], ["resource", "q"]]], ["getSnapshot", "get", "/v1/snapshots/{id}"], ["deleteSnapshot", "delete", "/v1/snapshots/{id}"], ["restoreSnapshot", "post", "/v1/snapshots/{id}:restore"], ["listSnapshotResources", "get", "/v1/snapshots/{id}/resources"], ["getSnapshotResource", "get", "/v1/snapshots/{id}/resources/{lineage_id}"], ["listDependencies", "post", "/v1/snapshots:list-dependencies", null, 1]], v: "3.0.3", pp: { "/v1/snapshots/{id}": [["id", "p", true]], "/v1/snapshots/{id}:restore": [["id", "p", true]], "/v1/snapshots/{id}/resources": [["id", "p", true]], "/v1/snapshots/{id}/resources/{lineage_id}": [["id", "p", true], ["lineage_id", "p", true]] } };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.require_snapshot_runtime = require_snapshot_runtime;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS
|
|
3
|
+
} from "./chunk-YPSWSI3M.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/user-runtime.json
|
|
6
|
+
var require_user_runtime = __commonJS({
|
|
7
|
+
"src/definitions/user-runtime.json"(exports, module) {
|
|
8
|
+
module.exports = { s: "https://user.sls.epilot.io", o: [["signUpUser", "post", "/v2/users/public/signup", [["token", "q"]], 1], ["getMeV2", "get", "/v2/users/me"], ["listUserSettings", "get", "/v2/users/me/settings"], ["getUserSettingsScope", "get", "/v2/users/me/settings/{scope}", [["scope", "p", true]]], ["getUserSetting", "get", "/v2/users/me/settings/{scope}/{key}", [["scope", "p", true], ["key", "p", true]]], ["putUserSetting", "put", "/v2/users/me/settings/{scope}/{key}", [["scope", "p", true], ["key", "p", true]], 1], ["deleteUserSetting", "delete", "/v2/users/me/settings/{scope}/{key}", [["scope", "p", true], ["key", "p", true]]], ["listUsersV2", "get", "/v2/users", [["query", "q"], ["limit", "q"], ["offset", "q"]]], ["getUserV2", "get", "/v2/users/{id}", [["id", "p", true]]], ["updateUserV2", "patch", "/v2/users/{id}", [["id", "p", true]], 1], ["deleteUserV2", "delete", "/v2/users/{id}", [["id", "p", true]]], ["inviteUser", "post", "/v2/users/invite", null, 1], ["resendUserInvitation", "post", "/v2/users/invite:resendEmail", null, 1], ["sendUserPasswordReset", "post", "/v2/users:sendPasswordReset", null, 1], ["getGroupsForUser", "get", "/v2/users/{id}/groups", [["id", "p", true]]], ["getGroups", "get", "/v1/groups", [["query", "q"], ["limit", "q"], ["offset", "q"], ["hydrate", "q"]]], ["createGroup", "post", "/v1/groups", null, 1], ["getGroup", "get", "/v1/groups/{id}", [["id", "p", true], ["hydrate", "q"]]], ["updateGroup", "patch", "/v1/groups/{id}", [["id", "p", true]], 1], ["deleteGroup", "delete", "/v1/groups/{id}", [["id", "p", true]]], ["advanceUserAssignment", "post", "/v1/groups/{id}/user:next", [["id", "p", true]]], ["createNavigation", "post", "/v2/user/navigations", null, 1], ["getNavigation", "get", "/v2/user/navigations/{id}", [["id", "p", true]]], ["verifyEmailWithToken", "post", "/v2/users/public/verifyEmail", [["token", "q", true]], 1], ["requestPasswordReset", "post", "/v2/users/public/requestPasswordReset", null, 1], ["checkInviteToken", "get", "/v2/users/public/checkToken", [["token", "q", true]]], ["activateUser", "post", "/v2/users/public/activate", [["token", "q", true]], 1], ["rejectInvite", "delete", "/v2/users/public/reject", [["token", "q", true]]], ["getUserLoginParametersV2", "get", "/v2/users/public/username/{username}:getLoginParameters", [["username", "p", true]]], ["beginPasskeyAuthentication", "post", "/v2/users/public/passkeys:authenticateBegin", null, 1], ["beginDiscoverablePasskeyAuthentication", "post", "/v2/users/public/passkeys:authenticateBeginDiscoverable"], ["resolveDiscoverableCredential", "post", "/v2/users/public/passkeys:resolveCredential", null, 1], ["beginPasskeyRegistration", "post", "/v2/users/me/passkeys:registerBegin", null, 1], ["completePasskeyRegistration", "post", "/v2/users/me/passkeys:registerComplete", null, 1], ["listPasskeys", "get", "/v2/users/me/passkeys"], ["deletePasskey", "delete", "/v2/users/me/passkeys/{credentialId}", [["credentialId", "p", true]]], ["switchOrganization", "post", "/v2/users/switchOrganization", null, 1], ["getMe", "get", "/v1/users/me"], ["listUsers", "get", "/v1/users", [["org_ids", "q", false, "form", false], ["query", "q"], ["limit", "q"], ["offset", "q"]]], ["getUser", "get", "/v1/users/{id}", [["id", "p", true]]], ["getUserLoginParameters", "get", "/v1/users/username/{username}:getLoginParameters", [["username", "p", true]]]] };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
require_user_runtime
|
|
14
|
+
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/definitions/access-token-runtime.json
|
|
6
6
|
var require_access_token_runtime = __commonJS({
|
|
7
7
|
"src/definitions/access-token-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://access-token.sls.epilot.io", o: [["createAccessToken", "post", "/v1/access-tokens", null, 1], ["listAccessTokens", "get", "/v1/access-tokens", [["token_type", "q"]]], ["revokeAccessToken", "delete", "/v1/access-tokens/{id}", [["id", "p", true]]], ["getAccessTokenJwks", "get", "/v1/access-tokens/.well-known/jwks.json"], ["getAccessTokenOIDC", "get", "/v1/access-tokens/.well-known/openid-configuration"], ["getPublicTokenJwks", "get", "/v1/access-tokens/public/.well-known/jwks.json"], ["getPublicTokenOIDC", "get", "/v1/access-tokens/public/.well-known/openid-configuration"]], v: "3.0.3" };
|
|
8
|
+
module.exports = { s: "https://access-token.sls.epilot.io", o: [["createAccessToken", "post", "/v1/access-tokens", null, 1], ["listAccessTokens", "get", "/v1/access-tokens", [["token_type", "q"]]], ["revokeAccessToken", "delete", "/v1/access-tokens/{id}", [["id", "p", true]]], ["getAccessTokenJwks", "get", "/v1/access-tokens/.well-known/jwks.json"], ["getAccessTokenOIDC", "get", "/v1/access-tokens/.well-known/openid-configuration"], ["getPublicTokenJwks", "get", "/v1/access-tokens/public/.well-known/jwks.json"], ["getPortalPreviewTokenJwks", "get", "/v1/access-tokens/portal-preview/.well-known/jwks.json"], ["getPublicTokenOIDC", "get", "/v1/access-tokens/public/.well-known/openid-configuration"], ["getPortalPreviewTokenOIDC", "get", "/v1/access-tokens/portal-preview/.well-known/openid-configuration"]], v: "3.0.3" };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -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/user-runtime.json
|
|
6
|
+
var require_user_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
|
+
"src/definitions/user-runtime.json"(exports, module) {
|
|
8
|
+
module.exports = { s: "https://user.sls.epilot.io", o: [["signUpUser", "post", "/v2/users/public/signup", [["token", "q"]], 1], ["getMeV2", "get", "/v2/users/me"], ["listUserSettings", "get", "/v2/users/me/settings"], ["getUserSettingsScope", "get", "/v2/users/me/settings/{scope}", [["scope", "p", true]]], ["getUserSetting", "get", "/v2/users/me/settings/{scope}/{key}", [["scope", "p", true], ["key", "p", true]]], ["putUserSetting", "put", "/v2/users/me/settings/{scope}/{key}", [["scope", "p", true], ["key", "p", true]], 1], ["deleteUserSetting", "delete", "/v2/users/me/settings/{scope}/{key}", [["scope", "p", true], ["key", "p", true]]], ["listUsersV2", "get", "/v2/users", [["query", "q"], ["limit", "q"], ["offset", "q"]]], ["getUserV2", "get", "/v2/users/{id}", [["id", "p", true]]], ["updateUserV2", "patch", "/v2/users/{id}", [["id", "p", true]], 1], ["deleteUserV2", "delete", "/v2/users/{id}", [["id", "p", true]]], ["inviteUser", "post", "/v2/users/invite", null, 1], ["resendUserInvitation", "post", "/v2/users/invite:resendEmail", null, 1], ["sendUserPasswordReset", "post", "/v2/users:sendPasswordReset", null, 1], ["getGroupsForUser", "get", "/v2/users/{id}/groups", [["id", "p", true]]], ["getGroups", "get", "/v1/groups", [["query", "q"], ["limit", "q"], ["offset", "q"], ["hydrate", "q"]]], ["createGroup", "post", "/v1/groups", null, 1], ["getGroup", "get", "/v1/groups/{id}", [["id", "p", true], ["hydrate", "q"]]], ["updateGroup", "patch", "/v1/groups/{id}", [["id", "p", true]], 1], ["deleteGroup", "delete", "/v1/groups/{id}", [["id", "p", true]]], ["advanceUserAssignment", "post", "/v1/groups/{id}/user:next", [["id", "p", true]]], ["createNavigation", "post", "/v2/user/navigations", null, 1], ["getNavigation", "get", "/v2/user/navigations/{id}", [["id", "p", true]]], ["verifyEmailWithToken", "post", "/v2/users/public/verifyEmail", [["token", "q", true]], 1], ["requestPasswordReset", "post", "/v2/users/public/requestPasswordReset", null, 1], ["checkInviteToken", "get", "/v2/users/public/checkToken", [["token", "q", true]]], ["activateUser", "post", "/v2/users/public/activate", [["token", "q", true]], 1], ["rejectInvite", "delete", "/v2/users/public/reject", [["token", "q", true]]], ["getUserLoginParametersV2", "get", "/v2/users/public/username/{username}:getLoginParameters", [["username", "p", true]]], ["beginPasskeyAuthentication", "post", "/v2/users/public/passkeys:authenticateBegin", null, 1], ["beginDiscoverablePasskeyAuthentication", "post", "/v2/users/public/passkeys:authenticateBeginDiscoverable"], ["resolveDiscoverableCredential", "post", "/v2/users/public/passkeys:resolveCredential", null, 1], ["beginPasskeyRegistration", "post", "/v2/users/me/passkeys:registerBegin", null, 1], ["completePasskeyRegistration", "post", "/v2/users/me/passkeys:registerComplete", null, 1], ["listPasskeys", "get", "/v2/users/me/passkeys"], ["deletePasskey", "delete", "/v2/users/me/passkeys/{credentialId}", [["credentialId", "p", true]]], ["switchOrganization", "post", "/v2/users/switchOrganization", null, 1], ["getMe", "get", "/v1/users/me"], ["listUsers", "get", "/v1/users", [["org_ids", "q", false, "form", false], ["query", "q"], ["limit", "q"], ["offset", "q"]]], ["getUser", "get", "/v1/users/{id}", [["id", "p", true]]], ["getUserLoginParameters", "get", "/v1/users/username/{username}:getLoginParameters", [["username", "p", true]]]] };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.require_user_runtime = require_user_runtime;
|
|
@@ -5,7 +5,7 @@ var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
|
5
5
|
// src/definitions/access-token-runtime.json
|
|
6
6
|
var require_access_token_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
7
|
"src/definitions/access-token-runtime.json"(exports, module) {
|
|
8
|
-
module.exports = { s: "https://access-token.sls.epilot.io", o: [["createAccessToken", "post", "/v1/access-tokens", null, 1], ["listAccessTokens", "get", "/v1/access-tokens", [["token_type", "q"]]], ["revokeAccessToken", "delete", "/v1/access-tokens/{id}", [["id", "p", true]]], ["getAccessTokenJwks", "get", "/v1/access-tokens/.well-known/jwks.json"], ["getAccessTokenOIDC", "get", "/v1/access-tokens/.well-known/openid-configuration"], ["getPublicTokenJwks", "get", "/v1/access-tokens/public/.well-known/jwks.json"], ["getPublicTokenOIDC", "get", "/v1/access-tokens/public/.well-known/openid-configuration"]], v: "3.0.3" };
|
|
8
|
+
module.exports = { s: "https://access-token.sls.epilot.io", o: [["createAccessToken", "post", "/v1/access-tokens", null, 1], ["listAccessTokens", "get", "/v1/access-tokens", [["token_type", "q"]]], ["revokeAccessToken", "delete", "/v1/access-tokens/{id}", [["id", "p", true]]], ["getAccessTokenJwks", "get", "/v1/access-tokens/.well-known/jwks.json"], ["getAccessTokenOIDC", "get", "/v1/access-tokens/.well-known/openid-configuration"], ["getPublicTokenJwks", "get", "/v1/access-tokens/public/.well-known/jwks.json"], ["getPortalPreviewTokenJwks", "get", "/v1/access-tokens/portal-preview/.well-known/jwks.json"], ["getPublicTokenOIDC", "get", "/v1/access-tokens/public/.well-known/openid-configuration"], ["getPortalPreviewTokenOIDC", "get", "/v1/access-tokens/portal-preview/.well-known/openid-configuration"]], v: "3.0.3" };
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
+
var _chunkOWXEZ56Fcjs = require('./chunk-OWXEZ56F.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
var _chunkJIUTCNTBcjs = require('./chunk-JIUTCNTB.cjs');
|
|
4
7
|
|
|
5
8
|
|
|
@@ -21,6 +24,9 @@ var _chunkNEVFKRDUcjs = require('./chunk-NEVFKRDU.cjs');
|
|
|
21
24
|
var _chunkTZQFJ5GXcjs = require('./chunk-TZQFJ5GX.cjs');
|
|
22
25
|
|
|
23
26
|
|
|
27
|
+
var _chunkK2QVMO5Mcjs = require('./chunk-K2QVMO5M.cjs');
|
|
28
|
+
|
|
29
|
+
|
|
24
30
|
var _chunkWWOAKRNGcjs = require('./chunk-WWOAKRNG.cjs');
|
|
25
31
|
|
|
26
32
|
|
|
@@ -30,9 +36,6 @@ var _chunkMCK2QUSDcjs = require('./chunk-MCK2QUSD.cjs');
|
|
|
30
36
|
var _chunk4QCVVDTAcjs = require('./chunk-4QCVVDTA.cjs');
|
|
31
37
|
|
|
32
38
|
|
|
33
|
-
var _chunkZ5TVWG3Icjs = require('./chunk-Z5TVWG3I.cjs');
|
|
34
|
-
|
|
35
|
-
|
|
36
39
|
var _chunkZOQUGWQLcjs = require('./chunk-ZOQUGWQL.cjs');
|
|
37
40
|
|
|
38
41
|
|
|
@@ -129,7 +132,7 @@ var _chunkM2UDF7PYcjs = require('./chunk-M2UDF7PY.cjs');
|
|
|
129
132
|
var _chunkZL6KDJFTcjs = require('./chunk-ZL6KDJFT.cjs');
|
|
130
133
|
|
|
131
134
|
|
|
132
|
-
var
|
|
135
|
+
var _chunkS5HBBTKMcjs = require('./chunk-S5HBBTKM.cjs');
|
|
133
136
|
|
|
134
137
|
|
|
135
138
|
var _chunkLKRBFBFNcjs = require('./chunk-LKRBFBFN.cjs');
|
|
@@ -155,7 +158,7 @@ var _chunkDVM27A7Ecjs = require('./chunk-DVM27A7E.cjs');
|
|
|
155
158
|
|
|
156
159
|
|
|
157
160
|
|
|
158
|
-
var
|
|
161
|
+
var _chunkFBQ4WDTGcjs = require('./chunk-FBQ4WDTG.cjs');
|
|
159
162
|
|
|
160
163
|
|
|
161
164
|
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
@@ -222,7 +225,7 @@ var resolveClient = (params) => {
|
|
|
222
225
|
}
|
|
223
226
|
if (!entry.instance) {
|
|
224
227
|
const definition = entry.loader();
|
|
225
|
-
entry.instance =
|
|
228
|
+
entry.instance = _chunkFBQ4WDTGcjs.createApiClient.call(void 0, {
|
|
226
229
|
definition,
|
|
227
230
|
token: state.token,
|
|
228
231
|
headers: state.globalHeaders,
|
|
@@ -255,12 +258,12 @@ var resetAllClients = (registry) => {
|
|
|
255
258
|
};
|
|
256
259
|
|
|
257
260
|
// src/apis/_registry.ts
|
|
258
|
-
var expandDef = (mod) =>
|
|
261
|
+
var expandDef = (mod) => _chunkFBQ4WDTGcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
259
262
|
var registerBuiltinApis = (registry) => {
|
|
260
263
|
registerApi({
|
|
261
264
|
registry,
|
|
262
265
|
name: "accessToken",
|
|
263
|
-
loader: () => expandDef(
|
|
266
|
+
loader: () => expandDef(_chunkS5HBBTKMcjs.require_access_token_runtime.call(void 0, ))
|
|
264
267
|
});
|
|
265
268
|
registerApi({
|
|
266
269
|
registry,
|
|
@@ -467,6 +470,11 @@ var registerBuiltinApis = (registry) => {
|
|
|
467
470
|
name: "sharing",
|
|
468
471
|
loader: () => expandDef(_chunkTZQFJ5GXcjs.require_sharing_runtime.call(void 0, ))
|
|
469
472
|
});
|
|
473
|
+
registerApi({
|
|
474
|
+
registry,
|
|
475
|
+
name: "snapshot",
|
|
476
|
+
loader: () => expandDef(_chunkK2QVMO5Mcjs.require_snapshot_runtime.call(void 0, ))
|
|
477
|
+
});
|
|
470
478
|
registerApi({
|
|
471
479
|
registry,
|
|
472
480
|
name: "submission",
|
|
@@ -485,7 +493,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
485
493
|
registerApi({
|
|
486
494
|
registry,
|
|
487
495
|
name: "user",
|
|
488
|
-
loader: () => expandDef(
|
|
496
|
+
loader: () => expandDef(_chunkOWXEZ56Fcjs.require_user_runtime.call(void 0, ))
|
|
489
497
|
});
|
|
490
498
|
registerApi({
|
|
491
499
|
registry,
|
|
@@ -593,9 +601,9 @@ var createSDK = () => {
|
|
|
593
601
|
const available = [...registry.keys()].join(", ");
|
|
594
602
|
throw new Error(`Unknown API: "${name}". Available: ${available}`);
|
|
595
603
|
}
|
|
596
|
-
return
|
|
604
|
+
return _chunkFBQ4WDTGcjs.createApiHandle.call(void 0, {
|
|
597
605
|
resolveClient: () => resolveClient({ registry, name, state }),
|
|
598
|
-
createClient: () =>
|
|
606
|
+
createClient: () => _chunkFBQ4WDTGcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
|
|
599
607
|
apiName: name
|
|
600
608
|
});
|
|
601
609
|
};
|
|
@@ -643,9 +651,9 @@ var createSDK = () => {
|
|
|
643
651
|
return interceptorUse;
|
|
644
652
|
}
|
|
645
653
|
case "help":
|
|
646
|
-
return (apiName) =>
|
|
654
|
+
return (apiName) => _chunkFBQ4WDTGcjs.help.call(void 0, apiName);
|
|
647
655
|
case "openapi":
|
|
648
|
-
return (apiName) =>
|
|
656
|
+
return (apiName) => _chunkFBQ4WDTGcjs.openapi.call(void 0, apiName);
|
|
649
657
|
case "then":
|
|
650
658
|
case "catch":
|
|
651
659
|
case "finally":
|
|
@@ -675,4 +683,4 @@ var epilot = createSDK();
|
|
|
675
683
|
|
|
676
684
|
|
|
677
685
|
|
|
678
|
-
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize =
|
|
686
|
+
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkFBQ4WDTGcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkFBQ4WDTGcjs.help; exports.openapi = _chunkFBQ4WDTGcjs.openapi;
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { Document } from 'openapi-client-axios';
|
|
|
3
3
|
import { AxiosInstance, InternalAxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
4
|
import { T as TokenArg, H as HeadersConfig, A as ApiHandle } from './types-ChU9Acbv.cjs';
|
|
5
5
|
export { I as Interceptor, O as OverridesConfig, a as authorize } from './types-ChU9Acbv.cjs';
|
|
6
|
-
import { C as Client } from './access-token.d-
|
|
6
|
+
import { C as Client } from './access-token.d-CegaQmrK.cjs';
|
|
7
7
|
import { C as Client$1 } from './address.d-CwAPOVxa.cjs';
|
|
8
8
|
import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.cjs';
|
|
9
9
|
import { C as Client$3 } from './ai-agents.d-OkXfr2bz.cjs';
|
|
@@ -45,14 +45,15 @@ import { C as Client$C } from './purpose.d-CbIYfTua.cjs';
|
|
|
45
45
|
import { C as Client$D } from './query.d-Cmp78IhZ.cjs';
|
|
46
46
|
import { C as Client$E } from './sandbox.d-BdbOFzDu.cjs';
|
|
47
47
|
import { C as Client$F } from './sharing.d-sOXq-gtz.cjs';
|
|
48
|
-
import { C as Client$G } from './
|
|
49
|
-
import { C as Client$H } from './
|
|
50
|
-
import { C as Client$I } from './
|
|
51
|
-
import { C as Client$J } from './
|
|
52
|
-
import { C as Client$K } from './
|
|
53
|
-
import { C as Client$L } from './
|
|
54
|
-
import { C as Client$M } from './
|
|
55
|
-
import { C as Client$N } from './workflow
|
|
48
|
+
import { C as Client$G } from './snapshot.d-DvoJ2n-v.cjs';
|
|
49
|
+
import { C as Client$H } from './submission.d-BamwfhXw.cjs';
|
|
50
|
+
import { C as Client$I } from './targeting.d-DxHQbn7-.cjs';
|
|
51
|
+
import { C as Client$J } from './template-variables.d-Ble9TSBa.cjs';
|
|
52
|
+
import { C as Client$K } from './user.d-L-C7_K84.cjs';
|
|
53
|
+
import { C as Client$L } from './validation-rules.d-Db5c5zTf.cjs';
|
|
54
|
+
import { C as Client$M } from './webhooks.d-DKZOMj1P.cjs';
|
|
55
|
+
import { C as Client$N } from './workflow.d-CMSKt8oN.cjs';
|
|
56
|
+
import { C as Client$O } from './workflow-definition.d-DOeb0KVV.cjs';
|
|
56
57
|
|
|
57
58
|
type SDKClientMap = {
|
|
58
59
|
accessToken: Client;
|
|
@@ -97,14 +98,15 @@ type SDKClientMap = {
|
|
|
97
98
|
query: Client$D;
|
|
98
99
|
sandbox: Client$E;
|
|
99
100
|
sharing: Client$F;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
snapshot: Client$G;
|
|
102
|
+
submission: Client$H;
|
|
103
|
+
targeting: Client$I;
|
|
104
|
+
templateVariables: Client$J;
|
|
105
|
+
user: Client$K;
|
|
106
|
+
validationRules: Client$L;
|
|
107
|
+
webhooks: Client$M;
|
|
108
|
+
workflow: Client$N;
|
|
109
|
+
workflowDefinition: Client$O;
|
|
108
110
|
};
|
|
109
111
|
|
|
110
112
|
type LargeResponseConfig = {
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Document } from 'openapi-client-axios';
|
|
|
3
3
|
import { AxiosInstance, InternalAxiosRequestConfig, AxiosResponse } from 'axios';
|
|
4
4
|
import { T as TokenArg, H as HeadersConfig, A as ApiHandle } from './types-ChU9Acbv.js';
|
|
5
5
|
export { I as Interceptor, O as OverridesConfig, a as authorize } from './types-ChU9Acbv.js';
|
|
6
|
-
import { C as Client } from './access-token.d-
|
|
6
|
+
import { C as Client } from './access-token.d-CegaQmrK.js';
|
|
7
7
|
import { C as Client$1 } from './address.d-CwAPOVxa.js';
|
|
8
8
|
import { C as Client$2 } from './address-suggestions.d-_YwTOR-9.js';
|
|
9
9
|
import { C as Client$3 } from './ai-agents.d-OkXfr2bz.js';
|
|
@@ -45,14 +45,15 @@ import { C as Client$C } from './purpose.d-CbIYfTua.js';
|
|
|
45
45
|
import { C as Client$D } from './query.d-Cmp78IhZ.js';
|
|
46
46
|
import { C as Client$E } from './sandbox.d-BdbOFzDu.js';
|
|
47
47
|
import { C as Client$F } from './sharing.d-sOXq-gtz.js';
|
|
48
|
-
import { C as Client$G } from './
|
|
49
|
-
import { C as Client$H } from './
|
|
50
|
-
import { C as Client$I } from './
|
|
51
|
-
import { C as Client$J } from './
|
|
52
|
-
import { C as Client$K } from './
|
|
53
|
-
import { C as Client$L } from './
|
|
54
|
-
import { C as Client$M } from './
|
|
55
|
-
import { C as Client$N } from './workflow
|
|
48
|
+
import { C as Client$G } from './snapshot.d-DvoJ2n-v.js';
|
|
49
|
+
import { C as Client$H } from './submission.d-BamwfhXw.js';
|
|
50
|
+
import { C as Client$I } from './targeting.d-DxHQbn7-.js';
|
|
51
|
+
import { C as Client$J } from './template-variables.d-Ble9TSBa.js';
|
|
52
|
+
import { C as Client$K } from './user.d-L-C7_K84.js';
|
|
53
|
+
import { C as Client$L } from './validation-rules.d-Db5c5zTf.js';
|
|
54
|
+
import { C as Client$M } from './webhooks.d-DKZOMj1P.js';
|
|
55
|
+
import { C as Client$N } from './workflow.d-CMSKt8oN.js';
|
|
56
|
+
import { C as Client$O } from './workflow-definition.d-DOeb0KVV.js';
|
|
56
57
|
|
|
57
58
|
type SDKClientMap = {
|
|
58
59
|
accessToken: Client;
|
|
@@ -97,14 +98,15 @@ type SDKClientMap = {
|
|
|
97
98
|
query: Client$D;
|
|
98
99
|
sandbox: Client$E;
|
|
99
100
|
sharing: Client$F;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
snapshot: Client$G;
|
|
102
|
+
submission: Client$H;
|
|
103
|
+
targeting: Client$I;
|
|
104
|
+
templateVariables: Client$J;
|
|
105
|
+
user: Client$K;
|
|
106
|
+
validationRules: Client$L;
|
|
107
|
+
webhooks: Client$M;
|
|
108
|
+
workflow: Client$N;
|
|
109
|
+
workflowDefinition: Client$O;
|
|
108
110
|
};
|
|
109
111
|
|
|
110
112
|
type LargeResponseConfig = {
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
require_user_runtime
|
|
3
|
+
} from "./chunk-NFIYEMMM.js";
|
|
1
4
|
import {
|
|
2
5
|
require_validation_rules_runtime
|
|
3
6
|
} from "./chunk-7IKQIVUS.js";
|
|
@@ -19,6 +22,9 @@ import {
|
|
|
19
22
|
import {
|
|
20
23
|
require_sharing_runtime
|
|
21
24
|
} from "./chunk-NPDSA7T2.js";
|
|
25
|
+
import {
|
|
26
|
+
require_snapshot_runtime
|
|
27
|
+
} from "./chunk-BJGLY4Z2.js";
|
|
22
28
|
import {
|
|
23
29
|
require_submission_runtime
|
|
24
30
|
} from "./chunk-IJR3GZKC.js";
|
|
@@ -28,9 +34,6 @@ import {
|
|
|
28
34
|
import {
|
|
29
35
|
require_template_variables_runtime
|
|
30
36
|
} from "./chunk-QTR3RH4N.js";
|
|
31
|
-
import {
|
|
32
|
-
require_user_runtime
|
|
33
|
-
} from "./chunk-3XKBB5AE.js";
|
|
34
37
|
import {
|
|
35
38
|
require_notes_runtime
|
|
36
39
|
} from "./chunk-WIQXF7DD.js";
|
|
@@ -129,7 +132,7 @@ import {
|
|
|
129
132
|
} from "./chunk-5ED7FB3Q.js";
|
|
130
133
|
import {
|
|
131
134
|
require_access_token_runtime
|
|
132
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-OHHHS4HH.js";
|
|
133
136
|
import {
|
|
134
137
|
require_address_suggestions_runtime
|
|
135
138
|
} from "./chunk-4ZGZDE6D.js";
|
|
@@ -155,7 +158,7 @@ import {
|
|
|
155
158
|
expand,
|
|
156
159
|
help,
|
|
157
160
|
openapi
|
|
158
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-76M3RIDP.js";
|
|
159
162
|
import {
|
|
160
163
|
__require
|
|
161
164
|
} from "./chunk-YPSWSI3M.js";
|
|
@@ -467,6 +470,11 @@ var registerBuiltinApis = (registry) => {
|
|
|
467
470
|
name: "sharing",
|
|
468
471
|
loader: () => expandDef(require_sharing_runtime())
|
|
469
472
|
});
|
|
473
|
+
registerApi({
|
|
474
|
+
registry,
|
|
475
|
+
name: "snapshot",
|
|
476
|
+
loader: () => expandDef(require_snapshot_runtime())
|
|
477
|
+
});
|
|
470
478
|
registerApi({
|
|
471
479
|
registry,
|
|
472
480
|
name: "submission",
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import "./chunk-YPSWSI3M.js";
|
|
2
|
+
|
|
3
|
+
// src/docs/snapshot.json
|
|
4
|
+
var snapshot_default = '# Snapshot API\n\n- **Base URL:** `https://snapshot.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/snapshot](https://docs.epilot.io/api/snapshot)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.snapshot.createSnapshot(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/snapshot\'\n\nconst snapshotClient = getClient()\nauthorize(snapshotClient, () => \'<token>\')\nconst { data } = await snapshotClient.createSnapshot(...)\n```\n\n## Operations\n\n**Snapshots**\n- [`createSnapshot`](#createsnapshot)\n- [`listSnapshots`](#listsnapshots)\n- [`getSnapshot`](#getsnapshot)\n- [`deleteSnapshot`](#deletesnapshot)\n- [`restoreSnapshot`](#restoresnapshot)\n- [`listSnapshotResources`](#listsnapshotresources)\n- [`getSnapshotResource`](#getsnapshotresource)\n- [`listDependencies`](#listdependencies)\n\n**Schemas**\n- [`Error`](#error)\n- [`ResourceRef`](#resourceref)\n- [`SnapshotResourceSummary`](#snapshotresourcesummary)\n- [`SnapshotResourceList`](#snapshotresourcelist)\n- [`SnapshotResourceDetail`](#snapshotresourcedetail)\n- [`CreateSnapshotRequest`](#createsnapshotrequest)\n- [`CreateSnapshotResponse`](#createsnapshotresponse)\n- [`RestoreSnapshotResponse`](#restoresnapshotresponse)\n- [`Snapshot`](#snapshot)\n- [`Operation`](#operation)\n- [`CallerIdentity`](#calleridentity)\n\n### `createSnapshot`\n\nCreate a new snapshot of the given resources. Async \u2014 returns immediately\nwith a snapshot ID; client polls `getSnapshot` until `create.status`\nmoves from `in_progress` to `completed` or `failed`.\n\n`POST /v1/snapshots`\n\n```ts\nconst { data } = await client.createSnapshot(\n null,\n {\n name: \'string\',\n description: \'string\',\n trigger: \'manual\',\n blueprint_instance_id: \'string\',\n resources: [\n {\n type: \'string\',\n id: \'string\'\n }\n ]\n },\n)\n```\n\n---\n\n### `listSnapshots`\n\nList snapshots for the caller\'s organization, newest first.\n\n`GET /v1/snapshots`\n\n```ts\nconst { data } = await client.listSnapshots({\n cursor: \'example\',\n size: 1,\n resource: [\'...\'],\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "page_size": 0,\n "cursor": "string",\n "results": [\n {\n "id": "string",\n "org_id": "string",\n "name": "string",\n "description": "string",\n "trigger": "manual",\n "blueprint_instance_id": "string",\n "resource_counts": {},\n "create": {\n "type": "create",\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "status": "in_progress",\n "error": "string",\n "triggered_by": {\n "name": "string",\n "user_id": "string",\n "token_id": "string"\n }\n },\n "restores": [\n {\n "type": "create",\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "status": "in_progress",\n "error": "string",\n "triggered_by": {\n "name": "string",\n "user_id": "string",\n "token_id": "string"\n }\n }\n ],\n "matched_count": 0\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getSnapshot`\n\nFetch a snapshot\'s metadata. Poll this endpoint to track create/restore progress.\n\n`GET /v1/snapshots/{id}`\n\n```ts\nconst { data } = await client.getSnapshot({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "id": "string",\n "org_id": "string",\n "name": "string",\n "description": "string",\n "trigger": "manual",\n "blueprint_instance_id": "string",\n "resource_counts": {},\n "create": {\n "type": "create",\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "status": "in_progress",\n "error": "string",\n "triggered_by": {\n "name": "string",\n "user_id": "string",\n "token_id": "string"\n }\n },\n "restores": [\n {\n "type": "create",\n "started_at": "1970-01-01T00:00:00.000Z",\n "completed_at": "1970-01-01T00:00:00.000Z",\n "status": "in_progress",\n "error": "string",\n "triggered_by": {\n "name": "string",\n "user_id": "string",\n "token_id": "string"\n }\n }\n ],\n "matched_count": 0\n}\n```\n\n</details>\n\n---\n\n### `deleteSnapshot`\n\nDelete a snapshot\'s metadata and S3 manifest.\n\n`DELETE /v1/snapshots/{id}`\n\n```ts\nconst { data } = await client.deleteSnapshot({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `restoreSnapshot`\n\nRestore a snapshot to the org. Async \u2014 returns immediately; client polls\n`getSnapshot` until the latest entry in `restores` moves from\n`in_progress` to `completed` or `failed`.\n\n`POST /v1/snapshots/{id}:restore`\n\n```ts\nconst { data } = await client.restoreSnapshot({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n---\n\n### `listSnapshotResources`\n\nList the resources captured in this snapshot. Returns lightweight\nidentity fields per resource \u2014 payloads are fetched via the\nsingle-resource endpoint when needed.\n\n`GET /v1/snapshots/{id}/resources`\n\n```ts\nconst { data } = await client.listSnapshotResources({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "resources": [\n {\n "lineage_id": "string",\n "target_id": "string",\n "type": "string",\n "name": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `getSnapshotResource`\n\nFetch one captured resource with its full payload. For UI views\nthat diff the captured state against the current destination.\n\n`GET /v1/snapshots/{id}/resources/{lineage_id}`\n\n```ts\nconst { data } = await client.getSnapshotResource({\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n lineage_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "lineage_id": "string",\n "target_id": "string",\n "type": "string",\n "name": "string",\n "captured": {}\n}\n```\n\n</details>\n\n---\n\n### `listDependencies`\n\nWalk the dependency tree for a set of resources and return the full\ntransitive closure, topologically sorted.\n\n`POST /v1/snapshots:list-dependencies`\n\n```ts\nconst { data } = await client.listDependencies(\n null,\n {\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 "dependencies": [\n {\n "type": "string",\n "id": "string"\n }\n ]\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `Error`\n\n```ts\ntype Error = {\n status: number\n error: string\n}\n```\n\n### `ResourceRef`\n\n```ts\ntype ResourceRef = {\n type: string\n id: string\n}\n```\n\n### `SnapshotResourceSummary`\n\nLightweight identity for a captured resource. Returned by\n`listSnapshotResources`; the full payload is fetched separately via\n`getSnapshotResource` when needed.\n\n\n```ts\ntype SnapshotResourceSummary = {\n lineage_id: string\n target_id: string\n type: string\n name?: string\n}\n```\n\n### `SnapshotResourceList`\n\n```ts\ntype SnapshotResourceList = {\n resources: Array<{\n lineage_id: string\n target_id: string\n type: string\n name?: string\n }>\n}\n```\n\n### `SnapshotResourceDetail`\n\nA single captured resource with its full payload. The identity fields\nmatch `SnapshotResourceSummary`; the `captured` payload is the\npre-install state at snapshot time.\n\n\n```ts\ntype SnapshotResourceDetail = {\n lineage_id: string\n target_id: string\n type: string\n name?: string\n captured: Record<string, unknown>\n}\n```\n\n### `CreateSnapshotRequest`\n\n```ts\ntype CreateSnapshotRequest = {\n name: string\n description?: string\n trigger?: "manual" | "sync" | "blueprint_install"\n blueprint_instance_id?: string\n resources: Array<{\n type: string\n id: string\n }>\n}\n```\n\n### `CreateSnapshotResponse`\n\n```ts\ntype CreateSnapshotResponse = {\n id: string\n name: string\n status: "creating"\n created_at: string // date-time\n}\n```\n\n### `RestoreSnapshotResponse`\n\n```ts\ntype RestoreSnapshotResponse = {\n id: string\n status: "restoring"\n}\n```\n\n### `Snapshot`\n\n```ts\ntype Snapshot = {\n id: string\n org_id: string\n name: string\n description?: string\n trigger: "manual" | "sync" | "blueprint_install"\n blueprint_instance_id?: string\n resource_counts: Record<string, number>\n create: {\n type: "create" | "restore"\n started_at: string // date-time\n completed_at?: string // date-time\n status: "in_progress" | "completed" | "failed"\n error?: string\n triggered_by: {\n name: { ... }\n user_id?: { ... }\n token_id?: { ... }\n }\n }\n restores: Array<{\n type: "create" | "restore"\n started_at: string // date-time\n completed_at?: string // date-time\n status: "in_progress" | "completed" | "failed"\n error?: string\n triggered_by: {\n name: { ... }\n user_id?: { ... }\n token_id?: { ... }\n }\n }>\n matched_count?: number\n}\n```\n\n### `Operation`\n\n```ts\ntype Operation = {\n type: "create" | "restore"\n started_at: string // date-time\n completed_at?: string // date-time\n status: "in_progress" | "completed" | "failed"\n error?: string\n triggered_by: {\n name: string\n user_id?: string\n token_id?: string\n }\n}\n```\n\n### `CallerIdentity`\n\n```ts\ntype CallerIdentity = {\n name: string\n user_id?: string\n token_id?: string\n}\n```\n';
|
|
5
|
+
export {
|
|
6
|
+
snapshot_default as default
|
|
7
|
+
};
|