phonic 0.32.25 → 0.32.26
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/BaseClient.js +2 -2
- package/dist/cjs/api/resources/responses/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/responses/client/Client.js +1 -0
- package/dist/cjs/api/resources/responses/client/requests/GenerateResponsesRequest.d.ts +11 -0
- package/dist/cjs/api/resources/responses/client/requests/GenerateResponsesRequest.js +9 -0
- package/dist/cjs/api/resources/responses/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/responses/client/requests/index.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/responses/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/responses/client/Client.mjs +1 -0
- package/dist/esm/api/resources/responses/client/requests/GenerateResponsesRequest.d.mts +11 -0
- package/dist/esm/api/resources/responses/client/requests/GenerateResponsesRequest.mjs +8 -1
- package/dist/esm/api/resources/responses/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/responses/client/requests/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -0
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "phonic",
|
|
46
|
-
"X-Fern-SDK-Version": "0.32.
|
|
47
|
-
"User-Agent": "phonic/0.32.
|
|
46
|
+
"X-Fern-SDK-Version": "0.32.26",
|
|
47
|
+
"User-Agent": "phonic/0.32.26",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -25,6 +25,7 @@ import type * as Phonic from "../../../../index.js";
|
|
|
25
25
|
* additionalProperties: false
|
|
26
26
|
* }
|
|
27
27
|
* }],
|
|
28
|
+
* phonic_model: "phonic_v1",
|
|
28
29
|
* num_responses: 2
|
|
29
30
|
* }
|
|
30
31
|
*
|
|
@@ -62,6 +63,16 @@ export interface GenerateResponsesRequest {
|
|
|
62
63
|
project?: string;
|
|
63
64
|
/** Tools the assistant may call that already exist - a built-in tool, or a transfer tool stored in `project`, referenced by name. Names must be unique and must not repeat a name in `tool_definitions`. Stored tools that are not transfer tools cannot be referenced here yet; define them inline as `tool_definitions` instead. */
|
|
64
65
|
tools?: Phonic.ResponsesTool[];
|
|
66
|
+
/** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
|
|
67
|
+
phonic_model?: GenerateResponsesRequest.PhonicModel;
|
|
65
68
|
/** Number of alternative responses to generate. */
|
|
66
69
|
num_responses?: number;
|
|
67
70
|
}
|
|
71
|
+
export declare namespace GenerateResponsesRequest {
|
|
72
|
+
/** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
|
|
73
|
+
const PhonicModel: {
|
|
74
|
+
readonly PhonicV05: "phonic_v0_5";
|
|
75
|
+
readonly PhonicV1: "phonic_v1";
|
|
76
|
+
};
|
|
77
|
+
type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
|
|
78
|
+
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GenerateResponsesRequest = void 0;
|
|
5
|
+
var GenerateResponsesRequest;
|
|
6
|
+
(function (GenerateResponsesRequest) {
|
|
7
|
+
/** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
|
|
8
|
+
GenerateResponsesRequest.PhonicModel = {
|
|
9
|
+
PhonicV05: "phonic_v0_5",
|
|
10
|
+
PhonicV1: "phonic_v1",
|
|
11
|
+
};
|
|
12
|
+
})(GenerateResponsesRequest || (exports.GenerateResponsesRequest = GenerateResponsesRequest = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { GenerateResponsesRequest } from "./GenerateResponsesRequest.js";
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateResponsesRequest = void 0;
|
|
4
|
+
var GenerateResponsesRequest_js_1 = require("./GenerateResponsesRequest.js");
|
|
5
|
+
Object.defineProperty(exports, "GenerateResponsesRequest", { enumerable: true, get: function () { return GenerateResponsesRequest_js_1.GenerateResponsesRequest; } });
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.32.
|
|
1
|
+
export declare const SDK_VERSION = "0.32.26";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "phonic",
|
|
9
|
-
"X-Fern-SDK-Version": "0.32.
|
|
10
|
-
"User-Agent": "phonic/0.32.
|
|
9
|
+
"X-Fern-SDK-Version": "0.32.26",
|
|
10
|
+
"User-Agent": "phonic/0.32.26",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -25,6 +25,7 @@ import type * as Phonic from "../../../../index.mjs";
|
|
|
25
25
|
* additionalProperties: false
|
|
26
26
|
* }
|
|
27
27
|
* }],
|
|
28
|
+
* phonic_model: "phonic_v1",
|
|
28
29
|
* num_responses: 2
|
|
29
30
|
* }
|
|
30
31
|
*
|
|
@@ -62,6 +63,16 @@ export interface GenerateResponsesRequest {
|
|
|
62
63
|
project?: string;
|
|
63
64
|
/** Tools the assistant may call that already exist - a built-in tool, or a transfer tool stored in `project`, referenced by name. Names must be unique and must not repeat a name in `tool_definitions`. Stored tools that are not transfer tools cannot be referenced here yet; define them inline as `tool_definitions` instead. */
|
|
64
65
|
tools?: Phonic.ResponsesTool[];
|
|
66
|
+
/** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
|
|
67
|
+
phonic_model?: GenerateResponsesRequest.PhonicModel;
|
|
65
68
|
/** Number of alternative responses to generate. */
|
|
66
69
|
num_responses?: number;
|
|
67
70
|
}
|
|
71
|
+
export declare namespace GenerateResponsesRequest {
|
|
72
|
+
/** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
|
|
73
|
+
const PhonicModel: {
|
|
74
|
+
readonly PhonicV05: "phonic_v0_5";
|
|
75
|
+
readonly PhonicV1: "phonic_v1";
|
|
76
|
+
};
|
|
77
|
+
type PhonicModel = (typeof PhonicModel)[keyof typeof PhonicModel];
|
|
78
|
+
}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var GenerateResponsesRequest;
|
|
3
|
+
(function (GenerateResponsesRequest) {
|
|
4
|
+
/** The Phonic speech-to-speech model to generate with. Omit it to use the current default model. */
|
|
5
|
+
GenerateResponsesRequest.PhonicModel = {
|
|
6
|
+
PhonicV05: "phonic_v0_5",
|
|
7
|
+
PhonicV1: "phonic_v1",
|
|
8
|
+
};
|
|
9
|
+
})(GenerateResponsesRequest || (GenerateResponsesRequest = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { GenerateResponsesRequest } from "./GenerateResponsesRequest.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { GenerateResponsesRequest } from "./GenerateResponsesRequest.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.32.
|
|
1
|
+
export declare const SDK_VERSION = "0.32.26";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.32.
|
|
1
|
+
export const SDK_VERSION = "0.32.26";
|
package/package.json
CHANGED