@fbrc/sdk 0.0.11 → 0.0.13
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 +8 -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/SubscriptionsApi.d.ts +30 -0
- package/dist/apis/SubscriptionsApi.js +69 -0
- 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/WorkspacesApi.d.ts +97 -0
- package/dist/apis/WorkspacesApi.js +256 -0
- 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/SubscriptionsApi.d.ts +30 -0
- package/dist/esm/apis/SubscriptionsApi.js +65 -0
- 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/WorkspacesApi.d.ts +97 -0
- package/dist/esm/apis/WorkspacesApi.js +252 -0
- package/dist/esm/apis/index.d.ts +5 -5
- package/dist/esm/apis/index.js +5 -5
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/ChatbotModel.d.ts +8 -8
- package/dist/esm/models/ChatbotModel.js +8 -8
- package/dist/esm/models/CreateBookmarkRequestLocation.d.ts +38 -0
- package/dist/esm/models/CreateBookmarkRequestLocation.js +51 -0
- package/dist/esm/models/CreateBookmarkRequestLocationAnyOf.d.ts +32 -0
- package/dist/esm/models/CreateBookmarkRequestLocationAnyOf.js +45 -0
- package/dist/esm/models/CreateBookmarkRequestLocationAnyOf1.d.ts +32 -0
- package/dist/esm/models/CreateBookmarkRequestLocationAnyOf1.js +45 -0
- package/dist/esm/models/PlanEntitlements.d.ts +6 -0
- package/dist/esm/models/PlanEntitlements.js +4 -0
- package/dist/esm/models/SearchRequestAllOfFilters.d.ts +6 -0
- package/dist/esm/models/SearchRequestAllOfFilters.js +4 -0
- package/dist/esm/models/UpdateResourceRequest.d.ts +58 -0
- package/dist/esm/models/UpdateResourceRequest.js +76 -0
- package/dist/esm/models/UpdateResourceRequestLocation.d.ts +38 -0
- package/dist/esm/models/UpdateResourceRequestLocation.js +51 -0
- package/dist/esm/models/UsageAmountType.d.ts +25 -0
- package/dist/esm/models/UsageAmountType.js +43 -0
- package/dist/esm/models/UsageBreakdownLabel.d.ts +25 -0
- package/dist/esm/models/UsageBreakdownLabel.js +43 -0
- package/dist/esm/models/UsageItem.d.ts +26 -0
- package/dist/esm/models/UsageItem.js +29 -0
- package/dist/esm/models/UsageItemBreakdownInner.d.ts +39 -0
- package/dist/esm/models/UsageItemBreakdownInner.js +52 -0
- package/dist/esm/models/WorkspaceSubscriptionCreditOperationCosts.d.ts +6 -0
- package/dist/esm/models/WorkspaceSubscriptionCreditOperationCosts.js +4 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/models/ChatbotModel.d.ts +8 -8
- package/dist/models/ChatbotModel.js +8 -8
- package/dist/models/CreateBookmarkRequestLocation.d.ts +38 -0
- package/dist/models/CreateBookmarkRequestLocation.js +58 -0
- package/dist/models/CreateBookmarkRequestLocationAnyOf.d.ts +32 -0
- package/dist/models/CreateBookmarkRequestLocationAnyOf.js +52 -0
- package/dist/models/CreateBookmarkRequestLocationAnyOf1.d.ts +32 -0
- package/dist/models/CreateBookmarkRequestLocationAnyOf1.js +52 -0
- package/dist/models/PlanEntitlements.d.ts +6 -0
- package/dist/models/PlanEntitlements.js +4 -0
- package/dist/models/SearchRequestAllOfFilters.d.ts +6 -0
- package/dist/models/SearchRequestAllOfFilters.js +4 -0
- package/dist/models/UpdateResourceRequest.d.ts +58 -0
- package/dist/models/UpdateResourceRequest.js +83 -0
- package/dist/models/UpdateResourceRequestLocation.d.ts +38 -0
- package/dist/models/UpdateResourceRequestLocation.js +58 -0
- package/dist/models/UsageAmountType.d.ts +25 -0
- package/dist/models/UsageAmountType.js +51 -0
- package/dist/models/UsageBreakdownLabel.d.ts +25 -0
- package/dist/models/UsageBreakdownLabel.js +51 -0
- package/dist/models/UsageItem.d.ts +26 -0
- package/dist/models/UsageItem.js +29 -0
- package/dist/models/UsageItemBreakdownInner.d.ts +39 -0
- package/dist/models/UsageItemBreakdownInner.js +59 -0
- package/dist/models/WorkspaceSubscriptionCreditOperationCosts.d.ts +6 -0
- package/dist/models/WorkspaceSubscriptionCreditOperationCosts.js +4 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- 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/{SubscriptionApi.ts → SubscriptionsApi.ts} +1 -1
- package/src/apis/{UserProfileApi.ts → UsersApi.ts} +1 -1
- package/src/apis/{WorkspaceApi.ts → WorkspacesApi.ts} +15 -6
- package/src/apis/index.ts +5 -5
- package/src/index.ts +3 -1
- package/src/models/ChatbotModel.ts +8 -8
- package/src/models/PlanEntitlements.ts +10 -0
- package/src/models/SearchRequestAllOfFilters.ts +10 -0
- package/src/models/UsageAmountType.ts +53 -0
- package/src/models/UsageBreakdownLabel.ts +53 -0
- package/src/models/UsageItem.ts +64 -0
- package/src/models/UsageItemBreakdownInner.ts +91 -0
- package/src/models/WorkspaceSubscriptionCreditOperationCosts.ts +10 -0
- package/src/models/index.ts +3 -0
|
@@ -11,10 +11,18 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { UsageItemBreakdownInnerFromJSON, UsageItemBreakdownInnerToJSON, } from './UsageItemBreakdownInner';
|
|
15
|
+
import { UsageAmountTypeFromJSON, UsageAmountTypeToJSON, } from './UsageAmountType';
|
|
14
16
|
/**
|
|
15
17
|
* Check if a given object implements the UsageItem interface.
|
|
16
18
|
*/
|
|
17
19
|
export function instanceOfUsageItem(value) {
|
|
20
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('amountType' in value) || value['amountType'] === undefined)
|
|
25
|
+
return false;
|
|
18
26
|
if (!('limit' in value) || value['limit'] === undefined)
|
|
19
27
|
return false;
|
|
20
28
|
if (!('used' in value) || value['used'] === undefined)
|
|
@@ -29,6 +37,23 @@ export function UsageItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
37
|
return json;
|
|
30
38
|
}
|
|
31
39
|
const result = {};
|
|
40
|
+
if (json['total'] !== undefined) {
|
|
41
|
+
if (json['total'] === null) {
|
|
42
|
+
result['total'] = null;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
result['total'] = json['total'];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (json['amount'] !== undefined) {
|
|
49
|
+
result['amount'] = json['amount'];
|
|
50
|
+
}
|
|
51
|
+
if (json['amountType'] !== undefined) {
|
|
52
|
+
result['amountType'] = UsageAmountTypeFromJSON(json['amountType']);
|
|
53
|
+
}
|
|
54
|
+
if (json['breakdown'] !== undefined) {
|
|
55
|
+
result['breakdown'] = json['breakdown'].map(UsageItemBreakdownInnerFromJSON);
|
|
56
|
+
}
|
|
32
57
|
if (json['limit'] !== undefined) {
|
|
33
58
|
if (json['limit'] === null) {
|
|
34
59
|
result['limit'] = null;
|
|
@@ -50,6 +75,10 @@ export function UsageItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
75
|
return value;
|
|
51
76
|
}
|
|
52
77
|
return {
|
|
78
|
+
'total': value['total'],
|
|
79
|
+
'amount': value['amount'],
|
|
80
|
+
'amountType': UsageAmountTypeToJSON(value['amountType']),
|
|
81
|
+
'breakdown': value['breakdown'] == null ? undefined : (value['breakdown'].map(UsageItemBreakdownInnerToJSON)),
|
|
53
82
|
'limit': value['limit'],
|
|
54
83
|
'used': value['used'],
|
|
55
84
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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 type { UsageBreakdownLabel } from './UsageBreakdownLabel';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UsageItemBreakdownInner
|
|
17
|
+
*/
|
|
18
|
+
export interface UsageItemBreakdownInner {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {UsageBreakdownLabel}
|
|
22
|
+
* @memberof UsageItemBreakdownInner
|
|
23
|
+
*/
|
|
24
|
+
'label': UsageBreakdownLabel;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof UsageItemBreakdownInner
|
|
29
|
+
*/
|
|
30
|
+
'amount': number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UsageItemBreakdownInner interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUsageItemBreakdownInner(value: object): value is UsageItemBreakdownInner;
|
|
36
|
+
export declare function UsageItemBreakdownInnerFromJSON(json: any): UsageItemBreakdownInner;
|
|
37
|
+
export declare function UsageItemBreakdownInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsageItemBreakdownInner;
|
|
38
|
+
export declare function UsageItemBreakdownInnerToJSON(json: any): UsageItemBreakdownInner;
|
|
39
|
+
export declare function UsageItemBreakdownInnerToJSONTyped(value?: UsageItemBreakdownInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fabric API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { UsageBreakdownLabelFromJSON, UsageBreakdownLabelToJSON, } from './UsageBreakdownLabel';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the UsageItemBreakdownInner interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfUsageItemBreakdownInner(value) {
|
|
19
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function UsageItemBreakdownInnerFromJSON(json) {
|
|
26
|
+
return UsageItemBreakdownInnerFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function UsageItemBreakdownInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
const result = {};
|
|
33
|
+
if (json['label'] !== undefined) {
|
|
34
|
+
result['label'] = UsageBreakdownLabelFromJSON(json['label']);
|
|
35
|
+
}
|
|
36
|
+
if (json['amount'] !== undefined) {
|
|
37
|
+
result['amount'] = json['amount'];
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
export function UsageItemBreakdownInnerToJSON(json) {
|
|
42
|
+
return UsageItemBreakdownInnerToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function UsageItemBreakdownInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'label': UsageBreakdownLabelToJSON(value['label']),
|
|
50
|
+
'amount': value['amount'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -27,6 +27,12 @@ export interface WorkspaceSubscriptionCreditOperationCosts {
|
|
|
27
27
|
* @memberof WorkspaceSubscriptionCreditOperationCosts
|
|
28
28
|
*/
|
|
29
29
|
'ASSISTANT_MESSAGE'?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof WorkspaceSubscriptionCreditOperationCosts
|
|
34
|
+
*/
|
|
35
|
+
'WEB_SEARCH'?: number;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {number}
|
|
@@ -31,6 +31,9 @@ export function WorkspaceSubscriptionCreditOperationCostsFromJSONTyped(json, ign
|
|
|
31
31
|
if (json['ASSISTANT_MESSAGE'] !== undefined) {
|
|
32
32
|
result['ASSISTANT_MESSAGE'] = json['ASSISTANT_MESSAGE'];
|
|
33
33
|
}
|
|
34
|
+
if (json['WEB_SEARCH'] !== undefined) {
|
|
35
|
+
result['WEB_SEARCH'] = json['WEB_SEARCH'];
|
|
36
|
+
}
|
|
34
37
|
if (json['TOP_UP_MANUAL'] !== undefined) {
|
|
35
38
|
result['TOP_UP_MANUAL'] = json['TOP_UP_MANUAL'];
|
|
36
39
|
}
|
|
@@ -52,6 +55,7 @@ export function WorkspaceSubscriptionCreditOperationCostsToJSONTyped(value, igno
|
|
|
52
55
|
return {
|
|
53
56
|
'RESOURCE_CREATED': value['RESOURCE_CREATED'],
|
|
54
57
|
'ASSISTANT_MESSAGE': value['ASSISTANT_MESSAGE'],
|
|
58
|
+
'WEB_SEARCH': value['WEB_SEARCH'],
|
|
55
59
|
'TOP_UP_MANUAL': value['TOP_UP_MANUAL'],
|
|
56
60
|
'TOP_UP_PLAN': value['TOP_UP_PLAN'],
|
|
57
61
|
'TOP_UP_AUTO': value['TOP_UP_AUTO'],
|
|
@@ -137,7 +137,10 @@ export * from './SystemSubtypes';
|
|
|
137
137
|
export * from './Tag';
|
|
138
138
|
export * from './ToolStatus';
|
|
139
139
|
export * from './UpdateMemoryRequest';
|
|
140
|
+
export * from './UsageAmountType';
|
|
141
|
+
export * from './UsageBreakdownLabel';
|
|
140
142
|
export * from './UsageItem';
|
|
143
|
+
export * from './UsageItemBreakdownInner';
|
|
141
144
|
export * from './UsageItems';
|
|
142
145
|
export * from './UsageType';
|
|
143
146
|
export * from './UserGroup';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -139,7 +139,10 @@ export * from './SystemSubtypes';
|
|
|
139
139
|
export * from './Tag';
|
|
140
140
|
export * from './ToolStatus';
|
|
141
141
|
export * from './UpdateMemoryRequest';
|
|
142
|
+
export * from './UsageAmountType';
|
|
143
|
+
export * from './UsageBreakdownLabel';
|
|
142
144
|
export * from './UsageItem';
|
|
145
|
+
export * from './UsageItemBreakdownInner';
|
|
143
146
|
export * from './UsageItems';
|
|
144
147
|
export * from './UsageType';
|
|
145
148
|
export * from './UserGroup';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as generatedApis from './apis/index';
|
|
2
|
-
import { Configuration } from './runtime';
|
|
2
|
+
import { Configuration, Middleware } from './runtime';
|
|
3
3
|
export * from './runtime';
|
|
4
4
|
export * from './apis/index';
|
|
5
5
|
export * from './models/index';
|
|
@@ -8,6 +8,7 @@ type ApiConstructor = new (configuration: Configuration) => any;
|
|
|
8
8
|
export interface FabricApiOptions {
|
|
9
9
|
apiKey: string;
|
|
10
10
|
workspaceId?: string;
|
|
11
|
+
middleware?: Middleware[];
|
|
11
12
|
}
|
|
12
13
|
type ApiKeys = {
|
|
13
14
|
[K in keyof GeneratedExports]: K extends `${string}Api` ? GeneratedExports[K] extends ApiConstructor ? K : never : never;
|
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ function apiPropertyName(className) {
|
|
|
35
35
|
}
|
|
36
36
|
class Fabric {
|
|
37
37
|
constructor(options) {
|
|
38
|
-
const configuration = new runtime_1.Configuration(Object.assign({ apiKey: options.apiKey }, (options.workspaceId && {
|
|
38
|
+
const configuration = new runtime_1.Configuration(Object.assign({ middleware: options.middleware, apiKey: options.apiKey }, (options.workspaceId && {
|
|
39
39
|
headers: {
|
|
40
40
|
'X-Fabric-Workspace-Id': String(options.workspaceId),
|
|
41
41
|
},
|
|
@@ -17,18 +17,18 @@ export declare const ChatbotModel: {
|
|
|
17
17
|
readonly Dummy: "dummy";
|
|
18
18
|
readonly Gpt51: "gpt-5-1";
|
|
19
19
|
readonly Gpt51Instant: "gpt-5-1-instant";
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
20
|
+
readonly Gpt52: "gpt-5-2";
|
|
21
|
+
readonly Gpt52Instant: "gpt-5-2-instant";
|
|
22
22
|
readonly ClaudeHaiku45: "claude-haiku-4-5";
|
|
23
23
|
readonly ClaudeSonnet45: "claude-sonnet-4-5";
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
24
|
+
readonly ClaudeOpus46: "claude-opus-4-6";
|
|
25
|
+
readonly Gemini3Flash: "gemini-3-flash";
|
|
26
26
|
readonly Gemini3Pro: "gemini-3-pro";
|
|
27
27
|
readonly Grok4: "grok-4";
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
28
|
+
readonly ClaudeOpus45: "claude-opus-4-5";
|
|
29
|
+
readonly Gpt4o: "gpt-4o";
|
|
30
|
+
readonly Gpt41: "gpt-4-1";
|
|
31
|
+
readonly Gemini25Flash: "gemini-2-5-flash";
|
|
32
32
|
};
|
|
33
33
|
export type ChatbotModel = typeof ChatbotModel[keyof typeof ChatbotModel];
|
|
34
34
|
export declare function instanceOfChatbotModel(value: any): boolean;
|
|
@@ -27,18 +27,18 @@ exports.ChatbotModel = {
|
|
|
27
27
|
Dummy: 'dummy',
|
|
28
28
|
Gpt51: 'gpt-5-1',
|
|
29
29
|
Gpt51Instant: 'gpt-5-1-instant',
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
Gpt52: 'gpt-5-2',
|
|
31
|
+
Gpt52Instant: 'gpt-5-2-instant',
|
|
32
32
|
ClaudeHaiku45: 'claude-haiku-4-5',
|
|
33
33
|
ClaudeSonnet45: 'claude-sonnet-4-5',
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
ClaudeOpus46: 'claude-opus-4-6',
|
|
35
|
+
Gemini3Flash: 'gemini-3-flash',
|
|
36
36
|
Gemini3Pro: 'gemini-3-pro',
|
|
37
37
|
Grok4: 'grok-4',
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
ClaudeOpus45: 'claude-opus-4-5',
|
|
39
|
+
Gpt4o: 'gpt-4o',
|
|
40
|
+
Gpt41: 'gpt-4-1',
|
|
41
|
+
Gemini25Flash: 'gemini-2-5-flash'
|
|
42
42
|
};
|
|
43
43
|
function instanceOfChatbotModel(value) {
|
|
44
44
|
for (const key in exports.ChatbotModel) {
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateBookmarkRequestLocation
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateBookmarkRequestLocation {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateBookmarkRequestLocation
|
|
22
|
+
*/
|
|
23
|
+
'insertAfterId': string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateBookmarkRequestLocation
|
|
28
|
+
*/
|
|
29
|
+
'insertBeforeId': string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateBookmarkRequestLocation interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateBookmarkRequestLocation(value: object): value is CreateBookmarkRequestLocation;
|
|
35
|
+
export declare function CreateBookmarkRequestLocationFromJSON(json: any): CreateBookmarkRequestLocation;
|
|
36
|
+
export declare function CreateBookmarkRequestLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBookmarkRequestLocation;
|
|
37
|
+
export declare function CreateBookmarkRequestLocationToJSON(json: any): CreateBookmarkRequestLocation;
|
|
38
|
+
export declare function CreateBookmarkRequestLocationToJSONTyped(value?: CreateBookmarkRequestLocation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateBookmarkRequestLocation = instanceOfCreateBookmarkRequestLocation;
|
|
17
|
+
exports.CreateBookmarkRequestLocationFromJSON = CreateBookmarkRequestLocationFromJSON;
|
|
18
|
+
exports.CreateBookmarkRequestLocationFromJSONTyped = CreateBookmarkRequestLocationFromJSONTyped;
|
|
19
|
+
exports.CreateBookmarkRequestLocationToJSON = CreateBookmarkRequestLocationToJSON;
|
|
20
|
+
exports.CreateBookmarkRequestLocationToJSONTyped = CreateBookmarkRequestLocationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateBookmarkRequestLocation interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateBookmarkRequestLocation(value) {
|
|
25
|
+
if (!('insertAfterId' in value) || value['insertAfterId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('insertBeforeId' in value) || value['insertBeforeId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function CreateBookmarkRequestLocationFromJSON(json) {
|
|
32
|
+
return CreateBookmarkRequestLocationFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function CreateBookmarkRequestLocationFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
const result = {};
|
|
39
|
+
if (json['insertAfterId'] !== undefined) {
|
|
40
|
+
result['insertAfterId'] = json['insertAfterId'];
|
|
41
|
+
}
|
|
42
|
+
if (json['insertBeforeId'] !== undefined) {
|
|
43
|
+
result['insertBeforeId'] = json['insertBeforeId'];
|
|
44
|
+
}
|
|
45
|
+
return result;
|
|
46
|
+
}
|
|
47
|
+
function CreateBookmarkRequestLocationToJSON(json) {
|
|
48
|
+
return CreateBookmarkRequestLocationToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function CreateBookmarkRequestLocationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'insertAfterId': value['insertAfterId'],
|
|
56
|
+
'insertBeforeId': value['insertBeforeId'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateBookmarkRequestLocationAnyOf
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateBookmarkRequestLocationAnyOf {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateBookmarkRequestLocationAnyOf
|
|
22
|
+
*/
|
|
23
|
+
'insertAfterId': string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateBookmarkRequestLocationAnyOf interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateBookmarkRequestLocationAnyOf(value: object): value is CreateBookmarkRequestLocationAnyOf;
|
|
29
|
+
export declare function CreateBookmarkRequestLocationAnyOfFromJSON(json: any): CreateBookmarkRequestLocationAnyOf;
|
|
30
|
+
export declare function CreateBookmarkRequestLocationAnyOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBookmarkRequestLocationAnyOf;
|
|
31
|
+
export declare function CreateBookmarkRequestLocationAnyOfToJSON(json: any): CreateBookmarkRequestLocationAnyOf;
|
|
32
|
+
export declare function CreateBookmarkRequestLocationAnyOfToJSONTyped(value?: CreateBookmarkRequestLocationAnyOf | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateBookmarkRequestLocationAnyOf = instanceOfCreateBookmarkRequestLocationAnyOf;
|
|
17
|
+
exports.CreateBookmarkRequestLocationAnyOfFromJSON = CreateBookmarkRequestLocationAnyOfFromJSON;
|
|
18
|
+
exports.CreateBookmarkRequestLocationAnyOfFromJSONTyped = CreateBookmarkRequestLocationAnyOfFromJSONTyped;
|
|
19
|
+
exports.CreateBookmarkRequestLocationAnyOfToJSON = CreateBookmarkRequestLocationAnyOfToJSON;
|
|
20
|
+
exports.CreateBookmarkRequestLocationAnyOfToJSONTyped = CreateBookmarkRequestLocationAnyOfToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateBookmarkRequestLocationAnyOf interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateBookmarkRequestLocationAnyOf(value) {
|
|
25
|
+
if (!('insertAfterId' in value) || value['insertAfterId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function CreateBookmarkRequestLocationAnyOfFromJSON(json) {
|
|
30
|
+
return CreateBookmarkRequestLocationAnyOfFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function CreateBookmarkRequestLocationAnyOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
const result = {};
|
|
37
|
+
if (json['insertAfterId'] !== undefined) {
|
|
38
|
+
result['insertAfterId'] = json['insertAfterId'];
|
|
39
|
+
}
|
|
40
|
+
return result;
|
|
41
|
+
}
|
|
42
|
+
function CreateBookmarkRequestLocationAnyOfToJSON(json) {
|
|
43
|
+
return CreateBookmarkRequestLocationAnyOfToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function CreateBookmarkRequestLocationAnyOfToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'insertAfterId': value['insertAfterId'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateBookmarkRequestLocationAnyOf1
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateBookmarkRequestLocationAnyOf1 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateBookmarkRequestLocationAnyOf1
|
|
22
|
+
*/
|
|
23
|
+
'insertBeforeId': string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateBookmarkRequestLocationAnyOf1 interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateBookmarkRequestLocationAnyOf1(value: object): value is CreateBookmarkRequestLocationAnyOf1;
|
|
29
|
+
export declare function CreateBookmarkRequestLocationAnyOf1FromJSON(json: any): CreateBookmarkRequestLocationAnyOf1;
|
|
30
|
+
export declare function CreateBookmarkRequestLocationAnyOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBookmarkRequestLocationAnyOf1;
|
|
31
|
+
export declare function CreateBookmarkRequestLocationAnyOf1ToJSON(json: any): CreateBookmarkRequestLocationAnyOf1;
|
|
32
|
+
export declare function CreateBookmarkRequestLocationAnyOf1ToJSONTyped(value?: CreateBookmarkRequestLocationAnyOf1 | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateBookmarkRequestLocationAnyOf1 = instanceOfCreateBookmarkRequestLocationAnyOf1;
|
|
17
|
+
exports.CreateBookmarkRequestLocationAnyOf1FromJSON = CreateBookmarkRequestLocationAnyOf1FromJSON;
|
|
18
|
+
exports.CreateBookmarkRequestLocationAnyOf1FromJSONTyped = CreateBookmarkRequestLocationAnyOf1FromJSONTyped;
|
|
19
|
+
exports.CreateBookmarkRequestLocationAnyOf1ToJSON = CreateBookmarkRequestLocationAnyOf1ToJSON;
|
|
20
|
+
exports.CreateBookmarkRequestLocationAnyOf1ToJSONTyped = CreateBookmarkRequestLocationAnyOf1ToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateBookmarkRequestLocationAnyOf1 interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateBookmarkRequestLocationAnyOf1(value) {
|
|
25
|
+
if (!('insertBeforeId' in value) || value['insertBeforeId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function CreateBookmarkRequestLocationAnyOf1FromJSON(json) {
|
|
30
|
+
return CreateBookmarkRequestLocationAnyOf1FromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function CreateBookmarkRequestLocationAnyOf1FromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
const result = {};
|
|
37
|
+
if (json['insertBeforeId'] !== undefined) {
|
|
38
|
+
result['insertBeforeId'] = json['insertBeforeId'];
|
|
39
|
+
}
|
|
40
|
+
return result;
|
|
41
|
+
}
|
|
42
|
+
function CreateBookmarkRequestLocationAnyOf1ToJSON(json) {
|
|
43
|
+
return CreateBookmarkRequestLocationAnyOf1ToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function CreateBookmarkRequestLocationAnyOf1ToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'insertBeforeId': value['insertBeforeId'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -123,6 +123,12 @@ export interface PlanEntitlements {
|
|
|
123
123
|
* @memberof PlanEntitlements
|
|
124
124
|
*/
|
|
125
125
|
'maxDelegatedWorkspaces'?: number;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof PlanEntitlements
|
|
130
|
+
*/
|
|
131
|
+
'webSearchEnabled'?: boolean;
|
|
126
132
|
}
|
|
127
133
|
/**
|
|
128
134
|
* Check if a given object implements the PlanEntitlements interface.
|
|
@@ -114,6 +114,9 @@ function PlanEntitlementsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
114
114
|
if (json['maxDelegatedWorkspaces'] !== undefined) {
|
|
115
115
|
result['maxDelegatedWorkspaces'] = json['maxDelegatedWorkspaces'];
|
|
116
116
|
}
|
|
117
|
+
if (json['webSearchEnabled'] !== undefined) {
|
|
118
|
+
result['webSearchEnabled'] = json['webSearchEnabled'];
|
|
119
|
+
}
|
|
117
120
|
return result;
|
|
118
121
|
}
|
|
119
122
|
function PlanEntitlementsToJSON(json) {
|
|
@@ -142,5 +145,6 @@ function PlanEntitlementsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
142
145
|
'requestsPerHour': value['requestsPerHour'],
|
|
143
146
|
'unitPricePerGB': value['unitPricePerGB'],
|
|
144
147
|
'maxDelegatedWorkspaces': value['maxDelegatedWorkspaces'],
|
|
148
|
+
'webSearchEnabled': value['webSearchEnabled'],
|
|
145
149
|
};
|
|
146
150
|
}
|
|
@@ -64,6 +64,12 @@ export interface SearchRequestAllOfFilters {
|
|
|
64
64
|
* @memberof SearchRequestAllOfFilters
|
|
65
65
|
*/
|
|
66
66
|
'tagIds'?: Array<string>;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof SearchRequestAllOfFilters
|
|
71
|
+
*/
|
|
72
|
+
'userId'?: string;
|
|
67
73
|
/**
|
|
68
74
|
*
|
|
69
75
|
* @type {Array<string>}
|
|
@@ -75,6 +75,9 @@ function SearchRequestAllOfFiltersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
75
|
if (json['tagIds'] !== undefined) {
|
|
76
76
|
result['tagIds'] = json['tagIds'];
|
|
77
77
|
}
|
|
78
|
+
if (json['userId'] !== undefined) {
|
|
79
|
+
result['userId'] = json['userId'];
|
|
80
|
+
}
|
|
78
81
|
if (json['userIds'] !== undefined) {
|
|
79
82
|
result['userIds'] = json['userIds'];
|
|
80
83
|
}
|
|
@@ -112,6 +115,7 @@ function SearchRequestAllOfFiltersToJSONTyped(value, ignoreDiscriminator = false
|
|
|
112
115
|
'roots': value['roots'] == null ? undefined : (value['roots'].map(SearchRequestAllOfFiltersRootsInner_1.SearchRequestAllOfFiltersRootsInnerToJSON)),
|
|
113
116
|
'excludeRoots': value['excludeRoots'] == null ? undefined : (value['excludeRoots'].map(SearchRequestAllOfFiltersRootsInner_1.SearchRequestAllOfFiltersRootsInnerToJSON)),
|
|
114
117
|
'tagIds': value['tagIds'],
|
|
118
|
+
'userId': value['userId'],
|
|
115
119
|
'userIds': value['userIds'],
|
|
116
120
|
'createdAfter': value['createdAfter'],
|
|
117
121
|
'createdBefore': value['createdBefore'],
|