@distilled.cloud/cloudflare 0.6.1 → 0.7.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 (261) hide show
  1. package/lib/services/accounts.d.ts +901 -36
  2. package/lib/services/accounts.d.ts.map +1 -1
  3. package/lib/services/accounts.js +1386 -32
  4. package/lib/services/accounts.js.map +1 -1
  5. package/lib/services/addressing.d.ts +8 -2
  6. package/lib/services/addressing.d.ts.map +1 -1
  7. package/lib/services/addressing.js +14 -2
  8. package/lib/services/addressing.js.map +1 -1
  9. package/lib/services/ai-gateway.d.ts.map +1 -1
  10. package/lib/services/ai-gateway.js +7 -7
  11. package/lib/services/ai-gateway.js.map +1 -1
  12. package/lib/services/aisearch.d.ts.map +1 -1
  13. package/lib/services/aisearch.js +24 -9
  14. package/lib/services/aisearch.js.map +1 -1
  15. package/lib/services/alerting.js +2 -2
  16. package/lib/services/alerting.js.map +1 -1
  17. package/lib/services/api-gateway.d.ts +114 -16
  18. package/lib/services/api-gateway.d.ts.map +1 -1
  19. package/lib/services/api-gateway.js +187 -15
  20. package/lib/services/api-gateway.js.map +1 -1
  21. package/lib/services/audit-logs.d.ts +63 -3
  22. package/lib/services/audit-logs.d.ts.map +1 -1
  23. package/lib/services/audit-logs.js +62 -3
  24. package/lib/services/audit-logs.js.map +1 -1
  25. package/lib/services/bot-management.d.ts +54 -8
  26. package/lib/services/bot-management.d.ts.map +1 -1
  27. package/lib/services/bot-management.js +128 -16
  28. package/lib/services/bot-management.js.map +1 -1
  29. package/lib/services/brand-protection.d.ts.map +1 -1
  30. package/lib/services/brand-protection.js +26 -8
  31. package/lib/services/brand-protection.js.map +1 -1
  32. package/lib/services/browser-rendering.d.ts.map +1 -1
  33. package/lib/services/browser-rendering.js +13 -10
  34. package/lib/services/browser-rendering.js.map +1 -1
  35. package/lib/services/cloudforce-one.d.ts +61 -6
  36. package/lib/services/cloudforce-one.d.ts.map +1 -1
  37. package/lib/services/cloudforce-one.js +107 -6
  38. package/lib/services/cloudforce-one.js.map +1 -1
  39. package/lib/services/custom-certificates.d.ts +145 -8
  40. package/lib/services/custom-certificates.d.ts.map +1 -1
  41. package/lib/services/custom-certificates.js +226 -7
  42. package/lib/services/custom-certificates.js.map +1 -1
  43. package/lib/services/custom-hostnames.d.ts +8 -8
  44. package/lib/services/custom-hostnames.d.ts.map +1 -1
  45. package/lib/services/custom-hostnames.js +17 -14
  46. package/lib/services/custom-hostnames.js.map +1 -1
  47. package/lib/services/d1.d.ts +68 -8
  48. package/lib/services/d1.d.ts.map +1 -1
  49. package/lib/services/d1.js +96 -8
  50. package/lib/services/d1.js.map +1 -1
  51. package/lib/services/dns-firewall.d.ts +57 -4
  52. package/lib/services/dns-firewall.d.ts.map +1 -1
  53. package/lib/services/dns-firewall.js +86 -5
  54. package/lib/services/dns-firewall.js.map +1 -1
  55. package/lib/services/dns.d.ts +85 -745
  56. package/lib/services/dns.d.ts.map +1 -1
  57. package/lib/services/dns.js +118 -1424
  58. package/lib/services/dns.js.map +1 -1
  59. package/lib/services/email-routing.d.ts +59 -7
  60. package/lib/services/email-routing.d.ts.map +1 -1
  61. package/lib/services/email-routing.js +165 -7
  62. package/lib/services/email-routing.js.map +1 -1
  63. package/lib/services/firewall.d.ts +228 -39
  64. package/lib/services/firewall.d.ts.map +1 -1
  65. package/lib/services/firewall.js +220 -33
  66. package/lib/services/firewall.js.map +1 -1
  67. package/lib/services/healthchecks.d.ts +112 -6
  68. package/lib/services/healthchecks.d.ts.map +1 -1
  69. package/lib/services/healthchecks.js +248 -14
  70. package/lib/services/healthchecks.js.map +1 -1
  71. package/lib/services/hostnames.d.ts +5 -5
  72. package/lib/services/hostnames.d.ts.map +1 -1
  73. package/lib/services/hostnames.js +16 -4
  74. package/lib/services/hostnames.js.map +1 -1
  75. package/lib/services/hyperdrive.d.ts +223 -11
  76. package/lib/services/hyperdrive.d.ts.map +1 -1
  77. package/lib/services/hyperdrive.js +351 -11
  78. package/lib/services/hyperdrive.js.map +1 -1
  79. package/lib/services/iam.d.ts +62 -2
  80. package/lib/services/iam.d.ts.map +1 -1
  81. package/lib/services/iam.js +82 -11
  82. package/lib/services/iam.js.map +1 -1
  83. package/lib/services/images.d.ts +9 -1
  84. package/lib/services/images.d.ts.map +1 -1
  85. package/lib/services/images.js +12 -1
  86. package/lib/services/images.js.map +1 -1
  87. package/lib/services/intel.d.ts +4 -4
  88. package/lib/services/intel.d.ts.map +1 -1
  89. package/lib/services/intel.js +2 -3
  90. package/lib/services/intel.js.map +1 -1
  91. package/lib/services/kv.d.ts.map +1 -1
  92. package/lib/services/kv.js +2 -2
  93. package/lib/services/kv.js.map +1 -1
  94. package/lib/services/load-balancers.d.ts +537 -108
  95. package/lib/services/load-balancers.d.ts.map +1 -1
  96. package/lib/services/load-balancers.js +1266 -161
  97. package/lib/services/load-balancers.js.map +1 -1
  98. package/lib/services/logpush.d.ts +153 -9
  99. package/lib/services/logpush.d.ts.map +1 -1
  100. package/lib/services/logpush.js +246 -9
  101. package/lib/services/logpush.js.map +1 -1
  102. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  103. package/lib/services/magic-cloud-networking.js +54 -30
  104. package/lib/services/magic-cloud-networking.js.map +1 -1
  105. package/lib/services/magic-network-monitoring.d.ts +46 -5
  106. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  107. package/lib/services/magic-network-monitoring.js +79 -5
  108. package/lib/services/magic-network-monitoring.js.map +1 -1
  109. package/lib/services/magic-transit.d.ts +127 -21
  110. package/lib/services/magic-transit.d.ts.map +1 -1
  111. package/lib/services/magic-transit.js +291 -29
  112. package/lib/services/magic-transit.js.map +1 -1
  113. package/lib/services/memberships.d.ts +248 -52
  114. package/lib/services/memberships.d.ts.map +1 -1
  115. package/lib/services/memberships.js +360 -39
  116. package/lib/services/memberships.js.map +1 -1
  117. package/lib/services/page-rules.d.ts +432 -8
  118. package/lib/services/page-rules.d.ts.map +1 -1
  119. package/lib/services/page-rules.js +877 -33
  120. package/lib/services/page-rules.js.map +1 -1
  121. package/lib/services/pages.d.ts +457 -297
  122. package/lib/services/pages.d.ts.map +1 -1
  123. package/lib/services/pages.js +1366 -491
  124. package/lib/services/pages.js.map +1 -1
  125. package/lib/services/pipelines.d.ts +96 -76
  126. package/lib/services/pipelines.d.ts.map +1 -1
  127. package/lib/services/pipelines.js +145 -197
  128. package/lib/services/pipelines.js.map +1 -1
  129. package/lib/services/queues.d.ts +228 -12
  130. package/lib/services/queues.d.ts.map +1 -1
  131. package/lib/services/queues.js +487 -11
  132. package/lib/services/queues.js.map +1 -1
  133. package/lib/services/radar.d.ts +82 -18
  134. package/lib/services/radar.d.ts.map +1 -1
  135. package/lib/services/radar.js +111 -47
  136. package/lib/services/radar.js.map +1 -1
  137. package/lib/services/realtime-kit.d.ts +650 -334
  138. package/lib/services/realtime-kit.d.ts.map +1 -1
  139. package/lib/services/realtime-kit.js +1472 -693
  140. package/lib/services/realtime-kit.js.map +1 -1
  141. package/lib/services/request-tracers.d.ts +12 -1
  142. package/lib/services/request-tracers.d.ts.map +1 -1
  143. package/lib/services/request-tracers.js +28 -3
  144. package/lib/services/request-tracers.js.map +1 -1
  145. package/lib/services/rules.d.ts +65 -10
  146. package/lib/services/rules.d.ts.map +1 -1
  147. package/lib/services/rules.js +102 -8
  148. package/lib/services/rules.js.map +1 -1
  149. package/lib/services/rulesets.d.ts +7892 -1806
  150. package/lib/services/rulesets.d.ts.map +1 -1
  151. package/lib/services/rulesets.js +18720 -4149
  152. package/lib/services/rulesets.js.map +1 -1
  153. package/lib/services/rum.d.ts +45 -5
  154. package/lib/services/rum.d.ts.map +1 -1
  155. package/lib/services/rum.js +80 -4
  156. package/lib/services/rum.js.map +1 -1
  157. package/lib/services/schema-validation.js +2 -2
  158. package/lib/services/schema-validation.js.map +1 -1
  159. package/lib/services/spectrum.d.ts +139 -33
  160. package/lib/services/spectrum.d.ts.map +1 -1
  161. package/lib/services/spectrum.js +190 -34
  162. package/lib/services/spectrum.js.map +1 -1
  163. package/lib/services/speed.d.ts +345 -24
  164. package/lib/services/speed.d.ts.map +1 -1
  165. package/lib/services/speed.js +785 -19
  166. package/lib/services/speed.js.map +1 -1
  167. package/lib/services/ssl.d.ts +6 -6
  168. package/lib/services/ssl.d.ts.map +1 -1
  169. package/lib/services/ssl.js +5 -5
  170. package/lib/services/ssl.js.map +1 -1
  171. package/lib/services/stream.d.ts +171 -17
  172. package/lib/services/stream.d.ts.map +1 -1
  173. package/lib/services/stream.js +164 -11
  174. package/lib/services/stream.js.map +1 -1
  175. package/lib/services/token-validation.d.ts +16 -2
  176. package/lib/services/token-validation.d.ts.map +1 -1
  177. package/lib/services/token-validation.js +32 -2
  178. package/lib/services/token-validation.js.map +1 -1
  179. package/lib/services/url-scanner.d.ts +43 -11
  180. package/lib/services/url-scanner.d.ts.map +1 -1
  181. package/lib/services/url-scanner.js +46 -11
  182. package/lib/services/url-scanner.js.map +1 -1
  183. package/lib/services/user.d.ts +312 -21
  184. package/lib/services/user.d.ts.map +1 -1
  185. package/lib/services/user.js +442 -19
  186. package/lib/services/user.js.map +1 -1
  187. package/lib/services/workers-for-platforms.d.ts +223 -13
  188. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  189. package/lib/services/workers-for-platforms.js +481 -13
  190. package/lib/services/workers-for-platforms.js.map +1 -1
  191. package/lib/services/workers.d.ts +345 -31
  192. package/lib/services/workers.d.ts.map +1 -1
  193. package/lib/services/workers.js +649 -34
  194. package/lib/services/workers.js.map +1 -1
  195. package/lib/services/zaraz.d.ts +212 -11
  196. package/lib/services/zaraz.d.ts.map +1 -1
  197. package/lib/services/zaraz.js +311 -30
  198. package/lib/services/zaraz.js.map +1 -1
  199. package/lib/services/zero-trust.d.ts +19333 -1905
  200. package/lib/services/zero-trust.d.ts.map +1 -1
  201. package/lib/services/zero-trust.js +30269 -5710
  202. package/lib/services/zero-trust.js.map +1 -1
  203. package/lib/services/zones.d.ts +61 -7
  204. package/lib/services/zones.d.ts.map +1 -1
  205. package/lib/services/zones.js +188 -7
  206. package/lib/services/zones.js.map +1 -1
  207. package/package.json +2 -2
  208. package/src/services/accounts.ts +2897 -63
  209. package/src/services/addressing.ts +28 -4
  210. package/src/services/ai-gateway.ts +9 -7
  211. package/src/services/aisearch.ts +28 -9
  212. package/src/services/alerting.ts +2 -2
  213. package/src/services/api-gateway.ts +410 -27
  214. package/src/services/audit-logs.ts +135 -5
  215. package/src/services/bot-management.ts +282 -24
  216. package/src/services/brand-protection.ts +28 -8
  217. package/src/services/browser-rendering.ts +31 -11
  218. package/src/services/cloudforce-one.ts +201 -9
  219. package/src/services/custom-certificates.ts +405 -14
  220. package/src/services/custom-hostnames.ts +29 -22
  221. package/src/services/d1.ts +180 -12
  222. package/src/services/dns-firewall.ts +163 -7
  223. package/src/services/dns.ts +213 -2389
  224. package/src/services/email-routing.ts +346 -12
  225. package/src/services/firewall.ts +556 -72
  226. package/src/services/healthchecks.ts +463 -18
  227. package/src/services/hostnames.ts +21 -9
  228. package/src/services/hyperdrive.ts +730 -17
  229. package/src/services/iam.ts +228 -24
  230. package/src/services/images.ts +29 -2
  231. package/src/services/intel.ts +6 -5
  232. package/src/services/kv.ts +6 -2
  233. package/src/services/load-balancers.ts +2387 -294
  234. package/src/services/logpush.ts +659 -15
  235. package/src/services/magic-cloud-networking.ts +74 -30
  236. package/src/services/magic-network-monitoring.ts +170 -8
  237. package/src/services/magic-transit.ts +631 -62
  238. package/src/services/memberships.ts +710 -91
  239. package/src/services/page-rules.ts +1592 -88
  240. package/src/services/pages.ts +2011 -1098
  241. package/src/services/pipelines.ts +285 -331
  242. package/src/services/queues.ts +1110 -22
  243. package/src/services/radar.ts +128 -64
  244. package/src/services/realtime-kit.ts +2829 -1603
  245. package/src/services/request-tracers.ts +54 -4
  246. package/src/services/rules.ts +214 -18
  247. package/src/services/rulesets.ts +34524 -6913
  248. package/src/services/rum.ts +187 -9
  249. package/src/services/schema-validation.ts +2 -2
  250. package/src/services/spectrum.ts +357 -67
  251. package/src/services/speed.ts +1845 -42
  252. package/src/services/ssl.ts +11 -11
  253. package/src/services/stream.ts +397 -22
  254. package/src/services/token-validation.ts +64 -4
  255. package/src/services/url-scanner.ts +92 -20
  256. package/src/services/user.ts +973 -34
  257. package/src/services/workers-for-platforms.ts +1012 -39
  258. package/src/services/workers.ts +1472 -120
  259. package/src/services/zaraz.ts +640 -37
  260. package/src/services/zero-trust.ts +55498 -12667
  261. package/src/services/zones.ts +360 -14
@@ -56,13 +56,13 @@ export const GetActiveLivestreamsForLivestreamIdLivestreamResponse =
56
56
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
57
57
  createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
58
58
  errMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
59
- ingestSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
59
+ ingestSeconds: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
60
60
  invokedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
61
61
  livestreamId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
62
62
  startedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
63
63
  stoppedTime: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
64
64
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
65
- viewerSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
65
+ viewerSeconds: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
66
66
  }).pipe(Schema.encodeKeys({
67
67
  id: "id",
68
68
  createdAt: "created_at",
@@ -928,7 +928,6 @@ export const CreateMeetingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
928
928
  "gcs",
929
929
  "sftp",
930
930
  ]),
931
- accessKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
932
931
  authMethod: Schema.optional(Schema.Union([
933
932
  Schema.Literals(["KEY", "PASSWORD"]),
934
933
  Schema.Null,
@@ -944,7 +943,6 @@ export const CreateMeetingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
944
943
  username: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
945
944
  }).pipe(Schema.encodeKeys({
946
945
  type: "type",
947
- accessKey: "access_key",
948
946
  authMethod: "auth_method",
949
947
  bucket: "bucket",
950
948
  host: "host",
@@ -1208,7 +1206,6 @@ export const GetMeetingByIdMeetingResponse =
1208
1206
  "gcs",
1209
1207
  "sftp",
1210
1208
  ]),
1211
- accessKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1212
1209
  authMethod: Schema.optional(Schema.Union([
1213
1210
  Schema.Literals(["KEY", "PASSWORD"]),
1214
1211
  Schema.Null,
@@ -1224,7 +1221,6 @@ export const GetMeetingByIdMeetingResponse =
1224
1221
  username: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1225
1222
  }).pipe(Schema.encodeKeys({
1226
1223
  type: "type",
1227
- accessKey: "access_key",
1228
1224
  authMethod: "auth_method",
1229
1225
  bucket: "bucket",
1230
1226
  host: "host",
@@ -1500,7 +1496,6 @@ export const UpdateMeetingByIdMeetingResponse =
1500
1496
  "gcs",
1501
1497
  "sftp",
1502
1498
  ]),
1503
- accessKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1504
1499
  authMethod: Schema.optional(Schema.Union([
1505
1500
  Schema.Literals(["KEY", "PASSWORD"]),
1506
1501
  Schema.Null,
@@ -1516,7 +1511,6 @@ export const UpdateMeetingByIdMeetingResponse =
1516
1511
  username: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1517
1512
  }).pipe(Schema.encodeKeys({
1518
1513
  type: "type",
1519
- accessKey: "access_key",
1520
1514
  authMethod: "auth_method",
1521
1515
  bucket: "bucket",
1522
1516
  host: "host",
@@ -1879,7 +1873,6 @@ export const ReplaceMeetingByIdMeetingResponse =
1879
1873
  "gcs",
1880
1874
  "sftp",
1881
1875
  ]),
1882
- accessKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1883
1876
  authMethod: Schema.optional(Schema.Union([
1884
1877
  Schema.Literals(["KEY", "PASSWORD"]),
1885
1878
  Schema.Null,
@@ -1895,7 +1888,6 @@ export const ReplaceMeetingByIdMeetingResponse =
1895
1888
  username: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1896
1889
  }).pipe(Schema.encodeKeys({
1897
1890
  type: "type",
1898
- accessKey: "access_key",
1899
1891
  authMethod: "auth_method",
1900
1892
  bucket: "bucket",
1901
1893
  host: "host",
@@ -2426,7 +2418,757 @@ export const GetParticipantDataFromPeerIdSessionResponse =
2426
2418
  duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2427
2419
  joinedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2428
2420
  leftAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2429
- presetName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2421
+ peerReport: Schema.optional(Schema.Union([
2422
+ Schema.Struct({
2423
+ metadata: Schema.optional(Schema.Union([
2424
+ Schema.Struct({
2425
+ audioDevicesUpdates: Schema.optional(Schema.Union([
2426
+ Schema.Array(Schema.Unknown),
2427
+ Schema.Null,
2428
+ ])),
2429
+ browserMetadata: Schema.optional(Schema.Union([
2430
+ Schema.Struct({
2431
+ browser: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2432
+ browserVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2433
+ engine: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2434
+ userAgent: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2435
+ webglSupport: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2436
+ }).pipe(Schema.encodeKeys({
2437
+ browser: "browser",
2438
+ browserVersion: "browser_version",
2439
+ engine: "engine",
2440
+ userAgent: "user_agent",
2441
+ webglSupport: "webgl_support",
2442
+ })),
2443
+ Schema.Null,
2444
+ ])),
2445
+ candidatePairs: Schema.optional(Schema.Union([
2446
+ Schema.Struct({
2447
+ consumingTransport: Schema.optional(Schema.Union([
2448
+ Schema.Array(Schema.Unknown),
2449
+ Schema.Null,
2450
+ ])),
2451
+ producingTransport: Schema.optional(Schema.Union([
2452
+ Schema.Array(Schema.Struct({
2453
+ availableOutgoingBitrate: Schema.optional(Schema.Union([
2454
+ Schema.Number,
2455
+ Schema.Null,
2456
+ ])),
2457
+ bytesDiscardedOnSend: Schema.optional(Schema.Union([
2458
+ Schema.Number,
2459
+ Schema.Null,
2460
+ ])),
2461
+ bytesReceived: Schema.optional(Schema.Union([
2462
+ Schema.Number,
2463
+ Schema.Null,
2464
+ ])),
2465
+ bytesSent: Schema.optional(Schema.Union([
2466
+ Schema.Number,
2467
+ Schema.Null,
2468
+ ])),
2469
+ currentRoundTripTime: Schema.optional(Schema.Union([
2470
+ Schema.Number,
2471
+ Schema.Null,
2472
+ ])),
2473
+ lastPacketReceivedTimestamp: Schema.optional(Schema.Union([
2474
+ Schema.Number,
2475
+ Schema.Null,
2476
+ ])),
2477
+ lastPacketSentTimestamp: Schema.optional(Schema.Union([
2478
+ Schema.Number,
2479
+ Schema.Null,
2480
+ ])),
2481
+ localCandidateAddress: Schema.optional(Schema.Union([
2482
+ Schema.String,
2483
+ Schema.Null,
2484
+ ])),
2485
+ localCandidateId: Schema.optional(Schema.Union([
2486
+ Schema.String,
2487
+ Schema.Null,
2488
+ ])),
2489
+ localCandidateNetworkType: Schema.optional(Schema.Union([
2490
+ Schema.String,
2491
+ Schema.Null,
2492
+ ])),
2493
+ localCandidatePort: Schema.optional(Schema.Union([
2494
+ Schema.Number,
2495
+ Schema.Null,
2496
+ ])),
2497
+ localCandidateProtocol: Schema.optional(Schema.Union([
2498
+ Schema.String,
2499
+ Schema.Null,
2500
+ ])),
2501
+ localCandidateRelatedAddress: Schema.optional(Schema.Union([
2502
+ Schema.String,
2503
+ Schema.Null,
2504
+ ])),
2505
+ localCandidateRelatedPort: Schema.optional(Schema.Union([
2506
+ Schema.Number,
2507
+ Schema.Null,
2508
+ ])),
2509
+ localCandidateType: Schema.optional(Schema.Union([
2510
+ Schema.String,
2511
+ Schema.Null,
2512
+ ])),
2513
+ nominated: Schema.optional(Schema.Union([
2514
+ Schema.Boolean,
2515
+ Schema.Null,
2516
+ ])),
2517
+ packetsDiscardedOnSend: Schema.optional(Schema.Union([
2518
+ Schema.Number,
2519
+ Schema.Null,
2520
+ ])),
2521
+ packetsReceived: Schema.optional(Schema.Union([
2522
+ Schema.Number,
2523
+ Schema.Null,
2524
+ ])),
2525
+ packetsSent: Schema.optional(Schema.Union([
2526
+ Schema.Number,
2527
+ Schema.Null,
2528
+ ])),
2529
+ remoteCandidateAddress: Schema.optional(Schema.Union([
2530
+ Schema.String,
2531
+ Schema.Null,
2532
+ ])),
2533
+ remoteCandidateId: Schema.optional(Schema.Union([
2534
+ Schema.String,
2535
+ Schema.Null,
2536
+ ])),
2537
+ remoteCandidatePort: Schema.optional(Schema.Union([
2538
+ Schema.Number,
2539
+ Schema.Null,
2540
+ ])),
2541
+ remoteCandidateProtocol: Schema.optional(Schema.Union([
2542
+ Schema.String,
2543
+ Schema.Null,
2544
+ ])),
2545
+ remoteCandidateType: Schema.optional(Schema.Union([
2546
+ Schema.String,
2547
+ Schema.Null,
2548
+ ])),
2549
+ totalRoundTripTime: Schema.optional(Schema.Union([
2550
+ Schema.Number,
2551
+ Schema.Null,
2552
+ ])),
2553
+ }).pipe(Schema.encodeKeys({
2554
+ availableOutgoingBitrate: "available_outgoing_bitrate",
2555
+ bytesDiscardedOnSend: "bytes_discarded_on_send",
2556
+ bytesReceived: "bytes_received",
2557
+ bytesSent: "bytes_sent",
2558
+ currentRoundTripTime: "current_round_trip_time",
2559
+ lastPacketReceivedTimestamp: "last_packet_received_timestamp",
2560
+ lastPacketSentTimestamp: "last_packet_sent_timestamp",
2561
+ localCandidateAddress: "local_candidate_address",
2562
+ localCandidateId: "local_candidate_id",
2563
+ localCandidateNetworkType: "local_candidate_network_type",
2564
+ localCandidatePort: "local_candidate_port",
2565
+ localCandidateProtocol: "local_candidate_protocol",
2566
+ localCandidateRelatedAddress: "local_candidate_related_address",
2567
+ localCandidateRelatedPort: "local_candidate_related_port",
2568
+ localCandidateType: "local_candidate_type",
2569
+ nominated: "nominated",
2570
+ packetsDiscardedOnSend: "packets_discarded_on_send",
2571
+ packetsReceived: "packets_received",
2572
+ packetsSent: "packets_sent",
2573
+ remoteCandidateAddress: "remote_candidate_address",
2574
+ remoteCandidateId: "remote_candidate_id",
2575
+ remoteCandidatePort: "remote_candidate_port",
2576
+ remoteCandidateProtocol: "remote_candidate_protocol",
2577
+ remoteCandidateType: "remote_candidate_type",
2578
+ totalRoundTripTime: "total_round_trip_time",
2579
+ }))),
2580
+ Schema.Null,
2581
+ ])),
2582
+ }).pipe(Schema.encodeKeys({
2583
+ consumingTransport: "consuming_transport",
2584
+ producingTransport: "producing_transport",
2585
+ })),
2586
+ Schema.Null,
2587
+ ])),
2588
+ deviceInfo: Schema.optional(Schema.Union([
2589
+ Schema.Struct({
2590
+ cpus: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2591
+ isMobile: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2592
+ os: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2593
+ osVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2594
+ }).pipe(Schema.encodeKeys({
2595
+ cpus: "cpus",
2596
+ isMobile: "is_mobile",
2597
+ os: "os",
2598
+ osVersion: "os_version",
2599
+ })),
2600
+ Schema.Null,
2601
+ ])),
2602
+ events: Schema.optional(Schema.Union([
2603
+ Schema.Array(Schema.Struct({
2604
+ name: Schema.optional(Schema.Union([
2605
+ Schema.String,
2606
+ Schema.Null,
2607
+ ])),
2608
+ timestamp: Schema.optional(Schema.Union([
2609
+ Schema.String,
2610
+ Schema.Null,
2611
+ ])),
2612
+ })),
2613
+ Schema.Null,
2614
+ ])),
2615
+ ipInformation: Schema.optional(Schema.Union([
2616
+ Schema.Struct({
2617
+ asn: Schema.optional(Schema.Union([
2618
+ Schema.Struct({
2619
+ asn: Schema.optional(Schema.Union([
2620
+ Schema.String,
2621
+ Schema.Null,
2622
+ ])),
2623
+ }),
2624
+ Schema.Null,
2625
+ ])),
2626
+ city: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2627
+ country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2628
+ ipv4: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2629
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2630
+ timezone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2631
+ }),
2632
+ Schema.Null,
2633
+ ])),
2634
+ pcMetadata: Schema.optional(Schema.Union([
2635
+ Schema.Array(Schema.Struct({
2636
+ effectiveNetworkType: Schema.optional(Schema.Union([
2637
+ Schema.String,
2638
+ Schema.Null,
2639
+ ])),
2640
+ reflexiveConnectivity: Schema.optional(Schema.Union([
2641
+ Schema.Boolean,
2642
+ Schema.Null,
2643
+ ])),
2644
+ relayConnectivity: Schema.optional(Schema.Union([
2645
+ Schema.Boolean,
2646
+ Schema.Null,
2647
+ ])),
2648
+ timestamp: Schema.optional(Schema.Union([
2649
+ Schema.String,
2650
+ Schema.Null,
2651
+ ])),
2652
+ turnConnectivity: Schema.optional(Schema.Union([
2653
+ Schema.Boolean,
2654
+ Schema.Null,
2655
+ ])),
2656
+ }).pipe(Schema.encodeKeys({
2657
+ effectiveNetworkType: "effective_network_type",
2658
+ reflexiveConnectivity: "reflexive_connectivity",
2659
+ relayConnectivity: "relay_connectivity",
2660
+ timestamp: "timestamp",
2661
+ turnConnectivity: "turn_connectivity",
2662
+ }))),
2663
+ Schema.Null,
2664
+ ])),
2665
+ roomViewType: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2666
+ sdkName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2667
+ sdkVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2668
+ selectedDeviceUpdates: Schema.optional(Schema.Union([
2669
+ Schema.Array(Schema.Unknown),
2670
+ Schema.Null,
2671
+ ])),
2672
+ speakerDevicesUpdates: Schema.optional(Schema.Union([
2673
+ Schema.Array(Schema.Unknown),
2674
+ Schema.Null,
2675
+ ])),
2676
+ videoDevicesUpdates: Schema.optional(Schema.Union([
2677
+ Schema.Array(Schema.Unknown),
2678
+ Schema.Null,
2679
+ ])),
2680
+ }).pipe(Schema.encodeKeys({
2681
+ audioDevicesUpdates: "audio_devices_updates",
2682
+ browserMetadata: "browser_metadata",
2683
+ candidatePairs: "candidate_pairs",
2684
+ deviceInfo: "device_info",
2685
+ events: "events",
2686
+ ipInformation: "ip_information",
2687
+ pcMetadata: "pc_metadata",
2688
+ roomViewType: "room_view_type",
2689
+ sdkName: "sdk_name",
2690
+ sdkVersion: "sdk_version",
2691
+ selectedDeviceUpdates: "selected_device_updates",
2692
+ speakerDevicesUpdates: "speaker_devices_updates",
2693
+ videoDevicesUpdates: "video_devices_updates",
2694
+ })),
2695
+ Schema.Null,
2696
+ ])),
2697
+ quality: Schema.optional(Schema.Union([
2698
+ Schema.Struct({
2699
+ audioConsumer: Schema.optional(Schema.Union([
2700
+ Schema.Array(Schema.Unknown),
2701
+ Schema.Null,
2702
+ ])),
2703
+ audioConsumerCumulative: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2704
+ audioProducer: Schema.optional(Schema.Union([
2705
+ Schema.Array(Schema.Struct({
2706
+ bytesSent: Schema.optional(Schema.Union([
2707
+ Schema.Number,
2708
+ Schema.Null,
2709
+ ])),
2710
+ jitter: Schema.optional(Schema.Union([
2711
+ Schema.Number,
2712
+ Schema.Null,
2713
+ ])),
2714
+ mid: Schema.optional(Schema.Union([
2715
+ Schema.String,
2716
+ Schema.Null,
2717
+ ])),
2718
+ mosQuality: Schema.optional(Schema.Union([
2719
+ Schema.Number,
2720
+ Schema.Null,
2721
+ ])),
2722
+ packetsLost: Schema.optional(Schema.Union([
2723
+ Schema.Number,
2724
+ Schema.Null,
2725
+ ])),
2726
+ packetsSent: Schema.optional(Schema.Union([
2727
+ Schema.Number,
2728
+ Schema.Null,
2729
+ ])),
2730
+ producerId: Schema.optional(Schema.Union([
2731
+ Schema.String,
2732
+ Schema.Null,
2733
+ ])),
2734
+ rtt: Schema.optional(Schema.Union([
2735
+ Schema.Number,
2736
+ Schema.Null,
2737
+ ])),
2738
+ ssrc: Schema.optional(Schema.Union([
2739
+ Schema.Number,
2740
+ Schema.Null,
2741
+ ])),
2742
+ timestamp: Schema.optional(Schema.Union([
2743
+ Schema.String,
2744
+ Schema.Null,
2745
+ ])),
2746
+ }).pipe(Schema.encodeKeys({
2747
+ bytesSent: "bytes_sent",
2748
+ jitter: "jitter",
2749
+ mid: "mid",
2750
+ mosQuality: "mos_quality",
2751
+ packetsLost: "packets_lost",
2752
+ packetsSent: "packets_sent",
2753
+ producerId: "producer_id",
2754
+ rtt: "rtt",
2755
+ ssrc: "ssrc",
2756
+ timestamp: "timestamp",
2757
+ }))),
2758
+ Schema.Null,
2759
+ ])),
2760
+ audioProducerCumulative: Schema.optional(Schema.Union([
2761
+ Schema.Struct({
2762
+ packetLoss: Schema.optional(Schema.Union([
2763
+ Schema.Struct({
2764
+ "10OrGreaterEventFraction": Schema.optional(Schema.Union([
2765
+ Schema.Number,
2766
+ Schema.Null,
2767
+ ])),
2768
+ "25OrGreaterEventFraction": Schema.optional(Schema.Union([
2769
+ Schema.Number,
2770
+ Schema.Null,
2771
+ ])),
2772
+ "5OrGreaterEventFraction": Schema.optional(Schema.Union([
2773
+ Schema.Number,
2774
+ Schema.Null,
2775
+ ])),
2776
+ "50OrGreaterEventFraction": Schema.optional(Schema.Union([
2777
+ Schema.Number,
2778
+ Schema.Null,
2779
+ ])),
2780
+ avg: Schema.optional(Schema.Union([
2781
+ Schema.Number,
2782
+ Schema.Null,
2783
+ ])),
2784
+ }).pipe(Schema.encodeKeys({
2785
+ "10OrGreaterEventFraction": "10_or_greater_event_fraction",
2786
+ "25OrGreaterEventFraction": "25_or_greater_event_fraction",
2787
+ "5OrGreaterEventFraction": "5_or_greater_event_fraction",
2788
+ "50OrGreaterEventFraction": "50_or_greater_event_fraction",
2789
+ avg: "avg",
2790
+ })),
2791
+ Schema.Null,
2792
+ ])),
2793
+ qualityMos: Schema.optional(Schema.Union([
2794
+ Schema.Struct({
2795
+ avg: Schema.optional(Schema.Union([
2796
+ Schema.Number,
2797
+ Schema.Null,
2798
+ ])),
2799
+ p50: Schema.optional(Schema.Union([
2800
+ Schema.Number,
2801
+ Schema.Null,
2802
+ ])),
2803
+ p75: Schema.optional(Schema.Union([
2804
+ Schema.Number,
2805
+ Schema.Null,
2806
+ ])),
2807
+ p90: Schema.optional(Schema.Union([
2808
+ Schema.Number,
2809
+ Schema.Null,
2810
+ ])),
2811
+ }),
2812
+ Schema.Null,
2813
+ ])),
2814
+ rtt: Schema.optional(Schema.Union([
2815
+ Schema.Struct({
2816
+ "100msOrGreaterEventFraction": Schema.optional(Schema.Union([
2817
+ Schema.Number,
2818
+ Schema.Null,
2819
+ ])),
2820
+ "250msOrGreaterEventFraction": Schema.optional(Schema.Union([
2821
+ Schema.Number,
2822
+ Schema.Null,
2823
+ ])),
2824
+ "500msOrGreaterEventFraction": Schema.optional(Schema.Union([
2825
+ Schema.Number,
2826
+ Schema.Null,
2827
+ ])),
2828
+ avg: Schema.optional(Schema.Union([
2829
+ Schema.Number,
2830
+ Schema.Null,
2831
+ ])),
2832
+ }).pipe(Schema.encodeKeys({
2833
+ "100msOrGreaterEventFraction": "100ms_or_greater_event_fraction",
2834
+ "250msOrGreaterEventFraction": "250ms_or_greater_event_fraction",
2835
+ "500msOrGreaterEventFraction": "500ms_or_greater_event_fraction",
2836
+ avg: "avg",
2837
+ })),
2838
+ Schema.Null,
2839
+ ])),
2840
+ }).pipe(Schema.encodeKeys({
2841
+ packetLoss: "packet_loss",
2842
+ qualityMos: "quality_mos",
2843
+ rtt: "rtt",
2844
+ })),
2845
+ Schema.Null,
2846
+ ])),
2847
+ screenshareAudioConsumer: Schema.optional(Schema.Union([
2848
+ Schema.Array(Schema.Unknown),
2849
+ Schema.Null,
2850
+ ])),
2851
+ screenshareAudioConsumerCumulative: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2852
+ screenshareAudioProducer: Schema.optional(Schema.Union([
2853
+ Schema.Array(Schema.Unknown),
2854
+ Schema.Null,
2855
+ ])),
2856
+ screenshareAudioProducerCumulative: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2857
+ screenshareVideoConsumer: Schema.optional(Schema.Union([
2858
+ Schema.Array(Schema.Unknown),
2859
+ Schema.Null,
2860
+ ])),
2861
+ screenshareVideoConsumerCumulative: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2862
+ screenshareVideoProducer: Schema.optional(Schema.Union([
2863
+ Schema.Array(Schema.Unknown),
2864
+ Schema.Null,
2865
+ ])),
2866
+ screenshareVideoProducerCumulative: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2867
+ videoConsumer: Schema.optional(Schema.Union([
2868
+ Schema.Array(Schema.Unknown),
2869
+ Schema.Null,
2870
+ ])),
2871
+ videoConsumerCumulative: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2872
+ videoProducer: Schema.optional(Schema.Union([
2873
+ Schema.Array(Schema.Unknown),
2874
+ Schema.Null,
2875
+ ])),
2876
+ videoProducerCumulative: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2877
+ }).pipe(Schema.encodeKeys({
2878
+ audioConsumer: "audio_consumer",
2879
+ audioConsumerCumulative: "audio_consumer_cumulative",
2880
+ audioProducer: "audio_producer",
2881
+ audioProducerCumulative: "audio_producer_cumulative",
2882
+ screenshareAudioConsumer: "screenshare_audio_consumer",
2883
+ screenshareAudioConsumerCumulative: "screenshare_audio_consumer_cumulative",
2884
+ screenshareAudioProducer: "screenshare_audio_producer",
2885
+ screenshareAudioProducerCumulative: "screenshare_audio_producer_cumulative",
2886
+ screenshareVideoConsumer: "screenshare_video_consumer",
2887
+ screenshareVideoConsumerCumulative: "screenshare_video_consumer_cumulative",
2888
+ screenshareVideoProducer: "screenshare_video_producer",
2889
+ screenshareVideoProducerCumulative: "screenshare_video_producer_cumulative",
2890
+ videoConsumer: "video_consumer",
2891
+ videoConsumerCumulative: "video_consumer_cumulative",
2892
+ videoProducer: "video_producer",
2893
+ videoProducerCumulative: "video_producer_cumulative",
2894
+ })),
2895
+ Schema.Null,
2896
+ ])),
2897
+ }),
2898
+ Schema.Null,
2899
+ ])),
2900
+ peerStats: Schema.optional(Schema.Union([
2901
+ Schema.Struct({
2902
+ deviceInfo: Schema.optional(Schema.Union([
2903
+ Schema.Struct({
2904
+ browser: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2905
+ browserVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2906
+ cpus: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2907
+ engine: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2908
+ isMobile: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2909
+ os: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2910
+ osVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2911
+ sdkName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2912
+ sdkVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2913
+ userAgent: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2914
+ webglSupport: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2915
+ }).pipe(Schema.encodeKeys({
2916
+ browser: "browser",
2917
+ browserVersion: "browser_version",
2918
+ cpus: "cpus",
2919
+ engine: "engine",
2920
+ isMobile: "is_mobile",
2921
+ os: "os",
2922
+ osVersion: "os_version",
2923
+ sdkName: "sdk_name",
2924
+ sdkVersion: "sdk_version",
2925
+ userAgent: "user_agent",
2926
+ webglSupport: "webgl_support",
2927
+ })),
2928
+ Schema.Null,
2929
+ ])),
2930
+ events: Schema.optional(Schema.Union([
2931
+ Schema.Array(Schema.Struct({
2932
+ metadata: Schema.optional(Schema.Union([
2933
+ Schema.Struct({
2934
+ connectionInfo: Schema.optional(Schema.Union([
2935
+ Schema.Struct({
2936
+ backendRTT: Schema.optional(Schema.Union([
2937
+ Schema.Number,
2938
+ Schema.Null,
2939
+ ])),
2940
+ connectivity: Schema.optional(Schema.Union([
2941
+ Schema.Struct({
2942
+ host: Schema.optional(Schema.Union([
2943
+ Schema.Boolean,
2944
+ Schema.Null,
2945
+ ])),
2946
+ reflexive: Schema.optional(Schema.Union([
2947
+ Schema.Boolean,
2948
+ Schema.Null,
2949
+ ])),
2950
+ relay: Schema.optional(Schema.Union([
2951
+ Schema.Boolean,
2952
+ Schema.Null,
2953
+ ])),
2954
+ }),
2955
+ Schema.Null,
2956
+ ])),
2957
+ effectiveNetworkType: Schema.optional(Schema.Union([
2958
+ Schema.String,
2959
+ Schema.Null,
2960
+ ])),
2961
+ fractionalLoss: Schema.optional(Schema.Union([
2962
+ Schema.Number,
2963
+ Schema.Null,
2964
+ ])),
2965
+ ipDetails: Schema.optional(Schema.Union([
2966
+ Schema.Struct({
2967
+ asn: Schema.optional(Schema.Union([
2968
+ Schema.Struct({
2969
+ asn: Schema.optional(Schema.Union([
2970
+ Schema.String,
2971
+ Schema.Null,
2972
+ ])),
2973
+ }),
2974
+ Schema.Null,
2975
+ ])),
2976
+ city: Schema.optional(Schema.Union([
2977
+ Schema.String,
2978
+ Schema.Null,
2979
+ ])),
2980
+ country: Schema.optional(Schema.Union([
2981
+ Schema.String,
2982
+ Schema.Null,
2983
+ ])),
2984
+ ip: Schema.optional(Schema.Union([
2985
+ Schema.String,
2986
+ Schema.Null,
2987
+ ])),
2988
+ loc: Schema.optional(Schema.Union([
2989
+ Schema.String,
2990
+ Schema.Null,
2991
+ ])),
2992
+ postal: Schema.optional(Schema.Union([
2993
+ Schema.String,
2994
+ Schema.Null,
2995
+ ])),
2996
+ region: Schema.optional(Schema.Union([
2997
+ Schema.String,
2998
+ Schema.Null,
2999
+ ])),
3000
+ timezone: Schema.optional(Schema.Union([
3001
+ Schema.String,
3002
+ Schema.Null,
3003
+ ])),
3004
+ }),
3005
+ Schema.Null,
3006
+ ])),
3007
+ jitter: Schema.optional(Schema.Union([
3008
+ Schema.Number,
3009
+ Schema.Null,
3010
+ ])),
3011
+ location: Schema.optional(Schema.Union([
3012
+ Schema.Struct({
3013
+ coords: Schema.optional(Schema.Union([
3014
+ Schema.Struct({
3015
+ latitude: Schema.optional(Schema.Union([
3016
+ Schema.Number,
3017
+ Schema.Null,
3018
+ ])),
3019
+ longitude: Schema.optional(Schema.Union([
3020
+ Schema.Number,
3021
+ Schema.Null,
3022
+ ])),
3023
+ }),
3024
+ Schema.Null,
3025
+ ])),
3026
+ }),
3027
+ Schema.Null,
3028
+ ])),
3029
+ rTT: Schema.optional(Schema.Union([
3030
+ Schema.Number,
3031
+ Schema.Null,
3032
+ ])),
3033
+ throughput: Schema.optional(Schema.Union([
3034
+ Schema.Number,
3035
+ Schema.Null,
3036
+ ])),
3037
+ turnConnectivity: Schema.optional(Schema.Union([
3038
+ Schema.Boolean,
3039
+ Schema.Null,
3040
+ ])),
3041
+ }).pipe(Schema.encodeKeys({
3042
+ backendRTT: "backend_r_t_t",
3043
+ connectivity: "connectivity",
3044
+ effectiveNetworkType: "effective_network_type",
3045
+ fractionalLoss: "fractional_loss",
3046
+ ipDetails: "ip_details",
3047
+ jitter: "jitter",
3048
+ location: "location",
3049
+ rTT: "r_t_t",
3050
+ throughput: "throughput",
3051
+ turnConnectivity: "turn_connectivity",
3052
+ })),
3053
+ Schema.Null,
3054
+ ])),
3055
+ }).pipe(Schema.encodeKeys({
3056
+ connectionInfo: "connection_info",
3057
+ })),
3058
+ Schema.Null,
3059
+ ])),
3060
+ timestamp: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3061
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3062
+ })),
3063
+ Schema.Null,
3064
+ ])),
3065
+ ipInformation: Schema.optional(Schema.Union([
3066
+ Schema.Struct({
3067
+ asn: Schema.optional(Schema.Union([
3068
+ Schema.Struct({
3069
+ asn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3070
+ }),
3071
+ Schema.Null,
3072
+ ])),
3073
+ city: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3074
+ country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3075
+ ipLocation: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3076
+ ipv4: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3077
+ org: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3078
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3079
+ timezone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3080
+ }).pipe(Schema.encodeKeys({
3081
+ asn: "asn",
3082
+ city: "city",
3083
+ country: "country",
3084
+ ipLocation: "ip_location",
3085
+ ipv4: "ipv4",
3086
+ org: "org",
3087
+ region: "region",
3088
+ timezone: "timezone",
3089
+ })),
3090
+ Schema.Null,
3091
+ ])),
3092
+ precallNetworkInformation: Schema.optional(Schema.Union([
3093
+ Schema.Struct({
3094
+ backendRtt: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3095
+ effectiveNetworktype: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3096
+ fractionalLoss: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3097
+ jitter: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3098
+ reflexiveConnectivity: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3099
+ relayConnectivity: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3100
+ rtt: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3101
+ throughput: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3102
+ turnConnectivity: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3103
+ }).pipe(Schema.encodeKeys({
3104
+ backendRtt: "backend_rtt",
3105
+ effectiveNetworktype: "effective_networktype",
3106
+ fractionalLoss: "fractional_loss",
3107
+ jitter: "jitter",
3108
+ reflexiveConnectivity: "reflexive_connectivity",
3109
+ relayConnectivity: "relay_connectivity",
3110
+ rtt: "rtt",
3111
+ throughput: "throughput",
3112
+ turnConnectivity: "turn_connectivity",
3113
+ })),
3114
+ Schema.Null,
3115
+ ])),
3116
+ }).pipe(Schema.encodeKeys({
3117
+ deviceInfo: "device_info",
3118
+ events: "events",
3119
+ ipInformation: "ip_information",
3120
+ precallNetworkInformation: "precall_network_information",
3121
+ })),
3122
+ Schema.Null,
3123
+ ])),
3124
+ qualityStats: Schema.optional(Schema.Union([
3125
+ Schema.Struct({
3126
+ audioBandwidth: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3127
+ audioStats: Schema.optional(Schema.Union([
3128
+ Schema.Array(Schema.Unknown),
3129
+ Schema.Null,
3130
+ ])),
3131
+ averageQuality: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3132
+ end: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3133
+ firstAudioPacketReceived: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3134
+ firstVideoPacketReceived: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3135
+ lastAudioPacketReceived: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3136
+ lastVideoPacketReceived: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3137
+ peerIds: Schema.optional(Schema.Union([
3138
+ Schema.Array(Schema.String),
3139
+ Schema.Null,
3140
+ ])),
3141
+ start: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3142
+ totalAudioPackets: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3143
+ totalAudioPacketsLost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3144
+ totalVideoPackets: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3145
+ totalVideoPacketsLost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3146
+ videoBandwidth: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3147
+ videoStats: Schema.optional(Schema.Union([
3148
+ Schema.Array(Schema.Unknown),
3149
+ Schema.Null,
3150
+ ])),
3151
+ }).pipe(Schema.encodeKeys({
3152
+ audioBandwidth: "audio_bandwidth",
3153
+ audioStats: "audio_stats",
3154
+ averageQuality: "average_quality",
3155
+ end: "end",
3156
+ firstAudioPacketReceived: "first_audio_packet_received",
3157
+ firstVideoPacketReceived: "first_video_packet_received",
3158
+ lastAudioPacketReceived: "last_audio_packet_received",
3159
+ lastVideoPacketReceived: "last_video_packet_received",
3160
+ peerIds: "peer_ids",
3161
+ start: "start",
3162
+ totalAudioPackets: "total_audio_packets",
3163
+ totalAudioPacketsLost: "total_audio_packets_lost",
3164
+ totalVideoPackets: "total_video_packets",
3165
+ totalVideoPacketsLost: "total_video_packets_lost",
3166
+ videoBandwidth: "video_bandwidth",
3167
+ videoStats: "video_stats",
3168
+ })),
3169
+ Schema.Null,
3170
+ ])),
3171
+ role: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2430
3172
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2431
3173
  userId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2432
3174
  }).pipe(Schema.encodeKeys({
@@ -2437,7 +3179,10 @@ export const GetParticipantDataFromPeerIdSessionResponse =
2437
3179
  duration: "duration",
2438
3180
  joinedAt: "joined_at",
2439
3181
  leftAt: "left_at",
2440
- presetName: "preset_name",
3182
+ peerReport: "peer_report",
3183
+ peerStats: "peer_stats",
3184
+ qualityStats: "quality_stats",
3185
+ role: "role",
2441
3186
  updatedAt: "updated_at",
2442
3187
  userId: "user_id",
2443
3188
  })),
@@ -2722,16 +3467,25 @@ export const CreatePresetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2722
3467
  config: Schema.Struct({
2723
3468
  maxScreenshareCount: Schema.Number,
2724
3469
  maxVideoStreams: Schema.Struct({
2725
- desktop: Schema.optional(Schema.Number),
2726
- mobile: Schema.optional(Schema.Number),
3470
+ desktop: Schema.Number,
3471
+ mobile: Schema.Number,
2727
3472
  }),
2728
3473
  media: Schema.Struct({
2729
- screenshare: Schema.optional(Schema.Struct({
2730
- canProduce: Schema.optional(Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"])),
2731
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" }))),
2732
- video: Schema.optional(Schema.Struct({
2733
- canProduce: Schema.optional(Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"])),
2734
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" }))),
3474
+ screenshare: Schema.Struct({
3475
+ frameRate: Schema.Number,
3476
+ quality: Schema.Literals(["hd", "vga", "qvga"]),
3477
+ }).pipe(Schema.encodeKeys({ frameRate: "frame_rate", quality: "quality" })),
3478
+ video: Schema.Struct({
3479
+ frameRate: Schema.Number,
3480
+ quality: Schema.Literals(["hd", "vga", "qvga"]),
3481
+ }).pipe(Schema.encodeKeys({ frameRate: "frame_rate", quality: "quality" })),
3482
+ audio: Schema.optional(Schema.Struct({
3483
+ enableHighBitrate: Schema.optional(Schema.Boolean),
3484
+ enableStereo: Schema.optional(Schema.Boolean),
3485
+ }).pipe(Schema.encodeKeys({
3486
+ enableHighBitrate: "enable_high_bitrate",
3487
+ enableStereo: "enable_stereo",
3488
+ }))),
2735
3489
  }),
2736
3490
  viewType: Schema.Literals(["GROUP_CALL", "WEBINAR", "AUDIO_ROOM"]),
2737
3491
  }).pipe(Schema.encodeKeys({
@@ -2743,29 +3497,29 @@ export const CreatePresetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2743
3497
  name: Schema.String,
2744
3498
  ui: Schema.Struct({
2745
3499
  designTokens: Schema.Struct({
2746
- borderRadius: Schema.optional(Schema.Literal("rounded")),
2747
- borderWidth: Schema.optional(Schema.Literal("thin")),
2748
- colors: Schema.optional(Schema.Struct({
2749
- background: Schema.optional(Schema.Struct({
2750
- "1000": Schema.optional(Schema.String),
2751
- "600": Schema.optional(Schema.String),
2752
- "700": Schema.optional(Schema.String),
2753
- "800": Schema.optional(Schema.String),
2754
- "900": Schema.optional(Schema.String),
2755
- })),
2756
- brand: Schema.optional(Schema.Struct({
2757
- "300": Schema.optional(Schema.String),
2758
- "400": Schema.optional(Schema.String),
2759
- "500": Schema.optional(Schema.String),
2760
- "600": Schema.optional(Schema.String),
2761
- "700": Schema.optional(Schema.String),
2762
- })),
2763
- danger: Schema.optional(Schema.String),
2764
- success: Schema.optional(Schema.String),
2765
- text: Schema.optional(Schema.String),
2766
- textOnBrand: Schema.optional(Schema.String),
2767
- videoBg: Schema.optional(Schema.String),
2768
- warning: Schema.optional(Schema.String),
3500
+ borderRadius: Schema.Literal("rounded"),
3501
+ borderWidth: Schema.Literal("thin"),
3502
+ colors: Schema.Struct({
3503
+ background: Schema.Struct({
3504
+ "1000": Schema.String,
3505
+ "600": Schema.String,
3506
+ "700": Schema.String,
3507
+ "800": Schema.String,
3508
+ "900": Schema.String,
3509
+ }),
3510
+ brand: Schema.Struct({
3511
+ "300": Schema.String,
3512
+ "400": Schema.String,
3513
+ "500": Schema.String,
3514
+ "600": Schema.String,
3515
+ "700": Schema.String,
3516
+ }),
3517
+ danger: Schema.String,
3518
+ success: Schema.String,
3519
+ text: Schema.String,
3520
+ textOnBrand: Schema.String,
3521
+ videoBg: Schema.String,
3522
+ warning: Schema.String,
2769
3523
  }).pipe(Schema.encodeKeys({
2770
3524
  background: "background",
2771
3525
  brand: "brand",
@@ -2775,10 +3529,10 @@ export const CreatePresetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2775
3529
  textOnBrand: "text_on_brand",
2776
3530
  videoBg: "video_bg",
2777
3531
  warning: "warning",
2778
- }))),
2779
- logo: Schema.optional(Schema.String),
2780
- spacingBase: Schema.optional(Schema.Number),
2781
- theme: Schema.optional(Schema.Literal("dark")),
3532
+ })),
3533
+ logo: Schema.String,
3534
+ spacingBase: Schema.Number,
3535
+ theme: Schema.Literal("dark"),
2782
3536
  }).pipe(Schema.encodeKeys({
2783
3537
  borderRadius: "border_radius",
2784
3538
  borderWidth: "border_width",
@@ -2801,31 +3555,31 @@ export const CreatePresetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2801
3555
  canRecord: Schema.Boolean,
2802
3556
  canSpotlight: Schema.Boolean,
2803
3557
  chat: Schema.Struct({
2804
- private: Schema.optional(Schema.Struct({
2805
- canReceive: Schema.optional(Schema.Boolean),
2806
- canSend: Schema.optional(Schema.Boolean),
2807
- files: Schema.optional(Schema.Boolean),
2808
- text: Schema.optional(Schema.Boolean),
3558
+ private: Schema.Struct({
3559
+ canReceive: Schema.Boolean,
3560
+ canSend: Schema.Boolean,
3561
+ files: Schema.Boolean,
3562
+ text: Schema.Boolean,
2809
3563
  }).pipe(Schema.encodeKeys({
2810
3564
  canReceive: "can_receive",
2811
3565
  canSend: "can_send",
2812
3566
  files: "files",
2813
3567
  text: "text",
2814
- }))),
2815
- public: Schema.optional(Schema.Struct({
2816
- canSend: Schema.optional(Schema.Boolean),
2817
- files: Schema.optional(Schema.Boolean),
2818
- text: Schema.optional(Schema.Boolean),
3568
+ })),
3569
+ public: Schema.Struct({
3570
+ canSend: Schema.Boolean,
3571
+ files: Schema.Boolean,
3572
+ text: Schema.Boolean,
2819
3573
  }).pipe(Schema.encodeKeys({
2820
3574
  canSend: "can_send",
2821
3575
  files: "files",
2822
3576
  text: "text",
2823
- }))),
3577
+ })),
2824
3578
  }),
2825
3579
  connectedMeetings: Schema.Struct({
2826
- canAlterConnectedMeetings: Schema.optional(Schema.Boolean),
2827
- canSwitchConnectedMeetings: Schema.optional(Schema.Boolean),
2828
- canSwitchToParentMeeting: Schema.optional(Schema.Boolean),
3580
+ canAlterConnectedMeetings: Schema.Boolean,
3581
+ canSwitchConnectedMeetings: Schema.Boolean,
3582
+ canSwitchToParentMeeting: Schema.Boolean,
2829
3583
  }).pipe(Schema.encodeKeys({
2830
3584
  canAlterConnectedMeetings: "can_alter_connected_meetings",
2831
3585
  canSwitchConnectedMeetings: "can_switch_connected_meetings",
@@ -2837,31 +3591,43 @@ export const CreatePresetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2837
3591
  hiddenParticipant: Schema.Boolean,
2838
3592
  kickParticipant: Schema.Boolean,
2839
3593
  media: Schema.Struct({
2840
- audio: Schema.optional(Schema.Struct({
2841
- canProduce: Schema.optional(Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"])),
2842
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" }))),
2843
- screenshare: Schema.optional(Schema.Struct({
2844
- canProduce: Schema.optional(Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"])),
2845
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" }))),
2846
- video: Schema.optional(Schema.Struct({
2847
- canProduce: Schema.optional(Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"])),
2848
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" }))),
3594
+ audio: Schema.Struct({
3595
+ canProduce: Schema.Literals([
3596
+ "ALLOWED",
3597
+ "NOT_ALLOWED",
3598
+ "CAN_REQUEST",
3599
+ ]),
3600
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3601
+ screenshare: Schema.Struct({
3602
+ canProduce: Schema.Literals([
3603
+ "ALLOWED",
3604
+ "NOT_ALLOWED",
3605
+ "CAN_REQUEST",
3606
+ ]),
3607
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3608
+ video: Schema.Struct({
3609
+ canProduce: Schema.Literals([
3610
+ "ALLOWED",
3611
+ "NOT_ALLOWED",
3612
+ "CAN_REQUEST",
3613
+ ]),
3614
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
2849
3615
  }),
2850
3616
  pinParticipant: Schema.Boolean,
2851
3617
  plugins: Schema.Struct({
2852
- canClose: Schema.optional(Schema.Boolean),
2853
- canEditConfig: Schema.optional(Schema.Boolean),
2854
- canStart: Schema.optional(Schema.Boolean),
2855
- config: Schema.optional(Schema.Union([
3618
+ canClose: Schema.Boolean,
3619
+ canEditConfig: Schema.Boolean,
3620
+ canStart: Schema.Boolean,
3621
+ config: Schema.Union([
2856
3622
  Schema.String,
2857
3623
  Schema.Struct({
2858
- accessControl: Schema.optional(Schema.Literals(["FULL_ACCESS", "VIEW_ONLY"])),
2859
- handlesViewOnly: Schema.optional(Schema.Boolean),
3624
+ accessControl: Schema.Literals(["FULL_ACCESS", "VIEW_ONLY"]),
3625
+ handlesViewOnly: Schema.Boolean,
2860
3626
  }).pipe(Schema.encodeKeys({
2861
3627
  accessControl: "access_control",
2862
3628
  handlesViewOnly: "handles_view_only",
2863
3629
  })),
2864
- ])),
3630
+ ]),
2865
3631
  }).pipe(Schema.encodeKeys({
2866
3632
  canClose: "can_close",
2867
3633
  canEditConfig: "can_edit_config",
@@ -2869,9 +3635,9 @@ export const CreatePresetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2869
3635
  config: "config",
2870
3636
  })),
2871
3637
  polls: Schema.Struct({
2872
- canCreate: Schema.optional(Schema.Boolean),
2873
- canView: Schema.optional(Schema.Boolean),
2874
- canVote: Schema.optional(Schema.Boolean),
3638
+ canCreate: Schema.Boolean,
3639
+ canView: Schema.Boolean,
3640
+ canVote: Schema.Boolean,
2875
3641
  }).pipe(Schema.encodeKeys({
2876
3642
  canCreate: "can_create",
2877
3643
  canView: "can_view",
@@ -2919,26 +3685,26 @@ export const CreatePresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2919
3685
  config: Schema.Struct({
2920
3686
  maxScreenshareCount: Schema.Number,
2921
3687
  maxVideoStreams: Schema.Struct({
2922
- desktop: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2923
- mobile: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3688
+ desktop: Schema.Number,
3689
+ mobile: Schema.Number,
2924
3690
  }),
2925
3691
  media: Schema.Struct({
2926
- screenshare: Schema.optional(Schema.Union([
2927
- Schema.Struct({
2928
- canProduce: Schema.optional(Schema.Union([
2929
- Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"]),
2930
- Schema.Null,
2931
- ])),
2932
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
2933
- Schema.Null,
2934
- ])),
2935
- video: Schema.optional(Schema.Union([
3692
+ screenshare: Schema.Struct({
3693
+ frameRate: Schema.Number,
3694
+ quality: Schema.Literals(["hd", "vga", "qvga"]),
3695
+ }).pipe(Schema.encodeKeys({ frameRate: "frame_rate", quality: "quality" })),
3696
+ video: Schema.Struct({
3697
+ frameRate: Schema.Number,
3698
+ quality: Schema.Literals(["hd", "vga", "qvga"]),
3699
+ }).pipe(Schema.encodeKeys({ frameRate: "frame_rate", quality: "quality" })),
3700
+ audio: Schema.optional(Schema.Union([
2936
3701
  Schema.Struct({
2937
- canProduce: Schema.optional(Schema.Union([
2938
- Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"]),
2939
- Schema.Null,
2940
- ])),
2941
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3702
+ enableHighBitrate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3703
+ enableStereo: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3704
+ }).pipe(Schema.encodeKeys({
3705
+ enableHighBitrate: "enable_high_bitrate",
3706
+ enableStereo: "enable_stereo",
3707
+ })),
2942
3708
  Schema.Null,
2943
3709
  ])),
2944
3710
  }),
@@ -2952,51 +3718,42 @@ export const CreatePresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2952
3718
  name: Schema.String,
2953
3719
  ui: Schema.Struct({
2954
3720
  designTokens: Schema.Struct({
2955
- borderRadius: Schema.optional(Schema.Union([Schema.Literal("rounded"), Schema.Null])),
2956
- borderWidth: Schema.optional(Schema.Union([Schema.Literal("thin"), Schema.Null])),
2957
- colors: Schema.optional(Schema.Union([
2958
- Schema.Struct({
2959
- background: Schema.optional(Schema.Union([
2960
- Schema.Struct({
2961
- "1000": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2962
- "600": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2963
- "700": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2964
- "800": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2965
- "900": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2966
- }),
2967
- Schema.Null,
2968
- ])),
2969
- brand: Schema.optional(Schema.Union([
2970
- Schema.Struct({
2971
- "300": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2972
- "400": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2973
- "500": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2974
- "600": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2975
- "700": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2976
- }),
2977
- Schema.Null,
2978
- ])),
2979
- danger: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2980
- success: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2981
- text: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2982
- textOnBrand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2983
- videoBg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2984
- warning: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2985
- }).pipe(Schema.encodeKeys({
2986
- background: "background",
2987
- brand: "brand",
2988
- danger: "danger",
2989
- success: "success",
2990
- text: "text",
2991
- textOnBrand: "text_on_brand",
2992
- videoBg: "video_bg",
2993
- warning: "warning",
2994
- })),
2995
- Schema.Null,
2996
- ])),
2997
- logo: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2998
- spacingBase: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2999
- theme: Schema.optional(Schema.Union([Schema.Literal("dark"), Schema.Null])),
3721
+ borderRadius: Schema.Literal("rounded"),
3722
+ borderWidth: Schema.Literal("thin"),
3723
+ colors: Schema.Struct({
3724
+ background: Schema.Struct({
3725
+ "1000": Schema.String,
3726
+ "600": Schema.String,
3727
+ "700": Schema.String,
3728
+ "800": Schema.String,
3729
+ "900": Schema.String,
3730
+ }),
3731
+ brand: Schema.Struct({
3732
+ "300": Schema.String,
3733
+ "400": Schema.String,
3734
+ "500": Schema.String,
3735
+ "600": Schema.String,
3736
+ "700": Schema.String,
3737
+ }),
3738
+ danger: Schema.String,
3739
+ success: Schema.String,
3740
+ text: Schema.String,
3741
+ textOnBrand: Schema.String,
3742
+ videoBg: Schema.String,
3743
+ warning: Schema.String,
3744
+ }).pipe(Schema.encodeKeys({
3745
+ background: "background",
3746
+ brand: "brand",
3747
+ danger: "danger",
3748
+ success: "success",
3749
+ text: "text",
3750
+ textOnBrand: "text_on_brand",
3751
+ videoBg: "video_bg",
3752
+ warning: "warning",
3753
+ })),
3754
+ logo: Schema.String,
3755
+ spacingBase: Schema.Number,
3756
+ theme: Schema.Literal("dark"),
3000
3757
  }).pipe(Schema.encodeKeys({
3001
3758
  borderRadius: "border_radius",
3002
3759
  borderWidth: "border_width",
@@ -3020,37 +3777,31 @@ export const CreatePresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3020
3777
  canRecord: Schema.Boolean,
3021
3778
  canSpotlight: Schema.Boolean,
3022
3779
  chat: Schema.Struct({
3023
- private: Schema.optional(Schema.Union([
3024
- Schema.Struct({
3025
- canReceive: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3026
- canSend: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3027
- files: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3028
- text: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3029
- }).pipe(Schema.encodeKeys({
3030
- canReceive: "can_receive",
3031
- canSend: "can_send",
3032
- files: "files",
3033
- text: "text",
3034
- })),
3035
- Schema.Null,
3036
- ])),
3037
- public: Schema.optional(Schema.Union([
3038
- Schema.Struct({
3039
- canSend: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3040
- files: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3041
- text: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3042
- }).pipe(Schema.encodeKeys({
3043
- canSend: "can_send",
3044
- files: "files",
3045
- text: "text",
3046
- })),
3047
- Schema.Null,
3048
- ])),
3780
+ private: Schema.Struct({
3781
+ canReceive: Schema.Boolean,
3782
+ canSend: Schema.Boolean,
3783
+ files: Schema.Boolean,
3784
+ text: Schema.Boolean,
3785
+ }).pipe(Schema.encodeKeys({
3786
+ canReceive: "can_receive",
3787
+ canSend: "can_send",
3788
+ files: "files",
3789
+ text: "text",
3790
+ })),
3791
+ public: Schema.Struct({
3792
+ canSend: Schema.Boolean,
3793
+ files: Schema.Boolean,
3794
+ text: Schema.Boolean,
3795
+ }).pipe(Schema.encodeKeys({
3796
+ canSend: "can_send",
3797
+ files: "files",
3798
+ text: "text",
3799
+ })),
3049
3800
  }),
3050
3801
  connectedMeetings: Schema.Struct({
3051
- canAlterConnectedMeetings: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3052
- canSwitchConnectedMeetings: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3053
- canSwitchToParentMeeting: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3802
+ canAlterConnectedMeetings: Schema.Boolean,
3803
+ canSwitchConnectedMeetings: Schema.Boolean,
3804
+ canSwitchToParentMeeting: Schema.Boolean,
3054
3805
  }).pipe(Schema.encodeKeys({
3055
3806
  canAlterConnectedMeetings: "can_alter_connected_meetings",
3056
3807
  canSwitchConnectedMeetings: "can_switch_connected_meetings",
@@ -3062,67 +3813,43 @@ export const CreatePresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3062
3813
  hiddenParticipant: Schema.Boolean,
3063
3814
  kickParticipant: Schema.Boolean,
3064
3815
  media: Schema.Struct({
3065
- audio: Schema.optional(Schema.Union([
3066
- Schema.Struct({
3067
- canProduce: Schema.optional(Schema.Union([
3068
- Schema.Literals([
3069
- "ALLOWED",
3070
- "NOT_ALLOWED",
3071
- "CAN_REQUEST",
3072
- ]),
3073
- Schema.Null,
3074
- ])),
3075
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3076
- Schema.Null,
3077
- ])),
3078
- screenshare: Schema.optional(Schema.Union([
3079
- Schema.Struct({
3080
- canProduce: Schema.optional(Schema.Union([
3081
- Schema.Literals([
3082
- "ALLOWED",
3083
- "NOT_ALLOWED",
3084
- "CAN_REQUEST",
3085
- ]),
3086
- Schema.Null,
3087
- ])),
3088
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3089
- Schema.Null,
3090
- ])),
3091
- video: Schema.optional(Schema.Union([
3092
- Schema.Struct({
3093
- canProduce: Schema.optional(Schema.Union([
3094
- Schema.Literals([
3095
- "ALLOWED",
3096
- "NOT_ALLOWED",
3097
- "CAN_REQUEST",
3098
- ]),
3099
- Schema.Null,
3100
- ])),
3101
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3102
- Schema.Null,
3103
- ])),
3816
+ audio: Schema.Struct({
3817
+ canProduce: Schema.Literals([
3818
+ "ALLOWED",
3819
+ "NOT_ALLOWED",
3820
+ "CAN_REQUEST",
3821
+ ]),
3822
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3823
+ screenshare: Schema.Struct({
3824
+ canProduce: Schema.Literals([
3825
+ "ALLOWED",
3826
+ "NOT_ALLOWED",
3827
+ "CAN_REQUEST",
3828
+ ]),
3829
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3830
+ video: Schema.Struct({
3831
+ canProduce: Schema.Literals([
3832
+ "ALLOWED",
3833
+ "NOT_ALLOWED",
3834
+ "CAN_REQUEST",
3835
+ ]),
3836
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3104
3837
  }),
3105
3838
  pinParticipant: Schema.Boolean,
3106
3839
  plugins: Schema.Struct({
3107
- canClose: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3108
- canEditConfig: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3109
- canStart: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3110
- config: Schema.optional(Schema.Union([
3111
- Schema.Union([
3112
- Schema.String,
3113
- Schema.Struct({
3114
- accessControl: Schema.optional(Schema.Union([
3115
- Schema.Literals(["FULL_ACCESS", "VIEW_ONLY"]),
3116
- Schema.Null,
3117
- ])),
3118
- handlesViewOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3119
- }).pipe(Schema.encodeKeys({
3120
- accessControl: "access_control",
3121
- handlesViewOnly: "handles_view_only",
3122
- })),
3123
- ]),
3124
- Schema.Null,
3125
- ])),
3840
+ canClose: Schema.Boolean,
3841
+ canEditConfig: Schema.Boolean,
3842
+ canStart: Schema.Boolean,
3843
+ config: Schema.Union([
3844
+ Schema.String,
3845
+ Schema.Struct({
3846
+ accessControl: Schema.Literals(["FULL_ACCESS", "VIEW_ONLY"]),
3847
+ handlesViewOnly: Schema.Boolean,
3848
+ }).pipe(Schema.encodeKeys({
3849
+ accessControl: "access_control",
3850
+ handlesViewOnly: "handles_view_only",
3851
+ })),
3852
+ ]),
3126
3853
  }).pipe(Schema.encodeKeys({
3127
3854
  canClose: "can_close",
3128
3855
  canEditConfig: "can_edit_config",
@@ -3130,9 +3857,9 @@ export const CreatePresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3130
3857
  config: "config",
3131
3858
  })),
3132
3859
  polls: Schema.Struct({
3133
- canCreate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3134
- canView: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3135
- canVote: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3860
+ canCreate: Schema.Boolean,
3861
+ canView: Schema.Boolean,
3862
+ canVote: Schema.Boolean,
3136
3863
  }).pipe(Schema.encodeKeys({
3137
3864
  canCreate: "can_create",
3138
3865
  canView: "can_view",
@@ -3192,11 +3919,19 @@ export const PatchPresetRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3192
3919
  })),
3193
3920
  media: Schema.optional(Schema.Struct({
3194
3921
  screenshare: Schema.optional(Schema.Struct({
3195
- canProduce: Schema.optional(Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"])),
3196
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" }))),
3922
+ frameRate: Schema.optional(Schema.Number),
3923
+ quality: Schema.optional(Schema.Literals(["hd", "vga", "qvga"])),
3924
+ }).pipe(Schema.encodeKeys({
3925
+ frameRate: "frame_rate",
3926
+ quality: "quality",
3927
+ }))),
3197
3928
  video: Schema.optional(Schema.Struct({
3198
- canProduce: Schema.optional(Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"])),
3199
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" }))),
3929
+ frameRate: Schema.optional(Schema.Number),
3930
+ quality: Schema.optional(Schema.Literals(["hd", "vga", "qvga"])),
3931
+ }).pipe(Schema.encodeKeys({
3932
+ frameRate: "frame_rate",
3933
+ quality: "quality",
3934
+ }))),
3200
3935
  })),
3201
3936
  viewType: Schema.optional(Schema.Literals(["GROUP_CALL", "WEBINAR", "AUDIO_ROOM"])),
3202
3937
  }).pipe(Schema.encodeKeys({
@@ -3380,26 +4115,26 @@ export const PatchPresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3380
4115
  config: Schema.Struct({
3381
4116
  maxScreenshareCount: Schema.Number,
3382
4117
  maxVideoStreams: Schema.Struct({
3383
- desktop: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3384
- mobile: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4118
+ desktop: Schema.Number,
4119
+ mobile: Schema.Number,
3385
4120
  }),
3386
4121
  media: Schema.Struct({
3387
- screenshare: Schema.optional(Schema.Union([
3388
- Schema.Struct({
3389
- canProduce: Schema.optional(Schema.Union([
3390
- Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"]),
3391
- Schema.Null,
3392
- ])),
3393
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3394
- Schema.Null,
3395
- ])),
3396
- video: Schema.optional(Schema.Union([
4122
+ screenshare: Schema.Struct({
4123
+ frameRate: Schema.Number,
4124
+ quality: Schema.Literals(["hd", "vga", "qvga"]),
4125
+ }).pipe(Schema.encodeKeys({ frameRate: "frame_rate", quality: "quality" })),
4126
+ video: Schema.Struct({
4127
+ frameRate: Schema.Number,
4128
+ quality: Schema.Literals(["hd", "vga", "qvga"]),
4129
+ }).pipe(Schema.encodeKeys({ frameRate: "frame_rate", quality: "quality" })),
4130
+ audio: Schema.optional(Schema.Union([
3397
4131
  Schema.Struct({
3398
- canProduce: Schema.optional(Schema.Union([
3399
- Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"]),
3400
- Schema.Null,
3401
- ])),
3402
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4132
+ enableHighBitrate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4133
+ enableStereo: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4134
+ }).pipe(Schema.encodeKeys({
4135
+ enableHighBitrate: "enable_high_bitrate",
4136
+ enableStereo: "enable_stereo",
4137
+ })),
3403
4138
  Schema.Null,
3404
4139
  ])),
3405
4140
  }),
@@ -3413,51 +4148,42 @@ export const PatchPresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3413
4148
  name: Schema.String,
3414
4149
  ui: Schema.Struct({
3415
4150
  designTokens: Schema.Struct({
3416
- borderRadius: Schema.optional(Schema.Union([Schema.Literal("rounded"), Schema.Null])),
3417
- borderWidth: Schema.optional(Schema.Union([Schema.Literal("thin"), Schema.Null])),
3418
- colors: Schema.optional(Schema.Union([
3419
- Schema.Struct({
3420
- background: Schema.optional(Schema.Union([
3421
- Schema.Struct({
3422
- "1000": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3423
- "600": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3424
- "700": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3425
- "800": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3426
- "900": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3427
- }),
3428
- Schema.Null,
3429
- ])),
3430
- brand: Schema.optional(Schema.Union([
3431
- Schema.Struct({
3432
- "300": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3433
- "400": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3434
- "500": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3435
- "600": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3436
- "700": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3437
- }),
3438
- Schema.Null,
3439
- ])),
3440
- danger: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3441
- success: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3442
- text: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3443
- textOnBrand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3444
- videoBg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3445
- warning: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3446
- }).pipe(Schema.encodeKeys({
3447
- background: "background",
3448
- brand: "brand",
3449
- danger: "danger",
3450
- success: "success",
3451
- text: "text",
3452
- textOnBrand: "text_on_brand",
3453
- videoBg: "video_bg",
3454
- warning: "warning",
3455
- })),
3456
- Schema.Null,
3457
- ])),
3458
- logo: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3459
- spacingBase: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3460
- theme: Schema.optional(Schema.Union([Schema.Literal("dark"), Schema.Null])),
4151
+ borderRadius: Schema.Literal("rounded"),
4152
+ borderWidth: Schema.Literal("thin"),
4153
+ colors: Schema.Struct({
4154
+ background: Schema.Struct({
4155
+ "1000": Schema.String,
4156
+ "600": Schema.String,
4157
+ "700": Schema.String,
4158
+ "800": Schema.String,
4159
+ "900": Schema.String,
4160
+ }),
4161
+ brand: Schema.Struct({
4162
+ "300": Schema.String,
4163
+ "400": Schema.String,
4164
+ "500": Schema.String,
4165
+ "600": Schema.String,
4166
+ "700": Schema.String,
4167
+ }),
4168
+ danger: Schema.String,
4169
+ success: Schema.String,
4170
+ text: Schema.String,
4171
+ textOnBrand: Schema.String,
4172
+ videoBg: Schema.String,
4173
+ warning: Schema.String,
4174
+ }).pipe(Schema.encodeKeys({
4175
+ background: "background",
4176
+ brand: "brand",
4177
+ danger: "danger",
4178
+ success: "success",
4179
+ text: "text",
4180
+ textOnBrand: "text_on_brand",
4181
+ videoBg: "video_bg",
4182
+ warning: "warning",
4183
+ })),
4184
+ logo: Schema.String,
4185
+ spacingBase: Schema.Number,
4186
+ theme: Schema.Literal("dark"),
3461
4187
  }).pipe(Schema.encodeKeys({
3462
4188
  borderRadius: "border_radius",
3463
4189
  borderWidth: "border_width",
@@ -3481,37 +4207,31 @@ export const PatchPresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3481
4207
  canRecord: Schema.Boolean,
3482
4208
  canSpotlight: Schema.Boolean,
3483
4209
  chat: Schema.Struct({
3484
- private: Schema.optional(Schema.Union([
3485
- Schema.Struct({
3486
- canReceive: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3487
- canSend: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3488
- files: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3489
- text: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3490
- }).pipe(Schema.encodeKeys({
3491
- canReceive: "can_receive",
3492
- canSend: "can_send",
3493
- files: "files",
3494
- text: "text",
3495
- })),
3496
- Schema.Null,
3497
- ])),
3498
- public: Schema.optional(Schema.Union([
3499
- Schema.Struct({
3500
- canSend: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3501
- files: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3502
- text: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3503
- }).pipe(Schema.encodeKeys({
3504
- canSend: "can_send",
3505
- files: "files",
3506
- text: "text",
3507
- })),
3508
- Schema.Null,
3509
- ])),
4210
+ private: Schema.Struct({
4211
+ canReceive: Schema.Boolean,
4212
+ canSend: Schema.Boolean,
4213
+ files: Schema.Boolean,
4214
+ text: Schema.Boolean,
4215
+ }).pipe(Schema.encodeKeys({
4216
+ canReceive: "can_receive",
4217
+ canSend: "can_send",
4218
+ files: "files",
4219
+ text: "text",
4220
+ })),
4221
+ public: Schema.Struct({
4222
+ canSend: Schema.Boolean,
4223
+ files: Schema.Boolean,
4224
+ text: Schema.Boolean,
4225
+ }).pipe(Schema.encodeKeys({
4226
+ canSend: "can_send",
4227
+ files: "files",
4228
+ text: "text",
4229
+ })),
3510
4230
  }),
3511
4231
  connectedMeetings: Schema.Struct({
3512
- canAlterConnectedMeetings: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3513
- canSwitchConnectedMeetings: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3514
- canSwitchToParentMeeting: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4232
+ canAlterConnectedMeetings: Schema.Boolean,
4233
+ canSwitchConnectedMeetings: Schema.Boolean,
4234
+ canSwitchToParentMeeting: Schema.Boolean,
3515
4235
  }).pipe(Schema.encodeKeys({
3516
4236
  canAlterConnectedMeetings: "can_alter_connected_meetings",
3517
4237
  canSwitchConnectedMeetings: "can_switch_connected_meetings",
@@ -3523,67 +4243,43 @@ export const PatchPresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3523
4243
  hiddenParticipant: Schema.Boolean,
3524
4244
  kickParticipant: Schema.Boolean,
3525
4245
  media: Schema.Struct({
3526
- audio: Schema.optional(Schema.Union([
3527
- Schema.Struct({
3528
- canProduce: Schema.optional(Schema.Union([
3529
- Schema.Literals([
3530
- "ALLOWED",
3531
- "NOT_ALLOWED",
3532
- "CAN_REQUEST",
3533
- ]),
3534
- Schema.Null,
3535
- ])),
3536
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3537
- Schema.Null,
3538
- ])),
3539
- screenshare: Schema.optional(Schema.Union([
3540
- Schema.Struct({
3541
- canProduce: Schema.optional(Schema.Union([
3542
- Schema.Literals([
3543
- "ALLOWED",
3544
- "NOT_ALLOWED",
3545
- "CAN_REQUEST",
3546
- ]),
3547
- Schema.Null,
3548
- ])),
3549
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3550
- Schema.Null,
3551
- ])),
3552
- video: Schema.optional(Schema.Union([
3553
- Schema.Struct({
3554
- canProduce: Schema.optional(Schema.Union([
3555
- Schema.Literals([
3556
- "ALLOWED",
3557
- "NOT_ALLOWED",
3558
- "CAN_REQUEST",
3559
- ]),
3560
- Schema.Null,
3561
- ])),
3562
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3563
- Schema.Null,
3564
- ])),
4246
+ audio: Schema.Struct({
4247
+ canProduce: Schema.Literals([
4248
+ "ALLOWED",
4249
+ "NOT_ALLOWED",
4250
+ "CAN_REQUEST",
4251
+ ]),
4252
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4253
+ screenshare: Schema.Struct({
4254
+ canProduce: Schema.Literals([
4255
+ "ALLOWED",
4256
+ "NOT_ALLOWED",
4257
+ "CAN_REQUEST",
4258
+ ]),
4259
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4260
+ video: Schema.Struct({
4261
+ canProduce: Schema.Literals([
4262
+ "ALLOWED",
4263
+ "NOT_ALLOWED",
4264
+ "CAN_REQUEST",
4265
+ ]),
4266
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3565
4267
  }),
3566
4268
  pinParticipant: Schema.Boolean,
3567
4269
  plugins: Schema.Struct({
3568
- canClose: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3569
- canEditConfig: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3570
- canStart: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3571
- config: Schema.optional(Schema.Union([
3572
- Schema.Union([
3573
- Schema.String,
3574
- Schema.Struct({
3575
- accessControl: Schema.optional(Schema.Union([
3576
- Schema.Literals(["FULL_ACCESS", "VIEW_ONLY"]),
3577
- Schema.Null,
3578
- ])),
3579
- handlesViewOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3580
- }).pipe(Schema.encodeKeys({
3581
- accessControl: "access_control",
3582
- handlesViewOnly: "handles_view_only",
3583
- })),
3584
- ]),
3585
- Schema.Null,
3586
- ])),
4270
+ canClose: Schema.Boolean,
4271
+ canEditConfig: Schema.Boolean,
4272
+ canStart: Schema.Boolean,
4273
+ config: Schema.Union([
4274
+ Schema.String,
4275
+ Schema.Struct({
4276
+ accessControl: Schema.Literals(["FULL_ACCESS", "VIEW_ONLY"]),
4277
+ handlesViewOnly: Schema.Boolean,
4278
+ }).pipe(Schema.encodeKeys({
4279
+ accessControl: "access_control",
4280
+ handlesViewOnly: "handles_view_only",
4281
+ })),
4282
+ ]),
3587
4283
  }).pipe(Schema.encodeKeys({
3588
4284
  canClose: "can_close",
3589
4285
  canEditConfig: "can_edit_config",
@@ -3591,9 +4287,9 @@ export const PatchPresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3591
4287
  config: "config",
3592
4288
  })),
3593
4289
  polls: Schema.Struct({
3594
- canCreate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3595
- canView: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3596
- canVote: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4290
+ canCreate: Schema.Boolean,
4291
+ canView: Schema.Boolean,
4292
+ canVote: Schema.Boolean,
3597
4293
  }).pipe(Schema.encodeKeys({
3598
4294
  canCreate: "can_create",
3599
4295
  canView: "can_view",
@@ -3655,26 +4351,26 @@ export const DeletePresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3655
4351
  config: Schema.Struct({
3656
4352
  maxScreenshareCount: Schema.Number,
3657
4353
  maxVideoStreams: Schema.Struct({
3658
- desktop: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3659
- mobile: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4354
+ desktop: Schema.Number,
4355
+ mobile: Schema.Number,
3660
4356
  }),
3661
4357
  media: Schema.Struct({
3662
- screenshare: Schema.optional(Schema.Union([
3663
- Schema.Struct({
3664
- canProduce: Schema.optional(Schema.Union([
3665
- Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"]),
3666
- Schema.Null,
3667
- ])),
3668
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3669
- Schema.Null,
3670
- ])),
3671
- video: Schema.optional(Schema.Union([
4358
+ screenshare: Schema.Struct({
4359
+ frameRate: Schema.Number,
4360
+ quality: Schema.Literals(["hd", "vga", "qvga"]),
4361
+ }).pipe(Schema.encodeKeys({ frameRate: "frame_rate", quality: "quality" })),
4362
+ video: Schema.Struct({
4363
+ frameRate: Schema.Number,
4364
+ quality: Schema.Literals(["hd", "vga", "qvga"]),
4365
+ }).pipe(Schema.encodeKeys({ frameRate: "frame_rate", quality: "quality" })),
4366
+ audio: Schema.optional(Schema.Union([
3672
4367
  Schema.Struct({
3673
- canProduce: Schema.optional(Schema.Union([
3674
- Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"]),
3675
- Schema.Null,
3676
- ])),
3677
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4368
+ enableHighBitrate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4369
+ enableStereo: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4370
+ }).pipe(Schema.encodeKeys({
4371
+ enableHighBitrate: "enable_high_bitrate",
4372
+ enableStereo: "enable_stereo",
4373
+ })),
3678
4374
  Schema.Null,
3679
4375
  ])),
3680
4376
  }),
@@ -3688,51 +4384,42 @@ export const DeletePresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3688
4384
  name: Schema.String,
3689
4385
  ui: Schema.Struct({
3690
4386
  designTokens: Schema.Struct({
3691
- borderRadius: Schema.optional(Schema.Union([Schema.Literal("rounded"), Schema.Null])),
3692
- borderWidth: Schema.optional(Schema.Union([Schema.Literal("thin"), Schema.Null])),
3693
- colors: Schema.optional(Schema.Union([
3694
- Schema.Struct({
3695
- background: Schema.optional(Schema.Union([
3696
- Schema.Struct({
3697
- "1000": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3698
- "600": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3699
- "700": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3700
- "800": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3701
- "900": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3702
- }),
3703
- Schema.Null,
3704
- ])),
3705
- brand: Schema.optional(Schema.Union([
3706
- Schema.Struct({
3707
- "300": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3708
- "400": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3709
- "500": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3710
- "600": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3711
- "700": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3712
- }),
3713
- Schema.Null,
3714
- ])),
3715
- danger: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3716
- success: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3717
- text: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3718
- textOnBrand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3719
- videoBg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3720
- warning: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3721
- }).pipe(Schema.encodeKeys({
3722
- background: "background",
3723
- brand: "brand",
3724
- danger: "danger",
3725
- success: "success",
3726
- text: "text",
3727
- textOnBrand: "text_on_brand",
3728
- videoBg: "video_bg",
3729
- warning: "warning",
3730
- })),
3731
- Schema.Null,
3732
- ])),
3733
- logo: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3734
- spacingBase: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3735
- theme: Schema.optional(Schema.Union([Schema.Literal("dark"), Schema.Null])),
4387
+ borderRadius: Schema.Literal("rounded"),
4388
+ borderWidth: Schema.Literal("thin"),
4389
+ colors: Schema.Struct({
4390
+ background: Schema.Struct({
4391
+ "1000": Schema.String,
4392
+ "600": Schema.String,
4393
+ "700": Schema.String,
4394
+ "800": Schema.String,
4395
+ "900": Schema.String,
4396
+ }),
4397
+ brand: Schema.Struct({
4398
+ "300": Schema.String,
4399
+ "400": Schema.String,
4400
+ "500": Schema.String,
4401
+ "600": Schema.String,
4402
+ "700": Schema.String,
4403
+ }),
4404
+ danger: Schema.String,
4405
+ success: Schema.String,
4406
+ text: Schema.String,
4407
+ textOnBrand: Schema.String,
4408
+ videoBg: Schema.String,
4409
+ warning: Schema.String,
4410
+ }).pipe(Schema.encodeKeys({
4411
+ background: "background",
4412
+ brand: "brand",
4413
+ danger: "danger",
4414
+ success: "success",
4415
+ text: "text",
4416
+ textOnBrand: "text_on_brand",
4417
+ videoBg: "video_bg",
4418
+ warning: "warning",
4419
+ })),
4420
+ logo: Schema.String,
4421
+ spacingBase: Schema.Number,
4422
+ theme: Schema.Literal("dark"),
3736
4423
  }).pipe(Schema.encodeKeys({
3737
4424
  borderRadius: "border_radius",
3738
4425
  borderWidth: "border_width",
@@ -3756,37 +4443,31 @@ export const DeletePresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3756
4443
  canRecord: Schema.Boolean,
3757
4444
  canSpotlight: Schema.Boolean,
3758
4445
  chat: Schema.Struct({
3759
- private: Schema.optional(Schema.Union([
3760
- Schema.Struct({
3761
- canReceive: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3762
- canSend: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3763
- files: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3764
- text: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3765
- }).pipe(Schema.encodeKeys({
3766
- canReceive: "can_receive",
3767
- canSend: "can_send",
3768
- files: "files",
3769
- text: "text",
3770
- })),
3771
- Schema.Null,
3772
- ])),
3773
- public: Schema.optional(Schema.Union([
3774
- Schema.Struct({
3775
- canSend: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3776
- files: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3777
- text: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3778
- }).pipe(Schema.encodeKeys({
3779
- canSend: "can_send",
3780
- files: "files",
3781
- text: "text",
3782
- })),
3783
- Schema.Null,
3784
- ])),
4446
+ private: Schema.Struct({
4447
+ canReceive: Schema.Boolean,
4448
+ canSend: Schema.Boolean,
4449
+ files: Schema.Boolean,
4450
+ text: Schema.Boolean,
4451
+ }).pipe(Schema.encodeKeys({
4452
+ canReceive: "can_receive",
4453
+ canSend: "can_send",
4454
+ files: "files",
4455
+ text: "text",
4456
+ })),
4457
+ public: Schema.Struct({
4458
+ canSend: Schema.Boolean,
4459
+ files: Schema.Boolean,
4460
+ text: Schema.Boolean,
4461
+ }).pipe(Schema.encodeKeys({
4462
+ canSend: "can_send",
4463
+ files: "files",
4464
+ text: "text",
4465
+ })),
3785
4466
  }),
3786
4467
  connectedMeetings: Schema.Struct({
3787
- canAlterConnectedMeetings: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3788
- canSwitchConnectedMeetings: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3789
- canSwitchToParentMeeting: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4468
+ canAlterConnectedMeetings: Schema.Boolean,
4469
+ canSwitchConnectedMeetings: Schema.Boolean,
4470
+ canSwitchToParentMeeting: Schema.Boolean,
3790
4471
  }).pipe(Schema.encodeKeys({
3791
4472
  canAlterConnectedMeetings: "can_alter_connected_meetings",
3792
4473
  canSwitchConnectedMeetings: "can_switch_connected_meetings",
@@ -3798,67 +4479,43 @@ export const DeletePresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3798
4479
  hiddenParticipant: Schema.Boolean,
3799
4480
  kickParticipant: Schema.Boolean,
3800
4481
  media: Schema.Struct({
3801
- audio: Schema.optional(Schema.Union([
3802
- Schema.Struct({
3803
- canProduce: Schema.optional(Schema.Union([
3804
- Schema.Literals([
3805
- "ALLOWED",
3806
- "NOT_ALLOWED",
3807
- "CAN_REQUEST",
3808
- ]),
3809
- Schema.Null,
3810
- ])),
3811
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3812
- Schema.Null,
3813
- ])),
3814
- screenshare: Schema.optional(Schema.Union([
3815
- Schema.Struct({
3816
- canProduce: Schema.optional(Schema.Union([
3817
- Schema.Literals([
3818
- "ALLOWED",
3819
- "NOT_ALLOWED",
3820
- "CAN_REQUEST",
3821
- ]),
3822
- Schema.Null,
3823
- ])),
3824
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3825
- Schema.Null,
3826
- ])),
3827
- video: Schema.optional(Schema.Union([
3828
- Schema.Struct({
3829
- canProduce: Schema.optional(Schema.Union([
3830
- Schema.Literals([
3831
- "ALLOWED",
3832
- "NOT_ALLOWED",
3833
- "CAN_REQUEST",
3834
- ]),
3835
- Schema.Null,
3836
- ])),
3837
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3838
- Schema.Null,
3839
- ])),
4482
+ audio: Schema.Struct({
4483
+ canProduce: Schema.Literals([
4484
+ "ALLOWED",
4485
+ "NOT_ALLOWED",
4486
+ "CAN_REQUEST",
4487
+ ]),
4488
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4489
+ screenshare: Schema.Struct({
4490
+ canProduce: Schema.Literals([
4491
+ "ALLOWED",
4492
+ "NOT_ALLOWED",
4493
+ "CAN_REQUEST",
4494
+ ]),
4495
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4496
+ video: Schema.Struct({
4497
+ canProduce: Schema.Literals([
4498
+ "ALLOWED",
4499
+ "NOT_ALLOWED",
4500
+ "CAN_REQUEST",
4501
+ ]),
4502
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3840
4503
  }),
3841
4504
  pinParticipant: Schema.Boolean,
3842
4505
  plugins: Schema.Struct({
3843
- canClose: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3844
- canEditConfig: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3845
- canStart: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3846
- config: Schema.optional(Schema.Union([
3847
- Schema.Union([
3848
- Schema.String,
3849
- Schema.Struct({
3850
- accessControl: Schema.optional(Schema.Union([
3851
- Schema.Literals(["FULL_ACCESS", "VIEW_ONLY"]),
3852
- Schema.Null,
3853
- ])),
3854
- handlesViewOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3855
- }).pipe(Schema.encodeKeys({
3856
- accessControl: "access_control",
3857
- handlesViewOnly: "handles_view_only",
3858
- })),
3859
- ]),
3860
- Schema.Null,
3861
- ])),
4506
+ canClose: Schema.Boolean,
4507
+ canEditConfig: Schema.Boolean,
4508
+ canStart: Schema.Boolean,
4509
+ config: Schema.Union([
4510
+ Schema.String,
4511
+ Schema.Struct({
4512
+ accessControl: Schema.Literals(["FULL_ACCESS", "VIEW_ONLY"]),
4513
+ handlesViewOnly: Schema.Boolean,
4514
+ }).pipe(Schema.encodeKeys({
4515
+ accessControl: "access_control",
4516
+ handlesViewOnly: "handles_view_only",
4517
+ })),
4518
+ ]),
3862
4519
  }).pipe(Schema.encodeKeys({
3863
4520
  canClose: "can_close",
3864
4521
  canEditConfig: "can_edit_config",
@@ -3866,9 +4523,9 @@ export const DeletePresetResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3866
4523
  config: "config",
3867
4524
  })),
3868
4525
  polls: Schema.Struct({
3869
- canCreate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3870
- canView: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3871
- canVote: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4526
+ canCreate: Schema.Boolean,
4527
+ canView: Schema.Boolean,
4528
+ canVote: Schema.Boolean,
3872
4529
  }).pipe(Schema.encodeKeys({
3873
4530
  canCreate: "can_create",
3874
4531
  canView: "can_view",
@@ -3932,26 +4589,26 @@ export const GetPresetByIdPresetResponse =
3932
4589
  config: Schema.Struct({
3933
4590
  maxScreenshareCount: Schema.Number,
3934
4591
  maxVideoStreams: Schema.Struct({
3935
- desktop: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3936
- mobile: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4592
+ desktop: Schema.Number,
4593
+ mobile: Schema.Number,
3937
4594
  }),
3938
4595
  media: Schema.Struct({
3939
- screenshare: Schema.optional(Schema.Union([
3940
- Schema.Struct({
3941
- canProduce: Schema.optional(Schema.Union([
3942
- Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"]),
3943
- Schema.Null,
3944
- ])),
3945
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
3946
- Schema.Null,
3947
- ])),
3948
- video: Schema.optional(Schema.Union([
4596
+ screenshare: Schema.Struct({
4597
+ frameRate: Schema.Number,
4598
+ quality: Schema.Literals(["hd", "vga", "qvga"]),
4599
+ }).pipe(Schema.encodeKeys({ frameRate: "frame_rate", quality: "quality" })),
4600
+ video: Schema.Struct({
4601
+ frameRate: Schema.Number,
4602
+ quality: Schema.Literals(["hd", "vga", "qvga"]),
4603
+ }).pipe(Schema.encodeKeys({ frameRate: "frame_rate", quality: "quality" })),
4604
+ audio: Schema.optional(Schema.Union([
3949
4605
  Schema.Struct({
3950
- canProduce: Schema.optional(Schema.Union([
3951
- Schema.Literals(["ALLOWED", "NOT_ALLOWED", "CAN_REQUEST"]),
3952
- Schema.Null,
3953
- ])),
3954
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4606
+ enableHighBitrate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4607
+ enableStereo: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4608
+ }).pipe(Schema.encodeKeys({
4609
+ enableHighBitrate: "enable_high_bitrate",
4610
+ enableStereo: "enable_stereo",
4611
+ })),
3955
4612
  Schema.Null,
3956
4613
  ])),
3957
4614
  }),
@@ -3965,51 +4622,42 @@ export const GetPresetByIdPresetResponse =
3965
4622
  name: Schema.String,
3966
4623
  ui: Schema.Struct({
3967
4624
  designTokens: Schema.Struct({
3968
- borderRadius: Schema.optional(Schema.Union([Schema.Literal("rounded"), Schema.Null])),
3969
- borderWidth: Schema.optional(Schema.Union([Schema.Literal("thin"), Schema.Null])),
3970
- colors: Schema.optional(Schema.Union([
3971
- Schema.Struct({
3972
- background: Schema.optional(Schema.Union([
3973
- Schema.Struct({
3974
- "1000": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3975
- "600": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3976
- "700": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3977
- "800": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3978
- "900": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3979
- }),
3980
- Schema.Null,
3981
- ])),
3982
- brand: Schema.optional(Schema.Union([
3983
- Schema.Struct({
3984
- "300": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3985
- "400": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3986
- "500": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3987
- "600": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3988
- "700": Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3989
- }),
3990
- Schema.Null,
3991
- ])),
3992
- danger: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3993
- success: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3994
- text: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3995
- textOnBrand: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3996
- videoBg: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3997
- warning: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3998
- }).pipe(Schema.encodeKeys({
3999
- background: "background",
4000
- brand: "brand",
4001
- danger: "danger",
4002
- success: "success",
4003
- text: "text",
4004
- textOnBrand: "text_on_brand",
4005
- videoBg: "video_bg",
4006
- warning: "warning",
4007
- })),
4008
- Schema.Null,
4009
- ])),
4010
- logo: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4011
- spacingBase: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4012
- theme: Schema.optional(Schema.Union([Schema.Literal("dark"), Schema.Null])),
4625
+ borderRadius: Schema.Literal("rounded"),
4626
+ borderWidth: Schema.Literal("thin"),
4627
+ colors: Schema.Struct({
4628
+ background: Schema.Struct({
4629
+ "1000": Schema.String,
4630
+ "600": Schema.String,
4631
+ "700": Schema.String,
4632
+ "800": Schema.String,
4633
+ "900": Schema.String,
4634
+ }),
4635
+ brand: Schema.Struct({
4636
+ "300": Schema.String,
4637
+ "400": Schema.String,
4638
+ "500": Schema.String,
4639
+ "600": Schema.String,
4640
+ "700": Schema.String,
4641
+ }),
4642
+ danger: Schema.String,
4643
+ success: Schema.String,
4644
+ text: Schema.String,
4645
+ textOnBrand: Schema.String,
4646
+ videoBg: Schema.String,
4647
+ warning: Schema.String,
4648
+ }).pipe(Schema.encodeKeys({
4649
+ background: "background",
4650
+ brand: "brand",
4651
+ danger: "danger",
4652
+ success: "success",
4653
+ text: "text",
4654
+ textOnBrand: "text_on_brand",
4655
+ videoBg: "video_bg",
4656
+ warning: "warning",
4657
+ })),
4658
+ logo: Schema.String,
4659
+ spacingBase: Schema.Number,
4660
+ theme: Schema.Literal("dark"),
4013
4661
  }).pipe(Schema.encodeKeys({
4014
4662
  borderRadius: "border_radius",
4015
4663
  borderWidth: "border_width",
@@ -4033,37 +4681,31 @@ export const GetPresetByIdPresetResponse =
4033
4681
  canRecord: Schema.Boolean,
4034
4682
  canSpotlight: Schema.Boolean,
4035
4683
  chat: Schema.Struct({
4036
- private: Schema.optional(Schema.Union([
4037
- Schema.Struct({
4038
- canReceive: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4039
- canSend: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4040
- files: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4041
- text: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4042
- }).pipe(Schema.encodeKeys({
4043
- canReceive: "can_receive",
4044
- canSend: "can_send",
4045
- files: "files",
4046
- text: "text",
4047
- })),
4048
- Schema.Null,
4049
- ])),
4050
- public: Schema.optional(Schema.Union([
4051
- Schema.Struct({
4052
- canSend: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4053
- files: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4054
- text: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4055
- }).pipe(Schema.encodeKeys({
4056
- canSend: "can_send",
4057
- files: "files",
4058
- text: "text",
4059
- })),
4060
- Schema.Null,
4061
- ])),
4684
+ private: Schema.Struct({
4685
+ canReceive: Schema.Boolean,
4686
+ canSend: Schema.Boolean,
4687
+ files: Schema.Boolean,
4688
+ text: Schema.Boolean,
4689
+ }).pipe(Schema.encodeKeys({
4690
+ canReceive: "can_receive",
4691
+ canSend: "can_send",
4692
+ files: "files",
4693
+ text: "text",
4694
+ })),
4695
+ public: Schema.Struct({
4696
+ canSend: Schema.Boolean,
4697
+ files: Schema.Boolean,
4698
+ text: Schema.Boolean,
4699
+ }).pipe(Schema.encodeKeys({
4700
+ canSend: "can_send",
4701
+ files: "files",
4702
+ text: "text",
4703
+ })),
4062
4704
  }),
4063
4705
  connectedMeetings: Schema.Struct({
4064
- canAlterConnectedMeetings: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4065
- canSwitchConnectedMeetings: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4066
- canSwitchToParentMeeting: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4706
+ canAlterConnectedMeetings: Schema.Boolean,
4707
+ canSwitchConnectedMeetings: Schema.Boolean,
4708
+ canSwitchToParentMeeting: Schema.Boolean,
4067
4709
  }).pipe(Schema.encodeKeys({
4068
4710
  canAlterConnectedMeetings: "can_alter_connected_meetings",
4069
4711
  canSwitchConnectedMeetings: "can_switch_connected_meetings",
@@ -4075,67 +4717,43 @@ export const GetPresetByIdPresetResponse =
4075
4717
  hiddenParticipant: Schema.Boolean,
4076
4718
  kickParticipant: Schema.Boolean,
4077
4719
  media: Schema.Struct({
4078
- audio: Schema.optional(Schema.Union([
4079
- Schema.Struct({
4080
- canProduce: Schema.optional(Schema.Union([
4081
- Schema.Literals([
4082
- "ALLOWED",
4083
- "NOT_ALLOWED",
4084
- "CAN_REQUEST",
4085
- ]),
4086
- Schema.Null,
4087
- ])),
4088
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4089
- Schema.Null,
4090
- ])),
4091
- screenshare: Schema.optional(Schema.Union([
4092
- Schema.Struct({
4093
- canProduce: Schema.optional(Schema.Union([
4094
- Schema.Literals([
4095
- "ALLOWED",
4096
- "NOT_ALLOWED",
4097
- "CAN_REQUEST",
4098
- ]),
4099
- Schema.Null,
4100
- ])),
4101
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4102
- Schema.Null,
4103
- ])),
4104
- video: Schema.optional(Schema.Union([
4105
- Schema.Struct({
4106
- canProduce: Schema.optional(Schema.Union([
4107
- Schema.Literals([
4108
- "ALLOWED",
4109
- "NOT_ALLOWED",
4110
- "CAN_REQUEST",
4111
- ]),
4112
- Schema.Null,
4113
- ])),
4114
- }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4115
- Schema.Null,
4116
- ])),
4720
+ audio: Schema.Struct({
4721
+ canProduce: Schema.Literals([
4722
+ "ALLOWED",
4723
+ "NOT_ALLOWED",
4724
+ "CAN_REQUEST",
4725
+ ]),
4726
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4727
+ screenshare: Schema.Struct({
4728
+ canProduce: Schema.Literals([
4729
+ "ALLOWED",
4730
+ "NOT_ALLOWED",
4731
+ "CAN_REQUEST",
4732
+ ]),
4733
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4734
+ video: Schema.Struct({
4735
+ canProduce: Schema.Literals([
4736
+ "ALLOWED",
4737
+ "NOT_ALLOWED",
4738
+ "CAN_REQUEST",
4739
+ ]),
4740
+ }).pipe(Schema.encodeKeys({ canProduce: "can_produce" })),
4117
4741
  }),
4118
4742
  pinParticipant: Schema.Boolean,
4119
4743
  plugins: Schema.Struct({
4120
- canClose: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4121
- canEditConfig: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4122
- canStart: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4123
- config: Schema.optional(Schema.Union([
4124
- Schema.Union([
4125
- Schema.String,
4126
- Schema.Struct({
4127
- accessControl: Schema.optional(Schema.Union([
4128
- Schema.Literals(["FULL_ACCESS", "VIEW_ONLY"]),
4129
- Schema.Null,
4130
- ])),
4131
- handlesViewOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4132
- }).pipe(Schema.encodeKeys({
4133
- accessControl: "access_control",
4134
- handlesViewOnly: "handles_view_only",
4135
- })),
4136
- ]),
4137
- Schema.Null,
4138
- ])),
4744
+ canClose: Schema.Boolean,
4745
+ canEditConfig: Schema.Boolean,
4746
+ canStart: Schema.Boolean,
4747
+ config: Schema.Union([
4748
+ Schema.String,
4749
+ Schema.Struct({
4750
+ accessControl: Schema.Literals(["FULL_ACCESS", "VIEW_ONLY"]),
4751
+ handlesViewOnly: Schema.Boolean,
4752
+ }).pipe(Schema.encodeKeys({
4753
+ accessControl: "access_control",
4754
+ handlesViewOnly: "handles_view_only",
4755
+ })),
4756
+ ]),
4139
4757
  }).pipe(Schema.encodeKeys({
4140
4758
  canClose: "can_close",
4141
4759
  canEditConfig: "can_edit_config",
@@ -4143,9 +4761,9 @@ export const GetPresetByIdPresetResponse =
4143
4761
  config: "config",
4144
4762
  })),
4145
4763
  polls: Schema.Struct({
4146
- canCreate: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4147
- canView: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4148
- canVote: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4764
+ canCreate: Schema.Boolean,
4765
+ canView: Schema.Boolean,
4766
+ canVote: Schema.Boolean,
4149
4767
  }).pipe(Schema.encodeKeys({
4150
4768
  canCreate: "can_create",
4151
4769
  canView: "can_view",
@@ -4840,7 +5458,166 @@ export const GetSessionParticipantDetailsSessionResponse =
4840
5458
  duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4841
5459
  joinedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4842
5460
  leftAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5461
+ peerStats: Schema.optional(Schema.Union([
5462
+ Schema.Struct({
5463
+ config: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5464
+ deviceInfo: Schema.optional(Schema.Union([
5465
+ Schema.Struct({
5466
+ browser: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5467
+ browserVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5468
+ cpus: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5469
+ engine: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5470
+ isMobile: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5471
+ memory: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5472
+ os: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5473
+ osVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5474
+ sdkName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5475
+ sdkVersion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5476
+ userAgent: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5477
+ webglSupport: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5478
+ }).pipe(Schema.encodeKeys({
5479
+ browser: "browser",
5480
+ browserVersion: "browser_version",
5481
+ cpus: "cpus",
5482
+ engine: "engine",
5483
+ isMobile: "is_mobile",
5484
+ memory: "memory",
5485
+ os: "os",
5486
+ osVersion: "os_version",
5487
+ sdkName: "sdk_name",
5488
+ sdkVersion: "sdk_version",
5489
+ userAgent: "user_agent",
5490
+ webglSupport: "webgl_support",
5491
+ })),
5492
+ Schema.Null,
5493
+ ])),
5494
+ events: Schema.optional(Schema.Union([
5495
+ Schema.Array(Schema.Struct({
5496
+ timestamp: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5497
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5498
+ })),
5499
+ Schema.Null,
5500
+ ])),
5501
+ ipInformation: Schema.optional(Schema.Union([
5502
+ Schema.Struct({
5503
+ city: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5504
+ country: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5505
+ ipLocation: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5506
+ ipv4: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5507
+ org: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5508
+ portal: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5509
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5510
+ timezone: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5511
+ }).pipe(Schema.encodeKeys({
5512
+ city: "city",
5513
+ country: "country",
5514
+ ipLocation: "ip_location",
5515
+ ipv4: "ipv4",
5516
+ org: "org",
5517
+ portal: "portal",
5518
+ region: "region",
5519
+ timezone: "timezone",
5520
+ })),
5521
+ Schema.Null,
5522
+ ])),
5523
+ precallNetworkInformation: Schema.optional(Schema.Union([
5524
+ Schema.Struct({
5525
+ backendRtt: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5526
+ effectiveNetworktype: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5527
+ fractionalLoss: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5528
+ jitter: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5529
+ reflexiveConnectivity: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5530
+ relayConnectivity: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5531
+ rtt: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5532
+ throughtput: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5533
+ turnConnectivity: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5534
+ }).pipe(Schema.encodeKeys({
5535
+ backendRtt: "backend_rtt",
5536
+ effectiveNetworktype: "effective_networktype",
5537
+ fractionalLoss: "fractional_loss",
5538
+ jitter: "jitter",
5539
+ reflexiveConnectivity: "reflexive_connectivity",
5540
+ relayConnectivity: "relay_connectivity",
5541
+ rtt: "rtt",
5542
+ throughtput: "throughtput",
5543
+ turnConnectivity: "turn_connectivity",
5544
+ })),
5545
+ Schema.Null,
5546
+ ])),
5547
+ status: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5548
+ }).pipe(Schema.encodeKeys({
5549
+ config: "config",
5550
+ deviceInfo: "device_info",
5551
+ events: "events",
5552
+ ipInformation: "ip_information",
5553
+ precallNetworkInformation: "precall_network_information",
5554
+ status: "status",
5555
+ })),
5556
+ Schema.Null,
5557
+ ])),
4843
5558
  presetName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5559
+ qualityStats: Schema.optional(Schema.Union([
5560
+ Schema.Array(Schema.Struct({
5561
+ audioBandwidth: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5562
+ audioPacketLoss: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5563
+ audioStats: Schema.optional(Schema.Union([
5564
+ Schema.Array(Schema.Struct({
5565
+ concealmentEvents: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5566
+ jitter: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5567
+ packetsLost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5568
+ quality: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5569
+ timestamp: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5570
+ }).pipe(Schema.encodeKeys({
5571
+ concealmentEvents: "concealment_events",
5572
+ jitter: "jitter",
5573
+ packetsLost: "packets_lost",
5574
+ quality: "quality",
5575
+ timestamp: "timestamp",
5576
+ }))),
5577
+ Schema.Null,
5578
+ ])),
5579
+ averageQuality: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5580
+ end: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5581
+ peerId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5582
+ start: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5583
+ videoBandwidth: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5584
+ videoPacketLoss: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5585
+ videoStats: Schema.optional(Schema.Union([
5586
+ Schema.Array(Schema.Struct({
5587
+ frameHeight: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5588
+ frameWidth: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5589
+ framesDropped: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5590
+ framesPerSecond: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5591
+ jitter: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5592
+ packetsLost: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5593
+ quality: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5594
+ timestamp: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5595
+ }).pipe(Schema.encodeKeys({
5596
+ frameHeight: "frame_height",
5597
+ frameWidth: "frame_width",
5598
+ framesDropped: "frames_dropped",
5599
+ framesPerSecond: "frames_per_second",
5600
+ jitter: "jitter",
5601
+ packetsLost: "packets_lost",
5602
+ quality: "quality",
5603
+ timestamp: "timestamp",
5604
+ }))),
5605
+ Schema.Null,
5606
+ ])),
5607
+ }).pipe(Schema.encodeKeys({
5608
+ audioBandwidth: "audio_bandwidth",
5609
+ audioPacketLoss: "audio_packet_loss",
5610
+ audioStats: "audio_stats",
5611
+ averageQuality: "average_quality",
5612
+ end: "end",
5613
+ peerId: "peer_id",
5614
+ start: "start",
5615
+ videoBandwidth: "video_bandwidth",
5616
+ videoPacketLoss: "video_packet_loss",
5617
+ videoStats: "video_stats",
5618
+ }))),
5619
+ Schema.Null,
5620
+ ])),
4844
5621
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4845
5622
  userId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4846
5623
  }).pipe(Schema.encodeKeys({
@@ -4851,7 +5628,9 @@ export const GetSessionParticipantDetailsSessionResponse =
4851
5628
  duration: "duration",
4852
5629
  joinedAt: "joined_at",
4853
5630
  leftAt: "left_at",
5631
+ peerStats: "peer_stats",
4854
5632
  presetName: "preset_name",
5633
+ qualityStats: "quality_stats",
4855
5634
  updatedAt: "updated_at",
4856
5635
  userId: "user_id",
4857
5636
  })),
@@ -5071,7 +5850,7 @@ export const StartTrackRecordingRecordingRequest =
5071
5850
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5072
5851
  appId: Schema.String.pipe(T.HttpPath("appId")),
5073
5852
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
5074
- layers: Schema.Struct({}),
5853
+ layers: Schema.Record(Schema.String, Schema.Unknown),
5075
5854
  meetingId: Schema.String,
5076
5855
  maxSeconds: Schema.optional(Schema.Number),
5077
5856
  }).pipe(Schema.encodeKeys({