@perstack/api-client 0.0.8 → 0.0.9
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/v1/index.d.ts +244 -244
- package/dist/v1/index.js +195 -191
- package/dist/v1/index.js.map +1 -1
- package/package.json +1 -1
package/dist/v1/index.d.ts
CHANGED
|
@@ -2273,6 +2273,250 @@ declare const deleteStudioExpertInput: z.ZodObject<{
|
|
|
2273
2273
|
type DeleteStudioExpertInput = z.input<typeof deleteStudioExpertInput>;
|
|
2274
2274
|
declare function deleteStudioExpert(input: DeleteStudioExpertInput, client: ApiV1Client): Promise<void>;
|
|
2275
2275
|
|
|
2276
|
+
declare const apiWorkspaceItemOwnerSchema: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2277
|
+
type ApiWorkspaceItemOwner = z.infer<typeof apiWorkspaceItemOwnerSchema>;
|
|
2278
|
+
declare const apiWorkspaceItemLifecycleSchema: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2279
|
+
type ApiWorkspaceItemLifecycle = z.infer<typeof apiWorkspaceItemLifecycleSchema>;
|
|
2280
|
+
declare const apiWorkspaceItemPermissionSchema: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2281
|
+
type ApiWorkspaceItemPermission = z.infer<typeof apiWorkspaceItemPermissionSchema>;
|
|
2282
|
+
declare const apiBaseWorkspaceItemSchema: z.ZodObject<{
|
|
2283
|
+
id: z.ZodCUID2;
|
|
2284
|
+
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2285
|
+
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2286
|
+
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2287
|
+
path: z.ZodString;
|
|
2288
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2289
|
+
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2290
|
+
}, z.core.$strip>;
|
|
2291
|
+
declare const apiWorkspaceItemDirectorySchema: z.ZodObject<{
|
|
2292
|
+
id: z.ZodCUID2;
|
|
2293
|
+
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2294
|
+
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2295
|
+
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2296
|
+
path: z.ZodString;
|
|
2297
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2298
|
+
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2299
|
+
type: z.ZodLiteral<"workspaceItemDirectory">;
|
|
2300
|
+
}, z.core.$strip>;
|
|
2301
|
+
type ApiWorkspaceItemDirectory = z.infer<typeof apiWorkspaceItemDirectorySchema>;
|
|
2302
|
+
declare const apiWorkspaceItemFileSchema: z.ZodObject<{
|
|
2303
|
+
id: z.ZodCUID2;
|
|
2304
|
+
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2305
|
+
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2306
|
+
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2307
|
+
path: z.ZodString;
|
|
2308
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2309
|
+
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2310
|
+
type: z.ZodLiteral<"workspaceItemFile">;
|
|
2311
|
+
key: z.ZodString;
|
|
2312
|
+
mimeType: z.ZodString;
|
|
2313
|
+
size: z.ZodNumber;
|
|
2314
|
+
}, z.core.$strip>;
|
|
2315
|
+
type ApiWorkspaceItemFile = z.infer<typeof apiWorkspaceItemFileSchema>;
|
|
2316
|
+
declare const apiWorkspaceItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2317
|
+
id: z.ZodCUID2;
|
|
2318
|
+
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2319
|
+
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2320
|
+
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2321
|
+
path: z.ZodString;
|
|
2322
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2323
|
+
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2324
|
+
type: z.ZodLiteral<"workspaceItemDirectory">;
|
|
2325
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2326
|
+
id: z.ZodCUID2;
|
|
2327
|
+
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2328
|
+
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2329
|
+
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2330
|
+
path: z.ZodString;
|
|
2331
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2332
|
+
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2333
|
+
type: z.ZodLiteral<"workspaceItemFile">;
|
|
2334
|
+
key: z.ZodString;
|
|
2335
|
+
mimeType: z.ZodString;
|
|
2336
|
+
size: z.ZodNumber;
|
|
2337
|
+
}, z.core.$strip>], "type">;
|
|
2338
|
+
type ApiWorkspaceItem = z.infer<typeof apiWorkspaceItemSchema>;
|
|
2339
|
+
|
|
2340
|
+
declare const apiWorkspaceSchema: z.ZodObject<{
|
|
2341
|
+
type: z.ZodLiteral<"workspace">;
|
|
2342
|
+
id: z.ZodCUID2;
|
|
2343
|
+
applicationId: z.ZodCUID2;
|
|
2344
|
+
application: z.ZodObject<{
|
|
2345
|
+
type: z.ZodLiteral<"application">;
|
|
2346
|
+
id: z.ZodCUID2;
|
|
2347
|
+
organizationId: z.ZodCUID2;
|
|
2348
|
+
organization: z.ZodObject<{
|
|
2349
|
+
type: z.ZodLiteral<"organization">;
|
|
2350
|
+
id: z.ZodCUID2;
|
|
2351
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2352
|
+
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2353
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2354
|
+
nameChangedAt: z.ZodOptional<z.ZodDate>;
|
|
2355
|
+
status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
|
|
2356
|
+
organizationType: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
|
|
2357
|
+
maxApplications: z.ZodNumber;
|
|
2358
|
+
maxApiKeys: z.ZodNumber;
|
|
2359
|
+
maxStudioExperts: z.ZodNumber;
|
|
2360
|
+
}, z.core.$strip>;
|
|
2361
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2362
|
+
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2363
|
+
name: z.ZodString;
|
|
2364
|
+
status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
|
|
2365
|
+
}, z.core.$strip>;
|
|
2366
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2367
|
+
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2368
|
+
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2369
|
+
id: z.ZodCUID2;
|
|
2370
|
+
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2371
|
+
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2372
|
+
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2373
|
+
path: z.ZodString;
|
|
2374
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2375
|
+
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2376
|
+
type: z.ZodLiteral<"workspaceItemDirectory">;
|
|
2377
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2378
|
+
id: z.ZodCUID2;
|
|
2379
|
+
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2380
|
+
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2381
|
+
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2382
|
+
path: z.ZodString;
|
|
2383
|
+
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2384
|
+
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2385
|
+
type: z.ZodLiteral<"workspaceItemFile">;
|
|
2386
|
+
key: z.ZodString;
|
|
2387
|
+
mimeType: z.ZodString;
|
|
2388
|
+
size: z.ZodNumber;
|
|
2389
|
+
}, z.core.$strip>], "type">>;
|
|
2390
|
+
countItems: z.ZodNumber;
|
|
2391
|
+
envVariables: z.ZodArray<z.ZodString>;
|
|
2392
|
+
envSecrets: z.ZodArray<z.ZodString>;
|
|
2393
|
+
countWorkspaceInstances: z.ZodNumber;
|
|
2394
|
+
}, z.core.$strip>;
|
|
2395
|
+
type ApiWorkspace = z.infer<typeof apiWorkspaceSchema>;
|
|
2396
|
+
|
|
2397
|
+
declare function getWorkspace(client: ApiV1Client): Promise<{
|
|
2398
|
+
workspace: ApiWorkspace;
|
|
2399
|
+
}>;
|
|
2400
|
+
/**
|
|
2401
|
+
* Create a workspace item
|
|
2402
|
+
*/
|
|
2403
|
+
declare const createWorkspaceItemInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2404
|
+
type: z.ZodLiteral<"workspaceItemDirectory">;
|
|
2405
|
+
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2406
|
+
path: z.ZodString;
|
|
2407
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2408
|
+
type: z.ZodLiteral<"workspaceItemFile">;
|
|
2409
|
+
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2410
|
+
path: z.ZodString;
|
|
2411
|
+
file: z.ZodCustom<buffer.File, buffer.File>;
|
|
2412
|
+
}, z.core.$strip>], "type">;
|
|
2413
|
+
type CreateWorkspaceItemInput = z.input<typeof createWorkspaceItemInput>;
|
|
2414
|
+
declare function createWorkspaceItem(input: CreateWorkspaceItemInput, client: ApiV1Client): Promise<{
|
|
2415
|
+
workspaceItem: ApiWorkspaceItem;
|
|
2416
|
+
}>;
|
|
2417
|
+
/**
|
|
2418
|
+
* Retrieve a workspace item
|
|
2419
|
+
*/
|
|
2420
|
+
declare const getWorkspaceItemInput: z.ZodObject<{
|
|
2421
|
+
itemId: z.ZodString;
|
|
2422
|
+
}, z.core.$strip>;
|
|
2423
|
+
type GetWorkspaceItemInput = z.input<typeof getWorkspaceItemInput>;
|
|
2424
|
+
declare function getWorkspaceItem(input: GetWorkspaceItemInput, client: ApiV1Client): Promise<{
|
|
2425
|
+
workspaceItem: ApiWorkspaceItem;
|
|
2426
|
+
}>;
|
|
2427
|
+
/**
|
|
2428
|
+
* Retrieve multiple workspace items
|
|
2429
|
+
*/
|
|
2430
|
+
declare const getWorkspaceItemsInput: z.ZodObject<{
|
|
2431
|
+
take: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
2432
|
+
skip: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
2433
|
+
}, z.core.$strip>;
|
|
2434
|
+
type GetWorkspaceItemsInput = z.input<typeof getWorkspaceItemsInput>;
|
|
2435
|
+
declare function getWorkspaceItems(input: GetWorkspaceItemsInput, client: ApiV1Client): Promise<{
|
|
2436
|
+
workspaceItems: ApiWorkspaceItem[];
|
|
2437
|
+
total: number;
|
|
2438
|
+
take: number;
|
|
2439
|
+
skip: number;
|
|
2440
|
+
}>;
|
|
2441
|
+
/**
|
|
2442
|
+
* Download a workspace file item
|
|
2443
|
+
*/
|
|
2444
|
+
declare const downloadWorkspaceItemInput: z.ZodObject<{
|
|
2445
|
+
itemId: z.ZodString;
|
|
2446
|
+
}, z.core.$strip>;
|
|
2447
|
+
type DownloadWorkspaceItemInput = z.input<typeof downloadWorkspaceItemInput>;
|
|
2448
|
+
declare function downloadWorkspaceItem(input: DownloadWorkspaceItemInput, client: ApiV1Client): Promise<Blob>;
|
|
2449
|
+
/**
|
|
2450
|
+
* Update a workspace item
|
|
2451
|
+
*/
|
|
2452
|
+
declare const updateWorkspaceItemInput: z.ZodObject<{
|
|
2453
|
+
itemId: z.ZodString;
|
|
2454
|
+
permission: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>>;
|
|
2455
|
+
path: z.ZodOptional<z.ZodString>;
|
|
2456
|
+
lifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>>;
|
|
2457
|
+
}, z.core.$strip>;
|
|
2458
|
+
type UpdateWorkspaceItemInput = z.input<typeof updateWorkspaceItemInput>;
|
|
2459
|
+
declare function updateWorkspaceItem(input: UpdateWorkspaceItemInput, client: ApiV1Client): Promise<{
|
|
2460
|
+
workspaceItem: ApiWorkspaceItem;
|
|
2461
|
+
}>;
|
|
2462
|
+
/**
|
|
2463
|
+
* Delete a workspace item
|
|
2464
|
+
*/
|
|
2465
|
+
declare const deleteWorkspaceItemInput: z.ZodObject<{
|
|
2466
|
+
itemId: z.ZodString;
|
|
2467
|
+
}, z.core.$strip>;
|
|
2468
|
+
type DeleteWorkspaceItemInput = z.input<typeof deleteWorkspaceItemInput>;
|
|
2469
|
+
declare function deleteWorkspaceItem(input: DeleteWorkspaceItemInput, client: ApiV1Client): Promise<void>;
|
|
2470
|
+
/**
|
|
2471
|
+
* Create a workspace variable
|
|
2472
|
+
*/
|
|
2473
|
+
declare const createWorkspaceVariableInput: z.ZodObject<{
|
|
2474
|
+
name: z.ZodString;
|
|
2475
|
+
value: z.ZodString;
|
|
2476
|
+
}, z.core.$strip>;
|
|
2477
|
+
type CreateWorkspaceVariableInput = z.input<typeof createWorkspaceVariableInput>;
|
|
2478
|
+
declare function createWorkspaceVariable(input: CreateWorkspaceVariableInput, client: ApiV1Client): Promise<{
|
|
2479
|
+
workspace: ApiWorkspace;
|
|
2480
|
+
}>;
|
|
2481
|
+
/**
|
|
2482
|
+
* Update a workspace variable
|
|
2483
|
+
*/
|
|
2484
|
+
declare const updateWorkspaceVariableInput: z.ZodObject<{
|
|
2485
|
+
name: z.ZodString;
|
|
2486
|
+
value: z.ZodString;
|
|
2487
|
+
}, z.core.$strip>;
|
|
2488
|
+
type UpdateWorkspaceVariableInput = z.input<typeof updateWorkspaceVariableInput>;
|
|
2489
|
+
declare function updateWorkspaceVariable(input: UpdateWorkspaceVariableInput, client: ApiV1Client): Promise<{
|
|
2490
|
+
workspace: ApiWorkspace;
|
|
2491
|
+
}>;
|
|
2492
|
+
/**
|
|
2493
|
+
* Delete a workspace variable
|
|
2494
|
+
*/
|
|
2495
|
+
declare const deleteWorkspaceVariableInput: z.ZodObject<{
|
|
2496
|
+
name: z.ZodString;
|
|
2497
|
+
}, z.core.$strip>;
|
|
2498
|
+
type DeleteWorkspaceVariableInput = z.input<typeof deleteWorkspaceVariableInput>;
|
|
2499
|
+
declare function deleteWorkspaceVariable(input: DeleteWorkspaceVariableInput, client: ApiV1Client): Promise<void>;
|
|
2500
|
+
/**
|
|
2501
|
+
* Create a workspace secret
|
|
2502
|
+
*/
|
|
2503
|
+
declare const createWorkspaceSecretInput: z.ZodObject<{
|
|
2504
|
+
name: z.ZodString;
|
|
2505
|
+
value: z.ZodString;
|
|
2506
|
+
}, z.core.$strip>;
|
|
2507
|
+
type CreateWorkspaceSecretInput = z.input<typeof createWorkspaceSecretInput>;
|
|
2508
|
+
declare function createWorkspaceSecret(input: CreateWorkspaceSecretInput, client: ApiV1Client): Promise<{
|
|
2509
|
+
workspace: ApiWorkspace;
|
|
2510
|
+
}>;
|
|
2511
|
+
/**
|
|
2512
|
+
* Delete a workspace secret
|
|
2513
|
+
*/
|
|
2514
|
+
declare const deleteWorkspaceSecretInput: z.ZodObject<{
|
|
2515
|
+
name: z.ZodString;
|
|
2516
|
+
}, z.core.$strip>;
|
|
2517
|
+
type DeleteWorkspaceSecretInput = z.input<typeof deleteWorkspaceSecretInput>;
|
|
2518
|
+
declare function deleteWorkspaceSecret(input: DeleteWorkspaceSecretInput, client: ApiV1Client): Promise<void>;
|
|
2519
|
+
|
|
2276
2520
|
declare const apiWorkspaceInstanceSchema: z.ZodObject<{
|
|
2277
2521
|
type: z.ZodLiteral<"workspaceInstance">;
|
|
2278
2522
|
id: z.ZodCUID2;
|
|
@@ -2494,70 +2738,6 @@ declare const apiWorkspaceInstanceSchema: z.ZodObject<{
|
|
|
2494
2738
|
}, z.core.$strip>;
|
|
2495
2739
|
type ApiWorkspaceInstance = z.infer<typeof apiWorkspaceInstanceSchema>;
|
|
2496
2740
|
|
|
2497
|
-
declare const apiWorkspaceItemOwnerSchema: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2498
|
-
type ApiWorkspaceItemOwner = z.infer<typeof apiWorkspaceItemOwnerSchema>;
|
|
2499
|
-
declare const apiWorkspaceItemLifecycleSchema: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2500
|
-
type ApiWorkspaceItemLifecycle = z.infer<typeof apiWorkspaceItemLifecycleSchema>;
|
|
2501
|
-
declare const apiWorkspaceItemPermissionSchema: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2502
|
-
type ApiWorkspaceItemPermission = z.infer<typeof apiWorkspaceItemPermissionSchema>;
|
|
2503
|
-
declare const apiBaseWorkspaceItemSchema: z.ZodObject<{
|
|
2504
|
-
id: z.ZodCUID2;
|
|
2505
|
-
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2506
|
-
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2507
|
-
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2508
|
-
path: z.ZodString;
|
|
2509
|
-
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2510
|
-
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2511
|
-
}, z.core.$strip>;
|
|
2512
|
-
declare const apiWorkspaceItemDirectorySchema: z.ZodObject<{
|
|
2513
|
-
id: z.ZodCUID2;
|
|
2514
|
-
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2515
|
-
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2516
|
-
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2517
|
-
path: z.ZodString;
|
|
2518
|
-
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2519
|
-
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2520
|
-
type: z.ZodLiteral<"workspaceItemDirectory">;
|
|
2521
|
-
}, z.core.$strip>;
|
|
2522
|
-
type ApiWorkspaceItemDirectory = z.infer<typeof apiWorkspaceItemDirectorySchema>;
|
|
2523
|
-
declare const apiWorkspaceItemFileSchema: z.ZodObject<{
|
|
2524
|
-
id: z.ZodCUID2;
|
|
2525
|
-
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2526
|
-
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2527
|
-
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2528
|
-
path: z.ZodString;
|
|
2529
|
-
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2530
|
-
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2531
|
-
type: z.ZodLiteral<"workspaceItemFile">;
|
|
2532
|
-
key: z.ZodString;
|
|
2533
|
-
mimeType: z.ZodString;
|
|
2534
|
-
size: z.ZodNumber;
|
|
2535
|
-
}, z.core.$strip>;
|
|
2536
|
-
type ApiWorkspaceItemFile = z.infer<typeof apiWorkspaceItemFileSchema>;
|
|
2537
|
-
declare const apiWorkspaceItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2538
|
-
id: z.ZodCUID2;
|
|
2539
|
-
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2540
|
-
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2541
|
-
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2542
|
-
path: z.ZodString;
|
|
2543
|
-
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2544
|
-
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2545
|
-
type: z.ZodLiteral<"workspaceItemDirectory">;
|
|
2546
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2547
|
-
id: z.ZodCUID2;
|
|
2548
|
-
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2549
|
-
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2550
|
-
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2551
|
-
path: z.ZodString;
|
|
2552
|
-
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2553
|
-
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2554
|
-
type: z.ZodLiteral<"workspaceItemFile">;
|
|
2555
|
-
key: z.ZodString;
|
|
2556
|
-
mimeType: z.ZodString;
|
|
2557
|
-
size: z.ZodNumber;
|
|
2558
|
-
}, z.core.$strip>], "type">;
|
|
2559
|
-
type ApiWorkspaceItem = z.infer<typeof apiWorkspaceItemSchema>;
|
|
2560
|
-
|
|
2561
2741
|
/**
|
|
2562
2742
|
* Retrieve the workspace instance
|
|
2563
2743
|
*/
|
|
@@ -2646,186 +2826,6 @@ declare const deleteWorkspaceInstanceItemInput: z.ZodObject<{
|
|
|
2646
2826
|
type DeleteWorkspaceInstanceItemInput = z.input<typeof deleteWorkspaceInstanceItemInput>;
|
|
2647
2827
|
declare function deleteWorkspaceInstanceItem(input: DeleteWorkspaceInstanceItemInput, client: ApiV1Client): Promise<void>;
|
|
2648
2828
|
|
|
2649
|
-
declare const apiWorkspaceSchema: z.ZodObject<{
|
|
2650
|
-
type: z.ZodLiteral<"workspace">;
|
|
2651
|
-
id: z.ZodCUID2;
|
|
2652
|
-
applicationId: z.ZodCUID2;
|
|
2653
|
-
application: z.ZodObject<{
|
|
2654
|
-
type: z.ZodLiteral<"application">;
|
|
2655
|
-
id: z.ZodCUID2;
|
|
2656
|
-
organizationId: z.ZodCUID2;
|
|
2657
|
-
organization: z.ZodObject<{
|
|
2658
|
-
type: z.ZodLiteral<"organization">;
|
|
2659
|
-
id: z.ZodCUID2;
|
|
2660
|
-
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2661
|
-
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2662
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2663
|
-
nameChangedAt: z.ZodOptional<z.ZodDate>;
|
|
2664
|
-
status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
|
|
2665
|
-
organizationType: z.ZodUnion<readonly [z.ZodLiteral<"personal">, z.ZodLiteral<"personalPlus">, z.ZodLiteral<"team">, z.ZodLiteral<"serviceAdmin">]>;
|
|
2666
|
-
maxApplications: z.ZodNumber;
|
|
2667
|
-
maxApiKeys: z.ZodNumber;
|
|
2668
|
-
maxStudioExperts: z.ZodNumber;
|
|
2669
|
-
}, z.core.$strip>;
|
|
2670
|
-
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2671
|
-
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2672
|
-
name: z.ZodString;
|
|
2673
|
-
status: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodLiteral<"inactive">, z.ZodLiteral<"deleted">]>;
|
|
2674
|
-
}, z.core.$strip>;
|
|
2675
|
-
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2676
|
-
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2677
|
-
items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2678
|
-
id: z.ZodCUID2;
|
|
2679
|
-
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2680
|
-
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2681
|
-
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2682
|
-
path: z.ZodString;
|
|
2683
|
-
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2684
|
-
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2685
|
-
type: z.ZodLiteral<"workspaceItemDirectory">;
|
|
2686
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2687
|
-
id: z.ZodCUID2;
|
|
2688
|
-
owner: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"expert">]>;
|
|
2689
|
-
lifecycle: z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>;
|
|
2690
|
-
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2691
|
-
path: z.ZodString;
|
|
2692
|
-
createdAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2693
|
-
updatedAt: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
2694
|
-
type: z.ZodLiteral<"workspaceItemFile">;
|
|
2695
|
-
key: z.ZodString;
|
|
2696
|
-
mimeType: z.ZodString;
|
|
2697
|
-
size: z.ZodNumber;
|
|
2698
|
-
}, z.core.$strip>], "type">>;
|
|
2699
|
-
countItems: z.ZodNumber;
|
|
2700
|
-
envVariables: z.ZodArray<z.ZodString>;
|
|
2701
|
-
envSecrets: z.ZodArray<z.ZodString>;
|
|
2702
|
-
countWorkspaceInstances: z.ZodNumber;
|
|
2703
|
-
}, z.core.$strip>;
|
|
2704
|
-
type ApiWorkspace = z.infer<typeof apiWorkspaceSchema>;
|
|
2705
|
-
|
|
2706
|
-
declare function getWorkspace(client: ApiV1Client): Promise<{
|
|
2707
|
-
workspace: ApiWorkspace;
|
|
2708
|
-
}>;
|
|
2709
|
-
/**
|
|
2710
|
-
* Create a workspace item
|
|
2711
|
-
*/
|
|
2712
|
-
declare const createWorkspaceItemInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2713
|
-
type: z.ZodLiteral<"workspaceItemDirectory">;
|
|
2714
|
-
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2715
|
-
path: z.ZodString;
|
|
2716
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2717
|
-
type: z.ZodLiteral<"workspaceItemFile">;
|
|
2718
|
-
permission: z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>;
|
|
2719
|
-
path: z.ZodString;
|
|
2720
|
-
file: z.ZodCustom<buffer.File, buffer.File>;
|
|
2721
|
-
}, z.core.$strip>], "type">;
|
|
2722
|
-
type CreateWorkspaceItemInput = z.input<typeof createWorkspaceItemInput>;
|
|
2723
|
-
declare function createWorkspaceItem(input: CreateWorkspaceItemInput, client: ApiV1Client): Promise<{
|
|
2724
|
-
workspaceItem: ApiWorkspaceItem;
|
|
2725
|
-
}>;
|
|
2726
|
-
/**
|
|
2727
|
-
* Retrieve a workspace item
|
|
2728
|
-
*/
|
|
2729
|
-
declare const getWorkspaceItemInput: z.ZodObject<{
|
|
2730
|
-
itemId: z.ZodString;
|
|
2731
|
-
}, z.core.$strip>;
|
|
2732
|
-
type GetWorkspaceItemInput = z.input<typeof getWorkspaceItemInput>;
|
|
2733
|
-
declare function getWorkspaceItem(input: GetWorkspaceItemInput, client: ApiV1Client): Promise<{
|
|
2734
|
-
workspaceItem: ApiWorkspaceItem;
|
|
2735
|
-
}>;
|
|
2736
|
-
/**
|
|
2737
|
-
* Retrieve multiple workspace items
|
|
2738
|
-
*/
|
|
2739
|
-
declare const getWorkspaceItemsInput: z.ZodObject<{
|
|
2740
|
-
take: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
2741
|
-
skip: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
2742
|
-
}, z.core.$strip>;
|
|
2743
|
-
type GetWorkspaceItemsInput = z.input<typeof getWorkspaceItemsInput>;
|
|
2744
|
-
declare function getWorkspaceItems(input: GetWorkspaceItemsInput, client: ApiV1Client): Promise<{
|
|
2745
|
-
workspaceItems: ApiWorkspaceItem[];
|
|
2746
|
-
total: number;
|
|
2747
|
-
take: number;
|
|
2748
|
-
skip: number;
|
|
2749
|
-
}>;
|
|
2750
|
-
/**
|
|
2751
|
-
* Download a workspace file item
|
|
2752
|
-
*/
|
|
2753
|
-
declare const downloadWorkspaceItemInput: z.ZodObject<{
|
|
2754
|
-
itemId: z.ZodString;
|
|
2755
|
-
}, z.core.$strip>;
|
|
2756
|
-
type DownloadWorkspaceItemInput = z.input<typeof downloadWorkspaceItemInput>;
|
|
2757
|
-
declare function downloadWorkspaceItem(input: DownloadWorkspaceItemInput, client: ApiV1Client): Promise<Blob>;
|
|
2758
|
-
/**
|
|
2759
|
-
* Update a workspace item
|
|
2760
|
-
*/
|
|
2761
|
-
declare const updateWorkspaceItemInput: z.ZodObject<{
|
|
2762
|
-
itemId: z.ZodString;
|
|
2763
|
-
permission: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"readOnly">, z.ZodLiteral<"readWrite">]>>;
|
|
2764
|
-
path: z.ZodOptional<z.ZodString>;
|
|
2765
|
-
lifecycle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"application">, z.ZodLiteral<"expertJob">]>>;
|
|
2766
|
-
}, z.core.$strip>;
|
|
2767
|
-
type UpdateWorkspaceItemInput = z.input<typeof updateWorkspaceItemInput>;
|
|
2768
|
-
declare function updateWorkspaceItem(input: UpdateWorkspaceItemInput, client: ApiV1Client): Promise<{
|
|
2769
|
-
workspaceItem: ApiWorkspaceItem;
|
|
2770
|
-
}>;
|
|
2771
|
-
/**
|
|
2772
|
-
* Delete a workspace item
|
|
2773
|
-
*/
|
|
2774
|
-
declare const deleteWorkspaceItemInput: z.ZodObject<{
|
|
2775
|
-
itemId: z.ZodString;
|
|
2776
|
-
}, z.core.$strip>;
|
|
2777
|
-
type DeleteWorkspaceItemInput = z.input<typeof deleteWorkspaceItemInput>;
|
|
2778
|
-
declare function deleteWorkspaceItem(input: DeleteWorkspaceItemInput, client: ApiV1Client): Promise<void>;
|
|
2779
|
-
/**
|
|
2780
|
-
* Create a workspace variable
|
|
2781
|
-
*/
|
|
2782
|
-
declare const createWorkspaceVariableInput: z.ZodObject<{
|
|
2783
|
-
name: z.ZodString;
|
|
2784
|
-
value: z.ZodString;
|
|
2785
|
-
}, z.core.$strip>;
|
|
2786
|
-
type CreateWorkspaceVariableInput = z.input<typeof createWorkspaceVariableInput>;
|
|
2787
|
-
declare function createWorkspaceVariable(input: CreateWorkspaceVariableInput, client: ApiV1Client): Promise<{
|
|
2788
|
-
workspace: ApiWorkspace;
|
|
2789
|
-
}>;
|
|
2790
|
-
/**
|
|
2791
|
-
* Update a workspace variable
|
|
2792
|
-
*/
|
|
2793
|
-
declare const updateWorkspaceVariableInput: z.ZodObject<{
|
|
2794
|
-
name: z.ZodString;
|
|
2795
|
-
value: z.ZodString;
|
|
2796
|
-
}, z.core.$strip>;
|
|
2797
|
-
type UpdateWorkspaceVariableInput = z.input<typeof updateWorkspaceVariableInput>;
|
|
2798
|
-
declare function updateWorkspaceVariable(input: UpdateWorkspaceVariableInput, client: ApiV1Client): Promise<{
|
|
2799
|
-
workspace: ApiWorkspace;
|
|
2800
|
-
}>;
|
|
2801
|
-
/**
|
|
2802
|
-
* Delete a workspace variable
|
|
2803
|
-
*/
|
|
2804
|
-
declare const deleteWorkspaceVariableInput: z.ZodObject<{
|
|
2805
|
-
name: z.ZodString;
|
|
2806
|
-
}, z.core.$strip>;
|
|
2807
|
-
type DeleteWorkspaceVariableInput = z.input<typeof deleteWorkspaceVariableInput>;
|
|
2808
|
-
declare function deleteWorkspaceVariable(input: DeleteWorkspaceVariableInput, client: ApiV1Client): Promise<void>;
|
|
2809
|
-
/**
|
|
2810
|
-
* Create a workspace secret
|
|
2811
|
-
*/
|
|
2812
|
-
declare const createWorkspaceSecretInput: z.ZodObject<{
|
|
2813
|
-
name: z.ZodString;
|
|
2814
|
-
value: z.ZodString;
|
|
2815
|
-
}, z.core.$strip>;
|
|
2816
|
-
type CreateWorkspaceSecretInput = z.input<typeof createWorkspaceSecretInput>;
|
|
2817
|
-
declare function createWorkspaceSecret(input: CreateWorkspaceSecretInput, client: ApiV1Client): Promise<{
|
|
2818
|
-
workspace: ApiWorkspace;
|
|
2819
|
-
}>;
|
|
2820
|
-
/**
|
|
2821
|
-
* Delete a workspace secret
|
|
2822
|
-
*/
|
|
2823
|
-
declare const deleteWorkspaceSecretInput: z.ZodObject<{
|
|
2824
|
-
name: z.ZodString;
|
|
2825
|
-
}, z.core.$strip>;
|
|
2826
|
-
type DeleteWorkspaceSecretInput = z.input<typeof deleteWorkspaceSecretInput>;
|
|
2827
|
-
declare function deleteWorkspaceSecret(input: DeleteWorkspaceSecretInput, client: ApiV1Client): Promise<void>;
|
|
2828
|
-
|
|
2829
2829
|
type ApiV1Config = {
|
|
2830
2830
|
baseUrl?: string;
|
|
2831
2831
|
apiKey?: string;
|