@fbrc/sdk 0.0.9 → 0.0.11

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 (59) hide show
  1. package/dist/apis/DefaultApi.d.ts +89 -0
  2. package/dist/apis/DefaultApi.js +249 -0
  3. package/dist/apis/ResourcesApi.js +2 -2
  4. package/dist/apis/SubscriptionApi.js +1 -1
  5. package/dist/apis/UserProfileApi.js +1 -1
  6. package/dist/apis/WorkspaceApi.d.ts +2 -2
  7. package/dist/apis/WorkspaceApi.js +9 -9
  8. package/dist/esm/apis/DefaultApi.d.ts +89 -0
  9. package/dist/esm/apis/DefaultApi.js +245 -0
  10. package/dist/esm/apis/ResourcesApi.js +2 -2
  11. package/dist/esm/apis/SubscriptionApi.js +1 -1
  12. package/dist/esm/apis/UserProfileApi.js +1 -1
  13. package/dist/esm/apis/WorkspaceApi.d.ts +2 -2
  14. package/dist/esm/apis/WorkspaceApi.js +9 -9
  15. package/dist/esm/models/DeleteResourcesRequest.d.ts +38 -0
  16. package/dist/esm/models/DeleteResourcesRequest.js +45 -0
  17. package/dist/esm/models/DeleteSpace404Response.d.ts +52 -0
  18. package/dist/esm/models/DeleteSpace404Response.js +59 -0
  19. package/dist/esm/models/MarketingCampaignSource.d.ts +69 -0
  20. package/dist/esm/models/MarketingCampaignSource.js +68 -0
  21. package/dist/esm/models/UtmSources.d.ts +24 -0
  22. package/dist/esm/models/UtmSources.js +42 -0
  23. package/dist/esm/models/V2WorkspaceDeletionConfirmationPostRequest.d.ts +32 -0
  24. package/dist/esm/models/V2WorkspaceDeletionConfirmationPostRequest.js +43 -0
  25. package/dist/esm/models/V2WorkspaceGet200Response.d.ts +39 -0
  26. package/dist/esm/models/V2WorkspaceGet200Response.js +48 -0
  27. package/dist/esm/models/V2WorkspaceGet200ResponseData.d.ts +33 -0
  28. package/dist/esm/models/V2WorkspaceGet200ResponseData.js +44 -0
  29. package/dist/esm/models/V2WorkspacePatchRequest.d.ts +50 -0
  30. package/dist/esm/models/V2WorkspacePatchRequest.js +47 -0
  31. package/dist/esm/models/V2WorkspacePostRequest.d.ts +64 -0
  32. package/dist/esm/models/V2WorkspacePostRequest.js +53 -0
  33. package/dist/models/DeleteResourcesRequest.d.ts +38 -0
  34. package/dist/models/DeleteResourcesRequest.js +52 -0
  35. package/dist/models/DeleteSpace404Response.d.ts +52 -0
  36. package/dist/models/DeleteSpace404Response.js +67 -0
  37. package/dist/models/MarketingCampaignSource.d.ts +69 -0
  38. package/dist/models/MarketingCampaignSource.js +75 -0
  39. package/dist/models/UtmSources.d.ts +24 -0
  40. package/dist/models/UtmSources.js +50 -0
  41. package/dist/models/V2WorkspaceDeletionConfirmationPostRequest.d.ts +32 -0
  42. package/dist/models/V2WorkspaceDeletionConfirmationPostRequest.js +50 -0
  43. package/dist/models/V2WorkspaceGet200Response.d.ts +39 -0
  44. package/dist/models/V2WorkspaceGet200Response.js +55 -0
  45. package/dist/models/V2WorkspaceGet200ResponseData.d.ts +33 -0
  46. package/dist/models/V2WorkspaceGet200ResponseData.js +51 -0
  47. package/dist/models/V2WorkspacePatchRequest.d.ts +50 -0
  48. package/dist/models/V2WorkspacePatchRequest.js +54 -0
  49. package/dist/models/V2WorkspacePostRequest.d.ts +64 -0
  50. package/dist/models/V2WorkspacePostRequest.js +60 -0
  51. package/dist/models/V2WorkspacesPatchRequest.d.ts +50 -0
  52. package/dist/models/V2WorkspacesPatchRequest.js +72 -0
  53. package/dist/models/V2WorkspacesPostRequest.d.ts +64 -0
  54. package/dist/models/V2WorkspacesPostRequest.js +82 -0
  55. package/package.json +1 -1
  56. package/src/apis/ResourcesApi.ts +2 -2
  57. package/src/apis/SubscriptionApi.ts +1 -1
  58. package/src/apis/UserProfileApi.ts +1 -1
  59. package/src/apis/WorkspaceApi.ts +9 -9
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Fabric API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { AcceptWorkspaceRemovalRequest, CreateWorkspaceRequest, ListWorkspaces200Response, PatchWorkspaceRequest, Workspace } from '../models/index';
14
+ export type AcceptWorkspaceRemovalOperationRequest = Omit<AcceptWorkspaceRemovalRequest & {
15
+ workspaceId?: string;
16
+ }, 'workspaceId'>;
17
+ export type CreateWorkspaceOperationRequest = Omit<CreateWorkspaceRequest & {
18
+ workspaceId?: string;
19
+ }, 'workspaceId'>;
20
+ export type CurrentWorkspaceRequest = Omit<{
21
+ workspaceId?: string;
22
+ }, 'workspaceId'>;
23
+ export type ListWorkspacesRequest = Omit<{
24
+ workspaceId?: string;
25
+ limit?: number;
26
+ offset?: number | null;
27
+ search?: string;
28
+ parentWorkspaceId?: string;
29
+ }, 'workspaceId'>;
30
+ export type PatchWorkspaceOperationRequest = Omit<PatchWorkspaceRequest & {
31
+ workspaceId?: string;
32
+ }, 'workspaceId'>;
33
+ export type RemoveWorkspaceRequest = Omit<{
34
+ workspaceId?: string;
35
+ force?: boolean | null;
36
+ }, 'workspaceId'>;
37
+ /**
38
+ *
39
+ */
40
+ export declare class DefaultApi extends runtime.BaseAPI {
41
+ /**
42
+ * Delete workspace
43
+ */
44
+ acceptRemovalRaw(requestParameters: AcceptWorkspaceRemovalOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
45
+ /**
46
+ * Delete workspace
47
+ */
48
+ acceptRemoval(requestParameters: AcceptWorkspaceRemovalOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
49
+ /**
50
+ * Create a new team workspace
51
+ */
52
+ createRaw(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
53
+ /**
54
+ * Create a new team workspace
55
+ */
56
+ create(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
57
+ /**
58
+ * Currently selected workspace
59
+ */
60
+ currentRaw(requestParameters?: CurrentWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
61
+ /**
62
+ * Currently selected workspace
63
+ */
64
+ current(requestParameters?: CurrentWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
65
+ /**
66
+ * Workspaces I have access to
67
+ */
68
+ listRaw(requestParameters?: ListWorkspacesRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaces200Response>>;
69
+ /**
70
+ * Workspaces I have access to
71
+ */
72
+ list(requestParameters?: ListWorkspacesRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<ListWorkspaces200Response>;
73
+ /**
74
+ * Update workspace
75
+ */
76
+ patchRaw(requestParameters: PatchWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
77
+ /**
78
+ * Update workspace
79
+ */
80
+ patch(requestParameters: PatchWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
81
+ /**
82
+ * Accept workspace deletion request
83
+ */
84
+ removeRaw(requestParameters?: RemoveWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
85
+ /**
86
+ * Accept workspace deletion request
87
+ */
88
+ remove(requestParameters?: RemoveWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
89
+ }
@@ -0,0 +1,249 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fabric API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.DefaultApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class DefaultApi extends runtime.BaseAPI {
32
+ /**
33
+ * Delete workspace
34
+ */
35
+ acceptRemovalRaw(requestParameters, initOverrides) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ headerParameters['Content-Type'] = 'application/json';
40
+ if (this.configuration && this.configuration.accessToken) {
41
+ // oauth required
42
+ headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
43
+ }
44
+ if (this.configuration && this.configuration.apiKey) {
45
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
46
+ }
47
+ let urlPath = `/v2/workspace/deletion-confirmation`;
48
+ const response = yield this.request({
49
+ path: urlPath,
50
+ method: 'POST',
51
+ headers: headerParameters,
52
+ query: queryParameters,
53
+ body: (0, index_1.AcceptWorkspaceRemovalRequestToJSON)(requestParameters),
54
+ }, initOverrides);
55
+ return new runtime.VoidApiResponse(response);
56
+ });
57
+ }
58
+ /**
59
+ * Delete workspace
60
+ */
61
+ acceptRemoval(requestParameters, initOverrides) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ yield this.acceptRemovalRaw(requestParameters, initOverrides);
64
+ });
65
+ }
66
+ /**
67
+ * Create a new team workspace
68
+ */
69
+ createRaw(requestParameters, initOverrides) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ const queryParameters = {};
72
+ const headerParameters = {};
73
+ headerParameters['Content-Type'] = 'application/json';
74
+ if (this.configuration && this.configuration.accessToken) {
75
+ // oauth required
76
+ headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
77
+ }
78
+ if (this.configuration && this.configuration.apiKey) {
79
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
80
+ }
81
+ let urlPath = `/v2/workspace`;
82
+ const response = yield this.request({
83
+ path: urlPath,
84
+ method: 'POST',
85
+ headers: headerParameters,
86
+ query: queryParameters,
87
+ body: (0, index_1.CreateWorkspaceRequestToJSON)(requestParameters),
88
+ }, initOverrides);
89
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkspaceFromJSON)(jsonValue));
90
+ });
91
+ }
92
+ /**
93
+ * Create a new team workspace
94
+ */
95
+ create(requestParameters, initOverrides) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ const response = yield this.createRaw(requestParameters, initOverrides);
98
+ return yield response.value();
99
+ });
100
+ }
101
+ /**
102
+ * Currently selected workspace
103
+ */
104
+ currentRaw() {
105
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
106
+ const queryParameters = {};
107
+ const headerParameters = {};
108
+ if (this.configuration && this.configuration.accessToken) {
109
+ // oauth required
110
+ headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
111
+ }
112
+ if (this.configuration && this.configuration.apiKey) {
113
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
114
+ }
115
+ let urlPath = `/v2/workspace/me`;
116
+ const response = yield this.request({
117
+ path: urlPath,
118
+ method: 'GET',
119
+ headers: headerParameters,
120
+ query: queryParameters,
121
+ }, initOverrides);
122
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkspaceFromJSON)(jsonValue));
123
+ });
124
+ }
125
+ /**
126
+ * Currently selected workspace
127
+ */
128
+ current() {
129
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
130
+ const response = yield this.currentRaw(requestParameters, initOverrides);
131
+ return yield response.value();
132
+ });
133
+ }
134
+ /**
135
+ * Workspaces I have access to
136
+ */
137
+ listRaw() {
138
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
139
+ const queryParameters = {};
140
+ if (requestParameters['limit'] != null) {
141
+ queryParameters['limit'] = requestParameters['limit'];
142
+ }
143
+ if (requestParameters['offset'] != null) {
144
+ queryParameters['offset'] = requestParameters['offset'];
145
+ }
146
+ if (requestParameters['search'] != null) {
147
+ queryParameters['search'] = requestParameters['search'];
148
+ }
149
+ if (requestParameters['parentWorkspaceId'] != null) {
150
+ queryParameters['parentWorkspaceId'] = requestParameters['parentWorkspaceId'];
151
+ }
152
+ const headerParameters = {};
153
+ if (this.configuration && this.configuration.accessToken) {
154
+ // oauth required
155
+ headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
156
+ }
157
+ if (this.configuration && this.configuration.apiKey) {
158
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
159
+ }
160
+ let urlPath = `/v2/workspace`;
161
+ const response = yield this.request({
162
+ path: urlPath,
163
+ method: 'GET',
164
+ headers: headerParameters,
165
+ query: queryParameters,
166
+ }, initOverrides);
167
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListWorkspaces200ResponseFromJSON)(jsonValue));
168
+ });
169
+ }
170
+ /**
171
+ * Workspaces I have access to
172
+ */
173
+ list() {
174
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
175
+ const response = yield this.listRaw(requestParameters, initOverrides);
176
+ return yield response.value();
177
+ });
178
+ }
179
+ /**
180
+ * Update workspace
181
+ */
182
+ patchRaw(requestParameters, initOverrides) {
183
+ return __awaiter(this, void 0, void 0, function* () {
184
+ const queryParameters = {};
185
+ const headerParameters = {};
186
+ headerParameters['Content-Type'] = 'application/json';
187
+ if (this.configuration && this.configuration.accessToken) {
188
+ // oauth required
189
+ headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
190
+ }
191
+ if (this.configuration && this.configuration.apiKey) {
192
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
193
+ }
194
+ let urlPath = `/v2/workspace`;
195
+ const response = yield this.request({
196
+ path: urlPath,
197
+ method: 'PATCH',
198
+ headers: headerParameters,
199
+ query: queryParameters,
200
+ body: (0, index_1.PatchWorkspaceRequestToJSON)(requestParameters),
201
+ }, initOverrides);
202
+ return new runtime.VoidApiResponse(response);
203
+ });
204
+ }
205
+ /**
206
+ * Update workspace
207
+ */
208
+ patch(requestParameters, initOverrides) {
209
+ return __awaiter(this, void 0, void 0, function* () {
210
+ yield this.patchRaw(requestParameters, initOverrides);
211
+ });
212
+ }
213
+ /**
214
+ * Accept workspace deletion request
215
+ */
216
+ removeRaw() {
217
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
218
+ const queryParameters = {};
219
+ if (requestParameters['force'] != null) {
220
+ queryParameters['force'] = requestParameters['force'];
221
+ }
222
+ const headerParameters = {};
223
+ if (this.configuration && this.configuration.accessToken) {
224
+ // oauth required
225
+ headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
226
+ }
227
+ if (this.configuration && this.configuration.apiKey) {
228
+ headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
229
+ }
230
+ let urlPath = `/v2/workspace`;
231
+ const response = yield this.request({
232
+ path: urlPath,
233
+ method: 'DELETE',
234
+ headers: headerParameters,
235
+ query: queryParameters,
236
+ }, initOverrides);
237
+ return new runtime.VoidApiResponse(response);
238
+ });
239
+ }
240
+ /**
241
+ * Accept workspace deletion request
242
+ */
243
+ remove() {
244
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
245
+ yield this.removeRaw(requestParameters, initOverrides);
246
+ });
247
+ }
248
+ }
249
+ exports.DefaultApi = DefaultApi;
@@ -119,7 +119,7 @@ class ResourcesApi extends runtime.BaseAPI {
119
119
  if (this.configuration && this.configuration.apiKey) {
120
120
  headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
121
121
  }
122
- let urlPath = `/v2/resource/recover`;
122
+ let urlPath = `/v2/resources/recover`;
123
123
  const response = yield this.request({
124
124
  path: urlPath,
125
125
  method: 'POST',
@@ -156,7 +156,7 @@ class ResourcesApi extends runtime.BaseAPI {
156
156
  if (this.configuration && this.configuration.apiKey) {
157
157
  headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
158
158
  }
159
- let urlPath = `/v2/resource/delete`;
159
+ let urlPath = `/v2/resources/delete`;
160
160
  const response = yield this.request({
161
161
  path: urlPath,
162
162
  method: 'POST',
@@ -46,7 +46,7 @@ class SubscriptionApi extends runtime.BaseAPI {
46
46
  if (this.configuration && this.configuration.apiKey) {
47
47
  headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
48
48
  }
49
- let urlPath = `/v2/subscription`;
49
+ let urlPath = `/v2/subscriptions`;
50
50
  const response = yield this.request({
51
51
  path: urlPath,
52
52
  method: 'GET',
@@ -43,7 +43,7 @@ class UserProfileApi extends runtime.BaseAPI {
43
43
  if (this.configuration && this.configuration.apiKey) {
44
44
  headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
45
45
  }
46
- let urlPath = `/v2/user/me`;
46
+ let urlPath = `/v2/users/me`;
47
47
  const response = yield this.request({
48
48
  path: urlPath,
49
49
  method: 'GET',
@@ -57,11 +57,11 @@ export declare class WorkspaceApi extends runtime.BaseAPI {
57
57
  /**
58
58
  * Get workspace
59
59
  */
60
- currentRaw(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
60
+ getRaw(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
61
61
  /**
62
62
  * Get workspace
63
63
  */
64
- current(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
64
+ get(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
65
65
  /**
66
66
  * List workspaces
67
67
  */
@@ -44,7 +44,7 @@ class WorkspaceApi extends runtime.BaseAPI {
44
44
  if (this.configuration && this.configuration.apiKey) {
45
45
  headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
46
46
  }
47
- let urlPath = `/v2/workspace/deletion-confirmation`;
47
+ let urlPath = `/v2/workspaces/deletion-confirmation`;
48
48
  const response = yield this.request({
49
49
  path: urlPath,
50
50
  method: 'POST',
@@ -78,7 +78,7 @@ class WorkspaceApi extends runtime.BaseAPI {
78
78
  if (this.configuration && this.configuration.apiKey) {
79
79
  headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
80
80
  }
81
- let urlPath = `/v2/workspace`;
81
+ let urlPath = `/v2/workspaces`;
82
82
  const response = yield this.request({
83
83
  path: urlPath,
84
84
  method: 'POST',
@@ -101,7 +101,7 @@ class WorkspaceApi extends runtime.BaseAPI {
101
101
  /**
102
102
  * Get workspace
103
103
  */
104
- currentRaw() {
104
+ getRaw() {
105
105
  return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
106
106
  const queryParameters = {};
107
107
  const headerParameters = {};
@@ -112,7 +112,7 @@ class WorkspaceApi extends runtime.BaseAPI {
112
112
  if (this.configuration && this.configuration.apiKey) {
113
113
  headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
114
114
  }
115
- let urlPath = `/v2/workspace/me`;
115
+ let urlPath = `/v2/workspaces/me`;
116
116
  const response = yield this.request({
117
117
  path: urlPath,
118
118
  method: 'GET',
@@ -125,9 +125,9 @@ class WorkspaceApi extends runtime.BaseAPI {
125
125
  /**
126
126
  * Get workspace
127
127
  */
128
- current() {
128
+ get() {
129
129
  return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
130
- const response = yield this.currentRaw(requestParameters, initOverrides);
130
+ const response = yield this.getRaw(requestParameters, initOverrides);
131
131
  return yield response.value();
132
132
  });
133
133
  }
@@ -157,7 +157,7 @@ class WorkspaceApi extends runtime.BaseAPI {
157
157
  if (this.configuration && this.configuration.apiKey) {
158
158
  headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
159
159
  }
160
- let urlPath = `/v2/workspace`;
160
+ let urlPath = `/v2/workspaces`;
161
161
  const response = yield this.request({
162
162
  path: urlPath,
163
163
  method: 'GET',
@@ -191,7 +191,7 @@ class WorkspaceApi extends runtime.BaseAPI {
191
191
  if (this.configuration && this.configuration.apiKey) {
192
192
  headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
193
193
  }
194
- let urlPath = `/v2/workspace`;
194
+ let urlPath = `/v2/workspaces`;
195
195
  const response = yield this.request({
196
196
  path: urlPath,
197
197
  method: 'PATCH',
@@ -227,7 +227,7 @@ class WorkspaceApi extends runtime.BaseAPI {
227
227
  if (this.configuration && this.configuration.apiKey) {
228
228
  headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
229
229
  }
230
- let urlPath = `/v2/workspace`;
230
+ let urlPath = `/v2/workspaces`;
231
231
  const response = yield this.request({
232
232
  path: urlPath,
233
233
  method: 'DELETE',
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Fabric API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { AcceptWorkspaceRemovalRequest, CreateWorkspaceRequest, ListWorkspaces200Response, PatchWorkspaceRequest, Workspace } from '../models/index';
14
+ export type AcceptWorkspaceRemovalOperationRequest = Omit<AcceptWorkspaceRemovalRequest & {
15
+ workspaceId?: string;
16
+ }, 'workspaceId'>;
17
+ export type CreateWorkspaceOperationRequest = Omit<CreateWorkspaceRequest & {
18
+ workspaceId?: string;
19
+ }, 'workspaceId'>;
20
+ export type CurrentWorkspaceRequest = Omit<{
21
+ workspaceId?: string;
22
+ }, 'workspaceId'>;
23
+ export type ListWorkspacesRequest = Omit<{
24
+ workspaceId?: string;
25
+ limit?: number;
26
+ offset?: number | null;
27
+ search?: string;
28
+ parentWorkspaceId?: string;
29
+ }, 'workspaceId'>;
30
+ export type PatchWorkspaceOperationRequest = Omit<PatchWorkspaceRequest & {
31
+ workspaceId?: string;
32
+ }, 'workspaceId'>;
33
+ export type RemoveWorkspaceRequest = Omit<{
34
+ workspaceId?: string;
35
+ force?: boolean | null;
36
+ }, 'workspaceId'>;
37
+ /**
38
+ *
39
+ */
40
+ export declare class DefaultApi extends runtime.BaseAPI {
41
+ /**
42
+ * Delete workspace
43
+ */
44
+ acceptRemovalRaw(requestParameters: AcceptWorkspaceRemovalOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
45
+ /**
46
+ * Delete workspace
47
+ */
48
+ acceptRemoval(requestParameters: AcceptWorkspaceRemovalOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
49
+ /**
50
+ * Create a new team workspace
51
+ */
52
+ createRaw(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
53
+ /**
54
+ * Create a new team workspace
55
+ */
56
+ create(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
57
+ /**
58
+ * Currently selected workspace
59
+ */
60
+ currentRaw(requestParameters?: CurrentWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
61
+ /**
62
+ * Currently selected workspace
63
+ */
64
+ current(requestParameters?: CurrentWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
65
+ /**
66
+ * Workspaces I have access to
67
+ */
68
+ listRaw(requestParameters?: ListWorkspacesRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaces200Response>>;
69
+ /**
70
+ * Workspaces I have access to
71
+ */
72
+ list(requestParameters?: ListWorkspacesRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<ListWorkspaces200Response>;
73
+ /**
74
+ * Update workspace
75
+ */
76
+ patchRaw(requestParameters: PatchWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
77
+ /**
78
+ * Update workspace
79
+ */
80
+ patch(requestParameters: PatchWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
81
+ /**
82
+ * Accept workspace deletion request
83
+ */
84
+ removeRaw(requestParameters?: RemoveWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
85
+ /**
86
+ * Accept workspace deletion request
87
+ */
88
+ remove(requestParameters?: RemoveWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
89
+ }