@spaciv/sdk 0.1.17 → 0.1.19

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.
Files changed (47) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/AssistantApi.d.ts +16 -16
  3. package/dist/apis/AssistantApi.js +8 -8
  4. package/dist/apis/FloorPlansApi.d.ts +4 -4
  5. package/dist/apis/FloorPlansApi.js +2 -2
  6. package/dist/apis/ObjectGroupsApi.d.ts +8 -8
  7. package/dist/apis/ObjectGroupsApi.js +4 -4
  8. package/dist/apis/PropertiesApi.d.ts +8 -8
  9. package/dist/apis/PropertiesApi.js +4 -4
  10. package/dist/apis/ScenariosApi.d.ts +8 -8
  11. package/dist/apis/ScenariosApi.js +4 -4
  12. package/dist/apis/SpaceRulesetsApi.d.ts +4 -4
  13. package/dist/apis/SpaceRulesetsApi.js +2 -2
  14. package/dist/esm/apis/AssistantApi.d.ts +16 -16
  15. package/dist/esm/apis/AssistantApi.js +8 -8
  16. package/dist/esm/apis/FloorPlansApi.d.ts +4 -4
  17. package/dist/esm/apis/FloorPlansApi.js +2 -2
  18. package/dist/esm/apis/ObjectGroupsApi.d.ts +8 -8
  19. package/dist/esm/apis/ObjectGroupsApi.js +4 -4
  20. package/dist/esm/apis/PropertiesApi.d.ts +8 -8
  21. package/dist/esm/apis/PropertiesApi.js +4 -4
  22. package/dist/esm/apis/ScenariosApi.d.ts +8 -8
  23. package/dist/esm/apis/ScenariosApi.js +4 -4
  24. package/dist/esm/apis/SpaceRulesetsApi.d.ts +4 -4
  25. package/dist/esm/apis/SpaceRulesetsApi.js +2 -2
  26. package/dist/esm/models/AssistantChatPollBody.d.ts +12 -0
  27. package/dist/esm/models/AssistantChatPollBody.js +8 -0
  28. package/dist/esm/models/AssistantChatPollMessage.d.ts +6 -0
  29. package/dist/esm/models/AssistantChatPollMessage.js +4 -0
  30. package/dist/esm/models/AssistantTranscriptBody.d.ts +18 -0
  31. package/dist/esm/models/AssistantTranscriptBody.js +12 -0
  32. package/dist/models/AssistantChatPollBody.d.ts +12 -0
  33. package/dist/models/AssistantChatPollBody.js +8 -0
  34. package/dist/models/AssistantChatPollMessage.d.ts +6 -0
  35. package/dist/models/AssistantChatPollMessage.js +4 -0
  36. package/dist/models/AssistantTranscriptBody.d.ts +18 -0
  37. package/dist/models/AssistantTranscriptBody.js +12 -0
  38. package/package.json +1 -1
  39. package/src/apis/AssistantApi.ts +16 -16
  40. package/src/apis/FloorPlansApi.ts +4 -4
  41. package/src/apis/ObjectGroupsApi.ts +8 -8
  42. package/src/apis/PropertiesApi.ts +8 -8
  43. package/src/apis/ScenariosApi.ts +8 -8
  44. package/src/apis/SpaceRulesetsApi.ts +4 -4
  45. package/src/models/AssistantChatPollBody.ts +18 -0
  46. package/src/models/AssistantChatPollMessage.ts +9 -0
  47. package/src/models/AssistantTranscriptBody.ts +27 -0
@@ -53,7 +53,7 @@ export interface PropertiesApiInterface {
53
53
  */
54
54
  create(requestParameters: PropertiesApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
55
55
  /**
56
- * Permanently removes the specified property and all its nodes. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
56
+ * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
57
57
  * @summary Delete a property
58
58
  * @param {string} id
59
59
  * @param {*} [options] Override http request option.
@@ -62,7 +62,7 @@ export interface PropertiesApiInterface {
62
62
  */
63
63
  deleteRaw(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
64
64
  /**
65
- * Permanently removes the specified property and all its nodes. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
65
+ * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
66
66
  * Delete a property
67
67
  */
68
68
  delete(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -110,7 +110,7 @@ export interface PropertiesApiInterface {
110
110
  */
111
111
  list(requestParameters: PropertiesApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PropertyListRes>;
112
112
  /**
113
- * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
113
+ * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
114
114
  * @summary Update a property
115
115
  * @param {string} id
116
116
  * @param {PropertyBody} [propertyBody]
@@ -120,7 +120,7 @@ export interface PropertiesApiInterface {
120
120
  */
121
121
  updateRaw(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
122
122
  /**
123
- * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
123
+ * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
124
124
  * Update a property
125
125
  */
126
126
  update(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -140,12 +140,12 @@ export declare class PropertiesApi extends runtime.BaseAPI implements Properties
140
140
  */
141
141
  create(requestParameters?: PropertiesApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
142
142
  /**
143
- * Permanently removes the specified property and all its nodes. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
143
+ * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
144
144
  * Delete a property
145
145
  */
146
146
  deleteRaw(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
147
147
  /**
148
- * Permanently removes the specified property and all its nodes. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
148
+ * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
149
149
  * Delete a property
150
150
  */
151
151
  delete(requestParameters: PropertiesApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -180,12 +180,12 @@ export declare class PropertiesApi extends runtime.BaseAPI implements Properties
180
180
  */
181
181
  list(requestParameters?: PropertiesApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PropertyListRes>;
182
182
  /**
183
- * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
183
+ * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
184
184
  * Update a property
185
185
  */
186
186
  updateRaw(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
187
187
  /**
188
- * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
188
+ * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
189
189
  * Update a property
190
190
  */
191
191
  update(requestParameters: PropertiesApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -69,7 +69,7 @@ export class PropertiesApi extends runtime.BaseAPI {
69
69
  });
70
70
  }
71
71
  /**
72
- * Permanently removes the specified property and all its nodes. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
72
+ * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
73
73
  * Delete a property
74
74
  */
75
75
  deleteRaw(requestParameters, initOverrides) {
@@ -98,7 +98,7 @@ export class PropertiesApi extends runtime.BaseAPI {
98
98
  });
99
99
  }
100
100
  /**
101
- * Permanently removes the specified property and all its nodes. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
101
+ * Permanently removes the specified property and all its nodes. The property is removed from every variable\'s allowed `options`, and a variable whose value was the property moves to its first remaining option; node variables on the property lose their options. Built-in properties cannot be deleted. Requires the *Edit properties* permission. Returns `409` if a live data collection uses the property for anonymisation.
102
102
  * Delete a property
103
103
  */
104
104
  delete(requestParameters, initOverrides) {
@@ -231,7 +231,7 @@ export class PropertiesApi extends runtime.BaseAPI {
231
231
  });
232
232
  }
233
233
  /**
234
- * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
234
+ * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
235
235
  * Update a property
236
236
  */
237
237
  updateRaw(requestParameters, initOverrides) {
@@ -262,7 +262,7 @@ export class PropertiesApi extends runtime.BaseAPI {
262
262
  });
263
263
  }
264
264
  /**
265
- * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
265
+ * Applies an incremental update to the specified property. The request body may contain updated metadata and node changes for tree-type properties. Supports large node sets — the request body limit is 64 MB with a 20-second read timeout. Renaming a node ID requires the *Edit property ID* permission in addition to *Edit properties*; a `403` is returned if that permission is absent. Deleted nodes are removed from node variables\' allowed `options`, and a variable whose value was a deleted node moves to its first remaining option; renamed nodes are renamed in both the options and the value. Node changes are rejected with a `400` for built-in property ids (e.g. `module`, `space`), which are not backed by a real stored property and cannot hold node data. New or re-parented nodes are placed after their siblings. A node\'s `position` moves it to that zero-based index among its siblings (clamped to the end); negative positions are rejected with a `400`. Setting `delete` removes the property. While a live data collection uses the property for anonymisation, deleting it, changing its type away from tree, clearing all nodes, or deleting, re-parenting or changing the ID of an existing node returns a `409`; adding nodes under a parent and editing names are allowed.
266
266
  * Update a property
267
267
  */
268
268
  update(requestParameters, initOverrides) {
@@ -53,7 +53,7 @@ export interface ScenariosApiInterface {
53
53
  */
54
54
  create(requestParameters: ScenariosApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
55
55
  /**
56
- * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Requires the *Edit scenario planning* permission.
56
+ * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Purging removes the scenario from every variable\'s allowed `options`; a variable whose value was the scenario moves to its first remaining option. Requires the *Edit scenario planning* permission.
57
57
  * @summary Delete or archive a scenario
58
58
  * @param {string} id
59
59
  * @param {'archive' | 'restore' | 'purge'} [action] Lifecycle action: \&quot;archive\&quot; moves the scenario to the archive, \&quot;restore\&quot; returns it to active, and \&quot;purge\&quot; permanently deletes it. Defaults to \&quot;purge\&quot; when omitted.
@@ -63,7 +63,7 @@ export interface ScenariosApiInterface {
63
63
  */
64
64
  deleteRaw(requestParameters: ScenariosApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
65
65
  /**
66
- * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Requires the *Edit scenario planning* permission.
66
+ * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Purging removes the scenario from every variable\'s allowed `options`; a variable whose value was the scenario moves to its first remaining option. Requires the *Edit scenario planning* permission.
67
67
  * Delete or archive a scenario
68
68
  */
69
69
  delete(requestParameters: ScenariosApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -123,7 +123,7 @@ export interface ScenariosApiInterface {
123
123
  */
124
124
  listLayerVariables(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LayerVariablesRes>;
125
125
  /**
126
- * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
126
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Returns `409` if the scenario keeps changing concurrently while the update is retried. Requires the *Edit scenario planning* permission.
127
127
  * @summary Update a scenario
128
128
  * @param {string} id
129
129
  * @param {ScenarioPatch} [scenarioPatch]
@@ -133,7 +133,7 @@ export interface ScenariosApiInterface {
133
133
  */
134
134
  updateRaw(requestParameters: ScenariosApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
135
135
  /**
136
- * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
136
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Returns `409` if the scenario keeps changing concurrently while the update is retried. Requires the *Edit scenario planning* permission.
137
137
  * Update a scenario
138
138
  */
139
139
  update(requestParameters: ScenariosApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -153,12 +153,12 @@ export declare class ScenariosApi extends runtime.BaseAPI implements ScenariosAp
153
153
  */
154
154
  create(requestParameters?: ScenariosApiCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
155
155
  /**
156
- * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Requires the *Edit scenario planning* permission.
156
+ * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Purging removes the scenario from every variable\'s allowed `options`; a variable whose value was the scenario moves to its first remaining option. Requires the *Edit scenario planning* permission.
157
157
  * Delete or archive a scenario
158
158
  */
159
159
  deleteRaw(requestParameters: ScenariosApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
160
160
  /**
161
- * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Requires the *Edit scenario planning* permission.
161
+ * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Purging removes the scenario from every variable\'s allowed `options`; a variable whose value was the scenario moves to its first remaining option. Requires the *Edit scenario planning* permission.
162
162
  * Delete or archive a scenario
163
163
  */
164
164
  delete(requestParameters: ScenariosApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -203,12 +203,12 @@ export declare class ScenariosApi extends runtime.BaseAPI implements ScenariosAp
203
203
  */
204
204
  listLayerVariables(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LayerVariablesRes>;
205
205
  /**
206
- * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
206
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Returns `409` if the scenario keeps changing concurrently while the update is retried. Requires the *Edit scenario planning* permission.
207
207
  * Update a scenario
208
208
  */
209
209
  updateRaw(requestParameters: ScenariosApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
210
210
  /**
211
- * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
211
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Returns `409` if the scenario keeps changing concurrently while the update is retried. Requires the *Edit scenario planning* permission.
212
212
  * Update a scenario
213
213
  */
214
214
  update(requestParameters: ScenariosApiUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -69,7 +69,7 @@ export class ScenariosApi extends runtime.BaseAPI {
69
69
  });
70
70
  }
71
71
  /**
72
- * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Requires the *Edit scenario planning* permission.
72
+ * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Purging removes the scenario from every variable\'s allowed `options`; a variable whose value was the scenario moves to its first remaining option. Requires the *Edit scenario planning* permission.
73
73
  * Delete or archive a scenario
74
74
  */
75
75
  deleteRaw(requestParameters, initOverrides) {
@@ -101,7 +101,7 @@ export class ScenariosApi extends runtime.BaseAPI {
101
101
  });
102
102
  }
103
103
  /**
104
- * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Requires the *Edit scenario planning* permission.
104
+ * Controls the lifecycle of a scenario. Pass `action=archive` to move it to the archive, `action=restore` to bring it back, or `action=purge` (the default when the parameter is omitted) to permanently delete the scenario. Purging removes the scenario from every variable\'s allowed `options`; a variable whose value was the scenario moves to its first remaining option. Requires the *Edit scenario planning* permission.
105
105
  * Delete or archive a scenario
106
106
  */
107
107
  delete(requestParameters, initOverrides) {
@@ -267,7 +267,7 @@ export class ScenariosApi extends runtime.BaseAPI {
267
267
  });
268
268
  }
269
269
  /**
270
- * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
270
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Returns `409` if the scenario keeps changing concurrently while the update is retried. Requires the *Edit scenario planning* permission.
271
271
  * Update a scenario
272
272
  */
273
273
  updateRaw(requestParameters, initOverrides) {
@@ -298,7 +298,7 @@ export class ScenariosApi extends runtime.BaseAPI {
298
298
  });
299
299
  }
300
300
  /**
301
- * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Requires the *Edit scenario planning* permission.
301
+ * Updates the name, description, colour, and/or layers of the specified scenario. Only non-nil fields in the request body are applied. `hexCode` is a colour such as `#1f77b4` or `#abc`; an empty string clears it. A non-empty `layers` replaces the stored layers and `clearLayers` removes them all; sending both returns `400`. Returns `400` if the colour is not a valid hex code or a newly referenced layer points at an entity that does not exist. Returns `409` if the scenario keeps changing concurrently while the update is retried. Requires the *Edit scenario planning* permission.
302
302
  * Update a scenario
303
303
  */
304
304
  update(requestParameters, initOverrides) {
@@ -74,7 +74,7 @@ export interface SpaceRulesetsApiInterface {
74
74
  */
75
75
  createImage(requestParameters: SpaceRulesetsApiCreateImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
76
76
  /**
77
- * Permanently deletes a space ruleset from the current account. Requires the *Edit space rule set details* permission.
77
+ * Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
78
78
  * @summary Delete a space ruleset
79
79
  * @param {string} id
80
80
  * @param {*} [options] Override http request option.
@@ -83,7 +83,7 @@ export interface SpaceRulesetsApiInterface {
83
83
  */
84
84
  deleteRaw(requestParameters: SpaceRulesetsApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
85
85
  /**
86
- * Permanently deletes a space ruleset from the current account. Requires the *Edit space rule set details* permission.
86
+ * Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
87
87
  * Delete a space ruleset
88
88
  */
89
89
  delete(requestParameters: SpaceRulesetsApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -197,12 +197,12 @@ export declare class SpaceRulesetsApi extends runtime.BaseAPI implements SpaceRu
197
197
  */
198
198
  createImage(requestParameters: SpaceRulesetsApiCreateImageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
199
199
  /**
200
- * Permanently deletes a space ruleset from the current account. Requires the *Edit space rule set details* permission.
200
+ * Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
201
201
  * Delete a space ruleset
202
202
  */
203
203
  deleteRaw(requestParameters: SpaceRulesetsApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
204
204
  /**
205
- * Permanently deletes a space ruleset from the current account. Requires the *Edit space rule set details* permission.
205
+ * Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
206
206
  * Delete a space ruleset
207
207
  */
208
208
  delete(requestParameters: SpaceRulesetsApiDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -128,7 +128,7 @@ export class SpaceRulesetsApi extends runtime.BaseAPI {
128
128
  });
129
129
  }
130
130
  /**
131
- * Permanently deletes a space ruleset from the current account. Requires the *Edit space rule set details* permission.
131
+ * Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
132
132
  * Delete a space ruleset
133
133
  */
134
134
  deleteRaw(requestParameters, initOverrides) {
@@ -157,7 +157,7 @@ export class SpaceRulesetsApi extends runtime.BaseAPI {
157
157
  });
158
158
  }
159
159
  /**
160
- * Permanently deletes a space ruleset from the current account. Requires the *Edit space rule set details* permission.
160
+ * Permanently deletes a space ruleset from the current account and removes it from every variable\'s allowed `options`; a variable whose value was the ruleset moves to its first remaining option. Requires the *Edit space rule set details* permission.
161
161
  * Delete a space ruleset
162
162
  */
163
163
  delete(requestParameters, initOverrides) {
@@ -48,6 +48,18 @@ export interface AssistantChatPollBody {
48
48
  * @memberof AssistantChatPollBody
49
49
  */
50
50
  status: string;
51
+ /**
52
+ * While a subsession is running, how many messages it has recorded so far, which grows with each of its steps even when it calls the same tool again. Zero when no subsession is running, including once it has ended and before the turn has recorded its result.
53
+ * @type {number}
54
+ * @memberof AssistantChatPollBody
55
+ */
56
+ subsessionSteps: number;
57
+ /**
58
+ * While a subsession is running, the tool it is running now. Empty while it is thinking, and when no subsession is running. The running subsession is the run_subsession action whose toolCallId is not yet among the finished tool calls.
59
+ * @type {string}
60
+ * @memberof AssistantChatPollBody
61
+ */
62
+ subsessionTool: string;
51
63
  }
52
64
  /**
53
65
  * Check if a given object implements the AssistantChatPollBody interface.
@@ -26,6 +26,10 @@ export function instanceOfAssistantChatPollBody(value) {
26
26
  return false;
27
27
  if (!('status' in value) || value['status'] === undefined)
28
28
  return false;
29
+ if (!('subsessionSteps' in value) || value['subsessionSteps'] === undefined)
30
+ return false;
31
+ if (!('subsessionTool' in value) || value['subsessionTool'] === undefined)
32
+ return false;
29
33
  return true;
30
34
  }
31
35
  export function AssistantChatPollBodyFromJSON(json) {
@@ -41,6 +45,8 @@ export function AssistantChatPollBodyFromJSONTyped(json, ignoreDiscriminator) {
41
45
  'finishedToolCallIds': json['finishedToolCallIds'],
42
46
  'messages': (json['messages'].map(AssistantChatPollMessageFromJSON)),
43
47
  'status': json['status'],
48
+ 'subsessionSteps': json['subsessionSteps'],
49
+ 'subsessionTool': json['subsessionTool'],
44
50
  };
45
51
  }
46
52
  export function AssistantChatPollBodyToJSON(json) {
@@ -56,5 +62,7 @@ export function AssistantChatPollBodyToJSONTyped(value, ignoreDiscriminator = fa
56
62
  'finishedToolCallIds': value['finishedToolCallIds'],
57
63
  'messages': (value['messages'].map(AssistantChatPollMessageToJSON)),
58
64
  'status': value['status'],
65
+ 'subsessionSteps': value['subsessionSteps'],
66
+ 'subsessionTool': value['subsessionTool'],
59
67
  };
60
68
  }
@@ -58,6 +58,12 @@ export interface AssistantChatPollMessage {
58
58
  * @memberof AssistantChatPollMessage
59
59
  */
60
60
  role: string;
61
+ /**
62
+ * Id of the conversation a run_subsession action message (kind 2) started, which is polled like any other conversation to follow the subsession's own steps. It is not found until the subsession has started. Empty on every other message.
63
+ * @type {string}
64
+ * @memberof AssistantChatPollMessage
65
+ */
66
+ subsessionId: string;
61
67
  /**
62
68
  *
63
69
  * @type {string}
@@ -30,6 +30,8 @@ export function instanceOfAssistantChatPollMessage(value) {
30
30
  return false;
31
31
  if (!('role' in value) || value['role'] === undefined)
32
32
  return false;
33
+ if (!('subsessionId' in value) || value['subsessionId'] === undefined)
34
+ return false;
33
35
  if (!('text' in value) || value['text'] === undefined)
34
36
  return false;
35
37
  if (!('toolCallId' in value) || value['toolCallId'] === undefined)
@@ -51,6 +53,7 @@ export function AssistantChatPollMessageFromJSONTyped(json, ignoreDiscriminator)
51
53
  'payload': json['payload'],
52
54
  'requestId': json['requestId'],
53
55
  'role': json['role'],
56
+ 'subsessionId': json['subsessionId'],
54
57
  'text': json['text'],
55
58
  'toolCallId': json['toolCallId'],
56
59
  };
@@ -70,6 +73,7 @@ export function AssistantChatPollMessageToJSONTyped(value, ignoreDiscriminator =
70
73
  'payload': value['payload'],
71
74
  'requestId': value['requestId'],
72
75
  'role': value['role'],
76
+ 'subsessionId': value['subsessionId'],
73
77
  'text': value['text'],
74
78
  'toolCallId': value['toolCallId'],
75
79
  };
@@ -16,12 +16,30 @@ import type { AssistantTranscriptMessage } from './AssistantTranscriptMessage';
16
16
  * @interface AssistantTranscriptBody
17
17
  */
18
18
  export interface AssistantTranscriptBody {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AssistantTranscriptBody
23
+ */
24
+ conversationId: string;
19
25
  /**
20
26
  *
21
27
  * @type {Array<AssistantTranscriptMessage>}
22
28
  * @memberof AssistantTranscriptBody
23
29
  */
24
30
  messages: Array<AssistantTranscriptMessage>;
31
+ /**
32
+ * For a subsession, the id of the run_subsession tool call that started it. Empty for a conversation the user started.
33
+ * @type {string}
34
+ * @memberof AssistantTranscriptBody
35
+ */
36
+ parentToolCallId: string;
37
+ /**
38
+ * The transcript of each subsession the assistant started, in the order it started them. A subsession's messages are not part of messages: the tool message answering its run_subsession call holds only its reply. A subsession is never compacted and starts none of its own, so its summary fields and its own subsessions are empty.
39
+ * @type {Array<AssistantTranscriptBody>}
40
+ * @memberof AssistantTranscriptBody
41
+ */
42
+ subsessions: Array<AssistantTranscriptBody>;
25
43
  /**
26
44
  * What the assistant is told of the messages it no longer replays, once the conversation has been compacted. Empty until then.
27
45
  * @type {string}
@@ -16,8 +16,14 @@ import { AssistantTranscriptMessageFromJSON, AssistantTranscriptMessageToJSON, }
16
16
  * Check if a given object implements the AssistantTranscriptBody interface.
17
17
  */
18
18
  export function instanceOfAssistantTranscriptBody(value) {
19
+ if (!('conversationId' in value) || value['conversationId'] === undefined)
20
+ return false;
19
21
  if (!('messages' in value) || value['messages'] === undefined)
20
22
  return false;
23
+ if (!('parentToolCallId' in value) || value['parentToolCallId'] === undefined)
24
+ return false;
25
+ if (!('subsessions' in value) || value['subsessions'] === undefined)
26
+ return false;
21
27
  if (!('summary' in value) || value['summary'] === undefined)
22
28
  return false;
23
29
  if (!('summaryUpTo' in value) || value['summaryUpTo'] === undefined)
@@ -32,7 +38,10 @@ export function AssistantTranscriptBodyFromJSONTyped(json, ignoreDiscriminator)
32
38
  return json;
33
39
  }
34
40
  return {
41
+ 'conversationId': json['conversationId'],
35
42
  'messages': (json['messages'].map(AssistantTranscriptMessageFromJSON)),
43
+ 'parentToolCallId': json['parentToolCallId'],
44
+ 'subsessions': (json['subsessions'].map(AssistantTranscriptBodyFromJSON)),
36
45
  'summary': json['summary'],
37
46
  'summaryUpTo': json['summaryUpTo'],
38
47
  };
@@ -45,7 +54,10 @@ export function AssistantTranscriptBodyToJSONTyped(value, ignoreDiscriminator =
45
54
  return value;
46
55
  }
47
56
  return {
57
+ 'conversationId': value['conversationId'],
48
58
  'messages': (value['messages'].map(AssistantTranscriptMessageToJSON)),
59
+ 'parentToolCallId': value['parentToolCallId'],
60
+ 'subsessions': (value['subsessions'].map(AssistantTranscriptBodyToJSON)),
49
61
  'summary': value['summary'],
50
62
  'summaryUpTo': value['summaryUpTo'],
51
63
  };
@@ -48,6 +48,18 @@ export interface AssistantChatPollBody {
48
48
  * @memberof AssistantChatPollBody
49
49
  */
50
50
  status: string;
51
+ /**
52
+ * While a subsession is running, how many messages it has recorded so far, which grows with each of its steps even when it calls the same tool again. Zero when no subsession is running, including once it has ended and before the turn has recorded its result.
53
+ * @type {number}
54
+ * @memberof AssistantChatPollBody
55
+ */
56
+ subsessionSteps: number;
57
+ /**
58
+ * While a subsession is running, the tool it is running now. Empty while it is thinking, and when no subsession is running. The running subsession is the run_subsession action whose toolCallId is not yet among the finished tool calls.
59
+ * @type {string}
60
+ * @memberof AssistantChatPollBody
61
+ */
62
+ subsessionTool: string;
51
63
  }
52
64
  /**
53
65
  * Check if a given object implements the AssistantChatPollBody interface.
@@ -33,6 +33,10 @@ function instanceOfAssistantChatPollBody(value) {
33
33
  return false;
34
34
  if (!('status' in value) || value['status'] === undefined)
35
35
  return false;
36
+ if (!('subsessionSteps' in value) || value['subsessionSteps'] === undefined)
37
+ return false;
38
+ if (!('subsessionTool' in value) || value['subsessionTool'] === undefined)
39
+ return false;
36
40
  return true;
37
41
  }
38
42
  function AssistantChatPollBodyFromJSON(json) {
@@ -48,6 +52,8 @@ function AssistantChatPollBodyFromJSONTyped(json, ignoreDiscriminator) {
48
52
  'finishedToolCallIds': json['finishedToolCallIds'],
49
53
  'messages': (json['messages'].map(AssistantChatPollMessage_1.AssistantChatPollMessageFromJSON)),
50
54
  'status': json['status'],
55
+ 'subsessionSteps': json['subsessionSteps'],
56
+ 'subsessionTool': json['subsessionTool'],
51
57
  };
52
58
  }
53
59
  function AssistantChatPollBodyToJSON(json) {
@@ -63,5 +69,7 @@ function AssistantChatPollBodyToJSONTyped(value, ignoreDiscriminator = false) {
63
69
  'finishedToolCallIds': value['finishedToolCallIds'],
64
70
  'messages': (value['messages'].map(AssistantChatPollMessage_1.AssistantChatPollMessageToJSON)),
65
71
  'status': value['status'],
72
+ 'subsessionSteps': value['subsessionSteps'],
73
+ 'subsessionTool': value['subsessionTool'],
66
74
  };
67
75
  }
@@ -58,6 +58,12 @@ export interface AssistantChatPollMessage {
58
58
  * @memberof AssistantChatPollMessage
59
59
  */
60
60
  role: string;
61
+ /**
62
+ * Id of the conversation a run_subsession action message (kind 2) started, which is polled like any other conversation to follow the subsession's own steps. It is not found until the subsession has started. Empty on every other message.
63
+ * @type {string}
64
+ * @memberof AssistantChatPollMessage
65
+ */
66
+ subsessionId: string;
61
67
  /**
62
68
  *
63
69
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfAssistantChatPollMessage(value) {
37
37
  return false;
38
38
  if (!('role' in value) || value['role'] === undefined)
39
39
  return false;
40
+ if (!('subsessionId' in value) || value['subsessionId'] === undefined)
41
+ return false;
40
42
  if (!('text' in value) || value['text'] === undefined)
41
43
  return false;
42
44
  if (!('toolCallId' in value) || value['toolCallId'] === undefined)
@@ -58,6 +60,7 @@ function AssistantChatPollMessageFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'payload': json['payload'],
59
61
  'requestId': json['requestId'],
60
62
  'role': json['role'],
63
+ 'subsessionId': json['subsessionId'],
61
64
  'text': json['text'],
62
65
  'toolCallId': json['toolCallId'],
63
66
  };
@@ -77,6 +80,7 @@ function AssistantChatPollMessageToJSONTyped(value, ignoreDiscriminator = false)
77
80
  'payload': value['payload'],
78
81
  'requestId': value['requestId'],
79
82
  'role': value['role'],
83
+ 'subsessionId': value['subsessionId'],
80
84
  'text': value['text'],
81
85
  'toolCallId': value['toolCallId'],
82
86
  };
@@ -16,12 +16,30 @@ import type { AssistantTranscriptMessage } from './AssistantTranscriptMessage';
16
16
  * @interface AssistantTranscriptBody
17
17
  */
18
18
  export interface AssistantTranscriptBody {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AssistantTranscriptBody
23
+ */
24
+ conversationId: string;
19
25
  /**
20
26
  *
21
27
  * @type {Array<AssistantTranscriptMessage>}
22
28
  * @memberof AssistantTranscriptBody
23
29
  */
24
30
  messages: Array<AssistantTranscriptMessage>;
31
+ /**
32
+ * For a subsession, the id of the run_subsession tool call that started it. Empty for a conversation the user started.
33
+ * @type {string}
34
+ * @memberof AssistantTranscriptBody
35
+ */
36
+ parentToolCallId: string;
37
+ /**
38
+ * The transcript of each subsession the assistant started, in the order it started them. A subsession's messages are not part of messages: the tool message answering its run_subsession call holds only its reply. A subsession is never compacted and starts none of its own, so its summary fields and its own subsessions are empty.
39
+ * @type {Array<AssistantTranscriptBody>}
40
+ * @memberof AssistantTranscriptBody
41
+ */
42
+ subsessions: Array<AssistantTranscriptBody>;
25
43
  /**
26
44
  * What the assistant is told of the messages it no longer replays, once the conversation has been compacted. Empty until then.
27
45
  * @type {string}
@@ -23,8 +23,14 @@ const AssistantTranscriptMessage_1 = require("./AssistantTranscriptMessage");
23
23
  * Check if a given object implements the AssistantTranscriptBody interface.
24
24
  */
25
25
  function instanceOfAssistantTranscriptBody(value) {
26
+ if (!('conversationId' in value) || value['conversationId'] === undefined)
27
+ return false;
26
28
  if (!('messages' in value) || value['messages'] === undefined)
27
29
  return false;
30
+ if (!('parentToolCallId' in value) || value['parentToolCallId'] === undefined)
31
+ return false;
32
+ if (!('subsessions' in value) || value['subsessions'] === undefined)
33
+ return false;
28
34
  if (!('summary' in value) || value['summary'] === undefined)
29
35
  return false;
30
36
  if (!('summaryUpTo' in value) || value['summaryUpTo'] === undefined)
@@ -39,7 +45,10 @@ function AssistantTranscriptBodyFromJSONTyped(json, ignoreDiscriminator) {
39
45
  return json;
40
46
  }
41
47
  return {
48
+ 'conversationId': json['conversationId'],
42
49
  'messages': (json['messages'].map(AssistantTranscriptMessage_1.AssistantTranscriptMessageFromJSON)),
50
+ 'parentToolCallId': json['parentToolCallId'],
51
+ 'subsessions': (json['subsessions'].map(AssistantTranscriptBodyFromJSON)),
43
52
  'summary': json['summary'],
44
53
  'summaryUpTo': json['summaryUpTo'],
45
54
  };
@@ -52,7 +61,10 @@ function AssistantTranscriptBodyToJSONTyped(value, ignoreDiscriminator = false)
52
61
  return value;
53
62
  }
54
63
  return {
64
+ 'conversationId': value['conversationId'],
55
65
  'messages': (value['messages'].map(AssistantTranscriptMessage_1.AssistantTranscriptMessageToJSON)),
66
+ 'parentToolCallId': value['parentToolCallId'],
67
+ 'subsessions': (value['subsessions'].map(AssistantTranscriptBodyToJSON)),
56
68
  'summary': value['summary'],
57
69
  'summaryUpTo': value['summaryUpTo'],
58
70
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaciv/sdk",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "OpenAPI client for @spaciv/sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {