lumiverse-spindle-types 0.6.76 → 0.6.77

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/dist/api.d.ts CHANGED
@@ -5086,7 +5086,7 @@ export type WorkerToHost = import("./live-activities.js").LiveActivityWorkerMess
5086
5086
  } | {
5087
5087
  type: "commands_unregister";
5088
5088
  commandIds: string[];
5089
- } | {
5089
+ } | import("./uuid.js").UUIDWorkerMessage | {
5090
5090
  type: "version_get_backend";
5091
5091
  requestId: string;
5092
5092
  } | {
package/dist/host.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export const SPINDLE_HOST_CAPABILITIES = Object.freeze({
2
+ "uuid-v1": 1,
2
3
  "message-preset-context-v1": 1,
3
4
  "chat-swipe-variables-v1": 1,
4
5
  "generation-message-sessions-v1": 1,
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export type { LiveActivityPresentation, LiveActivityStartInput, LiveActivityResult, LiveActivityStatus, SpindleLiveActivitiesAPI, LiveActivityWorkerMessage } from "./live-activities.js";
2
2
  export type { DecisionImageAsset, DecisionBox, DecisionJsonValue, DecisionDescription, DecisionState, DecisionQuestion, DecisionAnswer, DecisionAnswerFor, DecisionAnswers, DecisionResult, DecisionEvaluationInput, DecisionConnectionProfileDTO, DecisionModelDTO, DecisionProviderDTO, SpindleDecisionsAPI, DecisionWorkerMessage } from "./decisions.js";
3
3
  export type { EmbeddingConnectionDTO, EmbeddingsEmbedInput, EmbeddingsEmbedResult, SpindleEmbeddingsAPI, EmbeddingsWorkerMessage } from "./embeddings.js";
4
+ export type { SpindleUUIDAPI, UUIDWorkerMessage } from "./uuid.js";
4
5
  export type { SpindleManifest, SpindlePermission, SpindleCapability, } from "./manifest.js";
5
6
  export { IDENTIFIER_PATTERN, validateIdentifier, } from "./manifest.js";
6
7
  export type { LumiverseVersionInfo, SpindleHostDescriptorV1, SpindleHostLocale, SpindleHostLocaleAPI, } from "./host.js";
@@ -135,6 +135,8 @@ export interface SpindleConnectionsAPI {
135
135
  }
136
136
  /** The global `spindle` object available in backend extension workers */
137
137
  export interface SpindleAPI {
138
+ /** Backend UUID v4/v7 generation (free tier; host capability: uuid-v1). */
139
+ readonly uuid: import("./uuid.js").SpindleUUIDAPI;
138
140
  /** Typed Decision models (permission: decisions; host capability: decisions-v1). */
139
141
  decisions: import("./decisions.js").SpindleDecisionsAPI;
140
142
  /** Embed text with the user's embedding connections (permission: embeddings; host capability: embeddings-v1). */
package/dist/uuid.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /** Backend UUID generation (free tier — no permission needed). */
2
+ export interface SpindleUUIDAPI {
3
+ /** Generate a random UUID v4 string using the backend's UUID helper. */
4
+ v4(): Promise<string>;
5
+ /** Generate a timestamp-ordered UUID v7 string using the backend's UUID helper. */
6
+ v7(): Promise<string>;
7
+ }
8
+ export type UUIDWorkerMessage = {
9
+ type: "uuid_generate";
10
+ requestId: string;
11
+ version: 4 | 7;
12
+ };
package/dist/uuid.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumiverse-spindle-types",
3
- "version": "0.6.76",
3
+ "version": "0.6.77",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "keywords": [