@deepraxis/sdk 0.1.1-dev.f44c601 → 0.1.1-dev.f5b18e9

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.
@@ -32916,7 +32916,7 @@ export type OrganizationReconcileItem = {
32916
32916
  */
32917
32917
  binding: string | null;
32918
32918
  /**
32919
- * Why the block is not ready, for the failed and waiting_human states; null when there is nothing to say.
32919
+ * Why the block is not ready, for the failed, waiting_human and not_applicable states; null when there is nothing to say.
32920
32920
  */
32921
32921
  message: string | null;
32922
32922
  };
@@ -51654,6 +51654,10 @@ export type ApplyAgentVersionResponses = {
51654
51654
  * Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
51655
51655
  */
51656
51656
  note: string | null;
51657
+ /**
51658
+ * How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
51659
+ */
51660
+ deployments_behind: number | null;
51657
51661
  /**
51658
51662
  * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
51659
51663
  */
@@ -52901,6 +52905,10 @@ export type UnarchiveAgentResponses = {
52901
52905
  * Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
52902
52906
  */
52903
52907
  note: string | null;
52908
+ /**
52909
+ * How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
52910
+ */
52911
+ deployments_behind: number | null;
52904
52912
  /**
52905
52913
  * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
52906
52914
  */
@@ -64592,6 +64600,73 @@ export type ListSessionRequestsResponses = {
64592
64600
  };
64593
64601
  };
64594
64602
  export type ListSessionRequestsResponse = ListSessionRequestsResponses[keyof ListSessionRequestsResponses];
64603
+ export type CreateSessionDictationData = {
64604
+ body?: {
64605
+ /**
64606
+ * Words the recogniser should favour, at most 50.
64607
+ */
64608
+ hotwords?: Array<string>;
64609
+ };
64610
+ path: {
64611
+ /**
64612
+ * Session id from session creation or listing.
64613
+ */
64614
+ session_id: string;
64615
+ };
64616
+ query?: never;
64617
+ url: '/agent/v1/sessions/{session_id}/dictations';
64618
+ };
64619
+ export type CreateSessionDictationErrors = {
64620
+ /**
64621
+ * Invalid request: more than 50 hotwords, or an unsupported field.
64622
+ */
64623
+ 400: unknown;
64624
+ /**
64625
+ * Authenticate with an organization credential or a customer access token.
64626
+ */
64627
+ 401: unknown;
64628
+ /**
64629
+ * 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.
64630
+ */
64631
+ 403: AgentError;
64632
+ /**
64633
+ * Session not found or not readable by this caller.
64634
+ */
64635
+ 404: unknown;
64636
+ /**
64637
+ * DICTATION_UNCONFIGURED: the model dictation resolved to cannot transcribe a live stream.
64638
+ */
64639
+ 409: unknown;
64640
+ /**
64641
+ * Agent service failed
64642
+ */
64643
+ 502: unknown;
64644
+ /**
64645
+ * DICTATION_UNAVAILABLE: dictation is not available in this environment; try again later.
64646
+ */
64647
+ 503: unknown;
64648
+ };
64649
+ export type CreateSessionDictationError = CreateSessionDictationErrors[keyof CreateSessionDictationErrors];
64650
+ export type CreateSessionDictationResponses = {
64651
+ /**
64652
+ * The dictation stream and the address to push audio to
64653
+ */
64654
+ 201: {
64655
+ /**
64656
+ * The stream's id (mst_...).
64657
+ */
64658
+ id: string;
64659
+ /**
64660
+ * The WebSocket address to push audio to (wss://...). It carries a short-lived capability: treat it as a secret, never store or log it, and open it once.
64661
+ */
64662
+ push_url: string;
64663
+ /**
64664
+ * When the address stops accepting a new connection, RFC 3339.
64665
+ */
64666
+ expires_at: string;
64667
+ };
64668
+ };
64669
+ export type CreateSessionDictationResponse = CreateSessionDictationResponses[keyof CreateSessionDictationResponses];
64595
64670
  export type ListSessionBackgroundTasksData = {
64596
64671
  body?: never;
64597
64672
  path: {
@@ -79063,6 +79138,10 @@ export type AgentsListResponses = {
79063
79138
  * Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
79064
79139
  */
79065
79140
  note: string | null;
79141
+ /**
79142
+ * How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
79143
+ */
79144
+ deployments_behind: number | null;
79066
79145
  /**
79067
79146
  * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
79068
79147
  */
@@ -80263,6 +80342,10 @@ export type AgentsCreateResponses = {
80263
80342
  * Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
80264
80343
  */
80265
80344
  note: string | null;
80345
+ /**
80346
+ * How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
80347
+ */
80348
+ deployments_behind: number | null;
80266
80349
  /**
80267
80350
  * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
80268
80351
  */
@@ -80921,6 +81004,10 @@ export type AgentsRetrieveResponses = {
80921
81004
  * Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
80922
81005
  */
80923
81006
  note: string | null;
81007
+ /**
81008
+ * How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
81009
+ */
81010
+ deployments_behind: number | null;
80924
81011
  /**
80925
81012
  * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
80926
81013
  */
@@ -82143,6 +82230,10 @@ export type AgentsUpdateResponses = {
82143
82230
  * Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
82144
82231
  */
82145
82232
  note: string | null;
82233
+ /**
82234
+ * How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
82235
+ */
82236
+ deployments_behind: number | null;
82146
82237
  /**
82147
82238
  * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
82148
82239
  */
@@ -82787,6 +82878,10 @@ export type AgentsArchiveResponses = {
82787
82878
  * Change explanation supplied as version_note when this version was saved; null when omitted or for historical versions. Immutable after creation.
82788
82879
  */
82789
82880
  note: string | null;
82881
+ /**
82882
+ * How many of this agent's live deployments are not on its active version: pinned to a version other than active_version, not archived, counted once each. It counts both a pin older than the active version and a pin newer than it that was saved without being applied, so read it as "not on the active version", never as "older than". Following deployments are never counted (they run the active version by definition). Null when the deployment side could not be read. Returned by update and apply too, so those answers equal the read that follows them.
82883
+ */
82884
+ deployments_behind: number | null;
82790
82885
  /**
82791
82886
  * Platform resources and services this service agent's codemode may reach, as one list of typed bindings. Only kind=service accepts a nonempty list; general agents return 400. There are two kinds. A resource binding names one resource with id and access: database (id db_..., read_only or read_write), vector_store (id vs_..., read_only or read_write), file (id file- plus 24 letters or digits, as the File API returns it; read_only), media_library (any id without ':' or whitespace, read_only or read_write), model (a model catalog id, invoke), workflow and script (id <namespace>/<name>, invoke). A resource binding may also carry customer_access (read_only by default): it caps what a terminal customer's session (a visitor, ADR-163 §3) may do with that one resource, at the intersection of customer_access and the binding's own access — invoke (call) and read_write (change) are different axes, so only a matching pair keeps its access and any other pair falls to read_only. Its value must be one the type can grant: read_only or read_write for database, vector_store and media_library, read_only for file, and read_only or invoke for model, workflow and script. A member's session ignores it, so raising it never widens what members may do. A visitor's session never receives a whole-service binding (the default ticket service included) or an agent resource. A service binding opens one service, or one sub-tree of one, and carries only enabled: search, browser, ticket, crm, canvas, cut, studio, feedback or workspace. workspace opens development units — list one, read one, start, stop, exec inside one, fetch, push, connect, and open a unit for a change — and opens neither publishing nor any production operation. The ticket service is bound by default: a service agent whose list has no ticket entry may call the ticket API, and {"type": "ticket", "enabled": false} removes it. Every other service stays closed until it is bound. An open service allows every public method of that service. At most 20 bindings per type, no repeated type and id, and each service type at most once. A session is authorized by the agent version it runs: newly added bindings apply only to new sessions, and a version saved with apply=false changes no access until it is applied. Applying a version that disables, removes or downgrades a binding revokes it immediately in running sessions on older versions. A resource that is not bound returns 404, a service that is not opened returns 403, and a write to a resource bound read_only returns 403 BINDING_READ_ONLY. Unknown types, fields on the wrong kind (id, access, customer_access or instructions on a service binding), wrong access and malformed ids return 400. The former databases, vector_stores and files fields are removed and return 400. Omit on create for the default: the ticket service only. Saving checks added or changed database, vector_store, media_library and file bindings in the organization: unknown or deleted ids return 400. If an owner is unavailable or takes more than 3 seconds, saving succeeds with verified=false for the affected bindings. Unchanged bindings keep their previous verification result and are not rechecked. workflow and script ids are not verified at save time.
82792
82887
  */
@@ -87306,7 +87401,7 @@ export type DeploymentsListResponses = {
87306
87401
  */
87307
87402
  id: string;
87308
87403
  /**
87309
- * Agent reference pinned to a concrete version. The own face also accepts model, permission_mode and cwd overrides for new sessions.
87404
+ * Agent reference. Naming a version pins the deployment to it; naming only an id (or a bare id string) makes it follow the agent's active version, so every run uses whichever version is in effect then and a later agent save carries through automatically. The response also carries pinned_version (null while following) and active_version (the agent's currently effective version). The own face also accepts model, permission_mode and cwd overrides for new sessions.
87310
87405
  */
87311
87406
  agent: {
87312
87407
  /**
@@ -87321,6 +87416,14 @@ export type DeploymentsListResponses = {
87321
87416
  * The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
87322
87417
  */
87323
87418
  version: number;
87419
+ /**
87420
+ * The version this deployment is pinned to; null when it follows the agent's active version.
87421
+ */
87422
+ pinned_version?: number | null;
87423
+ /**
87424
+ * The agent's currently effective version, the one a run would use now; null when the agent cannot be read.
87425
+ */
87426
+ active_version?: number | null;
87324
87427
  } | {
87325
87428
  /**
87326
87429
  * The `agent` ID.
@@ -87360,7 +87463,7 @@ export type DeploymentsListResponses = {
87360
87463
  speed?: null | 'standard' | 'fast';
87361
87464
  };
87362
87465
  /**
87363
- * The specific `agent` version to use. Omit to use the latest version.
87466
+ * The agent version this deployment uses now; while the deployment follows the agent this is the active version, otherwise the version it is pinned to.
87364
87467
  */
87365
87468
  version: number;
87366
87469
  };
@@ -87490,7 +87593,7 @@ export type DeploymentsCreateData = {
87490
87593
  speed?: null | 'standard' | 'fast';
87491
87594
  };
87492
87595
  /**
87493
- * The specific `agent` version to use. Omit to use the latest version.
87596
+ * Agent version to use; omit it to follow the agent's active version, so each run uses whichever version is in effect then, and name one to pin it.
87494
87597
  */
87495
87598
  version?: number;
87496
87599
  };
@@ -87564,6 +87667,10 @@ export type DeploymentsCreateErrors = {
87564
87667
  * 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.
87565
87668
  */
87566
87669
  403: AgentError;
87670
+ /**
87671
+ * AGENT_VERSION_NOT_APPLIED: the named version is saved but not applied (apply false), so nothing runs it yet. Apply it first, or omit the version to follow the active one. A version that does not exist answers 404 AGENT_VERSION_NOT_FOUND instead.
87672
+ */
87673
+ 409: AgentError;
87567
87674
  };
87568
87675
  export type DeploymentsCreateError = DeploymentsCreateErrors[keyof DeploymentsCreateErrors];
87569
87676
  export type DeploymentsCreateResponses = {
@@ -87576,7 +87683,7 @@ export type DeploymentsCreateResponses = {
87576
87683
  */
87577
87684
  id: string;
87578
87685
  /**
87579
- * Agent reference pinned to a concrete version. The own face also accepts model, permission_mode and cwd overrides for new sessions.
87686
+ * Agent reference. Naming a version pins the deployment to it; naming only an id (or a bare id string) makes it follow the agent's active version, so every run uses whichever version is in effect then and a later agent save carries through automatically. The response also carries pinned_version (null while following) and active_version (the agent's currently effective version). The own face also accepts model, permission_mode and cwd overrides for new sessions.
87580
87687
  */
87581
87688
  agent: {
87582
87689
  /**
@@ -87591,6 +87698,14 @@ export type DeploymentsCreateResponses = {
87591
87698
  * The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
87592
87699
  */
87593
87700
  version: number;
87701
+ /**
87702
+ * The version this deployment is pinned to; null when it follows the agent's active version.
87703
+ */
87704
+ pinned_version?: number | null;
87705
+ /**
87706
+ * The agent's currently effective version, the one a run would use now; null when the agent cannot be read.
87707
+ */
87708
+ active_version?: number | null;
87594
87709
  } | {
87595
87710
  /**
87596
87711
  * The `agent` ID.
@@ -87630,7 +87745,7 @@ export type DeploymentsCreateResponses = {
87630
87745
  speed?: null | 'standard' | 'fast';
87631
87746
  };
87632
87747
  /**
87633
- * The specific `agent` version to use. Omit to use the latest version.
87748
+ * The agent version this deployment uses now; while the deployment follows the agent this is the active version, otherwise the version it is pinned to.
87634
87749
  */
87635
87750
  version: number;
87636
87751
  };
@@ -87745,7 +87860,7 @@ export type DeploymentsRetrieveResponses = {
87745
87860
  */
87746
87861
  id: string;
87747
87862
  /**
87748
- * Agent reference pinned to a concrete version. The own face also accepts model, permission_mode and cwd overrides for new sessions.
87863
+ * Agent reference. Naming a version pins the deployment to it; naming only an id (or a bare id string) makes it follow the agent's active version, so every run uses whichever version is in effect then and a later agent save carries through automatically. The response also carries pinned_version (null while following) and active_version (the agent's currently effective version). The own face also accepts model, permission_mode and cwd overrides for new sessions.
87749
87864
  */
87750
87865
  agent: {
87751
87866
  /**
@@ -87760,6 +87875,14 @@ export type DeploymentsRetrieveResponses = {
87760
87875
  * The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
87761
87876
  */
87762
87877
  version: number;
87878
+ /**
87879
+ * The version this deployment is pinned to; null when it follows the agent's active version.
87880
+ */
87881
+ pinned_version?: number | null;
87882
+ /**
87883
+ * The agent's currently effective version, the one a run would use now; null when the agent cannot be read.
87884
+ */
87885
+ active_version?: number | null;
87763
87886
  } | {
87764
87887
  /**
87765
87888
  * The `agent` ID.
@@ -87799,7 +87922,7 @@ export type DeploymentsRetrieveResponses = {
87799
87922
  speed?: null | 'standard' | 'fast';
87800
87923
  };
87801
87924
  /**
87802
- * The specific `agent` version to use. Omit to use the latest version.
87925
+ * The agent version this deployment uses now; while the deployment follows the agent this is the active version, otherwise the version it is pinned to.
87803
87926
  */
87804
87927
  version: number;
87805
87928
  };
@@ -87924,7 +88047,7 @@ export type DeploymentsUpdateData = {
87924
88047
  speed?: null | 'standard' | 'fast';
87925
88048
  };
87926
88049
  /**
87927
- * The specific `agent` version to use. Omit to use the latest version.
88050
+ * Agent version to use; omit it to follow the agent's active version, so each run uses whichever version is in effect then, and name one to pin it.
87928
88051
  */
87929
88052
  version?: number;
87930
88053
  };
@@ -88010,7 +88133,7 @@ export type DeploymentsUpdateErrors = {
88010
88133
  */
88011
88134
  404: AgentError;
88012
88135
  /**
88013
- * The deployment is archived and cannot be updated.
88136
+ * The deployment is archived and cannot be updated, or the supplied agent version is saved but not applied (AGENT_VERSION_NOT_APPLIED): apply it first, or send only the agent id to follow the active version.
88014
88137
  */
88015
88138
  409: AgentError;
88016
88139
  };
@@ -88025,7 +88148,7 @@ export type DeploymentsUpdateResponses = {
88025
88148
  */
88026
88149
  id: string;
88027
88150
  /**
88028
- * Agent reference pinned to a concrete version. The own face also accepts model, permission_mode and cwd overrides for new sessions.
88151
+ * Agent reference. Naming a version pins the deployment to it; naming only an id (or a bare id string) makes it follow the agent's active version, so every run uses whichever version is in effect then and a later agent save carries through automatically. The response also carries pinned_version (null while following) and active_version (the agent's currently effective version). The own face also accepts model, permission_mode and cwd overrides for new sessions.
88029
88152
  */
88030
88153
  agent: {
88031
88154
  /**
@@ -88040,6 +88163,14 @@ export type DeploymentsUpdateResponses = {
88040
88163
  * The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
88041
88164
  */
88042
88165
  version: number;
88166
+ /**
88167
+ * The version this deployment is pinned to; null when it follows the agent's active version.
88168
+ */
88169
+ pinned_version?: number | null;
88170
+ /**
88171
+ * The agent's currently effective version, the one a run would use now; null when the agent cannot be read.
88172
+ */
88173
+ active_version?: number | null;
88043
88174
  } | {
88044
88175
  /**
88045
88176
  * The `agent` ID.
@@ -88079,7 +88210,7 @@ export type DeploymentsUpdateResponses = {
88079
88210
  speed?: null | 'standard' | 'fast';
88080
88211
  };
88081
88212
  /**
88082
- * The specific `agent` version to use. Omit to use the latest version.
88213
+ * The agent version this deployment uses now; while the deployment follows the agent this is the active version, otherwise the version it is pinned to.
88083
88214
  */
88084
88215
  version: number;
88085
88216
  };
@@ -88194,7 +88325,7 @@ export type DeploymentsArchiveResponses = {
88194
88325
  */
88195
88326
  id: string;
88196
88327
  /**
88197
- * Agent reference pinned to a concrete version. The own face also accepts model, permission_mode and cwd overrides for new sessions.
88328
+ * Agent reference. Naming a version pins the deployment to it; naming only an id (or a bare id string) makes it follow the agent's active version, so every run uses whichever version is in effect then and a later agent save carries through automatically. The response also carries pinned_version (null while following) and active_version (the agent's currently effective version). The own face also accepts model, permission_mode and cwd overrides for new sessions.
88198
88329
  */
88199
88330
  agent: {
88200
88331
  /**
@@ -88209,6 +88340,14 @@ export type DeploymentsArchiveResponses = {
88209
88340
  * The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
88210
88341
  */
88211
88342
  version: number;
88343
+ /**
88344
+ * The version this deployment is pinned to; null when it follows the agent's active version.
88345
+ */
88346
+ pinned_version?: number | null;
88347
+ /**
88348
+ * The agent's currently effective version, the one a run would use now; null when the agent cannot be read.
88349
+ */
88350
+ active_version?: number | null;
88212
88351
  } | {
88213
88352
  /**
88214
88353
  * The `agent` ID.
@@ -88248,7 +88387,7 @@ export type DeploymentsArchiveResponses = {
88248
88387
  speed?: null | 'standard' | 'fast';
88249
88388
  };
88250
88389
  /**
88251
- * The specific `agent` version to use. Omit to use the latest version.
88390
+ * The agent version this deployment uses now; while the deployment follows the agent this is the active version, otherwise the version it is pinned to.
88252
88391
  */
88253
88392
  version: number;
88254
88393
  };
@@ -88367,7 +88506,7 @@ export type DeploymentsPauseResponses = {
88367
88506
  */
88368
88507
  id: string;
88369
88508
  /**
88370
- * Agent reference pinned to a concrete version. The own face also accepts model, permission_mode and cwd overrides for new sessions.
88509
+ * Agent reference. Naming a version pins the deployment to it; naming only an id (or a bare id string) makes it follow the agent's active version, so every run uses whichever version is in effect then and a later agent save carries through automatically. The response also carries pinned_version (null while following) and active_version (the agent's currently effective version). The own face also accepts model, permission_mode and cwd overrides for new sessions.
88371
88510
  */
88372
88511
  agent: {
88373
88512
  /**
@@ -88382,6 +88521,14 @@ export type DeploymentsPauseResponses = {
88382
88521
  * The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
88383
88522
  */
88384
88523
  version: number;
88524
+ /**
88525
+ * The version this deployment is pinned to; null when it follows the agent's active version.
88526
+ */
88527
+ pinned_version?: number | null;
88528
+ /**
88529
+ * The agent's currently effective version, the one a run would use now; null when the agent cannot be read.
88530
+ */
88531
+ active_version?: number | null;
88385
88532
  } | {
88386
88533
  /**
88387
88534
  * The `agent` ID.
@@ -88421,7 +88568,7 @@ export type DeploymentsPauseResponses = {
88421
88568
  speed?: null | 'standard' | 'fast';
88422
88569
  };
88423
88570
  /**
88424
- * The specific `agent` version to use. Omit to use the latest version.
88571
+ * The agent version this deployment uses now; while the deployment follows the agent this is the active version, otherwise the version it is pinned to.
88425
88572
  */
88426
88573
  version: number;
88427
88574
  };
@@ -88540,7 +88687,7 @@ export type DeploymentsUnpauseResponses = {
88540
88687
  */
88541
88688
  id: string;
88542
88689
  /**
88543
- * Agent reference pinned to a concrete version. The own face also accepts model, permission_mode and cwd overrides for new sessions.
88690
+ * Agent reference. Naming a version pins the deployment to it; naming only an id (or a bare id string) makes it follow the agent's active version, so every run uses whichever version is in effect then and a later agent save carries through automatically. The response also carries pinned_version (null while following) and active_version (the agent's currently effective version). The own face also accepts model, permission_mode and cwd overrides for new sessions.
88544
88691
  */
88545
88692
  agent: {
88546
88693
  /**
@@ -88555,6 +88702,14 @@ export type DeploymentsUnpauseResponses = {
88555
88702
  * The latest saved version of the agent, the editable head; it differs from active_version after a save with apply false. Starts at 1 and increments each time the agent is modified.
88556
88703
  */
88557
88704
  version: number;
88705
+ /**
88706
+ * The version this deployment is pinned to; null when it follows the agent's active version.
88707
+ */
88708
+ pinned_version?: number | null;
88709
+ /**
88710
+ * The agent's currently effective version, the one a run would use now; null when the agent cannot be read.
88711
+ */
88712
+ active_version?: number | null;
88558
88713
  } | {
88559
88714
  /**
88560
88715
  * The `agent` ID.
@@ -88594,7 +88749,7 @@ export type DeploymentsUnpauseResponses = {
88594
88749
  speed?: null | 'standard' | 'fast';
88595
88750
  };
88596
88751
  /**
88597
- * The specific `agent` version to use. Omit to use the latest version.
88752
+ * The agent version this deployment uses now; while the deployment follows the agent this is the active version, otherwise the version it is pinned to.
88598
88753
  */
88599
88754
  version: number;
88600
88755
  };
@@ -1683,7 +1683,7 @@ export const operations = [
1683
1683
  "resource": "agent.deployments",
1684
1684
  "method": "create",
1685
1685
  "summary": "Create deployment",
1686
- "description": "Freeze session parameters as a deployment; this operation does not open a session. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:\"computer\"} is for general agents and needs no environment_id, while target:{type:\"environment\"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {\"agent\":\"agent_123\",\"name\":\"weekly report\",\"initial_events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"Write the weekly report.\"}]}],\"target\":{\"type\":\"computer\"},\"schedule\":{\"type\":\"cron\",\"expression\":\"0 9 * * 1\",\"timezone\":\"America/Los_Angeles\"}}.",
1686
+ "description": "Freeze session parameters as a deployment; this operation does not open a session. An agent reference with only an id follows the agent's active version: each run uses the version in effect at that moment, so a later agent save reaches the next run with no edit here. Name a version to pin it; only a version that is applied can be pinned, so a save made with apply false is refused with 409 AGENT_VERSION_NOT_APPLIED. Pass an agent id or versioned reference, a name, 1–50 user.message initial events and an environment_id from environments.list. environment_id and target are alternatives: send at least one of them; target:{type:\"computer\"} is for general agents and needs no environment_id, while target:{type:\"environment\"} still requires one. Unlike Anthropic Managed Agents, /agent/v1 also accepts agent_with_overrides (model, permission_mode and cwd) and target=computer for general agents, with environment_id omitted. Cron schedules use five POSIX fields and an IANA timezone. File resources are accepted. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. Active schedules run every minute when due; session creation errors pause the deployment. Unsupported tools, mcp_servers, system and skills overrides return 400. Example, a weekly cron deployment on the agent's computer: {\"agent\":\"agent_123\",\"name\":\"weekly report\",\"initial_events\":[{\"type\":\"user.message\",\"content\":[{\"type\":\"text\",\"text\":\"Write the weekly report.\"}]}],\"target\":{\"type\":\"computer\"},\"schedule\":{\"type\":\"cron\",\"expression\":\"0 9 * * 1\",\"timezone\":\"America/Los_Angeles\"}}.",
1687
1687
  "http": "POST",
1688
1688
  "path": "/agent/v1/deployments",
1689
1689
  "streaming": "no",
@@ -1787,7 +1787,7 @@ export const operations = [
1787
1787
  "resource": "agent.deployments",
1788
1788
  "method": "update",
1789
1789
  "summary": "Update deployment",
1790
- "description": "Partially update a deployment. Omitted fields keep their values; a supplied agent id re-pins the latest version, or supply a versioned reference. Metadata merges string values and deletes keys set to null. Null clears schedule, resources and description; name, environment_id and initial_events cannot be cleared. Archived deployments return 409. Overrides apply to new sessions; updating a schedule recalculates its next occurrence.",
1790
+ "description": "Partially update a deployment. Omitted fields keep their values. An agent reference with only an id makes the deployment follow the agent's active version from now on, so later agent saves carry through; name a version to pin it instead, and only a version that is applied (not one saved with apply false) may be pinned. Metadata merges string values and deletes keys set to null. Null clears schedule, resources and description; name, environment_id and initial_events cannot be cleared. Archived deployments return 409. Overrides apply to new sessions; updating a schedule recalculates its next occurrence.",
1791
1791
  "http": "POST",
1792
1792
  "path": "/agent/v1/deployments/{deployment_id}",
1793
1793
  "streaming": "no",
@@ -2708,6 +2708,36 @@ export const operations = [
2708
2708
  ],
2709
2709
  "query": []
2710
2710
  },
2711
+ {
2712
+ "resource": "agent.sessions.dictations",
2713
+ "method": "create",
2714
+ "summary": "Create Session Dictation Stream (Extension)",
2715
+ "description": "Open a dictation stream for a session and get the address to push microphone audio to.\n\nOwn-face extension. The body is optional: hotwords (at most 50 words the recogniser should favour). Returns 201 { id, push_url, expires_at }: id is the stream id (mst_...), push_url a wss address, expires_at when the address stops accepting a new connection. The speech-to-text model is the agent's dictation_model, or the platform default when it names none. Once connected to push_url, send one text frame {\"type\":\"start\",\"format\":\"pcm_s16le\",\"sample_rate\":16000,\"channels\":1}, then binary PCM frames of at most 64 KiB, then {\"type\":\"stop\"}; the text frames you receive are partial, final, done (with audio_seconds and cost_usd) and error. push_url carries a short-lived capability: treat it as a secret and do not store or log it. A session that is missing or not yours returns 404; a model that cannot transcribe a live stream returns 409 DICTATION_UNCONFIGURED; dictation not available in this environment returns 503 DICTATION_UNAVAILABLE; more than 50 hotwords or an unsupported field returns 400.",
2716
+ "http": "POST",
2717
+ "path": "/agent/v1/sessions/{session_id}/dictations",
2718
+ "streaming": "no",
2719
+ "pagination": false,
2720
+ "pathParams": [
2721
+ {
2722
+ "name": "session_id",
2723
+ "sdkName": "session_id",
2724
+ "description": "Session id from session creation or listing."
2725
+ }
2726
+ ],
2727
+ "query": [],
2728
+ "body": {
2729
+ "required": false,
2730
+ "fields": [
2731
+ {
2732
+ "name": "hotwords",
2733
+ "type": "array",
2734
+ "itemType": "string",
2735
+ "required": false,
2736
+ "description": "Words the recogniser should favour, at most 50."
2737
+ }
2738
+ ]
2739
+ }
2740
+ },
2711
2741
  {
2712
2742
  "resource": "agent.sessions.events",
2713
2743
  "method": "list",