cyberdesk 0.1.2 → 0.1.3
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/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ export interface CyberdeskClientOptions {
|
|
|
17
17
|
clientOptions?: Partial<ClientOptions>;
|
|
18
18
|
}
|
|
19
19
|
export type CyberdeskSdk = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
getDesktopInfo: (opts: Omit<GetV1DesktopIdData, 'headers' | 'url'>) => ReturnType<typeof apiMethods.getV1DesktopId>;
|
|
21
|
+
launchDesktop: (opts: Omit<PostV1DesktopData, 'headers' | 'url'>) => ReturnType<typeof apiMethods.postV1Desktop>;
|
|
22
|
+
terminateDesktop: (opts: Omit<PostV1DesktopIdStopData, 'headers' | 'url'>) => ReturnType<typeof apiMethods.postV1DesktopIdStop>;
|
|
23
|
+
executeActionOnDesktop: (opts: Omit<PostV1DesktopIdComputerActionData, 'headers' | 'url'>) => ReturnType<typeof apiMethods.postV1DesktopIdComputerAction>;
|
|
24
|
+
bashCommandOnDesktop: (opts: Omit<PostV1DesktopIdBashActionData, 'headers' | 'url'>) => ReturnType<typeof apiMethods.postV1DesktopIdBashAction>;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* Creates a Cyberdesk SDK instance configured with your API key.
|
package/dist/index.js
CHANGED
|
@@ -70,13 +70,13 @@ function createCyberdeskClient(options) {
|
|
|
70
70
|
const configuredClient = (0, client_fetch_1.createClient)(finalClientOptions);
|
|
71
71
|
// Return an object where each method is pre-configured with the client instance
|
|
72
72
|
return {
|
|
73
|
-
|
|
73
|
+
getDesktopInfo: (opts) => apiMethods.getV1DesktopId(Object.assign(Object.assign({}, opts), { client: configuredClient,
|
|
74
74
|
// Merge client headers with potentially provided headers from opts
|
|
75
75
|
headers: Object.assign(Object.assign({}, mergedHeaders), opts.headers) })),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
launchDesktop: (opts) => apiMethods.postV1Desktop(Object.assign(Object.assign({}, opts), { client: configuredClient, headers: Object.assign(Object.assign({}, mergedHeaders), opts.headers) })),
|
|
77
|
+
terminateDesktop: (opts) => apiMethods.postV1DesktopIdStop(Object.assign(Object.assign({}, opts), { client: configuredClient, headers: Object.assign(Object.assign({}, mergedHeaders), opts.headers) })),
|
|
78
|
+
executeActionOnDesktop: (opts) => apiMethods.postV1DesktopIdComputerAction(Object.assign(Object.assign({}, opts), { client: configuredClient, headers: Object.assign(Object.assign({}, mergedHeaders), opts.headers) })),
|
|
79
|
+
bashCommandOnDesktop: (opts) => apiMethods.postV1DesktopIdBashAction(Object.assign(Object.assign({}, opts), { client: configuredClient, headers: Object.assign(Object.assign({}, mergedHeaders), opts.headers) })),
|
|
80
80
|
// Add bindings for other generated methods here following the same pattern
|
|
81
81
|
};
|
|
82
82
|
}
|