casedev 0.23.0 → 0.25.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 +16 -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 +55 -11
- package/resources/legal/v1.d.mts.map +1 -1
- package/resources/legal/v1.d.ts +55 -11
- package/resources/legal/v1.d.ts.map +1 -1
- package/resources/legal/v1.js +3 -3
- package/resources/legal/v1.mjs +3 -3
- 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 +62 -11
- 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
|
@@ -10,7 +10,7 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
10
10
|
export class V1 extends APIResource {
|
|
11
11
|
/**
|
|
12
12
|
* Search federal court dockets or retrieve a specific docket with optional filing
|
|
13
|
-
* entries
|
|
13
|
+
* entries. Use legal.listCourts() to resolve court slugs for filtering.
|
|
14
14
|
*/
|
|
15
15
|
docket(body: V1DocketParams, options?: RequestOptions): APIPromise<V1DocketResponse> {
|
|
16
16
|
return this._client.post('/legal/v1/docket', { body, ...options });
|
|
@@ -65,8 +65,8 @@ export class V1 extends APIResource {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* Returns
|
|
69
|
-
*
|
|
68
|
+
* Returns court IDs (slugs) and names for use with the docket search endpoint. Use
|
|
69
|
+
* the returned court ID as the `court` parameter in legal.docket().
|
|
70
70
|
*/
|
|
71
71
|
listCourts(
|
|
72
72
|
body: V1ListCourtsParams | null | undefined = {},
|
|
@@ -234,6 +234,16 @@ export interface V1DocketResponse {
|
|
|
234
234
|
*/
|
|
235
235
|
includeEntries?: boolean;
|
|
236
236
|
|
|
237
|
+
/**
|
|
238
|
+
* Whether this was a live PACER fetch (lookup mode only)
|
|
239
|
+
*/
|
|
240
|
+
live?: boolean;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* PACER fee information (present when live: true)
|
|
244
|
+
*/
|
|
245
|
+
pacerFees?: V1DocketResponse.PacerFees | null;
|
|
246
|
+
|
|
237
247
|
/**
|
|
238
248
|
* Pagination info for entry list (lookup mode with includeEntries)
|
|
239
249
|
*/
|
|
@@ -276,6 +286,28 @@ export namespace V1DocketResponse {
|
|
|
276
286
|
}
|
|
277
287
|
}
|
|
278
288
|
|
|
289
|
+
/**
|
|
290
|
+
* PACER fee information (present when live: true)
|
|
291
|
+
*/
|
|
292
|
+
export interface PacerFees {
|
|
293
|
+
currency?: 'USD';
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Time taken for PACER fetch in milliseconds
|
|
297
|
+
*/
|
|
298
|
+
fetchDurationMs?: number;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Maximum PACER charge per docket in USD
|
|
302
|
+
*/
|
|
303
|
+
maxPacerCost?: number;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* CaseMark service fee in USD
|
|
307
|
+
*/
|
|
308
|
+
serviceFee?: number;
|
|
309
|
+
}
|
|
310
|
+
|
|
279
311
|
/**
|
|
280
312
|
* Pagination info for entry list (lookup mode with includeEntries)
|
|
281
313
|
*/
|
|
@@ -582,7 +614,7 @@ export interface V1ListCourtsResponse {
|
|
|
582
614
|
export namespace V1ListCourtsResponse {
|
|
583
615
|
export interface Court {
|
|
584
616
|
/**
|
|
585
|
-
*
|
|
617
|
+
* Court slug (use as the court parameter in legal.docket())
|
|
586
618
|
*/
|
|
587
619
|
id?: string;
|
|
588
620
|
|
|
@@ -1044,7 +1076,14 @@ export interface V1DocketParams {
|
|
|
1044
1076
|
type: 'search' | 'lookup';
|
|
1045
1077
|
|
|
1046
1078
|
/**
|
|
1047
|
-
*
|
|
1079
|
+
* Required when live: true. Acknowledges that PACER fees (up to $3.00 per docket)
|
|
1080
|
+
* plus a $0.05 service fee will be charged to your account.
|
|
1081
|
+
*/
|
|
1082
|
+
acknowledgePacerFees?: boolean;
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Optional court slug for filtering (e.g. "nysd", "ca9", "cafc"). Use
|
|
1086
|
+
* legal.listCourts() to find slugs.
|
|
1048
1087
|
*/
|
|
1049
1088
|
court?: string;
|
|
1050
1089
|
|
|
@@ -1059,12 +1098,13 @@ export interface V1DocketParams {
|
|
|
1059
1098
|
dateFiledBefore?: string;
|
|
1060
1099
|
|
|
1061
1100
|
/**
|
|
1062
|
-
*
|
|
1101
|
+
* Docket ID (required for lookup)
|
|
1063
1102
|
*/
|
|
1064
1103
|
docketId?: string;
|
|
1065
1104
|
|
|
1066
1105
|
/**
|
|
1067
|
-
* Include docket entries/filings in lookup responses
|
|
1106
|
+
* Include docket entries/filings in lookup responses. Coming soon — currently
|
|
1107
|
+
* returns 501. The parameter is accepted for forward compatibility.
|
|
1068
1108
|
*/
|
|
1069
1109
|
includeEntries?: boolean;
|
|
1070
1110
|
|
|
@@ -1075,8 +1115,9 @@ export interface V1DocketParams {
|
|
|
1075
1115
|
limit?: number;
|
|
1076
1116
|
|
|
1077
1117
|
/**
|
|
1078
|
-
*
|
|
1079
|
-
*
|
|
1118
|
+
* Trigger a live PACER fetch for dockets not yet in the RECAP archive. Requires
|
|
1119
|
+
* acknowledgePacerFees: true. PACER charges up to $3.00 per docket sheet plus a
|
|
1120
|
+
* $0.05 service fee. Only valid with type: "lookup".
|
|
1080
1121
|
*/
|
|
1081
1122
|
live?: boolean;
|
|
1082
1123
|
|
|
@@ -1156,6 +1197,9 @@ export namespace V1DraftParams {
|
|
|
1156
1197
|
*/
|
|
1157
1198
|
target?: number;
|
|
1158
1199
|
|
|
1200
|
+
/**
|
|
1201
|
+
* Whether the target length is measured in words or pages
|
|
1202
|
+
*/
|
|
1159
1203
|
unit?: 'words' | 'pages';
|
|
1160
1204
|
}
|
|
1161
1205
|
}
|
|
@@ -1217,17 +1261,24 @@ export interface V1GetFullTextParams {
|
|
|
1217
1261
|
|
|
1218
1262
|
export interface V1ListCourtsParams {
|
|
1219
1263
|
/**
|
|
1220
|
-
* Only return courts
|
|
1264
|
+
* Only return courts with available docket data
|
|
1221
1265
|
*/
|
|
1222
1266
|
inUseOnly?: boolean;
|
|
1223
1267
|
|
|
1224
1268
|
/**
|
|
1225
|
-
* Optional
|
|
1269
|
+
* Optional jurisdiction code filter (e.g. FD for Federal District, F for all
|
|
1270
|
+
* Federal, S for State)
|
|
1226
1271
|
*/
|
|
1227
1272
|
jurisdiction?: string;
|
|
1228
1273
|
|
|
1274
|
+
/**
|
|
1275
|
+
* Maximum number of courts to return
|
|
1276
|
+
*/
|
|
1229
1277
|
limit?: number;
|
|
1230
1278
|
|
|
1279
|
+
/**
|
|
1280
|
+
* Number of courts to skip before returning results
|
|
1281
|
+
*/
|
|
1231
1282
|
offset?: number;
|
|
1232
1283
|
|
|
1233
1284
|
/**
|
|
@@ -115,12 +115,25 @@ export class Subscriptions extends APIResource {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
export interface SubscriptionCreateParams {
|
|
118
|
+
/**
|
|
119
|
+
* Webhook endpoint URL that will receive vault event deliveries
|
|
120
|
+
*/
|
|
118
121
|
callbackUrl: string;
|
|
119
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Vault event types to deliver. Omit to receive the default supported set.
|
|
125
|
+
*/
|
|
120
126
|
eventTypes?: Array<string>;
|
|
121
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Vault object IDs to limit notifications to. Omit to receive events for all
|
|
130
|
+
* objects in the vault.
|
|
131
|
+
*/
|
|
122
132
|
objectIds?: Array<string>;
|
|
123
133
|
|
|
134
|
+
/**
|
|
135
|
+
* Optional secret used to sign outbound webhook deliveries
|
|
136
|
+
*/
|
|
124
137
|
signingSecret?: string;
|
|
125
138
|
}
|
|
126
139
|
|
|
@@ -131,32 +144,33 @@ export interface SubscriptionUpdateParams {
|
|
|
131
144
|
id: string;
|
|
132
145
|
|
|
133
146
|
/**
|
|
134
|
-
* Body param
|
|
147
|
+
* Body param: Updated webhook endpoint URL for deliveries
|
|
135
148
|
*/
|
|
136
149
|
callbackUrl?: string;
|
|
137
150
|
|
|
138
151
|
/**
|
|
139
|
-
* Body param
|
|
152
|
+
* Body param: Whether to remove the existing signing secret
|
|
140
153
|
*/
|
|
141
154
|
clearSigningSecret?: boolean;
|
|
142
155
|
|
|
143
156
|
/**
|
|
144
|
-
* Body param
|
|
157
|
+
* Body param: Updated event types to deliver for this subscription
|
|
145
158
|
*/
|
|
146
159
|
eventTypes?: Array<string>;
|
|
147
160
|
|
|
148
161
|
/**
|
|
149
|
-
* Body param
|
|
162
|
+
* Body param: Whether the subscription should continue delivering events
|
|
150
163
|
*/
|
|
151
164
|
isActive?: boolean;
|
|
152
165
|
|
|
153
166
|
/**
|
|
154
|
-
* Body param
|
|
167
|
+
* Body param: Updated vault object IDs to limit notifications to. Pass an empty
|
|
168
|
+
* array to remove the filter.
|
|
155
169
|
*/
|
|
156
170
|
objectIds?: Array<string>;
|
|
157
171
|
|
|
158
172
|
/**
|
|
159
|
-
* Body param
|
|
173
|
+
* Body param: Replacement secret used to sign webhook deliveries
|
|
160
174
|
*/
|
|
161
175
|
signingSecret?: string;
|
|
162
176
|
}
|
|
@@ -11,37 +11,42 @@ import { path } from '../../internal/utils/path';
|
|
|
11
11
|
*/
|
|
12
12
|
export class Groups extends APIResource {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Creates a vault group for organizing vaults and applying group-scoped access
|
|
15
|
+
* controls. Group-scoped API keys cannot create or manage vault groups.
|
|
15
16
|
*
|
|
16
17
|
* @example
|
|
17
18
|
* ```ts
|
|
18
|
-
* await client.vault.groups.create();
|
|
19
|
+
* await client.vault.groups.create({ name: 'name' });
|
|
19
20
|
* ```
|
|
20
21
|
*/
|
|
21
|
-
create(options?: RequestOptions): APIPromise<void> {
|
|
22
|
+
create(body: GroupCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
22
23
|
return this._client.post('/vault/groups', {
|
|
24
|
+
body,
|
|
23
25
|
...options,
|
|
24
26
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
25
27
|
});
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* Updates a vault group for the authenticated organization. Only provided fields
|
|
32
|
+
* are changed, and setting description to null removes the current description.
|
|
30
33
|
*
|
|
31
34
|
* @example
|
|
32
35
|
* ```ts
|
|
33
36
|
* await client.vault.groups.update('groupId');
|
|
34
37
|
* ```
|
|
35
38
|
*/
|
|
36
|
-
update(groupID: string, options?: RequestOptions): APIPromise<void> {
|
|
39
|
+
update(groupID: string, body: GroupUpdateParams, options?: RequestOptions): APIPromise<void> {
|
|
37
40
|
return this._client.patch(path`/vault/groups/${groupID}`, {
|
|
41
|
+
body,
|
|
38
42
|
...options,
|
|
39
43
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
40
44
|
});
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
/**
|
|
44
|
-
*
|
|
48
|
+
* Lists vault groups visible to the authenticated organization. Group-scoped API
|
|
49
|
+
* keys only receive groups within their allowed scope.
|
|
45
50
|
*
|
|
46
51
|
* @example
|
|
47
52
|
* ```ts
|
|
@@ -56,7 +61,8 @@ export class Groups extends APIResource {
|
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
/**
|
|
59
|
-
*
|
|
64
|
+
* Soft-deletes a vault group that no longer has any active vaults assigned. This
|
|
65
|
+
* operation is blocked when the group still contains vaults.
|
|
60
66
|
*
|
|
61
67
|
* @example
|
|
62
68
|
* ```ts
|
|
@@ -70,3 +76,31 @@ export class Groups extends APIResource {
|
|
|
70
76
|
});
|
|
71
77
|
}
|
|
72
78
|
}
|
|
79
|
+
|
|
80
|
+
export interface GroupCreateParams {
|
|
81
|
+
/**
|
|
82
|
+
* Human-readable name for the vault group
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Optional description of the vault group purpose
|
|
88
|
+
*/
|
|
89
|
+
description?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface GroupUpdateParams {
|
|
93
|
+
/**
|
|
94
|
+
* Updated vault group description. Pass null to remove the current description.
|
|
95
|
+
*/
|
|
96
|
+
description?: string | null;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* New human-readable name for the vault group
|
|
100
|
+
*/
|
|
101
|
+
name?: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export declare namespace Groups {
|
|
105
|
+
export { type GroupCreateParams as GroupCreateParams, type GroupUpdateParams as GroupUpdateParams };
|
|
106
|
+
}
|
|
@@ -8,7 +8,7 @@ export {
|
|
|
8
8
|
type GraphragProcessObjectResponse,
|
|
9
9
|
type GraphragProcessObjectParams,
|
|
10
10
|
} from './graphrag';
|
|
11
|
-
export { Groups } from './groups';
|
|
11
|
+
export { Groups, type GroupCreateParams, type GroupUpdateParams } from './groups';
|
|
12
12
|
export {
|
|
13
13
|
Multipart,
|
|
14
14
|
type MultipartGetPartURLsResponse,
|
|
@@ -66,21 +66,39 @@ export namespace MultipartGetPartURLsResponse {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export interface MultipartAbortParams {
|
|
69
|
+
/**
|
|
70
|
+
* Vault object ID associated with the multipart upload
|
|
71
|
+
*/
|
|
69
72
|
objectId: string;
|
|
70
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Multipart upload ID returned when the upload was initialized
|
|
76
|
+
*/
|
|
71
77
|
uploadId: string;
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
export interface MultipartGetPartURLsParams {
|
|
81
|
+
/**
|
|
82
|
+
* Vault object ID associated with the multipart upload
|
|
83
|
+
*/
|
|
75
84
|
objectId: string;
|
|
76
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Multipart parts that need presigned upload URLs
|
|
88
|
+
*/
|
|
77
89
|
parts: Array<MultipartGetPartURLsParams.Part>;
|
|
78
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Multipart upload ID returned when the upload was initialized
|
|
93
|
+
*/
|
|
79
94
|
uploadId: string;
|
|
80
95
|
}
|
|
81
96
|
|
|
82
97
|
export namespace MultipartGetPartURLsParams {
|
|
83
98
|
export interface Part {
|
|
99
|
+
/**
|
|
100
|
+
* 1-based multipart part number
|
|
101
|
+
*/
|
|
84
102
|
partNumber: number;
|
|
85
103
|
|
|
86
104
|
/**
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
GraphragProcessObjectResponse,
|
|
11
11
|
} from './graphrag';
|
|
12
12
|
import * as GroupsAPI from './groups';
|
|
13
|
-
import { Groups } from './groups';
|
|
13
|
+
import { GroupCreateParams, GroupUpdateParams, Groups } from './groups';
|
|
14
14
|
import * as MultipartAPI from './multipart';
|
|
15
15
|
import {
|
|
16
16
|
Multipart,
|
|
@@ -963,7 +963,11 @@ export declare namespace Vault {
|
|
|
963
963
|
type GraphragProcessObjectParams as GraphragProcessObjectParams,
|
|
964
964
|
};
|
|
965
965
|
|
|
966
|
-
export {
|
|
966
|
+
export {
|
|
967
|
+
Groups as Groups,
|
|
968
|
+
type GroupCreateParams as GroupCreateParams,
|
|
969
|
+
type GroupUpdateParams as GroupUpdateParams,
|
|
970
|
+
};
|
|
967
971
|
|
|
968
972
|
export {
|
|
969
973
|
Multipart as Multipart,
|
|
@@ -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.25.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.25.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.25.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.25.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|