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 +1 -1
- package/dist/host.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/spindle-api.d.ts +2 -0
- package/dist/uuid.d.ts +12 -0
- package/dist/uuid.js +1 -0
- package/package.json +1 -1
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
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";
|
package/dist/spindle-api.d.ts
CHANGED
|
@@ -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 {};
|