@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.
- package/README.md +10 -13
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +41 -36
- package/dist/cjs/api/resources/agent/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/agent/client/Client.js +3 -3
- package/dist/cjs/api/resources/agent/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/agent/resources/index.js +2 -6
- package/dist/cjs/api/resources/agent/resources/livekit/client/Client.d.ts +23 -0
- package/dist/cjs/api/resources/agent/resources/livekit/client/Client.js +17 -0
- package/dist/cjs/api/resources/agent/resources/livekit/index.d.ts +2 -0
- package/dist/cjs/api/resources/agent/resources/livekit/index.js +18 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.d.ts +44 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.js +118 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/index.js +2 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/agent/resources/livekit/resources/index.js +37 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.ts +51 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.js +222 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.d.ts +13 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.d.ts +20 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.js +13 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.d.ts +30 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/chrtGpt/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/chrtGpt/client/Client.js +132 -0
- package/dist/{esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.mts → cjs/api/resources/chrtGpt/client/requests/ChrtGptMessageReq.d.ts} +3 -1
- package/dist/cjs/api/resources/chrtGpt/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/chrtGpt/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/chrtGpt/index.d.ts +1 -0
- package/dist/cjs/api/resources/chrtGpt/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/shipping/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/shipping/client/Client.js +28 -18
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.d.ts +154 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.js +494 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.d.ts +57 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.d.ts +29 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.d.ts +27 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.d.ts +115 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.js +403 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.d.ts +29 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.d.ts +19 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.d.ts +24 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.js +17 -0
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/shipping/resources/index.js +5 -1
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +1 -1
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +0 -30
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +0 -128
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/index.d.ts +0 -2
- package/dist/cjs/api/types/ArchivedModel.d.ts +5 -1
- package/dist/cjs/api/types/ArchivedModel.js +4 -0
- package/dist/cjs/api/types/CallerCredentialTypeEnum.d.ts +2 -1
- package/dist/cjs/api/types/CallerCredentialTypeEnum.js +1 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessage1.d.ts +24 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessage1.js +5 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageSendStatusEnum1.d.ts +10 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageSendStatusEnum1.js +12 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageSortByEnum.d.ts +4 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageSortByEnum.js +5 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageWebhookEvent1.d.ts +12 -0
- package/dist/cjs/api/types/CargoAiAirWaybillMessageWebhookEvent1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlAddress1.d.ts +13 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlAddress1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlAgent1.d.ts +10 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlAgent1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlChargesDeclaration1.d.ts +18 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlChargesDeclaration1.js +13 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlCity1.d.ts +7 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlCity1.js +5 -0
- package/dist/cjs/api/types/{GeographyRes.d.ts → CargoAiFwbAndFhlCode1.d.ts} +2 -2
- package/dist/cjs/api/types/CargoAiFwbAndFhlCode1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlCountry1.d.ts +7 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlCountry1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlDimension1.d.ts +19 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlDimension1.js +15 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlExecution1.d.ts +9 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlExecution1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHandling1.d.ts +9 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHandling1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHouse1.d.ts +26 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHouse1.js +13 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHouseLocations1.d.ts +8 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlHouseLocations1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOci1.d.ts +8 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOci1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOciSecurity1.d.ts +22 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOciSecurity1.js +15 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOtherCharge1.d.ts +21 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlOtherCharge1.js +17 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlParty1.d.ts +12 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlParty1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRate1.d.ts +19 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRate1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRequest1.d.ts +24 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRequest1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRouting1.d.ts +9 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlRouting1.js +5 -0
- package/dist/{esm/api/types/GeographyRes.d.mts → cjs/api/types/CargoAiFwbAndFhlUld1.d.ts} +2 -2
- package/dist/cjs/api/types/CargoAiFwbAndFhlUld1.js +5 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlWeightOrVolume1.d.ts +16 -0
- package/dist/cjs/api/types/CargoAiFwbAndFhlWeightOrVolume1.js +15 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybill1.d.ts +32 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybill1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillCarriersExecution1.d.ts +11 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillCarriersExecution1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.d.ts +34 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.js +33 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillChargesDeclaration1.d.ts +16 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillChargesDeclaration1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.d.ts +18 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillDimension1.d.ts +12 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillDimension1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillFwbMessage1.d.ts +17 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillFwbMessage1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillListRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillListRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.js +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.d.ts +9 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.js +11 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherCharge1.d.ts +13 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherCharge1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.js +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillParty1.d.ts +20 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillParty1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.js +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.d.ts +22 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.js +21 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRateLine1.d.ts +21 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRateLine1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.d.ts +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.js +12 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.d.ts +13 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.js +15 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.d.ts +17 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.js +19 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.d.ts +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.js +12 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillSortByEnum.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillSortByEnum.js +10 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybill1.d.ts +26 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybill1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.d.ts +17 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillListRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillListRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillSortByEnum.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightHouseAirWaybillSortByEnum.js +10 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.d.ts +6 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.d.ts +15 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.js +14 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.d.ts +8 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.js +5 -0
- package/dist/{esm/api/types/OrderInformationConversationRes.d.mts → cjs/api/types/ChrtGptMessageRes.d.ts} +1 -1
- package/dist/cjs/api/types/ChrtGptMessageRes.js +5 -0
- package/dist/cjs/api/types/LiveKitHelloWorldStartRes.d.ts +8 -0
- package/dist/cjs/api/types/LiveKitHelloWorldStartRes.js +5 -0
- package/dist/cjs/api/types/Model.d.ts +7 -4
- package/dist/cjs/api/types/Model.js +6 -3
- package/dist/cjs/api/types/OrderEventActionEnum1.d.ts +10 -1
- package/dist/cjs/api/types/OrderEventActionEnum1.js +9 -0
- package/dist/cjs/api/types/OrderEventEntity1.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +57 -3
- package/dist/cjs/api/types/index.js +57 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +7 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/agent/client/Client.mjs +3 -3
- package/dist/esm/api/resources/agent/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/agent/resources/index.mjs +1 -2
- package/dist/esm/api/resources/agent/resources/livekit/client/Client.d.mts +23 -0
- package/dist/esm/api/resources/agent/resources/livekit/client/Client.mjs +13 -0
- package/dist/esm/api/resources/agent/resources/livekit/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/resources/livekit/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/livekit/index.d.mts +2 -0
- package/dist/esm/api/resources/agent/resources/livekit/index.mjs +2 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.d.mts +44 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.mjs +81 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/index.mjs +1 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/agent/resources/livekit/resources/index.mjs +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.mts +51 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs +222 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.d.mts +13 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.d.mts +20 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.mjs +10 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.d.mts +30 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/chrtGpt/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/chrtGpt/client/Client.mjs +95 -0
- package/dist/{cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.ts → esm/api/resources/chrtGpt/client/requests/ChrtGptMessageReq.d.mts} +3 -2
- package/dist/esm/api/resources/chrtGpt/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/chrtGpt/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/chrtGpt/index.d.mts +1 -0
- package/dist/esm/api/resources/chrtGpt/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shipping/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/shipping/client/Client.mjs +10 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.d.mts +154 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/Client.mjs +457 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.d.mts +57 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.d.mts +29 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.d.mts +27 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightAirWaybills/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.d.mts +115 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/Client.mjs +366 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.d.mts +29 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.d.mts +19 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientUpdate1.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.d.mts +24 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillsListV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightHouseAirWaybills/index.mjs +1 -0
- package/dist/esm/api/resources/shipping/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/shipping/resources/index.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +1 -1
- package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +0 -30
- package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +0 -128
- package/dist/esm/api/resources/utils/resources/dev/client/requests/index.d.mts +0 -2
- package/dist/esm/api/types/ArchivedModel.d.mts +5 -1
- package/dist/esm/api/types/ArchivedModel.mjs +4 -0
- package/dist/esm/api/types/CallerCredentialTypeEnum.d.mts +2 -1
- package/dist/esm/api/types/CallerCredentialTypeEnum.mjs +1 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessage1.d.mts +24 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessage1.mjs +4 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageSendStatusEnum1.d.mts +10 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageSendStatusEnum1.mjs +9 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageSortByEnum.d.mts +4 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageSortByEnum.mjs +4 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageWebhookEvent1.d.mts +12 -0
- package/dist/esm/api/types/CargoAiAirWaybillMessageWebhookEvent1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlAddress1.d.mts +13 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlAddress1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlAgent1.d.mts +10 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlAgent1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlChargesDeclaration1.d.mts +18 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlChargesDeclaration1.mjs +10 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlCity1.d.mts +7 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlCity1.mjs +4 -0
- package/dist/{cjs/api/types/PingOpenAiRes.d.ts → esm/api/types/CargoAiFwbAndFhlCode1.d.mts} +2 -2
- package/dist/esm/api/types/CargoAiFwbAndFhlCode1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlCountry1.d.mts +7 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlCountry1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlDimension1.d.mts +19 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlDimension1.mjs +12 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlExecution1.d.mts +9 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlExecution1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHandling1.d.mts +9 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHandling1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHouse1.d.mts +26 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHouse1.mjs +10 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHouseLocations1.d.mts +8 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlHouseLocations1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOci1.d.mts +8 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOci1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOciSecurity1.d.mts +22 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOciSecurity1.mjs +12 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOtherCharge1.d.mts +21 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlOtherCharge1.mjs +14 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlParty1.d.mts +12 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlParty1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRate1.d.mts +19 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRate1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRequest1.d.mts +24 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRequest1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRouting1.d.mts +9 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlRouting1.mjs +4 -0
- package/dist/esm/api/types/{PingOpenAiRes.d.mts → CargoAiFwbAndFhlUld1.d.mts} +2 -2
- package/dist/esm/api/types/CargoAiFwbAndFhlUld1.mjs +4 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlWeightOrVolume1.d.mts +16 -0
- package/dist/esm/api/types/CargoAiFwbAndFhlWeightOrVolume1.mjs +12 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybill1.d.mts +32 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybill1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillCarriersExecution1.d.mts +11 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillCarriersExecution1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.d.mts +34 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillChargeCodeEnum1.mjs +30 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillChargesDeclaration1.d.mts +16 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillChargesDeclaration1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.d.mts +18 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillConsignmentSecurityDeclaration1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillDimension1.d.mts +12 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillDimension1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillFwbMessage1.d.mts +17 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillFwbMessage1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillListRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillListRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillMessageResponseProvenanceEnum1.mjs +7 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.d.mts +9 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillMessageStatusEnum1.mjs +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillOtherCharge1.d.mts +13 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillOtherCharge1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillOtherChargeEntitlementEnum1.mjs +7 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillParty1.d.mts +20 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillParty1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillPaymentConditionEnum1.mjs +7 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.d.mts +22 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRateClassCodeEnum1.mjs +18 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRateLine1.d.mts +21 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRateLine1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.d.mts +10 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillRegulatedEntityCategoryEnum1.mjs +9 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.d.mts +13 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningExemptionEnum1.mjs +12 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.d.mts +17 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillScreeningMethodEnum1.mjs +16 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.d.mts +10 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillSecurityStatusEnum1.mjs +9 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillSortByEnum.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillSortByEnum.mjs +7 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightAirWaybillsMarkAcceptedRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybill1.d.mts +26 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybill1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.d.mts +17 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillFhlMessage1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillListRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillListRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillSortByEnum.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightHouseAirWaybillSortByEnum.mjs +7 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListItem.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.d.mts +6 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiAirWaybillsWebhookRes.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.d.mts +15 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse.mjs +11 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.d.mts +8 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes.mjs +4 -0
- package/dist/{cjs/api/types/OrderInformationConversationRes.d.ts → esm/api/types/ChrtGptMessageRes.d.mts} +1 -1
- package/dist/esm/api/types/ChrtGptMessageRes.mjs +4 -0
- package/dist/esm/api/types/LiveKitHelloWorldStartRes.d.mts +8 -0
- package/dist/esm/api/types/LiveKitHelloWorldStartRes.mjs +4 -0
- package/dist/esm/api/types/Model.d.mts +7 -4
- package/dist/esm/api/types/Model.mjs +6 -3
- package/dist/esm/api/types/OrderEventActionEnum1.d.mts +10 -1
- package/dist/esm/api/types/OrderEventActionEnum1.mjs +9 -0
- package/dist/esm/api/types/OrderEventEntity1.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +57 -3
- package/dist/esm/api/types/index.mjs +57 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1444 -668
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.d.ts +0 -79
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/Client.js +0 -260
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.ts +0 -11
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.d.ts +0 -12
- package/dist/cjs/api/resources/agent/resources/orderInformation/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/GeographyReq.d.ts +0 -12
- package/dist/cjs/api/resources/utils/resources/dev/client/requests/PingOpenAiReq.d.ts +0 -12
- package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.d.mts +0 -79
- package/dist/esm/api/resources/agent/resources/orderInformation/client/Client.mjs +0 -223
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.d.mts +0 -11
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.d.mts +0 -13
- package/dist/esm/api/resources/agent/resources/orderInformation/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/utils/resources/dev/client/requests/GeographyReq.d.mts +0 -12
- package/dist/esm/api/resources/utils/resources/dev/client/requests/PingOpenAiReq.d.mts +0 -12
- /package/dist/{esm/api/resources/agent/resources/orderInformation/client/requests/index.mjs → cjs/api/resources/agent/resources/livekit/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/agent/resources/{orderInformation/client/requests → livekit/client}/index.js +0 -0
- /package/dist/cjs/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.js → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.js} +0 -0
- /package/dist/cjs/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.js → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.js} +0 -0
- /package/dist/cjs/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.js → chrtGpt/client/requests/ChrtGptMessageReq.js} +0 -0
- /package/dist/cjs/api/resources/{utils/resources/dev/client/requests/GeographyReq.js → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{utils/resources/dev/client/requests/PingOpenAiReq.js → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.js} +0 -0
- /package/dist/cjs/api/{types/GeographyRes.js → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.js} +0 -0
- /package/dist/cjs/api/{types/OrderInformationConversationRes.js → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.js} +0 -0
- /package/dist/cjs/api/{types/PingOpenAiRes.js → resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.js} +0 -0
- /package/dist/esm/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.d.mts +0 -0
- /package/dist/esm/api/resources/agent/resources/{orderInformation → livekit/resources/helloWorld}/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationClientUpdate1.mjs → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.mjs} +0 -0
- /package/dist/esm/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationMessageReq.mjs → cargoOnFlightIntegrations/resources/cargoai/client/requests/CargoaiListAirWaybillMessagesV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agent/resources/orderInformation → chrtGpt}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/orderInformation/client/requests/OrderInformationConversationStartReq.mjs → chrtGpt/client/requests/ChrtGptMessageReq.mjs} +0 -0
- /package/dist/esm/api/resources/{utils/resources/dev/client/requests/GeographyReq.mjs → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{utils/resources/dev/client/requests/PingOpenAiReq.mjs → shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/{types/GeographyRes.mjs → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsListV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/OrderInformationConversationRes.mjs → resources/shipping/resources/cargoOnFlightAirWaybills/client/requests/CargoOnFlightAirWaybillsMarkAcceptedReq.mjs} +0 -0
- /package/dist/esm/api/{types/PingOpenAiRes.mjs → resources/shipping/resources/cargoOnFlightHouseAirWaybills/client/requests/CargoOnFlightHouseAirWaybillClientCreate1.mjs} +0 -0
package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs
CHANGED
|
@@ -19,6 +19,228 @@ export class Cargoai {
|
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists what was sent to CargoAi for an air waybill and every airline answer received for each send. | authz_personas=[task_group_coordinator_operators] | () -> (CargoOnFlightIntegrationsCargoAiAirWaybillMessageListRes)
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.cargoOnFlightIntegrations.CargoaiListAirWaybillMessagesV1Request} request
|
|
26
|
+
* @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.cargoOnFlightIntegrations.cargoai.listAirWaybillMessagesV1({
|
|
32
|
+
* cargo_on_flight_air_waybill_id: "cargo_on_flight_air_waybill_id",
|
|
33
|
+
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
34
|
+
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
35
|
+
* sort_by: "created_at_timestamp",
|
|
36
|
+
* sort_order: "asc",
|
|
37
|
+
* page: 1,
|
|
38
|
+
* page_size: 1
|
|
39
|
+
* })
|
|
40
|
+
*/
|
|
41
|
+
listAirWaybillMessagesV1(request, requestOptions) {
|
|
42
|
+
return core.HttpResponsePromise.fromPromise(this.__listAirWaybillMessagesV1(request, requestOptions));
|
|
43
|
+
}
|
|
44
|
+
__listAirWaybillMessagesV1(request, requestOptions) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
var _a, _b, _c, _d, _e, _f;
|
|
47
|
+
const { cargo_on_flight_air_waybill_id: cargoOnFlightAirWaybillId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
48
|
+
const _queryParams = {};
|
|
49
|
+
_queryParams["cargo_on_flight_air_waybill_id"] = cargoOnFlightAirWaybillId;
|
|
50
|
+
if (filterCreatedAtTimestampGte !== undefined) {
|
|
51
|
+
_queryParams["filter_created_at_timestamp_gte"] = filterCreatedAtTimestampGte;
|
|
52
|
+
}
|
|
53
|
+
if (filterCreatedAtTimestampLte !== undefined) {
|
|
54
|
+
_queryParams["filter_created_at_timestamp_lte"] = filterCreatedAtTimestampLte;
|
|
55
|
+
}
|
|
56
|
+
if (sortBy !== undefined) {
|
|
57
|
+
_queryParams["sort_by"] = sortBy;
|
|
58
|
+
}
|
|
59
|
+
if (sortOrder !== undefined) {
|
|
60
|
+
_queryParams["sort_order"] = sortOrder;
|
|
61
|
+
}
|
|
62
|
+
if (page !== undefined) {
|
|
63
|
+
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
64
|
+
}
|
|
65
|
+
if (pageSize !== undefined) {
|
|
66
|
+
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
67
|
+
}
|
|
68
|
+
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);
|
|
69
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
70
|
+
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, "cargo_on_flight_integrations/cargoai/air_waybills/messages/list/v1"),
|
|
71
|
+
method: "GET",
|
|
72
|
+
headers: _headers,
|
|
73
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
74
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
75
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
76
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
77
|
+
});
|
|
78
|
+
if (_response.ok) {
|
|
79
|
+
return {
|
|
80
|
+
data: _response.body,
|
|
81
|
+
rawResponse: _response.rawResponse,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
if (_response.error.reason === "status-code") {
|
|
85
|
+
switch (_response.error.statusCode) {
|
|
86
|
+
case 422:
|
|
87
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
88
|
+
default:
|
|
89
|
+
throw new errors.ChrtError({
|
|
90
|
+
statusCode: _response.error.statusCode,
|
|
91
|
+
body: _response.error.body,
|
|
92
|
+
rawResponse: _response.rawResponse,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
switch (_response.error.reason) {
|
|
97
|
+
case "non-json":
|
|
98
|
+
throw new errors.ChrtError({
|
|
99
|
+
statusCode: _response.error.statusCode,
|
|
100
|
+
body: _response.error.rawBody,
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
});
|
|
103
|
+
case "timeout":
|
|
104
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /cargo_on_flight_integrations/cargoai/air_waybills/messages/list/v1.");
|
|
105
|
+
case "unknown":
|
|
106
|
+
throw new errors.ChrtError({
|
|
107
|
+
message: _response.error.errorMessage,
|
|
108
|
+
rawResponse: _response.rawResponse,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Sends an air waybill's FWB and/or the FHL for chosen house air waybills to the airline through CargoAi; the airline answers later. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiSendAirWaybillReq) -> (CargoAiAirWaybillMessage1)
|
|
115
|
+
*
|
|
116
|
+
* @param {string} cargoOnFlightAirWaybillId
|
|
117
|
+
* @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsCargoAiSendAirWaybillReq} request
|
|
118
|
+
* @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* await client.cargoOnFlightIntegrations.cargoai.sendAirWaybillV1("cargo_on_flight_air_waybill_id", {
|
|
124
|
+
* send_fwb: true
|
|
125
|
+
* })
|
|
126
|
+
*/
|
|
127
|
+
sendAirWaybillV1(cargoOnFlightAirWaybillId, request, requestOptions) {
|
|
128
|
+
return core.HttpResponsePromise.fromPromise(this.__sendAirWaybillV1(cargoOnFlightAirWaybillId, request, requestOptions));
|
|
129
|
+
}
|
|
130
|
+
__sendAirWaybillV1(cargoOnFlightAirWaybillId, request, requestOptions) {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
var _a, _b, _c, _d;
|
|
133
|
+
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);
|
|
134
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
135
|
+
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/cargoai/air_waybills/send/v1/${encodeURIComponent(cargoOnFlightAirWaybillId)}`),
|
|
136
|
+
method: "POST",
|
|
137
|
+
headers: _headers,
|
|
138
|
+
contentType: "application/json",
|
|
139
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
140
|
+
requestType: "json",
|
|
141
|
+
body: request,
|
|
142
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
143
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
144
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
145
|
+
});
|
|
146
|
+
if (_response.ok) {
|
|
147
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
148
|
+
}
|
|
149
|
+
if (_response.error.reason === "status-code") {
|
|
150
|
+
switch (_response.error.statusCode) {
|
|
151
|
+
case 422:
|
|
152
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
153
|
+
default:
|
|
154
|
+
throw new errors.ChrtError({
|
|
155
|
+
statusCode: _response.error.statusCode,
|
|
156
|
+
body: _response.error.body,
|
|
157
|
+
rawResponse: _response.rawResponse,
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
switch (_response.error.reason) {
|
|
162
|
+
case "non-json":
|
|
163
|
+
throw new errors.ChrtError({
|
|
164
|
+
statusCode: _response.error.statusCode,
|
|
165
|
+
body: _response.error.rawBody,
|
|
166
|
+
rawResponse: _response.rawResponse,
|
|
167
|
+
});
|
|
168
|
+
case "timeout":
|
|
169
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/cargoai/air_waybills/send/v1/{cargo_on_flight_air_waybill_id}.");
|
|
170
|
+
case "unknown":
|
|
171
|
+
throw new errors.ChrtError({
|
|
172
|
+
message: _response.error.errorMessage,
|
|
173
|
+
rawResponse: _response.rawResponse,
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* For demos and testing: answers a sent FWB and/or the FHLs of chosen house air waybills as the airline would, accepted or rejected, for a demo AWB (prefix 000) whose Mock Airline never answers. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq) -> (CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseRes)
|
|
180
|
+
*
|
|
181
|
+
* @param {string} cargoOnFlightAirWaybillId
|
|
182
|
+
* @param {Chrt.cargoOnFlightIntegrations.CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq} request
|
|
183
|
+
* @param {Cargoai.RequestOptions} requestOptions - Request-specific configuration.
|
|
184
|
+
*
|
|
185
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* await client.cargoOnFlightIntegrations.cargoai.simulateAirlineResponseV1("cargo_on_flight_air_waybill_id")
|
|
189
|
+
*/
|
|
190
|
+
simulateAirlineResponseV1(cargoOnFlightAirWaybillId, request = {}, requestOptions) {
|
|
191
|
+
return core.HttpResponsePromise.fromPromise(this.__simulateAirlineResponseV1(cargoOnFlightAirWaybillId, request, requestOptions));
|
|
192
|
+
}
|
|
193
|
+
__simulateAirlineResponseV1(cargoOnFlightAirWaybillId_1) {
|
|
194
|
+
return __awaiter(this, arguments, void 0, function* (cargoOnFlightAirWaybillId, request = {}, requestOptions) {
|
|
195
|
+
var _a, _b, _c, _d;
|
|
196
|
+
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);
|
|
197
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
198
|
+
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/cargoai/air_waybills/simulate_airline_response/v1/${encodeURIComponent(cargoOnFlightAirWaybillId)}`),
|
|
199
|
+
method: "POST",
|
|
200
|
+
headers: _headers,
|
|
201
|
+
contentType: "application/json",
|
|
202
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
203
|
+
requestType: "json",
|
|
204
|
+
body: request,
|
|
205
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
206
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
207
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
208
|
+
});
|
|
209
|
+
if (_response.ok) {
|
|
210
|
+
return {
|
|
211
|
+
data: _response.body,
|
|
212
|
+
rawResponse: _response.rawResponse,
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
if (_response.error.reason === "status-code") {
|
|
216
|
+
switch (_response.error.statusCode) {
|
|
217
|
+
case 422:
|
|
218
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
219
|
+
default:
|
|
220
|
+
throw new errors.ChrtError({
|
|
221
|
+
statusCode: _response.error.statusCode,
|
|
222
|
+
body: _response.error.body,
|
|
223
|
+
rawResponse: _response.rawResponse,
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
switch (_response.error.reason) {
|
|
228
|
+
case "non-json":
|
|
229
|
+
throw new errors.ChrtError({
|
|
230
|
+
statusCode: _response.error.statusCode,
|
|
231
|
+
body: _response.error.rawBody,
|
|
232
|
+
rawResponse: _response.rawResponse,
|
|
233
|
+
});
|
|
234
|
+
case "timeout":
|
|
235
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /cargo_on_flight_integrations/cargoai/air_waybills/simulate_airline_response/v1/{cargo_on_flight_air_waybill_id}.");
|
|
236
|
+
case "unknown":
|
|
237
|
+
throw new errors.ChrtError({
|
|
238
|
+
message: _response.error.errorMessage,
|
|
239
|
+
rawResponse: _response.rawResponse,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
}
|
|
22
244
|
/**
|
|
23
245
|
* Books a draft booking on CargoAi with one result and rate of one of its searches, with the user's AWB or one from the airline's stock. | authz_personas=[task_group_coordinator_operators] | (CargoOnFlightIntegrationsCargoAiBookReq) -> (CargoOnFlightBooking1)
|
|
24
246
|
*
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* send_fwb: true
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface CargoOnFlightIntegrationsCargoAiSendAirWaybillReq {
|
|
11
|
+
cargo_on_flight_house_air_waybill_ids?: string[];
|
|
12
|
+
send_fwb: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {}
|
|
8
|
+
*/
|
|
9
|
+
export interface CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq {
|
|
10
|
+
airline_response?: string;
|
|
11
|
+
fwb_status?: CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.FwbStatus | null;
|
|
12
|
+
houses?: Chrt.CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseHouse[];
|
|
13
|
+
}
|
|
14
|
+
export declare namespace CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq {
|
|
15
|
+
type FwbStatus = "accepted" | "rejected";
|
|
16
|
+
const FwbStatus: {
|
|
17
|
+
readonly Accepted: "accepted";
|
|
18
|
+
readonly Rejected: "rejected";
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export var CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq;
|
|
5
|
+
(function (CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq) {
|
|
6
|
+
CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.FwbStatus = {
|
|
7
|
+
Accepted: "accepted",
|
|
8
|
+
Rejected: "rejected",
|
|
9
|
+
};
|
|
10
|
+
})(CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq || (CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* cargo_on_flight_air_waybill_id: "cargo_on_flight_air_waybill_id",
|
|
9
|
+
* filter_created_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
10
|
+
* filter_created_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
11
|
+
* sort_by: "created_at_timestamp",
|
|
12
|
+
* sort_order: "asc",
|
|
13
|
+
* page: 1,
|
|
14
|
+
* page_size: 1
|
|
15
|
+
* }
|
|
16
|
+
*/
|
|
17
|
+
export interface CargoaiListAirWaybillMessagesV1Request {
|
|
18
|
+
/** The air waybill whose sends are listed. */
|
|
19
|
+
cargo_on_flight_air_waybill_id: string;
|
|
20
|
+
/** Only sends created at or after this timestamp. */
|
|
21
|
+
filter_created_at_timestamp_gte?: string | null;
|
|
22
|
+
/** Only sends created at or before this timestamp. */
|
|
23
|
+
filter_created_at_timestamp_lte?: string | null;
|
|
24
|
+
/** Field to sort by. */
|
|
25
|
+
sort_by?: Chrt.CargoAiAirWaybillMessageSortByEnum | null;
|
|
26
|
+
/** Sort order. */
|
|
27
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
28
|
+
page?: number | null;
|
|
29
|
+
page_size?: number | null;
|
|
30
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export { type CargoaiListAirWaybillMessagesV1Request } from "./CargoaiListAirWaybillMessagesV1Request.mjs";
|
|
2
|
+
export { type CargoOnFlightIntegrationsCargoAiSendAirWaybillReq } from "./CargoOnFlightIntegrationsCargoAiSendAirWaybillReq.mjs";
|
|
3
|
+
export { type CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq } from "./CargoOnFlightIntegrationsCargoAiSimulateAirlineResponseReq.mjs";
|
|
1
4
|
export { type CargoOnFlightIntegrationsCargoAiBookReq } from "./CargoOnFlightIntegrationsCargoAiBookReq.mjs";
|
|
2
5
|
export { type CargoOnFlightIntegrationsCargoAiCancelReq } from "./CargoOnFlightIntegrationsCargoAiCancelReq.mjs";
|
|
3
6
|
export { type CargoOnFlightBookingSearchClientCreate1 } from "./CargoOnFlightBookingSearchClientCreate1.mjs";
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ChrtGpt {
|
|
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 ChrtGpt {
|
|
31
|
+
protected readonly _options: ChrtGpt.Options;
|
|
32
|
+
constructor(_options?: ChrtGpt.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Sends a message to ChrtGPT and returns its reply, starting a new conversation when no conversation_id is given. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTMessageReq) -> (ChrtGPTMessageRes)
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.ChrtGptMessageReq} request
|
|
37
|
+
* @param {ChrtGpt.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.chrtGpt.messageV1({
|
|
43
|
+
* message: "message"
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
messageV1(request: Chrt.ChrtGptMessageReq, requestOptions?: ChrtGpt.RequestOptions): core.HttpResponsePromise<Chrt.ChrtGptMessageRes>;
|
|
47
|
+
private __messageV1;
|
|
48
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 ChrtGpt {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Sends a message to ChrtGPT and returns its reply, starting a new conversation when no conversation_id is given. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTMessageReq) -> (ChrtGPTMessageRes)
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.ChrtGptMessageReq} request
|
|
26
|
+
* @param {ChrtGpt.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.chrtGpt.messageV1({
|
|
32
|
+
* message: "message"
|
|
33
|
+
* })
|
|
34
|
+
*/
|
|
35
|
+
messageV1(request, requestOptions) {
|
|
36
|
+
return core.HttpResponsePromise.fromPromise(this.__messageV1(request, requestOptions));
|
|
37
|
+
}
|
|
38
|
+
__messageV1(request, requestOptions) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
var _a, _b, _c, _d;
|
|
41
|
+
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);
|
|
42
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
43
|
+
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, "chrt_gpt/message/v1"),
|
|
44
|
+
method: "POST",
|
|
45
|
+
headers: _headers,
|
|
46
|
+
contentType: "application/json",
|
|
47
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
48
|
+
requestType: "json",
|
|
49
|
+
body: request,
|
|
50
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
51
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
52
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
53
|
+
});
|
|
54
|
+
if (_response.ok) {
|
|
55
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
56
|
+
}
|
|
57
|
+
if (_response.error.reason === "status-code") {
|
|
58
|
+
switch (_response.error.statusCode) {
|
|
59
|
+
case 422:
|
|
60
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
61
|
+
default:
|
|
62
|
+
throw new errors.ChrtError({
|
|
63
|
+
statusCode: _response.error.statusCode,
|
|
64
|
+
body: _response.error.body,
|
|
65
|
+
rawResponse: _response.rawResponse,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
switch (_response.error.reason) {
|
|
70
|
+
case "non-json":
|
|
71
|
+
throw new errors.ChrtError({
|
|
72
|
+
statusCode: _response.error.statusCode,
|
|
73
|
+
body: _response.error.rawBody,
|
|
74
|
+
rawResponse: _response.rawResponse,
|
|
75
|
+
});
|
|
76
|
+
case "timeout":
|
|
77
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /chrt_gpt/message/v1.");
|
|
78
|
+
case "unknown":
|
|
79
|
+
throw new errors.ChrtError({
|
|
80
|
+
message: _response.error.errorMessage,
|
|
81
|
+
rawResponse: _response.rawResponse,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
_getAuthorizationHeader() {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
89
|
+
if (bearer != null) {
|
|
90
|
+
return `Bearer ${bearer}`;
|
|
91
|
+
}
|
|
92
|
+
return undefined;
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* message: "message"
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
10
|
+
export interface ChrtGptMessageReq {
|
|
11
|
+
/** Omit to start a new conversation. */
|
|
12
|
+
conversation_id?: string | null;
|
|
11
13
|
message: string;
|
|
12
|
-
title?: string | null;
|
|
13
14
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ChrtGptMessageReq } from "./ChrtGptMessageReq.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * as orgs from "./orgs/index.mjs";
|
|
2
2
|
export * as shipping from "./shipping/index.mjs";
|
|
3
|
+
export * as chrtGpt from "./chrtGpt/index.mjs";
|
|
3
4
|
export * as flights from "./flights/index.mjs";
|
|
4
5
|
export * as utils from "./utils/index.mjs";
|
|
5
6
|
export * as agent from "./agent/index.mjs";
|
|
@@ -15,6 +16,7 @@ export * as shippingIntegrations from "./shippingIntegrations/index.mjs";
|
|
|
15
16
|
export * as tracking from "./tracking/index.mjs";
|
|
16
17
|
export * as trackingIntegrations from "./trackingIntegrations/index.mjs";
|
|
17
18
|
export * as users from "./users/index.mjs";
|
|
19
|
+
export * from "./chrtGpt/client/requests/index.mjs";
|
|
18
20
|
export * from "./flights/client/requests/index.mjs";
|
|
19
21
|
export * from "./orgs/client/requests/index.mjs";
|
|
20
22
|
export * from "./utils/client/requests/index.mjs";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * as orgs from "./orgs/index.mjs";
|
|
2
2
|
export * as shipping from "./shipping/index.mjs";
|
|
3
|
+
export * as chrtGpt from "./chrtGpt/index.mjs";
|
|
3
4
|
export * as flights from "./flights/index.mjs";
|
|
4
5
|
export * as utils from "./utils/index.mjs";
|
|
5
6
|
export * as agent from "./agent/index.mjs";
|
|
@@ -15,6 +16,7 @@ export * as shippingIntegrations from "./shippingIntegrations/index.mjs";
|
|
|
15
16
|
export * as tracking from "./tracking/index.mjs";
|
|
16
17
|
export * as trackingIntegrations from "./trackingIntegrations/index.mjs";
|
|
17
18
|
export * as users from "./users/index.mjs";
|
|
19
|
+
export * from "./chrtGpt/client/requests/index.mjs";
|
|
18
20
|
export * from "./flights/client/requests/index.mjs";
|
|
19
21
|
export * from "./orgs/client/requests/index.mjs";
|
|
20
22
|
export * from "./utils/client/requests/index.mjs";
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import { CargoOnFlightAirWaybills } from "../resources/cargoOnFlightAirWaybills/client/Client.mjs";
|
|
6
7
|
import { CargoOnFlightBookingSearches } from "../resources/cargoOnFlightBookingSearches/client/Client.mjs";
|
|
7
8
|
import { CargoOnFlightBookings } from "../resources/cargoOnFlightBookings/client/Client.mjs";
|
|
9
|
+
import { CargoOnFlightHouseAirWaybills } from "../resources/cargoOnFlightHouseAirWaybills/client/Client.mjs";
|
|
8
10
|
import { Drivers } from "../resources/drivers/client/Client.mjs";
|
|
9
11
|
import { Flights } from "../resources/flights/client/Client.mjs";
|
|
10
12
|
import { OrderTemplatesNew } from "../resources/orderTemplatesNew/client/Client.mjs";
|
|
@@ -25,8 +27,10 @@ export declare namespace Shipping {
|
|
|
25
27
|
}
|
|
26
28
|
export declare class Shipping {
|
|
27
29
|
protected readonly _options: Shipping.Options;
|
|
30
|
+
protected _cargoOnFlightAirWaybills: CargoOnFlightAirWaybills | undefined;
|
|
28
31
|
protected _cargoOnFlightBookingSearches: CargoOnFlightBookingSearches | undefined;
|
|
29
32
|
protected _cargoOnFlightBookings: CargoOnFlightBookings | undefined;
|
|
33
|
+
protected _cargoOnFlightHouseAirWaybills: CargoOnFlightHouseAirWaybills | undefined;
|
|
30
34
|
protected _drivers: Drivers | undefined;
|
|
31
35
|
protected _flights: Flights | undefined;
|
|
32
36
|
protected _orderTemplatesNew: OrderTemplatesNew | undefined;
|
|
@@ -35,8 +39,10 @@ export declare class Shipping {
|
|
|
35
39
|
protected _taskGroups: TaskGroups | undefined;
|
|
36
40
|
protected _tasks: Tasks | undefined;
|
|
37
41
|
constructor(_options?: Shipping.Options);
|
|
42
|
+
get cargoOnFlightAirWaybills(): CargoOnFlightAirWaybills;
|
|
38
43
|
get cargoOnFlightBookingSearches(): CargoOnFlightBookingSearches;
|
|
39
44
|
get cargoOnFlightBookings(): CargoOnFlightBookings;
|
|
45
|
+
get cargoOnFlightHouseAirWaybills(): CargoOnFlightHouseAirWaybills;
|
|
40
46
|
get drivers(): Drivers;
|
|
41
47
|
get flights(): Flights;
|
|
42
48
|
get orderTemplatesNew(): OrderTemplatesNew;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import { CargoOnFlightAirWaybills } from "../resources/cargoOnFlightAirWaybills/client/Client.mjs";
|
|
4
5
|
import { CargoOnFlightBookingSearches } from "../resources/cargoOnFlightBookingSearches/client/Client.mjs";
|
|
5
6
|
import { CargoOnFlightBookings } from "../resources/cargoOnFlightBookings/client/Client.mjs";
|
|
7
|
+
import { CargoOnFlightHouseAirWaybills } from "../resources/cargoOnFlightHouseAirWaybills/client/Client.mjs";
|
|
6
8
|
import { Drivers } from "../resources/drivers/client/Client.mjs";
|
|
7
9
|
import { Flights } from "../resources/flights/client/Client.mjs";
|
|
8
10
|
import { OrderTemplatesNew } from "../resources/orderTemplatesNew/client/Client.mjs";
|
|
@@ -14,6 +16,10 @@ export class Shipping {
|
|
|
14
16
|
constructor(_options = {}) {
|
|
15
17
|
this._options = _options;
|
|
16
18
|
}
|
|
19
|
+
get cargoOnFlightAirWaybills() {
|
|
20
|
+
var _a;
|
|
21
|
+
return ((_a = this._cargoOnFlightAirWaybills) !== null && _a !== void 0 ? _a : (this._cargoOnFlightAirWaybills = new CargoOnFlightAirWaybills(this._options)));
|
|
22
|
+
}
|
|
17
23
|
get cargoOnFlightBookingSearches() {
|
|
18
24
|
var _a;
|
|
19
25
|
return ((_a = this._cargoOnFlightBookingSearches) !== null && _a !== void 0 ? _a : (this._cargoOnFlightBookingSearches = new CargoOnFlightBookingSearches(this._options)));
|
|
@@ -22,6 +28,10 @@ export class Shipping {
|
|
|
22
28
|
var _a;
|
|
23
29
|
return ((_a = this._cargoOnFlightBookings) !== null && _a !== void 0 ? _a : (this._cargoOnFlightBookings = new CargoOnFlightBookings(this._options)));
|
|
24
30
|
}
|
|
31
|
+
get cargoOnFlightHouseAirWaybills() {
|
|
32
|
+
var _a;
|
|
33
|
+
return ((_a = this._cargoOnFlightHouseAirWaybills) !== null && _a !== void 0 ? _a : (this._cargoOnFlightHouseAirWaybills = new CargoOnFlightHouseAirWaybills(this._options)));
|
|
34
|
+
}
|
|
25
35
|
get drivers() {
|
|
26
36
|
var _a;
|
|
27
37
|
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Drivers(this._options)));
|