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
|
@@ -8,7 +8,9 @@ import { path } from '../../../internal/utils/path';
|
|
|
8
8
|
|
|
9
9
|
export class Projects extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Creates a new application project, validates GitHub access, provisions a default
|
|
12
|
+
* case.dev domain, and starts the deployment workflow. The initial response
|
|
13
|
+
* returns as soon as the workflow is queued so clients can poll for progress.
|
|
12
14
|
*/
|
|
13
15
|
create(body: ProjectCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
14
16
|
return this._client.post('/applications/v1/projects', {
|
|
@@ -19,7 +21,9 @@ export class Projects extends APIResource {
|
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
|
-
*
|
|
24
|
+
* Returns project details, domains, and recent deployment information for one
|
|
25
|
+
* application project or deployed Thurgood app. Use this endpoint when you need a
|
|
26
|
+
* single record with hosting metadata for a details view.
|
|
23
27
|
*/
|
|
24
28
|
retrieve(id: string, options?: RequestOptions): APIPromise<void> {
|
|
25
29
|
return this._client.get(path`/applications/v1/projects/${id}`, {
|
|
@@ -29,14 +33,21 @@ export class Projects extends APIResource {
|
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
/**
|
|
32
|
-
*
|
|
36
|
+
* Lists application projects and deployed Thurgood apps for the authenticated
|
|
37
|
+
* organization. Use enrich=true to include additional hosting metadata for
|
|
38
|
+
* projects linked to Vercel.
|
|
33
39
|
*/
|
|
34
|
-
list(
|
|
35
|
-
|
|
40
|
+
list(
|
|
41
|
+
query: ProjectListParams | null | undefined = {},
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<ProjectListResponse> {
|
|
44
|
+
return this._client.get('/applications/v1/projects', { query, ...options });
|
|
36
45
|
}
|
|
37
46
|
|
|
38
47
|
/**
|
|
39
|
-
*
|
|
48
|
+
* Soft-deletes an application project or deployed Thurgood app from Case.dev. By
|
|
49
|
+
* default it also removes the linked hosting project; set deleteFromHosting=false
|
|
50
|
+
* to keep the external hosting resources intact.
|
|
40
51
|
*/
|
|
41
52
|
delete(
|
|
42
53
|
id: string,
|
|
@@ -52,7 +63,9 @@ export class Projects extends APIResource {
|
|
|
52
63
|
}
|
|
53
64
|
|
|
54
65
|
/**
|
|
55
|
-
*
|
|
66
|
+
* Starts a new deployment for an existing project using its saved repository and
|
|
67
|
+
* hosting configuration. Any environment variables passed in the request are
|
|
68
|
+
* merged into the deployment workflow before the build starts.
|
|
56
69
|
*/
|
|
57
70
|
createDeployment(
|
|
58
71
|
id: string,
|
|
@@ -130,7 +143,9 @@ export class Projects extends APIResource {
|
|
|
130
143
|
}
|
|
131
144
|
|
|
132
145
|
/**
|
|
133
|
-
*
|
|
146
|
+
* Lists deployments for one project in the authenticated organization. If the
|
|
147
|
+
* hosting project has not been created yet, this endpoint returns an empty list
|
|
148
|
+
* with a progress message instead of failing.
|
|
134
149
|
*/
|
|
135
150
|
listDeployments(
|
|
136
151
|
id: string,
|
|
@@ -172,40 +187,85 @@ export class Projects extends APIResource {
|
|
|
172
187
|
}
|
|
173
188
|
|
|
174
189
|
export interface ProjectListResponse {
|
|
190
|
+
/**
|
|
191
|
+
* Projects and deployed apps visible to the organization
|
|
192
|
+
*/
|
|
175
193
|
projects?: Array<ProjectListResponse.Project>;
|
|
176
194
|
}
|
|
177
195
|
|
|
178
196
|
export namespace ProjectListResponse {
|
|
179
197
|
export interface Project {
|
|
198
|
+
/**
|
|
199
|
+
* Project identifier
|
|
200
|
+
*/
|
|
180
201
|
id?: string;
|
|
181
202
|
|
|
203
|
+
/**
|
|
204
|
+
* When the project record was created
|
|
205
|
+
*/
|
|
182
206
|
createdAt?: string;
|
|
183
207
|
|
|
208
|
+
/**
|
|
209
|
+
* Custom or generated domains assigned to the project
|
|
210
|
+
*/
|
|
184
211
|
domains?: Array<Project.Domain>;
|
|
185
212
|
|
|
213
|
+
/**
|
|
214
|
+
* Detected or configured application framework
|
|
215
|
+
*/
|
|
186
216
|
framework?: string;
|
|
187
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Default Git branch used for deployments
|
|
220
|
+
*/
|
|
188
221
|
gitBranch?: string;
|
|
189
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Connected Git repository in owner/repo format
|
|
225
|
+
*/
|
|
190
226
|
gitRepo?: string;
|
|
191
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Project display name
|
|
230
|
+
*/
|
|
192
231
|
name?: string;
|
|
193
232
|
|
|
233
|
+
/**
|
|
234
|
+
* Current project deployment status
|
|
235
|
+
*/
|
|
194
236
|
status?: string;
|
|
195
237
|
|
|
238
|
+
/**
|
|
239
|
+
* When the project record was last updated
|
|
240
|
+
*/
|
|
196
241
|
updatedAt?: string;
|
|
197
242
|
|
|
243
|
+
/**
|
|
244
|
+
* Hosting provider project ID, when linked
|
|
245
|
+
*/
|
|
198
246
|
vercelProjectId?: string;
|
|
199
247
|
}
|
|
200
248
|
|
|
201
249
|
export namespace Project {
|
|
202
250
|
export interface Domain {
|
|
251
|
+
/**
|
|
252
|
+
* Domain record identifier
|
|
253
|
+
*/
|
|
203
254
|
id?: string;
|
|
204
255
|
|
|
256
|
+
/**
|
|
257
|
+
* Hostname assigned to the project
|
|
258
|
+
*/
|
|
205
259
|
domain?: string;
|
|
206
260
|
|
|
261
|
+
/**
|
|
262
|
+
* Whether this is the primary project domain
|
|
263
|
+
*/
|
|
207
264
|
isPrimary?: boolean;
|
|
208
265
|
|
|
266
|
+
/**
|
|
267
|
+
* Whether the domain has been verified by the hosting provider
|
|
268
|
+
*/
|
|
209
269
|
isVerified?: boolean;
|
|
210
270
|
}
|
|
211
271
|
}
|
|
@@ -213,47 +273,47 @@ export namespace ProjectListResponse {
|
|
|
213
273
|
|
|
214
274
|
export interface ProjectCreateParams {
|
|
215
275
|
/**
|
|
216
|
-
* GitHub repository URL or
|
|
276
|
+
* GitHub repository URL or owner/repo identifier
|
|
217
277
|
*/
|
|
218
278
|
gitRepo: string;
|
|
219
279
|
|
|
220
280
|
/**
|
|
221
|
-
*
|
|
281
|
+
* Human-readable project name
|
|
222
282
|
*/
|
|
223
283
|
name: string;
|
|
224
284
|
|
|
225
285
|
/**
|
|
226
|
-
* Custom build command
|
|
286
|
+
* Custom build command to override the framework default
|
|
227
287
|
*/
|
|
228
288
|
buildCommand?: string;
|
|
229
289
|
|
|
230
290
|
/**
|
|
231
|
-
* Environment variables to
|
|
291
|
+
* Environment variables to create before the first deployment
|
|
232
292
|
*/
|
|
233
293
|
environmentVariables?: Array<ProjectCreateParams.EnvironmentVariable>;
|
|
234
294
|
|
|
235
295
|
/**
|
|
236
|
-
* Framework
|
|
296
|
+
* Framework preset for the hosting project, such as nextjs or remix
|
|
237
297
|
*/
|
|
238
298
|
framework?: string;
|
|
239
299
|
|
|
240
300
|
/**
|
|
241
|
-
* Git branch to deploy
|
|
301
|
+
* Git branch to deploy. Defaults to main.
|
|
242
302
|
*/
|
|
243
303
|
gitBranch?: string;
|
|
244
304
|
|
|
245
305
|
/**
|
|
246
|
-
* Custom install command
|
|
306
|
+
* Custom install command to override the framework default
|
|
247
307
|
*/
|
|
248
308
|
installCommand?: string;
|
|
249
309
|
|
|
250
310
|
/**
|
|
251
|
-
* Build output directory
|
|
311
|
+
* Build output directory relative to the project root
|
|
252
312
|
*/
|
|
253
313
|
outputDirectory?: string;
|
|
254
314
|
|
|
255
315
|
/**
|
|
256
|
-
*
|
|
316
|
+
* Repository subdirectory that contains the app to deploy
|
|
257
317
|
*/
|
|
258
318
|
rootDirectory?: string;
|
|
259
319
|
}
|
|
@@ -266,7 +326,7 @@ export namespace ProjectCreateParams {
|
|
|
266
326
|
key: string;
|
|
267
327
|
|
|
268
328
|
/**
|
|
269
|
-
* Deployment targets
|
|
329
|
+
* Deployment targets that should receive this variable
|
|
270
330
|
*/
|
|
271
331
|
target: Array<'production' | 'preview' | 'development'>;
|
|
272
332
|
|
|
@@ -276,15 +336,27 @@ export namespace ProjectCreateParams {
|
|
|
276
336
|
value: string;
|
|
277
337
|
|
|
278
338
|
/**
|
|
279
|
-
*
|
|
339
|
+
* Storage mode for the environment variable value
|
|
280
340
|
*/
|
|
281
341
|
type?: 'plain' | 'encrypted' | 'secret';
|
|
282
342
|
}
|
|
283
343
|
}
|
|
284
344
|
|
|
345
|
+
export interface ProjectListParams {
|
|
346
|
+
/**
|
|
347
|
+
* Whether to include additional hosting metadata from Vercel
|
|
348
|
+
*/
|
|
349
|
+
enrich?: boolean;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Maximum number of projects to return from each backing source
|
|
353
|
+
*/
|
|
354
|
+
limit?: number;
|
|
355
|
+
}
|
|
356
|
+
|
|
285
357
|
export interface ProjectDeleteParams {
|
|
286
358
|
/**
|
|
287
|
-
*
|
|
359
|
+
* Whether to also delete the linked hosting project. Defaults to true.
|
|
288
360
|
*/
|
|
289
361
|
deleteFromHosting?: boolean;
|
|
290
362
|
}
|
|
@@ -304,7 +376,7 @@ export namespace ProjectCreateDeploymentParams {
|
|
|
304
376
|
key: string;
|
|
305
377
|
|
|
306
378
|
/**
|
|
307
|
-
* Deployment targets
|
|
379
|
+
* Deployment targets that should receive this variable
|
|
308
380
|
*/
|
|
309
381
|
target: Array<'production' | 'preview' | 'development'>;
|
|
310
382
|
|
|
@@ -314,7 +386,7 @@ export namespace ProjectCreateDeploymentParams {
|
|
|
314
386
|
value: string;
|
|
315
387
|
|
|
316
388
|
/**
|
|
317
|
-
*
|
|
389
|
+
* Storage mode for the environment variable value
|
|
318
390
|
*/
|
|
319
391
|
type?: 'plain' | 'encrypted' | 'secret';
|
|
320
392
|
}
|
|
@@ -387,12 +459,12 @@ export interface ProjectListDeploymentsParams {
|
|
|
387
459
|
limit?: number;
|
|
388
460
|
|
|
389
461
|
/**
|
|
390
|
-
*
|
|
462
|
+
* Deployment state to filter by
|
|
391
463
|
*/
|
|
392
464
|
state?: string;
|
|
393
465
|
|
|
394
466
|
/**
|
|
395
|
-
*
|
|
467
|
+
* Deployment target to filter by
|
|
396
468
|
*/
|
|
397
469
|
target?: 'production' | 'staging';
|
|
398
470
|
}
|
|
@@ -408,6 +480,7 @@ export declare namespace Projects {
|
|
|
408
480
|
export {
|
|
409
481
|
type ProjectListResponse as ProjectListResponse,
|
|
410
482
|
type ProjectCreateParams as ProjectCreateParams,
|
|
483
|
+
type ProjectListParams as ProjectListParams,
|
|
411
484
|
type ProjectDeleteParams as ProjectDeleteParams,
|
|
412
485
|
type ProjectCreateDeploymentParams as ProjectCreateDeploymentParams,
|
|
413
486
|
type ProjectCreateDomainParams as ProjectCreateDomainParams,
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
ProjectGetRuntimeLogsParams,
|
|
24
24
|
ProjectListDeploymentsParams,
|
|
25
25
|
ProjectListEnvParams,
|
|
26
|
+
ProjectListParams,
|
|
26
27
|
ProjectListResponse,
|
|
27
28
|
Projects,
|
|
28
29
|
} from './projects';
|
|
@@ -54,6 +55,7 @@ export declare namespace V1 {
|
|
|
54
55
|
Projects as Projects,
|
|
55
56
|
type ProjectListResponse as ProjectListResponse,
|
|
56
57
|
type ProjectCreateParams as ProjectCreateParams,
|
|
58
|
+
type ProjectListParams as ProjectListParams,
|
|
57
59
|
type ProjectDeleteParams as ProjectDeleteParams,
|
|
58
60
|
type ProjectCreateDeploymentParams as ProjectCreateDeploymentParams,
|
|
59
61
|
type ProjectCreateDomainParams as ProjectCreateDomainParams,
|
|
@@ -51,10 +51,18 @@ export interface V1CreateDocumentParams {
|
|
|
51
51
|
*/
|
|
52
52
|
input_format?: 'md' | 'json' | 'text';
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Optional template composition and styling settings used during document
|
|
56
|
+
* generation
|
|
57
|
+
*/
|
|
54
58
|
options?: V1CreateDocumentParams.Options;
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
export namespace V1CreateDocumentParams {
|
|
62
|
+
/**
|
|
63
|
+
* Optional template composition and styling settings used during document
|
|
64
|
+
* generation
|
|
65
|
+
*/
|
|
58
66
|
export interface Options {
|
|
59
67
|
/**
|
|
60
68
|
* Template components with variables
|
|
@@ -1156,6 +1156,9 @@ export namespace V1DraftParams {
|
|
|
1156
1156
|
*/
|
|
1157
1157
|
target?: number;
|
|
1158
1158
|
|
|
1159
|
+
/**
|
|
1160
|
+
* Whether the target length is measured in words or pages
|
|
1161
|
+
*/
|
|
1159
1162
|
unit?: 'words' | 'pages';
|
|
1160
1163
|
}
|
|
1161
1164
|
}
|
|
@@ -1226,8 +1229,14 @@ export interface V1ListCourtsParams {
|
|
|
1226
1229
|
*/
|
|
1227
1230
|
jurisdiction?: string;
|
|
1228
1231
|
|
|
1232
|
+
/**
|
|
1233
|
+
* Maximum number of courts to return
|
|
1234
|
+
*/
|
|
1229
1235
|
limit?: number;
|
|
1230
1236
|
|
|
1237
|
+
/**
|
|
1238
|
+
* Number of courts to skip before returning results
|
|
1239
|
+
*/
|
|
1231
1240
|
offset?: number;
|
|
1232
1241
|
|
|
1233
1242
|
/**
|
|
@@ -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,
|