cyberdesk 1.1.0 → 1.3.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.
@@ -22,14 +22,6 @@ export type ConnectionResponse = {
22
22
  status: ConnectionStatus;
23
23
  };
24
24
  export type ConnectionStatus = 'connected' | 'disconnected' | 'error';
25
- /**
26
- * Schema for updating a connection
27
- */
28
- export type ConnectionUpdate = {
29
- status?: ConnectionStatus | null;
30
- last_ping?: string | null;
31
- disconnected_at?: string | null;
32
- };
33
25
  export type DisplayDimensions = {
34
26
  width: number;
35
27
  height: number;
@@ -47,6 +39,7 @@ export type KeyboardTypeRequest = {
47
39
  * Schema for creating a machine
48
40
  */
49
41
  export type MachineCreate = {
42
+ name?: string | null;
50
43
  fingerprint: string;
51
44
  version?: string | null;
52
45
  hostname?: string | null;
@@ -57,6 +50,7 @@ export type MachineCreate = {
57
50
  * Machine response schema
58
51
  */
59
52
  export type MachineResponse = {
53
+ name?: string | null;
60
54
  fingerprint: string;
61
55
  version?: string | null;
62
56
  hostname?: string | null;
@@ -74,6 +68,7 @@ export type MachineStatus = 'connected' | 'disconnected' | 'error';
74
68
  * Schema for updating a machine
75
69
  */
76
70
  export type MachineUpdate = {
71
+ name?: string | null;
77
72
  version?: string | null;
78
73
  hostname?: string | null;
79
74
  os_info?: string | null;
@@ -190,7 +185,7 @@ export type RunCreate = {
190
185
  */
191
186
  export type RunResponse = {
192
187
  workflow_id: string;
193
- machine_id: string;
188
+ machine_id: string | null;
194
189
  id: string;
195
190
  user_id: string;
196
191
  status: RunStatus;
@@ -258,6 +253,7 @@ export type ValidationError = {
258
253
  * Schema for creating a workflow
259
254
  */
260
255
  export type WorkflowCreate = {
256
+ name?: string | null;
261
257
  main_prompt: string;
262
258
  cleanup_prompt?: string | null;
263
259
  };
@@ -265,6 +261,7 @@ export type WorkflowCreate = {
265
261
  * Workflow response schema
266
262
  */
267
263
  export type WorkflowResponse = {
264
+ name?: string | null;
268
265
  main_prompt: string;
269
266
  cleanup_prompt?: string | null;
270
267
  id: string;
@@ -279,6 +276,7 @@ export type WorkflowResponse = {
279
276
  * Schema for updating a workflow
280
277
  */
281
278
  export type WorkflowUpdate = {
279
+ name?: string | null;
282
280
  main_prompt?: string | null;
283
281
  cleanup_prompt?: string | null;
284
282
  };
@@ -775,7 +773,7 @@ export type GetConnectionV1ConnectionsConnectionIdGetResponses = {
775
773
  };
776
774
  export type GetConnectionV1ConnectionsConnectionIdGetResponse = GetConnectionV1ConnectionsConnectionIdGetResponses[keyof GetConnectionV1ConnectionsConnectionIdGetResponses];
777
775
  export type UpdateConnectionV1ConnectionsConnectionIdPatchData = {
778
- body: ConnectionUpdate;
776
+ body: ConnectionCreate;
779
777
  path: {
780
778
  connection_id: string;
781
779
  };
package/dist/index.js CHANGED
@@ -33,13 +33,14 @@ __exportStar(require("./client/sdk.gen"), exports);
33
33
  __exportStar(require("./client/client.gen"), exports);
34
34
  // Configuration
35
35
  const DEFAULT_API_BASE_URL = "https://api.cyberdesk.io";
36
- // Create configured client with API key
36
+ // Create configured client with API key and connection reuse
37
37
  function createApiClient(apiKey, baseUrl = DEFAULT_API_BASE_URL) {
38
38
  return (0, client_fetch_1.createClient)({
39
39
  baseUrl,
40
40
  headers: {
41
41
  'Content-Type': 'application/json',
42
42
  'Authorization': `Bearer ${apiKey}`,
43
+ 'Connection': 'keep-alive',
43
44
  },
44
45
  });
45
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberdesk",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "The official TypeScript SDK for Cyberdesk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",