hume 0.8.1-beta9 → 0.8.3
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/.mock/definition/empathic-voice/__package__.yml +0 -14
- package/.mock/definition/empathic-voice/chat.yml +3 -4
- package/.mock/definition/empathic-voice/chatGroups.yml +5 -0
- package/.mock/definition/empathic-voice/configs.yml +3 -0
- package/.mock/definition/empathic-voice/prompts.yml +3 -0
- package/.mock/definition/empathic-voice/tools.yml +3 -0
- package/README.md +17 -10
- package/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +1 -1
- package/api/resources/empathicVoice/resources/chat/client/Socket.js +1 -1
- package/api/resources/empathicVoice/resources/chatGroups/client/Client.js +6 -3
- package/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
- package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
- package/api/resources/empathicVoice/resources/configs/client/Client.js +13 -10
- package/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +4 -0
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +13 -10
- package/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +4 -0
- package/api/resources/empathicVoice/resources/tools/client/Client.js +13 -10
- package/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +4 -0
- package/api/resources/empathicVoice/types/index.d.ts +0 -2
- package/api/resources/empathicVoice/types/index.js +0 -2
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/api/resources/index.d.ts +1 -1
- package/api/resources/index.js +2 -2
- package/core/websocket/ws.js +9 -3
- package/dist/api/resources/empathicVoice/resources/chat/client/Socket.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/chat/client/Socket.js +1 -1
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/Client.js +6 -3
- package/dist/api/resources/empathicVoice/resources/chatGroups/client/requests/ChatGroupsListChatGroupsRequest.d.ts +4 -0
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +13 -10
- package/dist/api/resources/empathicVoice/resources/configs/client/requests/ConfigsListConfigsRequest.d.ts +4 -0
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +13 -10
- package/dist/api/resources/empathicVoice/resources/prompts/client/requests/PromptsListPromptsRequest.d.ts +4 -0
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +13 -10
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/ToolsListToolsRequest.d.ts +4 -0
- package/dist/api/resources/empathicVoice/types/index.d.ts +0 -2
- package/dist/api/resources/empathicVoice/types/index.js +0 -2
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/index.d.ts +1 -1
- package/dist/api/resources/index.js +2 -2
- package/dist/core/websocket/ws.js +9 -3
- package/dist/serialization/resources/empathicVoice/types/index.d.ts +0 -2
- package/dist/serialization/resources/empathicVoice/types/index.js +0 -2
- package/dist/serialization/resources/index.d.ts +1 -1
- package/dist/serialization/resources/index.js +2 -2
- package/dist/wrapper/fetchAccessToken.d.ts +5 -5
- package/dist/wrapper/fetchAccessToken.js +35 -13
- package/package.json +3 -2
- package/reference.md +444 -444
- package/serialization/resources/empathicVoice/types/index.d.ts +0 -2
- package/serialization/resources/empathicVoice/types/index.js +0 -2
- package/serialization/resources/index.d.ts +1 -1
- package/serialization/resources/index.js +2 -2
- package/wrapper/fetchAccessToken.d.ts +5 -5
- package/wrapper/fetchAccessToken.js +35 -13
- package/api/resources/empathicVoice/types/ReturnPrivacySettings.d.ts +0 -8
- package/api/resources/empathicVoice/types/ReturnPrivacySettings.js +0 -5
- package/api/resources/empathicVoice/types/ReturnPurgeStats.d.ts +0 -12
- package/api/resources/empathicVoice/types/ReturnPurgeStats.js +0 -5
- package/dist/api/resources/empathicVoice/types/ReturnPrivacySettings.d.ts +0 -8
- package/dist/api/resources/empathicVoice/types/ReturnPrivacySettings.js +0 -5
- package/dist/api/resources/empathicVoice/types/ReturnPurgeStats.d.ts +0 -12
- package/dist/api/resources/empathicVoice/types/ReturnPurgeStats.js +0 -5
- package/dist/serialization/resources/empathicVoice/types/ReturnPrivacySettings.d.ts +0 -14
- package/dist/serialization/resources/empathicVoice/types/ReturnPrivacySettings.js +0 -35
- package/dist/serialization/resources/empathicVoice/types/ReturnPurgeStats.d.ts +0 -18
- package/dist/serialization/resources/empathicVoice/types/ReturnPurgeStats.js +0 -39
- package/serialization/resources/empathicVoice/types/ReturnPrivacySettings.d.ts +0 -14
- package/serialization/resources/empathicVoice/types/ReturnPrivacySettings.js +0 -35
- package/serialization/resources/empathicVoice/types/ReturnPurgeStats.d.ts +0 -18
- package/serialization/resources/empathicVoice/types/ReturnPurgeStats.js +0 -39
|
@@ -25,7 +25,6 @@ export * from "./ReturnLanguageModel";
|
|
|
25
25
|
export * from "./ReturnTimeoutSpec";
|
|
26
26
|
export * from "./ReturnTimeoutSpecs";
|
|
27
27
|
export * from "./ReturnVoice";
|
|
28
|
-
export * from "./ReturnPrivacySettings";
|
|
29
28
|
export * from "./PostedCustomVoiceName";
|
|
30
29
|
export * from "./ReturnPagedUserDefinedTools";
|
|
31
30
|
export * from "./ReturnPagedPrompts";
|
|
@@ -42,7 +41,6 @@ export * from "./ReturnChatGroup";
|
|
|
42
41
|
export * from "./ReturnPagedChatGroups";
|
|
43
42
|
export * from "./ReturnChatGroupPagedChats";
|
|
44
43
|
export * from "./ReturnChatGroupPagedEvents";
|
|
45
|
-
export * from "./ReturnPurgeStats";
|
|
46
44
|
export * from "./AssistantInput";
|
|
47
45
|
export * from "./AudioConfiguration";
|
|
48
46
|
export * from "./AudioInput";
|
|
@@ -41,7 +41,6 @@ __exportStar(require("./ReturnLanguageModel"), exports);
|
|
|
41
41
|
__exportStar(require("./ReturnTimeoutSpec"), exports);
|
|
42
42
|
__exportStar(require("./ReturnTimeoutSpecs"), exports);
|
|
43
43
|
__exportStar(require("./ReturnVoice"), exports);
|
|
44
|
-
__exportStar(require("./ReturnPrivacySettings"), exports);
|
|
45
44
|
__exportStar(require("./PostedCustomVoiceName"), exports);
|
|
46
45
|
__exportStar(require("./ReturnPagedUserDefinedTools"), exports);
|
|
47
46
|
__exportStar(require("./ReturnPagedPrompts"), exports);
|
|
@@ -58,7 +57,6 @@ __exportStar(require("./ReturnChatGroup"), exports);
|
|
|
58
57
|
__exportStar(require("./ReturnPagedChatGroups"), exports);
|
|
59
58
|
__exportStar(require("./ReturnChatGroupPagedChats"), exports);
|
|
60
59
|
__exportStar(require("./ReturnChatGroupPagedEvents"), exports);
|
|
61
|
-
__exportStar(require("./ReturnPurgeStats"), exports);
|
|
62
60
|
__exportStar(require("./AssistantInput"), exports);
|
|
63
61
|
__exportStar(require("./AudioConfiguration"), exports);
|
|
64
62
|
__exportStar(require("./AudioInput"), exports);
|
|
@@ -23,6 +23,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
|
|
26
|
+
exports.expressionMeasurement = exports.empathicVoice = void 0;
|
|
28
27
|
exports.empathicVoice = __importStar(require("./empathicVoice"));
|
|
28
|
+
exports.expressionMeasurement = __importStar(require("./expressionMeasurement"));
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* Fetches a new access token from the Hume API using the provided API key and Secret key.
|
|
3
3
|
*
|
|
4
4
|
* @param args - The arguments for the request.
|
|
5
|
-
* @returns Promise that resolves to the new access token.
|
|
5
|
+
* @returns Promise that resolves to the new access token or null.
|
|
6
6
|
* @throws If the base64 encoding fails.
|
|
7
|
-
* @throws If the network request fails.
|
|
8
7
|
* @example
|
|
9
8
|
* ```typescript
|
|
10
9
|
* async function getToken() {
|
|
@@ -12,12 +11,13 @@
|
|
|
12
11
|
* apiKey: 'test',
|
|
13
12
|
* secretKey: 'test',
|
|
14
13
|
* });
|
|
14
|
+
*
|
|
15
15
|
* console.log(accessToken); // Outputs the access token
|
|
16
16
|
* }
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export declare const fetchAccessToken: (
|
|
19
|
+
export declare const fetchAccessToken: ({ apiKey, secretKey, host, }: {
|
|
20
20
|
apiKey: string;
|
|
21
21
|
secretKey: string;
|
|
22
|
-
host?: string;
|
|
23
|
-
}) => Promise<string>;
|
|
22
|
+
host?: string | undefined;
|
|
23
|
+
}) => Promise<string | null>;
|
|
@@ -11,13 +11,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.fetchAccessToken = void 0;
|
|
13
13
|
const base64Encode_1 = require("./base64Encode");
|
|
14
|
+
const zod_1 = require("zod");
|
|
14
15
|
/**
|
|
15
16
|
* Fetches a new access token from the Hume API using the provided API key and Secret key.
|
|
16
17
|
*
|
|
17
18
|
* @param args - The arguments for the request.
|
|
18
|
-
* @returns Promise that resolves to the new access token.
|
|
19
|
+
* @returns Promise that resolves to the new access token or null.
|
|
19
20
|
* @throws If the base64 encoding fails.
|
|
20
|
-
* @throws If the network request fails.
|
|
21
21
|
* @example
|
|
22
22
|
* ```typescript
|
|
23
23
|
* async function getToken() {
|
|
@@ -25,27 +25,49 @@ const base64Encode_1 = require("./base64Encode");
|
|
|
25
25
|
* apiKey: 'test',
|
|
26
26
|
* secretKey: 'test',
|
|
27
27
|
* });
|
|
28
|
+
*
|
|
28
29
|
* console.log(accessToken); // Outputs the access token
|
|
29
30
|
* }
|
|
30
31
|
* ```
|
|
31
32
|
*/
|
|
32
|
-
const fetchAccessToken = (
|
|
33
|
-
const { apiKey, secretKey, host = 'api.hume.ai' } = args;
|
|
33
|
+
const fetchAccessToken = ({ apiKey, secretKey, host = "api.hume.ai", }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
34
34
|
const authString = `${apiKey}:${secretKey}`;
|
|
35
35
|
const encoded = (0, base64Encode_1.base64Encode)(authString);
|
|
36
|
-
const
|
|
37
|
-
method:
|
|
36
|
+
const response = yield fetch(`https://${host}/oauth2-cc/token`, {
|
|
37
|
+
method: "POST",
|
|
38
38
|
headers: {
|
|
39
|
-
|
|
39
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
40
40
|
Authorization: `Basic ${encoded}`,
|
|
41
41
|
},
|
|
42
42
|
body: new URLSearchParams({
|
|
43
|
-
grant_type:
|
|
43
|
+
grant_type: "client_credentials",
|
|
44
44
|
}).toString(),
|
|
45
|
-
cache:
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
cache: "no-cache",
|
|
46
|
+
})
|
|
47
|
+
.then((res) => {
|
|
48
|
+
// if reading response as json fails, return empty object
|
|
49
|
+
// this can happen when request returns XML due to server error
|
|
50
|
+
return res
|
|
51
|
+
.json()
|
|
52
|
+
.then((d) => d)
|
|
53
|
+
.catch(() => ({}));
|
|
54
|
+
})
|
|
55
|
+
.then((data) => {
|
|
56
|
+
// extract access_token value from received object
|
|
57
|
+
return zod_1.z
|
|
58
|
+
.object({
|
|
59
|
+
access_token: zod_1.z.string(),
|
|
60
|
+
})
|
|
61
|
+
.transform((data) => {
|
|
62
|
+
return data.access_token;
|
|
63
|
+
})
|
|
64
|
+
.safeParse(data);
|
|
65
|
+
}).catch(() => ({
|
|
66
|
+
success: false
|
|
67
|
+
}));
|
|
68
|
+
if (!response.success) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
return response.data;
|
|
50
72
|
});
|
|
51
73
|
exports.fetchAccessToken = fetchAccessToken;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface ReturnPurgeStats {
|
|
5
|
-
id?: string;
|
|
6
|
-
numChats?: number;
|
|
7
|
-
numChatEvents?: number;
|
|
8
|
-
numConfigs?: number;
|
|
9
|
-
numPrompts?: number;
|
|
10
|
-
numTools?: number;
|
|
11
|
-
numVoices?: number;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export interface ReturnPurgeStats {
|
|
5
|
-
id?: string;
|
|
6
|
-
numChats?: number;
|
|
7
|
-
numChatEvents?: number;
|
|
8
|
-
numConfigs?: number;
|
|
9
|
-
numPrompts?: number;
|
|
10
|
-
numTools?: number;
|
|
11
|
-
numVoices?: number;
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Hume from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const ReturnPrivacySettings: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnPrivacySettings.Raw, Hume.empathicVoice.ReturnPrivacySettings>;
|
|
8
|
-
export declare namespace ReturnPrivacySettings {
|
|
9
|
-
interface Raw {
|
|
10
|
-
id?: string | null;
|
|
11
|
-
do_not_retain_data?: boolean | null;
|
|
12
|
-
do_not_use_for_training?: boolean | null;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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 (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ReturnPrivacySettings = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.ReturnPrivacySettings = core.serialization.object({
|
|
32
|
-
id: core.serialization.string().optional(),
|
|
33
|
-
doNotRetainData: core.serialization.property("do_not_retain_data", core.serialization.boolean().optional()),
|
|
34
|
-
doNotUseForTraining: core.serialization.property("do_not_use_for_training", core.serialization.boolean().optional()),
|
|
35
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Hume from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const ReturnPurgeStats: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnPurgeStats.Raw, Hume.empathicVoice.ReturnPurgeStats>;
|
|
8
|
-
export declare namespace ReturnPurgeStats {
|
|
9
|
-
interface Raw {
|
|
10
|
-
id?: string | null;
|
|
11
|
-
num_chats?: number | null;
|
|
12
|
-
num_chat_events?: number | null;
|
|
13
|
-
num_configs?: number | null;
|
|
14
|
-
num_prompts?: number | null;
|
|
15
|
-
num_tools?: number | null;
|
|
16
|
-
num_voices?: number | null;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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 (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ReturnPurgeStats = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.ReturnPurgeStats = core.serialization.object({
|
|
32
|
-
id: core.serialization.string().optional(),
|
|
33
|
-
numChats: core.serialization.property("num_chats", core.serialization.number().optional()),
|
|
34
|
-
numChatEvents: core.serialization.property("num_chat_events", core.serialization.number().optional()),
|
|
35
|
-
numConfigs: core.serialization.property("num_configs", core.serialization.number().optional()),
|
|
36
|
-
numPrompts: core.serialization.property("num_prompts", core.serialization.number().optional()),
|
|
37
|
-
numTools: core.serialization.property("num_tools", core.serialization.number().optional()),
|
|
38
|
-
numVoices: core.serialization.property("num_voices", core.serialization.number().optional()),
|
|
39
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Hume from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const ReturnPrivacySettings: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnPrivacySettings.Raw, Hume.empathicVoice.ReturnPrivacySettings>;
|
|
8
|
-
export declare namespace ReturnPrivacySettings {
|
|
9
|
-
interface Raw {
|
|
10
|
-
id?: string | null;
|
|
11
|
-
do_not_retain_data?: boolean | null;
|
|
12
|
-
do_not_use_for_training?: boolean | null;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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 (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ReturnPrivacySettings = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.ReturnPrivacySettings = core.serialization.object({
|
|
32
|
-
id: core.serialization.string().optional(),
|
|
33
|
-
doNotRetainData: core.serialization.property("do_not_retain_data", core.serialization.boolean().optional()),
|
|
34
|
-
doNotUseForTraining: core.serialization.property("do_not_use_for_training", core.serialization.boolean().optional()),
|
|
35
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Hume from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const ReturnPurgeStats: core.serialization.ObjectSchema<serializers.empathicVoice.ReturnPurgeStats.Raw, Hume.empathicVoice.ReturnPurgeStats>;
|
|
8
|
-
export declare namespace ReturnPurgeStats {
|
|
9
|
-
interface Raw {
|
|
10
|
-
id?: string | null;
|
|
11
|
-
num_chats?: number | null;
|
|
12
|
-
num_chat_events?: number | null;
|
|
13
|
-
num_configs?: number | null;
|
|
14
|
-
num_prompts?: number | null;
|
|
15
|
-
num_tools?: number | null;
|
|
16
|
-
num_voices?: number | null;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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 (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ReturnPurgeStats = void 0;
|
|
30
|
-
const core = __importStar(require("../../../../core"));
|
|
31
|
-
exports.ReturnPurgeStats = core.serialization.object({
|
|
32
|
-
id: core.serialization.string().optional(),
|
|
33
|
-
numChats: core.serialization.property("num_chats", core.serialization.number().optional()),
|
|
34
|
-
numChatEvents: core.serialization.property("num_chat_events", core.serialization.number().optional()),
|
|
35
|
-
numConfigs: core.serialization.property("num_configs", core.serialization.number().optional()),
|
|
36
|
-
numPrompts: core.serialization.property("num_prompts", core.serialization.number().optional()),
|
|
37
|
-
numTools: core.serialization.property("num_tools", core.serialization.number().optional()),
|
|
38
|
-
numVoices: core.serialization.property("num_voices", core.serialization.number().optional()),
|
|
39
|
-
});
|