@q9labsai/chalk-client 4.0.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 (253) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +173 -0
  3. package/dist/access/base64-url.d.ts +2 -0
  4. package/dist/access/base64-url.d.ts.map +1 -0
  5. package/dist/access/episode-diagnostic-credential.d.ts +11 -0
  6. package/dist/access/episode-diagnostic-credential.d.ts.map +1 -0
  7. package/dist/access/grant.d.ts +53 -0
  8. package/dist/access/grant.d.ts.map +1 -0
  9. package/dist/access/grant.test.helpers.d.ts +10 -0
  10. package/dist/access/grant.test.helpers.d.ts.map +1 -0
  11. package/dist/access/manager.d.ts +36 -0
  12. package/dist/access/manager.d.ts.map +1 -0
  13. package/dist/chat-files/http-transport.d.ts +8 -0
  14. package/dist/chat-files/http-transport.d.ts.map +1 -0
  15. package/dist/chat-files/index.d.ts +3 -0
  16. package/dist/chat-files/index.d.ts.map +1 -0
  17. package/dist/chat-files/types.d.ts +37 -0
  18. package/dist/chat-files/types.d.ts.map +1 -0
  19. package/dist/chunk-5VXGLI3T.js +3385 -0
  20. package/dist/chunk-O22WFBKF.js +5161 -0
  21. package/dist/chunk-PBCGWE2V.js +811 -0
  22. package/dist/chunk-PBSYXPNJ.js +23 -0
  23. package/dist/chunk-QVHR3RMB.js +1229 -0
  24. package/dist/client.d.ts +6785 -0
  25. package/dist/client.d.ts.map +1 -0
  26. package/dist/collaboration/index.d.ts +3 -0
  27. package/dist/collaboration/index.d.ts.map +1 -0
  28. package/dist/collaboration/types.d.ts +94 -0
  29. package/dist/collaboration/types.d.ts.map +1 -0
  30. package/dist/collaboration/wire.d.ts +19 -0
  31. package/dist/collaboration/wire.d.ts.map +1 -0
  32. package/dist/connection/dependencies.d.ts +112 -0
  33. package/dist/connection/dependencies.d.ts.map +1 -0
  34. package/dist/connection/diagnostics.d.ts +52 -0
  35. package/dist/connection/diagnostics.d.ts.map +1 -0
  36. package/dist/connection/index.d.ts +47 -0
  37. package/dist/connection/index.d.ts.map +1 -0
  38. package/dist/connection/lifecycle.d.ts +58 -0
  39. package/dist/connection/lifecycle.d.ts.map +1 -0
  40. package/dist/connection/media-devices.d.ts +6 -0
  41. package/dist/connection/media-devices.d.ts.map +1 -0
  42. package/dist/connection/production.d.ts +13 -0
  43. package/dist/connection/production.d.ts.map +1 -0
  44. package/dist/connection/snapshot.d.ts +23 -0
  45. package/dist/connection/snapshot.d.ts.map +1 -0
  46. package/dist/connection/types.d.ts +128 -0
  47. package/dist/connection/types.d.ts.map +1 -0
  48. package/dist/effect.d.ts +19 -0
  49. package/dist/effect.d.ts.map +1 -0
  50. package/dist/effect.js +7846 -0
  51. package/dist/episode-diagnostic-runtime.test.helpers.d.ts +3 -0
  52. package/dist/episode-diagnostic-runtime.test.helpers.d.ts.map +1 -0
  53. package/dist/generated/http-api.d.ts +6658 -0
  54. package/dist/generated/http-api.d.ts.map +1 -0
  55. package/dist/generated/schemas.d.ts +12076 -0
  56. package/dist/generated/schemas.d.ts.map +1 -0
  57. package/dist/generated/sync.d.ts +3947 -0
  58. package/dist/generated/sync.d.ts.map +1 -0
  59. package/dist/generated/whiteboard-v1.d.ts +334 -0
  60. package/dist/generated/whiteboard-v1.d.ts.map +1 -0
  61. package/dist/index.d.ts +10 -0
  62. package/dist/index.d.ts.map +1 -0
  63. package/dist/index.js +152 -0
  64. package/dist/media/client.d.ts +18 -0
  65. package/dist/media/client.d.ts.map +1 -0
  66. package/dist/media/cloudflare-sfu.d.ts +5 -0
  67. package/dist/media/cloudflare-sfu.d.ts.map +1 -0
  68. package/dist/media/index.d.ts +3 -0
  69. package/dist/media/index.d.ts.map +1 -0
  70. package/dist/media/index.js +24 -0
  71. package/dist/media/plane.d.ts +24 -0
  72. package/dist/media/plane.d.ts.map +1 -0
  73. package/dist/media/tracks.d.ts +21 -0
  74. package/dist/media/tracks.d.ts.map +1 -0
  75. package/dist/media/transport.d.ts +3 -0
  76. package/dist/media/transport.d.ts.map +1 -0
  77. package/dist/media/types.d.ts +114 -0
  78. package/dist/media/types.d.ts.map +1 -0
  79. package/dist/server/chunk-A6YMG5FM.js +61 -0
  80. package/dist/server/client.d.cts +2 -0
  81. package/dist/server/client.d.ts +3 -0
  82. package/dist/server/client.d.ts.map +1 -0
  83. package/dist/server/errors.d.cts +18 -0
  84. package/dist/server/errors.d.ts +19 -0
  85. package/dist/server/errors.d.ts.map +1 -0
  86. package/dist/server/index.cjs +551 -0
  87. package/dist/server/index.d.cts +3 -0
  88. package/dist/server/index.d.ts +4 -0
  89. package/dist/server/index.d.ts.map +1 -0
  90. package/dist/server/index.js +474 -0
  91. package/dist/server/server-only.cjs +40 -0
  92. package/dist/server/server-only.d.cts +1 -0
  93. package/dist/server/server-only.d.ts +2 -0
  94. package/dist/server/server-only.d.ts.map +1 -0
  95. package/dist/server/server-only.js +9 -0
  96. package/dist/server/transport.d.cts +12 -0
  97. package/dist/server/transport.d.ts +13 -0
  98. package/dist/server/transport.d.ts.map +1 -0
  99. package/dist/server/types.d.cts +201 -0
  100. package/dist/server/types.d.ts +202 -0
  101. package/dist/server/types.d.ts.map +1 -0
  102. package/dist/space-client/chat-controller-helpers.d.ts +15 -0
  103. package/dist/space-client/chat-controller-helpers.d.ts.map +1 -0
  104. package/dist/space-client/chat-controller.d.ts +34 -0
  105. package/dist/space-client/chat-controller.d.ts.map +1 -0
  106. package/dist/space-client/controller-effects.d.ts +45 -0
  107. package/dist/space-client/controller-effects.d.ts.map +1 -0
  108. package/dist/space-client/controller-parity.test.helpers.d.ts +150 -0
  109. package/dist/space-client/controller-parity.test.helpers.d.ts.map +1 -0
  110. package/dist/space-client/core.d.ts +52 -0
  111. package/dist/space-client/core.d.ts.map +1 -0
  112. package/dist/space-client/core.test.helpers.d.ts +14 -0
  113. package/dist/space-client/core.test.helpers.d.ts.map +1 -0
  114. package/dist/space-client/effect.d.ts +44 -0
  115. package/dist/space-client/effect.d.ts.map +1 -0
  116. package/dist/space-client/episode-diagnostic-registry.d.ts +13 -0
  117. package/dist/space-client/episode-diagnostic-registry.d.ts.map +1 -0
  118. package/dist/space-client/episode-diagnostic-render-registry.d.ts +4 -0
  119. package/dist/space-client/episode-diagnostic-render-registry.d.ts.map +1 -0
  120. package/dist/space-client/episode-diagnostic-runtime.d.ts +102 -0
  121. package/dist/space-client/episode-diagnostic-runtime.d.ts.map +1 -0
  122. package/dist/space-client/errors.d.ts +11 -0
  123. package/dist/space-client/errors.d.ts.map +1 -0
  124. package/dist/space-client/index.d.ts +5 -0
  125. package/dist/space-client/index.d.ts.map +1 -0
  126. package/dist/space-client/media-controller.d.ts +30 -0
  127. package/dist/space-client/media-controller.d.ts.map +1 -0
  128. package/dist/space-client/media-controller.test.helpers.d.ts +105 -0
  129. package/dist/space-client/media-controller.test.helpers.d.ts.map +1 -0
  130. package/dist/space-client/media-device-selection.d.ts +13 -0
  131. package/dist/space-client/media-device-selection.d.ts.map +1 -0
  132. package/dist/space-client/participants-controller.d.ts +33 -0
  133. package/dist/space-client/participants-controller.d.ts.map +1 -0
  134. package/dist/space-client/promise-facade.d.ts +12 -0
  135. package/dist/space-client/promise-facade.d.ts.map +1 -0
  136. package/dist/space-client/reactions-controller.d.ts +19 -0
  137. package/dist/space-client/reactions-controller.d.ts.map +1 -0
  138. package/dist/space-client/space-client.d.ts +5 -0
  139. package/dist/space-client/space-client.d.ts.map +1 -0
  140. package/dist/space-client/store.d.ts +29 -0
  141. package/dist/space-client/store.d.ts.map +1 -0
  142. package/dist/space-client/types.d.ts +222 -0
  143. package/dist/space-client/types.d.ts.map +1 -0
  144. package/dist/space-client/whiteboard-controller.d.ts +17 -0
  145. package/dist/space-client/whiteboard-controller.d.ts.map +1 -0
  146. package/dist/sync/browser.d.ts +9 -0
  147. package/dist/sync/browser.d.ts.map +1 -0
  148. package/dist/sync/canonical.d.ts +7 -0
  149. package/dist/sync/canonical.d.ts.map +1 -0
  150. package/dist/sync/errors.d.ts +9 -0
  151. package/dist/sync/errors.d.ts.map +1 -0
  152. package/dist/sync/index.d.ts +13 -0
  153. package/dist/sync/index.d.ts.map +1 -0
  154. package/dist/sync/index.js +51 -0
  155. package/dist/sync/react-native.d.ts +42 -0
  156. package/dist/sync/react-native.d.ts.map +1 -0
  157. package/dist/sync/types.d.ts +28 -0
  158. package/dist/sync/types.d.ts.map +1 -0
  159. package/dist/sync/v1-client.d.ts +59 -0
  160. package/dist/sync/v1-client.d.ts.map +1 -0
  161. package/dist/sync/v1-codec.d.ts +5 -0
  162. package/dist/sync/v1-codec.d.ts.map +1 -0
  163. package/dist/sync/v1-create.d.ts +12 -0
  164. package/dist/sync/v1-create.d.ts.map +1 -0
  165. package/dist/sync/v1-persistence.d.ts +10 -0
  166. package/dist/sync/v1-persistence.d.ts.map +1 -0
  167. package/dist/sync/v1-platform-persistence.d.ts +26 -0
  168. package/dist/sync/v1-platform-persistence.d.ts.map +1 -0
  169. package/dist/sync/v1-reducer.d.ts +17 -0
  170. package/dist/sync/v1-reducer.d.ts.map +1 -0
  171. package/dist/sync/v1-types.d.ts +197 -0
  172. package/dist/sync/v1-types.d.ts.map +1 -0
  173. package/dist/telemetry/attributes.d.ts +7 -0
  174. package/dist/telemetry/attributes.d.ts.map +1 -0
  175. package/dist/telemetry/client.d.ts +44 -0
  176. package/dist/telemetry/client.d.ts.map +1 -0
  177. package/dist/telemetry/delivery.d.ts +107 -0
  178. package/dist/telemetry/delivery.d.ts.map +1 -0
  179. package/dist/telemetry/exporter.d.ts +38 -0
  180. package/dist/telemetry/exporter.d.ts.map +1 -0
  181. package/dist/telemetry/index.d.ts +7 -0
  182. package/dist/telemetry/index.d.ts.map +1 -0
  183. package/dist/telemetry/index.js +48 -0
  184. package/dist/telemetry/journey.d.ts +52 -0
  185. package/dist/telemetry/journey.d.ts.map +1 -0
  186. package/dist/telemetry/random.d.ts +18 -0
  187. package/dist/telemetry/random.d.ts.map +1 -0
  188. package/dist/telemetry/rtc.d.ts +35 -0
  189. package/dist/telemetry/rtc.d.ts.map +1 -0
  190. package/dist/telemetry/storage.d.ts +22 -0
  191. package/dist/telemetry/storage.d.ts.map +1 -0
  192. package/dist/telemetry/sync.d.ts +10 -0
  193. package/dist/telemetry/sync.d.ts.map +1 -0
  194. package/dist/telemetry/test-support.d.ts +51 -0
  195. package/dist/telemetry/test-support.d.ts.map +1 -0
  196. package/dist/telemetry/trace.d.ts +18 -0
  197. package/dist/telemetry/trace.d.ts.map +1 -0
  198. package/dist/telemetry/types.d.ts +109 -0
  199. package/dist/telemetry/types.d.ts.map +1 -0
  200. package/dist/webhooks/chunk-UNMJZNTZ.js +31 -0
  201. package/dist/webhooks/errors.d.cts +8 -0
  202. package/dist/webhooks/errors.d.ts +9 -0
  203. package/dist/webhooks/errors.d.ts.map +1 -0
  204. package/dist/webhooks/generated/event-v1.d.cts +764 -0
  205. package/dist/webhooks/generated/event-v1.d.ts +765 -0
  206. package/dist/webhooks/generated/event-v1.d.ts.map +1 -0
  207. package/dist/webhooks/generated/fixtures-v1.d.cts +46 -0
  208. package/dist/webhooks/generated/fixtures-v1.d.ts +47 -0
  209. package/dist/webhooks/generated/fixtures-v1.d.ts.map +1 -0
  210. package/dist/webhooks/index.cjs +1242 -0
  211. package/dist/webhooks/index.d.cts +5 -0
  212. package/dist/webhooks/index.d.ts +6 -0
  213. package/dist/webhooks/index.d.ts.map +1 -0
  214. package/dist/webhooks/index.js +1197 -0
  215. package/dist/webhooks/processor.d.cts +21 -0
  216. package/dist/webhooks/processor.d.ts +22 -0
  217. package/dist/webhooks/processor.d.ts.map +1 -0
  218. package/dist/webhooks/server-only.cjs +36 -0
  219. package/dist/webhooks/server-only.d.cts +1 -0
  220. package/dist/webhooks/server-only.d.ts +2 -0
  221. package/dist/webhooks/server-only.d.ts.map +1 -0
  222. package/dist/webhooks/server-only.js +9 -0
  223. package/dist/webhooks/test.cjs +160 -0
  224. package/dist/webhooks/test.d.cts +42 -0
  225. package/dist/webhooks/test.d.ts +43 -0
  226. package/dist/webhooks/test.d.ts.map +1 -0
  227. package/dist/webhooks/test.js +137 -0
  228. package/dist/webhooks/types.d.cts +55 -0
  229. package/dist/webhooks/types.d.ts +56 -0
  230. package/dist/webhooks/types.d.ts.map +1 -0
  231. package/dist/webhooks/validate.d.cts +5 -0
  232. package/dist/webhooks/validate.d.ts +6 -0
  233. package/dist/webhooks/validate.d.ts.map +1 -0
  234. package/dist/webhooks/verify.d.cts +10 -0
  235. package/dist/webhooks/verify.d.ts +11 -0
  236. package/dist/webhooks/verify.d.ts.map +1 -0
  237. package/dist/whiteboard/file-http-transport.d.ts +9 -0
  238. package/dist/whiteboard/file-http-transport.d.ts.map +1 -0
  239. package/dist/whiteboard/index.d.ts +7 -0
  240. package/dist/whiteboard/index.d.ts.map +1 -0
  241. package/dist/whiteboard/types.d.ts +139 -0
  242. package/dist/whiteboard/types.d.ts.map +1 -0
  243. package/dist/whiteboard/v1-client.d.ts +18 -0
  244. package/dist/whiteboard/v1-client.d.ts.map +1 -0
  245. package/dist/whiteboard/v1-codec.d.ts +5 -0
  246. package/dist/whiteboard/v1-codec.d.ts.map +1 -0
  247. package/dist/whiteboard/v1-create.d.ts +8 -0
  248. package/dist/whiteboard/v1-create.d.ts.map +1 -0
  249. package/dist/whiteboard/v1-multipart.d.ts +30 -0
  250. package/dist/whiteboard/v1-multipart.d.ts.map +1 -0
  251. package/dist/whiteboard/v1-persistence.d.ts +9 -0
  252. package/dist/whiteboard/v1-persistence.d.ts.map +1 -0
  253. package/package.json +222 -0
@@ -0,0 +1,764 @@
1
+ export declare const webhookEventSchemaV1: {
2
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
3
+ readonly $id: "https://chalk.dev/contracts/webhooks/v1/event.schema.json";
4
+ readonly title: "Chalk webhook Event version 1";
5
+ readonly type: "object";
6
+ readonly required: readonly ["id", "event", "api_version", "occurred_at", "tenant_id", "data"];
7
+ readonly properties: {
8
+ readonly id: {
9
+ readonly $ref: "#/$defs/uuid";
10
+ };
11
+ readonly event: {
12
+ readonly type: "string";
13
+ };
14
+ readonly api_version: {
15
+ readonly const: 1;
16
+ };
17
+ readonly occurred_at: {
18
+ readonly $ref: "#/$defs/timestamp";
19
+ };
20
+ readonly tenant_id: {
21
+ readonly $ref: "#/$defs/uuid";
22
+ };
23
+ readonly data: {
24
+ readonly type: "object";
25
+ };
26
+ };
27
+ readonly additionalProperties: true;
28
+ readonly oneOf: readonly [{
29
+ readonly $ref: "#/$defs/spaceCreated";
30
+ }, {
31
+ readonly $ref: "#/$defs/spaceUpdated";
32
+ }, {
33
+ readonly $ref: "#/$defs/spaceArchived";
34
+ }, {
35
+ readonly $ref: "#/$defs/spaceRestored";
36
+ }, {
37
+ readonly $ref: "#/$defs/episodeStarted";
38
+ }, {
39
+ readonly $ref: "#/$defs/episodeEnded";
40
+ }, {
41
+ readonly $ref: "#/$defs/participantJoined";
42
+ }, {
43
+ readonly $ref: "#/$defs/participantLeft";
44
+ }, {
45
+ readonly $ref: "#/$defs/recordingStarted";
46
+ }, {
47
+ readonly $ref: "#/$defs/recordingCompleted";
48
+ }, {
49
+ readonly $ref: "#/$defs/recordingFailed";
50
+ }, {
51
+ readonly $ref: "#/$defs/transcriptStarted";
52
+ }, {
53
+ readonly $ref: "#/$defs/transcriptCompleted";
54
+ }, {
55
+ readonly $ref: "#/$defs/transcriptFailed";
56
+ }, {
57
+ readonly $ref: "#/$defs/endpointTest";
58
+ }];
59
+ readonly $defs: {
60
+ readonly uuid: {
61
+ readonly type: "string";
62
+ readonly format: "uuid";
63
+ readonly pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$";
64
+ };
65
+ readonly timestamp: {
66
+ readonly type: "string";
67
+ readonly format: "date-time";
68
+ readonly pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$";
69
+ };
70
+ readonly nullableTimestamp: {
71
+ readonly oneOf: readonly [{
72
+ readonly $ref: "#/$defs/timestamp";
73
+ }, {
74
+ readonly type: "null";
75
+ }];
76
+ };
77
+ readonly nullableUUID: {
78
+ readonly oneOf: readonly [{
79
+ readonly $ref: "#/$defs/uuid";
80
+ }, {
81
+ readonly type: "null";
82
+ }];
83
+ };
84
+ readonly failure: {
85
+ readonly oneOf: readonly [{
86
+ readonly type: "null";
87
+ }, {
88
+ readonly type: "object";
89
+ readonly required: readonly ["code"];
90
+ readonly properties: {
91
+ readonly code: {
92
+ readonly type: "string";
93
+ readonly minLength: 1;
94
+ readonly maxLength: 96;
95
+ };
96
+ };
97
+ readonly additionalProperties: true;
98
+ }];
99
+ };
100
+ readonly spaceObject: {
101
+ readonly type: "object";
102
+ readonly required: readonly ["id", "name", "slug", "media_plane", "created_at", "updated_at"];
103
+ readonly properties: {
104
+ readonly id: {
105
+ readonly $ref: "#/$defs/uuid";
106
+ };
107
+ readonly name: {
108
+ readonly type: "string";
109
+ };
110
+ readonly slug: {
111
+ readonly type: "string";
112
+ };
113
+ readonly media_plane: {
114
+ readonly type: "string";
115
+ };
116
+ readonly archived_at: {
117
+ readonly $ref: "#/$defs/nullableTimestamp";
118
+ };
119
+ readonly created_at: {
120
+ readonly $ref: "#/$defs/timestamp";
121
+ };
122
+ readonly updated_at: {
123
+ readonly $ref: "#/$defs/timestamp";
124
+ };
125
+ };
126
+ readonly additionalProperties: true;
127
+ };
128
+ readonly episodeObject: {
129
+ readonly type: "object";
130
+ readonly required: readonly ["id", "space_id", "status", "started_at", "ended_at", "created_at", "updated_at"];
131
+ readonly properties: {
132
+ readonly id: {
133
+ readonly $ref: "#/$defs/uuid";
134
+ };
135
+ readonly space_id: {
136
+ readonly $ref: "#/$defs/uuid";
137
+ };
138
+ readonly status: {
139
+ readonly enum: readonly ["active", "ended"];
140
+ };
141
+ readonly started_at: {
142
+ readonly $ref: "#/$defs/timestamp";
143
+ };
144
+ readonly ended_at: {
145
+ readonly $ref: "#/$defs/nullableTimestamp";
146
+ };
147
+ readonly created_at: {
148
+ readonly $ref: "#/$defs/timestamp";
149
+ };
150
+ readonly updated_at: {
151
+ readonly $ref: "#/$defs/timestamp";
152
+ };
153
+ };
154
+ readonly additionalProperties: true;
155
+ };
156
+ readonly participantObject: {
157
+ readonly type: "object";
158
+ readonly required: readonly ["id", "identity_id", "space_id", "episode_id", "name", "status", "joined_at", "left_at"];
159
+ readonly properties: {
160
+ readonly id: {
161
+ readonly $ref: "#/$defs/uuid";
162
+ };
163
+ readonly identity_id: {
164
+ readonly $ref: "#/$defs/nullableUUID";
165
+ };
166
+ readonly space_id: {
167
+ readonly $ref: "#/$defs/uuid";
168
+ };
169
+ readonly episode_id: {
170
+ readonly $ref: "#/$defs/uuid";
171
+ };
172
+ readonly name: {
173
+ readonly type: readonly ["string", "null"];
174
+ };
175
+ readonly status: {
176
+ readonly enum: readonly ["active", "left"];
177
+ };
178
+ readonly joined_at: {
179
+ readonly $ref: "#/$defs/timestamp";
180
+ };
181
+ readonly left_at: {
182
+ readonly $ref: "#/$defs/nullableTimestamp";
183
+ };
184
+ };
185
+ readonly additionalProperties: true;
186
+ };
187
+ readonly recordingObject: {
188
+ readonly type: "object";
189
+ readonly required: readonly ["id", "space_id", "episode_id", "status", "started_at", "completed_at", "failed_at", "failure", "created_at", "updated_at"];
190
+ readonly properties: {
191
+ readonly id: {
192
+ readonly $ref: "#/$defs/uuid";
193
+ };
194
+ readonly space_id: {
195
+ readonly $ref: "#/$defs/uuid";
196
+ };
197
+ readonly episode_id: {
198
+ readonly $ref: "#/$defs/uuid";
199
+ };
200
+ readonly status: {
201
+ readonly enum: readonly ["started", "completed", "failed"];
202
+ };
203
+ readonly started_at: {
204
+ readonly $ref: "#/$defs/timestamp";
205
+ };
206
+ readonly completed_at: {
207
+ readonly $ref: "#/$defs/nullableTimestamp";
208
+ };
209
+ readonly failed_at: {
210
+ readonly $ref: "#/$defs/nullableTimestamp";
211
+ };
212
+ readonly failure: {
213
+ readonly $ref: "#/$defs/failure";
214
+ };
215
+ readonly created_at: {
216
+ readonly $ref: "#/$defs/timestamp";
217
+ };
218
+ readonly updated_at: {
219
+ readonly $ref: "#/$defs/timestamp";
220
+ };
221
+ };
222
+ readonly additionalProperties: true;
223
+ };
224
+ readonly transcriptObject: {
225
+ readonly type: "object";
226
+ readonly required: readonly ["id", "recording_id", "space_id", "episode_id", "status", "languages", "started_at", "completed_at", "failed_at", "failure", "created_at", "updated_at"];
227
+ readonly properties: {
228
+ readonly id: {
229
+ readonly $ref: "#/$defs/uuid";
230
+ };
231
+ readonly recording_id: {
232
+ readonly $ref: "#/$defs/uuid";
233
+ };
234
+ readonly space_id: {
235
+ readonly $ref: "#/$defs/uuid";
236
+ };
237
+ readonly episode_id: {
238
+ readonly $ref: "#/$defs/uuid";
239
+ };
240
+ readonly status: {
241
+ readonly enum: readonly ["started", "completed", "failed"];
242
+ };
243
+ readonly languages: {
244
+ readonly type: "array";
245
+ readonly items: {
246
+ readonly type: "string";
247
+ };
248
+ readonly uniqueItems: true;
249
+ };
250
+ readonly started_at: {
251
+ readonly $ref: "#/$defs/timestamp";
252
+ };
253
+ readonly completed_at: {
254
+ readonly $ref: "#/$defs/nullableTimestamp";
255
+ };
256
+ readonly failed_at: {
257
+ readonly $ref: "#/$defs/nullableTimestamp";
258
+ };
259
+ readonly failure: {
260
+ readonly $ref: "#/$defs/failure";
261
+ };
262
+ readonly created_at: {
263
+ readonly $ref: "#/$defs/timestamp";
264
+ };
265
+ readonly updated_at: {
266
+ readonly $ref: "#/$defs/timestamp";
267
+ };
268
+ };
269
+ readonly additionalProperties: true;
270
+ };
271
+ readonly spaceData: {
272
+ readonly type: "object";
273
+ readonly required: readonly ["object"];
274
+ readonly properties: {
275
+ readonly object: {
276
+ readonly $ref: "#/$defs/spaceObject";
277
+ };
278
+ };
279
+ readonly additionalProperties: true;
280
+ };
281
+ readonly spaceUpdatedData: {
282
+ readonly type: "object";
283
+ readonly required: readonly ["object", "changed_fields"];
284
+ readonly properties: {
285
+ readonly object: {
286
+ readonly $ref: "#/$defs/spaceObject";
287
+ };
288
+ readonly changed_fields: {
289
+ readonly type: "array";
290
+ readonly minItems: 1;
291
+ readonly uniqueItems: true;
292
+ readonly items: {
293
+ readonly enum: readonly ["admission_policy", "default_episode_duration_seconds", "linger_window_seconds", "maximum_episode_duration_seconds", "media_plane", "metadata", "name", "recurring_policy", "slug"];
294
+ };
295
+ };
296
+ };
297
+ readonly additionalProperties: true;
298
+ };
299
+ readonly episodeData: {
300
+ readonly type: "object";
301
+ readonly required: readonly ["object"];
302
+ readonly properties: {
303
+ readonly object: {
304
+ readonly $ref: "#/$defs/episodeObject";
305
+ };
306
+ };
307
+ readonly additionalProperties: true;
308
+ };
309
+ readonly participantData: {
310
+ readonly type: "object";
311
+ readonly required: readonly ["object"];
312
+ readonly properties: {
313
+ readonly object: {
314
+ readonly $ref: "#/$defs/participantObject";
315
+ };
316
+ };
317
+ readonly additionalProperties: true;
318
+ };
319
+ readonly recordingData: {
320
+ readonly type: "object";
321
+ readonly required: readonly ["object"];
322
+ readonly properties: {
323
+ readonly object: {
324
+ readonly $ref: "#/$defs/recordingObject";
325
+ };
326
+ };
327
+ readonly additionalProperties: true;
328
+ };
329
+ readonly transcriptData: {
330
+ readonly type: "object";
331
+ readonly required: readonly ["object"];
332
+ readonly properties: {
333
+ readonly object: {
334
+ readonly $ref: "#/$defs/transcriptObject";
335
+ };
336
+ };
337
+ readonly additionalProperties: true;
338
+ };
339
+ readonly spaceCreated: {
340
+ readonly $ref: "#/$defs/spaceCreatedShape";
341
+ };
342
+ readonly spaceCreatedShape: {
343
+ readonly properties: {
344
+ readonly event: {
345
+ readonly const: "space.created";
346
+ };
347
+ readonly data: {
348
+ readonly $ref: "#/$defs/spaceData";
349
+ };
350
+ };
351
+ };
352
+ readonly spaceUpdated: {
353
+ readonly properties: {
354
+ readonly event: {
355
+ readonly const: "space.updated";
356
+ };
357
+ readonly data: {
358
+ readonly $ref: "#/$defs/spaceUpdatedData";
359
+ };
360
+ };
361
+ };
362
+ readonly spaceArchived: {
363
+ readonly properties: {
364
+ readonly event: {
365
+ readonly const: "space.archived";
366
+ };
367
+ readonly data: {
368
+ readonly allOf: readonly [{
369
+ readonly $ref: "#/$defs/spaceData";
370
+ }, {
371
+ readonly properties: {
372
+ readonly object: {
373
+ readonly required: readonly ["archived_at"];
374
+ readonly properties: {
375
+ readonly archived_at: {
376
+ readonly $ref: "#/$defs/timestamp";
377
+ };
378
+ };
379
+ };
380
+ };
381
+ }];
382
+ };
383
+ };
384
+ };
385
+ readonly spaceRestored: {
386
+ readonly properties: {
387
+ readonly event: {
388
+ readonly const: "space.restored";
389
+ };
390
+ readonly data: {
391
+ readonly $ref: "#/$defs/spaceData";
392
+ };
393
+ };
394
+ };
395
+ readonly episodeStarted: {
396
+ readonly properties: {
397
+ readonly event: {
398
+ readonly const: "episode.started";
399
+ };
400
+ readonly data: {
401
+ readonly allOf: readonly [{
402
+ readonly $ref: "#/$defs/episodeData";
403
+ }, {
404
+ readonly properties: {
405
+ readonly object: {
406
+ readonly properties: {
407
+ readonly status: {
408
+ readonly const: "active";
409
+ };
410
+ readonly ended_at: {
411
+ readonly type: "null";
412
+ };
413
+ };
414
+ };
415
+ };
416
+ }];
417
+ };
418
+ };
419
+ };
420
+ readonly episodeEnded: {
421
+ readonly properties: {
422
+ readonly event: {
423
+ readonly const: "episode.ended";
424
+ };
425
+ readonly data: {
426
+ readonly allOf: readonly [{
427
+ readonly $ref: "#/$defs/episodeData";
428
+ }, {
429
+ readonly properties: {
430
+ readonly object: {
431
+ readonly properties: {
432
+ readonly status: {
433
+ readonly const: "ended";
434
+ };
435
+ readonly ended_at: {
436
+ readonly $ref: "#/$defs/timestamp";
437
+ };
438
+ };
439
+ };
440
+ };
441
+ }];
442
+ };
443
+ };
444
+ };
445
+ readonly participantJoined: {
446
+ readonly properties: {
447
+ readonly event: {
448
+ readonly const: "participant.joined";
449
+ };
450
+ readonly data: {
451
+ readonly allOf: readonly [{
452
+ readonly $ref: "#/$defs/participantData";
453
+ }, {
454
+ readonly properties: {
455
+ readonly object: {
456
+ readonly properties: {
457
+ readonly status: {
458
+ readonly const: "active";
459
+ };
460
+ readonly left_at: {
461
+ readonly type: "null";
462
+ };
463
+ };
464
+ };
465
+ };
466
+ }];
467
+ };
468
+ };
469
+ };
470
+ readonly participantLeft: {
471
+ readonly properties: {
472
+ readonly event: {
473
+ readonly const: "participant.left";
474
+ };
475
+ readonly data: {
476
+ readonly allOf: readonly [{
477
+ readonly $ref: "#/$defs/participantData";
478
+ }, {
479
+ readonly properties: {
480
+ readonly object: {
481
+ readonly properties: {
482
+ readonly status: {
483
+ readonly const: "left";
484
+ };
485
+ readonly left_at: {
486
+ readonly $ref: "#/$defs/timestamp";
487
+ };
488
+ };
489
+ };
490
+ };
491
+ }];
492
+ };
493
+ };
494
+ };
495
+ readonly recordingStarted: {
496
+ readonly properties: {
497
+ readonly event: {
498
+ readonly const: "recording.started";
499
+ };
500
+ readonly data: {
501
+ readonly allOf: readonly [{
502
+ readonly $ref: "#/$defs/recordingData";
503
+ }, {
504
+ readonly properties: {
505
+ readonly object: {
506
+ readonly properties: {
507
+ readonly status: {
508
+ readonly const: "started";
509
+ };
510
+ readonly completed_at: {
511
+ readonly type: "null";
512
+ };
513
+ readonly failed_at: {
514
+ readonly type: "null";
515
+ };
516
+ readonly failure: {
517
+ readonly type: "null";
518
+ };
519
+ };
520
+ };
521
+ };
522
+ }];
523
+ };
524
+ };
525
+ };
526
+ readonly recordingCompleted: {
527
+ readonly properties: {
528
+ readonly event: {
529
+ readonly const: "recording.completed";
530
+ };
531
+ readonly data: {
532
+ readonly allOf: readonly [{
533
+ readonly $ref: "#/$defs/recordingData";
534
+ }, {
535
+ readonly properties: {
536
+ readonly object: {
537
+ readonly properties: {
538
+ readonly status: {
539
+ readonly const: "completed";
540
+ };
541
+ readonly completed_at: {
542
+ readonly $ref: "#/$defs/timestamp";
543
+ };
544
+ readonly failed_at: {
545
+ readonly type: "null";
546
+ };
547
+ readonly failure: {
548
+ readonly type: "null";
549
+ };
550
+ };
551
+ };
552
+ };
553
+ }];
554
+ };
555
+ };
556
+ };
557
+ readonly recordingFailed: {
558
+ readonly properties: {
559
+ readonly event: {
560
+ readonly const: "recording.failed";
561
+ };
562
+ readonly data: {
563
+ readonly allOf: readonly [{
564
+ readonly $ref: "#/$defs/recordingData";
565
+ }, {
566
+ readonly properties: {
567
+ readonly object: {
568
+ readonly properties: {
569
+ readonly status: {
570
+ readonly const: "failed";
571
+ };
572
+ readonly completed_at: {
573
+ readonly type: "null";
574
+ };
575
+ readonly failed_at: {
576
+ readonly $ref: "#/$defs/timestamp";
577
+ };
578
+ readonly failure: {
579
+ readonly type: "object";
580
+ };
581
+ };
582
+ };
583
+ };
584
+ }];
585
+ };
586
+ };
587
+ };
588
+ readonly transcriptStarted: {
589
+ readonly properties: {
590
+ readonly event: {
591
+ readonly const: "transcript.started";
592
+ };
593
+ readonly data: {
594
+ readonly allOf: readonly [{
595
+ readonly $ref: "#/$defs/transcriptData";
596
+ }, {
597
+ readonly properties: {
598
+ readonly object: {
599
+ readonly properties: {
600
+ readonly status: {
601
+ readonly const: "started";
602
+ };
603
+ readonly completed_at: {
604
+ readonly type: "null";
605
+ };
606
+ readonly failed_at: {
607
+ readonly type: "null";
608
+ };
609
+ readonly failure: {
610
+ readonly type: "null";
611
+ };
612
+ };
613
+ };
614
+ };
615
+ }];
616
+ };
617
+ };
618
+ };
619
+ readonly transcriptCompleted: {
620
+ readonly properties: {
621
+ readonly event: {
622
+ readonly const: "transcript.completed";
623
+ };
624
+ readonly data: {
625
+ readonly allOf: readonly [{
626
+ readonly $ref: "#/$defs/transcriptData";
627
+ }, {
628
+ readonly properties: {
629
+ readonly object: {
630
+ readonly properties: {
631
+ readonly status: {
632
+ readonly const: "completed";
633
+ };
634
+ readonly completed_at: {
635
+ readonly $ref: "#/$defs/timestamp";
636
+ };
637
+ readonly failed_at: {
638
+ readonly type: "null";
639
+ };
640
+ readonly failure: {
641
+ readonly type: "null";
642
+ };
643
+ };
644
+ };
645
+ };
646
+ }];
647
+ };
648
+ };
649
+ };
650
+ readonly transcriptFailed: {
651
+ readonly properties: {
652
+ readonly event: {
653
+ readonly const: "transcript.failed";
654
+ };
655
+ readonly data: {
656
+ readonly allOf: readonly [{
657
+ readonly $ref: "#/$defs/transcriptData";
658
+ }, {
659
+ readonly properties: {
660
+ readonly object: {
661
+ readonly properties: {
662
+ readonly status: {
663
+ readonly const: "failed";
664
+ };
665
+ readonly completed_at: {
666
+ readonly type: "null";
667
+ };
668
+ readonly failed_at: {
669
+ readonly $ref: "#/$defs/timestamp";
670
+ };
671
+ readonly failure: {
672
+ readonly type: "object";
673
+ };
674
+ };
675
+ };
676
+ };
677
+ }];
678
+ };
679
+ };
680
+ };
681
+ readonly endpointTest: {
682
+ readonly properties: {
683
+ readonly event: {
684
+ readonly const: "endpoint.test";
685
+ };
686
+ readonly data: {
687
+ readonly type: "object";
688
+ readonly required: readonly ["object"];
689
+ readonly properties: {
690
+ readonly object: {
691
+ readonly type: "object";
692
+ readonly required: readonly ["endpoint_id"];
693
+ readonly properties: {
694
+ readonly endpoint_id: {
695
+ readonly $ref: "#/$defs/uuid";
696
+ };
697
+ };
698
+ readonly additionalProperties: true;
699
+ };
700
+ };
701
+ readonly additionalProperties: true;
702
+ };
703
+ };
704
+ };
705
+ };
706
+ };
707
+ export declare const knownWebhookEventNamesV1: readonly ["space.created", "space.updated", "space.archived", "space.restored", "episode.started", "episode.ended", "participant.joined", "participant.left", "recording.started", "recording.completed", "recording.failed", "transcript.started", "transcript.completed", "transcript.failed", "endpoint.test"];
708
+ export type KnownWebhookEventNameV1 = (typeof knownWebhookEventNamesV1)[number];
709
+ type JsonObject = Readonly<Record<string, unknown>>;
710
+ type Defs = typeof webhookEventSchemaV1.$defs;
711
+ type RefName<Ref extends string> = Ref extends `#/$defs/${infer Name}` ? Name : never;
712
+ type ResolveRef<Ref extends string> = RefName<Ref> extends keyof Defs ? SchemaType<Defs[RefName<Ref>]> : unknown;
713
+ type RequiredKeys<Schema> = Schema extends {
714
+ readonly required: readonly (infer Key extends string)[];
715
+ } ? Key : never;
716
+ type PropertiesType<Schema extends {
717
+ readonly properties: Readonly<Record<string, unknown>>;
718
+ }> = {
719
+ readonly [Key in keyof Schema["properties"] as Key extends RequiredKeys<Schema> ? Key : never]-?: SchemaType<Schema["properties"][Key]>;
720
+ } & {
721
+ readonly [Key in keyof Schema["properties"] as Key extends RequiredKeys<Schema> ? never : Key]?: SchemaType<Schema["properties"][Key]>;
722
+ } & JsonObject;
723
+ type TypeName<Value> = Value extends "string" ? string : Value extends "number" | "integer" ? number : Value extends "boolean" ? boolean : Value extends "null" ? null : Value extends "array" ? readonly unknown[] : Value extends "object" ? JsonObject : unknown;
724
+ type TypeNames<Values> = Values extends readonly (infer Value)[] ? TypeName<Value> : TypeName<Values>;
725
+ type SchemaBase<Schema> = Schema extends {
726
+ readonly $ref: infer Ref extends string;
727
+ } ? ResolveRef<Ref> : Schema extends {
728
+ readonly const: infer Value;
729
+ } ? Value : Schema extends {
730
+ readonly enum: readonly (infer Value)[];
731
+ } ? Value : Schema extends {
732
+ readonly properties: Readonly<Record<string, unknown>>;
733
+ } ? PropertiesType<Schema> : Schema extends {
734
+ readonly type: "array";
735
+ readonly items: infer Item;
736
+ } ? readonly SchemaType<Item>[] : Schema extends {
737
+ readonly type: infer Type;
738
+ } ? TypeNames<Type> : unknown;
739
+ type SchemaBranches<Schema> = Schema extends {
740
+ readonly oneOf: readonly (infer Branch)[];
741
+ } ? SchemaType<Branch> : unknown;
742
+ type SchemaAllOf<Schema> = Schema extends {
743
+ readonly allOf: readonly [infer First, ...infer Rest];
744
+ } ? SchemaType<First> & SchemaAllOf<{
745
+ readonly allOf: Rest;
746
+ }> : unknown;
747
+ export type SchemaType<Schema> = SchemaBase<Schema> & SchemaBranches<Schema> & SchemaAllOf<Schema>;
748
+ export type KnownWebhookEventV1 = SchemaType<typeof webhookEventSchemaV1>;
749
+ export type SpaceWebhookEvent = Extract<KnownWebhookEventV1, {
750
+ readonly event: `space.${string}`;
751
+ }>;
752
+ export type ParticipantWebhookEvent = Extract<KnownWebhookEventV1, {
753
+ readonly event: `participant.${string}`;
754
+ }>;
755
+ export type RecordingWebhookEvent = Extract<KnownWebhookEventV1, {
756
+ readonly event: `recording.${string}`;
757
+ }>;
758
+ export type TranscriptWebhookEvent = Extract<KnownWebhookEventV1, {
759
+ readonly event: `transcript.${string}`;
760
+ }>;
761
+ export type EndpointTestWebhookEvent = Extract<KnownWebhookEventV1, {
762
+ readonly event: "endpoint.test";
763
+ }>;
764
+ export {};