@aviaryhq/cloudglue-js 0.3.2 → 0.3.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.
- package/dist/generated/Collections.d.ts +187 -20
- package/dist/generated/Collections.js +60 -5
- package/dist/generated/Face_Detection.d.ts +309 -0
- package/dist/generated/Face_Detection.js +161 -0
- package/dist/generated/Face_Match.d.ts +333 -0
- package/dist/generated/Face_Match.js +179 -0
- package/dist/generated/Segments.d.ts +80 -2
- package/dist/generated/Segments.js +29 -2
- package/dist/generated/common.d.ts +22 -0
- package/dist/generated/common.js +14 -5
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/index.js +5 -1
- package/dist/src/client.d.ts +688 -6
- package/dist/src/client.js +149 -5
- package/dist/src/types.d.ts +49 -0
- package/package.json +1 -1
|
@@ -116,6 +116,16 @@ export declare const schemas: {
|
|
|
116
116
|
id: z.ZodString;
|
|
117
117
|
object: z.ZodLiteral<"collection">;
|
|
118
118
|
}, z.ZodTypeAny, "passthrough">>;
|
|
119
|
+
CollectionUpdate: z.ZodObject<{
|
|
120
|
+
name: z.ZodOptional<z.ZodString>;
|
|
121
|
+
description: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
123
|
+
name: z.ZodOptional<z.ZodString>;
|
|
124
|
+
description: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
126
|
+
name: z.ZodOptional<z.ZodString>;
|
|
127
|
+
description: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
119
129
|
CollectionFileDelete: z.ZodObject<{
|
|
120
130
|
collection_id: z.ZodString;
|
|
121
131
|
file_id: z.ZodString;
|
|
@@ -133,7 +143,7 @@ export declare const schemas: {
|
|
|
133
143
|
collection_id: z.ZodString;
|
|
134
144
|
file_id: z.ZodString;
|
|
135
145
|
entities: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
136
|
-
segment_entities: z.
|
|
146
|
+
segment_entities: z.ZodArray<z.ZodObject<{
|
|
137
147
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
138
148
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
139
149
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -145,12 +155,15 @@ export declare const schemas: {
|
|
|
145
155
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
146
156
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
147
157
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
148
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
158
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
159
|
+
total: z.ZodNumber;
|
|
160
|
+
limit: z.ZodNumber;
|
|
161
|
+
offset: z.ZodNumber;
|
|
149
162
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
150
163
|
collection_id: z.ZodString;
|
|
151
164
|
file_id: z.ZodString;
|
|
152
165
|
entities: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
153
|
-
segment_entities: z.
|
|
166
|
+
segment_entities: z.ZodArray<z.ZodObject<{
|
|
154
167
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
155
168
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
156
169
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -162,12 +175,15 @@ export declare const schemas: {
|
|
|
162
175
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
163
176
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
164
177
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
165
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
178
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
179
|
+
total: z.ZodNumber;
|
|
180
|
+
limit: z.ZodNumber;
|
|
181
|
+
offset: z.ZodNumber;
|
|
166
182
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
167
183
|
collection_id: z.ZodString;
|
|
168
184
|
file_id: z.ZodString;
|
|
169
185
|
entities: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
170
|
-
segment_entities: z.
|
|
186
|
+
segment_entities: z.ZodArray<z.ZodObject<{
|
|
171
187
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
172
188
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
173
189
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -179,7 +195,10 @@ export declare const schemas: {
|
|
|
179
195
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
180
196
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
181
197
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
182
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
198
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
199
|
+
total: z.ZodNumber;
|
|
200
|
+
limit: z.ZodNumber;
|
|
201
|
+
offset: z.ZodNumber;
|
|
183
202
|
}, z.ZodTypeAny, "passthrough">>;
|
|
184
203
|
RichTranscript: z.ZodObject<{
|
|
185
204
|
collection_id: z.ZodString;
|
|
@@ -4645,6 +4664,63 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
4645
4664
|
error: z.ZodString;
|
|
4646
4665
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4647
4666
|
}];
|
|
4667
|
+
}, {
|
|
4668
|
+
method: "put";
|
|
4669
|
+
path: "/collections/:collection_id";
|
|
4670
|
+
alias: "updateCollection";
|
|
4671
|
+
description: "Update a collection";
|
|
4672
|
+
requestFormat: "json";
|
|
4673
|
+
parameters: [{
|
|
4674
|
+
name: "body";
|
|
4675
|
+
description: string;
|
|
4676
|
+
type: "Body";
|
|
4677
|
+
schema: z.ZodObject<{
|
|
4678
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4679
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4680
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4681
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4682
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4683
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4684
|
+
name: z.ZodOptional<z.ZodString>;
|
|
4685
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4686
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4687
|
+
}, {
|
|
4688
|
+
name: "collection_id";
|
|
4689
|
+
type: "Path";
|
|
4690
|
+
schema: z.ZodString;
|
|
4691
|
+
}];
|
|
4692
|
+
response: z.ZodType<Collection, z.ZodTypeDef, Collection>;
|
|
4693
|
+
errors: [{
|
|
4694
|
+
status: 400;
|
|
4695
|
+
description: string;
|
|
4696
|
+
schema: z.ZodObject<{
|
|
4697
|
+
error: z.ZodString;
|
|
4698
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4699
|
+
error: z.ZodString;
|
|
4700
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4701
|
+
error: z.ZodString;
|
|
4702
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4703
|
+
}, {
|
|
4704
|
+
status: 404;
|
|
4705
|
+
description: string;
|
|
4706
|
+
schema: z.ZodObject<{
|
|
4707
|
+
error: z.ZodString;
|
|
4708
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4709
|
+
error: z.ZodString;
|
|
4710
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4711
|
+
error: z.ZodString;
|
|
4712
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4713
|
+
}, {
|
|
4714
|
+
status: 500;
|
|
4715
|
+
description: string;
|
|
4716
|
+
schema: z.ZodObject<{
|
|
4717
|
+
error: z.ZodString;
|
|
4718
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4719
|
+
error: z.ZodString;
|
|
4720
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4721
|
+
error: z.ZodString;
|
|
4722
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
4723
|
+
}];
|
|
4648
4724
|
}, {
|
|
4649
4725
|
method: "post";
|
|
4650
4726
|
path: "/collections/:collection_id/videos";
|
|
@@ -4844,7 +4920,7 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
4844
4920
|
method: "get";
|
|
4845
4921
|
path: "/collections/:collection_id/videos/:file_id/entities";
|
|
4846
4922
|
alias: "getEntities";
|
|
4847
|
-
description: "Retrieve
|
|
4923
|
+
description: "Retrieve extracted entities for a specific file in a collection. Results are paginated with a default limit of 50 segment entities per request (maximum 100). Use limit and offset parameters to paginate through all results. This API is only available when the collection is created with collection_type 'entities'";
|
|
4848
4924
|
requestFormat: "json";
|
|
4849
4925
|
parameters: [{
|
|
4850
4926
|
name: "collection_id";
|
|
@@ -4854,12 +4930,20 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
4854
4930
|
name: "file_id";
|
|
4855
4931
|
type: "Path";
|
|
4856
4932
|
schema: z.ZodString;
|
|
4933
|
+
}, {
|
|
4934
|
+
name: "limit";
|
|
4935
|
+
type: "Query";
|
|
4936
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
4937
|
+
}, {
|
|
4938
|
+
name: "offset";
|
|
4939
|
+
type: "Query";
|
|
4940
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
4857
4941
|
}];
|
|
4858
4942
|
response: z.ZodObject<{
|
|
4859
4943
|
collection_id: z.ZodString;
|
|
4860
4944
|
file_id: z.ZodString;
|
|
4861
4945
|
entities: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
4862
|
-
segment_entities: z.
|
|
4946
|
+
segment_entities: z.ZodArray<z.ZodObject<{
|
|
4863
4947
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
4864
4948
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
4865
4949
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -4871,12 +4955,15 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
4871
4955
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
4872
4956
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
4873
4957
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
4874
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
4958
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
4959
|
+
total: z.ZodNumber;
|
|
4960
|
+
limit: z.ZodNumber;
|
|
4961
|
+
offset: z.ZodNumber;
|
|
4875
4962
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4876
4963
|
collection_id: z.ZodString;
|
|
4877
4964
|
file_id: z.ZodString;
|
|
4878
4965
|
entities: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
4879
|
-
segment_entities: z.
|
|
4966
|
+
segment_entities: z.ZodArray<z.ZodObject<{
|
|
4880
4967
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
4881
4968
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
4882
4969
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -4888,12 +4975,15 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
4888
4975
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
4889
4976
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
4890
4977
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
4891
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
4978
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
4979
|
+
total: z.ZodNumber;
|
|
4980
|
+
limit: z.ZodNumber;
|
|
4981
|
+
offset: z.ZodNumber;
|
|
4892
4982
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4893
4983
|
collection_id: z.ZodString;
|
|
4894
4984
|
file_id: z.ZodString;
|
|
4895
4985
|
entities: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
4896
|
-
segment_entities: z.
|
|
4986
|
+
segment_entities: z.ZodArray<z.ZodObject<{
|
|
4897
4987
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
4898
4988
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
4899
4989
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -4905,7 +4995,10 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
|
|
|
4905
4995
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
4906
4996
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
4907
4997
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
4908
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
4998
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
4999
|
+
total: z.ZodNumber;
|
|
5000
|
+
limit: z.ZodNumber;
|
|
5001
|
+
offset: z.ZodNumber;
|
|
4909
5002
|
}, z.ZodTypeAny, "passthrough">>;
|
|
4910
5003
|
errors: [{
|
|
4911
5004
|
status: 400;
|
|
@@ -9708,6 +9801,63 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
9708
9801
|
error: z.ZodString;
|
|
9709
9802
|
}, z.ZodTypeAny, "passthrough">>;
|
|
9710
9803
|
}];
|
|
9804
|
+
}, {
|
|
9805
|
+
method: "put";
|
|
9806
|
+
path: "/collections/:collection_id";
|
|
9807
|
+
alias: "updateCollection";
|
|
9808
|
+
description: "Update a collection";
|
|
9809
|
+
requestFormat: "json";
|
|
9810
|
+
parameters: [{
|
|
9811
|
+
name: "body";
|
|
9812
|
+
description: string;
|
|
9813
|
+
type: "Body";
|
|
9814
|
+
schema: z.ZodObject<{
|
|
9815
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9816
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9817
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
9818
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9819
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9820
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
9821
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9822
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9823
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
9824
|
+
}, {
|
|
9825
|
+
name: "collection_id";
|
|
9826
|
+
type: "Path";
|
|
9827
|
+
schema: z.ZodString;
|
|
9828
|
+
}];
|
|
9829
|
+
response: z.ZodType<Collection, z.ZodTypeDef, Collection>;
|
|
9830
|
+
errors: [{
|
|
9831
|
+
status: 400;
|
|
9832
|
+
description: string;
|
|
9833
|
+
schema: z.ZodObject<{
|
|
9834
|
+
error: z.ZodString;
|
|
9835
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
9836
|
+
error: z.ZodString;
|
|
9837
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
9838
|
+
error: z.ZodString;
|
|
9839
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
9840
|
+
}, {
|
|
9841
|
+
status: 404;
|
|
9842
|
+
description: string;
|
|
9843
|
+
schema: z.ZodObject<{
|
|
9844
|
+
error: z.ZodString;
|
|
9845
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
9846
|
+
error: z.ZodString;
|
|
9847
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
9848
|
+
error: z.ZodString;
|
|
9849
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
9850
|
+
}, {
|
|
9851
|
+
status: 500;
|
|
9852
|
+
description: string;
|
|
9853
|
+
schema: z.ZodObject<{
|
|
9854
|
+
error: z.ZodString;
|
|
9855
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
9856
|
+
error: z.ZodString;
|
|
9857
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
9858
|
+
error: z.ZodString;
|
|
9859
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
9860
|
+
}];
|
|
9711
9861
|
}, {
|
|
9712
9862
|
method: "post";
|
|
9713
9863
|
path: "/collections/:collection_id/videos";
|
|
@@ -9907,7 +10057,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
9907
10057
|
method: "get";
|
|
9908
10058
|
path: "/collections/:collection_id/videos/:file_id/entities";
|
|
9909
10059
|
alias: "getEntities";
|
|
9910
|
-
description: "Retrieve
|
|
10060
|
+
description: "Retrieve extracted entities for a specific file in a collection. Results are paginated with a default limit of 50 segment entities per request (maximum 100). Use limit and offset parameters to paginate through all results. This API is only available when the collection is created with collection_type 'entities'";
|
|
9911
10061
|
requestFormat: "json";
|
|
9912
10062
|
parameters: [{
|
|
9913
10063
|
name: "collection_id";
|
|
@@ -9917,12 +10067,20 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
9917
10067
|
name: "file_id";
|
|
9918
10068
|
type: "Path";
|
|
9919
10069
|
schema: z.ZodString;
|
|
10070
|
+
}, {
|
|
10071
|
+
name: "limit";
|
|
10072
|
+
type: "Query";
|
|
10073
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10074
|
+
}, {
|
|
10075
|
+
name: "offset";
|
|
10076
|
+
type: "Query";
|
|
10077
|
+
schema: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9920
10078
|
}];
|
|
9921
10079
|
response: z.ZodObject<{
|
|
9922
10080
|
collection_id: z.ZodString;
|
|
9923
10081
|
file_id: z.ZodString;
|
|
9924
10082
|
entities: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
9925
|
-
segment_entities: z.
|
|
10083
|
+
segment_entities: z.ZodArray<z.ZodObject<{
|
|
9926
10084
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
9927
10085
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
9928
10086
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -9934,12 +10092,15 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
9934
10092
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
9935
10093
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
9936
10094
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
9937
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
10095
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
10096
|
+
total: z.ZodNumber;
|
|
10097
|
+
limit: z.ZodNumber;
|
|
10098
|
+
offset: z.ZodNumber;
|
|
9938
10099
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
9939
10100
|
collection_id: z.ZodString;
|
|
9940
10101
|
file_id: z.ZodString;
|
|
9941
10102
|
entities: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
9942
|
-
segment_entities: z.
|
|
10103
|
+
segment_entities: z.ZodArray<z.ZodObject<{
|
|
9943
10104
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
9944
10105
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
9945
10106
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -9951,12 +10112,15 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
9951
10112
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
9952
10113
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
9953
10114
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
9954
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
10115
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
10116
|
+
total: z.ZodNumber;
|
|
10117
|
+
limit: z.ZodNumber;
|
|
10118
|
+
offset: z.ZodNumber;
|
|
9955
10119
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
9956
10120
|
collection_id: z.ZodString;
|
|
9957
10121
|
file_id: z.ZodString;
|
|
9958
10122
|
entities: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
|
|
9959
|
-
segment_entities: z.
|
|
10123
|
+
segment_entities: z.ZodArray<z.ZodObject<{
|
|
9960
10124
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
9961
10125
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
9962
10126
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -9968,7 +10132,10 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
|
|
|
9968
10132
|
start_time: z.ZodOptional<z.ZodNumber>;
|
|
9969
10133
|
end_time: z.ZodOptional<z.ZodNumber>;
|
|
9970
10134
|
entities: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
9971
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
10135
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
10136
|
+
total: z.ZodNumber;
|
|
10137
|
+
limit: z.ZodNumber;
|
|
10138
|
+
offset: z.ZodNumber;
|
|
9972
10139
|
}, z.ZodTypeAny, "passthrough">>;
|
|
9973
10140
|
errors: [{
|
|
9974
10141
|
status: 400;
|
|
@@ -174,6 +174,11 @@ const CollectionDelete = zod_1.z
|
|
|
174
174
|
.object({ id: zod_1.z.string(), object: zod_1.z.literal("collection") })
|
|
175
175
|
.strict()
|
|
176
176
|
.passthrough();
|
|
177
|
+
const CollectionUpdate = zod_1.z
|
|
178
|
+
.object({ name: zod_1.z.string(), description: zod_1.z.string() })
|
|
179
|
+
.partial()
|
|
180
|
+
.strict()
|
|
181
|
+
.passthrough();
|
|
177
182
|
const CollectionFileDelete = zod_1.z
|
|
178
183
|
.object({
|
|
179
184
|
collection_id: zod_1.z.string(),
|
|
@@ -187,8 +192,7 @@ const FileEntities = zod_1.z
|
|
|
187
192
|
collection_id: zod_1.z.string(),
|
|
188
193
|
file_id: zod_1.z.string(),
|
|
189
194
|
entities: zod_1.z.object({}).partial().strict().passthrough(),
|
|
190
|
-
segment_entities: zod_1.z
|
|
191
|
-
.array(zod_1.z
|
|
195
|
+
segment_entities: zod_1.z.array(zod_1.z
|
|
192
196
|
.object({
|
|
193
197
|
start_time: zod_1.z.number(),
|
|
194
198
|
end_time: zod_1.z.number(),
|
|
@@ -196,8 +200,10 @@ const FileEntities = zod_1.z
|
|
|
196
200
|
})
|
|
197
201
|
.partial()
|
|
198
202
|
.strict()
|
|
199
|
-
.passthrough())
|
|
200
|
-
|
|
203
|
+
.passthrough()),
|
|
204
|
+
total: zod_1.z.number().int(),
|
|
205
|
+
limit: zod_1.z.number().int(),
|
|
206
|
+
offset: zod_1.z.number().int(),
|
|
201
207
|
})
|
|
202
208
|
.strict()
|
|
203
209
|
.passthrough();
|
|
@@ -479,6 +485,7 @@ exports.schemas = {
|
|
|
479
485
|
CollectionFile,
|
|
480
486
|
CollectionFileList,
|
|
481
487
|
CollectionDelete,
|
|
488
|
+
CollectionUpdate,
|
|
482
489
|
CollectionFileDelete,
|
|
483
490
|
FileEntities,
|
|
484
491
|
RichTranscript,
|
|
@@ -624,6 +631,44 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
624
631
|
},
|
|
625
632
|
],
|
|
626
633
|
},
|
|
634
|
+
{
|
|
635
|
+
method: "put",
|
|
636
|
+
path: "/collections/:collection_id",
|
|
637
|
+
alias: "updateCollection",
|
|
638
|
+
description: `Update a collection`,
|
|
639
|
+
requestFormat: "json",
|
|
640
|
+
parameters: [
|
|
641
|
+
{
|
|
642
|
+
name: "body",
|
|
643
|
+
description: `Collection update parameters`,
|
|
644
|
+
type: "Body",
|
|
645
|
+
schema: CollectionUpdate,
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
name: "collection_id",
|
|
649
|
+
type: "Path",
|
|
650
|
+
schema: zod_1.z.string(),
|
|
651
|
+
},
|
|
652
|
+
],
|
|
653
|
+
response: Collection,
|
|
654
|
+
errors: [
|
|
655
|
+
{
|
|
656
|
+
status: 400,
|
|
657
|
+
description: `Invalid request`,
|
|
658
|
+
schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
status: 404,
|
|
662
|
+
description: `Collection not found`,
|
|
663
|
+
schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
status: 500,
|
|
667
|
+
description: `An unexpected error occurred on the server`,
|
|
668
|
+
schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
|
|
669
|
+
},
|
|
670
|
+
],
|
|
671
|
+
},
|
|
627
672
|
{
|
|
628
673
|
method: "post",
|
|
629
674
|
path: "/collections/:collection_id/videos",
|
|
@@ -800,7 +845,7 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
800
845
|
method: "get",
|
|
801
846
|
path: "/collections/:collection_id/videos/:file_id/entities",
|
|
802
847
|
alias: "getEntities",
|
|
803
|
-
description: `Retrieve
|
|
848
|
+
description: `Retrieve extracted entities for a specific file in a collection. Results are paginated with a default limit of 50 segment entities per request (maximum 100). Use limit and offset parameters to paginate through all results. This API is only available when the collection is created with collection_type 'entities'`,
|
|
804
849
|
requestFormat: "json",
|
|
805
850
|
parameters: [
|
|
806
851
|
{
|
|
@@ -813,6 +858,16 @@ const endpoints = (0, core_1.makeApi)([
|
|
|
813
858
|
type: "Path",
|
|
814
859
|
schema: zod_1.z.string(),
|
|
815
860
|
},
|
|
861
|
+
{
|
|
862
|
+
name: "limit",
|
|
863
|
+
type: "Query",
|
|
864
|
+
schema: zod_1.z.number().int().gte(1).lte(100).optional().default(50),
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
name: "offset",
|
|
868
|
+
type: "Query",
|
|
869
|
+
schema: zod_1.z.number().int().gte(0).optional().default(0),
|
|
870
|
+
},
|
|
816
871
|
],
|
|
817
872
|
response: FileEntities,
|
|
818
873
|
errors: [
|