@chrt-inc/typescript-sdk 1.1014.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/shipping/resources/tasks/client/Client.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +59 -0
- 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/CargoOnFlightBookingItineraryLeg1.d.ts +1 -0
- package/dist/cjs/api/types/CargoOnFlightBookingSearchResult1.d.ts +3 -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/shipping/resources/tasks/client/Client.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +59 -0
- 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/CargoOnFlightBookingItineraryLeg1.d.mts +1 -0
- package/dist/esm/api/types/CargoOnFlightBookingSearchResult1.d.mts +3 -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 +1264 -425
- 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/README.md
CHANGED
|
@@ -41,11 +41,8 @@ Instantiate and use the client with the following:
|
|
|
41
41
|
import { ChrtClient } from "@chrt-inc/typescript-sdk";
|
|
42
42
|
|
|
43
43
|
const client = new ChrtClient({ token: "YOUR_TOKEN" });
|
|
44
|
-
await client.
|
|
45
|
-
|
|
46
|
-
local_date_time: "2024-01-15T09:30:00Z",
|
|
47
|
-
origin: "origin",
|
|
48
|
-
search_by: "departure_time",
|
|
44
|
+
await client.chrtGpt.messageV1({
|
|
45
|
+
message: "message",
|
|
49
46
|
});
|
|
50
47
|
```
|
|
51
48
|
|
|
@@ -57,7 +54,7 @@ following namespace:
|
|
|
57
54
|
```typescript
|
|
58
55
|
import { Chrt } from "@chrt-inc/typescript-sdk";
|
|
59
56
|
|
|
60
|
-
const request: Chrt.
|
|
57
|
+
const request: Chrt.ChrtGptMessageReq = {
|
|
61
58
|
...
|
|
62
59
|
};
|
|
63
60
|
```
|
|
@@ -71,7 +68,7 @@ will be thrown.
|
|
|
71
68
|
import { ChrtError } from "@chrt-inc/typescript-sdk";
|
|
72
69
|
|
|
73
70
|
try {
|
|
74
|
-
await client.
|
|
71
|
+
await client.chrtGpt.messageV1(...);
|
|
75
72
|
} catch (err) {
|
|
76
73
|
if (err instanceof ChrtError) {
|
|
77
74
|
console.log(err.statusCode);
|
|
@@ -479,7 +476,7 @@ const text = new TextDecoder().decode(bytes);
|
|
|
479
476
|
If you would like to send additional headers as part of the request, use the `headers` request option.
|
|
480
477
|
|
|
481
478
|
```typescript
|
|
482
|
-
const response = await client.
|
|
479
|
+
const response = await client.chrtGpt.messageV1(..., {
|
|
483
480
|
headers: {
|
|
484
481
|
'X-Custom-Header': 'custom value'
|
|
485
482
|
}
|
|
@@ -491,7 +488,7 @@ const response = await client.flights.searchConnectionsV1(..., {
|
|
|
491
488
|
If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
|
|
492
489
|
|
|
493
490
|
```typescript
|
|
494
|
-
const response = await client.
|
|
491
|
+
const response = await client.chrtGpt.messageV1(..., {
|
|
495
492
|
queryParams: {
|
|
496
493
|
'customQueryParamKey': 'custom query param value'
|
|
497
494
|
}
|
|
@@ -513,7 +510,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
|
|
|
513
510
|
Use the `maxRetries` request option to configure this behavior.
|
|
514
511
|
|
|
515
512
|
```typescript
|
|
516
|
-
const response = await client.
|
|
513
|
+
const response = await client.chrtGpt.messageV1(..., {
|
|
517
514
|
maxRetries: 0 // override maxRetries at the request level
|
|
518
515
|
});
|
|
519
516
|
```
|
|
@@ -523,7 +520,7 @@ const response = await client.flights.searchConnectionsV1(..., {
|
|
|
523
520
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
524
521
|
|
|
525
522
|
```typescript
|
|
526
|
-
const response = await client.
|
|
523
|
+
const response = await client.chrtGpt.messageV1(..., {
|
|
527
524
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
528
525
|
});
|
|
529
526
|
```
|
|
@@ -534,7 +531,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
|
534
531
|
|
|
535
532
|
```typescript
|
|
536
533
|
const controller = new AbortController();
|
|
537
|
-
const response = await client.
|
|
534
|
+
const response = await client.chrtGpt.messageV1(..., {
|
|
538
535
|
abortSignal: controller.signal
|
|
539
536
|
});
|
|
540
537
|
controller.abort(); // aborts the request
|
|
@@ -546,7 +543,7 @@ The SDK provides access to raw response data, including headers, through the `.w
|
|
|
546
543
|
The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
|
|
547
544
|
|
|
548
545
|
```typescript
|
|
549
|
-
const { data, rawResponse } = await client.
|
|
546
|
+
const { data, rawResponse } = await client.chrtGpt.messageV1(...).withRawResponse();
|
|
550
547
|
|
|
551
548
|
console.log(data);
|
|
552
549
|
console.log(rawResponse.headers['X-My-Header']);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments.js";
|
|
5
5
|
import * as core from "./core/index.js";
|
|
6
|
+
import { ChrtGpt } from "./api/resources/chrtGpt/client/Client.js";
|
|
6
7
|
import { Flights } from "./api/resources/flights/client/Client.js";
|
|
7
8
|
import { Orgs } from "./api/resources/orgs/client/Client.js";
|
|
8
9
|
import { Utils } from "./api/resources/utils/client/Client.js";
|
|
@@ -45,6 +46,7 @@ export declare namespace ChrtClient {
|
|
|
45
46
|
}
|
|
46
47
|
export declare class ChrtClient {
|
|
47
48
|
protected readonly _options: ChrtClient.Options;
|
|
49
|
+
protected _chrtGpt: ChrtGpt | undefined;
|
|
48
50
|
protected _flights: Flights | undefined;
|
|
49
51
|
protected _orgs: Orgs | undefined;
|
|
50
52
|
protected _utils: Utils | undefined;
|
|
@@ -63,6 +65,7 @@ export declare class ChrtClient {
|
|
|
63
65
|
protected _trackingIntegrations: TrackingIntegrations | undefined;
|
|
64
66
|
protected _users: Users | undefined;
|
|
65
67
|
constructor(_options?: ChrtClient.Options);
|
|
68
|
+
get chrtGpt(): ChrtGpt;
|
|
66
69
|
get flights(): Flights;
|
|
67
70
|
get orgs(): Orgs;
|
|
68
71
|
get utils(): Utils;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -39,101 +39,106 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.ChrtClient = void 0;
|
|
40
40
|
const core = __importStar(require("./core/index.js"));
|
|
41
41
|
const headers_js_1 = require("./core/headers.js");
|
|
42
|
-
const Client_js_1 = require("./api/resources/
|
|
43
|
-
const Client_js_2 = require("./api/resources/
|
|
44
|
-
const Client_js_3 = require("./api/resources/
|
|
45
|
-
const Client_js_4 = require("./api/resources/
|
|
46
|
-
const Client_js_5 = require("./api/resources/
|
|
47
|
-
const Client_js_6 = require("./api/resources/
|
|
48
|
-
const Client_js_7 = require("./api/resources/
|
|
49
|
-
const Client_js_8 = require("./api/resources/
|
|
50
|
-
const Client_js_9 = require("./api/resources/
|
|
51
|
-
const Client_js_10 = require("./api/resources/
|
|
52
|
-
const Client_js_11 = require("./api/resources/
|
|
53
|
-
const Client_js_12 = require("./api/resources/
|
|
54
|
-
const Client_js_13 = require("./api/resources/
|
|
55
|
-
const Client_js_14 = require("./api/resources/
|
|
56
|
-
const Client_js_15 = require("./api/resources/
|
|
57
|
-
const Client_js_16 = require("./api/resources/
|
|
58
|
-
const Client_js_17 = require("./api/resources/
|
|
42
|
+
const Client_js_1 = require("./api/resources/chrtGpt/client/Client.js");
|
|
43
|
+
const Client_js_2 = require("./api/resources/flights/client/Client.js");
|
|
44
|
+
const Client_js_3 = require("./api/resources/orgs/client/Client.js");
|
|
45
|
+
const Client_js_4 = require("./api/resources/utils/client/Client.js");
|
|
46
|
+
const Client_js_5 = require("./api/resources/agent/client/Client.js");
|
|
47
|
+
const Client_js_6 = require("./api/resources/analytics/client/Client.js");
|
|
48
|
+
const Client_js_7 = require("./api/resources/billing/client/Client.js");
|
|
49
|
+
const Client_js_8 = require("./api/resources/billingNew/client/Client.js");
|
|
50
|
+
const Client_js_9 = require("./api/resources/cargoOnFlightIntegrations/client/Client.js");
|
|
51
|
+
const Client_js_10 = require("./api/resources/integrations/client/Client.js");
|
|
52
|
+
const Client_js_11 = require("./api/resources/listing/client/Client.js");
|
|
53
|
+
const Client_js_12 = require("./api/resources/notifications/client/Client.js");
|
|
54
|
+
const Client_js_13 = require("./api/resources/operations/client/Client.js");
|
|
55
|
+
const Client_js_14 = require("./api/resources/shipping/client/Client.js");
|
|
56
|
+
const Client_js_15 = require("./api/resources/shippingIntegrations/client/Client.js");
|
|
57
|
+
const Client_js_16 = require("./api/resources/tracking/client/Client.js");
|
|
58
|
+
const Client_js_17 = require("./api/resources/trackingIntegrations/client/Client.js");
|
|
59
|
+
const Client_js_18 = require("./api/resources/users/client/Client.js");
|
|
59
60
|
class ChrtClient {
|
|
60
61
|
constructor(_options = {}) {
|
|
61
62
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
62
63
|
"X-Fern-Language": "JavaScript",
|
|
63
64
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
64
|
-
"X-Fern-SDK-Version": "1.
|
|
65
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
65
|
+
"X-Fern-SDK-Version": "1.1016.0",
|
|
66
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.1016.0",
|
|
66
67
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
67
68
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
68
69
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
69
70
|
}
|
|
71
|
+
get chrtGpt() {
|
|
72
|
+
var _a;
|
|
73
|
+
return ((_a = this._chrtGpt) !== null && _a !== void 0 ? _a : (this._chrtGpt = new Client_js_1.ChrtGpt(this._options)));
|
|
74
|
+
}
|
|
70
75
|
get flights() {
|
|
71
76
|
var _a;
|
|
72
|
-
return ((_a = this._flights) !== null && _a !== void 0 ? _a : (this._flights = new
|
|
77
|
+
return ((_a = this._flights) !== null && _a !== void 0 ? _a : (this._flights = new Client_js_2.Flights(this._options)));
|
|
73
78
|
}
|
|
74
79
|
get orgs() {
|
|
75
80
|
var _a;
|
|
76
|
-
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new
|
|
81
|
+
return ((_a = this._orgs) !== null && _a !== void 0 ? _a : (this._orgs = new Client_js_3.Orgs(this._options)));
|
|
77
82
|
}
|
|
78
83
|
get utils() {
|
|
79
84
|
var _a;
|
|
80
|
-
return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new
|
|
85
|
+
return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new Client_js_4.Utils(this._options)));
|
|
81
86
|
}
|
|
82
87
|
get agent() {
|
|
83
88
|
var _a;
|
|
84
|
-
return ((_a = this._agent) !== null && _a !== void 0 ? _a : (this._agent = new
|
|
89
|
+
return ((_a = this._agent) !== null && _a !== void 0 ? _a : (this._agent = new Client_js_5.Agent(this._options)));
|
|
85
90
|
}
|
|
86
91
|
get analytics() {
|
|
87
92
|
var _a;
|
|
88
|
-
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new
|
|
93
|
+
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_js_6.Analytics(this._options)));
|
|
89
94
|
}
|
|
90
95
|
get billing() {
|
|
91
96
|
var _a;
|
|
92
|
-
return ((_a = this._billing) !== null && _a !== void 0 ? _a : (this._billing = new
|
|
97
|
+
return ((_a = this._billing) !== null && _a !== void 0 ? _a : (this._billing = new Client_js_7.Billing(this._options)));
|
|
93
98
|
}
|
|
94
99
|
get billingNew() {
|
|
95
100
|
var _a;
|
|
96
|
-
return ((_a = this._billingNew) !== null && _a !== void 0 ? _a : (this._billingNew = new
|
|
101
|
+
return ((_a = this._billingNew) !== null && _a !== void 0 ? _a : (this._billingNew = new Client_js_8.BillingNew(this._options)));
|
|
97
102
|
}
|
|
98
103
|
get cargoOnFlightIntegrations() {
|
|
99
104
|
var _a;
|
|
100
|
-
return ((_a = this._cargoOnFlightIntegrations) !== null && _a !== void 0 ? _a : (this._cargoOnFlightIntegrations = new
|
|
105
|
+
return ((_a = this._cargoOnFlightIntegrations) !== null && _a !== void 0 ? _a : (this._cargoOnFlightIntegrations = new Client_js_9.CargoOnFlightIntegrations(this._options)));
|
|
101
106
|
}
|
|
102
107
|
get integrations() {
|
|
103
108
|
var _a;
|
|
104
|
-
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new
|
|
109
|
+
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_js_10.Integrations(this._options)));
|
|
105
110
|
}
|
|
106
111
|
get listing() {
|
|
107
112
|
var _a;
|
|
108
|
-
return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new
|
|
113
|
+
return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new Client_js_11.Listing(this._options)));
|
|
109
114
|
}
|
|
110
115
|
get notifications() {
|
|
111
116
|
var _a;
|
|
112
|
-
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new
|
|
117
|
+
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_js_12.Notifications(this._options)));
|
|
113
118
|
}
|
|
114
119
|
get operations() {
|
|
115
120
|
var _a;
|
|
116
|
-
return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new
|
|
121
|
+
return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new Client_js_13.Operations(this._options)));
|
|
117
122
|
}
|
|
118
123
|
get shipping() {
|
|
119
124
|
var _a;
|
|
120
|
-
return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new
|
|
125
|
+
return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new Client_js_14.Shipping(this._options)));
|
|
121
126
|
}
|
|
122
127
|
get shippingIntegrations() {
|
|
123
128
|
var _a;
|
|
124
|
-
return ((_a = this._shippingIntegrations) !== null && _a !== void 0 ? _a : (this._shippingIntegrations = new
|
|
129
|
+
return ((_a = this._shippingIntegrations) !== null && _a !== void 0 ? _a : (this._shippingIntegrations = new Client_js_15.ShippingIntegrations(this._options)));
|
|
125
130
|
}
|
|
126
131
|
get tracking() {
|
|
127
132
|
var _a;
|
|
128
|
-
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new
|
|
133
|
+
return ((_a = this._tracking) !== null && _a !== void 0 ? _a : (this._tracking = new Client_js_16.Tracking(this._options)));
|
|
129
134
|
}
|
|
130
135
|
get trackingIntegrations() {
|
|
131
136
|
var _a;
|
|
132
|
-
return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new
|
|
137
|
+
return ((_a = this._trackingIntegrations) !== null && _a !== void 0 ? _a : (this._trackingIntegrations = new Client_js_17.TrackingIntegrations(this._options)));
|
|
133
138
|
}
|
|
134
139
|
get users() {
|
|
135
140
|
var _a;
|
|
136
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
141
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_18.Users(this._options)));
|
|
137
142
|
}
|
|
138
143
|
}
|
|
139
144
|
exports.ChrtClient = ChrtClient;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Livekit } from "../resources/livekit/client/Client.js";
|
|
7
7
|
export declare namespace Agent {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -17,7 +17,7 @@ export declare namespace Agent {
|
|
|
17
17
|
}
|
|
18
18
|
export declare class Agent {
|
|
19
19
|
protected readonly _options: Agent.Options;
|
|
20
|
-
protected
|
|
20
|
+
protected _livekit: Livekit | undefined;
|
|
21
21
|
constructor(_options?: Agent.Options);
|
|
22
|
-
get
|
|
22
|
+
get livekit(): Livekit;
|
|
23
23
|
}
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Agent = void 0;
|
|
7
|
-
const Client_js_1 = require("../resources/
|
|
7
|
+
const Client_js_1 = require("../resources/livekit/client/Client.js");
|
|
8
8
|
class Agent {
|
|
9
9
|
constructor(_options = {}) {
|
|
10
10
|
this._options = _options;
|
|
11
11
|
}
|
|
12
|
-
get
|
|
12
|
+
get livekit() {
|
|
13
13
|
var _a;
|
|
14
|
-
return ((_a = this.
|
|
14
|
+
return ((_a = this._livekit) !== null && _a !== void 0 ? _a : (this._livekit = new Client_js_1.Livekit(this._options)));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.Agent = Agent;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * from "./orderInformation/client/requests/index.js";
|
|
1
|
+
export * as livekit from "./livekit/index.js";
|
|
@@ -32,10 +32,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
-
};
|
|
38
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
__exportStar(require("./orderInformation/client/requests/index.js"), exports);
|
|
36
|
+
exports.livekit = void 0;
|
|
37
|
+
exports.livekit = __importStar(require("./livekit/index.js"));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import { HelloWorld } from "../resources/helloWorld/client/Client.js";
|
|
7
|
+
export declare namespace Livekit {
|
|
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
|
+
}
|
|
18
|
+
export declare class Livekit {
|
|
19
|
+
protected readonly _options: Livekit.Options;
|
|
20
|
+
protected _helloWorld: HelloWorld | undefined;
|
|
21
|
+
constructor(_options?: Livekit.Options);
|
|
22
|
+
get helloWorld(): HelloWorld;
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Livekit = void 0;
|
|
7
|
+
const Client_js_1 = require("../resources/helloWorld/client/Client.js");
|
|
8
|
+
class Livekit {
|
|
9
|
+
constructor(_options = {}) {
|
|
10
|
+
this._options = _options;
|
|
11
|
+
}
|
|
12
|
+
get helloWorld() {
|
|
13
|
+
var _a;
|
|
14
|
+
return ((_a = this._helloWorld) !== null && _a !== void 0 ? _a : (this._helloWorld = new Client_js_1.HelloWorld(this._options)));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.Livekit = Livekit;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
package/dist/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/Client.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../../../index.js";
|
|
7
|
+
export declare namespace HelloWorld {
|
|
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 HelloWorld {
|
|
31
|
+
protected readonly _options: HelloWorld.Options;
|
|
32
|
+
constructor(_options?: HelloWorld.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Creates a LiveKit room token that also dispatches the hello-world voice agent into the room. | () -> (LiveKitHelloWorldStartRes)
|
|
35
|
+
*
|
|
36
|
+
* @param {HelloWorld.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.agent.livekit.helloWorld.startV1()
|
|
40
|
+
*/
|
|
41
|
+
startV1(requestOptions?: HelloWorld.RequestOptions): core.HttpResponsePromise<Chrt.LiveKitHelloWorldStartRes>;
|
|
42
|
+
private __startV1;
|
|
43
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.HelloWorld = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../../../core/index.js"));
|
|
51
|
+
const headers_js_1 = require("../../../../../../../../core/headers.js");
|
|
52
|
+
const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
53
|
+
class HelloWorld {
|
|
54
|
+
constructor(_options = {}) {
|
|
55
|
+
this._options = _options;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Creates a LiveKit room token that also dispatches the hello-world voice agent into the room. | () -> (LiveKitHelloWorldStartRes)
|
|
59
|
+
*
|
|
60
|
+
* @param {HelloWorld.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await client.agent.livekit.helloWorld.startV1()
|
|
64
|
+
*/
|
|
65
|
+
startV1(requestOptions) {
|
|
66
|
+
return core.HttpResponsePromise.fromPromise(this.__startV1(requestOptions));
|
|
67
|
+
}
|
|
68
|
+
__startV1(requestOptions) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
var _a, _b, _c, _d;
|
|
71
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
72
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
73
|
+
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, "agent/livekit/hello_world/start/v1"),
|
|
74
|
+
method: "POST",
|
|
75
|
+
headers: _headers,
|
|
76
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
77
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
78
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
79
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
80
|
+
});
|
|
81
|
+
if (_response.ok) {
|
|
82
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
83
|
+
}
|
|
84
|
+
if (_response.error.reason === "status-code") {
|
|
85
|
+
throw new errors.ChrtError({
|
|
86
|
+
statusCode: _response.error.statusCode,
|
|
87
|
+
body: _response.error.body,
|
|
88
|
+
rawResponse: _response.rawResponse,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
switch (_response.error.reason) {
|
|
92
|
+
case "non-json":
|
|
93
|
+
throw new errors.ChrtError({
|
|
94
|
+
statusCode: _response.error.statusCode,
|
|
95
|
+
body: _response.error.rawBody,
|
|
96
|
+
rawResponse: _response.rawResponse,
|
|
97
|
+
});
|
|
98
|
+
case "timeout":
|
|
99
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /agent/livekit/hello_world/start/v1.");
|
|
100
|
+
case "unknown":
|
|
101
|
+
throw new errors.ChrtError({
|
|
102
|
+
message: _response.error.errorMessage,
|
|
103
|
+
rawResponse: _response.rawResponse,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
_getAuthorizationHeader() {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
110
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
111
|
+
if (bearer != null) {
|
|
112
|
+
return `Bearer ${bearer}`;
|
|
113
|
+
}
|
|
114
|
+
return undefined;
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.HelloWorld = HelloWorld;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as helloWorld from "./helloWorld/index.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.helloWorld = void 0;
|
|
37
|
+
exports.helloWorld = __importStar(require("./helloWorld/index.js"));
|