@zephytiju/juntai-typescript-sdk 3.5.0 → 3.7.0
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/CHANGELOG.md +12 -0
- package/README.md +20 -3
- package/dist/generated/lattice.ontology/index.d.ts +2 -2
- package/dist/generated/lattice.ontology/index.js +1 -1
- package/dist/generated/lattice.ontology/sdk.gen.d.ts +17 -1
- package/dist/generated/lattice.ontology/sdk.gen.js +32 -0
- package/dist/generated/lattice.ontology/types.gen.d.ts +598 -0
- package/dist/generated/prism.build/types.gen.d.ts +3 -3
- package/dist/generated/prism.composition/index.d.ts +1 -1
- package/dist/generated/prism.composition/sdk.gen.d.ts +2 -0
- package/dist/generated/prism.composition/sdk.gen.js +2 -0
- package/dist/generated/prism.composition/types.gen.d.ts +726 -2
- package/dist/release-manifest.json +20 -20
- package/package.json +1 -1
- package/sources/openapi.lock.json +24 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.7.0
|
|
4
|
+
|
|
5
|
+
- Add the generated Composition Draft authoring projection, typed declarations and original Schema definitions, candidate/instance selectors, optional ETag guard, and durable split allocation. Pin published Composition Service 1.2.0 at source `c7133c391278d852b3e7e80f617223a4e1b31e46`, OpenAPI SHA-256 `d2f1dcff7d533d5995b4547062d2ad38f9cfe703f99f14a594a2994bf47a01ab`.
|
|
6
|
+
- Verify exact candidate discovery, typed inspector declarations, null default absence, boolean Schema definitions, saved allocation, and explicit denial/oversize errors through the installed aggregate consumer fixture.
|
|
7
|
+
- Extend generated Build compiler selection to exact 1.2.0 while preserving the historical 1.1.0 request and receipt types; verify both through the installed aggregate package. Pin published Build Service 1.2.0 at source `0c4dd23fbb7c830ac60a5c9810fa5ec07f501a96`, OpenAPI SHA-256 `b1ade0ca183abe5de71ebb9f80d7fc43b858cff9d9033745da308dc1e2c52523`.
|
|
8
|
+
|
|
9
|
+
## 3.6.0
|
|
10
|
+
|
|
11
|
+
- Refresh LatticeModelConfigurationService to immutable 0.4.0, source `f54b7271115de8a830b6ece69dc0e2845010c634`, OpenAPI SHA-256 `8482bbc4b4ca2f414d446fd5f57b8a6025a5d14c2781644bfcbda438dbfffa6a`.
|
|
12
|
+
- Add generated bundle/definition revision browsing and exact read-only Blueprint source/definition views; preserve existing operations and schemas.
|
|
13
|
+
- Verify source selection before any plan or authoring command, pinned pagination, stale/missing/denied reads, cancellation, and browser isolation from a clean installed tarball.
|
|
14
|
+
|
|
3
15
|
## 3.5.0
|
|
4
16
|
|
|
5
17
|
- Add LatticeModelConfigurationService 0.3.0 as `lattice.ontology` / `latticeOntology`, pinned to source `803bde6e973829a5f8adfca58021d87dfb09e324` and OpenAPI SHA-256 `4d3a6168f4347faa91b572b4323c43d05b3df9fc94c08446fe5400fd97333335`.
|
package/README.md
CHANGED
|
@@ -25,7 +25,9 @@ All imports resolve from this one aggregate dependency; there are no service-spe
|
|
|
25
25
|
|
|
26
26
|
Axiom Definition exposes generated pipeline creation and discovery, revision history, validation, readiness, release, and release-search contracts. Axiom Operations exposes generated execution and production-activity discovery, import validation and submission, checkpoint inspection, source-gap search, redrive, and waiver contracts. Both clients preserve the owning services' required tenant, request, authorization, idempotency, cursor, and stable-error types without handwritten Axiom DTOs.
|
|
27
27
|
|
|
28
|
-
Prism Composition exposes Operating System and UI-page authoring, exact revisions, layout-variant application, and Ready for release. Prism Build exposes build creation, lookup, pagination, and deliberate retry for exact Ready-for-release revisions with `prism-builder@1.1.0
|
|
28
|
+
Prism Composition exposes Operating System and UI-page authoring, exact revisions, layout-variant application, and Ready for release. Prism Build exposes build creation, lookup, pagination, and deliberate retry for exact Ready-for-release revisions with `prism-builder@1.2.0`; historical `prism-builder@1.1.0` requests and receipts remain supported. Inject `context.fetch` and the reviewed same-origin gateway base URL for each service. Draft mutations preserve `If-Match`; commands preserve `Idempotency-Key`. After an ambiguous response, recover by the existing operation identity instead of automatically replaying the command. A successful build confirms publication and association; application sealing and deployment remain with Application Metadata and Vangu.
|
|
29
|
+
|
|
30
|
+
Version 3.7.0 pins Composition and Build Service 1.2.0. `getUiPageDraft` accepts `includeAuthoring: true` with `blueprintAssetId`, `blueprintVersionId`, and `targetSlotId` for an unplaced candidate, or `instanceId` for one saved instance; omitting selectors projects the current instances. Candidate discovery requires no prior binding fingerprint. The generated projection includes typed declarations, original Schema definitions (including boolean schemas), preset digests and explicit default absence. Save optional `LayoutNodeInput.splitAllocation` with version `1` and positive child-ID shares totaling `1000000`; exact template validation and persistence belong to Composition. Allocated snapshots require Builder 1.2.0. Authorization, stale ETag, incompatible metadata and oversize errors remain visible to callers.
|
|
29
31
|
|
|
30
32
|
IAM consumers inject the session-aware fetch supplied by `ConsolePageContext`; the client neither owns credentials nor calls a protected origin directly:
|
|
31
33
|
|
|
@@ -43,7 +45,7 @@ const account = createAccountClient({
|
|
|
43
45
|
|
|
44
46
|
## Lattice consumers
|
|
45
47
|
|
|
46
|
-
|
|
48
|
+
The package exposes `latticeOntology` and `latticeRuntimeGeneration` root namespaces, also available under `clients["lattice.ontology"]` and `clients["lattice.runtime-generation"]`. Their full service subpaths expose generated operations, types, and isolated factories from LatticeModelConfigurationService 0.4.0 and LatticeRuntimeGenerationService 0.1.0. `sources/openapi.lock.json` records each exact source revision, OpenAPI SHA-256, and output digest.
|
|
47
49
|
|
|
48
50
|
```ts
|
|
49
51
|
import { latticeOntology, latticeRuntimeGeneration } from "@zephytiju/juntai-typescript-sdk";
|
|
@@ -51,6 +53,19 @@ import { latticeOntology, latticeRuntimeGeneration } from "@zephytiju/juntai-typ
|
|
|
51
53
|
// Use the same-origin gateway paths reviewed for the host Console deployment.
|
|
52
54
|
const ontology = latticeOntology.createClient({ baseUrl: ontologyGatewayPath, fetch: context.fetch });
|
|
53
55
|
const generation = latticeRuntimeGeneration.createClient({ baseUrl: generationGatewayPath, fetch: context.fetch });
|
|
56
|
+
// Source selection is read-only and does not create an import plan.
|
|
57
|
+
const source = await latticeOntology.readBlueprintSource({
|
|
58
|
+
client: ontology,
|
|
59
|
+
path: { asset_id: assetId, version_id: exactVersionId },
|
|
60
|
+
query: { limit: 50 },
|
|
61
|
+
});
|
|
62
|
+
if (source.data) {
|
|
63
|
+
const selected = await latticeOntology.readBlueprintDefinition({
|
|
64
|
+
client: ontology,
|
|
65
|
+
path: { asset_id: assetId, version_id: exactVersionId, definition_id: definitionId },
|
|
66
|
+
query: { expected_digest: source.data.source_digest },
|
|
67
|
+
});
|
|
68
|
+
}
|
|
54
69
|
const preview = await latticeOntology.previewDefinitions({
|
|
55
70
|
client: ontology,
|
|
56
71
|
body: { bundle_id: bundleId, bundle_revision: revision, definition_ids: selectedDefinitionIds },
|
|
@@ -62,9 +77,11 @@ const operation = await latticeRuntimeGeneration.getGenerationOperation({
|
|
|
62
77
|
});
|
|
63
78
|
```
|
|
64
79
|
|
|
80
|
+
Version 3.6.0 adds `listBundleVersions`, `listDefinitionVersions`, `readBlueprintSource`, and `readBlueprintDefinition`. Revision pages retain the first page’s `through_revision` on continuation; exact source pages retain `source_digest` as `expected_digest`. Source browsing returns bounded summaries; full definition reads preserve code authorization. Stale, missing, and denied reads remain typed errors. Blueprint discovery and exact resolution use the existing `platform.blueprint` contract.
|
|
81
|
+
|
|
65
82
|
Pass each factory instance through the operation's `client` option. Relative gateway paths work in the browser; server adapters use an absolute URL. Console owns session-aware fetch and rejects protected cross-origin calls. The SDK supplies neither session credentials nor gateway registration. Operations use the exact released flat names and snake_case request properties. Authoring commands preserve body `expected_bundle_revision` and `idempotency_key`; generation requires application scope and preserves exact reference versions, including Object version `"1"`. Cancellation forwards `If-Match` when supplied, and evidence reads require `expected_digest`. Inspect returned `data`, `error`, `response`, and ETag; an accepted generation remains queued until authoritative lookup reports a terminal status. After an ambiguous command, recover using its existing identity instead of automatically replaying it.
|
|
66
83
|
|
|
67
|
-
`npm run check:consumer` installs a packed release into a clean directory, checks ESM exports and TypeScript declarations, bundles it for the browser without Node shims or runtime dependencies, and runs Chromium against explicit same-origin HTTP adapter fixtures. It exercises authoring, preview/release, generation lookup/cancellation/evidence, pagination, session/correlation forwarding, denial, stale revision, expiry, cancellation, isolation, and lost-response recovery. These are SDK contract fixtures; service deployment and end-to-end LatticeConsole acceptance remain with their owning tasks. Run `npx --no-install playwright install --with-deps chromium` before local verification. `--tarball <path>` tests an already downloaded release; publication CI runs this against the integrity-verified public npm tarball.
|
|
84
|
+
`npm run check:consumer` installs a packed release into a clean directory, checks ESM exports and TypeScript declarations, bundles it for the browser without Node shims or runtime dependencies, and runs Chromium against explicit same-origin HTTP adapter fixtures. It exercises read-only source selection, digest-pinned pagination, exact definitions, authoring, preview/release, generation lookup/cancellation/evidence, pagination, session/correlation forwarding, denial, stale revision, expiry, cancellation, isolation, and lost-response recovery. These are SDK contract fixtures; service deployment and end-to-end LatticeConsole acceptance remain with their owning tasks. Run `npx --no-install playwright install --with-deps chromium` before local verification. `--tarball <path>` tests an already downloaded release; publication CI runs this against the integrity-verified public npm tarball.
|
|
68
85
|
|
|
69
86
|
The withdrawn unscoped `juntai-typescript-sdk@1.1.0` publication is historical
|
|
70
87
|
metadata only. Do not install it or treat it as target release evidence.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { applyBlueprintImportPlan, archiveDefinition, associateSnapshot, cancelBlueprintImportPlan, compareBundleRevisions, createBlueprintImportPlan, createBundle, getBlueprintImportPlan, getBundle, getDefinition, getSnapshot, listBundles, listDefinitions, moveDefinition, type Options, patchBundle, patchDefinition, previewDefinitions, publishPreviewSnapshot, publishRelease, registerBlueprintVersion, validateBundle, writeDefinition } from './sdk.gen.js';
|
|
2
|
-
export type { ActionDefinition, ActionMapping, ApplyBlueprintImportPlanData, ApplyBlueprintImportPlanError, ApplyBlueprintImportPlanErrors, ApplyBlueprintImportPlanResponse, ApplyBlueprintImportPlanResponses, ApplyPlanRequest, ArchiveDefinitionData, ArchiveDefinitionError, ArchiveDefinitionErrors, ArchiveDefinitionResponse, ArchiveDefinitionResponses, AssociateSnapshotData, AssociateSnapshotError, AssociateSnapshotErrors, AssociateSnapshotRequest, AssociateSnapshotResponse, AssociateSnapshotResponses, AutomationDefinition, AutomationTarget, BlueprintSource, BundleCreate, BundlePatch, BundleView, CancelBlueprintImportPlanData, CancelBlueprintImportPlanError, CancelBlueprintImportPlanErrors, CancelBlueprintImportPlanResponse, CancelBlueprintImportPlanResponses, CancelPlanRequest, Category, ClientOptions, CompareBundleRevisionsData, CompareBundleRevisionsError, CompareBundleRevisionsErrors, CompareBundleRevisionsResponse, CompareBundleRevisionsResponses, CompatibilityReport, CompatibilityRequest, CompilationResult, CreateBlueprintImportPlanData, CreateBlueprintImportPlanError, CreateBlueprintImportPlanErrors, CreateBlueprintImportPlanResponse, CreateBlueprintImportPlanResponses, CreateBundleData, CreateBundleError, CreateBundleErrors, CreateBundleResponse, CreateBundleResponses, DefinitionArchive, DefinitionMove, DefinitionPatch, DefinitionRef, DefinitionWrite, DependencyLock, Document, EventDefinition, ExecutionPolicy, Finding, GetBlueprintImportPlanData, GetBlueprintImportPlanError, GetBlueprintImportPlanErrors, GetBlueprintImportPlanResponse, GetBlueprintImportPlanResponses, GetBundleData, GetBundleError, GetBundleErrors, GetBundleResponse, GetBundleResponses, GetDefinitionData, GetDefinitionError, GetDefinitionErrors, GetDefinitionResponse, GetDefinitionResponses, GetSnapshotData, GetSnapshotError, GetSnapshotErrors, GetSnapshotResponse, GetSnapshotResponses, HttpErrorDetails, HttpErrorEnvelope, HttpValidationError, HttpValidationIssue, ImportPlanRequest, InterfaceBinding, InterfaceDefinition, InterfaceSlots, JsonValue, LibraryPin, ListBundlesData, ListBundlesError, ListBundlesErrors, ListBundlesResponse, ListBundlesResponses, ListDefinitionsData, ListDefinitionsError, ListDefinitionsErrors, ListDefinitionsResponse, ListDefinitionsResponses, MethodSlot, ModelDefinition, MoveDefinitionData, MoveDefinitionError, MoveDefinitionErrors, MoveDefinitionResponse, MoveDefinitionResponses, OntologyBundle, PatchBundleData, PatchBundleError, PatchBundleErrors, PatchBundleResponse, PatchBundleResponses, PatchDefinitionData, PatchDefinitionError, PatchDefinitionErrors, PatchDefinitionResponse, PatchDefinitionResponses, PreviewDefinitionsData, PreviewDefinitionsError, PreviewDefinitionsErrors, PreviewDefinitionsResponse, PreviewDefinitionsResponses, PreviewRequest, PropertyDefinition, PublishPreviewSnapshotData, PublishPreviewSnapshotError, PublishPreviewSnapshotErrors, PublishPreviewSnapshotResponse, PublishPreviewSnapshotResponses, PublishReleaseData, PublishReleaseError, PublishReleaseErrors, PublishReleaseResponse, PublishReleaseResponses, QueryDefinition, RegisterBlueprintRequest, RegisterBlueprintVersionData, RegisterBlueprintVersionError, RegisterBlueprintVersionErrors, RegisterBlueprintVersionResponse, RegisterBlueprintVersionResponses, RelationDefinition, RelationSlot, SnapshotRequest, Trigger, TypeSpec, ValidateBundleData, ValidateBundleError, ValidateBundleErrors, ValidateBundleResponse, ValidateBundleResponses, ValidateRequest, ValidationError, WriteDefinitionData, WriteDefinitionError, WriteDefinitionErrors, WriteDefinitionResponse, WriteDefinitionResponses } from './types.gen.js';
|
|
1
|
+
export { applyBlueprintImportPlan, archiveDefinition, associateSnapshot, cancelBlueprintImportPlan, compareBundleRevisions, createBlueprintImportPlan, createBundle, getBlueprintImportPlan, getBundle, getDefinition, getSnapshot, listBundles, listBundleVersions, listDefinitions, listDefinitionVersions, moveDefinition, type Options, patchBundle, patchDefinition, previewDefinitions, publishPreviewSnapshot, publishRelease, readBlueprintDefinition, readBlueprintSource, registerBlueprintVersion, validateBundle, writeDefinition } from './sdk.gen.js';
|
|
2
|
+
export type { ActionDefinition, ActionMapping, ApplyBlueprintImportPlanData, ApplyBlueprintImportPlanError, ApplyBlueprintImportPlanErrors, ApplyBlueprintImportPlanResponse, ApplyBlueprintImportPlanResponses, ApplyPlanRequest, ArchiveDefinitionData, ArchiveDefinitionError, ArchiveDefinitionErrors, ArchiveDefinitionResponse, ArchiveDefinitionResponses, AssociateSnapshotData, AssociateSnapshotError, AssociateSnapshotErrors, AssociateSnapshotRequest, AssociateSnapshotResponse, AssociateSnapshotResponses, AutomationDefinition, AutomationTarget, BlueprintDefinitionView, BlueprintSource, BlueprintSourceView, BundleCreate, BundlePatch, BundleRevisionPage, BundleView, CancelBlueprintImportPlanData, CancelBlueprintImportPlanError, CancelBlueprintImportPlanErrors, CancelBlueprintImportPlanResponse, CancelBlueprintImportPlanResponses, CancelPlanRequest, Category, ClientOptions, CompareBundleRevisionsData, CompareBundleRevisionsError, CompareBundleRevisionsErrors, CompareBundleRevisionsResponse, CompareBundleRevisionsResponses, CompatibilityReport, CompatibilityRequest, CompilationResult, CreateBlueprintImportPlanData, CreateBlueprintImportPlanError, CreateBlueprintImportPlanErrors, CreateBlueprintImportPlanResponse, CreateBlueprintImportPlanResponses, CreateBundleData, CreateBundleError, CreateBundleErrors, CreateBundleResponse, CreateBundleResponses, DefinitionArchive, DefinitionMove, DefinitionPatch, DefinitionRef, DefinitionRevisionPage, DefinitionSummary, DefinitionWrite, DependencyLock, Document, EventDefinition, ExecutionPolicy, Finding, GetBlueprintImportPlanData, GetBlueprintImportPlanError, GetBlueprintImportPlanErrors, GetBlueprintImportPlanResponse, GetBlueprintImportPlanResponses, GetBundleData, GetBundleError, GetBundleErrors, GetBundleResponse, GetBundleResponses, GetDefinitionData, GetDefinitionError, GetDefinitionErrors, GetDefinitionResponse, GetDefinitionResponses, GetSnapshotData, GetSnapshotError, GetSnapshotErrors, GetSnapshotResponse, GetSnapshotResponses, HttpErrorDetails, HttpErrorEnvelope, HttpValidationError, HttpValidationIssue, ImportPlanRequest, InterfaceBinding, InterfaceDefinition, InterfaceSlots, JsonValue, LibraryPin, ListBundlesData, ListBundlesError, ListBundlesErrors, ListBundlesResponse, ListBundlesResponses, ListBundleVersionsData, ListBundleVersionsError, ListBundleVersionsErrors, ListBundleVersionsResponse, ListBundleVersionsResponses, ListDefinitionsData, ListDefinitionsError, ListDefinitionsErrors, ListDefinitionsResponse, ListDefinitionsResponses, ListDefinitionVersionsData, ListDefinitionVersionsError, ListDefinitionVersionsErrors, ListDefinitionVersionsResponse, ListDefinitionVersionsResponses, MethodSlot, ModelDefinition, MoveDefinitionData, MoveDefinitionError, MoveDefinitionErrors, MoveDefinitionResponse, MoveDefinitionResponses, OntologyBundle, PatchBundleData, PatchBundleError, PatchBundleErrors, PatchBundleResponse, PatchBundleResponses, PatchDefinitionData, PatchDefinitionError, PatchDefinitionErrors, PatchDefinitionResponse, PatchDefinitionResponses, PreviewDefinitionsData, PreviewDefinitionsError, PreviewDefinitionsErrors, PreviewDefinitionsResponse, PreviewDefinitionsResponses, PreviewRequest, PropertyDefinition, PublishPreviewSnapshotData, PublishPreviewSnapshotError, PublishPreviewSnapshotErrors, PublishPreviewSnapshotResponse, PublishPreviewSnapshotResponses, PublishReleaseData, PublishReleaseError, PublishReleaseErrors, PublishReleaseResponse, PublishReleaseResponses, QueryDefinition, ReadBlueprintDefinitionData, ReadBlueprintDefinitionError, ReadBlueprintDefinitionErrors, ReadBlueprintDefinitionResponse, ReadBlueprintDefinitionResponses, ReadBlueprintSourceData, ReadBlueprintSourceError, ReadBlueprintSourceErrors, ReadBlueprintSourceResponse, ReadBlueprintSourceResponses, RegisterBlueprintRequest, RegisterBlueprintVersionData, RegisterBlueprintVersionError, RegisterBlueprintVersionErrors, RegisterBlueprintVersionResponse, RegisterBlueprintVersionResponses, RelationDefinition, RelationSlot, SnapshotRequest, Trigger, TypeSpec, ValidateBundleData, ValidateBundleError, ValidateBundleErrors, ValidateBundleResponse, ValidateBundleResponses, ValidateRequest, ValidationError, WriteDefinitionData, WriteDefinitionError, WriteDefinitionErrors, WriteDefinitionResponse, WriteDefinitionResponses } from './types.gen.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export { applyBlueprintImportPlan, archiveDefinition, associateSnapshot, cancelBlueprintImportPlan, compareBundleRevisions, createBlueprintImportPlan, createBundle, getBlueprintImportPlan, getBundle, getDefinition, getSnapshot, listBundles, listDefinitions, moveDefinition, patchBundle, patchDefinition, previewDefinitions, publishPreviewSnapshot, publishRelease, registerBlueprintVersion, validateBundle, writeDefinition } from './sdk.gen.js';
|
|
2
|
+
export { applyBlueprintImportPlan, archiveDefinition, associateSnapshot, cancelBlueprintImportPlan, compareBundleRevisions, createBlueprintImportPlan, createBundle, getBlueprintImportPlan, getBundle, getDefinition, getSnapshot, listBundles, listBundleVersions, listDefinitions, listDefinitionVersions, moveDefinition, patchBundle, patchDefinition, previewDefinitions, publishPreviewSnapshot, publishRelease, readBlueprintDefinition, readBlueprintSource, registerBlueprintVersion, validateBundle, writeDefinition } from './sdk.gen.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
|
|
2
|
-
import type { ApplyBlueprintImportPlanData, ApplyBlueprintImportPlanErrors, ApplyBlueprintImportPlanResponses, ArchiveDefinitionData, ArchiveDefinitionErrors, ArchiveDefinitionResponses, AssociateSnapshotData, AssociateSnapshotErrors, AssociateSnapshotResponses, CancelBlueprintImportPlanData, CancelBlueprintImportPlanErrors, CancelBlueprintImportPlanResponses, CompareBundleRevisionsData, CompareBundleRevisionsErrors, CompareBundleRevisionsResponses, CreateBlueprintImportPlanData, CreateBlueprintImportPlanErrors, CreateBlueprintImportPlanResponses, CreateBundleData, CreateBundleErrors, CreateBundleResponses, GetBlueprintImportPlanData, GetBlueprintImportPlanErrors, GetBlueprintImportPlanResponses, GetBundleData, GetBundleErrors, GetBundleResponses, GetDefinitionData, GetDefinitionErrors, GetDefinitionResponses, GetSnapshotData, GetSnapshotErrors, GetSnapshotResponses, ListBundlesData, ListBundlesErrors, ListBundlesResponses, ListDefinitionsData, ListDefinitionsErrors, ListDefinitionsResponses, MoveDefinitionData, MoveDefinitionErrors, MoveDefinitionResponses, PatchBundleData, PatchBundleErrors, PatchBundleResponses, PatchDefinitionData, PatchDefinitionErrors, PatchDefinitionResponses, PreviewDefinitionsData, PreviewDefinitionsErrors, PreviewDefinitionsResponses, PublishPreviewSnapshotData, PublishPreviewSnapshotErrors, PublishPreviewSnapshotResponses, PublishReleaseData, PublishReleaseErrors, PublishReleaseResponses, RegisterBlueprintVersionData, RegisterBlueprintVersionErrors, RegisterBlueprintVersionResponses, ValidateBundleData, ValidateBundleErrors, ValidateBundleResponses, WriteDefinitionData, WriteDefinitionErrors, WriteDefinitionResponses } from './types.gen.js';
|
|
2
|
+
import type { ApplyBlueprintImportPlanData, ApplyBlueprintImportPlanErrors, ApplyBlueprintImportPlanResponses, ArchiveDefinitionData, ArchiveDefinitionErrors, ArchiveDefinitionResponses, AssociateSnapshotData, AssociateSnapshotErrors, AssociateSnapshotResponses, CancelBlueprintImportPlanData, CancelBlueprintImportPlanErrors, CancelBlueprintImportPlanResponses, CompareBundleRevisionsData, CompareBundleRevisionsErrors, CompareBundleRevisionsResponses, CreateBlueprintImportPlanData, CreateBlueprintImportPlanErrors, CreateBlueprintImportPlanResponses, CreateBundleData, CreateBundleErrors, CreateBundleResponses, GetBlueprintImportPlanData, GetBlueprintImportPlanErrors, GetBlueprintImportPlanResponses, GetBundleData, GetBundleErrors, GetBundleResponses, GetDefinitionData, GetDefinitionErrors, GetDefinitionResponses, GetSnapshotData, GetSnapshotErrors, GetSnapshotResponses, ListBundlesData, ListBundlesErrors, ListBundlesResponses, ListBundleVersionsData, ListBundleVersionsErrors, ListBundleVersionsResponses, ListDefinitionsData, ListDefinitionsErrors, ListDefinitionsResponses, ListDefinitionVersionsData, ListDefinitionVersionsErrors, ListDefinitionVersionsResponses, MoveDefinitionData, MoveDefinitionErrors, MoveDefinitionResponses, PatchBundleData, PatchBundleErrors, PatchBundleResponses, PatchDefinitionData, PatchDefinitionErrors, PatchDefinitionResponses, PreviewDefinitionsData, PreviewDefinitionsErrors, PreviewDefinitionsResponses, PublishPreviewSnapshotData, PublishPreviewSnapshotErrors, PublishPreviewSnapshotResponses, PublishReleaseData, PublishReleaseErrors, PublishReleaseResponses, ReadBlueprintDefinitionData, ReadBlueprintDefinitionErrors, ReadBlueprintDefinitionResponses, ReadBlueprintSourceData, ReadBlueprintSourceErrors, ReadBlueprintSourceResponses, RegisterBlueprintVersionData, RegisterBlueprintVersionErrors, RegisterBlueprintVersionResponses, ValidateBundleData, ValidateBundleErrors, ValidateBundleResponses, WriteDefinitionData, WriteDefinitionErrors, WriteDefinitionResponses } from './types.gen.js';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -13,6 +13,14 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
|
|
|
13
13
|
*/
|
|
14
14
|
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Read Blueprint Source
|
|
18
|
+
*/
|
|
19
|
+
export declare const readBlueprintSource: <ThrowOnError extends boolean = false>(options: Options<ReadBlueprintSourceData, ThrowOnError>) => RequestResult<ReadBlueprintSourceResponses, ReadBlueprintSourceErrors, ThrowOnError>;
|
|
20
|
+
/**
|
|
21
|
+
* Read Blueprint Definition
|
|
22
|
+
*/
|
|
23
|
+
export declare const readBlueprintDefinition: <ThrowOnError extends boolean = false>(options: Options<ReadBlueprintDefinitionData, ThrowOnError>) => RequestResult<ReadBlueprintDefinitionResponses, ReadBlueprintDefinitionErrors, ThrowOnError>;
|
|
16
24
|
/**
|
|
17
25
|
* Create Plan
|
|
18
26
|
*/
|
|
@@ -65,6 +73,10 @@ export declare const moveDefinition: <ThrowOnError extends boolean = false>(opti
|
|
|
65
73
|
* Write Definition
|
|
66
74
|
*/
|
|
67
75
|
export declare const writeDefinition: <ThrowOnError extends boolean = false>(options: Options<WriteDefinitionData, ThrowOnError>) => RequestResult<WriteDefinitionResponses, WriteDefinitionErrors, ThrowOnError>;
|
|
76
|
+
/**
|
|
77
|
+
* List Bundle Versions
|
|
78
|
+
*/
|
|
79
|
+
export declare const listBundleVersions: <ThrowOnError extends boolean = false>(options: Options<ListBundleVersionsData, ThrowOnError>) => RequestResult<ListBundleVersionsResponses, ListBundleVersionsErrors, ThrowOnError>;
|
|
68
80
|
/**
|
|
69
81
|
* Compatibility
|
|
70
82
|
*/
|
|
@@ -81,6 +93,10 @@ export declare const getDefinition: <ThrowOnError extends boolean = false>(optio
|
|
|
81
93
|
* Patch Definition
|
|
82
94
|
*/
|
|
83
95
|
export declare const patchDefinition: <ThrowOnError extends boolean = false>(options: Options<PatchDefinitionData, ThrowOnError>) => RequestResult<PatchDefinitionResponses, PatchDefinitionErrors, ThrowOnError>;
|
|
96
|
+
/**
|
|
97
|
+
* List Definition Versions
|
|
98
|
+
*/
|
|
99
|
+
export declare const listDefinitionVersions: <ThrowOnError extends boolean = false>(options: Options<ListDefinitionVersionsData, ThrowOnError>) => RequestResult<ListDefinitionVersionsResponses, ListDefinitionVersionsErrors, ThrowOnError>;
|
|
84
100
|
/**
|
|
85
101
|
* Preview Snapshot
|
|
86
102
|
*/
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { client } from './client.gen.js';
|
|
3
|
+
/**
|
|
4
|
+
* Read Blueprint Source
|
|
5
|
+
*/
|
|
6
|
+
export const readBlueprintSource = (options) => (options.client ?? client).get({
|
|
7
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
8
|
+
url: '/v1/blueprint-assets/{asset_id}/versions/{version_id}',
|
|
9
|
+
...options
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* Read Blueprint Definition
|
|
13
|
+
*/
|
|
14
|
+
export const readBlueprintDefinition = (options) => (options.client ?? client).get({
|
|
15
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
16
|
+
url: '/v1/blueprint-assets/{asset_id}/versions/{version_id}/definitions/{definition_id}',
|
|
17
|
+
...options
|
|
18
|
+
});
|
|
3
19
|
/**
|
|
4
20
|
* Create Plan
|
|
5
21
|
*/
|
|
@@ -140,6 +156,14 @@ export const writeDefinition = (options) => (options.client ?? client).post({
|
|
|
140
156
|
...options.headers
|
|
141
157
|
}
|
|
142
158
|
});
|
|
159
|
+
/**
|
|
160
|
+
* List Bundle Versions
|
|
161
|
+
*/
|
|
162
|
+
export const listBundleVersions = (options) => (options.client ?? client).get({
|
|
163
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
164
|
+
url: '/v1/bundles/{bundle_id}/versions',
|
|
165
|
+
...options
|
|
166
|
+
});
|
|
143
167
|
/**
|
|
144
168
|
* Compatibility
|
|
145
169
|
*/
|
|
@@ -184,6 +208,14 @@ export const patchDefinition = (options) => (options.client ?? client).patch({
|
|
|
184
208
|
...options.headers
|
|
185
209
|
}
|
|
186
210
|
});
|
|
211
|
+
/**
|
|
212
|
+
* List Definition Versions
|
|
213
|
+
*/
|
|
214
|
+
export const listDefinitionVersions = (options) => (options.client ?? client).get({
|
|
215
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
216
|
+
url: '/v1/definitions/{definition_kind}/{definition_id}/versions',
|
|
217
|
+
...options
|
|
218
|
+
});
|
|
187
219
|
/**
|
|
188
220
|
* Preview Snapshot
|
|
189
221
|
*/
|