@daytonaio/api-client 0.14.0 → 0.15.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/.openapi-generator/FILES +16 -1
- package/README.md +2 -2
- package/api/api-keys-api.ts +60 -28
- package/api/docker-registry-api.ts +121 -65
- package/api/images-api.ts +60 -28
- package/api/organizations-api.ts +1858 -0
- package/api/toolbox-api.ts +548 -252
- package/api/users-api.ts +14 -98
- package/api/workspace-api.ts +268 -168
- package/api.ts +1 -0
- package/dist/api/api-keys-api.d.ts +32 -16
- package/dist/api/api-keys-api.js +56 -28
- package/dist/api/docker-registry-api.d.ts +72 -44
- package/dist/api/docker-registry-api.js +114 -65
- package/dist/api/images-api.d.ts +32 -16
- package/dist/api/images-api.js +56 -28
- package/dist/api/organizations-api.d.ts +856 -0
- package/dist/api/organizations-api.js +1741 -0
- package/dist/api/toolbox-api.d.ts +292 -144
- package/dist/api/toolbox-api.js +511 -252
- package/dist/api/users-api.d.ts +9 -47
- package/dist/api/users-api.js +13 -90
- package/dist/api/workspace-api.d.ts +153 -101
- package/dist/api/workspace-api.js +257 -169
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/api-keys-api.d.ts +32 -16
- package/dist/esm/api/api-keys-api.js +56 -28
- package/dist/esm/api/docker-registry-api.d.ts +72 -44
- package/dist/esm/api/docker-registry-api.js +114 -65
- package/dist/esm/api/images-api.d.ts +32 -16
- package/dist/esm/api/images-api.js +56 -28
- package/dist/esm/api/organizations-api.d.ts +856 -0
- package/dist/esm/api/organizations-api.js +1734 -0
- package/dist/esm/api/toolbox-api.d.ts +292 -144
- package/dist/esm/api/toolbox-api.js +511 -252
- package/dist/esm/api/users-api.d.ts +9 -47
- package/dist/esm/api/users-api.js +13 -90
- package/dist/esm/api/workspace-api.d.ts +153 -101
- package/dist/esm/api/workspace-api.js +257 -169
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/api-key-list.d.ts +15 -0
- package/dist/esm/models/api-key-list.js +8 -1
- package/dist/esm/models/api-key-response.d.ts +15 -0
- package/dist/esm/models/api-key-response.js +8 -1
- package/dist/esm/models/create-api-key.d.ts +15 -0
- package/dist/esm/models/create-api-key.js +8 -1
- package/dist/esm/models/create-docker-registry.d.ts +1 -1
- package/dist/esm/models/create-docker-registry.js +1 -1
- package/dist/esm/models/create-organization-invitation.d.ts +47 -0
- package/dist/esm/models/create-organization-invitation.js +17 -0
- package/dist/esm/models/create-organization-quota.d.ts +84 -0
- package/dist/esm/models/create-organization-role.d.ts +45 -0
- package/dist/esm/models/create-organization-role.js +21 -0
- package/dist/esm/models/create-organization.d.ts +90 -0
- package/dist/esm/models/create-organization.js +14 -0
- package/dist/esm/models/create-user.d.ts +5 -58
- package/dist/esm/models/docker-registry.d.ts +1 -1
- package/dist/esm/models/docker-registry.js +1 -1
- package/dist/esm/models/image-dto.d.ts +1 -1
- package/dist/esm/models/index.d.ts +15 -1
- package/dist/esm/models/index.js +15 -1
- package/dist/esm/models/organization-invitation.d.ts +91 -0
- package/dist/esm/models/organization-invitation.js +23 -0
- package/dist/esm/models/organization-role.d.ts +69 -0
- package/dist/esm/models/organization-role.js +21 -0
- package/dist/esm/models/organization-user.d.ts +72 -0
- package/dist/esm/models/organization-user.js +17 -0
- package/dist/esm/models/organization.d.ts +54 -0
- package/dist/esm/models/organization.js +14 -0
- package/dist/esm/models/update-assigned-organization-roles.d.ts +24 -0
- package/dist/esm/models/update-assigned-organization-roles.js +14 -0
- package/dist/esm/models/update-organization-invitation.d.ts +41 -0
- package/dist/esm/models/update-organization-invitation.js +17 -0
- package/dist/esm/models/update-organization-member-role.d.ts +29 -0
- package/dist/esm/models/update-organization-member-role.js +17 -0
- package/dist/esm/models/{update-user-quota-dto.d.ts → update-organization-quota.d.ts} +13 -13
- package/dist/esm/models/update-organization-quota.js +14 -0
- package/dist/esm/models/update-organization-role.d.ts +45 -0
- package/dist/esm/models/update-organization-role.js +21 -0
- package/dist/esm/models/user-public-key.d.ts +30 -0
- package/dist/esm/models/user-public-key.js +14 -0
- package/dist/esm/models/user.d.ts +43 -0
- package/dist/esm/models/user.js +14 -0
- package/dist/models/api-key-list.d.ts +15 -0
- package/dist/models/api-key-list.js +9 -0
- package/dist/models/api-key-response.d.ts +15 -0
- package/dist/models/api-key-response.js +9 -0
- package/dist/models/create-api-key.d.ts +15 -0
- package/dist/models/create-api-key.js +9 -0
- package/dist/models/create-docker-registry.d.ts +1 -1
- package/dist/models/create-docker-registry.js +1 -1
- package/dist/models/create-organization-invitation.d.ts +47 -0
- package/dist/models/create-organization-invitation.js +20 -0
- package/dist/models/create-organization-quota.d.ts +84 -0
- package/dist/models/create-organization-role.d.ts +45 -0
- package/dist/models/create-organization-role.js +24 -0
- package/dist/models/create-organization.d.ts +90 -0
- package/dist/models/create-organization.js +15 -0
- package/dist/models/create-user.d.ts +5 -58
- package/dist/models/docker-registry.d.ts +1 -1
- package/dist/models/docker-registry.js +1 -1
- package/dist/models/image-dto.d.ts +1 -1
- package/dist/models/index.d.ts +15 -1
- package/dist/models/index.js +15 -1
- package/dist/models/organization-invitation.d.ts +91 -0
- package/dist/models/organization-invitation.js +26 -0
- package/dist/models/organization-role.d.ts +69 -0
- package/dist/models/organization-role.js +24 -0
- package/dist/models/organization-user.d.ts +72 -0
- package/dist/models/organization-user.js +20 -0
- package/dist/models/organization.d.ts +54 -0
- package/dist/models/organization.js +15 -0
- package/dist/models/update-assigned-organization-roles.d.ts +24 -0
- package/dist/models/update-assigned-organization-roles.js +15 -0
- package/dist/models/update-organization-invitation.d.ts +41 -0
- package/dist/models/update-organization-invitation.js +20 -0
- package/dist/models/update-organization-member-role.d.ts +29 -0
- package/dist/models/update-organization-member-role.js +20 -0
- package/dist/models/{update-user-quota-dto.d.ts → update-organization-quota.d.ts} +13 -13
- package/dist/models/update-organization-quota.js +15 -0
- package/dist/models/update-organization-role.d.ts +45 -0
- package/dist/models/update-organization-role.js +24 -0
- package/dist/models/user-public-key.d.ts +30 -0
- package/dist/models/user-public-key.js +15 -0
- package/dist/models/user.d.ts +43 -0
- package/dist/models/user.js +15 -0
- package/models/api-key-list.ts +18 -0
- package/models/api-key-response.ts +18 -0
- package/models/create-api-key.ts +18 -0
- package/models/create-docker-registry.ts +1 -1
- package/models/create-organization-invitation.ts +56 -0
- package/models/create-organization-quota.ts +90 -0
- package/models/create-organization-role.ts +54 -0
- package/models/create-organization.ts +96 -0
- package/models/create-user.ts +7 -58
- package/models/docker-registry.ts +1 -1
- package/models/image-dto.ts +1 -1
- package/models/index.ts +15 -1
- package/models/organization-invitation.ts +103 -0
- package/models/organization-role.ts +78 -0
- package/models/organization-user.ts +83 -0
- package/models/organization.ts +60 -0
- package/models/update-assigned-organization-roles.ts +30 -0
- package/models/update-organization-invitation.ts +50 -0
- package/models/update-organization-member-role.ts +38 -0
- package/models/{update-user-quota-dto.ts → update-organization-quota.ts} +13 -13
- package/models/update-organization-role.ts +54 -0
- package/models/user-public-key.ts +36 -0
- package/models/user.ts +51 -0
- package/package.json +1 -1
- /package/dist/esm/models/{update-user-quota-dto.js → create-organization-quota.js} +0 -0
- /package/dist/models/{update-user-quota-dto.js → create-organization-quota.js} +0 -0
package/api.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './api/api-keys-api';
|
|
|
18
18
|
export * from './api/docker-registry-api';
|
|
19
19
|
export * from './api/images-api';
|
|
20
20
|
export * from './api/nodes-api';
|
|
21
|
+
export * from './api/organizations-api';
|
|
21
22
|
export * from './api/toolbox-api';
|
|
22
23
|
export * from './api/users-api';
|
|
23
24
|
export * from './api/workspace-api';
|
|
@@ -24,33 +24,37 @@ export declare const ApiKeysApiAxiosParamCreator: (configuration?: Configuration
|
|
|
24
24
|
*
|
|
25
25
|
* @summary Create API key
|
|
26
26
|
* @param {CreateApiKey} createApiKey
|
|
27
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
27
28
|
* @param {*} [options] Override http request option.
|
|
28
29
|
* @throws {RequiredError}
|
|
29
30
|
*/
|
|
30
|
-
createApiKey: (createApiKey: CreateApiKey, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
createApiKey: (createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
33
34
|
* @summary Delete API key
|
|
34
35
|
* @param {string} name
|
|
36
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
35
37
|
* @param {*} [options] Override http request option.
|
|
36
38
|
* @throws {RequiredError}
|
|
37
39
|
*/
|
|
38
|
-
deleteApiKey: (name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
|
+
deleteApiKey: (name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
39
41
|
/**
|
|
40
42
|
*
|
|
41
43
|
* @summary Get API key
|
|
42
44
|
* @param {string} name
|
|
45
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
43
46
|
* @param {*} [options] Override http request option.
|
|
44
47
|
* @throws {RequiredError}
|
|
45
48
|
*/
|
|
46
|
-
getApiKey: (name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
|
+
getApiKey: (name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
50
|
/**
|
|
48
51
|
*
|
|
49
52
|
* @summary List API keys
|
|
53
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
50
54
|
* @param {*} [options] Override http request option.
|
|
51
55
|
* @throws {RequiredError}
|
|
52
56
|
*/
|
|
53
|
-
listApiKeys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
57
|
+
listApiKeys: (xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
58
|
};
|
|
55
59
|
/**
|
|
56
60
|
* ApiKeysApi - functional programming interface
|
|
@@ -61,33 +65,37 @@ export declare const ApiKeysApiFp: (configuration?: Configuration) => {
|
|
|
61
65
|
*
|
|
62
66
|
* @summary Create API key
|
|
63
67
|
* @param {CreateApiKey} createApiKey
|
|
68
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
64
69
|
* @param {*} [options] Override http request option.
|
|
65
70
|
* @throws {RequiredError}
|
|
66
71
|
*/
|
|
67
|
-
createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyResponse>>;
|
|
72
|
+
createApiKey(createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyResponse>>;
|
|
68
73
|
/**
|
|
69
74
|
*
|
|
70
75
|
* @summary Delete API key
|
|
71
76
|
* @param {string} name
|
|
77
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
72
78
|
* @param {*} [options] Override http request option.
|
|
73
79
|
* @throws {RequiredError}
|
|
74
80
|
*/
|
|
75
|
-
deleteApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
81
|
+
deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
76
82
|
/**
|
|
77
83
|
*
|
|
78
84
|
* @summary Get API key
|
|
79
85
|
* @param {string} name
|
|
86
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
80
87
|
* @param {*} [options] Override http request option.
|
|
81
88
|
* @throws {RequiredError}
|
|
82
89
|
*/
|
|
83
|
-
getApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyList>>;
|
|
90
|
+
getApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyList>>;
|
|
84
91
|
/**
|
|
85
92
|
*
|
|
86
93
|
* @summary List API keys
|
|
94
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
87
95
|
* @param {*} [options] Override http request option.
|
|
88
96
|
* @throws {RequiredError}
|
|
89
97
|
*/
|
|
90
|
-
listApiKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyList>>>;
|
|
98
|
+
listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyList>>>;
|
|
91
99
|
};
|
|
92
100
|
/**
|
|
93
101
|
* ApiKeysApi - factory interface
|
|
@@ -98,33 +106,37 @@ export declare const ApiKeysApiFactory: (configuration?: Configuration, basePath
|
|
|
98
106
|
*
|
|
99
107
|
* @summary Create API key
|
|
100
108
|
* @param {CreateApiKey} createApiKey
|
|
109
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
101
110
|
* @param {*} [options] Override http request option.
|
|
102
111
|
* @throws {RequiredError}
|
|
103
112
|
*/
|
|
104
|
-
createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyResponse>;
|
|
113
|
+
createApiKey(createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyResponse>;
|
|
105
114
|
/**
|
|
106
115
|
*
|
|
107
116
|
* @summary Delete API key
|
|
108
117
|
* @param {string} name
|
|
118
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
109
119
|
* @param {*} [options] Override http request option.
|
|
110
120
|
* @throws {RequiredError}
|
|
111
121
|
*/
|
|
112
|
-
deleteApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
122
|
+
deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
113
123
|
/**
|
|
114
124
|
*
|
|
115
125
|
* @summary Get API key
|
|
116
126
|
* @param {string} name
|
|
127
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
117
128
|
* @param {*} [options] Override http request option.
|
|
118
129
|
* @throws {RequiredError}
|
|
119
130
|
*/
|
|
120
|
-
getApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyList>;
|
|
131
|
+
getApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyList>;
|
|
121
132
|
/**
|
|
122
133
|
*
|
|
123
134
|
* @summary List API keys
|
|
135
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
124
136
|
* @param {*} [options] Override http request option.
|
|
125
137
|
* @throws {RequiredError}
|
|
126
138
|
*/
|
|
127
|
-
listApiKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyList>>;
|
|
139
|
+
listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyList>>;
|
|
128
140
|
};
|
|
129
141
|
/**
|
|
130
142
|
* ApiKeysApi - object-oriented interface
|
|
@@ -137,35 +149,39 @@ export declare class ApiKeysApi extends BaseAPI {
|
|
|
137
149
|
*
|
|
138
150
|
* @summary Create API key
|
|
139
151
|
* @param {CreateApiKey} createApiKey
|
|
152
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
140
153
|
* @param {*} [options] Override http request option.
|
|
141
154
|
* @throws {RequiredError}
|
|
142
155
|
* @memberof ApiKeysApi
|
|
143
156
|
*/
|
|
144
|
-
createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyResponse, any>>;
|
|
157
|
+
createApiKey(createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyResponse, any>>;
|
|
145
158
|
/**
|
|
146
159
|
*
|
|
147
160
|
* @summary Delete API key
|
|
148
161
|
* @param {string} name
|
|
162
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
149
163
|
* @param {*} [options] Override http request option.
|
|
150
164
|
* @throws {RequiredError}
|
|
151
165
|
* @memberof ApiKeysApi
|
|
152
166
|
*/
|
|
153
|
-
deleteApiKey(name: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
167
|
+
deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
154
168
|
/**
|
|
155
169
|
*
|
|
156
170
|
* @summary Get API key
|
|
157
171
|
* @param {string} name
|
|
172
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
158
173
|
* @param {*} [options] Override http request option.
|
|
159
174
|
* @throws {RequiredError}
|
|
160
175
|
* @memberof ApiKeysApi
|
|
161
176
|
*/
|
|
162
|
-
getApiKey(name: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyList, any>>;
|
|
177
|
+
getApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyList, any>>;
|
|
163
178
|
/**
|
|
164
179
|
*
|
|
165
180
|
* @summary List API keys
|
|
181
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
166
182
|
* @param {*} [options] Override http request option.
|
|
167
183
|
* @throws {RequiredError}
|
|
168
184
|
* @memberof ApiKeysApi
|
|
169
185
|
*/
|
|
170
|
-
listApiKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyList[], any>>;
|
|
186
|
+
listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyList[], any>>;
|
|
171
187
|
}
|
package/dist/api/api-keys-api.js
CHANGED
|
@@ -39,10 +39,11 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
39
39
|
*
|
|
40
40
|
* @summary Create API key
|
|
41
41
|
* @param {CreateApiKey} createApiKey
|
|
42
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
42
43
|
* @param {*} [options] Override http request option.
|
|
43
44
|
* @throws {RequiredError}
|
|
44
45
|
*/
|
|
45
|
-
createApiKey: (createApiKey_1, ...args_1) => __awaiter(this, [createApiKey_1, ...args_1], void 0, function* (createApiKey, options = {}) {
|
|
46
|
+
createApiKey: (createApiKey_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [createApiKey_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (createApiKey, xDaytonaOrganizationID, options = {}) {
|
|
46
47
|
// verify required parameter 'createApiKey' is not null or undefined
|
|
47
48
|
(0, common_1.assertParamExists)('createApiKey', 'createApiKey', createApiKey);
|
|
48
49
|
const localVarPath = `/api-keys`;
|
|
@@ -58,6 +59,9 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
58
59
|
// authentication oauth2 required
|
|
59
60
|
// oauth required
|
|
60
61
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
62
|
+
if (xDaytonaOrganizationID != null) {
|
|
63
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
64
|
+
}
|
|
61
65
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62
66
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
67
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -72,10 +76,11 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
72
76
|
*
|
|
73
77
|
* @summary Delete API key
|
|
74
78
|
* @param {string} name
|
|
79
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
75
80
|
* @param {*} [options] Override http request option.
|
|
76
81
|
* @throws {RequiredError}
|
|
77
82
|
*/
|
|
78
|
-
deleteApiKey: (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) {
|
|
83
|
+
deleteApiKey: (name_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [name_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (name, xDaytonaOrganizationID, options = {}) {
|
|
79
84
|
// verify required parameter 'name' is not null or undefined
|
|
80
85
|
(0, common_1.assertParamExists)('deleteApiKey', 'name', name);
|
|
81
86
|
const localVarPath = `/api-keys/{name}`
|
|
@@ -92,6 +97,9 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
92
97
|
// authentication oauth2 required
|
|
93
98
|
// oauth required
|
|
94
99
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
100
|
+
if (xDaytonaOrganizationID != null) {
|
|
101
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
102
|
+
}
|
|
95
103
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
96
104
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
97
105
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -104,10 +112,11 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
104
112
|
*
|
|
105
113
|
* @summary Get API key
|
|
106
114
|
* @param {string} name
|
|
115
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
107
116
|
* @param {*} [options] Override http request option.
|
|
108
117
|
* @throws {RequiredError}
|
|
109
118
|
*/
|
|
110
|
-
getApiKey: (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) {
|
|
119
|
+
getApiKey: (name_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [name_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (name, xDaytonaOrganizationID, options = {}) {
|
|
111
120
|
// verify required parameter 'name' is not null or undefined
|
|
112
121
|
(0, common_1.assertParamExists)('getApiKey', 'name', name);
|
|
113
122
|
const localVarPath = `/api-keys/{name}`
|
|
@@ -124,6 +133,9 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
124
133
|
// authentication oauth2 required
|
|
125
134
|
// oauth required
|
|
126
135
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
136
|
+
if (xDaytonaOrganizationID != null) {
|
|
137
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
138
|
+
}
|
|
127
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
128
140
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
141
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -135,10 +147,11 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
135
147
|
/**
|
|
136
148
|
*
|
|
137
149
|
* @summary List API keys
|
|
150
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
138
151
|
* @param {*} [options] Override http request option.
|
|
139
152
|
* @throws {RequiredError}
|
|
140
153
|
*/
|
|
141
|
-
listApiKeys: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
154
|
+
listApiKeys: (xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [xDaytonaOrganizationID_1, ...args_1], void 0, function* (xDaytonaOrganizationID, options = {}) {
|
|
142
155
|
const localVarPath = `/api-keys`;
|
|
143
156
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
144
157
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -152,6 +165,9 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
152
165
|
// authentication oauth2 required
|
|
153
166
|
// oauth required
|
|
154
167
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
168
|
+
if (xDaytonaOrganizationID != null) {
|
|
169
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
170
|
+
}
|
|
155
171
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
156
172
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
157
173
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -174,13 +190,14 @@ const ApiKeysApiFp = function (configuration) {
|
|
|
174
190
|
*
|
|
175
191
|
* @summary Create API key
|
|
176
192
|
* @param {CreateApiKey} createApiKey
|
|
193
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
177
194
|
* @param {*} [options] Override http request option.
|
|
178
195
|
* @throws {RequiredError}
|
|
179
196
|
*/
|
|
180
|
-
createApiKey(createApiKey, options) {
|
|
197
|
+
createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
181
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
182
199
|
var _a, _b, _c;
|
|
183
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApiKey(createApiKey, options);
|
|
200
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApiKey(createApiKey, xDaytonaOrganizationID, options);
|
|
184
201
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
185
202
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.createApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
186
203
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -190,13 +207,14 @@ const ApiKeysApiFp = function (configuration) {
|
|
|
190
207
|
*
|
|
191
208
|
* @summary Delete API key
|
|
192
209
|
* @param {string} name
|
|
210
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
193
211
|
* @param {*} [options] Override http request option.
|
|
194
212
|
* @throws {RequiredError}
|
|
195
213
|
*/
|
|
196
|
-
deleteApiKey(name, options) {
|
|
214
|
+
deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
197
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
198
216
|
var _a, _b, _c;
|
|
199
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteApiKey(name, options);
|
|
217
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteApiKey(name, xDaytonaOrganizationID, options);
|
|
200
218
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
201
219
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.deleteApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
202
220
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -206,13 +224,14 @@ const ApiKeysApiFp = function (configuration) {
|
|
|
206
224
|
*
|
|
207
225
|
* @summary Get API key
|
|
208
226
|
* @param {string} name
|
|
227
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
209
228
|
* @param {*} [options] Override http request option.
|
|
210
229
|
* @throws {RequiredError}
|
|
211
230
|
*/
|
|
212
|
-
getApiKey(name, options) {
|
|
231
|
+
getApiKey(name, xDaytonaOrganizationID, options) {
|
|
213
232
|
return __awaiter(this, void 0, void 0, function* () {
|
|
214
233
|
var _a, _b, _c;
|
|
215
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApiKey(name, options);
|
|
234
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApiKey(name, xDaytonaOrganizationID, options);
|
|
216
235
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
217
236
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.getApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
218
237
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -221,13 +240,14 @@ const ApiKeysApiFp = function (configuration) {
|
|
|
221
240
|
/**
|
|
222
241
|
*
|
|
223
242
|
* @summary List API keys
|
|
243
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
224
244
|
* @param {*} [options] Override http request option.
|
|
225
245
|
* @throws {RequiredError}
|
|
226
246
|
*/
|
|
227
|
-
listApiKeys(options) {
|
|
247
|
+
listApiKeys(xDaytonaOrganizationID, options) {
|
|
228
248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
229
249
|
var _a, _b, _c;
|
|
230
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listApiKeys(options);
|
|
250
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listApiKeys(xDaytonaOrganizationID, options);
|
|
231
251
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
232
252
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.listApiKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
233
253
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -247,40 +267,44 @@ const ApiKeysApiFactory = function (configuration, basePath, axios) {
|
|
|
247
267
|
*
|
|
248
268
|
* @summary Create API key
|
|
249
269
|
* @param {CreateApiKey} createApiKey
|
|
270
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
250
271
|
* @param {*} [options] Override http request option.
|
|
251
272
|
* @throws {RequiredError}
|
|
252
273
|
*/
|
|
253
|
-
createApiKey(createApiKey, options) {
|
|
254
|
-
return localVarFp.createApiKey(createApiKey, options).then((request) => request(axios, basePath));
|
|
274
|
+
createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
275
|
+
return localVarFp.createApiKey(createApiKey, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
255
276
|
},
|
|
256
277
|
/**
|
|
257
278
|
*
|
|
258
279
|
* @summary Delete API key
|
|
259
280
|
* @param {string} name
|
|
281
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
260
282
|
* @param {*} [options] Override http request option.
|
|
261
283
|
* @throws {RequiredError}
|
|
262
284
|
*/
|
|
263
|
-
deleteApiKey(name, options) {
|
|
264
|
-
return localVarFp.deleteApiKey(name, options).then((request) => request(axios, basePath));
|
|
285
|
+
deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
286
|
+
return localVarFp.deleteApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
265
287
|
},
|
|
266
288
|
/**
|
|
267
289
|
*
|
|
268
290
|
* @summary Get API key
|
|
269
291
|
* @param {string} name
|
|
292
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
270
293
|
* @param {*} [options] Override http request option.
|
|
271
294
|
* @throws {RequiredError}
|
|
272
295
|
*/
|
|
273
|
-
getApiKey(name, options) {
|
|
274
|
-
return localVarFp.getApiKey(name, options).then((request) => request(axios, basePath));
|
|
296
|
+
getApiKey(name, xDaytonaOrganizationID, options) {
|
|
297
|
+
return localVarFp.getApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
275
298
|
},
|
|
276
299
|
/**
|
|
277
300
|
*
|
|
278
301
|
* @summary List API keys
|
|
302
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
279
303
|
* @param {*} [options] Override http request option.
|
|
280
304
|
* @throws {RequiredError}
|
|
281
305
|
*/
|
|
282
|
-
listApiKeys(options) {
|
|
283
|
-
return localVarFp.listApiKeys(options).then((request) => request(axios, basePath));
|
|
306
|
+
listApiKeys(xDaytonaOrganizationID, options) {
|
|
307
|
+
return localVarFp.listApiKeys(xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
284
308
|
},
|
|
285
309
|
};
|
|
286
310
|
};
|
|
@@ -296,44 +320,48 @@ class ApiKeysApi extends base_1.BaseAPI {
|
|
|
296
320
|
*
|
|
297
321
|
* @summary Create API key
|
|
298
322
|
* @param {CreateApiKey} createApiKey
|
|
323
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
299
324
|
* @param {*} [options] Override http request option.
|
|
300
325
|
* @throws {RequiredError}
|
|
301
326
|
* @memberof ApiKeysApi
|
|
302
327
|
*/
|
|
303
|
-
createApiKey(createApiKey, options) {
|
|
304
|
-
return (0, exports.ApiKeysApiFp)(this.configuration).createApiKey(createApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
328
|
+
createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
329
|
+
return (0, exports.ApiKeysApiFp)(this.configuration).createApiKey(createApiKey, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
305
330
|
}
|
|
306
331
|
/**
|
|
307
332
|
*
|
|
308
333
|
* @summary Delete API key
|
|
309
334
|
* @param {string} name
|
|
335
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
310
336
|
* @param {*} [options] Override http request option.
|
|
311
337
|
* @throws {RequiredError}
|
|
312
338
|
* @memberof ApiKeysApi
|
|
313
339
|
*/
|
|
314
|
-
deleteApiKey(name, options) {
|
|
315
|
-
return (0, exports.ApiKeysApiFp)(this.configuration).deleteApiKey(name, options).then((request) => request(this.axios, this.basePath));
|
|
340
|
+
deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
341
|
+
return (0, exports.ApiKeysApiFp)(this.configuration).deleteApiKey(name, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
316
342
|
}
|
|
317
343
|
/**
|
|
318
344
|
*
|
|
319
345
|
* @summary Get API key
|
|
320
346
|
* @param {string} name
|
|
347
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
321
348
|
* @param {*} [options] Override http request option.
|
|
322
349
|
* @throws {RequiredError}
|
|
323
350
|
* @memberof ApiKeysApi
|
|
324
351
|
*/
|
|
325
|
-
getApiKey(name, options) {
|
|
326
|
-
return (0, exports.ApiKeysApiFp)(this.configuration).getApiKey(name, options).then((request) => request(this.axios, this.basePath));
|
|
352
|
+
getApiKey(name, xDaytonaOrganizationID, options) {
|
|
353
|
+
return (0, exports.ApiKeysApiFp)(this.configuration).getApiKey(name, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
327
354
|
}
|
|
328
355
|
/**
|
|
329
356
|
*
|
|
330
357
|
* @summary List API keys
|
|
358
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
331
359
|
* @param {*} [options] Override http request option.
|
|
332
360
|
* @throws {RequiredError}
|
|
333
361
|
* @memberof ApiKeysApi
|
|
334
362
|
*/
|
|
335
|
-
listApiKeys(options) {
|
|
336
|
-
return (0, exports.ApiKeysApiFp)(this.configuration).listApiKeys(options).then((request) => request(this.axios, this.basePath));
|
|
363
|
+
listApiKeys(xDaytonaOrganizationID, options) {
|
|
364
|
+
return (0, exports.ApiKeysApiFp)(this.configuration).listApiKeys(xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
337
365
|
}
|
|
338
366
|
}
|
|
339
367
|
exports.ApiKeysApi = ApiKeysApi;
|