@chrt-inc/typescript-sdk 1.1027.0 → 1.1037.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 (229) hide show
  1. package/dist/cjs/Client.d.ts +3 -3
  2. package/dist/cjs/Client.js +19 -19
  3. package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.d.ts +3 -0
  4. package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.js +7 -2
  5. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.d.ts +88 -0
  6. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.js +269 -0
  7. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.d.ts +2 -0
  8. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.js +17 -0
  9. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.d.ts +18 -0
  10. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.d.ts +12 -0
  11. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.js +5 -0
  12. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.d.ts +2 -0
  13. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.ts +2 -2
  14. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.js +1 -1
  15. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.ts +0 -1
  16. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.d.ts +2 -0
  17. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.js +3 -1
  18. package/dist/cjs/api/resources/chrtGpt/client/Client.d.ts +3 -0
  19. package/dist/cjs/api/resources/chrtGpt/client/Client.js +5 -0
  20. package/dist/cjs/api/resources/chrtGpt/resources/conversations/client/Client.d.ts +3 -2
  21. package/dist/cjs/api/resources/chrtGpt/resources/conversations/client/Client.js +7 -3
  22. package/dist/cjs/api/resources/chrtGpt/resources/conversations/client/requests/ConversationsListV1Request.d.ts +4 -1
  23. package/dist/cjs/api/resources/chrtGpt/resources/index.d.ts +2 -0
  24. package/dist/cjs/api/resources/chrtGpt/resources/index.js +3 -1
  25. package/dist/cjs/api/resources/chrtGpt/resources/voice/client/Client.d.ts +49 -0
  26. package/dist/cjs/api/resources/chrtGpt/resources/voice/client/Client.js +132 -0
  27. package/dist/cjs/api/resources/chrtGpt/resources/voice/client/index.d.ts +2 -0
  28. package/dist/cjs/api/resources/chrtGpt/resources/voice/client/index.js +17 -0
  29. package/dist/cjs/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.d.ts +13 -0
  30. package/dist/cjs/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.js +5 -0
  31. package/dist/cjs/api/resources/chrtGpt/resources/voice/client/requests/index.d.ts +1 -0
  32. package/dist/cjs/api/resources/chrtGpt/resources/voice/index.d.ts +1 -0
  33. package/dist/cjs/api/resources/{agent/resources/livekit → chrtGpt/resources/voice}/index.js +0 -1
  34. package/dist/cjs/api/resources/index.d.ts +1 -1
  35. package/dist/cjs/api/resources/index.js +2 -2
  36. package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/client/Client.d.ts +2 -2
  37. package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.d.ts +4 -4
  38. package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.js +7 -7
  39. package/dist/cjs/api/resources/livekit/resources/helloWorld/client/index.js +2 -0
  40. package/dist/cjs/api/resources/livekit/resources/helloWorld/index.d.ts +1 -0
  41. package/dist/cjs/api/resources/livekit/resources/helloWorld/index.js +17 -0
  42. package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -0
  43. package/dist/cjs/api/resources/orgs/client/Client.js +19 -14
  44. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.d.ts +137 -0
  45. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.js +528 -0
  46. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/index.d.ts +2 -0
  47. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/index.js +17 -0
  48. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.d.ts +12 -0
  49. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.js +5 -0
  50. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.d.ts +27 -0
  51. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.js +5 -0
  52. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.d.ts +12 -0
  53. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.js +5 -0
  54. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.d.ts +13 -0
  55. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.js +5 -0
  56. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.d.ts +13 -0
  57. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.js +5 -0
  58. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.d.ts +5 -0
  59. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.js +2 -0
  60. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/index.d.ts +1 -0
  61. package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/index.js +17 -0
  62. package/dist/cjs/api/resources/orgs/resources/index.d.ts +2 -0
  63. package/dist/cjs/api/resources/orgs/resources/index.js +3 -1
  64. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.ts +1 -1
  65. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.js +1 -1
  66. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.ts +1 -1
  67. package/dist/cjs/api/types/AirWaybillStockNumber1.d.ts +21 -0
  68. package/dist/cjs/api/types/AirWaybillStockNumber1.js +5 -0
  69. package/dist/cjs/api/types/AirWaybillStockNumberListRes.d.ts +8 -0
  70. package/dist/cjs/api/types/AirWaybillStockNumberListRes.js +5 -0
  71. package/dist/cjs/api/types/AirWaybillStockNumberSortByEnum.d.ts +9 -0
  72. package/dist/cjs/api/types/AirWaybillStockNumberSortByEnum.js +11 -0
  73. package/dist/cjs/api/types/AirWaybillStockNumberStatusEnum1.d.ts +10 -0
  74. package/dist/cjs/api/types/AirWaybillStockNumberStatusEnum1.js +12 -0
  75. package/dist/cjs/api/types/AirWaybillStockNumbersAddRes.d.ts +8 -0
  76. package/dist/cjs/api/types/AirWaybillStockNumbersAddRes.js +5 -0
  77. package/dist/cjs/api/types/AirWaybillStockNumbersSummaryRes.d.ts +10 -0
  78. package/dist/cjs/api/types/AirWaybillStockNumbersSummaryRes.js +5 -0
  79. package/dist/cjs/api/types/Caller.d.ts +1 -0
  80. package/dist/cjs/api/{resources/cargoOnFlightIntegrations/resources/cargoai/client/requests → types}/CargoOnFlightBookingSearchClientCreate1.d.ts +0 -10
  81. package/dist/cjs/api/types/CargoOnFlightBookingSearchClientCreate1.js +5 -0
  82. package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.d.ts +2 -1
  83. package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.js +1 -0
  84. package/dist/cjs/api/types/ChrtGptVoiceDelegationEnum.d.ts +11 -0
  85. package/dist/cjs/api/types/ChrtGptVoiceDelegationEnum.js +10 -0
  86. package/dist/cjs/api/types/ChrtGptVoiceReq.d.ts +11 -0
  87. package/dist/cjs/api/types/ChrtGptVoiceReq.js +5 -0
  88. package/dist/cjs/api/types/ChrtGptVoiceStartRes.d.ts +9 -0
  89. package/dist/cjs/api/types/ChrtGptVoiceStartRes.js +5 -0
  90. package/dist/cjs/api/types/InternalDelegationOriginEnum.d.ts +8 -0
  91. package/dist/cjs/api/types/InternalDelegationOriginEnum.js +10 -0
  92. package/dist/cjs/api/types/index.d.ts +11 -0
  93. package/dist/cjs/api/types/index.js +11 -0
  94. package/dist/cjs/version.d.ts +1 -1
  95. package/dist/cjs/version.js +1 -1
  96. package/dist/esm/Client.d.mts +3 -3
  97. package/dist/esm/Client.mjs +7 -7
  98. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.d.mts +3 -0
  99. package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.mjs +5 -0
  100. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.d.mts +88 -0
  101. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.mjs +232 -0
  102. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.d.mts +2 -0
  103. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.mjs +1 -0
  104. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.d.mts +18 -0
  105. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.d.mts +12 -0
  106. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.mjs +4 -0
  107. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.d.mts +2 -0
  108. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.mts +2 -2
  109. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs +1 -1
  110. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.mts +0 -1
  111. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.d.mts +2 -0
  112. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.mjs +2 -0
  113. package/dist/esm/api/resources/chrtGpt/client/Client.d.mts +3 -0
  114. package/dist/esm/api/resources/chrtGpt/client/Client.mjs +5 -0
  115. package/dist/esm/api/resources/chrtGpt/resources/conversations/client/Client.d.mts +3 -2
  116. package/dist/esm/api/resources/chrtGpt/resources/conversations/client/Client.mjs +7 -3
  117. package/dist/esm/api/resources/chrtGpt/resources/conversations/client/requests/ConversationsListV1Request.d.mts +4 -1
  118. package/dist/esm/api/resources/chrtGpt/resources/index.d.mts +2 -0
  119. package/dist/esm/api/resources/chrtGpt/resources/index.mjs +2 -0
  120. package/dist/esm/api/resources/chrtGpt/resources/voice/client/Client.d.mts +49 -0
  121. package/dist/esm/api/resources/chrtGpt/resources/voice/client/Client.mjs +95 -0
  122. package/dist/esm/api/resources/chrtGpt/resources/voice/client/index.d.mts +2 -0
  123. package/dist/esm/api/resources/chrtGpt/resources/voice/client/index.mjs +1 -0
  124. package/dist/esm/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.d.mts +13 -0
  125. package/dist/esm/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.mjs +4 -0
  126. package/dist/esm/api/resources/chrtGpt/resources/voice/client/requests/index.d.mts +1 -0
  127. package/dist/esm/api/resources/chrtGpt/resources/voice/index.d.mts +1 -0
  128. package/dist/esm/api/resources/chrtGpt/resources/voice/index.mjs +1 -0
  129. package/dist/esm/api/resources/index.d.mts +1 -1
  130. package/dist/esm/api/resources/index.mjs +1 -1
  131. package/dist/esm/api/resources/{agent/resources/livekit → livekit}/client/Client.d.mts +2 -2
  132. package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.d.mts +4 -4
  133. package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.mjs +7 -7
  134. package/dist/esm/api/resources/livekit/resources/helloWorld/index.d.mts +1 -0
  135. package/dist/esm/api/resources/livekit/resources/helloWorld/index.mjs +1 -0
  136. package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -0
  137. package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
  138. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.d.mts +137 -0
  139. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.mjs +491 -0
  140. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/index.d.mts +2 -0
  141. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/index.mjs +1 -0
  142. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.d.mts +12 -0
  143. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.mjs +4 -0
  144. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.d.mts +27 -0
  145. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.mjs +4 -0
  146. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.d.mts +12 -0
  147. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.mjs +4 -0
  148. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.d.mts +13 -0
  149. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.mjs +4 -0
  150. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.d.mts +13 -0
  151. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.mjs +4 -0
  152. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.d.mts +5 -0
  153. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/index.d.mts +1 -0
  154. package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/index.mjs +1 -0
  155. package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
  156. package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
  157. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.mts +1 -1
  158. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.mjs +1 -1
  159. package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.mts +1 -1
  160. package/dist/esm/api/types/AirWaybillStockNumber1.d.mts +21 -0
  161. package/dist/esm/api/types/AirWaybillStockNumber1.mjs +4 -0
  162. package/dist/esm/api/types/AirWaybillStockNumberListRes.d.mts +8 -0
  163. package/dist/esm/api/types/AirWaybillStockNumberListRes.mjs +4 -0
  164. package/dist/esm/api/types/AirWaybillStockNumberSortByEnum.d.mts +9 -0
  165. package/dist/esm/api/types/AirWaybillStockNumberSortByEnum.mjs +8 -0
  166. package/dist/esm/api/types/AirWaybillStockNumberStatusEnum1.d.mts +10 -0
  167. package/dist/esm/api/types/AirWaybillStockNumberStatusEnum1.mjs +9 -0
  168. package/dist/esm/api/types/AirWaybillStockNumbersAddRes.d.mts +8 -0
  169. package/dist/esm/api/types/AirWaybillStockNumbersAddRes.mjs +4 -0
  170. package/dist/esm/api/types/AirWaybillStockNumbersSummaryRes.d.mts +10 -0
  171. package/dist/esm/api/types/AirWaybillStockNumbersSummaryRes.mjs +4 -0
  172. package/dist/esm/api/types/Caller.d.mts +1 -0
  173. package/dist/esm/api/{resources/cargoOnFlightIntegrations/resources/cargoai/client/requests → types}/CargoOnFlightBookingSearchClientCreate1.d.mts +0 -10
  174. package/dist/esm/api/types/CargoOnFlightBookingSearchClientCreate1.mjs +4 -0
  175. package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.d.mts +2 -1
  176. package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.mjs +1 -0
  177. package/dist/esm/api/types/ChrtGptVoiceDelegationEnum.d.mts +11 -0
  178. package/dist/esm/api/types/ChrtGptVoiceDelegationEnum.mjs +7 -0
  179. package/dist/esm/api/types/ChrtGptVoiceReq.d.mts +11 -0
  180. package/dist/esm/api/types/ChrtGptVoiceReq.mjs +4 -0
  181. package/dist/esm/api/types/ChrtGptVoiceStartRes.d.mts +9 -0
  182. package/dist/esm/api/types/ChrtGptVoiceStartRes.mjs +4 -0
  183. package/dist/esm/api/types/InternalDelegationOriginEnum.d.mts +8 -0
  184. package/dist/esm/api/types/InternalDelegationOriginEnum.mjs +7 -0
  185. package/dist/esm/api/types/index.d.mts +11 -0
  186. package/dist/esm/api/types/index.mjs +11 -0
  187. package/dist/esm/version.d.mts +1 -1
  188. package/dist/esm/version.mjs +1 -1
  189. package/package.json +1 -1
  190. package/reference.md +2050 -1305
  191. package/dist/cjs/api/resources/agent/client/Client.d.ts +0 -23
  192. package/dist/cjs/api/resources/agent/client/Client.js +0 -17
  193. package/dist/cjs/api/resources/agent/resources/index.d.ts +0 -1
  194. package/dist/cjs/api/resources/agent/resources/index.js +0 -37
  195. package/dist/cjs/api/resources/agent/resources/livekit/index.d.ts +0 -2
  196. package/dist/esm/api/resources/agent/client/Client.d.mts +0 -23
  197. package/dist/esm/api/resources/agent/client/Client.mjs +0 -13
  198. package/dist/esm/api/resources/agent/resources/index.d.mts +0 -1
  199. package/dist/esm/api/resources/agent/resources/index.mjs +0 -1
  200. package/dist/esm/api/resources/agent/resources/livekit/index.d.mts +0 -2
  201. package/dist/esm/api/resources/agent/resources/livekit/index.mjs +0 -2
  202. /package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/{cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.js → airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.js} +0 -0
  203. /package/dist/cjs/api/resources/{agent/client → cargoOnFlightIntegrations/resources/airCanada/client/requests}/index.js +0 -0
  204. /package/dist/cjs/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.d.ts +0 -0
  205. /package/dist/cjs/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.js +0 -0
  206. /package/dist/cjs/api/resources/{agent/resources/livekit/client → chrtGpt/resources/voice/client/requests}/index.js +0 -0
  207. /package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/client/Client.js +0 -0
  208. /package/dist/cjs/api/resources/{agent → livekit}/client/index.d.ts +0 -0
  209. /package/dist/cjs/api/resources/{agent/resources/livekit/resources/helloWorld → livekit}/client/index.js +0 -0
  210. /package/dist/cjs/api/resources/{agent → livekit}/index.d.ts +0 -0
  211. /package/dist/cjs/api/resources/{agent → livekit}/index.js +0 -0
  212. /package/dist/cjs/api/resources/{agent/resources/livekit → livekit/resources/helloWorld}/client/index.d.ts +0 -0
  213. /package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/index.d.ts +0 -0
  214. /package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/index.js +0 -0
  215. /package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/{cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.mjs → airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.mjs} +0 -0
  216. /package/dist/esm/api/resources/{agent/client → cargoOnFlightIntegrations/resources/airCanada/client/requests}/index.mjs +0 -0
  217. /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.d.mts +0 -0
  218. /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.mjs +0 -0
  219. /package/dist/esm/api/resources/{agent/resources/livekit/client → chrtGpt/resources/voice/client/requests}/index.mjs +0 -0
  220. /package/dist/esm/api/resources/{agent/resources/livekit → livekit}/client/Client.mjs +0 -0
  221. /package/dist/esm/api/resources/{agent → livekit}/client/index.d.mts +0 -0
  222. /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld → livekit}/client/index.mjs +0 -0
  223. /package/dist/esm/api/resources/{agent → livekit}/index.d.mts +0 -0
  224. /package/dist/esm/api/resources/{agent → livekit}/index.mjs +0 -0
  225. /package/dist/esm/api/resources/{agent/resources/livekit → livekit/resources/helloWorld}/client/index.d.mts +0 -0
  226. /package/dist/{cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/index.d.ts → esm/api/resources/livekit/resources/helloWorld/client/index.mjs} +0 -0
  227. /package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/index.d.mts +0 -0
  228. /package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/index.mjs +0 -0
  229. /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld/client/index.d.mts → orgs/resources/airWaybillStockNumbers/client/requests/index.mjs} +0 -0
@@ -7,13 +7,13 @@ import { ChrtGpt } from "./api/resources/chrtGpt/client/Client.mjs";
7
7
  import { Flights } from "./api/resources/flights/client/Client.mjs";
8
8
  import { Orgs } from "./api/resources/orgs/client/Client.mjs";
9
9
  import { Utils } from "./api/resources/utils/client/Client.mjs";
10
- import { Agent } from "./api/resources/agent/client/Client.mjs";
11
10
  import { Analytics } from "./api/resources/analytics/client/Client.mjs";
12
11
  import { Billing } from "./api/resources/billing/client/Client.mjs";
13
12
  import { BillingNew } from "./api/resources/billingNew/client/Client.mjs";
14
13
  import { CargoOnFlightIntegrations } from "./api/resources/cargoOnFlightIntegrations/client/Client.mjs";
15
14
  import { Integrations } from "./api/resources/integrations/client/Client.mjs";
16
15
  import { Listing } from "./api/resources/listing/client/Client.mjs";
16
+ import { Livekit } from "./api/resources/livekit/client/Client.mjs";
17
17
  import { Notifications } from "./api/resources/notifications/client/Client.mjs";
18
18
  import { Operations } from "./api/resources/operations/client/Client.mjs";
19
19
  import { Shipping } from "./api/resources/shipping/client/Client.mjs";
@@ -50,13 +50,13 @@ export declare class ChrtClient {
50
50
  protected _flights: Flights | undefined;
51
51
  protected _orgs: Orgs | undefined;
52
52
  protected _utils: Utils | undefined;
53
- protected _agent: Agent | undefined;
54
53
  protected _analytics: Analytics | undefined;
55
54
  protected _billing: Billing | undefined;
56
55
  protected _billingNew: BillingNew | undefined;
57
56
  protected _cargoOnFlightIntegrations: CargoOnFlightIntegrations | undefined;
58
57
  protected _integrations: Integrations | undefined;
59
58
  protected _listing: Listing | undefined;
59
+ protected _livekit: Livekit | undefined;
60
60
  protected _notifications: Notifications | undefined;
61
61
  protected _operations: Operations | undefined;
62
62
  protected _shipping: Shipping | undefined;
@@ -69,13 +69,13 @@ export declare class ChrtClient {
69
69
  get flights(): Flights;
70
70
  get orgs(): Orgs;
71
71
  get utils(): Utils;
72
- get agent(): Agent;
73
72
  get analytics(): Analytics;
74
73
  get billing(): Billing;
75
74
  get billingNew(): BillingNew;
76
75
  get cargoOnFlightIntegrations(): CargoOnFlightIntegrations;
77
76
  get integrations(): Integrations;
78
77
  get listing(): Listing;
78
+ get livekit(): Livekit;
79
79
  get notifications(): Notifications;
80
80
  get operations(): Operations;
81
81
  get shipping(): Shipping;
@@ -7,13 +7,13 @@ import { ChrtGpt } from "./api/resources/chrtGpt/client/Client.mjs";
7
7
  import { Flights } from "./api/resources/flights/client/Client.mjs";
8
8
  import { Orgs } from "./api/resources/orgs/client/Client.mjs";
9
9
  import { Utils } from "./api/resources/utils/client/Client.mjs";
10
- import { Agent } from "./api/resources/agent/client/Client.mjs";
11
10
  import { Analytics } from "./api/resources/analytics/client/Client.mjs";
12
11
  import { Billing } from "./api/resources/billing/client/Client.mjs";
13
12
  import { BillingNew } from "./api/resources/billingNew/client/Client.mjs";
14
13
  import { CargoOnFlightIntegrations } from "./api/resources/cargoOnFlightIntegrations/client/Client.mjs";
15
14
  import { Integrations } from "./api/resources/integrations/client/Client.mjs";
16
15
  import { Listing } from "./api/resources/listing/client/Client.mjs";
16
+ import { Livekit } from "./api/resources/livekit/client/Client.mjs";
17
17
  import { Notifications } from "./api/resources/notifications/client/Client.mjs";
18
18
  import { Operations } from "./api/resources/operations/client/Client.mjs";
19
19
  import { Shipping } from "./api/resources/shipping/client/Client.mjs";
@@ -26,8 +26,8 @@ export class ChrtClient {
26
26
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
27
27
  "X-Fern-Language": "JavaScript",
28
28
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
29
- "X-Fern-SDK-Version": "1.1027.0",
30
- "User-Agent": "@chrt-inc/typescript-sdk/1.1027.0",
29
+ "X-Fern-SDK-Version": "1.1037.0",
30
+ "User-Agent": "@chrt-inc/typescript-sdk/1.1037.0",
31
31
  "X-Fern-Runtime": core.RUNTIME.type,
32
32
  "X-Fern-Runtime-Version": core.RUNTIME.version,
33
33
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -48,10 +48,6 @@ export class ChrtClient {
48
48
  var _a;
49
49
  return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new Utils(this._options)));
50
50
  }
51
- get agent() {
52
- var _a;
53
- return ((_a = this._agent) !== null && _a !== void 0 ? _a : (this._agent = new Agent(this._options)));
54
- }
55
51
  get analytics() {
56
52
  var _a;
57
53
  return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Analytics(this._options)));
@@ -76,6 +72,10 @@ export class ChrtClient {
76
72
  var _a;
77
73
  return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new Listing(this._options)));
78
74
  }
75
+ get livekit() {
76
+ var _a;
77
+ return ((_a = this._livekit) !== null && _a !== void 0 ? _a : (this._livekit = new Livekit(this._options)));
78
+ }
79
79
  get notifications() {
80
80
  var _a;
81
81
  return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Notifications(this._options)));
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../environments.mjs";
5
5
  import * as core from "../../../../core/index.mjs";
6
+ import { AirCanada } from "../resources/airCanada/client/Client.mjs";
6
7
  import { Cargoai } from "../resources/cargoai/client/Client.mjs";
7
8
  export declare namespace CargoOnFlightIntegrations {
8
9
  interface Options {
@@ -17,7 +18,9 @@ export declare namespace CargoOnFlightIntegrations {
17
18
  }
18
19
  export declare class CargoOnFlightIntegrations {
19
20
  protected readonly _options: CargoOnFlightIntegrations.Options;
21
+ protected _airCanada: AirCanada | undefined;
20
22
  protected _cargoai: Cargoai | undefined;
21
23
  constructor(_options?: CargoOnFlightIntegrations.Options);
24
+ get airCanada(): AirCanada;
22
25
  get cargoai(): Cargoai;
23
26
  }
@@ -1,11 +1,16 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import { AirCanada } from "../resources/airCanada/client/Client.mjs";
4
5
  import { Cargoai } from "../resources/cargoai/client/Client.mjs";
5
6
  export class CargoOnFlightIntegrations {
6
7
  constructor(_options = {}) {
7
8
  this._options = _options;
8
9
  }
10
+ get airCanada() {
11
+ var _a;
12
+ return ((_a = this._airCanada) !== null && _a !== void 0 ? _a : (this._airCanada = new AirCanada(this._options)));
13
+ }
9
14
  get cargoai() {
10
15
  var _a;
11
16
  return ((_a = this._cargoai) !== null && _a !== void 0 ? _a : (this._cargoai = new Cargoai(this._options)));
@@ -0,0 +1,88 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../index.mjs";
7
+ export declare namespace AirCanada {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class AirCanada {
31
+ protected readonly _options: AirCanada.Options;
32
+ constructor(_options?: AirCanada.Options);
33
+ /**
34
+ * Books a draft booking on Air Canada with one result and rate of one of its searches, with the user's Air Canada AWB or one Air Canada assigns. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaBookReq) -> (CargoOnFlightBooking1)
35
+ *
36
+ * @param {string} cargoOnFlightBookingId
37
+ * @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaBookReq} request
38
+ * @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Chrt.UnprocessableEntityError}
41
+ *
42
+ * @example
43
+ * await client.cargoOnFlightIntegrations.airCanada.bookV1("cargo_on_flight_booking_id", {
44
+ * cargo_on_flight_booking_search_id: "cargo_on_flight_booking_search_id",
45
+ * integration_rate_id: "integration_rate_id",
46
+ * integration_result_id: "integration_result_id"
47
+ * })
48
+ */
49
+ bookV1(cargoOnFlightBookingId: string, request: Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaBookReq, requestOptions?: AirCanada.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBooking1>;
50
+ private __bookV1;
51
+ /**
52
+ * Deletes a booking on Air Canada and cancels it: a confirmed or requested one with an AWB, Air Canada's or else the requested one. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaCancelReq) -> (CargoOnFlightBooking1)
53
+ *
54
+ * @param {string} cargoOnFlightBookingId
55
+ * @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaCancelReq} request
56
+ * @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @throws {@link Chrt.UnprocessableEntityError}
59
+ *
60
+ * @example
61
+ * await client.cargoOnFlightIntegrations.airCanada.cancelV1("cargo_on_flight_booking_id", {
62
+ * cancellation_reason: "cancellation_reason"
63
+ * })
64
+ */
65
+ cancelV1(cargoOnFlightBookingId: string, request: Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaCancelReq, requestOptions?: AirCanada.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBooking1>;
66
+ private __cancelV1;
67
+ /**
68
+ * Quotes Air Canada flights with space and rates for a draft booking's cargos on a route and dates, and stores the search. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)
69
+ *
70
+ * @param {string} cargoOnFlightBookingId
71
+ * @param {Chrt.CargoOnFlightBookingSearchClientCreate1} request
72
+ * @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
73
+ *
74
+ * @throws {@link Chrt.UnprocessableEntityError}
75
+ *
76
+ * @example
77
+ * await client.cargoOnFlightIntegrations.airCanada.searchV1("cargo_on_flight_booking_id", {
78
+ * destination_iata: "destination_iata",
79
+ * earliest_departure_date: "earliest_departure_date",
80
+ * iata_cass_office_id: "iata_cass_office_id",
81
+ * origin_iata: "origin_iata",
82
+ * schema_version: 1
83
+ * })
84
+ */
85
+ searchV1(cargoOnFlightBookingId: string, request: Chrt.CargoOnFlightBookingSearchClientCreate1, requestOptions?: AirCanada.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearch1>;
86
+ private __searchV1;
87
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
88
+ }
@@ -0,0 +1,232 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ import * as environments from "../../../../../../environments.mjs";
14
+ import * as core from "../../../../../../core/index.mjs";
15
+ import * as Chrt from "../../../../../index.mjs";
16
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
+ import * as errors from "../../../../../../errors/index.mjs";
18
+ export class AirCanada {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Books a draft booking on Air Canada with one result and rate of one of its searches, with the user's Air Canada AWB or one Air Canada assigns. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaBookReq) -> (CargoOnFlightBooking1)
24
+ *
25
+ * @param {string} cargoOnFlightBookingId
26
+ * @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaBookReq} request
27
+ * @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
28
+ *
29
+ * @throws {@link Chrt.UnprocessableEntityError}
30
+ *
31
+ * @example
32
+ * await client.cargoOnFlightIntegrations.airCanada.bookV1("cargo_on_flight_booking_id", {
33
+ * cargo_on_flight_booking_search_id: "cargo_on_flight_booking_search_id",
34
+ * integration_rate_id: "integration_rate_id",
35
+ * integration_result_id: "integration_result_id"
36
+ * })
37
+ */
38
+ bookV1(cargoOnFlightBookingId, request, requestOptions) {
39
+ return core.HttpResponsePromise.fromPromise(this.__bookV1(cargoOnFlightBookingId, request, requestOptions));
40
+ }
41
+ __bookV1(cargoOnFlightBookingId, request, requestOptions) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ var _a, _b, _c, _d;
44
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
45
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
46
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `cargo_on_flight_integrations/air_canada/book/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
47
+ method: "POST",
48
+ headers: _headers,
49
+ contentType: "application/json",
50
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
51
+ requestType: "json",
52
+ body: request,
53
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
54
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
55
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
56
+ });
57
+ if (_response.ok) {
58
+ return { data: _response.body, rawResponse: _response.rawResponse };
59
+ }
60
+ if (_response.error.reason === "status-code") {
61
+ switch (_response.error.statusCode) {
62
+ case 422:
63
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
64
+ default:
65
+ throw new errors.ChrtError({
66
+ statusCode: _response.error.statusCode,
67
+ body: _response.error.body,
68
+ rawResponse: _response.rawResponse,
69
+ });
70
+ }
71
+ }
72
+ switch (_response.error.reason) {
73
+ case "non-json":
74
+ throw new errors.ChrtError({
75
+ statusCode: _response.error.statusCode,
76
+ body: _response.error.rawBody,
77
+ rawResponse: _response.rawResponse,
78
+ });
79
+ case "timeout":
80
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/air_canada/book/v1/{cargo_on_flight_booking_id}.");
81
+ case "unknown":
82
+ throw new errors.ChrtError({
83
+ message: _response.error.errorMessage,
84
+ rawResponse: _response.rawResponse,
85
+ });
86
+ }
87
+ });
88
+ }
89
+ /**
90
+ * Deletes a booking on Air Canada and cancels it: a confirmed or requested one with an AWB, Air Canada's or else the requested one. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsAirCanadaCancelReq) -> (CargoOnFlightBooking1)
91
+ *
92
+ * @param {string} cargoOnFlightBookingId
93
+ * @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsAirCanadaCancelReq} request
94
+ * @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
95
+ *
96
+ * @throws {@link Chrt.UnprocessableEntityError}
97
+ *
98
+ * @example
99
+ * await client.cargoOnFlightIntegrations.airCanada.cancelV1("cargo_on_flight_booking_id", {
100
+ * cancellation_reason: "cancellation_reason"
101
+ * })
102
+ */
103
+ cancelV1(cargoOnFlightBookingId, request, requestOptions) {
104
+ return core.HttpResponsePromise.fromPromise(this.__cancelV1(cargoOnFlightBookingId, request, requestOptions));
105
+ }
106
+ __cancelV1(cargoOnFlightBookingId, request, requestOptions) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ var _a, _b, _c, _d;
109
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
110
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
111
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `cargo_on_flight_integrations/air_canada/cancel/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
112
+ method: "POST",
113
+ headers: _headers,
114
+ contentType: "application/json",
115
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
116
+ requestType: "json",
117
+ body: request,
118
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
119
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
120
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
121
+ });
122
+ if (_response.ok) {
123
+ return { data: _response.body, rawResponse: _response.rawResponse };
124
+ }
125
+ if (_response.error.reason === "status-code") {
126
+ switch (_response.error.statusCode) {
127
+ case 422:
128
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
129
+ default:
130
+ throw new errors.ChrtError({
131
+ statusCode: _response.error.statusCode,
132
+ body: _response.error.body,
133
+ rawResponse: _response.rawResponse,
134
+ });
135
+ }
136
+ }
137
+ switch (_response.error.reason) {
138
+ case "non-json":
139
+ throw new errors.ChrtError({
140
+ statusCode: _response.error.statusCode,
141
+ body: _response.error.rawBody,
142
+ rawResponse: _response.rawResponse,
143
+ });
144
+ case "timeout":
145
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/air_canada/cancel/v1/{cargo_on_flight_booking_id}.");
146
+ case "unknown":
147
+ throw new errors.ChrtError({
148
+ message: _response.error.errorMessage,
149
+ rawResponse: _response.rawResponse,
150
+ });
151
+ }
152
+ });
153
+ }
154
+ /**
155
+ * Quotes Air Canada flights with space and rates for a draft booking's cargos on a route and dates, and stores the search. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)
156
+ *
157
+ * @param {string} cargoOnFlightBookingId
158
+ * @param {Chrt.CargoOnFlightBookingSearchClientCreate1} request
159
+ * @param {AirCanada.RequestOptions} requestOptions - Request-specific configuration.
160
+ *
161
+ * @throws {@link Chrt.UnprocessableEntityError}
162
+ *
163
+ * @example
164
+ * await client.cargoOnFlightIntegrations.airCanada.searchV1("cargo_on_flight_booking_id", {
165
+ * destination_iata: "destination_iata",
166
+ * earliest_departure_date: "earliest_departure_date",
167
+ * iata_cass_office_id: "iata_cass_office_id",
168
+ * origin_iata: "origin_iata",
169
+ * schema_version: 1
170
+ * })
171
+ */
172
+ searchV1(cargoOnFlightBookingId, request, requestOptions) {
173
+ return core.HttpResponsePromise.fromPromise(this.__searchV1(cargoOnFlightBookingId, request, requestOptions));
174
+ }
175
+ __searchV1(cargoOnFlightBookingId, request, requestOptions) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ var _a, _b, _c, _d;
178
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
179
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
180
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, `cargo_on_flight_integrations/air_canada/search/v1/${encodeURIComponent(cargoOnFlightBookingId)}`),
181
+ method: "POST",
182
+ headers: _headers,
183
+ contentType: "application/json",
184
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
185
+ requestType: "json",
186
+ body: request,
187
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
188
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
189
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
190
+ });
191
+ if (_response.ok) {
192
+ return { data: _response.body, rawResponse: _response.rawResponse };
193
+ }
194
+ if (_response.error.reason === "status-code") {
195
+ switch (_response.error.statusCode) {
196
+ case 422:
197
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
198
+ default:
199
+ throw new errors.ChrtError({
200
+ statusCode: _response.error.statusCode,
201
+ body: _response.error.body,
202
+ rawResponse: _response.rawResponse,
203
+ });
204
+ }
205
+ }
206
+ switch (_response.error.reason) {
207
+ case "non-json":
208
+ throw new errors.ChrtError({
209
+ statusCode: _response.error.statusCode,
210
+ body: _response.error.rawBody,
211
+ rawResponse: _response.rawResponse,
212
+ });
213
+ case "timeout":
214
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/air_canada/search/v1/{cargo_on_flight_booking_id}.");
215
+ case "unknown":
216
+ throw new errors.ChrtError({
217
+ message: _response.error.errorMessage,
218
+ rawResponse: _response.rawResponse,
219
+ });
220
+ }
221
+ });
222
+ }
223
+ _getAuthorizationHeader() {
224
+ return __awaiter(this, void 0, void 0, function* () {
225
+ const bearer = yield core.Supplier.get(this._options.token);
226
+ if (bearer != null) {
227
+ return `Bearer ${bearer}`;
228
+ }
229
+ return undefined;
230
+ });
231
+ }
232
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * cargo_on_flight_booking_search_id: "cargo_on_flight_booking_search_id",
8
+ * integration_rate_id: "integration_rate_id",
9
+ * integration_result_id: "integration_result_id"
10
+ * }
11
+ */
12
+ export interface CargoOnFlightIntegrationsAirCanadaBookReq {
13
+ /** IATA Air Waybill number: 3-digit airline prefix + 8-digit serial, e.g. '020-12345678'. */
14
+ awb_number?: string | null;
15
+ cargo_on_flight_booking_search_id: string;
16
+ integration_rate_id: string;
17
+ integration_result_id: string;
18
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * cancellation_reason: "cancellation_reason"
8
+ * }
9
+ */
10
+ export interface CargoOnFlightIntegrationsAirCanadaCancelReq {
11
+ cancellation_reason: string;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,2 @@
1
+ export { type CargoOnFlightIntegrationsAirCanadaBookReq } from "./CargoOnFlightIntegrationsAirCanadaBookReq.mjs";
2
+ export { type CargoOnFlightIntegrationsAirCanadaCancelReq } from "./CargoOnFlightIntegrationsAirCanadaCancelReq.mjs";
@@ -145,7 +145,7 @@ export declare class Cargoai {
145
145
  * Starts a CargoAi search for flights with space and rates for a draft booking's cargos on a route and date, and stores it. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)
146
146
  *
147
147
  * @param {string} cargoOnFlightBookingId
148
- * @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightBookingSearchClientCreate1} request
148
+ * @param {Chrt.CargoOnFlightBookingSearchClientCreate1} request
149
149
  * @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
150
150
  *
151
151
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -159,7 +159,7 @@ export declare class Cargoai {
159
159
  * schema_version: 1
160
160
  * })
161
161
  */
162
- searchV1(cargoOnFlightBookingId: string, request: Chrt.cargoOnFlightIntegrations.CargoOnFlightBookingSearchClientCreate1, requestOptions?: Cargoai.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearch1>;
162
+ searchV1(cargoOnFlightBookingId: string, request: Chrt.CargoOnFlightBookingSearchClientCreate1, requestOptions?: Cargoai.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightBookingSearch1>;
163
163
  private __searchV1;
164
164
  protected _getAuthorizationHeader(): Promise<string | undefined>;
165
165
  }
@@ -495,7 +495,7 @@ export class Cargoai {
495
495
  * Starts a CargoAi search for flights with space and rates for a draft booking's cargos on a route and date, and stores it. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightBookingSearchClientCreate1) -> (CargoOnFlightBookingSearch1)
496
496
  *
497
497
  * @param {string} cargoOnFlightBookingId
498
- * @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightBookingSearchClientCreate1} request
498
+ * @param {Chrt.CargoOnFlightBookingSearchClientCreate1} request
499
499
  * @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
500
500
  *
501
501
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -3,4 +3,3 @@ export { type CargoOnFlightIntegrationsCargoAiSendAirWaybillReq } from "./CargoO
3
3
  export { type CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq } from "./CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.mjs";
4
4
  export { type CargoOnFlightIntegrationsCargoAiBookReq } from "./CargoOnFlightIntegrationsCargoAiBookReq.mjs";
5
5
  export { type CargoOnFlightIntegrationsCargoAiCancelReq } from "./CargoOnFlightIntegrationsCargoAiCancelReq.mjs";
6
- export { type CargoOnFlightBookingSearchClientCreate1 } from "./CargoOnFlightBookingSearchClientCreate1.mjs";
@@ -1,2 +1,4 @@
1
+ export * as airCanada from "./airCanada/index.mjs";
1
2
  export * as cargoai from "./cargoai/index.mjs";
3
+ export * from "./airCanada/client/requests/index.mjs";
2
4
  export * from "./cargoai/client/requests/index.mjs";
@@ -1,2 +1,4 @@
1
+ export * as airCanada from "./airCanada/index.mjs";
1
2
  export * as cargoai from "./cargoai/index.mjs";
3
+ export * from "./airCanada/client/requests/index.mjs";
2
4
  export * from "./cargoai/client/requests/index.mjs";
@@ -5,6 +5,7 @@ import * as environments from "../../../../environments.mjs";
5
5
  import * as core from "../../../../core/index.mjs";
6
6
  import * as Chrt from "../../../index.mjs";
7
7
  import { Conversations } from "../resources/conversations/client/Client.mjs";
8
+ import { Voice } from "../resources/voice/client/Client.mjs";
8
9
  export declare namespace ChrtGpt {
9
10
  interface Options {
10
11
  environment?: core.Supplier<environments.ChrtEnvironment | string>;
@@ -31,8 +32,10 @@ export declare namespace ChrtGpt {
31
32
  export declare class ChrtGpt {
32
33
  protected readonly _options: ChrtGpt.Options;
33
34
  protected _conversations: Conversations | undefined;
35
+ protected _voice: Voice | undefined;
34
36
  constructor(_options?: ChrtGpt.Options);
35
37
  get conversations(): Conversations;
38
+ get voice(): Voice;
36
39
  /**
37
40
  * Sends a message to ChrtGPT and streams its reply, starting a new conversation when no conversation_id is given. In the background, retitles the conversation after each of its first 3 turns and updates its summary and order identifiers after every turn. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTReq) -> (stream[ChrtGPTEvent])
38
41
  */
@@ -16,6 +16,7 @@ import * as Chrt from "../../../index.mjs";
16
16
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
17
17
  import * as errors from "../../../../errors/index.mjs";
18
18
  import { Conversations } from "../resources/conversations/client/Client.mjs";
19
+ import { Voice } from "../resources/voice/client/Client.mjs";
19
20
  export class ChrtGpt {
20
21
  constructor(_options = {}) {
21
22
  this._options = _options;
@@ -24,6 +25,10 @@ export class ChrtGpt {
24
25
  var _a;
25
26
  return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Conversations(this._options)));
26
27
  }
28
+ get voice() {
29
+ var _a;
30
+ return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Voice(this._options)));
31
+ }
27
32
  /**
28
33
  * Sends a message to ChrtGPT and streams its reply, starting a new conversation when no conversation_id is given. In the background, retitles the conversation after each of its first 3 turns and updates its summary and order identifiers after every turn. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTReq) -> (stream[ChrtGPTEvent])
29
34
  */
@@ -46,7 +46,7 @@ export declare class Conversations {
46
46
  deleteManyV1(request: Chrt.chrtGpt.ChrtGptConversationsDeleteManyReq, requestOptions?: Conversations.RequestOptions): core.HttpResponsePromise<Chrt.ChrtGptConversationsDeleteManyRes>;
47
47
  private __deleteManyV1;
48
48
  /**
49
- * Lists the caller's ChrtGPT conversations, most recently active first by default. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (ChrtGPTConversationListRes)
49
+ * Lists the caller's ChrtGPT conversations, most recently active first by default, with optional search over summaries, titles, and order identifiers. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (ChrtGPTConversationListRes)
50
50
  *
51
51
  * @param {Chrt.chrtGpt.ConversationsListV1Request} request
52
52
  * @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
@@ -58,7 +58,8 @@ export declare class Conversations {
58
58
  * sort_by: "updated_at",
59
59
  * sort_order: "asc",
60
60
  * page: 1,
61
- * page_size: 1
61
+ * page_size: 1,
62
+ * search: "search"
62
63
  * })
63
64
  */
64
65
  listV1(request?: Chrt.chrtGpt.ConversationsListV1Request, requestOptions?: Conversations.RequestOptions): core.HttpResponsePromise<Chrt.ChrtGptConversationListRes>;