@leaflow/sdk 0.0.0-dev.472.g83cc4b9 → 0.0.0-dev.476.gdbfc694

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 (209) hide show
  1. package/dist/fleet/v1/generated/functions.d.ts +49 -7
  2. package/dist/fleet/v1/generated/functions.js +46 -3
  3. package/dist/fleet/v1/generated/models.d.ts +21 -8
  4. package/dist/fleet/v1/generated/schemas.zod.d.ts +43 -6
  5. package/dist/fleet/v1/generated/schemas.zod.js +52 -6
  6. package/dist/fleet/v1/generated/validators/accountList.zod.d.ts +6 -3
  7. package/dist/fleet/v1/generated/validators/accountList.zod.js +6 -3
  8. package/dist/fleet/v1/generated/validators/accountResource.zod.d.ts +6 -3
  9. package/dist/fleet/v1/generated/validators/accountResource.zod.js +6 -3
  10. package/dist/fleet/v1/generated/validators/approveEnrollmentRequest.zod.d.ts +6 -3
  11. package/dist/fleet/v1/generated/validators/approveEnrollmentRequest.zod.js +6 -3
  12. package/dist/fleet/v1/generated/validators/callMcpToolRequest.zod.d.ts +6 -3
  13. package/dist/fleet/v1/generated/validators/callMcpToolRequest.zod.js +6 -3
  14. package/dist/fleet/v1/generated/validators/callMcpToolResponse.zod.d.ts +6 -3
  15. package/dist/fleet/v1/generated/validators/callMcpToolResponse.zod.js +6 -3
  16. package/dist/fleet/v1/generated/validators/createGroupMemberRequest.zod.d.ts +6 -3
  17. package/dist/fleet/v1/generated/validators/createGroupMemberRequest.zod.js +6 -3
  18. package/dist/fleet/v1/generated/validators/createGroupRequest.zod.d.ts +6 -3
  19. package/dist/fleet/v1/generated/validators/createGroupRequest.zod.js +6 -3
  20. package/dist/fleet/v1/generated/validators/createMachineRegistrationRequest.zod.d.ts +6 -3
  21. package/dist/fleet/v1/generated/validators/createMachineRegistrationRequest.zod.js +6 -3
  22. package/dist/fleet/v1/generated/validators/createMachineRegistrationResponse.zod.d.ts +6 -3
  23. package/dist/fleet/v1/generated/validators/createMachineRegistrationResponse.zod.js +6 -3
  24. package/dist/fleet/v1/generated/validators/createParticipantRequest.zod.d.ts +6 -3
  25. package/dist/fleet/v1/generated/validators/createParticipantRequest.zod.js +6 -3
  26. package/dist/fleet/v1/generated/validators/createParticipantResponse.zod.d.ts +7 -3
  27. package/dist/fleet/v1/generated/validators/createParticipantResponse.zod.js +6 -3
  28. package/dist/fleet/v1/generated/validators/createPeerConnectionCandidatesRequest.zod.d.ts +6 -3
  29. package/dist/fleet/v1/generated/validators/createPeerConnectionCandidatesRequest.zod.js +6 -3
  30. package/dist/fleet/v1/generated/validators/createPeerConnectionRequest.zod.d.ts +6 -3
  31. package/dist/fleet/v1/generated/validators/createPeerConnectionRequest.zod.js +6 -3
  32. package/dist/fleet/v1/generated/validators/createSessionRequest.zod.d.ts +6 -3
  33. package/dist/fleet/v1/generated/validators/createSessionRequest.zod.js +6 -3
  34. package/dist/fleet/v1/generated/validators/cursorPagination.zod.d.ts +6 -3
  35. package/dist/fleet/v1/generated/validators/cursorPagination.zod.js +6 -3
  36. package/dist/fleet/v1/generated/validators/deleteMcpServerParams.zod.d.ts +6 -3
  37. package/dist/fleet/v1/generated/validators/deleteMcpServerParams.zod.js +6 -3
  38. package/dist/fleet/v1/generated/validators/denyPrivilegeRequestRequest.zod.d.ts +6 -3
  39. package/dist/fleet/v1/generated/validators/denyPrivilegeRequestRequest.zod.js +6 -3
  40. package/dist/fleet/v1/generated/validators/desktopOptions.zod.d.ts +6 -3
  41. package/dist/fleet/v1/generated/validators/desktopOptions.zod.js +6 -3
  42. package/dist/fleet/v1/generated/validators/desktopState.zod.d.ts +6 -3
  43. package/dist/fleet/v1/generated/validators/desktopState.zod.js +6 -3
  44. package/dist/fleet/v1/generated/validators/directoryName.zod.d.ts +6 -3
  45. package/dist/fleet/v1/generated/validators/directoryName.zod.js +6 -3
  46. package/dist/fleet/v1/generated/validators/enrollmentResource.zod.d.ts +6 -3
  47. package/dist/fleet/v1/generated/validators/enrollmentResource.zod.js +6 -3
  48. package/dist/fleet/v1/generated/validators/enrollmentState.zod.d.ts +6 -3
  49. package/dist/fleet/v1/generated/validators/enrollmentState.zod.js +6 -3
  50. package/dist/fleet/v1/generated/validators/error.zod.d.ts +6 -3
  51. package/dist/fleet/v1/generated/validators/error.zod.js +6 -3
  52. package/dist/fleet/v1/generated/validators/errorStatus.zod.d.ts +6 -3
  53. package/dist/fleet/v1/generated/validators/errorStatus.zod.js +6 -3
  54. package/dist/fleet/v1/generated/validators/featureState.zod.d.ts +6 -3
  55. package/dist/fleet/v1/generated/validators/featureState.zod.js +6 -3
  56. package/dist/fleet/v1/generated/validators/fieldViolation.zod.d.ts +6 -3
  57. package/dist/fleet/v1/generated/validators/fieldViolation.zod.js +6 -3
  58. package/dist/fleet/v1/generated/validators/findEnrollmentByPairingCodeParams.zod.d.ts +6 -3
  59. package/dist/fleet/v1/generated/validators/findEnrollmentByPairingCodeParams.zod.js +6 -3
  60. package/dist/fleet/v1/generated/validators/findEnrollmentResponse.zod.d.ts +6 -3
  61. package/dist/fleet/v1/generated/validators/findEnrollmentResponse.zod.js +6 -3
  62. package/dist/fleet/v1/generated/validators/getPeerConnectionParams.zod.d.ts +248 -0
  63. package/dist/fleet/v1/generated/validators/getPeerConnectionParams.zod.js +250 -0
  64. package/dist/fleet/v1/generated/validators/groupList.zod.d.ts +6 -3
  65. package/dist/fleet/v1/generated/validators/groupList.zod.js +6 -3
  66. package/dist/fleet/v1/generated/validators/groupResource.zod.d.ts +6 -3
  67. package/dist/fleet/v1/generated/validators/groupResource.zod.js +6 -3
  68. package/dist/fleet/v1/generated/validators/iceCandidate.zod.d.ts +6 -3
  69. package/dist/fleet/v1/generated/validators/iceCandidate.zod.js +6 -3
  70. package/dist/fleet/v1/generated/validators/iceServer.zod.d.ts +6 -3
  71. package/dist/fleet/v1/generated/validators/iceServer.zod.js +6 -3
  72. package/dist/fleet/v1/generated/validators/listAccountsParams.zod.d.ts +6 -3
  73. package/dist/fleet/v1/generated/validators/listAccountsParams.zod.js +6 -3
  74. package/dist/fleet/v1/generated/validators/listGroupMembersParams.zod.d.ts +6 -3
  75. package/dist/fleet/v1/generated/validators/listGroupMembersParams.zod.js +6 -3
  76. package/dist/fleet/v1/generated/validators/listGroupsParams.zod.d.ts +6 -3
  77. package/dist/fleet/v1/generated/validators/listGroupsParams.zod.js +6 -3
  78. package/dist/fleet/v1/generated/validators/listMachineEventsParams.zod.d.ts +6 -3
  79. package/dist/fleet/v1/generated/validators/listMachineEventsParams.zod.js +6 -3
  80. package/dist/fleet/v1/generated/validators/listMachineRegistrationsParams.zod.d.ts +6 -3
  81. package/dist/fleet/v1/generated/validators/listMachineRegistrationsParams.zod.js +6 -3
  82. package/dist/fleet/v1/generated/validators/listMachinesParams.zod.d.ts +6 -3
  83. package/dist/fleet/v1/generated/validators/listMachinesParams.zod.js +6 -3
  84. package/dist/fleet/v1/generated/validators/listMcpToolsParams.zod.d.ts +6 -3
  85. package/dist/fleet/v1/generated/validators/listMcpToolsParams.zod.js +6 -3
  86. package/dist/fleet/v1/generated/validators/listPrivilegeAutoApprovalsParams.zod.d.ts +6 -3
  87. package/dist/fleet/v1/generated/validators/listPrivilegeAutoApprovalsParams.zod.js +6 -3
  88. package/dist/fleet/v1/generated/validators/listPrivilegeRequestsParams.zod.d.ts +6 -3
  89. package/dist/fleet/v1/generated/validators/listPrivilegeRequestsParams.zod.js +6 -3
  90. package/dist/fleet/v1/generated/validators/listSessionsParams.zod.d.ts +6 -3
  91. package/dist/fleet/v1/generated/validators/listSessionsParams.zod.js +6 -3
  92. package/dist/fleet/v1/generated/validators/machineEventList.zod.d.ts +6 -3
  93. package/dist/fleet/v1/generated/validators/machineEventList.zod.js +6 -3
  94. package/dist/fleet/v1/generated/validators/machineEventResource.zod.d.ts +6 -3
  95. package/dist/fleet/v1/generated/validators/machineEventResource.zod.js +6 -3
  96. package/dist/fleet/v1/generated/validators/machineEventType.zod.d.ts +6 -3
  97. package/dist/fleet/v1/generated/validators/machineEventType.zod.js +6 -3
  98. package/dist/fleet/v1/generated/validators/machineFeature.zod.d.ts +6 -3
  99. package/dist/fleet/v1/generated/validators/machineFeature.zod.js +6 -3
  100. package/dist/fleet/v1/generated/validators/machineList.zod.d.ts +6 -3
  101. package/dist/fleet/v1/generated/validators/machineList.zod.js +6 -3
  102. package/dist/fleet/v1/generated/validators/machineRegistrationList.zod.d.ts +6 -3
  103. package/dist/fleet/v1/generated/validators/machineRegistrationList.zod.js +6 -3
  104. package/dist/fleet/v1/generated/validators/machineRegistrationResource.zod.d.ts +6 -3
  105. package/dist/fleet/v1/generated/validators/machineRegistrationResource.zod.js +6 -3
  106. package/dist/fleet/v1/generated/validators/machineRegistrationState.zod.d.ts +6 -3
  107. package/dist/fleet/v1/generated/validators/machineRegistrationState.zod.js +6 -3
  108. package/dist/fleet/v1/generated/validators/machineResource.zod.d.ts +6 -3
  109. package/dist/fleet/v1/generated/validators/machineResource.zod.js +6 -3
  110. package/dist/fleet/v1/generated/validators/mcpConfigurationFile.zod.d.ts +6 -3
  111. package/dist/fleet/v1/generated/validators/mcpConfigurationFile.zod.js +6 -3
  112. package/dist/fleet/v1/generated/validators/mcpConfigurationResource.zod.d.ts +6 -3
  113. package/dist/fleet/v1/generated/validators/mcpConfigurationResource.zod.js +6 -3
  114. package/dist/fleet/v1/generated/validators/mcpImplementation.zod.d.ts +6 -3
  115. package/dist/fleet/v1/generated/validators/mcpImplementation.zod.js +6 -3
  116. package/dist/fleet/v1/generated/validators/mcpServerFailure.zod.d.ts +6 -3
  117. package/dist/fleet/v1/generated/validators/mcpServerFailure.zod.js +6 -3
  118. package/dist/fleet/v1/generated/validators/mcpServerResource.zod.d.ts +6 -3
  119. package/dist/fleet/v1/generated/validators/mcpServerResource.zod.js +6 -3
  120. package/dist/fleet/v1/generated/validators/mcpToolList.zod.d.ts +6 -3
  121. package/dist/fleet/v1/generated/validators/mcpToolList.zod.js +6 -3
  122. package/dist/fleet/v1/generated/validators/mcpToolResource.zod.d.ts +6 -3
  123. package/dist/fleet/v1/generated/validators/mcpToolResource.zod.js +6 -3
  124. package/dist/fleet/v1/generated/validators/mcpTransport.zod.d.ts +6 -3
  125. package/dist/fleet/v1/generated/validators/mcpTransport.zod.js +6 -3
  126. package/dist/fleet/v1/generated/validators/mcpUnavailableServer.zod.d.ts +6 -3
  127. package/dist/fleet/v1/generated/validators/mcpUnavailableServer.zod.js +6 -3
  128. package/dist/fleet/v1/generated/validators/migrationStep.zod.d.ts +6 -3
  129. package/dist/fleet/v1/generated/validators/migrationStep.zod.js +6 -3
  130. package/dist/fleet/v1/generated/validators/namedIdentity.zod.d.ts +6 -3
  131. package/dist/fleet/v1/generated/validators/namedIdentity.zod.js +6 -3
  132. package/dist/fleet/v1/generated/validators/offsetPagination.zod.d.ts +6 -3
  133. package/dist/fleet/v1/generated/validators/offsetPagination.zod.js +6 -3
  134. package/dist/fleet/v1/generated/validators/operatingSystem.zod.d.ts +6 -3
  135. package/dist/fleet/v1/generated/validators/operatingSystem.zod.js +6 -3
  136. package/dist/fleet/v1/generated/validators/participantList.zod.d.ts +6 -3
  137. package/dist/fleet/v1/generated/validators/participantList.zod.js +6 -3
  138. package/dist/fleet/v1/generated/validators/participantResource.zod.d.ts +6 -3
  139. package/dist/fleet/v1/generated/validators/participantResource.zod.js +6 -3
  140. package/dist/fleet/v1/generated/validators/peerConnection.zod.d.ts +8 -3
  141. package/dist/fleet/v1/generated/validators/peerConnection.zod.js +12 -4
  142. package/dist/fleet/v1/generated/validators/privilegeAutoApprovalList.zod.d.ts +6 -3
  143. package/dist/fleet/v1/generated/validators/privilegeAutoApprovalList.zod.js +6 -3
  144. package/dist/fleet/v1/generated/validators/privilegeAutoApprovalMode.zod.d.ts +6 -3
  145. package/dist/fleet/v1/generated/validators/privilegeAutoApprovalMode.zod.js +6 -3
  146. package/dist/fleet/v1/generated/validators/privilegeAutoApprovalResource.zod.d.ts +6 -3
  147. package/dist/fleet/v1/generated/validators/privilegeAutoApprovalResource.zod.js +6 -3
  148. package/dist/fleet/v1/generated/validators/privilegeDecider.zod.d.ts +6 -3
  149. package/dist/fleet/v1/generated/validators/privilegeDecider.zod.js +6 -3
  150. package/dist/fleet/v1/generated/validators/privilegeRequestList.zod.d.ts +6 -3
  151. package/dist/fleet/v1/generated/validators/privilegeRequestList.zod.js +6 -3
  152. package/dist/fleet/v1/generated/validators/privilegeRequestResource.zod.d.ts +6 -3
  153. package/dist/fleet/v1/generated/validators/privilegeRequestResource.zod.js +6 -3
  154. package/dist/fleet/v1/generated/validators/privilegeRequestState.zod.d.ts +6 -3
  155. package/dist/fleet/v1/generated/validators/privilegeRequestState.zod.js +6 -3
  156. package/dist/fleet/v1/generated/validators/publicKey.zod.d.ts +6 -3
  157. package/dist/fleet/v1/generated/validators/publicKey.zod.js +6 -3
  158. package/dist/fleet/v1/generated/validators/renewParticipantRequest.zod.d.ts +6 -3
  159. package/dist/fleet/v1/generated/validators/renewParticipantRequest.zod.js +6 -3
  160. package/dist/fleet/v1/generated/validators/renewParticipantResponse.zod.d.ts +6 -3
  161. package/dist/fleet/v1/generated/validators/renewParticipantResponse.zod.js +6 -3
  162. package/dist/fleet/v1/generated/validators/replaceMcpConfigurationRequest.zod.d.ts +6 -3
  163. package/dist/fleet/v1/generated/validators/replaceMcpConfigurationRequest.zod.js +6 -3
  164. package/dist/fleet/v1/generated/validators/rtcConfiguration.zod.d.ts +6 -3
  165. package/dist/fleet/v1/generated/validators/rtcConfiguration.zod.js +6 -3
  166. package/dist/fleet/v1/generated/validators/runCommandRequest.zod.d.ts +6 -3
  167. package/dist/fleet/v1/generated/validators/runCommandRequest.zod.js +6 -3
  168. package/dist/fleet/v1/generated/validators/runCommandResponse.zod.d.ts +6 -3
  169. package/dist/fleet/v1/generated/validators/runCommandResponse.zod.js +6 -3
  170. package/dist/fleet/v1/generated/validators/sendMcpRequestRequest.zod.d.ts +6 -3
  171. package/dist/fleet/v1/generated/validators/sendMcpRequestRequest.zod.js +6 -3
  172. package/dist/fleet/v1/generated/validators/sendMcpRequestResponse.zod.d.ts +6 -3
  173. package/dist/fleet/v1/generated/validators/sendMcpRequestResponse.zod.js +6 -3
  174. package/dist/fleet/v1/generated/validators/sessionCloseReason.zod.d.ts +6 -3
  175. package/dist/fleet/v1/generated/validators/sessionCloseReason.zod.js +6 -3
  176. package/dist/fleet/v1/generated/validators/sessionList.zod.d.ts +6 -3
  177. package/dist/fleet/v1/generated/validators/sessionList.zod.js +6 -3
  178. package/dist/fleet/v1/generated/validators/sessionMode.zod.d.ts +6 -3
  179. package/dist/fleet/v1/generated/validators/sessionMode.zod.js +6 -3
  180. package/dist/fleet/v1/generated/validators/sessionResource.zod.d.ts +6 -3
  181. package/dist/fleet/v1/generated/validators/sessionResource.zod.js +6 -3
  182. package/dist/fleet/v1/generated/validators/sessionState.zod.d.ts +6 -3
  183. package/dist/fleet/v1/generated/validators/sessionState.zod.js +6 -3
  184. package/dist/fleet/v1/generated/validators/signedMessage.zod.d.ts +6 -3
  185. package/dist/fleet/v1/generated/validators/signedMessage.zod.js +6 -3
  186. package/dist/fleet/v1/generated/validators/signingKey.zod.d.ts +6 -3
  187. package/dist/fleet/v1/generated/validators/signingKey.zod.js +6 -3
  188. package/dist/fleet/v1/generated/validators/updateAccountRequest.zod.d.ts +6 -3
  189. package/dist/fleet/v1/generated/validators/updateAccountRequest.zod.js +6 -3
  190. package/dist/fleet/v1/generated/validators/updateGroupRequest.zod.d.ts +6 -3
  191. package/dist/fleet/v1/generated/validators/updateGroupRequest.zod.js +6 -3
  192. package/dist/fleet/v1/generated/validators/updateMachineRequest.zod.d.ts +6 -3
  193. package/dist/fleet/v1/generated/validators/updateMachineRequest.zod.js +6 -3
  194. package/dist/fleet/v1/generated/validators/updateMcpServerRequest.zod.d.ts +6 -3
  195. package/dist/fleet/v1/generated/validators/updateMcpServerRequest.zod.js +6 -3
  196. package/dist/fleet/v1/generated/validators/updateMcpServerResponse.zod.d.ts +6 -3
  197. package/dist/fleet/v1/generated/validators/updateMcpServerResponse.zod.js +6 -3
  198. package/dist/fleet/v1/generated/validators/updatePrivilegeAutoApprovalRequest.zod.d.ts +6 -3
  199. package/dist/fleet/v1/generated/validators/updatePrivilegeAutoApprovalRequest.zod.js +6 -3
  200. package/dist/proto/leaflow/fleet/control/v1/control_pb.d.ts +13 -0
  201. package/dist/proto/leaflow/fleet/control/v1/control_pb.js +1 -1
  202. package/dist/proto/leaflow/fleet/transport/v1/transport_pb.d.ts +6 -9
  203. package/dist/proto/leaflow/fleet/virtualdesktop/input/v1/input_pb.d.ts +238 -33
  204. package/dist/proto/leaflow/fleet/virtualdesktop/input/v1/input_pb.js +194 -16
  205. package/dist/proto/leaflow/fleet/virtualdesktop/window/v1/window_pb.d.ts +162 -0
  206. package/dist/proto/leaflow/fleet/virtualdesktop/window/v1/window_pb.js +127 -5
  207. package/dist/routes.d.ts +8 -0
  208. package/dist/routes.js +9 -0
  209. package/package.json +1 -1
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -236,6 +239,7 @@
236
239
  * OpenAPI spec version: 1.0.0
237
240
  */
238
241
  import * as zod from "zod";
242
+ export declare const peerConnectionCandidatesMax = 64;
239
243
  export declare const PeerConnection: zod.ZodObject<{
240
244
  id: zod.ZodUUID;
241
245
  answer: zod.ZodString;
@@ -243,6 +247,7 @@ export declare const PeerConnection: zod.ZodObject<{
243
247
  candidate: zod.ZodString;
244
248
  sdp_mid: zod.ZodOptional<zod.ZodString>;
245
249
  }, zod.z.core.$strict>>;
250
+ candidates_complete: zod.ZodBoolean;
246
251
  authorization: zod.ZodObject<{
247
252
  key_id: zod.ZodString;
248
253
  message: zod.ZodString;
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -238,6 +241,7 @@
238
241
  import * as zod from "zod";
239
242
  import { IceCandidate } from "./iceCandidate.zod.js";
240
243
  import { SignedMessage } from "./signedMessage.zod.js";
244
+ export const peerConnectionCandidatesMax = 64;
241
245
  export const PeerConnection = zod
242
246
  .strictObject({
243
247
  id: zod
@@ -248,7 +252,11 @@ export const PeerConnection = zod
248
252
  .describe("The session's SDP answer (RFC 8866); it holds ICE credentials, so never log it"),
249
253
  candidates: zod
250
254
  .array(IceCandidate)
251
- .describe("The session's ICE candidates that arrived until it reported the end of its candidates, or\n500 milliseconds after one candidate of each type its ICE servers yield had arrived\n(server reflexive when the RTC configuration has STUN servers and the policy is not\n`relay`, relayed when it has TURN servers), and at most until 10 seconds after its\nanswer. Candidates the session gathers later are not passed on."),
255
+ .max(peerConnectionCandidatesMax)
256
+ .describe("The session's ICE candidates passed so far, at most 64, in the order the session sent\nthem. Later reads return the same ones first."),
257
+ candidates_complete: zod
258
+ .boolean()
259
+ .describe("The session reported that it has gathered all its candidates; no more follow"),
252
260
  authorization: SignedMessage.describe("The signed `PeerAuthorization` of the PeerConnection, the same one the session holds"),
253
261
  })
254
262
  .describe("One PeerConnection of a participant, as the session answered it. Set the answer as the\nremote description, add the candidates, and verify the authorization before sending\napplication data; the SHA-256 of its `message` goes into `Hello.authorization_sha256`.");
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its
@@ -201,9 +201,12 @@
201
201
  * one second has passed, so that the offer carries them.
202
202
  * 3. Join with `POST /api/v1/sessions/{sessionId}/participants`, sending the public key and the
203
203
  * offer. The answer carries the participant's signed authorization, the keys the service
204
- * signs with, and the first PeerConnection: the session's SDP answer, its ICE candidates and
205
- * the signed PeerAuthorization. Pass candidates gathered later with
206
- * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`.
204
+ * signs with, and the first PeerConnection: the session's SDP answer, the ICE candidates it
205
+ * has passed so far and the signed PeerAuthorization. Pass candidates gathered later with
206
+ * `POST …/participants/{participantId}/peer-connections/{peerConnectionId}/candidates`, and
207
+ * read the session's later ones with
208
+ * `GET …/participants/{participantId}/peer-connections/{peerConnectionId}` until
209
+ * `candidates_complete`.
207
210
  * 4. Renew the participant with `POST …/participants/{participantId}:renew` well before
208
211
  * `lease_expires_at`, every 15 seconds, presenting the PeerAuthorization of each
209
212
  * PeerConnection; the answer renews them. A participant whose lease runs out ends, and its