@aviaryhq/cloudglue-js 0.0.16 → 0.1.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.
package/README.md CHANGED
@@ -1,19 +1,19 @@
1
- # CloudGlue JavaScript SDK
1
+ # Cloudglue JavaScript SDK
2
2
 
3
3
  [![NPM Version](https://img.shields.io/npm/v/%40aviaryhq%2Fcloudglue-js)](https://www.npmjs.com/package/@aviaryhq/cloudglue-js)
4
4
  [![License](https://img.shields.io/badge/License-ELv2-blue.svg)](LICENSE.md)
5
5
  [![Discord](https://img.shields.io/discord/1366541583272382536?logo=discord&label=Discord)](https://discord.gg/QD5KWFVner)
6
6
 
7
- CloudGlue makes it easy to turn video into LLM ready data. Official JavaScript SDK for the CloudGlue API.
7
+ Cloudglue makes it easy to turn video into LLM ready data. Official JavaScript SDK for the Cloudglue API.
8
8
 
9
9
  ## 📖 Resources
10
10
 
11
- - [CloudGlue API Docs](https://docs.cloudglue.dev)
11
+ - [Cloudglue API Docs](https://docs.cloudglue.dev)
12
12
  - [Terms of Service](https://cloudglue.dev/terms)
13
13
  - [Privacy Policy](https://cloudglue.dev/privacy)
14
14
  - [Pricing](https://cloudglue.dev/pricing)
15
15
 
16
- > By using this SDK, you agree to the [CloudGlue Terms of Service](https://cloudglue.dev/terms) and acknowledge our [Privacy Policy](https://cloudglue.dev/privacy).
16
+ > By using this SDK, you agree to the [Cloudglue Terms of Service](https://cloudglue.dev/terms) and acknowledge our [Privacy Policy](https://cloudglue.dev/privacy).
17
17
 
18
18
  ## Installation
19
19
 
@@ -10,6 +10,8 @@ type Collection = {
10
10
  extract_config?: Partial<{
11
11
  prompt: string;
12
12
  schema: {};
13
+ enable_video_level_entities: boolean;
14
+ enable_segment_level_entities: boolean;
13
15
  }> | undefined;
14
16
  transcribe_config?: Partial<{
15
17
  enable_summary: boolean;
@@ -60,12 +62,18 @@ export declare const schemas: {
60
62
  extract_config: z.ZodOptional<z.ZodObject<{
61
63
  prompt: z.ZodOptional<z.ZodString>;
62
64
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
65
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
66
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
63
67
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
64
68
  prompt: z.ZodOptional<z.ZodString>;
65
69
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
70
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
71
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
66
72
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
67
73
  prompt: z.ZodOptional<z.ZodString>;
68
74
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
75
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
76
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
69
77
  }, z.ZodTypeAny, "passthrough">>>;
70
78
  transcribe_config: z.ZodOptional<z.ZodObject<{
71
79
  enable_summary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -90,12 +98,18 @@ export declare const schemas: {
90
98
  extract_config: z.ZodOptional<z.ZodObject<{
91
99
  prompt: z.ZodOptional<z.ZodString>;
92
100
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
101
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
102
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
93
103
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
94
104
  prompt: z.ZodOptional<z.ZodString>;
95
105
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
106
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
107
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
96
108
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
97
109
  prompt: z.ZodOptional<z.ZodString>;
98
110
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
111
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
112
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
99
113
  }, z.ZodTypeAny, "passthrough">>>;
100
114
  transcribe_config: z.ZodOptional<z.ZodObject<{
101
115
  enable_summary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -120,12 +134,18 @@ export declare const schemas: {
120
134
  extract_config: z.ZodOptional<z.ZodObject<{
121
135
  prompt: z.ZodOptional<z.ZodString>;
122
136
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
137
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
138
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
123
139
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
124
140
  prompt: z.ZodOptional<z.ZodString>;
125
141
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
142
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
143
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
126
144
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
127
145
  prompt: z.ZodOptional<z.ZodString>;
128
146
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
147
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
148
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
129
149
  }, z.ZodTypeAny, "passthrough">>>;
130
150
  transcribe_config: z.ZodOptional<z.ZodObject<{
131
151
  enable_summary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -184,9 +204,6 @@ export declare const schemas: {
184
204
  end_time: z.ZodOptional<z.ZodNumber>;
185
205
  entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
186
206
  }, z.ZodTypeAny, "passthrough">>, "many">>;
187
- total: z.ZodNumber;
188
- limit: z.ZodNumber;
189
- offset: z.ZodNumber;
190
207
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
191
208
  collection_id: z.ZodString;
192
209
  file_id: z.ZodString;
@@ -204,9 +221,6 @@ export declare const schemas: {
204
221
  end_time: z.ZodOptional<z.ZodNumber>;
205
222
  entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
206
223
  }, z.ZodTypeAny, "passthrough">>, "many">>;
207
- total: z.ZodNumber;
208
- limit: z.ZodNumber;
209
- offset: z.ZodNumber;
210
224
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
211
225
  collection_id: z.ZodString;
212
226
  file_id: z.ZodString;
@@ -224,9 +238,6 @@ export declare const schemas: {
224
238
  end_time: z.ZodOptional<z.ZodNumber>;
225
239
  entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
226
240
  }, z.ZodTypeAny, "passthrough">>, "many">>;
227
- total: z.ZodNumber;
228
- limit: z.ZodNumber;
229
- offset: z.ZodNumber;
230
241
  }, z.ZodTypeAny, "passthrough">>;
231
242
  RichTranscript: z.ZodObject<{
232
243
  collection_id: z.ZodString;
@@ -2050,12 +2061,18 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
2050
2061
  extract_config: z.ZodOptional<z.ZodObject<{
2051
2062
  prompt: z.ZodOptional<z.ZodString>;
2052
2063
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2064
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2065
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2053
2066
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2054
2067
  prompt: z.ZodOptional<z.ZodString>;
2055
2068
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2069
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2070
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2056
2071
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2057
2072
  prompt: z.ZodOptional<z.ZodString>;
2058
2073
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2074
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2075
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2059
2076
  }, z.ZodTypeAny, "passthrough">>>;
2060
2077
  transcribe_config: z.ZodOptional<z.ZodObject<{
2061
2078
  enable_summary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2080,12 +2097,18 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
2080
2097
  extract_config: z.ZodOptional<z.ZodObject<{
2081
2098
  prompt: z.ZodOptional<z.ZodString>;
2082
2099
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2100
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2101
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2083
2102
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2084
2103
  prompt: z.ZodOptional<z.ZodString>;
2085
2104
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2105
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2106
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2086
2107
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2087
2108
  prompt: z.ZodOptional<z.ZodString>;
2088
2109
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2110
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2111
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2089
2112
  }, z.ZodTypeAny, "passthrough">>>;
2090
2113
  transcribe_config: z.ZodOptional<z.ZodObject<{
2091
2114
  enable_summary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2110,12 +2133,18 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
2110
2133
  extract_config: z.ZodOptional<z.ZodObject<{
2111
2134
  prompt: z.ZodOptional<z.ZodString>;
2112
2135
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2136
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2137
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2113
2138
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2114
2139
  prompt: z.ZodOptional<z.ZodString>;
2115
2140
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2141
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2142
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2116
2143
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2117
2144
  prompt: z.ZodOptional<z.ZodString>;
2118
2145
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2146
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2147
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2119
2148
  }, z.ZodTypeAny, "passthrough">>>;
2120
2149
  transcribe_config: z.ZodOptional<z.ZodObject<{
2121
2150
  enable_summary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -2506,14 +2535,6 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
2506
2535
  name: "file_id";
2507
2536
  type: "Path";
2508
2537
  schema: z.ZodString;
2509
- }, {
2510
- name: "limit";
2511
- type: "Query";
2512
- schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2513
- }, {
2514
- name: "offset";
2515
- type: "Query";
2516
- schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
2517
2538
  }];
2518
2539
  response: z.ZodObject<{
2519
2540
  collection_id: z.ZodString;
@@ -2532,9 +2553,6 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
2532
2553
  end_time: z.ZodOptional<z.ZodNumber>;
2533
2554
  entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2534
2555
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2535
- total: z.ZodNumber;
2536
- limit: z.ZodNumber;
2537
- offset: z.ZodNumber;
2538
2556
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2539
2557
  collection_id: z.ZodString;
2540
2558
  file_id: z.ZodString;
@@ -2552,9 +2570,6 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
2552
2570
  end_time: z.ZodOptional<z.ZodNumber>;
2553
2571
  entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2554
2572
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2555
- total: z.ZodNumber;
2556
- limit: z.ZodNumber;
2557
- offset: z.ZodNumber;
2558
2573
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2559
2574
  collection_id: z.ZodString;
2560
2575
  file_id: z.ZodString;
@@ -2572,9 +2587,6 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
2572
2587
  end_time: z.ZodOptional<z.ZodNumber>;
2573
2588
  entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
2574
2589
  }, z.ZodTypeAny, "passthrough">>, "many">>;
2575
- total: z.ZodNumber;
2576
- limit: z.ZodNumber;
2577
- offset: z.ZodNumber;
2578
2590
  }, z.ZodTypeAny, "passthrough">>;
2579
2591
  errors: [{
2580
2592
  status: 400;
@@ -4662,12 +4674,18 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
4662
4674
  extract_config: z.ZodOptional<z.ZodObject<{
4663
4675
  prompt: z.ZodOptional<z.ZodString>;
4664
4676
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
4677
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4678
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4665
4679
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4666
4680
  prompt: z.ZodOptional<z.ZodString>;
4667
4681
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
4682
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4683
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4668
4684
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4669
4685
  prompt: z.ZodOptional<z.ZodString>;
4670
4686
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
4687
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4688
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4671
4689
  }, z.ZodTypeAny, "passthrough">>>;
4672
4690
  transcribe_config: z.ZodOptional<z.ZodObject<{
4673
4691
  enable_summary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -4692,12 +4710,18 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
4692
4710
  extract_config: z.ZodOptional<z.ZodObject<{
4693
4711
  prompt: z.ZodOptional<z.ZodString>;
4694
4712
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
4713
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4714
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4695
4715
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4696
4716
  prompt: z.ZodOptional<z.ZodString>;
4697
4717
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
4718
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4719
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4698
4720
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4699
4721
  prompt: z.ZodOptional<z.ZodString>;
4700
4722
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
4723
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4724
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4701
4725
  }, z.ZodTypeAny, "passthrough">>>;
4702
4726
  transcribe_config: z.ZodOptional<z.ZodObject<{
4703
4727
  enable_summary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -4722,12 +4746,18 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
4722
4746
  extract_config: z.ZodOptional<z.ZodObject<{
4723
4747
  prompt: z.ZodOptional<z.ZodString>;
4724
4748
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
4749
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4750
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4725
4751
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
4726
4752
  prompt: z.ZodOptional<z.ZodString>;
4727
4753
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
4754
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4755
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4728
4756
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
4729
4757
  prompt: z.ZodOptional<z.ZodString>;
4730
4758
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
4759
+ enable_video_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4760
+ enable_segment_level_entities: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
4731
4761
  }, z.ZodTypeAny, "passthrough">>>;
4732
4762
  transcribe_config: z.ZodOptional<z.ZodObject<{
4733
4763
  enable_summary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -5118,14 +5148,6 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
5118
5148
  name: "file_id";
5119
5149
  type: "Path";
5120
5150
  schema: z.ZodString;
5121
- }, {
5122
- name: "limit";
5123
- type: "Query";
5124
- schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5125
- }, {
5126
- name: "offset";
5127
- type: "Query";
5128
- schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5129
5151
  }];
5130
5152
  response: z.ZodObject<{
5131
5153
  collection_id: z.ZodString;
@@ -5144,9 +5166,6 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
5144
5166
  end_time: z.ZodOptional<z.ZodNumber>;
5145
5167
  entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
5146
5168
  }, z.ZodTypeAny, "passthrough">>, "many">>;
5147
- total: z.ZodNumber;
5148
- limit: z.ZodNumber;
5149
- offset: z.ZodNumber;
5150
5169
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5151
5170
  collection_id: z.ZodString;
5152
5171
  file_id: z.ZodString;
@@ -5164,9 +5183,6 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
5164
5183
  end_time: z.ZodOptional<z.ZodNumber>;
5165
5184
  entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
5166
5185
  }, z.ZodTypeAny, "passthrough">>, "many">>;
5167
- total: z.ZodNumber;
5168
- limit: z.ZodNumber;
5169
- offset: z.ZodNumber;
5170
5186
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5171
5187
  collection_id: z.ZodString;
5172
5188
  file_id: z.ZodString;
@@ -5184,9 +5200,6 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
5184
5200
  end_time: z.ZodOptional<z.ZodNumber>;
5185
5201
  entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
5186
5202
  }, z.ZodTypeAny, "passthrough">>, "many">>;
5187
- total: z.ZodNumber;
5188
- limit: z.ZodNumber;
5189
- offset: z.ZodNumber;
5190
5203
  }, z.ZodTypeAny, "passthrough">>;
5191
5204
  errors: [{
5192
5205
  status: 400;
@@ -16,6 +16,8 @@ const Collection = zod_1.z
16
16
  .object({
17
17
  prompt: zod_1.z.string(),
18
18
  schema: zod_1.z.object({}).partial().strict().passthrough(),
19
+ enable_video_level_entities: zod_1.z.boolean().default(false),
20
+ enable_segment_level_entities: zod_1.z.boolean().default(true),
19
21
  })
20
22
  .partial()
21
23
  .strict()
@@ -89,6 +91,8 @@ const NewCollection = zod_1.z
89
91
  .object({
90
92
  prompt: zod_1.z.string(),
91
93
  schema: zod_1.z.object({}).partial().strict().passthrough(),
94
+ enable_video_level_entities: zod_1.z.boolean().default(false),
95
+ enable_segment_level_entities: zod_1.z.boolean().default(true),
92
96
  })
93
97
  .partial()
94
98
  .strict()
@@ -136,9 +140,6 @@ const FileEntities = zod_1.z
136
140
  .strict()
137
141
  .passthrough())
138
142
  .optional(),
139
- total: zod_1.z.number().int(),
140
- limit: zod_1.z.number().int(),
141
- offset: zod_1.z.number().int(),
142
143
  })
143
144
  .strict()
144
145
  .passthrough();
@@ -613,16 +614,6 @@ const endpoints = (0, core_1.makeApi)([
613
614
  type: "Path",
614
615
  schema: zod_1.z.string(),
615
616
  },
616
- {
617
- name: "limit",
618
- type: "Query",
619
- schema: zod_1.z.number().int().lte(100).optional().default(50),
620
- },
621
- {
622
- name: "offset",
623
- type: "Query",
624
- schema: zod_1.z.number().int().optional().default(0),
625
- },
626
617
  ],
627
618
  response: FileEntities,
628
619
  errors: [
@@ -8,6 +8,8 @@ type Extract = {
8
8
  extract_config?: Partial<{
9
9
  prompt: string;
10
10
  schema: {};
11
+ enable_video_level_entities: boolean;
12
+ enable_segment_level_entities: boolean;
11
13
  }> | undefined;
12
14
  data?: Partial<{
13
15
  entities: {};
@@ -35,14 +37,20 @@ export declare const schemas: {
35
37
  url: z.ZodString;
36
38
  prompt: z.ZodOptional<z.ZodString>;
37
39
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
40
+ enable_video_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
41
+ enable_segment_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
38
42
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
39
43
  url: z.ZodString;
40
44
  prompt: z.ZodOptional<z.ZodString>;
41
45
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
46
+ enable_video_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
47
+ enable_segment_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
42
48
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
43
49
  url: z.ZodString;
44
50
  prompt: z.ZodOptional<z.ZodString>;
45
51
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
52
+ enable_video_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
53
+ enable_segment_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
46
54
  }, z.ZodTypeAny, "passthrough">>;
47
55
  };
48
56
  export declare const ExtractApi: import("@zodios/core").ZodiosInstance<[{
@@ -59,14 +67,20 @@ export declare const ExtractApi: import("@zodios/core").ZodiosInstance<[{
59
67
  url: z.ZodString;
60
68
  prompt: z.ZodOptional<z.ZodString>;
61
69
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
70
+ enable_video_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
71
+ enable_segment_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
62
72
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
63
73
  url: z.ZodString;
64
74
  prompt: z.ZodOptional<z.ZodString>;
65
75
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
76
+ enable_video_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
77
+ enable_segment_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
66
78
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
67
79
  url: z.ZodString;
68
80
  prompt: z.ZodOptional<z.ZodString>;
69
81
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
82
+ enable_video_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
83
+ enable_segment_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
70
84
  }, z.ZodTypeAny, "passthrough">>;
71
85
  }];
72
86
  response: z.ZodType<Extract, z.ZodTypeDef, Extract>;
@@ -232,14 +246,20 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
232
246
  url: z.ZodString;
233
247
  prompt: z.ZodOptional<z.ZodString>;
234
248
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
249
+ enable_video_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
250
+ enable_segment_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
235
251
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
236
252
  url: z.ZodString;
237
253
  prompt: z.ZodOptional<z.ZodString>;
238
254
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
255
+ enable_video_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
256
+ enable_segment_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
239
257
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
240
258
  url: z.ZodString;
241
259
  prompt: z.ZodOptional<z.ZodString>;
242
260
  schema: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
261
+ enable_video_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
262
+ enable_segment_level_entities: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
243
263
  }, z.ZodTypeAny, "passthrough">>;
244
264
  }];
245
265
  response: z.ZodType<Extract, z.ZodTypeDef, Extract>;
@@ -20,6 +20,8 @@ const Extract = zod_1.z
20
20
  .object({
21
21
  prompt: zod_1.z.string(),
22
22
  schema: zod_1.z.object({}).partial().strict().passthrough(),
23
+ enable_video_level_entities: zod_1.z.boolean().default(false),
24
+ enable_segment_level_entities: zod_1.z.boolean().default(true),
23
25
  })
24
26
  .partial()
25
27
  .strict()
@@ -61,6 +63,8 @@ const NewExtract = zod_1.z
61
63
  url: zod_1.z.string(),
62
64
  prompt: zod_1.z.string().optional(),
63
65
  schema: zod_1.z.object({}).partial().strict().passthrough().optional(),
66
+ enable_video_level_entities: zod_1.z.boolean().optional().default(false),
67
+ enable_segment_level_entities: zod_1.z.boolean().optional().default(true),
64
68
  })
65
69
  .strict()
66
70
  .passthrough();
@@ -44,6 +44,8 @@ interface CreateCollectionParams {
44
44
  extract_config?: {
45
45
  prompt?: string;
46
46
  schema?: Record<string, any>;
47
+ enable_video_level_entities?: boolean;
48
+ enable_segment_level_entities?: boolean;
47
49
  };
48
50
  transcribe_config?: {
49
51
  enable_summary?: boolean;
@@ -201,6 +203,8 @@ declare class EnhancedCollectionsApi {
201
203
  extract_config?: Partial<{
202
204
  prompt: string;
203
205
  schema: {};
206
+ enable_video_level_entities: boolean;
207
+ enable_segment_level_entities: boolean;
204
208
  }> | undefined;
205
209
  transcribe_config?: Partial<{
206
210
  enable_summary: boolean;
@@ -224,6 +228,8 @@ declare class EnhancedCollectionsApi {
224
228
  extract_config?: Partial<{
225
229
  prompt: string;
226
230
  schema: {};
231
+ enable_video_level_entities: boolean;
232
+ enable_segment_level_entities: boolean;
227
233
  }> | undefined;
228
234
  transcribe_config?: Partial<{
229
235
  enable_summary: boolean;
@@ -243,6 +249,8 @@ declare class EnhancedCollectionsApi {
243
249
  extract_config?: Partial<{
244
250
  prompt: string;
245
251
  schema: {};
252
+ enable_video_level_entities: boolean;
253
+ enable_segment_level_entities: boolean;
246
254
  }> | undefined;
247
255
  transcribe_config?: Partial<{
248
256
  enable_summary: boolean;
@@ -298,7 +306,7 @@ declare class EnhancedCollectionsApi {
298
306
  file_id: import("zod").ZodString;
299
307
  object: import("zod").ZodLiteral<"collection_file">;
300
308
  }, import("zod").ZodTypeAny, "passthrough">>;
301
- getEntities(collectionId: string, fileId: string, limit?: number, offset?: number): Promise<import("zod").objectOutputType<{
309
+ getEntities(collectionId: string, fileId: string): Promise<import("zod").objectOutputType<{
302
310
  collection_id: import("zod").ZodString;
303
311
  file_id: import("zod").ZodString;
304
312
  entities: import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>;
@@ -315,9 +323,6 @@ declare class EnhancedCollectionsApi {
315
323
  end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
316
324
  entities: import("zod").ZodOptional<import("zod").ZodObject<{}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{}, import("zod").ZodTypeAny, "passthrough">>>;
317
325
  }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
318
- total: import("zod").ZodNumber;
319
- limit: import("zod").ZodNumber;
320
- offset: import("zod").ZodNumber;
321
326
  }, import("zod").ZodTypeAny, "passthrough">>;
322
327
  getTranscripts(collectionId: string, fileId: string, limit?: number, offset?: number, response_format?: "markdown" | "json"): Promise<import("zod").objectOutputType<{
323
328
  collection_id: import("zod").ZodString;
@@ -1174,6 +1179,8 @@ declare class EnhancedExtractApi {
1174
1179
  createExtract(url: string, options?: {
1175
1180
  prompt?: string;
1176
1181
  schema?: Record<string, any>;
1182
+ enable_video_level_entities?: boolean;
1183
+ enable_segment_level_entities?: boolean;
1177
1184
  }): Promise<{
1178
1185
  job_id: string;
1179
1186
  status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
@@ -1182,6 +1189,8 @@ declare class EnhancedExtractApi {
1182
1189
  extract_config?: Partial<{
1183
1190
  prompt: string;
1184
1191
  schema: {};
1192
+ enable_video_level_entities: boolean;
1193
+ enable_segment_level_entities: boolean;
1185
1194
  }> | undefined;
1186
1195
  data?: Partial<{
1187
1196
  entities: {};
@@ -1201,6 +1210,8 @@ declare class EnhancedExtractApi {
1201
1210
  extract_config?: Partial<{
1202
1211
  prompt: string;
1203
1212
  schema: {};
1213
+ enable_video_level_entities: boolean;
1214
+ enable_segment_level_entities: boolean;
1204
1215
  }> | undefined;
1205
1216
  data?: Partial<{
1206
1217
  entities: {};
@@ -1229,6 +1240,8 @@ declare class EnhancedExtractApi {
1229
1240
  extract_config?: Partial<{
1230
1241
  prompt: string;
1231
1242
  schema: {};
1243
+ enable_video_level_entities: boolean;
1244
+ enable_segment_level_entities: boolean;
1232
1245
  }> | undefined;
1233
1246
  data?: Partial<{
1234
1247
  entities: {};
@@ -1261,6 +1274,8 @@ declare class EnhancedExtractApi {
1261
1274
  extract_config?: Partial<{
1262
1275
  prompt: string;
1263
1276
  schema: {};
1277
+ enable_video_level_entities: boolean;
1278
+ enable_segment_level_entities: boolean;
1264
1279
  }> | undefined;
1265
1280
  data?: Partial<{
1266
1281
  entities: {};
@@ -119,10 +119,9 @@ class EnhancedCollectionsApi {
119
119
  params: { collection_id: collectionId, file_id: fileId },
120
120
  }, { params: { collection_id: collectionId, file_id: fileId } });
121
121
  }
122
- async getEntities(collectionId, fileId, limit, offset) {
122
+ async getEntities(collectionId, fileId) {
123
123
  return this.api.getEntities({
124
- params: { collection_id: collectionId, file_id: fileId },
125
- queries: { limit, offset },
124
+ params: { collection_id: collectionId, file_id: fileId }
126
125
  });
127
126
  }
128
127
  async getTranscripts(collectionId, fileId, limit, offset, response_format) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aviaryhq/cloudglue-js",
3
- "version": "0.0.16",
4
- "description": "CloudGlue API client for Node.js",
3
+ "version": "0.1.0",
4
+ "description": "Cloudglue API client for Node.js",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
7
7
  "files": [