@deepraxis/sdk 0.1.1-dev.3c2e98e → 0.1.1-dev.3cf8882

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.
@@ -2382,6 +2382,91 @@ export type AgentSseEvent = ({
2382
2382
  task_id: string | null;
2383
2383
  }>;
2384
2384
  };
2385
+ } | {
2386
+ /**
2387
+ * Always `system.notification_suppressed`. SSE event name of this frame; its data is a system.notification_suppressed payload. Pending background notifications started no run because the session hit its wake quota; reason says which.
2388
+ */
2389
+ event?: 'system.notification_suppressed';
2390
+ /**
2391
+ * Decoded JSON payload of this frame; its shape is selected by the event name.
2392
+ */
2393
+ data?: {
2394
+ /**
2395
+ * Text of the block.
2396
+ */
2397
+ id: string;
2398
+ /**
2399
+ * Always `system.notification_suppressed`. Pending background notifications started no run because the session hit its wake quota; reason says which.
2400
+ */
2401
+ type: 'system.notification_suppressed';
2402
+ /**
2403
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
2404
+ */
2405
+ processed_at: string;
2406
+ /**
2407
+ * Text of the block.
2408
+ */
2409
+ session_thread_id?: string;
2410
+ /**
2411
+ * The wake quota that held the batch.
2412
+ */
2413
+ reason: 'hourly' | 'daily' | 'loop';
2414
+ /**
2415
+ * The pending system inputs that were dropped without a run.
2416
+ */
2417
+ system_input_ids: Array<string>;
2418
+ /**
2419
+ * The distinct source kinds of those inputs, such as background_task or monitor.
2420
+ */
2421
+ source_kinds: Array<string>;
2422
+ /**
2423
+ * A platform sentence that explains the pause; never the notification text.
2424
+ */
2425
+ content: Array<{
2426
+ /**
2427
+ * Always `text`. A text block.
2428
+ */
2429
+ type: 'text';
2430
+ /**
2431
+ * Text of the block.
2432
+ */
2433
+ text: string;
2434
+ }>;
2435
+ };
2436
+ } | {
2437
+ /**
2438
+ * Always `system.notification_recorded`. SSE event name of this frame; its data is a system.notification_recorded payload. Pending background notifications were recorded without a run because the agent has no model.
2439
+ */
2440
+ event?: 'system.notification_recorded';
2441
+ /**
2442
+ * Decoded JSON payload of this frame; its shape is selected by the event name.
2443
+ */
2444
+ data?: {
2445
+ /**
2446
+ * Text of the block.
2447
+ */
2448
+ id: string;
2449
+ /**
2450
+ * Always `system.notification_recorded`. Pending background notifications were recorded without a run because the agent has no model.
2451
+ */
2452
+ type: 'system.notification_recorded';
2453
+ /**
2454
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
2455
+ */
2456
+ processed_at: string;
2457
+ /**
2458
+ * Text of the block.
2459
+ */
2460
+ session_thread_id?: string;
2461
+ /**
2462
+ * The pending system inputs that were recorded without a run.
2463
+ */
2464
+ system_input_ids: Array<string>;
2465
+ /**
2466
+ * The distinct source kinds of those inputs.
2467
+ */
2468
+ source_kinds: Array<string>;
2469
+ };
2385
2470
  } | {
2386
2471
  /**
2387
2472
  * Always `session.forked`. SSE event name of this frame; its data is a session.forked payload. The session was created by forking another session.
@@ -2733,7 +2818,7 @@ export type AgentSseEvent = ({
2733
2818
  /**
2734
2819
  * Server-Sent Events event name of this frame.
2735
2820
  */
2736
- event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
2821
+ event: 'system.message' | 'user.message' | 'user.interrupt' | 'agent.message' | 'agent.thinking' | 'session.status_running' | 'session.status_rescheduled' | 'session.status_idle' | 'session.status_terminated' | 'agent.thread_context_compacting' | 'agent.thread_context_compacted' | 'agent.thread_context_reset' | 'session.updated' | 'session.error' | 'session.usage' | 'span.model_request_start' | 'span.model_request_end' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'user.tool_confirmation' | 'agent.custom_tool_use' | 'user.custom_tool_result' | 'session.thread_created' | 'session.thread_status_running' | 'session.thread_status_idle' | 'session.thread_status_rescheduled' | 'session.thread_status_terminated' | 'agent.thread_message_sent' | 'agent.thread_message_received' | 'user.withdraw' | 'user.steer' | 'system.notification' | 'system.notification_suppressed' | 'system.notification_recorded' | 'session.forked' | 'session.goal_changed' | 'session.goal_verification' | 'event_start' | 'event_delta' | 'ping' | 'error';
2737
2822
  data: AgentSseData;
2738
2823
  };
2739
2824
  /**
@@ -7496,6 +7581,10 @@ export type OrganizationAssignment = {
7496
7581
  * Actor address of the holder, such as human:usr_123 for a person or agent:agent_123 for an agent.
7497
7582
  */
7498
7583
  actor: string;
7584
+ /**
7585
+ * The holder's display name from the organization's directory, archived agents included, so a past holder is still named; null when the directory does not know the actor or cannot be reached. Filled on list and get; other answers carry null.
7586
+ */
7587
+ actor_name: string | null;
7499
7588
  /**
7500
7589
  * Whether this is the actor's primary assignment; an actor holding positions has exactly one primary, and the others are concurrent.
7501
7590
  */
@@ -16549,6 +16638,32 @@ export type DevopsFlagPage = {
16549
16638
  */
16550
16639
  nextPageToken: string;
16551
16640
  };
16641
+ /**
16642
+ * One code-reference scan of a checkout: the commit it read, and per flag key where that key is read.
16643
+ */
16644
+ export type DevopsFlagCodeRefsReport = {
16645
+ /**
16646
+ * The commit this scan read, from `git rev-parse HEAD` in the reporting checkout; it is stored as each flag's codeRefs.scannedCommit, so a value older than the current head means the count describes the code as it was then.
16647
+ */
16648
+ scannedCommit: string;
16649
+ /**
16650
+ * One entry per flag key this scan judged. Send every key the checkout still expects to be referenced, including the ones found nowhere: a project flag with no entry here is stored with zero references, which is what later lets `archive` refuse only flags code still names.
16651
+ */
16652
+ refs: Array<DevopsFlagCodeRefsEntry>;
16653
+ };
16654
+ /**
16655
+ * The result of storing one scan: how many flags were written, and which reported keys matched no live flag of the project.
16656
+ */
16657
+ export type DevopsFlagCodeRefsReportResult = {
16658
+ /**
16659
+ * How many live flags of the project this call wrote; every live flag gets a row, including the ones written with zero references.
16660
+ */
16661
+ updated: number;
16662
+ /**
16663
+ * Reported keys that match no live flag of the project — a key already archived, or one from another project. They are reported back rather than refused, so one stale key does not fail the whole scan, and they store nothing.
16664
+ */
16665
+ unknownKeys: Array<string>;
16666
+ };
16552
16667
  /**
16553
16668
  * The flag fields to change and which of them the request means to write.
16554
16669
  */
@@ -18281,7 +18396,7 @@ export type MediaLibrary = {
18281
18396
  };
18282
18397
  export type MediaMediaError = {
18283
18398
  error: {
18284
- 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' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
18399
+ 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' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
18285
18400
  message: string;
18286
18401
  details: string | null;
18287
18402
  };
@@ -18960,6 +19075,10 @@ export type MediaJob = {
18960
19075
  * Generation jobs only: the elements the job’s request expanded, each with the version read when the job was created; absent when none were. Same records as the outputs’ provenance.elements. A request that named no element answers no elements key.
18961
19076
  */
18962
19077
  elements?: Array<MediaElementUse>;
19078
+ /**
19079
+ * Present on a completed align job: how the two recordings line up, with offset_seconds and confidence. Absent on every job that produced assets instead of a fact.
19080
+ */
19081
+ result?: MediaAlignResult;
18963
19082
  };
18964
19083
  /**
18965
19084
  * Operation applied independently to each selected asset; item failures do not undo successful items.
@@ -19082,7 +19201,7 @@ export type MediaAssetReference = {
19082
19201
  strength?: number;
19083
19202
  };
19084
19203
  /**
19085
- * One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED.
19204
+ * One edit to apply to the source asset. type selects the operation and the discriminating branch carries that operation’s fields. This release performs variations, inpaint, erase, replace_object, recolor and replace_background on images, remove_background on an image or a video, upscale, enhance_voice, reframe and redact through Media’s processing lane (upscale on a picture or a video; enhance_voice on a recording or a video, whose audio is used; reframe and redact on a video), and to_video, frame and resynthesize on the material each takes; every other type here describes the operation vocabulary and is refused with OPERATION_NOT_SUPPORTED. align is not an edit — it compares two assets and has its own endpoint, POST /media/v1/libraries/{library_id}/assets/{asset_id}/align.
19086
19205
  */
19087
19206
  export type MediaEditOperation = {
19088
19207
  /**
@@ -19107,17 +19226,13 @@ export type MediaEditOperation = {
19107
19226
  */
19108
19227
  type: 'upscale';
19109
19228
  /**
19110
- * Upscale strategy: fast, conservative or creative.
19111
- */
19112
- mode?: 'fast' | 'conservative' | 'creative';
19113
- /**
19114
- * Upscale factor, 2 or 4.
19229
+ * Target height in pixels: 720, 1080, 1440 or 2160; omit it to use 1080. The source’s aspect ratio is kept, and a picture stays a picture while a video stays a video.
19115
19230
  */
19116
- scale?: 2 | 4;
19231
+ height?: 720 | 1080 | 1440 | 2160;
19117
19232
  /**
19118
- * Target resolution: 1080p or 4k.
19233
+ * Processing model that performs the upscale, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
19119
19234
  */
19120
- resolution?: '1080p' | '4k';
19235
+ model?: string;
19121
19236
  } | {
19122
19237
  /**
19123
19238
  * Edit operation discriminator; outpaint selects the outpaint branch of this union.
@@ -19332,6 +19447,41 @@ export type MediaEditOperation = {
19332
19447
  * Edit operation discriminator; to_gif selects the to_gif branch of this union.
19333
19448
  */
19334
19449
  type: 'to_gif';
19450
+ } | {
19451
+ /**
19452
+ * Edit operation discriminator; enhance_voice selects the enhance_voice branch of this union.
19453
+ */
19454
+ type: 'enhance_voice';
19455
+ /**
19456
+ * Processing model that performs the enhancement, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
19457
+ */
19458
+ model?: string;
19459
+ } | {
19460
+ /**
19461
+ * Edit operation discriminator; reframe selects the reframe branch of this union.
19462
+ */
19463
+ type: 'reframe';
19464
+ /**
19465
+ * Target aspect ratio: 9:16, 1:1 or 16:9.
19466
+ */
19467
+ aspect: '9:16' | '1:1' | '16:9';
19468
+ /**
19469
+ * Processing model that performs the re-framing, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
19470
+ */
19471
+ model?: string;
19472
+ } | {
19473
+ /**
19474
+ * Edit operation discriminator; redact selects the redact branch of this union.
19475
+ */
19476
+ type: 'redact';
19477
+ /**
19478
+ * What to cover: face, qr or text, one or more, in the order given; an empty, unknown or repeated target is refused with INVALID_PARAMS.
19479
+ */
19480
+ targets: Array<'face' | 'qr' | 'text'>;
19481
+ /**
19482
+ * Processing model that performs the redaction, from the models the generation capabilities publish for this operation; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED in the model field.
19483
+ */
19484
+ model?: string;
19335
19485
  } | {
19336
19486
  /**
19337
19487
  * Edit operation discriminator; voice_change selects the voice_change branch of this union.
@@ -20584,6 +20734,84 @@ export type SearchValidationError = {
20584
20734
  };
20585
20735
  }>;
20586
20736
  };
20737
+ /**
20738
+ * What to share and the limits of its link.
20739
+ */
20740
+ export type ShareCreateShareInput = {
20741
+ resource: ShareShareResource;
20742
+ /**
20743
+ * ISO 8601 instant after which the link answers 410; omit or null for a link that never expires, and it must be in the future.
20744
+ */
20745
+ expire_time?: string | null;
20746
+ /**
20747
+ * Ask viewers to open the content without a download prompt; a limit, not a guarantee, because anyone who can read it can save it. Defaults to false.
20748
+ */
20749
+ prevents_download?: boolean;
20750
+ };
20751
+ /**
20752
+ * One share, which is one revocable link to one object.
20753
+ */
20754
+ export type ShareSharePermission = {
20755
+ /**
20756
+ * Share id, shr_ followed by 32 lowercase letters or digits; use it to retrieve or delete the share.
20757
+ */
20758
+ id: string;
20759
+ /**
20760
+ * Object type tag; always share.permission.
20761
+ */
20762
+ object: 'share.permission';
20763
+ /**
20764
+ * The organization that owns the share, taken from the credential that created it.
20765
+ */
20766
+ organization_id: string;
20767
+ resource: ShareShareResource;
20768
+ /**
20769
+ * What the link grants; read only.
20770
+ */
20771
+ roles: Array<'read'>;
20772
+ link: ShareSharePermissionLink;
20773
+ /**
20774
+ * ISO 8601 instant after which the link answers 410, or null when it never expires.
20775
+ */
20776
+ expire_time: string | null;
20777
+ /**
20778
+ * Current state of the link; expired is derived from expire_time and revoked comes from delete.
20779
+ */
20780
+ status: 'active' | 'expired' | 'revoked';
20781
+ /**
20782
+ * Who created the share, in the form user:{id}; the user behind the API key or session that made the call.
20783
+ */
20784
+ created_by: string;
20785
+ /**
20786
+ * When the share was created, ISO 8601.
20787
+ */
20788
+ create_time: string;
20789
+ /**
20790
+ * When the share was deleted, ISO 8601, or null while it has not been.
20791
+ */
20792
+ revoke_time: string | null;
20793
+ /**
20794
+ * How many times the link was opened.
20795
+ */
20796
+ open_count: number;
20797
+ /**
20798
+ * When the link was last opened, ISO 8601, or null if it never was.
20799
+ */
20800
+ last_open_time: string | null;
20801
+ };
20802
+ /**
20803
+ * One page of shares, newest first.
20804
+ */
20805
+ export type ShareSharePermissionPage = {
20806
+ /**
20807
+ * Shares in this page; continue with next_page_token when it is not null.
20808
+ */
20809
+ data: Array<ShareSharePermission>;
20810
+ /**
20811
+ * Opaque token for page_token on the next request; null when no more shares remain.
20812
+ */
20813
+ next_page_token: string | null;
20814
+ };
20587
20815
  /**
20588
20816
  * The genre catalog as this caller may use it today.
20589
20817
  */
@@ -20649,7 +20877,7 @@ export type StudioPlatform = {
20649
20877
  */
20650
20878
  available_from?: 's3' | 's5' | 's7';
20651
20879
  /**
20652
- * Limit names still unconfirmed against the platform documentation; treat the listed values as provisional.
20880
+ * Limit names still unconfirmed against the platform documentation; treat the listed values as provisional. A name here is spelled as the matching `limits` key is, so it can be looked up there.
20653
20881
  */
20654
20882
  unverified?: Array<string>;
20655
20883
  };
@@ -25040,6 +25268,73 @@ export type AgentSseData = {
25040
25268
  */
25041
25269
  task_id: string | null;
25042
25270
  }>;
25271
+ } | {
25272
+ /**
25273
+ * Text of the block.
25274
+ */
25275
+ id: string;
25276
+ /**
25277
+ * Always `system.notification_suppressed`. Pending background notifications started no run because the session hit its wake quota; reason says which.
25278
+ */
25279
+ type: 'system.notification_suppressed';
25280
+ /**
25281
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
25282
+ */
25283
+ processed_at: string;
25284
+ /**
25285
+ * Text of the block.
25286
+ */
25287
+ session_thread_id?: string;
25288
+ /**
25289
+ * The wake quota that held the batch.
25290
+ */
25291
+ reason: 'hourly' | 'daily' | 'loop';
25292
+ /**
25293
+ * The pending system inputs that were dropped without a run.
25294
+ */
25295
+ system_input_ids: Array<string>;
25296
+ /**
25297
+ * The distinct source kinds of those inputs, such as background_task or monitor.
25298
+ */
25299
+ source_kinds: Array<string>;
25300
+ /**
25301
+ * A platform sentence that explains the pause; never the notification text.
25302
+ */
25303
+ content: Array<{
25304
+ /**
25305
+ * Always `text`. A text block.
25306
+ */
25307
+ type: 'text';
25308
+ /**
25309
+ * Text of the block.
25310
+ */
25311
+ text: string;
25312
+ }>;
25313
+ } | {
25314
+ /**
25315
+ * Text of the block.
25316
+ */
25317
+ id: string;
25318
+ /**
25319
+ * Always `system.notification_recorded`. Pending background notifications were recorded without a run because the agent has no model.
25320
+ */
25321
+ type: 'system.notification_recorded';
25322
+ /**
25323
+ * RFC 3339 time at which the server processed the event; null while a queued input has not started running.
25324
+ */
25325
+ processed_at: string;
25326
+ /**
25327
+ * Text of the block.
25328
+ */
25329
+ session_thread_id?: string;
25330
+ /**
25331
+ * The pending system inputs that were recorded without a run.
25332
+ */
25333
+ system_input_ids: Array<string>;
25334
+ /**
25335
+ * The distinct source kinds of those inputs.
25336
+ */
25337
+ source_kinds: Array<string>;
25043
25338
  } | {
25044
25339
  /**
25045
25340
  * Event id, unique within the session. Use it to refer to this event, for example in user.tool_confirmation or user.steer.
@@ -33873,6 +34168,19 @@ export type DevopsFlagCodeRefs = {
33873
34168
  */
33874
34169
  scannedCommit: string;
33875
34170
  };
34171
+ /**
34172
+ * Where one flag key is read: the key, and the places in the scanned checkout that read it.
34173
+ */
34174
+ export type DevopsFlagCodeRefsEntry = {
34175
+ /**
34176
+ * The flag key this entry counts, matched against the project's live flags by key; a key matching none is returned in the answer's unknownKeys and stores nothing.
34177
+ */
34178
+ flagKey: string;
34179
+ /**
34180
+ * The places this scan found the key read. Empty means it found none, which the platform stores as count 0; at most 500 items are stored per flag even when more were sent.
34181
+ */
34182
+ items: Array<DevopsFlagCodeRefsItem>;
34183
+ };
33876
34184
  /**
33877
34185
  * The updatable fields of a flag, as the body of an update. Values left out are not touched, and null clears a nullable one.
33878
34186
  */
@@ -34791,9 +35099,9 @@ export type MediaChunkComplete = MediaAsset & {
34791
35099
  */
34792
35100
  export type MediaProcessing = {
34793
35101
  /**
34794
- * 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.
35102
+ * Current understanding stage: probe, proxy, frames, shots, visual, transcript, transcript_reference, transcript_correction, audio_profile, overview, embedding or finalize. proxy prepares the proxies a large source is understood through. Null after finalization; omitted on assets not yet dispatched.
34795
35103
  */
34796
- readonly stage?: 'probe' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
35104
+ readonly stage?: 'probe' | 'proxy' | 'frames' | 'shots' | 'visual' | 'transcript' | 'transcript_reference' | 'transcript_correction' | 'audio_profile' | 'overview' | 'embedding' | 'finalize' | null;
34797
35105
  state: MediaProcessingState;
34798
35106
  /**
34799
35107
  * Processing states by kind. tagging is present when auto_tagging was requested and follows visual understanding.
@@ -35425,7 +35733,7 @@ export type MediaGenerationType = 'image' | 'video' | 'speech' | 'music' | 'soun
35425
35733
  * Edit operations: the change this step applied to its parent asset.
35426
35734
  */
35427
35735
  export type MediaGenerationOperation = 'generate' | 'clone' | 'tag' | 'untag' | 'set_context' | 'move' | 'delete' | 'reprocess' | 'variations' | 'upscale' | 'outpaint' | 'inpaint' | 'erase' | 'replace_object' | 'recolor' | 'remove_background' | 'replace_background' | 'to_video' | 'extend' | 'edit' | 'lip_sync' | 'frame' | 'to_gif' | 'voice_change' | 'resynthesize';
35428
- 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' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
35736
+ 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' | 'FILE_NOT_READY' | 'UNSUPPORTED_MEDIA' | 'FETCH_FAILED' | 'LIMIT_EXCEEDED' | 'CHUNK_INVALID' | 'RATE_LIMITED' | 'CAPACITY' | 'UPSTREAM_FAILED' | 'CONTENT_REJECTED' | 'GENERATION_FAILED' | 'BINDING_READ_ONLY' | 'OPERATION_NOT_SUPPORTED' | 'MODEL_PENDING' | 'REFERENCE_TYPE_MISMATCH' | 'CONSENT_REQUIRED' | 'LIBRARY_IS_DEFAULT' | 'JOB_INVALID_STATE' | 'VOICE_TRAINING' | 'INSUFFICIENT_BALANCE';
35429
35737
  /**
35430
35738
  * State of a requested generation output.
35431
35739
  */
@@ -35447,6 +35755,19 @@ export type MediaElementUse = {
35447
35755
  */
35448
35756
  material_type: MediaElementType;
35449
35757
  };
35758
+ /**
35759
+ * How two recordings line up, answered by a completed align job’s result.
35760
+ */
35761
+ export type MediaAlignResult = {
35762
+ /**
35763
+ * How many seconds later the reference asset starts, relative to the source asset the route named; positive means the reference comes later, so a caller holding both recordings knows which one to slide. It is the negation of the model’s own lag, decided once in the domain.
35764
+ */
35765
+ offset_seconds: number;
35766
+ /**
35767
+ * How sure the alignment is, from 0 to 1; a low value means the two recordings share little to correlate.
35768
+ */
35769
+ confidence: number;
35770
+ };
35450
35771
  /**
35451
35772
  * A recorded library event with a monotonically increasing sequence within that library.
35452
35773
  */
@@ -35962,6 +36283,62 @@ export type SandboxTemplateBuild = {
35962
36283
  diskSizeMB?: SandboxDiskSizeMb;
35963
36284
  envdVersion?: SandboxEnvdVersion;
35964
36285
  };
36286
+ /**
36287
+ * The object a share exposes, named by a type and an id.
36288
+ */
36289
+ export type ShareShareResource = {
36290
+ /**
36291
+ * What kind of object is shared; file, canvas and media_asset create today.
36292
+ */
36293
+ type: 'file' | 'artifact' | 'canvas' | 'media_asset';
36294
+ /**
36295
+ * Id of the object within its type. For a file, the id from the File API; for a canvas, the canvas id (cvs_...); for a media_asset, library_id/asset_id with a real library id (lib_...), never the default alias. An object that does not exist in this organization answers 404 RESOURCE_NOT_FOUND.
36296
+ */
36297
+ id: string;
36298
+ };
36299
+ /**
36300
+ * The link a share hands out.
36301
+ */
36302
+ export type ShareSharePermissionLink = {
36303
+ /**
36304
+ * What the link allows; view, which is read-only, is the only type.
36305
+ */
36306
+ type: 'view';
36307
+ /**
36308
+ * Who can open the link; anonymous, meaning anyone holding it, is the only scope.
36309
+ */
36310
+ scope: 'anonymous';
36311
+ /**
36312
+ * Whether the link asks viewers not to download; a limit, not a guarantee.
36313
+ */
36314
+ prevents_download: boolean;
36315
+ /**
36316
+ * The link address to give to people; present only in the creation response, since the service stores a hash of it and cannot show it again.
36317
+ */
36318
+ web_url?: string;
36319
+ };
36320
+ /**
36321
+ * The error envelope of every non-2xx response on this face.
36322
+ */
36323
+ export type ShareShareError = {
36324
+ /**
36325
+ * Failure details; choose a recovery action from the operation's status and code descriptions.
36326
+ */
36327
+ error: {
36328
+ /**
36329
+ * Machine-readable failure category such as INVALID_PARAMS or PERMISSION_NOT_FOUND; see the operation's error responses for what triggers each.
36330
+ */
36331
+ code: string;
36332
+ /**
36333
+ * Human-readable reason; it names the offending field or condition and the action to take.
36334
+ */
36335
+ message: string;
36336
+ /**
36337
+ * The request field or query parameter that caused the failure, or null when the failure concerns the request as a whole.
36338
+ */
36339
+ param?: string | null;
36340
+ };
36341
+ };
35965
36342
  /**
35966
36343
  * One genre as configuration: the names the seven layers take for this kind of writing, the properties a draft carries, and the checks the software can decide.
35967
36344
  */
@@ -41844,6 +42221,23 @@ export type DevopsFlagRule = {
41844
42221
  * What a caller is served: either one named variation, or a weighted split across several.
41845
42222
  */
41846
42223
  export type DevopsServe = DevopsServeVariation | DevopsServeRollout;
42224
+ /**
42225
+ * One place code names a flag key: the file, the line in it, and enough of that line to recognize the read.
42226
+ */
42227
+ export type DevopsFlagCodeRefsItem = {
42228
+ /**
42229
+ * Path of the file that reads the key, relative to the checkout root; it is what a later flag review opens to delete the reference.
42230
+ */
42231
+ path: string;
42232
+ /**
42233
+ * One-based line number in path at which the key is read.
42234
+ */
42235
+ line: number;
42236
+ /**
42237
+ * The trimmed text of that line, capped by the reporter, so a reviewer can tell which read this is without opening the file.
42238
+ */
42239
+ snippet: string;
42240
+ };
41847
42241
  /**
41848
42242
  * One condition on one context attribute, such as the region a caller is in belonging to a set.
41849
42243
  */
@@ -45587,6 +45981,10 @@ export type SandboxTemplateId = string;
45587
45981
  * Build identifier returned by templates.create. It must belong to the selected template in your organization.
45588
45982
  */
45589
45983
  export type SandboxBuildId = string;
45984
+ /**
45985
+ * Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted.
45986
+ */
45987
+ export type ShareShareId = string;
45590
45988
  /**
45591
45989
  * Genre key from the genre list, such as novel_long or xiaohongshu_note; pass the key exactly, never the display name.
45592
45990
  */
@@ -46905,6 +47303,86 @@ export type GetAgentConsolidationResponses = {
46905
47303
  };
46906
47304
  };
46907
47305
  export type GetAgentConsolidationResponse = GetAgentConsolidationResponses[keyof GetAgentConsolidationResponses];
47306
+ export type ListAgentInboxLettersData = {
47307
+ body?: never;
47308
+ path: {
47309
+ /**
47310
+ * The assume agent: its agent_… id, eight character identity number or handle, from agents.list or the praxis-assume MCP URL; resolved in your organization. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_….
47311
+ */
47312
+ agent_id: string;
47313
+ };
47314
+ query?: {
47315
+ /**
47316
+ * Only true is accepted, which is also the default; this read lists waiting (unread) letters and nothing else.
47317
+ */
47318
+ unread?: true;
47319
+ /**
47320
+ * How many of the newest unread letters to return, 1 to 50 (default 20); unread always counts every waiting letter.
47321
+ */
47322
+ limit?: number;
47323
+ };
47324
+ url: '/agent/v1/agents/{agent_id}/inbox/letters';
47325
+ };
47326
+ export type ListAgentInboxLettersErrors = {
47327
+ /**
47328
+ * INVALID_PARAMS: limit is outside 1 to 50 or a query parameter is unsupported; ASSUME_AGENT_REQUIRED: the agent is not an assume agent, which is woken for mail by itself.
47329
+ */
47330
+ 400: unknown;
47331
+ /**
47332
+ * Authenticate with your organization API key or a console session.
47333
+ */
47334
+ 401: unknown;
47335
+ /**
47336
+ * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
47337
+ */
47338
+ 403: AgentError;
47339
+ /**
47340
+ * AGENT_NOT_FOUND: no agent with this reference exists in your organization; list agents with agents.list.
47341
+ */
47342
+ 404: unknown;
47343
+ /**
47344
+ * UPSTREAM_UNAVAILABLE: the letters could not be read right now; retry later.
47345
+ */
47346
+ 502: unknown;
47347
+ };
47348
+ export type ListAgentInboxLettersError = ListAgentInboxLettersErrors[keyof ListAgentInboxLettersErrors];
47349
+ export type ListAgentInboxLettersResponses = {
47350
+ /**
47351
+ * The waiting mail: the full unread count and the newest unread letters. Nothing was marked read.
47352
+ */
47353
+ 200: {
47354
+ /**
47355
+ * How many delivered letters the agent has not read yet; can exceed the number of letters returned.
47356
+ */
47357
+ unread: number;
47358
+ /**
47359
+ * The newest unread letters, at most limit, newest first; empty when nothing waits.
47360
+ */
47361
+ letters: Array<{
47362
+ /**
47363
+ * Letter id (ltr_…); the same id the agent's inbox tool shows when it reads the letter, so a notice can name exactly which letters it announced.
47364
+ */
47365
+ id: string;
47366
+ /**
47367
+ * Sender address: human:<user id> for a person or agent:agent_<x> for an agent; a ticket mention carries the address of whoever mentioned the agent.
47368
+ */
47369
+ sender: string;
47370
+ /**
47371
+ * The sender's one-line summary of the letter; the body is not returned here and is read with the agent's inbox tool.
47372
+ */
47373
+ summary: string;
47374
+ /**
47375
+ * Thread the letter belongs to, such as ticket:<repository>:<number> for a ticket mention; null when the sender named none.
47376
+ */
47377
+ thread: string | null;
47378
+ /**
47379
+ * When the letter was written, RFC 3339; letters are ordered newest first.
47380
+ */
47381
+ create_time: string;
47382
+ }>;
47383
+ };
47384
+ };
47385
+ export type ListAgentInboxLettersResponse = ListAgentInboxLettersResponses[keyof ListAgentInboxLettersResponses];
46908
47386
  export type ApplyAgentVersionData = {
46909
47387
  body?: never;
46910
47388
  path: {
@@ -52429,19 +52907,19 @@ export type ComputersFilesContentResponses = {
52429
52907
  };
52430
52908
  export type ComputersFilesContentResponse = ComputersFilesContentResponses[keyof ComputersFilesContentResponses];
52431
52909
  export type ComputersFilesConvertData = {
52432
- body: {
52433
- /**
52434
- * Name of the entry or object.
52435
- */
52436
- name: string;
52437
- };
52910
+ body?: never;
52438
52911
  path: {
52439
52912
  /**
52440
52913
  * Computer id (cmp_...), as returned by computers.create or computers.list.
52441
52914
  */
52442
52915
  computer_id: string;
52443
52916
  };
52444
- query?: never;
52917
+ query: {
52918
+ /**
52919
+ * Absolute path of the document on the computer, for example /home/user/workspace/deck.pptx. The request has no body.
52920
+ */
52921
+ path: string;
52922
+ };
52445
52923
  url: '/agent/v1/computers/{computer_id}/files/convert';
52446
52924
  };
52447
52925
  export type ComputersFilesConvertErrors = {
@@ -52656,49 +53134,21 @@ export type ComputersFilesConvertErrors = {
52656
53134
  export type ComputersFilesConvertError = ComputersFilesConvertErrors[keyof ComputersFilesConvertErrors];
52657
53135
  export type ComputersFilesConvertResponses = {
52658
53136
  /**
52659
- * Computer result
53137
+ * The converted PDF as base64
52660
53138
  */
52661
53139
  200: {
52662
53140
  /**
52663
- * Always `computer`. A computer.
52664
- */
52665
- type: 'computer';
52666
- /**
52667
- * Computer id (cmp_...), the computer_id of computer calls.
52668
- */
52669
- id: string;
52670
- /**
52671
- * Display name of the computer, 1 to 255 characters.
52672
- */
52673
- name: string;
52674
- /**
52675
- * Public id of the sandbox that backs the computer, usable with the sandbox API; null while none has been created.
52676
- */
52677
- sandbox_id: string | null;
52678
- /**
52679
- * not_started means the machine has not been created; first use provisions it. provisioned means a machine has been created, whether running or paused.
52680
- */
52681
- machine_state: 'not_started' | 'provisioned';
52682
- /**
52683
- * Environment recipe the computer was created with; null when none.
52684
- */
52685
- environment_id: string | null;
52686
- /**
52687
- * active computers can be used by new sessions; archived ones keep their files readable but cannot start new sessions.
52688
- */
52689
- status: 'active' | 'archived';
52690
- /**
52691
- * RFC 3339 time at which the computer was created.
53141
+ * The converted PDF, base64-encoded. Decode it and write the bytes to a .pdf file.
52692
53142
  */
52693
- created_at: string;
53143
+ data: string;
52694
53144
  /**
52695
- * RFC 3339 time at which the computer was last modified.
53145
+ * Media type of the decoded bytes; always application/pdf.
52696
53146
  */
52697
- updated_at: string;
53147
+ mime: 'application/pdf';
52698
53148
  /**
52699
- * RFC 3339 time at which the computer was archived; null while active.
53149
+ * true when an earlier conversion of the same file content was reused.
52700
53150
  */
52701
- archived_at: string | null;
53151
+ cached: boolean;
52702
53152
  };
52703
53153
  };
52704
53154
  export type ComputersFilesConvertResponse = ComputersFilesConvertResponses[keyof ComputersFilesConvertResponses];
@@ -55504,6 +55954,289 @@ export type ForkSessionResponses = {
55504
55954
  };
55505
55955
  };
55506
55956
  export type ForkSessionResponse = ForkSessionResponses[keyof ForkSessionResponses];
55957
+ export type ListSessionArtifactsData = {
55958
+ body?: never;
55959
+ path: {
55960
+ /**
55961
+ * Session id from session creation or listing.
55962
+ */
55963
+ session_id: string;
55964
+ };
55965
+ query?: never;
55966
+ url: '/agent/v1/sessions/{session_id}/artifacts';
55967
+ };
55968
+ export type ListSessionArtifactsErrors = {
55969
+ /**
55970
+ * Invalid request: ttl_seconds outside 60 to 300, a negative part, or an unsupported field.
55971
+ */
55972
+ 400: unknown;
55973
+ /**
55974
+ * Authenticate with an organization credential or a customer access token.
55975
+ */
55976
+ 401: unknown;
55977
+ /**
55978
+ * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
55979
+ */
55980
+ 403: AgentError;
55981
+ /**
55982
+ * Session not found or not readable by this caller.
55983
+ */
55984
+ 404: unknown;
55985
+ /**
55986
+ * Agent service failed
55987
+ */
55988
+ 502: unknown;
55989
+ /**
55990
+ * Agent service unavailable
55991
+ */
55992
+ 503: unknown;
55993
+ };
55994
+ export type ListSessionArtifactsError = ListSessionArtifactsErrors[keyof ListSessionArtifactsErrors];
55995
+ export type ListSessionArtifactsResponses = {
55996
+ /**
55997
+ * Artifacts this session delivered
55998
+ */
55999
+ 200: {
56000
+ /**
56001
+ * Items of this page, in the order requested by the call.
56002
+ */
56003
+ data: Array<{
56004
+ /**
56005
+ * Object type, always artifact.
56006
+ */
56007
+ object: 'artifact';
56008
+ /**
56009
+ * Artifact id (art_...). Stays the same when the same path is delivered again.
56010
+ */
56011
+ id: string;
56012
+ /**
56013
+ * Id of the session.
56014
+ */
56015
+ session_id: string;
56016
+ /**
56017
+ * The run that produced this version; null when it cannot be told.
56018
+ */
56019
+ run_id: string | null;
56020
+ /**
56021
+ * Path of the file inside the session's outputs directory, such as report.pdf or charts/q3.png.
56022
+ */
56023
+ name: string;
56024
+ /**
56025
+ * 1 on first delivery; each later delivery of the same path with new content adds one.
56026
+ */
56027
+ version: number;
56028
+ /**
56029
+ * The files this artifact holds; the latest version's parts only.
56030
+ */
56031
+ parts: Array<{
56032
+ /**
56033
+ * Part type: a file the agent placed in the session's outputs directory.
56034
+ */
56035
+ kind: 'file';
56036
+ /**
56037
+ * The file object this part points at; read its bytes through content_url, not through this id.
56038
+ */
56039
+ file_id: string;
56040
+ /**
56041
+ * File name as stored, without the directory.
56042
+ */
56043
+ filename: string;
56044
+ /**
56045
+ * Media type of the file, decided from its extension.
56046
+ */
56047
+ mime_type: string;
56048
+ /**
56049
+ * Size of the file in bytes; the downloaded content has exactly this length.
56050
+ */
56051
+ bytes: number;
56052
+ } | {
56053
+ /**
56054
+ * Part type: a canvas or a media asset the agent's reply pointed at.
56055
+ */
56056
+ kind: 'object';
56057
+ /**
56058
+ * canvas is a design canvas, whose content_url is a snapshot picture of it; media_asset is an asset of a media library, whose content_url is its own bytes.
56059
+ */
56060
+ object_type: 'canvas' | 'media_asset';
56061
+ /**
56062
+ * The object's id: cvs_... for a canvas, <library_id>/<asset_id> for a media asset.
56063
+ */
56064
+ object_id: string;
56065
+ /**
56066
+ * The address in the reply that pointed at the object, verbatim; open the object with content_url, not with this address.
56067
+ */
56068
+ href: string;
56069
+ /**
56070
+ * What the reply called the object: the text of the link that carried the address, for a card to show. null when the address stood alone in the reply.
56071
+ */
56072
+ title: string | null;
56073
+ }>;
56074
+ /**
56075
+ * Link addresses from the reply text that point at this artifact, verbatim; render a link whose address equals one of these as this artifact.
56076
+ */
56077
+ source_hrefs: Array<string>;
56078
+ /**
56079
+ * When the artifact was first registered, RFC 3339; set by the service.
56080
+ */
56081
+ create_time: string;
56082
+ /**
56083
+ * When the latest version was registered, RFC 3339; equals create_time for version 1.
56084
+ */
56085
+ update_time: string;
56086
+ }>;
56087
+ };
56088
+ };
56089
+ export type ListSessionArtifactsResponse = ListSessionArtifactsResponses[keyof ListSessionArtifactsResponses];
56090
+ export type CreateSessionArtifactContentUrlData = {
56091
+ body?: {
56092
+ /**
56093
+ * Index into the artifact's parts; defaults to 0.
56094
+ */
56095
+ part?: number;
56096
+ /**
56097
+ * How long the address works, 60 to 300 seconds; defaults to 300.
56098
+ */
56099
+ ttl_seconds?: number;
56100
+ };
56101
+ path: {
56102
+ /**
56103
+ * Session id from session creation or listing.
56104
+ */
56105
+ session_id: string;
56106
+ /**
56107
+ * Artifact id (art_...) from the artifact list or an agent.artifact_delivered event.
56108
+ */
56109
+ artifact_id: string;
56110
+ };
56111
+ query?: never;
56112
+ url: '/agent/v1/sessions/{session_id}/artifacts/{artifact_id}/content_url';
56113
+ };
56114
+ export type CreateSessionArtifactContentUrlErrors = {
56115
+ /**
56116
+ * Invalid request: ttl_seconds outside 60 to 300, a negative part, or an unsupported field.
56117
+ */
56118
+ 400: unknown;
56119
+ /**
56120
+ * Authenticate with an organization credential or a customer access token.
56121
+ */
56122
+ 401: unknown;
56123
+ /**
56124
+ * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
56125
+ */
56126
+ 403: AgentError;
56127
+ /**
56128
+ * Session not found or not readable by this caller, or ARTIFACT_NOT_FOUND: no such artifact or part.
56129
+ */
56130
+ 404: unknown;
56131
+ /**
56132
+ * Agent service failed
56133
+ */
56134
+ 502: unknown;
56135
+ /**
56136
+ * Agent service unavailable
56137
+ */
56138
+ 503: unknown;
56139
+ };
56140
+ export type CreateSessionArtifactContentUrlError = CreateSessionArtifactContentUrlErrors[keyof CreateSessionArtifactContentUrlErrors];
56141
+ export type CreateSessionArtifactContentUrlResponses = {
56142
+ /**
56143
+ * Short-lived download address
56144
+ */
56145
+ 200: {
56146
+ /**
56147
+ * Signed download address; fetch it within the lifetime and do not store it.
56148
+ */
56149
+ url: string;
56150
+ /**
56151
+ * When the address stops working, RFC 3339; at most 300 seconds after it was issued.
56152
+ */
56153
+ expire_time: string;
56154
+ };
56155
+ };
56156
+ export type CreateSessionArtifactContentUrlResponse = CreateSessionArtifactContentUrlResponses[keyof CreateSessionArtifactContentUrlResponses];
56157
+ export type ListSessionRequestsData = {
56158
+ body?: never;
56159
+ path: {
56160
+ /**
56161
+ * Session id from session creation or listing.
56162
+ */
56163
+ session_id: string;
56164
+ };
56165
+ query?: never;
56166
+ url: '/agent/v1/sessions/{session_id}/requests';
56167
+ };
56168
+ export type ListSessionRequestsErrors = {
56169
+ /**
56170
+ * Unsupported query parameter.
56171
+ */
56172
+ 400: unknown;
56173
+ /**
56174
+ * Authenticate with an organization credential or a customer access token.
56175
+ */
56176
+ 401: unknown;
56177
+ /**
56178
+ * permission_error: the credential's role or bound resources do not allow this operation. Use a key with access to the agent domain and its resources.
56179
+ */
56180
+ 403: AgentError;
56181
+ /**
56182
+ * Session not found or not readable by this caller.
56183
+ */
56184
+ 404: unknown;
56185
+ /**
56186
+ * Agent service failed
56187
+ */
56188
+ 502: unknown;
56189
+ /**
56190
+ * Agent service unavailable
56191
+ */
56192
+ 503: unknown;
56193
+ };
56194
+ export type ListSessionRequestsError = ListSessionRequestsErrors[keyof ListSessionRequestsErrors];
56195
+ export type ListSessionRequestsResponses = {
56196
+ /**
56197
+ * The requests this session waits on
56198
+ */
56199
+ 200: {
56200
+ /**
56201
+ * The requests the session waits on, oldest first; empty when it waits on nothing.
56202
+ */
56203
+ data: Array<{
56204
+ /**
56205
+ * The pending tool call's id (the tool_use id on the agent.tool_use event); answer it with a user.tool_confirmation event carrying this id as tool_use_id.
56206
+ */
56207
+ id: string;
56208
+ /**
56209
+ * Object type, always request.
56210
+ */
56211
+ object: 'request';
56212
+ /**
56213
+ * question when the agent asked through the ask_user_question tool and waits for an answer; approval when any other tool waits for permission.
56214
+ */
56215
+ kind: 'question' | 'approval';
56216
+ /**
56217
+ * Always pending: answered, expired and superseded requests are not listed.
56218
+ */
56219
+ status: 'pending';
56220
+ /**
56221
+ * The tool the agent called, such as ask_user_question or bash.
56222
+ */
56223
+ tool_name: string;
56224
+ /**
56225
+ * The tool call's input exactly as the agent.tool_use event shows it: for a question the questions and their options, for an approval the tool's arguments.
56226
+ */
56227
+ input: unknown;
56228
+ /**
56229
+ * When the call became pending, RFC 3339; the time of its agent.tool_use event.
56230
+ */
56231
+ create_time: string;
56232
+ /**
56233
+ * When the request expires and counts as declined, RFC 3339; null when it does not expire, which is every session that runs a collaboration mode and every session while the requests-v1 release is off.
56234
+ */
56235
+ expire_time: string | null;
56236
+ }>;
56237
+ };
56238
+ };
56239
+ export type ListSessionRequestsResponse = ListSessionRequestsResponses[keyof ListSessionRequestsResponses];
55507
56240
  export type ListSessionBackgroundTasksData = {
55508
56241
  body?: never;
55509
56242
  path: {
@@ -58717,7 +59450,7 @@ export type ListModelsData = {
58717
59450
  /**
58718
59451
  * Match any comma-separated declared protocol ID; omitted or empty includes all models. Combined with type and output_modalities using AND. Invalid IDs return 400 with all legal values.
58719
59452
  */
58720
- supported_api?: Array<'anthropic.messages' | 'cohere.rerank' | 'google.generateContent' | 'mistral.ocr' | 'openai.audio.speech' | 'openai.audio.transcriptions' | 'openai.chat.completions' | 'openai.embeddings' | 'openai.images.edits' | 'openai.images.generations' | 'openai.responses' | 'openai.videos' | 'typesafe.systemone' | 'volcengine.music' | 'volcengine.vod.matting' | 'volcengine.voice_clone'>;
59453
+ supported_api?: Array<'anthropic.messages' | 'cohere.rerank' | 'google.generateContent' | 'mistral.ocr' | 'openai.audio.speech' | 'openai.audio.transcriptions' | 'openai.chat.completions' | 'openai.embeddings' | 'openai.images.edits' | 'openai.images.generations' | 'openai.responses' | 'openai.videos' | 'praxis.media.process' | 'praxis.video.matting' | 'typesafe.systemone' | 'volcengine.music' | 'volcengine.vod.matting' | 'volcengine.voice_clone'>;
58721
59454
  /**
58722
59455
  * Filter by one or more model types (comma-separated).
58723
59456
  */
@@ -58808,6 +59541,10 @@ export type ListModelsResponses = {
58808
59541
  * Capability tags of the model such as `tools`, `vision` or `reasoning`; use them to filter for features.
58809
59542
  */
58810
59543
  tags: Array<string>;
59544
+ /**
59545
+ * Praxis extension (ADR-136): true when this model must be enabled for the organization before any inference call (PUT /model/v1/models/{model}/access). Always present, false for the open catalogue.
59546
+ */
59547
+ access_required: boolean;
58811
59548
  /**
58812
59549
  * Native modalities of the model.
58813
59550
  */
@@ -59001,6 +59738,10 @@ export type RetrieveModelResponses = {
59001
59738
  * Capability tags of the model such as `tools`, `vision` or `reasoning`; use them to filter for features.
59002
59739
  */
59003
59740
  tags: Array<string>;
59741
+ /**
59742
+ * Praxis extension (ADR-136): true when this model must be enabled for the organization before any inference call (PUT /model/v1/models/{model}/access). Always present, false for the open catalogue.
59743
+ */
59744
+ access_required: boolean;
59004
59745
  /**
59005
59746
  * Native modalities of the model.
59006
59747
  */
@@ -60704,6 +61445,236 @@ export type CreateChatCompletionResponses = {
60704
61445
  };
60705
61446
  };
60706
61447
  export type CreateChatCompletionResponse = CreateChatCompletionResponses[keyof CreateChatCompletionResponses];
61448
+ export type DisableModelAccessData = {
61449
+ body?: never;
61450
+ path: {
61451
+ /**
61452
+ * Model ID the organization no longer wants enabled; same ids as enableModelAccess.
61453
+ */
61454
+ model: string;
61455
+ };
61456
+ query?: never;
61457
+ url: '/model/v1/models/{model}/access';
61458
+ };
61459
+ export type DisableModelAccessErrors = {
61460
+ /**
61461
+ * Missing or empty model id; pass the model on the path.
61462
+ */
61463
+ 400: {
61464
+ type: string;
61465
+ title: string;
61466
+ status: number;
61467
+ detail: string;
61468
+ [key: string]: unknown;
61469
+ };
61470
+ /**
61471
+ * Missing or invalid API credentials; supply a valid platform API key in Authorization: Bearer.
61472
+ */
61473
+ 401: {
61474
+ type: string;
61475
+ title: string;
61476
+ status: number;
61477
+ detail: string;
61478
+ [key: string]: unknown;
61479
+ };
61480
+ /**
61481
+ * MODEL_NOT_FOUND: no catalog model carries this id; take the id from praxis.model.models.list.
61482
+ */
61483
+ 404: {
61484
+ type: string;
61485
+ title: string;
61486
+ status: number;
61487
+ detail: string;
61488
+ [key: string]: unknown;
61489
+ };
61490
+ /**
61491
+ * Canonical problem
61492
+ */
61493
+ default: {
61494
+ type: string;
61495
+ title: string;
61496
+ status: number;
61497
+ detail: string;
61498
+ [key: string]: unknown;
61499
+ };
61500
+ };
61501
+ export type DisableModelAccessError = DisableModelAccessErrors[keyof DisableModelAccessErrors];
61502
+ export type DisableModelAccessResponses = {
61503
+ /**
61504
+ * The model is not enabled for this organization
61505
+ */
61506
+ 200: {
61507
+ /**
61508
+ * The model id exactly as the caller passed it.
61509
+ */
61510
+ model: string;
61511
+ /**
61512
+ * Always true; the grant no longer exists for this organization, whether or not one did before.
61513
+ */
61514
+ revoked: true;
61515
+ };
61516
+ };
61517
+ export type DisableModelAccessResponse = DisableModelAccessResponses[keyof DisableModelAccessResponses];
61518
+ export type EnableModelAccessData = {
61519
+ body?: never;
61520
+ path: {
61521
+ /**
61522
+ * Model ID as the catalog lists it, including any creator prefix; primary ids, aliases and prefixed ids resolve the same way a chat call resolves them.
61523
+ */
61524
+ model: string;
61525
+ };
61526
+ query?: never;
61527
+ url: '/model/v1/models/{model}/access';
61528
+ };
61529
+ export type EnableModelAccessErrors = {
61530
+ /**
61531
+ * Missing or empty model id; pass the model on the path.
61532
+ */
61533
+ 400: {
61534
+ type: string;
61535
+ title: string;
61536
+ status: number;
61537
+ detail: string;
61538
+ [key: string]: unknown;
61539
+ };
61540
+ /**
61541
+ * Missing or invalid API credentials; supply a valid platform API key in Authorization: Bearer.
61542
+ */
61543
+ 401: {
61544
+ type: string;
61545
+ title: string;
61546
+ status: number;
61547
+ detail: string;
61548
+ [key: string]: unknown;
61549
+ };
61550
+ /**
61551
+ * MODEL_NOT_FOUND: no catalog model carries this id; take the id from praxis.model.models.list or from the refusal message.
61552
+ */
61553
+ 404: {
61554
+ type: string;
61555
+ title: string;
61556
+ status: number;
61557
+ detail: string;
61558
+ [key: string]: unknown;
61559
+ };
61560
+ /**
61561
+ * Canonical problem
61562
+ */
61563
+ default: {
61564
+ type: string;
61565
+ title: string;
61566
+ status: number;
61567
+ detail: string;
61568
+ [key: string]: unknown;
61569
+ };
61570
+ };
61571
+ export type EnableModelAccessError = EnableModelAccessErrors[keyof EnableModelAccessErrors];
61572
+ export type EnableModelAccessResponses = {
61573
+ /**
61574
+ * The grant now in effect for this organization; unchanged when it already existed
61575
+ */
61576
+ 200: {
61577
+ /**
61578
+ * The model id exactly as the caller passed it.
61579
+ */
61580
+ model: string;
61581
+ /**
61582
+ * Whether the catalog marks this model as needing access; false when the caller enabled an open model.
61583
+ */
61584
+ access_required: boolean;
61585
+ /**
61586
+ * Always true on this response: after the call the organization has the grant.
61587
+ */
61588
+ granted: true;
61589
+ /**
61590
+ * User who first enabled it, or "api-key" for an API key with no user identity.
61591
+ */
61592
+ granted_by: string;
61593
+ /**
61594
+ * RFC 3339 timestamp of the first enable; a repeated enable does not move it.
61595
+ */
61596
+ granted_at: string;
61597
+ /**
61598
+ * Sell price in USD per million input tokens, snapped when the grant was first created; null when the model has no input price.
61599
+ */
61600
+ sell_input_price: number | null;
61601
+ /**
61602
+ * Sell price in USD per million output tokens, snapped when the grant was first created; null when the model has no output price.
61603
+ */
61604
+ sell_output_price: number | null;
61605
+ };
61606
+ };
61607
+ export type EnableModelAccessResponse = EnableModelAccessResponses[keyof EnableModelAccessResponses];
61608
+ export type ListModelAccessData = {
61609
+ body?: never;
61610
+ path?: never;
61611
+ query?: never;
61612
+ url: '/model/v1/model-access';
61613
+ };
61614
+ export type ListModelAccessErrors = {
61615
+ /**
61616
+ * Missing or invalid API credentials; supply a valid platform API key in Authorization: Bearer.
61617
+ */
61618
+ 401: {
61619
+ type: string;
61620
+ title: string;
61621
+ status: number;
61622
+ detail: string;
61623
+ [key: string]: unknown;
61624
+ };
61625
+ /**
61626
+ * Canonical problem
61627
+ */
61628
+ default: {
61629
+ type: string;
61630
+ title: string;
61631
+ status: number;
61632
+ detail: string;
61633
+ [key: string]: unknown;
61634
+ };
61635
+ };
61636
+ export type ListModelAccessError = ListModelAccessErrors[keyof ListModelAccessErrors];
61637
+ export type ListModelAccessResponses = {
61638
+ /**
61639
+ * Marked models and this organization's grants, one item per model
61640
+ */
61641
+ 200: {
61642
+ /**
61643
+ * One entry per model: every model the catalogue marks access_required (granted or not) plus every other model this organization has enabled.
61644
+ */
61645
+ items: Array<{
61646
+ /**
61647
+ * Model id to pass when enabling or disabling; the catalog id, including any creator prefix.
61648
+ */
61649
+ model: string;
61650
+ /**
61651
+ * True when the catalog requires this model to be enabled before any call.
61652
+ */
61653
+ access_required: boolean;
61654
+ /**
61655
+ * True when this organization already has a grant for this model.
61656
+ */
61657
+ granted: boolean;
61658
+ /**
61659
+ * Who enabled it, or null when this organization has no grant.
61660
+ */
61661
+ granted_by: string | null;
61662
+ /**
61663
+ * RFC 3339 timestamp of the enable, or null when there is no grant.
61664
+ */
61665
+ granted_at: string | null;
61666
+ /**
61667
+ * Current sell price in USD per million input tokens; null when unpriced. This is the next call's price, not the grant snapshot.
61668
+ */
61669
+ sell_input_price: number | null;
61670
+ /**
61671
+ * Current sell price in USD per million output tokens; null when unpriced.
61672
+ */
61673
+ sell_output_price: number | null;
61674
+ }>;
61675
+ };
61676
+ };
61677
+ export type ListModelAccessResponse = ListModelAccessResponses[keyof ListModelAccessResponses];
60707
61678
  export type GetGenerationData = {
60708
61679
  body?: never;
60709
61680
  path?: never;
@@ -89645,6 +90616,47 @@ export type DevopsFlagsCreateResponses = {
89645
90616
  200: DevopsFlag;
89646
90617
  };
89647
90618
  export type DevopsFlagsCreateResponse = DevopsFlagsCreateResponses[keyof DevopsFlagsCreateResponses];
90619
+ export type DevopsFlagsReportCodeRefsData = {
90620
+ body: DevopsFlagCodeRefsReport;
90621
+ path: {
90622
+ /**
90623
+ * Identifies the project whose data you are reading, from the project list or create answer.
90624
+ */
90625
+ project: string;
90626
+ };
90627
+ query?: never;
90628
+ url: '/devops/v1/projects/{project}/flags/code-refs';
90629
+ };
90630
+ export type DevopsFlagsReportCodeRefsErrors = {
90631
+ /**
90632
+ * INVALID_PARAMS or INVALID_ARGUMENT means a field, query value or identifier violates the documented format or range — an unknown enum value, a pageSize outside 1..100, an unsupported filter or orderBy field, or an id with the wrong prefix. Correct the named input; nothing was read or written.
90633
+ */
90634
+ 400: DevopsDevOpsError;
90635
+ /**
90636
+ * The API key is missing or invalid; send a valid Praxis API key in the Authorization header before retrying.
90637
+ */
90638
+ 401: DevopsDevOpsError;
90639
+ /**
90640
+ * The credential carries no organization, or that organization cannot reach this project; use a key belonging to the project's organization. No cross-organization read is possible.
90641
+ */
90642
+ 403: DevopsDevOpsError;
90643
+ /**
90644
+ * PROJECT_NOT_FOUND means no project with that id is visible to this organization; list the projects and use an id from that answer.
90645
+ */
90646
+ 404: DevopsDevOpsError;
90647
+ /**
90648
+ * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
90649
+ */
90650
+ 500: DevopsDevOpsError;
90651
+ };
90652
+ export type DevopsFlagsReportCodeRefsError = DevopsFlagsReportCodeRefsErrors[keyof DevopsFlagsReportCodeRefsErrors];
90653
+ export type DevopsFlagsReportCodeRefsResponses = {
90654
+ /**
90655
+ * How many flags this call wrote (updated), and the reported keys that match no live flag of the project (unknownKeys).
90656
+ */
90657
+ 200: DevopsFlagCodeRefsReportResult;
90658
+ };
90659
+ export type DevopsFlagsReportCodeRefsResponse = DevopsFlagsReportCodeRefsResponses[keyof DevopsFlagsReportCodeRefsResponses];
89648
90660
  export type DevopsFlagsGetData = {
89649
90661
  body?: never;
89650
90662
  path: {
@@ -89837,6 +90849,10 @@ export type DevopsFlagsArchiveErrors = {
89837
90849
  * FLAG_NOT_FOUND means no flag with that id exists in this organization; list the project's flags and use an id from that answer. An archived flag is still readable by id — it is the list that hides it.
89838
90850
  */
89839
90851
  404: DevopsDevOpsError;
90852
+ /**
90853
+ * FLAG_STILL_REFERENCED means the stored code-ref scan still finds the key (codeRefs.count above zero): the message names the count, the scanned commit and up to five path:line references; delete the code that names the key, deploy it, rerun `praxis devops flag refs --report --project <id>` and retry. FLAG_HAS_LIVE_RULES means no reference remains but the flag is on in one or more environments: the message lists those environment ids; turn the flag off in each with the environment update and retry. Nothing was archived in either case.
90854
+ */
90855
+ 409: DevopsDevOpsError;
89840
90856
  /**
89841
90857
  * INTERNAL means the service could not complete the request; retry once, and if it repeats report the request id. A read is safe to repeat; a write that failed this way should be re-read before it is sent again.
89842
90858
  */
@@ -91660,7 +92676,7 @@ export type DevopsUnitsPushErrors = {
91660
92676
  */
91661
92677
  404: DevopsDevOpsError;
91662
92678
  /**
91663
- * HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed; fetch the unit, reconcile your checkout and send the new head. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
92679
+ * HEAD_MOVED means the change's branch on the remote is no longer the expectedHead that was sent — someone pushed to it since — so nothing was pushed; fetch the unit, reconcile your checkout and send the new head. PUSH_REJECTED_BY_HOOK means the machine's git ran a pre-push hook (lefthook, for example) and the hook refused: details.detail holds the hook's output and details.exitCode git's exit code; fix what the hook names, commit, and push again. PUSH_REJECTED_NON_FAST_FORWARD means the remote branch has commits your checkout lacks; fetch, reconcile and push again. UNIT_INVALID_STATE means the unit is not available (no machine or no checkout yet, or another transition is in flight), so there is nothing to push; read the unit's phase and retry once it has settled.
91664
92680
  */
91665
92681
  409: DevopsDevOpsError;
91666
92682
  /**
@@ -96167,7 +97183,7 @@ export type MediaEditAssetData = {
96167
97183
  };
96168
97184
  export type MediaEditAssetErrors = {
96169
97185
  /**
96170
- * OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and a video remove_background with no matting model published is likewise refused with the model field named. REFERENCE_TYPE_MISMATCH: the source asset or a referenced asset has a material type the chosen model cannot edit, or the edit’s mask is not a PNG file identifier; INVALID_PARAMS: the operation is missing a field it requires, is given an output or model on an image source, or names a matting model the capabilities do not offer. Select a supported operation and correct the reported field.
97186
+ * OPERATION_NOT_SUPPORTED: the requested operation type is not performed on this asset type in this release — image edits support variations, inpaint, erase, replace_object, recolor and replace_background, video and image remove_background are supported, and upscale, enhance_voice, reframe and redact run through Media’s processing lane (upscale on a picture or a video, enhance_voice on a recording or a video’s audio, reframe and redact on a video). An operation whose model list is empty — matting included — is refused with the model field named. REFERENCE_TYPE_MISMATCH: the source asset or a referenced asset has a material type the chosen model cannot edit, or the edit’s mask is not a PNG file identifier; INVALID_PARAMS: the operation is missing a field it requires, names an enum value outside the accepted set, is given an output or model on an image source, or names a matting model the capabilities do not offer. Select a supported operation and correct the reported field.
96171
97187
  */
96172
97188
  400: MediaMediaError;
96173
97189
  /**
@@ -96724,186 +97740,281 @@ export type MediaListUnderstandingsByLibraryErrors = {
96724
97740
  */
96725
97741
  503: MediaMediaError;
96726
97742
  };
96727
- export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
96728
- export type MediaListUnderstandingsByLibraryResponses = {
97743
+ export type MediaListUnderstandingsByLibraryError = MediaListUnderstandingsByLibraryErrors[keyof MediaListUnderstandingsByLibraryErrors];
97744
+ export type MediaListUnderstandingsByLibraryResponses = {
97745
+ /**
97746
+ * Successful response.
97747
+ */
97748
+ 200: MediaUnderstandingPage;
97749
+ };
97750
+ export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
97751
+ export type MediaListJobsData = {
97752
+ body?: never;
97753
+ path: {
97754
+ /**
97755
+ * Library ID returned by creation.
97756
+ */
97757
+ library_id: string;
97758
+ };
97759
+ query?: {
97760
+ /**
97761
+ * Filter jobs by their current status.
97762
+ */
97763
+ status?: MediaJobStatus;
97764
+ /**
97765
+ * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
97766
+ */
97767
+ pipeline_run_id?: string;
97768
+ /**
97769
+ * Maximum entries in this page, from 1 through 100; defaults to 100.
97770
+ */
97771
+ limit?: number;
97772
+ /**
97773
+ * Job id from the previous page’s next_cursor; omit for the first page.
97774
+ */
97775
+ cursor?: MediaJobId;
97776
+ };
97777
+ url: '/media/v1/libraries/{library_id}/jobs';
97778
+ };
97779
+ export type MediaListJobsErrors = {
97780
+ /**
97781
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
97782
+ */
97783
+ 400: MediaMediaError;
97784
+ /**
97785
+ * Request failed; see the error code reference.
97786
+ */
97787
+ 402: MediaMediaError;
97788
+ /**
97789
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
97790
+ */
97791
+ 403: MediaMediaError;
97792
+ /**
97793
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
97794
+ */
97795
+ 404: MediaMediaError;
97796
+ /**
97797
+ * Request failed; see the error code reference.
97798
+ */
97799
+ 409: MediaMediaError;
97800
+ /**
97801
+ * The file exceeds an input limit; provide a smaller source file.
97802
+ */
97803
+ 413: MediaMediaError;
97804
+ /**
97805
+ * This media format is unsupported; provide a supported format.
97806
+ */
97807
+ 415: MediaMediaError;
97808
+ /**
97809
+ * Request failed; see the error code reference.
97810
+ */
97811
+ 422: MediaMediaError;
97812
+ /**
97813
+ * A rate limit was reached; wait before retrying.
97814
+ */
97815
+ 429: MediaMediaError;
97816
+ /**
97817
+ * The requested operation is unsupported; choose a supported method.
97818
+ */
97819
+ 501: MediaMediaError;
97820
+ /**
97821
+ * Request failed; see the error code reference.
97822
+ */
97823
+ 502: MediaMediaError;
97824
+ /**
97825
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
97826
+ */
97827
+ 503: MediaMediaError;
97828
+ };
97829
+ export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
97830
+ export type MediaListJobsResponses = {
97831
+ /**
97832
+ * Successful response.
97833
+ */
97834
+ 200: MediaJobPage;
97835
+ };
97836
+ export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
97837
+ export type MediaCancelJobData = {
97838
+ body?: never;
97839
+ path: {
97840
+ /**
97841
+ * Library ID returned by creation.
97842
+ */
97843
+ library_id: string;
97844
+ /**
97845
+ * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
97846
+ */
97847
+ job_id: string;
97848
+ };
97849
+ query?: never;
97850
+ url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
97851
+ };
97852
+ export type MediaCancelJobErrors = {
97853
+ /**
97854
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
97855
+ */
97856
+ 400: MediaMediaError;
97857
+ /**
97858
+ * Request failed; see the error code reference.
97859
+ */
97860
+ 402: MediaMediaError;
97861
+ /**
97862
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
97863
+ */
97864
+ 403: MediaMediaError;
97865
+ /**
97866
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
97867
+ */
97868
+ 404: MediaMediaError;
97869
+ /**
97870
+ * Request failed; see the error code reference.
97871
+ */
97872
+ 409: MediaMediaError;
97873
+ /**
97874
+ * The file exceeds an input limit; provide a smaller source file.
97875
+ */
97876
+ 413: MediaMediaError;
97877
+ /**
97878
+ * This media format is unsupported; provide a supported format.
97879
+ */
97880
+ 415: MediaMediaError;
97881
+ /**
97882
+ * Request failed; see the error code reference.
97883
+ */
97884
+ 422: MediaMediaError;
97885
+ /**
97886
+ * A rate limit was reached; wait before retrying.
97887
+ */
97888
+ 429: MediaMediaError;
97889
+ /**
97890
+ * The requested operation is unsupported; choose a supported method.
97891
+ */
97892
+ 501: MediaMediaError;
97893
+ /**
97894
+ * Request failed; see the error code reference.
97895
+ */
97896
+ 502: MediaMediaError;
97897
+ /**
97898
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
97899
+ */
97900
+ 503: MediaMediaError;
97901
+ };
97902
+ export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
97903
+ export type MediaCancelJobResponses = {
97904
+ /**
97905
+ * Successful response.
97906
+ */
97907
+ 200: MediaJob;
97908
+ };
97909
+ export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
97910
+ export type MediaGetGenerationCapabilitiesData = {
97911
+ body?: never;
97912
+ path?: never;
97913
+ query?: never;
97914
+ url: '/media/v1/generation/capabilities';
97915
+ };
97916
+ export type MediaGetGenerationCapabilitiesErrors = {
97917
+ /**
97918
+ * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
97919
+ */
97920
+ 400: MediaMediaError;
97921
+ /**
97922
+ * Request failed; see the error code reference.
97923
+ */
97924
+ 402: MediaMediaError;
97925
+ /**
97926
+ * This credential has read-only access to the library; use a write-capable binding for mutations.
97927
+ */
97928
+ 403: MediaMediaError;
97929
+ /**
97930
+ * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
97931
+ */
97932
+ 404: MediaMediaError;
97933
+ /**
97934
+ * Request failed; see the error code reference.
97935
+ */
97936
+ 409: MediaMediaError;
97937
+ /**
97938
+ * The file exceeds an input limit; provide a smaller source file.
97939
+ */
97940
+ 413: MediaMediaError;
97941
+ /**
97942
+ * This media format is unsupported; provide a supported format.
97943
+ */
97944
+ 415: MediaMediaError;
97945
+ /**
97946
+ * Request failed; see the error code reference.
97947
+ */
97948
+ 422: MediaMediaError;
97949
+ /**
97950
+ * A rate limit was reached; wait before retrying.
97951
+ */
97952
+ 429: MediaMediaError;
97953
+ /**
97954
+ * The requested operation is unsupported; choose a supported method.
97955
+ */
97956
+ 501: MediaMediaError;
97957
+ /**
97958
+ * Request failed; see the error code reference.
97959
+ */
97960
+ 502: MediaMediaError;
97961
+ /**
97962
+ * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
97963
+ */
97964
+ 503: MediaMediaError;
97965
+ };
97966
+ export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
97967
+ export type MediaGetGenerationCapabilitiesResponses = {
96729
97968
  /**
96730
97969
  * Successful response.
96731
97970
  */
96732
- 200: MediaUnderstandingPage;
97971
+ 200: MediaGenerationCapabilities;
96733
97972
  };
96734
- export type MediaListUnderstandingsByLibraryResponse = MediaListUnderstandingsByLibraryResponses[keyof MediaListUnderstandingsByLibraryResponses];
96735
- export type MediaListJobsData = {
96736
- body?: never;
96737
- path: {
96738
- /**
96739
- * Library ID returned by creation.
96740
- */
96741
- library_id: string;
96742
- };
96743
- query?: {
97973
+ export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
97974
+ export type MediaAlignAssetData = {
97975
+ /**
97976
+ * Align two recordings by their sound. The route names the source asset; this body names the reference to align against it. The result is an analysis, not a new asset: nothing is stored, the source is never changed, and the completed job carries the answer in result.
97977
+ */
97978
+ body: {
96744
97979
  /**
96745
- * Filter jobs by their current status.
97980
+ * Asset to align against the one the route names. It must be an audio or video asset of the same library, otherwise the request is refused with REFERENCE_TYPE_MISMATCH before a job exists.
96746
97981
  */
96747
- status?: MediaJobStatus;
97982
+ reference_asset_id: string;
96748
97983
  /**
96749
- * Return only the jobs started by this automation run (its root run), so one pipeline run reads as one batch.
97984
+ * Largest offset to search for, in seconds; omit it to let the model search its full range. Zero and negative values are refused with INVALID_PARAMS.
96750
97985
  */
96751
- pipeline_run_id?: string;
97986
+ max_offset_seconds?: number;
96752
97987
  /**
96753
- * Maximum entries in this page, from 1 through 100; defaults to 100.
97988
+ * Stable key so a retried request reuses the same job instead of analysing and charging again; reusing it with different content is rejected.
96754
97989
  */
96755
- limit?: number;
97990
+ idempotency_key?: string;
97991
+ };
97992
+ headers?: {
96756
97993
  /**
96757
- * Job id from the previous page’s next_cursor; omit for the first page.
97994
+ * Stable key for retrying the same request without creating or charging for another job; reusing it with different request content is rejected. Send it here or as idempotency_key in the body, never both with different values.
96758
97995
  */
96759
- cursor?: MediaJobId;
97996
+ 'Idempotency-Key'?: string;
96760
97997
  };
96761
- url: '/media/v1/libraries/{library_id}/jobs';
96762
- };
96763
- export type MediaListJobsErrors = {
96764
- /**
96765
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
96766
- */
96767
- 400: MediaMediaError;
96768
- /**
96769
- * Request failed; see the error code reference.
96770
- */
96771
- 402: MediaMediaError;
96772
- /**
96773
- * This credential has read-only access to the library; use a write-capable binding for mutations.
96774
- */
96775
- 403: MediaMediaError;
96776
- /**
96777
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
96778
- */
96779
- 404: MediaMediaError;
96780
- /**
96781
- * Request failed; see the error code reference.
96782
- */
96783
- 409: MediaMediaError;
96784
- /**
96785
- * The file exceeds an input limit; provide a smaller source file.
96786
- */
96787
- 413: MediaMediaError;
96788
- /**
96789
- * This media format is unsupported; provide a supported format.
96790
- */
96791
- 415: MediaMediaError;
96792
- /**
96793
- * Request failed; see the error code reference.
96794
- */
96795
- 422: MediaMediaError;
96796
- /**
96797
- * A rate limit was reached; wait before retrying.
96798
- */
96799
- 429: MediaMediaError;
96800
- /**
96801
- * The requested operation is unsupported; choose a supported method.
96802
- */
96803
- 501: MediaMediaError;
96804
- /**
96805
- * Request failed; see the error code reference.
96806
- */
96807
- 502: MediaMediaError;
96808
- /**
96809
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
96810
- */
96811
- 503: MediaMediaError;
96812
- };
96813
- export type MediaListJobsError = MediaListJobsErrors[keyof MediaListJobsErrors];
96814
- export type MediaListJobsResponses = {
96815
- /**
96816
- * Successful response.
96817
- */
96818
- 200: MediaJobPage;
96819
- };
96820
- export type MediaListJobsResponse = MediaListJobsResponses[keyof MediaListJobsResponses];
96821
- export type MediaCancelJobData = {
96822
- body?: never;
96823
97998
  path: {
96824
97999
  /**
96825
98000
  * Library ID returned by creation.
96826
98001
  */
96827
98002
  library_id: string;
96828
98003
  /**
96829
- * Job identifier returned by batch or generation creation; the job is resolved within the specified library.
98004
+ * 32-character asset ID.
96830
98005
  */
96831
- job_id: string;
98006
+ asset_id: string;
96832
98007
  };
96833
98008
  query?: never;
96834
- url: '/media/v1/libraries/{library_id}/jobs/{job_id}/cancel';
96835
- };
96836
- export type MediaCancelJobErrors = {
96837
- /**
96838
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
96839
- */
96840
- 400: MediaMediaError;
96841
- /**
96842
- * Request failed; see the error code reference.
96843
- */
96844
- 402: MediaMediaError;
96845
- /**
96846
- * This credential has read-only access to the library; use a write-capable binding for mutations.
96847
- */
96848
- 403: MediaMediaError;
96849
- /**
96850
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
96851
- */
96852
- 404: MediaMediaError;
96853
- /**
96854
- * Request failed; see the error code reference.
96855
- */
96856
- 409: MediaMediaError;
96857
- /**
96858
- * The file exceeds an input limit; provide a smaller source file.
96859
- */
96860
- 413: MediaMediaError;
96861
- /**
96862
- * This media format is unsupported; provide a supported format.
96863
- */
96864
- 415: MediaMediaError;
96865
- /**
96866
- * Request failed; see the error code reference.
96867
- */
96868
- 422: MediaMediaError;
96869
- /**
96870
- * A rate limit was reached; wait before retrying.
96871
- */
96872
- 429: MediaMediaError;
96873
- /**
96874
- * The requested operation is unsupported; choose a supported method.
96875
- */
96876
- 501: MediaMediaError;
96877
- /**
96878
- * Request failed; see the error code reference.
96879
- */
96880
- 502: MediaMediaError;
96881
- /**
96882
- * Historical projections are still being initialized, or library storage is temporarily unavailable; retry shortly and check failureSummary counts_complete.
96883
- */
96884
- 503: MediaMediaError;
96885
- };
96886
- export type MediaCancelJobError = MediaCancelJobErrors[keyof MediaCancelJobErrors];
96887
- export type MediaCancelJobResponses = {
96888
- /**
96889
- * Successful response.
96890
- */
96891
- 200: MediaJob;
96892
- };
96893
- export type MediaCancelJobResponse = MediaCancelJobResponses[keyof MediaCancelJobResponses];
96894
- export type MediaGetGenerationCapabilitiesData = {
96895
- body?: never;
96896
- path?: never;
96897
- query?: never;
96898
- url: '/media/v1/generation/capabilities';
98009
+ url: '/media/v1/libraries/{library_id}/assets/{asset_id}/align';
96899
98010
  };
96900
- export type MediaGetGenerationCapabilitiesErrors = {
98011
+ export type MediaAlignAssetErrors = {
96901
98012
  /**
96902
- * A selector, cursor, limit or other parameter is invalid; correct the reported field before retrying.
98013
+ * REFERENCE_TYPE_MISMATCH: the source asset or the reference asset is not an audio or video asset; both must be one of the two. INVALID_PARAMS: reference_asset_id is missing, max_offset_seconds is zero or negative, or the request names an alignment model the generation capabilities do not offer. OPERATION_NOT_SUPPORTED: the platform has published no alignment model, so the request is refused with the model field named. Correct the reported field; nothing was analysed and nothing was charged.
96903
98014
  */
96904
98015
  400: MediaMediaError;
96905
98016
  /**
96906
- * Request failed; see the error code reference.
98017
+ * INSUFFICIENT_BALANCE: the organization balance cannot cover the estimated cost of this generation or edit; top up and resubmit. Nothing was generated and nothing was charged for this request.
96907
98018
  */
96908
98019
  402: MediaMediaError;
96909
98020
  /**
@@ -96911,11 +98022,11 @@ export type MediaGetGenerationCapabilitiesErrors = {
96911
98022
  */
96912
98023
  403: MediaMediaError;
96913
98024
  /**
96914
- * The library or asset is missing, deleted or belongs to another tenant; verify its identifier and owner.
98025
+ * ASSET_NOT_FOUND: the source or the reference asset is missing, deleted or belongs to another library, or the addressed library was not found; verify the identifiers with libraries and assets. A reference asset that cannot be reached answers the same way, never as a hint that it exists elsewhere.
96915
98026
  */
96916
98027
  404: MediaMediaError;
96917
98028
  /**
96918
- * Request failed; see the error code reference.
98029
+ * MODEL_PENDING or JOB_INVALID_STATE: the chosen model is not ready for this library, or the job cannot start from its current state; wait for the model to become available, or start a new job rather than resuming this one.
96919
98030
  */
96920
98031
  409: MediaMediaError;
96921
98032
  /**
@@ -96927,11 +98038,11 @@ export type MediaGetGenerationCapabilitiesErrors = {
96927
98038
  */
96928
98039
  415: MediaMediaError;
96929
98040
  /**
96930
- * Request failed; see the error code reference.
98041
+ * CONTENT_REJECTED: the provider refused the prompt or the source image under its content policy; change the prompt or the source before retrying. Nothing was generated and nothing was charged.
96931
98042
  */
96932
98043
  422: MediaMediaError;
96933
98044
  /**
96934
- * A rate limit was reached; wait before retrying.
98045
+ * RATE_LIMITED: this library already has its maximum number of running jobs of this type and 50 more waiting, or the provider is throttling requests; Retry-After gives the seconds to wait before retrying. Below that a job past the running limit is accepted and waits (queue_reason concurrency) instead of being refused.
96935
98046
  */
96936
98047
  429: MediaMediaError;
96937
98048
  /**
@@ -96947,14 +98058,14 @@ export type MediaGetGenerationCapabilitiesErrors = {
96947
98058
  */
96948
98059
  503: MediaMediaError;
96949
98060
  };
96950
- export type MediaGetGenerationCapabilitiesError = MediaGetGenerationCapabilitiesErrors[keyof MediaGetGenerationCapabilitiesErrors];
96951
- export type MediaGetGenerationCapabilitiesResponses = {
98061
+ export type MediaAlignAssetError = MediaAlignAssetErrors[keyof MediaAlignAssetErrors];
98062
+ export type MediaAlignAssetResponses = {
96952
98063
  /**
96953
- * Successful response.
98064
+ * The alignment job is queued. Poll GET /media/v1/libraries/{library_id}/jobs/{job_id} until its status is completed or failed; a completed job carries the answer in result as offset_seconds and confidence, so a caller holding both recordings knows which one to slide. No asset is stored and nothing is overwritten. An alignment with the same source, reference and params answers the job already completed instead of analysing and charging again.
96954
98065
  */
96955
- 200: MediaGenerationCapabilities;
98066
+ 202: MediaJob;
96956
98067
  };
96957
- export type MediaGetGenerationCapabilitiesResponse = MediaGetGenerationCapabilitiesResponses[keyof MediaGetGenerationCapabilitiesResponses];
98068
+ export type MediaAlignAssetResponse = MediaAlignAssetResponses[keyof MediaAlignAssetResponses];
96958
98069
  export type OntologyListTypesData = {
96959
98070
  body?: never;
96960
98071
  path?: never;
@@ -99631,6 +100742,176 @@ export type SearchMapResponses = {
99631
100742
  };
99632
100743
  };
99633
100744
  export type SearchMapResponse = SearchMapResponses[keyof SearchMapResponses];
100745
+ export type ShareListPermissionsData = {
100746
+ body?: never;
100747
+ path?: never;
100748
+ query?: {
100749
+ /**
100750
+ * Only shares of this object type; file, canvas and media_asset create today.
100751
+ */
100752
+ resource_type?: 'file' | 'artifact' | 'canvas' | 'media_asset';
100753
+ /**
100754
+ * Only shares of the object with this id, for example a file id from the File API or a media asset's library_id/asset_id; combine with resource_type.
100755
+ */
100756
+ resource_id?: string;
100757
+ /**
100758
+ * Only shares in this state; omit to list every state.
100759
+ */
100760
+ status?: 'active' | 'expired' | 'revoked';
100761
+ /**
100762
+ * Maximum shares in one page, from 1 to 100; defaults to 50.
100763
+ */
100764
+ page_size?: number;
100765
+ /**
100766
+ * Opaque next_page_token from the preceding page with the same filters; omit on the first request.
100767
+ */
100768
+ page_token?: string;
100769
+ };
100770
+ url: '/share/v1/permissions';
100771
+ };
100772
+ export type ShareListPermissionsErrors = {
100773
+ /**
100774
+ * INVALID_PARAMS means a body field, query value or identifier violates the documented format, or a field is not supported; RESOURCE_TYPE_UNSUPPORTED means the resource type cannot be shared yet. Correct the indicated field; the message names it.
100775
+ */
100776
+ 400: ShareShareError;
100777
+ /**
100778
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
100779
+ */
100780
+ 401: ShareShareError;
100781
+ /**
100782
+ * PERMISSION_DENIED means the credential cannot perform this operation, or is bound to specific files and listed without naming one; use a key with share access, or pass resource_type and resource_id of a bound file.
100783
+ */
100784
+ 403: ShareShareError;
100785
+ /**
100786
+ * RESOURCE_NOT_FOUND means the object to share does not exist in this organization, or the credential is not bound to it; read the file id from the File API and retry.
100787
+ */
100788
+ 404: ShareShareError;
100789
+ /**
100790
+ * INTERNAL means the service could not complete the request; for a create, list shares for the file before retrying so the same object is not exposed twice.
100791
+ */
100792
+ 500: ShareShareError;
100793
+ };
100794
+ export type ShareListPermissionsError = ShareListPermissionsErrors[keyof ShareListPermissionsErrors];
100795
+ export type ShareListPermissionsResponses = {
100796
+ /**
100797
+ * One page of shares, newest first.
100798
+ */
100799
+ 200: ShareSharePermissionPage;
100800
+ };
100801
+ export type ShareListPermissionsResponse = ShareListPermissionsResponses[keyof ShareListPermissionsResponses];
100802
+ export type ShareCreatePermissionData = {
100803
+ /**
100804
+ * The object to share and the limits of the link.
100805
+ */
100806
+ body: ShareCreateShareInput;
100807
+ path?: never;
100808
+ query?: never;
100809
+ url: '/share/v1/permissions';
100810
+ };
100811
+ export type ShareCreatePermissionErrors = {
100812
+ /**
100813
+ * INVALID_PARAMS means a body field, query value or identifier violates the documented format, or a field is not supported; RESOURCE_TYPE_UNSUPPORTED means the resource type cannot be shared yet. Correct the indicated field; the message names it.
100814
+ */
100815
+ 400: ShareShareError;
100816
+ /**
100817
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
100818
+ */
100819
+ 401: ShareShareError;
100820
+ /**
100821
+ * PERMISSION_DENIED means the credential cannot perform this operation, or is bound to specific files and listed without naming one; use a key with share access, or pass resource_type and resource_id of a bound file.
100822
+ */
100823
+ 403: ShareShareError;
100824
+ /**
100825
+ * RESOURCE_NOT_FOUND means the object to share does not exist in this organization, or the credential is not bound to it; read the file id from the File API and retry.
100826
+ */
100827
+ 404: ShareShareError;
100828
+ /**
100829
+ * INTERNAL means the service could not complete the request; for a create, list shares for the file before retrying so the same object is not exposed twice.
100830
+ */
100831
+ 500: ShareShareError;
100832
+ };
100833
+ export type ShareCreatePermissionError = ShareCreatePermissionErrors[keyof ShareCreatePermissionErrors];
100834
+ export type ShareCreatePermissionResponses = {
100835
+ /**
100836
+ * The new share, including link.web_url, which is returned only in this response.
100837
+ */
100838
+ 201: ShareSharePermission;
100839
+ };
100840
+ export type ShareCreatePermissionResponse = ShareCreatePermissionResponses[keyof ShareCreatePermissionResponses];
100841
+ export type ShareDeletePermissionData = {
100842
+ body?: never;
100843
+ path: {
100844
+ /**
100845
+ * Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted.
100846
+ */
100847
+ id: string;
100848
+ };
100849
+ query?: never;
100850
+ url: '/share/v1/permissions/{id}';
100851
+ };
100852
+ export type ShareDeletePermissionErrors = {
100853
+ /**
100854
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
100855
+ */
100856
+ 401: ShareShareError;
100857
+ /**
100858
+ * PERMISSION_DENIED means the credential cannot perform this operation, or is bound to specific files and listed without naming one; use a key with share access, or pass resource_type and resource_id of a bound file.
100859
+ */
100860
+ 403: ShareShareError;
100861
+ /**
100862
+ * PERMISSION_NOT_FOUND means the share does not exist in this organization, or the credential is not bound to its file; list shares to find an id you can reach.
100863
+ */
100864
+ 404: ShareShareError;
100865
+ /**
100866
+ * INTERNAL means the service could not complete the request; for a create, list shares for the file before retrying so the same object is not exposed twice.
100867
+ */
100868
+ 500: ShareShareError;
100869
+ };
100870
+ export type ShareDeletePermissionError = ShareDeletePermissionErrors[keyof ShareDeletePermissionErrors];
100871
+ export type ShareDeletePermissionResponses = {
100872
+ /**
100873
+ * The share is revoked; there is no body.
100874
+ */
100875
+ 204: void;
100876
+ };
100877
+ export type ShareDeletePermissionResponse = ShareDeletePermissionResponses[keyof ShareDeletePermissionResponses];
100878
+ export type ShareRetrievePermissionData = {
100879
+ body?: never;
100880
+ path: {
100881
+ /**
100882
+ * Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted.
100883
+ */
100884
+ id: string;
100885
+ };
100886
+ query?: never;
100887
+ url: '/share/v1/permissions/{id}';
100888
+ };
100889
+ export type ShareRetrievePermissionErrors = {
100890
+ /**
100891
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
100892
+ */
100893
+ 401: ShareShareError;
100894
+ /**
100895
+ * PERMISSION_DENIED means the credential cannot perform this operation, or is bound to specific files and listed without naming one; use a key with share access, or pass resource_type and resource_id of a bound file.
100896
+ */
100897
+ 403: ShareShareError;
100898
+ /**
100899
+ * PERMISSION_NOT_FOUND means the share does not exist in this organization, or the credential is not bound to its file; list shares to find an id you can reach.
100900
+ */
100901
+ 404: ShareShareError;
100902
+ /**
100903
+ * INTERNAL means the service could not complete the request; for a create, list shares for the file before retrying so the same object is not exposed twice.
100904
+ */
100905
+ 500: ShareShareError;
100906
+ };
100907
+ export type ShareRetrievePermissionError = ShareRetrievePermissionErrors[keyof ShareRetrievePermissionErrors];
100908
+ export type ShareRetrievePermissionResponses = {
100909
+ /**
100910
+ * The share, without link.web_url.
100911
+ */
100912
+ 200: ShareSharePermission;
100913
+ };
100914
+ export type ShareRetrievePermissionResponse = ShareRetrievePermissionResponses[keyof ShareRetrievePermissionResponses];
99634
100915
  export type StudioGenresListData = {
99635
100916
  body?: never;
99636
100917
  path?: never;