@chrt-inc/typescript-sdk 1.1027.0 → 1.1035.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/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/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/index.d.ts +1 -0
- package/dist/cjs/api/resources/{agent/resources/livekit → livekit/resources/helloWorld}/index.js +0 -1
- package/dist/cjs/api/types/Caller.d.ts +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 +4 -0
- package/dist/cjs/api/types/index.js +4 -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/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/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/types/Caller.d.mts +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 +4 -0
- package/dist/esm/api/types/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +126 -58
- 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/cjs/api/resources/agent/resources/livekit/resources/helloWorld/client/index.d.ts +0 -1
- 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/esm/api/resources/agent/resources/livekit/resources/helloWorld/client/index.d.mts +0 -1
- /package/dist/cjs/api/resources/{agent/client → chrtGpt/resources/voice/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit/resources/helloWorld → chrtGpt/resources/voice}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{agent/resources/livekit/resources/helloWorld → chrtGpt/resources/voice}/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 → 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/helloWorld/client/index.js +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/{agent/client → chrtGpt/resources/voice/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld → chrtGpt/resources/voice}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{agent/resources/livekit/resources/helloWorld → chrtGpt/resources/voice}/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 → 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/esm/api/resources/{agent/resources/livekit → 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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ChrtGptVoiceDelegationEnum = void 0;
|
|
7
|
+
exports.ChrtGptVoiceDelegationEnum = {
|
|
8
|
+
Responses: "responses",
|
|
9
|
+
Client: "client",
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A transcribed request from the ChrtGPT voice agent. The voice route fixes reasoning effort and verbosity for speed.
|
|
6
|
+
*/
|
|
7
|
+
export interface ChrtGptVoiceReq {
|
|
8
|
+
/** Omit on the call's first request to start a new conversation. */
|
|
9
|
+
conversation_id?: string | null;
|
|
10
|
+
message: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type InternalDelegationOriginEnum = "temporal_worker" | "livekit_voice_agent";
|
|
5
|
+
export declare const InternalDelegationOriginEnum: {
|
|
6
|
+
readonly TemporalWorker: "temporal_worker";
|
|
7
|
+
readonly LivekitVoiceAgent: "livekit_voice_agent";
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.InternalDelegationOriginEnum = void 0;
|
|
7
|
+
exports.InternalDelegationOriginEnum = {
|
|
8
|
+
TemporalWorker: "temporal_worker",
|
|
9
|
+
LivekitVoiceAgent: "livekit_voice_agent",
|
|
10
|
+
};
|
|
@@ -220,6 +220,9 @@ export * from "./ChrtGptTextDeltaEvent.js";
|
|
|
220
220
|
export * from "./ChrtGptToolCalledEvent.js";
|
|
221
221
|
export * from "./ChrtGptToolOutputEvent.js";
|
|
222
222
|
export * from "./ChrtGptUserMessageItem.js";
|
|
223
|
+
export * from "./ChrtGptVoiceDelegationEnum.js";
|
|
224
|
+
export * from "./ChrtGptVoiceReq.js";
|
|
225
|
+
export * from "./ChrtGptVoiceStartRes.js";
|
|
223
226
|
export * from "./ChrtGptWebSearchEvent.js";
|
|
224
227
|
export * from "./ChrtGroundProviderRates1.js";
|
|
225
228
|
export * from "./ChrtGroundProviderRatesListRes.js";
|
|
@@ -400,6 +403,7 @@ export * from "./IataCassOfficeListRes.js";
|
|
|
400
403
|
export * from "./IataCassOfficeSortByEnum.js";
|
|
401
404
|
export * from "./InternalDelegationJwtReq.js";
|
|
402
405
|
export * from "./InternalDelegationJwtRes.js";
|
|
406
|
+
export * from "./InternalDelegationOriginEnum.js";
|
|
403
407
|
export * from "./Invoice1.js";
|
|
404
408
|
export * from "./InvoiceClientCreate1.js";
|
|
405
409
|
export * from "./InvoiceCreateFromOrdersReq.js";
|
|
@@ -236,6 +236,9 @@ __exportStar(require("./ChrtGptTextDeltaEvent.js"), exports);
|
|
|
236
236
|
__exportStar(require("./ChrtGptToolCalledEvent.js"), exports);
|
|
237
237
|
__exportStar(require("./ChrtGptToolOutputEvent.js"), exports);
|
|
238
238
|
__exportStar(require("./ChrtGptUserMessageItem.js"), exports);
|
|
239
|
+
__exportStar(require("./ChrtGptVoiceDelegationEnum.js"), exports);
|
|
240
|
+
__exportStar(require("./ChrtGptVoiceReq.js"), exports);
|
|
241
|
+
__exportStar(require("./ChrtGptVoiceStartRes.js"), exports);
|
|
239
242
|
__exportStar(require("./ChrtGptWebSearchEvent.js"), exports);
|
|
240
243
|
__exportStar(require("./ChrtGroundProviderRates1.js"), exports);
|
|
241
244
|
__exportStar(require("./ChrtGroundProviderRatesListRes.js"), exports);
|
|
@@ -416,6 +419,7 @@ __exportStar(require("./IataCassOfficeListRes.js"), exports);
|
|
|
416
419
|
__exportStar(require("./IataCassOfficeSortByEnum.js"), exports);
|
|
417
420
|
__exportStar(require("./InternalDelegationJwtReq.js"), exports);
|
|
418
421
|
__exportStar(require("./InternalDelegationJwtRes.js"), exports);
|
|
422
|
+
__exportStar(require("./InternalDelegationOriginEnum.js"), exports);
|
|
419
423
|
__exportStar(require("./Invoice1.js"), exports);
|
|
420
424
|
__exportStar(require("./InvoiceClientCreate1.js"), exports);
|
|
421
425
|
__exportStar(require("./InvoiceCreateFromOrdersReq.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.1035.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -7,13 +7,13 @@ import { ChrtGpt } from "./api/resources/chrtGpt/client/Client.mjs";
|
|
|
7
7
|
import { Flights } from "./api/resources/flights/client/Client.mjs";
|
|
8
8
|
import { Orgs } from "./api/resources/orgs/client/Client.mjs";
|
|
9
9
|
import { Utils } from "./api/resources/utils/client/Client.mjs";
|
|
10
|
-
import { Agent } from "./api/resources/agent/client/Client.mjs";
|
|
11
10
|
import { Analytics } from "./api/resources/analytics/client/Client.mjs";
|
|
12
11
|
import { Billing } from "./api/resources/billing/client/Client.mjs";
|
|
13
12
|
import { BillingNew } from "./api/resources/billingNew/client/Client.mjs";
|
|
14
13
|
import { CargoOnFlightIntegrations } from "./api/resources/cargoOnFlightIntegrations/client/Client.mjs";
|
|
15
14
|
import { Integrations } from "./api/resources/integrations/client/Client.mjs";
|
|
16
15
|
import { Listing } from "./api/resources/listing/client/Client.mjs";
|
|
16
|
+
import { Livekit } from "./api/resources/livekit/client/Client.mjs";
|
|
17
17
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
18
18
|
import { Operations } from "./api/resources/operations/client/Client.mjs";
|
|
19
19
|
import { Shipping } from "./api/resources/shipping/client/Client.mjs";
|
|
@@ -50,13 +50,13 @@ export declare class ChrtClient {
|
|
|
50
50
|
protected _flights: Flights | undefined;
|
|
51
51
|
protected _orgs: Orgs | undefined;
|
|
52
52
|
protected _utils: Utils | undefined;
|
|
53
|
-
protected _agent: Agent | undefined;
|
|
54
53
|
protected _analytics: Analytics | undefined;
|
|
55
54
|
protected _billing: Billing | undefined;
|
|
56
55
|
protected _billingNew: BillingNew | undefined;
|
|
57
56
|
protected _cargoOnFlightIntegrations: CargoOnFlightIntegrations | undefined;
|
|
58
57
|
protected _integrations: Integrations | undefined;
|
|
59
58
|
protected _listing: Listing | undefined;
|
|
59
|
+
protected _livekit: Livekit | undefined;
|
|
60
60
|
protected _notifications: Notifications | undefined;
|
|
61
61
|
protected _operations: Operations | undefined;
|
|
62
62
|
protected _shipping: Shipping | undefined;
|
|
@@ -69,13 +69,13 @@ export declare class ChrtClient {
|
|
|
69
69
|
get flights(): Flights;
|
|
70
70
|
get orgs(): Orgs;
|
|
71
71
|
get utils(): Utils;
|
|
72
|
-
get agent(): Agent;
|
|
73
72
|
get analytics(): Analytics;
|
|
74
73
|
get billing(): Billing;
|
|
75
74
|
get billingNew(): BillingNew;
|
|
76
75
|
get cargoOnFlightIntegrations(): CargoOnFlightIntegrations;
|
|
77
76
|
get integrations(): Integrations;
|
|
78
77
|
get listing(): Listing;
|
|
78
|
+
get livekit(): Livekit;
|
|
79
79
|
get notifications(): Notifications;
|
|
80
80
|
get operations(): Operations;
|
|
81
81
|
get shipping(): Shipping;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -7,13 +7,13 @@ import { ChrtGpt } from "./api/resources/chrtGpt/client/Client.mjs";
|
|
|
7
7
|
import { Flights } from "./api/resources/flights/client/Client.mjs";
|
|
8
8
|
import { Orgs } from "./api/resources/orgs/client/Client.mjs";
|
|
9
9
|
import { Utils } from "./api/resources/utils/client/Client.mjs";
|
|
10
|
-
import { Agent } from "./api/resources/agent/client/Client.mjs";
|
|
11
10
|
import { Analytics } from "./api/resources/analytics/client/Client.mjs";
|
|
12
11
|
import { Billing } from "./api/resources/billing/client/Client.mjs";
|
|
13
12
|
import { BillingNew } from "./api/resources/billingNew/client/Client.mjs";
|
|
14
13
|
import { CargoOnFlightIntegrations } from "./api/resources/cargoOnFlightIntegrations/client/Client.mjs";
|
|
15
14
|
import { Integrations } from "./api/resources/integrations/client/Client.mjs";
|
|
16
15
|
import { Listing } from "./api/resources/listing/client/Client.mjs";
|
|
16
|
+
import { Livekit } from "./api/resources/livekit/client/Client.mjs";
|
|
17
17
|
import { Notifications } from "./api/resources/notifications/client/Client.mjs";
|
|
18
18
|
import { Operations } from "./api/resources/operations/client/Client.mjs";
|
|
19
19
|
import { Shipping } from "./api/resources/shipping/client/Client.mjs";
|
|
@@ -26,8 +26,8 @@ export class ChrtClient {
|
|
|
26
26
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
27
27
|
"X-Fern-Language": "JavaScript",
|
|
28
28
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
29
|
-
"X-Fern-SDK-Version": "1.
|
|
30
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
29
|
+
"X-Fern-SDK-Version": "1.1035.0",
|
|
30
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.1035.0",
|
|
31
31
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
32
32
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
33
33
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -48,10 +48,6 @@ export class ChrtClient {
|
|
|
48
48
|
var _a;
|
|
49
49
|
return ((_a = this._utils) !== null && _a !== void 0 ? _a : (this._utils = new Utils(this._options)));
|
|
50
50
|
}
|
|
51
|
-
get agent() {
|
|
52
|
-
var _a;
|
|
53
|
-
return ((_a = this._agent) !== null && _a !== void 0 ? _a : (this._agent = new Agent(this._options)));
|
|
54
|
-
}
|
|
55
51
|
get analytics() {
|
|
56
52
|
var _a;
|
|
57
53
|
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Analytics(this._options)));
|
|
@@ -76,6 +72,10 @@ export class ChrtClient {
|
|
|
76
72
|
var _a;
|
|
77
73
|
return ((_a = this._listing) !== null && _a !== void 0 ? _a : (this._listing = new Listing(this._options)));
|
|
78
74
|
}
|
|
75
|
+
get livekit() {
|
|
76
|
+
var _a;
|
|
77
|
+
return ((_a = this._livekit) !== null && _a !== void 0 ? _a : (this._livekit = new Livekit(this._options)));
|
|
78
|
+
}
|
|
79
79
|
get notifications() {
|
|
80
80
|
var _a;
|
|
81
81
|
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Notifications(this._options)));
|
|
@@ -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 { Conversations } from "../resources/conversations/client/Client.mjs";
|
|
8
|
+
import { Voice } from "../resources/voice/client/Client.mjs";
|
|
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
|
*/
|
|
@@ -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 { Conversations } from "../resources/conversations/client/Client.mjs";
|
|
19
|
+
import { Voice } from "../resources/voice/client/Client.mjs";
|
|
19
20
|
export class ChrtGpt {
|
|
20
21
|
constructor(_options = {}) {
|
|
21
22
|
this._options = _options;
|
|
@@ -24,6 +25,10 @@ export class ChrtGpt {
|
|
|
24
25
|
var _a;
|
|
25
26
|
return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Conversations(this._options)));
|
|
26
27
|
}
|
|
28
|
+
get voice() {
|
|
29
|
+
var _a;
|
|
30
|
+
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Voice(this._options)));
|
|
31
|
+
}
|
|
27
32
|
/**
|
|
28
33
|
* 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])
|
|
29
34
|
*/
|
|
@@ -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>;
|
|
@@ -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";
|
|
@@ -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";
|