@cosmotech/api-ts 4.0.0-dev9 → 5.0.0-beta4
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 +96 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/LICENSE +1 -1
- package/README.md +212 -2
- package/api.ts +4896 -4560
- package/base.ts +2 -2
- package/common.ts +1 -1
- package/configuration.ts +7 -2
- package/dist/api.d.ts +3303 -2892
- package/dist/api.js +4182 -4367
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +14 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AboutInfo.md +21 -0
- package/docs/AboutInfoVersion.md +33 -0
- package/docs/ComponentRolePermissions.md +23 -0
- package/docs/ContainerResourceSizeInfo.md +23 -0
- package/docs/ContainerResourceSizing.md +23 -0
- package/docs/CreateInfo.md +24 -0
- package/docs/CreatedRun.md +21 -0
- package/docs/Dataset.md +39 -0
- package/docs/DatasetAccessControl.md +23 -0
- package/docs/DatasetApi.md +1289 -0
- package/docs/DatasetCreateRequest.md +31 -0
- package/docs/DatasetPart.md +41 -0
- package/docs/DatasetPartCreateRequest.md +29 -0
- package/docs/DatasetPartTypeEnum.md +11 -0
- package/docs/DatasetPartUpdateRequest.md +25 -0
- package/docs/DatasetRole.md +21 -0
- package/docs/DatasetSecurity.md +23 -0
- package/docs/DatasetUpdateRequest.md +29 -0
- package/docs/EditInfo.md +22 -0
- package/docs/LastRunInfo.md +23 -0
- package/docs/MetaApi.md +51 -0
- package/docs/Organization.md +29 -0
- package/docs/OrganizationAccessControl.md +23 -0
- package/docs/OrganizationApi.md +758 -0
- package/docs/OrganizationCreateRequest.md +23 -0
- package/docs/OrganizationEditInfo.md +22 -0
- package/docs/OrganizationRole.md +21 -0
- package/docs/OrganizationSecurity.md +23 -0
- package/docs/OrganizationUpdateRequest.md +21 -0
- package/docs/QueryResult.md +21 -0
- package/docs/ResourceSizeInfo.md +23 -0
- package/docs/Run.md +55 -0
- package/docs/RunApi.md +442 -0
- package/docs/RunContainer.md +41 -0
- package/docs/RunData.md +25 -0
- package/docs/RunDataQuery.md +21 -0
- package/docs/RunEditInfo.md +22 -0
- package/docs/RunResourceRequested.md +23 -0
- package/docs/RunState.md +17 -0
- package/docs/RunStatus.md +49 -0
- package/docs/RunStatusNode.md +43 -0
- package/docs/RunTemplate.md +37 -0
- package/docs/RunTemplateCreateRequest.md +37 -0
- package/docs/RunTemplateParameter.md +37 -0
- package/docs/RunTemplateParameterCreateRequest.md +37 -0
- package/docs/RunTemplateParameterGroup.md +33 -0
- package/docs/RunTemplateParameterGroupCreateRequest.md +33 -0
- package/docs/RunTemplateParameterGroupUpdateRequest.md +31 -0
- package/docs/RunTemplateParameterUpdateRequest.md +35 -0
- package/docs/RunTemplateParameterValue.md +25 -0
- package/docs/RunTemplateResourceSizing.md +23 -0
- package/docs/RunTemplateUpdateRequest.md +35 -0
- package/docs/Runner.md +61 -0
- package/docs/RunnerAccessControl.md +23 -0
- package/docs/RunnerApi.md +908 -0
- package/docs/RunnerCreateRequest.md +45 -0
- package/docs/RunnerEditInfo.md +22 -0
- package/docs/RunnerResourceSizing.md +23 -0
- package/docs/RunnerRole.md +21 -0
- package/docs/RunnerRunTemplateParameterValue.md +27 -0
- package/docs/RunnerSecurity.md +23 -0
- package/docs/RunnerUpdateRequest.md +39 -0
- package/docs/RunnerValidationStatus.md +15 -0
- package/docs/SendRunDataRequest.md +23 -0
- package/docs/Solution.md +53 -0
- package/docs/SolutionAccessControl.md +23 -0
- package/docs/SolutionApi.md +1870 -0
- package/docs/SolutionCreateRequest.md +43 -0
- package/docs/SolutionEditInfo.md +22 -0
- package/docs/SolutionFile.md +21 -0
- package/docs/SolutionRole.md +21 -0
- package/docs/SolutionSecurity.md +23 -0
- package/docs/SolutionUpdateRequest.md +41 -0
- package/docs/Workspace.md +45 -0
- package/docs/WorkspaceAccessControl.md +23 -0
- package/docs/WorkspaceApi.md +1044 -0
- package/docs/WorkspaceCreateRequest.md +37 -0
- package/docs/WorkspaceEditInfo.md +22 -0
- package/docs/WorkspaceFile.md +21 -0
- package/docs/WorkspaceRole.md +21 -0
- package/docs/WorkspaceSecurity.md +23 -0
- package/docs/WorkspaceSolution.md +25 -0
- package/docs/WorkspaceUpdateRequest.md +33 -0
- package/docs/WorkspaceWebApp.md +25 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/scripts/git_push.sh +1 -1
|
@@ -0,0 +1,1044 @@
|
|
|
1
|
+
# WorkspaceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8080*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createWorkspace**](#createworkspace) | **POST** /organizations/{organization_id}/workspaces | Create a new workspace|
|
|
8
|
+
|[**createWorkspaceAccessControl**](#createworkspaceaccesscontrol) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/security/access | Add a control access to the Workspace|
|
|
9
|
+
|[**createWorkspaceFile**](#createworkspacefile) | **POST** /organizations/{organization_id}/workspaces/{workspace_id}/files | Upload a file for the Workspace|
|
|
10
|
+
|[**deleteWorkspace**](#deleteworkspace) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id} | Delete a workspace|
|
|
11
|
+
|[**deleteWorkspaceAccessControl**](#deleteworkspaceaccesscontrol) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Remove the specified access from the given Workspace|
|
|
12
|
+
|[**deleteWorkspaceFile**](#deleteworkspacefile) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/files/delete | Delete a workspace file|
|
|
13
|
+
|[**deleteWorkspaceFiles**](#deleteworkspacefiles) | **DELETE** /organizations/{organization_id}/workspaces/{workspace_id}/files | Delete all Workspace files|
|
|
14
|
+
|[**getWorkspace**](#getworkspace) | **GET** /organizations/{organization_id}/workspaces/{workspace_id} | Get the details of a workspace|
|
|
15
|
+
|[**getWorkspaceAccessControl**](#getworkspaceaccesscontrol) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Get a control access for the Workspace|
|
|
16
|
+
|[**getWorkspaceFile**](#getworkspacefile) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/files/download | Download the Workspace File specified|
|
|
17
|
+
|[**getWorkspaceSecurity**](#getworkspacesecurity) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/security | Get the Workspace security information|
|
|
18
|
+
|[**listWorkspaceFiles**](#listworkspacefiles) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/files | List all Workspace files|
|
|
19
|
+
|[**listWorkspaceRolePermissions**](#listworkspacerolepermissions) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/permissions/{role} | Get the Workspace permission by given role|
|
|
20
|
+
|[**listWorkspaceSecurityUsers**](#listworkspacesecurityusers) | **GET** /organizations/{organization_id}/workspaces/{workspace_id}/security/users | Get the Workspace security users list|
|
|
21
|
+
|[**listWorkspaces**](#listworkspaces) | **GET** /organizations/{organization_id}/workspaces | List all Workspaces|
|
|
22
|
+
|[**updateWorkspace**](#updateworkspace) | **PATCH** /organizations/{organization_id}/workspaces/{workspace_id} | Update a workspace|
|
|
23
|
+
|[**updateWorkspaceAccessControl**](#updateworkspaceaccesscontrol) | **PATCH** /organizations/{organization_id}/workspaces/{workspace_id}/security/access/{identity_id} | Update the specified access to User for a Workspace|
|
|
24
|
+
|[**updateWorkspaceDefaultSecurity**](#updateworkspacedefaultsecurity) | **PATCH** /organizations/{organization_id}/workspaces/{workspace_id}/security/default | Update the Workspace default security|
|
|
25
|
+
|
|
26
|
+
# **createWorkspace**
|
|
27
|
+
> Workspace createWorkspace(workspaceCreateRequest)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Example
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import {
|
|
34
|
+
WorkspaceApi,
|
|
35
|
+
Configuration,
|
|
36
|
+
WorkspaceCreateRequest
|
|
37
|
+
} from '@cosmotech/api-ts';
|
|
38
|
+
|
|
39
|
+
const configuration = new Configuration();
|
|
40
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
41
|
+
|
|
42
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
43
|
+
let workspaceCreateRequest: WorkspaceCreateRequest; //The Workspace to create
|
|
44
|
+
|
|
45
|
+
const { status, data } = await apiInstance.createWorkspace(
|
|
46
|
+
organizationId,
|
|
47
|
+
workspaceCreateRequest
|
|
48
|
+
);
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Parameters
|
|
52
|
+
|
|
53
|
+
|Name | Type | Description | Notes|
|
|
54
|
+
|------------- | ------------- | ------------- | -------------|
|
|
55
|
+
| **workspaceCreateRequest** | **WorkspaceCreateRequest**| The Workspace to create | |
|
|
56
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Return type
|
|
60
|
+
|
|
61
|
+
**Workspace**
|
|
62
|
+
|
|
63
|
+
### Authorization
|
|
64
|
+
|
|
65
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
66
|
+
|
|
67
|
+
### HTTP request headers
|
|
68
|
+
|
|
69
|
+
- **Content-Type**: application/json, application/yaml
|
|
70
|
+
- **Accept**: application/json, application/yaml
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### HTTP response details
|
|
74
|
+
| Status code | Description | Response headers |
|
|
75
|
+
|-------------|-------------|------------------|
|
|
76
|
+
|**201** | The workspace details | - |
|
|
77
|
+
|**400** | Bad request | - |
|
|
78
|
+
|
|
79
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
80
|
+
|
|
81
|
+
# **createWorkspaceAccessControl**
|
|
82
|
+
> WorkspaceAccessControl createWorkspaceAccessControl(workspaceAccessControl)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Example
|
|
86
|
+
|
|
87
|
+
```typescript
|
|
88
|
+
import {
|
|
89
|
+
WorkspaceApi,
|
|
90
|
+
Configuration,
|
|
91
|
+
WorkspaceAccessControl
|
|
92
|
+
} from '@cosmotech/api-ts';
|
|
93
|
+
|
|
94
|
+
const configuration = new Configuration();
|
|
95
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
96
|
+
|
|
97
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
98
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
99
|
+
let workspaceAccessControl: WorkspaceAccessControl; //The new Workspace security access to add.
|
|
100
|
+
|
|
101
|
+
const { status, data } = await apiInstance.createWorkspaceAccessControl(
|
|
102
|
+
organizationId,
|
|
103
|
+
workspaceId,
|
|
104
|
+
workspaceAccessControl
|
|
105
|
+
);
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Parameters
|
|
109
|
+
|
|
110
|
+
|Name | Type | Description | Notes|
|
|
111
|
+
|------------- | ------------- | ------------- | -------------|
|
|
112
|
+
| **workspaceAccessControl** | **WorkspaceAccessControl**| The new Workspace security access to add. | |
|
|
113
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
114
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Return type
|
|
118
|
+
|
|
119
|
+
**WorkspaceAccessControl**
|
|
120
|
+
|
|
121
|
+
### Authorization
|
|
122
|
+
|
|
123
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
124
|
+
|
|
125
|
+
### HTTP request headers
|
|
126
|
+
|
|
127
|
+
- **Content-Type**: application/json, application/yaml
|
|
128
|
+
- **Accept**: application/json, application/yaml
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### HTTP response details
|
|
132
|
+
| Status code | Description | Response headers |
|
|
133
|
+
|-------------|-------------|------------------|
|
|
134
|
+
|**201** | The Workspace access | - |
|
|
135
|
+
|**404** | The Workspace specified is unknown or you don\'t have access to it | - |
|
|
136
|
+
|
|
137
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
138
|
+
|
|
139
|
+
# **createWorkspaceFile**
|
|
140
|
+
> WorkspaceFile createWorkspaceFile()
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### Example
|
|
144
|
+
|
|
145
|
+
```typescript
|
|
146
|
+
import {
|
|
147
|
+
WorkspaceApi,
|
|
148
|
+
Configuration
|
|
149
|
+
} from '@cosmotech/api-ts';
|
|
150
|
+
|
|
151
|
+
const configuration = new Configuration();
|
|
152
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
153
|
+
|
|
154
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
155
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
156
|
+
let file: File; //The file to upload (default to undefined)
|
|
157
|
+
let overwrite: boolean; //Whether to overwrite an existing file (optional) (default to false)
|
|
158
|
+
let destination: string; //Destination path. Must end with a \\\'/\\\' if specifying a folder. Note that paths may or may not start with a \\\'/\\\', but they are always treated as relative to the Workspace root location. (optional) (default to undefined)
|
|
159
|
+
|
|
160
|
+
const { status, data } = await apiInstance.createWorkspaceFile(
|
|
161
|
+
organizationId,
|
|
162
|
+
workspaceId,
|
|
163
|
+
file,
|
|
164
|
+
overwrite,
|
|
165
|
+
destination
|
|
166
|
+
);
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Parameters
|
|
170
|
+
|
|
171
|
+
|Name | Type | Description | Notes|
|
|
172
|
+
|------------- | ------------- | ------------- | -------------|
|
|
173
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
174
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
175
|
+
| **file** | [**File**] | The file to upload | defaults to undefined|
|
|
176
|
+
| **overwrite** | [**boolean**] | Whether to overwrite an existing file | (optional) defaults to false|
|
|
177
|
+
| **destination** | [**string**] | Destination path. Must end with a \\\'/\\\' if specifying a folder. Note that paths may or may not start with a \\\'/\\\', but they are always treated as relative to the Workspace root location. | (optional) defaults to undefined|
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Return type
|
|
181
|
+
|
|
182
|
+
**WorkspaceFile**
|
|
183
|
+
|
|
184
|
+
### Authorization
|
|
185
|
+
|
|
186
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
187
|
+
|
|
188
|
+
### HTTP request headers
|
|
189
|
+
|
|
190
|
+
- **Content-Type**: multipart/form-data
|
|
191
|
+
- **Accept**: application/json, application/yaml
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
### HTTP response details
|
|
195
|
+
| Status code | Description | Response headers |
|
|
196
|
+
|-------------|-------------|------------------|
|
|
197
|
+
|**201** | The file resource details | - |
|
|
198
|
+
|**400** | Bad request | - |
|
|
199
|
+
|
|
200
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
201
|
+
|
|
202
|
+
# **deleteWorkspace**
|
|
203
|
+
> deleteWorkspace()
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Example
|
|
207
|
+
|
|
208
|
+
```typescript
|
|
209
|
+
import {
|
|
210
|
+
WorkspaceApi,
|
|
211
|
+
Configuration
|
|
212
|
+
} from '@cosmotech/api-ts';
|
|
213
|
+
|
|
214
|
+
const configuration = new Configuration();
|
|
215
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
216
|
+
|
|
217
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
218
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
219
|
+
|
|
220
|
+
const { status, data } = await apiInstance.deleteWorkspace(
|
|
221
|
+
organizationId,
|
|
222
|
+
workspaceId
|
|
223
|
+
);
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Parameters
|
|
227
|
+
|
|
228
|
+
|Name | Type | Description | Notes|
|
|
229
|
+
|------------- | ------------- | ------------- | -------------|
|
|
230
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
231
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Return type
|
|
235
|
+
|
|
236
|
+
void (empty response body)
|
|
237
|
+
|
|
238
|
+
### Authorization
|
|
239
|
+
|
|
240
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
241
|
+
|
|
242
|
+
### HTTP request headers
|
|
243
|
+
|
|
244
|
+
- **Content-Type**: Not defined
|
|
245
|
+
- **Accept**: Not defined
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
### HTTP response details
|
|
249
|
+
| Status code | Description | Response headers |
|
|
250
|
+
|-------------|-------------|------------------|
|
|
251
|
+
|**204** | The workspace details | - |
|
|
252
|
+
|**400** | Bad request | - |
|
|
253
|
+
|**404** | The Workspace specified is unknown or you don\'t have access to it | - |
|
|
254
|
+
|
|
255
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
256
|
+
|
|
257
|
+
# **deleteWorkspaceAccessControl**
|
|
258
|
+
> deleteWorkspaceAccessControl()
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
### Example
|
|
262
|
+
|
|
263
|
+
```typescript
|
|
264
|
+
import {
|
|
265
|
+
WorkspaceApi,
|
|
266
|
+
Configuration
|
|
267
|
+
} from '@cosmotech/api-ts';
|
|
268
|
+
|
|
269
|
+
const configuration = new Configuration();
|
|
270
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
271
|
+
|
|
272
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
273
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
274
|
+
let identityId: string; //The User identifier (default to undefined)
|
|
275
|
+
|
|
276
|
+
const { status, data } = await apiInstance.deleteWorkspaceAccessControl(
|
|
277
|
+
organizationId,
|
|
278
|
+
workspaceId,
|
|
279
|
+
identityId
|
|
280
|
+
);
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
### Parameters
|
|
284
|
+
|
|
285
|
+
|Name | Type | Description | Notes|
|
|
286
|
+
|------------- | ------------- | ------------- | -------------|
|
|
287
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
288
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
289
|
+
| **identityId** | [**string**] | The User identifier | defaults to undefined|
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
### Return type
|
|
293
|
+
|
|
294
|
+
void (empty response body)
|
|
295
|
+
|
|
296
|
+
### Authorization
|
|
297
|
+
|
|
298
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
299
|
+
|
|
300
|
+
### HTTP request headers
|
|
301
|
+
|
|
302
|
+
- **Content-Type**: Not defined
|
|
303
|
+
- **Accept**: Not defined
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
### HTTP response details
|
|
307
|
+
| Status code | Description | Response headers |
|
|
308
|
+
|-------------|-------------|------------------|
|
|
309
|
+
|**204** | Request succeeded | - |
|
|
310
|
+
|**404** | The Workspace or the user specified is unknown or you don\'t have access to them | - |
|
|
311
|
+
|
|
312
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
313
|
+
|
|
314
|
+
# **deleteWorkspaceFile**
|
|
315
|
+
> deleteWorkspaceFile()
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
### Example
|
|
319
|
+
|
|
320
|
+
```typescript
|
|
321
|
+
import {
|
|
322
|
+
WorkspaceApi,
|
|
323
|
+
Configuration
|
|
324
|
+
} from '@cosmotech/api-ts';
|
|
325
|
+
|
|
326
|
+
const configuration = new Configuration();
|
|
327
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
328
|
+
|
|
329
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
330
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
331
|
+
let fileName: string; //The file name (default to undefined)
|
|
332
|
+
|
|
333
|
+
const { status, data } = await apiInstance.deleteWorkspaceFile(
|
|
334
|
+
organizationId,
|
|
335
|
+
workspaceId,
|
|
336
|
+
fileName
|
|
337
|
+
);
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Parameters
|
|
341
|
+
|
|
342
|
+
|Name | Type | Description | Notes|
|
|
343
|
+
|------------- | ------------- | ------------- | -------------|
|
|
344
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
345
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
346
|
+
| **fileName** | [**string**] | The file name | defaults to undefined|
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
### Return type
|
|
350
|
+
|
|
351
|
+
void (empty response body)
|
|
352
|
+
|
|
353
|
+
### Authorization
|
|
354
|
+
|
|
355
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
356
|
+
|
|
357
|
+
### HTTP request headers
|
|
358
|
+
|
|
359
|
+
- **Content-Type**: Not defined
|
|
360
|
+
- **Accept**: Not defined
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
### HTTP response details
|
|
364
|
+
| Status code | Description | Response headers |
|
|
365
|
+
|-------------|-------------|------------------|
|
|
366
|
+
|**204** | Request succeeded | - |
|
|
367
|
+
|**404** | The Workspace or the file specified is unknown or you don\'t have access to them | - |
|
|
368
|
+
|
|
369
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
370
|
+
|
|
371
|
+
# **deleteWorkspaceFiles**
|
|
372
|
+
> deleteWorkspaceFiles()
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
### Example
|
|
376
|
+
|
|
377
|
+
```typescript
|
|
378
|
+
import {
|
|
379
|
+
WorkspaceApi,
|
|
380
|
+
Configuration
|
|
381
|
+
} from '@cosmotech/api-ts';
|
|
382
|
+
|
|
383
|
+
const configuration = new Configuration();
|
|
384
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
385
|
+
|
|
386
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
387
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
388
|
+
|
|
389
|
+
const { status, data } = await apiInstance.deleteWorkspaceFiles(
|
|
390
|
+
organizationId,
|
|
391
|
+
workspaceId
|
|
392
|
+
);
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
### Parameters
|
|
396
|
+
|
|
397
|
+
|Name | Type | Description | Notes|
|
|
398
|
+
|------------- | ------------- | ------------- | -------------|
|
|
399
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
400
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
### Return type
|
|
404
|
+
|
|
405
|
+
void (empty response body)
|
|
406
|
+
|
|
407
|
+
### Authorization
|
|
408
|
+
|
|
409
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
410
|
+
|
|
411
|
+
### HTTP request headers
|
|
412
|
+
|
|
413
|
+
- **Content-Type**: Not defined
|
|
414
|
+
- **Accept**: Not defined
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
### HTTP response details
|
|
418
|
+
| Status code | Description | Response headers |
|
|
419
|
+
|-------------|-------------|------------------|
|
|
420
|
+
|**204** | Request succeeded | - |
|
|
421
|
+
|**404** | The Workspace specified is unknown or you don\'t have access to them | - |
|
|
422
|
+
|
|
423
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
424
|
+
|
|
425
|
+
# **getWorkspace**
|
|
426
|
+
> Workspace getWorkspace()
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
### Example
|
|
430
|
+
|
|
431
|
+
```typescript
|
|
432
|
+
import {
|
|
433
|
+
WorkspaceApi,
|
|
434
|
+
Configuration
|
|
435
|
+
} from '@cosmotech/api-ts';
|
|
436
|
+
|
|
437
|
+
const configuration = new Configuration();
|
|
438
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
439
|
+
|
|
440
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
441
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
442
|
+
|
|
443
|
+
const { status, data } = await apiInstance.getWorkspace(
|
|
444
|
+
organizationId,
|
|
445
|
+
workspaceId
|
|
446
|
+
);
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
### Parameters
|
|
450
|
+
|
|
451
|
+
|Name | Type | Description | Notes|
|
|
452
|
+
|------------- | ------------- | ------------- | -------------|
|
|
453
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
454
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
### Return type
|
|
458
|
+
|
|
459
|
+
**Workspace**
|
|
460
|
+
|
|
461
|
+
### Authorization
|
|
462
|
+
|
|
463
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
464
|
+
|
|
465
|
+
### HTTP request headers
|
|
466
|
+
|
|
467
|
+
- **Content-Type**: Not defined
|
|
468
|
+
- **Accept**: application/json, application/yaml
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
### HTTP response details
|
|
472
|
+
| Status code | Description | Response headers |
|
|
473
|
+
|-------------|-------------|------------------|
|
|
474
|
+
|**200** | The Workspace details | - |
|
|
475
|
+
|**404** | The Workspace specified is unknown or you don\'t have access to it | - |
|
|
476
|
+
|
|
477
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
478
|
+
|
|
479
|
+
# **getWorkspaceAccessControl**
|
|
480
|
+
> WorkspaceAccessControl getWorkspaceAccessControl()
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
### Example
|
|
484
|
+
|
|
485
|
+
```typescript
|
|
486
|
+
import {
|
|
487
|
+
WorkspaceApi,
|
|
488
|
+
Configuration
|
|
489
|
+
} from '@cosmotech/api-ts';
|
|
490
|
+
|
|
491
|
+
const configuration = new Configuration();
|
|
492
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
493
|
+
|
|
494
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
495
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
496
|
+
let identityId: string; //The User identifier (default to undefined)
|
|
497
|
+
|
|
498
|
+
const { status, data } = await apiInstance.getWorkspaceAccessControl(
|
|
499
|
+
organizationId,
|
|
500
|
+
workspaceId,
|
|
501
|
+
identityId
|
|
502
|
+
);
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
### Parameters
|
|
506
|
+
|
|
507
|
+
|Name | Type | Description | Notes|
|
|
508
|
+
|------------- | ------------- | ------------- | -------------|
|
|
509
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
510
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
511
|
+
| **identityId** | [**string**] | The User identifier | defaults to undefined|
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
### Return type
|
|
515
|
+
|
|
516
|
+
**WorkspaceAccessControl**
|
|
517
|
+
|
|
518
|
+
### Authorization
|
|
519
|
+
|
|
520
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
521
|
+
|
|
522
|
+
### HTTP request headers
|
|
523
|
+
|
|
524
|
+
- **Content-Type**: Not defined
|
|
525
|
+
- **Accept**: application/json, application/yaml
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
### HTTP response details
|
|
529
|
+
| Status code | Description | Response headers |
|
|
530
|
+
|-------------|-------------|------------------|
|
|
531
|
+
|**200** | The Workspace access | - |
|
|
532
|
+
|**404** | The Workspace or user specified is unknown or you don\'t have access to it | - |
|
|
533
|
+
|
|
534
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
535
|
+
|
|
536
|
+
# **getWorkspaceFile**
|
|
537
|
+
> File getWorkspaceFile()
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
### Example
|
|
541
|
+
|
|
542
|
+
```typescript
|
|
543
|
+
import {
|
|
544
|
+
WorkspaceApi,
|
|
545
|
+
Configuration
|
|
546
|
+
} from '@cosmotech/api-ts';
|
|
547
|
+
|
|
548
|
+
const configuration = new Configuration();
|
|
549
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
550
|
+
|
|
551
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
552
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
553
|
+
let fileName: string; //The file name (default to undefined)
|
|
554
|
+
|
|
555
|
+
const { status, data } = await apiInstance.getWorkspaceFile(
|
|
556
|
+
organizationId,
|
|
557
|
+
workspaceId,
|
|
558
|
+
fileName
|
|
559
|
+
);
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
### Parameters
|
|
563
|
+
|
|
564
|
+
|Name | Type | Description | Notes|
|
|
565
|
+
|------------- | ------------- | ------------- | -------------|
|
|
566
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
567
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
568
|
+
| **fileName** | [**string**] | The file name | defaults to undefined|
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
### Return type
|
|
572
|
+
|
|
573
|
+
**File**
|
|
574
|
+
|
|
575
|
+
### Authorization
|
|
576
|
+
|
|
577
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
578
|
+
|
|
579
|
+
### HTTP request headers
|
|
580
|
+
|
|
581
|
+
- **Content-Type**: Not defined
|
|
582
|
+
- **Accept**: application/octet-stream
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
### HTTP response details
|
|
586
|
+
| Status code | Description | Response headers |
|
|
587
|
+
|-------------|-------------|------------------|
|
|
588
|
+
|**200** | The workspace file as a resource | - |
|
|
589
|
+
|**404** | The Workspace file specified is unknown or you don\'t have access to it | - |
|
|
590
|
+
|
|
591
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
592
|
+
|
|
593
|
+
# **getWorkspaceSecurity**
|
|
594
|
+
> WorkspaceSecurity getWorkspaceSecurity()
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
### Example
|
|
598
|
+
|
|
599
|
+
```typescript
|
|
600
|
+
import {
|
|
601
|
+
WorkspaceApi,
|
|
602
|
+
Configuration
|
|
603
|
+
} from '@cosmotech/api-ts';
|
|
604
|
+
|
|
605
|
+
const configuration = new Configuration();
|
|
606
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
607
|
+
|
|
608
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
609
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
610
|
+
|
|
611
|
+
const { status, data } = await apiInstance.getWorkspaceSecurity(
|
|
612
|
+
organizationId,
|
|
613
|
+
workspaceId
|
|
614
|
+
);
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
### Parameters
|
|
618
|
+
|
|
619
|
+
|Name | Type | Description | Notes|
|
|
620
|
+
|------------- | ------------- | ------------- | -------------|
|
|
621
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
622
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
### Return type
|
|
626
|
+
|
|
627
|
+
**WorkspaceSecurity**
|
|
628
|
+
|
|
629
|
+
### Authorization
|
|
630
|
+
|
|
631
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
632
|
+
|
|
633
|
+
### HTTP request headers
|
|
634
|
+
|
|
635
|
+
- **Content-Type**: Not defined
|
|
636
|
+
- **Accept**: application/json, application/yaml
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
### HTTP response details
|
|
640
|
+
| Status code | Description | Response headers |
|
|
641
|
+
|-------------|-------------|------------------|
|
|
642
|
+
|**200** | The Workspace security | - |
|
|
643
|
+
|**404** | The Workspace specified is unknown or you don\'t have access to it | - |
|
|
644
|
+
|
|
645
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
646
|
+
|
|
647
|
+
# **listWorkspaceFiles**
|
|
648
|
+
> Array<WorkspaceFile> listWorkspaceFiles()
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
### Example
|
|
652
|
+
|
|
653
|
+
```typescript
|
|
654
|
+
import {
|
|
655
|
+
WorkspaceApi,
|
|
656
|
+
Configuration
|
|
657
|
+
} from '@cosmotech/api-ts';
|
|
658
|
+
|
|
659
|
+
const configuration = new Configuration();
|
|
660
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
661
|
+
|
|
662
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
663
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
664
|
+
|
|
665
|
+
const { status, data } = await apiInstance.listWorkspaceFiles(
|
|
666
|
+
organizationId,
|
|
667
|
+
workspaceId
|
|
668
|
+
);
|
|
669
|
+
```
|
|
670
|
+
|
|
671
|
+
### Parameters
|
|
672
|
+
|
|
673
|
+
|Name | Type | Description | Notes|
|
|
674
|
+
|------------- | ------------- | ------------- | -------------|
|
|
675
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
676
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
### Return type
|
|
680
|
+
|
|
681
|
+
**Array<WorkspaceFile>**
|
|
682
|
+
|
|
683
|
+
### Authorization
|
|
684
|
+
|
|
685
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
686
|
+
|
|
687
|
+
### HTTP request headers
|
|
688
|
+
|
|
689
|
+
- **Content-Type**: Not defined
|
|
690
|
+
- **Accept**: application/json, application/yaml
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
### HTTP response details
|
|
694
|
+
| Status code | Description | Response headers |
|
|
695
|
+
|-------------|-------------|------------------|
|
|
696
|
+
|**200** | The workspace files | - |
|
|
697
|
+
|**404** | The Workspace specified is unknown or you don\'t have access to it | - |
|
|
698
|
+
|
|
699
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
700
|
+
|
|
701
|
+
# **listWorkspaceRolePermissions**
|
|
702
|
+
> Array<string> listWorkspaceRolePermissions()
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
### Example
|
|
706
|
+
|
|
707
|
+
```typescript
|
|
708
|
+
import {
|
|
709
|
+
WorkspaceApi,
|
|
710
|
+
Configuration
|
|
711
|
+
} from '@cosmotech/api-ts';
|
|
712
|
+
|
|
713
|
+
const configuration = new Configuration();
|
|
714
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
715
|
+
|
|
716
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
717
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
718
|
+
let role: string; //The Role (default to undefined)
|
|
719
|
+
|
|
720
|
+
const { status, data } = await apiInstance.listWorkspaceRolePermissions(
|
|
721
|
+
organizationId,
|
|
722
|
+
workspaceId,
|
|
723
|
+
role
|
|
724
|
+
);
|
|
725
|
+
```
|
|
726
|
+
|
|
727
|
+
### Parameters
|
|
728
|
+
|
|
729
|
+
|Name | Type | Description | Notes|
|
|
730
|
+
|------------- | ------------- | ------------- | -------------|
|
|
731
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
732
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
733
|
+
| **role** | [**string**] | The Role | defaults to undefined|
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
### Return type
|
|
737
|
+
|
|
738
|
+
**Array<string>**
|
|
739
|
+
|
|
740
|
+
### Authorization
|
|
741
|
+
|
|
742
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
743
|
+
|
|
744
|
+
### HTTP request headers
|
|
745
|
+
|
|
746
|
+
- **Content-Type**: Not defined
|
|
747
|
+
- **Accept**: application/json, application/yaml
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
### HTTP response details
|
|
751
|
+
| Status code | Description | Response headers |
|
|
752
|
+
|-------------|-------------|------------------|
|
|
753
|
+
|**200** | The Workspace security permission list | - |
|
|
754
|
+
|
|
755
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
756
|
+
|
|
757
|
+
# **listWorkspaceSecurityUsers**
|
|
758
|
+
> Array<string> listWorkspaceSecurityUsers()
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
### Example
|
|
762
|
+
|
|
763
|
+
```typescript
|
|
764
|
+
import {
|
|
765
|
+
WorkspaceApi,
|
|
766
|
+
Configuration
|
|
767
|
+
} from '@cosmotech/api-ts';
|
|
768
|
+
|
|
769
|
+
const configuration = new Configuration();
|
|
770
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
771
|
+
|
|
772
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
773
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
774
|
+
|
|
775
|
+
const { status, data } = await apiInstance.listWorkspaceSecurityUsers(
|
|
776
|
+
organizationId,
|
|
777
|
+
workspaceId
|
|
778
|
+
);
|
|
779
|
+
```
|
|
780
|
+
|
|
781
|
+
### Parameters
|
|
782
|
+
|
|
783
|
+
|Name | Type | Description | Notes|
|
|
784
|
+
|------------- | ------------- | ------------- | -------------|
|
|
785
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
786
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
### Return type
|
|
790
|
+
|
|
791
|
+
**Array<string>**
|
|
792
|
+
|
|
793
|
+
### Authorization
|
|
794
|
+
|
|
795
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
796
|
+
|
|
797
|
+
### HTTP request headers
|
|
798
|
+
|
|
799
|
+
- **Content-Type**: Not defined
|
|
800
|
+
- **Accept**: application/json, application/yaml
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
### HTTP response details
|
|
804
|
+
| Status code | Description | Response headers |
|
|
805
|
+
|-------------|-------------|------------------|
|
|
806
|
+
|**200** | The Workspace security users list | - |
|
|
807
|
+
|**404** | The Workspace or the User specified is unknown or you don\'t have access to them | - |
|
|
808
|
+
|
|
809
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
810
|
+
|
|
811
|
+
# **listWorkspaces**
|
|
812
|
+
> Array<Workspace> listWorkspaces()
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
### Example
|
|
816
|
+
|
|
817
|
+
```typescript
|
|
818
|
+
import {
|
|
819
|
+
WorkspaceApi,
|
|
820
|
+
Configuration
|
|
821
|
+
} from '@cosmotech/api-ts';
|
|
822
|
+
|
|
823
|
+
const configuration = new Configuration();
|
|
824
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
825
|
+
|
|
826
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
827
|
+
let page: number; //page number to query (first page is at index 0) (optional) (default to undefined)
|
|
828
|
+
let size: number; //Amount of result by page (optional) (default to undefined)
|
|
829
|
+
|
|
830
|
+
const { status, data } = await apiInstance.listWorkspaces(
|
|
831
|
+
organizationId,
|
|
832
|
+
page,
|
|
833
|
+
size
|
|
834
|
+
);
|
|
835
|
+
```
|
|
836
|
+
|
|
837
|
+
### Parameters
|
|
838
|
+
|
|
839
|
+
|Name | Type | Description | Notes|
|
|
840
|
+
|------------- | ------------- | ------------- | -------------|
|
|
841
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
842
|
+
| **page** | [**number**] | page number to query (first page is at index 0) | (optional) defaults to undefined|
|
|
843
|
+
| **size** | [**number**] | Amount of result by page | (optional) defaults to undefined|
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
### Return type
|
|
847
|
+
|
|
848
|
+
**Array<Workspace>**
|
|
849
|
+
|
|
850
|
+
### Authorization
|
|
851
|
+
|
|
852
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
853
|
+
|
|
854
|
+
### HTTP request headers
|
|
855
|
+
|
|
856
|
+
- **Content-Type**: Not defined
|
|
857
|
+
- **Accept**: application/json, application/yaml
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
### HTTP response details
|
|
861
|
+
| Status code | Description | Response headers |
|
|
862
|
+
|-------------|-------------|------------------|
|
|
863
|
+
|**200** | The workspace details | - |
|
|
864
|
+
|
|
865
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
866
|
+
|
|
867
|
+
# **updateWorkspace**
|
|
868
|
+
> Workspace updateWorkspace(workspaceUpdateRequest)
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
### Example
|
|
872
|
+
|
|
873
|
+
```typescript
|
|
874
|
+
import {
|
|
875
|
+
WorkspaceApi,
|
|
876
|
+
Configuration,
|
|
877
|
+
WorkspaceUpdateRequest
|
|
878
|
+
} from '@cosmotech/api-ts';
|
|
879
|
+
|
|
880
|
+
const configuration = new Configuration();
|
|
881
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
882
|
+
|
|
883
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
884
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
885
|
+
let workspaceUpdateRequest: WorkspaceUpdateRequest; //The new Workspace details. This endpoint can\'t be used to update security
|
|
886
|
+
|
|
887
|
+
const { status, data } = await apiInstance.updateWorkspace(
|
|
888
|
+
organizationId,
|
|
889
|
+
workspaceId,
|
|
890
|
+
workspaceUpdateRequest
|
|
891
|
+
);
|
|
892
|
+
```
|
|
893
|
+
|
|
894
|
+
### Parameters
|
|
895
|
+
|
|
896
|
+
|Name | Type | Description | Notes|
|
|
897
|
+
|------------- | ------------- | ------------- | -------------|
|
|
898
|
+
| **workspaceUpdateRequest** | **WorkspaceUpdateRequest**| The new Workspace details. This endpoint can\'t be used to update security | |
|
|
899
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
900
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
### Return type
|
|
904
|
+
|
|
905
|
+
**Workspace**
|
|
906
|
+
|
|
907
|
+
### Authorization
|
|
908
|
+
|
|
909
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
910
|
+
|
|
911
|
+
### HTTP request headers
|
|
912
|
+
|
|
913
|
+
- **Content-Type**: application/json, application/yaml
|
|
914
|
+
- **Accept**: application/json, application/yaml
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
### HTTP response details
|
|
918
|
+
| Status code | Description | Response headers |
|
|
919
|
+
|-------------|-------------|------------------|
|
|
920
|
+
|**200** | The workspace details | - |
|
|
921
|
+
|**400** | Bad request | - |
|
|
922
|
+
|**404** | The Workspace specified is unknown or you don\'t have access to it | - |
|
|
923
|
+
|
|
924
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
925
|
+
|
|
926
|
+
# **updateWorkspaceAccessControl**
|
|
927
|
+
> WorkspaceAccessControl updateWorkspaceAccessControl(workspaceRole)
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
### Example
|
|
931
|
+
|
|
932
|
+
```typescript
|
|
933
|
+
import {
|
|
934
|
+
WorkspaceApi,
|
|
935
|
+
Configuration,
|
|
936
|
+
WorkspaceRole
|
|
937
|
+
} from '@cosmotech/api-ts';
|
|
938
|
+
|
|
939
|
+
const configuration = new Configuration();
|
|
940
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
941
|
+
|
|
942
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
943
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
944
|
+
let identityId: string; //The User identifier (default to undefined)
|
|
945
|
+
let workspaceRole: WorkspaceRole; //The new Workspace Access Control
|
|
946
|
+
|
|
947
|
+
const { status, data } = await apiInstance.updateWorkspaceAccessControl(
|
|
948
|
+
organizationId,
|
|
949
|
+
workspaceId,
|
|
950
|
+
identityId,
|
|
951
|
+
workspaceRole
|
|
952
|
+
);
|
|
953
|
+
```
|
|
954
|
+
|
|
955
|
+
### Parameters
|
|
956
|
+
|
|
957
|
+
|Name | Type | Description | Notes|
|
|
958
|
+
|------------- | ------------- | ------------- | -------------|
|
|
959
|
+
| **workspaceRole** | **WorkspaceRole**| The new Workspace Access Control | |
|
|
960
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
961
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
962
|
+
| **identityId** | [**string**] | The User identifier | defaults to undefined|
|
|
963
|
+
|
|
964
|
+
|
|
965
|
+
### Return type
|
|
966
|
+
|
|
967
|
+
**WorkspaceAccessControl**
|
|
968
|
+
|
|
969
|
+
### Authorization
|
|
970
|
+
|
|
971
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
972
|
+
|
|
973
|
+
### HTTP request headers
|
|
974
|
+
|
|
975
|
+
- **Content-Type**: application/json, application/yaml
|
|
976
|
+
- **Accept**: application/json, application/yaml
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
### HTTP response details
|
|
980
|
+
| Status code | Description | Response headers |
|
|
981
|
+
|-------------|-------------|------------------|
|
|
982
|
+
|**200** | The Workspace access | - |
|
|
983
|
+
|**404** | The Workspace specified is unknown or you don\'t have access to it | - |
|
|
984
|
+
|
|
985
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
986
|
+
|
|
987
|
+
# **updateWorkspaceDefaultSecurity**
|
|
988
|
+
> WorkspaceSecurity updateWorkspaceDefaultSecurity(workspaceRole)
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
### Example
|
|
992
|
+
|
|
993
|
+
```typescript
|
|
994
|
+
import {
|
|
995
|
+
WorkspaceApi,
|
|
996
|
+
Configuration,
|
|
997
|
+
WorkspaceRole
|
|
998
|
+
} from '@cosmotech/api-ts';
|
|
999
|
+
|
|
1000
|
+
const configuration = new Configuration();
|
|
1001
|
+
const apiInstance = new WorkspaceApi(configuration);
|
|
1002
|
+
|
|
1003
|
+
let organizationId: string; //The Organization identifier (default to undefined)
|
|
1004
|
+
let workspaceId: string; //The Workspace identifier (default to undefined)
|
|
1005
|
+
let workspaceRole: WorkspaceRole; //This change the workspace default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the workspace.
|
|
1006
|
+
|
|
1007
|
+
const { status, data } = await apiInstance.updateWorkspaceDefaultSecurity(
|
|
1008
|
+
organizationId,
|
|
1009
|
+
workspaceId,
|
|
1010
|
+
workspaceRole
|
|
1011
|
+
);
|
|
1012
|
+
```
|
|
1013
|
+
|
|
1014
|
+
### Parameters
|
|
1015
|
+
|
|
1016
|
+
|Name | Type | Description | Notes|
|
|
1017
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1018
|
+
| **workspaceRole** | **WorkspaceRole**| This change the workspace default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the workspace. | |
|
|
1019
|
+
| **organizationId** | [**string**] | The Organization identifier | defaults to undefined|
|
|
1020
|
+
| **workspaceId** | [**string**] | The Workspace identifier | defaults to undefined|
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
### Return type
|
|
1024
|
+
|
|
1025
|
+
**WorkspaceSecurity**
|
|
1026
|
+
|
|
1027
|
+
### Authorization
|
|
1028
|
+
|
|
1029
|
+
[oAuth2AuthCode](../README.md#oAuth2AuthCode)
|
|
1030
|
+
|
|
1031
|
+
### HTTP request headers
|
|
1032
|
+
|
|
1033
|
+
- **Content-Type**: application/json, application/yaml
|
|
1034
|
+
- **Accept**: application/json, application/yaml
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
### HTTP response details
|
|
1038
|
+
| Status code | Description | Response headers |
|
|
1039
|
+
|-------------|-------------|------------------|
|
|
1040
|
+
|**201** | The Workspace default visibility | - |
|
|
1041
|
+
|**404** | The Workspace specified is unknown or you don\'t have access to it | - |
|
|
1042
|
+
|
|
1043
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1044
|
+
|