@q9labsai/chalk-client 5.0.1 → 5.2.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 (236) hide show
  1. package/CHANGELOG.md +159 -0
  2. package/README.md +39 -0
  3. package/dist/access/base64-url.d.ts +0 -1
  4. package/dist/access/grant.d.ts +0 -1
  5. package/dist/access/manager.d.ts +0 -1
  6. package/dist/chat-files/http-transport.d.ts +0 -1
  7. package/dist/chat-files/index.d.ts +0 -1
  8. package/dist/chat-files/types.d.ts +3 -1
  9. package/dist/{chunk-IPAN4LUZ.js → chunk-BCO3AZUB.js} +1463 -583
  10. package/dist/{chunk-AVXJ4HQU.js → chunk-D2GXPX2P.js} +298 -47
  11. package/dist/{chunk-CMVO7USN.js → chunk-DHGAKJXP.js} +1 -1
  12. package/dist/{chunk-O2NOZKJP.js → chunk-DWKTGBHR.js} +20 -8
  13. package/dist/{chunk-2HJIJVE2.js → chunk-HO4745TX.js} +591 -5
  14. package/dist/client.d.ts +277 -1
  15. package/dist/collaboration/index.d.ts +0 -1
  16. package/dist/collaboration/types.d.ts +0 -1
  17. package/dist/collaboration/wire.d.ts +0 -1
  18. package/dist/connection/dependencies.d.ts +8 -3
  19. package/dist/connection/diagnostics.d.ts +3 -3
  20. package/dist/connection/index.d.ts +1 -1
  21. package/dist/connection/lifecycle.d.ts +3 -3
  22. package/dist/connection/media-devices.d.ts +0 -1
  23. package/dist/connection/production.d.ts +0 -1
  24. package/dist/connection/types.d.ts +4 -2
  25. package/dist/effect.d.ts +0 -1
  26. package/dist/effect.js +146 -4
  27. package/dist/foreground-deadline.d.ts +0 -1
  28. package/dist/generated/http-api.d.ts +273 -1
  29. package/dist/generated/schemas.d.ts +732 -7
  30. package/dist/generated/sync.d.ts +74 -4
  31. package/dist/generated/whiteboard-v1.d.ts +114 -9
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +21 -15
  34. package/dist/media/camera-uplink.d.ts +0 -1
  35. package/dist/media/capture-error.d.ts +0 -1
  36. package/dist/media/client.d.ts +3 -2
  37. package/dist/media/cloudflare-sfu.d.ts +0 -1
  38. package/dist/media/index.d.ts +0 -1
  39. package/dist/media/index.js +1 -1
  40. package/dist/media/observers.d.ts +0 -1
  41. package/dist/media/plane.d.ts +0 -1
  42. package/dist/media/remote-track-response.d.ts +0 -1
  43. package/dist/media/target.d.ts +0 -1
  44. package/dist/media/tracks.d.ts +0 -1
  45. package/dist/media/transport.d.ts +0 -1
  46. package/dist/media/types.d.ts +0 -1
  47. package/dist/public-invites/client.d.ts +0 -1
  48. package/dist/public-invites/index.d.ts +0 -1
  49. package/dist/public-invites/index.js +2 -2
  50. package/dist/public-invites/types.d.ts +0 -1
  51. package/dist/server/access-refresh.d.ts +0 -1
  52. package/dist/server/{chunk-C4XITY5U.js → chunk-XQOQTCUL.js} +22 -0
  53. package/dist/server/client.d.ts +0 -1
  54. package/dist/server/errors.d.cts +8 -1
  55. package/dist/server/errors.d.ts +8 -2
  56. package/dist/server/index.cjs +31 -7
  57. package/dist/server/index.d.cts +1 -1
  58. package/dist/server/index.d.ts +1 -2
  59. package/dist/server/index.js +10 -7
  60. package/dist/server/server-only.d.ts +0 -1
  61. package/dist/server/server-only.js +1 -1
  62. package/dist/server/transport.d.ts +0 -1
  63. package/dist/server/types.d.ts +0 -1
  64. package/dist/space-client/chat-controller-helpers.d.ts +0 -1
  65. package/dist/space-client/chat-controller.d.ts +0 -1
  66. package/dist/space-client/controller-effects.d.ts +0 -1
  67. package/dist/space-client/core.d.ts +0 -1
  68. package/dist/space-client/effect.d.ts +0 -1
  69. package/dist/space-client/errors.d.ts +4 -2
  70. package/dist/space-client/index.d.ts +1 -2
  71. package/dist/space-client/media-controller.d.ts +3 -2
  72. package/dist/space-client/media-device-selection.d.ts +0 -1
  73. package/dist/space-client/offline-actions-storage.d.ts +0 -1
  74. package/dist/space-client/offline-actions.d.ts +0 -1
  75. package/dist/space-client/participants-controller.d.ts +0 -1
  76. package/dist/space-client/promise-facade.d.ts +0 -1
  77. package/dist/space-client/reactions-controller.d.ts +0 -1
  78. package/dist/space-client/recording-controller.d.ts +0 -1
  79. package/dist/space-client/reload-rejoin.d.ts +1 -2
  80. package/dist/space-client/space-client.d.ts +0 -1
  81. package/dist/space-client/store.d.ts +0 -1
  82. package/dist/space-client/types.d.ts +15 -3
  83. package/dist/space-client/whiteboard-controller.d.ts +0 -1
  84. package/dist/sync/browser.d.ts +0 -1
  85. package/dist/sync/canonical.d.ts +0 -1
  86. package/dist/sync/connect-diagnostics.d.ts +10 -0
  87. package/dist/sync/dial-deadline.d.ts +3 -0
  88. package/dist/sync/errors.d.ts +0 -1
  89. package/dist/sync/index.d.ts +0 -1
  90. package/dist/sync/index.js +1 -1
  91. package/dist/sync/react-native.d.ts +0 -1
  92. package/dist/sync/types.d.ts +1 -1
  93. package/dist/sync/v1-client.d.ts +4 -2
  94. package/dist/sync/v1-codec.d.ts +0 -1
  95. package/dist/sync/v1-collaboration-state.d.ts +1 -1
  96. package/dist/sync/v1-command-scheduler.d.ts +0 -1
  97. package/dist/sync/v1-create.d.ts +0 -1
  98. package/dist/sync/v1-deferred.d.ts +0 -1
  99. package/dist/sync/v1-error.d.ts +0 -1
  100. package/dist/sync/v1-frame-signature.d.ts +0 -1
  101. package/dist/sync/v1-health.d.ts +15 -0
  102. package/dist/sync/v1-live-target-coordinator.d.ts +0 -1
  103. package/dist/sync/v1-persistence.d.ts +0 -1
  104. package/dist/sync/v1-platform-persistence.d.ts +0 -1
  105. package/dist/sync/v1-reducer.d.ts +3 -1
  106. package/dist/sync/v1-types.d.ts +14 -1
  107. package/dist/webhooks/errors.d.ts +0 -1
  108. package/dist/webhooks/generated/event-v1.d.ts +0 -1
  109. package/dist/webhooks/generated/fixtures-v1.d.ts +0 -1
  110. package/dist/webhooks/index.d.ts +0 -1
  111. package/dist/webhooks/processor.d.ts +0 -1
  112. package/dist/webhooks/server-only.d.ts +0 -1
  113. package/dist/webhooks/test.d.ts +0 -1
  114. package/dist/webhooks/types.d.ts +0 -1
  115. package/dist/webhooks/validate.d.ts +0 -1
  116. package/dist/webhooks/verify.d.ts +0 -1
  117. package/dist/whiteboard/file-download-transport.d.ts +0 -1
  118. package/dist/whiteboard/index.d.ts +2 -1
  119. package/dist/whiteboard/types.d.ts +54 -5
  120. package/dist/whiteboard/v1-client.d.ts +5 -2
  121. package/dist/whiteboard/v1-codec.d.ts +5 -2
  122. package/dist/whiteboard/v1-create.d.ts +0 -1
  123. package/dist/whiteboard/v1-multipart.d.ts +1 -2
  124. package/dist/whiteboard/v1-persistence.d.ts +0 -1
  125. package/dist/whiteboard/view-bounds.d.ts +5 -0
  126. package/dist/whiteboard/view-versions.d.ts +9 -0
  127. package/package.json +4 -2
  128. package/dist/access/base64-url.d.ts.map +0 -1
  129. package/dist/access/grant.d.ts.map +0 -1
  130. package/dist/access/grant.test.helpers.d.ts +0 -10
  131. package/dist/access/grant.test.helpers.d.ts.map +0 -1
  132. package/dist/access/manager.d.ts.map +0 -1
  133. package/dist/chat-files/http-transport.d.ts.map +0 -1
  134. package/dist/chat-files/index.d.ts.map +0 -1
  135. package/dist/chat-files/types.d.ts.map +0 -1
  136. package/dist/client.d.ts.map +0 -1
  137. package/dist/collaboration/index.d.ts.map +0 -1
  138. package/dist/collaboration/types.d.ts.map +0 -1
  139. package/dist/collaboration/wire.d.ts.map +0 -1
  140. package/dist/connection/dependencies.d.ts.map +0 -1
  141. package/dist/connection/diagnostics.d.ts.map +0 -1
  142. package/dist/connection/index.d.ts.map +0 -1
  143. package/dist/connection/lifecycle.d.ts.map +0 -1
  144. package/dist/connection/media-devices.d.ts.map +0 -1
  145. package/dist/connection/production.d.ts.map +0 -1
  146. package/dist/connection/types.d.ts.map +0 -1
  147. package/dist/effect.d.ts.map +0 -1
  148. package/dist/foreground-deadline.d.ts.map +0 -1
  149. package/dist/generated/http-api.d.ts.map +0 -1
  150. package/dist/generated/schemas.d.ts.map +0 -1
  151. package/dist/generated/sync.d.ts.map +0 -1
  152. package/dist/generated/whiteboard-v1.d.ts.map +0 -1
  153. package/dist/index.d.ts.map +0 -1
  154. package/dist/media/camera-uplink.d.ts.map +0 -1
  155. package/dist/media/capture-error.d.ts.map +0 -1
  156. package/dist/media/client.d.ts.map +0 -1
  157. package/dist/media/cloudflare-sfu.d.ts.map +0 -1
  158. package/dist/media/index.d.ts.map +0 -1
  159. package/dist/media/observers.d.ts.map +0 -1
  160. package/dist/media/plane.d.ts.map +0 -1
  161. package/dist/media/remote-track-response.d.ts.map +0 -1
  162. package/dist/media/target.d.ts.map +0 -1
  163. package/dist/media/tracks.d.ts.map +0 -1
  164. package/dist/media/transport.d.ts.map +0 -1
  165. package/dist/media/types.d.ts.map +0 -1
  166. package/dist/public-invites/client.d.ts.map +0 -1
  167. package/dist/public-invites/index.d.ts.map +0 -1
  168. package/dist/public-invites/types.d.ts.map +0 -1
  169. package/dist/server/access-refresh.d.ts.map +0 -1
  170. package/dist/server/client.d.ts.map +0 -1
  171. package/dist/server/errors.d.ts.map +0 -1
  172. package/dist/server/index.d.ts.map +0 -1
  173. package/dist/server/server-only.d.ts.map +0 -1
  174. package/dist/server/transport.d.ts.map +0 -1
  175. package/dist/server/types.d.ts.map +0 -1
  176. package/dist/space-client/chat-controller-helpers.d.ts.map +0 -1
  177. package/dist/space-client/chat-controller.d.ts.map +0 -1
  178. package/dist/space-client/controller-effects.d.ts.map +0 -1
  179. package/dist/space-client/core.d.ts.map +0 -1
  180. package/dist/space-client/core.test.helpers.d.ts +0 -15
  181. package/dist/space-client/core.test.helpers.d.ts.map +0 -1
  182. package/dist/space-client/effect.d.ts.map +0 -1
  183. package/dist/space-client/errors.d.ts.map +0 -1
  184. package/dist/space-client/index.d.ts.map +0 -1
  185. package/dist/space-client/media-controller.d.ts.map +0 -1
  186. package/dist/space-client/media-device-selection.d.ts.map +0 -1
  187. package/dist/space-client/offline-actions-storage.d.ts.map +0 -1
  188. package/dist/space-client/offline-actions.d.ts.map +0 -1
  189. package/dist/space-client/participants-controller.d.ts.map +0 -1
  190. package/dist/space-client/promise-facade.d.ts.map +0 -1
  191. package/dist/space-client/reactions-controller.d.ts.map +0 -1
  192. package/dist/space-client/recording-controller.d.ts.map +0 -1
  193. package/dist/space-client/reload-rejoin.d.ts.map +0 -1
  194. package/dist/space-client/space-client.d.ts.map +0 -1
  195. package/dist/space-client/store.d.ts.map +0 -1
  196. package/dist/space-client/terminal.test.helpers.d.ts +0 -136
  197. package/dist/space-client/terminal.test.helpers.d.ts.map +0 -1
  198. package/dist/space-client/types.d.ts.map +0 -1
  199. package/dist/space-client/whiteboard-controller.d.ts.map +0 -1
  200. package/dist/sync/browser.d.ts.map +0 -1
  201. package/dist/sync/canonical.d.ts.map +0 -1
  202. package/dist/sync/errors.d.ts.map +0 -1
  203. package/dist/sync/index.d.ts.map +0 -1
  204. package/dist/sync/react-native.d.ts.map +0 -1
  205. package/dist/sync/types.d.ts.map +0 -1
  206. package/dist/sync/v1-client.d.ts.map +0 -1
  207. package/dist/sync/v1-codec.d.ts.map +0 -1
  208. package/dist/sync/v1-collaboration-state.d.ts.map +0 -1
  209. package/dist/sync/v1-command-scheduler.d.ts.map +0 -1
  210. package/dist/sync/v1-create.d.ts.map +0 -1
  211. package/dist/sync/v1-deferred.d.ts.map +0 -1
  212. package/dist/sync/v1-error.d.ts.map +0 -1
  213. package/dist/sync/v1-frame-signature.d.ts.map +0 -1
  214. package/dist/sync/v1-live-target-coordinator.d.ts.map +0 -1
  215. package/dist/sync/v1-persistence.d.ts.map +0 -1
  216. package/dist/sync/v1-platform-persistence.d.ts.map +0 -1
  217. package/dist/sync/v1-reducer.d.ts.map +0 -1
  218. package/dist/sync/v1-types.d.ts.map +0 -1
  219. package/dist/webhooks/errors.d.ts.map +0 -1
  220. package/dist/webhooks/generated/event-v1.d.ts.map +0 -1
  221. package/dist/webhooks/generated/fixtures-v1.d.ts.map +0 -1
  222. package/dist/webhooks/index.d.ts.map +0 -1
  223. package/dist/webhooks/processor.d.ts.map +0 -1
  224. package/dist/webhooks/server-only.d.ts.map +0 -1
  225. package/dist/webhooks/test.d.ts.map +0 -1
  226. package/dist/webhooks/types.d.ts.map +0 -1
  227. package/dist/webhooks/validate.d.ts.map +0 -1
  228. package/dist/webhooks/verify.d.ts.map +0 -1
  229. package/dist/whiteboard/file-download-transport.d.ts.map +0 -1
  230. package/dist/whiteboard/index.d.ts.map +0 -1
  231. package/dist/whiteboard/types.d.ts.map +0 -1
  232. package/dist/whiteboard/v1-client.d.ts.map +0 -1
  233. package/dist/whiteboard/v1-codec.d.ts.map +0 -1
  234. package/dist/whiteboard/v1-create.d.ts.map +0 -1
  235. package/dist/whiteboard/v1-multipart.d.ts.map +0 -1
  236. package/dist/whiteboard/v1-persistence.d.ts.map +0 -1
package/dist/client.d.ts CHANGED
@@ -745,6 +745,16 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
745
745
  readonly message: import("effect/Schema").String;
746
746
  }>;
747
747
  }>, never, never>>, never, never>, never, never>;
748
+ readonly getProblemReportAvailability: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getProblemReportAvailability", "GET", "/v1/tenants/:tenant_id/problem-reports/availability", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
749
+ readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
750
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
751
+ readonly available: import("effect/Schema").Boolean;
752
+ }>>, import("effect/Schema").toCodecJson<import("effect/Schema").decodeTo<typeof import("./effect").TenantInvalidIdError, import("effect/Schema").Struct<{
753
+ readonly error: import("effect/Schema").Struct<{
754
+ readonly code: import("effect/Schema").Literal<"tenant.invalid_id">;
755
+ readonly message: import("effect/Schema").String;
756
+ }>;
757
+ }>, never, never>>, never, never>, never, never>;
748
758
  readonly getWebhookDelivery: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"getWebhookDelivery", "GET", "/v1/tenants/:tenant_id/webhook-endpoints/:endpoint_id/deliveries/:delivery_id", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
749
759
  readonly delivery_id: import("effect/Schema").brand<import("effect/Schema").String, "UUID">;
750
760
  readonly endpoint_id: import("effect/Schema").brand<import("effect/Schema").String, "UUID">;
@@ -1091,11 +1101,81 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
1091
1101
  readonly code: import("effect/Schema").Literal<"episode.invalid_id">;
1092
1102
  readonly message: import("effect/Schema").String;
1093
1103
  }>;
1104
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenExpiredError, import("effect/Schema").Struct<{
1105
+ readonly error: import("effect/Schema").Struct<{
1106
+ readonly code: import("effect/Schema").Literal<"media_token.expired">;
1107
+ readonly message: import("effect/Schema").String;
1108
+ }>;
1109
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenInvalidAudienceError, import("effect/Schema").Struct<{
1110
+ readonly error: import("effect/Schema").Struct<{
1111
+ readonly code: import("effect/Schema").Literal<"media_token.invalid_audience">;
1112
+ readonly message: import("effect/Schema").String;
1113
+ }>;
1114
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenInvalidHeaderError, import("effect/Schema").Struct<{
1115
+ readonly error: import("effect/Schema").Struct<{
1116
+ readonly code: import("effect/Schema").Literal<"media_token.invalid_header">;
1117
+ readonly message: import("effect/Schema").String;
1118
+ }>;
1119
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenInvalidIssuerError, import("effect/Schema").Struct<{
1120
+ readonly error: import("effect/Schema").Struct<{
1121
+ readonly code: import("effect/Schema").Literal<"media_token.invalid_issuer">;
1122
+ readonly message: import("effect/Schema").String;
1123
+ }>;
1124
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenInvalidSignatureError, import("effect/Schema").Struct<{
1125
+ readonly error: import("effect/Schema").Struct<{
1126
+ readonly code: import("effect/Schema").Literal<"media_token.invalid_signature">;
1127
+ readonly message: import("effect/Schema").String;
1128
+ }>;
1129
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenInvalidSubjectError, import("effect/Schema").Struct<{
1130
+ readonly error: import("effect/Schema").Struct<{
1131
+ readonly code: import("effect/Schema").Literal<"media_token.invalid_subject">;
1132
+ readonly message: import("effect/Schema").String;
1133
+ }>;
1134
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenInvalidTimeClaimsError, import("effect/Schema").Struct<{
1135
+ readonly error: import("effect/Schema").Struct<{
1136
+ readonly code: import("effect/Schema").Literal<"media_token.invalid_time_claims">;
1137
+ readonly message: import("effect/Schema").String;
1138
+ }>;
1139
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenLifetimeExceededError, import("effect/Schema").Struct<{
1140
+ readonly error: import("effect/Schema").Struct<{
1141
+ readonly code: import("effect/Schema").Literal<"media_token.lifetime_exceeded">;
1142
+ readonly message: import("effect/Schema").String;
1143
+ }>;
1144
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenMalformedError, import("effect/Schema").Struct<{
1145
+ readonly error: import("effect/Schema").Struct<{
1146
+ readonly code: import("effect/Schema").Literal<"media_token.malformed">;
1147
+ readonly message: import("effect/Schema").String;
1148
+ }>;
1149
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenNotYetValidError, import("effect/Schema").Struct<{
1150
+ readonly error: import("effect/Schema").Struct<{
1151
+ readonly code: import("effect/Schema").Literal<"media_token.not_yet_valid">;
1152
+ readonly message: import("effect/Schema").String;
1153
+ }>;
1154
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenRequiredError, import("effect/Schema").Struct<{
1155
+ readonly error: import("effect/Schema").Struct<{
1156
+ readonly code: import("effect/Schema").Literal<"media_token.required">;
1157
+ readonly message: import("effect/Schema").String;
1158
+ }>;
1159
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenSubjectMismatchError, import("effect/Schema").Struct<{
1160
+ readonly error: import("effect/Schema").Struct<{
1161
+ readonly code: import("effect/Schema").Literal<"media_token.subject_mismatch">;
1162
+ readonly message: import("effect/Schema").String;
1163
+ }>;
1164
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaTokenUnknownKeyError, import("effect/Schema").Struct<{
1165
+ readonly error: import("effect/Schema").Struct<{
1166
+ readonly code: import("effect/Schema").Literal<"media_token.unknown_key">;
1167
+ readonly message: import("effect/Schema").String;
1168
+ }>;
1094
1169
  }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").MediaUnavailableError, import("effect/Schema").Struct<{
1095
1170
  readonly error: import("effect/Schema").Struct<{
1096
1171
  readonly code: import("effect/Schema").Literal<"media.unavailable">;
1097
1172
  readonly message: import("effect/Schema").String;
1098
1173
  }>;
1174
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ParticipantConnectionSupersededError, import("effect/Schema").Struct<{
1175
+ readonly error: import("effect/Schema").Struct<{
1176
+ readonly code: import("effect/Schema").Literal<"participant.connection_superseded">;
1177
+ readonly message: import("effect/Schema").String;
1178
+ }>;
1099
1179
  }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ParticipantGenerationMismatchError, import("effect/Schema").Struct<{
1100
1180
  readonly error: import("effect/Schema").Struct<{
1101
1181
  readonly code: import("effect/Schema").Literal<"participant.generation_mismatch">;
@@ -1967,6 +2047,64 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
1967
2047
  readonly message: import("effect/Schema").String;
1968
2048
  }>;
1969
2049
  }>, never, never>>, never, never>, never, never>;
2050
+ readonly sendProblemReport: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"sendProblemReport", "POST", "/v1/tenants/:tenant_id/problem-reports", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2051
+ readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
2052
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2053
+ readonly description: import("effect/Schema").String;
2054
+ readonly diagnostics: import("effect/Schema").optional<import("effect/Schema").String>;
2055
+ }>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2056
+ readonly sent: import("effect/Schema").Boolean;
2057
+ }>>, import("effect/Schema").toCodecJson<import("effect/Schema").decodeTo<typeof import("./effect").AccessForbiddenError, import("effect/Schema").Struct<{
2058
+ readonly error: import("effect/Schema").Struct<{
2059
+ readonly code: import("effect/Schema").Literal<"access.forbidden">;
2060
+ readonly message: import("effect/Schema").String;
2061
+ }>;
2062
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").AccessUnauthenticatedError, import("effect/Schema").Struct<{
2063
+ readonly error: import("effect/Schema").Struct<{
2064
+ readonly code: import("effect/Schema").Literal<"access.unauthenticated">;
2065
+ readonly message: import("effect/Schema").String;
2066
+ }>;
2067
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ReportsDeliveryFailedError, import("effect/Schema").Struct<{
2068
+ readonly error: import("effect/Schema").Struct<{
2069
+ readonly code: import("effect/Schema").Literal<"reports.delivery_failed">;
2070
+ readonly message: import("effect/Schema").String;
2071
+ }>;
2072
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ReportsUnavailableError, import("effect/Schema").Struct<{
2073
+ readonly error: import("effect/Schema").Struct<{
2074
+ readonly code: import("effect/Schema").Literal<"reports.unavailable">;
2075
+ readonly message: import("effect/Schema").String;
2076
+ }>;
2077
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestInvalidError, import("effect/Schema").Struct<{
2078
+ readonly error: import("effect/Schema").Struct<{
2079
+ readonly code: import("effect/Schema").Literal<"request.invalid">;
2080
+ readonly message: import("effect/Schema").String;
2081
+ }>;
2082
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestPayloadTooLargeError, import("effect/Schema").Struct<{
2083
+ readonly error: import("effect/Schema").Struct<{
2084
+ readonly code: import("effect/Schema").Literal<"request.payload_too_large">;
2085
+ readonly message: import("effect/Schema").String;
2086
+ }>;
2087
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestRateLimitedError, import("effect/Schema").Struct<{
2088
+ readonly error: import("effect/Schema").Struct<{
2089
+ readonly code: import("effect/Schema").Literal<"request.rate_limited">;
2090
+ readonly message: import("effect/Schema").String;
2091
+ }>;
2092
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceInternalError, import("effect/Schema").Struct<{
2093
+ readonly error: import("effect/Schema").Struct<{
2094
+ readonly code: import("effect/Schema").Literal<"service.internal_error">;
2095
+ readonly message: import("effect/Schema").String;
2096
+ }>;
2097
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceUnavailableError, import("effect/Schema").Struct<{
2098
+ readonly error: import("effect/Schema").Struct<{
2099
+ readonly code: import("effect/Schema").Literal<"service.unavailable">;
2100
+ readonly message: import("effect/Schema").String;
2101
+ }>;
2102
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").TenantInvalidIdError, import("effect/Schema").Struct<{
2103
+ readonly error: import("effect/Schema").Struct<{
2104
+ readonly code: import("effect/Schema").Literal<"tenant.invalid_id">;
2105
+ readonly message: import("effect/Schema").String;
2106
+ }>;
2107
+ }>, never, never>>, never, never>, never, never>;
1970
2108
  readonly testWebhookEndpoint: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"testWebhookEndpoint", "POST", "/v1/tenants/:tenant_id/webhook-endpoints/:endpoint_id/test", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
1971
2109
  readonly endpoint_id: import("effect/Schema").brand<import("effect/Schema").String, "UUID">;
1972
2110
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
@@ -2416,6 +2554,59 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
2416
2554
  readonly message: import("effect/Schema").String;
2417
2555
  }>;
2418
2556
  }>, never, never>>, never, never>, never, never>;
2557
+ readonly cancelEpisodeParticipantJoin: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"cancelEpisodeParticipantJoin", "POST", "/v1/tenants/:tenant_id/spaces/:space_id/episodes/:episode_id/participants/:participant_id/cancel-join", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2558
+ readonly episode_id: import("effect/Schema").brand<import("effect/Schema").String, "EpisodeId">;
2559
+ readonly participant_id: import("effect/Schema").brand<import("effect/Schema").String, "ParticipantId">;
2560
+ readonly space_id: import("effect/Schema").brand<import("effect/Schema").String, "SpaceId">;
2561
+ readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
2562
+ }>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
2563
+ readonly cancelled: import("effect/Schema").Boolean;
2564
+ }>>, import("effect/Schema").toCodecJson<import("effect/Schema").decodeTo<typeof import("./effect").AccessForbiddenError, import("effect/Schema").Struct<{
2565
+ readonly error: import("effect/Schema").Struct<{
2566
+ readonly code: import("effect/Schema").Literal<"access.forbidden">;
2567
+ readonly message: import("effect/Schema").String;
2568
+ }>;
2569
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").AccessUnauthenticatedError, import("effect/Schema").Struct<{
2570
+ readonly error: import("effect/Schema").Struct<{
2571
+ readonly code: import("effect/Schema").Literal<"access.unauthenticated">;
2572
+ readonly message: import("effect/Schema").String;
2573
+ }>;
2574
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").EpisodeInvalidIdError, import("effect/Schema").Struct<{
2575
+ readonly error: import("effect/Schema").Struct<{
2576
+ readonly code: import("effect/Schema").Literal<"episode.invalid_id">;
2577
+ readonly message: import("effect/Schema").String;
2578
+ }>;
2579
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ParticipantInvalidIdError, import("effect/Schema").Struct<{
2580
+ readonly error: import("effect/Schema").Struct<{
2581
+ readonly code: import("effect/Schema").Literal<"participant.invalid_id">;
2582
+ readonly message: import("effect/Schema").String;
2583
+ }>;
2584
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestInvalidError, import("effect/Schema").Struct<{
2585
+ readonly error: import("effect/Schema").Struct<{
2586
+ readonly code: import("effect/Schema").Literal<"request.invalid">;
2587
+ readonly message: import("effect/Schema").String;
2588
+ }>;
2589
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestRateLimitedError, import("effect/Schema").Struct<{
2590
+ readonly error: import("effect/Schema").Struct<{
2591
+ readonly code: import("effect/Schema").Literal<"request.rate_limited">;
2592
+ readonly message: import("effect/Schema").String;
2593
+ }>;
2594
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceInternalError, import("effect/Schema").Struct<{
2595
+ readonly error: import("effect/Schema").Struct<{
2596
+ readonly code: import("effect/Schema").Literal<"service.internal_error">;
2597
+ readonly message: import("effect/Schema").String;
2598
+ }>;
2599
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceUnavailableError, import("effect/Schema").Struct<{
2600
+ readonly error: import("effect/Schema").Struct<{
2601
+ readonly code: import("effect/Schema").Literal<"service.unavailable">;
2602
+ readonly message: import("effect/Schema").String;
2603
+ }>;
2604
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").SpaceInvalidIdError, import("effect/Schema").Struct<{
2605
+ readonly error: import("effect/Schema").Struct<{
2606
+ readonly code: import("effect/Schema").Literal<"space.invalid_id">;
2607
+ readonly message: import("effect/Schema").String;
2608
+ }>;
2609
+ }>, never, never>>, never, never>, never, never>;
2419
2610
  readonly createEpisode: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"createEpisode", "POST", "/v1/tenants/:tenant_id/spaces/:space_id/episodes", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
2420
2611
  readonly space_id: import("effect/Schema").brand<import("effect/Schema").String, "SpaceId">;
2421
2612
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
@@ -3464,6 +3655,8 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
3464
3655
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
3465
3656
  readonly transcription_policy: import("effect/Schema").String;
3466
3657
  readonly transcription_preparation: import("effect/Schema").Struct<{
3658
+ readonly expires_at: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">>>;
3659
+ readonly failure_code: import("effect/Schema").optional<import("effect/Schema").String>;
3467
3660
  readonly status: import("effect/Schema").Literals<readonly ["none", "pending", "ready", "failed", "expired"]>;
3468
3661
  }>;
3469
3662
  readonly updated_at: import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">;
@@ -3541,6 +3734,8 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
3541
3734
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
3542
3735
  readonly transcription_policy: import("effect/Schema").String;
3543
3736
  readonly transcription_preparation: import("effect/Schema").Struct<{
3737
+ readonly expires_at: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">>>;
3738
+ readonly failure_code: import("effect/Schema").optional<import("effect/Schema").String>;
3544
3739
  readonly status: import("effect/Schema").Literals<readonly ["none", "pending", "ready", "failed", "expired"]>;
3545
3740
  }>;
3546
3741
  readonly updated_at: import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">;
@@ -3628,6 +3823,8 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
3628
3823
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
3629
3824
  readonly transcription_policy: import("effect/Schema").String;
3630
3825
  readonly transcription_preparation: import("effect/Schema").Struct<{
3826
+ readonly expires_at: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">>>;
3827
+ readonly failure_code: import("effect/Schema").optional<import("effect/Schema").String>;
3631
3828
  readonly status: import("effect/Schema").Literals<readonly ["none", "pending", "ready", "failed", "expired"]>;
3632
3829
  }>;
3633
3830
  readonly updated_at: import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">;
@@ -3697,6 +3894,8 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
3697
3894
  }>>, never, never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
3698
3895
  readonly "Idempotency-Key": import("effect/Schema").String;
3699
3896
  }>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
3897
+ readonly decision_action: import("effect/Schema").optional<import("effect/Schema").String>;
3898
+ readonly decision_state: import("effect/Schema").String;
3700
3899
  readonly display_name: import("effect/Schema").String;
3701
3900
  readonly expires_at: import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">;
3702
3901
  readonly request_handle: import("effect/Schema").String;
@@ -4229,6 +4428,8 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
4229
4428
  }>>, never, never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4230
4429
  readonly "Idempotency-Key": import("effect/Schema").String;
4231
4430
  }>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4431
+ readonly decision_action: import("effect/Schema").optional<import("effect/Schema").String>;
4432
+ readonly decision_state: import("effect/Schema").String;
4232
4433
  readonly display_name: import("effect/Schema").String;
4233
4434
  readonly expires_at: import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">;
4234
4435
  readonly request_handle: import("effect/Schema").String;
@@ -4646,6 +4847,74 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
4646
4847
  readonly message: import("effect/Schema").String;
4647
4848
  }>;
4648
4849
  }>, never, never>>, never, never>, never, never>;
4850
+ readonly listSpaceActivity: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listSpaceActivity", "GET", "/v1/tenants/:tenant_id/space-activity", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4851
+ readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
4852
+ }>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4853
+ readonly space_ids: import("effect/Schema").String;
4854
+ }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4855
+ readonly spaces: import("effect/Schema").$Array<import("effect/Schema").Struct<{
4856
+ readonly archived: import("effect/Schema").Boolean;
4857
+ readonly latest_episode: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
4858
+ readonly ended_at: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">>;
4859
+ readonly episode_id: import("effect/Schema").brand<import("effect/Schema").String, "EpisodeId">;
4860
+ readonly started_at: import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">;
4861
+ readonly status: import("effect/Schema").String;
4862
+ }>>;
4863
+ readonly live_episode: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
4864
+ readonly episode_id: import("effect/Schema").brand<import("effect/Schema").String, "EpisodeId">;
4865
+ readonly participant_count: import("effect/Schema").Number;
4866
+ readonly participants: import("effect/Schema").$Array<import("effect/Schema").Struct<{
4867
+ readonly display_name: import("effect/Schema").String;
4868
+ readonly participant_id: import("effect/Schema").brand<import("effect/Schema").String, "ParticipantId">;
4869
+ }>>;
4870
+ }>>;
4871
+ readonly recent_participants: import("effect/Schema").$Array<import("effect/Schema").Struct<{
4872
+ readonly display_name: import("effect/Schema").String;
4873
+ readonly participant_id: import("effect/Schema").brand<import("effect/Schema").String, "ParticipantId">;
4874
+ }>>;
4875
+ readonly space_id: import("effect/Schema").brand<import("effect/Schema").String, "SpaceId">;
4876
+ }>>;
4877
+ }>>, import("effect/Schema").toCodecJson<import("effect/Schema").decodeTo<typeof import("./effect").AccessForbiddenError, import("effect/Schema").Struct<{
4878
+ readonly error: import("effect/Schema").Struct<{
4879
+ readonly code: import("effect/Schema").Literal<"access.forbidden">;
4880
+ readonly message: import("effect/Schema").String;
4881
+ }>;
4882
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").AccessUnauthenticatedError, import("effect/Schema").Struct<{
4883
+ readonly error: import("effect/Schema").Struct<{
4884
+ readonly code: import("effect/Schema").Literal<"access.unauthenticated">;
4885
+ readonly message: import("effect/Schema").String;
4886
+ }>;
4887
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").EpisodeInvalidSpaceIdsError, import("effect/Schema").Struct<{
4888
+ readonly error: import("effect/Schema").Struct<{
4889
+ readonly code: import("effect/Schema").Literal<"episode.invalid_space_ids">;
4890
+ readonly message: import("effect/Schema").String;
4891
+ }>;
4892
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").RequestRateLimitedError, import("effect/Schema").Struct<{
4893
+ readonly error: import("effect/Schema").Struct<{
4894
+ readonly code: import("effect/Schema").Literal<"request.rate_limited">;
4895
+ readonly message: import("effect/Schema").String;
4896
+ }>;
4897
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceInternalError, import("effect/Schema").Struct<{
4898
+ readonly error: import("effect/Schema").Struct<{
4899
+ readonly code: import("effect/Schema").Literal<"service.internal_error">;
4900
+ readonly message: import("effect/Schema").String;
4901
+ }>;
4902
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").ServiceUnavailableError, import("effect/Schema").Struct<{
4903
+ readonly error: import("effect/Schema").Struct<{
4904
+ readonly code: import("effect/Schema").Literal<"service.unavailable">;
4905
+ readonly message: import("effect/Schema").String;
4906
+ }>;
4907
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").SpaceNotFoundError, import("effect/Schema").Struct<{
4908
+ readonly error: import("effect/Schema").Struct<{
4909
+ readonly code: import("effect/Schema").Literal<"space.not_found">;
4910
+ readonly message: import("effect/Schema").String;
4911
+ }>;
4912
+ }>, never, never> | import("effect/Schema").decodeTo<typeof import("./effect").TenantInvalidIdError, import("effect/Schema").Struct<{
4913
+ readonly error: import("effect/Schema").Struct<{
4914
+ readonly code: import("effect/Schema").Literal<"tenant.invalid_id">;
4915
+ readonly message: import("effect/Schema").String;
4916
+ }>;
4917
+ }>, never, never>>, never, never>, never, never>;
4649
4918
  readonly listSpacePublicAdmissionRequests: HttpApiClient.Client.Method<import("effect/unstable/httpapi/HttpApiEndpoint").HttpApiEndpoint<"listSpacePublicAdmissionRequests", "GET", "/v1/tenants/:tenant_id/spaces/:space_id/public-admission-requests", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
4650
4919
  readonly space_id: import("effect/Schema").brand<import("effect/Schema").String, "SpaceId">;
4651
4920
  readonly tenant_id: import("effect/Schema").brand<import("effect/Schema").String, "TenantId">;
@@ -4653,6 +4922,8 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
4653
4922
  readonly state: import("effect/Schema").optional<import("effect/Schema").Literal<"pending">>;
4654
4923
  }>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
4655
4924
  readonly requests: import("effect/Schema").$Array<import("effect/Schema").Struct<{
4925
+ readonly decision_action: import("effect/Schema").optional<import("effect/Schema").String>;
4926
+ readonly decision_state: import("effect/Schema").String;
4656
4927
  readonly display_name: import("effect/Schema").String;
4657
4928
  readonly expires_at: import("effect/Schema").brand<import("effect/Schema").String, "DateTimeString">;
4658
4929
  readonly request_handle: import("effect/Schema").String;
@@ -5434,6 +5705,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5434
5705
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>;
5435
5706
  readonly name: import("effect/Schema").String;
5436
5707
  readonly provider_policy_version: import("effect/Schema").String;
5708
+ readonly recording_render_mode: import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>;
5437
5709
  readonly recording_retention_seconds: import("effect/Schema").Number;
5438
5710
  readonly storage_provider_config: import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5439
5711
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -5517,6 +5789,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5517
5789
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>;
5518
5790
  readonly name: import("effect/Schema").String;
5519
5791
  readonly provider_policy_version: import("effect/Schema").String;
5792
+ readonly recording_render_mode: import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>;
5520
5793
  readonly recording_retention_seconds: import("effect/Schema").Number;
5521
5794
  readonly storage_provider_config: import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5522
5795
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -5585,6 +5858,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5585
5858
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>;
5586
5859
  readonly name: import("effect/Schema").String;
5587
5860
  readonly provider_policy_version: import("effect/Schema").String;
5861
+ readonly recording_render_mode: import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>;
5588
5862
  readonly recording_retention_seconds: import("effect/Schema").Number;
5589
5863
  readonly storage_provider_config: import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5590
5864
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -5660,6 +5934,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5660
5934
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>;
5661
5935
  readonly name: import("effect/Schema").String;
5662
5936
  readonly provider_policy_version: import("effect/Schema").String;
5937
+ readonly recording_render_mode: import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>;
5663
5938
  readonly recording_retention_seconds: import("effect/Schema").Number;
5664
5939
  readonly storage_provider_config: import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5665
5940
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -5726,6 +6001,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5726
6001
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>>;
5727
6002
  readonly name: import("effect/Schema").optional<import("effect/Schema").String>;
5728
6003
  readonly provider_policy_version: import("effect/Schema").optional<import("effect/Schema").String>;
6004
+ readonly recording_render_mode: import("effect/Schema").optional<import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>>;
5729
6005
  readonly recording_retention_seconds: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").Number>>;
5730
6006
  readonly storage_provider_config: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5731
6007
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -5755,6 +6031,7 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
5755
6031
  }>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>;
5756
6032
  readonly name: import("effect/Schema").String;
5757
6033
  readonly provider_policy_version: import("effect/Schema").String;
6034
+ readonly recording_render_mode: import("effect/Schema").Literals<readonly ["on_demand", "automatic"]>;
5758
6035
  readonly recording_retention_seconds: import("effect/Schema").Number;
5759
6036
  readonly storage_provider_config: import("effect/Schema").NullOr<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
5760
6037
  readonly access_key_id: import("effect/Schema").optional<import("effect/Schema").String>;
@@ -6248,4 +6525,3 @@ export declare const createChalkEffectClient: (options: ChalkEffectClientOptions
6248
6525
  }>, never, never>>, never, never>, never, never>;
6249
6526
  };
6250
6527
  }, never, never>;
6251
- //# sourceMappingURL=client.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export * from "./types";
2
2
  export { chatMessageFromFrame, chatReadReceiptFromFrame, reactionFromFrame } from "./wire";
3
- //# sourceMappingURL=index.d.ts.map
@@ -111,4 +111,3 @@ export type ChalkDirectedRequestResult = {
111
111
  readonly status: "target_unavailable" | "expired" | "rejected" | "rate_limited";
112
112
  readonly requestId: string;
113
113
  };
114
- //# sourceMappingURL=types.d.ts.map
@@ -23,4 +23,3 @@ export declare function chatReactionsFromFrame(frame: Extract<SyncV1ServerFrame,
23
23
  readonly type: "chat_reactions";
24
24
  }>): ChalkChatReactions;
25
25
  export {};
26
- //# sourceMappingURL=wire.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import type { ClientMediaPlane, CloudflareSFUBootstrap, ConnectionMediaSnapshot } from "../media";
2
2
  import type { ChalkChatFileTransport } from "../chat-files";
3
3
  import type { V1AdmissionTarget, V1AssignableRole, V1CommandResult, V1EpisodeSnapshot, V1SelfMediaTargetResult } from "../sync";
4
- import type { V1CollaborationClient, V1DirectedRequest, V1DirectedRequestResult } from "../sync/v1-types";
4
+ import type { V1CollaborationClient, V1DirectedRequest, V1DirectedRequestResult, V1MediaPause } from "../sync/v1-types";
5
5
  import type { ChalkWhiteboardSummary, ChalkWhiteboardV1ClientOptions, ChalkWhiteboardV1Transport } from "../whiteboard/types";
6
6
  import type { ParsedAccessGrant, ParticipantMediaAccess, ParticipantMediaCredential } from "../access/grant";
7
7
  import { Context, Layer } from "effect";
@@ -32,6 +32,8 @@ export type ConnectionMediaDevices = {
32
32
  };
33
33
  export type ConnectionSyncClient = V1CollaborationClient & {
34
34
  readonly start: () => Promise<void>;
35
+ /** Confirms entry after Sync is live and media has started. Without it, Sync confirms the entry at hello. */
36
+ readonly confirmEntered?: () => Promise<void>;
35
37
  readonly restartTransport?: () => void;
36
38
  readonly stop: () => void;
37
39
  readonly getSnapshot: () => V1EpisodeSnapshot;
@@ -57,6 +59,7 @@ export type ConnectionSyncClient = V1CollaborationClient & {
57
59
  readonly stopRecording: (recordingId: string) => Promise<V1CommandResult>;
58
60
  readonly endEpisode: () => Promise<V1CommandResult>;
59
61
  readonly extendEpisode: (minutes: number) => Promise<V1CommandResult>;
62
+ readonly onMediaPause?: (listener: (pause: V1MediaPause) => void) => () => void;
60
63
  readonly onDirectedRequest: (listener: (request: V1DirectedRequest) => void) => () => void;
61
64
  readonly requestUnmute: (participantId: string) => Promise<V1DirectedRequestResult>;
62
65
  readonly requestStartCamera: (participantId: string) => Promise<V1DirectedRequestResult>;
@@ -66,7 +69,9 @@ export type ConnectionMediaClient = ClientMediaPlane & {
66
69
  readonly stop: () => void;
67
70
  readonly restart: (input: CloudflareSFUBootstrap | ParticipantMediaAccess) => Promise<void>;
68
71
  readonly prepareLocalTrack: (source: "microphone" | "camera" | "screen" | "screen_audio", track: MediaStreamTrack) => void;
69
- readonly clearPreparedLocalTrack: (source: "microphone" | "camera" | "screen" | "screen_audio") => Promise<void>;
72
+ readonly clearPreparedLocalTrack: (source: "microphone" | "camera" | "screen" | "screen_audio", options?: {
73
+ readonly stopTrack?: boolean;
74
+ }) => Promise<void>;
70
75
  readonly getSnapshot: () => ConnectionMediaSnapshot;
71
76
  readonly subscribe: (listener: () => void) => () => void;
72
77
  };
@@ -92,6 +97,7 @@ export type ConnectionChatFileFactoryInput = {
92
97
  };
93
98
  export type ConnectionDependencies = {
94
99
  readonly clock: ConnectionClock;
100
+ readonly cancelPendingAdmission?: (access: ParsedAccessGrant, signal: AbortSignal) => Promise<boolean>;
95
101
  readonly mediaDevices: ConnectionMediaDevices;
96
102
  readonly createMediaClient: (input: ConnectionMediaFactoryInput) => ConnectionMediaClient;
97
103
  readonly createSyncClient: (input: ConnectionSyncFactoryInput) => ConnectionSyncClient;
@@ -116,4 +122,3 @@ export declare const makeConnectionPlatformLayer: (dependencies: ConnectionDepen
116
122
  /** A named alias makes fake platform Layers self-documenting in tests. */
117
123
  export declare const makeFakeConnectionPlatformLayer: (dependencies: ConnectionDependencies) => Layer.Layer<ConnectionPlatformService, never, never>;
118
124
  export {};
119
- //# sourceMappingURL=dependencies.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { ConnectionErrorCode, ConnectionState } from "./types";
2
- export type ConnectionDiagnosticEventName = "connection_failed" | "state_changed" | "access_refreshed" | "access_refresh_failed" | "recovery_attempt" | "recovery_succeeded" | "recovery_exhausted" | "cleanup_completed" | "cleanup_unconfirmed" | "space_join_span";
3
- export type ConnectionJoinTraceStep = "join" | "acquire_initial_media" | "access_initialize" | "create_media_client" | "create_sync_client" | "start_media" | "start_sync" | "wait_for_sync_live";
2
+ export type ConnectionDiagnosticEventName = "sync_dial_timeout" | "sync_connect_failed" | "connection_failed" | "state_changed" | "access_refreshed" | "access_refresh_failed" | "recovery_attempt" | "recovery_succeeded" | "recovery_exhausted" | "cleanup_completed" | "cleanup_unconfirmed" | "space_join_span";
3
+ export type ConnectionJoinTraceStep = "join" | "acquire_initial_media" | "access_initialize" | "create_media_client" | "create_sync_client" | "start_media" | "start_sync" | "wait_for_sync_live" | "confirm_entered";
4
4
  export type ConnectionJoinTraceOutcome = "started" | "succeeded" | "failed" | "cancelled";
5
5
  export type ConnectionJoinTraceEvent = ConnectionDiagnostic & {
6
6
  readonly event: "space_join_span";
@@ -31,6 +31,7 @@ export type ConnectionDiagnostic = {
31
31
  readonly parentSpanId?: string;
32
32
  readonly outcome?: ConnectionJoinTraceOutcome;
33
33
  readonly durationMs?: number;
34
+ readonly sync?: import("../sync/connect-diagnostics").SyncConnectDiagnostic;
34
35
  };
35
36
  export declare class ConnectionDiagnostics {
36
37
  #private;
@@ -49,4 +50,3 @@ export declare class ConnectionDiagnostics {
49
50
  }): ConnectionJoinTraceSpan;
50
51
  joinTrace(): readonly ConnectionJoinTraceEvent[];
51
52
  }
52
- //# sourceMappingURL=diagnostics.d.ts.map
@@ -13,6 +13,7 @@ export type ConnectionLifecycleSnapshot = {
13
13
  } | null;
14
14
  readonly connection: {
15
15
  readonly sync: ConnectionConnectionPhase;
16
+ readonly syncHealth?: import("../sync/v1-health").SyncHealth;
16
17
  readonly media: ConnectionConnectionPhase;
17
18
  };
18
19
  readonly failure: ConnectionFailure | null;
@@ -44,4 +45,3 @@ export type ConnectionOptions = {
44
45
  };
45
46
  export { ConnectionLifecycleFailure, ConnectionLifecycleService, makeConnectionLifecycleLayer, makeFakeConnectionLifecycleLayer } from "./lifecycle";
46
47
  export type { ConnectionLifecycleCapability } from "./lifecycle";
47
- //# sourceMappingURL=index.d.ts.map
@@ -2,7 +2,7 @@ import { Clock, Context, Effect, Layer, SubscriptionRef } from "effect";
2
2
  import { ConnectionAccessService } from "../access/manager";
3
3
  import type { ConnectionLifecycleSnapshot, ConnectionOptions, ConnectionPorts } from "./index";
4
4
  import { type ConnectionDiagnostic, type ConnectionJoinTraceEvent } from "./diagnostics";
5
- import { ConnectionPlatformService } from "./dependencies";
5
+ import { ConnectionPlatformService, type ConnectionMediaClient } from "./dependencies";
6
6
  import { type ConnectionFailure } from "./types";
7
7
  type InitialMedia = (intent: Readonly<{
8
8
  microphone: boolean;
@@ -17,6 +17,7 @@ export declare class ConnectionLifecycleFailure extends ConnectionLifecycleFailu
17
17
  readonly recoverable: boolean;
18
18
  readonly message: string;
19
19
  readonly cause?: unknown;
20
+ readonly sync?: import("../sync/connect-diagnostics").SyncConnectDiagnostic;
20
21
  }> {
21
22
  }
22
23
  export type ConnectionLifecycleCapability = {
@@ -31,7 +32,7 @@ export type ConnectionLifecycleCapability = {
31
32
  readonly setInitialMedia: (provider: InitialMedia, intent?: () => Readonly<{
32
33
  microphone: boolean;
33
34
  camera: boolean;
34
- }>) => Effect.Effect<void>;
35
+ }>, start?: (media: ConnectionMediaClient, stream: MediaStream) => Effect.Effect<void, unknown>) => Effect.Effect<void>;
35
36
  readonly configureJoin: (intent: Readonly<{
36
37
  microphone?: boolean;
37
38
  camera?: boolean;
@@ -58,4 +59,3 @@ export declare const makeConnectionLifecycleLayer: (options: ConnectionOptions)
58
59
  export declare const makeFakeConnectionLifecycleLayer: (options: ConnectionOptions) => Layer.Layer<ConnectionLifecycleService, never>;
59
60
  export declare const makeConnectionLifecycleLayerFromServices: (options: Omit<ConnectionOptions, "access" | "dependencies">) => Layer.Layer<ConnectionLifecycleService, never, Clock.Clock | ConnectionAccessService | ConnectionPlatformService>;
60
61
  export {};
61
- //# sourceMappingURL=lifecycle.d.ts.map
@@ -14,4 +14,3 @@ export declare function displayMediaConstraints(options?: ScreenShareOptions): D
14
14
  });
15
15
  };
16
16
  export declare function screenShareCapture(track: MediaStreamTrack): ScreenShareCapture;
17
- //# sourceMappingURL=media-devices.d.ts.map
@@ -13,4 +13,3 @@ export declare const makeProductionConnectionPlatformLayer: (options: {
13
13
  type BoundMediaClient = Pick<ConnectionMediaClient, "setLocalPublicationTarget" | "setLocalSourceIntent" | "closeForcedLocalPublication" | "observeLocalPublications" | "observeRemotePublications" | "remotePublicationsChanged" | "remoteParticipantsChanged" | "remotePublicationResumed" | "start" | "stop" | "prepareLocalTrack" | "clearPreparedLocalTrack" | "getSnapshot" | "subscribe">;
14
14
  export declare function bindConnectionMediaClient(client: BoundMediaClient, restart: ConnectionMediaClient["restart"]): ConnectionMediaClient;
15
15
  export {};
16
- //# sourceMappingURL=production.d.ts.map
@@ -10,13 +10,14 @@ export declare const CONNECTION_STATES: readonly ["idle", "joining", "live", "re
10
10
  export type ConnectionState = (typeof CONNECTION_STATES)[number];
11
11
  export declare const CONNECTION_ACTIONS: readonly ["join", "leave", "setMicrophoneEnabled", "setCameraEnabled", "startScreenShare", "stopScreenShare", "setHandRaised", "setDisplayName", "setAdmissionPolicy", "assignRole", "admitParticipant", "denyAdmission", "muteParticipant", "stopParticipantCamera", "stopParticipantScreenShare", "removeParticipant", "endEpisode", "extendEpisode", "sendReaction", "sendChatMessage", "retryChatMessage", "loadOlderChatMessages", "markChatRead", "requestUnmute", "requestStartCamera", "acceptMediaRequest", "declineMediaRequest"];
12
12
  export type ConnectionActionName = (typeof CONNECTION_ACTIONS)[number];
13
- export declare const CONNECTION_ERROR_CODES: readonly ["invalid_state", "invalid_access", "access_unavailable", "permission_denied", "device_not_found", "device_busy", "device_constraint_invalid", "media_capture_failed", "sync_start_failed", "media_start_failed", "join_cleanup_unconfirmed", "sync_recovery_exhausted", "media_recovery_exhausted", "command_rejected", "leave_unconfirmed", "episode_ended", "unsupported_environment", "internal_error", "collaboration_unavailable", "chat_cursor_reset_required", "rate_limited", "invalid_payload"];
13
+ export declare const CONNECTION_ERROR_CODES: readonly ["invalid_state", "invalid_access", "access_unavailable", "permission_denied", "device_not_found", "device_busy", "device_constraint_invalid", "media_capture_failed", "sync_start_failed", "state_digest_recovery_failed", "sync_hello_timeout", "media_start_failed", "join_cleanup_unconfirmed", "sync_recovery_exhausted", "media_recovery_exhausted", "command_rejected", "leave_unconfirmed", "episode_ended", "unsupported_environment", "internal_error", "collaboration_unavailable", "chat_cursor_reset_required", "rate_limited", "invalid_payload"];
14
14
  export type ConnectionErrorCode = (typeof CONNECTION_ERROR_CODES)[number];
15
15
  export type ConnectionFailure = {
16
16
  readonly code: ConnectionErrorCode;
17
17
  readonly action: ConnectionActionName | null;
18
18
  readonly recoverable: boolean;
19
19
  readonly message: string;
20
+ readonly sync?: import("../sync/connect-diagnostics").SyncConnectDiagnostic;
20
21
  };
21
22
  export type ChalkPendingChatMessage = ChalkPendingChatMessageState<ConnectionFailure>;
22
23
  export type ChalkChatState = ChalkChatStateSnapshot<ConnectionFailure, ChalkPendingChatMessage>;
@@ -24,6 +25,7 @@ export declare class ConnectionError extends Error {
24
25
  readonly code: ConnectionErrorCode;
25
26
  readonly action: ConnectionActionName | null;
26
27
  readonly recoverable: boolean;
28
+ readonly sync?: import("../sync/connect-diagnostics").SyncConnectDiagnostic;
27
29
  constructor(failure: ConnectionFailure, options?: ErrorOptions);
28
30
  }
29
31
  export type ConnectionConnectionPhase = "idle" | "connecting" | "healthy" | "unresponsive" | "recovering" | "failed" | "stopped";
@@ -69,6 +71,7 @@ export type ConnectionSnapshot = {
69
71
  } | null;
70
72
  readonly connection: {
71
73
  readonly sync: ConnectionConnectionPhase;
74
+ readonly syncHealth?: import("../sync/v1-health").SyncHealth;
72
75
  readonly media: ConnectionConnectionPhase;
73
76
  };
74
77
  readonly admissionPolicy: ChalkAdmissionPolicy | null;
@@ -125,4 +128,3 @@ export type ConnectionStore = ConnectionActions & {
125
128
  readonly chatFiles: ChalkChatFileTransport | null;
126
129
  readonly whiteboard: ChalkWhiteboardV1Transport | null;
127
130
  };
128
- //# sourceMappingURL=types.d.ts.map