@fern-api/venus-api-sdk 12.3.0 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (560) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +8 -16
  3. package/dist/cjs/Client.js +20 -33
  4. package/dist/cjs/api/client/index.d.ts +1 -1
  5. package/dist/cjs/api/client/index.js +2 -2
  6. package/dist/cjs/api/client/{pingPingGet.d.ts → metricsMetricsGet.d.ts} +4 -4
  7. package/dist/cjs/api/client/{pingPingGet.js → metricsMetricsGet.js} +1 -1
  8. package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +0 -13
  9. package/dist/cjs/api/resources/apiKeys/client/Client.js +2 -18
  10. package/dist/cjs/api/resources/apiKeys/client/requests/RevokeTokenByIdApiKeysRevokeTokenIdPostRequest.d.ts +0 -1
  11. package/dist/cjs/api/resources/index.d.ts +0 -5
  12. package/dist/cjs/api/resources/index.js +1 -6
  13. package/dist/cjs/api/resources/organization/client/Client.d.ts +0 -124
  14. package/dist/cjs/api/resources/organization/client/Client.js +0 -593
  15. package/dist/cjs/api/resources/organization/client/index.d.ts +0 -7
  16. package/dist/cjs/api/resources/organization/client/index.js +1 -8
  17. package/dist/cjs/api/resources/organization/client/requests/index.d.ts +0 -4
  18. package/dist/cjs/api/types/Organization.d.ts +1 -1
  19. package/dist/cjs/api/types/TokenMetadata.d.ts +0 -1
  20. package/dist/cjs/api/types/index.d.ts +0 -36
  21. package/dist/cjs/api/types/index.js +0 -36
  22. package/dist/cjs/serialization/resources/index.d.ts +0 -5
  23. package/dist/cjs/serialization/resources/index.js +1 -6
  24. package/dist/cjs/serialization/resources/organization/client/requests/index.d.ts +0 -2
  25. package/dist/cjs/serialization/resources/organization/client/requests/index.js +1 -5
  26. package/dist/cjs/serialization/types/Organization.d.ts +1 -1
  27. package/dist/cjs/serialization/types/Organization.js +1 -1
  28. package/dist/cjs/serialization/types/TokenMetadata.d.ts +0 -1
  29. package/dist/cjs/serialization/types/TokenMetadata.js +0 -1
  30. package/dist/cjs/serialization/types/index.d.ts +0 -36
  31. package/dist/cjs/serialization/types/index.js +0 -36
  32. package/dist/cjs/version.d.ts +1 -1
  33. package/dist/cjs/version.js +1 -1
  34. package/dist/esm/BaseClient.mjs +2 -2
  35. package/dist/esm/Client.d.mts +8 -16
  36. package/dist/esm/Client.mjs +14 -27
  37. package/dist/esm/api/client/index.d.mts +1 -1
  38. package/dist/esm/api/client/index.mjs +1 -1
  39. package/dist/esm/api/client/{pingPingGet.d.mts → metricsMetricsGet.d.mts} +4 -4
  40. package/dist/esm/api/client/{pingPingGet.mjs → metricsMetricsGet.mjs} +1 -1
  41. package/dist/esm/api/resources/apiKeys/client/Client.d.mts +0 -13
  42. package/dist/esm/api/resources/apiKeys/client/Client.mjs +2 -18
  43. package/dist/esm/api/resources/apiKeys/client/requests/RevokeTokenByIdApiKeysRevokeTokenIdPostRequest.d.mts +0 -1
  44. package/dist/esm/api/resources/index.d.mts +0 -5
  45. package/dist/esm/api/resources/index.mjs +0 -5
  46. package/dist/esm/api/resources/organization/client/Client.d.mts +0 -124
  47. package/dist/esm/api/resources/organization/client/Client.mjs +0 -593
  48. package/dist/esm/api/resources/organization/client/index.d.mts +0 -7
  49. package/dist/esm/api/resources/organization/client/index.mjs +0 -7
  50. package/dist/esm/api/resources/organization/client/requests/index.d.mts +0 -4
  51. package/dist/esm/api/types/Organization.d.mts +1 -1
  52. package/dist/esm/api/types/TokenMetadata.d.mts +0 -1
  53. package/dist/esm/api/types/index.d.mts +0 -36
  54. package/dist/esm/api/types/index.mjs +0 -36
  55. package/dist/esm/serialization/resources/index.d.mts +0 -5
  56. package/dist/esm/serialization/resources/index.mjs +0 -5
  57. package/dist/esm/serialization/resources/organization/client/requests/index.d.mts +0 -2
  58. package/dist/esm/serialization/resources/organization/client/requests/index.mjs +0 -2
  59. package/dist/esm/serialization/types/Organization.d.mts +1 -1
  60. package/dist/esm/serialization/types/Organization.mjs +1 -1
  61. package/dist/esm/serialization/types/TokenMetadata.d.mts +0 -1
  62. package/dist/esm/serialization/types/TokenMetadata.mjs +0 -1
  63. package/dist/esm/serialization/types/index.d.mts +0 -36
  64. package/dist/esm/serialization/types/index.mjs +0 -36
  65. package/dist/esm/version.d.mts +1 -1
  66. package/dist/esm/version.mjs +1 -1
  67. package/package.json +1 -1
  68. package/reference.md +87 -1081
  69. package/dist/cjs/api/resources/guestSession/client/Client.d.ts +0 -84
  70. package/dist/cjs/api/resources/guestSession/client/Client.js +0 -469
  71. package/dist/cjs/api/resources/guestSession/client/claim.d.ts +0 -25
  72. package/dist/cjs/api/resources/guestSession/client/claim.js +0 -66
  73. package/dist/cjs/api/resources/guestSession/client/create.d.ts +0 -37
  74. package/dist/cjs/api/resources/guestSession/client/create.js +0 -88
  75. package/dist/cjs/api/resources/guestSession/client/delete.d.ts +0 -25
  76. package/dist/cjs/api/resources/guestSession/client/delete.js +0 -66
  77. package/dist/cjs/api/resources/guestSession/client/get.d.ts +0 -43
  78. package/dist/cjs/api/resources/guestSession/client/get.js +0 -99
  79. package/dist/cjs/api/resources/guestSession/client/index.d.ts +0 -5
  80. package/dist/cjs/api/resources/guestSession/client/index.js +0 -44
  81. package/dist/cjs/api/resources/guestSession/client/requests/ClaimGuestSessionRequest.d.ts +0 -11
  82. package/dist/cjs/api/resources/guestSession/client/requests/ClaimGuestSessionRequest.js +0 -3
  83. package/dist/cjs/api/resources/guestSession/client/requests/CreateGuestSessionRequest.d.ts +0 -11
  84. package/dist/cjs/api/resources/guestSession/client/requests/CreateGuestSessionRequest.js +0 -3
  85. package/dist/cjs/api/resources/guestSession/client/requests/DeleteGuestSessionsSessionIdDeleteRequest.d.ts +0 -9
  86. package/dist/cjs/api/resources/guestSession/client/requests/DeleteGuestSessionsSessionIdDeleteRequest.js +0 -3
  87. package/dist/cjs/api/resources/guestSession/client/requests/GetGuestSessionsSessionIdGetRequest.d.ts +0 -11
  88. package/dist/cjs/api/resources/guestSession/client/requests/GetGuestSessionsSessionIdGetRequest.js +0 -3
  89. package/dist/cjs/api/resources/guestSession/client/requests/index.d.ts +0 -4
  90. package/dist/cjs/api/resources/guestSession/client/requests/index.js +0 -2
  91. package/dist/cjs/api/resources/guestSession/index.d.ts +0 -1
  92. package/dist/cjs/api/resources/guestSession/index.js +0 -17
  93. package/dist/cjs/api/resources/internalGuestSession/client/Client.d.ts +0 -55
  94. package/dist/cjs/api/resources/internalGuestSession/client/Client.js +0 -314
  95. package/dist/cjs/api/resources/internalGuestSession/client/index.d.ts +0 -4
  96. package/dist/cjs/api/resources/internalGuestSession/client/index.js +0 -43
  97. package/dist/cjs/api/resources/internalGuestSession/client/readByOrg.d.ts +0 -25
  98. package/dist/cjs/api/resources/internalGuestSession/client/readByOrg.js +0 -66
  99. package/dist/cjs/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.d.ts +0 -9
  100. package/dist/cjs/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.js +0 -3
  101. package/dist/cjs/api/resources/internalGuestSession/client/requests/ReserveRequest.d.ts +0 -14
  102. package/dist/cjs/api/resources/internalGuestSession/client/requests/ReserveRequest.js +0 -3
  103. package/dist/cjs/api/resources/internalGuestSession/client/requests/SettleRequest.d.ts +0 -14
  104. package/dist/cjs/api/resources/internalGuestSession/client/requests/SettleRequest.js +0 -3
  105. package/dist/cjs/api/resources/internalGuestSession/client/requests/index.d.ts +0 -3
  106. package/dist/cjs/api/resources/internalGuestSession/client/requests/index.js +0 -2
  107. package/dist/cjs/api/resources/internalGuestSession/client/reserve.d.ts +0 -25
  108. package/dist/cjs/api/resources/internalGuestSession/client/reserve.js +0 -66
  109. package/dist/cjs/api/resources/internalGuestSession/client/settle.d.ts +0 -25
  110. package/dist/cjs/api/resources/internalGuestSession/client/settle.js +0 -66
  111. package/dist/cjs/api/resources/internalGuestSession/index.d.ts +0 -2
  112. package/dist/cjs/api/resources/internalGuestSession/index.js +0 -18
  113. package/dist/cjs/api/resources/internalGuestSession/types/ReserveRequestKind.d.ts +0 -5
  114. package/dist/cjs/api/resources/internalGuestSession/types/ReserveRequestKind.js +0 -8
  115. package/dist/cjs/api/resources/internalGuestSession/types/SettleRequestOutcome.d.ts +0 -5
  116. package/dist/cjs/api/resources/internalGuestSession/types/SettleRequestOutcome.js +0 -8
  117. package/dist/cjs/api/resources/internalGuestSession/types/index.d.ts +0 -2
  118. package/dist/cjs/api/resources/internalGuestSession/types/index.js +0 -18
  119. package/dist/cjs/api/resources/organization/client/claim.d.ts +0 -25
  120. package/dist/cjs/api/resources/organization/client/claim.js +0 -66
  121. package/dist/cjs/api/resources/organization/client/claimFromDocsSite.d.ts +0 -25
  122. package/dist/cjs/api/resources/organization/client/claimFromDocsSite.js +0 -66
  123. package/dist/cjs/api/resources/organization/client/createClaimToken.d.ts +0 -25
  124. package/dist/cjs/api/resources/organization/client/createClaimToken.js +0 -66
  125. package/dist/cjs/api/resources/organization/client/getClaimStatus.d.ts +0 -25
  126. package/dist/cjs/api/resources/organization/client/getClaimStatus.js +0 -66
  127. package/dist/cjs/api/resources/organization/client/getPostmanTeamDocs.d.ts +0 -25
  128. package/dist/cjs/api/resources/organization/client/getPostmanTeamDocs.js +0 -66
  129. package/dist/cjs/api/resources/organization/client/previewClaim.d.ts +0 -25
  130. package/dist/cjs/api/resources/organization/client/previewClaim.js +0 -66
  131. package/dist/cjs/api/resources/organization/client/requests/CreateClaimTokenRequest.d.ts +0 -11
  132. package/dist/cjs/api/resources/organization/client/requests/CreateClaimTokenRequest.js +0 -3
  133. package/dist/cjs/api/resources/organization/client/requests/GetClaimStatusOrganizationsOrgIdClaimStatusGetRequest.d.ts +0 -9
  134. package/dist/cjs/api/resources/organization/client/requests/GetClaimStatusOrganizationsOrgIdClaimStatusGetRequest.js +0 -3
  135. package/dist/cjs/api/resources/organization/client/requests/GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest.d.ts +0 -9
  136. package/dist/cjs/api/resources/organization/client/requests/GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest.js +0 -3
  137. package/dist/cjs/api/resources/organization/client/requests/SetDocsUrlRequest.d.ts +0 -11
  138. package/dist/cjs/api/resources/organization/client/requests/SetDocsUrlRequest.js +0 -3
  139. package/dist/cjs/api/resources/organization/client/setDocsUrl.d.ts +0 -25
  140. package/dist/cjs/api/resources/organization/client/setDocsUrl.js +0 -66
  141. package/dist/cjs/api/types/ClaimGuestSessionResponse.d.ts +0 -10
  142. package/dist/cjs/api/types/ClaimGuestSessionResponse.js +0 -3
  143. package/dist/cjs/api/types/ClaimGuestSessionResponseStatus.d.ts +0 -9
  144. package/dist/cjs/api/types/ClaimGuestSessionResponseStatus.js +0 -12
  145. package/dist/cjs/api/types/ClaimOrganizationRequest.d.ts +0 -3
  146. package/dist/cjs/api/types/ClaimOrganizationRequest.js +0 -3
  147. package/dist/cjs/api/types/ClaimOrganizationResponse.d.ts +0 -5
  148. package/dist/cjs/api/types/ClaimOrganizationResponse.js +0 -3
  149. package/dist/cjs/api/types/ClaimPreviewResponse.d.ts +0 -8
  150. package/dist/cjs/api/types/ClaimPreviewResponse.js +0 -3
  151. package/dist/cjs/api/types/ClaimStatus.d.ts +0 -5
  152. package/dist/cjs/api/types/ClaimStatus.js +0 -8
  153. package/dist/cjs/api/types/ClaimStatusResponse.d.ts +0 -4
  154. package/dist/cjs/api/types/ClaimStatusResponse.js +0 -3
  155. package/dist/cjs/api/types/ClaimTokenResponse.d.ts +0 -5
  156. package/dist/cjs/api/types/ClaimTokenResponse.js +0 -3
  157. package/dist/cjs/api/types/CreateGuestSessionResponse.d.ts +0 -11
  158. package/dist/cjs/api/types/CreateGuestSessionResponse.js +0 -3
  159. package/dist/cjs/api/types/DeleteGuestSessionResponse.d.ts +0 -7
  160. package/dist/cjs/api/types/DeleteGuestSessionResponse.js +0 -3
  161. package/dist/cjs/api/types/DeleteGuestSessionResponseStatus.d.ts +0 -9
  162. package/dist/cjs/api/types/DeleteGuestSessionResponseStatus.js +0 -12
  163. package/dist/cjs/api/types/GetGuestSessionResponse.d.ts +0 -13
  164. package/dist/cjs/api/types/GetGuestSessionResponse.js +0 -3
  165. package/dist/cjs/api/types/GetGuestSessionResponseStatus.d.ts +0 -9
  166. package/dist/cjs/api/types/GetGuestSessionResponseStatus.js +0 -12
  167. package/dist/cjs/api/types/GoneErrorBody.d.ts +0 -5
  168. package/dist/cjs/api/types/GoneErrorBody.js +0 -3
  169. package/dist/cjs/api/types/GoneErrorBodyContent.d.ts +0 -8
  170. package/dist/cjs/api/types/GoneErrorBodyContent.js +0 -3
  171. package/dist/cjs/api/types/GoneErrorBodyContentCode.d.ts +0 -5
  172. package/dist/cjs/api/types/GoneErrorBodyContentCode.js +0 -8
  173. package/dist/cjs/api/types/GuestSessionLimits.d.ts +0 -6
  174. package/dist/cjs/api/types/GuestSessionLimits.js +0 -3
  175. package/dist/cjs/api/types/GuestSessionUsage.d.ts +0 -4
  176. package/dist/cjs/api/types/GuestSessionUsage.js +0 -3
  177. package/dist/cjs/api/types/InternalGuestSessionResponse.d.ts +0 -22
  178. package/dist/cjs/api/types/InternalGuestSessionResponse.js +0 -3
  179. package/dist/cjs/api/types/InternalGuestSessionResponseStatus.d.ts +0 -9
  180. package/dist/cjs/api/types/InternalGuestSessionResponseStatus.js +0 -12
  181. package/dist/cjs/api/types/Limit.d.ts +0 -6
  182. package/dist/cjs/api/types/Limit.js +0 -3
  183. package/dist/cjs/api/types/NotFoundErrorBody.d.ts +0 -5
  184. package/dist/cjs/api/types/NotFoundErrorBody.js +0 -3
  185. package/dist/cjs/api/types/NotFoundErrorBodyContent.d.ts +0 -8
  186. package/dist/cjs/api/types/NotFoundErrorBodyContent.js +0 -3
  187. package/dist/cjs/api/types/NotFoundErrorBodyContentCode.d.ts +0 -4
  188. package/dist/cjs/api/types/NotFoundErrorBodyContentCode.js +0 -7
  189. package/dist/cjs/api/types/PostmanTeamDocsResponse.d.ts +0 -6
  190. package/dist/cjs/api/types/PostmanTeamDocsResponse.js +0 -3
  191. package/dist/cjs/api/types/ReserveResponse.d.ts +0 -12
  192. package/dist/cjs/api/types/ReserveResponse.js +0 -3
  193. package/dist/cjs/api/types/ReserveResponseKind.d.ts +0 -5
  194. package/dist/cjs/api/types/ReserveResponseKind.js +0 -8
  195. package/dist/cjs/api/types/ReserveResponseState.d.ts +0 -6
  196. package/dist/cjs/api/types/ReserveResponseState.js +0 -9
  197. package/dist/cjs/api/types/ServiceUnavailableErrorBody.d.ts +0 -5
  198. package/dist/cjs/api/types/ServiceUnavailableErrorBody.js +0 -3
  199. package/dist/cjs/api/types/ServiceUnavailableErrorBodyContent.d.ts +0 -8
  200. package/dist/cjs/api/types/ServiceUnavailableErrorBodyContent.js +0 -3
  201. package/dist/cjs/api/types/ServiceUnavailableErrorBodyContentCode.d.ts +0 -6
  202. package/dist/cjs/api/types/ServiceUnavailableErrorBodyContentCode.js +0 -9
  203. package/dist/cjs/api/types/SettleResponse.d.ts +0 -5
  204. package/dist/cjs/api/types/SettleResponse.js +0 -3
  205. package/dist/cjs/api/types/SettleResponseReason.d.ts +0 -5
  206. package/dist/cjs/api/types/SettleResponseReason.js +0 -8
  207. package/dist/cjs/api/types/TooManyRequestsErrorBody.d.ts +0 -5
  208. package/dist/cjs/api/types/TooManyRequestsErrorBody.js +0 -3
  209. package/dist/cjs/api/types/TooManyRequestsErrorBodyContent.d.ts +0 -8
  210. package/dist/cjs/api/types/TooManyRequestsErrorBodyContent.js +0 -3
  211. package/dist/cjs/api/types/TooManyRequestsErrorBodyContentCode.d.ts +0 -4
  212. package/dist/cjs/api/types/TooManyRequestsErrorBodyContentCode.js +0 -7
  213. package/dist/cjs/serialization/resources/guestSession/client/index.d.ts +0 -1
  214. package/dist/cjs/serialization/resources/guestSession/client/index.js +0 -17
  215. package/dist/cjs/serialization/resources/guestSession/client/requests/ClaimGuestSessionRequest.d.ts +0 -10
  216. package/dist/cjs/serialization/resources/guestSession/client/requests/ClaimGuestSessionRequest.js +0 -42
  217. package/dist/cjs/serialization/resources/guestSession/client/requests/CreateGuestSessionRequest.d.ts +0 -11
  218. package/dist/cjs/serialization/resources/guestSession/client/requests/CreateGuestSessionRequest.js +0 -43
  219. package/dist/cjs/serialization/resources/guestSession/client/requests/index.d.ts +0 -2
  220. package/dist/cjs/serialization/resources/guestSession/client/requests/index.js +0 -7
  221. package/dist/cjs/serialization/resources/guestSession/index.d.ts +0 -1
  222. package/dist/cjs/serialization/resources/guestSession/index.js +0 -17
  223. package/dist/cjs/serialization/resources/internalGuestSession/client/index.d.ts +0 -1
  224. package/dist/cjs/serialization/resources/internalGuestSession/client/index.js +0 -17
  225. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/ReserveRequest.d.ts +0 -12
  226. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/ReserveRequest.js +0 -44
  227. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.ts +0 -11
  228. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/SettleRequest.js +0 -43
  229. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/index.d.ts +0 -2
  230. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/index.js +0 -7
  231. package/dist/cjs/serialization/resources/internalGuestSession/index.d.ts +0 -2
  232. package/dist/cjs/serialization/resources/internalGuestSession/index.js +0 -18
  233. package/dist/cjs/serialization/resources/internalGuestSession/types/ReserveRequestKind.d.ts +0 -7
  234. package/dist/cjs/serialization/resources/internalGuestSession/types/ReserveRequestKind.js +0 -39
  235. package/dist/cjs/serialization/resources/internalGuestSession/types/SettleRequestOutcome.d.ts +0 -7
  236. package/dist/cjs/serialization/resources/internalGuestSession/types/SettleRequestOutcome.js +0 -39
  237. package/dist/cjs/serialization/resources/internalGuestSession/types/index.d.ts +0 -2
  238. package/dist/cjs/serialization/resources/internalGuestSession/types/index.js +0 -18
  239. package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.ts +0 -9
  240. package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.js +0 -41
  241. package/dist/cjs/serialization/resources/organization/client/requests/SetDocsUrlRequest.d.ts +0 -9
  242. package/dist/cjs/serialization/resources/organization/client/requests/SetDocsUrlRequest.js +0 -41
  243. package/dist/cjs/serialization/types/ClaimGuestSessionResponse.d.ts +0 -15
  244. package/dist/cjs/serialization/types/ClaimGuestSessionResponse.js +0 -48
  245. package/dist/cjs/serialization/types/ClaimGuestSessionResponseStatus.d.ts +0 -7
  246. package/dist/cjs/serialization/types/ClaimGuestSessionResponseStatus.js +0 -39
  247. package/dist/cjs/serialization/types/ClaimOrganizationRequest.d.ts +0 -9
  248. package/dist/cjs/serialization/types/ClaimOrganizationRequest.js +0 -41
  249. package/dist/cjs/serialization/types/ClaimOrganizationResponse.d.ts +0 -11
  250. package/dist/cjs/serialization/types/ClaimOrganizationResponse.js +0 -43
  251. package/dist/cjs/serialization/types/ClaimPreviewResponse.d.ts +0 -14
  252. package/dist/cjs/serialization/types/ClaimPreviewResponse.js +0 -46
  253. package/dist/cjs/serialization/types/ClaimStatus.d.ts +0 -7
  254. package/dist/cjs/serialization/types/ClaimStatus.js +0 -39
  255. package/dist/cjs/serialization/types/ClaimStatusResponse.d.ts +0 -10
  256. package/dist/cjs/serialization/types/ClaimStatusResponse.js +0 -42
  257. package/dist/cjs/serialization/types/ClaimTokenResponse.d.ts +0 -11
  258. package/dist/cjs/serialization/types/ClaimTokenResponse.js +0 -43
  259. package/dist/cjs/serialization/types/CreateGuestSessionResponse.d.ts +0 -17
  260. package/dist/cjs/serialization/types/CreateGuestSessionResponse.js +0 -49
  261. package/dist/cjs/serialization/types/DeleteGuestSessionResponse.d.ts +0 -12
  262. package/dist/cjs/serialization/types/DeleteGuestSessionResponse.js +0 -45
  263. package/dist/cjs/serialization/types/DeleteGuestSessionResponseStatus.d.ts +0 -7
  264. package/dist/cjs/serialization/types/DeleteGuestSessionResponseStatus.js +0 -39
  265. package/dist/cjs/serialization/types/GetGuestSessionResponse.d.ts +0 -20
  266. package/dist/cjs/serialization/types/GetGuestSessionResponse.js +0 -52
  267. package/dist/cjs/serialization/types/GetGuestSessionResponseStatus.d.ts +0 -7
  268. package/dist/cjs/serialization/types/GetGuestSessionResponseStatus.js +0 -39
  269. package/dist/cjs/serialization/types/GoneErrorBody.d.ts +0 -11
  270. package/dist/cjs/serialization/types/GoneErrorBody.js +0 -43
  271. package/dist/cjs/serialization/types/GoneErrorBodyContent.d.ts +0 -14
  272. package/dist/cjs/serialization/types/GoneErrorBodyContent.js +0 -46
  273. package/dist/cjs/serialization/types/GoneErrorBodyContentCode.d.ts +0 -7
  274. package/dist/cjs/serialization/types/GoneErrorBodyContentCode.js +0 -39
  275. package/dist/cjs/serialization/types/GuestSessionLimits.d.ts +0 -12
  276. package/dist/cjs/serialization/types/GuestSessionLimits.js +0 -44
  277. package/dist/cjs/serialization/types/GuestSessionUsage.d.ts +0 -10
  278. package/dist/cjs/serialization/types/GuestSessionUsage.js +0 -42
  279. package/dist/cjs/serialization/types/InternalGuestSessionResponse.d.ts +0 -16
  280. package/dist/cjs/serialization/types/InternalGuestSessionResponse.js +0 -48
  281. package/dist/cjs/serialization/types/InternalGuestSessionResponseStatus.d.ts +0 -7
  282. package/dist/cjs/serialization/types/InternalGuestSessionResponseStatus.js +0 -39
  283. package/dist/cjs/serialization/types/Limit.d.ts +0 -12
  284. package/dist/cjs/serialization/types/Limit.js +0 -44
  285. package/dist/cjs/serialization/types/NotFoundErrorBody.d.ts +0 -11
  286. package/dist/cjs/serialization/types/NotFoundErrorBody.js +0 -43
  287. package/dist/cjs/serialization/types/NotFoundErrorBodyContent.d.ts +0 -14
  288. package/dist/cjs/serialization/types/NotFoundErrorBodyContent.js +0 -46
  289. package/dist/cjs/serialization/types/NotFoundErrorBodyContentCode.d.ts +0 -7
  290. package/dist/cjs/serialization/types/NotFoundErrorBodyContentCode.js +0 -39
  291. package/dist/cjs/serialization/types/PostmanTeamDocsResponse.d.ts +0 -12
  292. package/dist/cjs/serialization/types/PostmanTeamDocsResponse.js +0 -44
  293. package/dist/cjs/serialization/types/ReserveResponse.d.ts +0 -20
  294. package/dist/cjs/serialization/types/ReserveResponse.js +0 -52
  295. package/dist/cjs/serialization/types/ReserveResponseKind.d.ts +0 -7
  296. package/dist/cjs/serialization/types/ReserveResponseKind.js +0 -39
  297. package/dist/cjs/serialization/types/ReserveResponseState.d.ts +0 -7
  298. package/dist/cjs/serialization/types/ReserveResponseState.js +0 -39
  299. package/dist/cjs/serialization/types/ServiceUnavailableErrorBody.d.ts +0 -11
  300. package/dist/cjs/serialization/types/ServiceUnavailableErrorBody.js +0 -43
  301. package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyContent.d.ts +0 -14
  302. package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyContent.js +0 -46
  303. package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyContentCode.d.ts +0 -7
  304. package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyContentCode.js +0 -39
  305. package/dist/cjs/serialization/types/SettleResponse.d.ts +0 -11
  306. package/dist/cjs/serialization/types/SettleResponse.js +0 -43
  307. package/dist/cjs/serialization/types/SettleResponseReason.d.ts +0 -7
  308. package/dist/cjs/serialization/types/SettleResponseReason.js +0 -39
  309. package/dist/cjs/serialization/types/TooManyRequestsErrorBody.d.ts +0 -11
  310. package/dist/cjs/serialization/types/TooManyRequestsErrorBody.js +0 -43
  311. package/dist/cjs/serialization/types/TooManyRequestsErrorBodyContent.d.ts +0 -14
  312. package/dist/cjs/serialization/types/TooManyRequestsErrorBodyContent.js +0 -46
  313. package/dist/cjs/serialization/types/TooManyRequestsErrorBodyContentCode.d.ts +0 -7
  314. package/dist/cjs/serialization/types/TooManyRequestsErrorBodyContentCode.js +0 -39
  315. package/dist/esm/api/resources/guestSession/client/Client.d.mts +0 -84
  316. package/dist/esm/api/resources/guestSession/client/Client.mjs +0 -432
  317. package/dist/esm/api/resources/guestSession/client/claim.d.mts +0 -25
  318. package/dist/esm/api/resources/guestSession/client/claim.mjs +0 -30
  319. package/dist/esm/api/resources/guestSession/client/create.d.mts +0 -37
  320. package/dist/esm/api/resources/guestSession/client/create.mjs +0 -52
  321. package/dist/esm/api/resources/guestSession/client/delete.d.mts +0 -25
  322. package/dist/esm/api/resources/guestSession/client/delete.mjs +0 -30
  323. package/dist/esm/api/resources/guestSession/client/get.d.mts +0 -43
  324. package/dist/esm/api/resources/guestSession/client/get.mjs +0 -63
  325. package/dist/esm/api/resources/guestSession/client/index.d.mts +0 -5
  326. package/dist/esm/api/resources/guestSession/client/index.mjs +0 -5
  327. package/dist/esm/api/resources/guestSession/client/requests/ClaimGuestSessionRequest.d.mts +0 -11
  328. package/dist/esm/api/resources/guestSession/client/requests/ClaimGuestSessionRequest.mjs +0 -2
  329. package/dist/esm/api/resources/guestSession/client/requests/CreateGuestSessionRequest.d.mts +0 -11
  330. package/dist/esm/api/resources/guestSession/client/requests/CreateGuestSessionRequest.mjs +0 -2
  331. package/dist/esm/api/resources/guestSession/client/requests/DeleteGuestSessionsSessionIdDeleteRequest.d.mts +0 -9
  332. package/dist/esm/api/resources/guestSession/client/requests/DeleteGuestSessionsSessionIdDeleteRequest.mjs +0 -2
  333. package/dist/esm/api/resources/guestSession/client/requests/GetGuestSessionsSessionIdGetRequest.d.mts +0 -11
  334. package/dist/esm/api/resources/guestSession/client/requests/GetGuestSessionsSessionIdGetRequest.mjs +0 -2
  335. package/dist/esm/api/resources/guestSession/client/requests/index.d.mts +0 -4
  336. package/dist/esm/api/resources/guestSession/client/requests/index.mjs +0 -1
  337. package/dist/esm/api/resources/guestSession/index.d.mts +0 -1
  338. package/dist/esm/api/resources/guestSession/index.mjs +0 -1
  339. package/dist/esm/api/resources/internalGuestSession/client/Client.d.mts +0 -55
  340. package/dist/esm/api/resources/internalGuestSession/client/Client.mjs +0 -277
  341. package/dist/esm/api/resources/internalGuestSession/client/index.d.mts +0 -4
  342. package/dist/esm/api/resources/internalGuestSession/client/index.mjs +0 -4
  343. package/dist/esm/api/resources/internalGuestSession/client/readByOrg.d.mts +0 -25
  344. package/dist/esm/api/resources/internalGuestSession/client/readByOrg.mjs +0 -30
  345. package/dist/esm/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.d.mts +0 -9
  346. package/dist/esm/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.mjs +0 -2
  347. package/dist/esm/api/resources/internalGuestSession/client/requests/ReserveRequest.d.mts +0 -14
  348. package/dist/esm/api/resources/internalGuestSession/client/requests/ReserveRequest.mjs +0 -2
  349. package/dist/esm/api/resources/internalGuestSession/client/requests/SettleRequest.d.mts +0 -14
  350. package/dist/esm/api/resources/internalGuestSession/client/requests/SettleRequest.mjs +0 -2
  351. package/dist/esm/api/resources/internalGuestSession/client/requests/index.d.mts +0 -3
  352. package/dist/esm/api/resources/internalGuestSession/client/requests/index.mjs +0 -1
  353. package/dist/esm/api/resources/internalGuestSession/client/reserve.d.mts +0 -25
  354. package/dist/esm/api/resources/internalGuestSession/client/reserve.mjs +0 -30
  355. package/dist/esm/api/resources/internalGuestSession/client/settle.d.mts +0 -25
  356. package/dist/esm/api/resources/internalGuestSession/client/settle.mjs +0 -30
  357. package/dist/esm/api/resources/internalGuestSession/index.d.mts +0 -2
  358. package/dist/esm/api/resources/internalGuestSession/index.mjs +0 -2
  359. package/dist/esm/api/resources/internalGuestSession/types/ReserveRequestKind.d.mts +0 -5
  360. package/dist/esm/api/resources/internalGuestSession/types/ReserveRequestKind.mjs +0 -5
  361. package/dist/esm/api/resources/internalGuestSession/types/SettleRequestOutcome.d.mts +0 -5
  362. package/dist/esm/api/resources/internalGuestSession/types/SettleRequestOutcome.mjs +0 -5
  363. package/dist/esm/api/resources/internalGuestSession/types/index.d.mts +0 -2
  364. package/dist/esm/api/resources/internalGuestSession/types/index.mjs +0 -2
  365. package/dist/esm/api/resources/organization/client/claim.d.mts +0 -25
  366. package/dist/esm/api/resources/organization/client/claim.mjs +0 -30
  367. package/dist/esm/api/resources/organization/client/claimFromDocsSite.d.mts +0 -25
  368. package/dist/esm/api/resources/organization/client/claimFromDocsSite.mjs +0 -30
  369. package/dist/esm/api/resources/organization/client/createClaimToken.d.mts +0 -25
  370. package/dist/esm/api/resources/organization/client/createClaimToken.mjs +0 -30
  371. package/dist/esm/api/resources/organization/client/getClaimStatus.d.mts +0 -25
  372. package/dist/esm/api/resources/organization/client/getClaimStatus.mjs +0 -30
  373. package/dist/esm/api/resources/organization/client/getPostmanTeamDocs.d.mts +0 -25
  374. package/dist/esm/api/resources/organization/client/getPostmanTeamDocs.mjs +0 -30
  375. package/dist/esm/api/resources/organization/client/previewClaim.d.mts +0 -25
  376. package/dist/esm/api/resources/organization/client/previewClaim.mjs +0 -30
  377. package/dist/esm/api/resources/organization/client/requests/CreateClaimTokenRequest.d.mts +0 -11
  378. package/dist/esm/api/resources/organization/client/requests/CreateClaimTokenRequest.mjs +0 -2
  379. package/dist/esm/api/resources/organization/client/requests/GetClaimStatusOrganizationsOrgIdClaimStatusGetRequest.d.mts +0 -9
  380. package/dist/esm/api/resources/organization/client/requests/GetClaimStatusOrganizationsOrgIdClaimStatusGetRequest.mjs +0 -2
  381. package/dist/esm/api/resources/organization/client/requests/GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest.d.mts +0 -9
  382. package/dist/esm/api/resources/organization/client/requests/GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest.mjs +0 -2
  383. package/dist/esm/api/resources/organization/client/requests/SetDocsUrlRequest.d.mts +0 -11
  384. package/dist/esm/api/resources/organization/client/requests/SetDocsUrlRequest.mjs +0 -2
  385. package/dist/esm/api/resources/organization/client/setDocsUrl.d.mts +0 -25
  386. package/dist/esm/api/resources/organization/client/setDocsUrl.mjs +0 -30
  387. package/dist/esm/api/types/ClaimGuestSessionResponse.d.mts +0 -10
  388. package/dist/esm/api/types/ClaimGuestSessionResponse.mjs +0 -2
  389. package/dist/esm/api/types/ClaimGuestSessionResponseStatus.d.mts +0 -9
  390. package/dist/esm/api/types/ClaimGuestSessionResponseStatus.mjs +0 -9
  391. package/dist/esm/api/types/ClaimOrganizationRequest.d.mts +0 -3
  392. package/dist/esm/api/types/ClaimOrganizationRequest.mjs +0 -2
  393. package/dist/esm/api/types/ClaimOrganizationResponse.d.mts +0 -5
  394. package/dist/esm/api/types/ClaimOrganizationResponse.mjs +0 -2
  395. package/dist/esm/api/types/ClaimPreviewResponse.d.mts +0 -8
  396. package/dist/esm/api/types/ClaimPreviewResponse.mjs +0 -2
  397. package/dist/esm/api/types/ClaimStatus.d.mts +0 -5
  398. package/dist/esm/api/types/ClaimStatus.mjs +0 -5
  399. package/dist/esm/api/types/ClaimStatusResponse.d.mts +0 -4
  400. package/dist/esm/api/types/ClaimStatusResponse.mjs +0 -2
  401. package/dist/esm/api/types/ClaimTokenResponse.d.mts +0 -5
  402. package/dist/esm/api/types/ClaimTokenResponse.mjs +0 -2
  403. package/dist/esm/api/types/CreateGuestSessionResponse.d.mts +0 -11
  404. package/dist/esm/api/types/CreateGuestSessionResponse.mjs +0 -2
  405. package/dist/esm/api/types/DeleteGuestSessionResponse.d.mts +0 -7
  406. package/dist/esm/api/types/DeleteGuestSessionResponse.mjs +0 -2
  407. package/dist/esm/api/types/DeleteGuestSessionResponseStatus.d.mts +0 -9
  408. package/dist/esm/api/types/DeleteGuestSessionResponseStatus.mjs +0 -9
  409. package/dist/esm/api/types/GetGuestSessionResponse.d.mts +0 -13
  410. package/dist/esm/api/types/GetGuestSessionResponse.mjs +0 -2
  411. package/dist/esm/api/types/GetGuestSessionResponseStatus.d.mts +0 -9
  412. package/dist/esm/api/types/GetGuestSessionResponseStatus.mjs +0 -9
  413. package/dist/esm/api/types/GoneErrorBody.d.mts +0 -5
  414. package/dist/esm/api/types/GoneErrorBody.mjs +0 -2
  415. package/dist/esm/api/types/GoneErrorBodyContent.d.mts +0 -8
  416. package/dist/esm/api/types/GoneErrorBodyContent.mjs +0 -2
  417. package/dist/esm/api/types/GoneErrorBodyContentCode.d.mts +0 -5
  418. package/dist/esm/api/types/GoneErrorBodyContentCode.mjs +0 -5
  419. package/dist/esm/api/types/GuestSessionLimits.d.mts +0 -6
  420. package/dist/esm/api/types/GuestSessionLimits.mjs +0 -2
  421. package/dist/esm/api/types/GuestSessionUsage.d.mts +0 -4
  422. package/dist/esm/api/types/GuestSessionUsage.mjs +0 -2
  423. package/dist/esm/api/types/InternalGuestSessionResponse.d.mts +0 -22
  424. package/dist/esm/api/types/InternalGuestSessionResponse.mjs +0 -2
  425. package/dist/esm/api/types/InternalGuestSessionResponseStatus.d.mts +0 -9
  426. package/dist/esm/api/types/InternalGuestSessionResponseStatus.mjs +0 -9
  427. package/dist/esm/api/types/Limit.d.mts +0 -6
  428. package/dist/esm/api/types/Limit.mjs +0 -2
  429. package/dist/esm/api/types/NotFoundErrorBody.d.mts +0 -5
  430. package/dist/esm/api/types/NotFoundErrorBody.mjs +0 -2
  431. package/dist/esm/api/types/NotFoundErrorBodyContent.d.mts +0 -8
  432. package/dist/esm/api/types/NotFoundErrorBodyContent.mjs +0 -2
  433. package/dist/esm/api/types/NotFoundErrorBodyContentCode.d.mts +0 -4
  434. package/dist/esm/api/types/NotFoundErrorBodyContentCode.mjs +0 -4
  435. package/dist/esm/api/types/PostmanTeamDocsResponse.d.mts +0 -6
  436. package/dist/esm/api/types/PostmanTeamDocsResponse.mjs +0 -2
  437. package/dist/esm/api/types/ReserveResponse.d.mts +0 -12
  438. package/dist/esm/api/types/ReserveResponse.mjs +0 -2
  439. package/dist/esm/api/types/ReserveResponseKind.d.mts +0 -5
  440. package/dist/esm/api/types/ReserveResponseKind.mjs +0 -5
  441. package/dist/esm/api/types/ReserveResponseState.d.mts +0 -6
  442. package/dist/esm/api/types/ReserveResponseState.mjs +0 -6
  443. package/dist/esm/api/types/ServiceUnavailableErrorBody.d.mts +0 -5
  444. package/dist/esm/api/types/ServiceUnavailableErrorBody.mjs +0 -2
  445. package/dist/esm/api/types/ServiceUnavailableErrorBodyContent.d.mts +0 -8
  446. package/dist/esm/api/types/ServiceUnavailableErrorBodyContent.mjs +0 -2
  447. package/dist/esm/api/types/ServiceUnavailableErrorBodyContentCode.d.mts +0 -6
  448. package/dist/esm/api/types/ServiceUnavailableErrorBodyContentCode.mjs +0 -6
  449. package/dist/esm/api/types/SettleResponse.d.mts +0 -5
  450. package/dist/esm/api/types/SettleResponse.mjs +0 -2
  451. package/dist/esm/api/types/SettleResponseReason.d.mts +0 -5
  452. package/dist/esm/api/types/SettleResponseReason.mjs +0 -5
  453. package/dist/esm/api/types/TooManyRequestsErrorBody.d.mts +0 -5
  454. package/dist/esm/api/types/TooManyRequestsErrorBody.mjs +0 -2
  455. package/dist/esm/api/types/TooManyRequestsErrorBodyContent.d.mts +0 -8
  456. package/dist/esm/api/types/TooManyRequestsErrorBodyContent.mjs +0 -2
  457. package/dist/esm/api/types/TooManyRequestsErrorBodyContentCode.d.mts +0 -4
  458. package/dist/esm/api/types/TooManyRequestsErrorBodyContentCode.mjs +0 -4
  459. package/dist/esm/serialization/resources/guestSession/client/index.d.mts +0 -1
  460. package/dist/esm/serialization/resources/guestSession/client/index.mjs +0 -1
  461. package/dist/esm/serialization/resources/guestSession/client/requests/ClaimGuestSessionRequest.d.mts +0 -10
  462. package/dist/esm/serialization/resources/guestSession/client/requests/ClaimGuestSessionRequest.mjs +0 -6
  463. package/dist/esm/serialization/resources/guestSession/client/requests/CreateGuestSessionRequest.d.mts +0 -11
  464. package/dist/esm/serialization/resources/guestSession/client/requests/CreateGuestSessionRequest.mjs +0 -7
  465. package/dist/esm/serialization/resources/guestSession/client/requests/index.d.mts +0 -2
  466. package/dist/esm/serialization/resources/guestSession/client/requests/index.mjs +0 -2
  467. package/dist/esm/serialization/resources/guestSession/index.d.mts +0 -1
  468. package/dist/esm/serialization/resources/guestSession/index.mjs +0 -1
  469. package/dist/esm/serialization/resources/internalGuestSession/client/index.d.mts +0 -1
  470. package/dist/esm/serialization/resources/internalGuestSession/client/index.mjs +0 -1
  471. package/dist/esm/serialization/resources/internalGuestSession/client/requests/ReserveRequest.d.mts +0 -12
  472. package/dist/esm/serialization/resources/internalGuestSession/client/requests/ReserveRequest.mjs +0 -8
  473. package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.mts +0 -11
  474. package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.mjs +0 -7
  475. package/dist/esm/serialization/resources/internalGuestSession/client/requests/index.d.mts +0 -2
  476. package/dist/esm/serialization/resources/internalGuestSession/client/requests/index.mjs +0 -2
  477. package/dist/esm/serialization/resources/internalGuestSession/index.d.mts +0 -2
  478. package/dist/esm/serialization/resources/internalGuestSession/index.mjs +0 -2
  479. package/dist/esm/serialization/resources/internalGuestSession/types/ReserveRequestKind.d.mts +0 -7
  480. package/dist/esm/serialization/resources/internalGuestSession/types/ReserveRequestKind.mjs +0 -3
  481. package/dist/esm/serialization/resources/internalGuestSession/types/SettleRequestOutcome.d.mts +0 -7
  482. package/dist/esm/serialization/resources/internalGuestSession/types/SettleRequestOutcome.mjs +0 -3
  483. package/dist/esm/serialization/resources/internalGuestSession/types/index.d.mts +0 -2
  484. package/dist/esm/serialization/resources/internalGuestSession/types/index.mjs +0 -2
  485. package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.mts +0 -9
  486. package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.mjs +0 -5
  487. package/dist/esm/serialization/resources/organization/client/requests/SetDocsUrlRequest.d.mts +0 -9
  488. package/dist/esm/serialization/resources/organization/client/requests/SetDocsUrlRequest.mjs +0 -5
  489. package/dist/esm/serialization/types/ClaimGuestSessionResponse.d.mts +0 -15
  490. package/dist/esm/serialization/types/ClaimGuestSessionResponse.mjs +0 -12
  491. package/dist/esm/serialization/types/ClaimGuestSessionResponseStatus.d.mts +0 -7
  492. package/dist/esm/serialization/types/ClaimGuestSessionResponseStatus.mjs +0 -3
  493. package/dist/esm/serialization/types/ClaimOrganizationRequest.d.mts +0 -9
  494. package/dist/esm/serialization/types/ClaimOrganizationRequest.mjs +0 -5
  495. package/dist/esm/serialization/types/ClaimOrganizationResponse.d.mts +0 -11
  496. package/dist/esm/serialization/types/ClaimOrganizationResponse.mjs +0 -7
  497. package/dist/esm/serialization/types/ClaimPreviewResponse.d.mts +0 -14
  498. package/dist/esm/serialization/types/ClaimPreviewResponse.mjs +0 -10
  499. package/dist/esm/serialization/types/ClaimStatus.d.mts +0 -7
  500. package/dist/esm/serialization/types/ClaimStatus.mjs +0 -3
  501. package/dist/esm/serialization/types/ClaimStatusResponse.d.mts +0 -10
  502. package/dist/esm/serialization/types/ClaimStatusResponse.mjs +0 -6
  503. package/dist/esm/serialization/types/ClaimTokenResponse.d.mts +0 -11
  504. package/dist/esm/serialization/types/ClaimTokenResponse.mjs +0 -7
  505. package/dist/esm/serialization/types/CreateGuestSessionResponse.d.mts +0 -17
  506. package/dist/esm/serialization/types/CreateGuestSessionResponse.mjs +0 -13
  507. package/dist/esm/serialization/types/DeleteGuestSessionResponse.d.mts +0 -12
  508. package/dist/esm/serialization/types/DeleteGuestSessionResponse.mjs +0 -9
  509. package/dist/esm/serialization/types/DeleteGuestSessionResponseStatus.d.mts +0 -7
  510. package/dist/esm/serialization/types/DeleteGuestSessionResponseStatus.mjs +0 -3
  511. package/dist/esm/serialization/types/GetGuestSessionResponse.d.mts +0 -20
  512. package/dist/esm/serialization/types/GetGuestSessionResponse.mjs +0 -16
  513. package/dist/esm/serialization/types/GetGuestSessionResponseStatus.d.mts +0 -7
  514. package/dist/esm/serialization/types/GetGuestSessionResponseStatus.mjs +0 -3
  515. package/dist/esm/serialization/types/GoneErrorBody.d.mts +0 -11
  516. package/dist/esm/serialization/types/GoneErrorBody.mjs +0 -7
  517. package/dist/esm/serialization/types/GoneErrorBodyContent.d.mts +0 -14
  518. package/dist/esm/serialization/types/GoneErrorBodyContent.mjs +0 -10
  519. package/dist/esm/serialization/types/GoneErrorBodyContentCode.d.mts +0 -7
  520. package/dist/esm/serialization/types/GoneErrorBodyContentCode.mjs +0 -3
  521. package/dist/esm/serialization/types/GuestSessionLimits.d.mts +0 -12
  522. package/dist/esm/serialization/types/GuestSessionLimits.mjs +0 -8
  523. package/dist/esm/serialization/types/GuestSessionUsage.d.mts +0 -10
  524. package/dist/esm/serialization/types/GuestSessionUsage.mjs +0 -6
  525. package/dist/esm/serialization/types/InternalGuestSessionResponse.d.mts +0 -16
  526. package/dist/esm/serialization/types/InternalGuestSessionResponse.mjs +0 -12
  527. package/dist/esm/serialization/types/InternalGuestSessionResponseStatus.d.mts +0 -7
  528. package/dist/esm/serialization/types/InternalGuestSessionResponseStatus.mjs +0 -3
  529. package/dist/esm/serialization/types/Limit.d.mts +0 -12
  530. package/dist/esm/serialization/types/Limit.mjs +0 -8
  531. package/dist/esm/serialization/types/NotFoundErrorBody.d.mts +0 -11
  532. package/dist/esm/serialization/types/NotFoundErrorBody.mjs +0 -7
  533. package/dist/esm/serialization/types/NotFoundErrorBodyContent.d.mts +0 -14
  534. package/dist/esm/serialization/types/NotFoundErrorBodyContent.mjs +0 -10
  535. package/dist/esm/serialization/types/NotFoundErrorBodyContentCode.d.mts +0 -7
  536. package/dist/esm/serialization/types/NotFoundErrorBodyContentCode.mjs +0 -3
  537. package/dist/esm/serialization/types/PostmanTeamDocsResponse.d.mts +0 -12
  538. package/dist/esm/serialization/types/PostmanTeamDocsResponse.mjs +0 -8
  539. package/dist/esm/serialization/types/ReserveResponse.d.mts +0 -20
  540. package/dist/esm/serialization/types/ReserveResponse.mjs +0 -16
  541. package/dist/esm/serialization/types/ReserveResponseKind.d.mts +0 -7
  542. package/dist/esm/serialization/types/ReserveResponseKind.mjs +0 -3
  543. package/dist/esm/serialization/types/ReserveResponseState.d.mts +0 -7
  544. package/dist/esm/serialization/types/ReserveResponseState.mjs +0 -3
  545. package/dist/esm/serialization/types/ServiceUnavailableErrorBody.d.mts +0 -11
  546. package/dist/esm/serialization/types/ServiceUnavailableErrorBody.mjs +0 -7
  547. package/dist/esm/serialization/types/ServiceUnavailableErrorBodyContent.d.mts +0 -14
  548. package/dist/esm/serialization/types/ServiceUnavailableErrorBodyContent.mjs +0 -10
  549. package/dist/esm/serialization/types/ServiceUnavailableErrorBodyContentCode.d.mts +0 -7
  550. package/dist/esm/serialization/types/ServiceUnavailableErrorBodyContentCode.mjs +0 -3
  551. package/dist/esm/serialization/types/SettleResponse.d.mts +0 -11
  552. package/dist/esm/serialization/types/SettleResponse.mjs +0 -7
  553. package/dist/esm/serialization/types/SettleResponseReason.d.mts +0 -7
  554. package/dist/esm/serialization/types/SettleResponseReason.mjs +0 -3
  555. package/dist/esm/serialization/types/TooManyRequestsErrorBody.d.mts +0 -11
  556. package/dist/esm/serialization/types/TooManyRequestsErrorBody.mjs +0 -7
  557. package/dist/esm/serialization/types/TooManyRequestsErrorBodyContent.d.mts +0 -14
  558. package/dist/esm/serialization/types/TooManyRequestsErrorBodyContent.mjs +0 -10
  559. package/dist/esm/serialization/types/TooManyRequestsErrorBodyContentCode.d.mts +0 -7
  560. package/dist/esm/serialization/types/TooManyRequestsErrorBodyContentCode.mjs +0 -3
@@ -1,43 +0,0 @@
1
- import type * as core from "../../../../core/index.mjs";
2
- import * as FernVenusApi from "../../../index.mjs";
3
- export type Error = FernVenusApi.guestSession.get.Error.NotFoundError | FernVenusApi.guestSession.get.Error.GoneError | FernVenusApi.guestSession.get.Error.UnprocessableEntityError | FernVenusApi.guestSession.get.Error.ServiceUnavailableError | FernVenusApi.guestSession.get.Error._Unknown;
4
- export declare namespace Error {
5
- interface NotFoundError extends _Utils {
6
- statusCode: 404;
7
- content: FernVenusApi.NotFoundErrorBody;
8
- }
9
- interface GoneError extends _Utils {
10
- statusCode: 410;
11
- content: FernVenusApi.GoneErrorBody;
12
- }
13
- interface UnprocessableEntityError extends _Utils {
14
- statusCode: 422;
15
- content: FernVenusApi.HttpValidationError;
16
- }
17
- interface ServiceUnavailableError extends _Utils {
18
- statusCode: 503;
19
- content?: unknown;
20
- }
21
- interface _Unknown extends _Utils {
22
- statusCode: void;
23
- content: core.Fetcher.Error;
24
- }
25
- interface _Utils {
26
- _visit: <_Result>(visitor: FernVenusApi.guestSession.get.Error._Visitor<_Result>) => _Result;
27
- }
28
- interface _Visitor<_Result> {
29
- notFoundError: (value: FernVenusApi.NotFoundErrorBody) => _Result;
30
- goneError: (value: FernVenusApi.GoneErrorBody) => _Result;
31
- unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
32
- serviceUnavailableError: (value: unknown) => _Result;
33
- _other: (value: core.Fetcher.Error) => _Result;
34
- }
35
- }
36
- export declare const Error: {
37
- readonly notFoundError: (value: FernVenusApi.NotFoundErrorBody) => FernVenusApi.guestSession.get.Error.NotFoundError;
38
- readonly goneError: (value: FernVenusApi.GoneErrorBody) => FernVenusApi.guestSession.get.Error.GoneError;
39
- readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.guestSession.get.Error.UnprocessableEntityError;
40
- readonly serviceUnavailableError: (value?: unknown) => FernVenusApi.guestSession.get.Error.ServiceUnavailableError;
41
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.guestSession.get.Error._Unknown;
42
- readonly _visit: <_Result>(value: FernVenusApi.guestSession.get.Error, visitor: FernVenusApi.guestSession.get.Error._Visitor<_Result>) => _Result;
43
- };
@@ -1,63 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- import * as FernVenusApi from "../../../index.mjs";
3
- export const Error = {
4
- notFoundError: (value) => {
5
- return {
6
- content: value,
7
- statusCode: 404,
8
- _visit: function (visitor) {
9
- return FernVenusApi.guestSession.get.Error._visit(this, visitor);
10
- },
11
- };
12
- },
13
- goneError: (value) => {
14
- return {
15
- content: value,
16
- statusCode: 410,
17
- _visit: function (visitor) {
18
- return FernVenusApi.guestSession.get.Error._visit(this, visitor);
19
- },
20
- };
21
- },
22
- unprocessableEntityError: (value) => {
23
- return {
24
- content: value,
25
- statusCode: 422,
26
- _visit: function (visitor) {
27
- return FernVenusApi.guestSession.get.Error._visit(this, visitor);
28
- },
29
- };
30
- },
31
- serviceUnavailableError: (value) => {
32
- return {
33
- content: value,
34
- statusCode: 503,
35
- _visit: function (visitor) {
36
- return FernVenusApi.guestSession.get.Error._visit(this, visitor);
37
- },
38
- };
39
- },
40
- _unknown: (fetcherError) => {
41
- return {
42
- statusCode: undefined,
43
- content: fetcherError,
44
- _visit: function (visitor) {
45
- return FernVenusApi.guestSession.get.Error._visit(this, visitor);
46
- },
47
- };
48
- },
49
- _visit: (value, visitor) => {
50
- switch (value.statusCode) {
51
- case 404:
52
- return visitor.notFoundError(value.content);
53
- case 410:
54
- return visitor.goneError(value.content);
55
- case 422:
56
- return visitor.unprocessableEntityError(value.content);
57
- case 503:
58
- return visitor.serviceUnavailableError(value.content);
59
- default:
60
- return visitor._other(value.content);
61
- }
62
- },
63
- };
@@ -1,5 +0,0 @@
1
- export * as claim from "./claim.mjs";
2
- export * as create from "./create.mjs";
3
- export * as delete from "./delete.mjs";
4
- export * as get from "./get.mjs";
5
- export * from "./requests/index.mjs";
@@ -1,5 +0,0 @@
1
- export * as claim from "./claim.mjs";
2
- export * as create from "./create.mjs";
3
- export * as delete from "./delete.mjs";
4
- export * as get from "./get.mjs";
5
- export * from "./requests/index.mjs";
@@ -1,11 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * sessionId: "session_id"
5
- * }
6
- */
7
- export interface ClaimGuestSessionRequest {
8
- sessionId: string;
9
- organizationId?: string | null;
10
- newOrganizationId?: string | null;
11
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * fingerprint: "fingerprint"
5
- * }
6
- */
7
- export interface CreateGuestSessionRequest {
8
- fingerprint: string;
9
- clientVersion?: string | null;
10
- requestedOrgName?: string | null;
11
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * sessionId: "session_id"
5
- * }
6
- */
7
- export interface DeleteGuestSessionsSessionIdDeleteRequest {
8
- sessionId: string;
9
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * sessionId: "session_id"
5
- * }
6
- */
7
- export interface GetGuestSessionsSessionIdGetRequest {
8
- sessionId: string;
9
- /** The session's claim secret, from the fragment of its claimUrl. Opens the session without a token, for the claim page. */
10
- fernClaimSecret?: string;
11
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,4 +0,0 @@
1
- export type { ClaimGuestSessionRequest } from "./ClaimGuestSessionRequest.mjs";
2
- export type { CreateGuestSessionRequest } from "./CreateGuestSessionRequest.mjs";
3
- export type { DeleteGuestSessionsSessionIdDeleteRequest } from "./DeleteGuestSessionsSessionIdDeleteRequest.mjs";
4
- export type { GetGuestSessionsSessionIdGetRequest } from "./GetGuestSessionsSessionIdGetRequest.mjs";
@@ -1 +0,0 @@
1
- export * from "./client/index.mjs";
@@ -1 +0,0 @@
1
- export * from "./client/index.mjs";
@@ -1,55 +0,0 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
- import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
- import * as core from "../../../../core/index.mjs";
4
- import * as FernVenusApi from "../../../index.mjs";
5
- export declare namespace InternalGuestSessionClient {
6
- type Options = BaseClientOptions;
7
- interface RequestOptions extends BaseRequestOptions {
8
- }
9
- }
10
- export declare class InternalGuestSessionClient {
11
- protected readonly _options: NormalizedClientOptionsWithAuth<InternalGuestSessionClient.Options>;
12
- constructor(options: InternalGuestSessionClient.Options);
13
- /**
14
- * The session behind a guest organization, for the service holding
15
- * its work. This is the read the pull model in ``guest_resources`` rests
16
- * on: FDR and Fiddle know the ``guest-<id>`` org their rows belong to, not
17
- * the session ID, token or claim secret, so this is keyed by the org and
18
- * opened by the service credential alone.
19
- *
20
- * @param {FernVenusApi.ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest} request
21
- * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
22
- *
23
- * @example
24
- * await client.internalGuestSession.readByOrg({
25
- * orgId: "org_id"
26
- * })
27
- */
28
- readByOrg(request: FernVenusApi.ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest, requestOptions?: InternalGuestSessionClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.InternalGuestSessionResponse, FernVenusApi.internalGuestSession.readByOrg.Error>>;
29
- private __readByOrg;
30
- /**
31
- * @param {FernVenusApi.ReserveRequest} request
32
- * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
33
- *
34
- * @example
35
- * await client.internalGuestSession.reserve({
36
- * sessionId: "session_id",
37
- * kind: "sdkBuild"
38
- * })
39
- */
40
- reserve(request: FernVenusApi.ReserveRequest, requestOptions?: InternalGuestSessionClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.ReserveResponse, FernVenusApi.internalGuestSession.reserve.Error>>;
41
- private __reserve;
42
- /**
43
- * @param {FernVenusApi.SettleRequest} request
44
- * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
45
- *
46
- * @example
47
- * await client.internalGuestSession.settle({
48
- * sessionId: "session_id",
49
- * reservationId: "reservationId",
50
- * outcome: "succeeded"
51
- * })
52
- */
53
- settle(request: FernVenusApi.SettleRequest, requestOptions?: InternalGuestSessionClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.SettleResponse, FernVenusApi.internalGuestSession.settle.Error>>;
54
- private __settle;
55
- }
@@ -1,277 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __rest = (this && this.__rest) || function (s, e) {
12
- var t = {};
13
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
- t[p] = s[p];
15
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
- t[p[i]] = s[p[i]];
19
- }
20
- return t;
21
- };
22
- import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
23
- import { mergeHeaders } from "../../../../core/headers.mjs";
24
- import * as core from "../../../../core/index.mjs";
25
- import * as serializers from "../../../../serialization/index.mjs";
26
- import * as FernVenusApi from "../../../index.mjs";
27
- export class InternalGuestSessionClient {
28
- constructor(options) {
29
- this._options = normalizeClientOptionsWithAuth(options);
30
- }
31
- /**
32
- * The session behind a guest organization, for the service holding
33
- * its work. This is the read the pull model in ``guest_resources`` rests
34
- * on: FDR and Fiddle know the ``guest-<id>`` org their rows belong to, not
35
- * the session ID, token or claim secret, so this is keyed by the org and
36
- * opened by the service credential alone.
37
- *
38
- * @param {FernVenusApi.ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest} request
39
- * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
40
- *
41
- * @example
42
- * await client.internalGuestSession.readByOrg({
43
- * orgId: "org_id"
44
- * })
45
- */
46
- readByOrg(request, requestOptions) {
47
- return core.HttpResponsePromise.fromPromise(this.__readByOrg(request, requestOptions));
48
- }
49
- __readByOrg(request, requestOptions) {
50
- return __awaiter(this, void 0, void 0, function* () {
51
- var _a, _b, _c, _d, _e, _f, _g, _h;
52
- const { orgId } = request;
53
- const _authRequest = yield this._options.authProvider.getAuthRequest();
54
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
55
- const _response = yield core.fetcher({
56
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `internal/guest-sessions/by-org/${core.url.encodePathParam(orgId)}`),
57
- method: "GET",
58
- headers: _headers,
59
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
60
- timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
61
- maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
62
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
63
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
64
- logging: this._options.logging,
65
- });
66
- if (_response.ok) {
67
- return {
68
- data: {
69
- ok: true,
70
- body: serializers.InternalGuestSessionResponse.parseOrThrow(_response.body, {
71
- unrecognizedObjectKeys: "passthrough",
72
- allowUnrecognizedUnionMembers: true,
73
- allowUnrecognizedEnumValues: true,
74
- skipValidation: true,
75
- breadcrumbsPrefix: ["response"],
76
- }),
77
- headers: _response.headers,
78
- rawResponse: _response.rawResponse,
79
- },
80
- rawResponse: _response.rawResponse,
81
- };
82
- }
83
- if (_response.error.reason === "status-code") {
84
- switch (_response.error.statusCode) {
85
- case 422:
86
- return {
87
- data: {
88
- ok: false,
89
- error: FernVenusApi.internalGuestSession.readByOrg.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
90
- unrecognizedObjectKeys: "passthrough",
91
- allowUnrecognizedUnionMembers: true,
92
- allowUnrecognizedEnumValues: true,
93
- skipValidation: true,
94
- breadcrumbsPrefix: ["response"],
95
- })),
96
- rawResponse: _response.rawResponse,
97
- },
98
- rawResponse: _response.rawResponse,
99
- };
100
- }
101
- }
102
- return {
103
- data: {
104
- ok: false,
105
- error: FernVenusApi.internalGuestSession.readByOrg.Error._unknown(_response.error),
106
- rawResponse: _response.rawResponse,
107
- },
108
- rawResponse: _response.rawResponse,
109
- };
110
- });
111
- }
112
- /**
113
- * @param {FernVenusApi.ReserveRequest} request
114
- * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
115
- *
116
- * @example
117
- * await client.internalGuestSession.reserve({
118
- * sessionId: "session_id",
119
- * kind: "sdkBuild"
120
- * })
121
- */
122
- reserve(request, requestOptions) {
123
- return core.HttpResponsePromise.fromPromise(this.__reserve(request, requestOptions));
124
- }
125
- __reserve(request, requestOptions) {
126
- return __awaiter(this, void 0, void 0, function* () {
127
- var _a, _b, _c, _d, _e, _f, _g, _h;
128
- const { sessionId } = request, _body = __rest(request, ["sessionId"]);
129
- const _authRequest = yield this._options.authProvider.getAuthRequest();
130
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
131
- const _response = yield core.fetcher({
132
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `internal/guest-sessions/${core.url.encodePathParam(sessionId)}/quota/reserve`),
133
- method: "POST",
134
- headers: _headers,
135
- contentType: "application/json",
136
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
137
- requestType: "json",
138
- body: serializers.ReserveRequest.jsonOrThrow(_body, {
139
- unrecognizedObjectKeys: "strip",
140
- omitUndefined: true,
141
- }),
142
- timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
143
- maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
144
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
145
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
146
- logging: this._options.logging,
147
- });
148
- if (_response.ok) {
149
- return {
150
- data: {
151
- ok: true,
152
- body: serializers.ReserveResponse.parseOrThrow(_response.body, {
153
- unrecognizedObjectKeys: "passthrough",
154
- allowUnrecognizedUnionMembers: true,
155
- allowUnrecognizedEnumValues: true,
156
- skipValidation: true,
157
- breadcrumbsPrefix: ["response"],
158
- }),
159
- headers: _response.headers,
160
- rawResponse: _response.rawResponse,
161
- },
162
- rawResponse: _response.rawResponse,
163
- };
164
- }
165
- if (_response.error.reason === "status-code") {
166
- switch (_response.error.statusCode) {
167
- case 422:
168
- return {
169
- data: {
170
- ok: false,
171
- error: FernVenusApi.internalGuestSession.reserve.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
172
- unrecognizedObjectKeys: "passthrough",
173
- allowUnrecognizedUnionMembers: true,
174
- allowUnrecognizedEnumValues: true,
175
- skipValidation: true,
176
- breadcrumbsPrefix: ["response"],
177
- })),
178
- rawResponse: _response.rawResponse,
179
- },
180
- rawResponse: _response.rawResponse,
181
- };
182
- }
183
- }
184
- return {
185
- data: {
186
- ok: false,
187
- error: FernVenusApi.internalGuestSession.reserve.Error._unknown(_response.error),
188
- rawResponse: _response.rawResponse,
189
- },
190
- rawResponse: _response.rawResponse,
191
- };
192
- });
193
- }
194
- /**
195
- * @param {FernVenusApi.SettleRequest} request
196
- * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
197
- *
198
- * @example
199
- * await client.internalGuestSession.settle({
200
- * sessionId: "session_id",
201
- * reservationId: "reservationId",
202
- * outcome: "succeeded"
203
- * })
204
- */
205
- settle(request, requestOptions) {
206
- return core.HttpResponsePromise.fromPromise(this.__settle(request, requestOptions));
207
- }
208
- __settle(request, requestOptions) {
209
- return __awaiter(this, void 0, void 0, function* () {
210
- var _a, _b, _c, _d, _e, _f, _g, _h;
211
- const { sessionId } = request, _body = __rest(request, ["sessionId"]);
212
- const _authRequest = yield this._options.authProvider.getAuthRequest();
213
- const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
214
- const _response = yield core.fetcher({
215
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `internal/guest-sessions/${core.url.encodePathParam(sessionId)}/quota/settle`),
216
- method: "POST",
217
- headers: _headers,
218
- contentType: "application/json",
219
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
220
- requestType: "json",
221
- body: serializers.SettleRequest.jsonOrThrow(_body, {
222
- unrecognizedObjectKeys: "strip",
223
- omitUndefined: true,
224
- }),
225
- timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
226
- maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
227
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
228
- fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
229
- logging: this._options.logging,
230
- });
231
- if (_response.ok) {
232
- return {
233
- data: {
234
- ok: true,
235
- body: serializers.SettleResponse.parseOrThrow(_response.body, {
236
- unrecognizedObjectKeys: "passthrough",
237
- allowUnrecognizedUnionMembers: true,
238
- allowUnrecognizedEnumValues: true,
239
- skipValidation: true,
240
- breadcrumbsPrefix: ["response"],
241
- }),
242
- headers: _response.headers,
243
- rawResponse: _response.rawResponse,
244
- },
245
- rawResponse: _response.rawResponse,
246
- };
247
- }
248
- if (_response.error.reason === "status-code") {
249
- switch (_response.error.statusCode) {
250
- case 422:
251
- return {
252
- data: {
253
- ok: false,
254
- error: FernVenusApi.internalGuestSession.settle.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
255
- unrecognizedObjectKeys: "passthrough",
256
- allowUnrecognizedUnionMembers: true,
257
- allowUnrecognizedEnumValues: true,
258
- skipValidation: true,
259
- breadcrumbsPrefix: ["response"],
260
- })),
261
- rawResponse: _response.rawResponse,
262
- },
263
- rawResponse: _response.rawResponse,
264
- };
265
- }
266
- }
267
- return {
268
- data: {
269
- ok: false,
270
- error: FernVenusApi.internalGuestSession.settle.Error._unknown(_response.error),
271
- rawResponse: _response.rawResponse,
272
- },
273
- rawResponse: _response.rawResponse,
274
- };
275
- });
276
- }
277
- }
@@ -1,4 +0,0 @@
1
- export * as readByOrg from "./readByOrg.mjs";
2
- export * from "./requests/index.mjs";
3
- export * as reserve from "./reserve.mjs";
4
- export * as settle from "./settle.mjs";
@@ -1,4 +0,0 @@
1
- export * as readByOrg from "./readByOrg.mjs";
2
- export * from "./requests/index.mjs";
3
- export * as reserve from "./reserve.mjs";
4
- export * as settle from "./settle.mjs";
@@ -1,25 +0,0 @@
1
- import type * as core from "../../../../core/index.mjs";
2
- import * as FernVenusApi from "../../../index.mjs";
3
- export type Error = FernVenusApi.internalGuestSession.readByOrg.Error.UnprocessableEntityError | FernVenusApi.internalGuestSession.readByOrg.Error._Unknown;
4
- export declare namespace Error {
5
- interface UnprocessableEntityError extends _Utils {
6
- statusCode: 422;
7
- content: FernVenusApi.HttpValidationError;
8
- }
9
- interface _Unknown extends _Utils {
10
- statusCode: void;
11
- content: core.Fetcher.Error;
12
- }
13
- interface _Utils {
14
- _visit: <_Result>(visitor: FernVenusApi.internalGuestSession.readByOrg.Error._Visitor<_Result>) => _Result;
15
- }
16
- interface _Visitor<_Result> {
17
- unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
18
- _other: (value: core.Fetcher.Error) => _Result;
19
- }
20
- }
21
- export declare const Error: {
22
- readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.internalGuestSession.readByOrg.Error.UnprocessableEntityError;
23
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.internalGuestSession.readByOrg.Error._Unknown;
24
- readonly _visit: <_Result>(value: FernVenusApi.internalGuestSession.readByOrg.Error, visitor: FernVenusApi.internalGuestSession.readByOrg.Error._Visitor<_Result>) => _Result;
25
- };
@@ -1,30 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- import * as FernVenusApi from "../../../index.mjs";
3
- export const Error = {
4
- unprocessableEntityError: (value) => {
5
- return {
6
- content: value,
7
- statusCode: 422,
8
- _visit: function (visitor) {
9
- return FernVenusApi.internalGuestSession.readByOrg.Error._visit(this, visitor);
10
- },
11
- };
12
- },
13
- _unknown: (fetcherError) => {
14
- return {
15
- statusCode: undefined,
16
- content: fetcherError,
17
- _visit: function (visitor) {
18
- return FernVenusApi.internalGuestSession.readByOrg.Error._visit(this, visitor);
19
- },
20
- };
21
- },
22
- _visit: (value, visitor) => {
23
- switch (value.statusCode) {
24
- case 422:
25
- return visitor.unprocessableEntityError(value.content);
26
- default:
27
- return visitor._other(value.content);
28
- }
29
- },
30
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * orgId: "org_id"
5
- * }
6
- */
7
- export interface ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest {
8
- orgId: string;
9
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,14 +0,0 @@
1
- import type * as FernVenusApi from "../../../../index.mjs";
2
- /**
3
- * @example
4
- * {
5
- * sessionId: "session_id",
6
- * kind: "sdkBuild"
7
- * }
8
- */
9
- export interface ReserveRequest {
10
- sessionId: string;
11
- kind: FernVenusApi.ReserveRequestKind;
12
- idempotencyKey?: string | null;
13
- leaseSeconds?: number;
14
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,14 +0,0 @@
1
- import type * as FernVenusApi from "../../../../index.mjs";
2
- /**
3
- * @example
4
- * {
5
- * sessionId: "session_id",
6
- * reservationId: "reservationId",
7
- * outcome: "succeeded"
8
- * }
9
- */
10
- export interface SettleRequest {
11
- sessionId: string;
12
- reservationId: string;
13
- outcome: FernVenusApi.SettleRequestOutcome;
14
- }