@deepraxis/sdk 0.1.1-dev.32f52b5 → 0.1.1-dev.339ef7d

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.
@@ -4831,6 +4831,426 @@ export type MetaMethod = {
4831
4831
  content_types: Array<string>;
4832
4832
  }>;
4833
4833
  };
4834
+ /**
4835
+ * The settings of a new stream. Only these fields are accepted; the owner is your organization.
4836
+ */
4837
+ export type CreateMediaStreamRequest = {
4838
+ input: MediaStreamInput;
4839
+ /**
4840
+ * How many seconds a dropped source may take to come back and continue the same broadcast and recording; default 60.
4841
+ */
4842
+ reconnect_window_s?: number;
4843
+ /**
4844
+ * How many seconds one broadcast may run before it ends as if the source had stopped (a source still live then starts the next broadcast); default and maximum 43200 (12 hours).
4845
+ */
4846
+ max_continuous_duration_s?: number;
4847
+ recording?: MediaStreamRecording;
4848
+ playback?: MediaStreamPlaybackSetting;
4849
+ /**
4850
+ * The id of the processing to run while the stream is active; the id of a pipeline of your organization (msp_ followed by 26 characters); an unknown one answers PIPELINE_NOT_FOUND. Omit for none.
4851
+ */
4852
+ pipeline_id?: string;
4853
+ };
4854
+ /**
4855
+ * A stream; a push stream also carries its push credential.
4856
+ */
4857
+ export type MediaStreamWithPush = MediaStream & {
4858
+ push?: MediaStreamPush;
4859
+ };
4860
+ /**
4861
+ * The error body of every Media Streams failure.
4862
+ */
4863
+ export type MediaStreamError = {
4864
+ /**
4865
+ * What went wrong and whether sending the same request again can help.
4866
+ */
4867
+ error: {
4868
+ /**
4869
+ * The stream error code, for example STREAM_NOT_FOUND, STREAM_INVALID_ARGUMENT, STREAM_INVALID_STATE, STREAM_NOT_PUSH, STREAM_QUOTA_EXCEEDED, STREAM_PUSH_UNAVAILABLE or STREAM_UNAUTHENTICATED.
4870
+ */
4871
+ code: string;
4872
+ /**
4873
+ * A sentence saying what is wrong and what to change.
4874
+ */
4875
+ message: string;
4876
+ /**
4877
+ * The platform problem kind the code maps to, for example validation_failure, resource_not_found or resource_conflict; branch on it rather than on the message.
4878
+ */
4879
+ kind: string;
4880
+ /**
4881
+ * True when the same request may succeed later without any change; false when you must change the request or the stream first.
4882
+ */
4883
+ retryable: boolean;
4884
+ /**
4885
+ * The request field a validation error is about, in the same spelling as the request (for example input.url); absent for errors that are not about one field.
4886
+ */
4887
+ field?: string;
4888
+ };
4889
+ };
4890
+ /**
4891
+ * One page of streams, newest first.
4892
+ */
4893
+ export type MediaStreamList = {
4894
+ /**
4895
+ * Always list.
4896
+ */
4897
+ object: 'list';
4898
+ /**
4899
+ * The streams of this page.
4900
+ */
4901
+ data: Array<MediaStream>;
4902
+ /**
4903
+ * True when another page follows; pass the id of the last stream here as starting_after.
4904
+ */
4905
+ has_more: boolean;
4906
+ };
4907
+ /**
4908
+ * One live source and where it is now.
4909
+ */
4910
+ export type MediaStream = {
4911
+ /**
4912
+ * The stream id (mst_ and 26 lowercase base32 characters); stable and never reused. It is what every other call on this face names.
4913
+ */
4914
+ id: string;
4915
+ /**
4916
+ * Always media.stream; tells a stream from other objects in a mixed list.
4917
+ */
4918
+ object: 'media.stream';
4919
+ /**
4920
+ * idle means no source is connected; waiting means a pulled source is not live yet (no failure and no charge beyond the poll); active means media is flowing and an active slot is held; disabled means the stream was switched off and no source may drive it.
4921
+ */
4922
+ status: 'idle' | 'waiting' | 'active' | 'disabled';
4923
+ input: MediaStreamInput;
4924
+ /**
4925
+ * Seconds a dropped source may take to come back and continue the same broadcast.
4926
+ */
4927
+ reconnect_window_s: number;
4928
+ /**
4929
+ * Seconds one broadcast may run before it ends.
4930
+ */
4931
+ max_continuous_duration_s: number;
4932
+ recording: MediaStreamRecording;
4933
+ playback?: MediaStreamPlaybackSetting;
4934
+ /**
4935
+ * The processing attached to the stream, or null for none.
4936
+ */
4937
+ pipeline_id: string;
4938
+ /**
4939
+ * The Media asset the current broadcast is being recorded into, or null when no broadcast is recording.
4940
+ */
4941
+ active_asset_id: string;
4942
+ /**
4943
+ * The assets of the broadcasts before the current one, newest first.
4944
+ */
4945
+ recent_asset_ids: Array<string>;
4946
+ /**
4947
+ * The live health of the broadcast in progress; null unless the stream is active.
4948
+ */
4949
+ health: MediaStreamHealth;
4950
+ usage: MediaStreamUsage;
4951
+ /**
4952
+ * When the stream was created, RFC 3339 UTC.
4953
+ */
4954
+ created_at: string;
4955
+ /**
4956
+ * When the stream last changed (a setting or its status), RFC 3339 UTC.
4957
+ */
4958
+ updated_at: string;
4959
+ };
4960
+ /**
4961
+ * The fields to change on a stream; send at least one.
4962
+ */
4963
+ export type UpdateMediaStreamRequest = {
4964
+ input?: MediaStreamInput;
4965
+ /**
4966
+ * The new reconnect window in seconds, 0 to 1800.
4967
+ */
4968
+ reconnect_window_s?: number;
4969
+ /**
4970
+ * The new maximum continuous duration in seconds, 60 to 43200.
4971
+ */
4972
+ max_continuous_duration_s?: number;
4973
+ recording?: MediaStreamRecording;
4974
+ playback?: MediaStreamPlaybackSetting;
4975
+ /**
4976
+ * The new pipeline id, or null to detach the pipeline.
4977
+ */
4978
+ pipeline_id?: string;
4979
+ };
4980
+ /**
4981
+ * The answer to deleting a stream.
4982
+ */
4983
+ export type MediaStreamDeleted = {
4984
+ /**
4985
+ * The id of the deleted stream; it is not reused.
4986
+ */
4987
+ id: string;
4988
+ /**
4989
+ * Always media.stream.
4990
+ */
4991
+ object: 'media.stream';
4992
+ /**
4993
+ * Always true.
4994
+ */
4995
+ deleted: boolean;
4996
+ };
4997
+ /**
4998
+ * The event socket of one stream and the capability that opens it; the token is shown only in the response that mints it.
4999
+ */
5000
+ export type MediaStreamSubscription = {
5001
+ /**
5002
+ * Always media.stream.subscription.
5003
+ */
5004
+ object: 'media.stream.subscription';
5005
+ /**
5006
+ * The WebSocket address of the stream's event socket with the token in it; append &after=<seq> to start after the highest seq you have already seen, omit it to read from the start.
5007
+ */
5008
+ url: string;
5009
+ /**
5010
+ * The subscribe capability, the same value that is in url; it opens the event socket of this stream and nothing else.
5011
+ */
5012
+ token: string;
5013
+ /**
5014
+ * When the capability stops opening the socket, RFC 3339 UTC, one hour after it was minted; a socket that is already open keeps running. Mint a new one to reconnect later.
5015
+ */
5016
+ expires_at: string;
5017
+ };
5018
+ /**
5019
+ * The live playlist of one stream and the capability that opens it; the address is shown only in the response that mints it.
5020
+ */
5021
+ export type MediaStreamPlayback = {
5022
+ /**
5023
+ * Always media.stream.playback.
5024
+ */
5025
+ object: 'media.stream.playback';
5026
+ /**
5027
+ * The address of the live HLS playlist with the token in it. Give it to an HLS player (hls.js, a video element in Safari); it needs no API key and shows only the broadcast in progress, a sliding window of the newest segments.
5028
+ */
5029
+ url: string;
5030
+ /**
5031
+ * When the token stops opening the playlist, RFC 3339 UTC, one hour after it was minted; a player that is already playing keeps the segments it asked for. Mint a new address to keep watching.
5032
+ */
5033
+ expires_at: string;
5034
+ };
5035
+ /**
5036
+ * A page of the stream's event log, oldest first.
5037
+ */
5038
+ export type MediaStreamEventList = {
5039
+ /**
5040
+ * Always list.
5041
+ */
5042
+ object: 'list';
5043
+ /**
5044
+ * The events of this page, by seq ascending.
5045
+ */
5046
+ data: Array<MediaStreamEvent>;
5047
+ /**
5048
+ * True when more events follow the last one of this page.
5049
+ */
5050
+ has_more: boolean;
5051
+ /**
5052
+ * The seq to pass as after to continue; the last seq of this page, or the after you sent when the page is empty.
5053
+ */
5054
+ next_after: number;
5055
+ };
5056
+ /**
5057
+ * A new pipeline. Unknown fields answer 400.
5058
+ */
5059
+ export type CreateMediaPipelineRequest = {
5060
+ /**
5061
+ * The pipeline's name.
5062
+ */
5063
+ name: string;
5064
+ /**
5065
+ * The ordered processors and sinks; empty by default.
5066
+ */
5067
+ elements?: Array<MediaPipelineElement>;
5068
+ /**
5069
+ * The alert rules; empty by default.
5070
+ */
5071
+ alert_rules?: Array<MediaPipelineAlertRule>;
5072
+ };
5073
+ /**
5074
+ * A pipeline, the processing a stream runs while it is live.
5075
+ */
5076
+ export type MediaPipeline = {
5077
+ /**
5078
+ * The pipeline's id; msp_ followed by 26 lowercase base32 characters.
5079
+ */
5080
+ id: string;
5081
+ /**
5082
+ * Always media.pipeline.
5083
+ */
5084
+ object: 'media.pipeline';
5085
+ /**
5086
+ * The pipeline's name.
5087
+ */
5088
+ name: string;
5089
+ /**
5090
+ * The ordered processors and sinks.
5091
+ */
5092
+ elements: Array<MediaPipelineElement>;
5093
+ /**
5094
+ * The alert rules.
5095
+ */
5096
+ alert_rules: Array<MediaPipelineAlertRule>;
5097
+ /**
5098
+ * When the pipeline was created.
5099
+ */
5100
+ created_at: string;
5101
+ /**
5102
+ * When it last changed.
5103
+ */
5104
+ updated_at: string;
5105
+ };
5106
+ /**
5107
+ * One page of pipelines.
5108
+ */
5109
+ export type MediaPipelineList = {
5110
+ /**
5111
+ * Always list.
5112
+ */
5113
+ object: 'list';
5114
+ /**
5115
+ * The pipelines of this page
5116
+ */
5117
+ data: Array<MediaPipeline>;
5118
+ /**
5119
+ * True when another page follows; pass the last id as starting_after.
5120
+ */
5121
+ has_more: boolean;
5122
+ };
5123
+ /**
5124
+ * The fields to replace; at least one. Unknown fields answer 400.
5125
+ */
5126
+ export type UpdateMediaPipelineRequest = {
5127
+ /**
5128
+ * The new name.
5129
+ */
5130
+ name?: string;
5131
+ /**
5132
+ * The new element list
5133
+ */
5134
+ elements?: Array<MediaPipelineElement>;
5135
+ /**
5136
+ * The new rules
5137
+ */
5138
+ alert_rules?: Array<MediaPipelineAlertRule>;
5139
+ };
5140
+ /**
5141
+ * A pipeline that was deleted.
5142
+ */
5143
+ export type MediaPipelineDeleted = {
5144
+ /**
5145
+ * The deleted pipeline's id.
5146
+ */
5147
+ id: string;
5148
+ /**
5149
+ * Always media.pipeline.
5150
+ */
5151
+ object: 'media.pipeline';
5152
+ /**
5153
+ * Always true.
5154
+ */
5155
+ deleted: true;
5156
+ };
5157
+ /**
5158
+ * The target of a new output. Only these fields are accepted.
5159
+ */
5160
+ export type CreateMediaStreamOutputRequest = {
5161
+ /**
5162
+ * The target's RTMP address with its application: rtmp:// or rtmps://, a public host, no user or password.
5163
+ */
5164
+ url: string;
5165
+ /**
5166
+ * The key the target gave you for this stream, at most 512 characters without spaces; it is stored and never returned.
5167
+ */
5168
+ stream_key: string;
5169
+ };
5170
+ /**
5171
+ * One re-broadcast target of a stream.
5172
+ */
5173
+ export type MediaStreamOutput = {
5174
+ /**
5175
+ * The output id (mso_ and 26 lowercase base32 characters); stable and never reused.
5176
+ */
5177
+ id: string;
5178
+ /**
5179
+ * Always media.stream.output.
5180
+ */
5181
+ object: 'media.stream.output';
5182
+ /**
5183
+ * The target's RTMP address with its application, rtmp:// or rtmps://; the stream key is not part of it.
5184
+ */
5185
+ url: string;
5186
+ /**
5187
+ * Always true: the key is write-only and never returned; send a new stream_key with streams.outputs.update to change it.
5188
+ */
5189
+ stream_key_set: true;
5190
+ /**
5191
+ * idle means the stream is not live; starting means connecting, or waiting to try again (1 s, then longer up to 60 s); broadcasting means the target accepted the stream and is receiving it; errored means 5 attempts in a row failed (error says why) and no more are made until the next broadcast or a change.
5192
+ */
5193
+ status: 'idle' | 'starting' | 'broadcasting' | 'errored';
5194
+ /**
5195
+ * Why the output is errored; null in every other status.
5196
+ */
5197
+ error: MediaStreamOutputError;
5198
+ /**
5199
+ * When the output was created, RFC 3339 UTC.
5200
+ */
5201
+ created_at: string;
5202
+ /**
5203
+ * When the output last changed (a setting or its status), RFC 3339 UTC.
5204
+ */
5205
+ updated_at: string;
5206
+ };
5207
+ /**
5208
+ * The outputs of one stream, oldest first; there are at most 5.
5209
+ */
5210
+ export type MediaStreamOutputList = {
5211
+ /**
5212
+ * Always list.
5213
+ */
5214
+ object: 'list';
5215
+ /**
5216
+ * The stream's outputs.
5217
+ */
5218
+ data: Array<MediaStreamOutput>;
5219
+ /**
5220
+ * Always false: a stream has at most 5 outputs, so one page holds all of them.
5221
+ */
5222
+ has_more: boolean;
5223
+ };
5224
+ /**
5225
+ * The fields to change on an output; send at least one.
5226
+ */
5227
+ export type UpdateMediaStreamOutputRequest = {
5228
+ /**
5229
+ * The new RTMP address with its application.
5230
+ */
5231
+ url?: string;
5232
+ /**
5233
+ * The new stream key; stored and never returned.
5234
+ */
5235
+ stream_key?: string;
5236
+ };
5237
+ /**
5238
+ * The answer to deleting an output.
5239
+ */
5240
+ export type MediaStreamOutputDeleted = {
5241
+ /**
5242
+ * The id of the deleted output; it is not reused.
5243
+ */
5244
+ id: string;
5245
+ /**
5246
+ * Always media.stream.output.
5247
+ */
5248
+ object: 'media.stream.output';
5249
+ /**
5250
+ * Always true.
5251
+ */
5252
+ deleted: boolean;
5253
+ };
4834
5254
  /**
4835
5255
  * Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
4836
5256
  */
@@ -7735,10 +8155,6 @@ export type OrganizationDepartment = {
7735
8155
  * Id of the position that heads the department; null while no position has been designated head; the root department's head position is created with the organization and held by its owner.
7736
8156
  */
7737
8157
  head_position_id: string | null;
7738
- /**
7739
- * Charter of the department, or null when none has been written; inherited by sub-departments.
7740
- */
7741
- charter: OrganizationDepartmentCharter | null;
7742
8158
  /**
7743
8159
  * Whether the department is part of the tree or was dissolved.
7744
8160
  */
@@ -7766,16 +8182,6 @@ export type OrganizationReorganizeDepartmentRequest = {
7766
8182
  */
7767
8183
  order?: number;
7768
8184
  };
7769
- export type OrganizationAmendCharterRequest = {
7770
- /**
7771
- * The full new charter text, at most 2000 characters; it replaces the old text.
7772
- */
7773
- text: string;
7774
- /**
7775
- * The charter.revision you last read, or 0 when the department has no charter yet; a mismatch returns REVISION_CONFLICT.
7776
- */
7777
- expected_revision: number;
7778
- };
7779
8185
  export type OrganizationJobList = {
7780
8186
  /**
7781
8187
  * Jobs on this page.
@@ -13167,6 +13573,23 @@ export type CanvasCanvas = {
13167
13573
  * Collection id from collections.list, or null for an uncategorized canvas; a canvas belongs to at most one collection.
13168
13574
  */
13169
13575
  collection_id: string | null;
13576
+ /**
13577
+ * The canvas's latest published library version, or null when it has never been published as a library.
13578
+ */
13579
+ library: null | {
13580
+ /**
13581
+ * Latest published library version, counting from 1.
13582
+ */
13583
+ version: string;
13584
+ /**
13585
+ * ISO 8601 time at which that version was published.
13586
+ */
13587
+ published_at: string;
13588
+ };
13589
+ /**
13590
+ * Libraries this canvas imports, by alias; present on retrieve and list, absent where only the canvas is named (create, update).
13591
+ */
13592
+ imports?: Array<CanvasCanvasImport>;
13170
13593
  };
13171
13594
  export type CanvasCanvasPage = {
13172
13595
  /**
@@ -13520,6 +13943,126 @@ export type CanvasRestoreResult = {
13520
13943
  */
13521
13944
  restored_from: string;
13522
13945
  };
13946
+ export type CanvasPublishLibraryInput = {
13947
+ /**
13948
+ * Release note shown in library_versions, at most 2000 characters; empty when omitted.
13949
+ */
13950
+ description?: string;
13951
+ /**
13952
+ * Current canvas version from retrieve or nodes.list; the publish is refused with REVISION_CONFLICT if the canvas has moved on. Omission publishes whatever is current.
13953
+ */
13954
+ expected_version?: string;
13955
+ };
13956
+ export type CanvasPublishLibraryResult = {
13957
+ /**
13958
+ * The new library version, counting from 1; importing canvases pin to it.
13959
+ */
13960
+ version: string;
13961
+ /**
13962
+ * The canvas version this library version was taken from; publishing leaves it unchanged.
13963
+ */
13964
+ canvas_version: string;
13965
+ /**
13966
+ * Components that did not exist in the previous library version.
13967
+ */
13968
+ added: Array<CanvasComponentRef>;
13969
+ /**
13970
+ * Components whose content differs from the previous library version.
13971
+ */
13972
+ changed: Array<CanvasComponentRef>;
13973
+ /**
13974
+ * Components the previous library version had and this canvas no longer has; they stay in the new version marked removed.
13975
+ */
13976
+ removed: Array<CanvasComponentRef>;
13977
+ /**
13978
+ * True when the canvas variables or themes differ from the previous library version; always false for the first version.
13979
+ */
13980
+ variables_changed: boolean;
13981
+ /**
13982
+ * Number of components in this version, not counting removed ones.
13983
+ */
13984
+ component_count: number;
13985
+ /**
13986
+ * ISO 8601 time at which this version was published.
13987
+ */
13988
+ published_at: string;
13989
+ };
13990
+ export type CanvasLibraryVersionPage = {
13991
+ /**
13992
+ * Published library versions, ordered from highest version to lowest.
13993
+ */
13994
+ versions: Array<CanvasLibraryVersion>;
13995
+ /**
13996
+ * Continuation token to pass as cursor to read older versions; null marks the final page.
13997
+ */
13998
+ next_cursor: string | null;
13999
+ };
14000
+ export type CanvasLibraryPage = {
14001
+ /**
14002
+ * Libraries on this page, most recently published first.
14003
+ */
14004
+ data: Array<CanvasLibrarySummary>;
14005
+ /**
14006
+ * Continuation token to pass as cursor to read the next page; null marks the final page.
14007
+ */
14008
+ next_cursor: string | null;
14009
+ };
14010
+ export type CanvasSetImportInput = {
14011
+ /**
14012
+ * Alias to import under, 1-32 characters, a lower-case letter then lower-case letters, digits or hyphens.
14013
+ */
14014
+ alias: string;
14015
+ /**
14016
+ * Canvas id of the library, from libraries.list; it must belong to your organization and have been published.
14017
+ */
14018
+ library: string;
14019
+ /**
14020
+ * Library version to use, from library_versions; the latest when omitted.
14021
+ */
14022
+ version?: string;
14023
+ /**
14024
+ * Current canvas version from retrieve; the import is refused with REVISION_CONFLICT if the canvas has moved on. Omission imports whatever is current.
14025
+ */
14026
+ expected_version?: string;
14027
+ };
14028
+ export type CanvasSetImportResult = {
14029
+ version: CanvasVersion;
14030
+ /**
14031
+ * The alias the library is imported under.
14032
+ */
14033
+ alias: string;
14034
+ /**
14035
+ * The library's canvas id.
14036
+ */
14037
+ library: string;
14038
+ /**
14039
+ * The library version now in use.
14040
+ */
14041
+ library_version: string;
14042
+ /**
14043
+ * The library version this alias used before, or null for a first import.
14044
+ */
14045
+ previous_library_version: string | null;
14046
+ /**
14047
+ * Number of components the imported version offers; components removed from the library are not counted.
14048
+ */
14049
+ component_count: number;
14050
+ };
14051
+ export type CanvasDeleteImportResult = {
14052
+ version: CanvasVersion;
14053
+ /**
14054
+ * The alias that was removed.
14055
+ */
14056
+ alias: string;
14057
+ /**
14058
+ * The canvas id of the library that was imported under it.
14059
+ */
14060
+ library: string;
14061
+ /**
14062
+ * Always true on success.
14063
+ */
14064
+ deleted: true;
14065
+ };
13523
14066
  /**
13524
14067
  * A content to create.
13525
14068
  */
@@ -15207,6 +15750,14 @@ export type CustomerCreatePublishableKeyInput = {
15207
15750
  * Resource scopes an anonymous visitor may reach, at least one, each a scope string or an object with scope and params; grant only what the anonymous experience needs.
15208
15751
  */
15209
15752
  resources: Array<CustomerScopeInput>;
15753
+ /**
15754
+ * Most exchanges of this key per UTC minute, from 1 to 100000, counting every visitor together; omit or send null for no per-key limit.
15755
+ */
15756
+ anon_rate_per_min?: number | null;
15757
+ /**
15758
+ * Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; returning visitors are not counted. Omit or send null for no limit.
15759
+ */
15760
+ daily_session_cap?: number | null;
15210
15761
  };
15211
15762
  /**
15212
15763
  * A key that admits anonymous visitors to the products it names.
@@ -15232,11 +15783,36 @@ export type CustomerPublishableKey = {
15232
15783
  * RFC 3339 time the key was created; the key list is ordered by it, newest first.
15233
15784
  */
15234
15785
  created_at?: string;
15786
+ /**
15787
+ * Most exchanges this key allows per UTC minute, counting every exchange (a returning visitor's too), or null for no per-key limit; the per-IP limit of the exchange applies either way.
15788
+ */
15789
+ anon_rate_per_min?: number | null;
15790
+ /**
15791
+ * Most new anonymous visitors this key admits per UTC day, or null for no limit; a returning visitor that continues with its continuation_token is not counted, and 0 admits no new visitor at all.
15792
+ */
15793
+ daily_session_cap?: number | null;
15235
15794
  /**
15236
15795
  * The plaintext key value, present only in the create response; every later read returns the key without it, because only its hash is stored.
15237
15796
  */
15238
15797
  key?: string;
15239
15798
  };
15799
+ /**
15800
+ * The fields of a publishable key to change; at least one, and a field left out keeps its value.
15801
+ */
15802
+ export type CustomerUpdatePublishableKeyInput = {
15803
+ /**
15804
+ * New label for the key, 1 to 64 characters.
15805
+ */
15806
+ name?: string;
15807
+ /**
15808
+ * Most exchanges of this key per UTC minute, from 1 to 100000; null removes the per-key limit.
15809
+ */
15810
+ anon_rate_per_min?: number | null;
15811
+ /**
15812
+ * Most new anonymous visitors this key admits per UTC day, from 0 to 10000000; null removes the limit.
15813
+ */
15814
+ daily_session_cap?: number | null;
15815
+ };
15240
15816
  /**
15241
15817
  * The result of deleting a publishable key.
15242
15818
  */
@@ -15921,9 +16497,9 @@ export type CutExport = {
15921
16497
  */
15922
16498
  checks?: Array<{
15923
16499
  /**
15924
- * BLACK_FIRST_FRAME: the first frame is black or empty. PLACEHOLDER_TEXT: a text or caption looks like unfinished placeholder text (TODO, XXX, ___). UPSCALED_SOURCE: a source is enlarged more than 1.5x and will look soft. CAPTION_TOO_SHORT: a caption is on screen too briefly to read. CAPTION_OUT_OF_SAFE_AREA: a caption or text box reaches into the frame edge where players crop or overlay controls. CAPTION_TEXT_MISMATCH: a caption's words differ from the speech the timeline keeps under it (a caption edited without its sound, or sound kept after its caption was removed). CAPTION_DRIFT: a caption starts or ends more than 0.2 s away from its words. FILLER_REMAINING: a filler, verbal tic, repetition or restart that media labelled with confidence 0.7 or more is still in the timeline. SUSPECT_TYPO: a word the correction model doubted and left uncorrected (a possible homophone or misheard name) is still in the timeline. LOUDNESS_TRUE_PEAK_OVER: the delivered file's measured true peak is above the export's true-peak target. RENDER_FALLBACK: a parallel render worker failed, so some chunks are being rendered again on the main machine; it appears while the export is still rendering, the export continues and takes longer, and nothing needs to be done.
16500
+ * BLACK_FIRST_FRAME: the first frame is black or empty. PLACEHOLDER_TEXT: a text or caption looks like unfinished placeholder text (TODO, XXX, ___). UPSCALED_SOURCE: a source is enlarged more than 1.5x and will look soft. CAPTION_TOO_SHORT: a caption is on screen too briefly to read. CAPTION_OUT_OF_SAFE_AREA: a caption or text box reaches into the frame edge where players crop or overlay controls. CAPTION_TEXT_MISMATCH: a caption's words differ from the speech the timeline keeps under it (a caption edited without its sound, or sound kept after its caption was removed). CAPTION_DRIFT: a caption starts or ends more than 0.2 s away from its words. FILLER_REMAINING: a filler, verbal tic, repetition or restart that media labelled with confidence 0.7 or more is still in the timeline. SUSPECT_TYPO: a word the correction model doubted and left uncorrected (a possible homophone or misheard name) is still in the timeline. LOUDNESS_TRUE_PEAK_OVER: the delivered file's measured true peak is above the export's true-peak target. RENDER_FALLBACK: a parallel render worker failed, so some chunks are being rendered again on the main machine; it appears while the export is still rendering, the export continues and takes longer, and nothing needs to be done. SAVE_RETRIED: the finished file failed to upload and is being uploaded again from the same machine; the render is kept and nothing needs to be done. ATTEMPT_RETRIED: the whole attempt failed and the export is starting over; the check names the cause.
15925
16501
  */
15926
- code: 'BLACK_FIRST_FRAME' | 'PLACEHOLDER_TEXT' | 'UPSCALED_SOURCE' | 'CAPTION_TOO_SHORT' | 'CAPTION_OUT_OF_SAFE_AREA' | 'CAPTION_TEXT_MISMATCH' | 'CAPTION_DRIFT' | 'FILLER_REMAINING' | 'SUSPECT_TYPO' | 'LOUDNESS_TRUE_PEAK_OVER' | 'RENDER_FALLBACK';
16502
+ code: 'BLACK_FIRST_FRAME' | 'PLACEHOLDER_TEXT' | 'UPSCALED_SOURCE' | 'CAPTION_TOO_SHORT' | 'CAPTION_OUT_OF_SAFE_AREA' | 'CAPTION_TEXT_MISMATCH' | 'CAPTION_DRIFT' | 'FILLER_REMAINING' | 'SUSPECT_TYPO' | 'LOUDNESS_TRUE_PEAK_OVER' | 'RENDER_FALLBACK' | 'SAVE_RETRIED' | 'ATTEMPT_RETRIED';
15927
16503
  /**
15928
16504
  * Always warning in this version.
15929
16505
  */
@@ -20797,7 +21373,7 @@ export type MediaAsset = {
20797
21373
  /**
20798
21374
  * How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
20799
21375
  */
20800
- provenance?: MediaProvenance;
21376
+ provenance?: MediaProvenance | MediaRecordingProvenance;
20801
21377
  /**
20802
21378
  * Console page that shows this asset in the media library: https://console.deepraxis.com/media/{library_id}?asset_id={asset_id} (the console host carries the environment, for example console-develop on develop). Give this link to a person instead of the bare asset_id.
20803
21379
  */
@@ -29335,6 +29911,231 @@ export type OwnFileError = {
29335
29911
  type: string;
29336
29912
  misalignment?: OwnFileMisalignmentErrorDetailsResource;
29337
29913
  };
29914
+ /**
29915
+ * Where the stream's media comes from.
29916
+ */
29917
+ export type MediaStreamInput = {
29918
+ /**
29919
+ * pull means Praxis pulls the address in url; push means your encoder or app sends to the push address returned when the stream is created.
29920
+ */
29921
+ kind: 'pull' | 'push';
29922
+ /**
29923
+ * The address to pull, present only when kind is pull: https, http (HLS .m3u8, HTTP-FLV) or rtmp, rtmps. SRT is not supported.
29924
+ */
29925
+ url?: string;
29926
+ };
29927
+ /**
29928
+ * What is recorded while the stream is active. A recording is a Media asset; one asset per broadcast.
29929
+ */
29930
+ export type MediaStreamRecording = {
29931
+ /**
29932
+ * automatic records every broadcast into a Media asset; off records nothing (the default).
29933
+ */
29934
+ mode?: 'automatic' | 'off';
29935
+ /**
29936
+ * Which rendition to record: source keeps the stream as it arrives; highest, sd and lowest pick among the renditions the source offers; audio_only keeps no video. When the requested one is not available the best available is recorded.
29937
+ */
29938
+ rendition?: 'source' | 'highest' | 'sd' | 'lowest' | 'audio_only';
29939
+ /**
29940
+ * The Media library the recordings go to; omit to use the default library of your organization.
29941
+ */
29942
+ library_id?: string;
29943
+ /**
29944
+ * The folder inside the library the recordings are placed in; omit for the library root.
29945
+ */
29946
+ asset_folder?: string;
29947
+ /**
29948
+ * Delete each recording this many days after it was made; omit to keep recordings until you delete them.
29949
+ */
29950
+ delete_after_days?: number;
29951
+ };
29952
+ /**
29953
+ * Whether the live broadcast can be played in a browser. Turn it on and mint an address with streams.playbackToken; a stream that records automatically can be played without it.
29954
+ */
29955
+ export type MediaStreamPlaybackSetting = {
29956
+ /**
29957
+ * true keeps the newest segments of the broadcast readable so a player can follow it live (about a minute of media at a time); false (the default) keeps nothing for playback.
29958
+ */
29959
+ enabled?: boolean;
29960
+ };
29961
+ /**
29962
+ * The address and capability a push stream's source sends to.
29963
+ */
29964
+ export type MediaStreamPush = {
29965
+ /**
29966
+ * The WebSocket address of Praxis Realtime to push to; it already carries the token as a query parameter.
29967
+ */
29968
+ url: string;
29969
+ /**
29970
+ * The capability token inside url; keep it secret, only its hash is stored and it is shown only in this response.
29971
+ */
29972
+ token: string;
29973
+ /**
29974
+ * When the token stops working, RFC 3339 UTC; call streams.resetToken.create for a new one.
29975
+ */
29976
+ expires_at: string;
29977
+ };
29978
+ /**
29979
+ * How the broadcast in progress is doing, read live. Present only while the stream is active; every other status has null. Counts start at zero with each broadcast.
29980
+ */
29981
+ export type MediaStreamHealth = {
29982
+ /**
29983
+ * Kilobits per second received over the last minute (bytes received over the media time they cover); null when no segment arrived in that minute.
29984
+ */
29985
+ bitrate_kbps: number;
29986
+ /**
29987
+ * Milliseconds from a segment's wall-clock start to the moment it was processed, averaged over the last minute. It is measured only on a source that states its own clock (PROGRAM-DATE-TIME); on a source whose time is the time it was received it is null.
29988
+ */
29989
+ latency_ms: number;
29990
+ /**
29991
+ * Segments the source skipped in this broadcast.
29992
+ */
29993
+ dropped_segments: number;
29994
+ /**
29995
+ * Times the source dropped and came back inside the reconnect window in this broadcast.
29996
+ */
29997
+ reconnects: number;
29998
+ /**
29999
+ * When the newest segment was processed, RFC 3339 UTC; null before the first segment of the broadcast.
30000
+ */
30001
+ last_segment_at: string;
30002
+ };
30003
+ /**
30004
+ * What the stream has used, read from what it has already sent to billing.
30005
+ */
30006
+ export type MediaStreamUsage = {
30007
+ /**
30008
+ * The broadcast in progress; null unless the stream is active.
30009
+ */
30010
+ broadcast: MediaStreamUsageNumbers;
30011
+ /**
30012
+ * Across every broadcast of the stream.
30013
+ */
30014
+ total: MediaStreamUsageNumbers;
30015
+ };
30016
+ /**
30017
+ * One entry of a stream's event log.
30018
+ */
30019
+ export type MediaStreamEvent = {
30020
+ /**
30021
+ * The event id, globally unique; a repeat delivery has the same id.
30022
+ */
30023
+ id: string;
30024
+ /**
30025
+ * Always media.stream.event.
30026
+ */
30027
+ object: 'media.stream.event';
30028
+ /**
30029
+ * The stream the event belongs to.
30030
+ */
30031
+ stream_id: string;
30032
+ /**
30033
+ * The event's position in this stream's log: starts at 1, only grows, never reused. Pass the highest one you have as after to resume.
30034
+ */
30035
+ seq: number;
30036
+ /**
30037
+ * stream.waiting: a pulled source is not live yet; stream.connected: the source connected; stream.active: media started flowing; stream.disconnected: the source dropped or was refused (data.reason says why, for example quota_exceeded); stream.idle: the broadcast ended; recording.ready: a recording became a Media asset (data.asset_id); recording.failed: it did not (data.reason). transcript.partial and transcript.final: speech as text (data.text, data.sentence_id, data.start_ms, data.end_ms); frame.described: one keyframe described (data.text); alert: an alert rule matched (data.matched, data.source_event_ids); pipeline.unsupported_audio: the audio cannot be transcribed yet (data.codec); pipeline.describe_failed: a frame description failed (data.step, data.message). output.status: a re-broadcast target changed status (data.output_id, data.status and, when errored, data.error).
30038
+ */
30039
+ kind: 'stream.waiting' | 'stream.connected' | 'stream.active' | 'stream.disconnected' | 'stream.idle' | 'recording.ready' | 'recording.failed' | 'output.status' | 'transcript.partial' | 'transcript.final' | 'frame.described' | 'alert' | 'pipeline.unsupported_audio' | 'pipeline.describe_failed';
30040
+ /**
30041
+ * Where in the stream the event happened, in milliseconds from its start; null when it has no position.
30042
+ */
30043
+ offset_ms: number;
30044
+ /**
30045
+ * The wall-clock time of the event, RFC 3339 UTC; align it with outside data using this, not the offset.
30046
+ */
30047
+ at: string;
30048
+ /**
30049
+ * Where at comes from: program_date_time is the time the source stamped in its HLS playlist; received is the time Praxis received it.
30050
+ */
30051
+ at_source: 'program_date_time' | 'received';
30052
+ /**
30053
+ * Details of the event: status (the stream status after it), cause (what drove it) and, for a refusal, reason.
30054
+ */
30055
+ data: {
30056
+ [key: string]: unknown;
30057
+ };
30058
+ };
30059
+ /**
30060
+ * One element of a pipeline, told by type. transcribe {language?, hot_words?}; describe_frames {interval_s 5 to 300 default 10, prompt?, model?}; match_keywords {keywords}; sinks events, webhook {url} and agent {session_id}.
30061
+ */
30062
+ export type MediaPipelineElement = {
30063
+ /**
30064
+ * Which processor or sink this element is. transcribe turns the speech into transcript events; describe_frames describes one keyframe every interval_s; match_keywords looks for words in the transcript; events is the stream's own event log, always on; webhook posts the results to a url; agent sends them to an agent session.
30065
+ */
30066
+ type: 'transcribe' | 'describe_frames' | 'match_keywords' | 'events' | 'webhook' | 'agent';
30067
+ /**
30068
+ * transcribe: a language tag such as zh or en-US.
30069
+ */
30070
+ language?: string;
30071
+ /**
30072
+ * transcribe: words the recogniser should favour, at most 100.
30073
+ */
30074
+ hot_words?: Array<string>;
30075
+ /**
30076
+ * describe_frames: seconds between two described frames.
30077
+ */
30078
+ interval_s?: number;
30079
+ /**
30080
+ * describe_frames: what to ask the model about the frame; the default asks what is happening in the picture in a sentence or two.
30081
+ */
30082
+ prompt?: string;
30083
+ /**
30084
+ * describe_frames: the vision model; omit it to use the platform's default.
30085
+ */
30086
+ model?: string;
30087
+ /**
30088
+ * match_keywords: the words to look for in the transcript.
30089
+ */
30090
+ keywords?: Array<string>;
30091
+ /**
30092
+ * webhook: the https or http address results are posted to.
30093
+ */
30094
+ url?: string;
30095
+ /**
30096
+ * webhook: a stable name for this webhook inside the pipeline (letters, digits, - and _, up to 64); whk_ followed by its position when you send none.
30097
+ */
30098
+ id?: string;
30099
+ /**
30100
+ * webhook: the signing secret (whsec_ followed by base64) the receiver verifies each delivery with. It is made when the webhook is added and shown only in the response that adds it (pipelines.create or pipelines.update); every later read leaves it out, and an update that keeps the webhook's id keeps its secret. You cannot send one.
30101
+ */
30102
+ readonly secret?: string;
30103
+ /**
30104
+ * agent: the agent session that receives the results.
30105
+ */
30106
+ session_id?: string;
30107
+ };
30108
+ /**
30109
+ * One alert rule, told by type. keyword_match {keywords} fires on a transcript word; model_judgment {prompt} is a question a model answers over a window of the transcript and frame descriptions. Other fields you send are kept as sent.
30110
+ */
30111
+ export type MediaPipelineAlertRule = {
30112
+ /**
30113
+ * Which rule this is. keyword_match fires on listed words in the transcript; model_judgment fires when a model's answer to the prompt over a window of transcript and frame descriptions says so.
30114
+ */
30115
+ type: 'keyword_match' | 'model_judgment';
30116
+ /**
30117
+ * keyword_match: the words that fire it.
30118
+ */
30119
+ keywords?: Array<string>;
30120
+ /**
30121
+ * model_judgment: the question the model answers.
30122
+ */
30123
+ prompt?: string;
30124
+ [key: string]: unknown;
30125
+ };
30126
+ /**
30127
+ * Why an errored output stopped trying.
30128
+ */
30129
+ export type MediaStreamOutputError = {
30130
+ /**
30131
+ * OUTPUT_CONNECT_FAILED: the target could not be reached or refused the connection; OUTPUT_PUBLISH_REJECTED: it refused the stream (a wrong key is the usual cause, fix it with streams.outputs.update); OUTPUT_CONNECTION_LOST: it dropped the connection; OUTPUT_TARGET_FORBIDDEN: the address is not one Praxis may publish to; OUTPUT_UNSUPPORTED_MEDIA: the stream carries video that cannot be re-published as it is (HEVC, or a container other than TS).
30132
+ */
30133
+ code: 'OUTPUT_CONNECT_FAILED' | 'OUTPUT_PUBLISH_REJECTED' | 'OUTPUT_CONNECTION_LOST' | 'OUTPUT_TARGET_FORBIDDEN' | 'OUTPUT_UNSUPPORTED_MEDIA';
30134
+ /**
30135
+ * A sentence saying what the target answered.
30136
+ */
30137
+ message: string;
30138
+ };
29338
30139
  /**
29339
30140
  * Lifetime of an Anthropic-style cache breakpoint.
29340
30141
  */
@@ -33856,27 +34657,6 @@ export type SandboxError = {
33856
34657
  */
33857
34658
  message: string;
33858
34659
  };
33859
- /**
33860
- * The free-text rules of a department.
33861
- */
33862
- export type OrganizationDepartmentCharter = {
33863
- /**
33864
- * Charter text: free-text rules for the department, inherited by every department below it.
33865
- */
33866
- text: string;
33867
- /**
33868
- * Revision of the charter, starting at 1; send it as expected_revision to amend the charter.
33869
- */
33870
- revision: number;
33871
- /**
33872
- * UTC instant (RFC 3339) of the latest amendment.
33873
- */
33874
- update_time: string;
33875
- /**
33876
- * Actor address that made the latest amendment, such as human:usr_123.
33877
- */
33878
- updated_by: string;
33879
- };
33880
34660
  export type OrganizationNewLevel = {
33881
34661
  /**
33882
34662
  * Level name, 1 to 100 characters, such as Junior.
@@ -34016,7 +34796,7 @@ export type OrganizationChainLink = {
34016
34796
  holder_name: string | null;
34017
34797
  }>;
34018
34798
  /**
34019
- * Departments from the root down to the department of the position, root first, each with its charter.
34799
+ * Departments from the root down to the department of the position, root first.
34020
34800
  */
34021
34801
  department_path: Array<OrganizationChainDepartment>;
34022
34802
  /**
@@ -35934,6 +36714,38 @@ export type AutomationHumanTaskOutcome = {
35934
36714
  * Current revision as a decimal string, incremented by one after each successful write; pass it as expected_version to guard a subsequent execute call.
35935
36715
  */
35936
36716
  export type CanvasVersion = string;
36717
+ export type CanvasCanvasImport = {
36718
+ /**
36719
+ * The alias this library is imported under; components are referenced as alias:component_id and variables as $alias:name.
36720
+ */
36721
+ alias: string;
36722
+ /**
36723
+ * The library's canvas id.
36724
+ */
36725
+ library: string;
36726
+ /**
36727
+ * The library's current name, or the name it had when imported if the library canvas was deleted.
36728
+ */
36729
+ name: string;
36730
+ /**
36731
+ * The library version this canvas uses.
36732
+ */
36733
+ version: string;
36734
+ /**
36735
+ * The library's newest published version, or null when the library canvas was deleted.
36736
+ */
36737
+ latest_version: string | null;
36738
+ /**
36739
+ * current means this canvas uses the newest version; outdated means a newer one exists (move the alias with imports.create); deleted means the library canvas is gone, and the imported version keeps rendering.
36740
+ */
36741
+ status: 'current' | 'outdated' | 'deleted';
36742
+ /**
36743
+ * Present on retrieve only. How many nodes of this canvas instantiate each component, keyed by component id without the alias, including instances inside replaced subtrees; a component with no instance is absent.
36744
+ */
36745
+ instances?: {
36746
+ [key: string]: number;
36747
+ };
36748
+ };
35937
36749
  export type CanvasFrame = {
35938
36750
  /**
35939
36751
  * Top-level node identifier; use in nodes.list, images.list or an execute script.
@@ -36030,6 +36842,93 @@ export type CanvasCanvasVersion = {
36030
36842
  */
36031
36843
  restored_from: string | null;
36032
36844
  };
36845
+ export type CanvasComponentRef = {
36846
+ /**
36847
+ * Node id of the component's root frame in the library canvas.
36848
+ */
36849
+ id: string;
36850
+ /**
36851
+ * The component's name, or its id when it has no name.
36852
+ */
36853
+ name: string;
36854
+ };
36855
+ export type CanvasLibraryVersion = {
36856
+ /**
36857
+ * Library version number, counting from 1.
36858
+ */
36859
+ version: string;
36860
+ /**
36861
+ * The canvas version this library version was taken from.
36862
+ */
36863
+ canvas_version: string;
36864
+ /**
36865
+ * Release note given at publish time; empty when none was given.
36866
+ */
36867
+ description: string;
36868
+ /**
36869
+ * Principal that published this version, resolved from the authenticated caller.
36870
+ */
36871
+ actor: {
36872
+ /**
36873
+ * Identifier of the user or agent that published.
36874
+ */
36875
+ id: string;
36876
+ /**
36877
+ * Principal category; human identifies a person using Console, agent an automated API caller.
36878
+ */
36879
+ kind: 'human' | 'agent';
36880
+ /**
36881
+ * Display label recorded for the principal when publishing.
36882
+ */
36883
+ name: string;
36884
+ };
36885
+ /**
36886
+ * ISO 8601 time at which this version was published.
36887
+ */
36888
+ published_at: string;
36889
+ /**
36890
+ * Number of components in this version, not counting removed ones.
36891
+ */
36892
+ component_count: number;
36893
+ /**
36894
+ * Components new in this version.
36895
+ */
36896
+ added: Array<CanvasComponentRef>;
36897
+ /**
36898
+ * Components whose content changed in this version.
36899
+ */
36900
+ changed: Array<CanvasComponentRef>;
36901
+ /**
36902
+ * Components removed in this version.
36903
+ */
36904
+ removed: Array<CanvasComponentRef>;
36905
+ };
36906
+ export type CanvasLibrarySummary = {
36907
+ /**
36908
+ * The library's canvas id; use it as canvas_id in library_versions and publish.
36909
+ */
36910
+ canvas_id: string;
36911
+ /**
36912
+ * The library canvas's display name.
36913
+ */
36914
+ name: string;
36915
+ /**
36916
+ * Latest published library version.
36917
+ */
36918
+ version: string;
36919
+ /**
36920
+ * ISO 8601 time at which the latest version was published.
36921
+ */
36922
+ published_at: string;
36923
+ /**
36924
+ * Number of components in the latest version.
36925
+ */
36926
+ component_count: number;
36927
+ /**
36928
+ * Number of live canvases that import this library.
36929
+ */
36930
+ used_by: number;
36931
+ };
36033
36932
  /**
36034
36933
  * The settings a create accepts; only source is required, and the other groups keep their defaults when omitted.
36035
36934
  */
@@ -39614,6 +40513,27 @@ export type MediaProvenance = {
39614
40513
  */
39615
40514
  pipeline_run_id?: string;
39616
40515
  };
40516
+ /**
40517
+ * How this asset came to be when it is the recording of a live broadcast: the stream it was recorded from and when the broadcast started and ended. A recording is the broadcast’s own picture and sound, not generated content, so such an asset is never marked ai_generated.
40518
+ */
40519
+ export type MediaRecordingProvenance = {
40520
+ /**
40521
+ * Always live_recording; it tells this record apart from the provenance of a generated or edited asset.
40522
+ */
40523
+ kind: 'live_recording';
40524
+ /**
40525
+ * Identifier of the live stream that was recorded (mst_ followed by 26 characters). List a library’s assets with live_stream_id to find every recording of one stream.
40526
+ */
40527
+ live_stream_id: string;
40528
+ /**
40529
+ * When the recorded broadcast began, as an RFC 3339 UTC timestamp. A stream recorded in several broadcasts has one asset per broadcast, each with its own start.
40530
+ */
40531
+ broadcast_started_at: MediaIsoTimestamp;
40532
+ /**
40533
+ * When the recorded broadcast ended, as an RFC 3339 UTC timestamp.
40534
+ */
40535
+ broadcast_ended_at: MediaIsoTimestamp;
40536
+ };
39617
40537
  /**
39618
40538
  * One dominant colour of an analysed image.
39619
40539
  */
@@ -40057,7 +40977,7 @@ export type MediaSearchAsset = {
40057
40977
  /**
40058
40978
  * How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
40059
40979
  */
40060
- provenance?: MediaProvenance;
40980
+ provenance?: MediaProvenance | MediaRecordingProvenance;
40061
40981
  /**
40062
40982
  * Console page that shows this asset in the media library: https://console.deepraxis.com/media/{library_id}?asset_id={asset_id} (the console host carries the environment, for example console-develop on develop). Give this link to a person instead of the bare asset_id.
40063
40983
  */
@@ -42412,6 +43332,23 @@ export type OwnFileMisalignmentErrorDetailsResource = {
42412
43332
  */
42413
43333
  steer?: OwnFileMisalignmentSteer;
42414
43334
  };
43335
+ /**
43336
+ * The three quantities a stream is metered in.
43337
+ */
43338
+ export type MediaStreamUsageNumbers = {
43339
+ /**
43340
+ * Seconds the stream was live, to the millisecond.
43341
+ */
43342
+ stream_seconds: number;
43343
+ /**
43344
+ * Seconds of processing (pipeline processors and alert judgments) run for the stream, to the millisecond.
43345
+ */
43346
+ processor_seconds: number;
43347
+ /**
43348
+ * Bytes recorded from the stream.
43349
+ */
43350
+ recorded_bytes: number;
43351
+ };
42415
43352
  /**
42416
43353
  * Audio output data or reference
42417
43354
  */
@@ -46092,10 +47029,6 @@ export type OrganizationChainDepartment = {
46092
47029
  * Department name.
46093
47030
  */
46094
47031
  name: string;
46095
- /**
46096
- * Charter text of this department; null when none has been written. Charters of all departments on the path apply to the position.
46097
- */
46098
- charter: string | null;
46099
47032
  };
46100
47033
  /**
46101
47034
  * The job a position was opened from.
@@ -49576,6 +50509,90 @@ export type AgentManaged206Writable = {
49576
50509
  export type AgentManaged246Writable = {
49577
50510
  [key: string]: string;
49578
50511
  };
50512
+ /**
50513
+ * A new pipeline. Unknown fields answer 400.
50514
+ */
50515
+ export type CreateMediaPipelineRequestWritable = {
50516
+ /**
50517
+ * The pipeline's name.
50518
+ */
50519
+ name: string;
50520
+ /**
50521
+ * The ordered processors and sinks; empty by default.
50522
+ */
50523
+ elements?: Array<MediaPipelineElementWritable>;
50524
+ /**
50525
+ * The alert rules; empty by default.
50526
+ */
50527
+ alert_rules?: Array<MediaPipelineAlertRule>;
50528
+ };
50529
+ /**
50530
+ * A pipeline, the processing a stream runs while it is live.
50531
+ */
50532
+ export type MediaPipelineWritable = {
50533
+ /**
50534
+ * The pipeline's id; msp_ followed by 26 lowercase base32 characters.
50535
+ */
50536
+ id: string;
50537
+ /**
50538
+ * Always media.pipeline.
50539
+ */
50540
+ object: 'media.pipeline';
50541
+ /**
50542
+ * The pipeline's name.
50543
+ */
50544
+ name: string;
50545
+ /**
50546
+ * The ordered processors and sinks.
50547
+ */
50548
+ elements: Array<MediaPipelineElementWritable>;
50549
+ /**
50550
+ * The alert rules.
50551
+ */
50552
+ alert_rules: Array<MediaPipelineAlertRule>;
50553
+ /**
50554
+ * When the pipeline was created.
50555
+ */
50556
+ created_at: string;
50557
+ /**
50558
+ * When it last changed.
50559
+ */
50560
+ updated_at: string;
50561
+ };
50562
+ /**
50563
+ * One page of pipelines.
50564
+ */
50565
+ export type MediaPipelineListWritable = {
50566
+ /**
50567
+ * Always list.
50568
+ */
50569
+ object: 'list';
50570
+ /**
50571
+ * The pipelines of this page
50572
+ */
50573
+ data: Array<MediaPipelineWritable>;
50574
+ /**
50575
+ * True when another page follows; pass the last id as starting_after.
50576
+ */
50577
+ has_more: boolean;
50578
+ };
50579
+ /**
50580
+ * The fields to replace; at least one. Unknown fields answer 400.
50581
+ */
50582
+ export type UpdateMediaPipelineRequestWritable = {
50583
+ /**
50584
+ * The new name.
50585
+ */
50586
+ name?: string;
50587
+ /**
50588
+ * The new element list
50589
+ */
50590
+ elements?: Array<MediaPipelineElementWritable>;
50591
+ /**
50592
+ * The new rules
50593
+ */
50594
+ alert_rules?: Array<MediaPipelineAlertRule>;
50595
+ };
49579
50596
  /**
49580
50597
  * Models to use for completion
49581
50598
  */
@@ -50058,7 +51075,7 @@ export type MediaAssetWritable = {
50058
51075
  /**
50059
51076
  * How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
50060
51077
  */
50061
- provenance?: MediaProvenance;
51078
+ provenance?: MediaProvenance | MediaRecordingProvenance;
50062
51079
  /**
50063
51080
  * Console page that shows this asset in the media library: https://console.deepraxis.com/media/{library_id}?asset_id={asset_id} (the console host carries the environment, for example console-develop on develop). Give this link to a person instead of the bare asset_id.
50064
51081
  */
@@ -50165,6 +51182,51 @@ export type MediaSemanticSearchResultWritable = {
50165
51182
  export type AgentManaged193Writable = {
50166
51183
  [key: string]: unknown;
50167
51184
  };
51185
+ /**
51186
+ * One element of a pipeline, told by type. transcribe {language?, hot_words?}; describe_frames {interval_s 5 to 300 default 10, prompt?, model?}; match_keywords {keywords}; sinks events, webhook {url} and agent {session_id}.
51187
+ */
51188
+ export type MediaPipelineElementWritable = {
51189
+ /**
51190
+ * Which processor or sink this element is. transcribe turns the speech into transcript events; describe_frames describes one keyframe every interval_s; match_keywords looks for words in the transcript; events is the stream's own event log, always on; webhook posts the results to a url; agent sends them to an agent session.
51191
+ */
51192
+ type: 'transcribe' | 'describe_frames' | 'match_keywords' | 'events' | 'webhook' | 'agent';
51193
+ /**
51194
+ * transcribe: a language tag such as zh or en-US.
51195
+ */
51196
+ language?: string;
51197
+ /**
51198
+ * transcribe: words the recogniser should favour, at most 100.
51199
+ */
51200
+ hot_words?: Array<string>;
51201
+ /**
51202
+ * describe_frames: seconds between two described frames.
51203
+ */
51204
+ interval_s?: number;
51205
+ /**
51206
+ * describe_frames: what to ask the model about the frame; the default asks what is happening in the picture in a sentence or two.
51207
+ */
51208
+ prompt?: string;
51209
+ /**
51210
+ * describe_frames: the vision model; omit it to use the platform's default.
51211
+ */
51212
+ model?: string;
51213
+ /**
51214
+ * match_keywords: the words to look for in the transcript.
51215
+ */
51216
+ keywords?: Array<string>;
51217
+ /**
51218
+ * webhook: the https or http address results are posted to.
51219
+ */
51220
+ url?: string;
51221
+ /**
51222
+ * webhook: a stable name for this webhook inside the pipeline (letters, digits, - and _, up to 64); whk_ followed by its position when you send none.
51223
+ */
51224
+ id?: string;
51225
+ /**
51226
+ * agent: the agent session that receives the results.
51227
+ */
51228
+ session_id?: string;
51229
+ };
50168
51230
  /**
50169
51231
  * Configuration for the openrouter:files server tool
50170
51232
  */
@@ -50615,7 +51677,7 @@ export type MediaSearchAssetWritable = {
50615
51677
  /**
50616
51678
  * How this asset was generated or edited, including the model, prompt and references. Omitted on uploaded, imported and legacy assets.
50617
51679
  */
50618
- provenance?: MediaProvenance;
51680
+ provenance?: MediaProvenance | MediaRecordingProvenance;
50619
51681
  /**
50620
51682
  * Console page that shows this asset in the media library: https://console.deepraxis.com/media/{library_id}?asset_id={asset_id} (the console host carries the environment, for example console-develop on develop). Give this link to a person instead of the bare asset_id.
50621
51683
  */
@@ -61088,6 +62150,92 @@ export type GetSessionContextResponses = {
61088
62150
  };
61089
62151
  };
61090
62152
  export type GetSessionContextResponse = GetSessionContextResponses[keyof GetSessionContextResponses];
62153
+ export type GetSessionPromptRevsData = {
62154
+ body?: never;
62155
+ path: {
62156
+ /**
62157
+ * Session id from session creation or listing, or the own face's session name for a main session.
62158
+ */
62159
+ session_id: string;
62160
+ };
62161
+ query: {
62162
+ /**
62163
+ * Read this run's own record. Omit it to read the last record written, which moves only when the Rev set changes and may be several turns older than this call.
62164
+ */
62165
+ run_id?: string;
62166
+ /**
62167
+ * Must be `true`. Says you know this read constructs the session object once and that its startup may settle an interrupted turn. Anything else is 400 INVALID_PARAMS, refused before the session is touched.
62168
+ */
62169
+ acknowledge_wake: 'true';
62170
+ };
62171
+ url: '/agent/v1/sessions/{session_id}/prompt-revs';
62172
+ };
62173
+ export type GetSessionPromptRevsErrors = {
62174
+ /**
62175
+ * INVALID_PARAMS: acknowledge_wake is not `true`, run_id is empty, or a query parameter is unsupported or repeated.
62176
+ */
62177
+ 400: unknown;
62178
+ /**
62179
+ * Authentication required.
62180
+ */
62181
+ 401: unknown;
62182
+ /**
62183
+ * 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.
62184
+ */
62185
+ 403: AgentError;
62186
+ /**
62187
+ * No record, or no such session. The body carries only `reason`: `unknown_run` or `unknown_session`.
62188
+ */
62189
+ 404: {
62190
+ /**
62191
+ * unknown_run: no record was ever written for that run (or this session has recorded nothing yet). unknown_session: the session is absent or not readable by this caller.
62192
+ */
62193
+ reason: 'unknown_run' | 'unknown_session';
62194
+ };
62195
+ /**
62196
+ * Agent service failed
62197
+ */
62198
+ 502: unknown;
62199
+ /**
62200
+ * Agent service unavailable
62201
+ */
62202
+ 503: unknown;
62203
+ };
62204
+ export type GetSessionPromptRevsError = GetSessionPromptRevsErrors[keyof GetSessionPromptRevsErrors];
62205
+ export type GetSessionPromptRevsResponses = {
62206
+ /**
62207
+ * The turn's record: no prompt text, only the identifiers of what it ran on.
62208
+ */
62209
+ 200: {
62210
+ /**
62211
+ * The run this record belongs to; null when the last record was read, because that record is written when the Rev set moves and is not tied to a turn.
62212
+ */
62213
+ run_id: string | null;
62214
+ /**
62215
+ * The configuration-layer revision the turn pinned.
62216
+ */
62217
+ config_revision_id: string;
62218
+ /**
62219
+ * That revision's version number, for humans; null when the record carries none.
62220
+ */
62221
+ config_version: number | null;
62222
+ /**
62223
+ * One entry per platform input, keyed by the input's own name: section:<name> for a prompt section, plus catalog and tools. The value is that input's 8-hex content Rev, never its text.
62224
+ */
62225
+ platform: {
62226
+ [key: string]: string;
62227
+ };
62228
+ /**
62229
+ * When the record was taken, epoch milliseconds. Informational only: it never takes part in a comparison.
62230
+ */
62231
+ at: number;
62232
+ /**
62233
+ * Interrupted turns this read's own arrival settled; 0 when it settled none. Only a value above 0 is evidence about this call.
62234
+ */
62235
+ reaped_turns: number;
62236
+ };
62237
+ };
62238
+ export type GetSessionPromptRevsResponse = GetSessionPromptRevsResponses[keyof GetSessionPromptRevsResponses];
61091
62239
  export type ForkSessionData = {
61092
62240
  body: {
61093
62241
  /**
@@ -70130,6 +71278,700 @@ export type MetaDocsSearchResponses = {
70130
71278
  }>;
70131
71279
  };
70132
71280
  export type MetaDocsSearchResponse = MetaDocsSearchResponses[keyof MetaDocsSearchResponses];
71281
+ export type ListMediaStreamsData = {
71282
+ body?: never;
71283
+ path?: never;
71284
+ query?: {
71285
+ /**
71286
+ * How many streams one page holds, 1 to 100; default 20.
71287
+ */
71288
+ limit?: number;
71289
+ /**
71290
+ * The id of the last stream of the previous page, taken from that page's data; omit it for the first page. An id that is not a stream of your organization answers 400.
71291
+ */
71292
+ starting_after?: string;
71293
+ };
71294
+ url: '/media/v1/streams';
71295
+ };
71296
+ export type ListMediaStreamsErrors = {
71297
+ /**
71298
+ * limit is not an integer from 1 to 100, or starting_after is not a stream of your organization. Correct the parameter and send again.
71299
+ */
71300
+ 400: MediaStreamError;
71301
+ /**
71302
+ * The request carries no valid API key or session. Send a key of your organization.
71303
+ */
71304
+ 401: MediaStreamError;
71305
+ /**
71306
+ * Media Streams is not released for your organization (flag media-streams-public is off).
71307
+ */
71308
+ 404: MediaStreamError;
71309
+ };
71310
+ export type ListMediaStreamsError = ListMediaStreamsErrors[keyof ListMediaStreamsErrors];
71311
+ export type ListMediaStreamsResponses = {
71312
+ /**
71313
+ * One page of streams, newest first; has_more says whether another page follows.
71314
+ */
71315
+ 200: MediaStreamList;
71316
+ };
71317
+ export type ListMediaStreamsResponse = ListMediaStreamsResponses[keyof ListMediaStreamsResponses];
71318
+ export type CreateMediaStreamData = {
71319
+ body: CreateMediaStreamRequest;
71320
+ path?: never;
71321
+ query?: never;
71322
+ url: '/media/v1/streams';
71323
+ };
71324
+ export type CreateMediaStreamErrors = {
71325
+ /**
71326
+ * A field is invalid: the error names it (for example input.url when the address is SRT or not https, http, rtmp or rtmps, or reconnect_window_s outside 0 to 1800). Correct that field and send again.
71327
+ */
71328
+ 400: MediaStreamError;
71329
+ /**
71330
+ * The request carries no valid API key or session. Send a key of your organization.
71331
+ */
71332
+ 401: MediaStreamError;
71333
+ /**
71334
+ * Media Streams is not released for your organization (flag media-streams-public is off). Ask the platform to enable it, or use another surface.
71335
+ */
71336
+ 404: MediaStreamError;
71337
+ /**
71338
+ * This is a push stream and push is not available in this environment; create a pull stream, or retry later.
71339
+ */
71340
+ 503: MediaStreamError;
71341
+ };
71342
+ export type CreateMediaStreamError = CreateMediaStreamErrors[keyof CreateMediaStreamErrors];
71343
+ export type CreateMediaStreamResponses = {
71344
+ /**
71345
+ * The stream, idle. A push stream also carries push; keep its token, it is not shown again by streams.retrieve.
71346
+ */
71347
+ 201: MediaStreamWithPush;
71348
+ };
71349
+ export type CreateMediaStreamResponse = CreateMediaStreamResponses[keyof CreateMediaStreamResponses];
71350
+ export type DeleteMediaStreamData = {
71351
+ body?: never;
71352
+ path: {
71353
+ /**
71354
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71355
+ */
71356
+ stream_id: string;
71357
+ };
71358
+ query?: never;
71359
+ url: '/media/v1/streams/{stream_id}';
71360
+ };
71361
+ export type DeleteMediaStreamErrors = {
71362
+ /**
71363
+ * No stream with this id in your organization, or Media Streams is not released for it.
71364
+ */
71365
+ 404: MediaStreamError;
71366
+ /**
71367
+ * The stream is waiting or active. Call streams.disable.create first, then delete it.
71368
+ */
71369
+ 409: MediaStreamError;
71370
+ };
71371
+ export type DeleteMediaStreamError = DeleteMediaStreamErrors[keyof DeleteMediaStreamErrors];
71372
+ export type DeleteMediaStreamResponses = {
71373
+ /**
71374
+ * The stream is deleted.
71375
+ */
71376
+ 200: MediaStreamDeleted;
71377
+ };
71378
+ export type DeleteMediaStreamResponse = DeleteMediaStreamResponses[keyof DeleteMediaStreamResponses];
71379
+ export type GetMediaStreamData = {
71380
+ body?: never;
71381
+ path: {
71382
+ /**
71383
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71384
+ */
71385
+ stream_id: string;
71386
+ };
71387
+ query?: never;
71388
+ url: '/media/v1/streams/{stream_id}';
71389
+ };
71390
+ export type GetMediaStreamErrors = {
71391
+ /**
71392
+ * The request carries no valid API key or session. Send a key of your organization.
71393
+ */
71394
+ 401: MediaStreamError;
71395
+ /**
71396
+ * No stream with this id in your organization, or Media Streams is not released for it. List your streams to find the id.
71397
+ */
71398
+ 404: MediaStreamError;
71399
+ };
71400
+ export type GetMediaStreamError = GetMediaStreamErrors[keyof GetMediaStreamErrors];
71401
+ export type GetMediaStreamResponses = {
71402
+ /**
71403
+ * The stream as it is now.
71404
+ */
71405
+ 200: MediaStream;
71406
+ };
71407
+ export type GetMediaStreamResponse = GetMediaStreamResponses[keyof GetMediaStreamResponses];
71408
+ export type UpdateMediaStreamData = {
71409
+ body: UpdateMediaStreamRequest;
71410
+ path: {
71411
+ /**
71412
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71413
+ */
71414
+ stream_id: string;
71415
+ };
71416
+ query?: never;
71417
+ url: '/media/v1/streams/{stream_id}';
71418
+ };
71419
+ export type UpdateMediaStreamErrors = {
71420
+ /**
71421
+ * The patch is empty, carries an unknown field or an invalid value (the error names the field). Correct it and send again.
71422
+ */
71423
+ 400: MediaStreamError;
71424
+ /**
71425
+ * No stream with this id in your organization, or Media Streams is not released for it.
71426
+ */
71427
+ 404: MediaStreamError;
71428
+ /**
71429
+ * The source of a waiting or active pull stream cannot change. Disable the stream with streams.disable.create, change it, then enable it again.
71430
+ */
71431
+ 409: MediaStreamError;
71432
+ };
71433
+ export type UpdateMediaStreamError = UpdateMediaStreamErrors[keyof UpdateMediaStreamErrors];
71434
+ export type UpdateMediaStreamResponses = {
71435
+ /**
71436
+ * The stream after the change.
71437
+ */
71438
+ 200: MediaStream;
71439
+ };
71440
+ export type UpdateMediaStreamResponse = UpdateMediaStreamResponses[keyof UpdateMediaStreamResponses];
71441
+ export type EnableMediaStreamData = {
71442
+ body?: never;
71443
+ path: {
71444
+ /**
71445
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71446
+ */
71447
+ stream_id: string;
71448
+ };
71449
+ query?: never;
71450
+ url: '/media/v1/streams/{stream_id}/enable';
71451
+ };
71452
+ export type EnableMediaStreamErrors = {
71453
+ /**
71454
+ * No stream with this id in your organization, or Media Streams is not released for it.
71455
+ */
71456
+ 404: MediaStreamError;
71457
+ /**
71458
+ * The stream is not disabled; only a disabled stream can be enabled.
71459
+ */
71460
+ 409: MediaStreamError;
71461
+ };
71462
+ export type EnableMediaStreamError = EnableMediaStreamErrors[keyof EnableMediaStreamErrors];
71463
+ export type EnableMediaStreamResponses = {
71464
+ /**
71465
+ * The stream, now idle.
71466
+ */
71467
+ 200: MediaStream;
71468
+ };
71469
+ export type EnableMediaStreamResponse = EnableMediaStreamResponses[keyof EnableMediaStreamResponses];
71470
+ export type DisableMediaStreamData = {
71471
+ body?: never;
71472
+ path: {
71473
+ /**
71474
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71475
+ */
71476
+ stream_id: string;
71477
+ };
71478
+ query?: never;
71479
+ url: '/media/v1/streams/{stream_id}/disable';
71480
+ };
71481
+ export type DisableMediaStreamErrors = {
71482
+ /**
71483
+ * No stream with this id in your organization, or Media Streams is not released for it.
71484
+ */
71485
+ 404: MediaStreamError;
71486
+ };
71487
+ export type DisableMediaStreamError = DisableMediaStreamErrors[keyof DisableMediaStreamErrors];
71488
+ export type DisableMediaStreamResponses = {
71489
+ /**
71490
+ * The stream, now disabled.
71491
+ */
71492
+ 200: MediaStream;
71493
+ };
71494
+ export type DisableMediaStreamResponse = DisableMediaStreamResponses[keyof DisableMediaStreamResponses];
71495
+ export type CreateMediaStreamSubscriptionData = {
71496
+ body?: never;
71497
+ path: {
71498
+ /**
71499
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71500
+ */
71501
+ stream_id: string;
71502
+ };
71503
+ query?: never;
71504
+ url: '/media/v1/streams/{stream_id}/subscribe-token';
71505
+ };
71506
+ export type CreateMediaStreamSubscriptionErrors = {
71507
+ /**
71508
+ * The request carries no valid API key or session. Send a key of your organization.
71509
+ */
71510
+ 401: MediaStreamError;
71511
+ /**
71512
+ * No stream with this id in your organization, or Media Streams is not released for it. List your streams to find the id.
71513
+ */
71514
+ 404: MediaStreamError;
71515
+ /**
71516
+ * Subscribing is not available in this environment; retry later.
71517
+ */
71518
+ 503: MediaStreamError;
71519
+ };
71520
+ export type CreateMediaStreamSubscriptionError = CreateMediaStreamSubscriptionErrors[keyof CreateMediaStreamSubscriptionErrors];
71521
+ export type CreateMediaStreamSubscriptionResponses = {
71522
+ /**
71523
+ * The socket address and its capability.
71524
+ */
71525
+ 200: MediaStreamSubscription;
71526
+ };
71527
+ export type CreateMediaStreamSubscriptionResponse = CreateMediaStreamSubscriptionResponses[keyof CreateMediaStreamSubscriptionResponses];
71528
+ export type CreateMediaStreamPlaybackData = {
71529
+ body?: never;
71530
+ path: {
71531
+ /**
71532
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71533
+ */
71534
+ stream_id: string;
71535
+ };
71536
+ query?: never;
71537
+ url: '/media/v1/streams/{stream_id}/playback-token';
71538
+ };
71539
+ export type CreateMediaStreamPlaybackErrors = {
71540
+ /**
71541
+ * The request carries no valid API key or session. Send a key of your organization.
71542
+ */
71543
+ 401: MediaStreamError;
71544
+ /**
71545
+ * No stream with this id in your organization, or Media Streams is not released for it. List your streams to find the id.
71546
+ */
71547
+ 404: MediaStreamError;
71548
+ /**
71549
+ * The stream has nothing to play: set playback.enabled to true (streams.update) or record it automatically, then ask again.
71550
+ */
71551
+ 409: MediaStreamError;
71552
+ };
71553
+ export type CreateMediaStreamPlaybackError = CreateMediaStreamPlaybackErrors[keyof CreateMediaStreamPlaybackErrors];
71554
+ export type CreateMediaStreamPlaybackResponses = {
71555
+ /**
71556
+ * The playlist address and its capability.
71557
+ */
71558
+ 200: MediaStreamPlayback;
71559
+ };
71560
+ export type CreateMediaStreamPlaybackResponse = CreateMediaStreamPlaybackResponses[keyof CreateMediaStreamPlaybackResponses];
71561
+ export type GetMediaStreamLivePlaylistData = {
71562
+ body?: never;
71563
+ path: {
71564
+ /**
71565
+ * The stream's id, as in the address streams.playbackToken returned.
71566
+ */
71567
+ stream_id: string;
71568
+ };
71569
+ query: {
71570
+ /**
71571
+ * The playback token from the address streams.playbackToken returned; an hour of life.
71572
+ */
71573
+ token: string;
71574
+ };
71575
+ url: '/media/v1/streams/{stream_id}/live.m3u8';
71576
+ };
71577
+ export type GetMediaStreamLivePlaylistErrors = {
71578
+ /**
71579
+ * The token is missing, wrong or expired. Mint a new address.
71580
+ */
71581
+ 401: MediaStreamError;
71582
+ /**
71583
+ * No such stream.
71584
+ */
71585
+ 404: MediaStreamError;
71586
+ /**
71587
+ * The broadcast has no segments yet (the stream is waiting for its source); ask again in a few seconds.
71588
+ */
71589
+ 409: MediaStreamError;
71590
+ };
71591
+ export type GetMediaStreamLivePlaylistError = GetMediaStreamLivePlaylistErrors[keyof GetMediaStreamLivePlaylistErrors];
71592
+ export type GetMediaStreamLivePlaylistResponses = {
71593
+ /**
71594
+ * The playlist, application/vnd.apple.mpegurl.
71595
+ */
71596
+ 200: string;
71597
+ };
71598
+ export type GetMediaStreamLivePlaylistResponse = GetMediaStreamLivePlaylistResponses[keyof GetMediaStreamLivePlaylistResponses];
71599
+ export type ResetMediaStreamTokenData = {
71600
+ body?: never;
71601
+ path: {
71602
+ /**
71603
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71604
+ */
71605
+ stream_id: string;
71606
+ };
71607
+ query?: never;
71608
+ url: '/media/v1/streams/{stream_id}/reset-token';
71609
+ };
71610
+ export type ResetMediaStreamTokenErrors = {
71611
+ /**
71612
+ * No stream with this id in your organization, or Media Streams is not released for it.
71613
+ */
71614
+ 404: MediaStreamError;
71615
+ /**
71616
+ * The stream is a pull stream and has no push token.
71617
+ */
71618
+ 409: MediaStreamError;
71619
+ /**
71620
+ * Push is not available in this environment; retry later.
71621
+ */
71622
+ 503: MediaStreamError;
71623
+ };
71624
+ export type ResetMediaStreamTokenError = ResetMediaStreamTokenErrors[keyof ResetMediaStreamTokenErrors];
71625
+ export type ResetMediaStreamTokenResponses = {
71626
+ /**
71627
+ * The stream with its new push credential.
71628
+ */
71629
+ 200: MediaStreamWithPush;
71630
+ };
71631
+ export type ResetMediaStreamTokenResponse = ResetMediaStreamTokenResponses[keyof ResetMediaStreamTokenResponses];
71632
+ export type ListMediaStreamEventsData = {
71633
+ body?: never;
71634
+ path: {
71635
+ /**
71636
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71637
+ */
71638
+ stream_id: string;
71639
+ };
71640
+ query?: {
71641
+ /**
71642
+ * The highest seq you already have; you receive events with a greater seq. Omit or 0 to read from the start of the retained log.
71643
+ */
71644
+ after?: number;
71645
+ /**
71646
+ * How many events one page holds, 1 to 100; default 100.
71647
+ */
71648
+ limit?: number;
71649
+ };
71650
+ url: '/media/v1/streams/{stream_id}/events';
71651
+ };
71652
+ export type ListMediaStreamEventsErrors = {
71653
+ /**
71654
+ * after is not a sequence number, or limit is not an integer from 1 to 100. Correct the parameter and send again.
71655
+ */
71656
+ 400: MediaStreamError;
71657
+ /**
71658
+ * No stream with this id in your organization, or Media Streams is not released for it.
71659
+ */
71660
+ 404: MediaStreamError;
71661
+ };
71662
+ export type ListMediaStreamEventsError = ListMediaStreamEventsErrors[keyof ListMediaStreamEventsErrors];
71663
+ export type ListMediaStreamEventsResponses = {
71664
+ /**
71665
+ * The events after the given seq, oldest first.
71666
+ */
71667
+ 200: MediaStreamEventList;
71668
+ };
71669
+ export type ListMediaStreamEventsResponse = ListMediaStreamEventsResponses[keyof ListMediaStreamEventsResponses];
71670
+ export type ListMediaPipelinesData = {
71671
+ body?: never;
71672
+ path?: never;
71673
+ query?: {
71674
+ /**
71675
+ * How many pipelines one page holds, 1 to 100; default 20.
71676
+ */
71677
+ limit?: number;
71678
+ /**
71679
+ * The id of the last pipeline of the previous page, taken from that page's data; omit it for the first page. An id that is not a pipeline of your organization answers 400.
71680
+ */
71681
+ starting_after?: string;
71682
+ };
71683
+ url: '/media/v1/pipelines';
71684
+ };
71685
+ export type ListMediaPipelinesErrors = {
71686
+ /**
71687
+ * limit is not an integer from 1 to 100, or starting_after is not a pipeline of your organization. Correct the parameter and send again.
71688
+ */
71689
+ 400: MediaStreamError;
71690
+ /**
71691
+ * The request carries no valid API key or session. Send a key of your organization.
71692
+ */
71693
+ 401: MediaStreamError;
71694
+ /**
71695
+ * Media Streams is not released for your organization (flag media-streams-public is off).
71696
+ */
71697
+ 404: MediaStreamError;
71698
+ };
71699
+ export type ListMediaPipelinesError = ListMediaPipelinesErrors[keyof ListMediaPipelinesErrors];
71700
+ export type ListMediaPipelinesResponses = {
71701
+ /**
71702
+ * One page of pipelines, newest first; has_more says whether another page follows.
71703
+ */
71704
+ 200: MediaPipelineList;
71705
+ };
71706
+ export type ListMediaPipelinesResponse = ListMediaPipelinesResponses[keyof ListMediaPipelinesResponses];
71707
+ export type CreateMediaPipelineData = {
71708
+ body: CreateMediaPipelineRequestWritable;
71709
+ path?: never;
71710
+ query?: never;
71711
+ url: '/media/v1/pipelines';
71712
+ };
71713
+ export type CreateMediaPipelineErrors = {
71714
+ /**
71715
+ * A field is invalid: the error names it (for example elements[0].interval_s outside 5 to 300, or a second transcribe element). Correct that field and send again.
71716
+ */
71717
+ 400: MediaStreamError;
71718
+ /**
71719
+ * The request carries no valid API key or session. Send a key of your organization.
71720
+ */
71721
+ 401: MediaStreamError;
71722
+ /**
71723
+ * Media Streams is not released for your organization (flag media-streams-public is off).
71724
+ */
71725
+ 404: MediaStreamError;
71726
+ };
71727
+ export type CreateMediaPipelineError = CreateMediaPipelineErrors[keyof CreateMediaPipelineErrors];
71728
+ export type CreateMediaPipelineResponses = {
71729
+ /**
71730
+ * The pipeline.
71731
+ */
71732
+ 201: MediaPipeline;
71733
+ };
71734
+ export type CreateMediaPipelineResponse = CreateMediaPipelineResponses[keyof CreateMediaPipelineResponses];
71735
+ export type DeleteMediaPipelineData = {
71736
+ body?: never;
71737
+ path: {
71738
+ /**
71739
+ * The pipeline's id, the id field returned by pipelines.create or pipelines.list (msp_ followed by 26 lowercase base32 characters); a pipeline of another organization answers 404.
71740
+ */
71741
+ pipeline_id: string;
71742
+ };
71743
+ query?: never;
71744
+ url: '/media/v1/pipelines/{pipeline_id}';
71745
+ };
71746
+ export type DeleteMediaPipelineErrors = {
71747
+ /**
71748
+ * No pipeline with this id in your organization, or Media Streams is not released for it.
71749
+ */
71750
+ 404: MediaStreamError;
71751
+ /**
71752
+ * A stream still names this pipeline (code PIPELINE_IN_USE). Set that stream's pipeline_id to null or delete the stream, then delete the pipeline.
71753
+ */
71754
+ 409: MediaStreamError;
71755
+ };
71756
+ export type DeleteMediaPipelineError = DeleteMediaPipelineErrors[keyof DeleteMediaPipelineErrors];
71757
+ export type DeleteMediaPipelineResponses = {
71758
+ /**
71759
+ * The pipeline is deleted.
71760
+ */
71761
+ 200: MediaPipelineDeleted;
71762
+ };
71763
+ export type DeleteMediaPipelineResponse = DeleteMediaPipelineResponses[keyof DeleteMediaPipelineResponses];
71764
+ export type GetMediaPipelineData = {
71765
+ body?: never;
71766
+ path: {
71767
+ /**
71768
+ * The pipeline's id, the id field returned by pipelines.create or pipelines.list (msp_ followed by 26 lowercase base32 characters); a pipeline of another organization answers 404.
71769
+ */
71770
+ pipeline_id: string;
71771
+ };
71772
+ query?: never;
71773
+ url: '/media/v1/pipelines/{pipeline_id}';
71774
+ };
71775
+ export type GetMediaPipelineErrors = {
71776
+ /**
71777
+ * The request carries no valid API key or session. Send a key of your organization.
71778
+ */
71779
+ 401: MediaStreamError;
71780
+ /**
71781
+ * No pipeline with this id in your organization, or Media Streams is not released for it. List your pipelines to find the id.
71782
+ */
71783
+ 404: MediaStreamError;
71784
+ };
71785
+ export type GetMediaPipelineError = GetMediaPipelineErrors[keyof GetMediaPipelineErrors];
71786
+ export type GetMediaPipelineResponses = {
71787
+ /**
71788
+ * The pipeline as it is now.
71789
+ */
71790
+ 200: MediaPipeline;
71791
+ };
71792
+ export type GetMediaPipelineResponse = GetMediaPipelineResponses[keyof GetMediaPipelineResponses];
71793
+ export type UpdateMediaPipelineData = {
71794
+ body: UpdateMediaPipelineRequestWritable;
71795
+ path: {
71796
+ /**
71797
+ * The pipeline's id, the id field returned by pipelines.create or pipelines.list (msp_ followed by 26 lowercase base32 characters); a pipeline of another organization answers 404.
71798
+ */
71799
+ pipeline_id: string;
71800
+ };
71801
+ query?: never;
71802
+ url: '/media/v1/pipelines/{pipeline_id}';
71803
+ };
71804
+ export type UpdateMediaPipelineErrors = {
71805
+ /**
71806
+ * A field is invalid or the patch changes nothing: the error names the field. Correct it and send again.
71807
+ */
71808
+ 400: MediaStreamError;
71809
+ /**
71810
+ * The request carries no valid API key or session. Send a key of your organization.
71811
+ */
71812
+ 401: MediaStreamError;
71813
+ /**
71814
+ * No pipeline with this id in your organization, or Media Streams is not released for it.
71815
+ */
71816
+ 404: MediaStreamError;
71817
+ };
71818
+ export type UpdateMediaPipelineError = UpdateMediaPipelineErrors[keyof UpdateMediaPipelineErrors];
71819
+ export type UpdateMediaPipelineResponses = {
71820
+ /**
71821
+ * The pipeline after the change.
71822
+ */
71823
+ 200: MediaPipeline;
71824
+ };
71825
+ export type UpdateMediaPipelineResponse = UpdateMediaPipelineResponses[keyof UpdateMediaPipelineResponses];
71826
+ export type ListMediaStreamOutputsData = {
71827
+ body?: never;
71828
+ path: {
71829
+ /**
71830
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71831
+ */
71832
+ stream_id: string;
71833
+ };
71834
+ query?: never;
71835
+ url: '/media/v1/streams/{stream_id}/outputs';
71836
+ };
71837
+ export type ListMediaStreamOutputsErrors = {
71838
+ /**
71839
+ * No stream with this id in your organization, or Media Streams is not released for it.
71840
+ */
71841
+ 404: MediaStreamError;
71842
+ };
71843
+ export type ListMediaStreamOutputsError = ListMediaStreamOutputsErrors[keyof ListMediaStreamOutputsErrors];
71844
+ export type ListMediaStreamOutputsResponses = {
71845
+ /**
71846
+ * The stream's outputs.
71847
+ */
71848
+ 200: MediaStreamOutputList;
71849
+ };
71850
+ export type ListMediaStreamOutputsResponse = ListMediaStreamOutputsResponses[keyof ListMediaStreamOutputsResponses];
71851
+ export type CreateMediaStreamOutputData = {
71852
+ body: CreateMediaStreamOutputRequest;
71853
+ path: {
71854
+ /**
71855
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71856
+ */
71857
+ stream_id: string;
71858
+ };
71859
+ query?: never;
71860
+ url: '/media/v1/streams/{stream_id}/outputs';
71861
+ };
71862
+ export type CreateMediaStreamOutputErrors = {
71863
+ /**
71864
+ * A field is invalid (the error names it: url that is not rtmp or rtmps, names a private host or has no application, or a stream_key with spaces). Correct it and send again.
71865
+ */
71866
+ 400: MediaStreamError;
71867
+ /**
71868
+ * No stream with this id in your organization, or Media Streams is not released for it.
71869
+ */
71870
+ 404: MediaStreamError;
71871
+ /**
71872
+ * The stream already has 5 outputs (code OUTPUT_LIMIT_REACHED). Delete one with streams.outputs.delete first.
71873
+ */
71874
+ 429: MediaStreamError;
71875
+ };
71876
+ export type CreateMediaStreamOutputError = CreateMediaStreamOutputErrors[keyof CreateMediaStreamOutputErrors];
71877
+ export type CreateMediaStreamOutputResponses = {
71878
+ /**
71879
+ * The output, idle or starting.
71880
+ */
71881
+ 201: MediaStreamOutput;
71882
+ };
71883
+ export type CreateMediaStreamOutputResponse = CreateMediaStreamOutputResponses[keyof CreateMediaStreamOutputResponses];
71884
+ export type DeleteMediaStreamOutputData = {
71885
+ body?: never;
71886
+ path: {
71887
+ /**
71888
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71889
+ */
71890
+ stream_id: string;
71891
+ /**
71892
+ * The output's id, the id field returned by streams.outputs.create or streams.outputs.list (mso_ followed by 26 lowercase base32 characters); an output of another stream or organization answers 404.
71893
+ */
71894
+ output_id: string;
71895
+ };
71896
+ query?: never;
71897
+ url: '/media/v1/streams/{stream_id}/outputs/{output_id}';
71898
+ };
71899
+ export type DeleteMediaStreamOutputErrors = {
71900
+ /**
71901
+ * No such stream or output in your organization, or Media Streams is not released for it.
71902
+ */
71903
+ 404: MediaStreamError;
71904
+ };
71905
+ export type DeleteMediaStreamOutputError = DeleteMediaStreamOutputErrors[keyof DeleteMediaStreamOutputErrors];
71906
+ export type DeleteMediaStreamOutputResponses = {
71907
+ /**
71908
+ * The output is deleted.
71909
+ */
71910
+ 200: MediaStreamOutputDeleted;
71911
+ };
71912
+ export type DeleteMediaStreamOutputResponse = DeleteMediaStreamOutputResponses[keyof DeleteMediaStreamOutputResponses];
71913
+ export type GetMediaStreamOutputData = {
71914
+ body?: never;
71915
+ path: {
71916
+ /**
71917
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71918
+ */
71919
+ stream_id: string;
71920
+ /**
71921
+ * The output's id, the id field returned by streams.outputs.create or streams.outputs.list (mso_ followed by 26 lowercase base32 characters); an output of another stream or organization answers 404.
71922
+ */
71923
+ output_id: string;
71924
+ };
71925
+ query?: never;
71926
+ url: '/media/v1/streams/{stream_id}/outputs/{output_id}';
71927
+ };
71928
+ export type GetMediaStreamOutputErrors = {
71929
+ /**
71930
+ * No such stream or output in your organization, or Media Streams is not released for it.
71931
+ */
71932
+ 404: MediaStreamError;
71933
+ };
71934
+ export type GetMediaStreamOutputError = GetMediaStreamOutputErrors[keyof GetMediaStreamOutputErrors];
71935
+ export type GetMediaStreamOutputResponses = {
71936
+ /**
71937
+ * The output.
71938
+ */
71939
+ 200: MediaStreamOutput;
71940
+ };
71941
+ export type GetMediaStreamOutputResponse = GetMediaStreamOutputResponses[keyof GetMediaStreamOutputResponses];
71942
+ export type UpdateMediaStreamOutputData = {
71943
+ body: UpdateMediaStreamOutputRequest;
71944
+ path: {
71945
+ /**
71946
+ * The stream's id, the id field returned by streams.create or streams.list (mst_ followed by 26 lowercase base32 characters); a stream of another organization answers 404.
71947
+ */
71948
+ stream_id: string;
71949
+ /**
71950
+ * The output's id, the id field returned by streams.outputs.create or streams.outputs.list (mso_ followed by 26 lowercase base32 characters); an output of another stream or organization answers 404.
71951
+ */
71952
+ output_id: string;
71953
+ };
71954
+ query?: never;
71955
+ url: '/media/v1/streams/{stream_id}/outputs/{output_id}';
71956
+ };
71957
+ export type UpdateMediaStreamOutputErrors = {
71958
+ /**
71959
+ * The patch is empty, carries an unknown field or an invalid value (the error names the field). Correct it and send again.
71960
+ */
71961
+ 400: MediaStreamError;
71962
+ /**
71963
+ * No such stream or output in your organization, or Media Streams is not released for it.
71964
+ */
71965
+ 404: MediaStreamError;
71966
+ };
71967
+ export type UpdateMediaStreamOutputError = UpdateMediaStreamOutputErrors[keyof UpdateMediaStreamOutputErrors];
71968
+ export type UpdateMediaStreamOutputResponses = {
71969
+ /**
71970
+ * The output after the change.
71971
+ */
71972
+ 200: MediaStreamOutput;
71973
+ };
71974
+ export type UpdateMediaStreamOutputResponse = UpdateMediaStreamOutputResponses[keyof UpdateMediaStreamOutputResponses];
70133
71975
  export type ListModelsData = {
70134
71976
  body?: never;
70135
71977
  path?: never;
@@ -78252,10 +80094,10 @@ export type DissolveOrganizationDepartmentResponses = {
78252
80094
  };
78253
80095
  export type DissolveOrganizationDepartmentResponse = DissolveOrganizationDepartmentResponses[keyof DissolveOrganizationDepartmentResponses];
78254
80096
  export type AmendOrganizationDepartmentCharterData = {
78255
- body: OrganizationAmendCharterRequest;
80097
+ body?: never;
78256
80098
  path: {
78257
80099
  /**
78258
- * Department id (dept_...) whose charter changes, from the departments list.
80100
+ * Department id (dept_...) whose charter used to change here.
78259
80101
  */
78260
80102
  id: string;
78261
80103
  };
@@ -78264,34 +80106,11 @@ export type AmendOrganizationDepartmentCharterData = {
78264
80106
  };
78265
80107
  export type AmendOrganizationDepartmentCharterErrors = {
78266
80108
  /**
78267
- * INVALID_PARAMS; keep text within 2000 characters and send expected_revision as an integer.
80109
+ * DEPARTMENT_CHARTER_GONE; this route was removed in
78268
80110
  */
78269
- 400: OrganizationProblem;
78270
- /**
78271
- * Missing or invalid credential; provide a valid organization API key or sign in to the Console.
78272
- */
78273
- 401: unknown;
78274
- /**
78275
- * PERMISSION_DENIED; an organization owner or admin, or the head of the department or of a department above it may call this, and machine tokens are always refused (an agent's session token may read the organization, never change it). Use an API key or Console session of an allowed role.
78276
- */
78277
- 403: OrganizationProblem;
78278
- /**
78279
- * DEPARTMENT_NOT_FOUND; list departments and copy an id of your organization.
78280
- */
78281
- 404: OrganizationProblem;
78282
- /**
78283
- * DEPARTMENT_DISSOLVED or REVISION_CONFLICT; a dissolved department takes no charter, and on a conflict read the department again and retry with its charter.revision.
78284
- */
78285
- 409: OrganizationProblem;
80111
+ 410: OrganizationProblem;
78286
80112
  };
78287
80113
  export type AmendOrganizationDepartmentCharterError = AmendOrganizationDepartmentCharterErrors[keyof AmendOrganizationDepartmentCharterErrors];
78288
- export type AmendOrganizationDepartmentCharterResponses = {
78289
- /**
78290
- * The department with its new charter.
78291
- */
78292
- 200: OrganizationDepartment;
78293
- };
78294
- export type AmendOrganizationDepartmentCharterResponse = AmendOrganizationDepartmentCharterResponses[keyof AmendOrganizationDepartmentCharterResponses];
78295
80114
  export type ListOrganizationJobsData = {
78296
80115
  body?: never;
78297
80116
  path?: never;
@@ -98097,6 +99916,10 @@ export type CanvasListCanvasesData = {
98097
99916
  * Filter to a collection id from collections.list, or the literal none for uncategorized canvases. Omit to list all canvases; keep the same filter when following next_cursor.
98098
99917
  */
98099
99918
  collection_id?: string;
99919
+ /**
99920
+ * Send true to list only canvases that have been published as libraries; omit to list all canvases. Keep the same filter when following next_cursor.
99921
+ */
99922
+ library?: boolean;
98100
99923
  };
98101
99924
  url: '/canvas/v1/canvases';
98102
99925
  };
@@ -98758,6 +100581,255 @@ export type CanvasRestoreCanvasResponses = {
98758
100581
  200: CanvasRestoreResult;
98759
100582
  };
98760
100583
  export type CanvasRestoreCanvasResponse = CanvasRestoreCanvasResponses[keyof CanvasRestoreCanvasResponses];
100584
+ export type CanvasPublishLibraryData = {
100585
+ /**
100586
+ * Optional release note and an optional guard against publishing a canvas that changed after you last looked.
100587
+ */
100588
+ body?: CanvasPublishLibraryInput;
100589
+ path: {
100590
+ /**
100591
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
100592
+ */
100593
+ canvas_id: string;
100594
+ };
100595
+ query?: never;
100596
+ url: '/canvas/v1/canvases/{canvas_id}:publish';
100597
+ };
100598
+ export type CanvasPublishLibraryErrors = {
100599
+ /**
100600
+ * INVALID_PARAMS means the canvas has no reusable components to publish, or description exceeds 2000 characters; mark a frame as reusable or correct the input before retrying.
100601
+ */
100602
+ 400: CanvasCanvasError;
100603
+ /**
100604
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
100605
+ */
100606
+ 401: CanvasCanvasError;
100607
+ /**
100608
+ * FEATURE_DISABLED means component libraries are not enabled for this organization yet; nothing was changed. Any other 403 means the API key lacks permission for this operation.
100609
+ */
100610
+ 403: CanvasCanvasError;
100611
+ /**
100612
+ * CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
100613
+ */
100614
+ 404: CanvasCanvasError;
100615
+ /**
100616
+ * LIBRARY_UNCHANGED means no component, variable or theme differs from the latest published version; edit the canvas first. REVISION_CONFLICT means expected_version is stale; read the current version in error.details.version and retry with it.
100617
+ */
100618
+ 409: CanvasCanvasError;
100619
+ /**
100620
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
100621
+ */
100622
+ 500: CanvasCanvasError;
100623
+ };
100624
+ export type CanvasPublishLibraryError = CanvasPublishLibraryErrors[keyof CanvasPublishLibraryErrors];
100625
+ export type CanvasPublishLibraryResponses = {
100626
+ /**
100627
+ * The new library version and what it changed relative to the previous one.
100628
+ */
100629
+ 200: CanvasPublishLibraryResult;
100630
+ };
100631
+ export type CanvasPublishLibraryResponse = CanvasPublishLibraryResponses[keyof CanvasPublishLibraryResponses];
100632
+ export type CanvasListLibraryVersionsData = {
100633
+ body?: never;
100634
+ path: {
100635
+ /**
100636
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
100637
+ */
100638
+ canvas_id: string;
100639
+ };
100640
+ query?: {
100641
+ /**
100642
+ * Maximum library versions to return, from 1 to 100 inclusive; omission uses 30.
100643
+ */
100644
+ limit?: number;
100645
+ /**
100646
+ * Copy next_cursor from the preceding page to continue toward older library versions; omit for the first page.
100647
+ */
100648
+ cursor?: string;
100649
+ };
100650
+ url: '/canvas/v1/canvases/{canvas_id}/library_versions';
100651
+ };
100652
+ export type CanvasListLibraryVersionsErrors = {
100653
+ /**
100654
+ * INVALID_PARAMS means limit is outside 1–100; correct it. INVALID_PAGE_TOKEN means cursor is invalid; restart listing without a cursor.
100655
+ */
100656
+ 400: CanvasCanvasError;
100657
+ /**
100658
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
100659
+ */
100660
+ 401: CanvasCanvasError;
100661
+ /**
100662
+ * FEATURE_DISABLED means component libraries are not enabled for this organization yet; nothing was changed. Any other 403 means the API key lacks permission for this operation.
100663
+ */
100664
+ 403: CanvasCanvasError;
100665
+ /**
100666
+ * CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
100667
+ */
100668
+ 404: CanvasCanvasError;
100669
+ /**
100670
+ * NOT_A_LIBRARY means the canvas has never been published; publish it first with canvases.publish.
100671
+ */
100672
+ 409: CanvasCanvasError;
100673
+ /**
100674
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
100675
+ */
100676
+ 500: CanvasCanvasError;
100677
+ };
100678
+ export type CanvasListLibraryVersionsError = CanvasListLibraryVersionsErrors[keyof CanvasListLibraryVersionsErrors];
100679
+ export type CanvasListLibraryVersionsResponses = {
100680
+ /**
100681
+ * Published library versions ordered newest first, and the continuation cursor.
100682
+ */
100683
+ 200: CanvasLibraryVersionPage;
100684
+ };
100685
+ export type CanvasListLibraryVersionsResponse = CanvasListLibraryVersionsResponses[keyof CanvasListLibraryVersionsResponses];
100686
+ export type CanvasListLibrariesData = {
100687
+ body?: never;
100688
+ path?: never;
100689
+ query?: {
100690
+ /**
100691
+ * Keep only libraries whose name contains this text, ignoring case; omit to list every library.
100692
+ */
100693
+ query?: string;
100694
+ /**
100695
+ * Maximum libraries to return per page, from 1 to 100; defaults to 50 when omitted.
100696
+ */
100697
+ limit?: number;
100698
+ /**
100699
+ * Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null.
100700
+ */
100701
+ cursor?: string;
100702
+ };
100703
+ url: '/canvas/v1/libraries';
100704
+ };
100705
+ export type CanvasListLibrariesErrors = {
100706
+ /**
100707
+ * INVALID_PARAMS means a field, query value or identifier violates the documented format or range; correct the indicated input before retrying.
100708
+ */
100709
+ 400: CanvasCanvasError;
100710
+ /**
100711
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
100712
+ */
100713
+ 401: CanvasCanvasError;
100714
+ /**
100715
+ * FEATURE_DISABLED means component libraries are not enabled for this organization yet; nothing was changed. Any other 403 means the API key lacks permission for this operation.
100716
+ */
100717
+ 403: CanvasCanvasError;
100718
+ /**
100719
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
100720
+ */
100721
+ 500: CanvasCanvasError;
100722
+ };
100723
+ export type CanvasListLibrariesError = CanvasListLibrariesErrors[keyof CanvasListLibrariesErrors];
100724
+ export type CanvasListLibrariesResponses = {
100725
+ /**
100726
+ * One page of the organization's libraries, most recently published first.
100727
+ */
100728
+ 200: CanvasLibraryPage;
100729
+ };
100730
+ export type CanvasListLibrariesResponse = CanvasListLibrariesResponses[keyof CanvasListLibrariesResponses];
100731
+ export type CanvasSetImportData = {
100732
+ /**
100733
+ * The alias to import under, the library canvas and optionally the library version to use.
100734
+ */
100735
+ body: CanvasSetImportInput;
100736
+ path: {
100737
+ /**
100738
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
100739
+ */
100740
+ canvas_id: string;
100741
+ };
100742
+ query?: never;
100743
+ url: '/canvas/v1/canvases/{canvas_id}/imports';
100744
+ };
100745
+ export type CanvasSetImportErrors = {
100746
+ /**
100747
+ * INVALID_PARAMS means alias is not 1-32 characters of a lower-case letter followed by lower-case letters, digits or hyphens, the canvas would import itself, this canvas is itself a library, the library is already imported under another alias, or the alias already names another library. Correct the input before retrying.
100748
+ */
100749
+ 400: CanvasCanvasError;
100750
+ /**
100751
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
100752
+ */
100753
+ 401: CanvasCanvasError;
100754
+ /**
100755
+ * FEATURE_DISABLED means component libraries are not enabled for this organization yet; nothing was changed. Any other 403 means the API key lacks permission for this operation.
100756
+ */
100757
+ 403: CanvasCanvasError;
100758
+ /**
100759
+ * CANVAS_NOT_FOUND means the canvas or the library is missing or belongs to another organization. VERSION_NOT_FOUND means the library has no such version; read library_versions for the published ones.
100760
+ */
100761
+ 404: CanvasCanvasError;
100762
+ /**
100763
+ * NOT_A_LIBRARY means the library canvas has never been published; publish it first. REVISION_CONFLICT means expected_version is stale; read the current version in error.details.version and retry.
100764
+ */
100765
+ 409: CanvasCanvasError;
100766
+ /**
100767
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
100768
+ */
100769
+ 500: CanvasCanvasError;
100770
+ };
100771
+ export type CanvasSetImportError = CanvasSetImportErrors[keyof CanvasSetImportErrors];
100772
+ export type CanvasSetImportResponses = {
100773
+ /**
100774
+ * The canvas version after the import and the library version now in use.
100775
+ */
100776
+ 200: CanvasSetImportResult;
100777
+ };
100778
+ export type CanvasSetImportResponse = CanvasSetImportResponses[keyof CanvasSetImportResponses];
100779
+ export type CanvasDeleteImportData = {
100780
+ body?: never;
100781
+ path: {
100782
+ /**
100783
+ * Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
100784
+ */
100785
+ canvas_id: string;
100786
+ /**
100787
+ * The alias the library was imported under, as shown in imports of retrieve.
100788
+ */
100789
+ alias: string;
100790
+ };
100791
+ query?: {
100792
+ /**
100793
+ * Current canvas version from retrieve; the removal is refused with REVISION_CONFLICT if the canvas has moved on. Omission removes the import whatever the current version is.
100794
+ */
100795
+ expected_version?: string;
100796
+ };
100797
+ url: '/canvas/v1/canvases/{canvas_id}/imports/{alias}';
100798
+ };
100799
+ export type CanvasDeleteImportErrors = {
100800
+ /**
100801
+ * INVALID_PARAMS means no library is imported under that alias; read imports of retrieve for the aliases in use.
100802
+ */
100803
+ 400: CanvasCanvasError;
100804
+ /**
100805
+ * The bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
100806
+ */
100807
+ 401: CanvasCanvasError;
100808
+ /**
100809
+ * FEATURE_DISABLED means component libraries are not enabled for this organization yet; nothing was changed. Any other 403 means the API key lacks permission for this operation.
100810
+ */
100811
+ 403: CanvasCanvasError;
100812
+ /**
100813
+ * CANVAS_NOT_FOUND means the canvas does not exist, was deleted or belongs to another organization; choose an accessible canvas id from list or create a new canvas.
100814
+ */
100815
+ 404: CanvasCanvasError;
100816
+ /**
100817
+ * LIBRARY_IN_USE means nodes still instantiate the library's components; delete or replace them (details.instances counts them) and then retry. REVISION_CONFLICT means expected_version is stale; read the current version in error.details.version and retry.
100818
+ */
100819
+ 409: CanvasCanvasError;
100820
+ /**
100821
+ * INTERNAL means the service could not complete the request; inspect the current canvas before retrying a write to avoid duplicating an already committed edit.
100822
+ */
100823
+ 500: CanvasCanvasError;
100824
+ };
100825
+ export type CanvasDeleteImportError = CanvasDeleteImportErrors[keyof CanvasDeleteImportErrors];
100826
+ export type CanvasDeleteImportResponses = {
100827
+ /**
100828
+ * Confirmation that the import was removed, with the canvas version after the removal.
100829
+ */
100830
+ 200: CanvasDeleteImportResult;
100831
+ };
100832
+ export type CanvasDeleteImportResponse = CanvasDeleteImportResponses[keyof CanvasDeleteImportResponses];
98761
100833
  export type ContentListContentsData = {
98762
100834
  body?: never;
98763
100835
  path?: never;
@@ -100876,7 +102948,7 @@ export type CustomerCreateAccessTokenErrors = {
100876
102948
  */
100877
102949
  403: CustomerErrorEnvelope;
100878
102950
  /**
100879
- * RATE_LIMITED: the caller IP has spent this door per-minute anonymous budget. Wait the seconds in the Retry-After response header and send the request again; do not retry immediately.
102951
+ * One of three limits on the exchange, each with a Retry-After header in seconds. RATE_LIMITED: the caller IP has spent this door per-minute anonymous budget. PUBLISHABLE_KEY_RATE_LIMITED: the publishable key has spent its anon_rate_per_min exchanges for this UTC minute, whoever sent them; Retry-After is the rest of the minute. PUBLISHABLE_KEY_DAILY_CAP_REACHED: the key has admitted daily_session_cap new anonymous visitors in this UTC day; a new visitor is refused until 00:00 UTC (Retry-After), while a returning visitor that sends its continuation_token is still admitted. Wait before retrying, never retry immediately; raise or clear the key limit with praxis.customer.publishableKeys.update if it is set too low.
100880
102952
  */
100881
102953
  429: CustomerErrorEnvelope;
100882
102954
  /**
@@ -101413,6 +103485,46 @@ export type CustomerDeletePublishableKeyResponses = {
101413
103485
  200: CustomerPublishableKeyDeleted;
101414
103486
  };
101415
103487
  export type CustomerDeletePublishableKeyResponse = CustomerDeletePublishableKeyResponses[keyof CustomerDeletePublishableKeyResponses];
103488
+ export type CustomerUpdatePublishableKeyData = {
103489
+ /**
103490
+ * The fields to change; at least one.
103491
+ */
103492
+ body: CustomerUpdatePublishableKeyInput;
103493
+ path: {
103494
+ /**
103495
+ * Publishable key id (pk_…) from publishable_keys.list, not the plaintext key value.
103496
+ */
103497
+ key_id: string;
103498
+ };
103499
+ query?: never;
103500
+ url: '/customer/v1/publishable_keys/{key_id}';
103501
+ };
103502
+ export type CustomerUpdatePublishableKeyErrors = {
103503
+ /**
103504
+ * INVALID_PARAMS: the request is not shaped the way this face accepts — an unknown or misspelled field, a repeated query parameter, a resource scope not in the form <type>:<id>:<action>, an expand value that is not products, sign_ins or usage, or a confirm that does not repeat the path customer id. The error names the field at fault and what it accepts; correct that field and send the request again.
103505
+ */
103506
+ 400: CustomerErrorEnvelope;
103507
+ /**
103508
+ * The credential is missing, malformed or expired. Merchant routes answer UNAUTHENTICATED when the API key or session names no organization; the pre-auth doors answer GRANT_CODE_INVALID when a grant code is unknown, already used, expired or foreign, and ACCESS_TOKEN_EXPIRED when the end-user token cannot be verified (a sign-in that is over answers SIGN_IN_EXPIRED or SIGN_IN_REVOKED). Send a valid API key, request a fresh grant code, or sign the end user in again.
103509
+ */
103510
+ 401: CustomerErrorEnvelope;
103511
+ /**
103512
+ * UPSTREAM_UNAVAILABLE: the token issuer or another dependency refused the call, so nothing was issued or changed. Retry later, and if it persists report the time and the request path.
103513
+ */
103514
+ 502: CustomerErrorEnvelope;
103515
+ /**
103516
+ * UPSTREAM_UNAVAILABLE: this face is not usable in this environment — the CUSTOMER service binding is unwired, or the anonymous rate limiter is unavailable or misconfigured so the door fails closed. Use an environment where the face is wired, or retry when the dependency is back.
103517
+ */
103518
+ 503: CustomerErrorEnvelope;
103519
+ };
103520
+ export type CustomerUpdatePublishableKeyError = CustomerUpdatePublishableKeyErrors[keyof CustomerUpdatePublishableKeyErrors];
103521
+ export type CustomerUpdatePublishableKeyResponses = {
103522
+ /**
103523
+ * The key with its new name and limits, without its plaintext value.
103524
+ */
103525
+ 200: CustomerPublishableKey;
103526
+ };
103527
+ export type CustomerUpdatePublishableKeyResponse = CustomerUpdatePublishableKeyResponses[keyof CustomerUpdatePublishableKeyResponses];
101416
103528
  export type CutListProjectsData = {
101417
103529
  body?: never;
101418
103530
  path?: never;
@@ -112219,6 +114331,10 @@ export type MediaListAssetsData = {
112219
114331
  * Filter assets to one kind of material. Audio is one material type; use audio_role to tell speech, music and sound effects apart. Omit to list every material type.
112220
114332
  */
112221
114333
  material_type?: MediaMaterialType;
114334
+ /**
114335
+ * Filter assets to the recordings of one live stream, by the stream id (mst_…) a live stream resource carries. Each broadcast of the stream is its own video asset, and its provenance names the stream and the broadcast’s start and end. Omit to list every asset.
114336
+ */
114337
+ live_stream_id?: string;
112222
114338
  /**
112223
114339
  * true returns one row per edit tree instead of every asset: the newest live asset of that tree that matches the other filters, with stack_count giving how many of the tree’s assets match. Omitted or false returns the flat list. Edits of an asset form its tree; generated variants and uploads are trees of their own.
112224
114340
  */