cyberdesk 2.1.0 → 2.1.1
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/client/types.gen.d.ts +50 -2
- package/dist/index.d.ts +48 -12
- package/dist/index.js +45 -16
- package/package.json +1 -1
|
@@ -375,7 +375,7 @@ export type RunBulkCreate = {
|
|
|
375
375
|
*/
|
|
376
376
|
machine_id?: string | null;
|
|
377
377
|
/**
|
|
378
|
-
* Pool IDs to filter available machines. Machine must belong to
|
|
378
|
+
* Pool IDs to filter available machines. Machine must belong to all of these pools (intersection). Ignored when machine_id is provided.
|
|
379
379
|
*/
|
|
380
380
|
pool_ids?: Array<string> | null;
|
|
381
381
|
/**
|
|
@@ -411,7 +411,7 @@ export type RunCreate = {
|
|
|
411
411
|
*/
|
|
412
412
|
machine_id?: string | null;
|
|
413
413
|
/**
|
|
414
|
-
* Pool IDs to filter available machines. Machine must belong to
|
|
414
|
+
* Pool IDs to filter available machines. Machine must belong to all of these pools (intersection). Ignored when machine_id is provided.
|
|
415
415
|
*/
|
|
416
416
|
pool_ids?: Array<string> | null;
|
|
417
417
|
/**
|
|
@@ -620,6 +620,14 @@ export type ListMachinesV1MachinesGetData = {
|
|
|
620
620
|
* Filter by machine status
|
|
621
621
|
*/
|
|
622
622
|
status?: MachineStatus | null;
|
|
623
|
+
/**
|
|
624
|
+
* Filter machines created at or after this ISO timestamp (UTC)
|
|
625
|
+
*/
|
|
626
|
+
created_at_from?: string | null;
|
|
627
|
+
/**
|
|
628
|
+
* Filter machines created at or before this ISO timestamp (UTC)
|
|
629
|
+
*/
|
|
630
|
+
created_at_to?: string | null;
|
|
623
631
|
skip?: number;
|
|
624
632
|
limit?: number;
|
|
625
633
|
};
|
|
@@ -931,6 +939,22 @@ export type ListWorkflowsV1WorkflowsGetData = {
|
|
|
931
939
|
body?: never;
|
|
932
940
|
path?: never;
|
|
933
941
|
query?: {
|
|
942
|
+
/**
|
|
943
|
+
* Filter workflows created at or after this ISO timestamp (UTC)
|
|
944
|
+
*/
|
|
945
|
+
created_at_from?: string | null;
|
|
946
|
+
/**
|
|
947
|
+
* Filter workflows created at or before this ISO timestamp (UTC)
|
|
948
|
+
*/
|
|
949
|
+
created_at_to?: string | null;
|
|
950
|
+
/**
|
|
951
|
+
* Filter workflows updated at or after this ISO timestamp (UTC)
|
|
952
|
+
*/
|
|
953
|
+
updated_at_from?: string | null;
|
|
954
|
+
/**
|
|
955
|
+
* Filter workflows updated at or before this ISO timestamp (UTC)
|
|
956
|
+
*/
|
|
957
|
+
updated_at_to?: string | null;
|
|
934
958
|
skip?: number;
|
|
935
959
|
limit?: number;
|
|
936
960
|
};
|
|
@@ -1076,6 +1100,14 @@ export type ListRunsV1RunsGetData = {
|
|
|
1076
1100
|
* Filter by run status
|
|
1077
1101
|
*/
|
|
1078
1102
|
status?: RunStatus | null;
|
|
1103
|
+
/**
|
|
1104
|
+
* Filter runs created at or after this ISO timestamp (UTC)
|
|
1105
|
+
*/
|
|
1106
|
+
created_at_from?: string | null;
|
|
1107
|
+
/**
|
|
1108
|
+
* Filter runs created at or before this ISO timestamp (UTC)
|
|
1109
|
+
*/
|
|
1110
|
+
created_at_to?: string | null;
|
|
1079
1111
|
skip?: number;
|
|
1080
1112
|
limit?: number;
|
|
1081
1113
|
};
|
|
@@ -1612,6 +1644,22 @@ export type ListTrajectoriesV1TrajectoriesGetData = {
|
|
|
1612
1644
|
* Filter by workflow ID
|
|
1613
1645
|
*/
|
|
1614
1646
|
workflow_id?: string | null;
|
|
1647
|
+
/**
|
|
1648
|
+
* Filter trajectories created at or after this ISO timestamp (UTC)
|
|
1649
|
+
*/
|
|
1650
|
+
created_at_from?: string | null;
|
|
1651
|
+
/**
|
|
1652
|
+
* Filter trajectories created at or before this ISO timestamp (UTC)
|
|
1653
|
+
*/
|
|
1654
|
+
created_at_to?: string | null;
|
|
1655
|
+
/**
|
|
1656
|
+
* Filter trajectories updated at or after this ISO timestamp (UTC)
|
|
1657
|
+
*/
|
|
1658
|
+
updated_at_from?: string | null;
|
|
1659
|
+
/**
|
|
1660
|
+
* Filter trajectories updated at or before this ISO timestamp (UTC)
|
|
1661
|
+
*/
|
|
1662
|
+
updated_at_to?: string | null;
|
|
1615
1663
|
skip?: number;
|
|
1616
1664
|
limit?: number;
|
|
1617
1665
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -57,9 +57,17 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
57
57
|
skip?: number;
|
|
58
58
|
limit?: number;
|
|
59
59
|
status?: MachineStatus;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
created_at_from?: string | Date;
|
|
61
|
+
created_at_to?: string | Date;
|
|
62
|
+
}) => Promise<({
|
|
63
|
+
data: PaginatedResponseMachineResponse;
|
|
64
|
+
error: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
data: undefined;
|
|
67
|
+
error: import("./client/types.gen").HttpValidationError;
|
|
68
|
+
}) & {
|
|
69
|
+
request: Request;
|
|
70
|
+
response: Response;
|
|
63
71
|
}>;
|
|
64
72
|
/**
|
|
65
73
|
* Create a new machine
|
|
@@ -258,9 +266,19 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
258
266
|
list: (params?: {
|
|
259
267
|
skip?: number;
|
|
260
268
|
limit?: number;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
269
|
+
created_at_from?: string | Date;
|
|
270
|
+
created_at_to?: string | Date;
|
|
271
|
+
updated_at_from?: string | Date;
|
|
272
|
+
updated_at_to?: string | Date;
|
|
273
|
+
}) => Promise<({
|
|
274
|
+
data: undefined;
|
|
275
|
+
error: import("./client/types.gen").HttpValidationError;
|
|
276
|
+
} | {
|
|
277
|
+
data: PaginatedResponseWorkflowResponse;
|
|
278
|
+
error: undefined;
|
|
279
|
+
}) & {
|
|
280
|
+
request: Request;
|
|
281
|
+
response: Response;
|
|
264
282
|
}>;
|
|
265
283
|
/**
|
|
266
284
|
* Create a new workflow
|
|
@@ -336,9 +354,17 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
336
354
|
status?: RunStatus;
|
|
337
355
|
workflow_id?: string;
|
|
338
356
|
machine_id?: string;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
357
|
+
created_at_from?: string | Date;
|
|
358
|
+
created_at_to?: string | Date;
|
|
359
|
+
}) => Promise<({
|
|
360
|
+
data: undefined;
|
|
361
|
+
error: import("./client/types.gen").HttpValidationError;
|
|
362
|
+
} | {
|
|
363
|
+
data: PaginatedResponseRunResponse;
|
|
364
|
+
error: undefined;
|
|
365
|
+
}) & {
|
|
366
|
+
request: Request;
|
|
367
|
+
response: Response;
|
|
342
368
|
}>;
|
|
343
369
|
/**
|
|
344
370
|
* Create a new run
|
|
@@ -494,9 +520,19 @@ export declare function createCyberdeskClient(apiKey: string, baseUrl?: string):
|
|
|
494
520
|
skip?: number;
|
|
495
521
|
limit?: number;
|
|
496
522
|
workflow_id?: string;
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
523
|
+
created_at_from?: string | Date;
|
|
524
|
+
created_at_to?: string | Date;
|
|
525
|
+
updated_at_from?: string | Date;
|
|
526
|
+
updated_at_to?: string | Date;
|
|
527
|
+
}) => Promise<({
|
|
528
|
+
data: undefined;
|
|
529
|
+
error: import("./client/types.gen").HttpValidationError;
|
|
530
|
+
} | {
|
|
531
|
+
data: PaginatedResponseTrajectoryResponse;
|
|
532
|
+
error: undefined;
|
|
533
|
+
}) & {
|
|
534
|
+
request: Request;
|
|
535
|
+
response: Response;
|
|
500
536
|
}>;
|
|
501
537
|
/**
|
|
502
538
|
* Create a new trajectory
|
package/dist/index.js
CHANGED
|
@@ -79,6 +79,12 @@ function createApiClient(apiKey, baseUrl = DEFAULT_API_BASE_URL) {
|
|
|
79
79
|
},
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
+
// Helpers
|
|
83
|
+
function toIsoUtc(value) {
|
|
84
|
+
if (value == null)
|
|
85
|
+
return undefined;
|
|
86
|
+
return typeof value === 'string' ? value : value.toISOString();
|
|
87
|
+
}
|
|
82
88
|
/**
|
|
83
89
|
* Create a Cyberdesk API client
|
|
84
90
|
*
|
|
@@ -107,10 +113,14 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
107
113
|
* @returns Paginated list of machines
|
|
108
114
|
*/
|
|
109
115
|
list: (params) => __awaiter(this, void 0, void 0, function* () {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
116
|
+
const query = {
|
|
117
|
+
status: params === null || params === void 0 ? void 0 : params.status,
|
|
118
|
+
skip: params === null || params === void 0 ? void 0 : params.skip,
|
|
119
|
+
limit: params === null || params === void 0 ? void 0 : params.limit,
|
|
120
|
+
created_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_from),
|
|
121
|
+
created_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_to),
|
|
122
|
+
};
|
|
123
|
+
return (0, sdk_gen_1.listMachinesV1MachinesGet)({ client, query });
|
|
114
124
|
}),
|
|
115
125
|
/**
|
|
116
126
|
* Create a new machine
|
|
@@ -320,10 +330,15 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
320
330
|
* @returns Paginated list of workflows
|
|
321
331
|
*/
|
|
322
332
|
list: (params) => __awaiter(this, void 0, void 0, function* () {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
333
|
+
const query = {
|
|
334
|
+
skip: params === null || params === void 0 ? void 0 : params.skip,
|
|
335
|
+
limit: params === null || params === void 0 ? void 0 : params.limit,
|
|
336
|
+
created_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_from),
|
|
337
|
+
created_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_to),
|
|
338
|
+
updated_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.updated_at_from),
|
|
339
|
+
updated_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.updated_at_to),
|
|
340
|
+
};
|
|
341
|
+
return (0, sdk_gen_1.listWorkflowsV1WorkflowsGet)({ client, query });
|
|
327
342
|
}),
|
|
328
343
|
/**
|
|
329
344
|
* Create a new workflow
|
|
@@ -398,10 +413,17 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
398
413
|
* @returns Paginated list of runs
|
|
399
414
|
*/
|
|
400
415
|
list: (params) => __awaiter(this, void 0, void 0, function* () {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
416
|
+
var _a, _b, _c;
|
|
417
|
+
const query = {
|
|
418
|
+
skip: params === null || params === void 0 ? void 0 : params.skip,
|
|
419
|
+
limit: params === null || params === void 0 ? void 0 : params.limit,
|
|
420
|
+
status: (_a = params === null || params === void 0 ? void 0 : params.status) !== null && _a !== void 0 ? _a : undefined,
|
|
421
|
+
workflow_id: (_b = params === null || params === void 0 ? void 0 : params.workflow_id) !== null && _b !== void 0 ? _b : undefined,
|
|
422
|
+
machine_id: (_c = params === null || params === void 0 ? void 0 : params.machine_id) !== null && _c !== void 0 ? _c : undefined,
|
|
423
|
+
created_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_from),
|
|
424
|
+
created_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_to),
|
|
425
|
+
};
|
|
426
|
+
return (0, sdk_gen_1.listRunsV1RunsGet)({ client, query });
|
|
405
427
|
}),
|
|
406
428
|
/**
|
|
407
429
|
* Create a new run
|
|
@@ -560,10 +582,17 @@ function createCyberdeskClient(apiKey, baseUrl) {
|
|
|
560
582
|
* @returns Paginated list of trajectories
|
|
561
583
|
*/
|
|
562
584
|
list: (params) => __awaiter(this, void 0, void 0, function* () {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
585
|
+
var _a;
|
|
586
|
+
const query = {
|
|
587
|
+
skip: params === null || params === void 0 ? void 0 : params.skip,
|
|
588
|
+
limit: params === null || params === void 0 ? void 0 : params.limit,
|
|
589
|
+
workflow_id: (_a = params === null || params === void 0 ? void 0 : params.workflow_id) !== null && _a !== void 0 ? _a : undefined,
|
|
590
|
+
created_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_from),
|
|
591
|
+
created_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.created_at_to),
|
|
592
|
+
updated_at_from: toIsoUtc(params === null || params === void 0 ? void 0 : params.updated_at_from),
|
|
593
|
+
updated_at_to: toIsoUtc(params === null || params === void 0 ? void 0 : params.updated_at_to),
|
|
594
|
+
};
|
|
595
|
+
return (0, sdk_gen_1.listTrajectoriesV1TrajectoriesGet)({ client, query });
|
|
567
596
|
}),
|
|
568
597
|
/**
|
|
569
598
|
* Create a new trajectory
|