@kortix/sdk 0.15.2 → 0.15.4

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 (619) hide show
  1. package/README.md +215 -30
  2. package/dist/browser/session-sync/session-sync-registry.d.ts +1 -2
  3. package/dist/browser/session-sync/session-sync-registry.d.ts.map +1 -1
  4. package/dist/browser/session-sync/session-sync-registry.js +1 -4
  5. package/dist/browser/session-sync/session-sync-registry.js.map +1 -1
  6. package/dist/browser/stores/sync-store.d.ts +0 -6
  7. package/dist/browser/stores/sync-store.d.ts.map +1 -1
  8. package/dist/browser/stores/sync-store.js +105 -310
  9. package/dist/browser/stores/sync-store.js.map +1 -1
  10. package/dist/core/client/facade-catalog.d.ts +16 -14
  11. package/dist/core/client/facade-catalog.d.ts.map +1 -1
  12. package/dist/core/client/facade-catalog.js +16 -14
  13. package/dist/core/client/facade-catalog.js.map +1 -1
  14. package/dist/core/client/facade-workspaces.d.ts +104 -0
  15. package/dist/core/client/facade-workspaces.d.ts.map +1 -0
  16. package/dist/core/client/facade-workspaces.js +89 -0
  17. package/dist/core/client/facade-workspaces.js.map +1 -0
  18. package/dist/core/client/kortix.d.ts +1199 -38
  19. package/dist/core/client/kortix.d.ts.map +1 -1
  20. package/dist/core/client/kortix.js +27 -0
  21. package/dist/core/client/kortix.js.map +1 -1
  22. package/dist/core/client/project-access-security.d.ts +6 -6
  23. package/dist/core/client/project-access-security.d.ts.map +1 -1
  24. package/dist/core/client/project-access-security.js +20 -20
  25. package/dist/core/client/project-access-security.js.map +1 -1
  26. package/dist/core/client/project-connections.js +1 -1
  27. package/dist/core/client/project-connections.js.map +1 -1
  28. package/dist/core/client/project-core.d.ts +1 -1
  29. package/dist/core/client/project-core.d.ts.map +1 -1
  30. package/dist/core/client/project-core.js +12 -12
  31. package/dist/core/client/project-core.js.map +1 -1
  32. package/dist/core/client/project-membership.d.ts +1 -1
  33. package/dist/core/client/project-membership.d.ts.map +1 -1
  34. package/dist/core/client/project-membership.js +16 -16
  35. package/dist/core/client/project-membership.js.map +1 -1
  36. package/dist/core/client/project-operations-admin.d.ts +9 -9
  37. package/dist/core/client/project-operations-admin.d.ts.map +1 -1
  38. package/dist/core/client/project-operations-admin.js +12 -12
  39. package/dist/core/client/project-operations-admin.js.map +1 -1
  40. package/dist/core/client/project-operations-review.d.ts +5 -5
  41. package/dist/core/client/project-operations-review.d.ts.map +1 -1
  42. package/dist/core/client/project-operations-review.js +36 -36
  43. package/dist/core/client/project-operations-review.js.map +1 -1
  44. package/dist/core/client/project-operations-workspace.d.ts +9 -9
  45. package/dist/core/client/project-operations-workspace.d.ts.map +1 -1
  46. package/dist/core/client/project-operations-workspace.js +12 -12
  47. package/dist/core/client/project-operations-workspace.js.map +1 -1
  48. package/dist/core/client/project-operations.d.ts +9 -9
  49. package/dist/core/client/project-operations.d.ts.map +1 -1
  50. package/dist/core/client/project-platform-security.d.ts +1 -1
  51. package/dist/core/client/project-platform-settings.d.ts +1 -1
  52. package/dist/core/client/project-platform-settings.d.ts.map +1 -1
  53. package/dist/core/client/project-platform-settings.js +5 -5
  54. package/dist/core/client/project-platform-settings.js.map +1 -1
  55. package/dist/core/client/session-actions-resources.js +3 -3
  56. package/dist/core/client/session-actions-resources.js.map +1 -1
  57. package/dist/core/client/session-actions-security.js +2 -2
  58. package/dist/core/client/session-actions-security.js.map +1 -1
  59. package/dist/core/client/session-defaults.js +1 -1
  60. package/dist/core/client/session-defaults.js.map +1 -1
  61. package/dist/core/client/session-handle.d.ts +3 -3
  62. package/dist/core/client/session-handle.d.ts.map +1 -1
  63. package/dist/core/client/session-lifecycle-resources.d.ts +3 -3
  64. package/dist/core/client/session-lifecycle-resources.d.ts.map +1 -1
  65. package/dist/core/client/session-lifecycle-resources.js +14 -14
  66. package/dist/core/client/session-lifecycle-resources.js.map +1 -1
  67. package/dist/core/client/session-start.js +2 -2
  68. package/dist/core/client/session-start.js.map +1 -1
  69. package/dist/core/connectors/connect-link.d.ts +23 -3
  70. package/dist/core/connectors/connect-link.d.ts.map +1 -1
  71. package/dist/core/connectors/connect-link.js +13 -2
  72. package/dist/core/connectors/connect-link.js.map +1 -1
  73. package/dist/core/connectors/connector-accounts.d.ts +3 -1
  74. package/dist/core/connectors/connector-accounts.d.ts.map +1 -1
  75. package/dist/core/connectors/connector-accounts.js +4 -2
  76. package/dist/core/connectors/connector-accounts.js.map +1 -1
  77. package/dist/core/files/client.d.ts +4 -2
  78. package/dist/core/files/client.d.ts.map +1 -1
  79. package/dist/core/files/client.js +40 -10
  80. package/dist/core/files/client.js.map +1 -1
  81. package/dist/core/http/api/errors.d.ts +12 -0
  82. package/dist/core/http/api/errors.d.ts.map +1 -1
  83. package/dist/core/http/api/errors.js +14 -0
  84. package/dist/core/http/api/errors.js.map +1 -1
  85. package/dist/core/http/instance-routes.js +1 -1
  86. package/dist/core/http/instance-routes.js.map +1 -1
  87. package/dist/core/http/response-error.d.ts +9 -0
  88. package/dist/core/http/response-error.d.ts.map +1 -1
  89. package/dist/core/http/response-error.js +19 -2
  90. package/dist/core/http/response-error.js.map +1 -1
  91. package/dist/core/http/runtime-errors.d.ts.map +1 -1
  92. package/dist/core/http/runtime-errors.js +3 -2
  93. package/dist/core/http/runtime-errors.js.map +1 -1
  94. package/dist/core/http/transport.d.ts +3 -1
  95. package/dist/core/http/transport.d.ts.map +1 -1
  96. package/dist/core/http/transport.js +6 -2
  97. package/dist/core/http/transport.js.map +1 -1
  98. package/dist/core/http/url.d.ts +17 -0
  99. package/dist/core/http/url.d.ts.map +1 -0
  100. package/dist/core/http/url.js +42 -0
  101. package/dist/core/http/url.js.map +1 -0
  102. package/dist/core/http/workspace-routes.d.ts +48 -0
  103. package/dist/core/http/workspace-routes.d.ts.map +1 -0
  104. package/dist/core/http/workspace-routes.js +221 -0
  105. package/dist/core/http/workspace-routes.js.map +1 -0
  106. package/dist/core/models/provider-selection.d.ts +3 -1
  107. package/dist/core/models/provider-selection.d.ts.map +1 -1
  108. package/dist/core/models/provider-selection.js +3 -1
  109. package/dist/core/models/provider-selection.js.map +1 -1
  110. package/dist/core/rest/platform-client/host-boundary.d.ts +8 -0
  111. package/dist/core/rest/platform-client/host-boundary.d.ts.map +1 -1
  112. package/dist/core/rest/platform-client/host-boundary.js +14 -4
  113. package/dist/core/rest/platform-client/host-boundary.js.map +1 -1
  114. package/dist/core/rest/platform-client/lifecycle.js +5 -5
  115. package/dist/core/rest/platform-client/lifecycle.js.map +1 -1
  116. package/dist/core/rest/platform-client/members.d.ts +15 -3
  117. package/dist/core/rest/platform-client/members.d.ts.map +1 -1
  118. package/dist/core/rest/platform-client/members.js +9 -3
  119. package/dist/core/rest/platform-client/members.js.map +1 -1
  120. package/dist/core/rest/platform-client/shared.d.ts +1 -8
  121. package/dist/core/rest/platform-client/shared.d.ts.map +1 -1
  122. package/dist/core/rest/platform-client/shared.js +7 -27
  123. package/dist/core/rest/platform-client/shared.js.map +1 -1
  124. package/dist/core/rest/projects-client/access.d.ts +106 -21
  125. package/dist/core/rest/projects-client/access.d.ts.map +1 -1
  126. package/dist/core/rest/projects-client/access.js +90 -53
  127. package/dist/core/rest/projects-client/access.js.map +1 -1
  128. package/dist/core/rest/projects-client/account-secret-resources.d.ts.map +1 -1
  129. package/dist/core/rest/projects-client/account-secret-resources.js +7 -6
  130. package/dist/core/rest/projects-client/account-secret-resources.js.map +1 -1
  131. package/dist/core/rest/projects-client/accounts.d.ts +29 -0
  132. package/dist/core/rest/projects-client/accounts.d.ts.map +1 -1
  133. package/dist/core/rest/projects-client/accounts.js +14 -5
  134. package/dist/core/rest/projects-client/accounts.js.map +1 -1
  135. package/dist/core/rest/projects-client/agent-capabilities.d.ts +10 -2
  136. package/dist/core/rest/projects-client/agent-capabilities.d.ts.map +1 -1
  137. package/dist/core/rest/projects-client/agent-capabilities.js +5 -3
  138. package/dist/core/rest/projects-client/agent-capabilities.js.map +1 -1
  139. package/dist/core/rest/projects-client/agent-config.d.ts +39 -5
  140. package/dist/core/rest/projects-client/agent-config.d.ts.map +1 -1
  141. package/dist/core/rest/projects-client/agent-config.js +17 -19
  142. package/dist/core/rest/projects-client/agent-config.js.map +1 -1
  143. package/dist/core/rest/projects-client/agent-scope.js +1 -1
  144. package/dist/core/rest/projects-client/agent-scope.js.map +1 -1
  145. package/dist/core/rest/projects-client/apps-fleet.d.ts.map +1 -1
  146. package/dist/core/rest/projects-client/apps-fleet.js +14 -14
  147. package/dist/core/rest/projects-client/apps-fleet.js.map +1 -1
  148. package/dist/core/rest/projects-client/apps-paths.d.ts +3 -0
  149. package/dist/core/rest/projects-client/apps-paths.d.ts.map +1 -0
  150. package/dist/core/rest/projects-client/apps-paths.js +8 -0
  151. package/dist/core/rest/projects-client/apps-paths.js.map +1 -0
  152. package/dist/core/rest/projects-client/apps.d.ts.map +1 -1
  153. package/dist/core/rest/projects-client/apps.js +39 -42
  154. package/dist/core/rest/projects-client/apps.js.map +1 -1
  155. package/dist/core/rest/projects-client/artifacts.d.ts +3 -2
  156. package/dist/core/rest/projects-client/artifacts.d.ts.map +1 -1
  157. package/dist/core/rest/projects-client/artifacts.js +16 -17
  158. package/dist/core/rest/projects-client/artifacts.js.map +1 -1
  159. package/dist/core/rest/projects-client/asks.d.ts +20 -5
  160. package/dist/core/rest/projects-client/asks.d.ts.map +1 -1
  161. package/dist/core/rest/projects-client/asks.js +3 -3
  162. package/dist/core/rest/projects-client/asks.js.map +1 -1
  163. package/dist/core/rest/projects-client/assignments-at.d.ts +6 -0
  164. package/dist/core/rest/projects-client/assignments-at.d.ts.map +1 -0
  165. package/dist/core/rest/projects-client/assignments-at.js +42 -0
  166. package/dist/core/rest/projects-client/assignments-at.js.map +1 -0
  167. package/dist/core/rest/projects-client/assignments.d.ts.map +1 -1
  168. package/dist/core/rest/projects-client/assignments.js +5 -34
  169. package/dist/core/rest/projects-client/assignments.js.map +1 -1
  170. package/dist/core/rest/projects-client/audit.d.ts +3 -1
  171. package/dist/core/rest/projects-client/audit.d.ts.map +1 -1
  172. package/dist/core/rest/projects-client/audit.js +8 -2
  173. package/dist/core/rest/projects-client/audit.js.map +1 -1
  174. package/dist/core/rest/projects-client/billing.d.ts +24 -1
  175. package/dist/core/rest/projects-client/billing.d.ts.map +1 -1
  176. package/dist/core/rest/projects-client/billing.js.map +1 -1
  177. package/dist/core/rest/projects-client/change-request-recovery.js +3 -3
  178. package/dist/core/rest/projects-client/change-request-recovery.js.map +1 -1
  179. package/dist/core/rest/projects-client/change-requests.js +12 -12
  180. package/dist/core/rest/projects-client/change-requests.js.map +1 -1
  181. package/dist/core/rest/projects-client/channels.js +24 -24
  182. package/dist/core/rest/projects-client/channels.js.map +1 -1
  183. package/dist/core/rest/projects-client/claude-subscription.js +1 -1
  184. package/dist/core/rest/projects-client/claude-subscription.js.map +1 -1
  185. package/dist/core/rest/projects-client/connectors.d.ts +6 -2
  186. package/dist/core/rest/projects-client/connectors.d.ts.map +1 -1
  187. package/dist/core/rest/projects-client/connectors.js +55 -51
  188. package/dist/core/rest/projects-client/connectors.js.map +1 -1
  189. package/dist/core/rest/projects-client/custom-llm-providers.js +5 -5
  190. package/dist/core/rest/projects-client/custom-llm-providers.js.map +1 -1
  191. package/dist/core/rest/projects-client/drives.d.ts +26 -3
  192. package/dist/core/rest/projects-client/drives.d.ts.map +1 -1
  193. package/dist/core/rest/projects-client/drives.js +60 -17
  194. package/dist/core/rest/projects-client/drives.js.map +1 -1
  195. package/dist/core/rest/projects-client/files.d.ts +41 -10
  196. package/dist/core/rest/projects-client/files.d.ts.map +1 -1
  197. package/dist/core/rest/projects-client/files.js +33 -17
  198. package/dist/core/rest/projects-client/files.js.map +1 -1
  199. package/dist/core/rest/projects-client/gateway.d.ts +3 -0
  200. package/dist/core/rest/projects-client/gateway.d.ts.map +1 -1
  201. package/dist/core/rest/projects-client/gateway.js +20 -20
  202. package/dist/core/rest/projects-client/gateway.js.map +1 -1
  203. package/dist/core/rest/projects-client/git-backend.js +2 -2
  204. package/dist/core/rest/projects-client/git-backend.js.map +1 -1
  205. package/dist/core/rest/projects-client/git-history.d.ts +49 -6
  206. package/dist/core/rest/projects-client/git-history.d.ts.map +1 -1
  207. package/dist/core/rest/projects-client/git-history.js +20 -10
  208. package/dist/core/rest/projects-client/git-history.js.map +1 -1
  209. package/dist/core/rest/projects-client/github.d.ts +16 -2
  210. package/dist/core/rest/projects-client/github.d.ts.map +1 -1
  211. package/dist/core/rest/projects-client/github.js +18 -14
  212. package/dist/core/rest/projects-client/github.js.map +1 -1
  213. package/dist/core/rest/projects-client/goals.d.ts +149 -20
  214. package/dist/core/rest/projects-client/goals.d.ts.map +1 -1
  215. package/dist/core/rest/projects-client/goals.js +69 -21
  216. package/dist/core/rest/projects-client/goals.js.map +1 -1
  217. package/dist/core/rest/projects-client/iam-actions.d.ts +112 -0
  218. package/dist/core/rest/projects-client/iam-actions.d.ts.map +1 -1
  219. package/dist/core/rest/projects-client/iam-actions.js +117 -0
  220. package/dist/core/rest/projects-client/iam-actions.js.map +1 -1
  221. package/dist/core/rest/projects-client/iam-audit.js +1 -1
  222. package/dist/core/rest/projects-client/iam-audit.js.map +1 -1
  223. package/dist/core/rest/projects-client/iam-grants.js +1 -1
  224. package/dist/core/rest/projects-client/iam-grants.js.map +1 -1
  225. package/dist/core/rest/projects-client/iam-groups.d.ts +12 -2
  226. package/dist/core/rest/projects-client/iam-groups.d.ts.map +1 -1
  227. package/dist/core/rest/projects-client/iam-groups.js +6 -2
  228. package/dist/core/rest/projects-client/iam-groups.js.map +1 -1
  229. package/dist/core/rest/projects-client/iam-policies.js +1 -1
  230. package/dist/core/rest/projects-client/iam-policies.js.map +1 -1
  231. package/dist/core/rest/projects-client/iam-probe.d.ts +2 -0
  232. package/dist/core/rest/projects-client/iam-probe.d.ts.map +1 -1
  233. package/dist/core/rest/projects-client/iam-probe.js.map +1 -1
  234. package/dist/core/rest/projects-client/iam-roles.d.ts +3 -1
  235. package/dist/core/rest/projects-client/iam-roles.d.ts.map +1 -1
  236. package/dist/core/rest/projects-client/iam-roles.js +4 -2
  237. package/dist/core/rest/projects-client/iam-roles.js.map +1 -1
  238. package/dist/core/rest/projects-client/iam-sessions.d.ts +6 -0
  239. package/dist/core/rest/projects-client/iam-sessions.d.ts.map +1 -1
  240. package/dist/core/rest/projects-client/iam-sessions.js.map +1 -1
  241. package/dist/core/rest/projects-client/iam-types.d.ts +2 -0
  242. package/dist/core/rest/projects-client/iam-types.d.ts.map +1 -1
  243. package/dist/core/rest/projects-client/index.d.ts +2 -2
  244. package/dist/core/rest/projects-client/index.d.ts.map +1 -1
  245. package/dist/core/rest/projects-client/index.js +1 -1
  246. package/dist/core/rest/projects-client/index.js.map +1 -1
  247. package/dist/core/rest/projects-client/manifest-spaces.d.ts +6 -1
  248. package/dist/core/rest/projects-client/manifest-spaces.d.ts.map +1 -1
  249. package/dist/core/rest/projects-client/manifest-spaces.js +6 -1
  250. package/dist/core/rest/projects-client/manifest-spaces.js.map +1 -1
  251. package/dist/core/rest/projects-client/marketplace-catalog.js +1 -1
  252. package/dist/core/rest/projects-client/marketplace-catalog.js.map +1 -1
  253. package/dist/core/rest/projects-client/memory.d.ts +146 -22
  254. package/dist/core/rest/projects-client/memory.d.ts.map +1 -1
  255. package/dist/core/rest/projects-client/memory.js +31 -12
  256. package/dist/core/rest/projects-client/memory.js.map +1 -1
  257. package/dist/core/rest/projects-client/model-access.d.ts +16 -3
  258. package/dist/core/rest/projects-client/model-access.d.ts.map +1 -1
  259. package/dist/core/rest/projects-client/model-access.js +8 -4
  260. package/dist/core/rest/projects-client/model-access.js.map +1 -1
  261. package/dist/core/rest/projects-client/model-defaults.js +3 -3
  262. package/dist/core/rest/projects-client/model-defaults.js.map +1 -1
  263. package/dist/core/rest/projects-client/model-enablement.d.ts +3 -1
  264. package/dist/core/rest/projects-client/model-enablement.d.ts.map +1 -1
  265. package/dist/core/rest/projects-client/model-enablement.js +4 -2
  266. package/dist/core/rest/projects-client/model-enablement.js.map +1 -1
  267. package/dist/core/rest/projects-client/multi-agent.d.ts.map +1 -1
  268. package/dist/core/rest/projects-client/multi-agent.js +4 -3
  269. package/dist/core/rest/projects-client/multi-agent.js.map +1 -1
  270. package/dist/core/rest/projects-client/notifications.js +1 -1
  271. package/dist/core/rest/projects-client/notifications.js.map +1 -1
  272. package/dist/core/rest/projects-client/policies.d.ts +12 -2
  273. package/dist/core/rest/projects-client/policies.d.ts.map +1 -1
  274. package/dist/core/rest/projects-client/policies.js +8 -4
  275. package/dist/core/rest/projects-client/policies.js.map +1 -1
  276. package/dist/core/rest/projects-client/project-agents.d.ts +3 -1
  277. package/dist/core/rest/projects-client/project-agents.d.ts.map +1 -1
  278. package/dist/core/rest/projects-client/project-agents.js +3 -1
  279. package/dist/core/rest/projects-client/project-agents.js.map +1 -1
  280. package/dist/core/rest/projects-client/project-search.d.ts +24 -4
  281. package/dist/core/rest/projects-client/project-search.d.ts.map +1 -1
  282. package/dist/core/rest/projects-client/project-search.js +4 -2
  283. package/dist/core/rest/projects-client/project-search.js.map +1 -1
  284. package/dist/core/rest/projects-client/projects.d.ts +162 -46
  285. package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
  286. package/dist/core/rest/projects-client/projects.js +116 -155
  287. package/dist/core/rest/projects-client/projects.js.map +1 -1
  288. package/dist/core/rest/projects-client/prompt-attachments.js +1 -1
  289. package/dist/core/rest/projects-client/prompt-attachments.js.map +1 -1
  290. package/dist/core/rest/projects-client/provision-stream.d.ts +15 -0
  291. package/dist/core/rest/projects-client/provision-stream.d.ts.map +1 -0
  292. package/dist/core/rest/projects-client/provision-stream.js +105 -0
  293. package/dist/core/rest/projects-client/provision-stream.js.map +1 -0
  294. package/dist/core/rest/projects-client/review.js +6 -6
  295. package/dist/core/rest/projects-client/review.js.map +1 -1
  296. package/dist/core/rest/projects-client/runtime-triggers.js +3 -3
  297. package/dist/core/rest/projects-client/runtime-triggers.js.map +1 -1
  298. package/dist/core/rest/projects-client/sandbox.d.ts +31 -6
  299. package/dist/core/rest/projects-client/sandbox.d.ts.map +1 -1
  300. package/dist/core/rest/projects-client/sandbox.js +27 -17
  301. package/dist/core/rest/projects-client/sandbox.js.map +1 -1
  302. package/dist/core/rest/projects-client/secrets.d.ts +60 -15
  303. package/dist/core/rest/projects-client/secrets.d.ts.map +1 -1
  304. package/dist/core/rest/projects-client/secrets.js +53 -27
  305. package/dist/core/rest/projects-client/secrets.js.map +1 -1
  306. package/dist/core/rest/projects-client/session-attachments.js +2 -2
  307. package/dist/core/rest/projects-client/session-attachments.js.map +1 -1
  308. package/dist/core/rest/projects-client/session-costs.d.ts +33 -2
  309. package/dist/core/rest/projects-client/session-costs.d.ts.map +1 -1
  310. package/dist/core/rest/projects-client/session-costs.js +3 -1
  311. package/dist/core/rest/projects-client/session-costs.js.map +1 -1
  312. package/dist/core/rest/projects-client/session-groups.d.ts +35 -8
  313. package/dist/core/rest/projects-client/session-groups.d.ts.map +1 -1
  314. package/dist/core/rest/projects-client/session-groups.js +24 -12
  315. package/dist/core/rest/projects-client/session-groups.js.map +1 -1
  316. package/dist/core/rest/projects-client/session-reminders.d.ts +10 -2
  317. package/dist/core/rest/projects-client/session-reminders.d.ts.map +1 -1
  318. package/dist/core/rest/projects-client/session-reminders.js +9 -7
  319. package/dist/core/rest/projects-client/session-reminders.js.map +1 -1
  320. package/dist/core/rest/projects-client/session-sandbox.d.ts +13 -3
  321. package/dist/core/rest/projects-client/session-sandbox.d.ts.map +1 -1
  322. package/dist/core/rest/projects-client/session-sandbox.js +8 -4
  323. package/dist/core/rest/projects-client/session-sandbox.js.map +1 -1
  324. package/dist/core/rest/projects-client/sessions.d.ts +127 -27
  325. package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
  326. package/dist/core/rest/projects-client/sessions.js +124 -68
  327. package/dist/core/rest/projects-client/sessions.js.map +1 -1
  328. package/dist/core/rest/projects-client/setup-links.d.ts +12 -2
  329. package/dist/core/rest/projects-client/setup-links.d.ts.map +1 -1
  330. package/dist/core/rest/projects-client/setup-links.js +8 -4
  331. package/dist/core/rest/projects-client/setup-links.js.map +1 -1
  332. package/dist/core/rest/projects-client/shared.d.ts +8 -0
  333. package/dist/core/rest/projects-client/shared.d.ts.map +1 -1
  334. package/dist/core/rest/projects-client/shared.js +2 -1
  335. package/dist/core/rest/projects-client/shared.js.map +1 -1
  336. package/dist/core/rest/projects-client/skills.d.ts +20 -4
  337. package/dist/core/rest/projects-client/skills.d.ts.map +1 -1
  338. package/dist/core/rest/projects-client/skills.js +8 -4
  339. package/dist/core/rest/projects-client/skills.js.map +1 -1
  340. package/dist/core/rest/projects-client/spaces.d.ts +117 -24
  341. package/dist/core/rest/projects-client/spaces.d.ts.map +1 -1
  342. package/dist/core/rest/projects-client/spaces.js +76 -40
  343. package/dist/core/rest/projects-client/spaces.js.map +1 -1
  344. package/dist/core/rest/projects-client/tokens.d.ts +87 -11
  345. package/dist/core/rest/projects-client/tokens.d.ts.map +1 -1
  346. package/dist/core/rest/projects-client/tokens.js +48 -16
  347. package/dist/core/rest/projects-client/tokens.js.map +1 -1
  348. package/dist/core/rest/projects-client/triggers.d.ts +153 -25
  349. package/dist/core/rest/projects-client/triggers.d.ts.map +1 -1
  350. package/dist/core/rest/projects-client/triggers.js +38 -20
  351. package/dist/core/rest/projects-client/triggers.js.map +1 -1
  352. package/dist/core/rest/projects-client/workspaces.d.ts +425 -0
  353. package/dist/core/rest/projects-client/workspaces.d.ts.map +1 -0
  354. package/dist/core/rest/projects-client/workspaces.js +437 -0
  355. package/dist/core/rest/projects-client/workspaces.js.map +1 -0
  356. package/dist/core/runtime/env.d.ts.map +1 -1
  357. package/dist/core/runtime/env.js +7 -29
  358. package/dist/core/runtime/env.js.map +1 -1
  359. package/dist/core/runtime/kortix-master.d.ts.map +1 -1
  360. package/dist/core/runtime/kortix-master.js +53 -87
  361. package/dist/core/runtime/kortix-master.js.map +1 -1
  362. package/dist/core/runtime/pty.d.ts.map +1 -1
  363. package/dist/core/runtime/pty.js +13 -43
  364. package/dist/core/runtime/pty.js.map +1 -1
  365. package/dist/core/runtime/sandbox-request.d.ts +22 -0
  366. package/dist/core/runtime/sandbox-request.d.ts.map +1 -0
  367. package/dist/core/runtime/sandbox-request.js +69 -0
  368. package/dist/core/runtime/sandbox-request.js.map +1 -0
  369. package/dist/core/runtime/triggers.d.ts.map +1 -1
  370. package/dist/core/runtime/triggers.js +2 -16
  371. package/dist/core/runtime/triggers.js.map +1 -1
  372. package/dist/core/session/control-stream.js +1 -1
  373. package/dist/core/session/control-stream.js.map +1 -1
  374. package/dist/core/session/presentation.d.ts.map +1 -1
  375. package/dist/core/session/presentation.js +2 -7
  376. package/dist/core/session/presentation.js.map +1 -1
  377. package/dist/core/session/project-session-read.d.ts +2 -2
  378. package/dist/core/session/project-session-read.d.ts.map +1 -1
  379. package/dist/core/session/project-session-read.js +2 -2
  380. package/dist/core/session/project-session-read.js.map +1 -1
  381. package/dist/core/session/runtime-sessions.d.ts +3 -1
  382. package/dist/core/session/runtime-sessions.d.ts.map +1 -1
  383. package/dist/core/session/runtime-sessions.js +3 -1
  384. package/dist/core/session/runtime-sessions.js.map +1 -1
  385. package/dist/core/session/runtime-workflows.js +2 -2
  386. package/dist/core/session/runtime-workflows.js.map +1 -1
  387. package/dist/core/session-log/source.d.ts +2 -4
  388. package/dist/core/session-log/source.d.ts.map +1 -1
  389. package/dist/core/session-log/source.js +2 -7
  390. package/dist/core/session-log/source.js.map +1 -1
  391. package/dist/core/session-sync/saved-transcript.js +1 -1
  392. package/dist/core/session-sync/saved-transcript.js.map +1 -1
  393. package/dist/core/turns/errors.d.ts.map +1 -1
  394. package/dist/core/turns/errors.js +1 -10
  395. package/dist/core/turns/errors.js.map +1 -1
  396. package/dist/core/turns/text-scan.d.ts +8 -0
  397. package/dist/core/turns/text-scan.d.ts.map +1 -1
  398. package/dist/core/turns/text-scan.js +28 -2
  399. package/dist/core/turns/text-scan.js.map +1 -1
  400. package/dist/core/turns/tools/kortix-tool-card.d.ts +0 -8
  401. package/dist/core/turns/tools/kortix-tool-card.d.ts.map +1 -1
  402. package/dist/core/turns/tools/kortix-tool-card.js +40 -5
  403. package/dist/core/turns/tools/kortix-tool-card.js.map +1 -1
  404. package/dist/core/turns/tools/tool-outcome.d.ts.map +1 -1
  405. package/dist/core/turns/tools/tool-outcome.js +1 -14
  406. package/dist/core/turns/tools/tool-outcome.js.map +1 -1
  407. package/dist/core/turns/tools/tool-output-format.d.ts.map +1 -1
  408. package/dist/core/turns/tools/tool-output-format.js +1 -9
  409. package/dist/core/turns/tools/tool-output-format.js.map +1 -1
  410. package/dist/core/turns/tools/workflow-run.d.ts.map +1 -1
  411. package/dist/core/turns/tools/workflow-run.js +10 -19
  412. package/dist/core/turns/tools/workflow-run.js.map +1 -1
  413. package/dist/core/turns/view-model.d.ts.map +1 -1
  414. package/dist/core/turns/view-model.js +2 -3
  415. package/dist/core/turns/view-model.js.map +1 -1
  416. package/dist/core/wire-values.d.ts +8 -5
  417. package/dist/core/wire-values.d.ts.map +1 -1
  418. package/dist/core/wire-values.js +8 -5
  419. package/dist/core/wire-values.js.map +1 -1
  420. package/dist/index.d.ts +5 -5
  421. package/dist/index.d.ts.map +1 -1
  422. package/dist/index.js +4 -4
  423. package/dist/index.js.map +1 -1
  424. package/dist/kortix.esm.min.js +53 -52
  425. package/dist/kortix.global.js +53 -52
  426. package/dist/node/app-guard.d.ts.map +1 -1
  427. package/dist/node/app-guard.js +2 -1
  428. package/dist/node/app-guard.js.map +1 -1
  429. package/dist/node/auth.d.ts.map +1 -1
  430. package/dist/node/auth.js +4 -2
  431. package/dist/node/auth.js.map +1 -1
  432. package/dist/react/index.d.ts +9 -7
  433. package/dist/react/index.d.ts.map +1 -1
  434. package/dist/react/index.js +12 -7
  435. package/dist/react/index.js.map +1 -1
  436. package/dist/react/invalidate-project.d.ts +16 -4
  437. package/dist/react/invalidate-project.d.ts.map +1 -1
  438. package/dist/react/invalidate-project.js +14 -4
  439. package/dist/react/invalidate-project.js.map +1 -1
  440. package/dist/react/prefetch-session-start.js +2 -2
  441. package/dist/react/prefetch-session-start.js.map +1 -1
  442. package/dist/react/provider-refresh.d.ts +6 -2
  443. package/dist/react/provider-refresh.d.ts.map +1 -1
  444. package/dist/react/provider-refresh.js +8 -4
  445. package/dist/react/provider-refresh.js.map +1 -1
  446. package/dist/react/query-keys.d.ts +18 -0
  447. package/dist/react/query-keys.d.ts.map +1 -1
  448. package/dist/react/query-keys.js +12 -0
  449. package/dist/react/query-keys.js.map +1 -1
  450. package/dist/react/route-project.d.ts +6 -2
  451. package/dist/react/route-project.d.ts.map +1 -1
  452. package/dist/react/route-project.js +6 -2
  453. package/dist/react/route-project.js.map +1 -1
  454. package/dist/react/runtime-actions.d.ts +6 -2
  455. package/dist/react/runtime-actions.d.ts.map +1 -1
  456. package/dist/react/runtime-actions.js +7 -3
  457. package/dist/react/runtime-actions.js.map +1 -1
  458. package/dist/react/runtime-hooks.d.ts +5 -5
  459. package/dist/react/runtime-hooks.d.ts.map +1 -1
  460. package/dist/react/runtime-hooks.js +4 -4
  461. package/dist/react/runtime-hooks.js.map +1 -1
  462. package/dist/react/session-cache-write.d.ts +18 -5
  463. package/dist/react/session-cache-write.d.ts.map +1 -1
  464. package/dist/react/session-cache-write.js +16 -6
  465. package/dist/react/session-cache-write.js.map +1 -1
  466. package/dist/react/use-accounts.d.ts +13 -1
  467. package/dist/react/use-accounts.d.ts.map +1 -1
  468. package/dist/react/use-accounts.js +9 -3
  469. package/dist/react/use-accounts.js.map +1 -1
  470. package/dist/react/use-admin-accounts.d.ts +8 -3
  471. package/dist/react/use-admin-accounts.d.ts.map +1 -1
  472. package/dist/react/use-admin-accounts.js +7 -1
  473. package/dist/react/use-admin-accounts.js.map +1 -1
  474. package/dist/react/use-admin-projects.d.ts +26 -3
  475. package/dist/react/use-admin-projects.d.ts.map +1 -1
  476. package/dist/react/use-admin-projects.js +3 -1
  477. package/dist/react/use-admin-projects.js.map +1 -1
  478. package/dist/react/use-canonical-runtime-session.js +2 -2
  479. package/dist/react/use-canonical-runtime-session.js.map +1 -1
  480. package/dist/react/use-feature-flag.d.ts +24 -0
  481. package/dist/react/use-feature-flag.d.ts.map +1 -1
  482. package/dist/react/use-feature-flag.js +45 -1
  483. package/dist/react/use-feature-flag.js.map +1 -1
  484. package/dist/react/use-gateway-catalog-sync.d.ts.map +1 -1
  485. package/dist/react/use-gateway-catalog-sync.js +24 -5
  486. package/dist/react/use-gateway-catalog-sync.js.map +1 -1
  487. package/dist/react/use-goals.d.ts +25 -7
  488. package/dist/react/use-goals.d.ts.map +1 -1
  489. package/dist/react/use-goals.js +31 -19
  490. package/dist/react/use-goals.js.map +1 -1
  491. package/dist/react/use-model-access.js +3 -3
  492. package/dist/react/use-model-access.js.map +1 -1
  493. package/dist/react/use-model-enablement.js +4 -4
  494. package/dist/react/use-model-enablement.js.map +1 -1
  495. package/dist/react/use-model-store.d.ts +7 -0
  496. package/dist/react/use-model-store.d.ts.map +1 -1
  497. package/dist/react/use-model-store.js +48 -46
  498. package/dist/react/use-model-store.js.map +1 -1
  499. package/dist/react/use-multi-agent.js +2 -2
  500. package/dist/react/use-multi-agent.js.map +1 -1
  501. package/dist/react/use-now.d.ts +7 -0
  502. package/dist/react/use-now.d.ts.map +1 -0
  503. package/dist/react/use-now.js +18 -0
  504. package/dist/react/use-now.js.map +1 -0
  505. package/dist/react/use-project-apps.d.ts +5 -1
  506. package/dist/react/use-project-apps.d.ts.map +1 -1
  507. package/dist/react/use-project-apps.js +38 -55
  508. package/dist/react/use-project-apps.js.map +1 -1
  509. package/dist/react/use-project-config.d.ts +3 -1
  510. package/dist/react/use-project-config.d.ts.map +1 -1
  511. package/dist/react/use-project-config.js +5 -3
  512. package/dist/react/use-project-config.js.map +1 -1
  513. package/dist/react/use-project-files.d.ts +9 -3
  514. package/dist/react/use-project-files.d.ts.map +1 -1
  515. package/dist/react/use-project-files.js +12 -6
  516. package/dist/react/use-project-files.js.map +1 -1
  517. package/dist/react/use-project-memory.d.ts +24 -8
  518. package/dist/react/use-project-memory.d.ts.map +1 -1
  519. package/dist/react/use-project-memory.js +33 -17
  520. package/dist/react/use-project-memory.js.map +1 -1
  521. package/dist/react/use-project-models.d.ts +6 -2
  522. package/dist/react/use-project-models.d.ts.map +1 -1
  523. package/dist/react/use-project-models.js +9 -5
  524. package/dist/react/use-project-models.js.map +1 -1
  525. package/dist/react/use-project-name.d.ts +9 -3
  526. package/dist/react/use-project-name.d.ts.map +1 -1
  527. package/dist/react/use-project-name.js +9 -3
  528. package/dist/react/use-project-name.js.map +1 -1
  529. package/dist/react/use-project-search.d.ts +3 -1
  530. package/dist/react/use-project-search.d.ts.map +1 -1
  531. package/dist/react/use-project-search.js +5 -3
  532. package/dist/react/use-project-search.js.map +1 -1
  533. package/dist/react/use-project-secrets.d.ts +12 -8
  534. package/dist/react/use-project-secrets.d.ts.map +1 -1
  535. package/dist/react/use-project-secrets.js +13 -9
  536. package/dist/react/use-project-secrets.js.map +1 -1
  537. package/dist/react/use-project-session.d.ts +3 -1
  538. package/dist/react/use-project-session.d.ts.map +1 -1
  539. package/dist/react/use-project-session.js +5 -3
  540. package/dist/react/use-project-session.js.map +1 -1
  541. package/dist/react/use-project-sessions.d.ts +12 -3
  542. package/dist/react/use-project-sessions.d.ts.map +1 -1
  543. package/dist/react/use-project-sessions.js +17 -11
  544. package/dist/react/use-project-sessions.js.map +1 -1
  545. package/dist/react/use-project-spaces.d.ts +54 -18
  546. package/dist/react/use-project-spaces.d.ts.map +1 -1
  547. package/dist/react/use-project-spaces.js +73 -37
  548. package/dist/react/use-project-spaces.js.map +1 -1
  549. package/dist/react/use-project-triggers.d.ts +27 -11
  550. package/dist/react/use-project-triggers.d.ts.map +1 -1
  551. package/dist/react/use-project-triggers.js +40 -24
  552. package/dist/react/use-project-triggers.js.map +1 -1
  553. package/dist/react/use-reminders.d.ts +3 -1
  554. package/dist/react/use-reminders.d.ts.map +1 -1
  555. package/dist/react/use-reminders.js +5 -3
  556. package/dist/react/use-reminders.js.map +1 -1
  557. package/dist/react/use-runtime-events/connect-stream.d.ts +63 -0
  558. package/dist/react/use-runtime-events/connect-stream.d.ts.map +1 -0
  559. package/dist/react/use-runtime-events/connect-stream.js +178 -0
  560. package/dist/react/use-runtime-events/connect-stream.js.map +1 -0
  561. package/dist/react/use-runtime-events/helpers.js +4 -4
  562. package/dist/react/use-runtime-events/helpers.js.map +1 -1
  563. package/dist/react/use-runtime-events/index.d.ts +3 -16
  564. package/dist/react/use-runtime-events/index.d.ts.map +1 -1
  565. package/dist/react/use-runtime-events/index.js +84 -201
  566. package/dist/react/use-runtime-events/index.js.map +1 -1
  567. package/dist/react/use-runtime-events/lsp-diagnostics.d.ts +15 -0
  568. package/dist/react/use-runtime-events/lsp-diagnostics.d.ts.map +1 -0
  569. package/dist/react/use-runtime-events/lsp-diagnostics.js +98 -0
  570. package/dist/react/use-runtime-events/lsp-diagnostics.js.map +1 -0
  571. package/dist/react/use-runtime-events/use-event-stream-refs.d.ts +2 -3
  572. package/dist/react/use-runtime-events/use-event-stream-refs.d.ts.map +1 -1
  573. package/dist/react/use-runtime-events/use-event-stream-refs.js +8 -89
  574. package/dist/react/use-runtime-events/use-event-stream-refs.js.map +1 -1
  575. package/dist/react/use-runtime-local.js +2 -2
  576. package/dist/react/use-runtime-local.js.map +1 -1
  577. package/dist/react/use-runtime-sessions/agents.js +2 -2
  578. package/dist/react/use-runtime-sessions/agents.js.map +1 -1
  579. package/dist/react/use-runtime-sessions/messages.js +1 -1
  580. package/dist/react/use-runtime-sessions/messages.js.map +1 -1
  581. package/dist/react/use-runtime-sessions/projects.d.ts +3 -1
  582. package/dist/react/use-runtime-sessions/projects.d.ts.map +1 -1
  583. package/dist/react/use-runtime-sessions/projects.js +5 -3
  584. package/dist/react/use-runtime-sessions/projects.js.map +1 -1
  585. package/dist/react/use-runtime-sessions/providers.js +4 -4
  586. package/dist/react/use-runtime-sessions/providers.js.map +1 -1
  587. package/dist/react/use-session-groups.d.ts +18 -6
  588. package/dist/react/use-session-groups.d.ts.map +1 -1
  589. package/dist/react/use-session-groups.js +30 -18
  590. package/dist/react/use-session-groups.js.map +1 -1
  591. package/dist/react/use-session-list-state.js +2 -2
  592. package/dist/react/use-session-list-state.js.map +1 -1
  593. package/dist/react/use-session-model-selection.js +2 -2
  594. package/dist/react/use-session-model-selection.js.map +1 -1
  595. package/dist/react/use-session-stream.d.ts +9 -3
  596. package/dist/react/use-session-stream.d.ts.map +1 -1
  597. package/dist/react/use-session-stream.js +29 -39
  598. package/dist/react/use-session-stream.js.map +1 -1
  599. package/dist/react/use-session.js +6 -6
  600. package/dist/react/use-session.js.map +1 -1
  601. package/dist/react/use-teams-installations.js +5 -5
  602. package/dist/react/use-teams-installations.js.map +1 -1
  603. package/dist/react/use-tunnel.d.ts +3 -1
  604. package/dist/react/use-tunnel.d.ts.map +1 -1
  605. package/dist/react/use-tunnel.js +5 -3
  606. package/dist/react/use-tunnel.js.map +1 -1
  607. package/dist/react/use-workspaces.d.ts +84 -0
  608. package/dist/react/use-workspaces.d.ts.map +1 -0
  609. package/dist/react/use-workspaces.js +88 -0
  610. package/dist/react/use-workspaces.js.map +1 -0
  611. package/package.json +6 -2
  612. package/dist/core/rest/projects-client/iam-query.d.ts +0 -3
  613. package/dist/core/rest/projects-client/iam-query.d.ts.map +0 -1
  614. package/dist/core/rest/projects-client/iam-query.js +0 -11
  615. package/dist/core/rest/projects-client/iam-query.js.map +0 -1
  616. package/dist/react/use-runtime-events/rehydrate-targets.d.ts +0 -18
  617. package/dist/react/use-runtime-events/rehydrate-targets.d.ts.map +0 -1
  618. package/dist/react/use-runtime-events/rehydrate-targets.js +0 -20
  619. package/dist/react/use-runtime-events/rehydrate-targets.js.map +0 -1
@@ -10,27 +10,31 @@ import { unwrap } from './shared.js';
10
10
  * caller's DMs. The first call creates `#general`. A background read: a
11
11
  * failure reaches the caller's query state, not the host error handler.
12
12
  */
13
- export async function listProjectSpaces(projectId) {
14
- const body = unwrap(await backendApi.get(`/projects/${projectId}/spaces`, { showErrors: false }));
13
+ export async function listWorkspaceSpaces(projectId) {
14
+ const body = unwrap(await backendApi.get(`/workspaces/${projectId}/spaces`, { showErrors: false }));
15
15
  return body.spaces;
16
16
  }
17
+ /** @deprecated Use `listWorkspaceSpaces`. Kept permanently. */
18
+ export const listProjectSpaces = listWorkspaceSpaces;
17
19
  /**
18
20
  * `#general`'s "turned on again" line, or null when there is none. Read from
19
21
  * the spaces list (`GET /spaces`), so it costs the same request. A background read.
20
22
  */
21
- export async function getProjectSpaceGeneralNotice(projectId) {
22
- const body = unwrap(await backendApi.get(`/projects/${projectId}/spaces`, {
23
+ export async function getWorkspaceSpaceGeneralNotice(projectId) {
24
+ const body = unwrap(await backendApi.get(`/workspaces/${projectId}/spaces`, {
23
25
  showErrors: false,
24
26
  }));
25
27
  return body.general_notice ?? null;
26
28
  }
29
+ /** @deprecated Use `getWorkspaceSpaceGeneralNotice`. Kept permanently. */
30
+ export const getProjectSpaceGeneralNotice = getWorkspaceSpaceGeneralNotice;
27
31
  /**
28
32
  * Whether this deployment lets a channel be private (create with `visibility:
29
33
  * 'private'`, or make one private). Read from the spaces list; an older API
30
34
  * that sends no field reads false. A background read.
31
35
  */
32
36
  export async function getPrivateChannelsAvailable(projectId) {
33
- const body = unwrap(await backendApi.get(`/projects/${projectId}/spaces`, {
37
+ const body = unwrap(await backendApi.get(`/workspaces/${projectId}/spaces`, {
34
38
  showErrors: false,
35
39
  }));
36
40
  return body.private_channels_available === true;
@@ -43,9 +47,11 @@ export async function getPrivateChannelsAvailable(projectId) {
43
47
  * with no slug characters rejects with 400 `invalid_name`. The caller shows
44
48
  * both, so neither reaches the host error handler.
45
49
  */
46
- export async function createProjectSpace(projectId, input) {
47
- return unwrap(await backendApi.post(`/projects/${projectId}/spaces`, input, { showErrors: false }));
50
+ export async function createWorkspaceSpace(projectId, input) {
51
+ return unwrap(await backendApi.post(`/workspaces/${projectId}/spaces`, input, { showErrors: false }));
48
52
  }
53
+ /** @deprecated Use `createWorkspaceSpace`. Kept permanently. */
54
+ export const createProjectSpace = createWorkspaceSpace;
49
55
  /**
50
56
  * Rename, describe, archive or unarchive a channel, or replace its agent list. Only its creator or a
51
57
  * project manager may (`can_edit`); anyone else rejects with 403 `forbidden`.
@@ -53,9 +59,11 @@ export async function createProjectSpace(projectId, input) {
53
59
  * `createProjectSpace`). The caller shows the error, so it never reaches the
54
60
  * host error handler.
55
61
  */
56
- export async function updateProjectSpace(projectId, spaceId, input) {
57
- return unwrap(await backendApi.patch(`/projects/${projectId}/spaces/${spaceId}`, input, { showErrors: false }));
62
+ export async function updateWorkspaceSpace(projectId, spaceId, input) {
63
+ return unwrap(await backendApi.patch(`/workspaces/${projectId}/spaces/${spaceId}`, input, { showErrors: false }));
58
64
  }
65
+ /** @deprecated Use `updateWorkspaceSpace`. Kept permanently. */
66
+ export const updateProjectSpace = updateWorkspaceSpace;
59
67
  /**
60
68
  * Replace a space's tabs after Chat with `tabs`, in order: add, remove,
61
69
  * rename and reorder in one call. At most 20; every tab needs a `ref` (else
@@ -64,34 +72,44 @@ export async function updateProjectSpace(projectId, spaceId, input) {
64
72
  * with 403 `forbidden`. The caller shows the error, so it never reaches the
65
73
  * host error handler. Resolves the space with its new tabs.
66
74
  */
67
- export async function setProjectSpaceTabs(projectId, spaceId, tabs) {
68
- return unwrap(await backendApi.put(`/projects/${projectId}/spaces/${spaceId}/tabs`, { tabs }, { showErrors: false }));
75
+ export async function setWorkspaceSpaceTabs(projectId, spaceId, tabs) {
76
+ return unwrap(await backendApi.put(`/workspaces/${projectId}/spaces/${spaceId}/tabs`, { tabs }, { showErrors: false }));
69
77
  }
78
+ /** @deprecated Use `setWorkspaceSpaceTabs`. Kept permanently. */
79
+ export const setProjectSpaceTabs = setWorkspaceSpaceTabs;
70
80
  /** A space's Proactive settings. 403 `feature_disabled` while `spaces_proactive` is off. */
71
- export async function getProjectSpaceProactive(projectId, spaceId) {
72
- return unwrap(await backendApi.get(`/projects/${projectId}/spaces/${spaceId}/proactive`, { showErrors: false }));
81
+ export async function getWorkspaceSpaceProactive(projectId, spaceId) {
82
+ return unwrap(await backendApi.get(`/workspaces/${projectId}/spaces/${spaceId}/proactive`, { showErrors: false }));
73
83
  }
84
+ /** @deprecated Use `getWorkspaceSpaceProactive`. Kept permanently. */
85
+ export const getProjectSpaceProactive = getWorkspaceSpaceProactive;
74
86
  /**
75
87
  * Turn a space's watcher or its daily brief on or off. Anyone but the
76
88
  * channel's creator, a project manager or the DM's owner rejects with 403
77
89
  * `forbidden`. The caller shows the error, so it never reaches the host
78
90
  * error handler. Resolves the stored settings.
79
91
  */
80
- export async function setProjectSpaceProactive(projectId, spaceId, input) {
81
- return unwrap(await backendApi.put(`/projects/${projectId}/spaces/${spaceId}/proactive`, input, { showErrors: false }));
92
+ export async function setWorkspaceSpaceProactive(projectId, spaceId, input) {
93
+ return unwrap(await backendApi.put(`/workspaces/${projectId}/spaces/${spaceId}/proactive`, input, { showErrors: false }));
82
94
  }
95
+ /** @deprecated Use `setWorkspaceSpaceProactive`. Kept permanently. */
96
+ export const setProjectSpaceProactive = setWorkspaceSpaceProactive;
83
97
  /**
84
98
  * The caller's DM with `agentName`, created on the first call. An agent the
85
99
  * project does not declare rejects with 404 `agent_not_found`. The caller
86
100
  * shows the error, so it never reaches the host error handler.
87
101
  */
88
- export async function getOrCreateProjectDm(projectId, agentName) {
89
- return unwrap(await backendApi.post(`/projects/${projectId}/spaces/dm`, { agent_name: agentName }, { showErrors: false }));
102
+ export async function getOrCreateWorkspaceDm(projectId, agentName) {
103
+ return unwrap(await backendApi.post(`/workspaces/${projectId}/spaces/dm`, { agent_name: agentName }, { showErrors: false }));
90
104
  }
105
+ /** @deprecated Use `getOrCreateWorkspaceDm`. Kept permanently. */
106
+ export const getOrCreateProjectDm = getOrCreateWorkspaceDm;
91
107
  /** A channel's people. `#general` lists every project member. A background read. */
92
- export async function listProjectSpaceMembers(projectId, spaceId) {
93
- return unwrap(await backendApi.get(`/projects/${projectId}/spaces/${spaceId}/members`, { showErrors: false }));
108
+ export async function listWorkspaceSpaceMembers(projectId, spaceId) {
109
+ return unwrap(await backendApi.get(`/workspaces/${projectId}/spaces/${spaceId}/members`, { showErrors: false }));
94
110
  }
111
+ /** @deprecated Use `listWorkspaceSpaceMembers`. Kept permanently. */
112
+ export const listProjectSpaceMembers = listWorkspaceSpaceMembers;
95
113
  /**
96
114
  * Add people to a channel in one request; resolves to the list after the add.
97
115
  * Someone already in it is skipped. An id outside the project rejects with
@@ -100,20 +118,24 @@ export async function listProjectSpaceMembers(projectId, spaceId) {
100
118
  * rejects with 403 `forbidden`. `#general` rejects with 400 `default_channel`.
101
119
  * The caller shows the error.
102
120
  */
103
- export async function addProjectSpaceMembers(projectId, spaceId, userIds) {
104
- return unwrap(await backendApi.post(`/projects/${projectId}/spaces/${spaceId}/members`, { user_ids: userIds }, { showErrors: false }));
121
+ export async function addWorkspaceSpaceMembers(projectId, spaceId, userIds) {
122
+ return unwrap(await backendApi.post(`/workspaces/${projectId}/spaces/${spaceId}/members`, { user_ids: userIds }, { showErrors: false }));
105
123
  }
124
+ /** @deprecated Use `addWorkspaceSpaceMembers`. Kept permanently. */
125
+ export const addProjectSpaceMembers = addWorkspaceSpaceMembers;
106
126
  /**
107
127
  * Remove someone from a channel; resolves to the list after. A manager
108
128
  * removes anyone, the creator anyone but themself, a member only themself.
109
129
  * The creator rejects with 403 `creator_not_removable` unless a manager
110
130
  * removes them; another refusal is 403 `forbidden`.
111
131
  */
112
- export async function removeProjectSpaceMember(projectId, spaceId, userId) {
113
- return unwrap(await backendApi.delete(`/projects/${projectId}/spaces/${spaceId}/members/${userId}`, {
132
+ export async function removeWorkspaceSpaceMember(projectId, spaceId, userId) {
133
+ return unwrap(await backendApi.delete(`/workspaces/${projectId}/spaces/${spaceId}/members/${userId}`, {
114
134
  showErrors: false,
115
135
  }));
116
136
  }
137
+ /** @deprecated Use `removeWorkspaceSpaceMember`. Kept permanently. */
138
+ export const removeProjectSpaceMember = removeWorkspaceSpaceMember;
117
139
  /**
118
140
  * Project managers: the private channels they are not in, archived ones too.
119
141
  * A manager renames or archives one with `updateProjectSpace` and adds or
@@ -122,33 +144,41 @@ export async function removeProjectSpaceMember(projectId, spaceId, userId) {
122
144
  * `forbidden`. A background read.
123
145
  */
124
146
  export async function listPrivateChannelsNotIn(projectId) {
125
- return unwrap(await backendApi.get(`/projects/${projectId}/spaces/private`, { showErrors: false })).channels;
147
+ return unwrap(await backendApi.get(`/workspaces/${projectId}/spaces/private`, { showErrors: false })).channels;
126
148
  }
127
149
  /** The caller joins a public channel. Idempotent. `#general` rejects with 400 `default_channel`. */
128
- export async function joinProjectSpace(projectId, spaceId) {
129
- return unwrap(await backendApi.post(`/projects/${projectId}/spaces/${spaceId}/join`, undefined, {
150
+ export async function joinWorkspaceSpace(projectId, spaceId) {
151
+ return unwrap(await backendApi.post(`/workspaces/${projectId}/spaces/${spaceId}/join`, undefined, {
130
152
  showErrors: false,
131
153
  }));
132
154
  }
155
+ /** @deprecated Use `joinWorkspaceSpace`. Kept permanently. */
156
+ export const joinProjectSpace = joinWorkspaceSpace;
133
157
  /** The caller leaves a channel. Its creator rejects with 403 `creator_not_removable` (only a manager removes them). */
134
- export async function leaveProjectSpace(projectId, spaceId) {
135
- return removeProjectSpaceMember(projectId, spaceId, 'me');
158
+ export async function leaveWorkspaceSpace(projectId, spaceId) {
159
+ return removeWorkspaceSpaceMember(projectId, spaceId, 'me');
136
160
  }
161
+ /** @deprecated Use `leaveWorkspaceSpace`. Kept permanently. */
162
+ export const leaveProjectSpace = leaveWorkspaceSpace;
137
163
  /**
138
164
  * The channel's Apps: the project's Apps with a deployment made from one of
139
165
  * its threads, only those the caller may open. A background read.
140
166
  */
141
- export async function listProjectSpaceApps(projectId, spaceId) {
142
- const body = unwrap(await backendApi.get(`/projects/${projectId}/spaces/${spaceId}/apps`, { showErrors: false }));
167
+ export async function listWorkspaceSpaceApps(projectId, spaceId) {
168
+ const body = unwrap(await backendApi.get(`/workspaces/${projectId}/spaces/${spaceId}/apps`, { showErrors: false }));
143
169
  return body.apps;
144
170
  }
171
+ /** @deprecated Use `listWorkspaceSpaceApps`. Kept permanently. */
172
+ export const listProjectSpaceApps = listWorkspaceSpaceApps;
145
173
  /** The channel's links, newest first. A background read. */
146
- export async function listProjectSpaceLinks(projectId, spaceId) {
147
- const body = unwrap(await backendApi.get(`/projects/${projectId}/spaces/${spaceId}/links`, {
174
+ export async function listWorkspaceSpaceLinks(projectId, spaceId) {
175
+ const body = unwrap(await backendApi.get(`/workspaces/${projectId}/spaces/${spaceId}/links`, {
148
176
  showErrors: false,
149
177
  }));
150
178
  return body.links;
151
179
  }
180
+ /** @deprecated Use `listWorkspaceSpaceLinks`. Kept permanently. */
181
+ export const listProjectSpaceLinks = listWorkspaceSpaceLinks;
152
182
  /**
153
183
  * Add a link to a channel, unpinned, with the caller as its adder. A URL that
154
184
  * is not http(s), longer than 2,048 characters, or a title over 200 rejects
@@ -156,17 +186,21 @@ export async function listProjectSpaceLinks(projectId, spaceId) {
156
186
  * `link_limit`. The caller shows both. The
157
187
  * stored `url` is the parsed form (`new URL(url).href`).
158
188
  */
159
- export async function addProjectSpaceLink(projectId, spaceId, input) {
160
- return unwrap(await backendApi.post(`/projects/${projectId}/spaces/${spaceId}/links`, input, {
189
+ export async function addWorkspaceSpaceLink(projectId, spaceId, input) {
190
+ return unwrap(await backendApi.post(`/workspaces/${projectId}/spaces/${spaceId}/links`, input, {
161
191
  showErrors: false,
162
192
  }));
163
193
  }
194
+ /** @deprecated Use `addWorkspaceSpaceLink`. Kept permanently. */
195
+ export const addProjectSpaceLink = addWorkspaceSpaceLink;
164
196
  /** Remove a link. Only its creator or a project manager may: anyone else gets 403 `forbidden`. */
165
- export async function removeProjectSpaceLink(projectId, spaceId, linkId) {
166
- unwrap(await backendApi.delete(`/projects/${projectId}/spaces/${spaceId}/links/${linkId}`, {
197
+ export async function removeWorkspaceSpaceLink(projectId, spaceId, linkId) {
198
+ unwrap(await backendApi.delete(`/workspaces/${projectId}/spaces/${spaceId}/links/${linkId}`, {
167
199
  showErrors: false,
168
200
  }));
169
201
  }
202
+ /** @deprecated Use `removeWorkspaceSpaceLink`. Kept permanently. */
203
+ export const removeProjectSpaceLink = removeWorkspaceSpaceLink;
170
204
  /**
171
205
  * Pin or unpin a link. Agents in the channel read the pinned ones. Unpinning
172
206
  * only clears the pin: the link stays listed (`removeProjectSpaceLink` removes
@@ -174,16 +208,18 @@ export async function removeProjectSpaceLink(projectId, spaceId, linkId) {
174
208
  * added link removed it. A channel that already pins 200 links rejects pinning
175
209
  * with 409 `link_limit`.
176
210
  */
177
- export async function pinProjectSpaceLink(projectId, spaceId, linkId, pinned) {
178
- const body = unwrap(await backendApi.patch(`/projects/${projectId}/spaces/${spaceId}/links/${linkId}`, { pinned }, { showErrors: false }));
211
+ export async function pinWorkspaceSpaceLink(projectId, spaceId, linkId, pinned) {
212
+ const body = unwrap(await backendApi.patch(`/workspaces/${projectId}/spaces/${spaceId}/links/${linkId}`, { pinned }, { showErrors: false }));
179
213
  return body.link;
180
214
  }
215
+ /** @deprecated Use `pinWorkspaceSpaceLink`. Kept permanently. */
216
+ export const pinProjectSpaceLink = pinWorkspaceSpaceLink;
181
217
  /** The caller's Channels onboarding state. A background read. */
182
218
  export async function getChannelsOnboarding(projectId) {
183
- return unwrap(await backendApi.get(`/projects/${projectId}/onboarding/channels`, { showErrors: false }));
219
+ return unwrap(await backendApi.get(`/workspaces/${projectId}/onboarding/channels`, { showErrors: false }));
184
220
  }
185
221
  /** Record one onboarding mark for the caller. Idempotent. An unknown mark rejects with 400; the caller shows it. */
186
222
  export async function markChannelsOnboarding(projectId, mark) {
187
- unwrap(await backendApi.post(`/projects/${projectId}/onboarding/channels/marks`, { mark }, { showErrors: false }));
223
+ unwrap(await backendApi.post(`/workspaces/${projectId}/onboarding/channels/marks`, { mark }, { showErrors: false }));
188
224
  }
189
225
  //# sourceMappingURL=spaces.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spaces.js","sourceRoot":"","sources":["../../../../src/core/rest/projects-client/spaces.ts"],"names":[],"mappings":"AAA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AM,CACX,MAAM,UAAU,CAAC,GAAG,CAAqB,eAAe,SAAS,sBAAsB,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CAChH,CAAC;AACJ,CAAC;AAED,oHAAoH;AACpH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,SAAiB,EAAE,IAA4B;IAC1F,MAAM,CACJ,MAAM,UAAU,CAAC,IAAI,CAAU,eAAe,SAAS,4BAA4B,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,CACtH,CAAC;AACJ,CAAC"}
@@ -5,19 +5,44 @@ export interface AccountToken {
5
5
  /** Set when this token was minted project-scoped (still visible from the
6
6
  * account-wide list). */
7
7
  project_id: string | null;
8
+ /** The workspace the key is bound to: the same value as `project_id`. Absent on older APIs. */
9
+ workspace_id?: string | null;
8
10
  public_key: string;
9
11
  status: string;
10
12
  expires_at: string | null;
11
13
  last_used_at: string | null;
12
14
  created_at: string;
13
15
  revoked_at: string | null;
16
+ /** What the key may do inside its creator's role. Absent on older APIs (= `full`). */
17
+ scope?: WorkspaceKeyScopeLabel;
18
+ /** A `custom` scope: its permissions, legacy spelling. Null otherwise. */
19
+ permissions?: string[] | null;
20
+ /** A `custom` scope: its permissions, workspace spelling. Null otherwise. */
21
+ workspace_permissions?: string[] | null;
22
+ /** True when each use moves `expires_at` out again (the CLI login), so a key in use does not expire. */
23
+ expiry_renews?: boolean;
14
24
  }
25
+ /**
26
+ * What a workspace key may do inside its creator's role:
27
+ * - `full`: the creator's whole role (the default);
28
+ * - `read`: every `*.read` permission; the key makes GET requests only;
29
+ * - `custom`: exactly the listed permissions.
30
+ * The API checks the creator's CURRENT role on every request, so a key never
31
+ * exceeds it.
32
+ */
33
+ export type WorkspaceKeyScopeLabel = 'full' | 'read' | 'custom';
34
+ /** The `scopes` a mint request sends: a preset, or a list of permissions in either spelling. */
35
+ export type WorkspaceKeyScopes = 'full' | 'read' | string[];
15
36
  export interface CreateAccountTokenInput {
16
37
  name: string;
17
38
  /** Defaults to the caller's resolved account when omitted. */
18
39
  accountId?: string;
19
- /** ISO-8601. Omit for a non-expiring token. */
20
- expiresAt?: string;
40
+ /** ISO-8601. Omitted: the API's default (90 days on current APIs). `null`:
41
+ * no expiry, only where the workspace key policy allows it. */
42
+ expiresAt?: string | null;
43
+ /** A renewing expiry: each use moves `expires_at` out again. A personal key
44
+ * minted from a browser session only (the CLI login). */
45
+ renews?: boolean;
21
46
  /** Scope the minted token to a single project (still a "kortix_pat_..." token,
22
47
  * but the auth middleware rejects it outside this project). */
23
48
  projectId?: string;
@@ -32,6 +57,16 @@ export interface CreatedAccountToken {
32
57
  status: string;
33
58
  expires_at: string | null;
34
59
  created_at: string;
60
+ /** The workspace the key is bound to (= `project_id`). Absent on older APIs. */
61
+ workspace_id?: string | null;
62
+ /** What the key may do inside its creator's role. Absent on older APIs (= `full`). */
63
+ scope?: WorkspaceKeyScopeLabel;
64
+ /** A `custom` scope: its permissions, legacy spelling. */
65
+ permissions?: string[] | null;
66
+ /** A `custom` scope: its permissions, workspace spelling. */
67
+ workspace_permissions?: string[] | null;
68
+ /** True for a renewing expiry. */
69
+ expiry_renews?: boolean;
35
70
  }
36
71
  export interface ListAccountTokensOptions {
37
72
  /**
@@ -45,22 +80,45 @@ export interface ListAccountTokensOptions {
45
80
  */
46
81
  mine?: boolean;
47
82
  }
48
- /** List CLI PATs for an account (defaults to the caller's resolved account). */
83
+ /** List CLI PATs for an account (defaults to the caller's resolved account).
84
+ *
85
+ * @deprecated Use `listWorkspaceTokens(workspaceId, options)`. Kept permanently.
86
+ */
49
87
  export declare function listAccountTokens(accountId?: string, options?: ListAccountTokensOptions): Promise<AccountToken[]>;
50
88
  /** Approve a CLI device login (`kortix login` on a machine with no browser
51
89
  * callback): the signed-in browser confirms the code the terminal shows. The
52
90
  * API answers 404 for an expired or used code and 403 for a non-browser
53
- * caller; both reject with the API's sentence. */
54
- export declare function approveCliDevice(userCode: string): Promise<{
91
+ * caller; both reject with the API's sentence. `accountId` names the
92
+ * workspace's account the CLI key belongs to; omitted, the API picks the
93
+ * person's default workspace. A person with no workspace gets the 409
94
+ * `no_workspace` error (`isNoWorkspaceError`). */
95
+ export declare function approveCliDevice(userCode: string, options?: {
96
+ accountId?: string;
97
+ }): Promise<{
55
98
  ok: boolean;
56
99
  }>;
57
100
  /** Mint a new account-scoped CLI PAT. The `secret_key` is returned once — the
58
- * caller must persist it immediately; subsequent reads only ever see `public_key`. */
101
+ * caller must persist it immediately; subsequent reads only ever see `public_key`.
102
+ *
103
+ * A key minted here without `projectId` is a PERSONAL key: it acts as the
104
+ * person in every workspace of theirs (listed by `listPersonalTokens`). A key
105
+ * for one workspace only is `createWorkspaceToken(workspaceId, input)`.
106
+ *
107
+ * Use it for personal keys only: the CLI browser login (`renews: true`) and
108
+ * clients released before workspace keys. The API marks the route deprecated
109
+ * for any other use; every new key a person mints for automation is a
110
+ * workspace key, `createWorkspaceToken(workspaceId, input)`. Not tagged
111
+ * `@deprecated`: a personal key has a different reach than a workspace key,
112
+ * so the two functions are not equivalents.
113
+ */
59
114
  export declare function createAccountToken(input: CreateAccountTokenInput): Promise<CreatedAccountToken>;
60
115
  /** Revoke an account-scoped CLI PAT. With `{ deleteRevoked: true }`, DELETE
61
116
  * becomes "remove this dead row": the API only honors it for a personal key
62
117
  * that is already revoked (the caller's own), and answers 404 otherwise —
63
- * the settings page's Delete action for a revoked key rides on it. */
118
+ * the settings page's Delete action for a revoked key rides on it.
119
+ *
120
+ * @deprecated Use `revokeWorkspaceToken(workspaceId, tokenId, options)`. Kept permanently.
121
+ */
64
122
  export declare function revokeAccountToken(tokenId: string, accountId?: string, options?: {
65
123
  deleteRevoked?: boolean;
66
124
  }): Promise<{
@@ -118,6 +176,7 @@ export declare function listSignedInDevices(): Promise<SignedInDevice[]>;
118
176
  export declare function signOutDevice(sessionId: string): Promise<{
119
177
  ok: true;
120
178
  }>;
179
+ /** @deprecated Use `WorkspaceCliToken`. Kept permanently. */
121
180
  export interface ProjectCliToken {
122
181
  token_id: string;
123
182
  name: string;
@@ -128,6 +187,9 @@ export interface ProjectCliToken {
128
187
  created_at: string;
129
188
  revoked_at: string | null;
130
189
  }
190
+ /** The workspace name of {@link ProjectCliToken}: the same type. */
191
+ export type WorkspaceCliToken = ProjectCliToken;
192
+ /** @deprecated Use `WorkspaceCliTokenListResponse`. Kept permanently. */
131
193
  export interface ProjectCliTokenListResponse {
132
194
  items: ProjectCliToken[];
133
195
  /** Session-bound tokens the list hides — the runtime mints one per session
@@ -136,7 +198,13 @@ export interface ProjectCliTokenListResponse {
136
198
  * provenance visible instead of a silent hole in the list. */
137
199
  session_tokens: number;
138
200
  }
139
- /** The newly minted project-scoped token — `secret_key` is returned once. */
201
+ /** The workspace name of {@link ProjectCliTokenListResponse}: the same type. */
202
+ export type WorkspaceCliTokenListResponse = ProjectCliTokenListResponse;
203
+ /**
204
+ * The newly minted project-scoped token — `secret_key` is returned once.
205
+ *
206
+ * @deprecated Use `CreatedWorkspaceCliToken`. Kept permanently.
207
+ */
140
208
  export interface CreatedProjectCliToken {
141
209
  token_id: string;
142
210
  name: string;
@@ -147,12 +215,20 @@ export interface CreatedProjectCliToken {
147
215
  expires_at: string | null;
148
216
  created_at: string;
149
217
  }
150
- export declare function listProjectCliTokens(projectId: string): Promise<ProjectCliTokenListResponse>;
218
+ /** The workspace name of {@link CreatedProjectCliToken}: the same type. */
219
+ export type CreatedWorkspaceCliToken = CreatedProjectCliToken;
220
+ export declare function listWorkspaceCliTokens(projectId: string): Promise<ProjectCliTokenListResponse>;
221
+ /** @deprecated Use `listWorkspaceCliTokens`. Kept permanently. */
222
+ export declare const listProjectCliTokens: typeof listWorkspaceCliTokens;
151
223
  /** Mint a project-scoped CLI PAT. Defaults `name` to "cli · <project name>" server-side. */
152
- export declare function createProjectCliToken(projectId: string, input?: {
224
+ export declare function createWorkspaceCliToken(projectId: string, input?: {
153
225
  name?: string;
154
226
  }): Promise<CreatedProjectCliToken>;
155
- export declare function revokeProjectCliToken(projectId: string, tokenId: string): Promise<{
227
+ /** @deprecated Use `createWorkspaceCliToken`. Kept permanently. */
228
+ export declare const createProjectCliToken: typeof createWorkspaceCliToken;
229
+ export declare function revokeWorkspaceCliToken(projectId: string, tokenId: string): Promise<{
156
230
  ok: boolean;
157
231
  }>;
232
+ /** @deprecated Use `revokeWorkspaceCliToken`. Kept permanently. */
233
+ export declare const revokeProjectCliToken: typeof revokeWorkspaceCliToken;
158
234
  //# sourceMappingURL=tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/core/rest/projects-client/tokens.ts"],"names":[],"mappings":"AAaA,+EAA+E;AAC/E,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb;8BAC0B;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;oEACgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iFAAiF;AACjF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MA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;AACnE,eAAO,MAAM,qBAAqB,gCAA0B,CAAC;AAE7D,wBAAsB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;QAE9C,OAAO;GAIxC;AAED,mEAAmE;AACnE,eAAO,MAAM,qBAAqB,gCAA0B,CAAC"}
@@ -9,7 +9,10 @@
9
9
  // time and injected into the sandbox as `KORTIX_TOKEN`.
10
10
  import { backendApi } from '../../http/api-client.js';
11
11
  import { unwrap } from './shared.js';
12
- /** List CLI PATs for an account (defaults to the caller's resolved account). */
12
+ /** List CLI PATs for an account (defaults to the caller's resolved account).
13
+ *
14
+ * @deprecated Use `listWorkspaceTokens(workspaceId, options)`. Kept permanently.
15
+ */
13
16
  export async function listAccountTokens(accountId, options) {
14
17
  const params = new URLSearchParams();
15
18
  if (accountId)
@@ -22,25 +25,48 @@ export async function listAccountTokens(accountId, options) {
22
25
  /** Approve a CLI device login (`kortix login` on a machine with no browser
23
26
  * callback): the signed-in browser confirms the code the terminal shows. The
24
27
  * API answers 404 for an expired or used code and 403 for a non-browser
25
- * caller; both reject with the API's sentence. */
26
- export async function approveCliDevice(userCode) {
27
- return unwrap(await backendApi.post('/cli/device/decide', { user_code: userCode, approve: true }));
28
+ * caller; both reject with the API's sentence. `accountId` names the
29
+ * workspace's account the CLI key belongs to; omitted, the API picks the
30
+ * person's default workspace. A person with no workspace gets the 409
31
+ * `no_workspace` error (`isNoWorkspaceError`). */
32
+ export async function approveCliDevice(userCode, options) {
33
+ return unwrap(await backendApi.post('/cli/device/decide', {
34
+ user_code: userCode,
35
+ approve: true,
36
+ ...(options?.accountId ? { account_id: options.accountId } : {}),
37
+ }));
28
38
  }
29
39
  /** Mint a new account-scoped CLI PAT. The `secret_key` is returned once — the
30
- * caller must persist it immediately; subsequent reads only ever see `public_key`. */
40
+ * caller must persist it immediately; subsequent reads only ever see `public_key`.
41
+ *
42
+ * A key minted here without `projectId` is a PERSONAL key: it acts as the
43
+ * person in every workspace of theirs (listed by `listPersonalTokens`). A key
44
+ * for one workspace only is `createWorkspaceToken(workspaceId, input)`.
45
+ *
46
+ * Use it for personal keys only: the CLI browser login (`renews: true`) and
47
+ * clients released before workspace keys. The API marks the route deprecated
48
+ * for any other use; every new key a person mints for automation is a
49
+ * workspace key, `createWorkspaceToken(workspaceId, input)`. Not tagged
50
+ * `@deprecated`: a personal key has a different reach than a workspace key,
51
+ * so the two functions are not equivalents.
52
+ */
31
53
  export async function createAccountToken(input) {
32
- const { accountId, expiresAt, projectId, name } = input;
54
+ const { accountId, expiresAt, projectId, name, renews } = input;
33
55
  return unwrap(await backendApi.post('/accounts/tokens', {
34
56
  name,
35
57
  ...(accountId ? { account_id: accountId } : {}),
36
- ...(expiresAt ? { expires_at: expiresAt } : {}),
58
+ ...(expiresAt !== undefined ? { expires_at: expiresAt } : {}),
37
59
  ...(projectId ? { project_id: projectId } : {}),
60
+ ...(renews ? { renews: true } : {}),
38
61
  }));
39
62
  }
40
63
  /** Revoke an account-scoped CLI PAT. With `{ deleteRevoked: true }`, DELETE
41
64
  * becomes "remove this dead row": the API only honors it for a personal key
42
65
  * that is already revoked (the caller's own), and answers 404 otherwise —
43
- * the settings page's Delete action for a revoked key rides on it. */
66
+ * the settings page's Delete action for a revoked key rides on it.
67
+ *
68
+ * @deprecated Use `revokeWorkspaceToken(workspaceId, tokenId, options)`. Kept permanently.
69
+ */
44
70
  export async function revokeAccountToken(tokenId, accountId, options) {
45
71
  const params = new URLSearchParams();
46
72
  if (accountId)
@@ -63,21 +89,27 @@ export async function revokeOAuthGrant(clientId) {
63
89
  }
64
90
  /** The caller's signed-in devices, most recently active first. */
65
91
  export async function listSignedInDevices() {
66
- return unwrap(await backendApi.get('/accounts/me/devices'))
92
+ return unwrap(await backendApi.get('/me/devices'))
67
93
  .devices;
68
94
  }
69
95
  /** Sign one other device out. The current device signs out with `auth.signOut()`. */
70
96
  export async function signOutDevice(sessionId) {
71
- return unwrap(await backendApi.delete(`/accounts/me/devices/${encodeURIComponent(sessionId)}`));
97
+ return unwrap(await backendApi.delete(`/me/devices/${encodeURIComponent(sessionId)}`));
72
98
  }
73
- export async function listProjectCliTokens(projectId) {
74
- return unwrap(await backendApi.get(`/projects/${projectId}/cli-token`));
99
+ export async function listWorkspaceCliTokens(projectId) {
100
+ return unwrap(await backendApi.get(`/workspaces/${projectId}/cli-token`));
75
101
  }
102
+ /** @deprecated Use `listWorkspaceCliTokens`. Kept permanently. */
103
+ export const listProjectCliTokens = listWorkspaceCliTokens;
76
104
  /** Mint a project-scoped CLI PAT. Defaults `name` to "cli · <project name>" server-side. */
77
- export async function createProjectCliToken(projectId, input) {
78
- return unwrap(await backendApi.post(`/projects/${projectId}/cli-token`, input ?? {}));
105
+ export async function createWorkspaceCliToken(projectId, input) {
106
+ return unwrap(await backendApi.post(`/workspaces/${projectId}/cli-token`, input ?? {}));
79
107
  }
80
- export async function revokeProjectCliToken(projectId, tokenId) {
81
- return unwrap(await backendApi.delete(`/projects/${projectId}/cli-token/${tokenId}`));
108
+ /** @deprecated Use `createWorkspaceCliToken`. Kept permanently. */
109
+ export const createProjectCliToken = createWorkspaceCliToken;
110
+ export async function revokeWorkspaceCliToken(projectId, tokenId) {
111
+ return unwrap(await backendApi.delete(`/workspaces/${projectId}/cli-token/${tokenId}`));
82
112
  }
113
+ /** @deprecated Use `revokeWorkspaceCliToken`. Kept permanently. */
114
+ export const revokeProjectCliToken = revokeWorkspaceCliToken;
83
115
  //# sourceMappingURL=tokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../src/core/rest/projects-client/tokens.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,oEAAoE;AACpE,0EAA0E;AAC1E,oEAAoE;AACpE,yEAAyE;AACzE,4EAA4E;AAC5E,mEAAmE;AACnE,yEAAyE;AACzE,wDAAwD;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,UAA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