casedev 0.23.0 → 0.24.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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/agent/v1/agents.d.mts +22 -1
- package/resources/agent/v1/agents.d.mts.map +1 -1
- package/resources/agent/v1/agents.d.ts +22 -1
- package/resources/agent/v1/agents.d.ts.map +1 -1
- package/resources/agent/v1/chat.d.mts +1 -1
- package/resources/agent/v1/chat.d.ts +1 -1
- package/resources/applications/v1/deployments.d.mts +26 -16
- package/resources/applications/v1/deployments.d.mts.map +1 -1
- package/resources/applications/v1/deployments.d.ts +26 -16
- package/resources/applications/v1/deployments.d.ts.map +1 -1
- package/resources/applications/v1/deployments.js +16 -6
- package/resources/applications/v1/deployments.js.map +1 -1
- package/resources/applications/v1/deployments.mjs +16 -6
- package/resources/applications/v1/deployments.mjs.map +1 -1
- package/resources/applications/v1/index.d.mts +1 -1
- package/resources/applications/v1/index.d.mts.map +1 -1
- package/resources/applications/v1/index.d.ts +1 -1
- package/resources/applications/v1/index.d.ts.map +1 -1
- package/resources/applications/v1/index.js.map +1 -1
- package/resources/applications/v1/index.mjs.map +1 -1
- package/resources/applications/v1/projects.d.mts +91 -24
- package/resources/applications/v1/projects.d.mts.map +1 -1
- package/resources/applications/v1/projects.d.ts +91 -24
- package/resources/applications/v1/projects.d.ts.map +1 -1
- package/resources/applications/v1/projects.js +20 -8
- package/resources/applications/v1/projects.js.map +1 -1
- package/resources/applications/v1/projects.mjs +20 -8
- package/resources/applications/v1/projects.mjs.map +1 -1
- package/resources/applications/v1/v1.d.mts +2 -2
- package/resources/applications/v1/v1.d.mts.map +1 -1
- package/resources/applications/v1/v1.d.ts +2 -2
- package/resources/applications/v1/v1.d.ts.map +1 -1
- package/resources/applications/v1/v1.js.map +1 -1
- package/resources/applications/v1/v1.mjs.map +1 -1
- package/resources/format/v1/v1.d.mts +8 -0
- package/resources/format/v1/v1.d.mts.map +1 -1
- package/resources/format/v1/v1.d.ts +8 -0
- package/resources/format/v1/v1.d.ts.map +1 -1
- package/resources/format/v1/v1.js.map +1 -1
- package/resources/format/v1/v1.mjs.map +1 -1
- package/resources/legal/v1.d.mts +9 -0
- package/resources/legal/v1.d.mts.map +1 -1
- package/resources/legal/v1.d.ts +9 -0
- package/resources/legal/v1.d.ts.map +1 -1
- package/resources/vault/events/subscriptions.d.mts +20 -6
- package/resources/vault/events/subscriptions.d.mts.map +1 -1
- package/resources/vault/events/subscriptions.d.ts +20 -6
- package/resources/vault/events/subscriptions.d.ts.map +1 -1
- package/resources/vault/groups.d.mts +34 -7
- package/resources/vault/groups.d.mts.map +1 -1
- package/resources/vault/groups.d.ts +34 -7
- package/resources/vault/groups.d.ts.map +1 -1
- package/resources/vault/groups.js +13 -7
- package/resources/vault/groups.js.map +1 -1
- package/resources/vault/groups.mjs +13 -7
- package/resources/vault/groups.mjs.map +1 -1
- package/resources/vault/index.d.mts +1 -1
- package/resources/vault/index.d.mts.map +1 -1
- package/resources/vault/index.d.ts +1 -1
- package/resources/vault/index.d.ts.map +1 -1
- package/resources/vault/index.js.map +1 -1
- package/resources/vault/index.mjs.map +1 -1
- package/resources/vault/multipart.d.mts +18 -0
- package/resources/vault/multipart.d.mts.map +1 -1
- package/resources/vault/multipart.d.ts +18 -0
- package/resources/vault/multipart.d.ts.map +1 -1
- package/resources/vault/vault.d.mts +2 -2
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +2 -2
- package/resources/vault/vault.d.ts.map +1 -1
- package/resources/vault/vault.js.map +1 -1
- package/resources/vault/vault.mjs.map +1 -1
- package/resources/voice/boost-list.d.mts +88 -0
- package/resources/voice/boost-list.d.mts.map +1 -0
- package/resources/voice/boost-list.d.ts +88 -0
- package/resources/voice/boost-list.d.ts.map +1 -0
- package/resources/voice/boost-list.js +40 -0
- package/resources/voice/boost-list.js.map +1 -0
- package/resources/voice/boost-list.mjs +36 -0
- package/resources/voice/boost-list.mjs.map +1 -0
- package/resources/voice/index.d.mts +1 -0
- package/resources/voice/index.d.mts.map +1 -1
- package/resources/voice/index.d.ts +1 -0
- package/resources/voice/index.d.ts.map +1 -1
- package/resources/voice/index.js +3 -1
- package/resources/voice/index.js.map +1 -1
- package/resources/voice/index.mjs +1 -0
- package/resources/voice/index.mjs.map +1 -1
- package/resources/voice/voice.d.mts +4 -0
- package/resources/voice/voice.d.mts.map +1 -1
- package/resources/voice/voice.d.ts +4 -0
- package/resources/voice/voice.d.ts.map +1 -1
- package/resources/voice/voice.js +4 -0
- package/resources/voice/voice.js.map +1 -1
- package/resources/voice/voice.mjs +4 -0
- package/resources/voice/voice.mjs.map +1 -1
- package/src/resources/agent/v1/agents.ts +22 -1
- package/src/resources/agent/v1/chat.ts +1 -1
- package/src/resources/applications/v1/deployments.ts +26 -16
- package/src/resources/applications/v1/index.ts +1 -0
- package/src/resources/applications/v1/projects.ts +97 -24
- package/src/resources/applications/v1/v1.ts +2 -0
- package/src/resources/format/v1/v1.ts +8 -0
- package/src/resources/legal/v1.ts +9 -0
- package/src/resources/vault/events/subscriptions.ts +20 -6
- package/src/resources/vault/groups.ts +41 -7
- package/src/resources/vault/index.ts +1 -1
- package/src/resources/vault/multipart.ts +18 -0
- package/src/resources/vault/vault.ts +6 -2
- package/src/resources/voice/boost-list.ts +119 -0
- package/src/resources/voice/index.ts +7 -0
- package/src/resources/voice/voice.ts +18 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Audio transcription and text-to-speech
|
|
9
|
+
*/
|
|
10
|
+
export class BoostList extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Extracts a categorized word boost list from vault documents or raw text using
|
|
13
|
+
* LLM entity extraction. The resulting list can be passed as `word_boost` to the
|
|
14
|
+
* transcription endpoint for improved accuracy.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const response = await client.voice.boostList.extract();
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
extract(body: BoostListExtractParams, options?: RequestOptions): APIPromise<BoostListExtractResponse> {
|
|
22
|
+
return this._client.post('/voice/boost-list/extract', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Generates a categorized word boost list from a completed transcription job.
|
|
27
|
+
* Extracts entities from the pass-1 transcript for use as `word_boost` in a second
|
|
28
|
+
* transcription pass.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const response = await client.voice.boostList.generate({
|
|
33
|
+
* transcription_job_id: 'transcription_job_id',
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
generate(body: BoostListGenerateParams, options?: RequestOptions): APIPromise<BoostListGenerateResponse> {
|
|
38
|
+
return this._client.post('/voice/boost-list/generate', { body, ...options });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface BoostListExtractResponse {
|
|
43
|
+
items?: Array<BoostListExtractResponse.Item>;
|
|
44
|
+
|
|
45
|
+
source?: 'document' | 'text';
|
|
46
|
+
|
|
47
|
+
source_ids?: Array<string>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export namespace BoostListExtractResponse {
|
|
51
|
+
export interface Item {
|
|
52
|
+
boost_param?: 'low' | 'default' | 'high';
|
|
53
|
+
|
|
54
|
+
category?: string;
|
|
55
|
+
|
|
56
|
+
word?: string;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface BoostListGenerateResponse {
|
|
61
|
+
items?: Array<BoostListGenerateResponse.Item>;
|
|
62
|
+
|
|
63
|
+
source?: 'transcript';
|
|
64
|
+
|
|
65
|
+
source_ids?: Array<string>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export namespace BoostListGenerateResponse {
|
|
69
|
+
export interface Item {
|
|
70
|
+
boost_param?: 'low' | 'default' | 'high';
|
|
71
|
+
|
|
72
|
+
category?: string;
|
|
73
|
+
|
|
74
|
+
word?: string;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface BoostListExtractParams {
|
|
79
|
+
/**
|
|
80
|
+
* Optional filter for entity categories to extract
|
|
81
|
+
*/
|
|
82
|
+
categories?: Array<'person' | 'organization' | 'legal_term' | 'medical' | 'citation' | 'email'>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Object IDs of documents to extract entities from (PDFs, text files)
|
|
86
|
+
*/
|
|
87
|
+
object_ids?: Array<string>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Raw text input for entity extraction (alternative to vault documents)
|
|
91
|
+
*/
|
|
92
|
+
text?: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Vault ID containing the source documents (use with object_ids)
|
|
96
|
+
*/
|
|
97
|
+
vault_id?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface BoostListGenerateParams {
|
|
101
|
+
/**
|
|
102
|
+
* Completed pass-1 transcription job ID (tr\_...)
|
|
103
|
+
*/
|
|
104
|
+
transcription_job_id: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Optional filter for entity categories to extract
|
|
108
|
+
*/
|
|
109
|
+
categories?: Array<'person' | 'organization' | 'legal_term' | 'medical' | 'citation' | 'email'>;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export declare namespace BoostList {
|
|
113
|
+
export {
|
|
114
|
+
type BoostListExtractResponse as BoostListExtractResponse,
|
|
115
|
+
type BoostListGenerateResponse as BoostListGenerateResponse,
|
|
116
|
+
type BoostListExtractParams as BoostListExtractParams,
|
|
117
|
+
type BoostListGenerateParams as BoostListGenerateParams,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
BoostList,
|
|
5
|
+
type BoostListExtractResponse,
|
|
6
|
+
type BoostListGenerateResponse,
|
|
7
|
+
type BoostListExtractParams,
|
|
8
|
+
type BoostListGenerateParams,
|
|
9
|
+
} from './boost-list';
|
|
3
10
|
export { Streaming, type StreamingGetURLResponse } from './streaming';
|
|
4
11
|
export {
|
|
5
12
|
Transcription,
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as BoostListAPI from './boost-list';
|
|
5
|
+
import {
|
|
6
|
+
BoostList,
|
|
7
|
+
BoostListExtractParams,
|
|
8
|
+
BoostListExtractResponse,
|
|
9
|
+
BoostListGenerateParams,
|
|
10
|
+
BoostListGenerateResponse,
|
|
11
|
+
} from './boost-list';
|
|
4
12
|
import * as StreamingAPI from './streaming';
|
|
5
13
|
import { Streaming, StreamingGetURLResponse } from './streaming';
|
|
6
14
|
import * as TranscriptionAPI from './transcription';
|
|
@@ -15,17 +23,27 @@ import { V1, V1ListVoicesParams, V1ListVoicesResponse } from './v1/v1';
|
|
|
15
23
|
|
|
16
24
|
export class Voice extends APIResource {
|
|
17
25
|
streaming: StreamingAPI.Streaming = new StreamingAPI.Streaming(this._client);
|
|
26
|
+
boostList: BoostListAPI.BoostList = new BoostListAPI.BoostList(this._client);
|
|
18
27
|
transcription: TranscriptionAPI.Transcription = new TranscriptionAPI.Transcription(this._client);
|
|
19
28
|
v1: V1API.V1 = new V1API.V1(this._client);
|
|
20
29
|
}
|
|
21
30
|
|
|
22
31
|
Voice.Streaming = Streaming;
|
|
32
|
+
Voice.BoostList = BoostList;
|
|
23
33
|
Voice.Transcription = Transcription;
|
|
24
34
|
Voice.V1 = V1;
|
|
25
35
|
|
|
26
36
|
export declare namespace Voice {
|
|
27
37
|
export { Streaming as Streaming, type StreamingGetURLResponse as StreamingGetURLResponse };
|
|
28
38
|
|
|
39
|
+
export {
|
|
40
|
+
BoostList as BoostList,
|
|
41
|
+
type BoostListExtractResponse as BoostListExtractResponse,
|
|
42
|
+
type BoostListGenerateResponse as BoostListGenerateResponse,
|
|
43
|
+
type BoostListExtractParams as BoostListExtractParams,
|
|
44
|
+
type BoostListGenerateParams as BoostListGenerateParams,
|
|
45
|
+
};
|
|
46
|
+
|
|
29
47
|
export {
|
|
30
48
|
Transcription as Transcription,
|
|
31
49
|
type TranscriptionCreateResponse as TranscriptionCreateResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.24.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.24.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.24.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.24.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|