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.
@@ -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.25",
47
- "User-Agent": "phonic/0.32.25",
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);
@@ -77,6 +77,7 @@ export declare class ResponsesClient {
77
77
  * additionalProperties: false
78
78
  * }
79
79
  * }],
80
+ * phonic_model: "phonic_v1",
80
81
  * num_responses: 2
81
82
  * })
82
83
  *
@@ -122,6 +122,7 @@ class ResponsesClient {
122
122
  * additionalProperties: false
123
123
  * }
124
124
  * }],
125
+ * phonic_model: "phonic_v1",
125
126
  * num_responses: 2
126
127
  * })
127
128
  *
@@ -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 type { GenerateResponsesRequest } from "./GenerateResponsesRequest.js";
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; } });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.25";
1
+ export declare const SDK_VERSION = "0.32.26";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.32.25";
4
+ exports.SDK_VERSION = "0.32.26";
@@ -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.25",
10
- "User-Agent": "phonic/0.32.25",
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);
@@ -77,6 +77,7 @@ export declare class ResponsesClient {
77
77
  * additionalProperties: false
78
78
  * }
79
79
  * }],
80
+ * phonic_model: "phonic_v1",
80
81
  * num_responses: 2
81
82
  * })
82
83
  *
@@ -86,6 +86,7 @@ export class ResponsesClient {
86
86
  * additionalProperties: false
87
87
  * }
88
88
  * }],
89
+ * phonic_model: "phonic_v1",
89
90
  * num_responses: 2
90
91
  * })
91
92
  *
@@ -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 type { GenerateResponsesRequest } from "./GenerateResponsesRequest.mjs";
1
+ export { GenerateResponsesRequest } from "./GenerateResponsesRequest.mjs";
@@ -1 +1 @@
1
- export {};
1
+ export { GenerateResponsesRequest } from "./GenerateResponsesRequest.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.32.25";
1
+ export declare const SDK_VERSION = "0.32.26";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.32.25";
1
+ export const SDK_VERSION = "0.32.26";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phonic",
3
- "version": "0.32.25",
3
+ "version": "0.32.26",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -4100,6 +4100,7 @@ await client.responses.create({
4100
4100
  additionalProperties: false
4101
4101
  }
4102
4102
  }],
4103
+ phonic_model: "phonic_v1",
4103
4104
  num_responses: 2
4104
4105
  });
4105
4106