@epilot/sdk 2.11.4 → 2.11.6
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/billing-runtime.json +1 -1
- package/definitions/billing.json +1571 -198
- package/definitions/snapshot-runtime.json +1 -1
- package/definitions/snapshot.json +214 -46
- 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.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 +8 -8
- package/dist/apis/billing.d.cts +2 -2
- package/dist/apis/billing.d.ts +2 -2
- package/dist/apis/billing.js +2 -2
- 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 +8 -8
- package/dist/apis/snapshot.d.cts +2 -2
- package/dist/apis/snapshot.d.ts +2 -2
- package/dist/apis/snapshot.js +2 -2
- 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/billing-C45UEPBV.cjs +7 -0
- package/dist/billing-IV5ABNW4.js +7 -0
- package/dist/{billing-runtime-C6BMGWCX.js → billing-runtime-3OCFZU2K.js} +1 -1
- package/dist/{billing-runtime-L4Y7MLM3.cjs → billing-runtime-PKKLWPQY.cjs} +2 -2
- package/dist/billing.d-N_1F759g.d.cts +3673 -0
- package/dist/billing.d-N_1F759g.d.ts +3673 -0
- package/dist/chunk-4XOJVIUQ.cjs +14 -0
- package/dist/{chunk-O4C7IU7J.cjs → chunk-F4KDYDCB.cjs} +4 -4
- package/dist/{chunk-PCK46M32.js → chunk-H72QGQR6.js} +4 -4
- package/dist/chunk-U5XZ4ERL.js +14 -0
- package/dist/{chunk-54QNWEPZ.js → chunk-UXY7SWNP.js} +1 -1
- package/dist/{chunk-YXJ4PBFQ.cjs → chunk-VDMPIKAN.cjs} +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/snapshot-5XHTEB2U.js +7 -0
- package/dist/snapshot-NKK6BNQB.cjs +7 -0
- package/dist/{snapshot-runtime-6DV42FVY.cjs → snapshot-runtime-AQJSSXRV.cjs} +2 -2
- package/dist/{snapshot-runtime-IW57MINC.js → snapshot-runtime-AY7YYSFQ.js} +1 -1
- package/dist/{snapshot.d-CqefmvuB.d.ts → snapshot.d-DT0zg2CS.d.cts} +258 -39
- package/dist/{snapshot.d-CqefmvuB.d.cts → snapshot.d-DT0zg2CS.d.ts} +258 -39
- package/docs/billing.md +1200 -292
- package/docs/snapshot.md +179 -21
- package/package.json +1 -1
- package/dist/billing-DUWDISHP.cjs +0 -7
- package/dist/billing-IPALEAG2.js +0 -7
- package/dist/billing.d-Bs8Ku9qE.d.cts +0 -993
- package/dist/billing.d-Bs8Ku9qE.d.ts +0 -993
- package/dist/chunk-CSK5ZUTS.js +0 -14
- package/dist/chunk-G5FKTWUC.cjs +0 -14
- package/dist/snapshot-2HFERXRQ.js +0 -7
- package/dist/snapshot-UHCQAT4R.cjs +0 -7
|
@@ -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/billing-runtime.json
|
|
6
|
+
var require_billing_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
|
+
"src/definitions/billing-runtime.json"(exports, module) {
|
|
8
|
+
module.exports = { s: "https://billing.sls.epilot.io", o: [["getBillingEvents", "get", "/v1/billing/events", [["from", "q"], ["size", "q"], ["entity_id", "q"], ["contact_id", "q"], ["event_type", "q"], ["date_after", "q"], ["date_before", "q"]]], ["createBillingEvent", "post", "/v1/billing/events", null, 1], ["getBillingEvent", "get", "/v1/billing/events/{id}", [["id", "p", true]]], ["updateBillingEvent", "patch", "/v1/billing/events/{id}", [["id", "p", true]], 1], ["deleteBillingEvent", "delete", "/v1/billing/events/{id}", [["id", "p", true]]], ["getBillingEventByExternalId", "get", "/v1/billing/external/{external_id}", [["external_id", "p", true]]], ["createContractEntity", "post", "/v1/billing/contracts", null, 1], ["updateContractEntity", "patch", "/v1/billing/contracts/{id}", [["id", "p", true]], 1], ["deleteContractEntity", "delete", "/v1/billing/contracts/{id}", [["id", "p", true]]], ["getContractPricingInformation", "get", "/v1/billing/contracts/{id}/pricing_information", [["id", "p", true]]], ["getBillingAccountPricingInformation", "get", "/v1/billing/billing_accounts/{id}/pricing_information", [["id", "p", true]]], ["getContractConfigurationHistory", "get", "/v1/billing/contracts/{id}/configuration_history", [["id", "p", true], ["ConfigurationHistoryChangeType"], ["From"], ["Size"]]], ["getBillingAccountConfigurationHistory", "get", "/v1/billing/billing_accounts/{id}/configuration_history", [["id", "p", true], ["ConfigurationHistoryChangeType"], ["From"], ["Size"]]], ["getCustomerBalance", "get", "/v1/billing/customers/{id}/balance", [["id", "p", true]]]], v: "3.0.3", cp: { From: ["from", "q"], Size: ["size", "q"], ConfigurationHistoryChangeType: ["change_type", "q"] } };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.require_billing_runtime = require_billing_runtime;
|
|
@@ -36,7 +36,7 @@ var globImport_docs = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
36
36
|
"./docs/app.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./app-74LECFMK.cjs"))),
|
|
37
37
|
"./docs/audit-logs.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./audit-logs-D2LFUA2R.cjs"))),
|
|
38
38
|
"./docs/automation.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./automation-5NBZZJK2.cjs"))),
|
|
39
|
-
"./docs/billing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
39
|
+
"./docs/billing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./billing-C45UEPBV.cjs"))),
|
|
40
40
|
"./docs/blueprint-manifest.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./blueprint-manifest-WHYSBU66.cjs"))),
|
|
41
41
|
"./docs/calendar.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./calendar-2YDAYG7S.cjs"))),
|
|
42
42
|
"./docs/configuration-hub.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./configuration-hub-Q5JBYB52.cjs"))),
|
|
@@ -72,7 +72,7 @@ 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-
|
|
75
|
+
"./docs/snapshot.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./snapshot-NKK6BNQB.cjs"))),
|
|
76
76
|
"./docs/submission.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./submission-Q24BU4GS.cjs"))),
|
|
77
77
|
"./docs/target.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./target-3RS5BN2B.cjs"))),
|
|
78
78
|
"./docs/targeting.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./targeting-4YMBBPDW.cjs"))),
|
|
@@ -114,7 +114,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
114
114
|
"./definitions/audit-logs.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./audit-logs-RFEMBILB.cjs"))),
|
|
115
115
|
"./definitions/automation-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./automation-runtime-DO5QSGJJ.cjs"))),
|
|
116
116
|
"./definitions/automation.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./automation-HZASSUCS.cjs"))),
|
|
117
|
-
"./definitions/billing-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./billing-runtime-
|
|
117
|
+
"./definitions/billing-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./billing-runtime-PKKLWPQY.cjs"))),
|
|
118
118
|
"./definitions/billing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./billing-3VZPNG6M.cjs"))),
|
|
119
119
|
"./definitions/blueprint-manifest-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./blueprint-manifest-runtime-WU5MWPVT.cjs"))),
|
|
120
120
|
"./definitions/blueprint-manifest.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./blueprint-manifest-5TNVSDKC.cjs"))),
|
|
@@ -182,7 +182,7 @@ var globImport_definitions_json = _chunkNJK5F5TFcjs.__glob.call(void 0, {
|
|
|
182
182
|
"./definitions/sandbox.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./sandbox-CLZTN7IW.cjs"))),
|
|
183
183
|
"./definitions/sharing-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./sharing-runtime-VOFLBIFW.cjs"))),
|
|
184
184
|
"./definitions/sharing.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./sharing-WG4L7LH2.cjs"))),
|
|
185
|
-
"./definitions/snapshot-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./snapshot-runtime-
|
|
185
|
+
"./definitions/snapshot-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./snapshot-runtime-AQJSSXRV.cjs"))),
|
|
186
186
|
"./definitions/submission-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./submission-runtime-5FD4AQSD.cjs"))),
|
|
187
187
|
"./definitions/submission.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./submission-6FD67HIE.cjs"))),
|
|
188
188
|
"./definitions/target-runtime.json": () => Promise.resolve().then(() => _interopRequireWildcard(require("./target-runtime-BMJ7EARM.cjs"))),
|
|
@@ -36,7 +36,7 @@ var globImport_docs = __glob({
|
|
|
36
36
|
"./docs/app.json": () => import("./app-GNUHCGPO.js"),
|
|
37
37
|
"./docs/audit-logs.json": () => import("./audit-logs-5VXHOQ7S.js"),
|
|
38
38
|
"./docs/automation.json": () => import("./automation-HKXKZO4Z.js"),
|
|
39
|
-
"./docs/billing.json": () => import("./billing-
|
|
39
|
+
"./docs/billing.json": () => import("./billing-IV5ABNW4.js"),
|
|
40
40
|
"./docs/blueprint-manifest.json": () => import("./blueprint-manifest-WZVBTKUL.js"),
|
|
41
41
|
"./docs/calendar.json": () => import("./calendar-ACFIHQ2N.js"),
|
|
42
42
|
"./docs/configuration-hub.json": () => import("./configuration-hub-E7S4JB2T.js"),
|
|
@@ -72,7 +72,7 @@ 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-
|
|
75
|
+
"./docs/snapshot.json": () => import("./snapshot-5XHTEB2U.js"),
|
|
76
76
|
"./docs/submission.json": () => import("./submission-7BISSPO6.js"),
|
|
77
77
|
"./docs/target.json": () => import("./target-5MKRXCHX.js"),
|
|
78
78
|
"./docs/targeting.json": () => import("./targeting-VCENULF6.js"),
|
|
@@ -114,7 +114,7 @@ var globImport_definitions_json = __glob({
|
|
|
114
114
|
"./definitions/audit-logs.json": () => import("./audit-logs-F2NHDISQ.js"),
|
|
115
115
|
"./definitions/automation-runtime.json": () => import("./automation-runtime-VP4M7Z4R.js"),
|
|
116
116
|
"./definitions/automation.json": () => import("./automation-WEVRW77F.js"),
|
|
117
|
-
"./definitions/billing-runtime.json": () => import("./billing-runtime-
|
|
117
|
+
"./definitions/billing-runtime.json": () => import("./billing-runtime-3OCFZU2K.js"),
|
|
118
118
|
"./definitions/billing.json": () => import("./billing-ASWY7HC3.js"),
|
|
119
119
|
"./definitions/blueprint-manifest-runtime.json": () => import("./blueprint-manifest-runtime-2344IUIE.js"),
|
|
120
120
|
"./definitions/blueprint-manifest.json": () => import("./blueprint-manifest-UGGYWGRZ.js"),
|
|
@@ -182,7 +182,7 @@ var globImport_definitions_json = __glob({
|
|
|
182
182
|
"./definitions/sandbox.json": () => import("./sandbox-O2NWMZGJ.js"),
|
|
183
183
|
"./definitions/sharing-runtime.json": () => import("./sharing-runtime-OZGIZWL3.js"),
|
|
184
184
|
"./definitions/sharing.json": () => import("./sharing-KEWK5LNG.js"),
|
|
185
|
-
"./definitions/snapshot-runtime.json": () => import("./snapshot-runtime-
|
|
185
|
+
"./definitions/snapshot-runtime.json": () => import("./snapshot-runtime-AY7YYSFQ.js"),
|
|
186
186
|
"./definitions/submission-runtime.json": () => import("./submission-runtime-JPHKPQ77.js"),
|
|
187
187
|
"./definitions/submission.json": () => import("./submission-MWJU4L32.js"),
|
|
188
188
|
"./definitions/target-runtime.json": () => import("./target-runtime-PBF3WYL7.js"),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__commonJS
|
|
3
|
+
} from "./chunk-YPSWSI3M.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/billing-runtime.json
|
|
6
|
+
var require_billing_runtime = __commonJS({
|
|
7
|
+
"src/definitions/billing-runtime.json"(exports, module) {
|
|
8
|
+
module.exports = { s: "https://billing.sls.epilot.io", o: [["getBillingEvents", "get", "/v1/billing/events", [["from", "q"], ["size", "q"], ["entity_id", "q"], ["contact_id", "q"], ["event_type", "q"], ["date_after", "q"], ["date_before", "q"]]], ["createBillingEvent", "post", "/v1/billing/events", null, 1], ["getBillingEvent", "get", "/v1/billing/events/{id}", [["id", "p", true]]], ["updateBillingEvent", "patch", "/v1/billing/events/{id}", [["id", "p", true]], 1], ["deleteBillingEvent", "delete", "/v1/billing/events/{id}", [["id", "p", true]]], ["getBillingEventByExternalId", "get", "/v1/billing/external/{external_id}", [["external_id", "p", true]]], ["createContractEntity", "post", "/v1/billing/contracts", null, 1], ["updateContractEntity", "patch", "/v1/billing/contracts/{id}", [["id", "p", true]], 1], ["deleteContractEntity", "delete", "/v1/billing/contracts/{id}", [["id", "p", true]]], ["getContractPricingInformation", "get", "/v1/billing/contracts/{id}/pricing_information", [["id", "p", true]]], ["getBillingAccountPricingInformation", "get", "/v1/billing/billing_accounts/{id}/pricing_information", [["id", "p", true]]], ["getContractConfigurationHistory", "get", "/v1/billing/contracts/{id}/configuration_history", [["id", "p", true], ["ConfigurationHistoryChangeType"], ["From"], ["Size"]]], ["getBillingAccountConfigurationHistory", "get", "/v1/billing/billing_accounts/{id}/configuration_history", [["id", "p", true], ["ConfigurationHistoryChangeType"], ["From"], ["Size"]]], ["getCustomerBalance", "get", "/v1/billing/customers/{id}/balance", [["id", "p", true]]]], v: "3.0.3", cp: { From: ["from", "q"], Size: ["size", "q"], ConfigurationHistoryChangeType: ["change_type", "q"] } };
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
require_billing_runtime
|
|
14
|
+
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/definitions/snapshot-runtime.json
|
|
6
6
|
var require_snapshot_runtime = __commonJS({
|
|
7
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"], ["trigger", "q"]]], ["captureOrgSnapshot", "post", "/v1/snapshots:capture-org", null, 1], ["getSnapshot", "get", "/v1/snapshots/{id}"], ["deleteSnapshot", "delete", "/v1/snapshots/{id}"], ["restoreSnapshot", "post", "/v1/snapshots/{id}:restore", null, 1], ["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]] } };
|
|
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"], ["trigger", "q"]]], ["captureOrgSnapshot", "post", "/v1/snapshots:capture-org", null, 1], ["getSnapshot", "get", "/v1/snapshots/{id}"], ["deleteSnapshot", "delete", "/v1/snapshots/{id}"], ["restoreSnapshot", "post", "/v1/snapshots/{id}:restore", null, 1], ["listSnapshotResources", "get", "/v1/snapshots/{id}/resources"], ["getSnapshotResource", "get", "/v1/snapshots/{id}/resources/{lineage_id}"], ["getOrgSnapshotSchedule", "get", "/v1/org-snapshot-schedule"], ["putOrgSnapshotSchedule", "put", "/v1/org-snapshot-schedule", null, 1], ["deleteOrgSnapshotSchedule", "delete", "/v1/org-snapshot-schedule"], ["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
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
|
5
5
|
// src/definitions/snapshot-runtime.json
|
|
6
6
|
var require_snapshot_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
|
|
7
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"], ["trigger", "q"]]], ["captureOrgSnapshot", "post", "/v1/snapshots:capture-org", null, 1], ["getSnapshot", "get", "/v1/snapshots/{id}"], ["deleteSnapshot", "delete", "/v1/snapshots/{id}"], ["restoreSnapshot", "post", "/v1/snapshots/{id}:restore", null, 1], ["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]] } };
|
|
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"], ["trigger", "q"]]], ["captureOrgSnapshot", "post", "/v1/snapshots:capture-org", null, 1], ["getSnapshot", "get", "/v1/snapshots/{id}"], ["deleteSnapshot", "delete", "/v1/snapshots/{id}"], ["restoreSnapshot", "post", "/v1/snapshots/{id}:restore", null, 1], ["listSnapshotResources", "get", "/v1/snapshots/{id}/resources"], ["getSnapshotResource", "get", "/v1/snapshots/{id}/resources/{lineage_id}"], ["getOrgSnapshotSchedule", "get", "/v1/org-snapshot-schedule"], ["putOrgSnapshotSchedule", "put", "/v1/org-snapshot-schedule", null, 1], ["deleteOrgSnapshotSchedule", "delete", "/v1/org-snapshot-schedule"], ["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
9
|
}
|
|
10
10
|
});
|
|
11
11
|
|
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@ var _chunkNEVFKRDUcjs = require('./chunk-NEVFKRDU.cjs');
|
|
|
24
24
|
var _chunkTZQFJ5GXcjs = require('./chunk-TZQFJ5GX.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkVDMPIKANcjs = require('./chunk-VDMPIKAN.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkWWOAKRNGcjs = require('./chunk-WWOAKRNG.cjs');
|
|
@@ -108,7 +108,7 @@ var _chunkUBQCDPW6cjs = require('./chunk-UBQCDPW6.cjs');
|
|
|
108
108
|
var _chunkI6DG26UJcjs = require('./chunk-I6DG26UJ.cjs');
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
var
|
|
111
|
+
var _chunk4XOJVIUQcjs = require('./chunk-4XOJVIUQ.cjs');
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
var _chunkT57MT6J5cjs = require('./chunk-T57MT6J5.cjs');
|
|
@@ -158,7 +158,7 @@ var _chunkDVM27A7Ecjs = require('./chunk-DVM27A7E.cjs');
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
var
|
|
161
|
+
var _chunkF4KDYDCBcjs = require('./chunk-F4KDYDCB.cjs');
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
@@ -225,7 +225,7 @@ var resolveClient = (params) => {
|
|
|
225
225
|
}
|
|
226
226
|
if (!entry.instance) {
|
|
227
227
|
const definition = entry.loader();
|
|
228
|
-
entry.instance =
|
|
228
|
+
entry.instance = _chunkF4KDYDCBcjs.createApiClient.call(void 0, {
|
|
229
229
|
definition,
|
|
230
230
|
token: state.token,
|
|
231
231
|
headers: state.globalHeaders,
|
|
@@ -258,7 +258,7 @@ var resetAllClients = (registry) => {
|
|
|
258
258
|
};
|
|
259
259
|
|
|
260
260
|
// src/apis/_registry.ts
|
|
261
|
-
var expandDef = (mod) =>
|
|
261
|
+
var expandDef = (mod) => _chunkF4KDYDCBcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
262
262
|
var registerBuiltinApis = (registry) => {
|
|
263
263
|
registerApi({
|
|
264
264
|
registry,
|
|
@@ -298,7 +298,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
298
298
|
registerApi({
|
|
299
299
|
registry,
|
|
300
300
|
name: "billing",
|
|
301
|
-
loader: () => expandDef(
|
|
301
|
+
loader: () => expandDef(_chunk4XOJVIUQcjs.require_billing_runtime.call(void 0, ))
|
|
302
302
|
});
|
|
303
303
|
registerApi({
|
|
304
304
|
registry,
|
|
@@ -473,7 +473,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
473
473
|
registerApi({
|
|
474
474
|
registry,
|
|
475
475
|
name: "snapshot",
|
|
476
|
-
loader: () => expandDef(
|
|
476
|
+
loader: () => expandDef(_chunkVDMPIKANcjs.require_snapshot_runtime.call(void 0, ))
|
|
477
477
|
});
|
|
478
478
|
registerApi({
|
|
479
479
|
registry,
|
|
@@ -601,9 +601,9 @@ var createSDK = () => {
|
|
|
601
601
|
const available = [...registry.keys()].join(", ");
|
|
602
602
|
throw new Error(`Unknown API: "${name}". Available: ${available}`);
|
|
603
603
|
}
|
|
604
|
-
return
|
|
604
|
+
return _chunkF4KDYDCBcjs.createApiHandle.call(void 0, {
|
|
605
605
|
resolveClient: () => resolveClient({ registry, name, state }),
|
|
606
|
-
createClient: () =>
|
|
606
|
+
createClient: () => _chunkF4KDYDCBcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
|
|
607
607
|
apiName: name
|
|
608
608
|
});
|
|
609
609
|
};
|
|
@@ -651,9 +651,9 @@ var createSDK = () => {
|
|
|
651
651
|
return interceptorUse;
|
|
652
652
|
}
|
|
653
653
|
case "help":
|
|
654
|
-
return (apiName) =>
|
|
654
|
+
return (apiName) => _chunkF4KDYDCBcjs.help.call(void 0, apiName);
|
|
655
655
|
case "openapi":
|
|
656
|
-
return (apiName) =>
|
|
656
|
+
return (apiName) => _chunkF4KDYDCBcjs.openapi.call(void 0, apiName);
|
|
657
657
|
case "then":
|
|
658
658
|
case "catch":
|
|
659
659
|
case "finally":
|
|
@@ -683,4 +683,4 @@ var epilot = createSDK();
|
|
|
683
683
|
|
|
684
684
|
|
|
685
685
|
|
|
686
|
-
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize =
|
|
686
|
+
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkF4KDYDCBcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkF4KDYDCBcjs.help; exports.openapi = _chunkF4KDYDCBcjs.openapi;
|
package/dist/index.d.cts
CHANGED
|
@@ -10,7 +10,7 @@ import { C as Client$3 } from './ai-agents.d-D-7bTH-9.cjs';
|
|
|
10
10
|
import { C as Client$4 } from './app.d-BOR23dso.cjs';
|
|
11
11
|
import { C as Client$5 } from './audit-logs.d-BRToFqeX.cjs';
|
|
12
12
|
import { C as Client$6 } from './automation.d-Beojxb43.cjs';
|
|
13
|
-
import { C as Client$7 } from './billing.d-
|
|
13
|
+
import { C as Client$7 } from './billing.d-N_1F759g.cjs';
|
|
14
14
|
import { C as Client$8 } from './blueprint-manifest.d-2-TORV8o.cjs';
|
|
15
15
|
import { C as Client$9 } from './calendar.d-BEjLDagH.cjs';
|
|
16
16
|
import { C as Client$a } from './configuration-hub.d-CbSJDa7k.cjs';
|
|
@@ -45,7 +45,7 @@ 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 './snapshot.d-
|
|
48
|
+
import { C as Client$G } from './snapshot.d-DT0zg2CS.cjs';
|
|
49
49
|
import { C as Client$H } from './submission.d-BamwfhXw.cjs';
|
|
50
50
|
import { C as Client$I } from './targeting.d-Bq3onSes.cjs';
|
|
51
51
|
import { C as Client$J } from './template-variables.d-Ble9TSBa.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { C as Client$3 } from './ai-agents.d-D-7bTH-9.js';
|
|
|
10
10
|
import { C as Client$4 } from './app.d-BOR23dso.js';
|
|
11
11
|
import { C as Client$5 } from './audit-logs.d-BRToFqeX.js';
|
|
12
12
|
import { C as Client$6 } from './automation.d-Beojxb43.js';
|
|
13
|
-
import { C as Client$7 } from './billing.d-
|
|
13
|
+
import { C as Client$7 } from './billing.d-N_1F759g.js';
|
|
14
14
|
import { C as Client$8 } from './blueprint-manifest.d-2-TORV8o.js';
|
|
15
15
|
import { C as Client$9 } from './calendar.d-BEjLDagH.js';
|
|
16
16
|
import { C as Client$a } from './configuration-hub.d-CbSJDa7k.js';
|
|
@@ -45,7 +45,7 @@ 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 './snapshot.d-
|
|
48
|
+
import { C as Client$G } from './snapshot.d-DT0zg2CS.js';
|
|
49
49
|
import { C as Client$H } from './submission.d-BamwfhXw.js';
|
|
50
50
|
import { C as Client$I } from './targeting.d-Bq3onSes.js';
|
|
51
51
|
import { C as Client$J } from './template-variables.d-Ble9TSBa.js';
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-NPDSA7T2.js";
|
|
25
25
|
import {
|
|
26
26
|
require_snapshot_runtime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-UXY7SWNP.js";
|
|
28
28
|
import {
|
|
29
29
|
require_submission_runtime
|
|
30
30
|
} from "./chunk-IJR3GZKC.js";
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
} from "./chunk-2LEEXRJX.js";
|
|
109
109
|
import {
|
|
110
110
|
require_billing_runtime
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-U5XZ4ERL.js";
|
|
112
112
|
import {
|
|
113
113
|
require_blueprint_manifest_runtime
|
|
114
114
|
} from "./chunk-UWGWRGGB.js";
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
expand,
|
|
159
159
|
help,
|
|
160
160
|
openapi
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-H72QGQR6.js";
|
|
162
162
|
import {
|
|
163
163
|
__require
|
|
164
164
|
} from "./chunk-YPSWSI3M.js";
|
|
@@ -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- [`captureOrgSnapshot`](#captureorgsnapshot)\n- [`getSnapshot`](#getsnapshot)\n- [`deleteSnapshot`](#deletesnapshot)\n- [`restoreSnapshot`](#restoresnapshot)\n- [`listSnapshotResources`](#listsnapshotresources)\n- [`getSnapshotResource`](#getsnapshotresource)\n- [`listDependencies`](#listdependencies)\n\n**ScheduledSnapshots**\n- [`getOrgSnapshotSchedule`](#getorgsnapshotschedule)\n- [`putOrgSnapshotSchedule`](#putorgsnapshotschedule)\n- [`deleteOrgSnapshotSchedule`](#deleteorgsnapshotschedule)\n\n**Schemas**\n- [`Error`](#error)\n- [`ResourceRef`](#resourceref)\n- [`SnapshotResourceSummary`](#snapshotresourcesummary)\n- [`SnapshotResourceList`](#snapshotresourcelist)\n- [`SnapshotResourceDetail`](#snapshotresourcedetail)\n- [`CreateSnapshotRequest`](#createsnapshotrequest)\n- [`CreateOrgSnapshotRequest`](#createorgsnapshotrequest)\n- [`CreateSnapshotResponse`](#createsnapshotresponse)\n- [`RestoreSnapshotRequest`](#restoresnapshotrequest)\n- [`RestoreSnapshotResponse`](#restoresnapshotresponse)\n- [`Snapshot`](#snapshot)\n- [`Operation`](#operation)\n- [`CallerIdentity`](#calleridentity)\n- [`RetentionConfig`](#retentionconfig)\n- [`PutOrgSnapshotScheduleRequest`](#putorgsnapshotschedulerequest)\n- [`OrgSnapshotSchedule`](#orgsnapshotschedule)\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 trigger: \'example\',\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 "scope": "selection",\n "expires_at": "1970-01-01T00:00:00.000Z",\n "capture_summary": {\n "total": 0,\n "captured": 0,\n "skipped": 0,\n "failed": 0\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `captureOrgSnapshot`\n\nSnapshot the caller\'s whole organization now. Creates a `scope: "org"`\nsnapshot row and starts a chunked capture Step Function, then returns\nimmediately. The capture asynchronously fetches a fresh inv\n\n`POST /v1/snapshots:capture-org`\n\n```ts\nconst { data } = await client.captureOrgSnapshot(\n null,\n {\n name: \'string\',\n retention: {\n value: 1,\n unit: \'days\'\n },\n excluded_types: [\'string\']\n },\n)\n```\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 "scope": "selection",\n "expires_at": "1970-01-01T00:00:00.000Z",\n "capture_summary": {\n "total": 0,\n "captured": 0,\n "skipped": 0,\n "failed": 0\n }\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 one of `completed | partial | failed`.\n\n`POST /v1/snapshots/{id}:restore`\n\n```ts\nconst { data } = await client.restoreSnapshot(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n exclude_target_ids: [\'string\']\n },\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### `getOrgSnapshotSchedule`\n\nReturn the scheduled-snapshot enrollment config for the caller\'s org.\nReturns 404 when the org has not yet enrolled.\n\n`GET /v1/org-snapshot-schedule`\n\n```ts\nconst { data } = await client.getOrgSnapshotSchedule()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "org_id": "string",\n "enabled": true,\n "cron_expression": "cron(0 2 * * ? *)",\n "timezone": "string",\n "retention": {\n "value": 1,\n "unit": "days"\n },\n "excluded_types": ["string"],\n "schedule_name": "string",\n "last_started_at": "1970-01-01T00:00:00.000Z",\n "last_completed_at": "1970-01-01T00:00:00.000Z",\n "last_status": "completed",\n "created_by": "string",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `putOrgSnapshotSchedule`\n\nCreate or update the scheduled-snapshot enrollment config for the\ncaller\'s org (upsert). The cron expression and retention window are\nvalidated server-side; invalid values are rejected with 400.\n\n`PUT /v1/org-snapshot-schedule`\n\n```ts\nconst { data } = await client.putOrgSnapshotSchedule(\n null,\n {\n enabled: true,\n cron_expression: \'cron(0 2 * * ? *)\',\n timezone: \'Europe/Berlin\',\n retention: {\n value: 1,\n unit: \'days\'\n },\n excluded_types: [\'string\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "org_id": "string",\n "enabled": true,\n "cron_expression": "cron(0 2 * * ? *)",\n "timezone": "string",\n "retention": {\n "value": 1,\n "unit": "days"\n },\n "excluded_types": ["string"],\n "schedule_name": "string",\n "last_started_at": "1970-01-01T00:00:00.000Z",\n "last_completed_at": "1970-01-01T00:00:00.000Z",\n "last_status": "completed",\n "created_by": "string",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `deleteOrgSnapshotSchedule`\n\nRemove the scheduled-snapshot enrollment for the caller\'s org.\nReturns 404 when no schedule exists.\nThe corresponding EventBridge schedule is removed by a reconcile\nstep (Task 6).\n\n`DELETE /v1/org-snapshot-schedule`\n\n```ts\nconst { data } = await client.deleteOrgSnapshotSchedule()\n```\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" | "scheduled"\n blueprint_instance_id?: string\n resources: Array<{\n type: string\n id: string\n }>\n}\n```\n\n### `CreateOrgSnapshotRequest`\n\nRequest body for `captureOrgSnapshot`. All fields optional \u2014 an empty body\nsnapshots the whole org with a default name and the 90-day default TTL.\n\n\n```ts\ntype CreateOrgSnapshotRequest = {\n name?: string\n retention?: {\n value: number\n unit: "days" | "weeks" | "months"\n }\n excluded_types?: string[]\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### `RestoreSnapshotRequest`\n\nApply a captured snapshot to its source org. snapshot-api applies the\nmanifest verbatim minus any target ids the caller pre-decided to skip.\nDrift detection (skip modified-since-install) is the caller\'s\nresponsibility \u2014 blueprint-manifest-api owns that logic for blueprint\nrestores; Config Hub\'s manu\n\n```ts\ntype RestoreSnapshotRequest = {\n exclude_target_ids?: string[]\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" | "scheduled"\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" | "partial" | "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" | "partial" | "failed"\n error?: string\n triggered_by: {\n name: { ... }\n user_id?: { ... }\n token_id?: { ... }\n }\n }>\n matched_count?: number\n scope?: "selection" | "org"\n expires_at?: string // date-time\n capture_summary?: {\n total: number\n captured: number\n skipped: number\n failed: number\n }\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" | "partial" | "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\n### `RetentionConfig`\n\nFlat retention window for a scheduled snapshot.\nConverted to a `ttl` epoch at capture time. Capped at ~24 months.\n\n\n```ts\ntype RetentionConfig = {\n value: number\n unit: "days" | "weeks" | "months"\n}\n```\n\n### `PutOrgSnapshotScheduleRequest`\n\nBody for `putOrgSnapshotSchedule`. All fields optional; unset fields\nreceive defaults on first create and are left unchanged on updates\n(except `updated_at`).\n\n\n```ts\ntype PutOrgSnapshotScheduleRequest = {\n enabled?: boolean\n cron_expression?: string\n timezone?: string\n retention?: {\n value: number\n unit: "days" | "weeks" | "months"\n }\n excluded_types?: string[]\n}\n```\n\n### `OrgSnapshotSchedule`\n\nEnrollment record for a scheduled org snapshot. One row per org.\nThis table \u2014 not EventBridge \u2014 is the source of truth; the EventBridge\nschedule entry is the materialization of this row (reconciled on write\nby Task 6).\n\n\n```ts\ntype OrgSnapshotSchedule = {\n org_id: string\n enabled: boolean\n cron_expression: string\n timezone: string\n retention: {\n value: number\n unit: "days" | "weeks" | "months"\n }\n excluded_types?: string[]\n schedule_name: string\n last_started_at?: string // date-time\n last_completed_at?: string // date-time\n last_status?: "completed" | "partial" | "failed"\n created_by: string\n created_at: string // date-time\n updated_at: string // date-time\n}\n```\n';
|
|
5
|
+
export {
|
|
6
|
+
snapshot_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/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- [`captureOrgSnapshot`](#captureorgsnapshot)\n- [`getSnapshot`](#getsnapshot)\n- [`deleteSnapshot`](#deletesnapshot)\n- [`restoreSnapshot`](#restoresnapshot)\n- [`listSnapshotResources`](#listsnapshotresources)\n- [`getSnapshotResource`](#getsnapshotresource)\n- [`listDependencies`](#listdependencies)\n\n**ScheduledSnapshots**\n- [`getOrgSnapshotSchedule`](#getorgsnapshotschedule)\n- [`putOrgSnapshotSchedule`](#putorgsnapshotschedule)\n- [`deleteOrgSnapshotSchedule`](#deleteorgsnapshotschedule)\n\n**Schemas**\n- [`Error`](#error)\n- [`ResourceRef`](#resourceref)\n- [`SnapshotResourceSummary`](#snapshotresourcesummary)\n- [`SnapshotResourceList`](#snapshotresourcelist)\n- [`SnapshotResourceDetail`](#snapshotresourcedetail)\n- [`CreateSnapshotRequest`](#createsnapshotrequest)\n- [`CreateOrgSnapshotRequest`](#createorgsnapshotrequest)\n- [`CreateSnapshotResponse`](#createsnapshotresponse)\n- [`RestoreSnapshotRequest`](#restoresnapshotrequest)\n- [`RestoreSnapshotResponse`](#restoresnapshotresponse)\n- [`Snapshot`](#snapshot)\n- [`Operation`](#operation)\n- [`CallerIdentity`](#calleridentity)\n- [`RetentionConfig`](#retentionconfig)\n- [`PutOrgSnapshotScheduleRequest`](#putorgsnapshotschedulerequest)\n- [`OrgSnapshotSchedule`](#orgsnapshotschedule)\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 trigger: \'example\',\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 "scope": "selection",\n "expires_at": "1970-01-01T00:00:00.000Z",\n "capture_summary": {\n "total": 0,\n "captured": 0,\n "skipped": 0,\n "failed": 0\n }\n }\n ]\n}\n```\n\n</details>\n\n---\n\n### `captureOrgSnapshot`\n\nSnapshot the caller\'s whole organization now. Creates a `scope: "org"`\nsnapshot row and starts a chunked capture Step Function, then returns\nimmediately. The capture asynchronously fetches a fresh inv\n\n`POST /v1/snapshots:capture-org`\n\n```ts\nconst { data } = await client.captureOrgSnapshot(\n null,\n {\n name: \'string\',\n retention: {\n value: 1,\n unit: \'days\'\n },\n excluded_types: [\'string\']\n },\n)\n```\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 "scope": "selection",\n "expires_at": "1970-01-01T00:00:00.000Z",\n "capture_summary": {\n "total": 0,\n "captured": 0,\n "skipped": 0,\n "failed": 0\n }\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 one of `completed | partial | failed`.\n\n`POST /v1/snapshots/{id}:restore`\n\n```ts\nconst { data } = await client.restoreSnapshot(\n {\n id: \'123e4567-e89b-12d3-a456-426614174000\',\n },\n {\n exclude_target_ids: [\'string\']\n },\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### `getOrgSnapshotSchedule`\n\nReturn the scheduled-snapshot enrollment config for the caller\'s org.\nReturns 404 when the org has not yet enrolled.\n\n`GET /v1/org-snapshot-schedule`\n\n```ts\nconst { data } = await client.getOrgSnapshotSchedule()\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "org_id": "string",\n "enabled": true,\n "cron_expression": "cron(0 2 * * ? *)",\n "timezone": "string",\n "retention": {\n "value": 1,\n "unit": "days"\n },\n "excluded_types": ["string"],\n "schedule_name": "string",\n "last_started_at": "1970-01-01T00:00:00.000Z",\n "last_completed_at": "1970-01-01T00:00:00.000Z",\n "last_status": "completed",\n "created_by": "string",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `putOrgSnapshotSchedule`\n\nCreate or update the scheduled-snapshot enrollment config for the\ncaller\'s org (upsert). The cron expression and retention window are\nvalidated server-side; invalid values are rejected with 400.\n\n`PUT /v1/org-snapshot-schedule`\n\n```ts\nconst { data } = await client.putOrgSnapshotSchedule(\n null,\n {\n enabled: true,\n cron_expression: \'cron(0 2 * * ? *)\',\n timezone: \'Europe/Berlin\',\n retention: {\n value: 1,\n unit: \'days\'\n },\n excluded_types: [\'string\']\n },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "org_id": "string",\n "enabled": true,\n "cron_expression": "cron(0 2 * * ? *)",\n "timezone": "string",\n "retention": {\n "value": 1,\n "unit": "days"\n },\n "excluded_types": ["string"],\n "schedule_name": "string",\n "last_started_at": "1970-01-01T00:00:00.000Z",\n "last_completed_at": "1970-01-01T00:00:00.000Z",\n "last_status": "completed",\n "created_by": "string",\n "created_at": "1970-01-01T00:00:00.000Z",\n "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `deleteOrgSnapshotSchedule`\n\nRemove the scheduled-snapshot enrollment for the caller\'s org.\nReturns 404 when no schedule exists.\nThe corresponding EventBridge schedule is removed by a reconcile\nstep (Task 6).\n\n`DELETE /v1/org-snapshot-schedule`\n\n```ts\nconst { data } = await client.deleteOrgSnapshotSchedule()\n```\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" | "scheduled"\n blueprint_instance_id?: string\n resources: Array<{\n type: string\n id: string\n }>\n}\n```\n\n### `CreateOrgSnapshotRequest`\n\nRequest body for `captureOrgSnapshot`. All fields optional \u2014 an empty body\nsnapshots the whole org with a default name and the 90-day default TTL.\n\n\n```ts\ntype CreateOrgSnapshotRequest = {\n name?: string\n retention?: {\n value: number\n unit: "days" | "weeks" | "months"\n }\n excluded_types?: string[]\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### `RestoreSnapshotRequest`\n\nApply a captured snapshot to its source org. snapshot-api applies the\nmanifest verbatim minus any target ids the caller pre-decided to skip.\nDrift detection (skip modified-since-install) is the caller\'s\nresponsibility \u2014 blueprint-manifest-api owns that logic for blueprint\nrestores; Config Hub\'s manu\n\n```ts\ntype RestoreSnapshotRequest = {\n exclude_target_ids?: string[]\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" | "scheduled"\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" | "partial" | "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" | "partial" | "failed"\n error?: string\n triggered_by: {\n name: { ... }\n user_id?: { ... }\n token_id?: { ... }\n }\n }>\n matched_count?: number\n scope?: "selection" | "org"\n expires_at?: string // date-time\n capture_summary?: {\n total: number\n captured: number\n skipped: number\n failed: number\n }\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" | "partial" | "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\n### `RetentionConfig`\n\nFlat retention window for a scheduled snapshot.\nConverted to a `ttl` epoch at capture time. Capped at ~24 months.\n\n\n```ts\ntype RetentionConfig = {\n value: number\n unit: "days" | "weeks" | "months"\n}\n```\n\n### `PutOrgSnapshotScheduleRequest`\n\nBody for `putOrgSnapshotSchedule`. All fields optional; unset fields\nreceive defaults on first create and are left unchanged on updates\n(except `updated_at`).\n\n\n```ts\ntype PutOrgSnapshotScheduleRequest = {\n enabled?: boolean\n cron_expression?: string\n timezone?: string\n retention?: {\n value: number\n unit: "days" | "weeks" | "months"\n }\n excluded_types?: string[]\n}\n```\n\n### `OrgSnapshotSchedule`\n\nEnrollment record for a scheduled org snapshot. One row per org.\nThis table \u2014 not EventBridge \u2014 is the source of truth; the EventBridge\nschedule entry is the materialization of this row (reconciled on write\nby Task 6).\n\n\n```ts\ntype OrgSnapshotSchedule = {\n org_id: string\n enabled: boolean\n cron_expression: string\n timezone: string\n retention: {\n value: number\n unit: "days" | "weeks" | "months"\n }\n excluded_types?: string[]\n schedule_name: string\n last_started_at?: string // date-time\n last_completed_at?: string // date-time\n last_status?: "completed" | "partial" | "failed"\n created_by: string\n created_at: string // date-time\n updated_at: string // date-time\n}\n```\n';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.default = snapshot_default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVDMPIKANcjs = require('./chunk-VDMPIKAN.cjs');
|
|
4
4
|
require('./chunk-NJK5F5TF.cjs');
|
|
5
|
-
exports. default =
|
|
5
|
+
exports. default = _chunkVDMPIKANcjs.require_snapshot_runtime.call(void 0, );
|