@runwayml/sdk 3.11.0 → 3.15.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.
Files changed (226) hide show
  1. package/CHANGELOG.md +115 -0
  2. package/LICENSE +1 -1
  3. package/README.md +43 -2
  4. package/client.d.mts +53 -4
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +53 -4
  7. package/client.d.ts.map +1 -1
  8. package/client.js +75 -20
  9. package/client.js.map +1 -1
  10. package/client.mjs +75 -20
  11. package/client.mjs.map +1 -1
  12. package/core/pagination.d.mts +54 -0
  13. package/core/pagination.d.mts.map +1 -0
  14. package/core/pagination.d.ts +54 -0
  15. package/core/pagination.d.ts.map +1 -0
  16. package/core/pagination.js +101 -0
  17. package/core/pagination.js.map +1 -0
  18. package/core/pagination.mjs +95 -0
  19. package/core/pagination.mjs.map +1 -0
  20. package/index.d.mts +1 -0
  21. package/index.d.mts.map +1 -1
  22. package/index.d.ts +1 -0
  23. package/index.d.ts.map +1 -1
  24. package/index.js +3 -1
  25. package/index.js.map +1 -1
  26. package/index.mjs +1 -0
  27. package/index.mjs.map +1 -1
  28. package/internal/parse.d.mts.map +1 -1
  29. package/internal/parse.d.ts.map +1 -1
  30. package/internal/parse.js +5 -0
  31. package/internal/parse.js.map +1 -1
  32. package/internal/parse.mjs +5 -0
  33. package/internal/parse.mjs.map +1 -1
  34. package/internal/tslib.js +17 -17
  35. package/internal/utils/query.d.mts +5 -0
  36. package/internal/utils/query.d.mts.map +1 -0
  37. package/internal/utils/query.d.ts +5 -0
  38. package/internal/utils/query.d.ts.map +1 -0
  39. package/internal/utils/query.js +23 -0
  40. package/internal/utils/query.js.map +1 -0
  41. package/internal/utils/query.mjs +20 -0
  42. package/internal/utils/query.mjs.map +1 -0
  43. package/internal/utils.d.mts +1 -0
  44. package/internal/utils.d.ts +1 -0
  45. package/internal/utils.js +1 -0
  46. package/internal/utils.js.map +1 -1
  47. package/internal/utils.mjs +1 -0
  48. package/package.json +11 -1
  49. package/pagination.d.mts +2 -0
  50. package/pagination.d.mts.map +1 -0
  51. package/pagination.d.ts +2 -0
  52. package/pagination.d.ts.map +1 -0
  53. package/pagination.js +6 -0
  54. package/pagination.js.map +1 -0
  55. package/pagination.mjs +2 -0
  56. package/pagination.mjs.map +1 -0
  57. package/resources/avatars.d.mts +1308 -0
  58. package/resources/avatars.d.mts.map +1 -0
  59. package/resources/avatars.d.ts +1308 -0
  60. package/resources/avatars.d.ts.map +1 -0
  61. package/resources/avatars.js +87 -0
  62. package/resources/avatars.js.map +1 -0
  63. package/resources/avatars.mjs +83 -0
  64. package/resources/avatars.mjs.map +1 -0
  65. package/resources/character-performance.d.mts +3 -0
  66. package/resources/character-performance.d.mts.map +1 -1
  67. package/resources/character-performance.d.ts +3 -0
  68. package/resources/character-performance.d.ts.map +1 -1
  69. package/resources/character-performance.js +3 -0
  70. package/resources/character-performance.js.map +1 -1
  71. package/resources/character-performance.mjs +3 -0
  72. package/resources/character-performance.mjs.map +1 -1
  73. package/resources/documents.d.mts +209 -0
  74. package/resources/documents.d.mts.map +1 -0
  75. package/resources/documents.d.ts +209 -0
  76. package/resources/documents.d.ts.map +1 -0
  77. package/resources/documents.js +75 -0
  78. package/resources/documents.js.map +1 -0
  79. package/resources/documents.mjs +71 -0
  80. package/resources/documents.mjs.map +1 -0
  81. package/resources/image-to-video.d.mts +58 -1
  82. package/resources/image-to-video.d.mts.map +1 -1
  83. package/resources/image-to-video.d.ts +58 -1
  84. package/resources/image-to-video.d.ts.map +1 -1
  85. package/resources/image-to-video.js +3 -0
  86. package/resources/image-to-video.js.map +1 -1
  87. package/resources/image-to-video.mjs +3 -0
  88. package/resources/image-to-video.mjs.map +1 -1
  89. package/resources/index.d.mts +4 -1
  90. package/resources/index.d.mts.map +1 -1
  91. package/resources/index.d.ts +4 -1
  92. package/resources/index.d.ts.map +1 -1
  93. package/resources/index.js +9 -3
  94. package/resources/index.js.map +1 -1
  95. package/resources/index.mjs +4 -1
  96. package/resources/index.mjs.map +1 -1
  97. package/resources/organization.d.mts +2 -2
  98. package/resources/organization.d.mts.map +1 -1
  99. package/resources/organization.d.ts +2 -2
  100. package/resources/organization.d.ts.map +1 -1
  101. package/resources/realtime-sessions.d.mts +180 -0
  102. package/resources/realtime-sessions.d.mts.map +1 -0
  103. package/resources/realtime-sessions.d.ts +180 -0
  104. package/resources/realtime-sessions.d.ts.map +1 -0
  105. package/resources/realtime-sessions.js +32 -0
  106. package/resources/realtime-sessions.js.map +1 -0
  107. package/resources/realtime-sessions.mjs +28 -0
  108. package/resources/realtime-sessions.mjs.map +1 -0
  109. package/resources/sound-effect.d.mts +3 -0
  110. package/resources/sound-effect.d.mts.map +1 -1
  111. package/resources/sound-effect.d.ts +3 -0
  112. package/resources/sound-effect.d.ts.map +1 -1
  113. package/resources/sound-effect.js +3 -0
  114. package/resources/sound-effect.js.map +1 -1
  115. package/resources/sound-effect.mjs +3 -0
  116. package/resources/sound-effect.mjs.map +1 -1
  117. package/resources/speech-to-speech.d.mts +3 -0
  118. package/resources/speech-to-speech.d.mts.map +1 -1
  119. package/resources/speech-to-speech.d.ts +3 -0
  120. package/resources/speech-to-speech.d.ts.map +1 -1
  121. package/resources/speech-to-speech.js +3 -0
  122. package/resources/speech-to-speech.js.map +1 -1
  123. package/resources/speech-to-speech.mjs +3 -0
  124. package/resources/speech-to-speech.mjs.map +1 -1
  125. package/resources/tasks.d.mts +3 -0
  126. package/resources/tasks.d.mts.map +1 -1
  127. package/resources/tasks.d.ts +3 -0
  128. package/resources/tasks.d.ts.map +1 -1
  129. package/resources/tasks.js +3 -0
  130. package/resources/tasks.js.map +1 -1
  131. package/resources/tasks.mjs +3 -0
  132. package/resources/tasks.mjs.map +1 -1
  133. package/resources/text-to-image.d.mts +3 -0
  134. package/resources/text-to-image.d.mts.map +1 -1
  135. package/resources/text-to-image.d.ts +3 -0
  136. package/resources/text-to-image.d.ts.map +1 -1
  137. package/resources/text-to-image.js +3 -0
  138. package/resources/text-to-image.js.map +1 -1
  139. package/resources/text-to-image.mjs +3 -0
  140. package/resources/text-to-image.mjs.map +1 -1
  141. package/resources/text-to-speech.d.mts +3 -0
  142. package/resources/text-to-speech.d.mts.map +1 -1
  143. package/resources/text-to-speech.d.ts +3 -0
  144. package/resources/text-to-speech.d.ts.map +1 -1
  145. package/resources/text-to-speech.js +3 -0
  146. package/resources/text-to-speech.js.map +1 -1
  147. package/resources/text-to-speech.mjs +3 -0
  148. package/resources/text-to-speech.mjs.map +1 -1
  149. package/resources/text-to-video.d.mts +43 -1
  150. package/resources/text-to-video.d.mts.map +1 -1
  151. package/resources/text-to-video.d.ts +43 -1
  152. package/resources/text-to-video.d.ts.map +1 -1
  153. package/resources/text-to-video.js +3 -0
  154. package/resources/text-to-video.js.map +1 -1
  155. package/resources/text-to-video.mjs +3 -0
  156. package/resources/text-to-video.mjs.map +1 -1
  157. package/resources/video-to-video.d.mts +8 -5
  158. package/resources/video-to-video.d.mts.map +1 -1
  159. package/resources/video-to-video.d.ts +8 -5
  160. package/resources/video-to-video.d.ts.map +1 -1
  161. package/resources/video-to-video.js +3 -1
  162. package/resources/video-to-video.js.map +1 -1
  163. package/resources/video-to-video.mjs +3 -1
  164. package/resources/video-to-video.mjs.map +1 -1
  165. package/resources/voice-dubbing.d.mts +3 -0
  166. package/resources/voice-dubbing.d.mts.map +1 -1
  167. package/resources/voice-dubbing.d.ts +3 -0
  168. package/resources/voice-dubbing.d.ts.map +1 -1
  169. package/resources/voice-dubbing.js +3 -0
  170. package/resources/voice-dubbing.js.map +1 -1
  171. package/resources/voice-dubbing.mjs +3 -0
  172. package/resources/voice-dubbing.mjs.map +1 -1
  173. package/resources/voice-isolation.d.mts +3 -0
  174. package/resources/voice-isolation.d.mts.map +1 -1
  175. package/resources/voice-isolation.d.ts +3 -0
  176. package/resources/voice-isolation.d.ts.map +1 -1
  177. package/resources/voice-isolation.js +3 -0
  178. package/resources/voice-isolation.js.map +1 -1
  179. package/resources/voice-isolation.mjs +3 -0
  180. package/resources/voice-isolation.mjs.map +1 -1
  181. package/resources/voices.d.mts +257 -0
  182. package/resources/voices.d.mts.map +1 -0
  183. package/resources/voices.d.ts +257 -0
  184. package/resources/voices.d.ts.map +1 -0
  185. package/resources/voices.js +47 -0
  186. package/resources/voices.js.map +1 -0
  187. package/resources/voices.mjs +43 -0
  188. package/resources/voices.mjs.map +1 -0
  189. package/src/client.ts +173 -35
  190. package/src/core/pagination.ts +157 -0
  191. package/src/index.ts +1 -0
  192. package/src/internal/parse.ts +6 -0
  193. package/src/internal/utils/query.ts +23 -0
  194. package/src/internal/utils.ts +1 -0
  195. package/src/pagination.ts +2 -0
  196. package/src/resources/avatars.ts +2049 -0
  197. package/src/resources/character-performance.ts +3 -0
  198. package/src/resources/documents.ts +270 -0
  199. package/src/resources/image-to-video.ts +68 -0
  200. package/src/resources/index.ts +37 -5
  201. package/src/resources/organization.ts +7 -3
  202. package/src/resources/realtime-sessions.ts +251 -0
  203. package/src/resources/sound-effect.ts +3 -0
  204. package/src/resources/speech-to-speech.ts +3 -0
  205. package/src/resources/tasks.ts +3 -0
  206. package/src/resources/text-to-image.ts +3 -0
  207. package/src/resources/text-to-speech.ts +3 -0
  208. package/src/resources/text-to-video.ts +50 -0
  209. package/src/resources/video-to-video.ts +9 -6
  210. package/src/resources/voice-dubbing.ts +3 -0
  211. package/src/resources/voice-isolation.ts +3 -0
  212. package/src/resources/voices.ts +345 -0
  213. package/src/version.ts +1 -1
  214. package/version.d.mts +1 -1
  215. package/version.d.ts +1 -1
  216. package/version.js +1 -1
  217. package/version.mjs +1 -1
  218. package/resources/video-upscale.d.mts +0 -35
  219. package/resources/video-upscale.d.mts.map +0 -1
  220. package/resources/video-upscale.d.ts +0 -35
  221. package/resources/video-upscale.d.ts.map +0 -1
  222. package/resources/video-upscale.js +0 -25
  223. package/resources/video-upscale.js.map +0 -1
  224. package/resources/video-upscale.mjs +0 -21
  225. package/resources/video-upscale.mjs.map +0 -1
  226. package/src/resources/video-upscale.ts +0 -51
@@ -0,0 +1,209 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class Documents extends APIResource {
6
+ /**
7
+ * Create a new knowledge document. Documents can be attached to avatars to provide
8
+ * additional context during conversations.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const document = await client.documents.create({
13
+ * content:
14
+ * '# Product FAQ\n\n## What is your return policy?\n\nWe offer a 30-day return policy...',
15
+ * name: 'Product FAQ',
16
+ * });
17
+ * ```
18
+ */
19
+ create(body: DocumentCreateParams, options?: RequestOptions): APIPromise<DocumentCreateResponse>;
20
+ /**
21
+ * Get details of a specific knowledge document.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const document = await client.documents.retrieve(
26
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
27
+ * );
28
+ * ```
29
+ */
30
+ retrieve(id: string, options?: RequestOptions): APIPromise<DocumentRetrieveResponse>;
31
+ /**
32
+ * List knowledge documents for the authenticated user with cursor-based
33
+ * pagination.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * // Automatically fetches more pages as needed.
38
+ * for await (const documentListResponse of client.documents.list(
39
+ * { limit: 1 },
40
+ * )) {
41
+ * // ...
42
+ * }
43
+ * ```
44
+ */
45
+ list(query: DocumentListParams, options?: RequestOptions): PagePromise<DocumentListResponsesCursorPage, DocumentListResponse>;
46
+ /**
47
+ * Delete a knowledge document. This also removes it from all avatars it was
48
+ * attached to.
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * await client.documents.delete(
53
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
54
+ * );
55
+ * ```
56
+ */
57
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
58
+ }
59
+ export type DocumentListResponsesCursorPage = CursorPage<DocumentListResponse>;
60
+ export interface DocumentCreateResponse {
61
+ /**
62
+ * The unique identifier of the document.
63
+ */
64
+ id: string;
65
+ /**
66
+ * The full content of the document.
67
+ */
68
+ content: string;
69
+ /**
70
+ * When the document was created.
71
+ */
72
+ createdAt: string;
73
+ /**
74
+ * The name of the document.
75
+ */
76
+ name: string;
77
+ /**
78
+ * The type of document.
79
+ */
80
+ type: 'text' | 'file';
81
+ /**
82
+ * When the document was last updated.
83
+ */
84
+ updatedAt: string;
85
+ /**
86
+ * Avatars that use this document. Always empty for newly created documents.
87
+ */
88
+ usedBy: Array<DocumentCreateResponse.UsedBy>;
89
+ }
90
+ export declare namespace DocumentCreateResponse {
91
+ interface UsedBy {
92
+ /**
93
+ * The avatar ID.
94
+ */
95
+ id: string;
96
+ /**
97
+ * URL to the avatar image, or null if not yet processed.
98
+ */
99
+ imageUrl: string | null;
100
+ /**
101
+ * The avatar name.
102
+ */
103
+ name: string;
104
+ }
105
+ }
106
+ export interface DocumentRetrieveResponse {
107
+ /**
108
+ * The unique identifier of the document.
109
+ */
110
+ id: string;
111
+ /**
112
+ * The full content of the document.
113
+ */
114
+ content: string;
115
+ /**
116
+ * When the document was created.
117
+ */
118
+ createdAt: string;
119
+ /**
120
+ * The name of the document.
121
+ */
122
+ name: string;
123
+ /**
124
+ * The type of document.
125
+ */
126
+ type: 'text' | 'file';
127
+ /**
128
+ * When the document was last updated.
129
+ */
130
+ updatedAt: string;
131
+ /**
132
+ * Avatars that use this document.
133
+ */
134
+ usedBy: Array<DocumentRetrieveResponse.UsedBy>;
135
+ }
136
+ export declare namespace DocumentRetrieveResponse {
137
+ interface UsedBy {
138
+ /**
139
+ * The avatar ID.
140
+ */
141
+ id: string;
142
+ /**
143
+ * URL to the avatar image, or null if not yet processed.
144
+ */
145
+ imageUrl: string | null;
146
+ /**
147
+ * The avatar name.
148
+ */
149
+ name: string;
150
+ }
151
+ }
152
+ export interface DocumentListResponse {
153
+ /**
154
+ * The unique identifier of the document.
155
+ */
156
+ id: string;
157
+ /**
158
+ * When the document was created.
159
+ */
160
+ createdAt: string;
161
+ /**
162
+ * The name of the document.
163
+ */
164
+ name: string;
165
+ /**
166
+ * The type of document.
167
+ */
168
+ type: 'text' | 'file';
169
+ /**
170
+ * When the document was last updated.
171
+ */
172
+ updatedAt: string;
173
+ /**
174
+ * Avatars that use this document.
175
+ */
176
+ usedBy: Array<DocumentListResponse.UsedBy>;
177
+ }
178
+ export declare namespace DocumentListResponse {
179
+ interface UsedBy {
180
+ /**
181
+ * The avatar ID.
182
+ */
183
+ id: string;
184
+ /**
185
+ * URL to the avatar image, or null if not yet processed.
186
+ */
187
+ imageUrl: string | null;
188
+ /**
189
+ * The avatar name.
190
+ */
191
+ name: string;
192
+ }
193
+ }
194
+ export interface DocumentCreateParams {
195
+ /**
196
+ * The markdown or plain text content of the document.
197
+ */
198
+ content: string;
199
+ /**
200
+ * A descriptive name for the document.
201
+ */
202
+ name: string;
203
+ }
204
+ export interface DocumentListParams extends CursorPageParams {
205
+ }
206
+ export declare namespace Documents {
207
+ export { type DocumentCreateResponse as DocumentCreateResponse, type DocumentRetrieveResponse as DocumentRetrieveResponse, type DocumentListResponse as DocumentListResponse, type DocumentListResponsesCursorPage as DocumentListResponsesCursorPage, type DocumentCreateParams as DocumentCreateParams, type DocumentListParams as DocumentListParams, };
208
+ }
209
+ //# sourceMappingURL=documents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../src/resources/documents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIhG;;;;;;;;;OASG;IACH,QAAQ,CA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I,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Documents = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
7
+ const headers_1 = require("../internal/headers.js");
8
+ const path_1 = require("../internal/utils/path.js");
9
+ class Documents extends resource_1.APIResource {
10
+ /**
11
+ * Create a new knowledge document. Documents can be attached to avatars to provide
12
+ * additional context during conversations.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const document = await client.documents.create({
17
+ * content:
18
+ * '# Product FAQ\n\n## What is your return policy?\n\nWe offer a 30-day return policy...',
19
+ * name: 'Product FAQ',
20
+ * });
21
+ * ```
22
+ */
23
+ create(body, options) {
24
+ return this._client.post('/v1/documents', { body, ...options });
25
+ }
26
+ /**
27
+ * Get details of a specific knowledge document.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const document = await client.documents.retrieve(
32
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
33
+ * );
34
+ * ```
35
+ */
36
+ retrieve(id, options) {
37
+ return this._client.get((0, path_1.path) `/v1/documents/${id}`, options);
38
+ }
39
+ /**
40
+ * List knowledge documents for the authenticated user with cursor-based
41
+ * pagination.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * // Automatically fetches more pages as needed.
46
+ * for await (const documentListResponse of client.documents.list(
47
+ * { limit: 1 },
48
+ * )) {
49
+ * // ...
50
+ * }
51
+ * ```
52
+ */
53
+ list(query, options) {
54
+ return this._client.getAPIList('/v1/documents', (pagination_1.CursorPage), { query, ...options });
55
+ }
56
+ /**
57
+ * Delete a knowledge document. This also removes it from all avatars it was
58
+ * attached to.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * await client.documents.delete(
63
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
64
+ * );
65
+ * ```
66
+ */
67
+ delete(id, options) {
68
+ return this._client.delete((0, path_1.path) `/v1/documents/${id}`, {
69
+ ...options,
70
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
71
+ });
72
+ }
73
+ }
74
+ exports.Documents = Documents;
75
+ //# sourceMappingURL=documents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documents.js","sourceRoot":"","sources":["../src/resources/documents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AACpF,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,KAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,uBAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,EAAE,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAtED,8BAsEC"}
@@ -0,0 +1,71 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { CursorPage } from "../core/pagination.mjs";
4
+ import { buildHeaders } from "../internal/headers.mjs";
5
+ import { path } from "../internal/utils/path.mjs";
6
+ export class Documents extends APIResource {
7
+ /**
8
+ * Create a new knowledge document. Documents can be attached to avatars to provide
9
+ * additional context during conversations.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const document = await client.documents.create({
14
+ * content:
15
+ * '# Product FAQ\n\n## What is your return policy?\n\nWe offer a 30-day return policy...',
16
+ * name: 'Product FAQ',
17
+ * });
18
+ * ```
19
+ */
20
+ create(body, options) {
21
+ return this._client.post('/v1/documents', { body, ...options });
22
+ }
23
+ /**
24
+ * Get details of a specific knowledge document.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const document = await client.documents.retrieve(
29
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
30
+ * );
31
+ * ```
32
+ */
33
+ retrieve(id, options) {
34
+ return this._client.get(path `/v1/documents/${id}`, options);
35
+ }
36
+ /**
37
+ * List knowledge documents for the authenticated user with cursor-based
38
+ * pagination.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * // Automatically fetches more pages as needed.
43
+ * for await (const documentListResponse of client.documents.list(
44
+ * { limit: 1 },
45
+ * )) {
46
+ * // ...
47
+ * }
48
+ * ```
49
+ */
50
+ list(query, options) {
51
+ return this._client.getAPIList('/v1/documents', (CursorPage), { query, ...options });
52
+ }
53
+ /**
54
+ * Delete a knowledge document. This also removes it from all avatars it was
55
+ * attached to.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * await client.documents.delete(
60
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
61
+ * );
62
+ * ```
63
+ */
64
+ delete(id, options) {
65
+ return this._client.delete(path `/v1/documents/${id}`, {
66
+ ...options,
67
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
68
+ });
69
+ }
70
+ }
71
+ //# sourceMappingURL=documents.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documents.mjs","sourceRoot":"","sources":["../src/resources/documents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAClD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,KAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,UAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,6 +1,9 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
2
  import { RequestOptions } from "../internal/request-options.mjs";
3
3
  import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
4
+ /**
5
+ * These endpoints all kick off tasks to create generations.
6
+ */
4
7
  export declare class ImageToVideo extends APIResource {
5
8
  /**
6
9
  * This endpoint will start a new task to generate a video from an image.
@@ -22,8 +25,62 @@ export interface ImageToVideoCreateResponse {
22
25
  */
23
26
  id: string;
24
27
  }
25
- export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Veo3;
28
+ export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4_5 | ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Veo3;
26
29
  export declare namespace ImageToVideoCreateParams {
30
+ interface Gen4_5 {
31
+ /**
32
+ * The number of seconds of duration for the output video. Must be an integer from
33
+ * 2 to 10.
34
+ */
35
+ duration: number;
36
+ model: 'gen4.5';
37
+ /**
38
+ * A HTTPS URL.
39
+ */
40
+ promptImage: string | Array<Gen4_5.PromptImage>;
41
+ /**
42
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
43
+ * should describe in detail what should appear in the output.
44
+ */
45
+ promptText: string;
46
+ /**
47
+ * The resolution of the output video.
48
+ */
49
+ ratio: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672';
50
+ /**
51
+ * Settings that affect the behavior of the content moderation system.
52
+ */
53
+ contentModeration?: Gen4_5.ContentModeration;
54
+ /**
55
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
56
+ * get different results for the same other request parameters. Using the same seed
57
+ * integer for an identical request will produce similar results.
58
+ */
59
+ seed?: number;
60
+ }
61
+ namespace Gen4_5 {
62
+ interface PromptImage {
63
+ /**
64
+ * The position of the image in the output video. "first" will use the image as the
65
+ * first frame of the video.
66
+ */
67
+ position: 'first';
68
+ /**
69
+ * A HTTPS URL.
70
+ */
71
+ uri: string;
72
+ }
73
+ /**
74
+ * Settings that affect the behavior of the content moderation system.
75
+ */
76
+ interface ContentModeration {
77
+ /**
78
+ * When set to `low`, the content moderation system will be less strict about
79
+ * preventing generations that include recognizable public figures.
80
+ */
81
+ publicFigureThreshold?: 'auto' | 'low';
82
+ }
83
+ }
27
84
  interface Gen4Turbo {
28
85
  model: 'gen4_turbo';
29
86
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"image-to-video.d.mts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,SAAS,GAClC,wBAAwB,CAAC,MAAM,GAC/B,wBAAwB,CAAC,UAAU,GACnC,wBAAwB,CAAC,UAAU,GACnC,wBAAwB,CAAC,IAAI,CAAC;AAElC,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,UAAiB,SAAS;QACxB,KAAK,EAAE,YAAY,CAAC;QAEpB;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QAEnD;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU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"../internal/request-options.js";
3
3
  import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
4
+ /**
5
+ * These endpoints all kick off tasks to create generations.
6
+ */
4
7
  export declare class ImageToVideo extends APIResource {
5
8
  /**
6
9
  * This endpoint will start a new task to generate a video from an image.
@@ -22,8 +25,62 @@ export interface ImageToVideoCreateResponse {
22
25
  */
23
26
  id: string;
24
27
  }
25
- export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Veo3;
28
+ export type ImageToVideoCreateParams = ImageToVideoCreateParams.Gen4_5 | ImageToVideoCreateParams.Gen4Turbo | ImageToVideoCreateParams.Veo3_1 | ImageToVideoCreateParams.Gen3aTurbo | ImageToVideoCreateParams.Veo3_1Fast | ImageToVideoCreateParams.Veo3;
26
29
  export declare namespace ImageToVideoCreateParams {
30
+ interface Gen4_5 {
31
+ /**
32
+ * The number of seconds of duration for the output video. Must be an integer from
33
+ * 2 to 10.
34
+ */
35
+ duration: number;
36
+ model: 'gen4.5';
37
+ /**
38
+ * A HTTPS URL.
39
+ */
40
+ promptImage: string | Array<Gen4_5.PromptImage>;
41
+ /**
42
+ * A non-empty string up to 1000 characters (measured in UTF-16 code units). This
43
+ * should describe in detail what should appear in the output.
44
+ */
45
+ promptText: string;
46
+ /**
47
+ * The resolution of the output video.
48
+ */
49
+ ratio: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672';
50
+ /**
51
+ * Settings that affect the behavior of the content moderation system.
52
+ */
53
+ contentModeration?: Gen4_5.ContentModeration;
54
+ /**
55
+ * If unspecified, a random number is chosen. Varying the seed integer is a way to
56
+ * get different results for the same other request parameters. Using the same seed
57
+ * integer for an identical request will produce similar results.
58
+ */
59
+ seed?: number;
60
+ }
61
+ namespace Gen4_5 {
62
+ interface PromptImage {
63
+ /**
64
+ * The position of the image in the output video. "first" will use the image as the
65
+ * first frame of the video.
66
+ */
67
+ position: 'first';
68
+ /**
69
+ * A HTTPS URL.
70
+ */
71
+ uri: string;
72
+ }
73
+ /**
74
+ * Settings that affect the behavior of the content moderation system.
75
+ */
76
+ interface ContentModeration {
77
+ /**
78
+ * When set to `low`, the content moderation system will be less strict about
79
+ * preventing generations that include recognizable public figures.
80
+ */
81
+ publicFigureThreshold?: 'auto' | 'low';
82
+ }
83
+ }
27
84
  interface Gen4Turbo {
28
85
  model: 'gen4_turbo';
29
86
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"image-to-video.d.ts","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,0BAA0B,CAAC;CAK3D;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,wBAAwB,GAChC,wBAAwB,CAAC,SAAS,GAClC,wBAAwB,CAAC,MAAM,GAC/B,wBAAwB,CAAC,UAAU,GACnC,wBAAwB,CAAC,UAAU,GACnC,wBAAwB,CAAC,IAAI,CAAC;AAElC,MAAM,CAAC,OAAO,WAAW,wBAAwB,CAAC;IAChD,UAAiB,SAAS;QACxB,KAAK,EAAE,YAAY,CAAC;QAEpB;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QAEnD;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;QAElF;;WAEG;QACH,iBAAiB,CAAC,EAAE,SAAS,C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,GAAG,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;QAEpD;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAEhB;;WAEG;QACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAErB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,UAAU,CAAC;QAC1B,UAAiB,WAAW;YAC1B;;;;eAIG;YACH,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC;YAE3B;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;IAED,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,CAAC,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,WAAW,EAAE,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAE9C;;WAEG;QACH,KAAK,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC;QAE3D;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,WAAW;YAC1B;;;eAGG;YACH,QAAQ,EAAE,OAAO,CAAC;YAElB;;eAEG;YACH,GAAG,EAAE,MAAM,CAAC;SACb;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ImageToVideo = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  const polling_1 = require("../lib/polling.js");
7
+ /**
8
+ * These endpoints all kick off tasks to create generations.
9
+ */
7
10
  class ImageToVideo extends resource_1.APIResource {
8
11
  /**
9
12
  * This endpoint will start a new task to generate a video from an image.
@@ -1 +1 @@
1
- {"version":3,"file":"image-to-video.js","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AArBD,oCAqBC"}
1
+ {"version":3,"file":"image-to-video.js","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AArBD,oCAqBC"}
@@ -1,6 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  import { wrapAsWaitableResource } from "../lib/polling.mjs";
4
+ /**
5
+ * These endpoints all kick off tasks to create generations.
6
+ */
4
7
  export class ImageToVideo extends APIResource {
5
8
  /**
6
9
  * This endpoint will start a new task to generate a video from an image.
@@ -1 +1 @@
1
- {"version":3,"file":"image-to-video.mjs","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"image-to-video.mjs","sourceRoot":"","sources":["../src/resources/image-to-video.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAA8B,EAC9B,OAAwB;QAExB,OAAO,sBAAsB,CAA6B,IAAI,CAAC,OAAO,CAAC,CACrE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
@@ -1,6 +1,9 @@
1
+ export { Avatars, type AvatarCreateResponse, type AvatarRetrieveResponse, type AvatarUpdateResponse, type AvatarListResponse, type AvatarCreateParams, type AvatarUpdateParams, type AvatarListParams, type AvatarListResponsesCursorPage, } from "./avatars.mjs";
1
2
  export { CharacterPerformance, type CharacterPerformanceCreateResponse, type CharacterPerformanceCreateParams, } from "./character-performance.mjs";
3
+ export { Documents, type DocumentCreateResponse, type DocumentRetrieveResponse, type DocumentListResponse, type DocumentCreateParams, type DocumentListParams, type DocumentListResponsesCursorPage, } from "./documents.mjs";
2
4
  export { ImageToVideo, type ImageToVideoCreateResponse, type ImageToVideoCreateParams, } from "./image-to-video.mjs";
3
5
  export { Organization, type OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams, } from "./organization.mjs";
6
+ export { RealtimeSessions, type RealtimeSessionCreateResponse, type RealtimeSessionRetrieveResponse, type RealtimeSessionCreateParams, } from "./realtime-sessions.mjs";
4
7
  export { SoundEffect, type SoundEffectCreateResponse, type SoundEffectCreateParams } from "./sound-effect.mjs";
5
8
  export { SpeechToSpeech, type SpeechToSpeechCreateResponse, type SpeechToSpeechCreateParams, } from "./speech-to-speech.mjs";
6
9
  export { Tasks, type TaskRetrieveResponse } from "./tasks.mjs";
@@ -8,8 +11,8 @@ export { TextToImage, type TextToImageCreateResponse, type TextToImageCreatePara
8
11
  export { TextToSpeech, type TextToSpeechCreateResponse, type TextToSpeechCreateParams, } from "./text-to-speech.mjs";
9
12
  export { TextToVideo, type TextToVideoCreateResponse, type TextToVideoCreateParams } from "./text-to-video.mjs";
10
13
  export { VideoToVideo, type VideoToVideoCreateResponse, type VideoToVideoCreateParams, } from "./video-to-video.mjs";
11
- export { VideoUpscale, type VideoUpscaleCreateResponse, type VideoUpscaleCreateParams, } from "./video-upscale.mjs";
12
14
  export { VoiceDubbing, type VoiceDubbingCreateResponse, type VoiceDubbingCreateParams, } from "./voice-dubbing.mjs";
13
15
  export { VoiceIsolation, type VoiceIsolationCreateResponse, type VoiceIsolationCreateParams, } from "./voice-isolation.mjs";
16
+ export { Voices, type VoiceCreateResponse, type VoiceRetrieveResponse, type VoiceListResponse, type VoicePreviewResponse, type VoiceCreateParams, type VoiceListParams, type VoicePreviewParams, type VoiceListResponsesCursorPage, } from "./voices.mjs";
14
17
  export { Uploads, type UploadCreateEphemeralResponse, type UploadsCreateEphemeralParams } from "./uploads.mjs";
15
18
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE;OACpC,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,OAAO,EAAE,KAAK,6BAA6B,EAAE,KAAK,4BAA4B,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,GACnC;OACM,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,E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vatarRetrieveResponse, type AvatarUpdateResponse, type AvatarListResponse, type AvatarCreateParams, type AvatarUpdateParams, type AvatarListParams, type AvatarListResponsesCursorPage, } from "./avatars.js";
1
2
  export { CharacterPerformance, type CharacterPerformanceCreateResponse, type CharacterPerformanceCreateParams, } from "./character-performance.js";
3
+ export { Documents, type DocumentCreateResponse, type DocumentRetrieveResponse, type DocumentListResponse, type DocumentCreateParams, type DocumentListParams, type DocumentListResponsesCursorPage, } from "./documents.js";
2
4
  export { ImageToVideo, type ImageToVideoCreateResponse, type ImageToVideoCreateParams, } from "./image-to-video.js";
3
5
  export { Organization, type OrganizationRetrieveResponse, type OrganizationRetrieveUsageResponse, type OrganizationRetrieveUsageParams, } from "./organization.js";
6
+ export { RealtimeSessions, type RealtimeSessionCreateResponse, type RealtimeSessionRetrieveResponse, type RealtimeSessionCreateParams, } from "./realtime-sessions.js";
4
7
  export { SoundEffect, type SoundEffectCreateResponse, type SoundEffectCreateParams } from "./sound-effect.js";
5
8
  export { SpeechToSpeech, type SpeechToSpeechCreateResponse, type SpeechToSpeechCreateParams, } from "./speech-to-speech.js";
6
9
  export { Tasks, type TaskRetrieveResponse } from "./tasks.js";
@@ -8,8 +11,8 @@ export { TextToImage, type TextToImageCreateResponse, type TextToImageCreatePara
8
11
  export { TextToSpeech, type TextToSpeechCreateResponse, type TextToSpeechCreateParams, } from "./text-to-speech.js";
9
12
  export { TextToVideo, type TextToVideoCreateResponse, type TextToVideoCreateParams } from "./text-to-video.js";
10
13
  export { VideoToVideo, type VideoToVideoCreateResponse, type VideoToVideoCreateParams, } from "./video-to-video.js";
11
- export { VideoUpscale, type VideoUpscaleCreateResponse, type VideoUpscaleCreateParams, } from "./video-upscale.js";
12
14
  export { VoiceDubbing, type VoiceDubbingCreateResponse, type VoiceDubbingCreateParams, } from "./voice-dubbing.js";
13
15
  export { VoiceIsolation, type VoiceIsolationCreateResponse, type VoiceIsolationCreateParams, } from "./voice-isolation.js";
16
+ export { Voices, type VoiceCreateResponse, type VoiceRetrieveResponse, type VoiceListResponse, type VoicePreviewResponse, type VoiceCreateParams, type VoiceListParams, type VoicePreviewParams, type VoiceListResponsesCursorPage, } from "./voices.js";
14
17
  export { Uploads, type UploadCreateEphemeralResponse, type UploadsCreateEphemeralParams } from "./uploads.js";
15
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,oBAAoB,EACpB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,GACrC;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE;OACpC,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,uBAAuB,EAAE;OAC7E,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,cAAc,EACd,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EAAE,OAAO,EAAE,KAAK,6BAA6B,EAAE,KAAK,4BAA4B,EAAE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"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