@aviaryhq/cloudglue-js 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,11 +24,7 @@ type ChatCompletionRequest = {
24
24
  valueTextArray?: Array<string> | undefined;
25
25
  }>;
26
26
  }> | undefined;
27
- force_search?: boolean | undefined;
28
- include_citations?: boolean | undefined;
29
27
  temperature?: number | undefined;
30
- top_p?: number | undefined;
31
- max_tokens?: number | undefined;
32
28
  };
33
29
  type ChatMessage = {
34
30
  role: "system" | "user" | "assistant";
@@ -75,11 +75,7 @@ const ChatCompletionRequest = zod_1.z
75
75
  .strict()
76
76
  .passthrough()
77
77
  .optional(),
78
- force_search: zod_1.z.boolean().optional().default(false),
79
- include_citations: zod_1.z.boolean().optional().default(true),
80
78
  temperature: zod_1.z.number().gte(0).lte(2).optional().default(0.7),
81
- top_p: zod_1.z.number().gte(0).lte(1).optional().default(1),
82
- max_tokens: zod_1.z.number().int().optional().default(1024),
83
79
  })
84
80
  .strict()
85
81
  .passthrough();
@@ -9,7 +9,7 @@ type Collection = {
9
9
  object: "collection";
10
10
  name: string;
11
11
  description?: (string | null) | undefined;
12
- collection_type: "entities" | "rich-transcripts" | "media-descriptions";
12
+ collection_type: "media-descriptions" | "entities" | "rich-transcripts";
13
13
  extract_config?: Partial<{
14
14
  prompt: string;
15
15
  schema: {};
@@ -34,9 +34,15 @@ type Collection = {
34
34
  file_count: number;
35
35
  };
36
36
  type NewCollection = {
37
- collection_type: "entities" | "rich-transcripts" | "media-descriptions";
37
+ collection_type: "media-descriptions" | "entities" | "rich-transcripts";
38
38
  name: string;
39
39
  description?: (string | null) | undefined;
40
+ describe_config?: Partial<{
41
+ enable_summary: boolean;
42
+ enable_speech: boolean;
43
+ enable_scene_text: boolean;
44
+ enable_visual_scene_description: boolean;
45
+ }> | undefined;
40
46
  extract_config?: Partial<{
41
47
  prompt: string;
42
48
  schema: {};
@@ -49,12 +55,6 @@ type NewCollection = {
49
55
  enable_scene_text: boolean;
50
56
  enable_visual_scene_description: boolean;
51
57
  }> | undefined;
52
- describe_config?: Partial<{
53
- enable_summary: boolean;
54
- enable_speech: boolean;
55
- enable_scene_text: boolean;
56
- enable_visual_scene_description: boolean;
57
- }> | undefined;
58
58
  default_segmentation_config?: SegmentationConfig | undefined;
59
59
  default_thumbnails_config?: ThumbnailsConfig | undefined;
60
60
  };
@@ -93,15 +93,10 @@ type CollectionFileList = {
93
93
  limit: number;
94
94
  offset: number;
95
95
  };
96
- type AddYouTubeCollectionFile = {
97
- url: string;
98
- metadata?: {} | undefined;
99
- } & FileSegmentationConfig;
100
96
  declare const Collection: z.ZodType<Collection>;
101
97
  declare const NewCollection: z.ZodType<NewCollection>;
102
98
  declare const CollectionList: z.ZodType<CollectionList>;
103
99
  declare const AddCollectionFile: z.ZodType<AddCollectionFile>;
104
- declare const AddYouTubeCollectionFile: z.ZodType<AddYouTubeCollectionFile>;
105
100
  declare const CollectionFile: z.ZodType<CollectionFile>;
106
101
  declare const CollectionFileList: z.ZodType<CollectionFileList>;
107
102
  export declare const schemas: {
@@ -109,7 +104,6 @@ export declare const schemas: {
109
104
  NewCollection: z.ZodType<NewCollection, z.ZodTypeDef, NewCollection>;
110
105
  CollectionList: z.ZodType<CollectionList, z.ZodTypeDef, CollectionList>;
111
106
  AddCollectionFile: z.ZodType<AddCollectionFile, z.ZodTypeDef, AddCollectionFile>;
112
- AddYouTubeCollectionFile: z.ZodType<AddYouTubeCollectionFile, z.ZodTypeDef, AddYouTubeCollectionFile>;
113
107
  CollectionFile: z.ZodType<CollectionFile, z.ZodTypeDef, CollectionFile>;
114
108
  CollectionFileList: z.ZodType<CollectionFileList, z.ZodTypeDef, CollectionFileList>;
115
109
  CollectionDelete: z.ZodObject<{
@@ -4382,7 +4376,7 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
4382
4376
  }, {
4383
4377
  name: "collection_type";
4384
4378
  type: "Query";
4385
- schema: z.ZodOptional<z.ZodEnum<["entities", "rich-transcripts", "media-descriptions"]>>;
4379
+ schema: z.ZodOptional<z.ZodEnum<["media-descriptions", "entities", "rich-transcripts"]>>;
4386
4380
  }];
4387
4381
  response: z.ZodType<CollectionList, z.ZodTypeDef, CollectionList>;
4388
4382
  errors: [{
@@ -4998,54 +4992,6 @@ export declare const CollectionsApi: import("@zodios/core").ZodiosInstance<[{
4998
4992
  error: z.ZodString;
4999
4993
  }, z.ZodTypeAny, "passthrough">>;
5000
4994
  }];
5001
- }, {
5002
- method: "post";
5003
- path: "/collections/:collection_id/youtube";
5004
- alias: "addYouTubeVideo";
5005
- description: "Add a YouTube video to a collection by URL";
5006
- requestFormat: "json";
5007
- parameters: [{
5008
- name: "body";
5009
- description: string;
5010
- type: "Body";
5011
- schema: z.ZodType<AddYouTubeCollectionFile, z.ZodTypeDef, AddYouTubeCollectionFile>;
5012
- }, {
5013
- name: "collection_id";
5014
- type: "Path";
5015
- schema: z.ZodString;
5016
- }];
5017
- response: z.ZodType<CollectionFile, z.ZodTypeDef, CollectionFile>;
5018
- errors: [{
5019
- status: 400;
5020
- description: string;
5021
- schema: z.ZodObject<{
5022
- error: z.ZodString;
5023
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5024
- error: z.ZodString;
5025
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5026
- error: z.ZodString;
5027
- }, z.ZodTypeAny, "passthrough">>;
5028
- }, {
5029
- status: 404;
5030
- description: string;
5031
- schema: z.ZodObject<{
5032
- error: z.ZodString;
5033
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5034
- error: z.ZodString;
5035
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5036
- error: z.ZodString;
5037
- }, z.ZodTypeAny, "passthrough">>;
5038
- }, {
5039
- status: 500;
5040
- description: string;
5041
- schema: z.ZodObject<{
5042
- error: z.ZodString;
5043
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
5044
- error: z.ZodString;
5045
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
5046
- error: z.ZodString;
5047
- }, z.ZodTypeAny, "passthrough">>;
5048
- }];
5049
4995
  }, {
5050
4996
  method: "get";
5051
4997
  path: "/collections/:collection_id/entities";
@@ -9313,7 +9259,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
9313
9259
  }, {
9314
9260
  name: "collection_type";
9315
9261
  type: "Query";
9316
- schema: z.ZodOptional<z.ZodEnum<["entities", "rich-transcripts", "media-descriptions"]>>;
9262
+ schema: z.ZodOptional<z.ZodEnum<["media-descriptions", "entities", "rich-transcripts"]>>;
9317
9263
  }];
9318
9264
  response: z.ZodType<CollectionList, z.ZodTypeDef, CollectionList>;
9319
9265
  errors: [{
@@ -9929,54 +9875,6 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
9929
9875
  error: z.ZodString;
9930
9876
  }, z.ZodTypeAny, "passthrough">>;
9931
9877
  }];
9932
- }, {
9933
- method: "post";
9934
- path: "/collections/:collection_id/youtube";
9935
- alias: "addYouTubeVideo";
9936
- description: "Add a YouTube video to a collection by URL";
9937
- requestFormat: "json";
9938
- parameters: [{
9939
- name: "body";
9940
- description: string;
9941
- type: "Body";
9942
- schema: z.ZodType<AddYouTubeCollectionFile, z.ZodTypeDef, AddYouTubeCollectionFile>;
9943
- }, {
9944
- name: "collection_id";
9945
- type: "Path";
9946
- schema: z.ZodString;
9947
- }];
9948
- response: z.ZodType<CollectionFile, z.ZodTypeDef, CollectionFile>;
9949
- errors: [{
9950
- status: 400;
9951
- description: string;
9952
- schema: z.ZodObject<{
9953
- error: z.ZodString;
9954
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9955
- error: z.ZodString;
9956
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9957
- error: z.ZodString;
9958
- }, z.ZodTypeAny, "passthrough">>;
9959
- }, {
9960
- status: 404;
9961
- description: string;
9962
- schema: z.ZodObject<{
9963
- error: z.ZodString;
9964
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9965
- error: z.ZodString;
9966
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9967
- error: z.ZodString;
9968
- }, z.ZodTypeAny, "passthrough">>;
9969
- }, {
9970
- status: 500;
9971
- description: string;
9972
- schema: z.ZodObject<{
9973
- error: z.ZodString;
9974
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9975
- error: z.ZodString;
9976
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9977
- error: z.ZodString;
9978
- }, z.ZodTypeAny, "passthrough">>;
9979
- }];
9980
9878
  }, {
9981
9879
  method: "get";
9982
9880
  path: "/collections/:collection_id/entities";
@@ -15,9 +15,9 @@ const Collection = zod_1.z
15
15
  name: zod_1.z.string(),
16
16
  description: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]).optional(),
17
17
  collection_type: zod_1.z.enum([
18
+ "media-descriptions",
18
19
  "entities",
19
20
  "rich-transcripts",
20
- "media-descriptions",
21
21
  ]),
22
22
  extract_config: zod_1.z
23
23
  .object({
@@ -62,12 +62,23 @@ const Collection = zod_1.z
62
62
  const NewCollection = zod_1.z
63
63
  .object({
64
64
  collection_type: zod_1.z.enum([
65
+ "media-descriptions",
65
66
  "entities",
66
67
  "rich-transcripts",
67
- "media-descriptions",
68
68
  ]),
69
69
  name: zod_1.z.string(),
70
70
  description: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]).optional(),
71
+ describe_config: zod_1.z
72
+ .object({
73
+ enable_summary: zod_1.z.boolean().default(true),
74
+ enable_speech: zod_1.z.boolean().default(true),
75
+ enable_scene_text: zod_1.z.boolean().default(true),
76
+ enable_visual_scene_description: zod_1.z.boolean().default(true),
77
+ })
78
+ .partial()
79
+ .strict()
80
+ .passthrough()
81
+ .optional(),
71
82
  extract_config: zod_1.z
72
83
  .object({
73
84
  prompt: zod_1.z.string(),
@@ -90,17 +101,6 @@ const NewCollection = zod_1.z
90
101
  .strict()
91
102
  .passthrough()
92
103
  .optional(),
93
- describe_config: zod_1.z
94
- .object({
95
- enable_summary: zod_1.z.boolean().default(true),
96
- enable_speech: zod_1.z.boolean().default(true),
97
- enable_scene_text: zod_1.z.boolean().default(true),
98
- enable_visual_scene_description: zod_1.z.boolean().default(true),
99
- })
100
- .partial()
101
- .strict()
102
- .passthrough()
103
- .optional(),
104
104
  default_segmentation_config: common_1.SegmentationConfig.optional(),
105
105
  default_thumbnails_config: common_2.ThumbnailsConfig.optional(),
106
106
  })
@@ -127,14 +127,6 @@ const AddCollectionFile = zod_1.z
127
127
  .partial()
128
128
  .strict()
129
129
  .passthrough());
130
- const AddYouTubeCollectionFile = zod_1.z
131
- .object({
132
- url: zod_1.z.string(),
133
- metadata: zod_1.z.object({}).partial().strict().passthrough().optional(),
134
- })
135
- .strict()
136
- .passthrough()
137
- .and(common_4.FileSegmentationConfig);
138
130
  const CollectionFile = zod_1.z
139
131
  .object({
140
132
  collection_id: zod_1.z.string(),
@@ -480,7 +472,6 @@ exports.schemas = {
480
472
  NewCollection,
481
473
  CollectionList,
482
474
  AddCollectionFile,
483
- AddYouTubeCollectionFile,
484
475
  CollectionFile,
485
476
  CollectionFileList,
486
477
  CollectionDelete,
@@ -562,7 +553,7 @@ const endpoints = (0, core_1.makeApi)([
562
553
  name: "collection_type",
563
554
  type: "Query",
564
555
  schema: zod_1.z
565
- .enum(["entities", "rich-transcripts", "media-descriptions"])
556
+ .enum(["media-descriptions", "entities", "rich-transcripts"])
566
557
  .optional(),
567
558
  },
568
559
  ],
@@ -880,44 +871,6 @@ const endpoints = (0, core_1.makeApi)([
880
871
  },
881
872
  ],
882
873
  },
883
- {
884
- method: "post",
885
- path: "/collections/:collection_id/youtube",
886
- alias: "addYouTubeVideo",
887
- description: `Add a YouTube video to a collection by URL`,
888
- requestFormat: "json",
889
- parameters: [
890
- {
891
- name: "body",
892
- description: `YouTube video URL parameters`,
893
- type: "Body",
894
- schema: AddYouTubeCollectionFile,
895
- },
896
- {
897
- name: "collection_id",
898
- type: "Path",
899
- schema: zod_1.z.string(),
900
- },
901
- ],
902
- response: CollectionFile,
903
- errors: [
904
- {
905
- status: 400,
906
- description: `Invalid request or YouTube URL`,
907
- schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
908
- },
909
- {
910
- status: 404,
911
- description: `Collection not found`,
912
- schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
913
- },
914
- {
915
- status: 500,
916
- description: `An unexpected error occurred on the server`,
917
- schema: zod_1.z.object({ error: zod_1.z.string() }).strict().passthrough(),
918
- },
919
- ],
920
- },
921
874
  {
922
875
  method: "get",
923
876
  path: "/collections/:collection_id/entities",
@@ -67,7 +67,7 @@ export declare const DescribeApi: import("@zodios/core").ZodiosInstance<[{
67
67
  method: "post";
68
68
  path: "/describe";
69
69
  alias: "createDescribe";
70
- description: "Creates a new media description job for video content";
70
+ description: "Get a comprehensive multimodal description of a video";
71
71
  requestFormat: "json";
72
72
  parameters: [{
73
73
  name: "body";
@@ -216,7 +216,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
216
216
  method: "post";
217
217
  path: "/describe";
218
218
  alias: "createDescribe";
219
- description: "Creates a new media description job for video content";
219
+ description: "Get a comprehensive multimodal description of a video";
220
220
  requestFormat: "json";
221
221
  parameters: [{
222
222
  name: "body";
@@ -111,7 +111,7 @@ const endpoints = (0, core_1.makeApi)([
111
111
  method: "post",
112
112
  path: "/describe",
113
113
  alias: "createDescribe",
114
- description: `Creates a new media description job for video content`,
114
+ description: `Get a comprehensive multimodal description of a video`,
115
115
  requestFormat: "json",
116
116
  parameters: [
117
117
  {
@@ -50,7 +50,7 @@ export declare const ExtractApi: import("@zodios/core").ZodiosInstance<[{
50
50
  method: "post";
51
51
  path: "/extract";
52
52
  alias: "createExtract";
53
- description: "Creates a new extract";
53
+ description: "Extract structured data from a video";
54
54
  requestFormat: "json";
55
55
  parameters: [{
56
56
  name: "body";
@@ -211,7 +211,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
211
211
  method: "post";
212
212
  path: "/extract";
213
213
  alias: "createExtract";
214
- description: "Creates a new extract";
214
+ description: "Extract structured data from a video";
215
215
  requestFormat: "json";
216
216
  parameters: [{
217
217
  name: "body";
@@ -82,12 +82,12 @@ const endpoints = (0, core_1.makeApi)([
82
82
  method: "post",
83
83
  path: "/extract",
84
84
  alias: "createExtract",
85
- description: `Creates a new extract`,
85
+ description: `Extract structured data from a video`,
86
86
  requestFormat: "json",
87
87
  parameters: [
88
88
  {
89
89
  name: "body",
90
- description: `Extract structured data from a video`,
90
+ description: `Extract job parameters`,
91
91
  type: "Body",
92
92
  schema: NewExtract,
93
93
  },
@@ -1,6 +1,7 @@
1
1
  import { type ZodiosOptions } from "@zodios/core";
2
2
  import { z } from "zod";
3
3
  type SearchResponse = {
4
+ id: string;
4
5
  object: "search";
5
6
  query: string;
6
7
  scope: "file" | "segment";
@@ -24,6 +25,7 @@ type FileSearchResult = {
24
25
  filename?: (string | null) | undefined;
25
26
  summary?: (string | null) | undefined;
26
27
  generated_title?: (string | null) | undefined;
28
+ thumbnail_url?: string | undefined;
27
29
  };
28
30
  type SegmentSearchResult = {
29
31
  type: "segment";
@@ -51,6 +53,7 @@ type SegmentSearchResult = {
51
53
  start_time: number;
52
54
  end_time: number;
53
55
  }>> | undefined;
56
+ thumbnail_url?: string | undefined;
54
57
  };
55
58
  type SearchFilter = Partial<{
56
59
  metadata: Array<SearchFilterCriteria>;
@@ -63,7 +66,7 @@ type SearchFilter = Partial<{
63
66
  }>;
64
67
  type SearchFilterCriteria = {
65
68
  path: string;
66
- operator: "NotEqual" | "Equal" | "LessThan" | "GreaterThan" | "ContainsAny" | "ContainsAll" | "In";
69
+ operator: "NotEqual" | "Equal" | "LessThan" | "GreaterThan" | "ContainsAny" | "ContainsAll" | "In" | "Like";
67
70
  valueText?: string | undefined;
68
71
  valueTextArray?: Array<string> | undefined;
69
72
  };
@@ -101,7 +104,7 @@ export declare const SearchApi: import("@zodios/core").ZodiosInstance<[{
101
104
  method: "post";
102
105
  path: "/search";
103
106
  alias: "searchContent";
104
- description: "Search for videos or video segments in collections to find relevant videos or moments/clips in a video. Supports filtering by metadata, video info, and file properties.\n\n**Important:** Currently only rich-transcript collections support search. For file-level search (scope&#x3D;&#x27;file&#x27;), the collection must be configured with &#x27;enable_summary: true&#x27; in the transcribe_config.";
107
+ description: "Search for videos or video segments in collections to find relevant videos or moments/clips in a video";
105
108
  requestFormat: "json";
106
109
  parameters: [{
107
110
  name: "body";
@@ -146,7 +149,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
146
149
  method: "post";
147
150
  path: "/search";
148
151
  alias: "searchContent";
149
- description: "Search for videos or video segments in collections to find relevant videos or moments/clips in a video. Supports filtering by metadata, video info, and file properties.\n\n**Important:** Currently only rich-transcript collections support search. For file-level search (scope&#x3D;&#x27;file&#x27;), the collection must be configured with &#x27;enable_summary: true&#x27; in the transcribe_config.";
152
+ description: "Search for videos or video segments in collections to find relevant videos or moments/clips in a video";
150
153
  requestFormat: "json";
151
154
  parameters: [{
152
155
  name: "body";
@@ -15,6 +15,7 @@ const SearchFilterCriteria = zod_1.z
15
15
  "ContainsAny",
16
16
  "ContainsAll",
17
17
  "In",
18
+ "Like",
18
19
  ]),
19
20
  valueText: zod_1.z.string().optional(),
20
21
  valueTextArray: zod_1.z.array(zod_1.z.string()).optional(),
@@ -60,6 +61,7 @@ const FileSearchResult = zod_1.z
60
61
  filename: zod_1.z.string().nullish(),
61
62
  summary: zod_1.z.string().nullish(),
62
63
  generated_title: zod_1.z.string().nullish(),
64
+ thumbnail_url: zod_1.z.string().url().optional(),
63
65
  })
64
66
  .strict()
65
67
  .passthrough();
@@ -108,11 +110,13 @@ const SegmentSearchResult = zod_1.z
108
110
  .strict()
109
111
  .passthrough())
110
112
  .optional(),
113
+ thumbnail_url: zod_1.z.string().url().optional(),
111
114
  })
112
115
  .strict()
113
116
  .passthrough();
114
117
  const SearchResponse = zod_1.z
115
118
  .object({
119
+ id: zod_1.z.string().uuid(),
116
120
  object: zod_1.z.literal("search"),
117
121
  query: zod_1.z.string(),
118
122
  scope: zod_1.z.enum(["file", "segment"]),
@@ -135,9 +139,7 @@ const endpoints = (0, core_1.makeApi)([
135
139
  method: "post",
136
140
  path: "/search",
137
141
  alias: "searchContent",
138
- description: `Search for videos or video segments in collections to find relevant videos or moments/clips in a video. Supports filtering by metadata, video info, and file properties.
139
-
140
- **Important:** Currently only rich-transcript collections support search. For file-level search (scope&#x3D;&#x27;file&#x27;), the collection must be configured with &#x27;enable_summary: true&#x27; in the transcribe_config.`,
142
+ description: `Search for videos or video segments in collections to find relevant videos or moments/clips in a video`,
141
143
  requestFormat: "json",
142
144
  parameters: [
143
145
  {
@@ -67,7 +67,7 @@ export declare const TranscribeApi: import("@zodios/core").ZodiosInstance<[{
67
67
  method: "post";
68
68
  path: "/transcribe";
69
69
  alias: "createTranscribe";
70
- description: "Creates a new transcription job for video content";
70
+ description: "Creates a new transcription job for video content.\n\nNote: For most use cases, you should use the &#x60;/describe&#x60; endpoint instead. This API will be deprecated in the future and only supports speech level understanding.";
71
71
  requestFormat: "json";
72
72
  parameters: [{
73
73
  name: "body";
@@ -216,7 +216,7 @@ export declare function createApiClient(baseUrl: string, options?: ZodiosOptions
216
216
  method: "post";
217
217
  path: "/transcribe";
218
218
  alias: "createTranscribe";
219
- description: "Creates a new transcription job for video content";
219
+ description: "Creates a new transcription job for video content.\n\nNote: For most use cases, you should use the &#x60;/describe&#x60; endpoint instead. This API will be deprecated in the future and only supports speech level understanding.";
220
220
  requestFormat: "json";
221
221
  parameters: [{
222
222
  name: "body";
@@ -111,7 +111,9 @@ const endpoints = (0, core_1.makeApi)([
111
111
  method: "post",
112
112
  path: "/transcribe",
113
113
  alias: "createTranscribe",
114
- description: `Creates a new transcription job for video content`,
114
+ description: `Creates a new transcription job for video content.
115
+
116
+ Note: For most use cases, you should use the &#x60;/describe&#x60; endpoint instead. This API will be deprecated in the future and only supports speech level understanding.`,
115
117
  requestFormat: "json",
116
118
  parameters: [
117
119
  {
@@ -132,11 +132,7 @@ interface ChatCompletionParams {
132
132
  valueTextArray?: string[];
133
133
  }>;
134
134
  };
135
- force_search?: boolean;
136
- include_citations?: boolean;
137
135
  temperature?: number;
138
- top_p?: number;
139
- max_tokens?: number;
140
136
  }
141
137
  interface SearchParams {
142
138
  scope: "file" | "segment";
@@ -510,7 +506,7 @@ declare class EnhancedCollectionsApi {
510
506
  object: "collection";
511
507
  name: string;
512
508
  description?: (string | null) | undefined;
513
- collection_type: "entities" | "rich-transcripts" | "media-descriptions";
509
+ collection_type: "media-descriptions" | "entities" | "rich-transcripts";
514
510
  extract_config?: Partial<{
515
511
  prompt: string;
516
512
  schema: {};
@@ -543,7 +539,7 @@ declare class EnhancedCollectionsApi {
543
539
  object: "collection";
544
540
  name: string;
545
541
  description?: (string | null) | undefined;
546
- collection_type: "entities" | "rich-transcripts" | "media-descriptions";
542
+ collection_type: "media-descriptions" | "entities" | "rich-transcripts";
547
543
  extract_config?: Partial<{
548
544
  prompt: string;
549
545
  schema: {};
@@ -572,7 +568,7 @@ declare class EnhancedCollectionsApi {
572
568
  object: "collection";
573
569
  name: string;
574
570
  description?: (string | null) | undefined;
575
- collection_type: "entities" | "rich-transcripts" | "media-descriptions";
571
+ collection_type: "media-descriptions" | "entities" | "rich-transcripts";
576
572
  extract_config?: Partial<{
577
573
  prompt: string;
578
574
  schema: {};
@@ -761,27 +757,6 @@ declare class EnhancedCollectionsApi {
761
757
  end_time: import("zod").ZodOptional<import("zod").ZodNumber>;
762
758
  }, import("zod").ZodTypeAny, "passthrough">>, "many">>;
763
759
  }, import("zod").ZodTypeAny, "passthrough">>;
764
- /**
765
- * @deprecated Use addVideoByUrl instead
766
- */
767
- addYouTubeVideo(collectionId: string, url: string, params?: {
768
- metadata?: Record<string, any>;
769
- segmentation_config?: SegmentationConfig;
770
- segmentation_id?: string;
771
- }): Promise<{
772
- collection_id: string;
773
- file_id: string;
774
- object: "collection_file";
775
- added_at: number;
776
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
777
- file?: File | undefined;
778
- segmentation?: {
779
- id: string;
780
- status: "pending" | "processing" | "completed" | "failed" | "not_applicable";
781
- file_id: string;
782
- segmentation_config: import("../generated/common").SegmentationConfig;
783
- } | undefined;
784
- }>;
785
760
  listEntities(collectionId: string, params?: ListCollectionEntitiesParams): Promise<import("zod").objectOutputType<{
786
761
  object: import("zod").ZodLiteral<"list">;
787
762
  data: import("zod").ZodArray<import("zod").ZodObject<{
@@ -2704,6 +2679,7 @@ declare class EnhancedSearchApi {
2704
2679
  private readonly api;
2705
2680
  constructor(api: typeof SearchApi);
2706
2681
  searchContent(params: SearchParams): Promise<{
2682
+ id: string;
2707
2683
  object: "search";
2708
2684
  query: string;
2709
2685
  scope: "file" | "segment";
@@ -2716,6 +2692,7 @@ declare class EnhancedSearchApi {
2716
2692
  filename?: (string | null) | undefined;
2717
2693
  summary?: (string | null) | undefined;
2718
2694
  generated_title?: (string | null) | undefined;
2695
+ thumbnail_url?: string | undefined;
2719
2696
  } | {
2720
2697
  type: "segment";
2721
2698
  file_id: string;
@@ -2742,6 +2719,7 @@ declare class EnhancedSearchApi {
2742
2719
  start_time: number;
2743
2720
  end_time: number;
2744
2721
  }>> | undefined;
2722
+ thumbnail_url?: string | undefined;
2745
2723
  }>;
2746
2724
  total: number;
2747
2725
  limit: number;
@@ -169,12 +169,6 @@ class EnhancedCollectionsApi {
169
169
  queries: { limit, offset, response_format },
170
170
  });
171
171
  }
172
- /**
173
- * @deprecated Use addVideoByUrl instead
174
- */
175
- async addYouTubeVideo(collectionId, url, params = {}) {
176
- return this.api.addYouTubeVideo({ url, ...params }, { params: { collection_id: collectionId, ...params } });
177
- }
178
172
  async listEntities(collectionId, params = {}) {
179
173
  return this.api.listCollectionEntities({
180
174
  params: { collection_id: collectionId },
@@ -432,7 +426,7 @@ class CloudGlue {
432
426
  headers: {
433
427
  Authorization: `Bearer ${this.apiKey}`,
434
428
  'x-sdk-client': 'cloudglue-js',
435
- 'x-sdk-version': '0.2.0',
429
+ 'x-sdk-version': '0.2.2',
436
430
  },
437
431
  baseURL: this.baseUrl,
438
432
  timeout: this.timeout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aviaryhq/cloudglue-js",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Cloudglue API client for Node.js",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",