@cosmotech/api-ts 3.3.4 → 4.2.5-onprem

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