phonic 0.31.16 → 0.32.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/BaseClient.js +2 -2
- package/dist/cjs/api/types/overrides.d.ts +3 -0
- package/dist/cjs/environments.d.ts +2 -2
- package/dist/cjs/environments.js +2 -2
- 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/types/overrides.d.mts +3 -0
- package/dist/esm/environments.d.mts +2 -2
- package/dist/esm/environments.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
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.31.
|
|
47
|
-
"User-Agent": "phonic/0.31.
|
|
46
|
+
"X-Fern-SDK-Version": "0.31.17",
|
|
47
|
+
"User-Agent": "phonic/0.31.17",
|
|
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);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Phonic } from "../..";
|
|
1
2
|
import type { Conversation } from "./Conversation";
|
|
2
3
|
type PhonicTool = "keypad_input" | "natural_conversation_ending" | (string & {});
|
|
3
4
|
type ISODateTime = `${string}Z`;
|
|
@@ -23,6 +24,8 @@ export type PhonicConfigurationEndpointResponsePayload = {
|
|
|
23
24
|
template_variables?: Record<string, string>;
|
|
24
25
|
tools?: Array<PhonicTool>;
|
|
25
26
|
boosted_keywords?: string[];
|
|
27
|
+
default_language?: Phonic.LanguageCode;
|
|
28
|
+
additional_languages?: Phonic.LanguageCode[];
|
|
26
29
|
metadata?: unknown;
|
|
27
30
|
};
|
|
28
31
|
export type ConversationEndedWebhookPayload = {
|
|
@@ -4,8 +4,8 @@ export interface PhonicEnvironmentUrls {
|
|
|
4
4
|
}
|
|
5
5
|
export declare const PhonicEnvironment: {
|
|
6
6
|
readonly Default: {
|
|
7
|
-
readonly base: "https://api.phonic.
|
|
8
|
-
readonly production: "wss://api.phonic.
|
|
7
|
+
readonly base: "https://api.phonic.ai/v1";
|
|
8
|
+
readonly production: "wss://api.phonic.ai";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
export type PhonicEnvironment = typeof PhonicEnvironment.Default;
|
package/dist/cjs/environments.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.PhonicEnvironment = void 0;
|
|
5
5
|
exports.PhonicEnvironment = {
|
|
6
6
|
Default: {
|
|
7
|
-
base: "https://api.phonic.
|
|
8
|
-
production: "wss://api.phonic.
|
|
7
|
+
base: "https://api.phonic.ai/v1",
|
|
8
|
+
production: "wss://api.phonic.ai",
|
|
9
9
|
},
|
|
10
10
|
};
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.31.
|
|
1
|
+
export declare const SDK_VERSION = "0.31.17";
|
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.31.
|
|
10
|
-
"User-Agent": "phonic/0.31.
|
|
9
|
+
"X-Fern-SDK-Version": "0.31.17",
|
|
10
|
+
"User-Agent": "phonic/0.31.17",
|
|
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);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Phonic } from "../..";
|
|
1
2
|
import type { Conversation } from "./Conversation";
|
|
2
3
|
type PhonicTool = "keypad_input" | "natural_conversation_ending" | (string & {});
|
|
3
4
|
type ISODateTime = `${string}Z`;
|
|
@@ -23,6 +24,8 @@ export type PhonicConfigurationEndpointResponsePayload = {
|
|
|
23
24
|
template_variables?: Record<string, string>;
|
|
24
25
|
tools?: Array<PhonicTool>;
|
|
25
26
|
boosted_keywords?: string[];
|
|
27
|
+
default_language?: Phonic.LanguageCode;
|
|
28
|
+
additional_languages?: Phonic.LanguageCode[];
|
|
26
29
|
metadata?: unknown;
|
|
27
30
|
};
|
|
28
31
|
export type ConversationEndedWebhookPayload = {
|
|
@@ -4,8 +4,8 @@ export interface PhonicEnvironmentUrls {
|
|
|
4
4
|
}
|
|
5
5
|
export declare const PhonicEnvironment: {
|
|
6
6
|
readonly Default: {
|
|
7
|
-
readonly base: "https://api.phonic.
|
|
8
|
-
readonly production: "wss://api.phonic.
|
|
7
|
+
readonly base: "https://api.phonic.ai/v1";
|
|
8
|
+
readonly production: "wss://api.phonic.ai";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
export type PhonicEnvironment = typeof PhonicEnvironment.Default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
export const PhonicEnvironment = {
|
|
3
3
|
Default: {
|
|
4
|
-
base: "https://api.phonic.
|
|
5
|
-
production: "wss://api.phonic.
|
|
4
|
+
base: "https://api.phonic.ai/v1",
|
|
5
|
+
production: "wss://api.phonic.ai",
|
|
6
6
|
},
|
|
7
7
|
};
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.31.
|
|
1
|
+
export declare const SDK_VERSION = "0.31.17";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.31.
|
|
1
|
+
export const SDK_VERSION = "0.31.17";
|