cyberdesk 1.1.0 → 1.2.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/dist/client/types.gen.d.ts +2 -10
- package/dist/index.js +2 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -190,7 +182,7 @@ export type RunCreate = {
|
|
|
190
182
|
*/
|
|
191
183
|
export type RunResponse = {
|
|
192
184
|
workflow_id: string;
|
|
193
|
-
machine_id: string;
|
|
185
|
+
machine_id: string | null;
|
|
194
186
|
id: string;
|
|
195
187
|
user_id: string;
|
|
196
188
|
status: RunStatus;
|
|
@@ -775,7 +767,7 @@ export type GetConnectionV1ConnectionsConnectionIdGetResponses = {
|
|
|
775
767
|
};
|
|
776
768
|
export type GetConnectionV1ConnectionsConnectionIdGetResponse = GetConnectionV1ConnectionsConnectionIdGetResponses[keyof GetConnectionV1ConnectionsConnectionIdGetResponses];
|
|
777
769
|
export type UpdateConnectionV1ConnectionsConnectionIdPatchData = {
|
|
778
|
-
body:
|
|
770
|
+
body: ConnectionCreate;
|
|
779
771
|
path: {
|
|
780
772
|
connection_id: string;
|
|
781
773
|
};
|
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
|
}
|