@deepraxis/sdk 0.1.1-dev.2b237de → 0.1.1-dev.2ca562d

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.
@@ -144,13 +144,13 @@ export declare const getAgentAppearance: <ThrowOnError extends boolean = false>(
144
144
  /**
145
145
  * Get agent embed policy
146
146
  *
147
- * Read a service agent's embed settings: the pages allowed to open its Kit chat (allowed_origins), the development switch (allow_localhost) and what an embedded end user may upload (uploads). The allow list decides where the agent can be embedded at all, so after deploying an application, add that application's URL origin here (scheme, host and port, never a path) before the page loads the agent — otherwise its Kit chat answers ORIGIN_NOT_ALLOWED. Budgets, monthly caps and token lifetime are set in the console and are not part of this API. An agent of another organization answers 404; an agent that is not a service agent answers 400.
147
+ * Read a service agent's embed settings: the pages allowed to open its Kit chat (allowed_origins), the development switch (allow_localhost), what an embedded end user may upload (uploads) and whether the agent may be shared by link with the daily caps its visitors count against (share_links). The allow list decides where the agent can be embedded at all, so after deploying an application, add that application's URL origin here (scheme, host and port, never a path) before the page loads the agent — otherwise its Kit chat answers ORIGIN_NOT_ALLOWED. Budgets, monthly caps and token lifetime are set in the console and are not part of this API. An agent of another organization answers 404; an agent that is not a service agent answers 400.
148
148
  */
149
149
  export declare const getAgentEmbedPolicy: <ThrowOnError extends boolean = false>(options: Options<GetAgentEmbedPolicyData, ThrowOnError>) => RequestResult<GetAgentEmbedPolicyResponses, GetAgentEmbedPolicyErrors, ThrowOnError>;
150
150
  /**
151
151
  * Update agent embed policy
152
152
  *
153
- * Change some of a service agent's embed settings. Only the fields you send change: everything you leave out, including the budgets and the token lifetime set in the console, is kept exactly as it was. Send allowed_origins so the pages that load the agent are allowed — an application's URL origin must be in the list before the application can embed the agent, or its Kit chat answers ORIGIN_NOT_ALLOWED. Send allow_localhost while developing on http://localhost, and uploads to open, close or bound file attachments for the embedded end user. Values are checked by the service: an origin is normalized and must be https, and at most one leading wildcard label may match a single subdomain level. max_file_bytes is 1 to 104857600 bytes and max_files_per_session is 1 to 100. Example: POST /agent/v1/agents/{agent_id}/embed_policy with {"allowed_origins": ["https://my-app.example.com"]}.
153
+ * Change some of a service agent's embed settings. Only the fields you send change: everything you leave out, including the budgets and the token lifetime set in the console, is kept exactly as it was. Send allowed_origins so the pages that load the agent are allowed — an application's URL origin must be in the list before the application can embed the agent, or its Kit chat answers ORIGIN_NOT_ALLOWED. Send allow_localhost while developing on http://localhost, and uploads to open, close or bound file attachments for the embedded end user. Send share_links to let the agent be shared by link and to set the daily session and spending caps its share links count against; turning it on is refused unless the agent has an identity number. Values are checked by the service: an origin is normalized and must be https, and at most one leading wildcard label may match a single subdomain level. max_file_bytes is 1 to 104857600 bytes and max_files_per_session is 1 to 100. Example: POST /agent/v1/agents/{agent_id}/embed_policy with {"allowed_origins": ["https://my-app.example.com"]}.
154
154
  */
155
155
  export declare const updateAgentEmbedPolicy: <ThrowOnError extends boolean = false>(options: Options<UpdateAgentEmbedPolicyData, ThrowOnError>) => RequestResult<UpdateAgentEmbedPolicyResponses, UpdateAgentEmbedPolicyErrors, ThrowOnError>;
156
156
  /**
@@ -2806,8 +2806,8 @@ export declare const cutUndeleteProject: <ThrowOnError extends boolean = false>(
2806
2806
  * - `transform` — Position, scale, rotation, opacity, crop, blur.
2807
2807
  * - `fit` — contain, cover, fill or none.
2808
2808
  * - `blend` — Layer blend mode; null clears.
2809
- * - `style` — Text styling: font, fill, strokes, glow, position.
2810
- * - `style.position` — top, middle or bottom; omit it, never null.
2809
+ * - `style` — Text styling in Shotstack's rich shape: font, gradient, stroke, shadow, box, align, highlight.
2810
+ * - `style.align.vertical` — top, middle or bottom; omit it, never null.
2811
2811
  * - `playback` — Rate, direction, audio policy, or freeze.
2812
2812
  * - `volumeDb` — Audio level in dB; 0 is source level.
2813
2813
  * - `gain` — Keyframed audio level in dB.
@@ -2828,6 +2828,8 @@ export declare const cutUndeleteProject: <ThrowOnError extends boolean = false>(
2828
2828
  * - `JOIN_CONFLICT` — A join is invalid or blocks this edit.
2829
2829
  * - `INVALID_TRANSITION` — Bad transition kind, parameter or length.
2830
2830
  * - `INVALID_STYLE` — A style value is out of range.
2831
+ * - `UNSUPPORTED_STYLE_FIELD` — A Shotstack style field this platform cannot render yet.
2832
+ * - `STYLE_LEGACY_FIELDS` — A style written in the old flat shape; it still works.
2831
2833
  * - `INVALID_MASK` — A mask definition is malformed.
2832
2834
  * - `MASK_IN_USE` — The edit would break a live mask.
2833
2835
  * - `TOO_MANY_MASKS` — At most 16 masks per project.
@@ -4492,7 +4494,7 @@ export declare const shareListPermissions: <ThrowOnError extends boolean = false
4492
4494
  /**
4493
4495
  * Create share
4494
4496
  *
4495
- * Make one file readable by anyone holding a link, before sending the link to a person or embedding it. Name the object as resource {type, id}, with the file id from the File API. The response is 201 and is the only time link.web_url is returned; store it, because later reads omit it and a lost address means creating another share (the old one keeps working until you delete it). The link is anonymous and read-only. A type other than file answers 400 RESOURCE_TYPE_UNSUPPORTED, and a file that is missing or outside your organization answers 404 RESOURCE_NOT_FOUND.
4497
+ * Make one object readable by anyone holding a link, before sending the link to a person or embedding it. Name the object as resource {type, id} — a file id from the File API, a canvas id, a media asset's library_id/asset_id, or an agent id (agent_...) of a service agent whose owner turned share links on. The response is 201 and is the only time link.web_url is returned; store it, because later reads omit it and a lost address means creating another share (the old one keeps working until you delete it). Opening a file or media link signs a short-lived read address; opening a canvas link shows a snapshot rendered at that moment; opening an agent link starts a Hosted conversation with that agent as the visitor, so each browser keeps its own history. The link is anonymous, and for every type so far read-only. A type that cannot be shared answers 400 RESOURCE_TYPE_UNSUPPORTED; an agent whose share links are switched off answers 400 RESOURCE_NOT_SHAREABLE and its owner turns them on in the agent's embed settings (share_links), which also requires the agent to have a short number; an object that is missing or outside your organization answers 404 RESOURCE_NOT_FOUND.
4496
4498
  */
4497
4499
  export declare const shareCreatePermission: <ThrowOnError extends boolean = false>(options: Options<ShareCreatePermissionData, ThrowOnError>) => RequestResult<ShareCreatePermissionResponses, ShareCreatePermissionErrors, ThrowOnError>;
4498
4500
  /**
@@ -360,7 +360,7 @@ export const getAgentAppearance = (options) => (options.client ?? client).get({
360
360
  /**
361
361
  * Get agent embed policy
362
362
  *
363
- * Read a service agent's embed settings: the pages allowed to open its Kit chat (allowed_origins), the development switch (allow_localhost) and what an embedded end user may upload (uploads). The allow list decides where the agent can be embedded at all, so after deploying an application, add that application's URL origin here (scheme, host and port, never a path) before the page loads the agent — otherwise its Kit chat answers ORIGIN_NOT_ALLOWED. Budgets, monthly caps and token lifetime are set in the console and are not part of this API. An agent of another organization answers 404; an agent that is not a service agent answers 400.
363
+ * Read a service agent's embed settings: the pages allowed to open its Kit chat (allowed_origins), the development switch (allow_localhost), what an embedded end user may upload (uploads) and whether the agent may be shared by link with the daily caps its visitors count against (share_links). The allow list decides where the agent can be embedded at all, so after deploying an application, add that application's URL origin here (scheme, host and port, never a path) before the page loads the agent — otherwise its Kit chat answers ORIGIN_NOT_ALLOWED. Budgets, monthly caps and token lifetime are set in the console and are not part of this API. An agent of another organization answers 404; an agent that is not a service agent answers 400.
364
364
  */
365
365
  export const getAgentEmbedPolicy = (options) => (options.client ?? client).get({
366
366
  security: [{
@@ -378,7 +378,7 @@ export const getAgentEmbedPolicy = (options) => (options.client ?? client).get({
378
378
  /**
379
379
  * Update agent embed policy
380
380
  *
381
- * Change some of a service agent's embed settings. Only the fields you send change: everything you leave out, including the budgets and the token lifetime set in the console, is kept exactly as it was. Send allowed_origins so the pages that load the agent are allowed — an application's URL origin must be in the list before the application can embed the agent, or its Kit chat answers ORIGIN_NOT_ALLOWED. Send allow_localhost while developing on http://localhost, and uploads to open, close or bound file attachments for the embedded end user. Values are checked by the service: an origin is normalized and must be https, and at most one leading wildcard label may match a single subdomain level. max_file_bytes is 1 to 104857600 bytes and max_files_per_session is 1 to 100. Example: POST /agent/v1/agents/{agent_id}/embed_policy with {"allowed_origins": ["https://my-app.example.com"]}.
381
+ * Change some of a service agent's embed settings. Only the fields you send change: everything you leave out, including the budgets and the token lifetime set in the console, is kept exactly as it was. Send allowed_origins so the pages that load the agent are allowed — an application's URL origin must be in the list before the application can embed the agent, or its Kit chat answers ORIGIN_NOT_ALLOWED. Send allow_localhost while developing on http://localhost, and uploads to open, close or bound file attachments for the embedded end user. Send share_links to let the agent be shared by link and to set the daily session and spending caps its share links count against; turning it on is refused unless the agent has an identity number. Values are checked by the service: an origin is normalized and must be https, and at most one leading wildcard label may match a single subdomain level. max_file_bytes is 1 to 104857600 bytes and max_files_per_session is 1 to 100. Example: POST /agent/v1/agents/{agent_id}/embed_policy with {"allowed_origins": ["https://my-app.example.com"]}.
382
382
  */
383
383
  export const updateAgentEmbedPolicy = (options) => (options.client ?? client).post({
384
384
  security: [{
@@ -8205,8 +8205,8 @@ export const cutUndeleteProject = (options) => (options.client ?? client).post({
8205
8205
  * - `transform` — Position, scale, rotation, opacity, crop, blur.
8206
8206
  * - `fit` — contain, cover, fill or none.
8207
8207
  * - `blend` — Layer blend mode; null clears.
8208
- * - `style` — Text styling: font, fill, strokes, glow, position.
8209
- * - `style.position` — top, middle or bottom; omit it, never null.
8208
+ * - `style` — Text styling in Shotstack's rich shape: font, gradient, stroke, shadow, box, align, highlight.
8209
+ * - `style.align.vertical` — top, middle or bottom; omit it, never null.
8210
8210
  * - `playback` — Rate, direction, audio policy, or freeze.
8211
8211
  * - `volumeDb` — Audio level in dB; 0 is source level.
8212
8212
  * - `gain` — Keyframed audio level in dB.
@@ -8227,6 +8227,8 @@ export const cutUndeleteProject = (options) => (options.client ?? client).post({
8227
8227
  * - `JOIN_CONFLICT` — A join is invalid or blocks this edit.
8228
8228
  * - `INVALID_TRANSITION` — Bad transition kind, parameter or length.
8229
8229
  * - `INVALID_STYLE` — A style value is out of range.
8230
+ * - `UNSUPPORTED_STYLE_FIELD` — A Shotstack style field this platform cannot render yet.
8231
+ * - `STYLE_LEGACY_FIELDS` — A style written in the old flat shape; it still works.
8230
8232
  * - `INVALID_MASK` — A mask definition is malformed.
8231
8233
  * - `MASK_IN_USE` — The edit would break a live mask.
8232
8234
  * - `TOO_MANY_MASKS` — At most 16 masks per project.
@@ -13183,7 +13185,7 @@ export const shareListPermissions = (options) => (options?.client ?? client).get
13183
13185
  /**
13184
13186
  * Create share
13185
13187
  *
13186
- * Make one file readable by anyone holding a link, before sending the link to a person or embedding it. Name the object as resource {type, id}, with the file id from the File API. The response is 201 and is the only time link.web_url is returned; store it, because later reads omit it and a lost address means creating another share (the old one keeps working until you delete it). The link is anonymous and read-only. A type other than file answers 400 RESOURCE_TYPE_UNSUPPORTED, and a file that is missing or outside your organization answers 404 RESOURCE_NOT_FOUND.
13188
+ * Make one object readable by anyone holding a link, before sending the link to a person or embedding it. Name the object as resource {type, id} — a file id from the File API, a canvas id, a media asset's library_id/asset_id, or an agent id (agent_...) of a service agent whose owner turned share links on. The response is 201 and is the only time link.web_url is returned; store it, because later reads omit it and a lost address means creating another share (the old one keeps working until you delete it). Opening a file or media link signs a short-lived read address; opening a canvas link shows a snapshot rendered at that moment; opening an agent link starts a Hosted conversation with that agent as the visitor, so each browser keeps its own history. The link is anonymous, and for every type so far read-only. A type that cannot be shared answers 400 RESOURCE_TYPE_UNSUPPORTED; an agent whose share links are switched off answers 400 RESOURCE_NOT_SHAREABLE and its owner turns them on in the agent's embed settings (share_links), which also requires the agent to have a short number; an object that is missing or outside your organization answers 404 RESOURCE_NOT_FOUND.
13187
13189
  */
13188
13190
  export const shareCreatePermission = (options) => (options.client ?? client).post({
13189
13191
  security: [{
@@ -19652,6 +19652,10 @@ export type MediaJob = {
19652
19652
  * Request id of the model call that failed, the same id shown in the model request log, so the failure can be traced there. Present only when the failure came from a model call.
19653
19653
  */
19654
19654
  model_request_id?: string;
19655
+ /**
19656
+ * The model service’s own words for this failure, for a person to read, for example why moderation refused an input. Present only when the failure came from a model call; branch on code, not on this text.
19657
+ */
19658
+ message?: string;
19655
19659
  }>;
19656
19660
  /**
19657
19661
  * Generation intent recorded on the earliest video jobs; newer generation jobs describe themselves with type and operation instead.
@@ -20208,11 +20212,7 @@ export type MediaEditOperation = {
20208
20212
  */
20209
20213
  person_asset_id: MediaAssetId;
20210
20214
  /**
20211
- * standard (the default: faster and cheaper) or pro (smoother and more detailed, slower and dearer).
20212
- */
20213
- quality?: 'standard' | 'pro';
20214
- /**
20215
- * Processing model that performs the replacement, from the models the generation capabilities publish for the replace_person capability; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
20215
+ * Processing model that performs the replacement, which is also the tier: video-replace-person-flash (faster and cheaper) or video-replace-person-pro (smoother detail, slower and dearer), as the generation capabilities publish them for the replace_person capability with their prices; omit it to use the first available. A request that names none when the platform has published none is refused with OPERATION_NOT_SUPPORTED.
20216
20216
  */
20217
20217
  model?: string;
20218
20218
  } | {
@@ -37820,9 +37820,9 @@ export type SandboxTemplateBuild = {
37820
37820
  */
37821
37821
  export type ShareShareResource = {
37822
37822
  /**
37823
- * What kind of object is shared; file, canvas and media_asset create today.
37823
+ * What kind of object is shared; file, canvas, media_asset and agent create today.
37824
37824
  */
37825
- type: 'file' | 'artifact' | 'canvas' | 'media_asset';
37825
+ type: 'file' | 'artifact' | 'canvas' | 'media_asset' | 'agent';
37826
37826
  /**
37827
37827
  * Id of the object within its type. For a file, the id from the File API; for a canvas, the canvas id (cvs_...); for a media_asset, library_id/asset_id with a real library id (lib_...), never the default alias. An object that does not exist in this organization answers 404 RESOURCE_NOT_FOUND.
37828
37828
  */
@@ -52523,7 +52523,7 @@ export type GetAgentEmbedPolicyData = {
52523
52523
  };
52524
52524
  export type GetAgentEmbedPolicyErrors = {
52525
52525
  /**
52526
- * INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100) is refused with the field named too.
52526
+ * INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100, share_links turned on for an agent with no identity number) is refused with the field named too.
52527
52527
  */
52528
52528
  400: unknown;
52529
52529
  /**
@@ -52554,7 +52554,7 @@ export type GetAgentEmbedPolicyErrors = {
52554
52554
  export type GetAgentEmbedPolicyError = GetAgentEmbedPolicyErrors[keyof GetAgentEmbedPolicyErrors];
52555
52555
  export type GetAgentEmbedPolicyResponses = {
52556
52556
  /**
52557
- * The agent's embed settings: the pages allowed to open its Kit chat, the development switch and what an embedded end user may upload. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
52557
+ * The agent's embed settings: the pages allowed to open its Kit chat, the development switch, what an embedded end user may upload, and whether the agent may be shared by link with the daily caps its share links count against. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
52558
52558
  */
52559
52559
  200: {
52560
52560
  /**
@@ -52582,6 +52582,23 @@ export type GetAgentEmbedPolicyResponses = {
52582
52582
  */
52583
52583
  max_files_per_session: number;
52584
52584
  };
52585
+ /**
52586
+ * Whether this agent may be shared by link and the daily budget its share links may use. Off by default; turning it on requires the agent to have an identity number.
52587
+ */
52588
+ share_links: {
52589
+ /**
52590
+ * Whether this agent may be shared by link. Off by default.
52591
+ */
52592
+ enabled: boolean;
52593
+ /**
52594
+ * The most primary sessions this agent's share links may start in one UTC day, a whole number, or null for no session cap. Default 200.
52595
+ */
52596
+ daily_session_cap: number | null;
52597
+ /**
52598
+ * The most this agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap. Default 5000000 (5 USD).
52599
+ */
52600
+ daily_spend_cap_micro_usd: number | null;
52601
+ };
52585
52602
  };
52586
52603
  };
52587
52604
  export type GetAgentEmbedPolicyResponse = GetAgentEmbedPolicyResponses[keyof GetAgentEmbedPolicyResponses];
@@ -52615,6 +52632,23 @@ export type UpdateAgentEmbedPolicyData = {
52615
52632
  */
52616
52633
  max_files_per_session?: number;
52617
52634
  };
52635
+ /**
52636
+ * Whether this agent may be shared by link, and its daily caps; every field is optional and only what you send is changed. Turning it on requires the agent to have an identity number.
52637
+ */
52638
+ share_links?: {
52639
+ /**
52640
+ * Whether this agent may be shared by link.
52641
+ */
52642
+ enabled?: boolean;
52643
+ /**
52644
+ * The most primary sessions the agent's share links may start in one UTC day, a whole number, or null for no session cap.
52645
+ */
52646
+ daily_session_cap?: number | null;
52647
+ /**
52648
+ * The most the agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap.
52649
+ */
52650
+ daily_spend_cap_micro_usd?: number | null;
52651
+ };
52618
52652
  };
52619
52653
  path: {
52620
52654
  /**
@@ -52627,7 +52661,7 @@ export type UpdateAgentEmbedPolicyData = {
52627
52661
  };
52628
52662
  export type UpdateAgentEmbedPolicyErrors = {
52629
52663
  /**
52630
- * INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100) is refused with the field named too.
52664
+ * INVALID_PARAMS: embed settings exist only for service agents, so a general or assume agent is refused; a value that breaks a rule (an origin that is not an https origin, max_file_bytes outside 1–104857600, max_files_per_session outside 1–100, share_links turned on for an agent with no identity number) is refused with the field named too.
52631
52665
  */
52632
52666
  400: unknown;
52633
52667
  /**
@@ -52658,7 +52692,7 @@ export type UpdateAgentEmbedPolicyErrors = {
52658
52692
  export type UpdateAgentEmbedPolicyError = UpdateAgentEmbedPolicyErrors[keyof UpdateAgentEmbedPolicyErrors];
52659
52693
  export type UpdateAgentEmbedPolicyResponses = {
52660
52694
  /**
52661
- * The agent's embed settings: the pages allowed to open its Kit chat, the development switch and what an embedded end user may upload. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
52695
+ * The agent's embed settings: the pages allowed to open its Kit chat, the development switch, what an embedded end user may upload, and whether the agent may be shared by link with the daily caps its share links count against. Budgets, monthly caps and token lifetime are set in the console and are never returned here.
52662
52696
  */
52663
52697
  200: {
52664
52698
  /**
@@ -52686,6 +52720,23 @@ export type UpdateAgentEmbedPolicyResponses = {
52686
52720
  */
52687
52721
  max_files_per_session: number;
52688
52722
  };
52723
+ /**
52724
+ * Whether this agent may be shared by link and the daily budget its share links may use. Off by default; turning it on requires the agent to have an identity number.
52725
+ */
52726
+ share_links: {
52727
+ /**
52728
+ * Whether this agent may be shared by link. Off by default.
52729
+ */
52730
+ enabled: boolean;
52731
+ /**
52732
+ * The most primary sessions this agent's share links may start in one UTC day, a whole number, or null for no session cap. Default 200.
52733
+ */
52734
+ daily_session_cap: number | null;
52735
+ /**
52736
+ * The most this agent's share links may spend in one UTC day, in micro-USD (whole cents), or null for no spending cap. Default 5000000 (5 USD).
52737
+ */
52738
+ daily_spend_cap_micro_usd: number | null;
52739
+ };
52689
52740
  };
52690
52741
  };
52691
52742
  export type UpdateAgentEmbedPolicyResponse = UpdateAgentEmbedPolicyResponses[keyof UpdateAgentEmbedPolicyResponses];
@@ -107309,9 +107360,9 @@ export type ShareListPermissionsData = {
107309
107360
  path?: never;
107310
107361
  query?: {
107311
107362
  /**
107312
- * Only shares of this object type; file, canvas and media_asset create today.
107363
+ * Only shares of this object type; file, canvas, media_asset and agent create today.
107313
107364
  */
107314
- resource_type?: 'file' | 'artifact' | 'canvas' | 'media_asset';
107365
+ resource_type?: 'file' | 'artifact' | 'canvas' | 'media_asset' | 'agent';
107315
107366
  /**
107316
107367
  * Only shares of the object with this id, for example a file id from the File API or a media asset's library_id/asset_id; combine with resource_type.
107317
107368
  */
@@ -107372,7 +107423,7 @@ export type ShareCreatePermissionData = {
107372
107423
  };
107373
107424
  export type ShareCreatePermissionErrors = {
107374
107425
  /**
107375
- * INVALID_PARAMS means a body field, query value or identifier violates the documented format, or a field is not supported; RESOURCE_TYPE_UNSUPPORTED means the resource type cannot be shared yet. Correct the indicated field; the message names it.
107426
+ * INVALID_PARAMS means a body field or identifier violates the documented format; RESOURCE_TYPE_UNSUPPORTED means the resource type cannot be shared yet; RESOURCE_NOT_SHAREABLE means the object exists but its owner keeps share links off — for an agent, turn share links on in its embed settings (share_links) first, which requires the agent to have a short number. Correct the indicated field; the message names it.
107376
107427
  */
107377
107428
  400: ShareShareError;
107378
107429
  /**
@@ -780,7 +780,7 @@ export const operations = [
780
780
  "resource": "agent.agents",
781
781
  "method": "retrieveEmbedPolicy",
782
782
  "summary": "Get agent embed policy",
783
- "description": "Read a service agent's embed settings: the pages allowed to open its Kit chat (allowed_origins), the development switch (allow_localhost) and what an embedded end user may upload (uploads). The allow list decides where the agent can be embedded at all, so after deploying an application, add that application's URL origin here (scheme, host and port, never a path) before the page loads the agent — otherwise its Kit chat answers ORIGIN_NOT_ALLOWED. Budgets, monthly caps and token lifetime are set in the console and are not part of this API. An agent of another organization answers 404; an agent that is not a service agent answers 400.",
783
+ "description": "Read a service agent's embed settings: the pages allowed to open its Kit chat (allowed_origins), the development switch (allow_localhost), what an embedded end user may upload (uploads) and whether the agent may be shared by link with the daily caps its visitors count against (share_links). The allow list decides where the agent can be embedded at all, so after deploying an application, add that application's URL origin here (scheme, host and port, never a path) before the page loads the agent — otherwise its Kit chat answers ORIGIN_NOT_ALLOWED. Budgets, monthly caps and token lifetime are set in the console and are not part of this API. An agent of another organization answers 404; an agent that is not a service agent answers 400.",
784
784
  "http": "GET",
785
785
  "path": "/agent/v1/agents/{agent_id}/embed_policy",
786
786
  "streaming": "no",
@@ -798,7 +798,7 @@ export const operations = [
798
798
  "resource": "agent.agents",
799
799
  "method": "updateEmbedPolicy",
800
800
  "summary": "Update agent embed policy",
801
- "description": "Change some of a service agent's embed settings. Only the fields you send change: everything you leave out, including the budgets and the token lifetime set in the console, is kept exactly as it was. Send allowed_origins so the pages that load the agent are allowed — an application's URL origin must be in the list before the application can embed the agent, or its Kit chat answers ORIGIN_NOT_ALLOWED. Send allow_localhost while developing on http://localhost, and uploads to open, close or bound file attachments for the embedded end user. Values are checked by the service: an origin is normalized and must be https, and at most one leading wildcard label may match a single subdomain level. max_file_bytes is 1 to 104857600 bytes and max_files_per_session is 1 to 100. Example: POST /agent/v1/agents/{agent_id}/embed_policy with {\"allowed_origins\": [\"https://my-app.example.com\"]}.",
801
+ "description": "Change some of a service agent's embed settings. Only the fields you send change: everything you leave out, including the budgets and the token lifetime set in the console, is kept exactly as it was. Send allowed_origins so the pages that load the agent are allowed — an application's URL origin must be in the list before the application can embed the agent, or its Kit chat answers ORIGIN_NOT_ALLOWED. Send allow_localhost while developing on http://localhost, and uploads to open, close or bound file attachments for the embedded end user. Send share_links to let the agent be shared by link and to set the daily session and spending caps its share links count against; turning it on is refused unless the agent has an identity number. Values are checked by the service: an origin is normalized and must be https, and at most one leading wildcard label may match a single subdomain level. max_file_bytes is 1 to 104857600 bytes and max_files_per_session is 1 to 100. Example: POST /agent/v1/agents/{agent_id}/embed_policy with {\"allowed_origins\": [\"https://my-app.example.com\"]}.",
802
802
  "http": "POST",
803
803
  "path": "/agent/v1/agents/{agent_id}/embed_policy",
804
804
  "streaming": "no",
@@ -832,6 +832,12 @@ export const operations = [
832
832
  "type": "object",
833
833
  "required": false,
834
834
  "description": "What an embedded end user may attach; only the fields you send are changed."
835
+ },
836
+ {
837
+ "name": "share_links",
838
+ "type": "object",
839
+ "required": false,
840
+ "description": "Whether this agent may be shared by link, and its daily caps; every field is optional and only what you send is changed. Turning it on requires the agent to have an identity number."
835
841
  }
836
842
  ],
837
843
  "example": {
@@ -11461,7 +11467,7 @@ export const operations = [
11461
11467
  "resource": "cut.projects",
11462
11468
  "method": "execute",
11463
11469
  "summary": "Execute editing script",
11464
- "description": "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `duration` is seconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler, scene or beat segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `DeleteWords` — Cut transcript words and ripple every track, keeping a breath.\n- `RemoveFillers` — List and delete filler words by media's own labels; dryRun first.\n- `Matte` — Replace the clip's background with media's matte of its source, read as a luma mask.\n- `EnhanceVoice` — Replace a clip's sound with media's enhanced speech on its own audio track.\n- `AlignByAudio` — Line two recordings of the same sound up by media's measurement of their offset.\n- `Reframe` — Swap the clip's media for media's reframed take at the aspect you ask for.\n- `Upscale` — Swap the clip's media for media's upscaled take at the height you ask for.\n- `Redact` — Pixelate the faces, QR codes or text media marks, leaving the rest of the frame plain.\n- `AddTrack` — Add a video, audio or caption track.\n- `MoveTrack` — Move a track between layers; 0 is the topmost.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; video and audio may omit it or write \"auto\".\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling: font, fill, strokes, glow, position.\n- `style.position` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_NOT_FOUND` — The asset id is not in that library.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `MEDIA_PROCESSING` — Media is still processing the clip; wait for the job and rerun.\n- `MEDIA_PROCESSING_FAILED` — Media's processing job failed; nothing changed.\n- `ALIGNMENT_UNCERTAIN` — `AlignByAudio` confidence too low; nothing changed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n",
11470
+ "description": "Edit the current timeline atomically using synchronous JavaScript source. Read state or timeline first, then pass its revision as expected_revision to detect concurrent changes. Unlike Shotstack, execute applies script edits to a persistent project in one transaction. Provide script or a saved edit_id with literal edits, never both; failures roll back writes. A revision conflict while preparing the response may follow a committed edit: retrieve state before retrying. Minimal script after creating a project: `const t = AddTrack(\"video\"); Insert(t, {type: \"color\", color: \"#123456\", start: 0, length: 3}); Print(t);`\n\n<!-- cut-reference:start -->\n### Script function, field and error reference\n\nEvery script function, clip field and error code has its own section, read one at a time:\n\n```\ncodemode.describe(\"praxis.cut.script.<Name>\") // one function: signature, arguments, return, errors, example\ncodemode.describe(\"praxis.cut.fields.<name>\") // one field: type, unit, range, default, where writable\ncodemode.describe(\"praxis.cut.errors.<CODE>\") // one code: meaning, causes, fix\ncodemode.describe(\"praxis.cut.script\") // names, one page at a time\n```\n\nPublished at https://docs.deepraxis.com/docs/developers/cut/script-reference with one anchor per entry. Names below omit the `praxis.cut.<kind>.` prefix.\n\n#### Script functions (script)\n\n- `GetTimeline` — Duration, tracks, joins; clips are under `items`.\n- `GetItem` — One clip's compact view, by id.\n- `FindItems` — Visit every clip with its track; collect results.\n- `GetMedia` — Media metadata; `duration` is seconds.\n- `GetTranscript` — Transcript words in source microseconds.\n- `GetAnalysis` — Silence, filler, scene or beat segments.\n- `ListTransitions` — Join transition kinds and parameters.\n- `ListEffects` — Visual-effect catalog and parameters.\n- `ListAnimations` — Animation presets by phase and target.\n- `ListFonts` — Font families, weights and scripts.\n- `ListTextStyles` — Text style presets for `style.preset`.\n- `ListTextTemplates` — Multi-layer templates and their slots.\n- `Insert` — Add a clip; a track never overlaps itself.\n- `Append` — Add a clip at the end of a track.\n- `Update` — Change named fields; the rest stay.\n- `SetSpeed` — Change rate, keeping source or duration.\n- `Delete` — Remove a clip. There is no `Remove`.\n- `Join` — Overlap clips; followers shift, track shortens.\n- `UpdateJoin` — Change a join's length or effect.\n- `DeleteJoin` — Remove a join; restore the butt cut.\n- `Split` — Cut a clip in two at a time.\n- `Trim` — Move one clip edge by seconds.\n- `Move` — Set a clip's start or track.\n- `RippleDeleteRange` — Cut a time range and close the gap.\n- `DeleteWords` — Cut transcript words and ripple every track, keeping a breath.\n- `RemoveFillers` — List and delete filler words by media's own labels; dryRun first.\n- `Matte` — Replace the clip's background with media's matte of its source, read as a luma mask.\n- `EnhanceVoice` — Replace a clip's sound with media's enhanced speech on its own audio track.\n- `AlignByAudio` — Line two recordings of the same sound up by media's measurement of their offset.\n- `Reframe` — Swap the clip's media for media's reframed take at the aspect you ask for.\n- `Upscale` — Swap the clip's media for media's upscaled take at the height you ask for.\n- `Redact` — Pixelate the faces, QR codes or text media marks, leaving the rest of the frame plain.\n- `AddTrack` — Add a video, audio or caption track.\n- `MoveTrack` — Move a track between layers; 0 is the topmost.\n- `UpdateTrack` — Change a track's name, lock, gain or role.\n- `DeleteTrack` — Remove a track and its clips.\n- `SetSettings` — Change canvas, frame rate or background.\n- `AddCaptionsFromTranscript` — Captions from a clip's kept words.\n- `InsertTemplate` — Insert a template and fill its slots.\n- `AlignCaptions` — Rebuild captions from text punctuation.\n- `ImportCaptions` — Import SRT or WebVTT onto captions.\n- `ExportCaptions` — Export captions as SRT or WebVTT.\n- `SetMarker` — Label a timeline position.\n- `Print` — Append values to the result's `prints`.\n- `Preview` — Up to 8 frames as inline PNG data URLs.\n\n#### Fields (fields)\n\n- `type` — Clip kind; decides which fields apply.\n- `start` — Clip start in seconds; snaps to frames.\n- `length` — Duration; video and audio may omit it or write \"auto\".\n- `media` — Source `{ libraryId, assetId }`.\n- `sourceIn` — First source second kept; default 0.\n- `sourceOut` — Exclusive source end; read-only.\n- `text` — Text of a text or caption clip.\n- `color` — Solid colour of a color clip.\n- `shape` — Shape clip kind: `rect` or `ellipse`.\n- `width` — Shape width, a fraction of canvas width.\n- `height` — Shape height, a fraction of canvas height.\n- `radius` — Rect corner rounding, in 1080-height px.\n- `fill` — Shape or text paint: colour or gradient.\n- `stroke` — Shape outline: colour and width.\n- `transform` — Position, scale, rotation, opacity, crop, blur.\n- `fit` — contain, cover, fill or none.\n- `blend` — Layer blend mode; null clears.\n- `style` — Text styling in Shotstack's rich shape: font, gradient, stroke, shadow, box, align, highlight.\n- `style.align.vertical` — top, middle or bottom; omit it, never null.\n- `playback` — Rate, direction, audio policy, or freeze.\n- `volumeDb` — Audio level in dB; 0 is source level.\n- `gain` — Keyframed audio level in dB.\n- `fadeIn` — Fade-in seconds at the clip's start.\n- `fadeOut` — Fade-out seconds at the clip's end.\n- `duck` — Lower this clip while another track plays.\n- `animate` — Transform keyframes; `at` is clip-relative seconds.\n- `reveal` — Per-character, word or line reveal timing.\n- `animation` — Preset slots `{ in, out, loop }`; null clears.\n- `effects` — Effect stack, at most 8; null clears.\n- `transitionIn` — Entrance effect: kind plus seconds.\n- `transitionOut` — Exit effect: kind plus seconds.\n- `mask` — Shape, path or track matte.\n- `words` — Caption words with clip-local times.\n\n#### Error codes (errors)\n\n- `JOIN_CONFLICT` — A join is invalid or blocks this edit.\n- `INVALID_TRANSITION` — Bad transition kind, parameter or length.\n- `INVALID_STYLE` — A style value is out of range.\n- `UNSUPPORTED_STYLE_FIELD` — A Shotstack style field this platform cannot render yet.\n- `STYLE_LEGACY_FIELDS` — A style written in the old flat shape; it still works.\n- `INVALID_MASK` — A mask definition is malformed.\n- `MASK_IN_USE` — The edit would break a live mask.\n- `TOO_MANY_MASKS` — At most 16 masks per project.\n- `RATE_OUT_OF_RANGE` — A rate is outside 0.25-4.\n- `UNSUPPORTED_PLAYBACK` — Reverse without an explicit mute.\n- `INVALID_PLAYBACK` — A playback object is partial or malformed.\n- `UNKNOWN_FONT` — The family is not in `ListFonts()`.\n- `UNKNOWN_FIELD` — The field name is not accepted here.\n- `UNKNOWN_TEXT_STYLE` — `style.preset` is not in the catalog.\n- `TEXT_STYLE_TARGET_MISMATCH` — Preset on the wrong clip type.\n- `CAPTION_ALIGN_LOW_CONFIDENCE` — Alignment confidence too low; nothing changed.\n- `OVERLAP` — Two clips on one track would share time.\n- `OUT_OF_SOURCE` — The clip would read past its source.\n- `LOCKED_TRACK` — The edit targets a locked track.\n- `UNBOUND_LIBRARY` — The library is not bound to the project.\n- `TRACK_KIND_MISMATCH` — The clip type does not fit the track.\n- `NOT_FOUND` — The named id is not in this project.\n- `TOO_SHORT` — The result would be under one frame.\n- `INVALID_DUCK` — Bad `duck` level or a missing track.\n- `UNKNOWN_ANIMATION` — The preset is not in `ListAnimations()`.\n- `INVALID_ANIMATION_PARAM` — Bad slot, parameter or keyframe limit.\n- `ANIMATION_TOO_LONG` — In plus out exceed the clip length.\n- `ANIMATION_TARGET_MISMATCH` — The preset does not match the clip type.\n- `ANIMATION_PHASE_MISMATCH` — The preset is in the wrong slot.\n- `UNKNOWN_EFFECT` — The effect is not in `ListEffects()`.\n- `INVALID_EFFECT_PARAM` — Bad effect parameter or keyframe.\n- `TOO_MANY_EFFECTS` — More than 8 effects on one clip.\n- `PROJECT_NOT_FOUND` — No visible project has this id.\n- `EXPORT_NOT_FOUND` — No such export in this project.\n- `DRAFT_RENDER_NOT_FOUND` — No such draft render.\n- `VERSION_NOT_FOUND` — No saved version has this revision.\n- `LIBRARY_NOT_FOUND` — The library is missing or invisible.\n- `BINDING_INVALID` — The binding request is malformed.\n- `BINDING_IN_USE` — Clips still use this library's assets.\n- `NOTHING_TO_UNDO` — No earlier revision to return to.\n- `NOTHING_TO_REDO` — No undone revision is waiting.\n- `UNDO_CONFLICT` — The revision to undo is no longer head.\n- `REVISION_CONFLICT` — The project moved; your revision is stale.\n- `CUT_BUSY` — The project is busy; retry.\n- `INVALID_CAPTION_FILE` — The subtitle file is malformed or too big.\n- `SCRIPT_ERROR` — The script threw or did not parse.\n- `SCRIPT_LIMIT` — An execute budget was exceeded.\n- `OPS_REJECTED` — An op failed; the whole edit rolled back.\n- `EDIT_EXPIRED` — The saved edit id is over ten minutes old.\n- `MEDIA_NOT_FOUND` — The asset id is not in that library.\n- `MEDIA_OFFLINE` — The asset cannot be fetched right now.\n- `MEDIA_UNAVAILABLE` — The asset is not usable for rendering.\n- `MEDIA_IMPORT_FAILED` — Importing media failed.\n- `MEDIA_PROCESSING` — Media is still processing the clip; wait for the job and rerun.\n- `MEDIA_PROCESSING_FAILED` — Media's processing job failed; nothing changed.\n- `ALIGNMENT_UNCERTAIN` — `AlignByAudio` confidence too low; nothing changed.\n- `FRAME_OUT_OF_RANGE` — The preview time is outside the project.\n- `PROJECT_TOO_LARGE` — The project exceeds the size limit.\n- `RESPONSE_TOO_LARGE` — The response would exceed its budget.\n- `EXPORT_FAILED` — The render failed; read `error.cause`.\n- `INVALID_PARAMS` — The request is malformed.\n- `PERMISSION_DENIED` — This credential may not do that here.\n- `NOT_IMPLEMENTED` — Not available on this platform yet.\n- `INTERNAL` — Unexpected failure; retry with the request id.\n<!-- cut-reference:end -->\n",
11465
11471
  "http": "POST",
11466
11472
  "path": "/cut/v1/projects/{project_id}:execute",
11467
11473
  "streaming": "no",
@@ -27041,10 +27047,11 @@ export const operations = [
27041
27047
  "file",
27042
27048
  "artifact",
27043
27049
  "canvas",
27044
- "media_asset"
27050
+ "media_asset",
27051
+ "agent"
27045
27052
  ],
27046
27053
  "required": false,
27047
- "description": "Only shares of this object type; file, canvas and media_asset create today."
27054
+ "description": "Only shares of this object type; file, canvas, media_asset and agent create today."
27048
27055
  },
27049
27056
  {
27050
27057
  "name": "resource_id",
@@ -27081,7 +27088,7 @@ export const operations = [
27081
27088
  "resource": "share.permissions",
27082
27089
  "method": "create",
27083
27090
  "summary": "Create share",
27084
- "description": "Make one file readable by anyone holding a link, before sending the link to a person or embedding it. Name the object as resource {type, id}, with the file id from the File API. The response is 201 and is the only time link.web_url is returned; store it, because later reads omit it and a lost address means creating another share (the old one keeps working until you delete it). The link is anonymous and read-only. A type other than file answers 400 RESOURCE_TYPE_UNSUPPORTED, and a file that is missing or outside your organization answers 404 RESOURCE_NOT_FOUND.",
27091
+ "description": "Make one object readable by anyone holding a link, before sending the link to a person or embedding it. Name the object as resource {type, id} — a file id from the File API, a canvas id, a media asset's library_id/asset_id, or an agent id (agent_...) of a service agent whose owner turned share links on. The response is 201 and is the only time link.web_url is returned; store it, because later reads omit it and a lost address means creating another share (the old one keeps working until you delete it). Opening a file or media link signs a short-lived read address; opening a canvas link shows a snapshot rendered at that moment; opening an agent link starts a Hosted conversation with that agent as the visitor, so each browser keeps its own history. The link is anonymous, and for every type so far read-only. A type that cannot be shared answers 400 RESOURCE_TYPE_UNSUPPORTED; an agent whose share links are switched off answers 400 RESOURCE_NOT_SHAREABLE and its owner turns them on in the agent's embed settings (share_links), which also requires the agent to have a short number; an object that is missing or outside your organization answers 404 RESOURCE_NOT_FOUND.",
27085
27092
  "http": "POST",
27086
27093
  "path": "/share/v1/permissions",
27087
27094
  "streaming": "no",
@@ -1144,6 +1144,11 @@ export declare function createAgent(transport: Transport): {
1144
1144
  max_file_bytes: number;
1145
1145
  max_files_per_session: number;
1146
1146
  };
1147
+ share_links: {
1148
+ enabled: boolean;
1149
+ daily_session_cap: number | null;
1150
+ daily_spend_cap_micro_usd: number | null;
1151
+ };
1147
1152
  }>;
1148
1153
  unarchive: {
1149
1154
  create: (options: import("./core/transport.js").CallOptions<Types.UnarchiveAgentData>) => Promise<{
@@ -1707,6 +1712,11 @@ export declare function createAgent(transport: Transport): {
1707
1712
  max_file_bytes: number;
1708
1713
  max_files_per_session: number;
1709
1714
  };
1715
+ share_links: {
1716
+ enabled: boolean;
1717
+ daily_session_cap: number | null;
1718
+ daily_spend_cap_micro_usd: number | null;
1719
+ };
1710
1720
  }>;
1711
1721
  versions: {
1712
1722
  apply: (options: import("./core/transport.js").CallOptions<Types.ApplyAgentVersionData>) => Promise<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepraxis/sdk",
3
- "version": "0.1.1-dev.2b237de",
3
+ "version": "0.1.1-dev.2ca562d",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {