twelvelabs-js 1.2.3 → 1.2.4

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 (192) hide show
  1. package/Client.d.ts +14 -38
  2. package/Client.js +22 -42
  3. package/api/client/requests/AnalyzeRequest.d.ts +42 -29
  4. package/api/client/requests/AnalyzeStreamRequest.d.ts +42 -29
  5. package/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +61 -4
  6. package/api/resources/analyzeAsync/resources/tasks/client/Client.js +73 -13
  7. package/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +111 -9
  8. package/api/resources/analyzeAsync/resources/tasks/client/requests/TasksListRequest.d.ts +8 -2
  9. package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +7 -2
  10. package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +1 -0
  11. package/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +4 -2
  12. package/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +2 -1
  13. package/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +1 -0
  14. package/api/resources/assets/client/Client.d.ts +4 -1
  15. package/api/resources/assets/client/Client.js +12 -9
  16. package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -1
  17. package/api/resources/embed/client/Client.js +2 -2
  18. package/api/resources/embed/resources/tasks/client/Client.js +8 -8
  19. package/api/resources/embed/resources/v2/client/Client.js +2 -2
  20. package/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +1 -1
  21. package/api/resources/embed/resources/v2/resources/tasks/client/Client.js +7 -7
  22. package/api/resources/entityCollections/client/Client.js +10 -10
  23. package/api/resources/entityCollections/resources/entities/client/Client.js +18 -18
  24. package/api/resources/indexes/client/Client.js +10 -10
  25. package/api/resources/indexes/resources/indexedAssets/client/Client.js +12 -12
  26. package/api/resources/indexes/resources/videos/client/Client.js +8 -8
  27. package/api/resources/multipartUpload/client/Client.d.ts +2 -2
  28. package/api/resources/multipartUpload/client/Client.js +12 -12
  29. package/api/resources/search/client/Client.js +4 -4
  30. package/api/resources/tasks/client/Client.js +8 -8
  31. package/api/resources/tasks/resources/transfers/client/Client.js +6 -6
  32. package/api/types/AnalyzePromptV2.d.ts +13 -0
  33. package/api/types/AnalyzePromptV2.js +5 -0
  34. package/api/types/AnalyzeRequestModelName.d.ts +15 -0
  35. package/api/types/AnalyzeRequestModelName.js +10 -0
  36. package/api/types/AnalyzeStreamRequestModelName.d.ts +15 -0
  37. package/api/types/AnalyzeStreamRequestModelName.js +10 -0
  38. package/api/types/AnalyzeTaskResponse.d.ts +3 -1
  39. package/api/types/AnalyzeTaskResponseRequestParams.d.ts +20 -2
  40. package/api/types/AnalyzeTaskResponseRequestParamsPromptV2.d.ts +16 -0
  41. package/api/types/AnalyzeTaskResponseRequestParamsPromptV2.js +5 -0
  42. package/api/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.d.ts +11 -0
  43. package/api/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.js +5 -0
  44. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +14 -1
  45. package/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +2 -0
  46. package/api/types/AnalyzeTaskResponseVideoSource.d.ts +2 -0
  47. package/api/types/AnalyzeTaskResultUsage.d.ts +1 -1
  48. package/api/types/AnalyzeTimeRange.d.ts +12 -0
  49. package/api/types/AnalyzeTimeRange.js +5 -0
  50. package/api/types/AsyncResponseFormat.d.ts +34 -6
  51. package/api/types/SegmentDefinition.d.ts +11 -0
  52. package/api/types/SyncResponseFormat.d.ts +25 -6
  53. package/api/types/TokenUsage.d.ts +3 -1
  54. package/api/types/index.d.ts +6 -0
  55. package/api/types/index.js +6 -0
  56. package/dist/Client.d.ts +14 -38
  57. package/dist/Client.js +22 -42
  58. package/dist/api/client/requests/AnalyzeRequest.d.ts +42 -29
  59. package/dist/api/client/requests/AnalyzeStreamRequest.d.ts +42 -29
  60. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.d.ts +61 -4
  61. package/dist/api/resources/analyzeAsync/resources/tasks/client/Client.js +73 -13
  62. package/dist/api/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +111 -9
  63. package/dist/api/resources/analyzeAsync/resources/tasks/client/requests/TasksListRequest.d.ts +8 -2
  64. package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +7 -2
  65. package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +1 -0
  66. package/dist/api/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestModelName.d.ts +4 -2
  67. package/dist/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +2 -1
  68. package/dist/api/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +1 -0
  69. package/dist/api/resources/assets/client/Client.d.ts +4 -1
  70. package/dist/api/resources/assets/client/Client.js +12 -9
  71. package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -1
  72. package/dist/api/resources/embed/client/Client.js +2 -2
  73. package/dist/api/resources/embed/resources/tasks/client/Client.js +8 -8
  74. package/dist/api/resources/embed/resources/v2/client/Client.js +2 -2
  75. package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.d.ts +1 -1
  76. package/dist/api/resources/embed/resources/v2/resources/tasks/client/Client.js +7 -7
  77. package/dist/api/resources/entityCollections/client/Client.js +10 -10
  78. package/dist/api/resources/entityCollections/resources/entities/client/Client.js +18 -18
  79. package/dist/api/resources/indexes/client/Client.js +10 -10
  80. package/dist/api/resources/indexes/resources/indexedAssets/client/Client.js +12 -12
  81. package/dist/api/resources/indexes/resources/videos/client/Client.js +8 -8
  82. package/dist/api/resources/multipartUpload/client/Client.d.ts +2 -2
  83. package/dist/api/resources/multipartUpload/client/Client.js +12 -12
  84. package/dist/api/resources/search/client/Client.js +4 -4
  85. package/dist/api/resources/tasks/client/Client.js +8 -8
  86. package/dist/api/resources/tasks/resources/transfers/client/Client.js +6 -6
  87. package/dist/api/types/AnalyzePromptV2.d.ts +13 -0
  88. package/dist/api/types/AnalyzePromptV2.js +5 -0
  89. package/dist/api/types/AnalyzeRequestModelName.d.ts +15 -0
  90. package/dist/api/types/AnalyzeRequestModelName.js +10 -0
  91. package/dist/api/types/AnalyzeStreamRequestModelName.d.ts +15 -0
  92. package/dist/api/types/AnalyzeStreamRequestModelName.js +10 -0
  93. package/dist/api/types/AnalyzeTaskResponse.d.ts +3 -1
  94. package/dist/api/types/AnalyzeTaskResponseRequestParams.d.ts +20 -2
  95. package/dist/api/types/AnalyzeTaskResponseRequestParamsPromptV2.d.ts +16 -0
  96. package/dist/api/types/AnalyzeTaskResponseRequestParamsPromptV2.js +5 -0
  97. package/dist/api/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.d.ts +11 -0
  98. package/dist/api/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.js +5 -0
  99. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +14 -1
  100. package/dist/api/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +2 -0
  101. package/dist/api/types/AnalyzeTaskResponseVideoSource.d.ts +2 -0
  102. package/dist/api/types/AnalyzeTaskResultUsage.d.ts +1 -1
  103. package/dist/api/types/AnalyzeTimeRange.d.ts +12 -0
  104. package/dist/api/types/AnalyzeTimeRange.js +5 -0
  105. package/dist/api/types/AsyncResponseFormat.d.ts +34 -6
  106. package/dist/api/types/SegmentDefinition.d.ts +11 -0
  107. package/dist/api/types/SyncResponseFormat.d.ts +25 -6
  108. package/dist/api/types/TokenUsage.d.ts +3 -1
  109. package/dist/api/types/index.d.ts +6 -0
  110. package/dist/api/types/index.js +6 -0
  111. package/dist/serialization/client/requests/AnalyzeRequest.d.ts +8 -3
  112. package/dist/serialization/client/requests/AnalyzeRequest.js +8 -3
  113. package/dist/serialization/client/requests/AnalyzeStreamRequest.d.ts +8 -3
  114. package/dist/serialization/client/requests/AnalyzeStreamRequest.js +8 -3
  115. package/dist/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +5 -0
  116. package/dist/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.js +5 -0
  117. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +1 -1
  118. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +1 -1
  119. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +1 -1
  120. package/dist/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +1 -1
  121. package/dist/serialization/types/AnalyzePromptV2.d.ts +14 -0
  122. package/dist/serialization/types/AnalyzePromptV2.js +45 -0
  123. package/dist/serialization/types/AnalyzeRequestModelName.d.ts +10 -0
  124. package/dist/serialization/types/AnalyzeRequestModelName.js +41 -0
  125. package/dist/serialization/types/AnalyzeStreamRequestModelName.d.ts +10 -0
  126. package/dist/serialization/types/AnalyzeStreamRequestModelName.js +41 -0
  127. package/dist/serialization/types/AnalyzeTaskResponse.d.ts +1 -0
  128. package/dist/serialization/types/AnalyzeTaskResponse.js +1 -0
  129. package/dist/serialization/types/AnalyzeTaskResponseRequestParams.d.ts +5 -0
  130. package/dist/serialization/types/AnalyzeTaskResponseRequestParams.js +5 -0
  131. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2.d.ts +14 -0
  132. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2.js +45 -0
  133. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.d.ts +15 -0
  134. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.js +46 -0
  135. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +1 -0
  136. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.js +1 -0
  137. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +2 -0
  138. package/dist/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.js +2 -0
  139. package/dist/serialization/types/AnalyzeTaskResponseVideoSource.d.ts +1 -0
  140. package/dist/serialization/types/AnalyzeTaskResponseVideoSource.js +1 -0
  141. package/dist/serialization/types/AnalyzeTimeRange.d.ts +13 -0
  142. package/dist/serialization/types/AnalyzeTimeRange.js +44 -0
  143. package/dist/serialization/types/SegmentDefinition.d.ts +2 -0
  144. package/dist/serialization/types/SegmentDefinition.js +2 -0
  145. package/dist/serialization/types/TokenUsage.d.ts +2 -1
  146. package/dist/serialization/types/TokenUsage.js +2 -1
  147. package/dist/serialization/types/index.d.ts +6 -0
  148. package/dist/serialization/types/index.js +6 -0
  149. package/dist/version.d.ts +1 -1
  150. package/dist/version.js +1 -1
  151. package/package.json +1 -1
  152. package/reference.md +21 -40
  153. package/serialization/client/requests/AnalyzeRequest.d.ts +8 -3
  154. package/serialization/client/requests/AnalyzeRequest.js +8 -3
  155. package/serialization/client/requests/AnalyzeStreamRequest.d.ts +8 -3
  156. package/serialization/client/requests/AnalyzeStreamRequest.js +8 -3
  157. package/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.d.ts +5 -0
  158. package/serialization/resources/analyzeAsync/resources/tasks/client/requests/CreateAsyncAnalyzeRequest.js +5 -0
  159. package/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.d.ts +1 -1
  160. package/serialization/resources/analyzeAsync/resources/tasks/types/CreateAsyncAnalyzeRequestAnalysisMode.js +1 -1
  161. package/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.d.ts +1 -1
  162. package/serialization/resources/analyzeAsync/resources/tasks/types/TasksListRequestAnalysisMode.js +1 -1
  163. package/serialization/types/AnalyzePromptV2.d.ts +14 -0
  164. package/serialization/types/AnalyzePromptV2.js +45 -0
  165. package/serialization/types/AnalyzeRequestModelName.d.ts +10 -0
  166. package/serialization/types/AnalyzeRequestModelName.js +41 -0
  167. package/serialization/types/AnalyzeStreamRequestModelName.d.ts +10 -0
  168. package/serialization/types/AnalyzeStreamRequestModelName.js +41 -0
  169. package/serialization/types/AnalyzeTaskResponse.d.ts +1 -0
  170. package/serialization/types/AnalyzeTaskResponse.js +1 -0
  171. package/serialization/types/AnalyzeTaskResponseRequestParams.d.ts +5 -0
  172. package/serialization/types/AnalyzeTaskResponseRequestParams.js +5 -0
  173. package/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2.d.ts +14 -0
  174. package/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2.js +45 -0
  175. package/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.d.ts +15 -0
  176. package/serialization/types/AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.js +46 -0
  177. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.d.ts +1 -0
  178. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormat.js +1 -0
  179. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.d.ts +2 -0
  180. package/serialization/types/AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItem.js +2 -0
  181. package/serialization/types/AnalyzeTaskResponseVideoSource.d.ts +1 -0
  182. package/serialization/types/AnalyzeTaskResponseVideoSource.js +1 -0
  183. package/serialization/types/AnalyzeTimeRange.d.ts +13 -0
  184. package/serialization/types/AnalyzeTimeRange.js +44 -0
  185. package/serialization/types/SegmentDefinition.d.ts +2 -0
  186. package/serialization/types/SegmentDefinition.js +2 -0
  187. package/serialization/types/TokenUsage.d.ts +2 -1
  188. package/serialization/types/TokenUsage.js +2 -1
  189. package/serialization/types/index.d.ts +6 -0
  190. package/serialization/types/index.js +6 -0
  191. package/version.d.ts +1 -1
  192. package/version.js +1 -1
@@ -24,23 +24,30 @@ export interface SyncResponseFormat {
24
24
  *
25
25
  * | Type | Supported keywords | Notes |
26
26
  * |------|-------------------|-------|
27
- * | `integer` | `maximum`, `exclusiveMaximum`, `minimum`, `exclusiveMinimum`. | - `maximum`: Sets the highest allowed value (inclusive).<br/>- `exclusiveMaximum`: Sets the highest allowed value (exclusive).<br/>-`minimum`: Sets the lowest allowed value (inclusive).<br/>- `exclusiveMinimum`: Sets the lowest allowed value (exclusive).<br/>These constraints are supported only for the `integer` type. |
27
+ * | `integer` | `maximum`, `exclusiveMaximum`, `minimum`, `exclusiveMinimum`. | - `maximum`: Sets the highest allowed value (inclusive).<br/>- `exclusiveMaximum`: Sets the highest allowed value (exclusive).<br/>- `minimum`: Sets the lowest allowed value (inclusive).<br/>- `exclusiveMinimum`: Sets the lowest allowed value (exclusive).<br/>These constraints are supported only for the `integer` type. |
28
28
  * | `string` | `pattern`, `format` | - `pattern`: A regular expression that the string must match.<br/>- `format`: Validates predefined formats. It accepts the following values: `uuid`, `date-time`, `date`, and `time`.<br/>See string limitations below. |
29
29
  * | `object` | `properties`, `required` | - `properties`: Defines object properties and their schemas. - `required`: Specifies mandatory properties.<br/>See object limitations below. |
30
- * | `array` | `items`, `minItems` | `minItems` accepts only `0` or `1` |
30
+ * | `array` | `items`, `minItems` | `minItems` accepts only `0` or `1`.<br/>See array limitations below. |
31
31
  *
32
32
  *
33
33
  * **String limitations**
34
34
  *
35
- * The platform validates strings using the `pattern` and `format` constraints only. When you include `minLength` or `maxLength` keywords in your schema, the platform returns an error: "String length constraints (minLength) are not supported."
35
+ * When you use the `string` type:
36
+ * - The platform validates strings using only `pattern` and `format`. Including `minLength` or `maxLength` causes a 422 error: "String length constraints (minLength) are not supported." Remove these keywords from your schema.
36
37
  *
37
38
  *
38
39
  * **Object limitations**
39
40
  *
40
41
  * When you use the `object` type:
41
- * - The platform always ignores the `additionalProperties` setting.
42
- * - The sequence of the properties is fixed.
43
- * - The first property should be required. If the first property is optional, the platform moves the first required property to the first position.
42
+ * - The platform does not support the `additionalProperties` keyword. Including it causes a 422 error. Remove it from your schema.
43
+ * - The platform returns properties in declaration order.
44
+ * - Make the first property required. If the first property is optional, the platform moves the first required property to the beginning.
45
+ *
46
+ *
47
+ * **Array limitations**
48
+ *
49
+ * When you use the `array` type:
50
+ * - The platform does not support `uniqueItems` or `maxItems`. Including either keyword causes a 422 error. Remove them from your schema.
44
51
  *
45
52
  *
46
53
  * **Constant and enumerated values**
@@ -70,6 +77,18 @@ export interface SyncResponseFormat {
70
77
  * For details, see the [JSON Schema documentation on $defs](https://json-schema.org/understanding-json-schema/structuring#defs).
71
78
  *
72
79
  *
80
+ * **Reserved property names (`start_time` / `end_time`)**
81
+ *
82
+ * For `pegasus1.5`, properties named `start_time` or `end_time` in your response schema receive special type handling. These are unrelated to the top-level `start_time` / `end_time` request parameters. The model outputs these values as floating-point seconds, and the platform converts them based on the declared type at any nesting depth (including inside array `items`):
83
+ *
84
+ * | Declared type | Platform behavior |
85
+ * |---------------|-------------------|
86
+ * | `number` | Passes the value through without conversion. |
87
+ * | `integer` | Rounds the value to the nearest integer before returning it. |
88
+ * | `string` (no `format`) | Converts the value to the `hh:mm:ss.fff` format. |
89
+ *
90
+ * All other property names in your schema remain unconstrained by these rules.
91
+ *
73
92
  *
74
93
  * **Response validation**
75
94
  *
@@ -6,5 +6,7 @@
6
6
  */
7
7
  export interface TokenUsage {
8
8
  /** The number of tokens in the generated text. */
9
- outputTokens?: number;
9
+ outputTokens: number;
10
+ /** The number of tokens consumed by the input (prompt and video). Omitted for Pegasus 1.5. */
11
+ inputTokens?: number;
10
12
  }
@@ -13,6 +13,8 @@ export * from "./VideosListRequestHeight";
13
13
  export * from "./VideosListRequestSize";
14
14
  export * from "./ConflictErrorBody";
15
15
  export * from "./ForbiddenErrorBody";
16
+ export * from "./AnalyzeStreamRequestModelName";
17
+ export * from "./AnalyzeRequestModelName";
16
18
  export * from "./Url";
17
19
  export * from "./One";
18
20
  export * from "./Two";
@@ -131,6 +133,8 @@ export * from "./AsyncResponseFormat";
131
133
  export * from "./SyncResponseFormatType";
132
134
  export * from "./SyncResponseFormat";
133
135
  export * from "./SegmentDefinition";
136
+ export * from "./AnalyzePromptV2";
137
+ export * from "./AnalyzeTimeRange";
134
138
  export * from "./SegmentFieldType";
135
139
  export * from "./SegmentFieldItemsType";
136
140
  export * from "./SegmentFieldItems";
@@ -145,6 +149,8 @@ export * from "./AnalyzeTaskResponseVideoSourceType";
145
149
  export * from "./AnalyzeTaskResponseVideoSourceSystemMetadata";
146
150
  export * from "./AnalyzeTaskResponseVideoSource";
147
151
  export * from "./AnalyzeTaskResponseRequestParamsAnalysisMode";
152
+ export * from "./AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem";
153
+ export * from "./AnalyzeTaskResponseRequestParamsPromptV2";
148
154
  export * from "./AnalyzeTaskResponseRequestParamsResponseFormatType";
149
155
  export * from "./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems";
150
156
  export * from "./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem";
@@ -29,6 +29,8 @@ __exportStar(require("./VideosListRequestHeight"), exports);
29
29
  __exportStar(require("./VideosListRequestSize"), exports);
30
30
  __exportStar(require("./ConflictErrorBody"), exports);
31
31
  __exportStar(require("./ForbiddenErrorBody"), exports);
32
+ __exportStar(require("./AnalyzeStreamRequestModelName"), exports);
33
+ __exportStar(require("./AnalyzeRequestModelName"), exports);
32
34
  __exportStar(require("./Url"), exports);
33
35
  __exportStar(require("./One"), exports);
34
36
  __exportStar(require("./Two"), exports);
@@ -147,6 +149,8 @@ __exportStar(require("./AsyncResponseFormat"), exports);
147
149
  __exportStar(require("./SyncResponseFormatType"), exports);
148
150
  __exportStar(require("./SyncResponseFormat"), exports);
149
151
  __exportStar(require("./SegmentDefinition"), exports);
152
+ __exportStar(require("./AnalyzePromptV2"), exports);
153
+ __exportStar(require("./AnalyzeTimeRange"), exports);
150
154
  __exportStar(require("./SegmentFieldType"), exports);
151
155
  __exportStar(require("./SegmentFieldItemsType"), exports);
152
156
  __exportStar(require("./SegmentFieldItems"), exports);
@@ -161,6 +165,8 @@ __exportStar(require("./AnalyzeTaskResponseVideoSourceType"), exports);
161
165
  __exportStar(require("./AnalyzeTaskResponseVideoSourceSystemMetadata"), exports);
162
166
  __exportStar(require("./AnalyzeTaskResponseVideoSource"), exports);
163
167
  __exportStar(require("./AnalyzeTaskResponseRequestParamsAnalysisMode"), exports);
168
+ __exportStar(require("./AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem"), exports);
169
+ __exportStar(require("./AnalyzeTaskResponseRequestParamsPromptV2"), exports);
164
170
  __exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatType"), exports);
165
171
  __exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItemItems"), exports);
166
172
  __exportStar(require("./AnalyzeTaskResponseRequestParamsResponseFormatSegmentDefinitionsItemFieldsItem"), exports);
@@ -4,19 +4,24 @@
4
4
  import * as serializers from "../../index";
5
5
  import * as TwelvelabsApi from "../../../api/index";
6
6
  import * as core from "../../../core";
7
+ import { AnalyzeRequestModelName } from "../../types/AnalyzeRequestModelName";
7
8
  import { VideoContext } from "../../types/VideoContext";
8
9
  import { AnalyzeTextPrompt } from "../../types/AnalyzeTextPrompt";
10
+ import { AnalyzePromptV2 } from "../../types/AnalyzePromptV2";
9
11
  import { AnalyzeTemperature } from "../../types/AnalyzeTemperature";
10
12
  import { SyncResponseFormat } from "../../types/SyncResponseFormat";
11
- import { AnalyzeMaxTokens } from "../../types/AnalyzeMaxTokens";
12
13
  export declare const AnalyzeRequest: core.serialization.Schema<serializers.AnalyzeRequest.Raw, TwelvelabsApi.AnalyzeRequest>;
13
14
  export declare namespace AnalyzeRequest {
14
15
  interface Raw {
16
+ model_name?: AnalyzeRequestModelName.Raw | null;
15
17
  video_id?: string | null;
16
18
  video?: VideoContext.Raw | null;
17
- prompt: AnalyzeTextPrompt.Raw;
19
+ prompt?: AnalyzeTextPrompt.Raw | null;
20
+ prompt_v2?: AnalyzePromptV2.Raw | null;
18
21
  temperature?: AnalyzeTemperature.Raw | null;
19
22
  response_format?: SyncResponseFormat.Raw | null;
20
- max_tokens?: AnalyzeMaxTokens.Raw | null;
23
+ max_tokens?: number | null;
24
+ start_time?: number | null;
25
+ end_time?: number | null;
21
26
  }
22
27
  }
@@ -38,16 +38,21 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.AnalyzeRequest = void 0;
40
40
  const core = __importStar(require("../../../core"));
41
+ const AnalyzeRequestModelName_1 = require("../../types/AnalyzeRequestModelName");
41
42
  const VideoContext_1 = require("../../types/VideoContext");
42
43
  const AnalyzeTextPrompt_1 = require("../../types/AnalyzeTextPrompt");
44
+ const AnalyzePromptV2_1 = require("../../types/AnalyzePromptV2");
43
45
  const AnalyzeTemperature_1 = require("../../types/AnalyzeTemperature");
44
46
  const SyncResponseFormat_1 = require("../../types/SyncResponseFormat");
45
- const AnalyzeMaxTokens_1 = require("../../types/AnalyzeMaxTokens");
46
47
  exports.AnalyzeRequest = core.serialization.object({
48
+ modelName: core.serialization.property("model_name", AnalyzeRequestModelName_1.AnalyzeRequestModelName.optional()),
47
49
  videoId: core.serialization.property("video_id", core.serialization.string().optional()),
48
50
  video: VideoContext_1.VideoContext.optional(),
49
- prompt: AnalyzeTextPrompt_1.AnalyzeTextPrompt,
51
+ prompt: AnalyzeTextPrompt_1.AnalyzeTextPrompt.optional(),
52
+ promptV2: core.serialization.property("prompt_v2", AnalyzePromptV2_1.AnalyzePromptV2.optional()),
50
53
  temperature: AnalyzeTemperature_1.AnalyzeTemperature.optional(),
51
54
  responseFormat: core.serialization.property("response_format", SyncResponseFormat_1.SyncResponseFormat.optional()),
52
- maxTokens: core.serialization.property("max_tokens", AnalyzeMaxTokens_1.AnalyzeMaxTokens.optional()),
55
+ maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
56
+ startTime: core.serialization.property("start_time", core.serialization.number().optional()),
57
+ endTime: core.serialization.property("end_time", core.serialization.number().optional()),
53
58
  });
@@ -4,19 +4,24 @@
4
4
  import * as serializers from "../../index";
5
5
  import * as TwelvelabsApi from "../../../api/index";
6
6
  import * as core from "../../../core";
7
+ import { AnalyzeStreamRequestModelName } from "../../types/AnalyzeStreamRequestModelName";
7
8
  import { VideoContext } from "../../types/VideoContext";
8
9
  import { AnalyzeTextPrompt } from "../../types/AnalyzeTextPrompt";
10
+ import { AnalyzePromptV2 } from "../../types/AnalyzePromptV2";
9
11
  import { AnalyzeTemperature } from "../../types/AnalyzeTemperature";
10
12
  import { SyncResponseFormat } from "../../types/SyncResponseFormat";
11
- import { AnalyzeMaxTokens } from "../../types/AnalyzeMaxTokens";
12
13
  export declare const AnalyzeStreamRequest: core.serialization.Schema<serializers.AnalyzeStreamRequest.Raw, TwelvelabsApi.AnalyzeStreamRequest>;
13
14
  export declare namespace AnalyzeStreamRequest {
14
15
  interface Raw {
16
+ model_name?: AnalyzeStreamRequestModelName.Raw | null;
15
17
  video_id?: string | null;
16
18
  video?: VideoContext.Raw | null;
17
- prompt: AnalyzeTextPrompt.Raw;
19
+ prompt?: AnalyzeTextPrompt.Raw | null;
20
+ prompt_v2?: AnalyzePromptV2.Raw | null;
18
21
  temperature?: AnalyzeTemperature.Raw | null;
19
22
  response_format?: SyncResponseFormat.Raw | null;
20
- max_tokens?: AnalyzeMaxTokens.Raw | null;
23
+ max_tokens?: number | null;
24
+ start_time?: number | null;
25
+ end_time?: number | null;
21
26
  }
22
27
  }
@@ -38,16 +38,21 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.AnalyzeStreamRequest = void 0;
40
40
  const core = __importStar(require("../../../core"));
41
+ const AnalyzeStreamRequestModelName_1 = require("../../types/AnalyzeStreamRequestModelName");
41
42
  const VideoContext_1 = require("../../types/VideoContext");
42
43
  const AnalyzeTextPrompt_1 = require("../../types/AnalyzeTextPrompt");
44
+ const AnalyzePromptV2_1 = require("../../types/AnalyzePromptV2");
43
45
  const AnalyzeTemperature_1 = require("../../types/AnalyzeTemperature");
44
46
  const SyncResponseFormat_1 = require("../../types/SyncResponseFormat");
45
- const AnalyzeMaxTokens_1 = require("../../types/AnalyzeMaxTokens");
46
47
  exports.AnalyzeStreamRequest = core.serialization.object({
48
+ modelName: core.serialization.property("model_name", AnalyzeStreamRequestModelName_1.AnalyzeStreamRequestModelName.optional()),
47
49
  videoId: core.serialization.property("video_id", core.serialization.string().optional()),
48
50
  video: VideoContext_1.VideoContext.optional(),
49
- prompt: AnalyzeTextPrompt_1.AnalyzeTextPrompt,
51
+ prompt: AnalyzeTextPrompt_1.AnalyzeTextPrompt.optional(),
52
+ promptV2: core.serialization.property("prompt_v2", AnalyzePromptV2_1.AnalyzePromptV2.optional()),
50
53
  temperature: AnalyzeTemperature_1.AnalyzeTemperature.optional(),
51
54
  responseFormat: core.serialization.property("response_format", SyncResponseFormat_1.SyncResponseFormat.optional()),
52
- maxTokens: core.serialization.property("max_tokens", AnalyzeMaxTokens_1.AnalyzeMaxTokens.optional()),
55
+ maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
56
+ startTime: core.serialization.property("start_time", core.serialization.number().optional()),
57
+ endTime: core.serialization.property("end_time", core.serialization.number().optional()),
53
58
  });
@@ -6,6 +6,7 @@ import * as TwelvelabsApi from "../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../core";
7
7
  import { CreateAsyncAnalyzeRequestModelName } from "../../types/CreateAsyncAnalyzeRequestModelName";
8
8
  import { VideoContext } from "../../../../../../types/VideoContext";
9
+ import { AnalyzePromptV2 } from "../../../../../../types/AnalyzePromptV2";
9
10
  import { CreateAsyncAnalyzeRequestAnalysisMode } from "../../types/CreateAsyncAnalyzeRequestAnalysisMode";
10
11
  import { AnalyzeTemperature } from "../../../../../../types/AnalyzeTemperature";
11
12
  import { AsyncResponseFormat } from "../../../../../../types/AsyncResponseFormat";
@@ -13,13 +14,17 @@ export declare const CreateAsyncAnalyzeRequest: core.serialization.Schema<serial
13
14
  export declare namespace CreateAsyncAnalyzeRequest {
14
15
  interface Raw {
15
16
  model_name?: CreateAsyncAnalyzeRequestModelName.Raw | null;
17
+ custom_id?: string | null;
16
18
  video: VideoContext.Raw;
17
19
  prompt?: string | null;
20
+ prompt_v2?: AnalyzePromptV2.Raw | null;
18
21
  analysis_mode?: CreateAsyncAnalyzeRequestAnalysisMode.Raw | null;
19
22
  temperature?: AnalyzeTemperature.Raw | null;
20
23
  max_tokens?: number | null;
21
24
  response_format?: AsyncResponseFormat.Raw | null;
22
25
  min_segment_duration?: number | null;
23
26
  max_segment_duration?: number | null;
27
+ start_time?: number | null;
28
+ end_time?: number | null;
24
29
  }
25
30
  }
@@ -40,17 +40,22 @@ exports.CreateAsyncAnalyzeRequest = void 0;
40
40
  const core = __importStar(require("../../../../../../../core"));
41
41
  const CreateAsyncAnalyzeRequestModelName_1 = require("../../types/CreateAsyncAnalyzeRequestModelName");
42
42
  const VideoContext_1 = require("../../../../../../types/VideoContext");
43
+ const AnalyzePromptV2_1 = require("../../../../../../types/AnalyzePromptV2");
43
44
  const CreateAsyncAnalyzeRequestAnalysisMode_1 = require("../../types/CreateAsyncAnalyzeRequestAnalysisMode");
44
45
  const AnalyzeTemperature_1 = require("../../../../../../types/AnalyzeTemperature");
45
46
  const AsyncResponseFormat_1 = require("../../../../../../types/AsyncResponseFormat");
46
47
  exports.CreateAsyncAnalyzeRequest = core.serialization.object({
47
48
  modelName: core.serialization.property("model_name", CreateAsyncAnalyzeRequestModelName_1.CreateAsyncAnalyzeRequestModelName.optional()),
49
+ customId: core.serialization.property("custom_id", core.serialization.string().optional()),
48
50
  video: VideoContext_1.VideoContext,
49
51
  prompt: core.serialization.string().optional(),
52
+ promptV2: core.serialization.property("prompt_v2", AnalyzePromptV2_1.AnalyzePromptV2.optional()),
50
53
  analysisMode: core.serialization.property("analysis_mode", CreateAsyncAnalyzeRequestAnalysisMode_1.CreateAsyncAnalyzeRequestAnalysisMode.optional()),
51
54
  temperature: AnalyzeTemperature_1.AnalyzeTemperature.optional(),
52
55
  maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
53
56
  responseFormat: core.serialization.property("response_format", AsyncResponseFormat_1.AsyncResponseFormat.optional()),
54
57
  minSegmentDuration: core.serialization.property("min_segment_duration", core.serialization.number().optional()),
55
58
  maxSegmentDuration: core.serialization.property("max_segment_duration", core.serialization.number().optional()),
59
+ startTime: core.serialization.property("start_time", core.serialization.number().optional()),
60
+ endTime: core.serialization.property("end_time", core.serialization.number().optional()),
56
61
  });
@@ -6,5 +6,5 @@ import * as TwelvelabsApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const CreateAsyncAnalyzeRequestAnalysisMode: core.serialization.Schema<serializers.analyzeAsync.CreateAsyncAnalyzeRequestAnalysisMode.Raw, TwelvelabsApi.analyzeAsync.CreateAsyncAnalyzeRequestAnalysisMode>;
8
8
  export declare namespace CreateAsyncAnalyzeRequestAnalysisMode {
9
- type Raw = "time_based_metadata";
9
+ type Raw = "general" | "time_based_metadata";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CreateAsyncAnalyzeRequestAnalysisMode = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- exports.CreateAsyncAnalyzeRequestAnalysisMode = core.serialization.enum_(["time_based_metadata"]);
41
+ exports.CreateAsyncAnalyzeRequestAnalysisMode = core.serialization.enum_(["general", "time_based_metadata"]);
@@ -6,5 +6,5 @@ import * as TwelvelabsApi from "../../../../../../api/index";
6
6
  import * as core from "../../../../../../core";
7
7
  export declare const TasksListRequestAnalysisMode: core.serialization.Schema<serializers.analyzeAsync.TasksListRequestAnalysisMode.Raw, TwelvelabsApi.analyzeAsync.TasksListRequestAnalysisMode>;
8
8
  export declare namespace TasksListRequestAnalysisMode {
9
- type Raw = "time_based_metadata";
9
+ type Raw = "general" | "time_based_metadata";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.TasksListRequestAnalysisMode = void 0;
40
40
  const core = __importStar(require("../../../../../../core"));
41
- exports.TasksListRequestAnalysisMode = core.serialization.enum_(["time_based_metadata"]);
41
+ exports.TasksListRequestAnalysisMode = core.serialization.enum_(["general", "time_based_metadata"]);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as TwelvelabsApi from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { SmeMediaSource } from "./SmeMediaSource";
8
+ export declare const AnalyzePromptV2: core.serialization.ObjectSchema<serializers.AnalyzePromptV2.Raw, TwelvelabsApi.AnalyzePromptV2>;
9
+ export declare namespace AnalyzePromptV2 {
10
+ interface Raw {
11
+ input_text: string;
12
+ media_sources?: SmeMediaSource.Raw[] | null;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AnalyzePromptV2 = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const SmeMediaSource_1 = require("./SmeMediaSource");
42
+ exports.AnalyzePromptV2 = core.serialization.object({
43
+ inputText: core.serialization.property("input_text", core.serialization.string()),
44
+ mediaSources: core.serialization.property("media_sources", core.serialization.list(SmeMediaSource_1.SmeMediaSource).optional()),
45
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as TwelvelabsApi from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const AnalyzeRequestModelName: core.serialization.Schema<serializers.AnalyzeRequestModelName.Raw, TwelvelabsApi.AnalyzeRequestModelName>;
8
+ export declare namespace AnalyzeRequestModelName {
9
+ type Raw = "pegasus1.2" | "pegasus1.5";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AnalyzeRequestModelName = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.AnalyzeRequestModelName = core.serialization.enum_(["pegasus1.2", "pegasus1.5"]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as TwelvelabsApi from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const AnalyzeStreamRequestModelName: core.serialization.Schema<serializers.AnalyzeStreamRequestModelName.Raw, TwelvelabsApi.AnalyzeStreamRequestModelName>;
8
+ export declare namespace AnalyzeStreamRequestModelName {
9
+ type Raw = "pegasus1.2" | "pegasus1.5";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AnalyzeStreamRequestModelName = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.AnalyzeStreamRequestModelName = core.serialization.enum_(["pegasus1.2", "pegasus1.5"]);
@@ -14,6 +14,7 @@ export declare const AnalyzeTaskResponse: core.serialization.ObjectSchema<serial
14
14
  export declare namespace AnalyzeTaskResponse {
15
15
  interface Raw {
16
16
  task_id: string;
17
+ custom_id?: string | null;
17
18
  video_source?: AnalyzeTaskResponseVideoSource.Raw | null;
18
19
  request_params?: AnalyzeTaskResponseRequestParams.Raw | null;
19
20
  status: AnalyzeTaskStatus.Raw;
@@ -46,6 +46,7 @@ const AnalyzeTaskError_1 = require("./AnalyzeTaskError");
46
46
  const AnalyzeTaskWebhookInfo_1 = require("./AnalyzeTaskWebhookInfo");
47
47
  exports.AnalyzeTaskResponse = core.serialization.object({
48
48
  taskId: core.serialization.property("task_id", core.serialization.string()),
49
+ customId: core.serialization.property("custom_id", core.serialization.string().optional()),
49
50
  videoSource: core.serialization.property("video_source", AnalyzeTaskResponseVideoSource_1.AnalyzeTaskResponseVideoSource.optional()),
50
51
  requestParams: core.serialization.property("request_params", AnalyzeTaskResponseRequestParams_1.AnalyzeTaskResponseRequestParams.optional()),
51
52
  status: AnalyzeTaskStatus_1.AnalyzeTaskStatus,
@@ -5,15 +5,20 @@ import * as serializers from "../index";
5
5
  import * as TwelvelabsApi from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { AnalyzeTaskResponseRequestParamsAnalysisMode } from "./AnalyzeTaskResponseRequestParamsAnalysisMode";
8
+ import { AnalyzeTaskResponseRequestParamsPromptV2 } from "./AnalyzeTaskResponseRequestParamsPromptV2";
8
9
  import { AnalyzeTaskResponseRequestParamsResponseFormat } from "./AnalyzeTaskResponseRequestParamsResponseFormat";
9
10
  export declare const AnalyzeTaskResponseRequestParams: core.serialization.ObjectSchema<serializers.AnalyzeTaskResponseRequestParams.Raw, TwelvelabsApi.AnalyzeTaskResponseRequestParams>;
10
11
  export declare namespace AnalyzeTaskResponseRequestParams {
11
12
  interface Raw {
12
13
  analysis_mode?: AnalyzeTaskResponseRequestParamsAnalysisMode.Raw | null;
14
+ prompt?: string | null;
15
+ prompt_v2?: AnalyzeTaskResponseRequestParamsPromptV2.Raw | null;
13
16
  response_format?: AnalyzeTaskResponseRequestParamsResponseFormat.Raw | null;
14
17
  temperature?: number | null;
15
18
  max_tokens?: number | null;
16
19
  min_segment_duration?: number | null;
17
20
  max_segment_duration?: number | null;
21
+ start_time?: number | null;
22
+ end_time?: number | null;
18
23
  }
19
24
  }
@@ -39,12 +39,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.AnalyzeTaskResponseRequestParams = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const AnalyzeTaskResponseRequestParamsAnalysisMode_1 = require("./AnalyzeTaskResponseRequestParamsAnalysisMode");
42
+ const AnalyzeTaskResponseRequestParamsPromptV2_1 = require("./AnalyzeTaskResponseRequestParamsPromptV2");
42
43
  const AnalyzeTaskResponseRequestParamsResponseFormat_1 = require("./AnalyzeTaskResponseRequestParamsResponseFormat");
43
44
  exports.AnalyzeTaskResponseRequestParams = core.serialization.object({
44
45
  analysisMode: core.serialization.property("analysis_mode", AnalyzeTaskResponseRequestParamsAnalysisMode_1.AnalyzeTaskResponseRequestParamsAnalysisMode.optional()),
46
+ prompt: core.serialization.string().optional(),
47
+ promptV2: core.serialization.property("prompt_v2", AnalyzeTaskResponseRequestParamsPromptV2_1.AnalyzeTaskResponseRequestParamsPromptV2.optional()),
45
48
  responseFormat: core.serialization.property("response_format", AnalyzeTaskResponseRequestParamsResponseFormat_1.AnalyzeTaskResponseRequestParamsResponseFormat.optional()),
46
49
  temperature: core.serialization.number().optional(),
47
50
  maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
48
51
  minSegmentDuration: core.serialization.property("min_segment_duration", core.serialization.number().optional()),
49
52
  maxSegmentDuration: core.serialization.property("max_segment_duration", core.serialization.number().optional()),
53
+ startTime: core.serialization.property("start_time", core.serialization.number().optional()),
54
+ endTime: core.serialization.property("end_time", core.serialization.number().optional()),
50
55
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as TwelvelabsApi from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem } from "./AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem";
8
+ export declare const AnalyzeTaskResponseRequestParamsPromptV2: core.serialization.ObjectSchema<serializers.AnalyzeTaskResponseRequestParamsPromptV2.Raw, TwelvelabsApi.AnalyzeTaskResponseRequestParamsPromptV2>;
9
+ export declare namespace AnalyzeTaskResponseRequestParamsPromptV2 {
10
+ interface Raw {
11
+ input_text?: string | null;
12
+ media_sources?: AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.Raw[] | null;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AnalyzeTaskResponseRequestParamsPromptV2 = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem_1 = require("./AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem");
42
+ exports.AnalyzeTaskResponseRequestParamsPromptV2 = core.serialization.object({
43
+ inputText: core.serialization.property("input_text", core.serialization.string().optional()),
44
+ mediaSources: core.serialization.property("media_sources", core.serialization.list(AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem_1.AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem).optional()),
45
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as TwelvelabsApi from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem: core.serialization.ObjectSchema<serializers.AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem.Raw, TwelvelabsApi.AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem>;
8
+ export declare namespace AnalyzeTaskResponseRequestParamsPromptV2MediaSourcesItem {
9
+ interface Raw {
10
+ name: string;
11
+ media_type: string;
12
+ url?: string | null;
13
+ asset_id?: string | null;
14
+ }
15
+ }