@deepblend/dsh-blender-contracts 0.3.3 → 0.3.5

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/lib/index.js CHANGED
@@ -96,6 +96,10 @@ export const BlenderErrorCode = Object.freeze({
96
96
  PROJECT_EXISTS: 'PROJECT_EXISTS',
97
97
  /** A project id (or a derived slug) is not usable as a directory name. */
98
98
  PROJECT_ID_INVALID: 'PROJECT_ID_INVALID',
99
+ /** The optional creation key or its inputs are invalid. */
100
+ CREATION_REQUEST_INVALID: 'CREATION_REQUEST_INVALID',
101
+ /** A creation key identifies different inputs or an incomplete/corrupt creation. */
102
+ CREATION_REQUEST_CONFLICT: 'CREATION_REQUEST_CONFLICT',
99
103
 
100
104
  /** The named revision does not exist in this project. */
101
105
  REVISION_NOT_FOUND: 'REVISION_NOT_FOUND',
@@ -379,6 +383,8 @@ export const BlenderWarningCode = Object.freeze({
379
383
  * beauty/clay diagnostics; an older Host must not silently ignore that mode.
380
384
  */
381
385
  export const HOST_API_VERSION = 6
386
+ /** Explicit capability for recovering a keyed creation; older Hosts ignore that input. */
387
+ export const CREATION_REQUEST_VERSION = 'deepblend.creation-request/v1'
382
388
 
383
389
  /** Formats the product intends to support (SPEC §2.2). Used to emit warnings. */
384
390
  export const EXPECTED_IMPORT_FORMATS = Object.freeze(['gltf', 'fbx', 'obj', 'usd'])
@@ -118,6 +118,8 @@ export interface BlenderErrorCodeMap {
118
118
  readonly PROJECT_CORRUPT: "PROJECT_CORRUPT";
119
119
  readonly PROJECT_EXISTS: "PROJECT_EXISTS";
120
120
  readonly PROJECT_ID_INVALID: "PROJECT_ID_INVALID";
121
+ readonly CREATION_REQUEST_INVALID: "CREATION_REQUEST_INVALID";
122
+ readonly CREATION_REQUEST_CONFLICT: "CREATION_REQUEST_CONFLICT";
121
123
  readonly REVISION_NOT_FOUND: "REVISION_NOT_FOUND";
122
124
  readonly REVISION_CORRUPT: "REVISION_CORRUPT";
123
125
  readonly REVISION_CHECKPOINT_MISSING: "REVISION_CHECKPOINT_MISSING";
package/lib/sdk.d.ts CHANGED
@@ -10,6 +10,7 @@ export const BLENDER_PROTOCOL_VERSION: 'deepblend.blender/v1';
10
10
  export const SCENE_SCHEMA_VERSION: 'deepblend.scene/v1';
11
11
  export const SCENE_PATCH_VERSION: 'deepblend.scene-patch/v1';
12
12
  export const HOST_API_VERSION: 6;
13
+ export const CREATION_REQUEST_VERSION: 'deepblend.creation-request/v1';
13
14
  export const BlenderErrorCode: Readonly<BlenderErrorCodeMap>;
14
15
  export const BlenderWarningCode: Readonly<BlenderWarningCodeMap>;
15
16
  export class BlenderError extends Error {
package/lib/ui-api.js CHANGED
@@ -863,6 +863,7 @@ export function buildProjectView(record, extra = {}) {
863
863
  title: record.title ?? null,
864
864
  currentRevision: record.currentRevision ?? null,
865
865
  revisionCount: record.revisionCount ?? 0,
866
+ creationPending: record.creationPending === true,
866
867
  createdAt: record.createdAt ?? null,
867
868
  updatedAt: record.updatedAt ?? null,
868
869
  goal: record.goal ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepblend/dsh-blender-contracts",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "type": "module",
5
5
  "description": "DeepBlend Studio Service Definition, protocol contracts, and stable error codes.",
6
6
  "main": "lib/index.js",