@deepraxis/sdk 0.1.1-dev.00ed035 → 0.1.1-dev.016e776

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.
@@ -1144,7 +1144,7 @@ export type OwnFileDeleteFileResponse = {
1144
1144
  };
1145
1145
  export type OwnFilePraxisCreateUpload = {
1146
1146
  /**
1147
- * Exact complete file length in bytes, from 1 through 2147483648 (2 GiB); the sum of completed parts must match.
1147
+ * Exact complete file length in bytes, from 1 through 21474836480 (20 GiB); the sum of completed parts must match.
1148
1148
  */
1149
1149
  bytes: number;
1150
1150
  /**
@@ -1195,7 +1195,7 @@ export type OwnFilePraxisUpload = {
1195
1195
  */
1196
1196
  created_at: number;
1197
1197
  /**
1198
- * Expiry time as Unix seconds; unfinished uploads expire after one hour.
1198
+ * Expiry time as Unix seconds; unfinished uploads expire after 7 days.
1199
1199
  */
1200
1200
  expires_at: number;
1201
1201
  /**
@@ -1207,13 +1207,38 @@ export type OwnFilePraxisUpload = {
1207
1207
  */
1208
1208
  purpose: 'user_data' | 'assistants' | 'vision';
1209
1209
  /**
1210
- * Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its one-hour lifetime.
1210
+ * Upload state: pending accepts parts; completed has a file; cancelled was cancelled; expired exceeded its seven-day lifetime.
1211
1211
  */
1212
1212
  status: 'pending' | 'completed' | 'cancelled' | 'expired';
1213
1213
  /**
1214
1214
  * Present after complete. A file with status uploaded is still processing; poll files.retrieve until processed before use.
1215
1215
  */
1216
1216
  file?: OwnFileOpenAiFile | null;
1217
+ /**
1218
+ * Fixed part length in bytes for a fixed-size upload, or null for a general upload. Send exactly this many bytes per numbered part except for the final remainder.
1219
+ */
1220
+ part_size?: number | null;
1221
+ /**
1222
+ * Parts the upload already holds, in resume order: numbered parts by number, then a general upload's parts by arrival. Query GET /file/v1/uploads/{upload_id} after a break and resend only the numbers missing here.
1223
+ */
1224
+ received_parts?: Array<{
1225
+ /**
1226
+ * Fixed part number, or null for a part of a general upload.
1227
+ */
1228
+ part_number: number | null;
1229
+ /**
1230
+ * Part identifier to pass to complete for this content.
1231
+ */
1232
+ id: string;
1233
+ /**
1234
+ * Accepted length of this part in bytes.
1235
+ */
1236
+ bytes: number;
1237
+ /**
1238
+ * Part content digest prefixed sha256:.
1239
+ */
1240
+ sha256: string;
1241
+ }>;
1217
1242
  /**
1218
1243
  * Declared MIME type, verified during assembly.
1219
1244
  */
@@ -1274,7 +1299,7 @@ export type OwnFileSignedUploadRequest = {
1274
1299
  */
1275
1300
  filename: string;
1276
1301
  /**
1277
- * Exact local file size in bytes, from 1 through 2147483648 (2 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs and a completion URL. Every PUT requires its exact signed Content-Length.
1302
+ * Exact local file size in bytes, from 1 through 21474836480 (20 GiB). Up to 104857600 bytes returns one PUT URL; larger files return numbered part URLs, a completion URL and a status URL. Every PUT requires its exact signed Content-Length.
1278
1303
  */
1279
1304
  bytes: number;
1280
1305
  /**
@@ -1286,7 +1311,7 @@ export type OwnFileSignedUploadRequest = {
1286
1311
  */
1287
1312
  purpose?: 'user_data' | 'assistants' | 'vision';
1288
1313
  /**
1289
- * Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 3600 for multipart. All part URLs and the completion URL share one expiry. This does not set the resulting file's lifetime.
1314
+ * Lifetime in seconds, from 1 through 604800: defaults to 900 for single PUT or 604800 (7 days) for multipart. All part URLs, the status URL and the completion URL share one expiry. This does not set the resulting file's lifetime.
1290
1315
  */
1291
1316
  expires_in?: number;
1292
1317
  /**
@@ -1337,6 +1362,10 @@ export type OwnFileSignedUploadResponse = {
1337
1362
  * Bearer URL to POST without a body after every chunk is acknowledged. Returns 201 with the file object; missing chunks return 400 and successful completion replays return 410 CAPABILITY_USED.
1338
1363
  */
1339
1364
  complete_url: string;
1365
+ /**
1366
+ * Read-only bearer URL for GET that answers the same body as GET /file/v1/uploads/{upload_id}: status, part_size and the received_parts. Use it after a break to resend only the missing chunks; it needs no API key and every write on it is refused.
1367
+ */
1368
+ status_url: string;
1340
1369
  };
1341
1370
  /**
1342
1371
  * Problem document returned by the Meta method catalog on failure.
@@ -10553,7 +10582,7 @@ export type AutomationTrigger = {
10553
10582
  */
10554
10583
  end_at: string | null;
10555
10584
  /**
10556
- * Overlap policy when a firing is due while the previous run is still active: skip (default) skips it, allow starts it anyway.
10585
+ * Overlap policy when a firing arrives while the previous run is still active: skip skips it, allow starts it anyway. When omitted, a schedule trigger uses skip and a webhook trigger uses allow, because a skipped webhook call is not redelivered.
10557
10586
  */
10558
10587
  overlap: AutomationTriggerOverlap;
10559
10588
  /**
@@ -10673,7 +10702,7 @@ export type AutomationTriggerCreateResult = {
10673
10702
  */
10674
10703
  end_at: string | null;
10675
10704
  /**
10676
- * Overlap policy when a firing is due while the previous run is still active: skip (default) skips it, allow starts it anyway.
10705
+ * Overlap policy when a firing arrives while the previous run is still active: skip skips it, allow starts it anyway. When omitted, a schedule trigger uses skip and a webhook trigger uses allow, because a skipped webhook call is not redelivered.
10677
10706
  */
10678
10707
  overlap: AutomationTriggerOverlap;
10679
10708
  /**
@@ -12774,6 +12803,10 @@ export type CutFramesResult = {
12774
12803
  images: {
12775
12804
  [key: string]: CutRenderRef;
12776
12805
  };
12806
+ /**
12807
+ * Frame delivery warnings; empty when every requested source frame was available.
12808
+ */
12809
+ warnings: Array<CutFrameWarning>;
12777
12810
  };
12778
12811
  /**
12779
12812
  * Analysis status and available ranges for each source asset and kind.
@@ -13018,6 +13051,27 @@ export type CutExport = {
13018
13051
  */
13019
13052
  audio: 'pending' | 'done';
13020
13053
  };
13054
+ /**
13055
+ * Present when normalization was requested; contains requested targets and measured output levels.
13056
+ */
13057
+ loudness?: {
13058
+ /**
13059
+ * Requested integrated loudness target in LUFS.
13060
+ */
13061
+ target_lufs: number;
13062
+ /**
13063
+ * Requested maximum true peak in dBTP.
13064
+ */
13065
+ true_peak_dbtp: number;
13066
+ /**
13067
+ * Measured integrated loudness of the rendered export in LUFS.
13068
+ */
13069
+ integrated_lufs: number;
13070
+ /**
13071
+ * Measured maximum true peak of the rendered export in dBTP.
13072
+ */
13073
+ measured_true_peak_dbtp: number;
13074
+ };
13021
13075
  /**
13022
13076
  * Output media reference, available after the export reaches done.
13023
13077
  */
@@ -13090,6 +13144,19 @@ export type CutExportInput = {
13090
13144
  */
13091
13145
  binding?: string;
13092
13146
  revision?: CutRevision;
13147
+ /**
13148
+ * Optional loudness normalization target; normalization adds analysis and rendering work.
13149
+ */
13150
+ loudness?: {
13151
+ /**
13152
+ * Integrated loudness target in LUFS.
13153
+ */
13154
+ target_lufs: number;
13155
+ /**
13156
+ * Maximum true peak in dBTP.
13157
+ */
13158
+ true_peak_dbtp: number;
13159
+ };
13093
13160
  };
13094
13161
  /**
13095
13162
  * One page of organization-accessible exports.
@@ -14142,7 +14209,7 @@ export type MediaLibrary = {
14142
14209
  };
14143
14210
  export type MediaMediaError = {
14144
14211
  error: {
14145
- code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
14212
+ code: 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
14146
14213
  message: string;
14147
14214
  details: string | null;
14148
14215
  };
@@ -14171,6 +14238,10 @@ export type MediaMediaModelsInput = {
14171
14238
  * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction. Null restores this role’s default.
14172
14239
  */
14173
14240
  reference_transcription?: string | null;
14241
+ /**
14242
+ * Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges. Null restores this role’s default.
14243
+ */
14244
+ audio?: string | null;
14174
14245
  } | null;
14175
14246
  /**
14176
14247
  * Libraries in this page, ordered by creation time descending.
@@ -14363,7 +14434,7 @@ export type MediaAsset = {
14363
14434
  */
14364
14435
  url: string;
14365
14436
  /**
14366
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
14437
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
14367
14438
  */
14368
14439
  secure_url: string;
14369
14440
  /**
@@ -14390,6 +14461,10 @@ export type MediaAsset = {
14390
14461
  * Resource status; active identifies an asset that has not been deleted.
14391
14462
  */
14392
14463
  status: 'active';
14464
+ /**
14465
+ * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
14466
+ */
14467
+ has_alpha?: boolean;
14393
14468
  /**
14394
14469
  * Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
14395
14470
  */
@@ -14446,6 +14521,27 @@ export type MediaAsset = {
14446
14521
  };
14447
14522
  };
14448
14523
  };
14524
+ /**
14525
+ * Source details for the video-generation job that created this asset.
14526
+ */
14527
+ generation?: {
14528
+ /**
14529
+ * Job id that generated this asset.
14530
+ */
14531
+ job_id: MediaJobId;
14532
+ /**
14533
+ * Generation intent used to create the asset; v1 supports video.generate.
14534
+ */
14535
+ intent: string;
14536
+ /**
14537
+ * Text prompt submitted for the generation job.
14538
+ */
14539
+ prompt: string;
14540
+ /**
14541
+ * Router video-generation model that produced the asset.
14542
+ */
14543
+ model: string;
14544
+ };
14449
14545
  };
14450
14546
  /**
14451
14547
  * Receipt confirming that the asset was deleted.
@@ -14588,11 +14684,11 @@ export type MediaJob = {
14588
14684
  /**
14589
14685
  * Batch operation: tag adds labels, untag removes labels, set_context replaces custom metadata, move changes asset_folder, and delete removes selected assets. reprocess starts fenced understanding Workflows for retryable failed steps and legacy source-size unsupported steps; kinds narrows the selection. Other unsupported and permanent steps remain unchanged.
14590
14686
  */
14591
- action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess';
14687
+ action: 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'generate';
14592
14688
  /**
14593
14689
  * Job status: queued awaits execution; running is processing items; completed means all items succeeded; completed_with_errors means some succeeded and some failed; failed means all selected items failed. An empty job completes successfully.
14594
14690
  */
14595
- status: 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed';
14691
+ status: MediaJobStatus;
14596
14692
  /**
14597
14693
  * Number of distinct assets selected when the job was created.
14598
14694
  */
@@ -14612,12 +14708,66 @@ export type MediaJob = {
14612
14708
  /**
14613
14709
  * Identifier supplied for the failed item; it may identify a missing asset.
14614
14710
  */
14615
- asset_id: MediaAssetId;
14711
+ asset_id?: MediaAssetId;
14712
+ /**
14713
+ * Zero-based output index for a failed video-generation item.
14714
+ */
14715
+ index?: number;
14616
14716
  /**
14617
14717
  * Domain error code explaining the individual item failure.
14618
14718
  */
14619
14719
  code: MediaMediaErrorCode;
14620
14720
  }>;
14721
+ /**
14722
+ * Generation intent used by this job; v1 supports video.generate.
14723
+ */
14724
+ intent?: string;
14725
+ /**
14726
+ * Router video-generation model used for the outputs.
14727
+ */
14728
+ model?: string;
14729
+ /**
14730
+ * Per-video results in index order; save a successful candidate before expires_at.
14731
+ */
14732
+ outputs?: Array<{
14733
+ /**
14734
+ * Zero-based position of this video in the requested count.
14735
+ */
14736
+ index: number;
14737
+ /**
14738
+ * State of this requested video output.
14739
+ */
14740
+ status: MediaGenerationOutputStatus;
14741
+ /**
14742
+ * Short-lived signed URL for previewing this candidate; read the Job again to obtain a fresh URL.
14743
+ */
14744
+ preview_url?: string;
14745
+ /**
14746
+ * Router seed for this video, when returned; it may be absent.
14747
+ */
14748
+ seed?: number | null;
14749
+ /**
14750
+ * Candidate expiry time; after expiry, save returns CANDIDATE_EXPIRED.
14751
+ */
14752
+ expires_at?: MediaIsoTimestamp;
14753
+ /**
14754
+ * Library asset identifier after this candidate has been saved, or when the job requested save=library.
14755
+ */
14756
+ asset_id?: MediaAssetId;
14757
+ }>;
14758
+ /**
14759
+ * Router-reported generation charge for the job.
14760
+ */
14761
+ usage?: {
14762
+ /**
14763
+ * Decimal amount in the currency named by currency; this is not a floating-point value.
14764
+ */
14765
+ amount: string;
14766
+ /**
14767
+ * Currency code for amount.
14768
+ */
14769
+ currency: string;
14770
+ };
14621
14771
  /**
14622
14772
  * Time the batch job was created, in UTC.
14623
14773
  */
@@ -14732,6 +14882,524 @@ export type MediaFailureSummary = {
14732
14882
  */
14733
14883
  counts_complete: boolean;
14734
14884
  };
14885
+ /**
14886
+ * Current state of a batch or video-generation job.
14887
+ */
14888
+ export type MediaJobStatus = 'queued' | 'running' | 'completed' | 'completed_with_errors' | 'failed' | 'cancelled';
14889
+ /**
14890
+ * Identifier returned when a batch job is created.
14891
+ */
14892
+ export type MediaJobId = string;
14893
+ /**
14894
+ * A page of jobs in a library.
14895
+ */
14896
+ export type MediaJobPage = {
14897
+ /**
14898
+ * Jobs returned in this page.
14899
+ */
14900
+ data: Array<MediaJob>;
14901
+ /**
14902
+ * Cursor for the next page, or null when there are no more jobs.
14903
+ */
14904
+ next_cursor: MediaJobId | null;
14905
+ };
14906
+ /**
14907
+ * Current text-to-video options, concurrency and candidate retention. Generation is charged per second; unsaved candidates expire after 7 days.
14908
+ */
14909
+ export type MediaGenerationCapabilities = {
14910
+ /**
14911
+ * Text-to-video intents currently supported by Media.
14912
+ */
14913
+ intents: Array<string>;
14914
+ /**
14915
+ * Model selected when model is omitted from a generation request.
14916
+ */
14917
+ default_model: string;
14918
+ /**
14919
+ * Allowed number of videos per generation job.
14920
+ */
14921
+ count: {
14922
+ /**
14923
+ * Minimum number of videos in one generation job.
14924
+ */
14925
+ minimum: number;
14926
+ /**
14927
+ * Maximum number of videos in one generation job.
14928
+ */
14929
+ maximum: number;
14930
+ };
14931
+ /**
14932
+ * Durations in seconds supported by the default video model.
14933
+ */
14934
+ duration_seconds: Array<number>;
14935
+ /**
14936
+ * Aspect ratios supported by the default video model.
14937
+ */
14938
+ aspect_ratios: Array<string>;
14939
+ /**
14940
+ * Aspect ratio used when aspect_ratio is omitted.
14941
+ */
14942
+ default_aspect_ratio: string;
14943
+ /**
14944
+ * Maximum number of queued or running generation jobs per library.
14945
+ */
14946
+ concurrency_per_library: number;
14947
+ /**
14948
+ * Unit used to charge video generation; generated duration is billed per second by Router.
14949
+ */
14950
+ price_unit: 'per second';
14951
+ /**
14952
+ * Days an unsaved candidate is retained before its File is deleted.
14953
+ */
14954
+ candidate_retention_days: number;
14955
+ };
14956
+ /**
14957
+ * One page of type registrations; types are few enough that this face returns them in a single page.
14958
+ */
14959
+ export type OntologyTypeRegistrationPage = {
14960
+ /**
14961
+ * The registrations in force for this organization.
14962
+ */
14963
+ data: Array<OntologyTypeRegistration>;
14964
+ /**
14965
+ * Always null here; the field is present so every list on this face has the same shape.
14966
+ */
14967
+ next_cursor: string;
14968
+ };
14969
+ /**
14970
+ * One service's registered types for this organization, as shipped by that service and stored by the deploy gate.
14971
+ */
14972
+ export type OntologyTypeRegistration = {
14973
+ /**
14974
+ * Service that registered these types, for example file or ticket; it is the registrant a later change to a type is checked against.
14975
+ */
14976
+ owner: string;
14977
+ /**
14978
+ * Monotonic version of this owner's registration; a later registration must extend this one without removing or narrowing anything.
14979
+ */
14980
+ version: number;
14981
+ /**
14982
+ * Node types this owner registers.
14983
+ */
14984
+ nodes: Array<OntologyNodeType>;
14985
+ /**
14986
+ * Relation types this owner registers.
14987
+ */
14988
+ edges: Array<OntologyEdgeType>;
14989
+ };
14990
+ export type OntologyOntologyError = {
14991
+ /**
14992
+ * Failure details for a non-2xx response; choose a recovery action using the operation's status and code description.
14993
+ */
14994
+ error: {
14995
+ /**
14996
+ * Machine-readable failure category; see this operation's error responses for triggering conditions and recovery actions.
14997
+ */
14998
+ code: string;
14999
+ /**
15000
+ * Human-readable explanation of why the request failed; it names the offending field or condition and the action to take.
15001
+ */
15002
+ message: string;
15003
+ /**
15004
+ * Optional error-specific context, present when the failure names particular items; absent for failures that concern the request as a whole.
15005
+ */
15006
+ details?: {
15007
+ [key: string]: unknown;
15008
+ };
15009
+ };
15010
+ };
15011
+ /**
15012
+ * One registered type, with the registration it belongs to and whether it is a node or a relation type.
15013
+ */
15014
+ export type OntologyTypeLookup = {
15015
+ /**
15016
+ * Service that registered this type; a change to the type is checked against that registrant.
15017
+ */
15018
+ owner: string;
15019
+ /**
15020
+ * Version of the registration this type came from, so a caller can tell when a definition moved on.
15021
+ */
15022
+ version: number;
15023
+ /**
15024
+ * Whether the type describes an entity or a fact, which decides whether it is used when creating a node or a relation.
15025
+ */
15026
+ kind: 'node' | 'edge';
15027
+ /**
15028
+ * The full registered definition — the same object as the entry in its registration's nodes or edges array.
15029
+ */
15030
+ definition: {
15031
+ [key: string]: unknown;
15032
+ };
15033
+ };
15034
+ /**
15035
+ * One page of nodes; a restricted entry carries only id, type, name and restricted.
15036
+ */
15037
+ export type OntologyNodePage = {
15038
+ /**
15039
+ * The nodes on this page, ordered by node id.
15040
+ */
15041
+ data: Array<OntologyNode | OntologyRestrictedNode>;
15042
+ /**
15043
+ * Opaque cursor for the next page, or null when this is the last page; copy it into the next request's cursor unchanged.
15044
+ */
15045
+ next_cursor: string;
15046
+ };
15047
+ /**
15048
+ * The entity to record; type must be registered and ref must match that type's prefix.
15049
+ */
15050
+ export type OntologyCreateNodeInput = {
15051
+ /**
15052
+ * Registered node type name from types.list; an unregistered name is refused and nothing is written.
15053
+ */
15054
+ type: string;
15055
+ /**
15056
+ * Id of the mirrored record in the owning service, which must start with the type's ref_prefix; omit or null for a concept with no external record.
15057
+ */
15058
+ ref?: string;
15059
+ /**
15060
+ * Display name of the entity, at most 200 characters.
15061
+ */
15062
+ name: string;
15063
+ /**
15064
+ * Other names this entity is known by; they are matched by search alongside the name.
15065
+ */
15066
+ aliases?: Array<string>;
15067
+ /**
15068
+ * Profile of the entity, at most 500 characters; omit or null for none.
15069
+ */
15070
+ description?: string;
15071
+ /**
15072
+ * Member id whose content this is, restricting it to that member; omit or null to make it readable organization-wide.
15073
+ */
15074
+ owner?: string;
15075
+ };
15076
+ /**
15077
+ * One entity in the graph, with when it was recorded and last changed.
15078
+ */
15079
+ export type OntologyNode = {
15080
+ /**
15081
+ * Node id, used by relations, merges and later reads; treat it as opaque and do not parse it.
15082
+ */
15083
+ id: string;
15084
+ /**
15085
+ * Registered node type this entity was recorded as; it never changes after creation.
15086
+ */
15087
+ type: string;
15088
+ /**
15089
+ * Id of the mirrored record in the service that owns it, matching the type's ref_prefix; null for a concept with no external record.
15090
+ */
15091
+ ref?: string;
15092
+ /**
15093
+ * Display name of the entity, at most 200 characters.
15094
+ */
15095
+ name: string;
15096
+ /**
15097
+ * Other names this entity is known by; they are matched by search alongside the name.
15098
+ */
15099
+ aliases: Array<string>;
15100
+ /**
15101
+ * Profile of the entity, at most 500 characters; null when none was recorded.
15102
+ */
15103
+ description?: string;
15104
+ /**
15105
+ * Member id whose content this is; null means it is readable organization-wide. Another member's node comes back restricted.
15106
+ */
15107
+ owner: string;
15108
+ /**
15109
+ * When this node was merged into another, that survivor's id; reads of a merged node resolve to the survivor.
15110
+ */
15111
+ merged_into?: string;
15112
+ /**
15113
+ * System time when the node was first recorded, in ISO 8601 UTC.
15114
+ */
15115
+ created_at: string;
15116
+ /**
15117
+ * System time of the last change to this node's content, in ISO 8601 UTC.
15118
+ */
15119
+ updated_at: string;
15120
+ /**
15121
+ * System time the mirrored record was deleted, when that is known; kept so history stays answerable.
15122
+ */
15123
+ deleted_at?: string;
15124
+ };
15125
+ export type OntologyNodeWithRelations = OntologyNode & {
15126
+ /**
15127
+ * Relations on and around this node that the caller may read, ordered by relation id; present only when expand=relations was sent.
15128
+ */
15129
+ relations?: Array<OntologyRelation>;
15130
+ };
15131
+ /**
15132
+ * The fields to change; omitted fields keep their current values.
15133
+ */
15134
+ export type OntologyUpdateNodeInput = {
15135
+ /**
15136
+ * New display name, at most 200 characters; omit to keep the current name.
15137
+ */
15138
+ name?: string;
15139
+ /**
15140
+ * Replacement alias list; an empty array clears the aliases and omitting the field keeps them.
15141
+ */
15142
+ aliases?: Array<string>;
15143
+ /**
15144
+ * Replacement profile, at most 500 characters; an explicit null clears it and omitting the field keeps it.
15145
+ */
15146
+ description?: string;
15147
+ };
15148
+ /**
15149
+ * The survivor the merged node folds into.
15150
+ */
15151
+ export type OntologyMergeNodeInput = {
15152
+ /**
15153
+ * Node id that should survive, from nodes.list or search; the merged node's relations and aliases move to it.
15154
+ */
15155
+ into: string;
15156
+ };
15157
+ /**
15158
+ * One page of relations.
15159
+ */
15160
+ export type OntologyRelationPage = {
15161
+ /**
15162
+ * The relations on this page, ordered by relation id.
15163
+ */
15164
+ data: Array<OntologyRelation>;
15165
+ /**
15166
+ * Opaque cursor for the next page, or null when this is the last page; copy it into the next request's cursor unchanged.
15167
+ */
15168
+ next_cursor: string;
15169
+ };
15170
+ /**
15171
+ * The fact to record between two existing nodes of this organization.
15172
+ */
15173
+ export type OntologyCreateRelationInput = {
15174
+ /**
15175
+ * Registered relation type name from types.list; it must admit both endpoints or the write is refused.
15176
+ */
15177
+ type: string;
15178
+ /**
15179
+ * Node id the fact starts from, from nodes.list or nodes.create.
15180
+ */
15181
+ source: string;
15182
+ /**
15183
+ * Node id the fact points at, from nodes.list or nodes.create.
15184
+ */
15185
+ target: string;
15186
+ /**
15187
+ * The relationship in one sentence, at most 280 characters, written to read back on its own.
15188
+ */
15189
+ fact: string;
15190
+ /**
15191
+ * World time the fact became true, when the mirrored record dates it; omit to leave it undated.
15192
+ */
15193
+ valid_at?: string;
15194
+ /**
15195
+ * Member id whose content this fact is, restricting it to that member; omit or null for organization-wide.
15196
+ */
15197
+ owner?: string;
15198
+ };
15199
+ /**
15200
+ * One fact between two nodes, with two clocks — when it was true in the world and when it was recorded.
15201
+ */
15202
+ export type OntologyRelation = {
15203
+ /**
15204
+ * Relation id, used by invalidation and later reads; treat it as opaque and do not parse it.
15205
+ */
15206
+ id: string;
15207
+ /**
15208
+ * Registered relation type this fact was recorded as; it must admit both endpoints.
15209
+ */
15210
+ type: string;
15211
+ /**
15212
+ * Node id the fact starts from.
15213
+ */
15214
+ source: string;
15215
+ /**
15216
+ * Node id the fact points at.
15217
+ */
15218
+ target: string;
15219
+ /**
15220
+ * The relationship in one sentence, at most 280 characters, as it should be read back.
15221
+ */
15222
+ fact: string;
15223
+ /**
15224
+ * Where this fact was learned, oldest first; each entry names the scope it came from and an optional time range.
15225
+ */
15226
+ episodes?: Array<{
15227
+ /**
15228
+ * Scope the experience belonged to, normally a session id.
15229
+ */
15230
+ scope?: string;
15231
+ /**
15232
+ * Start of the period the experience covered, when known; omit for a single moment.
15233
+ */
15234
+ from?: string;
15235
+ /**
15236
+ * End of the period the experience covered, when known; omit for a single moment.
15237
+ */
15238
+ to?: string;
15239
+ }>;
15240
+ /**
15241
+ * Where the fact came from; the relation type must list this origin among the ones it accepts.
15242
+ */
15243
+ origin: 'platform' | 'stated' | 'observed' | 'inferred';
15244
+ /**
15245
+ * How strongly the fact is held, from 0 to 1; 1 is fully held and lower values fade faster.
15246
+ */
15247
+ confidence: number;
15248
+ /**
15249
+ * Member id whose content this fact is; null means it is readable organization-wide. Another member's relation reads as not found.
15250
+ */
15251
+ owner?: string;
15252
+ /**
15253
+ * World time the fact became true; null when it was never dated, in which case treat it as true since it was recorded.
15254
+ */
15255
+ valid_at?: string;
15256
+ /**
15257
+ * World time the fact stopped being true; null while it still holds. The relation is kept and reads at an earlier as_of.
15258
+ */
15259
+ invalid_at?: string;
15260
+ /**
15261
+ * System time the fact was recorded, in ISO 8601 UTC.
15262
+ */
15263
+ created_at: string;
15264
+ /**
15265
+ * System time the fact was judged no longer true, which trails invalid_at; null while it still holds.
15266
+ */
15267
+ expired_at?: string;
15268
+ /**
15269
+ * Relation id that replaced this one, when the invalidation named a successor; null when nothing replaced it.
15270
+ */
15271
+ superseded_by?: string;
15272
+ /**
15273
+ * System time the fact was archived out of spreading; null while it still spreads, and reads by time still reach it either way.
15274
+ */
15275
+ archived_at?: string;
15276
+ };
15277
+ /**
15278
+ * When the fact stopped being true, and optionally what replaced it.
15279
+ */
15280
+ export type OntologyInvalidateRelationInput = {
15281
+ /**
15282
+ * World time the fact stopped being true, in ISO 8601 UTC; reads at an earlier as_of still return the relation.
15283
+ */
15284
+ invalid_at: string;
15285
+ /**
15286
+ * Relation id that replaces this one, when a successor was recorded; omit or null when nothing replaced it.
15287
+ */
15288
+ superseded_by?: string;
15289
+ /**
15290
+ * Why it stopped being true, for people reading the history later; not enforced and safe to omit.
15291
+ */
15292
+ reason?: string;
15293
+ };
15294
+ /**
15295
+ * A batch of graph operations applied as one transaction; every operation succeeds or none is applied.
15296
+ */
15297
+ export type OntologyChangesetInput = {
15298
+ /**
15299
+ * World time the batch describes, in ISO 8601 UTC; operations without their own time are dated by it.
15300
+ */
15301
+ at: string;
15302
+ /**
15303
+ * Scope the batch came from, normally the session id it was observed in; it is stored with the operations for later reading.
15304
+ */
15305
+ scope?: string;
15306
+ /**
15307
+ * At most 500 operations, applied in order; each names its kind in op and the fields that kind requires.
15308
+ */
15309
+ ops: Array<OntologyChangesetOp>;
15310
+ };
15311
+ /**
15312
+ * What the batch did, including the ids it assigned and anything it refused.
15313
+ */
15314
+ export type OntologyChangesetResult = {
15315
+ /**
15316
+ * Number of operations that changed the graph; zero when the key had been seen before.
15317
+ */
15318
+ applied: number;
15319
+ /**
15320
+ * Map from each key used in the batch to the node or relation id it produced or matched.
15321
+ */
15322
+ ids: {
15323
+ [key: string]: string;
15324
+ };
15325
+ /**
15326
+ * Relations that already held the same meaning and were refreshed instead of duplicated.
15327
+ */
15328
+ refreshed: Array<string>;
15329
+ /**
15330
+ * Operations refused within the batch, each with its index and reason; empty when the batch applied whole.
15331
+ */
15332
+ rejected: Array<{
15333
+ /**
15334
+ * Zero-based position of the operation in the submitted ops array.
15335
+ */
15336
+ index?: number;
15337
+ /**
15338
+ * Failure category for this operation, such as ONTOLOGY_TYPE_UNKNOWN for an unregistered type.
15339
+ */
15340
+ code?: string;
15341
+ /**
15342
+ * Why this operation was refused, naming the offending field.
15343
+ */
15344
+ message?: string;
15345
+ }>;
15346
+ /**
15347
+ * True when the Idempotency-Key had been seen before, so nothing changed and the first result is returned.
15348
+ */
15349
+ replayed: boolean;
15350
+ };
15351
+ /**
15352
+ * The text to resolve, optionally narrowed to types and a result count.
15353
+ */
15354
+ export type OntologySearchInput = {
15355
+ /**
15356
+ * Text to find nodes for, matched against names, aliases, descriptions and relation facts; an empty string is refused.
15357
+ */
15358
+ text: string;
15359
+ /**
15360
+ * Registered node type names to search within; omit to search every type.
15361
+ */
15362
+ types?: Array<string>;
15363
+ /**
15364
+ * Restrict matches to facts recorded within a period; omit to search all time.
15365
+ */
15366
+ window?: {
15367
+ /**
15368
+ * Start of the period, inclusive, in ISO 8601 UTC; omit to leave the start open.
15369
+ */
15370
+ from?: string;
15371
+ /**
15372
+ * End of the period, exclusive, in ISO 8601 UTC; omit to leave the end open.
15373
+ */
15374
+ to?: string;
15375
+ };
15376
+ /**
15377
+ * Maximum candidate nodes to return, from 1 to 50; defaults to 20 when omitted.
15378
+ */
15379
+ limit?: number;
15380
+ };
15381
+ /**
15382
+ * Ranked candidate nodes for the searched text, best match first.
15383
+ */
15384
+ export type OntologySearchResult = {
15385
+ /**
15386
+ * The candidate nodes, strongest match first; an empty array means nothing matched.
15387
+ */
15388
+ hits: Array<{
15389
+ /**
15390
+ * Node id of the candidate; pass it to nodes.retrieve to confirm before writing with it.
15391
+ */
15392
+ node?: string;
15393
+ /**
15394
+ * Match strength from 0 to 1; compare candidates within one response rather than across queries.
15395
+ */
15396
+ score?: number;
15397
+ /**
15398
+ * Which field matched, so a weak fact match can be checked against the node itself.
15399
+ */
15400
+ matched?: 'name' | 'alias' | 'description' | 'fact';
15401
+ }>;
15402
+ };
14735
15403
  /**
14736
15404
  * Sandbox creation request. All system communication with the sandbox is always secured; the template's envd version must support secured access.
14737
15405
  */
@@ -15174,6 +15842,10 @@ export type SandboxTemplateBuildInfo = {
15174
15842
  reason?: SandboxBuildStatusReason;
15175
15843
  };
15176
15844
  export type SandboxTemplateWithBuilds = {
15845
+ /**
15846
+ * Lifecycle classes this template can run as. ephemeral: cannot pause, snapshot or mount volumes and is deleted when it stops; persistent: can pause, resume and snapshot.
15847
+ */
15848
+ lifecycles?: Array<'ephemeral' | 'persistent'>;
15177
15849
  /**
15178
15850
  * Identifier of the template
15179
15851
  */
@@ -25178,6 +25850,20 @@ export type CutTrackSummary = {
25178
25850
  */
25179
25851
  items: number;
25180
25852
  };
25853
+ export type CutFrameWarning = {
25854
+ /**
25855
+ * FRAME_UNAVAILABLE means a source image could not be fetched for this preview.
25856
+ */
25857
+ code: 'FRAME_UNAVAILABLE';
25858
+ /**
25859
+ * Identifier of the clip whose source frame could not be fetched.
25860
+ */
25861
+ clip_id?: string;
25862
+ /**
25863
+ * Actionable safe explanation; source URLs and credentials are omitted.
25864
+ */
25865
+ message: string;
25866
+ };
25181
25867
  /**
25182
25868
  * Reference to an asset in a bound library; follows asset overwrites to the latest version rather than pinning a version.
25183
25869
  */
@@ -25400,7 +26086,7 @@ export type KnowledgeKnowledgeModels = {
25400
26086
  */
25401
26087
  query_rewrite: string;
25402
26088
  /**
25403
- * Extracts text from scanned PDF pages. Default: glm-ocr, falling back to qwen3.8-flash. A custom model precedes the platform defaults.
26089
+ * Extracts text from scanned PDF pages through the OCR API. Default: qwen-vl-ocr-2025-11-20, falling back to glm-ocr and qwen3.8-flash. A custom model precedes these defaults. OCR is billed by pages processed.
25404
26090
  */
25405
26091
  ocr: string;
25406
26092
  /**
@@ -25429,7 +26115,7 @@ export type KnowledgeKnowledgeModelsInput = {
25429
26115
  */
25430
26116
  query_rewrite?: string | null;
25431
26117
  /**
25432
- * Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores glm-ocr. The preference leads the fallback chain glm-ocr, qwen3.8-flash with duplicates removed.
26118
+ * Scanned PDF text extraction model; requires mistral.ocr or pdf_input capability. null restores qwen-vl-ocr-2025-11-20. The preference leads the OCR API fallback chain qwen-vl-ocr-2025-11-20, glm-ocr, qwen3.8-flash with duplicates removed.
25433
26119
  */
25434
26120
  ocr?: string | null;
25435
26121
  /**
@@ -25670,6 +26356,10 @@ export type MediaMediaModels = {
25670
26356
  * Model call ID for optional full-text reference ASR; defaults to qwen3-asr-flash. Reference failures do not block correction.
25671
26357
  */
25672
26358
  readonly reference_transcription: string;
26359
+ /**
26360
+ * Model call ID for audio understanding; defaults to qwen3.8-omni-flash. Analyzes at most the first 120 seconds in up to three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate; has_music=false only means no music was detected in the analyzed ranges.
26361
+ */
26362
+ readonly audio: string;
25673
26363
  };
25674
26364
  /**
25675
26365
  * Identifier of a library belonging to the caller.
@@ -25830,7 +26520,7 @@ export type MediaCloudinaryResource = {
25830
26520
  */
25831
26521
  url: string;
25832
26522
  /**
25833
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
26523
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
25834
26524
  */
25835
26525
  secure_url: string;
25836
26526
  /**
@@ -25866,13 +26556,13 @@ export type MediaChunkComplete = MediaCloudinaryResource & {
25866
26556
  done: true;
25867
26557
  };
25868
26558
  /**
25869
- * Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video or audio sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
26559
+ * Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
25870
26560
  */
25871
26561
  export type MediaProcessing = {
25872
26562
  /**
25873
- * Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, overview, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
26563
+ * Current understanding stage: probe, frames, shots, visual, transcript, transcript_reference, transcript_correction, audio_profile, overview, embedding or finalize. Null after finalization; omitted on assets not yet dispatched.
25874
26564
  */
25875
- readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'overview' | 'embedding' | 'finalize' | null;
26565
+ readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
25876
26566
  state: MediaProcessingState;
25877
26567
  /**
25878
26568
  * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
@@ -25939,7 +26629,7 @@ export type MediaUnderstanding = {
25939
26629
  */
25940
26630
  asset_version: number;
25941
26631
  /**
25942
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
26632
+ * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
25943
26633
  */
25944
26634
  kind: MediaUnderstandingKind;
25945
26635
  /**
@@ -25963,7 +26653,7 @@ export type MediaUnderstanding = {
25963
26653
  */
25964
26654
  content: string | null;
25965
26655
  /**
25966
- * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary.
26656
+ * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary. Audio data contains segments (start_s and end_s in source-media seconds; type is speech, music, ambient or silence), has_music, genre, mood, bpm_estimate (nullable), bpm_is_estimate=true and analyzed_ranges (start_s, end_s in seconds). Genre and mood are nullable model labels. Audio understanding samples only the first 120 seconds in at most three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate, not an exact tempo; has_music=false only means no music was detected within analyzed_ranges.
25967
26657
  */
25968
26658
  data: unknown | null;
25969
26659
  /**
@@ -26139,7 +26829,7 @@ export type MediaSearchAsset = {
26139
26829
  */
26140
26830
  url: string;
26141
26831
  /**
26142
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
26832
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
26143
26833
  */
26144
26834
  secure_url: string;
26145
26835
  /**
@@ -26166,6 +26856,10 @@ export type MediaSearchAsset = {
26166
26856
  * Resource status; active identifies an asset that has not been deleted.
26167
26857
  */
26168
26858
  status: 'active';
26859
+ /**
26860
+ * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
26861
+ */
26862
+ has_alpha?: boolean;
26169
26863
  /**
26170
26864
  * Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
26171
26865
  */
@@ -26222,6 +26916,27 @@ export type MediaSearchAsset = {
26222
26916
  };
26223
26917
  };
26224
26918
  };
26919
+ /**
26920
+ * Source details for the video-generation job that created this asset.
26921
+ */
26922
+ generation?: {
26923
+ /**
26924
+ * Job id that generated this asset.
26925
+ */
26926
+ job_id: MediaJobId;
26927
+ /**
26928
+ * Generation intent used to create the asset; v1 supports video.generate.
26929
+ */
26930
+ intent: string;
26931
+ /**
26932
+ * Text prompt submitted for the generation job.
26933
+ */
26934
+ prompt: string;
26935
+ /**
26936
+ * Router video-generation model that produced the asset.
26937
+ */
26938
+ model: string;
26939
+ };
26225
26940
  };
26226
26941
  /**
26227
26942
  * A matching asset with its ranking score and supporting matches.
@@ -26244,11 +26959,11 @@ export type MediaSemanticHit = {
26244
26959
  */
26245
26960
  matches: Array<MediaSemanticMatch>;
26246
26961
  };
26962
+ export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'CANDIDATE_EXPIRED' | 'BINDING_READ_ONLY';
26247
26963
  /**
26248
- * Identifier returned when a batch job is created.
26964
+ * State of a requested video output.
26249
26965
  */
26250
- export type MediaJobId = string;
26251
- export type MediaMediaErrorCode = 'LIBRARY_NOT_FOUND' | 'ASSET_NOT_FOUND' | 'JOB_NOT_FOUND' | 'UNDERSTANDING_NOT_FOUND' | 'ASSET_VERSION_CHANGED' | 'LIBRARY_INVALID_STATE' | 'INVALID_PARAMS' | 'INVALID_EXPRESSION' | 'UNSUPPORTED' | 'NOT_IMPLEMENTED' | 'FILE_TOO_LARGE' | 'FILE_EMPTY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'BINDING_READ_ONLY';
26966
+ export type MediaGenerationOutputStatus = 'pending' | 'succeeded' | 'failed';
26252
26967
  /**
26253
26968
  * A recorded library event with a monotonically increasing sequence within that library.
26254
26969
  */
@@ -26322,6 +27037,170 @@ export type MediaFailureGroup = {
26322
27037
  */
26323
27038
  sample_asset_ids: Array<MediaAssetId>;
26324
27039
  };
27040
+ /**
27041
+ * A kind of entity the graph accepts, for example a file or a customer.
27042
+ */
27043
+ export type OntologyNodeType = {
27044
+ /**
27045
+ * Globally unique type name, used as a node's type when creating it; a dotted name marks a namespaced subtype.
27046
+ */
27047
+ name: string;
27048
+ /**
27049
+ * Required prefix of the external record id when a node of this type carries a ref, for example file_ for the file type; omit for types that are pure concepts.
27050
+ */
27051
+ ref_prefix?: string;
27052
+ /**
27053
+ * Type significance from 0 to 1, used when ranking how strongly reaching this kind of node matters.
27054
+ */
27055
+ weight: number;
27056
+ /**
27057
+ * Whether the graph may continue through a node of this type; false makes it a stopping point that is reached but never expanded.
27058
+ */
27059
+ passable: boolean;
27060
+ /**
27061
+ * What this type means in the registering service, used to choose the right type when writing.
27062
+ */
27063
+ description: string;
27064
+ };
27065
+ /**
27066
+ * A kind of fact the graph accepts between two nodes.
27067
+ */
27068
+ export type OntologyEdgeType = {
27069
+ /**
27070
+ * Globally unique relation type name, used as a relation's type when creating it.
27071
+ */
27072
+ name: string;
27073
+ /**
27074
+ * Node type names this relation may start from; the single entry * admits every type.
27075
+ */
27076
+ source: Array<string>;
27077
+ /**
27078
+ * Node type names this relation may point at; the single entry * admits every type.
27079
+ */
27080
+ target: Array<string>;
27081
+ /**
27082
+ * Whether the fact reads one way or the same in both directions, which decides how it renders on each endpoint.
27083
+ */
27084
+ direction: 'forward' | 'both';
27085
+ /**
27086
+ * Whether spreading may continue through this relation; false makes it a stopping point that is reached but never traversed.
27087
+ */
27088
+ passable: boolean;
27089
+ /**
27090
+ * Relation significance from 0 to 1, used when ranking how strongly reaching through this relation matters.
27091
+ */
27092
+ weight: number;
27093
+ /**
27094
+ * Whether a source may have at most one valid relation of this type at a time; true makes a new one supersede the old.
27095
+ */
27096
+ functional: boolean;
27097
+ /**
27098
+ * How long the relation stays strong while valid, from 0 to 1; 1 never fades and lower values decay faster. Omit for the default decay.
27099
+ */
27100
+ persistence?: number;
27101
+ /**
27102
+ * Origins a relation of this type may carry; each value names where the fact came from and they are checked when writing.
27103
+ */
27104
+ origins: Array<'platform' | 'stated' | 'observed' | 'inferred'>;
27105
+ /**
27106
+ * What this fact means in the registering service, used to choose the right type when writing.
27107
+ */
27108
+ description: string;
27109
+ };
27110
+ /**
27111
+ * A node the caller may reach but not read, because its content belongs to another member; its name confirms what was reached while the content stays withheld.
27112
+ */
27113
+ export type OntologyRestrictedNode = {
27114
+ /**
27115
+ * Node id, usable to relate this entity to others; treat it as opaque.
27116
+ */
27117
+ id: string;
27118
+ /**
27119
+ * Registered node type of the hidden entity, which is not itself restricted content.
27120
+ */
27121
+ type: string;
27122
+ /**
27123
+ * Display name of the hidden entity, shown so a caller can tell whether the reached node is the one it meant.
27124
+ */
27125
+ name: string;
27126
+ /**
27127
+ * Always true; its presence is how a caller tells a withheld node from a readable one.
27128
+ */
27129
+ restricted: boolean;
27130
+ };
27131
+ /**
27132
+ * One operation of a changeset, discriminated by op; it names new nodes and relations by caller-local keys reused within the same batch.
27133
+ */
27134
+ export type OntologyChangesetOp = {
27135
+ /**
27136
+ * Which operation to apply; the remaining required fields follow from this value.
27137
+ */
27138
+ op: 'upsert_node' | 'relate' | 'invalidate' | 'merge' | 'alias';
27139
+ /**
27140
+ * Caller-local name for the node or relation this operation creates, reused by later operations in the same batch; it is not an id.
27141
+ */
27142
+ key?: string;
27143
+ /**
27144
+ * Registered type name for upsert_node and relate; an unregistered name refuses the whole batch.
27145
+ */
27146
+ type?: string;
27147
+ /**
27148
+ * Mirrored record id for upsert_node, which must start with the type's ref_prefix; omit for a concept.
27149
+ */
27150
+ ref?: string;
27151
+ /**
27152
+ * Display name for upsert_node, at most 200 characters.
27153
+ */
27154
+ name?: string;
27155
+ /**
27156
+ * Start of a relate fact; a key from this batch or an existing node id.
27157
+ */
27158
+ source?: string;
27159
+ /**
27160
+ * End of a relate fact; a key from this batch or an existing node id.
27161
+ */
27162
+ target?: string;
27163
+ /**
27164
+ * The relationship in one sentence for relate, at most 280 characters.
27165
+ */
27166
+ fact?: string;
27167
+ /**
27168
+ * Where a relate fact came from; the relation type must accept this origin.
27169
+ */
27170
+ origin?: 'platform' | 'stated' | 'observed' | 'inferred';
27171
+ /**
27172
+ * Relation id an invalidate operation acts on, from relations.list or an earlier operation in this batch.
27173
+ */
27174
+ edge?: string;
27175
+ /**
27176
+ * World time an invalidate operation marks the fact as no longer true.
27177
+ */
27178
+ invalid_at?: string;
27179
+ /**
27180
+ * Relation id that replaces the invalidated one, when a successor was recorded; omit when nothing replaced it.
27181
+ */
27182
+ by?: string;
27183
+ /**
27184
+ * Why the operation was applied, kept for people reading the history; not enforced.
27185
+ */
27186
+ reason?: string;
27187
+ /**
27188
+ * Node id a merge operation folds away, resolving to the into node afterwards.
27189
+ */
27190
+ from?: string;
27191
+ /**
27192
+ * Node id a merge operation keeps, receiving the merged node's relations and aliases.
27193
+ */
27194
+ into?: string;
27195
+ /**
27196
+ * Node id an alias operation adds a name to.
27197
+ */
27198
+ node?: string;
27199
+ /**
27200
+ * The additional name an alias operation records for its node.
27201
+ */
27202
+ alias?: string;
27203
+ };
26325
27204
  /**
26326
27205
  * Auto-resume configuration for paused sandboxes.
26327
27206
  */
@@ -30837,9 +31716,9 @@ export type MediaTranscriptCorrection = {
30837
31716
  */
30838
31717
  export type MediaUnderstandingId = string;
30839
31718
  /**
30840
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
31719
+ * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
30841
31720
  */
30842
- export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'embedding';
31721
+ export type MediaUnderstandingKind = 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
30843
31722
  /**
30844
31723
  * Time range within the source media, expressed in milliseconds.
30845
31724
  */
@@ -30899,7 +31778,7 @@ export type MediaSemanticMatch = {
30899
31778
  /**
30900
31779
  * Type of change recorded for a library, asset, processing task, search index or batch.
30901
31780
  */
30902
- export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created';
31781
+ export type MediaMediaEventType = 'library.status_provisioning' | 'library.status_active' | 'library.status_deleting' | 'library.status_deleted' | 'library.status_failed' | 'library.restored' | 'library.updated' | 'asset.created' | 'asset.updated' | 'asset.overwritten' | 'asset.renamed' | 'asset.deleted' | 'understanding.status_ready' | 'understanding.status_failed' | 'understanding.status_unsupported' | 'search.indexed' | 'batch.succeeded' | 'batch.failed' | 'library.understanding_drained' | 'batch.created' | 'generation.created' | 'generation.succeeded' | 'generation.failed' | 'generation.cancelled';
30903
31782
  /**
30904
31783
  * Auto-resume enabled flag for paused sandboxes. Default false.
30905
31784
  */
@@ -31531,21 +32410,25 @@ export type AnthropicToolReferenceBlock = {
31531
32410
  */
31532
32411
  export type CutTextStyle = {
31533
32412
  /**
31534
- * Geist is the Latin typeface; Noto Sans SC is the simplified Chinese typeface.
32413
+ * Canonical font family name; call ListFonts() in the Cut script API to retrieve the available font families.
31535
32414
  */
31536
- font_family?: 'Geist' | 'Noto Sans SC';
32415
+ font_family?: string;
31537
32416
  /**
31538
32417
  * Text size in output pixels.
31539
32418
  */
31540
32419
  font_size?: number;
31541
32420
  /**
31542
- * Font weight: 400 is regular, 500 is medium and 700 is bold.
32421
+ * Positive requested font weight; each family has its own available catalog weights, and unsupported values resolve to the nearest available weight, preferring the heavier weight on a tie.
31543
32422
  */
31544
- font_weight?: 400 | 500 | 700;
32423
+ font_weight?: number;
31545
32424
  /**
31546
32425
  * Text color in #RRGGBB or #RRGGBBAA notation.
31547
32426
  */
31548
32427
  color?: string;
32428
+ /**
32429
+ * Optional solid or gradient glyph fill; gradients span the text box.
32430
+ */
32431
+ fill?: CutFill;
31549
32432
  /**
31550
32433
  * Optional text outline.
31551
32434
  */
@@ -31555,9 +32438,60 @@ export type CutTextStyle = {
31555
32438
  */
31556
32439
  color?: string;
31557
32440
  /**
31558
- * Outline width in output pixels.
32441
+ * Outline width in output pixels; must be non-negative and at most 40 pixels.
32442
+ */
32443
+ width?: number;
32444
+ };
32445
+ /**
32446
+ * Additional outlines, painted from outermost to innermost; at most 4 strokes.
32447
+ */
32448
+ strokes?: Array<{
32449
+ /**
32450
+ * Outline color in #RRGGBB or #RRGGBBAA notation.
32451
+ */
32452
+ color?: string;
32453
+ /**
32454
+ * Outline width in output pixels, from 0 to 40.
31559
32455
  */
31560
32456
  width?: number;
32457
+ }>;
32458
+ /**
32459
+ * Offset text shadows; at most 4 shadows. Offsets are non-negative output pixels; blur is 0 to 100 output pixels.
32460
+ */
32461
+ shadows?: Array<{
32462
+ /**
32463
+ * Shadow color in #RRGGBB or #RRGGBBAA notation.
32464
+ */
32465
+ color?: string;
32466
+ /**
32467
+ * Non-negative horizontal offset in output pixels.
32468
+ */
32469
+ x?: number;
32470
+ /**
32471
+ * Non-negative vertical offset in output pixels.
32472
+ */
32473
+ y?: number;
32474
+ /**
32475
+ * Blur radius in output pixels, from 0 to 100.
32476
+ */
32477
+ blur?: number;
32478
+ }>;
32479
+ /**
32480
+ * Colored glow around glyphs; radius is in output pixels, from 0 to 100, and strength is from 0 to 1.
32481
+ */
32482
+ glow?: {
32483
+ /**
32484
+ * Glow color in #RRGGBB or #RRGGBBAA notation.
32485
+ */
32486
+ color?: string;
32487
+ /**
32488
+ * Glow blur radius in output pixels, from 0 to 100.
32489
+ */
32490
+ radius?: number;
32491
+ /**
32492
+ * Glow opacity multiplier from 0 to 1.
32493
+ */
32494
+ strength?: number;
31561
32495
  };
31562
32496
  /**
31563
32497
  * Optional text background color as hexadecimal RGB or RGBA.
@@ -31764,6 +32698,70 @@ export type CutJoinEffect = {
31764
32698
  * Blur radius in pixels at a reference frame height of 1080 pixels.
31765
32699
  */
31766
32700
  radius?: number;
32701
+ } | {
32702
+ /**
32703
+ * Zoom transition.
32704
+ */
32705
+ kind: 'zoom';
32706
+ /**
32707
+ * Zoom in or out.
32708
+ */
32709
+ direction?: 'in' | 'out';
32710
+ /**
32711
+ * Peak scale increase as a multiple of the original scale.
32712
+ */
32713
+ amount?: number;
32714
+ /**
32715
+ * Radial blur strength; zero disables blur sampling.
32716
+ */
32717
+ blur?: number;
32718
+ } | {
32719
+ /**
32720
+ * Clock transition.
32721
+ */
32722
+ kind: 'clock';
32723
+ /**
32724
+ * Sweep direction.
32725
+ */
32726
+ direction?: 'clockwise' | 'counterclockwise';
32727
+ /**
32728
+ * Start angle in degrees, with zero at twelve o'clock.
32729
+ */
32730
+ start_angle?: number;
32731
+ /**
32732
+ * Angular feather width.
32733
+ */
32734
+ softness?: number;
32735
+ } | {
32736
+ /**
32737
+ * Flash transition.
32738
+ */
32739
+ kind: 'flash';
32740
+ /**
32741
+ * Flash color.
32742
+ */
32743
+ color?: 'white' | 'black';
32744
+ /**
32745
+ * Flash strength.
32746
+ */
32747
+ intensity?: number;
32748
+ } | {
32749
+ /**
32750
+ * Luma transition.
32751
+ */
32752
+ kind: 'luma';
32753
+ /**
32754
+ * Built-in map. User maps are not available yet.
32755
+ */
32756
+ map?: 'radial' | 'diagonal' | 'clouds' | 'spiral' | 'honeycomb' | 'bars';
32757
+ /**
32758
+ * Edge feather width.
32759
+ */
32760
+ softness?: number;
32761
+ /**
32762
+ * Reveal order.
32763
+ */
32764
+ invert?: 'normal' | 'inverted';
31767
32765
  };
31768
32766
  export type KnowledgeStaticChunking = {
31769
32767
  /**
@@ -32005,6 +33003,51 @@ export type AnthropicCitationsConfig = {
32005
33003
  */
32006
33004
  enabled: boolean;
32007
33005
  };
33006
+ /**
33007
+ * Solid color or a gradient over the styled text box.
33008
+ */
33009
+ export type CutFill = string | {
33010
+ /**
33011
+ * Linear gradient; angle is in degrees and stop positions range from 0 to 1.
33012
+ */
33013
+ linear?: {
33014
+ /**
33015
+ * Gradient angle in degrees; 0 runs left to right.
33016
+ */
33017
+ angle?: number;
33018
+ /**
33019
+ * Gradient color stops; each position is a fraction from 0 to 1.
33020
+ */
33021
+ stops?: Array<{
33022
+ /**
33023
+ * Stop position as a fraction from 0 to 1.
33024
+ */
33025
+ at?: number;
33026
+ /**
33027
+ * Stop color in #RRGGBB or #RRGGBBAA notation.
33028
+ */
33029
+ color?: string;
33030
+ }>;
33031
+ };
33032
+ /**
33033
+ * Radial gradient with stop positions as fractions from 0 to 1.
33034
+ */
33035
+ radial?: {
33036
+ /**
33037
+ * Gradient color stops; each position is a fraction from 0 to 1.
33038
+ */
33039
+ stops?: Array<{
33040
+ /**
33041
+ * Stop position as a fraction from 0 to 1.
33042
+ */
33043
+ at?: number;
33044
+ /**
33045
+ * Stop color in #RRGGBB or #RRGGBBAA notation.
33046
+ */
33047
+ color?: string;
33048
+ }>;
33049
+ };
33050
+ };
32008
33051
  /**
32009
33052
  * Visual placement; coordinates are normalized canvas centers.
32010
33053
  */
@@ -32610,7 +33653,7 @@ export type MediaAssetWritable = {
32610
33653
  */
32611
33654
  url: string;
32612
33655
  /**
32613
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
33656
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
32614
33657
  */
32615
33658
  secure_url: string;
32616
33659
  /**
@@ -32637,6 +33680,10 @@ export type MediaAssetWritable = {
32637
33680
  * Resource status; active identifies an asset that has not been deleted.
32638
33681
  */
32639
33682
  status: 'active';
33683
+ /**
33684
+ * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
33685
+ */
33686
+ has_alpha?: boolean;
32640
33687
  /**
32641
33688
  * Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
32642
33689
  */
@@ -32693,6 +33740,27 @@ export type MediaAssetWritable = {
32693
33740
  };
32694
33741
  };
32695
33742
  };
33743
+ /**
33744
+ * Source details for the video-generation job that created this asset.
33745
+ */
33746
+ generation?: {
33747
+ /**
33748
+ * Job id that generated this asset.
33749
+ */
33750
+ job_id: MediaJobId;
33751
+ /**
33752
+ * Generation intent used to create the asset; v1 supports video.generate.
33753
+ */
33754
+ intent: string;
33755
+ /**
33756
+ * Text prompt submitted for the generation job.
33757
+ */
33758
+ prompt: string;
33759
+ /**
33760
+ * Router video-generation model that produced the asset.
33761
+ */
33762
+ model: string;
33763
+ };
32696
33764
  };
32697
33765
  /**
32698
33766
  * Understanding results in this page, ordered by creation time ascending.
@@ -32986,7 +34054,7 @@ export type MediaCloudinaryResourceWritable = {
32986
34054
  */
32987
34055
  url: string;
32988
34056
  /**
32989
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
34057
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
32990
34058
  */
32991
34059
  secure_url: string;
32992
34060
  /**
@@ -33009,7 +34077,7 @@ export type MediaChunkCompleteWritable = MediaCloudinaryResourceWritable & {
33009
34077
  done: true;
33010
34078
  };
33011
34079
  /**
33012
- * Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video or audio sources of 100 MB or more; originals remain available unchanged. The duration limit is 10 minutes. A video proxy still above 95 MB after recompression, or a source exceeding the duration limit, is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
34080
+ * Per-task processing progress and its aggregate state for the asset. For understanding, Media generates proxies for video sources of 25 MB or more or longer than 10 minutes, and for audio-only sources of 100 MB or more; originals remain available unchanged. Long videos are supported. When a video proxy is needed and is still above 95 MB after recompression, the source is reported as UNSUPPORTED with the limit in the failure message. Proxy preparation uses the organization’s metered sandbox resources.
33013
34081
  */
33014
34082
  export type MediaProcessingWritable = {
33015
34083
  state: MediaProcessingState;
@@ -33041,7 +34109,7 @@ export type MediaUnderstandingWritable = {
33041
34109
  */
33042
34110
  asset_version: number;
33043
34111
  /**
33044
- * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
34112
+ * Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step.
33045
34113
  */
33046
34114
  kind: MediaUnderstandingKind;
33047
34115
  /**
@@ -33065,7 +34133,7 @@ export type MediaUnderstandingWritable = {
33065
34133
  */
33066
34134
  content: string | null;
33067
34135
  /**
33068
- * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary.
34136
+ * Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary. Audio data contains segments (start_s and end_s in source-media seconds; type is speech, music, ambient or silence), has_music, genre, mood, bpm_estimate (nullable), bpm_is_estimate=true and analyzed_ranges (start_s, end_s in seconds). Genre and mood are nullable model labels. Audio understanding samples only the first 120 seconds in at most three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate, not an exact tempo; has_music=false only means no music was detected within analyzed_ranges.
33069
34137
  */
33070
34138
  data: unknown | null;
33071
34139
  /**
@@ -33211,7 +34279,7 @@ export type MediaSearchAssetWritable = {
33211
34279
  */
33212
34280
  url: string;
33213
34281
  /**
33214
- * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the server includes a signature, so the original URL is ready to use. Request a delivery_tokens token for transformed URLs.
34282
+ * HTTPS delivery URL for this asset version; equal to url. For authenticated assets the URL carries a single-file token that expires after 15 minutes, so it is ready to use but must not be stored; keep asset_id and read the asset again. Request a delivery_tokens token for transformed URLs.
33215
34283
  */
33216
34284
  secure_url: string;
33217
34285
  /**
@@ -33238,6 +34306,10 @@ export type MediaSearchAssetWritable = {
33238
34306
  * Resource status; active identifies an asset that has not been deleted.
33239
34307
  */
33240
34308
  status: 'active';
34309
+ /**
34310
+ * True when the source header declares an alpha channel: a PNG color type 4 or 6 or a tRNS chunk, a WebP VP8X alpha flag or VP8L alpha bit, a WebM or MKV video track AlphaMode of 1, or a GIF transparent-color flag. False when a known container has no alpha channel. Omitted when the format is unknown, the header could not be parsed, or the asset was stored before this field existed; absence does not mean the source is opaque.
34311
+ */
34312
+ has_alpha?: boolean;
33241
34313
  /**
33242
34314
  * Search-vector status: pending awaits vector generation or reprocessing; ready has searchable vectors; unavailable indicates disabled, unsupported or failed embedding. Existing vectors may still serve searches while reprocessing is pending.
33243
34315
  */
@@ -33294,6 +34366,27 @@ export type MediaSearchAssetWritable = {
33294
34366
  };
33295
34367
  };
33296
34368
  };
34369
+ /**
34370
+ * Source details for the video-generation job that created this asset.
34371
+ */
34372
+ generation?: {
34373
+ /**
34374
+ * Job id that generated this asset.
34375
+ */
34376
+ job_id: MediaJobId;
34377
+ /**
34378
+ * Generation intent used to create the asset; v1 supports video.generate.
34379
+ */
34380
+ intent: string;
34381
+ /**
34382
+ * Text prompt submitted for the generation job.
34383
+ */
34384
+ prompt: string;
34385
+ /**
34386
+ * Router video-generation model that produced the asset.
34387
+ */
34388
+ model: string;
34389
+ };
33297
34390
  };
33298
34391
  /**
33299
34392
  * A matching asset with its ranking score and supporting matches.
@@ -33350,6 +34443,26 @@ export type CutExportId = string;
33350
34443
  * Version identifier returned by its create or list operation; use the id, not a display name.
33351
34444
  */
33352
34445
  export type CutVersionId = string;
34446
+ /**
34447
+ * A type name from types.list, with its dots preserved — a display label is not accepted.
34448
+ */
34449
+ export type OntologyTypeName = string;
34450
+ /**
34451
+ * Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.
34452
+ */
34453
+ export type OntologyLimit = number;
34454
+ /**
34455
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
34456
+ */
34457
+ export type OntologyCursor = string;
34458
+ /**
34459
+ * Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.
34460
+ */
34461
+ export type OntologyNodeId = string;
34462
+ /**
34463
+ * Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted.
34464
+ */
34465
+ export type OntologyRelationId = string;
33353
34466
  /**
33354
34467
  * Cursor to start the list from
33355
34468
  */
@@ -33539,7 +34652,7 @@ export type ApplyAgentVersionResponses = {
33539
34652
  */
33540
34653
  note: string | null;
33541
34654
  /**
33542
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
34655
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
33543
34656
  */
33544
34657
  bindings: Array<{
33545
34658
  /**
@@ -33570,7 +34683,7 @@ export type ApplyAgentVersionResponses = {
33570
34683
  /**
33571
34684
  * Service type. Opens the whole service to codemode; there is no per-resource id.
33572
34685
  */
33573
- type: 'search' | 'browser';
34686
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
33574
34687
  /**
33575
34688
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
33576
34689
  */
@@ -34756,7 +35869,7 @@ export type UnarchiveAgentResponses = {
34756
35869
  */
34757
35870
  note: string | null;
34758
35871
  /**
34759
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
35872
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
34760
35873
  */
34761
35874
  bindings: Array<{
34762
35875
  /**
@@ -34787,7 +35900,7 @@ export type UnarchiveAgentResponses = {
34787
35900
  /**
34788
35901
  * Service type. Opens the whole service to codemode; there is no per-resource id.
34789
35902
  */
34790
- type: 'search' | 'browser';
35903
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
34791
35904
  /**
34792
35905
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
34793
35906
  */
@@ -43894,6 +45007,42 @@ export type FileCancelUploadResponses = {
43894
45007
  200: OwnFilePraxisUpload;
43895
45008
  };
43896
45009
  export type FileCancelUploadResponse = FileCancelUploadResponses[keyof FileCancelUploadResponses];
45010
+ export type FileRetrieveUploadData = {
45011
+ body?: never;
45012
+ path: {
45013
+ /**
45014
+ * Upload identifier returned by create on this face; the upload belongs to your organization.
45015
+ */
45016
+ upload_id: string;
45017
+ };
45018
+ query?: never;
45019
+ url: '/file/v1/uploads/{upload_id}';
45020
+ };
45021
+ export type FileRetrieveUploadErrors = {
45022
+ /**
45023
+ * INVALID_PARAMS: correct the upload_id before retrying.
45024
+ */
45025
+ 400: unknown;
45026
+ /**
45027
+ * UNAUTHENTICATED: supply a valid organization API key or signed-in session.
45028
+ */
45029
+ 401: unknown;
45030
+ /**
45031
+ * UPLOAD_NOT_FOUND: the upload is missing or belongs to another organization; create a new upload and send its parts.
45032
+ */
45033
+ 404: unknown;
45034
+ /**
45035
+ * UPLOAD_INVALID_STATE: the upload was cancelled or expired; create a new upload and send its parts again.
45036
+ */
45037
+ 409: unknown;
45038
+ };
45039
+ export type FileRetrieveUploadResponses = {
45040
+ /**
45041
+ * The upload state plus part_size and the received_parts list; complete once every part is present.
45042
+ */
45043
+ 200: OwnFilePraxisUpload;
45044
+ };
45045
+ export type FileRetrieveUploadResponse = FileRetrieveUploadResponses[keyof FileRetrieveUploadResponses];
43897
45046
  export type FileCreateSignedUploadData = {
43898
45047
  body: OwnFileSignedUploadRequest;
43899
45048
  path?: never;
@@ -51330,7 +52479,7 @@ export type AgentsListResponses = {
51330
52479
  */
51331
52480
  note: string | null;
51332
52481
  /**
51333
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
52482
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
51334
52483
  */
51335
52484
  bindings: Array<{
51336
52485
  /**
@@ -51361,7 +52510,7 @@ export type AgentsListResponses = {
51361
52510
  /**
51362
52511
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51363
52512
  */
51364
- type: 'search' | 'browser';
52513
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51365
52514
  /**
51366
52515
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
51367
52516
  */
@@ -51869,7 +53018,7 @@ export type AgentsCreateData = {
51869
53018
  */
51870
53019
  tools?: Array<AgentManaged15 | AgentManaged29 | AgentManaged32>;
51871
53020
  /**
51872
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
53021
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
51873
53022
  */
51874
53023
  bindings?: Array<{
51875
53024
  /**
@@ -51900,7 +53049,7 @@ export type AgentsCreateData = {
51900
53049
  /**
51901
53050
  * Service type. Opens the whole service to codemode; there is no per-resource id.
51902
53051
  */
51903
- type: 'search' | 'browser';
53052
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
51904
53053
  /**
51905
53054
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
51906
53055
  */
@@ -52470,7 +53619,7 @@ export type AgentsCreateResponses = {
52470
53619
  */
52471
53620
  note: string | null;
52472
53621
  /**
52473
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
53622
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
52474
53623
  */
52475
53624
  bindings: Array<{
52476
53625
  /**
@@ -52501,7 +53650,7 @@ export type AgentsCreateResponses = {
52501
53650
  /**
52502
53651
  * Service type. Opens the whole service to codemode; there is no per-resource id.
52503
53652
  */
52504
- type: 'search' | 'browser';
53653
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
52505
53654
  /**
52506
53655
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
52507
53656
  */
@@ -53098,7 +54247,7 @@ export type AgentsRetrieveResponses = {
53098
54247
  */
53099
54248
  note: string | null;
53100
54249
  /**
53101
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
54250
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
53102
54251
  */
53103
54252
  bindings: Array<{
53104
54253
  /**
@@ -53129,7 +54278,7 @@ export type AgentsRetrieveResponses = {
53129
54278
  /**
53130
54279
  * Service type. Opens the whole service to codemode; there is no per-resource id.
53131
54280
  */
53132
- type: 'search' | 'browser';
54281
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
53133
54282
  /**
53134
54283
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
53135
54284
  */
@@ -53677,7 +54826,7 @@ export type AgentsUpdateData = {
53677
54826
  /**
53678
54827
  * Service type. Opens the whole service to codemode; there is no per-resource id.
53679
54828
  */
53680
- type: 'search' | 'browser';
54829
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
53681
54830
  /**
53682
54831
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
53683
54832
  */
@@ -54260,7 +55409,7 @@ export type AgentsUpdateResponses = {
54260
55409
  */
54261
55410
  note: string | null;
54262
55411
  /**
54263
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
55412
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
54264
55413
  */
54265
55414
  bindings: Array<{
54266
55415
  /**
@@ -54291,7 +55440,7 @@ export type AgentsUpdateResponses = {
54291
55440
  /**
54292
55441
  * Service type. Opens the whole service to codemode; there is no per-resource id.
54293
55442
  */
54294
- type: 'search' | 'browser';
55443
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
54295
55444
  /**
54296
55445
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
54297
55446
  */
@@ -54874,7 +56023,7 @@ export type AgentsArchiveResponses = {
54874
56023
  */
54875
56024
  note: string | null;
54876
56025
  /**
54877
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
56026
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
54878
56027
  */
54879
56028
  bindings: Array<{
54880
56029
  /**
@@ -54905,7 +56054,7 @@ export type AgentsArchiveResponses = {
54905
56054
  /**
54906
56055
  * Service type. Opens the whole service to codemode; there is no per-resource id.
54907
56056
  */
54908
- type: 'search' | 'browser';
56057
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
54909
56058
  /**
54910
56059
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
54911
56060
  */
@@ -55506,7 +56655,7 @@ export type AgentsVersionsListResponses = {
55506
56655
  */
55507
56656
  note: string | null;
55508
56657
  /**
55509
- * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search or browser. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
56658
+ * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general and personal agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A service binding opens a whole service and carries only enabled: search, browser, ticket, crm, canvas or cut. There is no binding by default; enabling one opens every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for no bindings. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
55510
56659
  */
55511
56660
  bindings: Array<{
55512
56661
  /**
@@ -55537,7 +56686,7 @@ export type AgentsVersionsListResponses = {
55537
56686
  /**
55538
56687
  * Service type. Opens the whole service to codemode; there is no per-resource id.
55539
56688
  */
55540
- type: 'search' | 'browser';
56689
+ type: 'search' | 'browser' | 'ticket' | 'crm' | 'canvas' | 'cut';
55541
56690
  /**
55542
56691
  * Save-time verification result. false means the resource owner was unavailable; saving still succeeded. Unchanged bindings retain their previous result. true is returned for other bindings, including workflow and script ids which are not verified at save time. Client values are ignored.
55543
56692
  */
@@ -65514,7 +66663,7 @@ export type AutomationTriggersCreateData = {
65514
66663
  */
65515
66664
  end_at?: string | null;
65516
66665
  /**
65517
- * skip (default) skips when a previous run is still active; allow permits overlapping runs.
66666
+ * skip skips while a previous run is still active; allow permits overlapping runs. When omitted, schedule triggers use skip and webhook triggers use allow.
65518
66667
  */
65519
66668
  overlap?: 'skip' | 'allow';
65520
66669
  /**
@@ -65713,7 +66862,7 @@ export type AutomationTriggersPatchData = {
65713
66862
  */
65714
66863
  end_at?: string | null;
65715
66864
  /**
65716
- * skip (default) skips when a previous run is still active; allow permits overlapping runs.
66865
+ * skip skips while a previous run is still active; allow permits overlapping runs. When omitted, schedule triggers use skip and webhook triggers use allow.
65717
66866
  */
65718
66867
  overlap?: 'skip' | 'allow';
65719
66868
  /**
@@ -69298,7 +70447,7 @@ export type CutExecuteData = {
69298
70447
  };
69299
70448
  export type CutExecuteErrors = {
69300
70449
  /**
69301
- * SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED means the script failed and its writes rolled back; correct the source using error.details.edit_id and edits when provided. EDIT_EXPIRED means the saved source is older than ten minutes; resubmit corrected script source.
70450
+ * SCRIPT_ERROR, SCRIPT_LIMIT, OPS_REJECTED or INVALID_CAPTION_FILE means the script failed and its writes rolled back; correct the source using error.details.edit_id and edits when provided. EDIT_EXPIRED means the saved source is older than ten minutes; resubmit corrected script source.
69302
70451
  */
69303
70452
  400: CutCutError;
69304
70453
  /**
@@ -72606,6 +73755,10 @@ export type MediaListLibrariesErrors = {
72606
73755
  * Request failed; see the error code reference.
72607
73756
  */
72608
73757
  415: MediaMediaError;
73758
+ /**
73759
+ * Request failed; see the error code reference.
73760
+ */
73761
+ 422: MediaMediaError;
72609
73762
  /**
72610
73763
  * Request failed; see the error code reference.
72611
73764
  */
@@ -72697,6 +73850,10 @@ export type MediaCreateLibraryErrors = {
72697
73850
  * Request failed; see the error code reference.
72698
73851
  */
72699
73852
  415: MediaMediaError;
73853
+ /**
73854
+ * Request failed; see the error code reference.
73855
+ */
73856
+ 422: MediaMediaError;
72700
73857
  /**
72701
73858
  * Request failed; see the error code reference.
72702
73859
  */
@@ -72771,6 +73928,10 @@ export type MediaCreateFrameUrlsErrors = {
72771
73928
  * This media format is unsupported; provide a supported format.
72772
73929
  */
72773
73930
  415: MediaMediaError;
73931
+ /**
73932
+ * Request failed; see the error code reference.
73933
+ */
73934
+ 422: MediaMediaError;
72774
73935
  /**
72775
73936
  * A rate limit was reached; wait before retrying.
72776
73937
  */
@@ -72832,6 +73993,10 @@ export type MediaDeleteLibraryErrors = {
72832
73993
  * Request failed; see the error code reference.
72833
73994
  */
72834
73995
  415: MediaMediaError;
73996
+ /**
73997
+ * Request failed; see the error code reference.
73998
+ */
73999
+ 422: MediaMediaError;
72835
74000
  /**
72836
74001
  * Request failed; see the error code reference.
72837
74002
  */
@@ -72893,6 +74058,10 @@ export type MediaGetLibraryErrors = {
72893
74058
  * Request failed; see the error code reference.
72894
74059
  */
72895
74060
  415: MediaMediaError;
74061
+ /**
74062
+ * Request failed; see the error code reference.
74063
+ */
74064
+ 422: MediaMediaError;
72896
74065
  /**
72897
74066
  * Request failed; see the error code reference.
72898
74067
  */
@@ -72993,6 +74162,10 @@ export type MediaUpdateLibraryErrors = {
72993
74162
  * Request failed; see the error code reference.
72994
74163
  */
72995
74164
  415: MediaMediaError;
74165
+ /**
74166
+ * Request failed; see the error code reference.
74167
+ */
74168
+ 422: MediaMediaError;
72996
74169
  /**
72997
74170
  * Request failed; see the error code reference.
72998
74171
  */
@@ -73054,6 +74227,10 @@ export type MediaRestoreLibraryErrors = {
73054
74227
  * Request failed; see the error code reference.
73055
74228
  */
73056
74229
  415: MediaMediaError;
74230
+ /**
74231
+ * Request failed; see the error code reference.
74232
+ */
74233
+ 422: MediaMediaError;
73057
74234
  /**
73058
74235
  * Request failed; see the error code reference.
73059
74236
  */
@@ -73115,6 +74292,10 @@ export type MediaPurgeLibraryErrors = {
73115
74292
  * Request failed; see the error code reference.
73116
74293
  */
73117
74294
  415: MediaMediaError;
74295
+ /**
74296
+ * Request failed; see the error code reference.
74297
+ */
74298
+ 422: MediaMediaError;
73118
74299
  /**
73119
74300
  * Request failed; see the error code reference.
73120
74301
  */
@@ -73193,6 +74374,10 @@ export type MediaListAssetsErrors = {
73193
74374
  * Request failed; see the error code reference.
73194
74375
  */
73195
74376
  415: MediaMediaError;
74377
+ /**
74378
+ * Request failed; see the error code reference.
74379
+ */
74380
+ 422: MediaMediaError;
73196
74381
  /**
73197
74382
  * Request failed; see the error code reference.
73198
74383
  */
@@ -73330,6 +74515,10 @@ export type MediaUploadAssetErrors = {
73330
74515
  * Request failed; see the error code reference.
73331
74516
  */
73332
74517
  415: MediaMediaError;
74518
+ /**
74519
+ * Request failed; see the error code reference.
74520
+ */
74521
+ 422: MediaMediaError;
73333
74522
  /**
73334
74523
  * Request failed; see the error code reference.
73335
74524
  */
@@ -73457,6 +74646,10 @@ export type MediaImportAssetErrors = {
73457
74646
  * Request failed; see the error code reference.
73458
74647
  */
73459
74648
  415: MediaMediaError;
74649
+ /**
74650
+ * Request failed; see the error code reference.
74651
+ */
74652
+ 422: MediaMediaError;
73460
74653
  /**
73461
74654
  * Request failed; see the error code reference.
73462
74655
  */
@@ -73522,6 +74715,10 @@ export type MediaDeleteAssetErrors = {
73522
74715
  * Request failed; see the error code reference.
73523
74716
  */
73524
74717
  415: MediaMediaError;
74718
+ /**
74719
+ * Request failed; see the error code reference.
74720
+ */
74721
+ 422: MediaMediaError;
73525
74722
  /**
73526
74723
  * Request failed; see the error code reference.
73527
74724
  */
@@ -73587,6 +74784,10 @@ export type MediaGetAssetErrors = {
73587
74784
  * Request failed; see the error code reference.
73588
74785
  */
73589
74786
  415: MediaMediaError;
74787
+ /**
74788
+ * Request failed; see the error code reference.
74789
+ */
74790
+ 422: MediaMediaError;
73590
74791
  /**
73591
74792
  * Request failed; see the error code reference.
73592
74793
  */
@@ -73674,6 +74875,10 @@ export type MediaUpdateAssetErrors = {
73674
74875
  * Request failed; see the error code reference.
73675
74876
  */
73676
74877
  415: MediaMediaError;
74878
+ /**
74879
+ * Request failed; see the error code reference.
74880
+ */
74881
+ 422: MediaMediaError;
73677
74882
  /**
73678
74883
  * Request failed; see the error code reference.
73679
74884
  */
@@ -73747,6 +74952,10 @@ export type MediaReprocessAssetErrors = {
73747
74952
  * Request failed; see the error code reference.
73748
74953
  */
73749
74954
  415: MediaMediaError;
74955
+ /**
74956
+ * Request failed; see the error code reference.
74957
+ */
74958
+ 422: MediaMediaError;
73750
74959
  /**
73751
74960
  * Request failed; see the error code reference.
73752
74961
  */
@@ -73790,9 +74999,9 @@ export type MediaListUnderstandingsData = {
73790
74999
  */
73791
75000
  include_superseded?: boolean;
73792
75001
  /**
73793
- * Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, and embedding reports a failed embedding step.
75002
+ * Return one output kind: caption is a visual description, tags are generated labels, ocr is visible text, transcript is speech, frame is a video shot, overview is a video summary, audio is sampled audio understanding, and embedding reports a failed embedding step.
73794
75003
  */
73795
- kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'embedding';
75004
+ kind?: 'caption' | 'tags' | 'ocr' | 'transcript' | 'frame' | 'overview' | 'audio' | 'embedding';
73796
75005
  /**
73797
75006
  * Cursor from the previous next_cursor.
73798
75007
  */
@@ -73829,6 +75038,10 @@ export type MediaListUnderstandingsErrors = {
73829
75038
  * Request failed; see the error code reference.
73830
75039
  */
73831
75040
  415: MediaMediaError;
75041
+ /**
75042
+ * Request failed; see the error code reference.
75043
+ */
75044
+ 422: MediaMediaError;
73832
75045
  /**
73833
75046
  * Request failed; see the error code reference.
73834
75047
  */
@@ -73860,7 +75073,7 @@ export type MediaExpressionSearchData = {
73860
75073
  */
73861
75074
  body: {
73862
75075
  /**
73863
- * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.
75076
+ * Asset filter expression supporting field comparisons, AND, OR, NOT, parentheses and suffix wildcards. An empty expression matches all assets. For business metadata use context.sku=KETTLE-RED AND context.revision=2; request with_field: ["context"] to include context. Quality filters: flags:watermark matches any current shot with a watermark; flags.watermark:false requires an assessed video with no positive watermark judgment. The same syntax supports slideshow, hand_frame, text_sticker and low_quality. folder_mismatch:true selects lexical folder/location hints. Geometry filters support width, height, resolution:1920x1080, numeric aspect_ratio (width/height), and orientation:landscape, portrait or square. Missing geometry or unassessed legacy flags do not match positive filters. has_music:true AND audio_genre:jazz AND audio_mood:calm selects current-version audio profiles with music and matching model labels; has_music:false applies only to sampled ranges, not the entire source. failure_code=UPSTREAM_FAILED selects assets with a current failed understanding carrying that code; combine with processing_state=failed or processing_state=partial.
73864
75077
  */
73865
75078
  expression?: string;
73866
75079
  /**
@@ -73920,6 +75133,10 @@ export type MediaExpressionSearchErrors = {
73920
75133
  * Request failed; see the error code reference.
73921
75134
  */
73922
75135
  415: MediaMediaError;
75136
+ /**
75137
+ * Request failed; see the error code reference.
75138
+ */
75139
+ 422: MediaMediaError;
73923
75140
  /**
73924
75141
  * Request failed; see the error code reference.
73925
75142
  */
@@ -74007,6 +75224,10 @@ export type MediaVisualSearchErrors = {
74007
75224
  * Request failed; see the error code reference.
74008
75225
  */
74009
75226
  415: MediaMediaError;
75227
+ /**
75228
+ * Request failed; see the error code reference.
75229
+ */
75230
+ 422: MediaMediaError;
74010
75231
  /**
74011
75232
  * Request failed; see the error code reference.
74012
75233
  */
@@ -74088,6 +75309,10 @@ export type MediaSemanticSearchErrors = {
74088
75309
  * Request failed; see the error code reference.
74089
75310
  */
74090
75311
  415: MediaMediaError;
75312
+ /**
75313
+ * Request failed; see the error code reference.
75314
+ */
75315
+ 422: MediaMediaError;
74091
75316
  /**
74092
75317
  * Request failed; see the error code reference.
74093
75318
  */
@@ -74169,6 +75394,10 @@ export type MediaSearchErrors = {
74169
75394
  * Request failed; see the error code reference.
74170
75395
  */
74171
75396
  415: MediaMediaError;
75397
+ /**
75398
+ * Request failed; see the error code reference.
75399
+ */
75400
+ 422: MediaMediaError;
74172
75401
  /**
74173
75402
  * Request failed; see the error code reference.
74174
75403
  */
@@ -74235,6 +75464,10 @@ export type MediaListFoldersErrors = {
74235
75464
  * Request failed; see the error code reference.
74236
75465
  */
74237
75466
  415: MediaMediaError;
75467
+ /**
75468
+ * Request failed; see the error code reference.
75469
+ */
75470
+ 422: MediaMediaError;
74238
75471
  /**
74239
75472
  * Request failed; see the error code reference.
74240
75473
  */
@@ -74308,6 +75541,10 @@ export type MediaCreateBatchErrors = {
74308
75541
  * Request failed; see the error code reference.
74309
75542
  */
74310
75543
  415: MediaMediaError;
75544
+ /**
75545
+ * Request failed; see the error code reference.
75546
+ */
75547
+ 422: MediaMediaError;
74311
75548
  /**
74312
75549
  * Request failed; see the error code reference.
74313
75550
  */
@@ -74373,6 +75610,10 @@ export type MediaGetBatchErrors = {
74373
75610
  * Request failed; see the error code reference.
74374
75611
  */
74375
75612
  415: MediaMediaError;
75613
+ /**
75614
+ * Request failed; see the error code reference.
75615
+ */
75616
+ 422: MediaMediaError;
74376
75617
  /**
74377
75618
  * Request failed; see the error code reference.
74378
75619
  */
@@ -74446,6 +75687,10 @@ export type MediaBatchAssetsErrors = {
74446
75687
  * Request failed; see the error code reference.
74447
75688
  */
74448
75689
  415: MediaMediaError;
75690
+ /**
75691
+ * Request failed; see the error code reference.
75692
+ */
75693
+ 422: MediaMediaError;
74449
75694
  /**
74450
75695
  * Request failed; see the error code reference.
74451
75696
  */
@@ -74479,7 +75724,7 @@ export type MediaGetJobData = {
74479
75724
  */
74480
75725
  library_id: string;
74481
75726
  /**
74482
- * Batch identifier returned by createBatch or batchAssets; resolved within this library.
75727
+ * Job identifier returned by batch creation, video-generation creation or job listing; resolved within this library.
74483
75728
  */
74484
75729
  job_id: string;
74485
75730
  };
@@ -74487,218 +75732,6 @@ export type MediaGetJobData = {
74487
75732
  url: '/media/v1/libraries/{library_id}/jobs/{job_id}';
74488
75733
  };
74489
75734
  export type MediaGetJobErrors = {
74490
- /**
74491
- * Request failed; see the error code reference.
74492
- */
74493
- 400: MediaMediaError;
74494
- /**
74495
- * Request failed; see the error code reference.
74496
- */
74497
- 403: MediaMediaError;
74498
- /**
74499
- * Request failed; see the error code reference.
74500
- */
74501
- 404: MediaMediaError;
74502
- /**
74503
- * Request failed; see the error code reference.
74504
- */
74505
- 409: MediaMediaError;
74506
- /**
74507
- * Request failed; see the error code reference.
74508
- */
74509
- 413: MediaMediaError;
74510
- /**
74511
- * Request failed; see the error code reference.
74512
- */
74513
- 415: MediaMediaError;
74514
- /**
74515
- * Request failed; see the error code reference.
74516
- */
74517
- 429: MediaMediaError;
74518
- /**
74519
- * Request failed; see the error code reference.
74520
- */
74521
- 501: MediaMediaError;
74522
- /**
74523
- * Request failed; see the error code reference.
74524
- */
74525
- 502: MediaMediaError;
74526
- /**
74527
- * Request failed; see the error code reference.
74528
- */
74529
- 503: MediaMediaError;
74530
- };
74531
- export type MediaGetJobError = MediaGetJobErrors[keyof MediaGetJobErrors];
74532
- export type MediaGetJobResponses = {
74533
- /**
74534
- * Successful response.
74535
- */
74536
- 200: MediaJob;
74537
- };
74538
- export type MediaGetJobResponse = MediaGetJobResponses[keyof MediaGetJobResponses];
74539
- export type MediaListEventsData = {
74540
- body?: never;
74541
- path: {
74542
- /**
74543
- * Library ID returned by creation.
74544
- */
74545
- library_id: string;
74546
- };
74547
- query?: {
74548
- /**
74549
- * Events with a larger sequence. Use with asc; cannot combine with before_seq.
74550
- */
74551
- after_seq?: number;
74552
- /**
74553
- * Events with a smaller sequence. Use with desc; cannot combine with after_seq.
74554
- */
74555
- before_seq?: number;
74556
- /**
74557
- * Sequence order: asc is increasing; desc is decreasing.
74558
- */
74559
- order?: 'asc' | 'desc';
74560
- /**
74561
- * Maximum items per page, from 1 to 200; defaults to 50.
74562
- */
74563
- limit?: number;
74564
- };
74565
- url: '/media/v1/libraries/{library_id}/events';
74566
- };
74567
- export type MediaListEventsErrors = {
74568
- /**
74569
- * Request failed; see the error code reference.
74570
- */
74571
- 400: MediaMediaError;
74572
- /**
74573
- * Request failed; see the error code reference.
74574
- */
74575
- 403: MediaMediaError;
74576
- /**
74577
- * Request failed; see the error code reference.
74578
- */
74579
- 404: MediaMediaError;
74580
- /**
74581
- * Request failed; see the error code reference.
74582
- */
74583
- 409: MediaMediaError;
74584
- /**
74585
- * Request failed; see the error code reference.
74586
- */
74587
- 413: MediaMediaError;
74588
- /**
74589
- * Request failed; see the error code reference.
74590
- */
74591
- 415: MediaMediaError;
74592
- /**
74593
- * Request failed; see the error code reference.
74594
- */
74595
- 429: MediaMediaError;
74596
- /**
74597
- * Request failed; see the error code reference.
74598
- */
74599
- 501: MediaMediaError;
74600
- /**
74601
- * Request failed; see the error code reference.
74602
- */
74603
- 502: MediaMediaError;
74604
- /**
74605
- * Request failed; see the error code reference.
74606
- */
74607
- 503: MediaMediaError;
74608
- };
74609
- export type MediaListEventsError = MediaListEventsErrors[keyof MediaListEventsErrors];
74610
- export type MediaListEventsResponses = {
74611
- /**
74612
- * Successful response.
74613
- */
74614
- 200: MediaMediaEventPage;
74615
- };
74616
- export type MediaListEventsResponse = MediaListEventsResponses[keyof MediaListEventsResponses];
74617
- export type MediaCreateDeliveryTokenData = {
74618
- /**
74619
- * Options for authorizing private asset delivery within one active library.
74620
- */
74621
- body: {
74622
- /**
74623
- * Delivery path glob restricted to the library path prefix (a slash, library_id, then a slash). Defaults to that prefix followed by *; * matches any path text. Tildes and control characters are rejected.
74624
- */
74625
- acl?: string;
74626
- /**
74627
- * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
74628
- */
74629
- expires_in?: number;
74630
- };
74631
- path: {
74632
- /**
74633
- * Library ID returned by creation.
74634
- */
74635
- library_id: string;
74636
- };
74637
- query?: never;
74638
- url: '/media/v1/libraries/{library_id}/delivery_tokens';
74639
- };
74640
- export type MediaCreateDeliveryTokenErrors = {
74641
- /**
74642
- * Request failed; see the error code reference.
74643
- */
74644
- 400: MediaMediaError;
74645
- /**
74646
- * Request failed; see the error code reference.
74647
- */
74648
- 403: MediaMediaError;
74649
- /**
74650
- * Request failed; see the error code reference.
74651
- */
74652
- 404: MediaMediaError;
74653
- /**
74654
- * Request failed; see the error code reference.
74655
- */
74656
- 409: MediaMediaError;
74657
- /**
74658
- * Request failed; see the error code reference.
74659
- */
74660
- 413: MediaMediaError;
74661
- /**
74662
- * Request failed; see the error code reference.
74663
- */
74664
- 415: MediaMediaError;
74665
- /**
74666
- * Request failed; see the error code reference.
74667
- */
74668
- 429: MediaMediaError;
74669
- /**
74670
- * Request failed; see the error code reference.
74671
- */
74672
- 501: MediaMediaError;
74673
- /**
74674
- * Request failed; see the error code reference.
74675
- */
74676
- 502: MediaMediaError;
74677
- /**
74678
- * Request failed; see the error code reference.
74679
- */
74680
- 503: MediaMediaError;
74681
- };
74682
- export type MediaCreateDeliveryTokenError = MediaCreateDeliveryTokenErrors[keyof MediaCreateDeliveryTokenErrors];
74683
- export type MediaCreateDeliveryTokenResponses = {
74684
- /**
74685
- * Successful response.
74686
- */
74687
- 200: MediaDeliveryToken;
74688
- };
74689
- export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
74690
- export type MediaUnderstandingFailureSummaryData = {
74691
- body?: never;
74692
- path: {
74693
- /**
74694
- * Library ID returned by creation.
74695
- */
74696
- library_id: string;
74697
- };
74698
- query?: never;
74699
- url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
74700
- };
74701
- export type MediaUnderstandingFailureSummaryErrors = {
74702
75735
  /**
74703
75736
  * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
74704
75737
  */
@@ -74723,6 +75756,234 @@ export type MediaUnderstandingFailureSummaryErrors = {
74723
75756
  * This media format is unsupported; provide a supported format.
74724
75757
  */
74725
75758
  415: MediaMediaError;
75759
+ /**
75760
+ * Request failed; see the error code reference.
75761
+ */
75762
+ 422: MediaMediaError;
75763
+ /**
75764
+ * A rate limit was reached; wait before retrying.
75765
+ */
75766
+ 429: MediaMediaError;
75767
+ /**
75768
+ * The requested operation is unsupported; choose a supported method.
75769
+ */
75770
+ 501: MediaMediaError;
75771
+ /**
75772
+ * Request failed; see the error code reference.
75773
+ */
75774
+ 502: MediaMediaError;
75775
+ /**
75776
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
75777
+ */
75778
+ 503: MediaMediaError;
75779
+ };
75780
+ export type MediaGetJobError = MediaGetJobErrors[keyof MediaGetJobErrors];
75781
+ export type MediaGetJobResponses = {
75782
+ /**
75783
+ * Successful response.
75784
+ */
75785
+ 200: MediaJob;
75786
+ };
75787
+ export type MediaGetJobResponse = MediaGetJobResponses[keyof MediaGetJobResponses];
75788
+ export type MediaListEventsData = {
75789
+ body?: never;
75790
+ path: {
75791
+ /**
75792
+ * Library ID returned by creation.
75793
+ */
75794
+ library_id: string;
75795
+ };
75796
+ query?: {
75797
+ /**
75798
+ * Events with a larger sequence. Use with asc; cannot combine with before_seq.
75799
+ */
75800
+ after_seq?: number;
75801
+ /**
75802
+ * Events with a smaller sequence. Use with desc; cannot combine with after_seq.
75803
+ */
75804
+ before_seq?: number;
75805
+ /**
75806
+ * Sequence order: asc is increasing; desc is decreasing.
75807
+ */
75808
+ order?: 'asc' | 'desc';
75809
+ /**
75810
+ * Maximum items per page, from 1 to 200; defaults to 50.
75811
+ */
75812
+ limit?: number;
75813
+ };
75814
+ url: '/media/v1/libraries/{library_id}/events';
75815
+ };
75816
+ export type MediaListEventsErrors = {
75817
+ /**
75818
+ * Request failed; see the error code reference.
75819
+ */
75820
+ 400: MediaMediaError;
75821
+ /**
75822
+ * Request failed; see the error code reference.
75823
+ */
75824
+ 403: MediaMediaError;
75825
+ /**
75826
+ * Request failed; see the error code reference.
75827
+ */
75828
+ 404: MediaMediaError;
75829
+ /**
75830
+ * Request failed; see the error code reference.
75831
+ */
75832
+ 409: MediaMediaError;
75833
+ /**
75834
+ * Request failed; see the error code reference.
75835
+ */
75836
+ 413: MediaMediaError;
75837
+ /**
75838
+ * Request failed; see the error code reference.
75839
+ */
75840
+ 415: MediaMediaError;
75841
+ /**
75842
+ * Request failed; see the error code reference.
75843
+ */
75844
+ 422: MediaMediaError;
75845
+ /**
75846
+ * Request failed; see the error code reference.
75847
+ */
75848
+ 429: MediaMediaError;
75849
+ /**
75850
+ * Request failed; see the error code reference.
75851
+ */
75852
+ 501: MediaMediaError;
75853
+ /**
75854
+ * Request failed; see the error code reference.
75855
+ */
75856
+ 502: MediaMediaError;
75857
+ /**
75858
+ * Request failed; see the error code reference.
75859
+ */
75860
+ 503: MediaMediaError;
75861
+ };
75862
+ export type MediaListEventsError = MediaListEventsErrors[keyof MediaListEventsErrors];
75863
+ export type MediaListEventsResponses = {
75864
+ /**
75865
+ * Successful response.
75866
+ */
75867
+ 200: MediaMediaEventPage;
75868
+ };
75869
+ export type MediaListEventsResponse = MediaListEventsResponses[keyof MediaListEventsResponses];
75870
+ export type MediaCreateDeliveryTokenData = {
75871
+ /**
75872
+ * Options for authorizing private asset delivery within one active library.
75873
+ */
75874
+ body: {
75875
+ /**
75876
+ * Delivery path glob restricted to the library path prefix (a slash, library_id, then a slash). Defaults to that prefix followed by *; * matches any path text. Tildes and control characters are rejected.
75877
+ */
75878
+ acl?: string;
75879
+ /**
75880
+ * Token lifetime in seconds, from 1 to 604800 inclusive; defaults to 900.
75881
+ */
75882
+ expires_in?: number;
75883
+ };
75884
+ path: {
75885
+ /**
75886
+ * Library ID returned by creation.
75887
+ */
75888
+ library_id: string;
75889
+ };
75890
+ query?: never;
75891
+ url: '/media/v1/libraries/{library_id}/delivery_tokens';
75892
+ };
75893
+ export type MediaCreateDeliveryTokenErrors = {
75894
+ /**
75895
+ * Request failed; see the error code reference.
75896
+ */
75897
+ 400: MediaMediaError;
75898
+ /**
75899
+ * Request failed; see the error code reference.
75900
+ */
75901
+ 403: MediaMediaError;
75902
+ /**
75903
+ * Request failed; see the error code reference.
75904
+ */
75905
+ 404: MediaMediaError;
75906
+ /**
75907
+ * Request failed; see the error code reference.
75908
+ */
75909
+ 409: MediaMediaError;
75910
+ /**
75911
+ * Request failed; see the error code reference.
75912
+ */
75913
+ 413: MediaMediaError;
75914
+ /**
75915
+ * Request failed; see the error code reference.
75916
+ */
75917
+ 415: MediaMediaError;
75918
+ /**
75919
+ * Request failed; see the error code reference.
75920
+ */
75921
+ 422: MediaMediaError;
75922
+ /**
75923
+ * Request failed; see the error code reference.
75924
+ */
75925
+ 429: MediaMediaError;
75926
+ /**
75927
+ * Request failed; see the error code reference.
75928
+ */
75929
+ 501: MediaMediaError;
75930
+ /**
75931
+ * Request failed; see the error code reference.
75932
+ */
75933
+ 502: MediaMediaError;
75934
+ /**
75935
+ * Request failed; see the error code reference.
75936
+ */
75937
+ 503: MediaMediaError;
75938
+ };
75939
+ export type MediaCreateDeliveryTokenError = MediaCreateDeliveryTokenErrors[keyof MediaCreateDeliveryTokenErrors];
75940
+ export type MediaCreateDeliveryTokenResponses = {
75941
+ /**
75942
+ * Successful response.
75943
+ */
75944
+ 200: MediaDeliveryToken;
75945
+ };
75946
+ export type MediaCreateDeliveryTokenResponse = MediaCreateDeliveryTokenResponses[keyof MediaCreateDeliveryTokenResponses];
75947
+ export type MediaUnderstandingFailureSummaryData = {
75948
+ body?: never;
75949
+ path: {
75950
+ /**
75951
+ * Library ID returned by creation.
75952
+ */
75953
+ library_id: string;
75954
+ };
75955
+ query?: never;
75956
+ url: '/media/v1/libraries/{library_id}/understandings/failure_summary';
75957
+ };
75958
+ export type MediaUnderstandingFailureSummaryErrors = {
75959
+ /**
75960
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
75961
+ */
75962
+ 400: MediaMediaError;
75963
+ /**
75964
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
75965
+ */
75966
+ 403: MediaMediaError;
75967
+ /**
75968
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
75969
+ */
75970
+ 404: MediaMediaError;
75971
+ /**
75972
+ * Request failed; see the error code reference.
75973
+ */
75974
+ 409: MediaMediaError;
75975
+ /**
75976
+ * The file exceeds an input limit; provide a smaller source file.
75977
+ */
75978
+ 413: MediaMediaError;
75979
+ /**
75980
+ * This media format is unsupported; provide a supported format.
75981
+ */
75982
+ 415: MediaMediaError;
75983
+ /**
75984
+ * Request failed; see the error code reference.
75985
+ */
75986
+ 422: MediaMediaError;
74726
75987
  /**
74727
75988
  * A rate limit was reached; wait before retrying.
74728
75989
  */
@@ -74762,7 +76023,7 @@ export type MediaListUnderstandingsByLibraryData = {
74762
76023
  */
74763
76024
  folder?: string;
74764
76025
  /**
74765
- * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, embedding. Omit or empty to include every kind.
76026
+ * Comma-separated output kinds: caption, tags, ocr, frame, transcript, overview, audio, embedding. Omit or empty to include every kind.
74766
76027
  */
74767
76028
  kinds?: string;
74768
76029
  /**
@@ -74801,6 +76062,10 @@ export type MediaListUnderstandingsByLibraryErrors = {
74801
76062
  * This media format is unsupported; provide a supported format.
74802
76063
  */
74803
76064
  415: MediaMediaError;
76065
+ /**
76066
+ * Request failed; see the error code reference.
76067
+ */
76068
+ 422: MediaMediaError;
74804
76069
  /**
74805
76070
  * A rate limit was reached; wait before retrying.
74806
76071
  */
@@ -74826,6 +76091,1065 @@ export type MediaListUnderstandingsByLibraryResponses = {
74826
76091
  200: MediaUnderstandingPage;
74827
76092
  };
74828
76093
  export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
76094
+ export type MediaCreateGenerationData = {
76095
+ /**
76096
+ * Text-to-video request. Generation is charged per second; unsaved candidates expire after 7 days.
76097
+ */
76098
+ body: {
76099
+ /**
76100
+ * Generation operation; v1 accepts only video.generate text-to-video requests.
76101
+ */
76102
+ intent: 'video.generate';
76103
+ /**
76104
+ * Text prompt describing the video to generate.
76105
+ */
76106
+ prompt: string;
76107
+ /**
76108
+ * Number of videos to generate; defaults to 1 and must be from 1 to 4.
76109
+ */
76110
+ count?: number;
76111
+ /**
76112
+ * Requested video duration in seconds; Router validates the model-specific supported durations.
76113
+ */
76114
+ duration_seconds?: number;
76115
+ /**
76116
+ * Requested output aspect ratio; defaults to 16:9 and Router validates model support.
76117
+ */
76118
+ aspect_ratio?: string;
76119
+ /**
76120
+ * Router model with video_generation capability; defaults to wan2.7-t2v.
76121
+ */
76122
+ model?: string;
76123
+ /**
76124
+ * candidate keeps outputs temporary for explicit save calls; library saves successful outputs automatically.
76125
+ */
76126
+ save?: 'candidate' | 'library';
76127
+ /**
76128
+ * Folder for assets saved automatically or by later save calls; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
76129
+ */
76130
+ asset_folder?: string;
76131
+ /**
76132
+ * Tags applied when an output becomes a library asset.
76133
+ */
76134
+ tags?: Array<string>;
76135
+ /**
76136
+ * Understanding behavior when a candidate is saved as an asset; defaults to auto.
76137
+ */
76138
+ understanding?: 'auto' | 'skip';
76139
+ /**
76140
+ * Not supported in v1; omit this field. Only text-to-video is currently available.
76141
+ */
76142
+ references?: Array<unknown>;
76143
+ };
76144
+ headers?: {
76145
+ /**
76146
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected.
76147
+ */
76148
+ 'Idempotency-Key'?: string;
76149
+ };
76150
+ path: {
76151
+ /**
76152
+ * Library ID returned by creation.
76153
+ */
76154
+ library_id: string;
76155
+ };
76156
+ query?: never;
76157
+ url: '/media/v1/libraries/{library_id}/generations';
76158
+ };
76159
+ export type MediaCreateGenerationErrors = {
76160
+ /**
76161
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
76162
+ */
76163
+ 400: MediaMediaError;
76164
+ /**
76165
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
76166
+ */
76167
+ 403: MediaMediaError;
76168
+ /**
76169
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
76170
+ */
76171
+ 404: MediaMediaError;
76172
+ /**
76173
+ * Request failed; see the error code reference.
76174
+ */
76175
+ 409: MediaMediaError;
76176
+ /**
76177
+ * The file exceeds an input limit; provide a smaller source file.
76178
+ */
76179
+ 413: MediaMediaError;
76180
+ /**
76181
+ * This media format is unsupported; provide a supported format.
76182
+ */
76183
+ 415: MediaMediaError;
76184
+ /**
76185
+ * Request failed; see the error code reference.
76186
+ */
76187
+ 422: MediaMediaError;
76188
+ /**
76189
+ * This library already has five queued or running generation jobs; wait until one finishes and retry.
76190
+ */
76191
+ 429: MediaMediaError;
76192
+ /**
76193
+ * The requested operation is unsupported; choose a supported method.
76194
+ */
76195
+ 501: MediaMediaError;
76196
+ /**
76197
+ * Request failed; see the error code reference.
76198
+ */
76199
+ 502: MediaMediaError;
76200
+ /**
76201
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76202
+ */
76203
+ 503: MediaMediaError;
76204
+ };
76205
+ export type MediaCreateGenerationError = MediaCreateGenerationErrors[keyof MediaCreateGenerationErrors];
76206
+ export type MediaCreateGenerationResponses = {
76207
+ /**
76208
+ * Successful response.
76209
+ */
76210
+ 202: MediaJob;
76211
+ };
76212
+ export type MediaCreateGenerationResponse = MediaCreateGenerationResponses[keyof MediaCreateGenerationResponses];
76213
+ export type MediaListJobsData = {
76214
+ body?: never;
76215
+ path: {
76216
+ /**
76217
+ * Library ID returned by creation.
76218
+ */
76219
+ library_id: string;
76220
+ };
76221
+ query?: {
76222
+ /**
76223
+ * Filter jobs by their current status.
76224
+ */
76225
+ status?: MediaJobStatus;
76226
+ /**
76227
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
76228
+ */
76229
+ limit?: number;
76230
+ /**
76231
+ * Job id from the previous page’s next_cursor; omit for the first page.
76232
+ */
76233
+ cursor?: MediaJobId;
76234
+ };
76235
+ url: '/media/v1/libraries/{library_id}/jobs';
76236
+ };
76237
+ export type MediaListJobsErrors = {
76238
+ /**
76239
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
76240
+ */
76241
+ 400: MediaMediaError;
76242
+ /**
76243
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
76244
+ */
76245
+ 403: MediaMediaError;
76246
+ /**
76247
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
76248
+ */
76249
+ 404: MediaMediaError;
76250
+ /**
76251
+ * Request failed; see the error code reference.
76252
+ */
76253
+ 409: MediaMediaError;
76254
+ /**
76255
+ * The file exceeds an input limit; provide a smaller source file.
76256
+ */
76257
+ 413: MediaMediaError;
76258
+ /**
76259
+ * This media format is unsupported; provide a supported format.
76260
+ */
76261
+ 415: MediaMediaError;
76262
+ /**
76263
+ * Request failed; see the error code reference.
76264
+ */
76265
+ 422: MediaMediaError;
76266
+ /**
76267
+ * A rate limit was reached; wait before retrying.
76268
+ */
76269
+ 429: MediaMediaError;
76270
+ /**
76271
+ * The requested operation is unsupported; choose a supported method.
76272
+ */
76273
+ 501: MediaMediaError;
76274
+ /**
76275
+ * Request failed; see the error code reference.
76276
+ */
76277
+ 502: MediaMediaError;
76278
+ /**
76279
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76280
+ */
76281
+ 503: MediaMediaError;
76282
+ };
76283
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
76284
+ export type MediaListJobsResponses = {
76285
+ /**
76286
+ * Successful response.
76287
+ */
76288
+ 200: MediaJobPage;
76289
+ };
76290
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
76291
+ export type MediaCancelJobData = {
76292
+ body?: never;
76293
+ path: {
76294
+ /**
76295
+ * Library ID returned by creation.
76296
+ */
76297
+ library_id: string;
76298
+ /**
76299
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
76300
+ */
76301
+ job_id: string;
76302
+ };
76303
+ query?: never;
76304
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
76305
+ };
76306
+ export type MediaCancelJobErrors = {
76307
+ /**
76308
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
76309
+ */
76310
+ 400: MediaMediaError;
76311
+ /**
76312
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
76313
+ */
76314
+ 403: MediaMediaError;
76315
+ /**
76316
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
76317
+ */
76318
+ 404: MediaMediaError;
76319
+ /**
76320
+ * Request failed; see the error code reference.
76321
+ */
76322
+ 409: MediaMediaError;
76323
+ /**
76324
+ * The file exceeds an input limit; provide a smaller source file.
76325
+ */
76326
+ 413: MediaMediaError;
76327
+ /**
76328
+ * This media format is unsupported; provide a supported format.
76329
+ */
76330
+ 415: MediaMediaError;
76331
+ /**
76332
+ * Request failed; see the error code reference.
76333
+ */
76334
+ 422: MediaMediaError;
76335
+ /**
76336
+ * A rate limit was reached; wait before retrying.
76337
+ */
76338
+ 429: MediaMediaError;
76339
+ /**
76340
+ * The requested operation is unsupported; choose a supported method.
76341
+ */
76342
+ 501: MediaMediaError;
76343
+ /**
76344
+ * Request failed; see the error code reference.
76345
+ */
76346
+ 502: MediaMediaError;
76347
+ /**
76348
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76349
+ */
76350
+ 503: MediaMediaError;
76351
+ };
76352
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
76353
+ export type MediaCancelJobResponses = {
76354
+ /**
76355
+ * Successful response.
76356
+ */
76357
+ 200: MediaJob;
76358
+ };
76359
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
76360
+ export type MediaSaveGenerationOutputData = {
76361
+ /**
76362
+ * Optional asset metadata and understanding behavior for a successful candidate.
76363
+ */
76364
+ body?: {
76365
+ /**
76366
+ * Delivery identifier for the saved asset; defaults to gen_<job_id>_<index> and is idempotent.
76367
+ */
76368
+ public_id?: string;
76369
+ /**
76370
+ * Destination folder for the saved asset; defaults to the library root. New path segments containing U+FFFD or consisting only of question marks are rejected with INVALID_PARAMS; send UTF-8 names. Existing affected folders remain readable and assets can be moved out.
76371
+ */
76372
+ asset_folder?: string;
76373
+ /**
76374
+ * Tags to apply to the saved asset.
76375
+ */
76376
+ tags?: Array<string>;
76377
+ /**
76378
+ * Understanding behavior for the saved asset; defaults to auto.
76379
+ */
76380
+ understanding?: 'auto' | 'skip';
76381
+ };
76382
+ path: {
76383
+ /**
76384
+ * Library ID returned by creation.
76385
+ */
76386
+ library_id: string;
76387
+ /**
76388
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
76389
+ */
76390
+ job_id: string;
76391
+ /**
76392
+ * Zero-based position of the candidate in the Job outputs array.
76393
+ */
76394
+ index: string;
76395
+ };
76396
+ query?: never;
76397
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/outputs/{index}/save';
76398
+ };
76399
+ export type MediaSaveGenerationOutputErrors = {
76400
+ /**
76401
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
76402
+ */
76403
+ 400: MediaMediaError;
76404
+ /**
76405
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
76406
+ */
76407
+ 403: MediaMediaError;
76408
+ /**
76409
+ * The job or output is inaccessible, missing, or the candidate has expired; verify library ownership and create a new job for an expired candidate.
76410
+ */
76411
+ 404: MediaMediaError;
76412
+ /**
76413
+ * Request failed; see the error code reference.
76414
+ */
76415
+ 409: MediaMediaError;
76416
+ /**
76417
+ * The file exceeds an input limit; provide a smaller source file.
76418
+ */
76419
+ 413: MediaMediaError;
76420
+ /**
76421
+ * This media format is unsupported; provide a supported format.
76422
+ */
76423
+ 415: MediaMediaError;
76424
+ /**
76425
+ * Request failed; see the error code reference.
76426
+ */
76427
+ 422: MediaMediaError;
76428
+ /**
76429
+ * A rate limit was reached; wait before retrying.
76430
+ */
76431
+ 429: MediaMediaError;
76432
+ /**
76433
+ * The requested operation is unsupported; choose a supported method.
76434
+ */
76435
+ 501: MediaMediaError;
76436
+ /**
76437
+ * Request failed; see the error code reference.
76438
+ */
76439
+ 502: MediaMediaError;
76440
+ /**
76441
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76442
+ */
76443
+ 503: MediaMediaError;
76444
+ };
76445
+ export type MediaSaveGenerationOutputError = MediaSaveGenerationOutputErrors[keyof MediaSaveGenerationOutputErrors];
76446
+ export type MediaSaveGenerationOutputResponses = {
76447
+ /**
76448
+ * Successful response.
76449
+ */
76450
+ 200: MediaAsset;
76451
+ };
76452
+ export type MediaSaveGenerationOutputResponse = MediaSaveGenerationOutputResponses[keyof MediaSaveGenerationOutputResponses];
76453
+ export type MediaGetGenerationCapabilitiesData = {
76454
+ body?: never;
76455
+ path?: never;
76456
+ query?: never;
76457
+ url: '/media/v1/generation/capabilities';
76458
+ };
76459
+ export type MediaGetGenerationCapabilitiesErrors = {
76460
+ /**
76461
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
76462
+ */
76463
+ 400: MediaMediaError;
76464
+ /**
76465
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
76466
+ */
76467
+ 403: MediaMediaError;
76468
+ /**
76469
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
76470
+ */
76471
+ 404: MediaMediaError;
76472
+ /**
76473
+ * Request failed; see the error code reference.
76474
+ */
76475
+ 409: MediaMediaError;
76476
+ /**
76477
+ * The file exceeds an input limit; provide a smaller source file.
76478
+ */
76479
+ 413: MediaMediaError;
76480
+ /**
76481
+ * This media format is unsupported; provide a supported format.
76482
+ */
76483
+ 415: MediaMediaError;
76484
+ /**
76485
+ * Request failed; see the error code reference.
76486
+ */
76487
+ 422: MediaMediaError;
76488
+ /**
76489
+ * A rate limit was reached; wait before retrying.
76490
+ */
76491
+ 429: MediaMediaError;
76492
+ /**
76493
+ * The requested operation is unsupported; choose a supported method.
76494
+ */
76495
+ 501: MediaMediaError;
76496
+ /**
76497
+ * Request failed; see the error code reference.
76498
+ */
76499
+ 502: MediaMediaError;
76500
+ /**
76501
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
76502
+ */
76503
+ 503: MediaMediaError;
76504
+ };
76505
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
76506
+ export type MediaGetGenerationCapabilitiesResponses = {
76507
+ /**
76508
+ * Successful response.
76509
+ */
76510
+ 200: MediaGenerationCapabilities;
76511
+ };
76512
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
76513
+ export type OntologyListTypesData = {
76514
+ body?: never;
76515
+ path?: never;
76516
+ query?: never;
76517
+ url: '/ontology/v1/types';
76518
+ };
76519
+ export type OntologyListTypesErrors = {
76520
+ /**
76521
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76522
+ */
76523
+ 401: OntologyOntologyError;
76524
+ /**
76525
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76526
+ */
76527
+ 403: OntologyOntologyError;
76528
+ /**
76529
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76530
+ */
76531
+ 500: OntologyOntologyError;
76532
+ };
76533
+ export type OntologyListTypesError = OntologyListTypesErrors[keyof OntologyListTypesErrors];
76534
+ export type OntologyListTypesResponses = {
76535
+ /**
76536
+ * Every registration in force for this organization, in registration order.
76537
+ */
76538
+ 200: OntologyTypeRegistrationPage;
76539
+ };
76540
+ export type OntologyListTypesResponse = OntologyListTypesResponses[keyof OntologyListTypesResponses];
76541
+ export type OntologyRegisterTypeData = {
76542
+ /**
76543
+ * The registration to add; the same shape one registrant ships as its ontology.types.json.
76544
+ */
76545
+ body: OntologyTypeRegistration;
76546
+ path?: never;
76547
+ query?: never;
76548
+ url: '/ontology/v1/types';
76549
+ };
76550
+ export type OntologyRegisterTypeErrors = {
76551
+ /**
76552
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76553
+ */
76554
+ 400: OntologyOntologyError;
76555
+ /**
76556
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76557
+ */
76558
+ 401: OntologyOntologyError;
76559
+ /**
76560
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76561
+ */
76562
+ 403: OntologyOntologyError;
76563
+ /**
76564
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76565
+ */
76566
+ 500: OntologyOntologyError;
76567
+ /**
76568
+ * NOT_IMPLEMENTED means runtime registration is not open; the deploy gate registers types. Nothing was written.
76569
+ */
76570
+ 501: OntologyOntologyError;
76571
+ };
76572
+ export type OntologyRegisterTypeError = OntologyRegisterTypeErrors[keyof OntologyRegisterTypeErrors];
76573
+ export type OntologyRetrieveTypeData = {
76574
+ body?: never;
76575
+ path: {
76576
+ /**
76577
+ * A type name from types.list, with its dots preserved — a display label is not accepted.
76578
+ */
76579
+ name: string;
76580
+ };
76581
+ query?: never;
76582
+ url: '/ontology/v1/types/{name}';
76583
+ };
76584
+ export type OntologyRetrieveTypeErrors = {
76585
+ /**
76586
+ * ONTOLOGY_TYPE_UNKNOWN means the named type is not registered for this organization; call types.list for the names in force before writing records of it.
76587
+ */
76588
+ 400: OntologyOntologyError;
76589
+ /**
76590
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76591
+ */
76592
+ 401: OntologyOntologyError;
76593
+ /**
76594
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76595
+ */
76596
+ 403: OntologyOntologyError;
76597
+ /**
76598
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76599
+ */
76600
+ 500: OntologyOntologyError;
76601
+ };
76602
+ export type OntologyRetrieveTypeError = OntologyRetrieveTypeErrors[keyof OntologyRetrieveTypeErrors];
76603
+ export type OntologyRetrieveTypeResponses = {
76604
+ /**
76605
+ * The registration that carries this type, with its kind and definition.
76606
+ */
76607
+ 200: OntologyTypeLookup;
76608
+ };
76609
+ export type OntologyRetrieveTypeResponse = OntologyRetrieveTypeResponses[keyof OntologyRetrieveTypeResponses];
76610
+ export type OntologyListNodesData = {
76611
+ body?: never;
76612
+ path?: never;
76613
+ query?: {
76614
+ /**
76615
+ * Repeat to filter to any of several registered node type names, for example type=file&type=ticket; omit to list every type.
76616
+ */
76617
+ type?: Array<string>;
76618
+ /**
76619
+ * Free text matched against node names, aliases and descriptions; omit to list without a text filter.
76620
+ */
76621
+ q?: string;
76622
+ /**
76623
+ * Filter to nodes owned by this member id, or omit to list nodes of every owner; organization-wide nodes carry no owner.
76624
+ */
76625
+ owner?: string;
76626
+ /**
76627
+ * ISO 8601 timestamp; return the graph as it was then, so a node recorded later is absent. Omit to read current state.
76628
+ */
76629
+ as_of?: string;
76630
+ /**
76631
+ * Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.
76632
+ */
76633
+ limit?: number;
76634
+ /**
76635
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
76636
+ */
76637
+ cursor?: string;
76638
+ };
76639
+ url: '/ontology/v1/nodes';
76640
+ };
76641
+ export type OntologyListNodesErrors = {
76642
+ /**
76643
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76644
+ */
76645
+ 400: OntologyOntologyError;
76646
+ /**
76647
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76648
+ */
76649
+ 401: OntologyOntologyError;
76650
+ /**
76651
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76652
+ */
76653
+ 403: OntologyOntologyError;
76654
+ /**
76655
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76656
+ */
76657
+ 500: OntologyOntologyError;
76658
+ };
76659
+ export type OntologyListNodesError = OntologyListNodesErrors[keyof OntologyListNodesErrors];
76660
+ export type OntologyListNodesResponses = {
76661
+ /**
76662
+ * One page of nodes, ordered by node id, with next_cursor null on the last page.
76663
+ */
76664
+ 200: OntologyNodePage;
76665
+ };
76666
+ export type OntologyListNodesResponse = OntologyListNodesResponses[keyof OntologyListNodesResponses];
76667
+ export type OntologyCreateNodeData = {
76668
+ /**
76669
+ * The entity to record; name, type and the optional identity of the mirrored record.
76670
+ */
76671
+ body: OntologyCreateNodeInput;
76672
+ headers: {
76673
+ /**
76674
+ * Unique key for this write, at most 255 characters; resend the same key to replay the first result instead of writing twice. A missing or blank key is refused 400.
76675
+ */
76676
+ 'Idempotency-Key': string;
76677
+ };
76678
+ path?: never;
76679
+ query?: never;
76680
+ url: '/ontology/v1/nodes';
76681
+ };
76682
+ export type OntologyCreateNodeErrors = {
76683
+ /**
76684
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76685
+ */
76686
+ 400: OntologyOntologyError;
76687
+ /**
76688
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76689
+ */
76690
+ 401: OntologyOntologyError;
76691
+ /**
76692
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76693
+ */
76694
+ 403: OntologyOntologyError;
76695
+ /**
76696
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
76697
+ */
76698
+ 409: OntologyOntologyError;
76699
+ /**
76700
+ * ONTOLOGY_CAPACITY means this organization's graph is at its size budget; free space by invalidating facts that are no longer true before retrying.
76701
+ */
76702
+ 429: OntologyOntologyError;
76703
+ /**
76704
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76705
+ */
76706
+ 500: OntologyOntologyError;
76707
+ };
76708
+ export type OntologyCreateNodeError = OntologyCreateNodeErrors[keyof OntologyCreateNodeErrors];
76709
+ export type OntologyCreateNodeResponses = {
76710
+ /**
76711
+ * The recorded node, with the id later reads, updates and relations use.
76712
+ */
76713
+ 201: OntologyNode;
76714
+ };
76715
+ export type OntologyCreateNodeResponse = OntologyCreateNodeResponses[keyof OntologyCreateNodeResponses];
76716
+ export type OntologyRetrieveNodeData = {
76717
+ body?: never;
76718
+ path: {
76719
+ /**
76720
+ * Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.
76721
+ */
76722
+ node_id: string;
76723
+ };
76724
+ query?: {
76725
+ /**
76726
+ * Set to relations to include the node's incoming and outgoing relations in the same response; omit for the node alone.
76727
+ */
76728
+ expand?: 'relations';
76729
+ /**
76730
+ * ISO 8601 timestamp; read the node and its relations as they were then, including relations invalidated since. Omit to read current state.
76731
+ */
76732
+ as_of?: string;
76733
+ };
76734
+ url: '/ontology/v1/nodes/{node_id}';
76735
+ };
76736
+ export type OntologyRetrieveNodeErrors = {
76737
+ /**
76738
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76739
+ */
76740
+ 400: OntologyOntologyError;
76741
+ /**
76742
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76743
+ */
76744
+ 401: OntologyOntologyError;
76745
+ /**
76746
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76747
+ */
76748
+ 403: OntologyOntologyError;
76749
+ /**
76750
+ * ONTOLOGY_NODE_NOT_FOUND means the node does not exist in this organization — never created, or owned by another organization; list nodes to find an id you can read.
76751
+ */
76752
+ 404: OntologyOntologyError;
76753
+ /**
76754
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76755
+ */
76756
+ 500: OntologyOntologyError;
76757
+ };
76758
+ export type OntologyRetrieveNodeError = OntologyRetrieveNodeErrors[keyof OntologyRetrieveNodeErrors];
76759
+ export type OntologyRetrieveNodeResponses = {
76760
+ /**
76761
+ * The node, plus a relations array when expand=relations was requested.
76762
+ */
76763
+ 200: OntologyNodeWithRelations;
76764
+ };
76765
+ export type OntologyRetrieveNodeResponse = OntologyRetrieveNodeResponses[keyof OntologyRetrieveNodeResponses];
76766
+ export type OntologyUpdateNodeData = {
76767
+ /**
76768
+ * The fields to change; at least one of name, aliases or description.
76769
+ */
76770
+ body: OntologyUpdateNodeInput;
76771
+ path: {
76772
+ /**
76773
+ * Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.
76774
+ */
76775
+ node_id: string;
76776
+ };
76777
+ query?: never;
76778
+ url: '/ontology/v1/nodes/{node_id}';
76779
+ };
76780
+ export type OntologyUpdateNodeErrors = {
76781
+ /**
76782
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76783
+ */
76784
+ 400: OntologyOntologyError;
76785
+ /**
76786
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76787
+ */
76788
+ 401: OntologyOntologyError;
76789
+ /**
76790
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76791
+ */
76792
+ 403: OntologyOntologyError;
76793
+ /**
76794
+ * ONTOLOGY_NODE_NOT_FOUND means the node does not exist in this organization — never created, or owned by another organization; list nodes to find an id you can read.
76795
+ */
76796
+ 404: OntologyOntologyError;
76797
+ /**
76798
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76799
+ */
76800
+ 500: OntologyOntologyError;
76801
+ };
76802
+ export type OntologyUpdateNodeError = OntologyUpdateNodeErrors[keyof OntologyUpdateNodeErrors];
76803
+ export type OntologyUpdateNodeResponses = {
76804
+ /**
76805
+ * The node after the update, with its new updated_at.
76806
+ */
76807
+ 200: OntologyNode;
76808
+ };
76809
+ export type OntologyUpdateNodeResponse = OntologyUpdateNodeResponses[keyof OntologyUpdateNodeResponses];
76810
+ export type OntologyMergeNodeData = {
76811
+ /**
76812
+ * The node the merged one folds into.
76813
+ */
76814
+ body: OntologyMergeNodeInput;
76815
+ headers: {
76816
+ /**
76817
+ * Unique key for this merge, at most 255 characters; resend the same key to replay the first result instead of merging twice.
76818
+ */
76819
+ 'Idempotency-Key': string;
76820
+ };
76821
+ path: {
76822
+ /**
76823
+ * Node id returned by nodes.list, nodes.create or a changeset, in the form ond_ followed by 32 lowercase letters or digits; a name or an external record id is not accepted.
76824
+ */
76825
+ node_id: string;
76826
+ };
76827
+ query?: never;
76828
+ url: '/ontology/v1/nodes/{node_id}/merge';
76829
+ };
76830
+ export type OntologyMergeNodeErrors = {
76831
+ /**
76832
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76833
+ */
76834
+ 400: OntologyOntologyError;
76835
+ /**
76836
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76837
+ */
76838
+ 401: OntologyOntologyError;
76839
+ /**
76840
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76841
+ */
76842
+ 403: OntologyOntologyError;
76843
+ /**
76844
+ * ONTOLOGY_NODE_NOT_FOUND means the node does not exist in this organization — never created, or owned by another organization; list nodes to find an id you can read.
76845
+ */
76846
+ 404: OntologyOntologyError;
76847
+ /**
76848
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
76849
+ */
76850
+ 409: OntologyOntologyError;
76851
+ /**
76852
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76853
+ */
76854
+ 500: OntologyOntologyError;
76855
+ };
76856
+ export type OntologyMergeNodeError = OntologyMergeNodeErrors[keyof OntologyMergeNodeErrors];
76857
+ export type OntologyMergeNodeResponses = {
76858
+ /**
76859
+ * The surviving node that the merged id now resolves to.
76860
+ */
76861
+ 200: OntologyNode;
76862
+ };
76863
+ export type OntologyMergeNodeResponse = OntologyMergeNodeResponses[keyof OntologyMergeNodeResponses];
76864
+ export type OntologyListRelationsData = {
76865
+ body?: never;
76866
+ path?: never;
76867
+ query?: {
76868
+ /**
76869
+ * A node id from nodes.list or nodes.create; returns the relations this node takes part in, narrowed by direction. Omit to list relations between every node.
76870
+ */
76871
+ node?: string;
76872
+ /**
76873
+ * Repeat to filter to any of several registered relation type names, for example type=references&type=serves; omit to list every type.
76874
+ */
76875
+ type?: Array<string>;
76876
+ /**
76877
+ * Which side of node to follow; out returns relations the node is the source of, in returns those it is the target of. Only meaningful together with node.
76878
+ */
76879
+ direction?: 'out' | 'in' | 'both';
76880
+ /**
76881
+ * ISO 8601 timestamp; read relations as they were then, so one recorded or invalidated later is judged by that time. Omit to read current state.
76882
+ */
76883
+ as_of?: string;
76884
+ /**
76885
+ * Set true to include relations whose invalid_at has passed, which is how a relation that stopped being true stays readable. Omit or false for currently valid relations only.
76886
+ */
76887
+ include_invalid?: boolean;
76888
+ /**
76889
+ * Maximum items to return per page, from 1 to 100; defaults to 50 when omitted. Values above 100 are clamped to 100.
76890
+ */
76891
+ limit?: number;
76892
+ /**
76893
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
76894
+ */
76895
+ cursor?: string;
76896
+ };
76897
+ url: '/ontology/v1/relations';
76898
+ };
76899
+ export type OntologyListRelationsErrors = {
76900
+ /**
76901
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76902
+ */
76903
+ 400: OntologyOntologyError;
76904
+ /**
76905
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76906
+ */
76907
+ 401: OntologyOntologyError;
76908
+ /**
76909
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76910
+ */
76911
+ 403: OntologyOntologyError;
76912
+ /**
76913
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76914
+ */
76915
+ 500: OntologyOntologyError;
76916
+ };
76917
+ export type OntologyListRelationsError = OntologyListRelationsErrors[keyof OntologyListRelationsErrors];
76918
+ export type OntologyListRelationsResponses = {
76919
+ /**
76920
+ * One page of relations, ordered by relation id, with next_cursor null on the last page.
76921
+ */
76922
+ 200: OntologyRelationPage;
76923
+ };
76924
+ export type OntologyListRelationsResponse = OntologyListRelationsResponses[keyof OntologyListRelationsResponses];
76925
+ export type OntologyCreateRelationData = {
76926
+ /**
76927
+ * The fact to record, between two node ids from this organization's graph.
76928
+ */
76929
+ body: OntologyCreateRelationInput;
76930
+ headers: {
76931
+ /**
76932
+ * Unique key for this write, at most 255 characters; resend the same key to replay the first result instead of writing twice. A missing or blank key is refused 400.
76933
+ */
76934
+ 'Idempotency-Key': string;
76935
+ };
76936
+ path?: never;
76937
+ query?: never;
76938
+ url: '/ontology/v1/relations';
76939
+ };
76940
+ export type OntologyCreateRelationErrors = {
76941
+ /**
76942
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76943
+ */
76944
+ 400: OntologyOntologyError;
76945
+ /**
76946
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76947
+ */
76948
+ 401: OntologyOntologyError;
76949
+ /**
76950
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76951
+ */
76952
+ 403: OntologyOntologyError;
76953
+ /**
76954
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
76955
+ */
76956
+ 409: OntologyOntologyError;
76957
+ /**
76958
+ * ONTOLOGY_CAPACITY means this organization's graph is at its size budget; free space by invalidating facts that are no longer true before retrying.
76959
+ */
76960
+ 429: OntologyOntologyError;
76961
+ /**
76962
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
76963
+ */
76964
+ 500: OntologyOntologyError;
76965
+ };
76966
+ export type OntologyCreateRelationError = OntologyCreateRelationErrors[keyof OntologyCreateRelationErrors];
76967
+ export type OntologyCreateRelationResponses = {
76968
+ /**
76969
+ * The recorded relation, with the id later reads and invalidation use.
76970
+ */
76971
+ 201: OntologyRelation;
76972
+ };
76973
+ export type OntologyCreateRelationResponse = OntologyCreateRelationResponses[keyof OntologyCreateRelationResponses];
76974
+ export type OntologyRetrieveRelationData = {
76975
+ body?: never;
76976
+ path: {
76977
+ /**
76978
+ * Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted.
76979
+ */
76980
+ relation_id: string;
76981
+ };
76982
+ query?: never;
76983
+ url: '/ontology/v1/relations/{relation_id}';
76984
+ };
76985
+ export type OntologyRetrieveRelationErrors = {
76986
+ /**
76987
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
76988
+ */
76989
+ 400: OntologyOntologyError;
76990
+ /**
76991
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
76992
+ */
76993
+ 401: OntologyOntologyError;
76994
+ /**
76995
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
76996
+ */
76997
+ 403: OntologyOntologyError;
76998
+ /**
76999
+ * ONTOLOGY_EDGE_NOT_FOUND means the relation does not exist in this organization, or its content belongs to another member; list relations for the ids you may read.
77000
+ */
77001
+ 404: OntologyOntologyError;
77002
+ /**
77003
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77004
+ */
77005
+ 500: OntologyOntologyError;
77006
+ };
77007
+ export type OntologyRetrieveRelationError = OntologyRetrieveRelationErrors[keyof OntologyRetrieveRelationErrors];
77008
+ export type OntologyRetrieveRelationResponses = {
77009
+ /**
77010
+ * The relation, including its fact, endpoints and both clocks.
77011
+ */
77012
+ 200: OntologyRelation;
77013
+ };
77014
+ export type OntologyRetrieveRelationResponse = OntologyRetrieveRelationResponses[keyof OntologyRetrieveRelationResponses];
77015
+ export type OntologyInvalidateRelationData = {
77016
+ /**
77017
+ * When the fact stopped being true, and optionally what replaced it and why.
77018
+ */
77019
+ body: OntologyInvalidateRelationInput;
77020
+ headers: {
77021
+ /**
77022
+ * Unique key for this invalidation, at most 255 characters; resend the same key to replay the first result instead of invalidating twice.
77023
+ */
77024
+ 'Idempotency-Key': string;
77025
+ };
77026
+ path: {
77027
+ /**
77028
+ * Relation id returned by relations.list, relations.create or a changeset, in the form oed_ followed by 32 lowercase letters or digits; a node id is not accepted.
77029
+ */
77030
+ relation_id: string;
77031
+ };
77032
+ query?: never;
77033
+ url: '/ontology/v1/relations/{relation_id}/invalidate';
77034
+ };
77035
+ export type OntologyInvalidateRelationErrors = {
77036
+ /**
77037
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
77038
+ */
77039
+ 400: OntologyOntologyError;
77040
+ /**
77041
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
77042
+ */
77043
+ 401: OntologyOntologyError;
77044
+ /**
77045
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
77046
+ */
77047
+ 403: OntologyOntologyError;
77048
+ /**
77049
+ * ONTOLOGY_EDGE_NOT_FOUND means the relation does not exist in this organization, or its content belongs to another member; list relations for the ids you may read.
77050
+ */
77051
+ 404: OntologyOntologyError;
77052
+ /**
77053
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
77054
+ */
77055
+ 409: OntologyOntologyError;
77056
+ /**
77057
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77058
+ */
77059
+ 500: OntologyOntologyError;
77060
+ };
77061
+ export type OntologyInvalidateRelationError = OntologyInvalidateRelationErrors[keyof OntologyInvalidateRelationErrors];
77062
+ export type OntologyInvalidateRelationResponses = {
77063
+ /**
77064
+ * The relation after invalidation, with invalid_at set to the given time.
77065
+ */
77066
+ 200: OntologyRelation;
77067
+ };
77068
+ export type OntologyInvalidateRelationResponse = OntologyInvalidateRelationResponses[keyof OntologyInvalidateRelationResponses];
77069
+ export type OntologyApplyChangesetData = {
77070
+ /**
77071
+ * The operations to apply together, with the world time they describe.
77072
+ */
77073
+ body: OntologyChangesetInput;
77074
+ headers: {
77075
+ /**
77076
+ * Unique key for this batch, at most 255 characters; resend the same key to replay the first result instead of writing the batch twice.
77077
+ */
77078
+ 'Idempotency-Key': string;
77079
+ };
77080
+ path?: never;
77081
+ query?: never;
77082
+ url: '/ontology/v1/changesets';
77083
+ };
77084
+ export type OntologyApplyChangesetErrors = {
77085
+ /**
77086
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
77087
+ */
77088
+ 400: OntologyOntologyError;
77089
+ /**
77090
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
77091
+ */
77092
+ 401: OntologyOntologyError;
77093
+ /**
77094
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
77095
+ */
77096
+ 403: OntologyOntologyError;
77097
+ /**
77098
+ * ONTOLOGY_CONFLICT means the Idempotency-Key was already used with different content; reuse the original request for that key or send a new key for a different write.
77099
+ */
77100
+ 409: OntologyOntologyError;
77101
+ /**
77102
+ * ONTOLOGY_CAPACITY means this organization's graph is at its size budget; free space by invalidating facts that are no longer true before retrying.
77103
+ */
77104
+ 429: OntologyOntologyError;
77105
+ /**
77106
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77107
+ */
77108
+ 500: OntologyOntologyError;
77109
+ };
77110
+ export type OntologyApplyChangesetError = OntologyApplyChangesetErrors[keyof OntologyApplyChangesetErrors];
77111
+ export type OntologyApplyChangesetResponses = {
77112
+ /**
77113
+ * The applied count, the ids assigned to the batch's keys, and replayed true when the key had been seen before.
77114
+ */
77115
+ 200: OntologyChangesetResult;
77116
+ };
77117
+ export type OntologyApplyChangesetResponse = OntologyApplyChangesetResponses[keyof OntologyApplyChangesetResponses];
77118
+ export type OntologySearchData = {
77119
+ /**
77120
+ * The text to resolve, optionally narrowed to particular node types and a result count.
77121
+ */
77122
+ body: OntologySearchInput;
77123
+ path?: never;
77124
+ query?: never;
77125
+ url: '/ontology/v1/search';
77126
+ };
77127
+ export type OntologySearchErrors = {
77128
+ /**
77129
+ * INVALID_PARAMS means a field, query value, header or identifier violates the documented format or range — a missing Idempotency-Key, an unknown direction, a non-numeric limit. Correct the indicated input; the message names what was wrong.
77130
+ */
77131
+ 400: OntologyOntologyError;
77132
+ /**
77133
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
77134
+ */
77135
+ 401: OntologyOntologyError;
77136
+ /**
77137
+ * The API key lacks permission for this operation, or carries no organization; use a key with the required ontology access in the owning organization.
77138
+ */
77139
+ 403: OntologyOntologyError;
77140
+ /**
77141
+ * INTERNAL means the service could not complete the request; before retrying a write, read the graph back so a partially applied change is not sent twice.
77142
+ */
77143
+ 500: OntologyOntologyError;
77144
+ };
77145
+ export type OntologySearchError = OntologySearchErrors[keyof OntologySearchErrors];
77146
+ export type OntologySearchResponses = {
77147
+ /**
77148
+ * Ranked candidate nodes, best match first, with the field each one matched on.
77149
+ */
77150
+ 200: OntologySearchResult;
77151
+ };
77152
+ export type OntologySearchResponse = OntologySearchResponses[keyof OntologySearchResponses];
74829
77153
  export type GetSandboxV1SandboxesData = {
74830
77154
  body?: never;
74831
77155
  path?: never;
@@ -75218,6 +77542,10 @@ export type ListSandboxTemplatesResponses = {
75218
77542
  buildCount: number;
75219
77543
  envdVersion: SandboxEnvdVersion;
75220
77544
  buildStatus: SandboxTemplateBuildStatus;
77545
+ /**
77546
+ * Lifecycle classes this template can run as. ephemeral: cannot pause, snapshot or mount volumes and is deleted when it stops; persistent: can pause, resume and snapshot.
77547
+ */
77548
+ lifecycles?: Array<'ephemeral' | 'persistent'>;
75221
77549
  /**
75222
77550
  * True for an official catalog template; false for your organization's custom templates.
75223
77551
  */
@@ -77421,7 +79749,7 @@ export type TicketGetTicketsData = {
77421
79749
  */
77422
79750
  page_token?: string;
77423
79751
  /**
77424
- * Filter expression.
79752
+ * Filter expression using field:value qualifiers, such as is:open milestone:5.
77425
79753
  */
77426
79754
  filter?: string;
77427
79755
  };
@@ -79840,7 +82168,7 @@ export type TicketGetActivityData = {
79840
82168
  */
79841
82169
  page_token?: string;
79842
82170
  /**
79843
- * Filter expression.
82171
+ * Activity filter expression.
79844
82172
  */
79845
82173
  filter?: string;
79846
82174
  };