@chrt-inc/typescript-sdk 1.1015.0 → 1.1016.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 (431) hide show
  1. package/README.md +10 -13
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +41 -36
  4. package/dist/cjs/api/resources/agent/client/Client.d.ts +3 -3
  5. package/dist/cjs/api/resources/agent/client/Client.js +3 -3
  6. package/dist/cjs/api/resources/agent/resources/index.d.ts +1 -2
  7. package/dist/cjs/api/resources/agent/resources/index.js +2 -6
  8. package/dist/cjs/api/resources/agent/resources/livekit/client/Client.d.ts +23 -0
  9. package/dist/cjs/api/resources/agent/resources/livekit/client/Client.js +17 -0
  10. package/dist/cjs/api/resources/agent/resources/livekit/index.d.ts +2 -0
  11. package/dist/cjs/api/resources/agent/resources/livekit/index.js +18 -0
  12. package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.d.ts +44 -0
  13. package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.js +118 -0
  14. package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/index.js +2 -0
  16. package/dist/cjs/api/resources/agent/resources/livekit/resources/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/agent/resources/livekit/resources/index.js +37 -0
  18. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.ts +51 -0
  19. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.js +222 -0
  20. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.d.ts +13 -0
  21. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.d.ts +20 -0
  22. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.js +13 -0
  23. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.d.ts +30 -0
  24. package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.ts +3 -0
  25. package/dist/cjs/api/resources/chrtGpt/client/Client.d.ts +49 -0
  26. package/dist/cjs/api/resources/chrtGpt/client/Client.js +132 -0
  27. package/dist/{esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.mts → cjs/api/resources/chrtGpt/client/requests/ChrtGptMessageReq.d.ts} +3 -1
  28. package/dist/cjs/api/resources/chrtGpt/client/requests/index.d.ts +1 -0
  29. package/dist/cjs/api/resources/chrtGpt/client/requests/index.js +2 -0
  30. package/dist/cjs/api/resources/chrtGpt/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/chrtGpt/index.js +17 -0
  32. package/dist/cjs/api/resources/index.d.ts +2 -0
  33. package/dist/cjs/api/resources/index.js +3 -1
  34. package/dist/cjs/api/resources/shipping/client/Client.d.ts +6 -0
  35. package/dist/cjs/api/resources/shipping/client/Client.js +28 -18
  36. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.d.ts +154 -0
  37. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.js +494 -0
  38. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.d.ts +2 -0
  39. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.js +17 -0
  40. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.d.ts +57 -0
  41. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.d.ts +29 -0
  42. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.d.ts +27 -0
  43. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.d.ts +13 -0
  44. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.d.ts +4 -0
  45. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.js +17 -0
  48. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.d.ts +115 -0
  49. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.js +403 -0
  50. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.d.ts +2 -0
  51. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.js +17 -0
  52. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.d.ts +29 -0
  53. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.d.ts +19 -0
  54. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.js +5 -0
  55. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.d.ts +24 -0
  56. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.js +5 -0
  57. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.d.ts +3 -0
  58. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.js +2 -0
  59. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.d.ts +1 -0
  60. package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.js +17 -0
  61. package/dist/cjs/api/resources/shipping/resources/index.d.ts +4 -0
  62. package/dist/cjs/api/resources/shipping/resources/index.js +5 -1
  63. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +1 -1
  64. package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +1 -1
  65. package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +0 -30
  66. package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +0 -128
  67. package/dist/cjs/api/resources/utils/resources/dev/client/requests/index.d.ts +0 -2
  68. package/dist/cjs/api/types/ArchivedModel.d.ts +5 -1
  69. package/dist/cjs/api/types/ArchivedModel.js +4 -0
  70. package/dist/cjs/api/types/CallerCredentialTypeEnum.d.ts +2 -1
  71. package/dist/cjs/api/types/CallerCredentialTypeEnum.js +1 -0
  72. package/dist/cjs/api/types/CargoAiAirWaybillMessage1.d.ts +24 -0
  73. package/dist/cjs/api/types/CargoAiAirWaybillMessage1.js +5 -0
  74. package/dist/cjs/api/types/CargoAiAirWaybillMessageSendStatusEnum1.d.ts +10 -0
  75. package/dist/cjs/api/types/CargoAiAirWaybillMessageSendStatusEnum1.js +12 -0
  76. package/dist/cjs/api/types/CargoAiAirWaybillMessageSortByEnum.d.ts +4 -0
  77. package/dist/cjs/api/types/CargoAiAirWaybillMessageSortByEnum.js +5 -0
  78. package/dist/cjs/api/types/CargoAiAirWaybillMessageWebhookEvent1.d.ts +12 -0
  79. package/dist/cjs/api/types/CargoAiAirWaybillMessageWebhookEvent1.js +5 -0
  80. package/dist/cjs/api/types/CargoAiFwbAndFhlAddress1.d.ts +13 -0
  81. package/dist/cjs/api/types/CargoAiFwbAndFhlAddress1.js +5 -0
  82. package/dist/cjs/api/types/CargoAiFwbAndFhlAgent1.d.ts +10 -0
  83. package/dist/cjs/api/types/CargoAiFwbAndFhlAgent1.js +5 -0
  84. package/dist/cjs/api/types/CargoAiFwbAndFhlChargesDeclaration1.d.ts +18 -0
  85. package/dist/cjs/api/types/CargoAiFwbAndFhlChargesDeclaration1.js +13 -0
  86. package/dist/cjs/api/types/CargoAiFwbAndFhlCity1.d.ts +7 -0
  87. package/dist/cjs/api/types/CargoAiFwbAndFhlCity1.js +5 -0
  88. package/dist/cjs/api/types/{GeographyRes.d.ts → CargoAiFwbAndFhlCode1.d.ts} +2 -2
  89. package/dist/cjs/api/types/CargoAiFwbAndFhlCode1.js +5 -0
  90. package/dist/cjs/api/types/CargoAiFwbAndFhlCountry1.d.ts +7 -0
  91. package/dist/cjs/api/types/CargoAiFwbAndFhlCountry1.js +5 -0
  92. package/dist/cjs/api/types/CargoAiFwbAndFhlDimension1.d.ts +19 -0
  93. package/dist/cjs/api/types/CargoAiFwbAndFhlDimension1.js +15 -0
  94. package/dist/cjs/api/types/CargoAiFwbAndFhlExecution1.d.ts +9 -0
  95. package/dist/cjs/api/types/CargoAiFwbAndFhlExecution1.js +5 -0
  96. package/dist/cjs/api/types/CargoAiFwbAndFhlHandling1.d.ts +9 -0
  97. package/dist/cjs/api/types/CargoAiFwbAndFhlHandling1.js +5 -0
  98. package/dist/cjs/api/types/CargoAiFwbAndFhlHouse1.d.ts +26 -0
  99. package/dist/cjs/api/types/CargoAiFwbAndFhlHouse1.js +13 -0
  100. package/dist/cjs/api/types/CargoAiFwbAndFhlHouseLocations1.d.ts +8 -0
  101. package/dist/cjs/api/types/CargoAiFwbAndFhlHouseLocations1.js +5 -0
  102. package/dist/cjs/api/types/CargoAiFwbAndFhlOci1.d.ts +8 -0
  103. package/dist/cjs/api/types/CargoAiFwbAndFhlOci1.js +5 -0
  104. package/dist/cjs/api/types/CargoAiFwbAndFhlOciSecurity1.d.ts +22 -0
  105. package/dist/cjs/api/types/CargoAiFwbAndFhlOciSecurity1.js +15 -0
  106. package/dist/cjs/api/types/CargoAiFwbAndFhlOtherCharge1.d.ts +21 -0
  107. package/dist/cjs/api/types/CargoAiFwbAndFhlOtherCharge1.js +17 -0
  108. package/dist/cjs/api/types/CargoAiFwbAndFhlParty1.d.ts +12 -0
  109. package/dist/cjs/api/types/CargoAiFwbAndFhlParty1.js +5 -0
  110. package/dist/cjs/api/types/CargoAiFwbAndFhlRate1.d.ts +19 -0
  111. package/dist/cjs/api/types/CargoAiFwbAndFhlRate1.js +5 -0
  112. package/dist/cjs/api/types/CargoAiFwbAndFhlRequest1.d.ts +24 -0
  113. package/dist/cjs/api/types/CargoAiFwbAndFhlRequest1.js +5 -0
  114. package/dist/cjs/api/types/CargoAiFwbAndFhlRouting1.d.ts +9 -0
  115. package/dist/cjs/api/types/CargoAiFwbAndFhlRouting1.js +5 -0
  116. package/dist/{esm/api/types/GeographyRes.d.mts → cjs/api/types/CargoAiFwbAndFhlUld1.d.ts} +2 -2
  117. package/dist/cjs/api/types/CargoAiFwbAndFhlUld1.js +5 -0
  118. package/dist/cjs/api/types/CargoAiFwbAndFhlWeightOrVolume1.d.ts +16 -0
  119. package/dist/cjs/api/types/CargoAiFwbAndFhlWeightOrVolume1.js +15 -0
  120. package/dist/cjs/api/types/CargoOnFlightAirWaybill1.d.ts +32 -0
  121. package/dist/cjs/api/types/CargoOnFlightAirWaybill1.js +5 -0
  122. package/dist/cjs/api/types/CargoOnFlightAirWaybillCarriersExecution1.d.ts +11 -0
  123. package/dist/cjs/api/types/CargoOnFlightAirWaybillCarriersExecution1.js +5 -0
  124. package/dist/cjs/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.d.ts +34 -0
  125. package/dist/cjs/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.js +33 -0
  126. package/dist/cjs/api/types/CargoOnFlightAirWaybillChargesDeclaration1.d.ts +16 -0
  127. package/dist/cjs/api/types/CargoOnFlightAirWaybillChargesDeclaration1.js +5 -0
  128. package/dist/cjs/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.d.ts +18 -0
  129. package/dist/cjs/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.js +5 -0
  130. package/dist/cjs/api/types/CargoOnFlightAirWaybillDimension1.d.ts +12 -0
  131. package/dist/cjs/api/types/CargoOnFlightAirWaybillDimension1.js +5 -0
  132. package/dist/cjs/api/types/CargoOnFlightAirWaybillFwbMessage1.d.ts +17 -0
  133. package/dist/cjs/api/types/CargoOnFlightAirWaybillFwbMessage1.js +5 -0
  134. package/dist/cjs/api/types/CargoOnFlightAirWaybillListRes.d.ts +8 -0
  135. package/dist/cjs/api/types/CargoOnFlightAirWaybillListRes.js +5 -0
  136. package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.d.ts +8 -0
  137. package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.js +10 -0
  138. package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.d.ts +9 -0
  139. package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.js +11 -0
  140. package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherCharge1.d.ts +13 -0
  141. package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherCharge1.js +5 -0
  142. package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.d.ts +8 -0
  143. package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.js +10 -0
  144. package/dist/cjs/api/types/CargoOnFlightAirWaybillParty1.d.ts +20 -0
  145. package/dist/cjs/api/types/CargoOnFlightAirWaybillParty1.js +5 -0
  146. package/dist/cjs/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.d.ts +8 -0
  147. package/dist/cjs/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.js +10 -0
  148. package/dist/cjs/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.d.ts +22 -0
  149. package/dist/cjs/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.js +21 -0
  150. package/dist/cjs/api/types/CargoOnFlightAirWaybillRateLine1.d.ts +21 -0
  151. package/dist/cjs/api/types/CargoOnFlightAirWaybillRateLine1.js +5 -0
  152. package/dist/cjs/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.d.ts +10 -0
  153. package/dist/cjs/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.js +12 -0
  154. package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.d.ts +13 -0
  155. package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.js +15 -0
  156. package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.d.ts +17 -0
  157. package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.js +19 -0
  158. package/dist/cjs/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.d.ts +10 -0
  159. package/dist/cjs/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.js +12 -0
  160. package/dist/cjs/api/types/CargoOnFlightAirWaybillSortByEnum.d.ts +8 -0
  161. package/dist/cjs/api/types/CargoOnFlightAirWaybillSortByEnum.js +10 -0
  162. package/dist/cjs/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.d.ts +8 -0
  163. package/dist/cjs/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.js +5 -0
  164. package/dist/cjs/api/types/CargoOnFlightHouseAirWaybill1.d.ts +26 -0
  165. package/dist/cjs/api/types/CargoOnFlightHouseAirWaybill1.js +5 -0
  166. package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.d.ts +17 -0
  167. package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.js +5 -0
  168. package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillListRes.d.ts +8 -0
  169. package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillListRes.js +5 -0
  170. package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillSortByEnum.d.ts +8 -0
  171. package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillSortByEnum.js +10 -0
  172. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.d.ts +8 -0
  173. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.js +5 -0
  174. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.d.ts +8 -0
  175. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.js +5 -0
  176. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.d.ts +6 -0
  177. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.js +5 -0
  178. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.d.ts +15 -0
  179. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.js +14 -0
  180. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.d.ts +8 -0
  181. package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.js +5 -0
  182. package/dist/{esm/api/types/OrderInformationConversationRes.d.mts → cjs/api/types/ChrtGptMessageRes.d.ts} +1 -1
  183. package/dist/cjs/api/types/ChrtGptMessageRes.js +5 -0
  184. package/dist/cjs/api/types/LiveKitHelloWorldStartRes.d.ts +8 -0
  185. package/dist/cjs/api/types/LiveKitHelloWorldStartRes.js +5 -0
  186. package/dist/cjs/api/types/Model.d.ts +7 -4
  187. package/dist/cjs/api/types/Model.js +6 -3
  188. package/dist/cjs/api/types/OrderEventActionEnum1.d.ts +10 -1
  189. package/dist/cjs/api/types/OrderEventActionEnum1.js +9 -0
  190. package/dist/cjs/api/types/OrderEventEntity1.d.ts +2 -0
  191. package/dist/cjs/api/types/index.d.ts +57 -3
  192. package/dist/cjs/api/types/index.js +57 -3
  193. package/dist/cjs/version.d.ts +1 -1
  194. package/dist/cjs/version.js +1 -1
  195. package/dist/esm/Client.d.mts +3 -0
  196. package/dist/esm/Client.mjs +7 -2
  197. package/dist/esm/api/resources/agent/client/Client.d.mts +3 -3
  198. package/dist/esm/api/resources/agent/client/Client.mjs +3 -3
  199. package/dist/esm/api/resources/agent/resources/index.d.mts +1 -2
  200. package/dist/esm/api/resources/agent/resources/index.mjs +1 -2
  201. package/dist/esm/api/resources/agent/resources/livekit/client/Client.d.mts +23 -0
  202. package/dist/esm/api/resources/agent/resources/livekit/client/Client.mjs +13 -0
  203. package/dist/esm/api/resources/agent/resources/livekit/client/index.d.mts +1 -0
  204. package/dist/esm/api/resources/agent/resources/livekit/client/index.mjs +1 -0
  205. package/dist/esm/api/resources/agent/resources/livekit/index.d.mts +2 -0
  206. package/dist/esm/api/resources/agent/resources/livekit/index.mjs +2 -0
  207. package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.d.mts +44 -0
  208. package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.mjs +81 -0
  209. package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/index.d.mts +1 -0
  210. package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/index.mjs +1 -0
  211. package/dist/esm/api/resources/agent/resources/livekit/resources/index.d.mts +1 -0
  212. package/dist/esm/api/resources/agent/resources/livekit/resources/index.mjs +1 -0
  213. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.mts +51 -0
  214. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs +222 -0
  215. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.d.mts +13 -0
  216. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.d.mts +20 -0
  217. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.mjs +10 -0
  218. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.d.mts +30 -0
  219. package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.mts +3 -0
  220. package/dist/esm/api/resources/chrtGpt/client/Client.d.mts +49 -0
  221. package/dist/esm/api/resources/chrtGpt/client/Client.mjs +95 -0
  222. package/dist/{cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.ts → esm/api/resources/chrtGpt/client/requests/ChrtGptMessageReq.d.mts} +3 -2
  223. package/dist/esm/api/resources/chrtGpt/client/requests/index.d.mts +1 -0
  224. package/dist/esm/api/resources/chrtGpt/client/requests/index.mjs +1 -0
  225. package/dist/esm/api/resources/chrtGpt/index.d.mts +1 -0
  226. package/dist/esm/api/resources/chrtGpt/index.mjs +1 -0
  227. package/dist/esm/api/resources/index.d.mts +2 -0
  228. package/dist/esm/api/resources/index.mjs +2 -0
  229. package/dist/esm/api/resources/shipping/client/Client.d.mts +6 -0
  230. package/dist/esm/api/resources/shipping/client/Client.mjs +10 -0
  231. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.d.mts +154 -0
  232. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.mjs +457 -0
  233. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.d.mts +2 -0
  234. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.mjs +1 -0
  235. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.d.mts +57 -0
  236. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.d.mts +29 -0
  237. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.d.mts +27 -0
  238. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.d.mts +13 -0
  239. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.d.mts +4 -0
  240. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.mjs +1 -0
  241. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.d.mts +1 -0
  242. package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.mjs +1 -0
  243. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.d.mts +115 -0
  244. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.mjs +366 -0
  245. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.d.mts +2 -0
  246. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.mjs +1 -0
  247. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.d.mts +29 -0
  248. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.d.mts +19 -0
  249. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.mjs +4 -0
  250. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.d.mts +24 -0
  251. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.mjs +4 -0
  252. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.d.mts +3 -0
  253. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.mjs +1 -0
  254. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.d.mts +1 -0
  255. package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.mjs +1 -0
  256. package/dist/esm/api/resources/shipping/resources/index.d.mts +4 -0
  257. package/dist/esm/api/resources/shipping/resources/index.mjs +4 -0
  258. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +1 -1
  259. package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +1 -1
  260. package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +0 -30
  261. package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +0 -128
  262. package/dist/esm/api/resources/utils/resources/dev/client/requests/index.d.mts +0 -2
  263. package/dist/esm/api/types/ArchivedModel.d.mts +5 -1
  264. package/dist/esm/api/types/ArchivedModel.mjs +4 -0
  265. package/dist/esm/api/types/CallerCredentialTypeEnum.d.mts +2 -1
  266. package/dist/esm/api/types/CallerCredentialTypeEnum.mjs +1 -0
  267. package/dist/esm/api/types/CargoAiAirWaybillMessage1.d.mts +24 -0
  268. package/dist/esm/api/types/CargoAiAirWaybillMessage1.mjs +4 -0
  269. package/dist/esm/api/types/CargoAiAirWaybillMessageSendStatusEnum1.d.mts +10 -0
  270. package/dist/esm/api/types/CargoAiAirWaybillMessageSendStatusEnum1.mjs +9 -0
  271. package/dist/esm/api/types/CargoAiAirWaybillMessageSortByEnum.d.mts +4 -0
  272. package/dist/esm/api/types/CargoAiAirWaybillMessageSortByEnum.mjs +4 -0
  273. package/dist/esm/api/types/CargoAiAirWaybillMessageWebhookEvent1.d.mts +12 -0
  274. package/dist/esm/api/types/CargoAiAirWaybillMessageWebhookEvent1.mjs +4 -0
  275. package/dist/esm/api/types/CargoAiFwbAndFhlAddress1.d.mts +13 -0
  276. package/dist/esm/api/types/CargoAiFwbAndFhlAddress1.mjs +4 -0
  277. package/dist/esm/api/types/CargoAiFwbAndFhlAgent1.d.mts +10 -0
  278. package/dist/esm/api/types/CargoAiFwbAndFhlAgent1.mjs +4 -0
  279. package/dist/esm/api/types/CargoAiFwbAndFhlChargesDeclaration1.d.mts +18 -0
  280. package/dist/esm/api/types/CargoAiFwbAndFhlChargesDeclaration1.mjs +10 -0
  281. package/dist/esm/api/types/CargoAiFwbAndFhlCity1.d.mts +7 -0
  282. package/dist/esm/api/types/CargoAiFwbAndFhlCity1.mjs +4 -0
  283. package/dist/{cjs/api/types/PingOpenAiRes.d.ts → esm/api/types/CargoAiFwbAndFhlCode1.d.mts} +2 -2
  284. package/dist/esm/api/types/CargoAiFwbAndFhlCode1.mjs +4 -0
  285. package/dist/esm/api/types/CargoAiFwbAndFhlCountry1.d.mts +7 -0
  286. package/dist/esm/api/types/CargoAiFwbAndFhlCountry1.mjs +4 -0
  287. package/dist/esm/api/types/CargoAiFwbAndFhlDimension1.d.mts +19 -0
  288. package/dist/esm/api/types/CargoAiFwbAndFhlDimension1.mjs +12 -0
  289. package/dist/esm/api/types/CargoAiFwbAndFhlExecution1.d.mts +9 -0
  290. package/dist/esm/api/types/CargoAiFwbAndFhlExecution1.mjs +4 -0
  291. package/dist/esm/api/types/CargoAiFwbAndFhlHandling1.d.mts +9 -0
  292. package/dist/esm/api/types/CargoAiFwbAndFhlHandling1.mjs +4 -0
  293. package/dist/esm/api/types/CargoAiFwbAndFhlHouse1.d.mts +26 -0
  294. package/dist/esm/api/types/CargoAiFwbAndFhlHouse1.mjs +10 -0
  295. package/dist/esm/api/types/CargoAiFwbAndFhlHouseLocations1.d.mts +8 -0
  296. package/dist/esm/api/types/CargoAiFwbAndFhlHouseLocations1.mjs +4 -0
  297. package/dist/esm/api/types/CargoAiFwbAndFhlOci1.d.mts +8 -0
  298. package/dist/esm/api/types/CargoAiFwbAndFhlOci1.mjs +4 -0
  299. package/dist/esm/api/types/CargoAiFwbAndFhlOciSecurity1.d.mts +22 -0
  300. package/dist/esm/api/types/CargoAiFwbAndFhlOciSecurity1.mjs +12 -0
  301. package/dist/esm/api/types/CargoAiFwbAndFhlOtherCharge1.d.mts +21 -0
  302. package/dist/esm/api/types/CargoAiFwbAndFhlOtherCharge1.mjs +14 -0
  303. package/dist/esm/api/types/CargoAiFwbAndFhlParty1.d.mts +12 -0
  304. package/dist/esm/api/types/CargoAiFwbAndFhlParty1.mjs +4 -0
  305. package/dist/esm/api/types/CargoAiFwbAndFhlRate1.d.mts +19 -0
  306. package/dist/esm/api/types/CargoAiFwbAndFhlRate1.mjs +4 -0
  307. package/dist/esm/api/types/CargoAiFwbAndFhlRequest1.d.mts +24 -0
  308. package/dist/esm/api/types/CargoAiFwbAndFhlRequest1.mjs +4 -0
  309. package/dist/esm/api/types/CargoAiFwbAndFhlRouting1.d.mts +9 -0
  310. package/dist/esm/api/types/CargoAiFwbAndFhlRouting1.mjs +4 -0
  311. package/dist/esm/api/types/{PingOpenAiRes.d.mts → CargoAiFwbAndFhlUld1.d.mts} +2 -2
  312. package/dist/esm/api/types/CargoAiFwbAndFhlUld1.mjs +4 -0
  313. package/dist/esm/api/types/CargoAiFwbAndFhlWeightOrVolume1.d.mts +16 -0
  314. package/dist/esm/api/types/CargoAiFwbAndFhlWeightOrVolume1.mjs +12 -0
  315. package/dist/esm/api/types/CargoOnFlightAirWaybill1.d.mts +32 -0
  316. package/dist/esm/api/types/CargoOnFlightAirWaybill1.mjs +4 -0
  317. package/dist/esm/api/types/CargoOnFlightAirWaybillCarriersExecution1.d.mts +11 -0
  318. package/dist/esm/api/types/CargoOnFlightAirWaybillCarriersExecution1.mjs +4 -0
  319. package/dist/esm/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.d.mts +34 -0
  320. package/dist/esm/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.mjs +30 -0
  321. package/dist/esm/api/types/CargoOnFlightAirWaybillChargesDeclaration1.d.mts +16 -0
  322. package/dist/esm/api/types/CargoOnFlightAirWaybillChargesDeclaration1.mjs +4 -0
  323. package/dist/esm/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.d.mts +18 -0
  324. package/dist/esm/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.mjs +4 -0
  325. package/dist/esm/api/types/CargoOnFlightAirWaybillDimension1.d.mts +12 -0
  326. package/dist/esm/api/types/CargoOnFlightAirWaybillDimension1.mjs +4 -0
  327. package/dist/esm/api/types/CargoOnFlightAirWaybillFwbMessage1.d.mts +17 -0
  328. package/dist/esm/api/types/CargoOnFlightAirWaybillFwbMessage1.mjs +4 -0
  329. package/dist/esm/api/types/CargoOnFlightAirWaybillListRes.d.mts +8 -0
  330. package/dist/esm/api/types/CargoOnFlightAirWaybillListRes.mjs +4 -0
  331. package/dist/esm/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.d.mts +8 -0
  332. package/dist/esm/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.mjs +7 -0
  333. package/dist/esm/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.d.mts +9 -0
  334. package/dist/esm/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.mjs +8 -0
  335. package/dist/esm/api/types/CargoOnFlightAirWaybillOtherCharge1.d.mts +13 -0
  336. package/dist/esm/api/types/CargoOnFlightAirWaybillOtherCharge1.mjs +4 -0
  337. package/dist/esm/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.d.mts +8 -0
  338. package/dist/esm/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.mjs +7 -0
  339. package/dist/esm/api/types/CargoOnFlightAirWaybillParty1.d.mts +20 -0
  340. package/dist/esm/api/types/CargoOnFlightAirWaybillParty1.mjs +4 -0
  341. package/dist/esm/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.d.mts +8 -0
  342. package/dist/esm/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.mjs +7 -0
  343. package/dist/esm/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.d.mts +22 -0
  344. package/dist/esm/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.mjs +18 -0
  345. package/dist/esm/api/types/CargoOnFlightAirWaybillRateLine1.d.mts +21 -0
  346. package/dist/esm/api/types/CargoOnFlightAirWaybillRateLine1.mjs +4 -0
  347. package/dist/esm/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.d.mts +10 -0
  348. package/dist/esm/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.mjs +9 -0
  349. package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.d.mts +13 -0
  350. package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.mjs +12 -0
  351. package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.d.mts +17 -0
  352. package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.mjs +16 -0
  353. package/dist/esm/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.d.mts +10 -0
  354. package/dist/esm/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.mjs +9 -0
  355. package/dist/esm/api/types/CargoOnFlightAirWaybillSortByEnum.d.mts +8 -0
  356. package/dist/esm/api/types/CargoOnFlightAirWaybillSortByEnum.mjs +7 -0
  357. package/dist/esm/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.d.mts +8 -0
  358. package/dist/esm/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.mjs +4 -0
  359. package/dist/esm/api/types/CargoOnFlightHouseAirWaybill1.d.mts +26 -0
  360. package/dist/esm/api/types/CargoOnFlightHouseAirWaybill1.mjs +4 -0
  361. package/dist/esm/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.d.mts +17 -0
  362. package/dist/esm/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.mjs +4 -0
  363. package/dist/esm/api/types/CargoOnFlightHouseAirWaybillListRes.d.mts +8 -0
  364. package/dist/esm/api/types/CargoOnFlightHouseAirWaybillListRes.mjs +4 -0
  365. package/dist/esm/api/types/CargoOnFlightHouseAirWaybillSortByEnum.d.mts +8 -0
  366. package/dist/esm/api/types/CargoOnFlightHouseAirWaybillSortByEnum.mjs +7 -0
  367. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.d.mts +8 -0
  368. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.mjs +4 -0
  369. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.d.mts +8 -0
  370. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.mjs +4 -0
  371. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.d.mts +6 -0
  372. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.mjs +4 -0
  373. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.d.mts +15 -0
  374. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.mjs +11 -0
  375. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.d.mts +8 -0
  376. package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.mjs +4 -0
  377. package/dist/{cjs/api/types/OrderInformationConversationRes.d.ts → esm/api/types/ChrtGptMessageRes.d.mts} +1 -1
  378. package/dist/esm/api/types/ChrtGptMessageRes.mjs +4 -0
  379. package/dist/esm/api/types/LiveKitHelloWorldStartRes.d.mts +8 -0
  380. package/dist/esm/api/types/LiveKitHelloWorldStartRes.mjs +4 -0
  381. package/dist/esm/api/types/Model.d.mts +7 -4
  382. package/dist/esm/api/types/Model.mjs +6 -3
  383. package/dist/esm/api/types/OrderEventActionEnum1.d.mts +10 -1
  384. package/dist/esm/api/types/OrderEventActionEnum1.mjs +9 -0
  385. package/dist/esm/api/types/OrderEventEntity1.d.mts +2 -0
  386. package/dist/esm/api/types/index.d.mts +57 -3
  387. package/dist/esm/api/types/index.mjs +57 -3
  388. package/dist/esm/version.d.mts +1 -1
  389. package/dist/esm/version.mjs +1 -1
  390. package/package.json +1 -1
  391. package/reference.md +1444 -668
  392. package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.d.ts +0 -79
  393. package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.js +0 -260
  394. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.ts +0 -11
  395. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.ts +0 -12
  396. package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.d.ts +0 -3
  397. package/dist/cjs/api/resources/utils/resources/dev/client/requests/GeographyReq.d.ts +0 -12
  398. package/dist/cjs/api/resources/utils/resources/dev/client/requests/PingOpenAiReq.d.ts +0 -12
  399. package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.d.mts +0 -79
  400. package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.mjs +0 -223
  401. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.mts +0 -11
  402. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.mts +0 -13
  403. package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.d.mts +0 -3
  404. package/dist/esm/api/resources/utils/resources/dev/client/requests/GeographyReq.d.mts +0 -12
  405. package/dist/esm/api/resources/utils/resources/dev/client/requests/PingOpenAiReq.d.mts +0 -12
  406. /package/dist/{esm/api/resources/agent/resources/orderInformation/client/requests/index.mjs → cjs/api/resources/agent/resources/livekit/client/index.d.ts} +0 -0
  407. /package/dist/cjs/api/resources/agent/resources/{orderInformation/client/requests → livekit/client}/index.js +0 -0
  408. /package/dist/cjs/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.d.ts +0 -0
  409. /package/dist/cjs/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.js +0 -0
  410. /package/dist/cjs/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.js → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.js} +0 -0
  411. /package/dist/cjs/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.js → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.js} +0 -0
  412. /package/dist/cjs/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.d.ts +0 -0
  413. /package/dist/cjs/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.js +0 -0
  414. /package/dist/cjs/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.js → chrtGpt/client/requests/ChrtGptMessageReq.js} +0 -0
  415. /package/dist/cjs/api/resources/{utils/resources/dev/client/requests/GeographyReq.js → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.js} +0 -0
  416. /package/dist/cjs/api/resources/{utils/resources/dev/client/requests/PingOpenAiReq.js → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.js} +0 -0
  417. /package/dist/cjs/api/{types/GeographyRes.js → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.js} +0 -0
  418. /package/dist/cjs/api/{types/OrderInformationConversationRes.js → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.js} +0 -0
  419. /package/dist/cjs/api/{types/PingOpenAiRes.js → resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.js} +0 -0
  420. /package/dist/esm/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.d.mts +0 -0
  421. /package/dist/esm/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.mjs +0 -0
  422. /package/dist/esm/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.mjs → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.mjs} +0 -0
  423. /package/dist/esm/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.mjs → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.mjs} +0 -0
  424. /package/dist/esm/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.d.mts +0 -0
  425. /package/dist/esm/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.mjs +0 -0
  426. /package/dist/esm/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.mjs → chrtGpt/client/requests/ChrtGptMessageReq.mjs} +0 -0
  427. /package/dist/esm/api/resources/{utils/resources/dev/client/requests/GeographyReq.mjs → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.mjs} +0 -0
  428. /package/dist/esm/api/resources/{utils/resources/dev/client/requests/PingOpenAiReq.mjs → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.mjs} +0 -0
  429. /package/dist/esm/api/{types/GeographyRes.mjs → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.mjs} +0 -0
  430. /package/dist/esm/api/{types/OrderInformationConversationRes.mjs → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.mjs} +0 -0
  431. /package/dist/esm/api/{types/PingOpenAiRes.mjs → resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.mjs} +0 -0
@@ -0,0 +1,154 @@
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 CargoOnFlightAirWaybills {
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 CargoOnFlightAirWaybills {
31
+ protected readonly _options: CargoOnFlightAirWaybills.Options;
32
+ constructor(_options?: CargoOnFlightAirWaybills.Options);
33
+ /**
34
+ * Creates the air waybill for a confirmed cargo-on-flight booking: the parties, rating, charges, and security declaration sent to the airline as an FWB. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillClientCreate1) -> (CargoOnFlightAirWaybill1)
35
+ *
36
+ * @param {Chrt.shipping.CargoOnFlightAirWaybillClientCreate1} request
37
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * await client.shipping.cargoOnFlightAirWaybills.createV1({
43
+ * cargo_on_flight_booking_id: "cargo_on_flight_booking_id",
44
+ * carriers_execution: {
45
+ * authorisation_signature: "authorisation_signature",
46
+ * executed_on_date: "executed_on_date",
47
+ * place: "place"
48
+ * },
49
+ * charges_declaration: {
50
+ * charge_code: "CA",
51
+ * currency_code: "currency_code"
52
+ * },
53
+ * consignee: {
54
+ * address_line_1: "address_line_1",
55
+ * city_name: "city_name",
56
+ * country_code: "country_code",
57
+ * name: "name"
58
+ * },
59
+ * rate_lines: [{
60
+ * gross_weight_kilograms: 1.1,
61
+ * nature_and_quantity_of_goods: "nature_and_quantity_of_goods",
62
+ * number_of_pieces: 1,
63
+ * rate_class_code: "B"
64
+ * }],
65
+ * schema_version: 1,
66
+ * shipper: {
67
+ * address_line_1: "address_line_1",
68
+ * city_name: "city_name",
69
+ * country_code: "country_code",
70
+ * name: "name"
71
+ * },
72
+ * shippers_certification: "shippers_certification"
73
+ * })
74
+ */
75
+ createV1(request: Chrt.shipping.CargoOnFlightAirWaybillClientCreate1, requestOptions?: CargoOnFlightAirWaybills.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightAirWaybill1>;
76
+ private __createV1;
77
+ /**
78
+ * Deletes an air waybill and its house air waybills, while none of them has been sent to the airline. | authz_personas=[task_group_coordinator_operators] | () -> (bool)
79
+ *
80
+ * @param {string} cargoOnFlightAirWaybillId
81
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
82
+ *
83
+ * @throws {@link Chrt.UnprocessableEntityError}
84
+ *
85
+ * @example
86
+ * await client.shipping.cargoOnFlightAirWaybills.deleteV1("cargo_on_flight_air_waybill_id")
87
+ */
88
+ deleteV1(cargoOnFlightAirWaybillId: string, requestOptions?: CargoOnFlightAirWaybills.RequestOptions): core.HttpResponsePromise<boolean>;
89
+ private __deleteV1;
90
+ /**
91
+ * Lists a flight task group's air waybills, one per cargo-on-flight booking. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightAirWaybillListRes)
92
+ *
93
+ * @param {Chrt.shipping.CargoOnFlightAirWaybillsListV1Request} request
94
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
95
+ *
96
+ * @throws {@link Chrt.UnprocessableEntityError}
97
+ *
98
+ * @example
99
+ * await client.shipping.cargoOnFlightAirWaybills.listV1({
100
+ * task_group_id: "task_group_id",
101
+ * filter_cargo_on_flight_booking_id: "filter_cargo_on_flight_booking_id",
102
+ * sort_by: "created_at_timestamp",
103
+ * sort_order: "asc",
104
+ * page: 1,
105
+ * page_size: 1
106
+ * })
107
+ */
108
+ listV1(request: Chrt.shipping.CargoOnFlightAirWaybillsListV1Request, requestOptions?: CargoOnFlightAirWaybills.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightAirWaybillListRes>;
109
+ private __listV1;
110
+ /**
111
+ * Marks a sent FWB and/or the FHLs of chosen house air waybills accepted, for an airline that never answered; a later airline answer replaces it. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillsMarkAcceptedReq) -> (CargoOnFlightAirWaybillsMarkAcceptedRes)
112
+ *
113
+ * @param {string} cargoOnFlightAirWaybillId
114
+ * @param {Chrt.shipping.CargoOnFlightAirWaybillsMarkAcceptedReq} request
115
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
116
+ *
117
+ * @throws {@link Chrt.UnprocessableEntityError}
118
+ *
119
+ * @example
120
+ * await client.shipping.cargoOnFlightAirWaybills.markAcceptedV1("cargo_on_flight_air_waybill_id", {
121
+ * mark_fwb: true
122
+ * })
123
+ */
124
+ markAcceptedV1(cargoOnFlightAirWaybillId: string, request: Chrt.shipping.CargoOnFlightAirWaybillsMarkAcceptedReq, requestOptions?: CargoOnFlightAirWaybills.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightAirWaybillsMarkAcceptedRes>;
125
+ private __markAcceptedV1;
126
+ /**
127
+ * Updates an air waybill; an FWB already sent is replaced at the airline only when it is sent again. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillClientUpdate1) -> (CargoOnFlightAirWaybill1)
128
+ *
129
+ * @param {string} cargoOnFlightAirWaybillId
130
+ * @param {Chrt.shipping.CargoOnFlightAirWaybillClientUpdate1} request
131
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
132
+ *
133
+ * @throws {@link Chrt.UnprocessableEntityError}
134
+ *
135
+ * @example
136
+ * await client.shipping.cargoOnFlightAirWaybills.updateV1("cargo_on_flight_air_waybill_id")
137
+ */
138
+ updateV1(cargoOnFlightAirWaybillId: string, request?: Chrt.shipping.CargoOnFlightAirWaybillClientUpdate1, requestOptions?: CargoOnFlightAirWaybills.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightAirWaybill1>;
139
+ private __updateV1;
140
+ /**
141
+ * Retrieves an air waybill. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightAirWaybill1)
142
+ *
143
+ * @param {string} cargoOnFlightAirWaybillId
144
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
145
+ *
146
+ * @throws {@link Chrt.UnprocessableEntityError}
147
+ *
148
+ * @example
149
+ * await client.shipping.cargoOnFlightAirWaybills.getV1("cargo_on_flight_air_waybill_id")
150
+ */
151
+ getV1(cargoOnFlightAirWaybillId: string, requestOptions?: CargoOnFlightAirWaybills.RequestOptions): core.HttpResponsePromise<Chrt.CargoOnFlightAirWaybill1>;
152
+ private __getV1;
153
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
154
+ }
@@ -0,0 +1,457 @@
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 CargoOnFlightAirWaybills {
19
+ constructor(_options = {}) {
20
+ this._options = _options;
21
+ }
22
+ /**
23
+ * Creates the air waybill for a confirmed cargo-on-flight booking: the parties, rating, charges, and security declaration sent to the airline as an FWB. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillClientCreate1) -> (CargoOnFlightAirWaybill1)
24
+ *
25
+ * @param {Chrt.shipping.CargoOnFlightAirWaybillClientCreate1} request
26
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Chrt.UnprocessableEntityError}
29
+ *
30
+ * @example
31
+ * await client.shipping.cargoOnFlightAirWaybills.createV1({
32
+ * cargo_on_flight_booking_id: "cargo_on_flight_booking_id",
33
+ * carriers_execution: {
34
+ * authorisation_signature: "authorisation_signature",
35
+ * executed_on_date: "executed_on_date",
36
+ * place: "place"
37
+ * },
38
+ * charges_declaration: {
39
+ * charge_code: "CA",
40
+ * currency_code: "currency_code"
41
+ * },
42
+ * consignee: {
43
+ * address_line_1: "address_line_1",
44
+ * city_name: "city_name",
45
+ * country_code: "country_code",
46
+ * name: "name"
47
+ * },
48
+ * rate_lines: [{
49
+ * gross_weight_kilograms: 1.1,
50
+ * nature_and_quantity_of_goods: "nature_and_quantity_of_goods",
51
+ * number_of_pieces: 1,
52
+ * rate_class_code: "B"
53
+ * }],
54
+ * schema_version: 1,
55
+ * shipper: {
56
+ * address_line_1: "address_line_1",
57
+ * city_name: "city_name",
58
+ * country_code: "country_code",
59
+ * name: "name"
60
+ * },
61
+ * shippers_certification: "shippers_certification"
62
+ * })
63
+ */
64
+ createV1(request, requestOptions) {
65
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
66
+ }
67
+ __createV1(request, requestOptions) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ var _a, _b, _c, _d;
70
+ 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);
71
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
72
+ 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, "shipping/cargo_on_flight_air_waybills/create/v1"),
73
+ method: "POST",
74
+ headers: _headers,
75
+ contentType: "application/json",
76
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
77
+ requestType: "json",
78
+ body: request,
79
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
80
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
81
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
82
+ });
83
+ if (_response.ok) {
84
+ return { data: _response.body, rawResponse: _response.rawResponse };
85
+ }
86
+ if (_response.error.reason === "status-code") {
87
+ switch (_response.error.statusCode) {
88
+ case 422:
89
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
90
+ default:
91
+ throw new errors.ChrtError({
92
+ statusCode: _response.error.statusCode,
93
+ body: _response.error.body,
94
+ rawResponse: _response.rawResponse,
95
+ });
96
+ }
97
+ }
98
+ switch (_response.error.reason) {
99
+ case "non-json":
100
+ throw new errors.ChrtError({
101
+ statusCode: _response.error.statusCode,
102
+ body: _response.error.rawBody,
103
+ rawResponse: _response.rawResponse,
104
+ });
105
+ case "timeout":
106
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/cargo_on_flight_air_waybills/create/v1.");
107
+ case "unknown":
108
+ throw new errors.ChrtError({
109
+ message: _response.error.errorMessage,
110
+ rawResponse: _response.rawResponse,
111
+ });
112
+ }
113
+ });
114
+ }
115
+ /**
116
+ * Deletes an air waybill and its house air waybills, while none of them has been sent to the airline. | authz_personas=[task_group_coordinator_operators] | () -> (bool)
117
+ *
118
+ * @param {string} cargoOnFlightAirWaybillId
119
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
120
+ *
121
+ * @throws {@link Chrt.UnprocessableEntityError}
122
+ *
123
+ * @example
124
+ * await client.shipping.cargoOnFlightAirWaybills.deleteV1("cargo_on_flight_air_waybill_id")
125
+ */
126
+ deleteV1(cargoOnFlightAirWaybillId, requestOptions) {
127
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(cargoOnFlightAirWaybillId, requestOptions));
128
+ }
129
+ __deleteV1(cargoOnFlightAirWaybillId, requestOptions) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ var _a, _b, _c, _d;
132
+ 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);
133
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
134
+ 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, `shipping/cargo_on_flight_air_waybills/delete/v1/${encodeURIComponent(cargoOnFlightAirWaybillId)}`),
135
+ method: "DELETE",
136
+ headers: _headers,
137
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
138
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
139
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
140
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
141
+ });
142
+ if (_response.ok) {
143
+ return { data: _response.body, rawResponse: _response.rawResponse };
144
+ }
145
+ if (_response.error.reason === "status-code") {
146
+ switch (_response.error.statusCode) {
147
+ case 422:
148
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
149
+ default:
150
+ throw new errors.ChrtError({
151
+ statusCode: _response.error.statusCode,
152
+ body: _response.error.body,
153
+ rawResponse: _response.rawResponse,
154
+ });
155
+ }
156
+ }
157
+ switch (_response.error.reason) {
158
+ case "non-json":
159
+ throw new errors.ChrtError({
160
+ statusCode: _response.error.statusCode,
161
+ body: _response.error.rawBody,
162
+ rawResponse: _response.rawResponse,
163
+ });
164
+ case "timeout":
165
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /shipping/cargo_on_flight_air_waybills/delete/v1/{cargo_on_flight_air_waybill_id}.");
166
+ case "unknown":
167
+ throw new errors.ChrtError({
168
+ message: _response.error.errorMessage,
169
+ rawResponse: _response.rawResponse,
170
+ });
171
+ }
172
+ });
173
+ }
174
+ /**
175
+ * Lists a flight task group's air waybills, one per cargo-on-flight booking. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightAirWaybillListRes)
176
+ *
177
+ * @param {Chrt.shipping.CargoOnFlightAirWaybillsListV1Request} request
178
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
179
+ *
180
+ * @throws {@link Chrt.UnprocessableEntityError}
181
+ *
182
+ * @example
183
+ * await client.shipping.cargoOnFlightAirWaybills.listV1({
184
+ * task_group_id: "task_group_id",
185
+ * filter_cargo_on_flight_booking_id: "filter_cargo_on_flight_booking_id",
186
+ * sort_by: "created_at_timestamp",
187
+ * sort_order: "asc",
188
+ * page: 1,
189
+ * page_size: 1
190
+ * })
191
+ */
192
+ listV1(request, requestOptions) {
193
+ return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
194
+ }
195
+ __listV1(request, requestOptions) {
196
+ return __awaiter(this, void 0, void 0, function* () {
197
+ var _a, _b, _c, _d, _e, _f;
198
+ const { task_group_id: taskGroupId, filter_cargo_on_flight_booking_id: filterCargoOnFlightBookingId, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
199
+ const _queryParams = {};
200
+ _queryParams["task_group_id"] = taskGroupId;
201
+ if (filterCargoOnFlightBookingId !== undefined) {
202
+ _queryParams["filter_cargo_on_flight_booking_id"] = filterCargoOnFlightBookingId;
203
+ }
204
+ if (sortBy !== undefined) {
205
+ _queryParams["sort_by"] = sortBy;
206
+ }
207
+ if (sortOrder !== undefined) {
208
+ _queryParams["sort_order"] = sortOrder;
209
+ }
210
+ if (page !== undefined) {
211
+ _queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
212
+ }
213
+ if (pageSize !== undefined) {
214
+ _queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
215
+ }
216
+ let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
217
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
218
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "shipping/cargo_on_flight_air_waybills/list/v1"),
219
+ method: "GET",
220
+ headers: _headers,
221
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
222
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
223
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
224
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
225
+ });
226
+ if (_response.ok) {
227
+ return { data: _response.body, rawResponse: _response.rawResponse };
228
+ }
229
+ if (_response.error.reason === "status-code") {
230
+ switch (_response.error.statusCode) {
231
+ case 422:
232
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
233
+ default:
234
+ throw new errors.ChrtError({
235
+ statusCode: _response.error.statusCode,
236
+ body: _response.error.body,
237
+ rawResponse: _response.rawResponse,
238
+ });
239
+ }
240
+ }
241
+ switch (_response.error.reason) {
242
+ case "non-json":
243
+ throw new errors.ChrtError({
244
+ statusCode: _response.error.statusCode,
245
+ body: _response.error.rawBody,
246
+ rawResponse: _response.rawResponse,
247
+ });
248
+ case "timeout":
249
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/cargo_on_flight_air_waybills/list/v1.");
250
+ case "unknown":
251
+ throw new errors.ChrtError({
252
+ message: _response.error.errorMessage,
253
+ rawResponse: _response.rawResponse,
254
+ });
255
+ }
256
+ });
257
+ }
258
+ /**
259
+ * Marks a sent FWB and/or the FHLs of chosen house air waybills accepted, for an airline that never answered; a later airline answer replaces it. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillsMarkAcceptedReq) -> (CargoOnFlightAirWaybillsMarkAcceptedRes)
260
+ *
261
+ * @param {string} cargoOnFlightAirWaybillId
262
+ * @param {Chrt.shipping.CargoOnFlightAirWaybillsMarkAcceptedReq} request
263
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
264
+ *
265
+ * @throws {@link Chrt.UnprocessableEntityError}
266
+ *
267
+ * @example
268
+ * await client.shipping.cargoOnFlightAirWaybills.markAcceptedV1("cargo_on_flight_air_waybill_id", {
269
+ * mark_fwb: true
270
+ * })
271
+ */
272
+ markAcceptedV1(cargoOnFlightAirWaybillId, request, requestOptions) {
273
+ return core.HttpResponsePromise.fromPromise(this.__markAcceptedV1(cargoOnFlightAirWaybillId, request, requestOptions));
274
+ }
275
+ __markAcceptedV1(cargoOnFlightAirWaybillId, request, requestOptions) {
276
+ return __awaiter(this, void 0, void 0, function* () {
277
+ var _a, _b, _c, _d;
278
+ 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);
279
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
280
+ 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, `shipping/cargo_on_flight_air_waybills/mark_accepted/v1/${encodeURIComponent(cargoOnFlightAirWaybillId)}`),
281
+ method: "POST",
282
+ headers: _headers,
283
+ contentType: "application/json",
284
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
285
+ requestType: "json",
286
+ body: request,
287
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
288
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
289
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
290
+ });
291
+ if (_response.ok) {
292
+ return {
293
+ data: _response.body,
294
+ rawResponse: _response.rawResponse,
295
+ };
296
+ }
297
+ if (_response.error.reason === "status-code") {
298
+ switch (_response.error.statusCode) {
299
+ case 422:
300
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
301
+ default:
302
+ throw new errors.ChrtError({
303
+ statusCode: _response.error.statusCode,
304
+ body: _response.error.body,
305
+ rawResponse: _response.rawResponse,
306
+ });
307
+ }
308
+ }
309
+ switch (_response.error.reason) {
310
+ case "non-json":
311
+ throw new errors.ChrtError({
312
+ statusCode: _response.error.statusCode,
313
+ body: _response.error.rawBody,
314
+ rawResponse: _response.rawResponse,
315
+ });
316
+ case "timeout":
317
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /shipping/cargo_on_flight_air_waybills/mark_accepted/v1/{cargo_on_flight_air_waybill_id}.");
318
+ case "unknown":
319
+ throw new errors.ChrtError({
320
+ message: _response.error.errorMessage,
321
+ rawResponse: _response.rawResponse,
322
+ });
323
+ }
324
+ });
325
+ }
326
+ /**
327
+ * Updates an air waybill; an FWB already sent is replaced at the airline only when it is sent again. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightAirWaybillClientUpdate1) -> (CargoOnFlightAirWaybill1)
328
+ *
329
+ * @param {string} cargoOnFlightAirWaybillId
330
+ * @param {Chrt.shipping.CargoOnFlightAirWaybillClientUpdate1} request
331
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
332
+ *
333
+ * @throws {@link Chrt.UnprocessableEntityError}
334
+ *
335
+ * @example
336
+ * await client.shipping.cargoOnFlightAirWaybills.updateV1("cargo_on_flight_air_waybill_id")
337
+ */
338
+ updateV1(cargoOnFlightAirWaybillId, request = {}, requestOptions) {
339
+ return core.HttpResponsePromise.fromPromise(this.__updateV1(cargoOnFlightAirWaybillId, request, requestOptions));
340
+ }
341
+ __updateV1(cargoOnFlightAirWaybillId_1) {
342
+ return __awaiter(this, arguments, void 0, function* (cargoOnFlightAirWaybillId, request = {}, requestOptions) {
343
+ var _a, _b, _c, _d;
344
+ 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);
345
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
346
+ 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, `shipping/cargo_on_flight_air_waybills/update/v1/${encodeURIComponent(cargoOnFlightAirWaybillId)}`),
347
+ method: "PATCH",
348
+ headers: _headers,
349
+ contentType: "application/json",
350
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
351
+ requestType: "json",
352
+ body: request,
353
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
354
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
355
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
356
+ });
357
+ if (_response.ok) {
358
+ return { data: _response.body, rawResponse: _response.rawResponse };
359
+ }
360
+ if (_response.error.reason === "status-code") {
361
+ switch (_response.error.statusCode) {
362
+ case 422:
363
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
364
+ default:
365
+ throw new errors.ChrtError({
366
+ statusCode: _response.error.statusCode,
367
+ body: _response.error.body,
368
+ rawResponse: _response.rawResponse,
369
+ });
370
+ }
371
+ }
372
+ switch (_response.error.reason) {
373
+ case "non-json":
374
+ throw new errors.ChrtError({
375
+ statusCode: _response.error.statusCode,
376
+ body: _response.error.rawBody,
377
+ rawResponse: _response.rawResponse,
378
+ });
379
+ case "timeout":
380
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /shipping/cargo_on_flight_air_waybills/update/v1/{cargo_on_flight_air_waybill_id}.");
381
+ case "unknown":
382
+ throw new errors.ChrtError({
383
+ message: _response.error.errorMessage,
384
+ rawResponse: _response.rawResponse,
385
+ });
386
+ }
387
+ });
388
+ }
389
+ /**
390
+ * Retrieves an air waybill. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightAirWaybill1)
391
+ *
392
+ * @param {string} cargoOnFlightAirWaybillId
393
+ * @param {CargoOnFlightAirWaybills.RequestOptions} requestOptions - Request-specific configuration.
394
+ *
395
+ * @throws {@link Chrt.UnprocessableEntityError}
396
+ *
397
+ * @example
398
+ * await client.shipping.cargoOnFlightAirWaybills.getV1("cargo_on_flight_air_waybill_id")
399
+ */
400
+ getV1(cargoOnFlightAirWaybillId, requestOptions) {
401
+ return core.HttpResponsePromise.fromPromise(this.__getV1(cargoOnFlightAirWaybillId, requestOptions));
402
+ }
403
+ __getV1(cargoOnFlightAirWaybillId, requestOptions) {
404
+ return __awaiter(this, void 0, void 0, function* () {
405
+ var _a, _b, _c, _d;
406
+ 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);
407
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
408
+ 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, `shipping/cargo_on_flight_air_waybills/v1/${encodeURIComponent(cargoOnFlightAirWaybillId)}`),
409
+ method: "GET",
410
+ headers: _headers,
411
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
412
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
413
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
414
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
415
+ });
416
+ if (_response.ok) {
417
+ return { data: _response.body, rawResponse: _response.rawResponse };
418
+ }
419
+ if (_response.error.reason === "status-code") {
420
+ switch (_response.error.statusCode) {
421
+ case 422:
422
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
423
+ default:
424
+ throw new errors.ChrtError({
425
+ statusCode: _response.error.statusCode,
426
+ body: _response.error.body,
427
+ rawResponse: _response.rawResponse,
428
+ });
429
+ }
430
+ }
431
+ switch (_response.error.reason) {
432
+ case "non-json":
433
+ throw new errors.ChrtError({
434
+ statusCode: _response.error.statusCode,
435
+ body: _response.error.rawBody,
436
+ rawResponse: _response.rawResponse,
437
+ });
438
+ case "timeout":
439
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/cargo_on_flight_air_waybills/v1/{cargo_on_flight_air_waybill_id}.");
440
+ case "unknown":
441
+ throw new errors.ChrtError({
442
+ message: _response.error.errorMessage,
443
+ rawResponse: _response.rawResponse,
444
+ });
445
+ }
446
+ });
447
+ }
448
+ _getAuthorizationHeader() {
449
+ return __awaiter(this, void 0, void 0, function* () {
450
+ const bearer = yield core.Supplier.get(this._options.token);
451
+ if (bearer != null) {
452
+ return `Bearer ${bearer}`;
453
+ }
454
+ return undefined;
455
+ });
456
+ }
457
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";