@daytonaio/api-client 0.9.8 → 0.12.2
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/.openapi-generator/FILES +6 -0
- package/README.md +2 -2
- package/api/docker-registry-api.ts +12 -76
- package/api/images-api.ts +380 -0
- package/api/toolbox-api.ts +169 -0
- package/api.ts +1 -0
- package/dist/api/docker-registry-api.d.ts +16 -44
- package/dist/api/docker-registry-api.js +0 -62
- package/dist/api/images-api.d.ts +184 -0
- package/dist/api/images-api.js +361 -0
- package/dist/api/toolbox-api.d.ts +79 -0
- package/dist/api/toolbox-api.js +159 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/docker-registry-api.d.ts +16 -44
- package/dist/esm/api/docker-registry-api.js +0 -62
- package/dist/esm/api/images-api.d.ts +184 -0
- package/dist/esm/api/images-api.js +354 -0
- package/dist/esm/api/toolbox-api.d.ts +79 -0
- package/dist/esm/api/toolbox-api.js +159 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/command.d.ts +2 -8
- package/dist/esm/models/create-docker-registry.d.ts +0 -6
- package/dist/esm/models/create-image.d.ts +30 -0
- package/dist/esm/models/create-image.js +14 -0
- package/dist/esm/models/docker-registry.d.ts +60 -0
- package/dist/esm/models/docker-registry.js +14 -0
- package/dist/esm/models/image-dto.d.ts +93 -0
- package/dist/esm/models/image-dto.js +21 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/models/paginated-images-dto.d.ts +43 -0
- package/dist/esm/models/paginated-images-dto.js +14 -0
- package/dist/esm/models/toggle-state.d.ts +24 -0
- package/dist/esm/models/toggle-state.js +14 -0
- package/dist/esm/models/update-docker-registry.d.ts +2 -20
- package/dist/esm/models/usage-overview.d.ts +24 -0
- package/dist/models/command.d.ts +2 -8
- package/dist/models/create-docker-registry.d.ts +0 -6
- package/dist/models/create-image.d.ts +30 -0
- package/dist/models/create-image.js +15 -0
- package/dist/models/docker-registry.d.ts +60 -0
- package/dist/models/docker-registry.js +15 -0
- package/dist/models/image-dto.d.ts +93 -0
- package/dist/models/image-dto.js +24 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/paginated-images-dto.d.ts +43 -0
- package/dist/models/paginated-images-dto.js +15 -0
- package/dist/models/toggle-state.d.ts +24 -0
- package/dist/models/toggle-state.js +15 -0
- package/dist/models/update-docker-registry.d.ts +2 -20
- package/dist/models/usage-overview.d.ts +24 -0
- package/models/command.ts +2 -8
- package/models/create-docker-registry.ts +0 -6
- package/models/create-image.ts +36 -0
- package/models/docker-registry.ts +66 -0
- package/models/image-dto.ts +102 -0
- package/models/index.ts +5 -0
- package/models/paginated-images-dto.ts +51 -0
- package/models/toggle-state.ts +30 -0
- package/models/update-docker-registry.ts +2 -20
- package/models/usage-overview.ts +24 -0
- package/package.json +1 -1
package/api/toolbox-api.ts
CHANGED
|
@@ -22,6 +22,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
|
+
import type { Command } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
25
27
|
import type { CompletionList } from '../models';
|
|
26
28
|
// @ts-ignore
|
|
27
29
|
import type { CreateSessionRequest } from '../models';
|
|
@@ -525,6 +527,94 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
525
527
|
|
|
526
528
|
|
|
527
529
|
|
|
530
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
531
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
532
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
533
|
+
|
|
534
|
+
return {
|
|
535
|
+
url: toPathString(localVarUrlObj),
|
|
536
|
+
options: localVarRequestOptions,
|
|
537
|
+
};
|
|
538
|
+
},
|
|
539
|
+
/**
|
|
540
|
+
* Get session by ID
|
|
541
|
+
* @summary Get session
|
|
542
|
+
* @param {string} workspaceId
|
|
543
|
+
* @param {string} sessionId
|
|
544
|
+
* @param {*} [options] Override http request option.
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
*/
|
|
547
|
+
getSession: async (workspaceId: string, sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
548
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
549
|
+
assertParamExists('getSession', 'workspaceId', workspaceId)
|
|
550
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
551
|
+
assertParamExists('getSession', 'sessionId', sessionId)
|
|
552
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}`
|
|
553
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
554
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
555
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
556
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
557
|
+
let baseOptions;
|
|
558
|
+
if (configuration) {
|
|
559
|
+
baseOptions = configuration.baseOptions;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
563
|
+
const localVarHeaderParameter = {} as any;
|
|
564
|
+
const localVarQueryParameter = {} as any;
|
|
565
|
+
|
|
566
|
+
// authentication oauth2 required
|
|
567
|
+
// oauth required
|
|
568
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
573
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
574
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
575
|
+
|
|
576
|
+
return {
|
|
577
|
+
url: toPathString(localVarUrlObj),
|
|
578
|
+
options: localVarRequestOptions,
|
|
579
|
+
};
|
|
580
|
+
},
|
|
581
|
+
/**
|
|
582
|
+
* Get session command by ID
|
|
583
|
+
* @summary Get session command
|
|
584
|
+
* @param {string} workspaceId
|
|
585
|
+
* @param {string} sessionId
|
|
586
|
+
* @param {string} commandId
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
*/
|
|
590
|
+
getSessionCommand: async (workspaceId: string, sessionId: string, commandId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
591
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
592
|
+
assertParamExists('getSessionCommand', 'workspaceId', workspaceId)
|
|
593
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
594
|
+
assertParamExists('getSessionCommand', 'sessionId', sessionId)
|
|
595
|
+
// verify required parameter 'commandId' is not null or undefined
|
|
596
|
+
assertParamExists('getSessionCommand', 'commandId', commandId)
|
|
597
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/command/{commandId}`
|
|
598
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
599
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
600
|
+
.replace(`{${"commandId"}}`, encodeURIComponent(String(commandId)));
|
|
601
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
602
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
603
|
+
let baseOptions;
|
|
604
|
+
if (configuration) {
|
|
605
|
+
baseOptions = configuration.baseOptions;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
609
|
+
const localVarHeaderParameter = {} as any;
|
|
610
|
+
const localVarQueryParameter = {} as any;
|
|
611
|
+
|
|
612
|
+
// authentication oauth2 required
|
|
613
|
+
// oauth required
|
|
614
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
528
618
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
529
619
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
530
620
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1812,6 +1902,35 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1812
1902
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getProjectDir']?.[localVarOperationServerIndex]?.url;
|
|
1813
1903
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1814
1904
|
},
|
|
1905
|
+
/**
|
|
1906
|
+
* Get session by ID
|
|
1907
|
+
* @summary Get session
|
|
1908
|
+
* @param {string} workspaceId
|
|
1909
|
+
* @param {string} sessionId
|
|
1910
|
+
* @param {*} [options] Override http request option.
|
|
1911
|
+
* @throws {RequiredError}
|
|
1912
|
+
*/
|
|
1913
|
+
async getSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Session>> {
|
|
1914
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSession(workspaceId, sessionId, options);
|
|
1915
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1916
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getSession']?.[localVarOperationServerIndex]?.url;
|
|
1917
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1918
|
+
},
|
|
1919
|
+
/**
|
|
1920
|
+
* Get session command by ID
|
|
1921
|
+
* @summary Get session command
|
|
1922
|
+
* @param {string} workspaceId
|
|
1923
|
+
* @param {string} sessionId
|
|
1924
|
+
* @param {string} commandId
|
|
1925
|
+
* @param {*} [options] Override http request option.
|
|
1926
|
+
* @throws {RequiredError}
|
|
1927
|
+
*/
|
|
1928
|
+
async getSessionCommand(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Command>> {
|
|
1929
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionCommand(workspaceId, sessionId, commandId, options);
|
|
1930
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1931
|
+
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getSessionCommand']?.[localVarOperationServerIndex]?.url;
|
|
1932
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1933
|
+
},
|
|
1815
1934
|
/**
|
|
1816
1935
|
* Get logs for a specific command in a session
|
|
1817
1936
|
* @summary Get command logs
|
|
@@ -2280,6 +2399,29 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
2280
2399
|
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectDirResponse> {
|
|
2281
2400
|
return localVarFp.getProjectDir(workspaceId, options).then((request) => request(axios, basePath));
|
|
2282
2401
|
},
|
|
2402
|
+
/**
|
|
2403
|
+
* Get session by ID
|
|
2404
|
+
* @summary Get session
|
|
2405
|
+
* @param {string} workspaceId
|
|
2406
|
+
* @param {string} sessionId
|
|
2407
|
+
* @param {*} [options] Override http request option.
|
|
2408
|
+
* @throws {RequiredError}
|
|
2409
|
+
*/
|
|
2410
|
+
getSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<Session> {
|
|
2411
|
+
return localVarFp.getSession(workspaceId, sessionId, options).then((request) => request(axios, basePath));
|
|
2412
|
+
},
|
|
2413
|
+
/**
|
|
2414
|
+
* Get session command by ID
|
|
2415
|
+
* @summary Get session command
|
|
2416
|
+
* @param {string} workspaceId
|
|
2417
|
+
* @param {string} sessionId
|
|
2418
|
+
* @param {string} commandId
|
|
2419
|
+
* @param {*} [options] Override http request option.
|
|
2420
|
+
* @throws {RequiredError}
|
|
2421
|
+
*/
|
|
2422
|
+
getSessionCommand(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): AxiosPromise<Command> {
|
|
2423
|
+
return localVarFp.getSessionCommand(workspaceId, sessionId, commandId, options).then((request) => request(axios, basePath));
|
|
2424
|
+
},
|
|
2283
2425
|
/**
|
|
2284
2426
|
* Get logs for a specific command in a session
|
|
2285
2427
|
* @summary Get command logs
|
|
@@ -2696,6 +2838,33 @@ export class ToolboxApi extends BaseAPI {
|
|
|
2696
2838
|
return ToolboxApiFp(this.configuration).getProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
2697
2839
|
}
|
|
2698
2840
|
|
|
2841
|
+
/**
|
|
2842
|
+
* Get session by ID
|
|
2843
|
+
* @summary Get session
|
|
2844
|
+
* @param {string} workspaceId
|
|
2845
|
+
* @param {string} sessionId
|
|
2846
|
+
* @param {*} [options] Override http request option.
|
|
2847
|
+
* @throws {RequiredError}
|
|
2848
|
+
* @memberof ToolboxApi
|
|
2849
|
+
*/
|
|
2850
|
+
public getSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig) {
|
|
2851
|
+
return ToolboxApiFp(this.configuration).getSession(workspaceId, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
/**
|
|
2855
|
+
* Get session command by ID
|
|
2856
|
+
* @summary Get session command
|
|
2857
|
+
* @param {string} workspaceId
|
|
2858
|
+
* @param {string} sessionId
|
|
2859
|
+
* @param {string} commandId
|
|
2860
|
+
* @param {*} [options] Override http request option.
|
|
2861
|
+
* @throws {RequiredError}
|
|
2862
|
+
* @memberof ToolboxApi
|
|
2863
|
+
*/
|
|
2864
|
+
public getSessionCommand(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig) {
|
|
2865
|
+
return ToolboxApiFp(this.configuration).getSessionCommand(workspaceId, sessionId, commandId, options).then((request) => request(this.axios, this.basePath));
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2699
2868
|
/**
|
|
2700
2869
|
* Get logs for a specific command in a session
|
|
2701
2870
|
* @summary Get command logs
|
package/api.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import type { CreateDockerRegistry } from '../models';
|
|
16
|
+
import type { DockerRegistry } from '../models';
|
|
16
17
|
import type { UpdateDockerRegistry } from '../models';
|
|
17
18
|
/**
|
|
18
19
|
* DockerRegistryApi - axios parameter creator
|
|
@@ -35,13 +36,6 @@ export declare const DockerRegistryApiAxiosParamCreator: (configuration?: Config
|
|
|
35
36
|
* @throws {RequiredError}
|
|
36
37
|
*/
|
|
37
38
|
deleteRegistry: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @summary Get default registry
|
|
41
|
-
* @param {*} [options] Override http request option.
|
|
42
|
-
* @throws {RequiredError}
|
|
43
|
-
*/
|
|
44
|
-
getDefaultRegistry: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
39
|
/**
|
|
46
40
|
*
|
|
47
41
|
* @summary Get registry
|
|
@@ -87,7 +81,7 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
|
|
|
87
81
|
* @param {*} [options] Override http request option.
|
|
88
82
|
* @throws {RequiredError}
|
|
89
83
|
*/
|
|
90
|
-
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
84
|
+
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>>;
|
|
91
85
|
/**
|
|
92
86
|
*
|
|
93
87
|
* @summary Delete registry
|
|
@@ -96,13 +90,6 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
|
|
|
96
90
|
* @throws {RequiredError}
|
|
97
91
|
*/
|
|
98
92
|
deleteRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary Get default registry
|
|
102
|
-
* @param {*} [options] Override http request option.
|
|
103
|
-
* @throws {RequiredError}
|
|
104
|
-
*/
|
|
105
|
-
getDefaultRegistry(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
106
93
|
/**
|
|
107
94
|
*
|
|
108
95
|
* @summary Get registry
|
|
@@ -110,14 +97,14 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
|
|
|
110
97
|
* @param {*} [options] Override http request option.
|
|
111
98
|
* @throws {RequiredError}
|
|
112
99
|
*/
|
|
113
|
-
getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
100
|
+
getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>>;
|
|
114
101
|
/**
|
|
115
102
|
*
|
|
116
103
|
* @summary List registries
|
|
117
104
|
* @param {*} [options] Override http request option.
|
|
118
105
|
* @throws {RequiredError}
|
|
119
106
|
*/
|
|
120
|
-
listRegistries(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
107
|
+
listRegistries(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DockerRegistry>>>;
|
|
121
108
|
/**
|
|
122
109
|
*
|
|
123
110
|
* @summary Set default registry
|
|
@@ -125,7 +112,7 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
|
|
|
125
112
|
* @param {*} [options] Override http request option.
|
|
126
113
|
* @throws {RequiredError}
|
|
127
114
|
*/
|
|
128
|
-
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
115
|
+
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>>;
|
|
129
116
|
/**
|
|
130
117
|
*
|
|
131
118
|
* @summary Update registry
|
|
@@ -134,7 +121,7 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
|
|
|
134
121
|
* @param {*} [options] Override http request option.
|
|
135
122
|
* @throws {RequiredError}
|
|
136
123
|
*/
|
|
137
|
-
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
124
|
+
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>>;
|
|
138
125
|
};
|
|
139
126
|
/**
|
|
140
127
|
* DockerRegistryApi - factory interface
|
|
@@ -148,7 +135,7 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
|
|
|
148
135
|
* @param {*} [options] Override http request option.
|
|
149
136
|
* @throws {RequiredError}
|
|
150
137
|
*/
|
|
151
|
-
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
138
|
+
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry>;
|
|
152
139
|
/**
|
|
153
140
|
*
|
|
154
141
|
* @summary Delete registry
|
|
@@ -157,13 +144,6 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
|
|
|
157
144
|
* @throws {RequiredError}
|
|
158
145
|
*/
|
|
159
146
|
deleteRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @summary Get default registry
|
|
163
|
-
* @param {*} [options] Override http request option.
|
|
164
|
-
* @throws {RequiredError}
|
|
165
|
-
*/
|
|
166
|
-
getDefaultRegistry(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
167
147
|
/**
|
|
168
148
|
*
|
|
169
149
|
* @summary Get registry
|
|
@@ -171,14 +151,14 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
|
|
|
171
151
|
* @param {*} [options] Override http request option.
|
|
172
152
|
* @throws {RequiredError}
|
|
173
153
|
*/
|
|
174
|
-
getRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
154
|
+
getRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry>;
|
|
175
155
|
/**
|
|
176
156
|
*
|
|
177
157
|
* @summary List registries
|
|
178
158
|
* @param {*} [options] Override http request option.
|
|
179
159
|
* @throws {RequiredError}
|
|
180
160
|
*/
|
|
181
|
-
listRegistries(options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
161
|
+
listRegistries(options?: RawAxiosRequestConfig): AxiosPromise<Array<DockerRegistry>>;
|
|
182
162
|
/**
|
|
183
163
|
*
|
|
184
164
|
* @summary Set default registry
|
|
@@ -186,7 +166,7 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
|
|
|
186
166
|
* @param {*} [options] Override http request option.
|
|
187
167
|
* @throws {RequiredError}
|
|
188
168
|
*/
|
|
189
|
-
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
169
|
+
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry>;
|
|
190
170
|
/**
|
|
191
171
|
*
|
|
192
172
|
* @summary Update registry
|
|
@@ -195,7 +175,7 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
|
|
|
195
175
|
* @param {*} [options] Override http request option.
|
|
196
176
|
* @throws {RequiredError}
|
|
197
177
|
*/
|
|
198
|
-
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
178
|
+
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry>;
|
|
199
179
|
};
|
|
200
180
|
/**
|
|
201
181
|
* DockerRegistryApi - object-oriented interface
|
|
@@ -212,7 +192,7 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
212
192
|
* @throws {RequiredError}
|
|
213
193
|
* @memberof DockerRegistryApi
|
|
214
194
|
*/
|
|
215
|
-
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
195
|
+
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry, any>>;
|
|
216
196
|
/**
|
|
217
197
|
*
|
|
218
198
|
* @summary Delete registry
|
|
@@ -222,14 +202,6 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
222
202
|
* @memberof DockerRegistryApi
|
|
223
203
|
*/
|
|
224
204
|
deleteRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
225
|
-
/**
|
|
226
|
-
*
|
|
227
|
-
* @summary Get default registry
|
|
228
|
-
* @param {*} [options] Override http request option.
|
|
229
|
-
* @throws {RequiredError}
|
|
230
|
-
* @memberof DockerRegistryApi
|
|
231
|
-
*/
|
|
232
|
-
getDefaultRegistry(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
233
205
|
/**
|
|
234
206
|
*
|
|
235
207
|
* @summary Get registry
|
|
@@ -238,7 +210,7 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
238
210
|
* @throws {RequiredError}
|
|
239
211
|
* @memberof DockerRegistryApi
|
|
240
212
|
*/
|
|
241
|
-
getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
213
|
+
getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry, any>>;
|
|
242
214
|
/**
|
|
243
215
|
*
|
|
244
216
|
* @summary List registries
|
|
@@ -246,7 +218,7 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
246
218
|
* @throws {RequiredError}
|
|
247
219
|
* @memberof DockerRegistryApi
|
|
248
220
|
*/
|
|
249
|
-
listRegistries(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
221
|
+
listRegistries(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry[], any>>;
|
|
250
222
|
/**
|
|
251
223
|
*
|
|
252
224
|
* @summary Set default registry
|
|
@@ -255,7 +227,7 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
255
227
|
* @throws {RequiredError}
|
|
256
228
|
* @memberof DockerRegistryApi
|
|
257
229
|
*/
|
|
258
|
-
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
230
|
+
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry, any>>;
|
|
259
231
|
/**
|
|
260
232
|
*
|
|
261
233
|
* @summary Update registry
|
|
@@ -265,5 +237,5 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
265
237
|
* @throws {RequiredError}
|
|
266
238
|
* @memberof DockerRegistryApi
|
|
267
239
|
*/
|
|
268
|
-
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
240
|
+
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry, any>>;
|
|
269
241
|
}
|
|
@@ -100,34 +100,6 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
100
100
|
options: localVarRequestOptions,
|
|
101
101
|
};
|
|
102
102
|
}),
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @summary Get default registry
|
|
106
|
-
* @param {*} [options] Override http request option.
|
|
107
|
-
* @throws {RequiredError}
|
|
108
|
-
*/
|
|
109
|
-
getDefaultRegistry: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
110
|
-
const localVarPath = `/docker-registry/default`;
|
|
111
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
112
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
113
|
-
let baseOptions;
|
|
114
|
-
if (configuration) {
|
|
115
|
-
baseOptions = configuration.baseOptions;
|
|
116
|
-
}
|
|
117
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
118
|
-
const localVarHeaderParameter = {};
|
|
119
|
-
const localVarQueryParameter = {};
|
|
120
|
-
// authentication oauth2 required
|
|
121
|
-
// oauth required
|
|
122
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
123
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
124
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
126
|
-
return {
|
|
127
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
128
|
-
options: localVarRequestOptions,
|
|
129
|
-
};
|
|
130
|
-
}),
|
|
131
103
|
/**
|
|
132
104
|
*
|
|
133
105
|
* @summary Get registry
|
|
@@ -299,21 +271,6 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
299
271
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
300
272
|
});
|
|
301
273
|
},
|
|
302
|
-
/**
|
|
303
|
-
*
|
|
304
|
-
* @summary Get default registry
|
|
305
|
-
* @param {*} [options] Override http request option.
|
|
306
|
-
* @throws {RequiredError}
|
|
307
|
-
*/
|
|
308
|
-
getDefaultRegistry(options) {
|
|
309
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
-
var _a, _b, _c;
|
|
311
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDefaultRegistry(options);
|
|
312
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
313
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.getDefaultRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
314
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
315
|
-
});
|
|
316
|
-
},
|
|
317
274
|
/**
|
|
318
275
|
*
|
|
319
276
|
* @summary Get registry
|
|
@@ -408,15 +365,6 @@ const DockerRegistryApiFactory = function (configuration, basePath, axios) {
|
|
|
408
365
|
deleteRegistry(id, options) {
|
|
409
366
|
return localVarFp.deleteRegistry(id, options).then((request) => request(axios, basePath));
|
|
410
367
|
},
|
|
411
|
-
/**
|
|
412
|
-
*
|
|
413
|
-
* @summary Get default registry
|
|
414
|
-
* @param {*} [options] Override http request option.
|
|
415
|
-
* @throws {RequiredError}
|
|
416
|
-
*/
|
|
417
|
-
getDefaultRegistry(options) {
|
|
418
|
-
return localVarFp.getDefaultRegistry(options).then((request) => request(axios, basePath));
|
|
419
|
-
},
|
|
420
368
|
/**
|
|
421
369
|
*
|
|
422
370
|
* @summary Get registry
|
|
@@ -489,16 +437,6 @@ class DockerRegistryApi extends base_1.BaseAPI {
|
|
|
489
437
|
deleteRegistry(id, options) {
|
|
490
438
|
return (0, exports.DockerRegistryApiFp)(this.configuration).deleteRegistry(id, options).then((request) => request(this.axios, this.basePath));
|
|
491
439
|
}
|
|
492
|
-
/**
|
|
493
|
-
*
|
|
494
|
-
* @summary Get default registry
|
|
495
|
-
* @param {*} [options] Override http request option.
|
|
496
|
-
* @throws {RequiredError}
|
|
497
|
-
* @memberof DockerRegistryApi
|
|
498
|
-
*/
|
|
499
|
-
getDefaultRegistry(options) {
|
|
500
|
-
return (0, exports.DockerRegistryApiFp)(this.configuration).getDefaultRegistry(options).then((request) => request(this.axios, this.basePath));
|
|
501
|
-
}
|
|
502
440
|
/**
|
|
503
441
|
*
|
|
504
442
|
* @summary Get registry
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daytona Workspaces
|
|
3
|
+
* Daytona Workspaces API Docs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { CreateImage } from '../models';
|
|
16
|
+
import type { ImageDto } from '../models';
|
|
17
|
+
import type { PaginatedImagesDto } from '../models';
|
|
18
|
+
import type { ToggleState } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* ImagesApi - axios parameter creator
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const ImagesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @summary Create a new image
|
|
27
|
+
* @param {CreateImage} createImage
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
createImage: (createImage: CreateImage, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary List all images
|
|
35
|
+
* @param {number} [limit] Number of items per page
|
|
36
|
+
* @param {number} [page] Page number
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
getAllImages: (limit?: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @summary Delete image
|
|
44
|
+
* @param {string} id Image ID
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
removeImage: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @summary Toggle image state
|
|
52
|
+
* @param {string} id Image ID
|
|
53
|
+
* @param {ToggleState} toggleState
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
toggleImageState: (id: string, toggleState: ToggleState, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* ImagesApi - functional programming interface
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export declare const ImagesApiFp: (configuration?: Configuration) => {
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @summary Create a new image
|
|
67
|
+
* @param {CreateImage} createImage
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
createImage(createImage: CreateImage, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @summary List all images
|
|
75
|
+
* @param {number} [limit] Number of items per page
|
|
76
|
+
* @param {number} [page] Page number
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
getAllImages(limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedImagesDto>>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @summary Delete image
|
|
84
|
+
* @param {string} id Image ID
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
removeImage(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @summary Toggle image state
|
|
92
|
+
* @param {string} id Image ID
|
|
93
|
+
* @param {ToggleState} toggleState
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
toggleImageState(id: string, toggleState: ToggleState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>>;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* ImagesApi - factory interface
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export declare const ImagesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary Create a new image
|
|
107
|
+
* @param {CreateImage} createImage
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
createImage(createImage: CreateImage, options?: RawAxiosRequestConfig): AxiosPromise<ImageDto>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @summary List all images
|
|
115
|
+
* @param {number} [limit] Number of items per page
|
|
116
|
+
* @param {number} [page] Page number
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
getAllImages(limit?: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedImagesDto>;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @summary Delete image
|
|
124
|
+
* @param {string} id Image ID
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
removeImage(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @summary Toggle image state
|
|
132
|
+
* @param {string} id Image ID
|
|
133
|
+
* @param {ToggleState} toggleState
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
toggleImageState(id: string, toggleState: ToggleState, options?: RawAxiosRequestConfig): AxiosPromise<ImageDto>;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* ImagesApi - object-oriented interface
|
|
141
|
+
* @export
|
|
142
|
+
* @class ImagesApi
|
|
143
|
+
* @extends {BaseAPI}
|
|
144
|
+
*/
|
|
145
|
+
export declare class ImagesApi extends BaseAPI {
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @summary Create a new image
|
|
149
|
+
* @param {CreateImage} createImage
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
* @memberof ImagesApi
|
|
153
|
+
*/
|
|
154
|
+
createImage(createImage: CreateImage, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImageDto, any>>;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @summary List all images
|
|
158
|
+
* @param {number} [limit] Number of items per page
|
|
159
|
+
* @param {number} [page] Page number
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
* @memberof ImagesApi
|
|
163
|
+
*/
|
|
164
|
+
getAllImages(limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedImagesDto, any>>;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @summary Delete image
|
|
168
|
+
* @param {string} id Image ID
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
* @memberof ImagesApi
|
|
172
|
+
*/
|
|
173
|
+
removeImage(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @summary Toggle image state
|
|
177
|
+
* @param {string} id Image ID
|
|
178
|
+
* @param {ToggleState} toggleState
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
* @memberof ImagesApi
|
|
182
|
+
*/
|
|
183
|
+
toggleImageState(id: string, toggleState: ToggleState, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImageDto, any>>;
|
|
184
|
+
}
|