@fbrc/sdk 0.0.10 → 0.0.12
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 +5 -5
- package/dist/apis/MemoriesApi.d.ts +104 -0
- package/dist/apis/MemoriesApi.js +273 -0
- package/dist/apis/ResourceRootsApi.d.ts +49 -0
- package/dist/apis/ResourceRootsApi.js +127 -0
- package/dist/apis/ResourcesApi.js +2 -2
- package/dist/apis/SubscriptionApi.js +1 -1
- package/dist/apis/SubscriptionsApi.d.ts +30 -0
- package/dist/apis/SubscriptionsApi.js +69 -0
- package/dist/apis/UserProfileApi.js +1 -1
- package/dist/apis/UsersApi.d.ts +29 -0
- package/dist/apis/UsersApi.js +66 -0
- package/dist/apis/WorkspaceApi.d.ts +13 -5
- package/dist/apis/WorkspaceApi.js +12 -5
- package/dist/apis/{DefaultApi.d.ts → WorkspacesApi.d.ts} +23 -15
- package/dist/apis/{DefaultApi.js → WorkspacesApi.js} +29 -22
- package/dist/apis/index.d.ts +5 -5
- package/dist/apis/index.js +5 -5
- package/dist/esm/apis/MemoriesApi.d.ts +104 -0
- package/dist/esm/apis/MemoriesApi.js +269 -0
- package/dist/esm/apis/ResourceRootsApi.d.ts +49 -0
- package/dist/esm/apis/ResourceRootsApi.js +123 -0
- package/dist/esm/apis/ResourcesApi.js +2 -2
- package/dist/esm/apis/SubscriptionApi.js +1 -1
- package/dist/esm/apis/SubscriptionsApi.d.ts +30 -0
- package/dist/esm/apis/SubscriptionsApi.js +65 -0
- package/dist/esm/apis/UserProfileApi.js +1 -1
- package/dist/esm/apis/UsersApi.d.ts +29 -0
- package/dist/esm/apis/UsersApi.js +62 -0
- package/dist/esm/apis/WorkspaceApi.d.ts +13 -5
- package/dist/esm/apis/WorkspaceApi.js +11 -4
- package/dist/esm/apis/{DefaultApi.d.ts → WorkspacesApi.d.ts} +23 -15
- package/dist/esm/apis/{DefaultApi.js → WorkspacesApi.js} +27 -20
- package/dist/esm/apis/index.d.ts +5 -5
- package/dist/esm/apis/index.js +5 -5
- package/dist/esm/models/ChatbotModel.d.ts +6 -7
- package/dist/esm/models/ChatbotModel.js +6 -7
- package/dist/models/ChatbotModel.d.ts +6 -7
- package/dist/models/ChatbotModel.js +6 -7
- package/package.json +1 -1
- package/src/apis/{MemoryApi.ts → MemoriesApi.ts} +1 -1
- package/src/apis/{ResourceRootApi.ts → ResourceRootsApi.ts} +1 -1
- package/src/apis/ResourcesApi.ts +2 -2
- package/src/apis/{SubscriptionApi.ts → SubscriptionsApi.ts} +2 -2
- package/src/apis/{UserProfileApi.ts → UsersApi.ts} +2 -2
- package/src/apis/{WorkspaceApi.ts → WorkspacesApi.ts} +15 -6
- package/src/apis/index.ts +5 -5
- package/src/models/ChatbotModel.ts +6 -7
- package/dist/esm/models/DeleteResourcesRequest.d.ts +0 -38
- package/dist/esm/models/DeleteResourcesRequest.js +0 -45
- package/dist/esm/models/DeleteSpace404Response.d.ts +0 -52
- package/dist/esm/models/DeleteSpace404Response.js +0 -59
- package/dist/esm/models/MarketingCampaignSource.d.ts +0 -69
- package/dist/esm/models/MarketingCampaignSource.js +0 -68
- package/dist/esm/models/UtmSources.d.ts +0 -24
- package/dist/esm/models/UtmSources.js +0 -42
- package/dist/esm/models/V2WorkspaceDeletionConfirmationPostRequest.d.ts +0 -32
- package/dist/esm/models/V2WorkspaceDeletionConfirmationPostRequest.js +0 -43
- package/dist/esm/models/V2WorkspaceGet200Response.d.ts +0 -39
- package/dist/esm/models/V2WorkspaceGet200Response.js +0 -48
- package/dist/esm/models/V2WorkspaceGet200ResponseData.d.ts +0 -33
- package/dist/esm/models/V2WorkspaceGet200ResponseData.js +0 -44
- package/dist/esm/models/V2WorkspacePatchRequest.d.ts +0 -50
- package/dist/esm/models/V2WorkspacePatchRequest.js +0 -47
- package/dist/esm/models/V2WorkspacePostRequest.d.ts +0 -64
- package/dist/esm/models/V2WorkspacePostRequest.js +0 -53
- package/dist/models/DeleteResourcesRequest.d.ts +0 -38
- package/dist/models/DeleteResourcesRequest.js +0 -52
- package/dist/models/DeleteSpace404Response.d.ts +0 -52
- package/dist/models/DeleteSpace404Response.js +0 -67
- package/dist/models/MarketingCampaignSource.d.ts +0 -69
- package/dist/models/MarketingCampaignSource.js +0 -75
- package/dist/models/UtmSources.d.ts +0 -24
- package/dist/models/UtmSources.js +0 -50
- package/dist/models/V2WorkspaceDeletionConfirmationPostRequest.d.ts +0 -32
- package/dist/models/V2WorkspaceDeletionConfirmationPostRequest.js +0 -50
- package/dist/models/V2WorkspaceGet200Response.d.ts +0 -39
- package/dist/models/V2WorkspaceGet200Response.js +0 -55
- package/dist/models/V2WorkspaceGet200ResponseData.d.ts +0 -33
- package/dist/models/V2WorkspaceGet200ResponseData.js +0 -51
- package/dist/models/V2WorkspacePatchRequest.d.ts +0 -50
- package/dist/models/V2WorkspacePatchRequest.js +0 -54
- package/dist/models/V2WorkspacePostRequest.d.ts +0 -64
- package/dist/models/V2WorkspacePostRequest.js +0 -60
- package/dist/models/V2WorkspacesPatchRequest.d.ts +0 -50
- package/dist/models/V2WorkspacesPatchRequest.js +0 -72
- package/dist/models/V2WorkspacesPostRequest.d.ts +0 -64
- package/dist/models/V2WorkspacesPostRequest.js +0 -82
|
@@ -0,0 +1,69 @@
|
|
|
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.SubscriptionsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class SubscriptionsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Get user subscription
|
|
34
|
+
*/
|
|
35
|
+
getRaw() {
|
|
36
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
if (requestParameters['type'] != null) {
|
|
39
|
+
queryParameters['type'] = requestParameters['type'];
|
|
40
|
+
}
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
43
|
+
// oauth required
|
|
44
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
|
|
45
|
+
}
|
|
46
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
47
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
48
|
+
}
|
|
49
|
+
let urlPath = `/v2/subscriptions`;
|
|
50
|
+
const response = yield this.request({
|
|
51
|
+
path: urlPath,
|
|
52
|
+
method: 'GET',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
}, initOverrides);
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WorkspaceSubscriptionFromJSON)(jsonValue));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get user subscription
|
|
61
|
+
*/
|
|
62
|
+
get() {
|
|
63
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
64
|
+
const response = yield this.getRaw(requestParameters, initOverrides);
|
|
65
|
+
return yield response.value();
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.SubscriptionsApi = SubscriptionsApi;
|
|
@@ -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/
|
|
46
|
+
let urlPath = `/v2/users/me`;
|
|
47
47
|
const response = yield this.request({
|
|
48
48
|
path: urlPath,
|
|
49
49
|
method: 'GET',
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { MineProfile } from '../models/index';
|
|
14
|
+
export type GetUserProfileRequest = Omit<{
|
|
15
|
+
workspaceId?: string;
|
|
16
|
+
}, 'workspaceId'>;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class UsersApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* My profile
|
|
23
|
+
*/
|
|
24
|
+
getRaw(requestParameters?: GetUserProfileRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MineProfile>>;
|
|
25
|
+
/**
|
|
26
|
+
* My profile
|
|
27
|
+
*/
|
|
28
|
+
get(requestParameters?: GetUserProfileRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<MineProfile>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.UsersApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class UsersApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* My profile
|
|
34
|
+
*/
|
|
35
|
+
getRaw() {
|
|
36
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
// oauth required
|
|
41
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("OAuth2", []);
|
|
42
|
+
}
|
|
43
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
44
|
+
headerParameters["X-Api-Key"] = yield this.configuration.apiKey("X-Api-Key"); // ApiKey authentication
|
|
45
|
+
}
|
|
46
|
+
let urlPath = `/v2/users/me`;
|
|
47
|
+
const response = yield this.request({
|
|
48
|
+
path: urlPath,
|
|
49
|
+
method: 'GET',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
}, initOverrides);
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MineProfileFromJSON)(jsonValue));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* My profile
|
|
58
|
+
*/
|
|
59
|
+
get() {
|
|
60
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
61
|
+
const response = yield this.getRaw(requestParameters, initOverrides);
|
|
62
|
+
return yield response.value();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.UsersApi = UsersApi;
|
|
@@ -32,18 +32,18 @@ export type PatchWorkspaceOperationRequest = Omit<PatchWorkspaceRequest & {
|
|
|
32
32
|
}, 'workspaceId'>;
|
|
33
33
|
export type RemoveWorkspaceRequest = Omit<{
|
|
34
34
|
workspaceId?: string;
|
|
35
|
-
force?:
|
|
35
|
+
force?: RemoveWorkspaceForceEnum;
|
|
36
36
|
}, 'workspaceId'>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
40
|
export declare class WorkspaceApi extends runtime.BaseAPI {
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Confirm workspace deletion
|
|
43
43
|
*/
|
|
44
44
|
acceptRemovalRaw(requestParameters: AcceptWorkspaceRemovalOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Confirm workspace deletion
|
|
47
47
|
*/
|
|
48
48
|
acceptRemoval(requestParameters: AcceptWorkspaceRemovalOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
49
49
|
/**
|
|
@@ -79,11 +79,19 @@ export declare class WorkspaceApi extends runtime.BaseAPI {
|
|
|
79
79
|
*/
|
|
80
80
|
patch(requestParameters: PatchWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Delete workspace
|
|
83
83
|
*/
|
|
84
84
|
removeRaw(requestParameters?: RemoveWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Delete workspace
|
|
87
87
|
*/
|
|
88
88
|
remove(requestParameters?: RemoveWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
89
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* @export
|
|
92
|
+
*/
|
|
93
|
+
export declare const RemoveWorkspaceForceEnum: {
|
|
94
|
+
readonly True: "true";
|
|
95
|
+
readonly False: "false";
|
|
96
|
+
};
|
|
97
|
+
export type RemoveWorkspaceForceEnum = typeof RemoveWorkspaceForceEnum[keyof typeof RemoveWorkspaceForceEnum];
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.WorkspaceApi = void 0;
|
|
25
|
+
exports.RemoveWorkspaceForceEnum = exports.WorkspaceApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
@@ -30,7 +30,7 @@ const index_1 = require("../models/index");
|
|
|
30
30
|
*/
|
|
31
31
|
class WorkspaceApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Confirm workspace deletion
|
|
34
34
|
*/
|
|
35
35
|
acceptRemovalRaw(requestParameters, initOverrides) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -56,7 +56,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Confirm workspace deletion
|
|
60
60
|
*/
|
|
61
61
|
acceptRemoval(requestParameters, initOverrides) {
|
|
62
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -211,7 +211,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
/**
|
|
214
|
-
*
|
|
214
|
+
* Delete workspace
|
|
215
215
|
*/
|
|
216
216
|
removeRaw() {
|
|
217
217
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -238,7 +238,7 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
241
|
-
*
|
|
241
|
+
* Delete workspace
|
|
242
242
|
*/
|
|
243
243
|
remove() {
|
|
244
244
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -247,3 +247,10 @@ class WorkspaceApi extends runtime.BaseAPI {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
exports.WorkspaceApi = WorkspaceApi;
|
|
250
|
+
/**
|
|
251
|
+
* @export
|
|
252
|
+
*/
|
|
253
|
+
exports.RemoveWorkspaceForceEnum = {
|
|
254
|
+
True: 'true',
|
|
255
|
+
False: 'false'
|
|
256
|
+
};
|
|
@@ -17,7 +17,7 @@ export type AcceptWorkspaceRemovalOperationRequest = Omit<AcceptWorkspaceRemoval
|
|
|
17
17
|
export type CreateWorkspaceOperationRequest = Omit<CreateWorkspaceRequest & {
|
|
18
18
|
workspaceId?: string;
|
|
19
19
|
}, 'workspaceId'>;
|
|
20
|
-
export type
|
|
20
|
+
export type GetRequest = Omit<{
|
|
21
21
|
workspaceId?: string;
|
|
22
22
|
}, 'workspaceId'>;
|
|
23
23
|
export type ListWorkspacesRequest = Omit<{
|
|
@@ -32,42 +32,42 @@ export type PatchWorkspaceOperationRequest = Omit<PatchWorkspaceRequest & {
|
|
|
32
32
|
}, 'workspaceId'>;
|
|
33
33
|
export type RemoveWorkspaceRequest = Omit<{
|
|
34
34
|
workspaceId?: string;
|
|
35
|
-
force?:
|
|
35
|
+
force?: RemoveWorkspaceForceEnum;
|
|
36
36
|
}, 'workspaceId'>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
|
-
export declare class
|
|
40
|
+
export declare class WorkspacesApi extends runtime.BaseAPI {
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Confirm workspace deletion
|
|
43
43
|
*/
|
|
44
44
|
acceptRemovalRaw(requestParameters: AcceptWorkspaceRemovalOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Confirm workspace deletion
|
|
47
47
|
*/
|
|
48
48
|
acceptRemoval(requestParameters: AcceptWorkspaceRemovalOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
49
49
|
/**
|
|
50
|
-
* Create
|
|
50
|
+
* Create workspace
|
|
51
51
|
*/
|
|
52
52
|
createRaw(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
|
|
53
53
|
/**
|
|
54
|
-
* Create
|
|
54
|
+
* Create workspace
|
|
55
55
|
*/
|
|
56
56
|
create(requestParameters: CreateWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Get workspace
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
getRaw(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Workspace>>;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Get workspace
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
get(requestParameters?: GetRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<Workspace>;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* List workspaces
|
|
67
67
|
*/
|
|
68
68
|
listRaw(requestParameters?: ListWorkspacesRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListWorkspaces200Response>>;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* List workspaces
|
|
71
71
|
*/
|
|
72
72
|
list(requestParameters?: ListWorkspacesRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<ListWorkspaces200Response>;
|
|
73
73
|
/**
|
|
@@ -79,11 +79,19 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
79
79
|
*/
|
|
80
80
|
patch(requestParameters: PatchWorkspaceOperationRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Delete workspace
|
|
83
83
|
*/
|
|
84
84
|
removeRaw(requestParameters?: RemoveWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Delete workspace
|
|
87
87
|
*/
|
|
88
88
|
remove(requestParameters?: RemoveWorkspaceRequest, initOverrides?: runtime.InitOverrides | runtime.InitOverrideFunction): Promise<void>;
|
|
89
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* @export
|
|
92
|
+
*/
|
|
93
|
+
export declare const RemoveWorkspaceForceEnum: {
|
|
94
|
+
readonly True: "true";
|
|
95
|
+
readonly False: "false";
|
|
96
|
+
};
|
|
97
|
+
export type RemoveWorkspaceForceEnum = typeof RemoveWorkspaceForceEnum[keyof typeof RemoveWorkspaceForceEnum];
|
|
@@ -22,15 +22,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.RemoveWorkspaceForceEnum = exports.WorkspacesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class WorkspacesApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Confirm workspace deletion
|
|
34
34
|
*/
|
|
35
35
|
acceptRemovalRaw(requestParameters, initOverrides) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -44,7 +44,7 @@ class DefaultApi 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/
|
|
47
|
+
let urlPath = `/v2/workspaces/deletion-confirmation`;
|
|
48
48
|
const response = yield this.request({
|
|
49
49
|
path: urlPath,
|
|
50
50
|
method: 'POST',
|
|
@@ -56,7 +56,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Confirm workspace deletion
|
|
60
60
|
*/
|
|
61
61
|
acceptRemoval(requestParameters, initOverrides) {
|
|
62
62
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -64,7 +64,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Create
|
|
67
|
+
* Create workspace
|
|
68
68
|
*/
|
|
69
69
|
createRaw(requestParameters, initOverrides) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -78,7 +78,7 @@ class DefaultApi 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/
|
|
81
|
+
let urlPath = `/v2/workspaces`;
|
|
82
82
|
const response = yield this.request({
|
|
83
83
|
path: urlPath,
|
|
84
84
|
method: 'POST',
|
|
@@ -90,7 +90,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
|
-
* Create
|
|
93
|
+
* Create workspace
|
|
94
94
|
*/
|
|
95
95
|
create(requestParameters, initOverrides) {
|
|
96
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -99,9 +99,9 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* Get workspace
|
|
103
103
|
*/
|
|
104
|
-
|
|
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 DefaultApi 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/
|
|
115
|
+
let urlPath = `/v2/workspaces/me`;
|
|
116
116
|
const response = yield this.request({
|
|
117
117
|
path: urlPath,
|
|
118
118
|
method: 'GET',
|
|
@@ -123,16 +123,16 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
126
|
+
* Get workspace
|
|
127
127
|
*/
|
|
128
|
-
|
|
128
|
+
get() {
|
|
129
129
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
130
|
-
const response = yield this.
|
|
130
|
+
const response = yield this.getRaw(requestParameters, initOverrides);
|
|
131
131
|
return yield response.value();
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
135
|
+
* List workspaces
|
|
136
136
|
*/
|
|
137
137
|
listRaw() {
|
|
138
138
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -157,7 +157,7 @@ class DefaultApi 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/
|
|
160
|
+
let urlPath = `/v2/workspaces`;
|
|
161
161
|
const response = yield this.request({
|
|
162
162
|
path: urlPath,
|
|
163
163
|
method: 'GET',
|
|
@@ -168,7 +168,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
/**
|
|
171
|
-
*
|
|
171
|
+
* List workspaces
|
|
172
172
|
*/
|
|
173
173
|
list() {
|
|
174
174
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -191,7 +191,7 @@ class DefaultApi 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/
|
|
194
|
+
let urlPath = `/v2/workspaces`;
|
|
195
195
|
const response = yield this.request({
|
|
196
196
|
path: urlPath,
|
|
197
197
|
method: 'PATCH',
|
|
@@ -211,7 +211,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
/**
|
|
214
|
-
*
|
|
214
|
+
* Delete workspace
|
|
215
215
|
*/
|
|
216
216
|
removeRaw() {
|
|
217
217
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -227,7 +227,7 @@ class DefaultApi 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/
|
|
230
|
+
let urlPath = `/v2/workspaces`;
|
|
231
231
|
const response = yield this.request({
|
|
232
232
|
path: urlPath,
|
|
233
233
|
method: 'DELETE',
|
|
@@ -238,7 +238,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
241
|
-
*
|
|
241
|
+
* Delete workspace
|
|
242
242
|
*/
|
|
243
243
|
remove() {
|
|
244
244
|
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
@@ -246,4 +246,11 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
exports.
|
|
249
|
+
exports.WorkspacesApi = WorkspacesApi;
|
|
250
|
+
/**
|
|
251
|
+
* @export
|
|
252
|
+
*/
|
|
253
|
+
exports.RemoveWorkspaceForceEnum = {
|
|
254
|
+
True: 'true',
|
|
255
|
+
False: 'false'
|
|
256
|
+
};
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ export * from './BookmarksApi';
|
|
|
2
2
|
export * from './CommentsApi';
|
|
3
3
|
export * from './FilesApi';
|
|
4
4
|
export * from './FoldersApi';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './MemoriesApi';
|
|
6
6
|
export * from './NotepadsApi';
|
|
7
|
-
export * from './
|
|
7
|
+
export * from './ResourceRootsApi';
|
|
8
8
|
export * from './ResourcesApi';
|
|
9
9
|
export * from './SearchApi';
|
|
10
10
|
export * from './SpacesApi';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './SubscriptionsApi';
|
|
12
12
|
export * from './TagsApi';
|
|
13
13
|
export * from './UploadsApi';
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
14
|
+
export * from './UsersApi';
|
|
15
|
+
export * from './WorkspacesApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -20,14 +20,14 @@ __exportStar(require("./BookmarksApi"), exports);
|
|
|
20
20
|
__exportStar(require("./CommentsApi"), exports);
|
|
21
21
|
__exportStar(require("./FilesApi"), exports);
|
|
22
22
|
__exportStar(require("./FoldersApi"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
23
|
+
__exportStar(require("./MemoriesApi"), exports);
|
|
24
24
|
__exportStar(require("./NotepadsApi"), exports);
|
|
25
|
-
__exportStar(require("./
|
|
25
|
+
__exportStar(require("./ResourceRootsApi"), exports);
|
|
26
26
|
__exportStar(require("./ResourcesApi"), exports);
|
|
27
27
|
__exportStar(require("./SearchApi"), exports);
|
|
28
28
|
__exportStar(require("./SpacesApi"), exports);
|
|
29
|
-
__exportStar(require("./
|
|
29
|
+
__exportStar(require("./SubscriptionsApi"), exports);
|
|
30
30
|
__exportStar(require("./TagsApi"), exports);
|
|
31
31
|
__exportStar(require("./UploadsApi"), exports);
|
|
32
|
-
__exportStar(require("./
|
|
33
|
-
__exportStar(require("./
|
|
32
|
+
__exportStar(require("./UsersApi"), exports);
|
|
33
|
+
__exportStar(require("./WorkspacesApi"), exports);
|