@liforma/client 0.4.0 → 0.4.2

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.
Files changed (121) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/next/index.js +1101 -4239
  3. package/dist/next/index.js.map +1 -1
  4. package/dist/next/next/createLiformaSessionRouteHandler.d.ts +3 -2
  5. package/dist/next/next/createLiformaSessionRouteHandler.d.ts.map +1 -1
  6. package/dist/next/react/ExperienceThumbnail.d.ts +1 -0
  7. package/dist/next/react/ExperienceThumbnail.d.ts.map +1 -1
  8. package/dist/next/thumbnail/styles.d.ts.map +1 -1
  9. package/dist/next/thumbnail/toGalleryThumbUrl.d.ts.map +1 -1
  10. package/dist/next/thumbnail/types.d.ts +2 -0
  11. package/dist/next/thumbnail/types.d.ts.map +1 -1
  12. package/dist/next/v2/api/mintPublicSession.d.ts +23 -17
  13. package/dist/next/v2/api/mintPublicSession.d.ts.map +1 -1
  14. package/dist/next/v2/api/sessionEndpointRequest.d.ts +10 -5
  15. package/dist/next/v2/api/sessionEndpointRequest.d.ts.map +1 -1
  16. package/dist/next/v2/embed/iframeHost.d.ts +8 -2
  17. package/dist/next/v2/embed/iframeHost.d.ts.map +1 -1
  18. package/dist/next/v2/embed/protocol.d.ts +20 -0
  19. package/dist/next/v2/embed/protocol.d.ts.map +1 -1
  20. package/dist/next/v2/errors/LiformaError.d.ts +23 -0
  21. package/dist/next/v2/errors/LiformaError.d.ts.map +1 -0
  22. package/dist/next/v2/experience.d.ts +59 -53
  23. package/dist/next/v2/experience.d.ts.map +1 -1
  24. package/dist/next/v2/experienceEvents.d.ts +22 -13
  25. package/dist/next/v2/experienceEvents.d.ts.map +1 -1
  26. package/dist/next/v2/types/sessionLaunch.d.ts +66 -0
  27. package/dist/next/v2/types/sessionLaunch.d.ts.map +1 -0
  28. package/dist/next/v2/types/sessionManifest.d.ts +8 -0
  29. package/dist/next/v2/types/sessionManifest.d.ts.map +1 -1
  30. package/dist/next/widget/mountExperienceWidget.d.ts.map +1 -1
  31. package/dist/next/widget/types.d.ts +6 -1
  32. package/dist/next/widget/types.d.ts.map +1 -1
  33. package/dist/npm/index.js +951 -4090
  34. package/dist/npm/index.js.map +1 -1
  35. package/dist/npm/thumbnail/styles.d.ts.map +1 -1
  36. package/dist/npm/thumbnail/toGalleryThumbUrl.d.ts.map +1 -1
  37. package/dist/npm/thumbnail/types.d.ts +2 -0
  38. package/dist/npm/thumbnail/types.d.ts.map +1 -1
  39. package/dist/npm/v2/api/mintPublicSession.d.ts +23 -17
  40. package/dist/npm/v2/api/mintPublicSession.d.ts.map +1 -1
  41. package/dist/npm/v2/api/sessionEndpointRequest.d.ts +10 -5
  42. package/dist/npm/v2/api/sessionEndpointRequest.d.ts.map +1 -1
  43. package/dist/npm/v2/embed/iframeHost.d.ts +8 -2
  44. package/dist/npm/v2/embed/iframeHost.d.ts.map +1 -1
  45. package/dist/npm/v2/embed/protocol.d.ts +20 -0
  46. package/dist/npm/v2/embed/protocol.d.ts.map +1 -1
  47. package/dist/npm/v2/errors/LiformaError.d.ts +23 -0
  48. package/dist/npm/v2/errors/LiformaError.d.ts.map +1 -0
  49. package/dist/npm/v2/experience.d.ts +59 -53
  50. package/dist/npm/v2/experience.d.ts.map +1 -1
  51. package/dist/npm/v2/experienceEvents.d.ts +22 -13
  52. package/dist/npm/v2/experienceEvents.d.ts.map +1 -1
  53. package/dist/npm/v2/index.d.ts +4 -1
  54. package/dist/npm/v2/index.d.ts.map +1 -1
  55. package/dist/npm/v2/liforma-experience-thumbnail.d.ts.map +1 -1
  56. package/dist/npm/v2/liforma-experience-widget.d.ts.map +1 -1
  57. package/dist/npm/v2/liforma-experience.d.ts.map +1 -1
  58. package/dist/npm/v2/npm.d.ts +5 -2
  59. package/dist/npm/v2/npm.d.ts.map +1 -1
  60. package/dist/npm/v2/types/index.d.ts +2 -0
  61. package/dist/npm/v2/types/index.d.ts.map +1 -1
  62. package/dist/npm/v2/types/sessionLaunch.d.ts +66 -0
  63. package/dist/npm/v2/types/sessionLaunch.d.ts.map +1 -0
  64. package/dist/npm/v2/types/sessionManifest.d.ts +8 -0
  65. package/dist/npm/v2/types/sessionManifest.d.ts.map +1 -1
  66. package/dist/npm/v2/types/sessionManifestSchema.d.ts +7 -0
  67. package/dist/npm/v2/types/sessionManifestSchema.d.ts.map +1 -1
  68. package/dist/npm/widget/mountExperienceWidget.d.ts.map +1 -1
  69. package/dist/npm/widget/types.d.ts +6 -1
  70. package/dist/npm/widget/types.d.ts.map +1 -1
  71. package/dist/react/component/experienceComponentLaunch.d.ts +1 -0
  72. package/dist/react/component/experienceComponentLaunch.d.ts.map +1 -1
  73. package/dist/react/component/experienceComponentRuntime.d.ts +10 -2
  74. package/dist/react/component/experienceComponentRuntime.d.ts.map +1 -1
  75. package/dist/react/component/experienceComponentTypes.d.ts +24 -13
  76. package/dist/react/component/experienceComponentTypes.d.ts.map +1 -1
  77. package/dist/react/index.js +1251 -4378
  78. package/dist/react/index.js.map +1 -1
  79. package/dist/react/react/Experience.d.ts.map +1 -1
  80. package/dist/react/react/ExperienceThumbnail.d.ts +1 -0
  81. package/dist/react/react/ExperienceThumbnail.d.ts.map +1 -1
  82. package/dist/react/thumbnail/styles.d.ts.map +1 -1
  83. package/dist/react/thumbnail/toGalleryThumbUrl.d.ts.map +1 -1
  84. package/dist/react/thumbnail/types.d.ts +2 -0
  85. package/dist/react/thumbnail/types.d.ts.map +1 -1
  86. package/dist/react/v2/api/mintPublicSession.d.ts +23 -17
  87. package/dist/react/v2/api/mintPublicSession.d.ts.map +1 -1
  88. package/dist/react/v2/api/sessionEndpointRequest.d.ts +10 -5
  89. package/dist/react/v2/api/sessionEndpointRequest.d.ts.map +1 -1
  90. package/dist/react/v2/embed/iframeHost.d.ts +8 -2
  91. package/dist/react/v2/embed/iframeHost.d.ts.map +1 -1
  92. package/dist/react/v2/embed/protocol.d.ts +20 -0
  93. package/dist/react/v2/embed/protocol.d.ts.map +1 -1
  94. package/dist/react/v2/errors/LiformaError.d.ts +23 -0
  95. package/dist/react/v2/errors/LiformaError.d.ts.map +1 -0
  96. package/dist/react/v2/experience.d.ts +59 -53
  97. package/dist/react/v2/experience.d.ts.map +1 -1
  98. package/dist/react/v2/experienceEvents.d.ts +22 -13
  99. package/dist/react/v2/experienceEvents.d.ts.map +1 -1
  100. package/dist/react/v2/types/sessionLaunch.d.ts +66 -0
  101. package/dist/react/v2/types/sessionLaunch.d.ts.map +1 -0
  102. package/dist/react/v2/types/sessionManifest.d.ts +8 -0
  103. package/dist/react/v2/types/sessionManifest.d.ts.map +1 -1
  104. package/dist/react/widget/mountExperienceWidget.d.ts.map +1 -1
  105. package/dist/react/widget/types.d.ts +6 -1
  106. package/dist/react/widget/types.d.ts.map +1 -1
  107. package/dist/sdk/v2/client.js +36 -76
  108. package/dist/sdk/v2/client.js.map +1 -1
  109. package/dist/svelte/Experience.svelte +54 -44
  110. package/dist/svelte/Experience.svelte.d.ts +2 -1
  111. package/dist/svelte/ExperienceThumbnail.svelte +8 -1
  112. package/dist/svelte/ExperienceThumbnail.svelte.d.ts +1 -0
  113. package/package.json +3 -1
  114. package/dist/next/v2/speechOnlyManifest.d.ts +0 -7
  115. package/dist/next/v2/speechOnlyManifest.d.ts.map +0 -1
  116. package/dist/next/v2/types/sessionManifestSchema.d.ts +0 -183
  117. package/dist/next/v2/types/sessionManifestSchema.d.ts.map +0 -1
  118. package/dist/react/v2/speechOnlyManifest.d.ts +0 -7
  119. package/dist/react/v2/speechOnlyManifest.d.ts.map +0 -1
  120. package/dist/react/v2/types/sessionManifestSchema.d.ts +0 -183
  121. package/dist/react/v2/types/sessionManifestSchema.d.ts.map +0 -1
@@ -1,183 +0,0 @@
1
- import { z } from 'zod';
2
- import type { SessionManifest } from './sessionManifest';
3
- export declare const sessionManifestSchema: z.ZodObject<{
4
- schemaVersion: z.ZodLiteral<1>;
5
- sessionId: z.ZodString;
6
- experienceId: z.ZodString;
7
- expiresAt: z.ZodString;
8
- sessionToken: z.ZodString;
9
- experience: z.ZodObject<{
10
- title: z.ZodString;
11
- slug: z.ZodString;
12
- mode: z.ZodEnum<{
13
- conversation: "conversation";
14
- presenter: "presenter";
15
- }>;
16
- responseMode: z.ZodEnum<{
17
- managed: "managed";
18
- custom: "custom";
19
- manual: "manual";
20
- }>;
21
- speechInputMode: z.ZodEnum<{
22
- manual: "manual";
23
- auto: "auto";
24
- off: "off";
25
- }>;
26
- startButton: z.ZodOptional<z.ZodObject<{
27
- label: z.ZodOptional<z.ZodString>;
28
- ariaLabel: z.ZodOptional<z.ZodString>;
29
- placement: z.ZodOptional<z.ZodEnum<{
30
- center: "center";
31
- "bottom-center": "bottom-center";
32
- "bottom-left": "bottom-left";
33
- "bottom-right": "bottom-right";
34
- }>>;
35
- variant: z.ZodOptional<z.ZodEnum<{
36
- primary: "primary";
37
- secondary: "secondary";
38
- minimal: "minimal";
39
- }>>;
40
- appearance: z.ZodOptional<z.ZodObject<{
41
- backgroundColor: z.ZodOptional<z.ZodString>;
42
- textColor: z.ZodOptional<z.ZodString>;
43
- borderColor: z.ZodOptional<z.ZodString>;
44
- borderRadiusPx: z.ZodOptional<z.ZodNumber>;
45
- size: z.ZodOptional<z.ZodEnum<{
46
- small: "small";
47
- medium: "medium";
48
- large: "large";
49
- }>>;
50
- shadow: z.ZodOptional<z.ZodEnum<{
51
- none: "none";
52
- soft: "soft";
53
- strong: "strong";
54
- }>>;
55
- }, z.core.$strip>>;
56
- }, z.core.$strip>>;
57
- openingMessage: z.ZodOptional<z.ZodString>;
58
- }, z.core.$strip>;
59
- transport: z.ZodObject<{
60
- type: z.ZodLiteral<"http">;
61
- config: z.ZodObject<{
62
- apiBaseUrl: z.ZodString;
63
- }, z.core.$strip>;
64
- }, z.core.$strip>;
65
- runtime: z.ZodObject<{
66
- cdnBaseUrl: z.ZodString;
67
- input: z.ZodLiteral<"browserStt">;
68
- renderer: z.ZodLiteral<"morph2d">;
69
- }, z.core.$strip>;
70
- pipeline: z.ZodOptional<z.ZodObject<{
71
- stt: z.ZodObject<{
72
- placement: z.ZodEnum<{
73
- browser: "browser";
74
- cloud: "cloud";
75
- }>;
76
- provider: z.ZodString;
77
- model: z.ZodOptional<z.ZodString>;
78
- config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
79
- }, z.core.$strip>;
80
- llm: z.ZodObject<{
81
- placement: z.ZodEnum<{
82
- browser: "browser";
83
- cloud: "cloud";
84
- }>;
85
- provider: z.ZodString;
86
- model: z.ZodOptional<z.ZodString>;
87
- config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
88
- }, z.core.$strip>;
89
- tts: z.ZodObject<{
90
- placement: z.ZodEnum<{
91
- browser: "browser";
92
- cloud: "cloud";
93
- }>;
94
- provider: z.ZodString;
95
- model: z.ZodOptional<z.ZodString>;
96
- config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
97
- }, z.core.$strip>;
98
- animation: z.ZodObject<{
99
- enabled: z.ZodBoolean;
100
- placement: z.ZodOptional<z.ZodEnum<{
101
- browser: "browser";
102
- cloud: "cloud";
103
- }>>;
104
- source: z.ZodEnum<{
105
- none: "none";
106
- azureViseme: "azureViseme";
107
- speechToAnimation: "speechToAnimation";
108
- }>;
109
- provider: z.ZodOptional<z.ZodString>;
110
- model: z.ZodOptional<z.ZodString>;
111
- config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
112
- }, z.core.$strip>;
113
- }, z.core.$strip>>;
114
- capabilities: z.ZodArray<z.ZodString>;
115
- characters: z.ZodArray<z.ZodObject<{
116
- characterId: z.ZodString;
117
- displayName: z.ZodString;
118
- avatarId: z.ZodString;
119
- voiceId: z.ZodString;
120
- sttLang: z.ZodString;
121
- agentId: z.ZodString;
122
- appearance: z.ZodOptional<z.ZodObject<{
123
- costume: z.ZodOptional<z.ZodString>;
124
- costumeClothes: z.ZodOptional<z.ZodString>;
125
- hair: z.ZodOptional<z.ZodString>;
126
- }, z.core.$strip>>;
127
- }, z.core.$strip>>;
128
- activeCharacterId: z.ZodString;
129
- location: z.ZodOptional<z.ZodObject<{
130
- locationId: z.ZodString;
131
- title: z.ZodString;
132
- scene: z.ZodOptional<z.ZodObject<{
133
- type: z.ZodLiteral<"image">;
134
- layers: z.ZodArray<z.ZodString>;
135
- assets: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
136
- }, z.core.$strip>>;
137
- placement: z.ZodOptional<z.ZodObject<{
138
- cx: z.ZodNumber;
139
- cy: z.ZodNumber;
140
- scale: z.ZodNumber;
141
- distanceM: z.ZodNumber;
142
- }, z.core.$strip>>;
143
- metersPerDepth: z.ZodOptional<z.ZodNumber>;
144
- hasZoomVariant: z.ZodOptional<z.ZodBoolean>;
145
- }, z.core.$strip>>;
146
- world: z.ZodOptional<z.ZodObject<{
147
- worldId: z.ZodString;
148
- rulesetVersion: z.ZodNumber;
149
- }, z.core.$strip>>;
150
- state: z.ZodObject<{
151
- schemaVersion: z.ZodLiteral<1>;
152
- values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
153
- }, z.core.$strip>;
154
- tools: z.ZodArray<z.ZodUnknown>;
155
- integration: z.ZodOptional<z.ZodObject<{
156
- returnUrl: z.ZodOptional<z.ZodString>;
157
- navigateOnClose: z.ZodOptional<z.ZodBoolean>;
158
- }, z.core.$strip>>;
159
- closeButton: z.ZodOptional<z.ZodNullable<z.ZodObject<{
160
- visible: z.ZodOptional<z.ZodBoolean>;
161
- style: z.ZodOptional<z.ZodEnum<{
162
- text: "text";
163
- icon: "icon";
164
- }>>;
165
- label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
- position: z.ZodOptional<z.ZodString>;
167
- }, z.core.$strip>>>;
168
- billing: z.ZodOptional<z.ZodObject<{
169
- payer: z.ZodLiteral<"creator">;
170
- meterId: z.ZodString;
171
- }, z.core.$strip>>;
172
- language: z.ZodOptional<z.ZodEnum<{
173
- en: "en";
174
- es: "es";
175
- }>>;
176
- languagePackRevision: z.ZodOptional<z.ZodString>;
177
- processorId: z.ZodOptional<z.ZodString>;
178
- }, z.core.$strip>;
179
- /** Apply API defaults for interaction modes omitted by older mint paths. */
180
- export declare function normalizeSessionManifestInput(data: unknown): unknown;
181
- export declare function parseSessionManifest(data: unknown): SessionManifest;
182
- export declare function manifestHasSessionCredential(manifest: SessionManifest): boolean;
183
- //# sourceMappingURL=sessionManifestSchema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessionManifestSchema.d.ts","sourceRoot":"","sources":["../../../../src/v2/types/sessionManifestSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AA0FzD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwEhC,CAAC;AAEH,4EAA4E;AAC5E,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAgBpE;AAWD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,eAAe,CAMnE;AAED,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,eAAe,GAAG,OAAO,CAE/E"}