@fbrc/sdk 0.0.12 → 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 +3 -0
- package/dist/apis/DefaultApi.d.ts +89 -0
- package/dist/apis/DefaultApi.js +249 -0
- package/dist/esm/apis/DefaultApi.d.ts +89 -0
- package/dist/esm/apis/DefaultApi.js +245 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/ChatbotModel.d.ts +2 -1
- package/dist/esm/models/ChatbotModel.js +2 -1
- 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/DeleteResourcesRequest.d.ts +38 -0
- package/dist/esm/models/DeleteResourcesRequest.js +45 -0
- package/dist/esm/models/DeleteSpace404Response.d.ts +52 -0
- package/dist/esm/models/DeleteSpace404Response.js +59 -0
- package/dist/esm/models/MarketingCampaignSource.d.ts +69 -0
- package/dist/esm/models/MarketingCampaignSource.js +68 -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/UtmSources.d.ts +24 -0
- package/dist/esm/models/UtmSources.js +42 -0
- package/dist/esm/models/V2WorkspaceDeletionConfirmationPostRequest.d.ts +32 -0
- package/dist/esm/models/V2WorkspaceDeletionConfirmationPostRequest.js +43 -0
- package/dist/esm/models/V2WorkspaceGet200Response.d.ts +39 -0
- package/dist/esm/models/V2WorkspaceGet200Response.js +48 -0
- package/dist/esm/models/V2WorkspaceGet200ResponseData.d.ts +33 -0
- package/dist/esm/models/V2WorkspaceGet200ResponseData.js +44 -0
- package/dist/esm/models/V2WorkspacePatchRequest.d.ts +50 -0
- package/dist/esm/models/V2WorkspacePatchRequest.js +47 -0
- package/dist/esm/models/V2WorkspacePostRequest.d.ts +64 -0
- package/dist/esm/models/V2WorkspacePostRequest.js +53 -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 +2 -1
- package/dist/models/ChatbotModel.js +2 -1
- 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/DeleteResourcesRequest.d.ts +38 -0
- package/dist/models/DeleteResourcesRequest.js +52 -0
- package/dist/models/DeleteSpace404Response.d.ts +52 -0
- package/dist/models/DeleteSpace404Response.js +67 -0
- package/dist/models/MarketingCampaignSource.d.ts +69 -0
- package/dist/models/MarketingCampaignSource.js +75 -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/UtmSources.d.ts +24 -0
- package/dist/models/UtmSources.js +50 -0
- package/dist/models/V2WorkspaceDeletionConfirmationPostRequest.d.ts +32 -0
- package/dist/models/V2WorkspaceDeletionConfirmationPostRequest.js +50 -0
- package/dist/models/V2WorkspaceGet200Response.d.ts +39 -0
- package/dist/models/V2WorkspaceGet200Response.js +55 -0
- package/dist/models/V2WorkspaceGet200ResponseData.d.ts +33 -0
- package/dist/models/V2WorkspaceGet200ResponseData.js +51 -0
- package/dist/models/V2WorkspacePatchRequest.d.ts +50 -0
- package/dist/models/V2WorkspacePatchRequest.js +54 -0
- package/dist/models/V2WorkspacePostRequest.d.ts +64 -0
- package/dist/models/V2WorkspacePostRequest.js +60 -0
- package/dist/models/V2WorkspacesPatchRequest.d.ts +50 -0
- package/dist/models/V2WorkspacesPatchRequest.js +72 -0
- package/dist/models/V2WorkspacesPostRequest.d.ts +64 -0
- package/dist/models/V2WorkspacesPostRequest.js +82 -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/index.ts +3 -1
- package/src/models/ChatbotModel.ts +2 -1
- 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
|
@@ -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 V2WorkspaceDeletionConfirmationPostRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface V2WorkspaceDeletionConfirmationPostRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof V2WorkspaceDeletionConfirmationPostRequest
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the V2WorkspaceDeletionConfirmationPostRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfV2WorkspaceDeletionConfirmationPostRequest(value: object): value is V2WorkspaceDeletionConfirmationPostRequest;
|
|
29
|
+
export declare function V2WorkspaceDeletionConfirmationPostRequestFromJSON(json: any): V2WorkspaceDeletionConfirmationPostRequest;
|
|
30
|
+
export declare function V2WorkspaceDeletionConfirmationPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WorkspaceDeletionConfirmationPostRequest;
|
|
31
|
+
export declare function V2WorkspaceDeletionConfirmationPostRequestToJSON(json: any): V2WorkspaceDeletionConfirmationPostRequest;
|
|
32
|
+
export declare function V2WorkspaceDeletionConfirmationPostRequestToJSONTyped(value?: V2WorkspaceDeletionConfirmationPostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the V2WorkspaceDeletionConfirmationPostRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfV2WorkspaceDeletionConfirmationPostRequest(value) {
|
|
18
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function V2WorkspaceDeletionConfirmationPostRequestFromJSON(json) {
|
|
23
|
+
return V2WorkspaceDeletionConfirmationPostRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function V2WorkspaceDeletionConfirmationPostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'token': json['token'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function V2WorkspaceDeletionConfirmationPostRequestToJSON(json) {
|
|
34
|
+
return V2WorkspaceDeletionConfirmationPostRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function V2WorkspaceDeletionConfirmationPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'token': value['token'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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 { V2WorkspaceGet200ResponseData } from './V2WorkspaceGet200ResponseData';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface V2WorkspaceGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface V2WorkspaceGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof V2WorkspaceGet200Response
|
|
23
|
+
*/
|
|
24
|
+
count: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {V2WorkspaceGet200ResponseData}
|
|
28
|
+
* @memberof V2WorkspaceGet200Response
|
|
29
|
+
*/
|
|
30
|
+
data: V2WorkspaceGet200ResponseData;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the V2WorkspaceGet200Response interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfV2WorkspaceGet200Response(value: object): value is V2WorkspaceGet200Response;
|
|
36
|
+
export declare function V2WorkspaceGet200ResponseFromJSON(json: any): V2WorkspaceGet200Response;
|
|
37
|
+
export declare function V2WorkspaceGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WorkspaceGet200Response;
|
|
38
|
+
export declare function V2WorkspaceGet200ResponseToJSON(json: any): V2WorkspaceGet200Response;
|
|
39
|
+
export declare function V2WorkspaceGet200ResponseToJSONTyped(value?: V2WorkspaceGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { V2WorkspaceGet200ResponseDataFromJSON, V2WorkspaceGet200ResponseDataToJSON, } from './V2WorkspaceGet200ResponseData';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the V2WorkspaceGet200Response interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfV2WorkspaceGet200Response(value) {
|
|
19
|
+
if (!('count' in value) || value['count'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function V2WorkspaceGet200ResponseFromJSON(json) {
|
|
26
|
+
return V2WorkspaceGet200ResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function V2WorkspaceGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'count': json['count'],
|
|
34
|
+
'data': V2WorkspaceGet200ResponseDataFromJSON(json['data']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function V2WorkspaceGet200ResponseToJSON(json) {
|
|
38
|
+
return V2WorkspaceGet200ResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function V2WorkspaceGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'count': value['count'],
|
|
46
|
+
'data': V2WorkspaceGet200ResponseDataToJSON(value['data']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { Workspace } from './Workspace';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface V2WorkspaceGet200ResponseData
|
|
17
|
+
*/
|
|
18
|
+
export interface V2WorkspaceGet200ResponseData {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<Workspace>}
|
|
22
|
+
* @memberof V2WorkspaceGet200ResponseData
|
|
23
|
+
*/
|
|
24
|
+
items: Array<Workspace>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the V2WorkspaceGet200ResponseData interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfV2WorkspaceGet200ResponseData(value: object): value is V2WorkspaceGet200ResponseData;
|
|
30
|
+
export declare function V2WorkspaceGet200ResponseDataFromJSON(json: any): V2WorkspaceGet200ResponseData;
|
|
31
|
+
export declare function V2WorkspaceGet200ResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WorkspaceGet200ResponseData;
|
|
32
|
+
export declare function V2WorkspaceGet200ResponseDataToJSON(json: any): V2WorkspaceGet200ResponseData;
|
|
33
|
+
export declare function V2WorkspaceGet200ResponseDataToJSONTyped(value?: V2WorkspaceGet200ResponseData | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { WorkspaceFromJSON, WorkspaceToJSON, } from './Workspace';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the V2WorkspaceGet200ResponseData interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfV2WorkspaceGet200ResponseData(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function V2WorkspaceGet200ResponseDataFromJSON(json) {
|
|
24
|
+
return V2WorkspaceGet200ResponseDataFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function V2WorkspaceGet200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'items': (json['items'].map(WorkspaceFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function V2WorkspaceGet200ResponseDataToJSON(json) {
|
|
35
|
+
return V2WorkspaceGet200ResponseDataToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function V2WorkspaceGet200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'items': (value['items'].map(WorkspaceToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 V2WorkspacePatchRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface V2WorkspacePatchRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof V2WorkspacePatchRequest
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof V2WorkspacePatchRequest
|
|
28
|
+
*/
|
|
29
|
+
description?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof V2WorkspacePatchRequest
|
|
34
|
+
*/
|
|
35
|
+
slug?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof V2WorkspacePatchRequest
|
|
40
|
+
*/
|
|
41
|
+
avatarStoragePath?: string | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the V2WorkspacePatchRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfV2WorkspacePatchRequest(value: object): value is V2WorkspacePatchRequest;
|
|
47
|
+
export declare function V2WorkspacePatchRequestFromJSON(json: any): V2WorkspacePatchRequest;
|
|
48
|
+
export declare function V2WorkspacePatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WorkspacePatchRequest;
|
|
49
|
+
export declare function V2WorkspacePatchRequestToJSON(json: any): V2WorkspacePatchRequest;
|
|
50
|
+
export declare function V2WorkspacePatchRequestToJSONTyped(value?: V2WorkspacePatchRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the V2WorkspacePatchRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfV2WorkspacePatchRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function V2WorkspacePatchRequestFromJSON(json) {
|
|
21
|
+
return V2WorkspacePatchRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function V2WorkspacePatchRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
29
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
30
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
31
|
+
'avatarStoragePath': json['avatarStoragePath'] == null ? undefined : json['avatarStoragePath'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function V2WorkspacePatchRequestToJSON(json) {
|
|
35
|
+
return V2WorkspacePatchRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function V2WorkspacePatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'title': value['title'],
|
|
43
|
+
'description': value['description'],
|
|
44
|
+
'slug': value['slug'],
|
|
45
|
+
'avatarStoragePath': value['avatarStoragePath'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { MarketingCampaignSource } from './MarketingCampaignSource';
|
|
13
|
+
import type { WorkspaceType } from './WorkspaceType';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface V2WorkspacePostRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface V2WorkspacePostRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof V2WorkspacePostRequest
|
|
24
|
+
*/
|
|
25
|
+
title?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {WorkspaceType}
|
|
29
|
+
* @memberof V2WorkspacePostRequest
|
|
30
|
+
*/
|
|
31
|
+
type?: WorkspaceType;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof V2WorkspacePostRequest
|
|
36
|
+
*/
|
|
37
|
+
description?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof V2WorkspacePostRequest
|
|
42
|
+
*/
|
|
43
|
+
slug?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {MarketingCampaignSource}
|
|
47
|
+
* @memberof V2WorkspacePostRequest
|
|
48
|
+
*/
|
|
49
|
+
marketing?: MarketingCampaignSource | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof V2WorkspacePostRequest
|
|
54
|
+
*/
|
|
55
|
+
referral?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the V2WorkspacePostRequest interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfV2WorkspacePostRequest(value: object): value is V2WorkspacePostRequest;
|
|
61
|
+
export declare function V2WorkspacePostRequestFromJSON(json: any): V2WorkspacePostRequest;
|
|
62
|
+
export declare function V2WorkspacePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): V2WorkspacePostRequest;
|
|
63
|
+
export declare function V2WorkspacePostRequestToJSON(json: any): V2WorkspacePostRequest;
|
|
64
|
+
export declare function V2WorkspacePostRequestToJSONTyped(value?: V2WorkspacePostRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { MarketingCampaignSourceFromJSON, MarketingCampaignSourceToJSON, } from './MarketingCampaignSource';
|
|
15
|
+
import { WorkspaceTypeFromJSON, WorkspaceTypeToJSON, } from './WorkspaceType';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the V2WorkspacePostRequest interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfV2WorkspacePostRequest(value) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function V2WorkspacePostRequestFromJSON(json) {
|
|
23
|
+
return V2WorkspacePostRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function V2WorkspacePostRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
31
|
+
'type': json['type'] == null ? undefined : WorkspaceTypeFromJSON(json['type']),
|
|
32
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
33
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
34
|
+
'marketing': json['marketing'] == null ? undefined : MarketingCampaignSourceFromJSON(json['marketing']),
|
|
35
|
+
'referral': json['referral'] == null ? undefined : json['referral'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function V2WorkspacePostRequestToJSON(json) {
|
|
39
|
+
return V2WorkspacePostRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function V2WorkspacePostRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'title': value['title'],
|
|
47
|
+
'type': WorkspaceTypeToJSON(value['type']),
|
|
48
|
+
'description': value['description'],
|
|
49
|
+
'slug': value['slug'],
|
|
50
|
+
'marketing': MarketingCampaignSourceToJSON(value['marketing']),
|
|
51
|
+
'referral': value['referral'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -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
|
},
|
|
@@ -21,10 +21,11 @@ export declare const ChatbotModel: {
|
|
|
21
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
|
|
24
|
+
readonly ClaudeOpus46: "claude-opus-4-6";
|
|
25
25
|
readonly Gemini3Flash: "gemini-3-flash";
|
|
26
26
|
readonly Gemini3Pro: "gemini-3-pro";
|
|
27
27
|
readonly Grok4: "grok-4";
|
|
28
|
+
readonly ClaudeOpus45: "claude-opus-4-5";
|
|
28
29
|
readonly Gpt4o: "gpt-4o";
|
|
29
30
|
readonly Gpt41: "gpt-4-1";
|
|
30
31
|
readonly Gemini25Flash: "gemini-2-5-flash";
|
|
@@ -31,10 +31,11 @@ exports.ChatbotModel = {
|
|
|
31
31
|
Gpt52Instant: 'gpt-5-2-instant',
|
|
32
32
|
ClaudeHaiku45: 'claude-haiku-4-5',
|
|
33
33
|
ClaudeSonnet45: 'claude-sonnet-4-5',
|
|
34
|
-
|
|
34
|
+
ClaudeOpus46: 'claude-opus-4-6',
|
|
35
35
|
Gemini3Flash: 'gemini-3-flash',
|
|
36
36
|
Gemini3Pro: 'gemini-3-pro',
|
|
37
37
|
Grok4: 'grok-4',
|
|
38
|
+
ClaudeOpus45: 'claude-opus-4-5',
|
|
38
39
|
Gpt4o: 'gpt-4o',
|
|
39
40
|
Gpt41: 'gpt-4-1',
|
|
40
41
|
Gemini25Flash: 'gemini-2-5-flash'
|
|
@@ -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
|
+
}
|