@epilot/sdk 2.8.1 → 2.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/README.md +1 -0
  2. package/definitions/access-token-runtime.json +1 -1
  3. package/definitions/access-token.json +155 -1
  4. package/definitions/snapshot-runtime.json +1 -0
  5. package/definitions/snapshot.json +734 -0
  6. package/definitions/user-runtime.json +1 -1
  7. package/definitions/user.json +441 -0
  8. package/dist/{_index-DB2VV4PQ.cjs → _index-D5TTZP5F.cjs} +4 -1
  9. package/dist/{_index-5FB6F5YY.js → _index-UY46ZN47.js} +3 -0
  10. package/dist/access-token-GD6REL4U.js +7 -0
  11. package/dist/access-token-NQ5BLMOW.cjs +7 -0
  12. package/dist/{access-token-runtime-KCKGT4O7.js → access-token-runtime-2PSLN2U3.js} +1 -1
  13. package/dist/{access-token-runtime-NZWZJPWV.cjs → access-token-runtime-B6Z7JLUS.cjs} +2 -2
  14. package/dist/{access-token.d-CnmUTOlq.d.cts → access-token.d-CegaQmrK.d.cts} +165 -5
  15. package/dist/{access-token.d-CnmUTOlq.d.ts → access-token.d-CegaQmrK.d.ts} +165 -5
  16. package/dist/apis/access-token.cjs +8 -8
  17. package/dist/apis/access-token.d.cts +2 -2
  18. package/dist/apis/access-token.d.ts +2 -2
  19. package/dist/apis/access-token.js +2 -2
  20. package/dist/apis/address-suggestions.cjs +6 -6
  21. package/dist/apis/address-suggestions.js +1 -1
  22. package/dist/apis/address.cjs +6 -6
  23. package/dist/apis/address.js +1 -1
  24. package/dist/apis/ai-agents.cjs +6 -6
  25. package/dist/apis/ai-agents.js +1 -1
  26. package/dist/apis/app.cjs +6 -6
  27. package/dist/apis/app.js +1 -1
  28. package/dist/apis/audit-logs.cjs +6 -6
  29. package/dist/apis/audit-logs.js +1 -1
  30. package/dist/apis/automation.cjs +6 -6
  31. package/dist/apis/automation.js +1 -1
  32. package/dist/apis/billing.cjs +6 -6
  33. package/dist/apis/billing.js +1 -1
  34. package/dist/apis/blueprint-manifest.cjs +6 -6
  35. package/dist/apis/blueprint-manifest.js +1 -1
  36. package/dist/apis/calendar.cjs +6 -6
  37. package/dist/apis/calendar.js +1 -1
  38. package/dist/apis/configuration-hub.cjs +6 -6
  39. package/dist/apis/configuration-hub.js +1 -1
  40. package/dist/apis/consent.cjs +6 -6
  41. package/dist/apis/consent.js +1 -1
  42. package/dist/apis/customer-portal.cjs +6 -6
  43. package/dist/apis/customer-portal.js +1 -1
  44. package/dist/apis/dashboard.cjs +6 -6
  45. package/dist/apis/dashboard.js +1 -1
  46. package/dist/apis/data-governance.cjs +6 -6
  47. package/dist/apis/data-governance.js +1 -1
  48. package/dist/apis/deduplication.cjs +6 -6
  49. package/dist/apis/deduplication.js +1 -1
  50. package/dist/apis/design.cjs +6 -6
  51. package/dist/apis/design.js +1 -1
  52. package/dist/apis/document.cjs +6 -6
  53. package/dist/apis/document.js +1 -1
  54. package/dist/apis/email-settings.cjs +6 -6
  55. package/dist/apis/email-settings.js +1 -1
  56. package/dist/apis/email-template.cjs +6 -6
  57. package/dist/apis/email-template.js +1 -1
  58. package/dist/apis/entity-mapping.cjs +6 -6
  59. package/dist/apis/entity-mapping.js +1 -1
  60. package/dist/apis/entity.cjs +6 -6
  61. package/dist/apis/entity.js +1 -1
  62. package/dist/apis/environments.cjs +6 -6
  63. package/dist/apis/environments.js +1 -1
  64. package/dist/apis/event-catalog.cjs +6 -6
  65. package/dist/apis/event-catalog.js +1 -1
  66. package/dist/apis/file.cjs +6 -6
  67. package/dist/apis/file.js +1 -1
  68. package/dist/apis/iban.cjs +6 -6
  69. package/dist/apis/iban.js +1 -1
  70. package/dist/apis/integration-toolkit.cjs +6 -6
  71. package/dist/apis/integration-toolkit.js +1 -1
  72. package/dist/apis/journey.cjs +6 -6
  73. package/dist/apis/journey.js +1 -1
  74. package/dist/apis/kanban.cjs +6 -6
  75. package/dist/apis/kanban.js +1 -1
  76. package/dist/apis/message.cjs +6 -6
  77. package/dist/apis/message.js +1 -1
  78. package/dist/apis/metering.cjs +6 -6
  79. package/dist/apis/metering.js +1 -1
  80. package/dist/apis/notes.cjs +6 -6
  81. package/dist/apis/notes.js +1 -1
  82. package/dist/apis/notification.cjs +6 -6
  83. package/dist/apis/notification.js +1 -1
  84. package/dist/apis/organization.cjs +6 -6
  85. package/dist/apis/organization.js +1 -1
  86. package/dist/apis/partner-directory.cjs +6 -6
  87. package/dist/apis/partner-directory.js +1 -1
  88. package/dist/apis/permissions.cjs +6 -6
  89. package/dist/apis/permissions.js +1 -1
  90. package/dist/apis/pricing-tier.cjs +6 -6
  91. package/dist/apis/pricing-tier.js +1 -1
  92. package/dist/apis/pricing.cjs +6 -6
  93. package/dist/apis/pricing.js +1 -1
  94. package/dist/apis/purpose.cjs +6 -6
  95. package/dist/apis/purpose.js +1 -1
  96. package/dist/apis/query.cjs +6 -6
  97. package/dist/apis/query.js +1 -1
  98. package/dist/apis/sandbox.cjs +6 -6
  99. package/dist/apis/sandbox.js +1 -1
  100. package/dist/apis/sharing.cjs +6 -6
  101. package/dist/apis/sharing.js +1 -1
  102. package/dist/apis/snapshot.cjs +38 -0
  103. package/dist/apis/snapshot.d.cts +18 -0
  104. package/dist/apis/snapshot.d.ts +18 -0
  105. package/dist/apis/snapshot.js +38 -0
  106. package/dist/apis/submission.cjs +6 -6
  107. package/dist/apis/submission.js +1 -1
  108. package/dist/apis/target.cjs +6 -6
  109. package/dist/apis/target.js +1 -1
  110. package/dist/apis/targeting.cjs +6 -6
  111. package/dist/apis/targeting.js +1 -1
  112. package/dist/apis/template-variables.cjs +6 -6
  113. package/dist/apis/template-variables.js +1 -1
  114. package/dist/apis/user.cjs +8 -8
  115. package/dist/apis/user.d.cts +2 -2
  116. package/dist/apis/user.d.ts +2 -2
  117. package/dist/apis/user.js +2 -2
  118. package/dist/apis/validation-rules.cjs +6 -6
  119. package/dist/apis/validation-rules.js +1 -1
  120. package/dist/apis/webhooks.cjs +6 -6
  121. package/dist/apis/webhooks.js +1 -1
  122. package/dist/apis/workflow-definition.cjs +6 -6
  123. package/dist/apis/workflow-definition.js +1 -1
  124. package/dist/apis/workflow.cjs +6 -6
  125. package/dist/apis/workflow.js +1 -1
  126. package/dist/{chunk-ALMZO57K.js → chunk-76M3RIDP.js} +7 -5
  127. package/dist/chunk-BJGLY4Z2.js +14 -0
  128. package/dist/{chunk-WPBRWQPL.cjs → chunk-FBQ4WDTG.cjs} +7 -5
  129. package/dist/chunk-K2QVMO5M.cjs +14 -0
  130. package/dist/chunk-NFIYEMMM.js +14 -0
  131. package/dist/{chunk-XSE4CFSM.js → chunk-OHHHS4HH.js} +1 -1
  132. package/dist/chunk-OWXEZ56F.cjs +14 -0
  133. package/dist/{chunk-OXJOO2YF.cjs → chunk-S5HBBTKM.cjs} +1 -1
  134. package/dist/index.cjs +22 -14
  135. package/dist/index.d.cts +19 -17
  136. package/dist/index.d.ts +19 -17
  137. package/dist/index.js +13 -5
  138. package/dist/snapshot-427N6KCO.js +7 -0
  139. package/dist/snapshot-NEMUND3M.cjs +7 -0
  140. package/dist/snapshot-runtime-ALPJLXVW.js +5 -0
  141. package/dist/snapshot-runtime-NWQYU5UK.cjs +5 -0
  142. package/dist/snapshot.d-DvoJ2n-v.d.cts +591 -0
  143. package/dist/snapshot.d-DvoJ2n-v.d.ts +591 -0
  144. package/dist/user-3SLAEEVD.cjs +7 -0
  145. package/dist/user-PRUYBXQV.js +7 -0
  146. package/dist/{user-runtime-U4HYUWJU.js → user-runtime-6ICV2Y73.js} +1 -1
  147. package/dist/user-runtime-Y3227ETX.cjs +5 -0
  148. package/dist/{user.d-D18fe97W.d.cts → user.d-L-C7_K84.d.cts} +421 -1
  149. package/dist/{user.d-D18fe97W.d.ts → user.d-L-C7_K84.d.ts} +421 -1
  150. package/docs/access-token.md +111 -3
  151. package/docs/snapshot.md +501 -0
  152. package/docs/user.md +321 -8
  153. package/package.json +10 -1
  154. package/dist/access-token-6BJDZSFE.cjs +0 -7
  155. package/dist/access-token-GSQZLDXR.js +0 -7
  156. package/dist/chunk-3XKBB5AE.js +0 -14
  157. package/dist/chunk-Z5TVWG3I.cjs +0 -14
  158. package/dist/user-7ZN2XO7G.cjs +0 -7
  159. package/dist/user-ZK7BK6VY.js +0 -7
  160. package/dist/user-runtime-7O2HLFVQ.cjs +0 -5
@@ -0,0 +1,591 @@
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
+ status: "in_progress" | "completed" | "failed";
60
+ error?: string;
61
+ triggered_by: CallerIdentity;
62
+ }
63
+ export interface ResourceRef {
64
+ /**
65
+ * Resource type (e.g., custom_variable, journey, automation_flow)
66
+ */
67
+ type: string;
68
+ id: string;
69
+ }
70
+ export interface RestoreSnapshotResponse {
71
+ id: string;
72
+ status: "restoring";
73
+ }
74
+ export interface Snapshot {
75
+ id: string;
76
+ org_id: string;
77
+ name: string;
78
+ description?: string;
79
+ trigger: "manual" | "sync" | "blueprint_install";
80
+ /**
81
+ * Set iff `trigger === 'blueprint_install'`. The destination blueprint
82
+ * instance this snapshot covers.
83
+ *
84
+ */
85
+ blueprint_instance_id?: string;
86
+ /**
87
+ * Resource type → count of resources of that type in the snapshot.
88
+ */
89
+ resource_counts: {
90
+ [name: string]: number;
91
+ };
92
+ create: Operation;
93
+ restores: Operation[];
94
+ /**
95
+ * Number of `resource` filter pairs from the request that are
96
+ * contained in this snapshot. Present only on `listSnapshots`
97
+ * responses where the caller passed at least one `resource`
98
+ * filter — absent on `getSnapshot` and on unfiltered list calls.
99
+ * Drives the coverage badge in Config Hub's snapshot picker.
100
+ *
101
+ */
102
+ matched_count?: number;
103
+ }
104
+ /**
105
+ * A single captured resource with its full payload. The identity fields
106
+ * match `SnapshotResourceSummary`; the `captured` payload is the
107
+ * pre-install state at snapshot time.
108
+ *
109
+ */
110
+ export interface SnapshotResourceDetail {
111
+ lineage_id: string;
112
+ target_id: string;
113
+ type: string;
114
+ name?: string | null;
115
+ /**
116
+ * Full captured payload of the resource at snapshot time.
117
+ */
118
+ captured: {
119
+ [name: string]: any;
120
+ };
121
+ }
122
+ export interface SnapshotResourceList {
123
+ resources: /**
124
+ * Lightweight identity for a captured resource. Returned by
125
+ * `listSnapshotResources`; the full payload is fetched separately via
126
+ * `getSnapshotResource` when needed.
127
+ *
128
+ */
129
+ SnapshotResourceSummary[];
130
+ }
131
+ /**
132
+ * Lightweight identity for a captured resource. Returned by
133
+ * `listSnapshotResources`; the full payload is fetched separately via
134
+ * `getSnapshotResource` when needed.
135
+ *
136
+ */
137
+ export interface SnapshotResourceSummary {
138
+ /**
139
+ * Cross-service correlation key — matches the lineage row id in
140
+ * blueprint-manifest-api's lineage table for `blueprint_install`
141
+ * snapshots. Same as `target_id` for snapshots whose capture
142
+ * doesn't distinguish source vs destination identifiers.
143
+ *
144
+ */
145
+ lineage_id: string;
146
+ /**
147
+ * Identifier the resource was captured by (passed in via `ResourceRef.id` on createSnapshot).
148
+ */
149
+ target_id: string;
150
+ type: string;
151
+ /**
152
+ * Best-effort display name extracted from the captured payload
153
+ * (`name` / `title` / `label` / `key` in that order). Null when
154
+ * none of those fields are present.
155
+ *
156
+ */
157
+ name?: string | null;
158
+ }
159
+ }
160
+ }
161
+ declare namespace Paths {
162
+ namespace CreateSnapshot {
163
+ export type RequestBody = Components.Schemas.CreateSnapshotRequest;
164
+ namespace Responses {
165
+ export type $202 = Components.Schemas.CreateSnapshotResponse;
166
+ export type $400 = Components.Responses.BadRequest;
167
+ export type $401 = Components.Responses.Unauthorized;
168
+ }
169
+ }
170
+ namespace DeleteSnapshot {
171
+ namespace Responses {
172
+ export interface $204 {
173
+ }
174
+ export type $401 = Components.Responses.Unauthorized;
175
+ export type $404 = Components.Responses.NotFound;
176
+ }
177
+ }
178
+ namespace GetSnapshot {
179
+ namespace Responses {
180
+ export type $200 = Components.Schemas.Snapshot;
181
+ export type $401 = Components.Responses.Unauthorized;
182
+ export type $404 = Components.Responses.NotFound;
183
+ }
184
+ }
185
+ namespace GetSnapshotResource {
186
+ namespace Responses {
187
+ export type $200 = /**
188
+ * A single captured resource with its full payload. The identity fields
189
+ * match `SnapshotResourceSummary`; the `captured` payload is the
190
+ * pre-install state at snapshot time.
191
+ *
192
+ */
193
+ Components.Schemas.SnapshotResourceDetail;
194
+ export type $401 = Components.Responses.Unauthorized;
195
+ export type $404 = Components.Responses.NotFound;
196
+ }
197
+ }
198
+ namespace ListDependencies {
199
+ export interface RequestBody {
200
+ resources: Components.Schemas.ResourceRef[];
201
+ }
202
+ namespace Responses {
203
+ export interface $200 {
204
+ dependencies: Components.Schemas.ResourceRef[];
205
+ }
206
+ export type $401 = Components.Responses.Unauthorized;
207
+ export type $501 = Components.Schemas.Error;
208
+ }
209
+ }
210
+ namespace ListSnapshotResources {
211
+ namespace Responses {
212
+ export type $200 = Components.Schemas.SnapshotResourceList;
213
+ export type $401 = Components.Responses.Unauthorized;
214
+ export type $404 = Components.Responses.NotFound;
215
+ }
216
+ }
217
+ namespace ListSnapshots {
218
+ namespace Parameters {
219
+ export type Cursor = string;
220
+ export type Resource = [
221
+ string?,
222
+ string?,
223
+ string?,
224
+ string?,
225
+ string?,
226
+ string?,
227
+ string?,
228
+ string?,
229
+ string?,
230
+ string?,
231
+ string?,
232
+ string?,
233
+ string?,
234
+ string?,
235
+ string?,
236
+ string?,
237
+ string?,
238
+ string?,
239
+ string?,
240
+ string?,
241
+ string?,
242
+ string?,
243
+ string?,
244
+ string?,
245
+ string?,
246
+ string?,
247
+ string?,
248
+ string?,
249
+ string?,
250
+ string?,
251
+ string?,
252
+ string?,
253
+ string?,
254
+ string?,
255
+ string?,
256
+ string?,
257
+ string?,
258
+ string?,
259
+ string?,
260
+ string?,
261
+ string?,
262
+ string?,
263
+ string?,
264
+ string?,
265
+ string?,
266
+ string?,
267
+ string?,
268
+ string?,
269
+ string?,
270
+ string?
271
+ ];
272
+ export type Size = number;
273
+ }
274
+ export interface QueryParameters {
275
+ cursor?: Parameters.Cursor;
276
+ size?: Parameters.Size;
277
+ resource?: Parameters.Resource;
278
+ }
279
+ namespace Responses {
280
+ export interface $200 {
281
+ /**
282
+ * Number of items in this page (not the total across all pages).
283
+ */
284
+ page_size: number;
285
+ /**
286
+ * Pagination cursor; pass to the next request to get the next page.
287
+ */
288
+ cursor?: string;
289
+ results: Components.Schemas.Snapshot[];
290
+ }
291
+ export type $401 = Components.Responses.Unauthorized;
292
+ }
293
+ }
294
+ namespace RestoreSnapshot {
295
+ namespace Responses {
296
+ export type $202 = Components.Schemas.RestoreSnapshotResponse;
297
+ export type $401 = Components.Responses.Unauthorized;
298
+ export type $404 = Components.Responses.NotFound;
299
+ }
300
+ }
301
+ namespace V1Snapshots$Id {
302
+ namespace Parameters {
303
+ export type Id = string;
304
+ }
305
+ export interface PathParameters {
306
+ id: Parameters.Id;
307
+ }
308
+ }
309
+ namespace V1Snapshots$IdResources {
310
+ namespace Parameters {
311
+ export type Id = string;
312
+ }
313
+ export interface PathParameters {
314
+ id: Parameters.Id;
315
+ }
316
+ }
317
+ namespace V1Snapshots$IdResources$LineageId {
318
+ namespace Parameters {
319
+ export type Id = string;
320
+ export type LineageId = string;
321
+ }
322
+ export interface PathParameters {
323
+ id: Parameters.Id;
324
+ lineage_id: Parameters.LineageId;
325
+ }
326
+ }
327
+ namespace V1Snapshots$IdRestore {
328
+ namespace Parameters {
329
+ export type Id = string;
330
+ }
331
+ export interface PathParameters {
332
+ id: Parameters.Id;
333
+ }
334
+ }
335
+ }
336
+
337
+
338
+ interface OperationMethods {
339
+ /**
340
+ * listSnapshots - listSnapshots
341
+ *
342
+ * List snapshots for the caller's organization, newest first.
343
+ *
344
+ * Pass `resource=<type>:<id>` one or more times to filter to snapshots
345
+ * containing **any** of the listed resources (OR semantics). Each returned
346
+ * snapshot includes a `matched_count` indicating how many of the filter
347
+ * pairs are present in it. Hard cap of 50 filter pairs per request. When
348
+ * filtered, pagination is not applied — the result set is bounded.
349
+ *
350
+ */
351
+ 'listSnapshots'(
352
+ parameters?: Parameters<Paths.ListSnapshots.QueryParameters> | null,
353
+ data?: any,
354
+ config?: AxiosRequestConfig
355
+ ): OperationResponse<Paths.ListSnapshots.Responses.$200>
356
+ /**
357
+ * createSnapshot - createSnapshot
358
+ *
359
+ * Create a new snapshot of the given resources. Async — returns immediately
360
+ * with a snapshot ID; client polls `getSnapshot` until `create.status`
361
+ * moves from `in_progress` to `completed` or `failed`.
362
+ *
363
+ */
364
+ 'createSnapshot'(
365
+ parameters?: Parameters<UnknownParamsObject> | null,
366
+ data?: Paths.CreateSnapshot.RequestBody,
367
+ config?: AxiosRequestConfig
368
+ ): OperationResponse<Paths.CreateSnapshot.Responses.$202>
369
+ /**
370
+ * getSnapshot - getSnapshot
371
+ *
372
+ * Fetch a snapshot's metadata. Poll this endpoint to track create/restore progress.
373
+ */
374
+ 'getSnapshot'(
375
+ parameters?: Parameters<Paths.V1Snapshots$Id.PathParameters> | null,
376
+ data?: any,
377
+ config?: AxiosRequestConfig
378
+ ): OperationResponse<Paths.GetSnapshot.Responses.$200>
379
+ /**
380
+ * deleteSnapshot - deleteSnapshot
381
+ *
382
+ * Delete a snapshot's metadata and S3 manifest.
383
+ */
384
+ 'deleteSnapshot'(
385
+ parameters?: Parameters<Paths.V1Snapshots$Id.PathParameters> | null,
386
+ data?: any,
387
+ config?: AxiosRequestConfig
388
+ ): OperationResponse<Paths.DeleteSnapshot.Responses.$204>
389
+ /**
390
+ * restoreSnapshot - restoreSnapshot
391
+ *
392
+ * Restore a snapshot to the org. Async — returns immediately; client polls
393
+ * `getSnapshot` until the latest entry in `restores` moves from
394
+ * `in_progress` to `completed` or `failed`.
395
+ *
396
+ * v1: full restore only. Cherry-pick (`resources?` body filter) is an open
397
+ * question — see RFC OQ #1.
398
+ *
399
+ */
400
+ 'restoreSnapshot'(
401
+ parameters?: Parameters<Paths.V1Snapshots$IdRestore.PathParameters> | null,
402
+ data?: any,
403
+ config?: AxiosRequestConfig
404
+ ): OperationResponse<Paths.RestoreSnapshot.Responses.$202>
405
+ /**
406
+ * listSnapshotResources - listSnapshotResources
407
+ *
408
+ * List the resources captured in this snapshot. Returns lightweight
409
+ * identity fields per resource — payloads are fetched via the
410
+ * single-resource endpoint when needed.
411
+ *
412
+ * Used by Config Hub UI to render snapshot contents, and by
413
+ * blueprint-manifest-api to partition lineage rows during a restore
414
+ * sweep (resources in this list are touched; others are net-new).
415
+ *
416
+ */
417
+ 'listSnapshotResources'(
418
+ parameters?: Parameters<Paths.V1Snapshots$IdResources.PathParameters> | null,
419
+ data?: any,
420
+ config?: AxiosRequestConfig
421
+ ): OperationResponse<Paths.ListSnapshotResources.Responses.$200>
422
+ /**
423
+ * getSnapshotResource - getSnapshotResource
424
+ *
425
+ * Fetch one captured resource with its full payload. For UI views
426
+ * that diff the captured state against the current destination.
427
+ *
428
+ */
429
+ 'getSnapshotResource'(
430
+ parameters?: Parameters<Paths.V1Snapshots$IdResources$LineageId.PathParameters> | null,
431
+ data?: any,
432
+ config?: AxiosRequestConfig
433
+ ): OperationResponse<Paths.GetSnapshotResource.Responses.$200>
434
+ /**
435
+ * listDependencies - listDependencies
436
+ *
437
+ * Walk the dependency tree for a set of resources and return the full
438
+ * transitive closure, topologically sorted.
439
+ *
440
+ * **Not implemented in v1.** Returns 501. Callers should pass an explicit
441
+ * resource list to `createSnapshot`. See RFC Phase 5.
442
+ *
443
+ */
444
+ 'listDependencies'(
445
+ parameters?: Parameters<UnknownParamsObject> | null,
446
+ data?: Paths.ListDependencies.RequestBody,
447
+ config?: AxiosRequestConfig
448
+ ): OperationResponse<Paths.ListDependencies.Responses.$200>
449
+ }
450
+
451
+ interface PathsDictionary {
452
+ ['/v1/snapshots']: {
453
+ /**
454
+ * createSnapshot - createSnapshot
455
+ *
456
+ * Create a new snapshot of the given resources. Async — returns immediately
457
+ * with a snapshot ID; client polls `getSnapshot` until `create.status`
458
+ * moves from `in_progress` to `completed` or `failed`.
459
+ *
460
+ */
461
+ 'post'(
462
+ parameters?: Parameters<UnknownParamsObject> | null,
463
+ data?: Paths.CreateSnapshot.RequestBody,
464
+ config?: AxiosRequestConfig
465
+ ): OperationResponse<Paths.CreateSnapshot.Responses.$202>
466
+ /**
467
+ * listSnapshots - listSnapshots
468
+ *
469
+ * List snapshots for the caller's organization, newest first.
470
+ *
471
+ * Pass `resource=<type>:<id>` one or more times to filter to snapshots
472
+ * containing **any** of the listed resources (OR semantics). Each returned
473
+ * snapshot includes a `matched_count` indicating how many of the filter
474
+ * pairs are present in it. Hard cap of 50 filter pairs per request. When
475
+ * filtered, pagination is not applied — the result set is bounded.
476
+ *
477
+ */
478
+ 'get'(
479
+ parameters?: Parameters<Paths.ListSnapshots.QueryParameters> | null,
480
+ data?: any,
481
+ config?: AxiosRequestConfig
482
+ ): OperationResponse<Paths.ListSnapshots.Responses.$200>
483
+ }
484
+ ['/v1/snapshots/{id}']: {
485
+ /**
486
+ * getSnapshot - getSnapshot
487
+ *
488
+ * Fetch a snapshot's metadata. Poll this endpoint to track create/restore progress.
489
+ */
490
+ 'get'(
491
+ parameters?: Parameters<Paths.V1Snapshots$Id.PathParameters> | null,
492
+ data?: any,
493
+ config?: AxiosRequestConfig
494
+ ): OperationResponse<Paths.GetSnapshot.Responses.$200>
495
+ /**
496
+ * deleteSnapshot - deleteSnapshot
497
+ *
498
+ * Delete a snapshot's metadata and S3 manifest.
499
+ */
500
+ 'delete'(
501
+ parameters?: Parameters<Paths.V1Snapshots$Id.PathParameters> | null,
502
+ data?: any,
503
+ config?: AxiosRequestConfig
504
+ ): OperationResponse<Paths.DeleteSnapshot.Responses.$204>
505
+ }
506
+ ['/v1/snapshots/{id}:restore']: {
507
+ /**
508
+ * restoreSnapshot - restoreSnapshot
509
+ *
510
+ * Restore a snapshot to the org. Async — returns immediately; client polls
511
+ * `getSnapshot` until the latest entry in `restores` moves from
512
+ * `in_progress` to `completed` or `failed`.
513
+ *
514
+ * v1: full restore only. Cherry-pick (`resources?` body filter) is an open
515
+ * question — see RFC OQ #1.
516
+ *
517
+ */
518
+ 'post'(
519
+ parameters?: Parameters<Paths.V1Snapshots$IdRestore.PathParameters> | null,
520
+ data?: any,
521
+ config?: AxiosRequestConfig
522
+ ): OperationResponse<Paths.RestoreSnapshot.Responses.$202>
523
+ }
524
+ ['/v1/snapshots/{id}/resources']: {
525
+ /**
526
+ * listSnapshotResources - listSnapshotResources
527
+ *
528
+ * List the resources captured in this snapshot. Returns lightweight
529
+ * identity fields per resource — payloads are fetched via the
530
+ * single-resource endpoint when needed.
531
+ *
532
+ * Used by Config Hub UI to render snapshot contents, and by
533
+ * blueprint-manifest-api to partition lineage rows during a restore
534
+ * sweep (resources in this list are touched; others are net-new).
535
+ *
536
+ */
537
+ 'get'(
538
+ parameters?: Parameters<Paths.V1Snapshots$IdResources.PathParameters> | null,
539
+ data?: any,
540
+ config?: AxiosRequestConfig
541
+ ): OperationResponse<Paths.ListSnapshotResources.Responses.$200>
542
+ }
543
+ ['/v1/snapshots/{id}/resources/{lineage_id}']: {
544
+ /**
545
+ * getSnapshotResource - getSnapshotResource
546
+ *
547
+ * Fetch one captured resource with its full payload. For UI views
548
+ * that diff the captured state against the current destination.
549
+ *
550
+ */
551
+ 'get'(
552
+ parameters?: Parameters<Paths.V1Snapshots$IdResources$LineageId.PathParameters> | null,
553
+ data?: any,
554
+ config?: AxiosRequestConfig
555
+ ): OperationResponse<Paths.GetSnapshotResource.Responses.$200>
556
+ }
557
+ ['/v1/snapshots:list-dependencies']: {
558
+ /**
559
+ * listDependencies - listDependencies
560
+ *
561
+ * Walk the dependency tree for a set of resources and return the full
562
+ * transitive closure, topologically sorted.
563
+ *
564
+ * **Not implemented in v1.** Returns 501. Callers should pass an explicit
565
+ * resource list to `createSnapshot`. See RFC Phase 5.
566
+ *
567
+ */
568
+ 'post'(
569
+ parameters?: Parameters<UnknownParamsObject> | null,
570
+ data?: Paths.ListDependencies.RequestBody,
571
+ config?: AxiosRequestConfig
572
+ ): OperationResponse<Paths.ListDependencies.Responses.$200>
573
+ }
574
+ }
575
+
576
+ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
577
+
578
+
579
+ type CallerIdentity = Components.Schemas.CallerIdentity;
580
+ type CreateSnapshotRequest = Components.Schemas.CreateSnapshotRequest;
581
+ type CreateSnapshotResponse = Components.Schemas.CreateSnapshotResponse;
582
+ type Error = Components.Schemas.Error;
583
+ type Operation = Components.Schemas.Operation;
584
+ type ResourceRef = Components.Schemas.ResourceRef;
585
+ type RestoreSnapshotResponse = Components.Schemas.RestoreSnapshotResponse;
586
+ type Snapshot = Components.Schemas.Snapshot;
587
+ type SnapshotResourceDetail = Components.Schemas.SnapshotResourceDetail;
588
+ type SnapshotResourceList = Components.Schemas.SnapshotResourceList;
589
+ type SnapshotResourceSummary = Components.Schemas.SnapshotResourceSummary;
590
+
591
+ export { type Client as C, type Error as E, type OperationMethods as O, Paths as P, type ResourceRef as R, type Snapshot 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 RestoreSnapshotResponse as g, type SnapshotResourceDetail as h, type SnapshotResourceList as i, type SnapshotResourceSummary as j };