@tembo-io/sdk 0.24.0 → 0.25.0

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 (246) hide show
  1. package/api.md +166 -24
  2. package/dist/cjs/resources/agents/agents.d.ts +70 -0
  3. package/dist/cjs/resources/agents/agents.d.ts.map +1 -1
  4. package/dist/cjs/resources/agents/agents.js.map +1 -1
  5. package/dist/cjs/resources/agents/content-revisions.d.ts +27 -0
  6. package/dist/cjs/resources/agents/content-revisions.d.ts.map +1 -1
  7. package/dist/cjs/resources/agents/runs.d.ts +16 -0
  8. package/dist/cjs/resources/agents/runs.d.ts.map +1 -1
  9. package/dist/cjs/resources/agents/schedules.d.ts +34 -0
  10. package/dist/cjs/resources/agents/schedules.d.ts.map +1 -1
  11. package/dist/cjs/resources/agents/templates.d.ts +650 -78
  12. package/dist/cjs/resources/agents/templates.d.ts.map +1 -1
  13. package/dist/cjs/resources/agents/triggers.d.ts +1040 -4
  14. package/dist/cjs/resources/agents/triggers.d.ts.map +1 -1
  15. package/dist/cjs/resources/api-keys.d.ts +27 -3
  16. package/dist/cjs/resources/api-keys.d.ts.map +1 -1
  17. package/dist/cjs/resources/api-keys.js +3 -3
  18. package/dist/cjs/resources/api-keys.js.map +1 -1
  19. package/dist/cjs/resources/artifacts.d.ts +25 -0
  20. package/dist/cjs/resources/artifacts.d.ts.map +1 -1
  21. package/dist/cjs/resources/audit-logs.d.ts +3 -0
  22. package/dist/cjs/resources/audit-logs.d.ts.map +1 -1
  23. package/dist/cjs/resources/billing.d.ts +19 -0
  24. package/dist/cjs/resources/billing.d.ts.map +1 -1
  25. package/dist/cjs/resources/folders.d.ts +14 -0
  26. package/dist/cjs/resources/folders.d.ts.map +1 -1
  27. package/dist/cjs/resources/insights.d.ts +76 -0
  28. package/dist/cjs/resources/insights.d.ts.map +1 -1
  29. package/dist/cjs/resources/integrations/integrations.d.ts +44 -8
  30. package/dist/cjs/resources/integrations/integrations.d.ts.map +1 -1
  31. package/dist/cjs/resources/integrations/integrations.js +6 -8
  32. package/dist/cjs/resources/integrations/integrations.js.map +1 -1
  33. package/dist/cjs/resources/integrations/providers.d.ts +2 -75
  34. package/dist/cjs/resources/integrations/providers.d.ts.map +1 -1
  35. package/dist/cjs/resources/integrations/triggers.d.ts +3 -0
  36. package/dist/cjs/resources/integrations/triggers.d.ts.map +1 -1
  37. package/dist/cjs/resources/mcp-connections.d.ts +21 -0
  38. package/dist/cjs/resources/mcp-connections.d.ts.map +1 -1
  39. package/dist/cjs/resources/messages.d.ts +44 -0
  40. package/dist/cjs/resources/messages.d.ts.map +1 -1
  41. package/dist/cjs/resources/organizations/index.d.ts +2 -0
  42. package/dist/cjs/resources/organizations/index.d.ts.map +1 -1
  43. package/dist/cjs/resources/organizations/index.js +3 -1
  44. package/dist/cjs/resources/organizations/index.js.map +1 -1
  45. package/dist/cjs/resources/organizations/members.d.ts +46 -0
  46. package/dist/cjs/resources/organizations/members.d.ts.map +1 -1
  47. package/dist/cjs/resources/organizations/organizations.d.ts +15 -2
  48. package/dist/cjs/resources/organizations/organizations.d.ts.map +1 -1
  49. package/dist/cjs/resources/organizations/organizations.js +4 -0
  50. package/dist/cjs/resources/organizations/organizations.js.map +1 -1
  51. package/dist/cjs/resources/organizations/roles.d.ts +10 -10
  52. package/dist/cjs/resources/organizations/roles.d.ts.map +1 -1
  53. package/dist/cjs/resources/organizations/roles.js +0 -1
  54. package/dist/cjs/resources/organizations/roles.js.map +1 -1
  55. package/dist/cjs/resources/organizations/secrets.d.ts +15 -0
  56. package/dist/cjs/resources/organizations/secrets.d.ts.map +1 -1
  57. package/dist/cjs/resources/organizations/settings.d.ts +9 -0
  58. package/dist/cjs/resources/organizations/settings.d.ts.map +1 -1
  59. package/dist/cjs/resources/organizations/subscriptions.d.ts +368 -0
  60. package/dist/cjs/resources/organizations/subscriptions.d.ts.map +1 -1
  61. package/dist/cjs/resources/organizations/teams.d.ts +247 -0
  62. package/dist/cjs/resources/organizations/teams.d.ts.map +1 -0
  63. package/dist/cjs/resources/organizations/teams.js +149 -0
  64. package/dist/cjs/resources/organizations/teams.js.map +1 -0
  65. package/dist/cjs/resources/pins.d.ts +32 -2
  66. package/dist/cjs/resources/pins.d.ts.map +1 -1
  67. package/dist/cjs/resources/projects/builds.d.ts +14 -4
  68. package/dist/cjs/resources/projects/builds.d.ts.map +1 -1
  69. package/dist/cjs/resources/projects/builds.js +3 -3
  70. package/dist/cjs/resources/projects/builds.js.map +1 -1
  71. package/dist/cjs/resources/projects/projects.d.ts +95 -18
  72. package/dist/cjs/resources/projects/projects.d.ts.map +1 -1
  73. package/dist/cjs/resources/projects/projects.js +1 -6
  74. package/dist/cjs/resources/projects/projects.js.map +1 -1
  75. package/dist/cjs/resources/projects/schedules.d.ts +20 -0
  76. package/dist/cjs/resources/projects/schedules.d.ts.map +1 -1
  77. package/dist/cjs/resources/projects/snapshots.d.ts +19 -0
  78. package/dist/cjs/resources/projects/snapshots.d.ts.map +1 -1
  79. package/dist/cjs/resources/pull-requests.d.ts +22 -2
  80. package/dist/cjs/resources/pull-requests.d.ts.map +1 -1
  81. package/dist/cjs/resources/repositories.d.ts +19 -6
  82. package/dist/cjs/resources/repositories.d.ts.map +1 -1
  83. package/dist/cjs/resources/repositories.js +1 -4
  84. package/dist/cjs/resources/repositories.js.map +1 -1
  85. package/dist/cjs/resources/sessions/diffs.d.ts +43 -0
  86. package/dist/cjs/resources/sessions/diffs.d.ts.map +1 -1
  87. package/dist/cjs/resources/sessions/index.d.ts +2 -0
  88. package/dist/cjs/resources/sessions/index.d.ts.map +1 -1
  89. package/dist/cjs/resources/sessions/index.js +3 -1
  90. package/dist/cjs/resources/sessions/index.js.map +1 -1
  91. package/dist/cjs/resources/sessions/inputs.d.ts +1 -0
  92. package/dist/cjs/resources/sessions/inputs.d.ts.map +1 -1
  93. package/dist/cjs/resources/sessions/sessions.d.ts +284 -22
  94. package/dist/cjs/resources/sessions/sessions.d.ts.map +1 -1
  95. package/dist/cjs/resources/sessions/sessions.js +9 -7
  96. package/dist/cjs/resources/sessions/sessions.js.map +1 -1
  97. package/dist/cjs/resources/sessions/shares.d.ts +141 -0
  98. package/dist/cjs/resources/sessions/shares.d.ts.map +1 -0
  99. package/dist/cjs/resources/sessions/shares.js +66 -0
  100. package/dist/cjs/resources/sessions/shares.js.map +1 -0
  101. package/dist/cjs/resources/sessions/sources.d.ts +19 -0
  102. package/dist/cjs/resources/sessions/sources.d.ts.map +1 -1
  103. package/dist/cjs/resources/skills/marketplace.d.ts +1 -0
  104. package/dist/cjs/resources/skills/marketplace.d.ts.map +1 -1
  105. package/dist/cjs/resources/skills/skills.d.ts +20 -3
  106. package/dist/cjs/resources/skills/skills.d.ts.map +1 -1
  107. package/dist/cjs/resources/skills/skills.js +3 -3
  108. package/dist/cjs/resources/skills/skills.js.map +1 -1
  109. package/dist/cjs/resources/users/connected-accounts.d.ts +6 -0
  110. package/dist/cjs/resources/users/connected-accounts.d.ts.map +1 -1
  111. package/dist/cjs/resources/users/environment-variables.d.ts +7 -0
  112. package/dist/cjs/resources/users/environment-variables.d.ts.map +1 -1
  113. package/dist/cjs/resources/users/settings.d.ts +3 -3
  114. package/dist/cjs/resources/users/settings.d.ts.map +1 -1
  115. package/dist/cjs/resources/users/settings.js +3 -3
  116. package/dist/cjs/resources/users/settings.js.map +1 -1
  117. package/dist/cjs/resources/users/subscriptions.d.ts +368 -0
  118. package/dist/cjs/resources/users/subscriptions.d.ts.map +1 -1
  119. package/dist/cjs/resources/users/users.d.ts +4 -0
  120. package/dist/cjs/resources/users/users.d.ts.map +1 -1
  121. package/dist/cjs/resources/users/users.js.map +1 -1
  122. package/dist/cjs/version.d.ts +1 -1
  123. package/dist/cjs/version.js +1 -1
  124. package/dist/esm/resources/agents/agents.d.ts +70 -0
  125. package/dist/esm/resources/agents/agents.d.ts.map +1 -1
  126. package/dist/esm/resources/agents/agents.js.map +1 -1
  127. package/dist/esm/resources/agents/content-revisions.d.ts +27 -0
  128. package/dist/esm/resources/agents/content-revisions.d.ts.map +1 -1
  129. package/dist/esm/resources/agents/runs.d.ts +16 -0
  130. package/dist/esm/resources/agents/runs.d.ts.map +1 -1
  131. package/dist/esm/resources/agents/schedules.d.ts +34 -0
  132. package/dist/esm/resources/agents/schedules.d.ts.map +1 -1
  133. package/dist/esm/resources/agents/templates.d.ts +650 -78
  134. package/dist/esm/resources/agents/templates.d.ts.map +1 -1
  135. package/dist/esm/resources/agents/triggers.d.ts +1040 -4
  136. package/dist/esm/resources/agents/triggers.d.ts.map +1 -1
  137. package/dist/esm/resources/api-keys.d.ts +27 -3
  138. package/dist/esm/resources/api-keys.d.ts.map +1 -1
  139. package/dist/esm/resources/api-keys.js +3 -3
  140. package/dist/esm/resources/api-keys.js.map +1 -1
  141. package/dist/esm/resources/artifacts.d.ts +25 -0
  142. package/dist/esm/resources/artifacts.d.ts.map +1 -1
  143. package/dist/esm/resources/audit-logs.d.ts +3 -0
  144. package/dist/esm/resources/audit-logs.d.ts.map +1 -1
  145. package/dist/esm/resources/billing.d.ts +19 -0
  146. package/dist/esm/resources/billing.d.ts.map +1 -1
  147. package/dist/esm/resources/folders.d.ts +14 -0
  148. package/dist/esm/resources/folders.d.ts.map +1 -1
  149. package/dist/esm/resources/insights.d.ts +76 -0
  150. package/dist/esm/resources/insights.d.ts.map +1 -1
  151. package/dist/esm/resources/integrations/integrations.d.ts +44 -8
  152. package/dist/esm/resources/integrations/integrations.d.ts.map +1 -1
  153. package/dist/esm/resources/integrations/integrations.js +6 -8
  154. package/dist/esm/resources/integrations/integrations.js.map +1 -1
  155. package/dist/esm/resources/integrations/providers.d.ts +2 -75
  156. package/dist/esm/resources/integrations/providers.d.ts.map +1 -1
  157. package/dist/esm/resources/integrations/triggers.d.ts +3 -0
  158. package/dist/esm/resources/integrations/triggers.d.ts.map +1 -1
  159. package/dist/esm/resources/mcp-connections.d.ts +21 -0
  160. package/dist/esm/resources/mcp-connections.d.ts.map +1 -1
  161. package/dist/esm/resources/messages.d.ts +44 -0
  162. package/dist/esm/resources/messages.d.ts.map +1 -1
  163. package/dist/esm/resources/organizations/index.d.ts +2 -0
  164. package/dist/esm/resources/organizations/index.d.ts.map +1 -1
  165. package/dist/esm/resources/organizations/index.js +1 -0
  166. package/dist/esm/resources/organizations/index.js.map +1 -1
  167. package/dist/esm/resources/organizations/members.d.ts +46 -0
  168. package/dist/esm/resources/organizations/members.d.ts.map +1 -1
  169. package/dist/esm/resources/organizations/organizations.d.ts +15 -2
  170. package/dist/esm/resources/organizations/organizations.d.ts.map +1 -1
  171. package/dist/esm/resources/organizations/organizations.js +4 -0
  172. package/dist/esm/resources/organizations/organizations.js.map +1 -1
  173. package/dist/esm/resources/organizations/roles.d.ts +10 -10
  174. package/dist/esm/resources/organizations/roles.d.ts.map +1 -1
  175. package/dist/esm/resources/organizations/roles.js +0 -1
  176. package/dist/esm/resources/organizations/roles.js.map +1 -1
  177. package/dist/esm/resources/organizations/secrets.d.ts +15 -0
  178. package/dist/esm/resources/organizations/secrets.d.ts.map +1 -1
  179. package/dist/esm/resources/organizations/settings.d.ts +9 -0
  180. package/dist/esm/resources/organizations/settings.d.ts.map +1 -1
  181. package/dist/esm/resources/organizations/subscriptions.d.ts +368 -0
  182. package/dist/esm/resources/organizations/subscriptions.d.ts.map +1 -1
  183. package/dist/esm/resources/organizations/teams.d.ts +247 -0
  184. package/dist/esm/resources/organizations/teams.d.ts.map +1 -0
  185. package/dist/esm/resources/organizations/teams.js +145 -0
  186. package/dist/esm/resources/organizations/teams.js.map +1 -0
  187. package/dist/esm/resources/pins.d.ts +32 -2
  188. package/dist/esm/resources/pins.d.ts.map +1 -1
  189. package/dist/esm/resources/projects/builds.d.ts +14 -4
  190. package/dist/esm/resources/projects/builds.d.ts.map +1 -1
  191. package/dist/esm/resources/projects/builds.js +3 -3
  192. package/dist/esm/resources/projects/builds.js.map +1 -1
  193. package/dist/esm/resources/projects/projects.d.ts +95 -18
  194. package/dist/esm/resources/projects/projects.d.ts.map +1 -1
  195. package/dist/esm/resources/projects/projects.js +1 -6
  196. package/dist/esm/resources/projects/projects.js.map +1 -1
  197. package/dist/esm/resources/projects/schedules.d.ts +20 -0
  198. package/dist/esm/resources/projects/schedules.d.ts.map +1 -1
  199. package/dist/esm/resources/projects/snapshots.d.ts +19 -0
  200. package/dist/esm/resources/projects/snapshots.d.ts.map +1 -1
  201. package/dist/esm/resources/pull-requests.d.ts +22 -2
  202. package/dist/esm/resources/pull-requests.d.ts.map +1 -1
  203. package/dist/esm/resources/repositories.d.ts +19 -6
  204. package/dist/esm/resources/repositories.d.ts.map +1 -1
  205. package/dist/esm/resources/repositories.js +1 -4
  206. package/dist/esm/resources/repositories.js.map +1 -1
  207. package/dist/esm/resources/sessions/diffs.d.ts +43 -0
  208. package/dist/esm/resources/sessions/diffs.d.ts.map +1 -1
  209. package/dist/esm/resources/sessions/index.d.ts +2 -0
  210. package/dist/esm/resources/sessions/index.d.ts.map +1 -1
  211. package/dist/esm/resources/sessions/index.js +1 -0
  212. package/dist/esm/resources/sessions/index.js.map +1 -1
  213. package/dist/esm/resources/sessions/inputs.d.ts +1 -0
  214. package/dist/esm/resources/sessions/inputs.d.ts.map +1 -1
  215. package/dist/esm/resources/sessions/sessions.d.ts +284 -22
  216. package/dist/esm/resources/sessions/sessions.d.ts.map +1 -1
  217. package/dist/esm/resources/sessions/sessions.js +9 -7
  218. package/dist/esm/resources/sessions/sessions.js.map +1 -1
  219. package/dist/esm/resources/sessions/shares.d.ts +141 -0
  220. package/dist/esm/resources/sessions/shares.d.ts.map +1 -0
  221. package/dist/esm/resources/sessions/shares.js +62 -0
  222. package/dist/esm/resources/sessions/shares.js.map +1 -0
  223. package/dist/esm/resources/sessions/sources.d.ts +19 -0
  224. package/dist/esm/resources/sessions/sources.d.ts.map +1 -1
  225. package/dist/esm/resources/skills/marketplace.d.ts +1 -0
  226. package/dist/esm/resources/skills/marketplace.d.ts.map +1 -1
  227. package/dist/esm/resources/skills/skills.d.ts +20 -3
  228. package/dist/esm/resources/skills/skills.d.ts.map +1 -1
  229. package/dist/esm/resources/skills/skills.js +3 -3
  230. package/dist/esm/resources/skills/skills.js.map +1 -1
  231. package/dist/esm/resources/users/connected-accounts.d.ts +6 -0
  232. package/dist/esm/resources/users/connected-accounts.d.ts.map +1 -1
  233. package/dist/esm/resources/users/environment-variables.d.ts +7 -0
  234. package/dist/esm/resources/users/environment-variables.d.ts.map +1 -1
  235. package/dist/esm/resources/users/settings.d.ts +3 -3
  236. package/dist/esm/resources/users/settings.d.ts.map +1 -1
  237. package/dist/esm/resources/users/settings.js +3 -3
  238. package/dist/esm/resources/users/settings.js.map +1 -1
  239. package/dist/esm/resources/users/subscriptions.d.ts +368 -0
  240. package/dist/esm/resources/users/subscriptions.d.ts.map +1 -1
  241. package/dist/esm/resources/users/users.d.ts +4 -0
  242. package/dist/esm/resources/users/users.d.ts.map +1 -1
  243. package/dist/esm/resources/users/users.js.map +1 -1
  244. package/dist/esm/version.d.ts +1 -1
  245. package/dist/esm/version.js +1 -1
  246. package/package.json +1 -1
@@ -13,6 +13,8 @@ import * as QueueAPI from './queue.js';
13
13
  import { Queue, type QueueUpdateResponse, type QueueUpdateParams } from './queue.js';
14
14
  import * as CommandsAPI from './commands.js';
15
15
  import { Commands, type CommandListResponse } from './commands.js';
16
+ import * as SharesAPI from './shares.js';
17
+ import { Shares, type ShareListResponse, type ShareCreateResponse, type ShareDeleteResponse, type ShareListParams, type ShareCreateParams, type ShareDeleteParams } from './shares.js';
16
18
  export declare class Sessions extends APIResource {
17
19
  events: PublicSessionEvents;
18
20
  sources: SourcesAPI.Sources;
@@ -20,6 +22,7 @@ export declare class Sessions extends APIResource {
20
22
  inputs: InputsAPI.Inputs;
21
23
  queue: QueueAPI.Queue;
22
24
  commands: CommandsAPI.Commands;
25
+ shares: SharesAPI.Shares;
23
26
  /**
24
27
  * List and search sessions, including active or archived sessions, with repository, project, creator, and source filters and cursor pagination.
25
28
  *
@@ -40,7 +43,7 @@ export declare class Sessions extends APIResource {
40
43
  */
41
44
  list(query?: SessionListParams | null | undefined, options?: RequestOptions): APIPromise<SessionListResponse>;
42
45
  /**
43
- * Create a session for a task. Provide the initial prompt in description and optionally configure its repositories, agent, Build (normal) or Plan (planning) mode, and private or workspace visibility.
46
+ * Create a session for a task. Provide the initial prompt in description and optionally configure its repositories, agent, and Build (normal) or Plan (planning) mode. New sessions are private to their creator until shared through grants.
44
47
  *
45
48
  * @param {SessionCreateParams} body - The request body to send.
46
49
  * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
@@ -75,7 +78,7 @@ export declare class Sessions extends APIResource {
75
78
  */
76
79
  retrieve(sessionID: string, options?: RequestOptions): APIPromise<SessionRetrieveResponse>;
77
80
  /**
78
- * Update a session: archive or restore it, set priority, rename it, change agent/model, switch between Build (normal) and Plan (planning) modes, configure its workspace and branches, or change visibility between private and visible to workspace (public). Archiving uses level=0; restoring archived sessions uses level=1 and does not restart work. Use pins to pin or unpin sessions. Submit memoryMb alone to request asynchronous memory growth for a running adaptive sandbox within project limits; sandbox metrics report progress.
81
+ * Update a session: archive or restore it, set priority, rename it, change agent/model, switch between Build (normal) and Plan (planning) modes, or configure its workspace and branches. Share it through its sharing subresource; the deprecated visibility field remains for older clients. Archiving uses level=0; restoring archived sessions uses level=1 and does not restart work. Use pins to pin or unpin sessions. Submit memoryMb alone to request asynchronous memory growth for a running adaptive sandbox within project limits; sandbox metrics report progress.
79
82
  *
80
83
  * @param {string} sessionID
81
84
  * @param {SessionUpdateParams} body - The request body to send.
@@ -105,18 +108,16 @@ export declare class Sessions extends APIResource {
105
108
  * Create an independent session from a fresh workspace snapshot, or the latest saved snapshot when stopped, without replaying messages or adding context. The fork returns right away and its messages queue until its workspace finishes booting.
106
109
  *
107
110
  * @param {string} sessionID
108
- * @param {SessionForkParams} body - The request body to send.
111
+ * @param {SessionForkParams} [body] - The request body to send.
109
112
  * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
110
113
  * @returns {APIPromise<SessionForkResponse>} Fork a session
111
114
  *
112
115
  * @example
113
116
  * ```ts
114
- * const session = await client.sessions.fork('7c9e6679-7425-40de-944b-e07fc1f90ae7', {
115
- * queueRightAway: true,
116
- * });
117
+ * const session = await client.sessions.fork('7c9e6679-7425-40de-944b-e07fc1f90ae7');
117
118
  * ```
118
119
  */
119
- fork(sessionID: string, body: SessionForkParams, options?: RequestOptions): APIPromise<SessionForkResponse>;
120
+ fork(sessionID: string, body?: SessionForkParams | null | undefined, options?: RequestOptions): APIPromise<SessionForkResponse>;
120
121
  /**
121
122
  * Create a private session from a chat in another coding agent app, such as Conductor, with its messages and agent activity. No agent run starts until a follow-up is sent, which receives the imported history as context. Importing the same chat again returns the existing session.
122
123
  *
@@ -186,11 +187,19 @@ export interface SessionEventData {
186
187
  providerEvent?: boolean;
187
188
  delivery?: 'realtime' | 'persist';
188
189
  event?: SessionEventData.Event;
190
+ /**
191
+ * @minimum -9007199254740991
192
+ * @maximum 9007199254740991
193
+ */
189
194
  index?: number;
190
195
  /**
191
196
  * @maxLength 1000
192
197
  */
193
198
  itemId?: string;
199
+ /**
200
+ * @minimum -9007199254740991
201
+ * @maximum 9007199254740991
202
+ */
194
203
  sequenceNumber?: number;
195
204
  /**
196
205
  * @maxLength 1000000
@@ -277,6 +286,7 @@ export interface SessionListParams {
277
286
  /**
278
287
  * Filter sessions created by this automation agent.
279
288
  * @format uuid
289
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
280
290
  */
281
291
  agentId?: string;
282
292
  /**
@@ -286,6 +296,7 @@ export interface SessionListParams {
286
296
  /**
287
297
  * Only sessions created after this ISO 8601 timestamp.
288
298
  * @format date-time
299
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
289
300
  */
290
301
  createdAfter?: string;
291
302
  /**
@@ -304,6 +315,12 @@ export interface SessionListParams {
304
315
  * Exclude sessions pinned by the authenticated user.
305
316
  */
306
317
  excludePinned?: boolean;
318
+ /**
319
+ * Exclude sessions shared with this team. Requires organization:team:read.
320
+ * @format uuid
321
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
322
+ */
323
+ excludeTeamId?: string;
307
324
  /**
308
325
  * Filter by external source IDs, supplied as a comma-separated list.
309
326
  */
@@ -311,6 +328,7 @@ export interface SessionListParams {
311
328
  /**
312
329
  * Only sessions in this sidebar folder of the authenticated user. Takes precedence over inFolder.
313
330
  * @format uuid
331
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
314
332
  */
315
333
  folderId?: string;
316
334
  /**
@@ -333,6 +351,7 @@ export interface SessionListParams {
333
351
  /**
334
352
  * Filter sessions created by this session.
335
353
  * @format uuid
354
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
336
355
  */
337
356
  parentSessionId?: string;
338
357
  /**
@@ -379,12 +398,19 @@ export interface SessionListParams {
379
398
  * @default all
380
399
  */
381
400
  state?: 'all' | 'active' | 'archived';
401
+ /**
402
+ * Only sessions shared with this team. Requires organization:team:read.
403
+ * @format uuid
404
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
405
+ */
406
+ teamId?: string;
382
407
  }
383
408
  export interface SessionListResponse {
384
409
  items: Array<SessionListResponse.Item>;
385
410
  nextCursor: string | null;
386
411
  /**
387
412
  * @minimum 0
413
+ * @maximum 9007199254740991
388
414
  */
389
415
  totalCount?: number;
390
416
  }
@@ -393,39 +419,54 @@ export declare namespace SessionListResponse {
393
419
  agent: string | null;
394
420
  /**
395
421
  * @format uuid
422
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
396
423
  */
397
424
  agentId: string | null;
398
425
  /**
399
426
  * @format date-time
427
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
400
428
  */
401
429
  createdAt: string;
402
430
  externalId: string | null;
403
431
  /**
404
432
  * @format uuid
433
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
405
434
  */
406
435
  id: string;
407
436
  kind: string;
408
437
  /**
409
438
  * @format date-time
439
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
410
440
  */
411
441
  lastQueuedAt: string | null;
412
442
  /**
413
443
  * @format date-time
444
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
414
445
  */
415
446
  lastSeenAt: string;
447
+ /**
448
+ * @minimum -9007199254740991
449
+ * @maximum 9007199254740991
450
+ */
416
451
  level: number;
417
452
  projectId: string | null;
418
453
  title: string;
419
454
  /**
420
455
  * @format date-time
456
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
421
457
  */
422
458
  updatedAt: string;
423
- visibility: 'public' | 'private';
459
+ /**
460
+ * Deprecated: `private` when shared with no one, `public` when shared with anyone. List the session’s shares for its exact audiences.
461
+ * @deprecated
462
+ */
463
+ visibility: 'private' | 'public';
424
464
  artifacts: Array<Item.Artifact>;
425
465
  diffSummary: Item.DiffSummary | null;
426
466
  /**
427
467
  * Sidebar folder the authenticated user filed this session in.
428
468
  * @format uuid
469
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
429
470
  */
430
471
  folderId: string | null;
431
472
  isPinned: boolean;
@@ -438,6 +479,7 @@ export declare namespace SessionListResponse {
438
479
  interface Artifact {
439
480
  /**
440
481
  * @format uuid
482
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
441
483
  */
442
484
  id: string;
443
485
  pullRequests: Array<Artifact.PullRequest>;
@@ -449,6 +491,7 @@ export declare namespace SessionListResponse {
449
491
  codeRepository: PullRequest.CodeRepository | null;
450
492
  /**
451
493
  * @format uuid
494
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
452
495
  */
453
496
  id: string;
454
497
  isDraft: boolean;
@@ -462,6 +505,7 @@ export declare namespace SessionListResponse {
462
505
  interface CodeRepository {
463
506
  /**
464
507
  * @format uuid
508
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
465
509
  */
466
510
  id: string;
467
511
  provider: string;
@@ -469,12 +513,21 @@ export declare namespace SessionListResponse {
469
513
  }
470
514
  }
471
515
  interface DiffSummary {
516
+ /**
517
+ * @minimum -9007199254740991
518
+ * @maximum 9007199254740991
519
+ */
472
520
  additions: number;
521
+ /**
522
+ * @minimum -9007199254740991
523
+ * @maximum 9007199254740991
524
+ */
473
525
  deletions: number;
474
526
  }
475
527
  interface Project {
476
528
  /**
477
529
  * @format uuid
530
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
478
531
  */
479
532
  id: string;
480
533
  name: string;
@@ -484,6 +537,7 @@ export declare namespace SessionListResponse {
484
537
  interface SessionSource {
485
538
  /**
486
539
  * @format uuid
540
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
487
541
  */
488
542
  id: string;
489
543
  name: string;
@@ -494,6 +548,7 @@ export declare namespace SessionListResponse {
494
548
  interface Repository {
495
549
  /**
496
550
  * @format uuid
551
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
497
552
  */
498
553
  id: string;
499
554
  }
@@ -501,6 +556,7 @@ export declare namespace SessionListResponse {
501
556
  interface SourcePullRequest {
502
557
  /**
503
558
  * @format uuid
559
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
504
560
  */
505
561
  id: string;
506
562
  /**
@@ -560,10 +616,6 @@ export interface SessionCreateParams {
560
616
  * @maxLength 500
561
617
  */
562
618
  targetBranch?: string | null;
563
- /**
564
- * Session visibility: private or visible to workspace (public).
565
- */
566
- visibility?: 'private' | 'public';
567
619
  /**
568
620
  * Agent-specific runtime options, such as reasoning effort.
569
621
  */
@@ -582,6 +634,7 @@ export interface SessionCreateParams {
582
634
  /**
583
635
  * Optional caller-supplied session UUID. Omit to generate one.
584
636
  * @format uuid
637
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
585
638
  */
586
639
  id?: string;
587
640
  /**
@@ -591,6 +644,7 @@ export interface SessionCreateParams {
591
644
  /**
592
645
  * Pull request to associate with the session. Requires richContent.
593
646
  * @format uuid
647
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
594
648
  */
595
649
  pullRequestId?: string;
596
650
  /**
@@ -598,7 +652,7 @@ export interface SessionCreateParams {
598
652
  */
599
653
  queueRightAway?: boolean;
600
654
  /**
601
- * Size the VM automatically. Only for sessions created without a project (projectId "tembo").
655
+ * Size the VM automatically. Sessions are sized automatically by default, and project sessions always are.
602
656
  */
603
657
  automaticSizing?: boolean;
604
658
  /**
@@ -609,6 +663,16 @@ export interface SessionCreateParams {
609
663
  * Coding agent to start in a terminal session.
610
664
  */
611
665
  startupAgent?: 'claudeCode' | 'codex' | 'opencode' | 'pi' | 'amp' | 'cursor';
666
+ /**
667
+ * Who starts with access: private, or shared with the workspace (public). Defaults by session source; change it later by sharing.
668
+ */
669
+ visibility?: 'private' | 'public';
670
+ /**
671
+ * Also share the new session with this team, in the same transaction that creates it.
672
+ * @format uuid
673
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
674
+ */
675
+ teamId?: string;
612
676
  }
613
677
  export declare namespace SessionCreateParams {
614
678
  interface AgentOptions {
@@ -645,6 +709,7 @@ export interface SessionCreateResponse {
645
709
  agent: string | null;
646
710
  /**
647
711
  * @format uuid
712
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
648
713
  */
649
714
  agentId: string | null;
650
715
  artifactType: 'PullRequest' | 'ToolCall' | 'Plan' | 'Response' | 'File' | 'Service' | 'Source' | null;
@@ -652,28 +717,37 @@ export interface SessionCreateResponse {
652
717
  branchName: string | null;
653
718
  /**
654
719
  * @format date-time
720
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
655
721
  */
656
722
  createdAt: string;
657
723
  externalId: string | null;
658
724
  externalUrl: string | null;
659
725
  /**
660
726
  * @format uuid
727
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
661
728
  */
662
729
  id: string;
663
730
  kind: string;
664
731
  /**
665
732
  * @format date-time
733
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
666
734
  */
667
735
  lastQueuedAt: string | null;
668
736
  /**
669
737
  * @format date-time
738
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
670
739
  */
671
740
  lastSeenAt: string;
741
+ /**
742
+ * @minimum -9007199254740991
743
+ * @maximum 9007199254740991
744
+ */
672
745
  level: number;
673
746
  mode: 'normal' | 'planning';
674
747
  /**
675
748
  * The session whose agent created this session.
676
749
  * @format uuid
750
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
677
751
  */
678
752
  parentSessionId: string | null;
679
753
  projectId: string | null;
@@ -683,9 +757,14 @@ export interface SessionCreateResponse {
683
757
  title: string;
684
758
  /**
685
759
  * @format date-time
760
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
686
761
  */
687
762
  updatedAt: string;
688
- visibility: 'public' | 'private';
763
+ /**
764
+ * Deprecated: `private` when shared with no one, `public` when shared with anyone. List the session’s shares for its exact audiences.
765
+ * @deprecated
766
+ */
767
+ visibility: 'private' | 'public';
689
768
  artifacts: Array<SessionCreateResponse.Artifact>;
690
769
  /**
691
770
  * Whether the session VM is sized automatically.
@@ -696,6 +775,7 @@ export interface SessionCreateResponse {
696
775
  /**
697
776
  * Sidebar folder the authenticated user filed this session in.
698
777
  * @format uuid
778
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
699
779
  */
700
780
  folderId: string | null;
701
781
  /**
@@ -712,15 +792,18 @@ export declare namespace SessionCreateResponse {
712
792
  interface Artifact {
713
793
  /**
714
794
  * @format uuid
795
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
715
796
  */
716
797
  id: string;
717
798
  type: 'PullRequest' | 'ToolCall' | 'Plan' | 'Response' | 'File' | 'Service' | 'Source';
718
799
  /**
719
800
  * @format date-time
801
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
720
802
  */
721
803
  createdAt: string;
722
804
  /**
723
805
  * @format date-time
806
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
724
807
  */
725
808
  updatedAt: string;
726
809
  pullRequests: Array<Artifact.PullRequest>;
@@ -729,6 +812,7 @@ export declare namespace SessionCreateResponse {
729
812
  interface PullRequest {
730
813
  /**
731
814
  * @format uuid
815
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
732
816
  */
733
817
  id: string;
734
818
  /**
@@ -741,12 +825,14 @@ export declare namespace SessionCreateResponse {
741
825
  sourceBranch: string | null;
742
826
  /**
743
827
  * @format date-time
828
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
744
829
  */
745
830
  createdAt: string;
746
831
  agent: string | null;
747
832
  diff: PullRequest.Diff | null;
748
833
  /**
749
834
  * @format date-time
835
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
750
836
  */
751
837
  updatedAt: string;
752
838
  /**
@@ -764,10 +850,12 @@ export declare namespace SessionCreateResponse {
764
850
  interface Diff {
765
851
  /**
766
852
  * @minimum 0
853
+ * @maximum 9007199254740991
767
854
  */
768
855
  additions?: number;
769
856
  /**
770
857
  * @minimum 0
858
+ * @maximum 9007199254740991
771
859
  */
772
860
  deletions?: number;
773
861
  /**
@@ -788,6 +876,7 @@ export declare namespace SessionCreateResponse {
788
876
  interface CodeRepository {
789
877
  /**
790
878
  * @format uuid
879
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
791
880
  */
792
881
  id: string;
793
882
  name: string;
@@ -798,12 +887,21 @@ export declare namespace SessionCreateResponse {
798
887
  }
799
888
  }
800
889
  interface DiffSummary {
890
+ /**
891
+ * @minimum -9007199254740991
892
+ * @maximum 9007199254740991
893
+ */
801
894
  additions: number;
895
+ /**
896
+ * @minimum -9007199254740991
897
+ * @maximum 9007199254740991
898
+ */
802
899
  deletions: number;
803
900
  }
804
901
  interface Project {
805
902
  /**
806
903
  * @format uuid
904
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
807
905
  */
808
906
  id: string;
809
907
  name: string;
@@ -813,6 +911,7 @@ export declare namespace SessionCreateResponse {
813
911
  interface SessionSource {
814
912
  /**
815
913
  * @format uuid
914
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
816
915
  */
817
916
  id: string;
818
917
  name: string;
@@ -823,6 +922,7 @@ export declare namespace SessionCreateResponse {
823
922
  interface Repository {
824
923
  /**
825
924
  * @format uuid
925
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
826
926
  */
827
927
  id: string;
828
928
  name: string;
@@ -832,6 +932,7 @@ export declare namespace SessionCreateResponse {
832
932
  interface SourcePullRequest {
833
933
  /**
834
934
  * @format uuid
935
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
835
936
  */
836
937
  id: string;
837
938
  /**
@@ -855,6 +956,7 @@ export interface SessionRetrieveResponse {
855
956
  agent: string | null;
856
957
  /**
857
958
  * @format uuid
959
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
858
960
  */
859
961
  agentId: string | null;
860
962
  artifactType: 'PullRequest' | 'ToolCall' | 'Plan' | 'Response' | 'File' | 'Service' | 'Source' | null;
@@ -862,28 +964,37 @@ export interface SessionRetrieveResponse {
862
964
  branchName: string | null;
863
965
  /**
864
966
  * @format date-time
967
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
865
968
  */
866
969
  createdAt: string;
867
970
  externalId: string | null;
868
971
  externalUrl: string | null;
869
972
  /**
870
973
  * @format uuid
974
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
871
975
  */
872
976
  id: string;
873
977
  kind: string;
874
978
  /**
875
979
  * @format date-time
980
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
876
981
  */
877
982
  lastQueuedAt: string | null;
878
983
  /**
879
984
  * @format date-time
985
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
880
986
  */
881
987
  lastSeenAt: string;
988
+ /**
989
+ * @minimum -9007199254740991
990
+ * @maximum 9007199254740991
991
+ */
882
992
  level: number;
883
993
  mode: 'normal' | 'planning';
884
994
  /**
885
995
  * The session whose agent created this session.
886
996
  * @format uuid
997
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
887
998
  */
888
999
  parentSessionId: string | null;
889
1000
  projectId: string | null;
@@ -893,9 +1004,14 @@ export interface SessionRetrieveResponse {
893
1004
  title: string;
894
1005
  /**
895
1006
  * @format date-time
1007
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
896
1008
  */
897
1009
  updatedAt: string;
898
- visibility: 'public' | 'private';
1010
+ /**
1011
+ * Deprecated: `private` when shared with no one, `public` when shared with anyone. List the session’s shares for its exact audiences.
1012
+ * @deprecated
1013
+ */
1014
+ visibility: 'private' | 'public';
899
1015
  artifacts: Array<SessionRetrieveResponse.Artifact>;
900
1016
  /**
901
1017
  * Whether the session VM is sized automatically.
@@ -906,6 +1022,7 @@ export interface SessionRetrieveResponse {
906
1022
  /**
907
1023
  * Sidebar folder the authenticated user filed this session in.
908
1024
  * @format uuid
1025
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
909
1026
  */
910
1027
  folderId: string | null;
911
1028
  /**
@@ -922,15 +1039,18 @@ export declare namespace SessionRetrieveResponse {
922
1039
  interface Artifact {
923
1040
  /**
924
1041
  * @format uuid
1042
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
925
1043
  */
926
1044
  id: string;
927
1045
  type: 'PullRequest' | 'ToolCall' | 'Plan' | 'Response' | 'File' | 'Service' | 'Source';
928
1046
  /**
929
1047
  * @format date-time
1048
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
930
1049
  */
931
1050
  createdAt: string;
932
1051
  /**
933
1052
  * @format date-time
1053
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
934
1054
  */
935
1055
  updatedAt: string;
936
1056
  pullRequests: Array<Artifact.PullRequest>;
@@ -939,6 +1059,7 @@ export declare namespace SessionRetrieveResponse {
939
1059
  interface PullRequest {
940
1060
  /**
941
1061
  * @format uuid
1062
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
942
1063
  */
943
1064
  id: string;
944
1065
  /**
@@ -951,12 +1072,14 @@ export declare namespace SessionRetrieveResponse {
951
1072
  sourceBranch: string | null;
952
1073
  /**
953
1074
  * @format date-time
1075
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
954
1076
  */
955
1077
  createdAt: string;
956
1078
  agent: string | null;
957
1079
  diff: PullRequest.Diff | null;
958
1080
  /**
959
1081
  * @format date-time
1082
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
960
1083
  */
961
1084
  updatedAt: string;
962
1085
  /**
@@ -974,10 +1097,12 @@ export declare namespace SessionRetrieveResponse {
974
1097
  interface Diff {
975
1098
  /**
976
1099
  * @minimum 0
1100
+ * @maximum 9007199254740991
977
1101
  */
978
1102
  additions?: number;
979
1103
  /**
980
1104
  * @minimum 0
1105
+ * @maximum 9007199254740991
981
1106
  */
982
1107
  deletions?: number;
983
1108
  /**
@@ -998,6 +1123,7 @@ export declare namespace SessionRetrieveResponse {
998
1123
  interface CodeRepository {
999
1124
  /**
1000
1125
  * @format uuid
1126
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1001
1127
  */
1002
1128
  id: string;
1003
1129
  name: string;
@@ -1008,12 +1134,21 @@ export declare namespace SessionRetrieveResponse {
1008
1134
  }
1009
1135
  }
1010
1136
  interface DiffSummary {
1137
+ /**
1138
+ * @minimum -9007199254740991
1139
+ * @maximum 9007199254740991
1140
+ */
1011
1141
  additions: number;
1142
+ /**
1143
+ * @minimum -9007199254740991
1144
+ * @maximum 9007199254740991
1145
+ */
1012
1146
  deletions: number;
1013
1147
  }
1014
1148
  interface Project {
1015
1149
  /**
1016
1150
  * @format uuid
1151
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1017
1152
  */
1018
1153
  id: string;
1019
1154
  name: string;
@@ -1023,6 +1158,7 @@ export declare namespace SessionRetrieveResponse {
1023
1158
  interface SessionSource {
1024
1159
  /**
1025
1160
  * @format uuid
1161
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1026
1162
  */
1027
1163
  id: string;
1028
1164
  name: string;
@@ -1033,6 +1169,7 @@ export declare namespace SessionRetrieveResponse {
1033
1169
  interface Repository {
1034
1170
  /**
1035
1171
  * @format uuid
1172
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1036
1173
  */
1037
1174
  id: string;
1038
1175
  name: string;
@@ -1042,6 +1179,7 @@ export declare namespace SessionRetrieveResponse {
1042
1179
  interface SourcePullRequest {
1043
1180
  /**
1044
1181
  * @format uuid
1182
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1045
1183
  */
1046
1184
  id: string;
1047
1185
  /**
@@ -1062,6 +1200,11 @@ export declare namespace SessionRetrieveResponse {
1062
1200
  }
1063
1201
  }
1064
1202
  export interface SessionUpdateParams {
1203
+ /**
1204
+ * Deprecated, kept until older clients update; share the session instead. `public` shares it with the workspace; `private` removes every share so only the creator reaches it. Only the session creator can change it.
1205
+ * @deprecated
1206
+ */
1207
+ visibility?: 'private' | 'public';
1065
1208
  /**
1066
1209
  * Request in-place memory growth for a running adaptive sandbox, within project limits. Submit separately from other session changes. Returns the session while the resize runs asynchronously; sandbox metrics report its progress.
1067
1210
  * @minimum 1024
@@ -1136,10 +1279,6 @@ export interface SessionUpdateParams {
1136
1279
  * @maxLength 1000
1137
1280
  */
1138
1281
  title?: string;
1139
- /**
1140
- * Change session visibility: private or visible to workspace (public). Only the session creator can change it.
1141
- */
1142
- visibility?: 'private' | 'public';
1143
1282
  }
1144
1283
  export declare namespace SessionUpdateParams {
1145
1284
  interface AgentOptions {
@@ -1176,6 +1315,7 @@ export interface SessionUpdateResponse {
1176
1315
  agent: string | null;
1177
1316
  /**
1178
1317
  * @format uuid
1318
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1179
1319
  */
1180
1320
  agentId: string | null;
1181
1321
  artifactType: 'PullRequest' | 'ToolCall' | 'Plan' | 'Response' | 'File' | 'Service' | 'Source' | null;
@@ -1183,28 +1323,37 @@ export interface SessionUpdateResponse {
1183
1323
  branchName: string | null;
1184
1324
  /**
1185
1325
  * @format date-time
1326
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1186
1327
  */
1187
1328
  createdAt: string;
1188
1329
  externalId: string | null;
1189
1330
  externalUrl: string | null;
1190
1331
  /**
1191
1332
  * @format uuid
1333
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1192
1334
  */
1193
1335
  id: string;
1194
1336
  kind: string;
1195
1337
  /**
1196
1338
  * @format date-time
1339
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1197
1340
  */
1198
1341
  lastQueuedAt: string | null;
1199
1342
  /**
1200
1343
  * @format date-time
1344
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1201
1345
  */
1202
1346
  lastSeenAt: string;
1347
+ /**
1348
+ * @minimum -9007199254740991
1349
+ * @maximum 9007199254740991
1350
+ */
1203
1351
  level: number;
1204
1352
  mode: 'normal' | 'planning';
1205
1353
  /**
1206
1354
  * The session whose agent created this session.
1207
1355
  * @format uuid
1356
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1208
1357
  */
1209
1358
  parentSessionId: string | null;
1210
1359
  projectId: string | null;
@@ -1214,9 +1363,14 @@ export interface SessionUpdateResponse {
1214
1363
  title: string;
1215
1364
  /**
1216
1365
  * @format date-time
1366
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1217
1367
  */
1218
1368
  updatedAt: string;
1219
- visibility: 'public' | 'private';
1369
+ /**
1370
+ * Deprecated: `private` when shared with no one, `public` when shared with anyone. List the session’s shares for its exact audiences.
1371
+ * @deprecated
1372
+ */
1373
+ visibility: 'private' | 'public';
1220
1374
  artifacts: Array<SessionUpdateResponse.Artifact>;
1221
1375
  /**
1222
1376
  * Whether the session VM is sized automatically.
@@ -1227,6 +1381,7 @@ export interface SessionUpdateResponse {
1227
1381
  /**
1228
1382
  * Sidebar folder the authenticated user filed this session in.
1229
1383
  * @format uuid
1384
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1230
1385
  */
1231
1386
  folderId: string | null;
1232
1387
  /**
@@ -1243,15 +1398,18 @@ export declare namespace SessionUpdateResponse {
1243
1398
  interface Artifact {
1244
1399
  /**
1245
1400
  * @format uuid
1401
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1246
1402
  */
1247
1403
  id: string;
1248
1404
  type: 'PullRequest' | 'ToolCall' | 'Plan' | 'Response' | 'File' | 'Service' | 'Source';
1249
1405
  /**
1250
1406
  * @format date-time
1407
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1251
1408
  */
1252
1409
  createdAt: string;
1253
1410
  /**
1254
1411
  * @format date-time
1412
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1255
1413
  */
1256
1414
  updatedAt: string;
1257
1415
  pullRequests: Array<Artifact.PullRequest>;
@@ -1260,6 +1418,7 @@ export declare namespace SessionUpdateResponse {
1260
1418
  interface PullRequest {
1261
1419
  /**
1262
1420
  * @format uuid
1421
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1263
1422
  */
1264
1423
  id: string;
1265
1424
  /**
@@ -1272,12 +1431,14 @@ export declare namespace SessionUpdateResponse {
1272
1431
  sourceBranch: string | null;
1273
1432
  /**
1274
1433
  * @format date-time
1434
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1275
1435
  */
1276
1436
  createdAt: string;
1277
1437
  agent: string | null;
1278
1438
  diff: PullRequest.Diff | null;
1279
1439
  /**
1280
1440
  * @format date-time
1441
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1281
1442
  */
1282
1443
  updatedAt: string;
1283
1444
  /**
@@ -1295,10 +1456,12 @@ export declare namespace SessionUpdateResponse {
1295
1456
  interface Diff {
1296
1457
  /**
1297
1458
  * @minimum 0
1459
+ * @maximum 9007199254740991
1298
1460
  */
1299
1461
  additions?: number;
1300
1462
  /**
1301
1463
  * @minimum 0
1464
+ * @maximum 9007199254740991
1302
1465
  */
1303
1466
  deletions?: number;
1304
1467
  /**
@@ -1319,6 +1482,7 @@ export declare namespace SessionUpdateResponse {
1319
1482
  interface CodeRepository {
1320
1483
  /**
1321
1484
  * @format uuid
1485
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1322
1486
  */
1323
1487
  id: string;
1324
1488
  name: string;
@@ -1329,12 +1493,21 @@ export declare namespace SessionUpdateResponse {
1329
1493
  }
1330
1494
  }
1331
1495
  interface DiffSummary {
1496
+ /**
1497
+ * @minimum -9007199254740991
1498
+ * @maximum 9007199254740991
1499
+ */
1332
1500
  additions: number;
1501
+ /**
1502
+ * @minimum -9007199254740991
1503
+ * @maximum 9007199254740991
1504
+ */
1333
1505
  deletions: number;
1334
1506
  }
1335
1507
  interface Project {
1336
1508
  /**
1337
1509
  * @format uuid
1510
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1338
1511
  */
1339
1512
  id: string;
1340
1513
  name: string;
@@ -1344,6 +1517,7 @@ export declare namespace SessionUpdateResponse {
1344
1517
  interface SessionSource {
1345
1518
  /**
1346
1519
  * @format uuid
1520
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1347
1521
  */
1348
1522
  id: string;
1349
1523
  name: string;
@@ -1354,6 +1528,7 @@ export declare namespace SessionUpdateResponse {
1354
1528
  interface Repository {
1355
1529
  /**
1356
1530
  * @format uuid
1531
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1357
1532
  */
1358
1533
  id: string;
1359
1534
  name: string;
@@ -1363,6 +1538,7 @@ export declare namespace SessionUpdateResponse {
1363
1538
  interface SourcePullRequest {
1364
1539
  /**
1365
1540
  * @format uuid
1541
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1366
1542
  */
1367
1543
  id: string;
1368
1544
  /**
@@ -1386,6 +1562,7 @@ export interface SessionDeleteResponse {
1386
1562
  deleted: true;
1387
1563
  /**
1388
1564
  * @format uuid
1565
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1389
1566
  */
1390
1567
  id: string;
1391
1568
  }
@@ -1412,6 +1589,7 @@ export interface SessionForkResponse {
1412
1589
  agent: string | null;
1413
1590
  /**
1414
1591
  * @format uuid
1592
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1415
1593
  */
1416
1594
  agentId: string | null;
1417
1595
  artifactType: 'PullRequest' | 'ToolCall' | 'Plan' | 'Response' | 'File' | 'Service' | 'Source' | null;
@@ -1419,28 +1597,37 @@ export interface SessionForkResponse {
1419
1597
  branchName: string | null;
1420
1598
  /**
1421
1599
  * @format date-time
1600
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1422
1601
  */
1423
1602
  createdAt: string;
1424
1603
  externalId: string | null;
1425
1604
  externalUrl: string | null;
1426
1605
  /**
1427
1606
  * @format uuid
1607
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1428
1608
  */
1429
1609
  id: string;
1430
1610
  kind: string;
1431
1611
  /**
1432
1612
  * @format date-time
1613
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1433
1614
  */
1434
1615
  lastQueuedAt: string | null;
1435
1616
  /**
1436
1617
  * @format date-time
1618
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1437
1619
  */
1438
1620
  lastSeenAt: string;
1621
+ /**
1622
+ * @minimum -9007199254740991
1623
+ * @maximum 9007199254740991
1624
+ */
1439
1625
  level: number;
1440
1626
  mode: 'normal' | 'planning';
1441
1627
  /**
1442
1628
  * The session whose agent created this session.
1443
1629
  * @format uuid
1630
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1444
1631
  */
1445
1632
  parentSessionId: string | null;
1446
1633
  projectId: string | null;
@@ -1450,9 +1637,14 @@ export interface SessionForkResponse {
1450
1637
  title: string;
1451
1638
  /**
1452
1639
  * @format date-time
1640
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1453
1641
  */
1454
1642
  updatedAt: string;
1455
- visibility: 'public' | 'private';
1643
+ /**
1644
+ * Deprecated: `private` when shared with no one, `public` when shared with anyone. List the session’s shares for its exact audiences.
1645
+ * @deprecated
1646
+ */
1647
+ visibility: 'private' | 'public';
1456
1648
  artifacts: Array<SessionForkResponse.Artifact>;
1457
1649
  /**
1458
1650
  * Whether the session VM is sized automatically.
@@ -1463,6 +1655,7 @@ export interface SessionForkResponse {
1463
1655
  /**
1464
1656
  * Sidebar folder the authenticated user filed this session in.
1465
1657
  * @format uuid
1658
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1466
1659
  */
1467
1660
  folderId: string | null;
1468
1661
  /**
@@ -1479,15 +1672,18 @@ export declare namespace SessionForkResponse {
1479
1672
  interface Artifact {
1480
1673
  /**
1481
1674
  * @format uuid
1675
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1482
1676
  */
1483
1677
  id: string;
1484
1678
  type: 'PullRequest' | 'ToolCall' | 'Plan' | 'Response' | 'File' | 'Service' | 'Source';
1485
1679
  /**
1486
1680
  * @format date-time
1681
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1487
1682
  */
1488
1683
  createdAt: string;
1489
1684
  /**
1490
1685
  * @format date-time
1686
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1491
1687
  */
1492
1688
  updatedAt: string;
1493
1689
  pullRequests: Array<Artifact.PullRequest>;
@@ -1496,6 +1692,7 @@ export declare namespace SessionForkResponse {
1496
1692
  interface PullRequest {
1497
1693
  /**
1498
1694
  * @format uuid
1695
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1499
1696
  */
1500
1697
  id: string;
1501
1698
  /**
@@ -1508,12 +1705,14 @@ export declare namespace SessionForkResponse {
1508
1705
  sourceBranch: string | null;
1509
1706
  /**
1510
1707
  * @format date-time
1708
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1511
1709
  */
1512
1710
  createdAt: string;
1513
1711
  agent: string | null;
1514
1712
  diff: PullRequest.Diff | null;
1515
1713
  /**
1516
1714
  * @format date-time
1715
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1517
1716
  */
1518
1717
  updatedAt: string;
1519
1718
  /**
@@ -1531,10 +1730,12 @@ export declare namespace SessionForkResponse {
1531
1730
  interface Diff {
1532
1731
  /**
1533
1732
  * @minimum 0
1733
+ * @maximum 9007199254740991
1534
1734
  */
1535
1735
  additions?: number;
1536
1736
  /**
1537
1737
  * @minimum 0
1738
+ * @maximum 9007199254740991
1538
1739
  */
1539
1740
  deletions?: number;
1540
1741
  /**
@@ -1555,6 +1756,7 @@ export declare namespace SessionForkResponse {
1555
1756
  interface CodeRepository {
1556
1757
  /**
1557
1758
  * @format uuid
1759
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1558
1760
  */
1559
1761
  id: string;
1560
1762
  name: string;
@@ -1565,12 +1767,21 @@ export declare namespace SessionForkResponse {
1565
1767
  }
1566
1768
  }
1567
1769
  interface DiffSummary {
1770
+ /**
1771
+ * @minimum -9007199254740991
1772
+ * @maximum 9007199254740991
1773
+ */
1568
1774
  additions: number;
1775
+ /**
1776
+ * @minimum -9007199254740991
1777
+ * @maximum 9007199254740991
1778
+ */
1569
1779
  deletions: number;
1570
1780
  }
1571
1781
  interface Project {
1572
1782
  /**
1573
1783
  * @format uuid
1784
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1574
1785
  */
1575
1786
  id: string;
1576
1787
  name: string;
@@ -1580,6 +1791,7 @@ export declare namespace SessionForkResponse {
1580
1791
  interface SessionSource {
1581
1792
  /**
1582
1793
  * @format uuid
1794
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1583
1795
  */
1584
1796
  id: string;
1585
1797
  name: string;
@@ -1590,6 +1802,7 @@ export declare namespace SessionForkResponse {
1590
1802
  interface Repository {
1591
1803
  /**
1592
1804
  * @format uuid
1805
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1593
1806
  */
1594
1807
  id: string;
1595
1808
  name: string;
@@ -1599,6 +1812,7 @@ export declare namespace SessionForkResponse {
1599
1812
  interface SourcePullRequest {
1600
1813
  /**
1601
1814
  * @format uuid
1815
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1602
1816
  */
1603
1817
  id: string;
1604
1818
  /**
@@ -1659,6 +1873,7 @@ export declare namespace SessionImportParams {
1659
1873
  content: string;
1660
1874
  /**
1661
1875
  * @format date-time
1876
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
1662
1877
  */
1663
1878
  sentAt: string;
1664
1879
  }
@@ -1667,6 +1882,7 @@ export interface SessionImportResponse {
1667
1882
  agent: string | null;
1668
1883
  /**
1669
1884
  * @format uuid
1885
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1670
1886
  */
1671
1887
  agentId: string | null;
1672
1888
  artifactType: 'PullRequest' | 'ToolCall' | 'Plan' | 'Response' | 'File' | 'Service' | 'Source' | null;
@@ -1674,28 +1890,37 @@ export interface SessionImportResponse {
1674
1890
  branchName: string | null;
1675
1891
  /**
1676
1892
  * @format date-time
1893
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1677
1894
  */
1678
1895
  createdAt: string;
1679
1896
  externalId: string | null;
1680
1897
  externalUrl: string | null;
1681
1898
  /**
1682
1899
  * @format uuid
1900
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1683
1901
  */
1684
1902
  id: string;
1685
1903
  kind: string;
1686
1904
  /**
1687
1905
  * @format date-time
1906
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1688
1907
  */
1689
1908
  lastQueuedAt: string | null;
1690
1909
  /**
1691
1910
  * @format date-time
1911
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1692
1912
  */
1693
1913
  lastSeenAt: string;
1914
+ /**
1915
+ * @minimum -9007199254740991
1916
+ * @maximum 9007199254740991
1917
+ */
1694
1918
  level: number;
1695
1919
  mode: 'normal' | 'planning';
1696
1920
  /**
1697
1921
  * The session whose agent created this session.
1698
1922
  * @format uuid
1923
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1699
1924
  */
1700
1925
  parentSessionId: string | null;
1701
1926
  projectId: string | null;
@@ -1705,9 +1930,14 @@ export interface SessionImportResponse {
1705
1930
  title: string;
1706
1931
  /**
1707
1932
  * @format date-time
1933
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1708
1934
  */
1709
1935
  updatedAt: string;
1710
- visibility: 'public' | 'private';
1936
+ /**
1937
+ * Deprecated: `private` when shared with no one, `public` when shared with anyone. List the session’s shares for its exact audiences.
1938
+ * @deprecated
1939
+ */
1940
+ visibility: 'private' | 'public';
1711
1941
  artifacts: Array<SessionImportResponse.Artifact>;
1712
1942
  /**
1713
1943
  * Whether the session VM is sized automatically.
@@ -1718,6 +1948,7 @@ export interface SessionImportResponse {
1718
1948
  /**
1719
1949
  * Sidebar folder the authenticated user filed this session in.
1720
1950
  * @format uuid
1951
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1721
1952
  */
1722
1953
  folderId: string | null;
1723
1954
  /**
@@ -1734,15 +1965,18 @@ export declare namespace SessionImportResponse {
1734
1965
  interface Artifact {
1735
1966
  /**
1736
1967
  * @format uuid
1968
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1737
1969
  */
1738
1970
  id: string;
1739
1971
  type: 'PullRequest' | 'ToolCall' | 'Plan' | 'Response' | 'File' | 'Service' | 'Source';
1740
1972
  /**
1741
1973
  * @format date-time
1974
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1742
1975
  */
1743
1976
  createdAt: string;
1744
1977
  /**
1745
1978
  * @format date-time
1979
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1746
1980
  */
1747
1981
  updatedAt: string;
1748
1982
  pullRequests: Array<Artifact.PullRequest>;
@@ -1751,6 +1985,7 @@ export declare namespace SessionImportResponse {
1751
1985
  interface PullRequest {
1752
1986
  /**
1753
1987
  * @format uuid
1988
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1754
1989
  */
1755
1990
  id: string;
1756
1991
  /**
@@ -1763,12 +1998,14 @@ export declare namespace SessionImportResponse {
1763
1998
  sourceBranch: string | null;
1764
1999
  /**
1765
2000
  * @format date-time
2001
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1766
2002
  */
1767
2003
  createdAt: string;
1768
2004
  agent: string | null;
1769
2005
  diff: PullRequest.Diff | null;
1770
2006
  /**
1771
2007
  * @format date-time
2008
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1772
2009
  */
1773
2010
  updatedAt: string;
1774
2011
  /**
@@ -1786,10 +2023,12 @@ export declare namespace SessionImportResponse {
1786
2023
  interface Diff {
1787
2024
  /**
1788
2025
  * @minimum 0
2026
+ * @maximum 9007199254740991
1789
2027
  */
1790
2028
  additions?: number;
1791
2029
  /**
1792
2030
  * @minimum 0
2031
+ * @maximum 9007199254740991
1793
2032
  */
1794
2033
  deletions?: number;
1795
2034
  /**
@@ -1810,6 +2049,7 @@ export declare namespace SessionImportResponse {
1810
2049
  interface CodeRepository {
1811
2050
  /**
1812
2051
  * @format uuid
2052
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1813
2053
  */
1814
2054
  id: string;
1815
2055
  name: string;
@@ -1820,12 +2060,21 @@ export declare namespace SessionImportResponse {
1820
2060
  }
1821
2061
  }
1822
2062
  interface DiffSummary {
2063
+ /**
2064
+ * @minimum -9007199254740991
2065
+ * @maximum 9007199254740991
2066
+ */
1823
2067
  additions: number;
2068
+ /**
2069
+ * @minimum -9007199254740991
2070
+ * @maximum 9007199254740991
2071
+ */
1824
2072
  deletions: number;
1825
2073
  }
1826
2074
  interface Project {
1827
2075
  /**
1828
2076
  * @format uuid
2077
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1829
2078
  */
1830
2079
  id: string;
1831
2080
  name: string;
@@ -1835,6 +2084,7 @@ export declare namespace SessionImportResponse {
1835
2084
  interface SessionSource {
1836
2085
  /**
1837
2086
  * @format uuid
2087
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1838
2088
  */
1839
2089
  id: string;
1840
2090
  name: string;
@@ -1845,6 +2095,7 @@ export declare namespace SessionImportResponse {
1845
2095
  interface Repository {
1846
2096
  /**
1847
2097
  * @format uuid
2098
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1848
2099
  */
1849
2100
  id: string;
1850
2101
  name: string;
@@ -1854,6 +2105,7 @@ export declare namespace SessionImportResponse {
1854
2105
  interface SourcePullRequest {
1855
2106
  /**
1856
2107
  * @format uuid
2108
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1857
2109
  */
1858
2110
  id: string;
1859
2111
  /**
@@ -1882,22 +2134,27 @@ export interface SessionStopParams {
1882
2134
  export interface SessionStopResponse {
1883
2135
  /**
1884
2136
  * @minimum 0
2137
+ * @maximum 9007199254740991
1885
2138
  */
1886
2139
  cancelledSessions: number;
1887
2140
  /**
1888
2141
  * @minimum 0
2142
+ * @maximum 9007199254740991
1889
2143
  */
1890
2144
  cancelledJobs: number;
1891
2145
  /**
1892
2146
  * @minimum 0
2147
+ * @maximum 9007199254740991
1893
2148
  */
1894
2149
  stoppedRuntimeSessions: number;
1895
2150
  /**
1896
2151
  * @minimum 0
2152
+ * @maximum 9007199254740991
1897
2153
  */
1898
2154
  interruptedRuntimeTurns: number;
1899
2155
  /**
1900
2156
  * @minimum 0
2157
+ * @maximum 9007199254740991
1901
2158
  */
1902
2159
  cancelledRuntimeTurns: number;
1903
2160
  /**
@@ -1944,20 +2201,24 @@ export declare namespace SessionListEventsResponse {
1944
2201
  interface Item {
1945
2202
  /**
1946
2203
  * @format date-time
2204
+ * @pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
1947
2205
  */
1948
2206
  createdAt: string;
1949
2207
  eventType: string;
1950
2208
  /**
2209
+ * @maximum 9007199254740991
1951
2210
  * @exclusiveMinimum 0
1952
2211
  */
1953
2212
  id: number;
1954
2213
  /**
1955
2214
  * @format uuid
2215
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1956
2216
  */
1957
2217
  messageId: string | null;
1958
2218
  provider: 'anthropic' | 'openai' | 'openai_responses' | 'openai_completions' | 'tembo';
1959
2219
  /**
1960
2220
  * @format uuid
2221
+ * @pattern ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
1961
2222
  */
1962
2223
  sessionId: string;
1963
2224
  eventData: SessionEventData;
@@ -1970,5 +2231,6 @@ export declare namespace Sessions {
1970
2231
  export { Inputs as Inputs, type InputListResponse as InputListResponse, type InputUpdateResponse as InputUpdateResponse, type InputUpdateParams as InputUpdateParams, };
1971
2232
  export { Queue as Queue, type QueueUpdateResponse as QueueUpdateResponse, type QueueUpdateParams as QueueUpdateParams, };
1972
2233
  export { Commands as Commands, type CommandListResponse as CommandListResponse };
2234
+ export { Shares as Shares, type ShareListResponse as ShareListResponse, type ShareCreateResponse as ShareCreateResponse, type ShareDeleteResponse as ShareDeleteResponse, type ShareListParams as ShareListParams, type ShareCreateParams as ShareCreateParams, type ShareDeleteParams as ShareDeleteParams, };
1973
2235
  }
1974
2236
  //# sourceMappingURL=sessions.d.ts.map