rystem.playframework.client 10.1.0-beta.4 → 11.0.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.
@@ -0,0 +1,28 @@
1
+ import { PlayFrameworkClient } from "../engine/PlayFrameworkClient";
2
+ /**
3
+ * Get a PlayFrameworkClient instance by optional factory name.
4
+ *
5
+ * If `name` is provided, returns the client for that specific factory.
6
+ * If `name` is omitted, returns the default (first configured) client.
7
+ *
8
+ * Framework-agnostic — works with React, Vue, Angular, Svelte, or plain TypeScript.
9
+ *
10
+ * @param name - Optional factory name. Omit to use the default client.
11
+ * @returns PlayFrameworkClient instance.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * // Use default (first configured) client
16
+ * const client = usePlayFramework();
17
+ *
18
+ * // Use a specific factory
19
+ * const chatClient = usePlayFramework("chat");
20
+ *
21
+ * // Execute
22
+ * for await (const step of client.executeStepByStep({ message: "Hello" })) {
23
+ * console.log(step.message);
24
+ * }
25
+ * ```
26
+ */
27
+ export declare function usePlayFramework(name?: string): PlayFrameworkClient;
28
+ //# sourceMappingURL=hooks.d.ts.map
package/lib/index.d.ts ADDED
@@ -0,0 +1,30 @@
1
+ export type { ContentItem } from "./models/ContentItem";
2
+ export type { PlayFrameworkRequest, SceneRequestSettings, SceneExecutionMode, CacheBehavior } from "./models/PlayFrameworkRequest";
3
+ export type { ForcedToolRequest, PlayFrameworkToolSourceType, PlayFrameworkToolInfo, PlayFrameworkToolSourceInfo, PlayFrameworkSceneInfo, PlayFrameworkDiscoveryResponse } from "./models/PlayFrameworkDiscovery";
4
+ export type { AiSceneResponse, AiResponseStatus, SSEEvent, CompletionMarker, ErrorMarker } from "./models/AiSceneResponse";
5
+ export type { ClientInteractionRequest } from "./models/ClientInteractionRequest";
6
+ export type { ClientInteractionResult, AIContent } from "./models/ClientInteractionResult";
7
+ export type { StoredConversation, ConversationQueryParameters, UpdateConversationVisibilityRequest } from "./models/StoredConversation";
8
+ export { ConversationSortOrder } from "./models/StoredConversation";
9
+ export type { StoredMessage } from "./models/StoredMessage";
10
+ export type { ExecutionState } from "./models/ExecutionState";
11
+ export type { CommandResult } from "./models/CommandResult";
12
+ export { CommandResult as CommandResultHelper } from "./models/CommandResult";
13
+ export type { VoiceEvent, VoiceRequestOptions, VoiceResponseType } from "./models/VoiceResponse";
14
+ export { PlayFrameworkClient } from "./engine/PlayFrameworkClient";
15
+ export { ClientInteractionRegistry } from "./engine/ClientInteractionRegistry";
16
+ export type { ClientTool, ClientCommand, CommandFeedbackMode, CommandOptions } from "./engine/ClientInteractionRegistry";
17
+ export { AIContentConverter } from "./utils/AIContentConverter";
18
+ export { ContentUrlConverter } from "./utils/ContentUrlConverter";
19
+ export { VoiceRecorder } from "./utils/VoiceRecorder";
20
+ export type { VoiceRecordingMode, VoiceRecorderOptions, VoiceRecorderCallbacks } from "./utils/VoiceRecorder";
21
+ export { BrowserSpeechRecognizer } from "./utils/BrowserSpeechRecognizer";
22
+ export type { BrowserSpeechRecognizerOptions, BrowserSpeechRecognizerCallbacks, SpeechRecognitionResult } from "./utils/BrowserSpeechRecognizer";
23
+ export { BrowserSpeechSynthesizer } from "./utils/BrowserSpeechSynthesizer";
24
+ export type { BrowserSpeechSynthesizerOptions, BrowserSpeechSynthesizerCallbacks } from "./utils/BrowserSpeechSynthesizer";
25
+ export { BrowserVoiceClient } from "./utils/BrowserVoiceClient";
26
+ export type { BrowserVoiceOptions, BrowserVoiceEvent, BrowserVoiceStatus, BrowserVoiceStreamingMode } from "./utils/BrowserVoiceClient";
27
+ export { PlayFrameworkSettings } from "./servicecollection/PlayFrameworkSettings";
28
+ export { PlayFrameworkServices } from "./servicecollection/PlayFrameworkServices";
29
+ export { usePlayFramework } from "./hooks/hooks";
30
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rystem.playframework.client",
3
- "version": "10.1.0-beta.4",
3
+ "version": "11.0.0",
4
4
  "author": "Alessandro Rapiti <alessandro.rapiti44@gmail.com>",
5
5
  "license": "MIT",
6
6
  "description": "TypeScript client for Rystem PlayFramework HTTP API with step-by-step and token-level streaming support.",
@@ -30,9 +30,9 @@
30
30
  "url": "https://github.com/KeyserDSoze/Rystem.git"
31
31
  },
32
32
  "devDependencies": {
33
- "@types/node": "^22.15.16",
34
- "@typescript-eslint/parser": "8.24.1",
35
- "typescript": "5.7.3"
33
+ "@types/node": "^26.6.6",
34
+ "@typescript-eslint/parser": "8.73.0",
35
+ "typescript": "6.0.3"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "tsc",