@yadsh/dsh-qa-surface 0.3.0 → 0.5.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 (276) hide show
  1. package/README.md +192 -15
  2. package/cordis.patch.yml +8 -0
  3. package/lib/account-remotes.js +100 -0
  4. package/lib/account-remotes.js.map +1 -0
  5. package/lib/accounts/credentials.js +35 -0
  6. package/lib/accounts/credentials.js.map +1 -0
  7. package/lib/accounts/errors.js +9 -0
  8. package/lib/accounts/errors.js.map +1 -0
  9. package/lib/accounts/file.js +101 -0
  10. package/lib/accounts/file.js.map +1 -0
  11. package/lib/accounts/store.js +159 -161
  12. package/lib/accounts/store.js.map +1 -1
  13. package/lib/accounts/token.js +61 -0
  14. package/lib/accounts/token.js.map +1 -0
  15. package/lib/approvals.js +179 -0
  16. package/lib/approvals.js.map +1 -0
  17. package/lib/attachment-rules.js +111 -0
  18. package/lib/attachment-rules.js.map +1 -0
  19. package/lib/cli.js +132 -9
  20. package/lib/cli.js.map +1 -1
  21. package/lib/client/QaAccountsController.js +32 -2
  22. package/lib/client/QaAccountsController.js.map +1 -1
  23. package/lib/client/QaSessionController.js +140 -65
  24. package/lib/client/QaSessionController.js.map +1 -1
  25. package/lib/client/QaSurface.js +134 -107
  26. package/lib/client/QaSurface.js.map +1 -1
  27. package/lib/client/QaTranscriptAdapter.js +71 -6
  28. package/lib/client/QaTranscriptAdapter.js.map +1 -1
  29. package/lib/client/approvals.js +104 -0
  30. package/lib/client/approvals.js.map +1 -0
  31. package/lib/client/attachments.js +150 -0
  32. package/lib/client/attachments.js.map +1 -0
  33. package/lib/client/attestation.js +4 -1
  34. package/lib/client/attestation.js.map +1 -1
  35. package/lib/client/base64.js +16 -0
  36. package/lib/client/base64.js.map +1 -0
  37. package/lib/client/chat-files.js +48 -0
  38. package/lib/client/chat-files.js.map +1 -0
  39. package/lib/client/components/Markdown.js +1 -1
  40. package/lib/client/components/Markdown.js.map +1 -1
  41. package/lib/client/components/QaApproval.js +23 -0
  42. package/lib/client/components/QaApproval.js.map +1 -0
  43. package/lib/client/components/QaChangelog.js +62 -19
  44. package/lib/client/components/QaChangelog.js.map +1 -1
  45. package/lib/client/components/QaComposer.js +56 -74
  46. package/lib/client/components/QaComposer.js.map +1 -1
  47. package/lib/client/components/QaFileAttachment.js +19 -0
  48. package/lib/client/components/QaFileAttachment.js.map +1 -0
  49. package/lib/client/components/QaFilesPanel.js +45 -0
  50. package/lib/client/components/QaFilesPanel.js.map +1 -0
  51. package/lib/client/components/QaHeader.js +34 -0
  52. package/lib/client/components/QaHeader.js.map +1 -0
  53. package/lib/client/components/QaMessage.js +17 -4
  54. package/lib/client/components/QaMessage.js.map +1 -1
  55. package/lib/client/components/QaModal.js +31 -0
  56. package/lib/client/components/QaModal.js.map +1 -0
  57. package/lib/client/components/QaProfile.js +64 -0
  58. package/lib/client/components/QaProfile.js.map +1 -0
  59. package/lib/client/components/QaQuestions.js +96 -0
  60. package/lib/client/components/QaQuestions.js.map +1 -0
  61. package/lib/client/components/QaRightRail.js +15 -0
  62. package/lib/client/components/QaRightRail.js.map +1 -0
  63. package/lib/client/components/QaSidebar.js +6 -1
  64. package/lib/client/components/QaSidebar.js.map +1 -1
  65. package/lib/client/components/{QaSourcesDrawer.js → QaSourcesPanel.js} +3 -3
  66. package/lib/client/components/QaSourcesPanel.js.map +1 -0
  67. package/lib/client/components/QaTurnRail.js +15 -0
  68. package/lib/client/components/QaTurnRail.js.map +1 -1
  69. package/lib/client/components/QaWidthHandle.js +25 -20
  70. package/lib/client/components/QaWidthHandle.js.map +1 -1
  71. package/lib/client/components/QaWorkGroup.js +19 -20
  72. package/lib/client/components/QaWorkGroup.js.map +1 -1
  73. package/lib/client/components/surface-utils.js +28 -0
  74. package/lib/client/components/surface-utils.js.map +1 -0
  75. package/lib/client/components/thinking-phrases.js +24 -0
  76. package/lib/client/components/thinking-phrases.js.map +1 -0
  77. package/lib/client/create-session.js +7 -32
  78. package/lib/client/create-session.js.map +1 -1
  79. package/lib/client/failure-copy.js +63 -0
  80. package/lib/client/failure-copy.js.map +1 -0
  81. package/lib/client/index.js +49 -7
  82. package/lib/client/index.js.map +1 -1
  83. package/lib/client/project-session-state.js +5 -3
  84. package/lib/client/project-session-state.js.map +1 -1
  85. package/lib/client/prompt-content.js +54 -0
  86. package/lib/client/prompt-content.js.map +1 -0
  87. package/lib/client/questions.js +114 -0
  88. package/lib/client/questions.js.map +1 -0
  89. package/lib/client/settings/card.js +143 -0
  90. package/lib/client/settings/card.js.map +1 -0
  91. package/lib/client/settings/fields.js +145 -0
  92. package/lib/client/settings/fields.js.map +1 -0
  93. package/lib/client/settings/format.js +255 -0
  94. package/lib/client/settings/format.js.map +1 -0
  95. package/lib/client/settings/sections/access.js +25 -0
  96. package/lib/client/settings/sections/access.js.map +1 -0
  97. package/lib/client/settings/sections/accounts.js +47 -0
  98. package/lib/client/settings/sections/accounts.js.map +1 -0
  99. package/lib/client/settings/sections/attachments.js +46 -0
  100. package/lib/client/settings/sections/attachments.js.map +1 -0
  101. package/lib/client/settings/sections/branding.js +28 -0
  102. package/lib/client/settings/sections/branding.js.map +1 -0
  103. package/lib/client/settings/sections/common.js +20 -0
  104. package/lib/client/settings/sections/common.js.map +1 -0
  105. package/lib/client/settings/sections/embedding.js +19 -0
  106. package/lib/client/settings/sections/embedding.js.map +1 -0
  107. package/lib/client/settings/sections/interface.js +60 -0
  108. package/lib/client/settings/sections/interface.js.map +1 -0
  109. package/lib/client/settings/sections/lockdown.js +82 -0
  110. package/lib/client/settings/sections/lockdown.js.map +1 -0
  111. package/lib/client/settings/sections/session.js +53 -0
  112. package/lib/client/settings/sections/session.js.map +1 -0
  113. package/lib/client/settings/sections/sources.js +74 -0
  114. package/lib/client/settings/sections/sources.js.map +1 -0
  115. package/lib/client/settings/sections/status.js +37 -0
  116. package/lib/client/settings/sections/status.js.map +1 -0
  117. package/lib/client/settings/sections.js +23 -0
  118. package/lib/client/settings/sections.js.map +1 -0
  119. package/lib/client/settings/styles.js +57 -0
  120. package/lib/client/settings/styles.js.map +1 -0
  121. package/lib/client/stream-publisher.js +47 -0
  122. package/lib/client/stream-publisher.js.map +1 -0
  123. package/lib/client/styles.js +127 -19
  124. package/lib/client/styles.js.map +1 -1
  125. package/lib/client/types.js +2 -0
  126. package/lib/client/types.js.map +1 -1
  127. package/lib/client/use-right-rail.js +96 -0
  128. package/lib/client/use-right-rail.js.map +1 -0
  129. package/lib/client/use-session-ui-state.js +26 -19
  130. package/lib/client/use-session-ui-state.js.map +1 -1
  131. package/lib/client.js +5694 -813
  132. package/lib/client.js.map +1 -1
  133. package/lib/config-resolvers/accounts.js +60 -0
  134. package/lib/config-resolvers/accounts.js.map +1 -0
  135. package/lib/config-resolvers/attachments.js +28 -0
  136. package/lib/config-resolvers/attachments.js.map +1 -0
  137. package/lib/config-resolvers/basics.js +61 -0
  138. package/lib/config-resolvers/basics.js.map +1 -0
  139. package/lib/config-resolvers/defaults.js +136 -0
  140. package/lib/config-resolvers/defaults.js.map +1 -0
  141. package/lib/config-resolvers/lockdown.js +90 -0
  142. package/lib/config-resolvers/lockdown.js.map +1 -0
  143. package/lib/config-resolvers/session.js +42 -0
  144. package/lib/config-resolvers/session.js.map +1 -0
  145. package/lib/config-resolvers/shared.js +51 -0
  146. package/lib/config-resolvers/shared.js.map +1 -0
  147. package/lib/config-resolvers/sources.js +83 -0
  148. package/lib/config-resolvers/sources.js.map +1 -0
  149. package/lib/config-resolvers/ui.js +20 -0
  150. package/lib/config-resolvers/ui.js.map +1 -0
  151. package/lib/config.js +76 -6
  152. package/lib/config.js.map +1 -1
  153. package/lib/entry-redirect.js +2 -1
  154. package/lib/entry-redirect.js.map +1 -1
  155. package/lib/index.js +198 -79
  156. package/lib/index.js.map +1 -1
  157. package/lib/profile.js +214 -0
  158. package/lib/profile.js.map +1 -0
  159. package/lib/prompt-notes.js +231 -0
  160. package/lib/prompt-notes.js.map +1 -0
  161. package/lib/provenance/host-store.js +25 -9
  162. package/lib/provenance/host-store.js.map +1 -1
  163. package/lib/provenance/reported.js +37 -12
  164. package/lib/provenance/reported.js.map +1 -1
  165. package/lib/questions.js +185 -0
  166. package/lib/questions.js.map +1 -0
  167. package/lib/resolve-config.js +35 -410
  168. package/lib/resolve-config.js.map +1 -1
  169. package/lib/secure-session.js +139 -21
  170. package/lib/secure-session.js.map +1 -1
  171. package/lib/session-ownership.js +55 -0
  172. package/lib/session-ownership.js.map +1 -0
  173. package/lib/shared/session-key.js +18 -0
  174. package/lib/shared/session-key.js.map +1 -0
  175. package/lib/shared/settings.js +10 -0
  176. package/lib/shared/settings.js.map +1 -0
  177. package/lib/thinking-phrases.js +68 -0
  178. package/lib/thinking-phrases.js.map +1 -0
  179. package/lib/typert.host.js +506 -21
  180. package/lib/typert.remote-client.d.ts +15 -1
  181. package/lib/typert.remote-client.js +407 -15
  182. package/lib/types/account-remotes.d.ts +42 -0
  183. package/lib/types/accounts/credentials.d.ts +20 -0
  184. package/lib/types/accounts/errors.d.ts +11 -0
  185. package/lib/types/accounts/file.d.ts +82 -0
  186. package/lib/types/accounts/store.d.ts +74 -43
  187. package/lib/types/accounts/token.d.ts +31 -0
  188. package/lib/types/approvals.d.ts +65 -0
  189. package/lib/types/attachment-rules.d.ts +44 -0
  190. package/lib/types/cli.d.ts +2 -2
  191. package/lib/types/client/QaAccountsController.d.ts +8 -1
  192. package/lib/types/client/QaSessionController.d.ts +53 -16
  193. package/lib/types/client/QaSurface.d.ts +14 -1
  194. package/lib/types/client/approvals.d.ts +39 -0
  195. package/lib/types/client/attachments.d.ts +54 -0
  196. package/lib/types/client/base64.d.ts +10 -0
  197. package/lib/types/client/chat-files.d.ts +30 -0
  198. package/lib/types/client/components/QaApproval.d.ts +13 -0
  199. package/lib/types/client/components/QaChangelog.d.ts +1 -1
  200. package/lib/types/client/components/QaComposer.d.ts +8 -4
  201. package/lib/types/client/components/QaFileAttachment.d.ts +14 -0
  202. package/lib/types/client/components/QaFilesPanel.d.ts +15 -0
  203. package/lib/types/client/components/QaHeader.d.ts +41 -0
  204. package/lib/types/client/components/QaMessage.d.ts +3 -1
  205. package/lib/types/client/components/QaModal.d.ts +26 -0
  206. package/lib/types/client/components/QaProfile.d.ts +25 -0
  207. package/lib/types/client/components/QaQuestions.d.ts +13 -0
  208. package/lib/types/client/components/QaRightRail.d.ts +23 -0
  209. package/lib/types/client/components/QaSidebar.d.ts +14 -0
  210. package/lib/types/client/components/{QaSourcesDrawer.d.ts → QaSourcesPanel.d.ts} +7 -4
  211. package/lib/types/client/components/QaTurnRail.d.ts +6 -0
  212. package/lib/types/client/components/QaWidthHandle.d.ts +14 -7
  213. package/lib/types/client/components/QaWorkGroup.d.ts +5 -3
  214. package/lib/types/client/components/surface-utils.d.ts +11 -0
  215. package/lib/types/client/components/thinking-phrases.d.ts +9 -0
  216. package/lib/types/client/create-session.d.ts +6 -9
  217. package/lib/types/client/failure-copy.d.ts +19 -0
  218. package/lib/types/client/project-session-state.d.ts +8 -1
  219. package/lib/types/client/prompt-content.d.ts +30 -0
  220. package/lib/types/client/questions.d.ts +45 -0
  221. package/lib/types/client/settings/card.d.ts +23 -0
  222. package/lib/types/client/settings/fields.d.ts +139 -0
  223. package/lib/types/client/settings/format.d.ts +108 -0
  224. package/lib/types/client/settings/sections/access.d.ts +9 -0
  225. package/lib/types/client/settings/sections/accounts.d.ts +9 -0
  226. package/lib/types/client/settings/sections/attachments.d.ts +15 -0
  227. package/lib/types/client/settings/sections/branding.d.ts +8 -0
  228. package/lib/types/client/settings/sections/common.d.ts +28 -0
  229. package/lib/types/client/settings/sections/embedding.d.ts +8 -0
  230. package/lib/types/client/settings/sections/interface.d.ts +9 -0
  231. package/lib/types/client/settings/sections/lockdown.d.ts +9 -0
  232. package/lib/types/client/settings/sections/session.d.ts +9 -0
  233. package/lib/types/client/settings/sections/sources.d.ts +9 -0
  234. package/lib/types/client/settings/sections/status.d.ts +22 -0
  235. package/lib/types/client/settings/sections.d.ts +25 -0
  236. package/lib/types/client/settings/styles.d.ts +8 -0
  237. package/lib/types/client/stream-publisher.d.ts +28 -0
  238. package/lib/types/client/types.d.ts +76 -1
  239. package/lib/types/client/use-right-rail.d.ts +56 -0
  240. package/lib/types/client/use-session-ui-state.d.ts +13 -7
  241. package/lib/types/config-resolvers/accounts.d.ts +15 -0
  242. package/lib/types/config-resolvers/attachments.d.ts +6 -0
  243. package/lib/types/config-resolvers/basics.d.ts +8 -0
  244. package/lib/types/config-resolvers/defaults.d.ts +4 -0
  245. package/lib/types/config-resolvers/lockdown.d.ts +10 -0
  246. package/lib/types/config-resolvers/session.d.ts +6 -0
  247. package/lib/types/config-resolvers/shared.d.ts +23 -0
  248. package/lib/types/config-resolvers/sources.d.ts +6 -0
  249. package/lib/types/config-resolvers/ui.d.ts +6 -0
  250. package/lib/types/index.d.ts +48 -15
  251. package/lib/types/profile.d.ts +76 -0
  252. package/lib/types/prompt-notes.d.ts +110 -0
  253. package/lib/types/provenance/reported.d.ts +9 -1
  254. package/lib/types/questions.d.ts +83 -0
  255. package/lib/types/resolve-config.d.ts +8 -3
  256. package/lib/types/secure-session.d.ts +46 -2
  257. package/lib/types/session-ownership.d.ts +30 -0
  258. package/lib/types/shared/session-key.d.ts +23 -0
  259. package/lib/types/shared/settings.d.ts +10 -0
  260. package/lib/types/thinking-phrases.d.ts +17 -0
  261. package/lib/types/types.d.ts +203 -9
  262. package/lib/types/user-workspace.d.ts +42 -0
  263. package/lib/user-workspace.js +246 -0
  264. package/lib/user-workspace.js.map +1 -0
  265. package/package.json +15 -8
  266. package/CHANGELOG.md +0 -176
  267. package/SPEC-dsh-qa-surface.md +0 -2425
  268. package/docs/ARCHITECTURE.md +0 -66
  269. package/docs/COMPATIBILITY.md +0 -14
  270. package/docs/CONFIGURATION.md +0 -199
  271. package/docs/EMBEDDING.md +0 -13
  272. package/docs/SOURCES-MIGRATION.md +0 -28
  273. package/docs/SOURCES-PROVENANCE-AUDIT.md +0 -88
  274. package/docs/SPEC-dsh-qa-surface-accounts.md +0 -219
  275. package/docs/SPEC-dsh-qa-surface-sources-provenance.md +0 -1692
  276. package/lib/client/components/QaSourcesDrawer.js.map +0 -1
@@ -29,6 +29,12 @@ const _yadsh_dsh_qa_surface_qaSurface_accountsLogin_result$schema = z.object({
29
29
  'createdAt': z.string().readonly(),
30
30
  'lastLoginAt': z.union([z.literal(null), z.string()]).readonly(),
31
31
  'disabled': z.boolean().readonly(),
32
+ 'profile': z.object({
33
+ 'fullName': z.string().readonly(),
34
+ 'identities': z.record(z.string(), z.string()).readonly().readonly(),
35
+ 'instructions': z.string().readonly(),
36
+ 'updatedAt': z.union([z.literal(null), z.string()]).readonly(),
37
+ }).readonly(),
32
38
  }).readonly(),
33
39
  })
34
40
  const _yadsh_dsh_qa_surface_qaSurface_accountsOwnedSessions_parameter_0$schema = z.string()
@@ -47,6 +53,33 @@ const _yadsh_dsh_qa_surface_qaSurface_accountsRegister_result$schema = z.object(
47
53
  'createdAt': z.string().readonly(),
48
54
  'lastLoginAt': z.union([z.literal(null), z.string()]).readonly(),
49
55
  'disabled': z.boolean().readonly(),
56
+ 'profile': z.object({
57
+ 'fullName': z.string().readonly(),
58
+ 'identities': z.record(z.string(), z.string()).readonly().readonly(),
59
+ 'instructions': z.string().readonly(),
60
+ 'updatedAt': z.union([z.literal(null), z.string()]).readonly(),
61
+ }).readonly(),
62
+ }).readonly(),
63
+ })
64
+ const _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_parameter_0$schema = z.string()
65
+ const _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_parameter_1$schema = z.object({
66
+ 'fullName': z.string().readonly(),
67
+ 'identities': z.record(z.string(), z.string()).readonly().readonly(),
68
+ 'instructions': z.string().readonly(),
69
+ })
70
+ const _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_result$schema = z.object({
71
+ 'id': z.string().readonly(),
72
+ 'email': z.string().readonly(),
73
+ 'displayName': z.string().readonly(),
74
+ 'role': z.union([z.literal("user"), z.literal("admin")]).readonly(),
75
+ 'createdAt': z.string().readonly(),
76
+ 'lastLoginAt': z.union([z.literal(null), z.string()]).readonly(),
77
+ 'disabled': z.boolean().readonly(),
78
+ 'profile': z.object({
79
+ 'fullName': z.string().readonly(),
80
+ 'identities': z.record(z.string(), z.string()).readonly().readonly(),
81
+ 'instructions': z.string().readonly(),
82
+ 'updatedAt': z.union([z.literal(null), z.string()]).readonly(),
50
83
  }).readonly(),
51
84
  })
52
85
  const _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_parameter_0$schema = z.string()
@@ -62,8 +95,34 @@ const _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_result$schema = z.union([z.
62
95
  'createdAt': z.string().readonly(),
63
96
  'lastLoginAt': z.union([z.literal(null), z.string()]).readonly(),
64
97
  'disabled': z.boolean().readonly(),
98
+ 'profile': z.object({
99
+ 'fullName': z.string().readonly(),
100
+ 'identities': z.record(z.string(), z.string()).readonly().readonly(),
101
+ 'instructions': z.string().readonly(),
102
+ 'updatedAt': z.union([z.literal(null), z.string()]).readonly(),
103
+ }).readonly(),
65
104
  }).readonly(),
66
105
  })])
106
+ const _yadsh_dsh_qa_surface_qaSurface_answerApproval_parameter_0$schema = z.string()
107
+ const _yadsh_dsh_qa_surface_qaSurface_answerApproval_parameter_1$schema = z.string()
108
+ const _yadsh_dsh_qa_surface_qaSurface_answerApproval_parameter_2$schema = z.string()
109
+ const _yadsh_dsh_qa_surface_qaSurface_answerApproval_parameter_3$schema = z.union([z.literal("allowed-once"), z.literal("rejected")])
110
+ const _yadsh_dsh_qa_surface_qaSurface_answerApproval_result$schema = z.boolean()
111
+ const _yadsh_dsh_qa_surface_qaSurface_answerQuestion_parameter_0$schema = z.string()
112
+ const _yadsh_dsh_qa_surface_qaSurface_answerQuestion_parameter_1$schema = z.string()
113
+ const _yadsh_dsh_qa_surface_qaSurface_answerQuestion_parameter_2$schema = z.string()
114
+ const _yadsh_dsh_qa_surface_qaSurface_answerQuestion_parameter_3$schema = z.array(z.object({
115
+ 'id': z.string().readonly(),
116
+ 'selected': z.array(z.string()).readonly(),
117
+ 'custom': z.string().readonly().optional(),
118
+ }))
119
+ const _yadsh_dsh_qa_surface_qaSurface_answerQuestion_result$schema = z.boolean()
120
+ const _yadsh_dsh_qa_surface_qaSurface_cancelQuestion_parameter_0$schema = z.string()
121
+ const _yadsh_dsh_qa_surface_qaSurface_cancelQuestion_parameter_1$schema = z.string()
122
+ const _yadsh_dsh_qa_surface_qaSurface_cancelQuestion_parameter_2$schema = z.string()
123
+ const _yadsh_dsh_qa_surface_qaSurface_cancelQuestion_result$schema = z.boolean()
124
+ const _yadsh_dsh_qa_surface_qaSurface_createSession_parameter_0$schema = z.string()
125
+ const _yadsh_dsh_qa_surface_qaSurface_createSession_result$schema = z.string()
67
126
  const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
68
127
  'enabled': z.boolean().readonly(),
69
128
  'route': z.object({
@@ -97,20 +156,21 @@ const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
97
156
  'showToolActivity': z.boolean().readonly(),
98
157
  'showReasoning': z.boolean().readonly(),
99
158
  'renderMarkdown': z.boolean().readonly(),
100
- 'maxContentWidth': z.number().readonly(),
159
+ 'minContentWidth': z.number().readonly(),
101
160
  'showSessionList': z.boolean().readonly(),
102
161
  }).readonly(),
103
162
  'suggestedQuestions': z.array(z.string()).readonly(),
163
+ 'thinkingPhrases': z.array(z.string()).readonly(),
104
164
  'interaction': z.object({
105
- 'approvals': z.literal("blocked").readonly(),
106
- 'questions': z.literal("unsupported").readonly(),
165
+ 'approvals': z.union([z.literal("blocked"), z.literal("interactive")]).readonly(),
166
+ 'questions': z.union([z.literal("interactive"), z.literal("unsupported")]).readonly(),
107
167
  }).readonly(),
108
168
  'lockdown': z.object({
109
169
  'enabled': z.boolean().readonly(),
110
170
  'enforceFixedAgentPreset': z.boolean().readonly(),
111
171
  'enforceFixedWorkspace': z.boolean().readonly(),
112
172
  'enforceFixedModel': z.boolean().readonly(),
113
- 'sandboxMode': z.literal("read-only").readonly(),
173
+ 'sandboxMode': z.union([z.literal("read-only"), z.literal("workspace-write")]).readonly(),
114
174
  'approvalPolicy': z.literal("never").readonly(),
115
175
  'permissionPreset': z.string().readonly(),
116
176
  'allowPermissionChanges': z.literal(false).readonly(),
@@ -124,6 +184,7 @@ const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
124
184
  'mode': z.literal("allow-list").readonly(),
125
185
  'allow': z.array(z.string()).readonly(),
126
186
  }).readonly(),
187
+ 'sharedReadOnlyRoots': z.array(z.string()).readonly(),
127
188
  }).readonly(),
128
189
  'embedding': z.object({
129
190
  'frameAncestors': z.union([z.literal(null), z.string()]).readonly(),
@@ -133,6 +194,16 @@ const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
133
194
  'allowRegistration': z.boolean().readonly(),
134
195
  'sessionTtlDays': z.number().readonly(),
135
196
  'showOtherUsersChats': z.boolean().readonly(),
197
+ 'perUserWorkspace': z.boolean().readonly(),
198
+ 'profile': z.object({
199
+ 'enabled': z.boolean().readonly(),
200
+ 'inject': z.boolean().readonly(),
201
+ 'identities': z.array(z.object({
202
+ 'key': z.string().readonly(),
203
+ 'label': z.string().readonly(),
204
+ })).readonly(),
205
+ 'instructionsMaxLength': z.number().readonly(),
206
+ }).readonly(),
136
207
  }).readonly(),
137
208
  'entry': z.object({
138
209
  'redirectNonLoopback': z.boolean().readonly(),
@@ -173,12 +244,48 @@ const _yadsh_dsh_qa_surface_qaSurface_describe_result$schema = z.object({
173
244
  'inheritSources': z.boolean().readonly(),
174
245
  'enableReportToolFallback': z.boolean().readonly(),
175
246
  'markIncompleteOpaqueRuns': z.boolean().readonly(),
247
+ 'validateReportedSources': z.boolean().readonly(),
176
248
  }).readonly(),
177
249
  'legacy': z.object({
178
250
  'parseAssistantSourcesBlock': z.boolean().readonly(),
179
251
  }).readonly(),
252
+ }).readonly(),
253
+ 'attachments': z.object({
254
+ 'textFiles': z.boolean().readonly(),
255
+ 'pastedTextLines': z.number().readonly(),
256
+ 'maxFileBytes': z.number().readonly(),
257
+ 'maxPending': z.number().readonly(),
258
+ 'extensions': z.array(z.string()).readonly(),
180
259
  }).readonly(),
181
260
  })
261
+ const _yadsh_dsh_qa_surface_qaSurface_pendingApprovals_parameter_0$schema = z.string()
262
+ const _yadsh_dsh_qa_surface_qaSurface_pendingApprovals_parameter_1$schema = z.string()
263
+ const _yadsh_dsh_qa_surface_qaSurface_pendingApprovals_result$schema = z.array(z.object({
264
+ 'id': z.string().readonly(),
265
+ 'sessionId': z.string().readonly(),
266
+ 'toolName': z.string().readonly(),
267
+ 'reason': z.union([z.literal(null), z.string()]).readonly(),
268
+ 'createdAt': z.number().readonly(),
269
+ 'delegated': z.boolean().readonly(),
270
+ }))
271
+ const _yadsh_dsh_qa_surface_qaSurface_pendingQuestions_parameter_0$schema = z.string()
272
+ const _yadsh_dsh_qa_surface_qaSurface_pendingQuestions_parameter_1$schema = z.string()
273
+ const _yadsh_dsh_qa_surface_qaSurface_pendingQuestions_result$schema = z.array(z.object({
274
+ 'id': z.string().readonly(),
275
+ 'sessionId': z.string().readonly(),
276
+ 'questions': z.array(z.object({
277
+ 'id': z.string().readonly(),
278
+ 'question': z.string().readonly(),
279
+ 'header': z.union([z.literal(null), z.string()]).readonly(),
280
+ 'detail': z.union([z.literal(null), z.string()]).readonly(),
281
+ 'options': z.array(z.object({
282
+ 'label': z.string().readonly(),
283
+ 'description': z.union([z.literal(null), z.string()]).readonly(),
284
+ })).readonly(),
285
+ 'multiSelect': z.boolean().readonly(),
286
+ })).readonly(),
287
+ 'createdAt': z.number().readonly(),
288
+ }))
182
289
  const _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_0$schema = z.string()
183
290
  const _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_1$schema = z.string()
184
291
  const _yadsh_dsh_qa_surface_qaSurface_readSourceFile_parameter_2$schema = z.string()
@@ -198,7 +305,7 @@ const _yadsh_dsh_qa_surface_qaSurface_secureSession_result$schema = z.object({
198
305
  'agentPresetMatches': z.boolean().readonly(),
199
306
  'workspaceMatches': z.boolean().readonly(),
200
307
  'modelMatches': z.boolean().readonly(),
201
- 'sandboxIsReadOnly': z.boolean().readonly(),
308
+ 'sandboxModeMatches': z.boolean().readonly(),
202
309
  'approvalIsNever': z.boolean().readonly(),
203
310
  'permissionPreset': z.string().readonly(),
204
311
  'toolPolicyLoaded': z.boolean().readonly(),
@@ -317,7 +424,7 @@ export const TYPERT = {
317
424
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaClaimResult',
318
425
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsClaimSessions_result$schema,
319
426
  },
320
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":256,"column":3},
427
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":268,"column":3},
321
428
  },
322
429
  {
323
430
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership',
@@ -342,7 +449,7 @@ export const TYPERT = {
342
449
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsListOwnership:result',
343
450
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsListOwnership_result$schema,
344
451
  },
345
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":280,"column":3},
452
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":287,"column":3},
346
453
  },
347
454
  {
348
455
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsLogin',
@@ -377,7 +484,7 @@ export const TYPERT = {
377
484
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountSession',
378
485
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsLogin_result$schema,
379
486
  },
380
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":241,"column":3},
487
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":256,"column":3},
381
488
  },
382
489
  {
383
490
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions',
@@ -402,7 +509,7 @@ export const TYPERT = {
402
509
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsOwnedSessions:result',
403
510
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsOwnedSessions_result$schema,
404
511
  },
405
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":266,"column":3},
512
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":277,"column":3},
406
513
  },
407
514
  {
408
515
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsRegister',
@@ -437,7 +544,42 @@ export const TYPERT = {
437
544
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountSession',
438
545
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsRegister_result$schema,
439
546
  },
440
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":235,"column":3},
547
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":251,"column":3},
548
+ },
549
+ {
550
+ id: '@yadsh/dsh-qa-surface#qaSurface/accountsUpdateProfile',
551
+ service: 'qaSurface',
552
+ namespace: 'qaSurface',
553
+ method: 'accountsUpdateProfile',
554
+ invocation: { kind: 'direct' },
555
+ parameters: [
556
+ {
557
+ name: 'token',
558
+ wire: 'token',
559
+ source: 'json',
560
+ codec: {
561
+ mode: 'strict',
562
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/accountsUpdateProfile:token',
563
+ schema: _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_parameter_0$schema,
564
+ },
565
+ },
566
+ {
567
+ name: 'input',
568
+ wire: 'input',
569
+ source: 'json',
570
+ codec: {
571
+ mode: 'strict',
572
+ typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountProfileInput',
573
+ schema: _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_parameter_1$schema,
574
+ },
575
+ },
576
+ ],
577
+ result: {
578
+ mode: 'strict',
579
+ typeSymbol: '@yadsh/dsh-qa-surface/types#QaAccountUserPublic',
580
+ schema: _yadsh_dsh_qa_surface_qaSurface_accountsUpdateProfile_result$schema,
581
+ },
582
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":300,"column":3},
441
583
  },
442
584
  {
443
585
  id: '@yadsh/dsh-qa-surface#qaSurface/accountsWhoami',
@@ -462,7 +604,187 @@ export const TYPERT = {
462
604
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaWhoamiResult',
463
605
  schema: _yadsh_dsh_qa_surface_qaSurface_accountsWhoami_result$schema,
464
606
  },
465
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":248,"column":3},
607
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":262,"column":3},
608
+ },
609
+ {
610
+ id: '@yadsh/dsh-qa-surface#qaSurface/answerApproval',
611
+ service: 'qaSurface',
612
+ namespace: 'qaSurface',
613
+ method: 'answerApproval',
614
+ invocation: { kind: 'direct' },
615
+ parameters: [
616
+ {
617
+ name: 'token',
618
+ wire: 'token',
619
+ source: 'json',
620
+ codec: {
621
+ mode: 'strict',
622
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/answerApproval:token',
623
+ schema: _yadsh_dsh_qa_surface_qaSurface_answerApproval_parameter_0$schema,
624
+ },
625
+ },
626
+ {
627
+ name: 'sessionId',
628
+ wire: 'sessionId',
629
+ source: 'json',
630
+ codec: {
631
+ mode: 'strict',
632
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/answerApproval:sessionId',
633
+ schema: _yadsh_dsh_qa_surface_qaSurface_answerApproval_parameter_1$schema,
634
+ },
635
+ },
636
+ {
637
+ name: 'requestId',
638
+ wire: 'requestId',
639
+ source: 'json',
640
+ codec: {
641
+ mode: 'strict',
642
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/answerApproval:requestId',
643
+ schema: _yadsh_dsh_qa_surface_qaSurface_answerApproval_parameter_2$schema,
644
+ },
645
+ },
646
+ {
647
+ name: 'decision',
648
+ wire: 'decision',
649
+ source: 'json',
650
+ codec: {
651
+ mode: 'strict',
652
+ typeSymbol: '@yadsh/dsh-qa-surface/types#QaApprovalDecision',
653
+ schema: _yadsh_dsh_qa_surface_qaSurface_answerApproval_parameter_3$schema,
654
+ },
655
+ },
656
+ ],
657
+ result: {
658
+ mode: 'strict',
659
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/answerApproval:result',
660
+ schema: _yadsh_dsh_qa_surface_qaSurface_answerApproval_result$schema,
661
+ },
662
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":455,"column":9},
663
+ },
664
+ {
665
+ id: '@yadsh/dsh-qa-surface#qaSurface/answerQuestion',
666
+ service: 'qaSurface',
667
+ namespace: 'qaSurface',
668
+ method: 'answerQuestion',
669
+ invocation: { kind: 'direct' },
670
+ parameters: [
671
+ {
672
+ name: 'token',
673
+ wire: 'token',
674
+ source: 'json',
675
+ codec: {
676
+ mode: 'strict',
677
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/answerQuestion:token',
678
+ schema: _yadsh_dsh_qa_surface_qaSurface_answerQuestion_parameter_0$schema,
679
+ },
680
+ },
681
+ {
682
+ name: 'sessionId',
683
+ wire: 'sessionId',
684
+ source: 'json',
685
+ codec: {
686
+ mode: 'strict',
687
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/answerQuestion:sessionId',
688
+ schema: _yadsh_dsh_qa_surface_qaSurface_answerQuestion_parameter_1$schema,
689
+ },
690
+ },
691
+ {
692
+ name: 'requestId',
693
+ wire: 'requestId',
694
+ source: 'json',
695
+ codec: {
696
+ mode: 'strict',
697
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/answerQuestion:requestId',
698
+ schema: _yadsh_dsh_qa_surface_qaSurface_answerQuestion_parameter_2$schema,
699
+ },
700
+ },
701
+ {
702
+ name: 'answers',
703
+ wire: 'answers',
704
+ source: 'json',
705
+ codec: {
706
+ mode: 'strict',
707
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/answerQuestion:answers',
708
+ schema: _yadsh_dsh_qa_surface_qaSurface_answerQuestion_parameter_3$schema,
709
+ },
710
+ },
711
+ ],
712
+ result: {
713
+ mode: 'strict',
714
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/answerQuestion:result',
715
+ schema: _yadsh_dsh_qa_surface_qaSurface_answerQuestion_result$schema,
716
+ },
717
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":484,"column":9},
718
+ },
719
+ {
720
+ id: '@yadsh/dsh-qa-surface#qaSurface/cancelQuestion',
721
+ service: 'qaSurface',
722
+ namespace: 'qaSurface',
723
+ method: 'cancelQuestion',
724
+ invocation: { kind: 'direct' },
725
+ parameters: [
726
+ {
727
+ name: 'token',
728
+ wire: 'token',
729
+ source: 'json',
730
+ codec: {
731
+ mode: 'strict',
732
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/cancelQuestion:token',
733
+ schema: _yadsh_dsh_qa_surface_qaSurface_cancelQuestion_parameter_0$schema,
734
+ },
735
+ },
736
+ {
737
+ name: 'sessionId',
738
+ wire: 'sessionId',
739
+ source: 'json',
740
+ codec: {
741
+ mode: 'strict',
742
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/cancelQuestion:sessionId',
743
+ schema: _yadsh_dsh_qa_surface_qaSurface_cancelQuestion_parameter_1$schema,
744
+ },
745
+ },
746
+ {
747
+ name: 'requestId',
748
+ wire: 'requestId',
749
+ source: 'json',
750
+ codec: {
751
+ mode: 'strict',
752
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/cancelQuestion:requestId',
753
+ schema: _yadsh_dsh_qa_surface_qaSurface_cancelQuestion_parameter_2$schema,
754
+ },
755
+ },
756
+ ],
757
+ result: {
758
+ mode: 'strict',
759
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/cancelQuestion:result',
760
+ schema: _yadsh_dsh_qa_surface_qaSurface_cancelQuestion_result$schema,
761
+ },
762
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":496,"column":9},
763
+ },
764
+ {
765
+ id: '@yadsh/dsh-qa-surface#qaSurface/createSession',
766
+ service: 'qaSurface',
767
+ namespace: 'qaSurface',
768
+ method: 'createSession',
769
+ invocation: { kind: 'direct' },
770
+ parameters: [
771
+ {
772
+ name: 'token',
773
+ wire: 'token',
774
+ source: 'json',
775
+ codec: {
776
+ mode: 'strict',
777
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/createSession:token',
778
+ schema: _yadsh_dsh_qa_surface_qaSurface_createSession_parameter_0$schema,
779
+ },
780
+ },
781
+ ],
782
+ result: {
783
+ mode: 'strict',
784
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/createSession:result',
785
+ schema: _yadsh_dsh_qa_surface_qaSurface_createSession_result$schema,
786
+ },
787
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":325,"column":9},
466
788
  },
467
789
  {
468
790
  id: '@yadsh/dsh-qa-surface#qaSurface/describe',
@@ -477,7 +799,77 @@ export const TYPERT = {
477
799
  typeSymbol: '@yadsh/dsh-qa-surface/types#ResolvedQaSurfaceConfig',
478
800
  schema: _yadsh_dsh_qa_surface_qaSurface_describe_result$schema,
479
801
  },
480
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":298,"column":3},
802
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":315,"column":3},
803
+ },
804
+ {
805
+ id: '@yadsh/dsh-qa-surface#qaSurface/pendingApprovals',
806
+ service: 'qaSurface',
807
+ namespace: 'qaSurface',
808
+ method: 'pendingApprovals',
809
+ invocation: { kind: 'direct' },
810
+ parameters: [
811
+ {
812
+ name: 'token',
813
+ wire: 'token',
814
+ source: 'json',
815
+ codec: {
816
+ mode: 'strict',
817
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/pendingApprovals:token',
818
+ schema: _yadsh_dsh_qa_surface_qaSurface_pendingApprovals_parameter_0$schema,
819
+ },
820
+ },
821
+ {
822
+ name: 'sessionId',
823
+ wire: 'sessionId',
824
+ source: 'json',
825
+ codec: {
826
+ mode: 'strict',
827
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/pendingApprovals:sessionId',
828
+ schema: _yadsh_dsh_qa_surface_qaSurface_pendingApprovals_parameter_1$schema,
829
+ },
830
+ },
831
+ ],
832
+ result: {
833
+ mode: 'strict',
834
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/pendingApprovals:result',
835
+ schema: _yadsh_dsh_qa_surface_qaSurface_pendingApprovals_result$schema,
836
+ },
837
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":441,"column":9},
838
+ },
839
+ {
840
+ id: '@yadsh/dsh-qa-surface#qaSurface/pendingQuestions',
841
+ service: 'qaSurface',
842
+ namespace: 'qaSurface',
843
+ method: 'pendingQuestions',
844
+ invocation: { kind: 'direct' },
845
+ parameters: [
846
+ {
847
+ name: 'token',
848
+ wire: 'token',
849
+ source: 'json',
850
+ codec: {
851
+ mode: 'strict',
852
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/pendingQuestions:token',
853
+ schema: _yadsh_dsh_qa_surface_qaSurface_pendingQuestions_parameter_0$schema,
854
+ },
855
+ },
856
+ {
857
+ name: 'sessionId',
858
+ wire: 'sessionId',
859
+ source: 'json',
860
+ codec: {
861
+ mode: 'strict',
862
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/pendingQuestions:sessionId',
863
+ schema: _yadsh_dsh_qa_surface_qaSurface_pendingQuestions_parameter_1$schema,
864
+ },
865
+ },
866
+ ],
867
+ result: {
868
+ mode: 'strict',
869
+ typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/pendingQuestions:result',
870
+ schema: _yadsh_dsh_qa_surface_qaSurface_pendingQuestions_result$schema,
871
+ },
872
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":470,"column":9},
481
873
  },
482
874
  {
483
875
  id: '@yadsh/dsh-qa-surface#qaSurface/readSourceFile',
@@ -522,7 +914,7 @@ export const TYPERT = {
522
914
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaSourceFilePreview',
523
915
  schema: _yadsh_dsh_qa_surface_qaSurface_readSourceFile_result$schema,
524
916
  },
525
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":337,"column":9},
917
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":507,"column":9},
526
918
  },
527
919
  {
528
920
  id: '@yadsh/dsh-qa-surface#qaSurface/secureSession',
@@ -557,7 +949,7 @@ export const TYPERT = {
557
949
  typeSymbol: '@yadsh/dsh-qa-surface/types#QaLockdownProof',
558
950
  schema: _yadsh_dsh_qa_surface_qaSurface_secureSession_result$schema,
559
951
  },
560
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":304,"column":3},
952
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":399,"column":9},
561
953
  },
562
954
  {
563
955
  id: '@yadsh/dsh-qa-surface#qaSurface/sources',
@@ -592,7 +984,7 @@ export const TYPERT = {
592
984
  typeSymbol: '@yadsh/dsh-qa-surface#qaSurface/sources:result',
593
985
  schema: _yadsh_dsh_qa_surface_qaSurface_sources_result$schema,
594
986
  },
595
- sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":330,"column":3},
987
+ sourceLocation: {"file":"packages/dsh-qa-surface/src/index.ts","line":428,"column":9},
596
988
  },
597
989
  ],
598
990
  model: {
@@ -650,6 +1042,13 @@ export const TYPERT = {
650
1042
  "summary": "Every chat-ownership entry with owner display names; the cross-user view admin browsers group the sidebar by.",
651
1043
  "jsDoc": "/**\n * Every chat-ownership entry with owner display names; the cross-user view\n * admin browsers group the sidebar by. Ordinary accounts are refused with\n * the dedicated reason, anonymous ones with auth-required.\n */"
652
1044
  },
1045
+ {
1046
+ "kind": "method",
1047
+ "name": "accountsUpdateProfile",
1048
+ "signature": "@Remote(\"accountsUpdateProfile\") accountsUpdateProfile( token: string, input: QaAccountProfileInput, ): QaAccountUserPublic",
1049
+ "summary": "Replace the caller's own self-declared profile.",
1050
+ "jsDoc": "/**\n * Replace the caller's own self-declared profile. The token is the only\n * identity the wire carries: a browser can never name a profile but its own,\n * and the deployment's declared fields and length limits are enforced in the\n * store before anything is written.\n */"
1051
+ },
653
1052
  {
654
1053
  "kind": "method",
655
1054
  "name": "describe",
@@ -657,20 +1056,62 @@ export const TYPERT = {
657
1056
  "summary": "Serve the effective QA configuration to the browser.",
658
1057
  "jsDoc": "/**\n * Serve the effective QA configuration to the browser. The DSH gateway pins\n * settings RPCs to loopback, so a browser served over the LAN always sees\n * the settings namespace as unavailable; this method is the config channel\n * such a browser falls back to. It is read-only projection — the admission\n * boundary stays in {@link secureSession}.\n */"
659
1058
  },
1059
+ {
1060
+ "kind": "method",
1061
+ "name": "createSession",
1062
+ "signature": "@Remote(\"createSession\") async createSession(token: string): Promise<string>",
1063
+ "summary": "Create a QA session from Host-owned inputs.",
1064
+ "jsDoc": "/**\n * Create a QA session from Host-owned inputs. With account workspaces on,\n * cwd is `<configured workspace>/.qa-users/<account UUID>` and the child is\n * intentionally not registered or attached as another DSH workspace.\n */"
1065
+ },
660
1066
  {
661
1067
  "kind": "method",
662
1068
  "name": "secureSession",
663
- "signature": "@Remote(\"secureSession\") secureSession(token: string, sessionId: string): QaLockdownProof",
1069
+ "signature": "@Remote(\"secureSession\") async secureSession( token: string, sessionId: string, ): Promise<QaLockdownProof>",
664
1070
  "summary": "Pin and attest the effective policy.",
665
1071
  "jsDoc": "/** Pin and attest the effective policy. The browser supplies identity only. */"
666
1072
  },
667
1073
  {
668
1074
  "kind": "method",
669
1075
  "name": "sources",
670
- "signature": "@Remote(\"sources\") sources(token: string, sessionId: string): readonly QaTurnSources[]",
1076
+ "signature": "@Remote(\"sources\") async sources( token: string, sessionId: string, ): Promise<readonly QaTurnSources[]>",
671
1077
  "summary": "Return canonical Host snapshots; replay is rebuilt from qa/sources events.",
672
1078
  "jsDoc": "/** Return canonical Host snapshots; replay is rebuilt from qa/sources events. */"
673
1079
  },
1080
+ {
1081
+ "kind": "method",
1082
+ "name": "pendingApprovals",
1083
+ "signature": "@Remote(\"pendingApprovals\") async pendingApprovals( token: string, sessionId: string, ): Promise<readonly QaPendingApproval[]>",
1084
+ "summary": "The tool calls of one chat that wait for the operator.",
1085
+ "jsDoc": "/**\n * The tool calls of one chat that wait for the operator. Read-only: a\n * deployment with blocked approvals answers with an empty list.\n */"
1086
+ },
1087
+ {
1088
+ "kind": "method",
1089
+ "name": "answerApproval",
1090
+ "signature": "@Remote(\"answerApproval\") async answerApproval( token: string, sessionId: string, requestId: string, decision: QaApprovalDecision, ): Promise<boolean>",
1091
+ "summary": "Apply the operator's answer to one parked call.",
1092
+ "jsDoc": "/**\n * Apply the operator's answer to one parked call. The id must belong to a\n * request of this chat; an answer that lost the race (the turn was stopped,\n * the agent went away) is refused with `false`.\n */"
1093
+ },
1094
+ {
1095
+ "kind": "method",
1096
+ "name": "pendingQuestions",
1097
+ "signature": "@Remote(\"pendingQuestions\") async pendingQuestions( token: string, sessionId: string, ): Promise<readonly QaPendingQuestion[]>",
1098
+ "summary": "The questions of one chat that wait for the operator.",
1099
+ "jsDoc": "/**\n * The questions of one chat that wait for the operator. Read-only: a\n * deployment with unsupported questions answers with an empty list.\n */"
1100
+ },
1101
+ {
1102
+ "kind": "method",
1103
+ "name": "answerQuestion",
1104
+ "signature": "@Remote(\"answerQuestion\") async answerQuestion( token: string, sessionId: string, requestId: string, answers: readonly QaQuestionAnswerItem[], ): Promise<boolean>",
1105
+ "summary": "Apply the operator's answers to one parked question request.",
1106
+ "jsDoc": "/**\n * Apply the operator's answers to one parked question request. Every question\n * of the request must be present in `answers`; one the browser omits reads as\n * a skip.\n */"
1107
+ },
1108
+ {
1109
+ "kind": "method",
1110
+ "name": "cancelQuestion",
1111
+ "signature": "@Remote(\"cancelQuestion\") async cancelQuestion( token: string, sessionId: string, requestId: string, ): Promise<boolean>",
1112
+ "summary": "Close a parked question request without answering it.",
1113
+ "jsDoc": "/** Close a parked question request without answering it. */"
1114
+ },
674
1115
  {
675
1116
  "kind": "method",
676
1117
  "name": "readSourceFile",
@@ -680,6 +1121,18 @@ export const TYPERT = {
680
1121
  }
681
1122
  ],
682
1123
  "types": [
1124
+ {
1125
+ "name": "QaAccountIdentityField",
1126
+ "declaration": "export interface QaAccountIdentityField {\n readonly key: string;\n readonly label: string;\n}"
1127
+ },
1128
+ {
1129
+ "name": "QaAccountProfile",
1130
+ "declaration": "export interface QaAccountProfile {\n readonly fullName: string;\n readonly identities: Readonly<Record<string, string>>;\n readonly instructions: string;\n readonly updatedAt: string | null;\n}"
1131
+ },
1132
+ {
1133
+ "name": "QaAccountProfileInput",
1134
+ "declaration": "export interface QaAccountProfileInput {\n readonly fullName: string;\n readonly identities: Readonly<Record<string, string>>;\n readonly instructions: string;\n}"
1135
+ },
683
1136
  {
684
1137
  "name": "QaAccountRole",
685
1138
  "declaration": "export type QaAccountRole = \"user\" | \"admin\";"
@@ -690,7 +1143,15 @@ export const TYPERT = {
690
1143
  },
691
1144
  {
692
1145
  "name": "QaAccountUserPublic",
693
- "declaration": "export interface QaAccountUserPublic {\n readonly id: string;\n readonly email: string;\n readonly displayName: string;\n readonly role: QaAccountRole;\n readonly createdAt: string;\n readonly lastLoginAt: string | null;\n readonly disabled: boolean;\n}"
1146
+ "declaration": "export interface QaAccountUserPublic {\n readonly id: string;\n readonly email: string;\n readonly displayName: string;\n readonly role: QaAccountRole;\n readonly createdAt: string;\n readonly lastLoginAt: string | null;\n readonly disabled: boolean;\n readonly profile: QaAccountProfile;\n}"
1147
+ },
1148
+ {
1149
+ "name": "QaApprovalDecision",
1150
+ "declaration": "export type QaApprovalDecision = \"allowed-once\" | \"rejected\";"
1151
+ },
1152
+ {
1153
+ "name": "QaApprovalInteraction",
1154
+ "declaration": "export type QaApprovalInteraction = \"blocked\" | \"interactive\";"
694
1155
  },
695
1156
  {
696
1157
  "name": "QaApprovalPolicy",
@@ -702,15 +1163,39 @@ export const TYPERT = {
702
1163
  },
703
1164
  {
704
1165
  "name": "QaLockdownProof",
705
- "declaration": "export interface QaLockdownProof {\n readonly sessionId: string;\n readonly enabled: boolean;\n readonly agentPresetMatches: boolean;\n readonly workspaceMatches: boolean;\n readonly modelMatches: boolean;\n readonly sandboxIsReadOnly: boolean;\n readonly approvalIsNever: boolean;\n readonly permissionPreset: string;\n readonly toolPolicyLoaded: boolean;\n readonly toolAllowList: readonly string[];\n}"
1166
+ "declaration": "export interface QaLockdownProof {\n readonly sessionId: string;\n readonly enabled: boolean;\n readonly agentPresetMatches: boolean;\n readonly workspaceMatches: boolean;\n readonly modelMatches: boolean;\n readonly sandboxModeMatches: boolean;\n readonly approvalIsNever: boolean;\n readonly permissionPreset: string;\n readonly toolPolicyLoaded: boolean;\n readonly toolAllowList: readonly string[];\n}"
706
1167
  },
707
1168
  {
708
1169
  "name": "QaOwnershipEntry",
709
1170
  "declaration": "export interface QaOwnershipEntry {\n readonly sessionId: string;\n readonly userId: string;\n readonly displayName: string;\n readonly claimedAt: string;\n}"
710
1171
  },
1172
+ {
1173
+ "name": "QaPendingApproval",
1174
+ "declaration": "export interface QaPendingApproval {\n readonly id: string;\n readonly sessionId: string;\n readonly toolName: string;\n readonly reason: string | null;\n readonly createdAt: number;\n readonly delegated: boolean;\n}"
1175
+ },
1176
+ {
1177
+ "name": "QaPendingQuestion",
1178
+ "declaration": "export interface QaPendingQuestion {\n readonly id: string;\n readonly sessionId: string;\n readonly questions: readonly QaPendingQuestionItem[];\n readonly createdAt: number;\n}"
1179
+ },
1180
+ {
1181
+ "name": "QaPendingQuestionItem",
1182
+ "declaration": "export interface QaPendingQuestionItem {\n readonly id: string;\n readonly question: string;\n readonly header: string | null;\n readonly detail: string | null;\n readonly options: readonly QaPendingQuestionOption[];\n readonly multiSelect: boolean;\n}"
1183
+ },
1184
+ {
1185
+ "name": "QaPendingQuestionOption",
1186
+ "declaration": "export interface QaPendingQuestionOption {\n readonly label: string;\n readonly description: string | null;\n}"
1187
+ },
1188
+ {
1189
+ "name": "QaQuestionAnswerItem",
1190
+ "declaration": "export interface QaQuestionAnswerItem {\n readonly id: string;\n readonly selected: readonly string[];\n readonly custom?: string;\n}"
1191
+ },
1192
+ {
1193
+ "name": "QaQuestionInteraction",
1194
+ "declaration": "export type QaQuestionInteraction = \"unsupported\" | \"interactive\";"
1195
+ },
711
1196
  {
712
1197
  "name": "QaSandboxMode",
713
- "declaration": "export type QaSandboxMode = \"read-only\";"
1198
+ "declaration": "export type QaSandboxMode = \"read-only\" | \"workspace-write\";"
714
1199
  },
715
1200
  {
716
1201
  "name": "QaSessionPolicy",
@@ -762,7 +1247,7 @@ export const TYPERT = {
762
1247
  },
763
1248
  {
764
1249
  "name": "ResolvedQaSurfaceConfig",
765
- "declaration": "export interface ResolvedQaSurfaceConfig {\n readonly enabled: boolean;\n readonly route: { readonly path: string; readonly matchChildren: boolean; };\n readonly branding: { readonly title: string; readonly subtitle: string; readonly welcomeMessage: string; readonly placeholder: string; readonly logoUrl: string | null; readonly disclaimer: string; };\n readonly session: { readonly policy: QaSessionPolicy; readonly storageKey: string; readonly cwd: string | null; readonly workspaceId: string | null; readonly fixedSessionId: string | null; readonly agentPreset: string | null; readonly provider: string | null; readonly model: string | null; readonly reasoningEffort: string | null; };\n readonly ui: { readonly showHeader: boolean; readonly showReset: boolean; readonly showStop: boolean; readonly showTimestamps: boolean; readonly showToolActivity: boolean; readonly showReasoning: boolean; readonly renderMarkdown: boolean; readonly maxContentWidth: number; readonly showSessionList: boolean; };\n readonly suggestedQuestions: readonly string[];\n readonly interaction: { readonly approvals: \"blocked\"; readonly questions: \"unsupported\"; };\n readonly lockdown: { readonly enabled: boolean; readonly enforceFixedAgentPreset: boolean; readonly enforceFixedWorkspace: boolean; readonly enforceFixedModel: boolean; readonly sandboxMode: QaSandboxMode; readonly approvalPolicy: QaApprovalPolicy; readonly permissionPreset: string; readonly allowPermissionChanges: false; readonly allowSlashCommands: false; readonly allowSettingsMutation: false; readonly allowSessionReset: boolean; readonly allowSessionRename: false; readonly allowSessionDelete: false; readonly allowArbitrarySessionOpen: false; readonly toolPolicy: { readonly mode: QaToolPolicyMode; readonly allow: readonly string[]; }; };\n readonly embedding: { readonly frameAncestors: string | null; };\n readonly accounts: { readonly enabled: boolean; readonly allowRegistration: boolean; readonly sessionTtlDays: number; readonly showOtherUsersChats: boolean; };\n readonly entry: { readonly redirectNonLoopback: boolean; readonly cookieBootstrap: boolean; };\n readonly sources: { readonly enabled: boolean; readonly collect: { readonly parentAgent: boolean; readonly subagents: boolean; readonly persistTurnEvent: boolean; }; readonly display: { readonly sidebar: boolean; readonly footer: boolean; readonly groupByKind: boolean; readonly showDiscovered: boolean; readonly showOriginBadges: boolean; readonly maxInitiallyVisiblePerGroup: number; }; readonly webSearch: { readonly promoteSearchResultsWithoutFetch: boolean; readonly maxPromotedPerSearch: number; }; readonly dedupe: { readonly normalizeUrls: boolean; readonly stripTrackingParams: boolean; readonly mergeFileRanges: boolean; }; readonly filePreview: { readonly enabled: boolean; readonly markdownRenderedByDefault: boolean; readonly allowRawToggle: boolean; readonly maxBytes: number; readonly maxMarkdownRenderBytes: number; }; readonly subagents: { readonly inheritSources: boolean; readonly enableReportToolFallback: boolean; readonly markIncompleteOpaqueRuns: boolean; }; readonly legacy: { readonly parseAssistantSourcesBlock: boolean; }; };\n}"
1250
+ "declaration": "export interface ResolvedQaSurfaceConfig {\n readonly enabled: boolean;\n readonly route: { readonly path: string; readonly matchChildren: boolean; };\n readonly branding: { readonly title: string; readonly subtitle: string; readonly welcomeMessage: string; readonly placeholder: string; readonly logoUrl: string | null; readonly disclaimer: string; };\n readonly session: { readonly policy: QaSessionPolicy; readonly storageKey: string; readonly cwd: string | null; readonly workspaceId: string | null; readonly fixedSessionId: string | null; readonly agentPreset: string | null; readonly provider: string | null; readonly model: string | null; readonly reasoningEffort: string | null; };\n readonly ui: { readonly showHeader: boolean; readonly showReset: boolean; readonly showStop: boolean; readonly showTimestamps: boolean; readonly showToolActivity: boolean; readonly showReasoning: boolean; readonly renderMarkdown: boolean; readonly minContentWidth: number; readonly showSessionList: boolean; };\n readonly suggestedQuestions: readonly string[];\n readonly thinkingPhrases: readonly string[];\n readonly interaction: { readonly approvals: QaApprovalInteraction; readonly questions: QaQuestionInteraction; };\n readonly lockdown: { readonly enabled: boolean; readonly enforceFixedAgentPreset: boolean; readonly enforceFixedWorkspace: boolean; readonly enforceFixedModel: boolean; readonly sandboxMode: QaSandboxMode; readonly approvalPolicy: QaApprovalPolicy; readonly permissionPreset: string; readonly allowPermissionChanges: false; readonly allowSlashCommands: false; readonly allowSettingsMutation: false; readonly allowSessionReset: boolean; readonly allowSessionRename: false; readonly allowSessionDelete: false; readonly allowArbitrarySessionOpen: false; readonly toolPolicy: { readonly mode: QaToolPolicyMode; readonly allow: readonly string[]; }; readonly sharedReadOnlyRoots: readonly string[]; };\n readonly embedding: { readonly frameAncestors: string | null; };\n readonly accounts: { readonly enabled: boolean; readonly allowRegistration: boolean; readonly sessionTtlDays: number; readonly showOtherUsersChats: boolean; readonly perUserWorkspace: boolean; readonly profile: { readonly enabled: boolean; readonly inject: boolean; readonly identities: readonly QaAccountIdentityField[]; readonly instructionsMaxLength: number; }; };\n readonly entry: { readonly redirectNonLoopback: boolean; readonly cookieBootstrap: boolean; };\n readonly sources: { readonly enabled: boolean; readonly collect: { readonly parentAgent: boolean; readonly subagents: boolean; readonly persistTurnEvent: boolean; }; readonly display: { readonly sidebar: boolean; readonly footer: boolean; readonly groupByKind: boolean; readonly showDiscovered: boolean; readonly showOriginBadges: boolean; readonly maxInitiallyVisiblePerGroup: number; }; readonly webSearch: { readonly promoteSearchResultsWithoutFetch: boolean; readonly maxPromotedPerSearch: number; }; readonly dedupe: { readonly normalizeUrls: boolean; readonly stripTrackingParams: boolean; readonly mergeFileRanges: boolean; }; readonly filePreview: { readonly enabled: boolean; readonly markdownRenderedByDefault: boolean; readonly allowRawToggle: boolean; readonly maxBytes: number; readonly maxMarkdownRenderBytes: number; }; readonly subagents: { readonly inheritSources: boolean; readonly enableReportToolFallback: boolean; readonly markIncompleteOpaqueRuns: boolean; readonly validateReportedSources: boolean; }; readonly legacy: { readonly parseAssistantSourcesBlock: boolean; }; };\n readonly attachments: { readonly textFiles: boolean; readonly pastedTextLines: number; readonly maxFileBytes: number; readonly maxPending: number; readonly extensions: readonly string[]; };\n}"
766
1251
  }
767
1252
  ]
768
1253
  }