@epilot/sdk 2.8.2 → 2.8.4
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/blueprint-manifest-runtime.json +1 -1
- package/definitions/blueprint-manifest.json +571 -1
- package/definitions/snapshot-runtime.json +1 -0
- package/definitions/snapshot.json +786 -0
- package/definitions/user-runtime.json +1 -1
- package/definitions/user.json +441 -0
- package/dist/README-NBWAQWQS.js +7 -0
- package/dist/README-XCIDDEAE.cjs +7 -0
- package/dist/{_index-DB2VV4PQ.cjs → _index-D5TTZP5F.cjs} +4 -1
- package/dist/{_index-5FB6F5YY.js → _index-UY46ZN47.js} +3 -0
- 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 +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +8 -8
- package/dist/apis/blueprint-manifest.d.cts +2 -2
- package/dist/apis/blueprint-manifest.d.ts +2 -2
- package/dist/apis/blueprint-manifest.js +2 -2
- 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/blueprint-manifest-WHYSBU66.cjs +7 -0
- package/dist/blueprint-manifest-WZVBTKUL.js +7 -0
- package/dist/{blueprint-manifest-runtime-FRLU3ZSF.js → blueprint-manifest-runtime-2344IUIE.js} +1 -1
- package/dist/{blueprint-manifest-runtime-EIDOROIQ.cjs → blueprint-manifest-runtime-WU5MWPVT.cjs} +2 -2
- package/dist/{blueprint-manifest.d-B8yDxagC.d.cts → blueprint-manifest.d-2-TORV8o.d.cts} +926 -4
- package/dist/{blueprint-manifest.d-B8yDxagC.d.ts → blueprint-manifest.d-2-TORV8o.d.ts} +926 -4
- package/dist/chunk-DFYZ3LS2.cjs +14 -0
- package/dist/chunk-GUYARNLI.js +14 -0
- package/dist/{chunk-3IOUJMDV.cjs → chunk-M432U2EN.cjs} +8 -6
- package/dist/chunk-NFIYEMMM.js +14 -0
- package/dist/chunk-OWXEZ56F.cjs +14 -0
- package/dist/{chunk-NGHCQ2FA.cjs → chunk-T57MT6J5.cjs} +1 -1
- package/dist/{chunk-MVY54TDV.js → chunk-TP3MI5V5.js} +8 -6
- package/dist/{chunk-4YBWMDFP.js → chunk-UWGWRGGB.js} +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-CTKT2ILE.cjs +7 -0
- package/dist/snapshot-XYFMWDVA.js +7 -0
- package/dist/snapshot-runtime-EXWPPYJI.js +5 -0
- package/dist/snapshot-runtime-XUQIDON7.cjs +5 -0
- package/dist/snapshot.d-BX0xhQlH.d.cts +588 -0
- package/dist/snapshot.d-BX0xhQlH.d.ts +588 -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.ts → user.d-L-C7_K84.d.cts} +421 -1
- package/dist/{user.d-D18fe97W.d.cts → user.d-L-C7_K84.d.ts} +421 -1
- package/docs/blueprint-manifest.md +421 -95
- package/docs/snapshot.md +561 -0
- package/docs/user.md +321 -8
- package/package.json +10 -1
- package/dist/README-46VYEGGW.js +0 -7
- package/dist/README-IVBISSWB.cjs +0 -7
- package/dist/blueprint-manifest-6DEYW5MW.js +0 -7
- package/dist/blueprint-manifest-GCV7H74X.cjs +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
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse, UnknownParamsObject } from 'openapi-client-axios';
|
|
2
|
+
|
|
3
|
+
/* Auto-copied from snapshot-client */
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
declare namespace Components {
|
|
7
|
+
namespace Responses {
|
|
8
|
+
export type BadRequest = Schemas.Error;
|
|
9
|
+
export type NotFound = Schemas.Error;
|
|
10
|
+
export type Unauthorized = Schemas.Error;
|
|
11
|
+
}
|
|
12
|
+
namespace Schemas {
|
|
13
|
+
export interface CallerIdentity {
|
|
14
|
+
name: string;
|
|
15
|
+
user_id?: string;
|
|
16
|
+
token_id?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateSnapshotRequest {
|
|
19
|
+
name: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
/**
|
|
22
|
+
* What initiated this snapshot. `scheduled` may be added in a later
|
|
23
|
+
* phase for nightly backups (RFC OQ #3).
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
trigger?: "manual" | "sync" | "blueprint_install";
|
|
27
|
+
/**
|
|
28
|
+
* Required iff `trigger === 'blueprint_install'`; forbidden otherwise.
|
|
29
|
+
* Identifies the destination blueprint instance whose install this
|
|
30
|
+
* snapshot covers. Used at restore time as the join key for the
|
|
31
|
+
* lineage-driven delete sweep.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
blueprint_instance_id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* List of resources to capture. Required non-empty for
|
|
37
|
+
* `trigger === 'manual'` or `'sync'`. May be empty when
|
|
38
|
+
* `trigger === 'blueprint_install'` — an install with no
|
|
39
|
+
* resources to overwrite still needs a snapshot row so the
|
|
40
|
+
* blueprint-manifest-api restore endpoint can find it.
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
resources: ResourceRef[];
|
|
44
|
+
}
|
|
45
|
+
export interface CreateSnapshotResponse {
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
status: "creating";
|
|
49
|
+
created_at: string; // date-time
|
|
50
|
+
}
|
|
51
|
+
export interface Error {
|
|
52
|
+
status: number;
|
|
53
|
+
error: string;
|
|
54
|
+
}
|
|
55
|
+
export interface Operation {
|
|
56
|
+
type: "create" | "restore";
|
|
57
|
+
started_at: string; // date-time
|
|
58
|
+
completed_at?: string; // date-time
|
|
59
|
+
/**
|
|
60
|
+
* `partial` indicates the operation completed but skipped at least
|
|
61
|
+
* one resource — see `skipped`. Only populated by restores triggered
|
|
62
|
+
* with `mode: 'preserve_edits'`.
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
status: "in_progress" | "completed" | "partial" | "failed";
|
|
66
|
+
error?: string;
|
|
67
|
+
triggered_by: CallerIdentity;
|
|
68
|
+
/**
|
|
69
|
+
* Per-resource skips, populated only for restores triggered with
|
|
70
|
+
* `mode: 'preserve_edits'`. Empty / absent for Config Hub's
|
|
71
|
+
* default overwrite-mode restores.
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
skipped?: SkippedResource[];
|
|
75
|
+
}
|
|
76
|
+
export interface ResourceRef {
|
|
77
|
+
/**
|
|
78
|
+
* Resource type (e.g., custom_variable, journey, automation_flow)
|
|
79
|
+
*/
|
|
80
|
+
type: string;
|
|
81
|
+
id: string;
|
|
82
|
+
}
|
|
83
|
+
export interface RestoreSnapshotRequest {
|
|
84
|
+
/**
|
|
85
|
+
* How to handle destination resources whose content has been modified
|
|
86
|
+
* since the snapshot was captured:
|
|
87
|
+
*
|
|
88
|
+
* - `overwrite` (default) — apply every captured payload regardless
|
|
89
|
+
* of current destination state. Matches the manual-restore
|
|
90
|
+
* semantics Config Hub relies on.
|
|
91
|
+
* - `preserve_edits` — for each captured resource, compare the live
|
|
92
|
+
* destination payload's fingerprint against the install-time
|
|
93
|
+
* fingerprint on lineage. If modified, skip and surface the
|
|
94
|
+
* entry under `Operation.skipped`. Also skips co-owned resources
|
|
95
|
+
* (lineage row carrying ≥2 distinct blueprint_instance_ids).
|
|
96
|
+
* Used by blueprint-manifest-api when reverting a blueprint
|
|
97
|
+
* install so user edits and other blueprints' contributions
|
|
98
|
+
* survive.
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
mode?: "overwrite" | "preserve_edits";
|
|
102
|
+
}
|
|
103
|
+
export interface RestoreSnapshotResponse {
|
|
104
|
+
id: string;
|
|
105
|
+
status: "restoring";
|
|
106
|
+
}
|
|
107
|
+
export interface SkippedResource {
|
|
108
|
+
lineage_id: string;
|
|
109
|
+
/**
|
|
110
|
+
* - `modified` — current destination payload's fingerprint differs
|
|
111
|
+
* from the install-time fingerprint on the lineage row.
|
|
112
|
+
* - `co_owned` — lineage row has ≥2 distinct
|
|
113
|
+
* `blueprint_instance_ids`; restoring would unilaterally affect
|
|
114
|
+
* another blueprint instance's contribution.
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
reason: "modified" | "co_owned";
|
|
118
|
+
}
|
|
119
|
+
export interface Snapshot {
|
|
120
|
+
id: string;
|
|
121
|
+
org_id: string;
|
|
122
|
+
name: string;
|
|
123
|
+
description?: string;
|
|
124
|
+
trigger: "manual" | "sync" | "blueprint_install";
|
|
125
|
+
/**
|
|
126
|
+
* Set iff `trigger === 'blueprint_install'`. The destination blueprint
|
|
127
|
+
* instance this snapshot covers.
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
blueprint_instance_id?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Resource type → count of resources of that type in the snapshot.
|
|
133
|
+
*/
|
|
134
|
+
resource_counts: {
|
|
135
|
+
[name: string]: number;
|
|
136
|
+
};
|
|
137
|
+
create: Operation;
|
|
138
|
+
restores: Operation[];
|
|
139
|
+
/**
|
|
140
|
+
* Number of `resource` filter pairs from the request that are
|
|
141
|
+
* contained in this snapshot. Present only on `listSnapshots`
|
|
142
|
+
* responses where the caller passed at least one `resource`
|
|
143
|
+
* filter — absent on `getSnapshot` and on unfiltered list calls.
|
|
144
|
+
* Drives the coverage badge in Config Hub's snapshot picker.
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
matched_count?: number;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* A single captured resource with its full payload. The identity fields
|
|
151
|
+
* match `SnapshotResourceSummary`; the `captured` payload is the
|
|
152
|
+
* pre-install state at snapshot time.
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
export interface SnapshotResourceDetail {
|
|
156
|
+
lineage_id: string;
|
|
157
|
+
target_id: string;
|
|
158
|
+
type: string;
|
|
159
|
+
name?: string | null;
|
|
160
|
+
/**
|
|
161
|
+
* Full captured payload of the resource at snapshot time.
|
|
162
|
+
*/
|
|
163
|
+
captured: {
|
|
164
|
+
[name: string]: any;
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
export interface SnapshotResourceList {
|
|
168
|
+
resources: /**
|
|
169
|
+
* Lightweight identity for a captured resource. Returned by
|
|
170
|
+
* `listSnapshotResources`; the full payload is fetched separately via
|
|
171
|
+
* `getSnapshotResource` when needed.
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
SnapshotResourceSummary[];
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Lightweight identity for a captured resource. Returned by
|
|
178
|
+
* `listSnapshotResources`; the full payload is fetched separately via
|
|
179
|
+
* `getSnapshotResource` when needed.
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
export interface SnapshotResourceSummary {
|
|
183
|
+
/**
|
|
184
|
+
* Cross-service correlation key — matches the lineage row id in
|
|
185
|
+
* blueprint-manifest-api's lineage table for `blueprint_install`
|
|
186
|
+
* snapshots. Same as `target_id` for snapshots whose capture
|
|
187
|
+
* doesn't distinguish source vs destination identifiers.
|
|
188
|
+
*
|
|
189
|
+
*/
|
|
190
|
+
lineage_id: string;
|
|
191
|
+
/**
|
|
192
|
+
* Identifier the resource was captured by (passed in via `ResourceRef.id` on createSnapshot).
|
|
193
|
+
*/
|
|
194
|
+
target_id: string;
|
|
195
|
+
type: string;
|
|
196
|
+
/**
|
|
197
|
+
* Best-effort display name extracted from the captured payload
|
|
198
|
+
* (`name` / `title` / `label` / `key` in that order). Null when
|
|
199
|
+
* none of those fields are present.
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
name?: string | null;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
declare namespace Paths {
|
|
207
|
+
namespace CreateSnapshot {
|
|
208
|
+
export type RequestBody = Components.Schemas.CreateSnapshotRequest;
|
|
209
|
+
namespace Responses {
|
|
210
|
+
export type $202 = Components.Schemas.CreateSnapshotResponse;
|
|
211
|
+
export type $400 = Components.Responses.BadRequest;
|
|
212
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
namespace DeleteSnapshot {
|
|
216
|
+
namespace Responses {
|
|
217
|
+
export interface $204 {
|
|
218
|
+
}
|
|
219
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
220
|
+
export type $404 = Components.Responses.NotFound;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
namespace GetSnapshot {
|
|
224
|
+
namespace Responses {
|
|
225
|
+
export type $200 = Components.Schemas.Snapshot;
|
|
226
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
227
|
+
export type $404 = Components.Responses.NotFound;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
namespace GetSnapshotResource {
|
|
231
|
+
namespace Responses {
|
|
232
|
+
export type $200 = /**
|
|
233
|
+
* A single captured resource with its full payload. The identity fields
|
|
234
|
+
* match `SnapshotResourceSummary`; the `captured` payload is the
|
|
235
|
+
* pre-install state at snapshot time.
|
|
236
|
+
*
|
|
237
|
+
*/
|
|
238
|
+
Components.Schemas.SnapshotResourceDetail;
|
|
239
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
240
|
+
export type $404 = Components.Responses.NotFound;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
namespace ListDependencies {
|
|
244
|
+
export interface RequestBody {
|
|
245
|
+
resources: Components.Schemas.ResourceRef[];
|
|
246
|
+
}
|
|
247
|
+
namespace Responses {
|
|
248
|
+
export interface $200 {
|
|
249
|
+
dependencies: Components.Schemas.ResourceRef[];
|
|
250
|
+
}
|
|
251
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
252
|
+
export type $501 = Components.Schemas.Error;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
namespace ListSnapshotResources {
|
|
256
|
+
namespace Responses {
|
|
257
|
+
export type $200 = Components.Schemas.SnapshotResourceList;
|
|
258
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
259
|
+
export type $404 = Components.Responses.NotFound;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
namespace ListSnapshots {
|
|
263
|
+
namespace Parameters {
|
|
264
|
+
export type Cursor = string;
|
|
265
|
+
export type Resource = string /* ^[^:]+:.+$ */[];
|
|
266
|
+
export type Size = number;
|
|
267
|
+
}
|
|
268
|
+
export interface QueryParameters {
|
|
269
|
+
cursor?: Parameters.Cursor;
|
|
270
|
+
size?: Parameters.Size;
|
|
271
|
+
resource?: Parameters.Resource;
|
|
272
|
+
}
|
|
273
|
+
namespace Responses {
|
|
274
|
+
export interface $200 {
|
|
275
|
+
/**
|
|
276
|
+
* Number of items in this page (not the total across all pages).
|
|
277
|
+
*/
|
|
278
|
+
page_size: number;
|
|
279
|
+
/**
|
|
280
|
+
* Pagination cursor; pass to the next request to get the next page.
|
|
281
|
+
*/
|
|
282
|
+
cursor?: string;
|
|
283
|
+
results: Components.Schemas.Snapshot[];
|
|
284
|
+
}
|
|
285
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
namespace RestoreSnapshot {
|
|
289
|
+
export type RequestBody = Components.Schemas.RestoreSnapshotRequest;
|
|
290
|
+
namespace Responses {
|
|
291
|
+
export type $202 = Components.Schemas.RestoreSnapshotResponse;
|
|
292
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
293
|
+
export type $404 = Components.Responses.NotFound;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
namespace V1Snapshots$Id {
|
|
297
|
+
namespace Parameters {
|
|
298
|
+
export type Id = string;
|
|
299
|
+
}
|
|
300
|
+
export interface PathParameters {
|
|
301
|
+
id: Parameters.Id;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
namespace V1Snapshots$IdResources {
|
|
305
|
+
namespace Parameters {
|
|
306
|
+
export type Id = string;
|
|
307
|
+
}
|
|
308
|
+
export interface PathParameters {
|
|
309
|
+
id: Parameters.Id;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
namespace V1Snapshots$IdResources$LineageId {
|
|
313
|
+
namespace Parameters {
|
|
314
|
+
export type Id = string;
|
|
315
|
+
export type LineageId = string;
|
|
316
|
+
}
|
|
317
|
+
export interface PathParameters {
|
|
318
|
+
id: Parameters.Id;
|
|
319
|
+
lineage_id: Parameters.LineageId;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
namespace V1Snapshots$IdRestore {
|
|
323
|
+
namespace Parameters {
|
|
324
|
+
export type Id = string;
|
|
325
|
+
}
|
|
326
|
+
export interface PathParameters {
|
|
327
|
+
id: Parameters.Id;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
interface OperationMethods {
|
|
334
|
+
/**
|
|
335
|
+
* listSnapshots - listSnapshots
|
|
336
|
+
*
|
|
337
|
+
* List snapshots for the caller's organization, newest first.
|
|
338
|
+
*
|
|
339
|
+
* Pass `resource=<type>:<id>` one or more times to filter to snapshots
|
|
340
|
+
* containing **any** of the listed resources (OR semantics). Each returned
|
|
341
|
+
* snapshot includes a `matched_count` indicating how many of the filter
|
|
342
|
+
* pairs are present in it. Hard cap of 50 filter pairs per request. When
|
|
343
|
+
* filtered, pagination is not applied — the result set is bounded.
|
|
344
|
+
*
|
|
345
|
+
*/
|
|
346
|
+
'listSnapshots'(
|
|
347
|
+
parameters?: Parameters<Paths.ListSnapshots.QueryParameters> | null,
|
|
348
|
+
data?: any,
|
|
349
|
+
config?: AxiosRequestConfig
|
|
350
|
+
): OperationResponse<Paths.ListSnapshots.Responses.$200>
|
|
351
|
+
/**
|
|
352
|
+
* createSnapshot - createSnapshot
|
|
353
|
+
*
|
|
354
|
+
* Create a new snapshot of the given resources. Async — returns immediately
|
|
355
|
+
* with a snapshot ID; client polls `getSnapshot` until `create.status`
|
|
356
|
+
* moves from `in_progress` to `completed` or `failed`.
|
|
357
|
+
*
|
|
358
|
+
*/
|
|
359
|
+
'createSnapshot'(
|
|
360
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
361
|
+
data?: Paths.CreateSnapshot.RequestBody,
|
|
362
|
+
config?: AxiosRequestConfig
|
|
363
|
+
): OperationResponse<Paths.CreateSnapshot.Responses.$202>
|
|
364
|
+
/**
|
|
365
|
+
* getSnapshot - getSnapshot
|
|
366
|
+
*
|
|
367
|
+
* Fetch a snapshot's metadata. Poll this endpoint to track create/restore progress.
|
|
368
|
+
*/
|
|
369
|
+
'getSnapshot'(
|
|
370
|
+
parameters?: Parameters<Paths.V1Snapshots$Id.PathParameters> | null,
|
|
371
|
+
data?: any,
|
|
372
|
+
config?: AxiosRequestConfig
|
|
373
|
+
): OperationResponse<Paths.GetSnapshot.Responses.$200>
|
|
374
|
+
/**
|
|
375
|
+
* deleteSnapshot - deleteSnapshot
|
|
376
|
+
*
|
|
377
|
+
* Delete a snapshot's metadata and S3 manifest.
|
|
378
|
+
*/
|
|
379
|
+
'deleteSnapshot'(
|
|
380
|
+
parameters?: Parameters<Paths.V1Snapshots$Id.PathParameters> | null,
|
|
381
|
+
data?: any,
|
|
382
|
+
config?: AxiosRequestConfig
|
|
383
|
+
): OperationResponse<Paths.DeleteSnapshot.Responses.$204>
|
|
384
|
+
/**
|
|
385
|
+
* restoreSnapshot - restoreSnapshot
|
|
386
|
+
*
|
|
387
|
+
* Restore a snapshot to the org. Async — returns immediately; client polls
|
|
388
|
+
* `getSnapshot` until the latest entry in `restores` moves from
|
|
389
|
+
* `in_progress` to one of `completed | partial | failed`.
|
|
390
|
+
*
|
|
391
|
+
* v1: full restore only. Cherry-pick (`resources?` body filter) is an open
|
|
392
|
+
* question — see RFC OQ #1.
|
|
393
|
+
*
|
|
394
|
+
*/
|
|
395
|
+
'restoreSnapshot'(
|
|
396
|
+
parameters?: Parameters<Paths.V1Snapshots$IdRestore.PathParameters> | null,
|
|
397
|
+
data?: Paths.RestoreSnapshot.RequestBody,
|
|
398
|
+
config?: AxiosRequestConfig
|
|
399
|
+
): OperationResponse<Paths.RestoreSnapshot.Responses.$202>
|
|
400
|
+
/**
|
|
401
|
+
* listSnapshotResources - listSnapshotResources
|
|
402
|
+
*
|
|
403
|
+
* List the resources captured in this snapshot. Returns lightweight
|
|
404
|
+
* identity fields per resource — payloads are fetched via the
|
|
405
|
+
* single-resource endpoint when needed.
|
|
406
|
+
*
|
|
407
|
+
* Used by Config Hub UI to render snapshot contents, and by
|
|
408
|
+
* blueprint-manifest-api to partition lineage rows during a restore
|
|
409
|
+
* sweep (resources in this list are touched; others are net-new).
|
|
410
|
+
*
|
|
411
|
+
*/
|
|
412
|
+
'listSnapshotResources'(
|
|
413
|
+
parameters?: Parameters<Paths.V1Snapshots$IdResources.PathParameters> | null,
|
|
414
|
+
data?: any,
|
|
415
|
+
config?: AxiosRequestConfig
|
|
416
|
+
): OperationResponse<Paths.ListSnapshotResources.Responses.$200>
|
|
417
|
+
/**
|
|
418
|
+
* getSnapshotResource - getSnapshotResource
|
|
419
|
+
*
|
|
420
|
+
* Fetch one captured resource with its full payload. For UI views
|
|
421
|
+
* that diff the captured state against the current destination.
|
|
422
|
+
*
|
|
423
|
+
*/
|
|
424
|
+
'getSnapshotResource'(
|
|
425
|
+
parameters?: Parameters<Paths.V1Snapshots$IdResources$LineageId.PathParameters> | null,
|
|
426
|
+
data?: any,
|
|
427
|
+
config?: AxiosRequestConfig
|
|
428
|
+
): OperationResponse<Paths.GetSnapshotResource.Responses.$200>
|
|
429
|
+
/**
|
|
430
|
+
* listDependencies - listDependencies
|
|
431
|
+
*
|
|
432
|
+
* Walk the dependency tree for a set of resources and return the full
|
|
433
|
+
* transitive closure, topologically sorted.
|
|
434
|
+
*
|
|
435
|
+
* **Not implemented in v1.** Returns 501. Callers should pass an explicit
|
|
436
|
+
* resource list to `createSnapshot`. See RFC Phase 5.
|
|
437
|
+
*
|
|
438
|
+
*/
|
|
439
|
+
'listDependencies'(
|
|
440
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
441
|
+
data?: Paths.ListDependencies.RequestBody,
|
|
442
|
+
config?: AxiosRequestConfig
|
|
443
|
+
): OperationResponse<Paths.ListDependencies.Responses.$200>
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
interface PathsDictionary {
|
|
447
|
+
['/v1/snapshots']: {
|
|
448
|
+
/**
|
|
449
|
+
* createSnapshot - createSnapshot
|
|
450
|
+
*
|
|
451
|
+
* Create a new snapshot of the given resources. Async — returns immediately
|
|
452
|
+
* with a snapshot ID; client polls `getSnapshot` until `create.status`
|
|
453
|
+
* moves from `in_progress` to `completed` or `failed`.
|
|
454
|
+
*
|
|
455
|
+
*/
|
|
456
|
+
'post'(
|
|
457
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
458
|
+
data?: Paths.CreateSnapshot.RequestBody,
|
|
459
|
+
config?: AxiosRequestConfig
|
|
460
|
+
): OperationResponse<Paths.CreateSnapshot.Responses.$202>
|
|
461
|
+
/**
|
|
462
|
+
* listSnapshots - listSnapshots
|
|
463
|
+
*
|
|
464
|
+
* List snapshots for the caller's organization, newest first.
|
|
465
|
+
*
|
|
466
|
+
* Pass `resource=<type>:<id>` one or more times to filter to snapshots
|
|
467
|
+
* containing **any** of the listed resources (OR semantics). Each returned
|
|
468
|
+
* snapshot includes a `matched_count` indicating how many of the filter
|
|
469
|
+
* pairs are present in it. Hard cap of 50 filter pairs per request. When
|
|
470
|
+
* filtered, pagination is not applied — the result set is bounded.
|
|
471
|
+
*
|
|
472
|
+
*/
|
|
473
|
+
'get'(
|
|
474
|
+
parameters?: Parameters<Paths.ListSnapshots.QueryParameters> | null,
|
|
475
|
+
data?: any,
|
|
476
|
+
config?: AxiosRequestConfig
|
|
477
|
+
): OperationResponse<Paths.ListSnapshots.Responses.$200>
|
|
478
|
+
}
|
|
479
|
+
['/v1/snapshots/{id}']: {
|
|
480
|
+
/**
|
|
481
|
+
* getSnapshot - getSnapshot
|
|
482
|
+
*
|
|
483
|
+
* Fetch a snapshot's metadata. Poll this endpoint to track create/restore progress.
|
|
484
|
+
*/
|
|
485
|
+
'get'(
|
|
486
|
+
parameters?: Parameters<Paths.V1Snapshots$Id.PathParameters> | null,
|
|
487
|
+
data?: any,
|
|
488
|
+
config?: AxiosRequestConfig
|
|
489
|
+
): OperationResponse<Paths.GetSnapshot.Responses.$200>
|
|
490
|
+
/**
|
|
491
|
+
* deleteSnapshot - deleteSnapshot
|
|
492
|
+
*
|
|
493
|
+
* Delete a snapshot's metadata and S3 manifest.
|
|
494
|
+
*/
|
|
495
|
+
'delete'(
|
|
496
|
+
parameters?: Parameters<Paths.V1Snapshots$Id.PathParameters> | null,
|
|
497
|
+
data?: any,
|
|
498
|
+
config?: AxiosRequestConfig
|
|
499
|
+
): OperationResponse<Paths.DeleteSnapshot.Responses.$204>
|
|
500
|
+
}
|
|
501
|
+
['/v1/snapshots/{id}:restore']: {
|
|
502
|
+
/**
|
|
503
|
+
* restoreSnapshot - restoreSnapshot
|
|
504
|
+
*
|
|
505
|
+
* Restore a snapshot to the org. Async — returns immediately; client polls
|
|
506
|
+
* `getSnapshot` until the latest entry in `restores` moves from
|
|
507
|
+
* `in_progress` to one of `completed | partial | failed`.
|
|
508
|
+
*
|
|
509
|
+
* v1: full restore only. Cherry-pick (`resources?` body filter) is an open
|
|
510
|
+
* question — see RFC OQ #1.
|
|
511
|
+
*
|
|
512
|
+
*/
|
|
513
|
+
'post'(
|
|
514
|
+
parameters?: Parameters<Paths.V1Snapshots$IdRestore.PathParameters> | null,
|
|
515
|
+
data?: Paths.RestoreSnapshot.RequestBody,
|
|
516
|
+
config?: AxiosRequestConfig
|
|
517
|
+
): OperationResponse<Paths.RestoreSnapshot.Responses.$202>
|
|
518
|
+
}
|
|
519
|
+
['/v1/snapshots/{id}/resources']: {
|
|
520
|
+
/**
|
|
521
|
+
* listSnapshotResources - listSnapshotResources
|
|
522
|
+
*
|
|
523
|
+
* List the resources captured in this snapshot. Returns lightweight
|
|
524
|
+
* identity fields per resource — payloads are fetched via the
|
|
525
|
+
* single-resource endpoint when needed.
|
|
526
|
+
*
|
|
527
|
+
* Used by Config Hub UI to render snapshot contents, and by
|
|
528
|
+
* blueprint-manifest-api to partition lineage rows during a restore
|
|
529
|
+
* sweep (resources in this list are touched; others are net-new).
|
|
530
|
+
*
|
|
531
|
+
*/
|
|
532
|
+
'get'(
|
|
533
|
+
parameters?: Parameters<Paths.V1Snapshots$IdResources.PathParameters> | null,
|
|
534
|
+
data?: any,
|
|
535
|
+
config?: AxiosRequestConfig
|
|
536
|
+
): OperationResponse<Paths.ListSnapshotResources.Responses.$200>
|
|
537
|
+
}
|
|
538
|
+
['/v1/snapshots/{id}/resources/{lineage_id}']: {
|
|
539
|
+
/**
|
|
540
|
+
* getSnapshotResource - getSnapshotResource
|
|
541
|
+
*
|
|
542
|
+
* Fetch one captured resource with its full payload. For UI views
|
|
543
|
+
* that diff the captured state against the current destination.
|
|
544
|
+
*
|
|
545
|
+
*/
|
|
546
|
+
'get'(
|
|
547
|
+
parameters?: Parameters<Paths.V1Snapshots$IdResources$LineageId.PathParameters> | null,
|
|
548
|
+
data?: any,
|
|
549
|
+
config?: AxiosRequestConfig
|
|
550
|
+
): OperationResponse<Paths.GetSnapshotResource.Responses.$200>
|
|
551
|
+
}
|
|
552
|
+
['/v1/snapshots:list-dependencies']: {
|
|
553
|
+
/**
|
|
554
|
+
* listDependencies - listDependencies
|
|
555
|
+
*
|
|
556
|
+
* Walk the dependency tree for a set of resources and return the full
|
|
557
|
+
* transitive closure, topologically sorted.
|
|
558
|
+
*
|
|
559
|
+
* **Not implemented in v1.** Returns 501. Callers should pass an explicit
|
|
560
|
+
* resource list to `createSnapshot`. See RFC Phase 5.
|
|
561
|
+
*
|
|
562
|
+
*/
|
|
563
|
+
'post'(
|
|
564
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
565
|
+
data?: Paths.ListDependencies.RequestBody,
|
|
566
|
+
config?: AxiosRequestConfig
|
|
567
|
+
): OperationResponse<Paths.ListDependencies.Responses.$200>
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
type CallerIdentity = Components.Schemas.CallerIdentity;
|
|
575
|
+
type CreateSnapshotRequest = Components.Schemas.CreateSnapshotRequest;
|
|
576
|
+
type CreateSnapshotResponse = Components.Schemas.CreateSnapshotResponse;
|
|
577
|
+
type Error = Components.Schemas.Error;
|
|
578
|
+
type Operation = Components.Schemas.Operation;
|
|
579
|
+
type ResourceRef = Components.Schemas.ResourceRef;
|
|
580
|
+
type RestoreSnapshotRequest = Components.Schemas.RestoreSnapshotRequest;
|
|
581
|
+
type RestoreSnapshotResponse = Components.Schemas.RestoreSnapshotResponse;
|
|
582
|
+
type SkippedResource = Components.Schemas.SkippedResource;
|
|
583
|
+
type Snapshot = Components.Schemas.Snapshot;
|
|
584
|
+
type SnapshotResourceDetail = Components.Schemas.SnapshotResourceDetail;
|
|
585
|
+
type SnapshotResourceList = Components.Schemas.SnapshotResourceList;
|
|
586
|
+
type SnapshotResourceSummary = Components.Schemas.SnapshotResourceSummary;
|
|
587
|
+
|
|
588
|
+
export { type Client as C, type Error as E, type OperationMethods as O, Paths as P, type ResourceRef as R, type SkippedResource as S, Components as a, type PathsDictionary as b, type CallerIdentity as c, type CreateSnapshotRequest as d, type CreateSnapshotResponse as e, type Operation as f, type RestoreSnapshotRequest as g, type RestoreSnapshotResponse as h, type Snapshot as i, type SnapshotResourceDetail as j, type SnapshotResourceList as k, type SnapshotResourceSummary as l };
|