@emilgroup/auth-sdk 1.20.1-beta.4 → 1.20.1-beta.6
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 +0 -5
- package/README.md +2 -2
- package/api/default-api.ts +4 -4
- package/api.ts +0 -2
- package/dist/api/authservice-api.js +38 -95
- package/dist/api/default-api.d.ts +4 -4
- package/dist/api/default-api.js +9 -22
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/base.js +5 -5
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/dist/models/index.d.ts +0 -4
- package/dist/models/index.js +0 -4
- package/dist/models/user-class.d.ts +0 -6
- package/models/index.ts +0 -4
- package/models/user-class.ts +0 -6
- package/package.json +3 -3
- package/api/workspaces-api.ts +0 -269
- package/dist/api/workspaces-api.d.ts +0 -153
- package/dist/api/workspaces-api.js +0 -334
- package/dist/models/list-workspaces-repsonse-class.d.ts +0 -25
- package/dist/models/list-workspaces-repsonse-class.js +0 -15
- package/dist/models/switch-workspace-request-without-refresh-token-dto.d.ts +0 -30
- package/dist/models/switch-workspace-request-without-refresh-token-dto.js +0 -15
- package/dist/models/switch-workspace-response-class.d.ts +0 -24
- package/dist/models/switch-workspace-response-class.js +0 -15
- package/dist/models/workspace-class.d.ts +0 -36
- package/dist/models/workspace-class.js +0 -15
- package/models/list-workspaces-repsonse-class.ts +0 -31
- package/models/switch-workspace-request-without-refresh-token-dto.ts +0 -36
- package/models/switch-workspace-response-class.ts +0 -30
- package/models/workspace-class.ts +0 -42
package/api/workspaces-api.ts
DELETED
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* EMIL AuthService
|
|
5
|
-
* The EMIL AuthService API description
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: kontakt@emil.de
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
-
import { Configuration } from '../configuration';
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { ListWorkspacesRepsonseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { SwitchWorkspaceRequestWithoutRefreshTokenDto } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { SwitchWorkspaceResponseClass } from '../models';
|
|
29
|
-
/**
|
|
30
|
-
* WorkspacesApi - axios parameter creator
|
|
31
|
-
* @export
|
|
32
|
-
*/
|
|
33
|
-
export const WorkspacesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
-
return {
|
|
35
|
-
/**
|
|
36
|
-
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
37
|
-
* @summary List workspaces
|
|
38
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
39
|
-
* @param {*} [options] Override http request option.
|
|
40
|
-
* @throws {RequiredError}
|
|
41
|
-
*/
|
|
42
|
-
listWorkspaces: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
-
const localVarPath = `/authservice/v1/workspaces`;
|
|
44
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46
|
-
let baseOptions;
|
|
47
|
-
let baseAccessToken;
|
|
48
|
-
if (configuration) {
|
|
49
|
-
baseOptions = configuration.baseOptions;
|
|
50
|
-
baseAccessToken = configuration.accessToken;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54
|
-
const localVarHeaderParameter = {} as any;
|
|
55
|
-
const localVarQueryParameter = {} as any;
|
|
56
|
-
|
|
57
|
-
// authentication bearer required
|
|
58
|
-
// http bearer authentication required
|
|
59
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
60
|
-
|
|
61
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
62
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
68
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
69
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
70
|
-
|
|
71
|
-
return {
|
|
72
|
-
url: toPathString(localVarUrlObj),
|
|
73
|
-
options: localVarRequestOptions,
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
/**
|
|
77
|
-
* Switch to a different workspace and get new access and refresh tokens.
|
|
78
|
-
* @summary Switch workspace
|
|
79
|
-
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
80
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
81
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
82
|
-
* @param {*} [options] Override http request option.
|
|
83
|
-
* @throws {RequiredError}
|
|
84
|
-
*/
|
|
85
|
-
switchWorkspace: async (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
86
|
-
// verify required parameter 'switchWorkspaceRequestWithoutRefreshTokenDto' is not null or undefined
|
|
87
|
-
assertParamExists('switchWorkspace', 'switchWorkspaceRequestWithoutRefreshTokenDto', switchWorkspaceRequestWithoutRefreshTokenDto)
|
|
88
|
-
const localVarPath = `/authservice/v1/workspaces/switch`;
|
|
89
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
90
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
91
|
-
let baseOptions;
|
|
92
|
-
let baseAccessToken;
|
|
93
|
-
if (configuration) {
|
|
94
|
-
baseOptions = configuration.baseOptions;
|
|
95
|
-
baseAccessToken = configuration.accessToken;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
99
|
-
const localVarHeaderParameter = {} as any;
|
|
100
|
-
const localVarQueryParameter = {} as any;
|
|
101
|
-
|
|
102
|
-
// authentication bearer required
|
|
103
|
-
// http bearer authentication required
|
|
104
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
105
|
-
|
|
106
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
107
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if (cookie !== undefined && cookie !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
111
|
-
localVarHeaderParameter['Cookie'] = String(cookie ? cookie : baseAccessToken);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
117
|
-
|
|
118
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
119
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
121
|
-
localVarRequestOptions.data = serializeDataIfNeeded(switchWorkspaceRequestWithoutRefreshTokenDto, localVarRequestOptions, configuration)
|
|
122
|
-
|
|
123
|
-
return {
|
|
124
|
-
url: toPathString(localVarUrlObj),
|
|
125
|
-
options: localVarRequestOptions,
|
|
126
|
-
};
|
|
127
|
-
},
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* WorkspacesApi - functional programming interface
|
|
133
|
-
* @export
|
|
134
|
-
*/
|
|
135
|
-
export const WorkspacesApiFp = function(configuration?: Configuration) {
|
|
136
|
-
const localVarAxiosParamCreator = WorkspacesApiAxiosParamCreator(configuration)
|
|
137
|
-
return {
|
|
138
|
-
/**
|
|
139
|
-
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
140
|
-
* @summary List workspaces
|
|
141
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
142
|
-
* @param {*} [options] Override http request option.
|
|
143
|
-
* @throws {RequiredError}
|
|
144
|
-
*/
|
|
145
|
-
async listWorkspaces(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkspacesRepsonseClass>> {
|
|
146
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(authorization, options);
|
|
147
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
148
|
-
},
|
|
149
|
-
/**
|
|
150
|
-
* Switch to a different workspace and get new access and refresh tokens.
|
|
151
|
-
* @summary Switch workspace
|
|
152
|
-
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
153
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
155
|
-
* @param {*} [options] Override http request option.
|
|
156
|
-
* @throws {RequiredError}
|
|
157
|
-
*/
|
|
158
|
-
async switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SwitchWorkspaceResponseClass>> {
|
|
159
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options);
|
|
160
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
161
|
-
},
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* WorkspacesApi - factory interface
|
|
167
|
-
* @export
|
|
168
|
-
*/
|
|
169
|
-
export const WorkspacesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
170
|
-
const localVarFp = WorkspacesApiFp(configuration)
|
|
171
|
-
return {
|
|
172
|
-
/**
|
|
173
|
-
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
174
|
-
* @summary List workspaces
|
|
175
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
176
|
-
* @param {*} [options] Override http request option.
|
|
177
|
-
* @throws {RequiredError}
|
|
178
|
-
*/
|
|
179
|
-
listWorkspaces(authorization?: string, options?: any): AxiosPromise<ListWorkspacesRepsonseClass> {
|
|
180
|
-
return localVarFp.listWorkspaces(authorization, options).then((request) => request(axios, basePath));
|
|
181
|
-
},
|
|
182
|
-
/**
|
|
183
|
-
* Switch to a different workspace and get new access and refresh tokens.
|
|
184
|
-
* @summary Switch workspace
|
|
185
|
-
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
186
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
188
|
-
* @param {*} [options] Override http request option.
|
|
189
|
-
* @throws {RequiredError}
|
|
190
|
-
*/
|
|
191
|
-
switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: any): AxiosPromise<SwitchWorkspaceResponseClass> {
|
|
192
|
-
return localVarFp.switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto, authorization, cookie, options).then((request) => request(axios, basePath));
|
|
193
|
-
},
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Request parameters for listWorkspaces operation in WorkspacesApi.
|
|
199
|
-
* @export
|
|
200
|
-
* @interface WorkspacesApiListWorkspacesRequest
|
|
201
|
-
*/
|
|
202
|
-
export interface WorkspacesApiListWorkspacesRequest {
|
|
203
|
-
/**
|
|
204
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
205
|
-
* @type {string}
|
|
206
|
-
* @memberof WorkspacesApiListWorkspaces
|
|
207
|
-
*/
|
|
208
|
-
readonly authorization?: string
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Request parameters for switchWorkspace operation in WorkspacesApi.
|
|
213
|
-
* @export
|
|
214
|
-
* @interface WorkspacesApiSwitchWorkspaceRequest
|
|
215
|
-
*/
|
|
216
|
-
export interface WorkspacesApiSwitchWorkspaceRequest {
|
|
217
|
-
/**
|
|
218
|
-
*
|
|
219
|
-
* @type {SwitchWorkspaceRequestWithoutRefreshTokenDto}
|
|
220
|
-
* @memberof WorkspacesApiSwitchWorkspace
|
|
221
|
-
*/
|
|
222
|
-
readonly switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
226
|
-
* @type {string}
|
|
227
|
-
* @memberof WorkspacesApiSwitchWorkspace
|
|
228
|
-
*/
|
|
229
|
-
readonly authorization?: string
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* HTTP only cookie that was sent during login
|
|
233
|
-
* @type {string}
|
|
234
|
-
* @memberof WorkspacesApiSwitchWorkspace
|
|
235
|
-
*/
|
|
236
|
-
readonly cookie?: string
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* WorkspacesApi - object-oriented interface
|
|
241
|
-
* @export
|
|
242
|
-
* @class WorkspacesApi
|
|
243
|
-
* @extends {BaseAPI}
|
|
244
|
-
*/
|
|
245
|
-
export class WorkspacesApi extends BaseAPI {
|
|
246
|
-
/**
|
|
247
|
-
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
248
|
-
* @summary List workspaces
|
|
249
|
-
* @param {WorkspacesApiListWorkspacesRequest} requestParameters Request parameters.
|
|
250
|
-
* @param {*} [options] Override http request option.
|
|
251
|
-
* @throws {RequiredError}
|
|
252
|
-
* @memberof WorkspacesApi
|
|
253
|
-
*/
|
|
254
|
-
public listWorkspaces(requestParameters: WorkspacesApiListWorkspacesRequest = {}, options?: AxiosRequestConfig) {
|
|
255
|
-
return WorkspacesApiFp(this.configuration).listWorkspaces(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Switch to a different workspace and get new access and refresh tokens.
|
|
260
|
-
* @summary Switch workspace
|
|
261
|
-
* @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
|
|
262
|
-
* @param {*} [options] Override http request option.
|
|
263
|
-
* @throws {RequiredError}
|
|
264
|
-
* @memberof WorkspacesApi
|
|
265
|
-
*/
|
|
266
|
-
public switchWorkspace(requestParameters: WorkspacesApiSwitchWorkspaceRequest, options?: AxiosRequestConfig) {
|
|
267
|
-
return WorkspacesApiFp(this.configuration).switchWorkspace(requestParameters.switchWorkspaceRequestWithoutRefreshTokenDto, requestParameters.authorization, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath));
|
|
268
|
-
}
|
|
269
|
-
}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL AuthService
|
|
3
|
-
* The EMIL AuthService API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
-
import { Configuration } from '../configuration';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { ListWorkspacesRepsonseClass } from '../models';
|
|
16
|
-
import { SwitchWorkspaceRequestWithoutRefreshTokenDto } from '../models';
|
|
17
|
-
import { SwitchWorkspaceResponseClass } from '../models';
|
|
18
|
-
/**
|
|
19
|
-
* WorkspacesApi - axios parameter creator
|
|
20
|
-
* @export
|
|
21
|
-
*/
|
|
22
|
-
export declare const WorkspacesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
-
/**
|
|
24
|
-
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
25
|
-
* @summary List workspaces
|
|
26
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
27
|
-
* @param {*} [options] Override http request option.
|
|
28
|
-
* @throws {RequiredError}
|
|
29
|
-
*/
|
|
30
|
-
listWorkspaces: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
-
/**
|
|
32
|
-
* Switch to a different workspace and get new access and refresh tokens.
|
|
33
|
-
* @summary Switch workspace
|
|
34
|
-
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
35
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
36
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
37
|
-
* @param {*} [options] Override http request option.
|
|
38
|
-
* @throws {RequiredError}
|
|
39
|
-
*/
|
|
40
|
-
switchWorkspace: (switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* WorkspacesApi - functional programming interface
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
|
-
export declare const WorkspacesApiFp: (configuration?: Configuration) => {
|
|
47
|
-
/**
|
|
48
|
-
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
49
|
-
* @summary List workspaces
|
|
50
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
51
|
-
* @param {*} [options] Override http request option.
|
|
52
|
-
* @throws {RequiredError}
|
|
53
|
-
*/
|
|
54
|
-
listWorkspaces(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListWorkspacesRepsonseClass>>;
|
|
55
|
-
/**
|
|
56
|
-
* Switch to a different workspace and get new access and refresh tokens.
|
|
57
|
-
* @summary Switch workspace
|
|
58
|
-
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
59
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
60
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
61
|
-
* @param {*} [options] Override http request option.
|
|
62
|
-
* @throws {RequiredError}
|
|
63
|
-
*/
|
|
64
|
-
switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SwitchWorkspaceResponseClass>>;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* WorkspacesApi - factory interface
|
|
68
|
-
* @export
|
|
69
|
-
*/
|
|
70
|
-
export declare const WorkspacesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
71
|
-
/**
|
|
72
|
-
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
73
|
-
* @summary List workspaces
|
|
74
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
75
|
-
* @param {*} [options] Override http request option.
|
|
76
|
-
* @throws {RequiredError}
|
|
77
|
-
*/
|
|
78
|
-
listWorkspaces(authorization?: string, options?: any): AxiosPromise<ListWorkspacesRepsonseClass>;
|
|
79
|
-
/**
|
|
80
|
-
* Switch to a different workspace and get new access and refresh tokens.
|
|
81
|
-
* @summary Switch workspace
|
|
82
|
-
* @param {SwitchWorkspaceRequestWithoutRefreshTokenDto} switchWorkspaceRequestWithoutRefreshTokenDto
|
|
83
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
84
|
-
* @param {string} [cookie] HTTP only cookie that was sent during login
|
|
85
|
-
* @param {*} [options] Override http request option.
|
|
86
|
-
* @throws {RequiredError}
|
|
87
|
-
*/
|
|
88
|
-
switchWorkspace(switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto, authorization?: string, cookie?: string, options?: any): AxiosPromise<SwitchWorkspaceResponseClass>;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Request parameters for listWorkspaces operation in WorkspacesApi.
|
|
92
|
-
* @export
|
|
93
|
-
* @interface WorkspacesApiListWorkspacesRequest
|
|
94
|
-
*/
|
|
95
|
-
export interface WorkspacesApiListWorkspacesRequest {
|
|
96
|
-
/**
|
|
97
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof WorkspacesApiListWorkspaces
|
|
100
|
-
*/
|
|
101
|
-
readonly authorization?: string;
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Request parameters for switchWorkspace operation in WorkspacesApi.
|
|
105
|
-
* @export
|
|
106
|
-
* @interface WorkspacesApiSwitchWorkspaceRequest
|
|
107
|
-
*/
|
|
108
|
-
export interface WorkspacesApiSwitchWorkspaceRequest {
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @type {SwitchWorkspaceRequestWithoutRefreshTokenDto}
|
|
112
|
-
* @memberof WorkspacesApiSwitchWorkspace
|
|
113
|
-
*/
|
|
114
|
-
readonly switchWorkspaceRequestWithoutRefreshTokenDto: SwitchWorkspaceRequestWithoutRefreshTokenDto;
|
|
115
|
-
/**
|
|
116
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
|
-
* @type {string}
|
|
118
|
-
* @memberof WorkspacesApiSwitchWorkspace
|
|
119
|
-
*/
|
|
120
|
-
readonly authorization?: string;
|
|
121
|
-
/**
|
|
122
|
-
* HTTP only cookie that was sent during login
|
|
123
|
-
* @type {string}
|
|
124
|
-
* @memberof WorkspacesApiSwitchWorkspace
|
|
125
|
-
*/
|
|
126
|
-
readonly cookie?: string;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* WorkspacesApi - object-oriented interface
|
|
130
|
-
* @export
|
|
131
|
-
* @class WorkspacesApi
|
|
132
|
-
* @extends {BaseAPI}
|
|
133
|
-
*/
|
|
134
|
-
export declare class WorkspacesApi extends BaseAPI {
|
|
135
|
-
/**
|
|
136
|
-
* Returns a list of workspaces you have access to. Note that this endpoint does not support sorting or pagination.
|
|
137
|
-
* @summary List workspaces
|
|
138
|
-
* @param {WorkspacesApiListWorkspacesRequest} requestParameters Request parameters.
|
|
139
|
-
* @param {*} [options] Override http request option.
|
|
140
|
-
* @throws {RequiredError}
|
|
141
|
-
* @memberof WorkspacesApi
|
|
142
|
-
*/
|
|
143
|
-
listWorkspaces(requestParameters?: WorkspacesApiListWorkspacesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListWorkspacesRepsonseClass, any>>;
|
|
144
|
-
/**
|
|
145
|
-
* Switch to a different workspace and get new access and refresh tokens.
|
|
146
|
-
* @summary Switch workspace
|
|
147
|
-
* @param {WorkspacesApiSwitchWorkspaceRequest} requestParameters Request parameters.
|
|
148
|
-
* @param {*} [options] Override http request option.
|
|
149
|
-
* @throws {RequiredError}
|
|
150
|
-
* @memberof WorkspacesApi
|
|
151
|
-
*/
|
|
152
|
-
switchWorkspace(requestParameters: WorkspacesApiSwitchWorkspaceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SwitchWorkspaceResponseClass, any>>;
|
|
153
|
-
}
|