You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regenerated from spec v0.7.11 (cloudglue/cloudglue-api-spec#105) and
bumped to 0.7.18.
NOTE: the working branch was rebuilt on top of origin/main — the previous
local checkout was based 9 commits back (missing the v0.7.9/v0.7.10
syncs); the regenerated cloudglue/sdk tree was carried over intact.
Generated (cloudglue/sdk):
- IconikSourceMetadata model; SourceMetadata oneOf and the connector/
source enums now cover iconik
- New sync_file_source_metadata endpoint (POST /files/{file_id}/sync)
- include_metadata query param on describe/transcribe get+list,
collection media-description/rich-transcript listings, and segmentation
describes; Describe/Transcribe responses gain a file object
- SearchFilter.source_metadata and the doc_lexical search modality
- 'metadata' collection_type
Wrapper (cloudglue/client + package):
- files.sync_source_metadata(file_id) for the new endpoint
- include_metadata plumbed through describe/transcribe/segmentations/
collections methods (9 endpoints)
- Search.create_filter gains source_metadata_filters (SearchFilterCriteria)
- collection_type docstrings cover 'metadata' (and fix a stale enum)
- IconikSourceMetadata re-exported at top level
- data-connectors docstrings: per-connector matrices include iconik
Verified against the live API: 14/14 checks across iconik listing/lookup/
title_search, metadata-collection create+index of grain+iconik URLs,
source-metadata refresh (isinstance checks), doc_lexical +
source_metadata-filtered search, and the include_metadata toggle.
"""List all rich transcription data for files in a collection.
548
557
@@ -557,6 +566,8 @@ def list_rich_transcripts(
557
566
added_before: Filter files added before a specific date (YYYY-MM-DD format), in UTC timezone
558
567
added_after: Filter files added after a specific date (YYYY-MM-DD format), in UTC timezone
559
568
response_format: Format for the response
569
+
include_metadata: When true, include each file's `metadata` and `source_metadata`
570
+
on the `file` object of each entry.
560
571
561
572
Returns:
562
573
Collection rich transcripts list response
@@ -574,6 +585,7 @@ def list_rich_transcripts(
574
585
added_before=added_before,
575
586
added_after=added_after,
576
587
response_format=response_format,
588
+
include_metadata=include_metadata,
577
589
)
578
590
returnresponse
579
591
exceptApiExceptionase:
@@ -594,6 +606,7 @@ def get_media_descriptions(
594
606
include_word_timestamps: Optional[bool] =None,
595
607
include_chapters: Optional[bool] =None,
596
608
include_shots: Optional[bool] =None,
609
+
include_metadata: Optional[bool] =None,
597
610
):
598
611
"""Get the media descriptions of a video in a collection.
599
612
@@ -607,6 +620,8 @@ def get_media_descriptions(
607
620
include_word_timestamps: When true, include word-level timestamps on speech entries. Not available for YouTube sources. Only applies when response_format=json.
608
621
include_chapters: When true, include narrative chapters in the response (when segmentation strategy is 'narrative')
609
622
include_shots: When true, include shot boundaries in the response (when segmentation strategy is 'shot-detector')
623
+
include_metadata: When true, include the file's `metadata` and `source_metadata`
624
+
on the response's `file` object.
610
625
611
626
Returns:
612
627
The typed MediaDescription object with video media description data
@@ -617,7 +632,7 @@ def get_media_descriptions(
617
632
try:
618
633
# Use the standard method to get a properly typed object
Copy file name to clipboardExpand all lines: cloudglue/client/resources/data_connectors.py
+11-9Lines changed: 11 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -72,17 +72,18 @@ def list_files(
72
72
filter parameters they were issued under.
73
73
var_from: Start date for filtering (YYYY-MM-DD, inclusive UTC day
74
74
bound). Supported by Grain, Zoom, Recall, Google Drive,
75
-
Dropbox, and Gong (Zoom and Gong default to a 6-month lookback
76
-
when omitted); ignored for S3/GCS.
75
+
Dropbox, Gong, and Iconik (Zoom and Gong default to a 6-month
76
+
lookback when omitted); ignored for S3/GCS.
77
77
to: End date for filtering (YYYY-MM-DD). Same per-connector
78
78
support as `var_from`.
79
79
folder_id: Google Drive folder ID to list contents of. Applies to Google Drive connectors only.
80
80
path: Dropbox folder path to list contents of (default: root). Applies to Dropbox connectors only.
81
81
bucket: Bucket name. Required for S3 and GCS connectors.
82
82
prefix: Key prefix filter. Applies to S3 and GCS connectors only.
83
83
title_search: Case-insensitive title filter. Supported by Grain,
84
-
Zoom, Google Drive, Dropbox, and Gong; ignored for Recall (no
85
-
title is available when listing) and S3/GCS.
84
+
Zoom, Google Drive, Dropbox, Gong, and Iconik (full-text title
85
+
search); ignored for Recall (no title is available when
86
+
listing) and S3/GCS.
86
87
team: Team filter. Applies to Grain connectors only. See the [Grain documentation](https://developers.grain.com/#recording-filter) for more details.
87
88
meeting_type: Meeting type filter. Applies to Grain connectors only. See the [Grain documentation](https://developers.grain.com/#recording-filter) for more details.
Copy file name to clipboardExpand all lines: cloudglue/client/resources/describe.py
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,7 @@ def get(
121
121
include_word_timestamps: Optional[bool] =None,
122
122
include_chapters: Optional[bool] =None,
123
123
include_shots: Optional[bool] =None,
124
+
include_metadata: Optional[bool] =None,
124
125
):
125
126
"""Get the status and data of a media description job.
126
127
@@ -137,6 +138,8 @@ def get(
137
138
include_word_timestamps: When true, include word-level timestamps on speech entries. Not available for YouTube sources. Only applies when response_format=json.
138
139
include_chapters: When true, include narrative chapters in the response (when segmentation strategy is 'narrative')
139
140
include_shots: When true, include shot boundaries in the response (when segmentation strategy is 'shot-detector')
141
+
include_metadata: When true, include the file's `metadata` and `source_metadata`
142
+
on the response's `file` object.
140
143
141
144
Returns:
142
145
The typed Describe job object with current status and data (if completed).
@@ -156,6 +159,7 @@ def get(
156
159
include_word_timestamps=include_word_timestamps,
157
160
include_chapters=include_chapters,
158
161
include_shots=include_shots,
162
+
include_metadata=include_metadata,
159
163
)
160
164
returnresponse
161
165
exceptApiExceptionase:
@@ -173,6 +177,7 @@ def list(
173
177
response_format: Optional[str] =None,
174
178
url: Optional[str] =None,
175
179
include_data: Optional[bool] =None,
180
+
include_metadata: Optional[bool] =None,
176
181
):
177
182
"""List all media description jobs with optional filtering.
178
183
@@ -186,6 +191,8 @@ def list(
186
191
url: Filter description jobs by the input URL used for description.
187
192
include_data: Include the data in the response. If false, the response will only include
188
193
the job information and not the data to minimize the response size.
194
+
include_metadata: When true, include each file's `metadata` and `source_metadata`
195
+
on the `file` object of each job.
189
196
190
197
Returns:
191
198
The typed DescribeList object with array of describe jobs.
0 commit comments