@chrt-inc/typescript-sdk 1.1027.0 → 1.1037.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.d.ts +3 -3
- package/dist/cjs/Client.js +19 -19
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/client/Client.js +7 -2
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.d.ts +88 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.js +269 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.js +17 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.d.ts +18 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.d.ts +12 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.js +5 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.js +1 -1
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/index.js +3 -1
- package/dist/cjs/api/resources/chrtGpt/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/chrtGpt/client/Client.js +5 -0
- package/dist/cjs/api/resources/chrtGpt/resources/conversations/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/chrtGpt/resources/conversations/client/Client.js +7 -3
- package/dist/cjs/api/resources/chrtGpt/resources/conversations/client/requests/ConversationsListV1Request.d.ts +4 -1
- package/dist/cjs/api/resources/chrtGpt/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/chrtGpt/resources/index.js +3 -1
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/Client.js +132 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/index.js +17 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.d.ts +13 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.js +5 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/chrtGpt/resources/voice/index.d.ts +1 -0
- package/dist/cjs/api/resources/{agent/resources/livekit → chrtGpt/resources/voice}/index.js +0 -1
- package/dist/cjs/api/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/index.js +2 -2
- package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.js +7 -7
- package/dist/cjs/api/resources/livekit/resources/helloWorld/client/index.js +2 -0
- package/dist/cjs/api/resources/livekit/resources/helloWorld/index.d.ts +1 -0
- package/dist/cjs/api/resources/livekit/resources/helloWorld/index.js +17 -0
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/client/Client.js +19 -14
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.d.ts +137 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.js +528 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.d.ts +12 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.d.ts +27 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.d.ts +12 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.d.ts +13 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.d.ts +13 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/airWaybillStockNumbers/index.js +17 -0
- package/dist/cjs/api/resources/orgs/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/resources/index.js +3 -1
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/AirWaybillStockNumber1.d.ts +21 -0
- package/dist/cjs/api/types/AirWaybillStockNumber1.js +5 -0
- package/dist/cjs/api/types/AirWaybillStockNumberListRes.d.ts +8 -0
- package/dist/cjs/api/types/AirWaybillStockNumberListRes.js +5 -0
- package/dist/cjs/api/types/AirWaybillStockNumberSortByEnum.d.ts +9 -0
- package/dist/cjs/api/types/AirWaybillStockNumberSortByEnum.js +11 -0
- package/dist/cjs/api/types/AirWaybillStockNumberStatusEnum1.d.ts +10 -0
- package/dist/cjs/api/types/AirWaybillStockNumberStatusEnum1.js +12 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersAddRes.d.ts +8 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersAddRes.js +5 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersSummaryRes.d.ts +10 -0
- package/dist/cjs/api/types/AirWaybillStockNumbersSummaryRes.js +5 -0
- package/dist/cjs/api/types/Caller.d.ts +1 -0
- package/dist/cjs/api/{resources/cargoOnFlightIntegrations/resources/cargoai/client/requests → types}/CargoOnFlightBookingSearchClientCreate1.d.ts +0 -10
- package/dist/cjs/api/types/CargoOnFlightBookingSearchClientCreate1.js +5 -0
- package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.d.ts +2 -1
- package/dist/cjs/api/types/CargoOnFlightIntegrationEnum1.js +1 -0
- package/dist/cjs/api/types/ChrtGptVoiceDelegationEnum.d.ts +11 -0
- package/dist/cjs/api/types/ChrtGptVoiceDelegationEnum.js +10 -0
- package/dist/cjs/api/types/ChrtGptVoiceReq.d.ts +11 -0
- package/dist/cjs/api/types/ChrtGptVoiceReq.js +5 -0
- package/dist/cjs/api/types/ChrtGptVoiceStartRes.d.ts +9 -0
- package/dist/cjs/api/types/ChrtGptVoiceStartRes.js +5 -0
- package/dist/cjs/api/types/InternalDelegationOriginEnum.d.ts +8 -0
- package/dist/cjs/api/types/InternalDelegationOriginEnum.js +10 -0
- package/dist/cjs/api/types/index.d.ts +11 -0
- package/dist/cjs/api/types/index.js +11 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -3
- package/dist/esm/Client.mjs +7 -7
- package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/client/Client.mjs +5 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.d.mts +88 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/Client.mjs +232 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.d.mts +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/index.mjs +1 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.d.mts +18 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.d.mts +12 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaCancelReq.mjs +4 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/airCanada/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/Client.mjs +1 -1
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/cargoai/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/index.mjs +2 -0
- package/dist/esm/api/resources/chrtGpt/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/chrtGpt/client/Client.mjs +5 -0
- package/dist/esm/api/resources/chrtGpt/resources/conversations/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/chrtGpt/resources/conversations/client/Client.mjs +7 -3
- package/dist/esm/api/resources/chrtGpt/resources/conversations/client/requests/ConversationsListV1Request.d.mts +4 -1
- package/dist/esm/api/resources/chrtGpt/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/chrtGpt/resources/index.mjs +2 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/Client.mjs +95 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/index.d.mts +2 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/index.mjs +1 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.d.mts +13 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.mjs +4 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/index.d.mts +1 -0
- package/dist/esm/api/resources/chrtGpt/resources/voice/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/index.mjs +1 -1
- package/dist/esm/api/resources/{agent/resources/livekit → livekit}/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/helloWorld/client/Client.mjs +7 -7
- package/dist/esm/api/resources/livekit/resources/helloWorld/index.d.mts +1 -0
- package/dist/esm/api/resources/livekit/resources/helloWorld/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/orgs/client/Client.mjs +5 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.d.mts +137 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/Client.mjs +491 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.d.mts +12 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersAddReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.d.mts +27 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersListV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.d.mts +12 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkAvailableReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.d.mts +13 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersMarkUsedReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.d.mts +13 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/AirWaybillStockNumbersVoidReq.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/airWaybillStockNumbers/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/resources/index.mjs +2 -0
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/cargoOnFlightBookings/client/requests/CargoOnFlightBookingClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/AirWaybillStockNumber1.d.mts +21 -0
- package/dist/esm/api/types/AirWaybillStockNumber1.mjs +4 -0
- package/dist/esm/api/types/AirWaybillStockNumberListRes.d.mts +8 -0
- package/dist/esm/api/types/AirWaybillStockNumberListRes.mjs +4 -0
- package/dist/esm/api/types/AirWaybillStockNumberSortByEnum.d.mts +9 -0
- package/dist/esm/api/types/AirWaybillStockNumberSortByEnum.mjs +8 -0
- package/dist/esm/api/types/AirWaybillStockNumberStatusEnum1.d.mts +10 -0
- package/dist/esm/api/types/AirWaybillStockNumberStatusEnum1.mjs +9 -0
- package/dist/esm/api/types/AirWaybillStockNumbersAddRes.d.mts +8 -0
- package/dist/esm/api/types/AirWaybillStockNumbersAddRes.mjs +4 -0
- package/dist/esm/api/types/AirWaybillStockNumbersSummaryRes.d.mts +10 -0
- package/dist/esm/api/types/AirWaybillStockNumbersSummaryRes.mjs +4 -0
- package/dist/esm/api/types/Caller.d.mts +1 -0
- package/dist/esm/api/{resources/cargoOnFlightIntegrations/resources/cargoai/client/requests → types}/CargoOnFlightBookingSearchClientCreate1.d.mts +0 -10
- package/dist/esm/api/types/CargoOnFlightBookingSearchClientCreate1.mjs +4 -0
- package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.d.mts +2 -1
- package/dist/esm/api/types/CargoOnFlightIntegrationEnum1.mjs +1 -0
- package/dist/esm/api/types/ChrtGptVoiceDelegationEnum.d.mts +11 -0
- package/dist/esm/api/types/ChrtGptVoiceDelegationEnum.mjs +7 -0
- package/dist/esm/api/types/ChrtGptVoiceReq.d.mts +11 -0
- package/dist/esm/api/types/ChrtGptVoiceReq.mjs +4 -0
- package/dist/esm/api/types/ChrtGptVoiceStartRes.d.mts +9 -0
- package/dist/esm/api/types/ChrtGptVoiceStartRes.mjs +4 -0
- package/dist/esm/api/types/InternalDelegationOriginEnum.d.mts +8 -0
- package/dist/esm/api/types/InternalDelegationOriginEnum.mjs +7 -0
- package/dist/esm/api/types/index.d.mts +11 -0
- package/dist/esm/api/types/index.mjs +11 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +2050 -1305
- package/dist/cjs/api/resources/agent/client/Client.d.ts +0 -23
- package/dist/cjs/api/resources/agent/client/Client.js +0 -17
- package/dist/cjs/api/resources/agent/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/agent/resources/index.js +0 -37
- package/dist/cjs/api/resources/agent/resources/livekit/index.d.ts +0 -2
- package/dist/esm/api/resources/agent/client/Client.d.mts +0 -23
- package/dist/esm/api/resources/agent/client/Client.mjs +0 -13
- package/dist/esm/api/resources/agent/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/agent/resources/index.mjs +0 -1
- package/dist/esm/api/resources/agent/resources/livekit/index.d.mts +0 -2
- package/dist/esm/api/resources/agent/resources/livekit/index.mjs +0 -2
- /package/dist/cjs/api/resources/cargoOnFlightIntegrations/resources/{cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.js → airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.js} +0 -0
- /package/dist/cjs/api/resources/{agent/client → cargoOnFlightIntegrations/resources/airCanada/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit/client → chrtGpt/resources/voice/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/client/Client.js +0 -0
- /package/dist/cjs/api/resources/{agent → livekit}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit/resources/helloWorld → livekit}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{agent → livekit}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent → livekit}/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit → livekit/resources/helloWorld}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit → livekit}/resources/index.js +0 -0
- /package/dist/esm/api/resources/cargoOnFlightIntegrations/resources/{cargoai/client/requests/CargoOnFlightBookingSearchClientCreate1.mjs → airCanada/client/requests/CargoOnFlightIntegrationsAirCanadaBookReq.mjs} +0 -0
- /package/dist/esm/api/resources/{agent/client → cargoOnFlightIntegrations/resources/airCanada/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld → cargoOnFlightIntegrations/resources/airCanada}/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/client → chrtGpt/resources/voice/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit → livekit}/client/Client.mjs +0 -0
- /package/dist/esm/api/resources/{agent → livekit}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld → livekit}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent → livekit}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agent → livekit}/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit → livekit/resources/helloWorld}/client/index.d.mts +0 -0
- /package/dist/{cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/index.d.ts → esm/api/resources/livekit/resources/helloWorld/client/index.mjs} +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit → livekit}/resources/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld/client/index.d.mts → orgs/resources/airWaybillStockNumbers/client/requests/index.mjs} +0 -0
|
@@ -87,7 +87,7 @@ export class Conversations {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Lists the caller's ChrtGPT conversations, most recently active first by default. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (ChrtGPTConversationListRes)
|
|
90
|
+
* Lists the caller's ChrtGPT conversations, most recently active first by default, with optional search over summaries, titles, and order identifiers. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (ChrtGPTConversationListRes)
|
|
91
91
|
*
|
|
92
92
|
* @param {Chrt.chrtGpt.ConversationsListV1Request} request
|
|
93
93
|
* @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -99,7 +99,8 @@ export class Conversations {
|
|
|
99
99
|
* sort_by: "updated_at",
|
|
100
100
|
* sort_order: "asc",
|
|
101
101
|
* page: 1,
|
|
102
|
-
* page_size: 1
|
|
102
|
+
* page_size: 1,
|
|
103
|
+
* search: "search"
|
|
103
104
|
* })
|
|
104
105
|
*/
|
|
105
106
|
listV1(request = {}, requestOptions) {
|
|
@@ -108,7 +109,7 @@ export class Conversations {
|
|
|
108
109
|
__listV1() {
|
|
109
110
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
110
111
|
var _a, _b, _c, _d, _e, _f;
|
|
111
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize } = request;
|
|
112
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search } = request;
|
|
112
113
|
const _queryParams = {};
|
|
113
114
|
if (sortBy !== undefined) {
|
|
114
115
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -122,6 +123,9 @@ export class Conversations {
|
|
|
122
123
|
if (pageSize !== undefined) {
|
|
123
124
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
124
125
|
}
|
|
126
|
+
if (search !== undefined) {
|
|
127
|
+
_queryParams["search"] = search;
|
|
128
|
+
}
|
|
125
129
|
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);
|
|
126
130
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
127
131
|
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, "chrt_gpt/conversations/list/v1"),
|
|
@@ -8,7 +8,8 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
8
8
|
* sort_by: "updated_at",
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
|
-
* page_size: 1
|
|
11
|
+
* page_size: 1,
|
|
12
|
+
* search: "search"
|
|
12
13
|
* }
|
|
13
14
|
*/
|
|
14
15
|
export interface ConversationsListV1Request {
|
|
@@ -18,4 +19,6 @@ export interface ConversationsListV1Request {
|
|
|
18
19
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
19
20
|
page?: number | null;
|
|
20
21
|
page_size?: number | null;
|
|
22
|
+
/** Full-text search query for conversation summary, title, order short IDs, AWB numbers, or off-CHRT reference IDs. */
|
|
23
|
+
search?: string | null;
|
|
21
24
|
}
|
|
@@ -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 Voice {
|
|
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 Voice {
|
|
31
|
+
protected readonly _options: Voice.Options;
|
|
32
|
+
constructor(_options?: Voice.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Creates a LiveKit room with a ChrtGPT voice agent acting as the caller, using the chosen delegation, and returns a token to join it. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTVoiceStartReq) -> (ChrtGPTVoiceStartRes)
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.chrtGpt.ChrtGptVoiceStartReq} request
|
|
37
|
+
* @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.chrtGpt.voice.startV1({
|
|
43
|
+
* delegation: "responses"
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
startV1(request: Chrt.chrtGpt.ChrtGptVoiceStartReq, requestOptions?: Voice.RequestOptions): core.HttpResponsePromise<Chrt.ChrtGptVoiceStartRes>;
|
|
47
|
+
private __startV1;
|
|
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 Voice {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Creates a LiveKit room with a ChrtGPT voice agent acting as the caller, using the chosen delegation, and returns a token to join it. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTVoiceStartReq) -> (ChrtGPTVoiceStartRes)
|
|
24
|
+
*
|
|
25
|
+
* @param {Chrt.chrtGpt.ChrtGptVoiceStartReq} request
|
|
26
|
+
* @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.chrtGpt.voice.startV1({
|
|
32
|
+
* delegation: "responses"
|
|
33
|
+
* })
|
|
34
|
+
*/
|
|
35
|
+
startV1(request, requestOptions) {
|
|
36
|
+
return core.HttpResponsePromise.fromPromise(this.__startV1(request, requestOptions));
|
|
37
|
+
}
|
|
38
|
+
__startV1(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/voice/start/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/voice/start/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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
package/dist/esm/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.d.mts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
* delegation: "responses"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface ChrtGptVoiceStartReq {
|
|
12
|
+
delegation: Chrt.ChrtGptVoiceDelegationEnum;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ChrtGptVoiceStartReq } from "./ChrtGptVoiceStartReq.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -3,13 +3,13 @@ export * as shipping from "./shipping/index.mjs";
|
|
|
3
3
|
export * as chrtGpt from "./chrtGpt/index.mjs";
|
|
4
4
|
export * as flights from "./flights/index.mjs";
|
|
5
5
|
export * as utils from "./utils/index.mjs";
|
|
6
|
-
export * as agent from "./agent/index.mjs";
|
|
7
6
|
export * as analytics from "./analytics/index.mjs";
|
|
8
7
|
export * as billing from "./billing/index.mjs";
|
|
9
8
|
export * as billingNew from "./billingNew/index.mjs";
|
|
10
9
|
export * as cargoOnFlightIntegrations from "./cargoOnFlightIntegrations/index.mjs";
|
|
11
10
|
export * as integrations from "./integrations/index.mjs";
|
|
12
11
|
export * as listing from "./listing/index.mjs";
|
|
12
|
+
export * as livekit from "./livekit/index.mjs";
|
|
13
13
|
export * as notifications from "./notifications/index.mjs";
|
|
14
14
|
export * as operations from "./operations/index.mjs";
|
|
15
15
|
export * as shippingIntegrations from "./shippingIntegrations/index.mjs";
|
|
@@ -3,13 +3,13 @@ export * as shipping from "./shipping/index.mjs";
|
|
|
3
3
|
export * as chrtGpt from "./chrtGpt/index.mjs";
|
|
4
4
|
export * as flights from "./flights/index.mjs";
|
|
5
5
|
export * as utils from "./utils/index.mjs";
|
|
6
|
-
export * as agent from "./agent/index.mjs";
|
|
7
6
|
export * as analytics from "./analytics/index.mjs";
|
|
8
7
|
export * as billing from "./billing/index.mjs";
|
|
9
8
|
export * as billingNew from "./billingNew/index.mjs";
|
|
10
9
|
export * as cargoOnFlightIntegrations from "./cargoOnFlightIntegrations/index.mjs";
|
|
11
10
|
export * as integrations from "./integrations/index.mjs";
|
|
12
11
|
export * as listing from "./listing/index.mjs";
|
|
12
|
+
export * as livekit from "./livekit/index.mjs";
|
|
13
13
|
export * as notifications from "./notifications/index.mjs";
|
|
14
14
|
export * as operations from "./operations/index.mjs";
|
|
15
15
|
export * as shippingIntegrations from "./shippingIntegrations/index.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as environments from "
|
|
5
|
-
import * as core from "
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
6
|
import { HelloWorld } from "../resources/helloWorld/client/Client.mjs";
|
|
7
7
|
export declare namespace Livekit {
|
|
8
8
|
interface Options {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as environments from "
|
|
5
|
-
import * as core from "
|
|
6
|
-
import * as Chrt from "
|
|
4
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../../../index.mjs";
|
|
7
7
|
export declare namespace HelloWorld {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -36,7 +36,7 @@ export declare class HelloWorld {
|
|
|
36
36
|
* @param {HelloWorld.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.
|
|
39
|
+
* await client.livekit.helloWorld.startV1()
|
|
40
40
|
*/
|
|
41
41
|
startV1(requestOptions?: HelloWorld.RequestOptions): core.HttpResponsePromise<Chrt.LiveKitHelloWorldStartRes>;
|
|
42
42
|
private __startV1;
|
|
@@ -10,10 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
|
-
import * as environments from "
|
|
14
|
-
import * as core from "
|
|
15
|
-
import { mergeHeaders, mergeOnlyDefinedHeaders } from "
|
|
16
|
-
import * as errors from "
|
|
13
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
15
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
16
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
17
17
|
export class HelloWorld {
|
|
18
18
|
constructor(_options = {}) {
|
|
19
19
|
this._options = _options;
|
|
@@ -24,7 +24,7 @@ export class HelloWorld {
|
|
|
24
24
|
* @param {HelloWorld.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await client.
|
|
27
|
+
* await client.livekit.helloWorld.startV1()
|
|
28
28
|
*/
|
|
29
29
|
startV1(requestOptions) {
|
|
30
30
|
return core.HttpResponsePromise.fromPromise(this.__startV1(requestOptions));
|
|
@@ -34,7 +34,7 @@ export class HelloWorld {
|
|
|
34
34
|
var _a, _b, _c, _d;
|
|
35
35
|
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);
|
|
36
36
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
37
|
-
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, "
|
|
37
|
+
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, "livekit/hello_world/start/v1"),
|
|
38
38
|
method: "POST",
|
|
39
39
|
headers: _headers,
|
|
40
40
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -60,7 +60,7 @@ export class HelloWorld {
|
|
|
60
60
|
rawResponse: _response.rawResponse,
|
|
61
61
|
});
|
|
62
62
|
case "timeout":
|
|
63
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /
|
|
63
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /livekit/hello_world/start/v1.");
|
|
64
64
|
case "unknown":
|
|
65
65
|
throw new errors.ChrtError({
|
|
66
66
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -5,6 +5,7 @@ import * as environments from "../../../../environments.mjs";
|
|
|
5
5
|
import * as core from "../../../../core/index.mjs";
|
|
6
6
|
import * as Chrt from "../../../index.mjs";
|
|
7
7
|
import { Accounts } from "../resources/accounts/client/Client.mjs";
|
|
8
|
+
import { AirWaybillStockNumbers } from "../resources/airWaybillStockNumbers/client/Client.mjs";
|
|
8
9
|
import { ComplianceDocuments } from "../resources/complianceDocuments/client/Client.mjs";
|
|
9
10
|
import { Connections } from "../resources/connections/client/Client.mjs";
|
|
10
11
|
import { Contacts } from "../resources/contacts/client/Client.mjs";
|
|
@@ -38,6 +39,7 @@ export declare namespace Orgs {
|
|
|
38
39
|
export declare class Orgs {
|
|
39
40
|
protected readonly _options: Orgs.Options;
|
|
40
41
|
protected _accounts: Accounts | undefined;
|
|
42
|
+
protected _airWaybillStockNumbers: AirWaybillStockNumbers | undefined;
|
|
41
43
|
protected _complianceDocuments: ComplianceDocuments | undefined;
|
|
42
44
|
protected _connections: Connections | undefined;
|
|
43
45
|
protected _contacts: Contacts | undefined;
|
|
@@ -47,6 +49,7 @@ export declare class Orgs {
|
|
|
47
49
|
protected _publicData: PublicData | undefined;
|
|
48
50
|
constructor(_options?: Orgs.Options);
|
|
49
51
|
get accounts(): Accounts;
|
|
52
|
+
get airWaybillStockNumbers(): AirWaybillStockNumbers;
|
|
50
53
|
get complianceDocuments(): ComplianceDocuments;
|
|
51
54
|
get connections(): Connections;
|
|
52
55
|
get contacts(): Contacts;
|
|
@@ -16,6 +16,7 @@ import * as Chrt from "../../../index.mjs";
|
|
|
16
16
|
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
18
18
|
import { Accounts } from "../resources/accounts/client/Client.mjs";
|
|
19
|
+
import { AirWaybillStockNumbers } from "../resources/airWaybillStockNumbers/client/Client.mjs";
|
|
19
20
|
import { ComplianceDocuments } from "../resources/complianceDocuments/client/Client.mjs";
|
|
20
21
|
import { Connections } from "../resources/connections/client/Client.mjs";
|
|
21
22
|
import { Contacts } from "../resources/contacts/client/Client.mjs";
|
|
@@ -31,6 +32,10 @@ export class Orgs {
|
|
|
31
32
|
var _a;
|
|
32
33
|
return ((_a = this._accounts) !== null && _a !== void 0 ? _a : (this._accounts = new Accounts(this._options)));
|
|
33
34
|
}
|
|
35
|
+
get airWaybillStockNumbers() {
|
|
36
|
+
var _a;
|
|
37
|
+
return ((_a = this._airWaybillStockNumbers) !== null && _a !== void 0 ? _a : (this._airWaybillStockNumbers = new AirWaybillStockNumbers(this._options)));
|
|
38
|
+
}
|
|
34
39
|
get complianceDocuments() {
|
|
35
40
|
var _a;
|
|
36
41
|
return ((_a = this._complianceDocuments) !== null && _a !== void 0 ? _a : (this._complianceDocuments = new ComplianceDocuments(this._options)));
|
|
@@ -0,0 +1,137 @@
|
|
|
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 AirWaybillStockNumbers {
|
|
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 AirWaybillStockNumbers {
|
|
31
|
+
protected readonly _options: AirWaybillStockNumbers.Options;
|
|
32
|
+
constructor(_options?: AirWaybillStockNumbers.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Adds AWB numbers an airline gave the caller's organization to its AWB stock, skipping numbers already in it. | authz: min_org_role=operator | (AirWaybillStockNumbersAddReq) -> (AirWaybillStockNumbersAddRes)
|
|
35
|
+
*
|
|
36
|
+
* @param {Chrt.orgs.AirWaybillStockNumbersAddReq} request
|
|
37
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.orgs.airWaybillStockNumbers.addV1({
|
|
43
|
+
* awb_numbers: ["awb_numbers"]
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
addV1(request: Chrt.orgs.AirWaybillStockNumbersAddReq, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumbersAddRes>;
|
|
47
|
+
private __addV1;
|
|
48
|
+
/**
|
|
49
|
+
* Deletes an available AWB number from the caller's organization's AWB stock, e.g. one added by mistake. | authz: min_org_role=operator | () -> (bool)
|
|
50
|
+
*
|
|
51
|
+
* @param {string} airWaybillStockNumberId
|
|
52
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* await client.orgs.airWaybillStockNumbers.deleteV1("air_waybill_stock_number_id")
|
|
58
|
+
*/
|
|
59
|
+
deleteV1(airWaybillStockNumberId: string, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
60
|
+
private __deleteV1;
|
|
61
|
+
/**
|
|
62
|
+
* Lists the AWB numbers in the caller's organization's AWB stock, by airline prefix and status. | () -> (AirWaybillStockNumberListRes)
|
|
63
|
+
*
|
|
64
|
+
* @param {Chrt.orgs.AirWaybillStockNumbersListV1Request} request
|
|
65
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.orgs.airWaybillStockNumbers.listV1({
|
|
71
|
+
* filter_awb_prefix: "filter_awb_prefix",
|
|
72
|
+
* filter_status: ["available"],
|
|
73
|
+
* sort_by: "awb_number",
|
|
74
|
+
* sort_order: "asc",
|
|
75
|
+
* page: 1,
|
|
76
|
+
* page_size: 1
|
|
77
|
+
* })
|
|
78
|
+
*/
|
|
79
|
+
listV1(request?: Chrt.orgs.AirWaybillStockNumbersListV1Request, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumberListRes>;
|
|
80
|
+
private __listV1;
|
|
81
|
+
/**
|
|
82
|
+
* Marks AWB numbers of the caller's organization's AWB stock as available, whatever their status, taking them off their booking. | authz: min_org_role=operator | (AirWaybillStockNumbersMarkAvailableReq) -> (list[AirWaybillStockNumber1])
|
|
83
|
+
*
|
|
84
|
+
* @param {Chrt.orgs.AirWaybillStockNumbersMarkAvailableReq} request
|
|
85
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* await client.orgs.airWaybillStockNumbers.markAvailableV1({
|
|
91
|
+
* awb_numbers: ["awb_numbers"]
|
|
92
|
+
* })
|
|
93
|
+
*/
|
|
94
|
+
markAvailableV1(request: Chrt.orgs.AirWaybillStockNumbersMarkAvailableReq, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumber1[]>;
|
|
95
|
+
private __markAvailableV1;
|
|
96
|
+
/**
|
|
97
|
+
* Marks AWB numbers of the caller's organization's AWB stock as used, whatever their status, e.g. booked outside CHRT. | authz: min_org_role=operator | (AirWaybillStockNumbersMarkUsedReq) -> (list[AirWaybillStockNumber1])
|
|
98
|
+
*
|
|
99
|
+
* @param {Chrt.orgs.AirWaybillStockNumbersMarkUsedReq} request
|
|
100
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* await client.orgs.airWaybillStockNumbers.markUsedV1({
|
|
106
|
+
* awb_numbers: ["awb_numbers"]
|
|
107
|
+
* })
|
|
108
|
+
*/
|
|
109
|
+
markUsedV1(request: Chrt.orgs.AirWaybillStockNumbersMarkUsedReq, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumber1[]>;
|
|
110
|
+
private __markUsedV1;
|
|
111
|
+
/**
|
|
112
|
+
* Counts the caller's organization's AWB stock per airline prefix and status. | () -> (list[AirWaybillStockNumbersSummaryRes])
|
|
113
|
+
*
|
|
114
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* await client.orgs.airWaybillStockNumbers.summaryV1()
|
|
118
|
+
*/
|
|
119
|
+
summaryV1(requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumbersSummaryRes[]>;
|
|
120
|
+
private __summaryV1;
|
|
121
|
+
/**
|
|
122
|
+
* Voids available AWB numbers of the caller's organization's AWB stock, e.g. spoiled or returned to the airline. | authz: min_org_role=operator | (AirWaybillStockNumbersVoidReq) -> (list[AirWaybillStockNumber1])
|
|
123
|
+
*
|
|
124
|
+
* @param {Chrt.orgs.AirWaybillStockNumbersVoidReq} request
|
|
125
|
+
* @param {AirWaybillStockNumbers.RequestOptions} requestOptions - Request-specific configuration.
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* await client.orgs.airWaybillStockNumbers.voidV1({
|
|
131
|
+
* awb_numbers: ["awb_numbers"]
|
|
132
|
+
* })
|
|
133
|
+
*/
|
|
134
|
+
voidV1(request: Chrt.orgs.AirWaybillStockNumbersVoidReq, requestOptions?: AirWaybillStockNumbers.RequestOptions): core.HttpResponsePromise<Chrt.AirWaybillStockNumber1[]>;
|
|
135
|
+
private __voidV1;
|
|
136
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
137
|
+
}
|