@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
|
@@ -5,6 +5,7 @@ import * as environments from "../../../../environments.js";
|
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
6
|
import * as Chrt from "../../../index.js";
|
|
7
7
|
import { Conversations } from "../resources/conversations/client/Client.js";
|
|
8
|
+
import { Voice } from "../resources/voice/client/Client.js";
|
|
8
9
|
export declare namespace ChrtGpt {
|
|
9
10
|
interface Options {
|
|
10
11
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -31,8 +32,10 @@ export declare namespace ChrtGpt {
|
|
|
31
32
|
export declare class ChrtGpt {
|
|
32
33
|
protected readonly _options: ChrtGpt.Options;
|
|
33
34
|
protected _conversations: Conversations | undefined;
|
|
35
|
+
protected _voice: Voice | undefined;
|
|
34
36
|
constructor(_options?: ChrtGpt.Options);
|
|
35
37
|
get conversations(): Conversations;
|
|
38
|
+
get voice(): Voice;
|
|
36
39
|
/**
|
|
37
40
|
* Sends a message to ChrtGPT and streams its reply, starting a new conversation when no conversation_id is given. In the background, retitles the conversation after each of its first 3 turns and updates its summary and order identifiers after every turn. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTReq) -> (stream[ChrtGPTEvent])
|
|
38
41
|
*/
|
|
@@ -52,6 +52,7 @@ const Chrt = __importStar(require("../../../index.js"));
|
|
|
52
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
54
|
const Client_js_1 = require("../resources/conversations/client/Client.js");
|
|
55
|
+
const Client_js_2 = require("../resources/voice/client/Client.js");
|
|
55
56
|
class ChrtGpt {
|
|
56
57
|
constructor(_options = {}) {
|
|
57
58
|
this._options = _options;
|
|
@@ -60,6 +61,10 @@ class ChrtGpt {
|
|
|
60
61
|
var _a;
|
|
61
62
|
return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_js_1.Conversations(this._options)));
|
|
62
63
|
}
|
|
64
|
+
get voice() {
|
|
65
|
+
var _a;
|
|
66
|
+
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_js_2.Voice(this._options)));
|
|
67
|
+
}
|
|
63
68
|
/**
|
|
64
69
|
* Sends a message to ChrtGPT and streams its reply, starting a new conversation when no conversation_id is given. In the background, retitles the conversation after each of its first 3 turns and updates its summary and order identifiers after every turn. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | (ChrtGPTReq) -> (stream[ChrtGPTEvent])
|
|
65
70
|
*/
|
|
@@ -46,7 +46,7 @@ export declare class Conversations {
|
|
|
46
46
|
deleteManyV1(request: Chrt.chrtGpt.ChrtGptConversationsDeleteManyReq, requestOptions?: Conversations.RequestOptions): core.HttpResponsePromise<Chrt.ChrtGptConversationsDeleteManyRes>;
|
|
47
47
|
private __deleteManyV1;
|
|
48
48
|
/**
|
|
49
|
-
* Lists the caller's ChrtGPT conversations, most recently active first by default. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (ChrtGPTConversationListRes)
|
|
49
|
+
* Lists the caller's ChrtGPT conversations, most recently active first by default, with optional search over summaries, titles, and order identifiers. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (ChrtGPTConversationListRes)
|
|
50
50
|
*
|
|
51
51
|
* @param {Chrt.chrtGpt.ConversationsListV1Request} request
|
|
52
52
|
* @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -58,7 +58,8 @@ export declare class Conversations {
|
|
|
58
58
|
* sort_by: "updated_at",
|
|
59
59
|
* sort_order: "asc",
|
|
60
60
|
* page: 1,
|
|
61
|
-
* page_size: 1
|
|
61
|
+
* page_size: 1,
|
|
62
|
+
* search: "search"
|
|
62
63
|
* })
|
|
63
64
|
*/
|
|
64
65
|
listV1(request?: Chrt.chrtGpt.ConversationsListV1Request, requestOptions?: Conversations.RequestOptions): core.HttpResponsePromise<Chrt.ChrtGptConversationListRes>;
|
|
@@ -123,7 +123,7 @@ class Conversations {
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
|
-
* Lists the caller's ChrtGPT conversations, most recently active first by default. | authz: allowed_org_types=[shipper, provider], min_org_role=operator | () -> (ChrtGPTConversationListRes)
|
|
126
|
+
* 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)
|
|
127
127
|
*
|
|
128
128
|
* @param {Chrt.chrtGpt.ConversationsListV1Request} request
|
|
129
129
|
* @param {Conversations.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -135,7 +135,8 @@ class Conversations {
|
|
|
135
135
|
* sort_by: "updated_at",
|
|
136
136
|
* sort_order: "asc",
|
|
137
137
|
* page: 1,
|
|
138
|
-
* page_size: 1
|
|
138
|
+
* page_size: 1,
|
|
139
|
+
* search: "search"
|
|
139
140
|
* })
|
|
140
141
|
*/
|
|
141
142
|
listV1(request = {}, requestOptions) {
|
|
@@ -144,7 +145,7 @@ class Conversations {
|
|
|
144
145
|
__listV1() {
|
|
145
146
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
146
147
|
var _a, _b, _c, _d, _e, _f;
|
|
147
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize } = request;
|
|
148
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search } = request;
|
|
148
149
|
const _queryParams = {};
|
|
149
150
|
if (sortBy !== undefined) {
|
|
150
151
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -158,6 +159,9 @@ class Conversations {
|
|
|
158
159
|
if (pageSize !== undefined) {
|
|
159
160
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
160
161
|
}
|
|
162
|
+
if (search !== undefined) {
|
|
163
|
+
_queryParams["search"] = search;
|
|
164
|
+
}
|
|
161
165
|
let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
162
166
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
163
167
|
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.js";
|
|
|
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
|
}
|
|
@@ -36,6 +36,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.conversations = void 0;
|
|
39
|
+
exports.voice = exports.conversations = void 0;
|
|
40
40
|
exports.conversations = __importStar(require("./conversations/index.js"));
|
|
41
|
+
exports.voice = __importStar(require("./voice/index.js"));
|
|
41
42
|
__exportStar(require("./conversations/client/requests/index.js"), exports);
|
|
43
|
+
__exportStar(require("./voice/client/requests/index.js"), exports);
|
|
@@ -0,0 +1,49 @@
|
|
|
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 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,132 @@
|
|
|
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.Voice = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
51
|
+
const Chrt = __importStar(require("../../../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
54
|
+
class Voice {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* 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)
|
|
60
|
+
*
|
|
61
|
+
* @param {Chrt.chrtGpt.ChrtGptVoiceStartReq} request
|
|
62
|
+
* @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.chrtGpt.voice.startV1({
|
|
68
|
+
* delegation: "responses"
|
|
69
|
+
* })
|
|
70
|
+
*/
|
|
71
|
+
startV1(request, requestOptions) {
|
|
72
|
+
return core.HttpResponsePromise.fromPromise(this.__startV1(request, requestOptions));
|
|
73
|
+
}
|
|
74
|
+
__startV1(request, requestOptions) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
var _a, _b, _c, _d;
|
|
77
|
+
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);
|
|
78
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
79
|
+
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"),
|
|
80
|
+
method: "POST",
|
|
81
|
+
headers: _headers,
|
|
82
|
+
contentType: "application/json",
|
|
83
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
84
|
+
requestType: "json",
|
|
85
|
+
body: request,
|
|
86
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
87
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
88
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
89
|
+
});
|
|
90
|
+
if (_response.ok) {
|
|
91
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
92
|
+
}
|
|
93
|
+
if (_response.error.reason === "status-code") {
|
|
94
|
+
switch (_response.error.statusCode) {
|
|
95
|
+
case 422:
|
|
96
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
97
|
+
default:
|
|
98
|
+
throw new errors.ChrtError({
|
|
99
|
+
statusCode: _response.error.statusCode,
|
|
100
|
+
body: _response.error.body,
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
switch (_response.error.reason) {
|
|
106
|
+
case "non-json":
|
|
107
|
+
throw new errors.ChrtError({
|
|
108
|
+
statusCode: _response.error.statusCode,
|
|
109
|
+
body: _response.error.rawBody,
|
|
110
|
+
rawResponse: _response.rawResponse,
|
|
111
|
+
});
|
|
112
|
+
case "timeout":
|
|
113
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /chrt_gpt/voice/start/v1.");
|
|
114
|
+
case "unknown":
|
|
115
|
+
throw new errors.ChrtError({
|
|
116
|
+
message: _response.error.errorMessage,
|
|
117
|
+
rawResponse: _response.rawResponse,
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
_getAuthorizationHeader() {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
125
|
+
if (bearer != null) {
|
|
126
|
+
return `Bearer ${bearer}`;
|
|
127
|
+
}
|
|
128
|
+
return undefined;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
exports.Voice = Voice;
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./requests/index.js"), exports);
|
package/dist/cjs/api/resources/chrtGpt/resources/voice/client/requests/ChrtGptVoiceStartReq.d.ts
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.js";
|
|
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.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -3,13 +3,13 @@ export * as shipping from "./shipping/index.js";
|
|
|
3
3
|
export * as chrtGpt from "./chrtGpt/index.js";
|
|
4
4
|
export * as flights from "./flights/index.js";
|
|
5
5
|
export * as utils from "./utils/index.js";
|
|
6
|
-
export * as agent from "./agent/index.js";
|
|
7
6
|
export * as analytics from "./analytics/index.js";
|
|
8
7
|
export * as billing from "./billing/index.js";
|
|
9
8
|
export * as billingNew from "./billingNew/index.js";
|
|
10
9
|
export * as cargoOnFlightIntegrations from "./cargoOnFlightIntegrations/index.js";
|
|
11
10
|
export * as integrations from "./integrations/index.js";
|
|
12
11
|
export * as listing from "./listing/index.js";
|
|
12
|
+
export * as livekit from "./livekit/index.js";
|
|
13
13
|
export * as notifications from "./notifications/index.js";
|
|
14
14
|
export * as operations from "./operations/index.js";
|
|
15
15
|
export * as shippingIntegrations from "./shippingIntegrations/index.js";
|
|
@@ -36,19 +36,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.users = exports.trackingIntegrations = exports.tracking = exports.shippingIntegrations = exports.operations = exports.notifications = exports.listing = exports.integrations = exports.cargoOnFlightIntegrations = exports.billingNew = exports.billing = exports.analytics = exports.
|
|
39
|
+
exports.users = exports.trackingIntegrations = exports.tracking = exports.shippingIntegrations = exports.operations = exports.notifications = exports.livekit = exports.listing = exports.integrations = exports.cargoOnFlightIntegrations = exports.billingNew = exports.billing = exports.analytics = exports.utils = exports.flights = exports.chrtGpt = exports.shipping = exports.orgs = void 0;
|
|
40
40
|
exports.orgs = __importStar(require("./orgs/index.js"));
|
|
41
41
|
exports.shipping = __importStar(require("./shipping/index.js"));
|
|
42
42
|
exports.chrtGpt = __importStar(require("./chrtGpt/index.js"));
|
|
43
43
|
exports.flights = __importStar(require("./flights/index.js"));
|
|
44
44
|
exports.utils = __importStar(require("./utils/index.js"));
|
|
45
|
-
exports.agent = __importStar(require("./agent/index.js"));
|
|
46
45
|
exports.analytics = __importStar(require("./analytics/index.js"));
|
|
47
46
|
exports.billing = __importStar(require("./billing/index.js"));
|
|
48
47
|
exports.billingNew = __importStar(require("./billingNew/index.js"));
|
|
49
48
|
exports.cargoOnFlightIntegrations = __importStar(require("./cargoOnFlightIntegrations/index.js"));
|
|
50
49
|
exports.integrations = __importStar(require("./integrations/index.js"));
|
|
51
50
|
exports.listing = __importStar(require("./listing/index.js"));
|
|
51
|
+
exports.livekit = __importStar(require("./livekit/index.js"));
|
|
52
52
|
exports.notifications = __importStar(require("./notifications/index.js"));
|
|
53
53
|
exports.operations = __importStar(require("./operations/index.js"));
|
|
54
54
|
exports.shippingIntegrations = __importStar(require("./shippingIntegrations/index.js"));
|
|
@@ -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.js";
|
|
5
|
+
import * as core from "../../../../core/index.js";
|
|
6
6
|
import { HelloWorld } from "../resources/helloWorld/client/Client.js";
|
|
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.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../index.js";
|
|
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;
|
|
@@ -46,10 +46,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.HelloWorld = void 0;
|
|
49
|
-
const environments = __importStar(require("
|
|
50
|
-
const core = __importStar(require("
|
|
51
|
-
const headers_js_1 = require("
|
|
52
|
-
const errors = __importStar(require("
|
|
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
53
|
class HelloWorld {
|
|
54
54
|
constructor(_options = {}) {
|
|
55
55
|
this._options = _options;
|
|
@@ -60,7 +60,7 @@ class HelloWorld {
|
|
|
60
60
|
* @param {HelloWorld.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* await client.
|
|
63
|
+
* await client.livekit.helloWorld.startV1()
|
|
64
64
|
*/
|
|
65
65
|
startV1(requestOptions) {
|
|
66
66
|
return core.HttpResponsePromise.fromPromise(this.__startV1(requestOptions));
|
|
@@ -70,7 +70,7 @@ class HelloWorld {
|
|
|
70
70
|
var _a, _b, _c, _d;
|
|
71
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
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, "
|
|
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, "livekit/hello_world/start/v1"),
|
|
74
74
|
method: "POST",
|
|
75
75
|
headers: _headers,
|
|
76
76
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -96,7 +96,7 @@ class HelloWorld {
|
|
|
96
96
|
rawResponse: _response.rawResponse,
|
|
97
97
|
});
|
|
98
98
|
case "timeout":
|
|
99
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /
|
|
99
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /livekit/hello_world/start/v1.");
|
|
100
100
|
case "unknown":
|
|
101
101
|
throw new errors.ChrtError({
|
|
102
102
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
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);
|
|
@@ -5,6 +5,7 @@ import * as environments from "../../../../environments.js";
|
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
6
|
import * as Chrt from "../../../index.js";
|
|
7
7
|
import { Accounts } from "../resources/accounts/client/Client.js";
|
|
8
|
+
import { AirWaybillStockNumbers } from "../resources/airWaybillStockNumbers/client/Client.js";
|
|
8
9
|
import { ComplianceDocuments } from "../resources/complianceDocuments/client/Client.js";
|
|
9
10
|
import { Connections } from "../resources/connections/client/Client.js";
|
|
10
11
|
import { Contacts } from "../resources/contacts/client/Client.js";
|
|
@@ -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;
|
|
@@ -52,13 +52,14 @@ const Chrt = __importStar(require("../../../index.js"));
|
|
|
52
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
53
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
54
|
const Client_js_1 = require("../resources/accounts/client/Client.js");
|
|
55
|
-
const Client_js_2 = require("../resources/
|
|
56
|
-
const Client_js_3 = require("../resources/
|
|
57
|
-
const Client_js_4 = require("../resources/
|
|
58
|
-
const Client_js_5 = require("../resources/
|
|
59
|
-
const Client_js_6 = require("../resources/
|
|
60
|
-
const Client_js_7 = require("../resources/
|
|
61
|
-
const Client_js_8 = require("../resources/
|
|
55
|
+
const Client_js_2 = require("../resources/airWaybillStockNumbers/client/Client.js");
|
|
56
|
+
const Client_js_3 = require("../resources/complianceDocuments/client/Client.js");
|
|
57
|
+
const Client_js_4 = require("../resources/connections/client/Client.js");
|
|
58
|
+
const Client_js_5 = require("../resources/contacts/client/Client.js");
|
|
59
|
+
const Client_js_6 = require("../resources/iataCassOffices/client/Client.js");
|
|
60
|
+
const Client_js_7 = require("../resources/offChrtOrgData/client/Client.js");
|
|
61
|
+
const Client_js_8 = require("../resources/privateData/client/Client.js");
|
|
62
|
+
const Client_js_9 = require("../resources/publicData/client/Client.js");
|
|
62
63
|
class Orgs {
|
|
63
64
|
constructor(_options = {}) {
|
|
64
65
|
this._options = _options;
|
|
@@ -67,33 +68,37 @@ class Orgs {
|
|
|
67
68
|
var _a;
|
|
68
69
|
return ((_a = this._accounts) !== null && _a !== void 0 ? _a : (this._accounts = new Client_js_1.Accounts(this._options)));
|
|
69
70
|
}
|
|
71
|
+
get airWaybillStockNumbers() {
|
|
72
|
+
var _a;
|
|
73
|
+
return ((_a = this._airWaybillStockNumbers) !== null && _a !== void 0 ? _a : (this._airWaybillStockNumbers = new Client_js_2.AirWaybillStockNumbers(this._options)));
|
|
74
|
+
}
|
|
70
75
|
get complianceDocuments() {
|
|
71
76
|
var _a;
|
|
72
|
-
return ((_a = this._complianceDocuments) !== null && _a !== void 0 ? _a : (this._complianceDocuments = new
|
|
77
|
+
return ((_a = this._complianceDocuments) !== null && _a !== void 0 ? _a : (this._complianceDocuments = new Client_js_3.ComplianceDocuments(this._options)));
|
|
73
78
|
}
|
|
74
79
|
get connections() {
|
|
75
80
|
var _a;
|
|
76
|
-
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new
|
|
81
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_js_4.Connections(this._options)));
|
|
77
82
|
}
|
|
78
83
|
get contacts() {
|
|
79
84
|
var _a;
|
|
80
|
-
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new
|
|
85
|
+
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Client_js_5.Contacts(this._options)));
|
|
81
86
|
}
|
|
82
87
|
get iataCassOffices() {
|
|
83
88
|
var _a;
|
|
84
|
-
return ((_a = this._iataCassOffices) !== null && _a !== void 0 ? _a : (this._iataCassOffices = new
|
|
89
|
+
return ((_a = this._iataCassOffices) !== null && _a !== void 0 ? _a : (this._iataCassOffices = new Client_js_6.IataCassOffices(this._options)));
|
|
85
90
|
}
|
|
86
91
|
get offChrtOrgData() {
|
|
87
92
|
var _a;
|
|
88
|
-
return ((_a = this._offChrtOrgData) !== null && _a !== void 0 ? _a : (this._offChrtOrgData = new
|
|
93
|
+
return ((_a = this._offChrtOrgData) !== null && _a !== void 0 ? _a : (this._offChrtOrgData = new Client_js_7.OffChrtOrgData(this._options)));
|
|
89
94
|
}
|
|
90
95
|
get privateData() {
|
|
91
96
|
var _a;
|
|
92
|
-
return ((_a = this._privateData) !== null && _a !== void 0 ? _a : (this._privateData = new
|
|
97
|
+
return ((_a = this._privateData) !== null && _a !== void 0 ? _a : (this._privateData = new Client_js_8.PrivateData(this._options)));
|
|
93
98
|
}
|
|
94
99
|
get publicData() {
|
|
95
100
|
var _a;
|
|
96
|
-
return ((_a = this._publicData) !== null && _a !== void 0 ? _a : (this._publicData = new
|
|
101
|
+
return ((_a = this._publicData) !== null && _a !== void 0 ? _a : (this._publicData = new Client_js_9.PublicData(this._options)));
|
|
97
102
|
}
|
|
98
103
|
/**
|
|
99
104
|
* Retrieves basic organization information from the authentication service. | () -> (OrgInfoResponse)
|