blanche-client-sdk 0.6.3 → 0.6.4
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 +4 -2
- package/README.md +5 -3
- package/dist/apis/ChatsApi.d.ts +17 -1
- package/dist/apis/ChatsApi.js +63 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdCancelPost200Response.d.ts +51 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdCancelPost200Response.js +66 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdCancelPost422Response.d.ts +32 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdCancelPost422Response.js +51 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/docs/ApiV1ChatsIdRunsRunIdCancelPost200Response.md +38 -0
- package/docs/{ApiV1ChatsIdReportsPost422Response.md → ApiV1ChatsIdRunsRunIdCancelPost422Response.md} +4 -4
- package/docs/ChatsApi.md +70 -0
- package/package.json +1 -1
- package/src/apis/ChatsApi.ts +64 -3
- package/src/apis/RecordsApi.ts +3 -3
- package/src/apis/TemplatesApi.ts +3 -3
- package/src/models/ApiV1ChatsIdRunsRunIdCancelPost200Response.ts +94 -0
- package/src/models/ApiV1ChatsIdRunsRunIdCancelPost422Response.ts +66 -0
- package/src/models/index.ts +2 -1
- package/dist/models/ApiV1ChatsIdReportsPost422Response.d.ts +0 -32
- package/dist/models/ApiV1ChatsIdReportsPost422Response.js +0 -51
- package/src/models/ApiV1ChatsIdReportsPost422Response.ts +0 -66
package/.openapi-generator/FILES
CHANGED
|
@@ -21,13 +21,14 @@ docs/ApiV1ChatsIdReportsPost200Response.md
|
|
|
21
21
|
docs/ApiV1ChatsIdReportsPost200ResponseRowsInner.md
|
|
22
22
|
docs/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.md
|
|
23
23
|
docs/ApiV1ChatsIdReportsPost410Response.md
|
|
24
|
-
docs/ApiV1ChatsIdReportsPost422Response.md
|
|
25
24
|
docs/ApiV1ChatsIdReportsPostRequest.md
|
|
26
25
|
docs/ApiV1ChatsIdReportsPostRequestPlanner.md
|
|
27
26
|
docs/ApiV1ChatsIdReportsPostRequestPlannerParams.md
|
|
28
27
|
docs/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.md
|
|
29
28
|
docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md
|
|
30
29
|
docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md
|
|
30
|
+
docs/ApiV1ChatsIdRunsRunIdCancelPost200Response.md
|
|
31
|
+
docs/ApiV1ChatsIdRunsRunIdCancelPost422Response.md
|
|
31
32
|
docs/ApiV1ChatsIdRunsRunIdCitationsGet200Response.md
|
|
32
33
|
docs/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.md
|
|
33
34
|
docs/ApiV1ChatsIdRunsRunIdGet200Response.md
|
|
@@ -123,13 +124,14 @@ src/models/ApiV1ChatsIdReportsPost200Response.ts
|
|
|
123
124
|
src/models/ApiV1ChatsIdReportsPost200ResponseRowsInner.ts
|
|
124
125
|
src/models/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.ts
|
|
125
126
|
src/models/ApiV1ChatsIdReportsPost410Response.ts
|
|
126
|
-
src/models/ApiV1ChatsIdReportsPost422Response.ts
|
|
127
127
|
src/models/ApiV1ChatsIdReportsPostRequest.ts
|
|
128
128
|
src/models/ApiV1ChatsIdReportsPostRequestPlanner.ts
|
|
129
129
|
src/models/ApiV1ChatsIdReportsPostRequestPlannerParams.ts
|
|
130
130
|
src/models/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.ts
|
|
131
131
|
src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.ts
|
|
132
132
|
src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.ts
|
|
133
|
+
src/models/ApiV1ChatsIdRunsRunIdCancelPost200Response.ts
|
|
134
|
+
src/models/ApiV1ChatsIdRunsRunIdCancelPost422Response.ts
|
|
133
135
|
src/models/ApiV1ChatsIdRunsRunIdCitationsGet200Response.ts
|
|
134
136
|
src/models/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.ts
|
|
135
137
|
src/models/ApiV1ChatsIdRunsRunIdGet200Response.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# blanche-client-sdk@0.6.
|
|
1
|
+
# blanche-client-sdk@0.6.4
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -64,6 +64,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
64
64
|
*ChatsApi* | [**apiV1ChatsIdReadPost**](docs/ChatsApi.md#apiv1chatsidreadpostoperation) | **POST** /api/v1/chats/{id}/read | Mark chat as read
|
|
65
65
|
*ChatsApi* | [**apiV1ChatsIdReportsPost**](docs/ChatsApi.md#apiv1chatsidreportspostoperation) | **POST** /api/v1/chats/{id}/reports | Run deterministic SQL report tool
|
|
66
66
|
*ChatsApi* | [**apiV1ChatsIdRunsRunIdArtifactsGet**](docs/ChatsApi.md#apiv1chatsidrunsrunidartifactsget) | **GET** /api/v1/chats/{id}/runs/{run_id}/artifacts | List artifacts for chat run
|
|
67
|
+
*ChatsApi* | [**apiV1ChatsIdRunsRunIdCancelPost**](docs/ChatsApi.md#apiv1chatsidrunsrunidcancelpost) | **POST** /api/v1/chats/{id}/runs/{run_id}/cancel | Cancel chat run
|
|
67
68
|
*ChatsApi* | [**apiV1ChatsIdRunsRunIdCitationsGet**](docs/ChatsApi.md#apiv1chatsidrunsrunidcitationsget) | **GET** /api/v1/chats/{id}/runs/{run_id}/citations | Get run citations
|
|
68
69
|
*ChatsApi* | [**apiV1ChatsIdRunsRunIdGet**](docs/ChatsApi.md#apiv1chatsidrunsrunidget) | **GET** /api/v1/chats/{id}/runs/{run_id} | Get chat run status
|
|
69
70
|
*ChatsApi* | [**apiV1ChatsIdRunsRunIdRetryPost**](docs/ChatsApi.md#apiv1chatsidrunsrunidretrypost) | **POST** /api/v1/chats/{id}/runs/{run_id}/retry | Retry chat run
|
|
@@ -123,13 +124,14 @@ All URIs are relative to *http://localhost:3000*
|
|
|
123
124
|
- [ApiV1ChatsIdReportsPost200ResponseRowsInner](docs/ApiV1ChatsIdReportsPost200ResponseRowsInner.md)
|
|
124
125
|
- [ApiV1ChatsIdReportsPost200ResponseSourceMetadata](docs/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.md)
|
|
125
126
|
- [ApiV1ChatsIdReportsPost410Response](docs/ApiV1ChatsIdReportsPost410Response.md)
|
|
126
|
-
- [ApiV1ChatsIdReportsPost422Response](docs/ApiV1ChatsIdReportsPost422Response.md)
|
|
127
127
|
- [ApiV1ChatsIdReportsPostRequest](docs/ApiV1ChatsIdReportsPostRequest.md)
|
|
128
128
|
- [ApiV1ChatsIdReportsPostRequestPlanner](docs/ApiV1ChatsIdReportsPostRequestPlanner.md)
|
|
129
129
|
- [ApiV1ChatsIdReportsPostRequestPlannerParams](docs/ApiV1ChatsIdReportsPostRequestPlannerParams.md)
|
|
130
130
|
- [ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner](docs/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.md)
|
|
131
131
|
- [ApiV1ChatsIdRunsRunIdArtifactsGet200Response](docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md)
|
|
132
132
|
- [ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner](docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md)
|
|
133
|
+
- [ApiV1ChatsIdRunsRunIdCancelPost200Response](docs/ApiV1ChatsIdRunsRunIdCancelPost200Response.md)
|
|
134
|
+
- [ApiV1ChatsIdRunsRunIdCancelPost422Response](docs/ApiV1ChatsIdRunsRunIdCancelPost422Response.md)
|
|
133
135
|
- [ApiV1ChatsIdRunsRunIdCitationsGet200Response](docs/ApiV1ChatsIdRunsRunIdCitationsGet200Response.md)
|
|
134
136
|
- [ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner](docs/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.md)
|
|
135
137
|
- [ApiV1ChatsIdRunsRunIdGet200Response](docs/ApiV1ChatsIdRunsRunIdGet200Response.md)
|
|
@@ -202,7 +204,7 @@ and is automatically generated by the
|
|
|
202
204
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
203
205
|
|
|
204
206
|
- API version: `v1`
|
|
205
|
-
- Package version: `0.6.
|
|
207
|
+
- Package version: `0.6.4`
|
|
206
208
|
- Generator version: `7.20.0`
|
|
207
209
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
208
210
|
|
package/dist/apis/ChatsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiV1ChatsChatIdMessagesGet200Response, ApiV1ChatsChatIdMessagesPost201Response, ApiV1ChatsChatIdMessagesPostRequest, ApiV1ChatsChatIdMessagesSyncGet200Response, ApiV1ChatsGet200Response, ApiV1ChatsIdArtifactsGet200Response, ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response, ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response, ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest, ApiV1ChatsIdReadPost200Response, ApiV1ChatsIdReadPostRequest, ApiV1ChatsIdReportsPost200Response, ApiV1ChatsIdReportsPostRequest, ApiV1ChatsIdRunsRunIdArtifactsGet200Response, ApiV1ChatsIdRunsRunIdCitationsGet200Response, ApiV1ChatsIdRunsRunIdGet200Response, ApiV1ChatsIdRunsRunIdRetryPost201Response, ApiV1ChatsIdSavedReportsGet200Response, ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner, ApiV1ChatsIdSavedReportsPostRequest, ApiV1ChatsPlannerContractGet200Response, ApiV1ChatsPlannerPost200Response, ApiV1ChatsPlannerPostRequest, ApiV1ChatsPost201Response, ApiV1ChatsPostRequest, ApiV1ChatsRealtimeContractGet200Response, ApiV1ChatsSyncGet200Response } from '../models/index';
|
|
13
|
+
import type { ApiV1ChatsChatIdMessagesGet200Response, ApiV1ChatsChatIdMessagesPost201Response, ApiV1ChatsChatIdMessagesPostRequest, ApiV1ChatsChatIdMessagesSyncGet200Response, ApiV1ChatsGet200Response, ApiV1ChatsIdArtifactsGet200Response, ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response, ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response, ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest, ApiV1ChatsIdReadPost200Response, ApiV1ChatsIdReadPostRequest, ApiV1ChatsIdReportsPost200Response, ApiV1ChatsIdReportsPostRequest, ApiV1ChatsIdRunsRunIdArtifactsGet200Response, ApiV1ChatsIdRunsRunIdCancelPost200Response, ApiV1ChatsIdRunsRunIdCitationsGet200Response, ApiV1ChatsIdRunsRunIdGet200Response, ApiV1ChatsIdRunsRunIdRetryPost201Response, ApiV1ChatsIdSavedReportsGet200Response, ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner, ApiV1ChatsIdSavedReportsPostRequest, ApiV1ChatsPlannerContractGet200Response, ApiV1ChatsPlannerPost200Response, ApiV1ChatsPlannerPostRequest, ApiV1ChatsPost201Response, ApiV1ChatsPostRequest, ApiV1ChatsRealtimeContractGet200Response, ApiV1ChatsSyncGet200Response } from '../models/index';
|
|
14
14
|
export interface ApiV1ChatsChatIdMessagesGetRequest {
|
|
15
15
|
chatId: string;
|
|
16
16
|
limit?: number;
|
|
@@ -53,6 +53,10 @@ export interface ApiV1ChatsIdRunsRunIdArtifactsGetRequest {
|
|
|
53
53
|
id: string;
|
|
54
54
|
runId: string;
|
|
55
55
|
}
|
|
56
|
+
export interface ApiV1ChatsIdRunsRunIdCancelPostRequest {
|
|
57
|
+
id: string;
|
|
58
|
+
runId: string;
|
|
59
|
+
}
|
|
56
60
|
export interface ApiV1ChatsIdRunsRunIdCitationsGetRequest {
|
|
57
61
|
id: string;
|
|
58
62
|
runId: string;
|
|
@@ -206,6 +210,18 @@ export declare class ChatsApi extends runtime.BaseAPI {
|
|
|
206
210
|
* List artifacts for chat run
|
|
207
211
|
*/
|
|
208
212
|
apiV1ChatsIdRunsRunIdArtifactsGet(requestParameters: ApiV1ChatsIdRunsRunIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsIdRunsRunIdArtifactsGet200Response>;
|
|
213
|
+
/**
|
|
214
|
+
* Creates request options for apiV1ChatsIdRunsRunIdCancelPost without sending the request
|
|
215
|
+
*/
|
|
216
|
+
apiV1ChatsIdRunsRunIdCancelPostRequestOpts(requestParameters: ApiV1ChatsIdRunsRunIdCancelPostRequest): Promise<runtime.RequestOpts>;
|
|
217
|
+
/**
|
|
218
|
+
* Cancel chat run
|
|
219
|
+
*/
|
|
220
|
+
apiV1ChatsIdRunsRunIdCancelPostRaw(requestParameters: ApiV1ChatsIdRunsRunIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1ChatsIdRunsRunIdCancelPost200Response>>;
|
|
221
|
+
/**
|
|
222
|
+
* Cancel chat run
|
|
223
|
+
*/
|
|
224
|
+
apiV1ChatsIdRunsRunIdCancelPost(requestParameters: ApiV1ChatsIdRunsRunIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsIdRunsRunIdCancelPost200Response>;
|
|
209
225
|
/**
|
|
210
226
|
* Creates request options for apiV1ChatsIdRunsRunIdCitationsGet without sending the request
|
|
211
227
|
*/
|
package/dist/apis/ChatsApi.js
CHANGED
|
@@ -700,6 +700,69 @@ var ChatsApi = /** @class */ (function (_super) {
|
|
|
700
700
|
});
|
|
701
701
|
});
|
|
702
702
|
};
|
|
703
|
+
/**
|
|
704
|
+
* Creates request options for apiV1ChatsIdRunsRunIdCancelPost without sending the request
|
|
705
|
+
*/
|
|
706
|
+
ChatsApi.prototype.apiV1ChatsIdRunsRunIdCancelPostRequestOpts = function (requestParameters) {
|
|
707
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
708
|
+
var queryParameters, headerParameters, urlPath;
|
|
709
|
+
return __generator(this, function (_a) {
|
|
710
|
+
if (requestParameters['id'] == null) {
|
|
711
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1ChatsIdRunsRunIdCancelPost().');
|
|
712
|
+
}
|
|
713
|
+
if (requestParameters['runId'] == null) {
|
|
714
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling apiV1ChatsIdRunsRunIdCancelPost().');
|
|
715
|
+
}
|
|
716
|
+
queryParameters = {};
|
|
717
|
+
headerParameters = {};
|
|
718
|
+
urlPath = "/api/v1/chats/{id}/runs/{run_id}/cancel";
|
|
719
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
720
|
+
urlPath = urlPath.replace("{".concat("run_id", "}"), encodeURIComponent(String(requestParameters['runId'])));
|
|
721
|
+
return [2 /*return*/, {
|
|
722
|
+
path: urlPath,
|
|
723
|
+
method: 'POST',
|
|
724
|
+
headers: headerParameters,
|
|
725
|
+
query: queryParameters,
|
|
726
|
+
}];
|
|
727
|
+
});
|
|
728
|
+
});
|
|
729
|
+
};
|
|
730
|
+
/**
|
|
731
|
+
* Cancel chat run
|
|
732
|
+
*/
|
|
733
|
+
ChatsApi.prototype.apiV1ChatsIdRunsRunIdCancelPostRaw = function (requestParameters, initOverrides) {
|
|
734
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
735
|
+
var requestOptions, response;
|
|
736
|
+
return __generator(this, function (_a) {
|
|
737
|
+
switch (_a.label) {
|
|
738
|
+
case 0: return [4 /*yield*/, this.apiV1ChatsIdRunsRunIdCancelPostRequestOpts(requestParameters)];
|
|
739
|
+
case 1:
|
|
740
|
+
requestOptions = _a.sent();
|
|
741
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
742
|
+
case 2:
|
|
743
|
+
response = _a.sent();
|
|
744
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSON)(jsonValue); })];
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
});
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
* Cancel chat run
|
|
751
|
+
*/
|
|
752
|
+
ChatsApi.prototype.apiV1ChatsIdRunsRunIdCancelPost = function (requestParameters, initOverrides) {
|
|
753
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
754
|
+
var response;
|
|
755
|
+
return __generator(this, function (_a) {
|
|
756
|
+
switch (_a.label) {
|
|
757
|
+
case 0: return [4 /*yield*/, this.apiV1ChatsIdRunsRunIdCancelPostRaw(requestParameters, initOverrides)];
|
|
758
|
+
case 1:
|
|
759
|
+
response = _a.sent();
|
|
760
|
+
return [4 /*yield*/, response.value()];
|
|
761
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
});
|
|
765
|
+
};
|
|
703
766
|
/**
|
|
704
767
|
* Creates request options for apiV1ChatsIdRunsRunIdCitationsGet without sending the request
|
|
705
768
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blanche API
|
|
3
|
+
* AI-powered life tracking system API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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 ApiV1ChatsIdRunsRunIdCancelPost200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1ChatsIdRunsRunIdCancelPost200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1ChatsIdRunsRunIdCancelPost200Response
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum}
|
|
27
|
+
* @memberof ApiV1ChatsIdRunsRunIdCancelPost200Response
|
|
28
|
+
*/
|
|
29
|
+
status: ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof ApiV1ChatsIdRunsRunIdCancelPost200Response
|
|
34
|
+
*/
|
|
35
|
+
metadata: object;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum: {
|
|
41
|
+
readonly Cancelled: "cancelled";
|
|
42
|
+
};
|
|
43
|
+
export type ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum = typeof ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum[keyof typeof ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum];
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiV1ChatsIdRunsRunIdCancelPost200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiV1ChatsIdRunsRunIdCancelPost200Response(value: object): value is ApiV1ChatsIdRunsRunIdCancelPost200Response;
|
|
48
|
+
export declare function ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSON(json: any): ApiV1ChatsIdRunsRunIdCancelPost200Response;
|
|
49
|
+
export declare function ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdRunsRunIdCancelPost200Response;
|
|
50
|
+
export declare function ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSON(json: any): ApiV1ChatsIdRunsRunIdCancelPost200Response;
|
|
51
|
+
export declare function ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSONTyped(value?: ApiV1ChatsIdRunsRunIdCancelPost200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Blanche API
|
|
6
|
+
* AI-powered life tracking system API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
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.ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfApiV1ChatsIdRunsRunIdCancelPost200Response = instanceOfApiV1ChatsIdRunsRunIdCancelPost200Response;
|
|
18
|
+
exports.ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSON = ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSON;
|
|
19
|
+
exports.ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSONTyped = ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSONTyped;
|
|
20
|
+
exports.ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSON = ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSON;
|
|
21
|
+
exports.ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSONTyped = ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum = {
|
|
26
|
+
Cancelled: 'cancelled'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the ApiV1ChatsIdRunsRunIdCancelPost200Response interface.
|
|
30
|
+
*/
|
|
31
|
+
function instanceOfApiV1ChatsIdRunsRunIdCancelPost200Response(value) {
|
|
32
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSON(json) {
|
|
41
|
+
return ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'status': json['status'],
|
|
50
|
+
'metadata': json['metadata'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSON(json) {
|
|
54
|
+
return ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'status': value['status'],
|
|
64
|
+
'metadata': value['metadata'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Blanche API
|
|
3
|
+
* AI-powered life tracking system API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
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 ApiV1ChatsIdRunsRunIdCancelPost422Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1ChatsIdRunsRunIdCancelPost422Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ApiV1ChatsIdRunsRunIdCancelPost422Response
|
|
22
|
+
*/
|
|
23
|
+
errors: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiV1ChatsIdRunsRunIdCancelPost422Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiV1ChatsIdRunsRunIdCancelPost422Response(value: object): value is ApiV1ChatsIdRunsRunIdCancelPost422Response;
|
|
29
|
+
export declare function ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSON(json: any): ApiV1ChatsIdRunsRunIdCancelPost422Response;
|
|
30
|
+
export declare function ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdRunsRunIdCancelPost422Response;
|
|
31
|
+
export declare function ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSON(json: any): ApiV1ChatsIdRunsRunIdCancelPost422Response;
|
|
32
|
+
export declare function ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSONTyped(value?: ApiV1ChatsIdRunsRunIdCancelPost422Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Blanche API
|
|
6
|
+
* AI-powered life tracking system API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
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.instanceOfApiV1ChatsIdRunsRunIdCancelPost422Response = instanceOfApiV1ChatsIdRunsRunIdCancelPost422Response;
|
|
17
|
+
exports.ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSON = ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSON;
|
|
18
|
+
exports.ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSONTyped = ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSON = ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSON;
|
|
20
|
+
exports.ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSONTyped = ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1ChatsIdRunsRunIdCancelPost422Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1ChatsIdRunsRunIdCancelPost422Response(value) {
|
|
25
|
+
if (!('errors' in value) || value['errors'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSON(json) {
|
|
30
|
+
return ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'errors': json['errors'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSON(json) {
|
|
41
|
+
return ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'errors': value['errors'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,13 +17,14 @@ export * from './ApiV1ChatsIdReportsPost200Response';
|
|
|
17
17
|
export * from './ApiV1ChatsIdReportsPost200ResponseRowsInner';
|
|
18
18
|
export * from './ApiV1ChatsIdReportsPost200ResponseSourceMetadata';
|
|
19
19
|
export * from './ApiV1ChatsIdReportsPost410Response';
|
|
20
|
-
export * from './ApiV1ChatsIdReportsPost422Response';
|
|
21
20
|
export * from './ApiV1ChatsIdReportsPostRequest';
|
|
22
21
|
export * from './ApiV1ChatsIdReportsPostRequestPlanner';
|
|
23
22
|
export * from './ApiV1ChatsIdReportsPostRequestPlannerParams';
|
|
24
23
|
export * from './ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner';
|
|
25
24
|
export * from './ApiV1ChatsIdRunsRunIdArtifactsGet200Response';
|
|
26
25
|
export * from './ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner';
|
|
26
|
+
export * from './ApiV1ChatsIdRunsRunIdCancelPost200Response';
|
|
27
|
+
export * from './ApiV1ChatsIdRunsRunIdCancelPost422Response';
|
|
27
28
|
export * from './ApiV1ChatsIdRunsRunIdCitationsGet200Response';
|
|
28
29
|
export * from './ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner';
|
|
29
30
|
export * from './ApiV1ChatsIdRunsRunIdGet200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -35,13 +35,14 @@ __exportStar(require("./ApiV1ChatsIdReportsPost200Response"), exports);
|
|
|
35
35
|
__exportStar(require("./ApiV1ChatsIdReportsPost200ResponseRowsInner"), exports);
|
|
36
36
|
__exportStar(require("./ApiV1ChatsIdReportsPost200ResponseSourceMetadata"), exports);
|
|
37
37
|
__exportStar(require("./ApiV1ChatsIdReportsPost410Response"), exports);
|
|
38
|
-
__exportStar(require("./ApiV1ChatsIdReportsPost422Response"), exports);
|
|
39
38
|
__exportStar(require("./ApiV1ChatsIdReportsPostRequest"), exports);
|
|
40
39
|
__exportStar(require("./ApiV1ChatsIdReportsPostRequestPlanner"), exports);
|
|
41
40
|
__exportStar(require("./ApiV1ChatsIdReportsPostRequestPlannerParams"), exports);
|
|
42
41
|
__exportStar(require("./ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner"), exports);
|
|
43
42
|
__exportStar(require("./ApiV1ChatsIdRunsRunIdArtifactsGet200Response"), exports);
|
|
44
43
|
__exportStar(require("./ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner"), exports);
|
|
44
|
+
__exportStar(require("./ApiV1ChatsIdRunsRunIdCancelPost200Response"), exports);
|
|
45
|
+
__exportStar(require("./ApiV1ChatsIdRunsRunIdCancelPost422Response"), exports);
|
|
45
46
|
__exportStar(require("./ApiV1ChatsIdRunsRunIdCitationsGet200Response"), exports);
|
|
46
47
|
__exportStar(require("./ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner"), exports);
|
|
47
48
|
__exportStar(require("./ApiV1ChatsIdRunsRunIdGet200Response"), exports);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# ApiV1ChatsIdRunsRunIdCancelPost200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`status` | string
|
|
11
|
+
`metadata` | object
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { ApiV1ChatsIdRunsRunIdCancelPost200Response } from 'blanche-client-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"status": null,
|
|
22
|
+
"metadata": null,
|
|
23
|
+
} satisfies ApiV1ChatsIdRunsRunIdCancelPost200Response
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApiV1ChatsIdRunsRunIdCancelPost200Response
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
package/docs/{ApiV1ChatsIdReportsPost422Response.md → ApiV1ChatsIdRunsRunIdCancelPost422Response.md}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ApiV1ChatsIdRunsRunIdCancelPost422Response
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -11,12 +11,12 @@ Name | Type
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ApiV1ChatsIdRunsRunIdCancelPost422Response } from 'blanche-client-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"errors": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies ApiV1ChatsIdRunsRunIdCancelPost422Response
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApiV1ChatsIdRunsRunIdCancelPost422Response
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
package/docs/ChatsApi.md
CHANGED
|
@@ -14,6 +14,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
14
14
|
| [**apiV1ChatsIdReadPost**](ChatsApi.md#apiv1chatsidreadpostoperation) | **POST** /api/v1/chats/{id}/read | Mark chat as read |
|
|
15
15
|
| [**apiV1ChatsIdReportsPost**](ChatsApi.md#apiv1chatsidreportspostoperation) | **POST** /api/v1/chats/{id}/reports | Run deterministic SQL report tool |
|
|
16
16
|
| [**apiV1ChatsIdRunsRunIdArtifactsGet**](ChatsApi.md#apiv1chatsidrunsrunidartifactsget) | **GET** /api/v1/chats/{id}/runs/{run_id}/artifacts | List artifacts for chat run |
|
|
17
|
+
| [**apiV1ChatsIdRunsRunIdCancelPost**](ChatsApi.md#apiv1chatsidrunsrunidcancelpost) | **POST** /api/v1/chats/{id}/runs/{run_id}/cancel | Cancel chat run |
|
|
17
18
|
| [**apiV1ChatsIdRunsRunIdCitationsGet**](ChatsApi.md#apiv1chatsidrunsrunidcitationsget) | **GET** /api/v1/chats/{id}/runs/{run_id}/citations | Get run citations |
|
|
18
19
|
| [**apiV1ChatsIdRunsRunIdGet**](ChatsApi.md#apiv1chatsidrunsrunidget) | **GET** /api/v1/chats/{id}/runs/{run_id} | Get chat run status |
|
|
19
20
|
| [**apiV1ChatsIdRunsRunIdRetryPost**](ChatsApi.md#apiv1chatsidrunsrunidretrypost) | **POST** /api/v1/chats/{id}/runs/{run_id}/retry | Retry chat run |
|
|
@@ -715,6 +716,75 @@ No authorization required
|
|
|
715
716
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
716
717
|
|
|
717
718
|
|
|
719
|
+
## apiV1ChatsIdRunsRunIdCancelPost
|
|
720
|
+
|
|
721
|
+
> ApiV1ChatsIdRunsRunIdCancelPost200Response apiV1ChatsIdRunsRunIdCancelPost(id, runId)
|
|
722
|
+
|
|
723
|
+
Cancel chat run
|
|
724
|
+
|
|
725
|
+
### Example
|
|
726
|
+
|
|
727
|
+
```ts
|
|
728
|
+
import {
|
|
729
|
+
Configuration,
|
|
730
|
+
ChatsApi,
|
|
731
|
+
} from 'blanche-client-sdk';
|
|
732
|
+
import type { ApiV1ChatsIdRunsRunIdCancelPostRequest } from 'blanche-client-sdk';
|
|
733
|
+
|
|
734
|
+
async function example() {
|
|
735
|
+
console.log("🚀 Testing blanche-client-sdk SDK...");
|
|
736
|
+
const api = new ChatsApi();
|
|
737
|
+
|
|
738
|
+
const body = {
|
|
739
|
+
// string
|
|
740
|
+
id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
741
|
+
// string
|
|
742
|
+
runId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
743
|
+
} satisfies ApiV1ChatsIdRunsRunIdCancelPostRequest;
|
|
744
|
+
|
|
745
|
+
try {
|
|
746
|
+
const data = await api.apiV1ChatsIdRunsRunIdCancelPost(body);
|
|
747
|
+
console.log(data);
|
|
748
|
+
} catch (error) {
|
|
749
|
+
console.error(error);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
// Run the test
|
|
754
|
+
example().catch(console.error);
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
### Parameters
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
| Name | Type | Description | Notes |
|
|
761
|
+
|------------- | ------------- | ------------- | -------------|
|
|
762
|
+
| **id** | `string` | | [Defaults to `undefined`] |
|
|
763
|
+
| **runId** | `string` | | [Defaults to `undefined`] |
|
|
764
|
+
|
|
765
|
+
### Return type
|
|
766
|
+
|
|
767
|
+
[**ApiV1ChatsIdRunsRunIdCancelPost200Response**](ApiV1ChatsIdRunsRunIdCancelPost200Response.md)
|
|
768
|
+
|
|
769
|
+
### Authorization
|
|
770
|
+
|
|
771
|
+
No authorization required
|
|
772
|
+
|
|
773
|
+
### HTTP request headers
|
|
774
|
+
|
|
775
|
+
- **Content-Type**: Not defined
|
|
776
|
+
- **Accept**: `application/json`
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
### HTTP response details
|
|
780
|
+
| Status code | Description | Response headers |
|
|
781
|
+
|-------------|-------------|------------------|
|
|
782
|
+
| **200** | run cancelled | - |
|
|
783
|
+
| **422** | invalid run transition | - |
|
|
784
|
+
|
|
785
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
786
|
+
|
|
787
|
+
|
|
718
788
|
## apiV1ChatsIdRunsRunIdCitationsGet
|
|
719
789
|
|
|
720
790
|
> ApiV1ChatsIdRunsRunIdCitationsGet200Response apiV1ChatsIdRunsRunIdCitationsGet(id, runId)
|
package/package.json
CHANGED
package/src/apis/ChatsApi.ts
CHANGED
|
@@ -28,9 +28,10 @@ import type {
|
|
|
28
28
|
ApiV1ChatsIdReadPostRequest,
|
|
29
29
|
ApiV1ChatsIdReportsPost200Response,
|
|
30
30
|
ApiV1ChatsIdReportsPost410Response,
|
|
31
|
-
ApiV1ChatsIdReportsPost422Response,
|
|
32
31
|
ApiV1ChatsIdReportsPostRequest,
|
|
33
32
|
ApiV1ChatsIdRunsRunIdArtifactsGet200Response,
|
|
33
|
+
ApiV1ChatsIdRunsRunIdCancelPost200Response,
|
|
34
|
+
ApiV1ChatsIdRunsRunIdCancelPost422Response,
|
|
34
35
|
ApiV1ChatsIdRunsRunIdCitationsGet200Response,
|
|
35
36
|
ApiV1ChatsIdRunsRunIdGet200Response,
|
|
36
37
|
ApiV1ChatsIdRunsRunIdRetryPost201Response,
|
|
@@ -72,12 +73,14 @@ import {
|
|
|
72
73
|
ApiV1ChatsIdReportsPost200ResponseToJSON,
|
|
73
74
|
ApiV1ChatsIdReportsPost410ResponseFromJSON,
|
|
74
75
|
ApiV1ChatsIdReportsPost410ResponseToJSON,
|
|
75
|
-
ApiV1ChatsIdReportsPost422ResponseFromJSON,
|
|
76
|
-
ApiV1ChatsIdReportsPost422ResponseToJSON,
|
|
77
76
|
ApiV1ChatsIdReportsPostRequestFromJSON,
|
|
78
77
|
ApiV1ChatsIdReportsPostRequestToJSON,
|
|
79
78
|
ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSON,
|
|
80
79
|
ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSON,
|
|
80
|
+
ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSON,
|
|
81
|
+
ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSON,
|
|
82
|
+
ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSON,
|
|
83
|
+
ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSON,
|
|
81
84
|
ApiV1ChatsIdRunsRunIdCitationsGet200ResponseFromJSON,
|
|
82
85
|
ApiV1ChatsIdRunsRunIdCitationsGet200ResponseToJSON,
|
|
83
86
|
ApiV1ChatsIdRunsRunIdGet200ResponseFromJSON,
|
|
@@ -158,6 +161,11 @@ export interface ApiV1ChatsIdRunsRunIdArtifactsGetRequest {
|
|
|
158
161
|
runId: string;
|
|
159
162
|
}
|
|
160
163
|
|
|
164
|
+
export interface ApiV1ChatsIdRunsRunIdCancelPostRequest {
|
|
165
|
+
id: string;
|
|
166
|
+
runId: string;
|
|
167
|
+
}
|
|
168
|
+
|
|
161
169
|
export interface ApiV1ChatsIdRunsRunIdCitationsGetRequest {
|
|
162
170
|
id: string;
|
|
163
171
|
runId: string;
|
|
@@ -702,6 +710,59 @@ export class ChatsApi extends runtime.BaseAPI {
|
|
|
702
710
|
return await response.value();
|
|
703
711
|
}
|
|
704
712
|
|
|
713
|
+
/**
|
|
714
|
+
* Creates request options for apiV1ChatsIdRunsRunIdCancelPost without sending the request
|
|
715
|
+
*/
|
|
716
|
+
async apiV1ChatsIdRunsRunIdCancelPostRequestOpts(requestParameters: ApiV1ChatsIdRunsRunIdCancelPostRequest): Promise<runtime.RequestOpts> {
|
|
717
|
+
if (requestParameters['id'] == null) {
|
|
718
|
+
throw new runtime.RequiredError(
|
|
719
|
+
'id',
|
|
720
|
+
'Required parameter "id" was null or undefined when calling apiV1ChatsIdRunsRunIdCancelPost().'
|
|
721
|
+
);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
if (requestParameters['runId'] == null) {
|
|
725
|
+
throw new runtime.RequiredError(
|
|
726
|
+
'runId',
|
|
727
|
+
'Required parameter "runId" was null or undefined when calling apiV1ChatsIdRunsRunIdCancelPost().'
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
const queryParameters: any = {};
|
|
732
|
+
|
|
733
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
let urlPath = `/api/v1/chats/{id}/runs/{run_id}/cancel`;
|
|
737
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
738
|
+
urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
|
|
739
|
+
|
|
740
|
+
return {
|
|
741
|
+
path: urlPath,
|
|
742
|
+
method: 'POST',
|
|
743
|
+
headers: headerParameters,
|
|
744
|
+
query: queryParameters,
|
|
745
|
+
};
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Cancel chat run
|
|
750
|
+
*/
|
|
751
|
+
async apiV1ChatsIdRunsRunIdCancelPostRaw(requestParameters: ApiV1ChatsIdRunsRunIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1ChatsIdRunsRunIdCancelPost200Response>> {
|
|
752
|
+
const requestOptions = await this.apiV1ChatsIdRunsRunIdCancelPostRequestOpts(requestParameters);
|
|
753
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
754
|
+
|
|
755
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSON(jsonValue));
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* Cancel chat run
|
|
760
|
+
*/
|
|
761
|
+
async apiV1ChatsIdRunsRunIdCancelPost(requestParameters: ApiV1ChatsIdRunsRunIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsIdRunsRunIdCancelPost200Response> {
|
|
762
|
+
const response = await this.apiV1ChatsIdRunsRunIdCancelPostRaw(requestParameters, initOverrides);
|
|
763
|
+
return await response.value();
|
|
764
|
+
}
|
|
765
|
+
|
|
705
766
|
/**
|
|
706
767
|
* Creates request options for apiV1ChatsIdRunsRunIdCitationsGet without sending the request
|
|
707
768
|
*/
|
package/src/apis/RecordsApi.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
ApiV1ChatsIdRunsRunIdCancelPost422Response,
|
|
19
19
|
ApiV1RecordsGet200Response,
|
|
20
20
|
ApiV1RecordsIdDelete200Response,
|
|
21
21
|
ApiV1RecordsIdGet200Response,
|
|
@@ -23,8 +23,8 @@ import type {
|
|
|
23
23
|
ApiV1RecordsIdPutRequest,
|
|
24
24
|
} from '../models/index';
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSON,
|
|
27
|
+
ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSON,
|
|
28
28
|
ApiV1RecordsGet200ResponseFromJSON,
|
|
29
29
|
ApiV1RecordsGet200ResponseToJSON,
|
|
30
30
|
ApiV1RecordsIdDelete200ResponseFromJSON,
|
package/src/apis/TemplatesApi.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiV1ChatsIdReportsPost410Response,
|
|
19
|
-
|
|
19
|
+
ApiV1ChatsIdRunsRunIdCancelPost422Response,
|
|
20
20
|
ApiV1TemplatesGet200Response,
|
|
21
21
|
ApiV1TemplatesIdGet200Response,
|
|
22
22
|
ApiV1TemplatesIdPutRequest,
|
|
@@ -26,8 +26,8 @@ import type {
|
|
|
26
26
|
import {
|
|
27
27
|
ApiV1ChatsIdReportsPost410ResponseFromJSON,
|
|
28
28
|
ApiV1ChatsIdReportsPost410ResponseToJSON,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSON,
|
|
30
|
+
ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSON,
|
|
31
31
|
ApiV1TemplatesGet200ResponseFromJSON,
|
|
32
32
|
ApiV1TemplatesGet200ResponseToJSON,
|
|
33
33
|
ApiV1TemplatesIdGet200ResponseFromJSON,
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Blanche API
|
|
5
|
+
* AI-powered life tracking system API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiV1ChatsIdRunsRunIdCancelPost200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1ChatsIdRunsRunIdCancelPost200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1ChatsIdRunsRunIdCancelPost200Response
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum}
|
|
31
|
+
* @memberof ApiV1ChatsIdRunsRunIdCancelPost200Response
|
|
32
|
+
*/
|
|
33
|
+
status: ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof ApiV1ChatsIdRunsRunIdCancelPost200Response
|
|
38
|
+
*/
|
|
39
|
+
metadata: object;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum = {
|
|
47
|
+
Cancelled: 'cancelled'
|
|
48
|
+
} as const;
|
|
49
|
+
export type ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum = typeof ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum[keyof typeof ApiV1ChatsIdRunsRunIdCancelPost200ResponseStatusEnum];
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the ApiV1ChatsIdRunsRunIdCancelPost200Response interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfApiV1ChatsIdRunsRunIdCancelPost200Response(value: object): value is ApiV1ChatsIdRunsRunIdCancelPost200Response {
|
|
56
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
57
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
58
|
+
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSON(json: any): ApiV1ChatsIdRunsRunIdCancelPost200Response {
|
|
63
|
+
return ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiV1ChatsIdRunsRunIdCancelPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdRunsRunIdCancelPost200Response {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'id': json['id'],
|
|
73
|
+
'status': json['status'],
|
|
74
|
+
'metadata': json['metadata'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSON(json: any): ApiV1ChatsIdRunsRunIdCancelPost200Response {
|
|
79
|
+
return ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ApiV1ChatsIdRunsRunIdCancelPost200ResponseToJSONTyped(value?: ApiV1ChatsIdRunsRunIdCancelPost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'id': value['id'],
|
|
90
|
+
'status': value['status'],
|
|
91
|
+
'metadata': value['metadata'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Blanche API
|
|
5
|
+
* AI-powered life tracking system API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiV1ChatsIdRunsRunIdCancelPost422Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1ChatsIdRunsRunIdCancelPost422Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof ApiV1ChatsIdRunsRunIdCancelPost422Response
|
|
26
|
+
*/
|
|
27
|
+
errors: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiV1ChatsIdRunsRunIdCancelPost422Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiV1ChatsIdRunsRunIdCancelPost422Response(value: object): value is ApiV1ChatsIdRunsRunIdCancelPost422Response {
|
|
34
|
+
if (!('errors' in value) || value['errors'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSON(json: any): ApiV1ChatsIdRunsRunIdCancelPost422Response {
|
|
39
|
+
return ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiV1ChatsIdRunsRunIdCancelPost422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdRunsRunIdCancelPost422Response {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'errors': json['errors'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSON(json: any): ApiV1ChatsIdRunsRunIdCancelPost422Response {
|
|
53
|
+
return ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiV1ChatsIdRunsRunIdCancelPost422ResponseToJSONTyped(value?: ApiV1ChatsIdRunsRunIdCancelPost422Response | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'errors': value['errors'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -19,13 +19,14 @@ export * from './ApiV1ChatsIdReportsPost200Response';
|
|
|
19
19
|
export * from './ApiV1ChatsIdReportsPost200ResponseRowsInner';
|
|
20
20
|
export * from './ApiV1ChatsIdReportsPost200ResponseSourceMetadata';
|
|
21
21
|
export * from './ApiV1ChatsIdReportsPost410Response';
|
|
22
|
-
export * from './ApiV1ChatsIdReportsPost422Response';
|
|
23
22
|
export * from './ApiV1ChatsIdReportsPostRequest';
|
|
24
23
|
export * from './ApiV1ChatsIdReportsPostRequestPlanner';
|
|
25
24
|
export * from './ApiV1ChatsIdReportsPostRequestPlannerParams';
|
|
26
25
|
export * from './ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner';
|
|
27
26
|
export * from './ApiV1ChatsIdRunsRunIdArtifactsGet200Response';
|
|
28
27
|
export * from './ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner';
|
|
28
|
+
export * from './ApiV1ChatsIdRunsRunIdCancelPost200Response';
|
|
29
|
+
export * from './ApiV1ChatsIdRunsRunIdCancelPost422Response';
|
|
29
30
|
export * from './ApiV1ChatsIdRunsRunIdCitationsGet200Response';
|
|
30
31
|
export * from './ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner';
|
|
31
32
|
export * from './ApiV1ChatsIdRunsRunIdGet200Response';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Blanche API
|
|
3
|
-
* AI-powered life tracking system API
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: v1
|
|
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 ApiV1ChatsIdReportsPost422Response
|
|
16
|
-
*/
|
|
17
|
-
export interface ApiV1ChatsIdReportsPost422Response {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {Array<string>}
|
|
21
|
-
* @memberof ApiV1ChatsIdReportsPost422Response
|
|
22
|
-
*/
|
|
23
|
-
errors: Array<string>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ApiV1ChatsIdReportsPost422Response interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfApiV1ChatsIdReportsPost422Response(value: object): value is ApiV1ChatsIdReportsPost422Response;
|
|
29
|
-
export declare function ApiV1ChatsIdReportsPost422ResponseFromJSON(json: any): ApiV1ChatsIdReportsPost422Response;
|
|
30
|
-
export declare function ApiV1ChatsIdReportsPost422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdReportsPost422Response;
|
|
31
|
-
export declare function ApiV1ChatsIdReportsPost422ResponseToJSON(json: any): ApiV1ChatsIdReportsPost422Response;
|
|
32
|
-
export declare function ApiV1ChatsIdReportsPost422ResponseToJSONTyped(value?: ApiV1ChatsIdReportsPost422Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Blanche API
|
|
6
|
-
* AI-powered life tracking system API
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: v1
|
|
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.instanceOfApiV1ChatsIdReportsPost422Response = instanceOfApiV1ChatsIdReportsPost422Response;
|
|
17
|
-
exports.ApiV1ChatsIdReportsPost422ResponseFromJSON = ApiV1ChatsIdReportsPost422ResponseFromJSON;
|
|
18
|
-
exports.ApiV1ChatsIdReportsPost422ResponseFromJSONTyped = ApiV1ChatsIdReportsPost422ResponseFromJSONTyped;
|
|
19
|
-
exports.ApiV1ChatsIdReportsPost422ResponseToJSON = ApiV1ChatsIdReportsPost422ResponseToJSON;
|
|
20
|
-
exports.ApiV1ChatsIdReportsPost422ResponseToJSONTyped = ApiV1ChatsIdReportsPost422ResponseToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ApiV1ChatsIdReportsPost422Response interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfApiV1ChatsIdReportsPost422Response(value) {
|
|
25
|
-
if (!('errors' in value) || value['errors'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function ApiV1ChatsIdReportsPost422ResponseFromJSON(json) {
|
|
30
|
-
return ApiV1ChatsIdReportsPost422ResponseFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function ApiV1ChatsIdReportsPost422ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'errors': json['errors'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function ApiV1ChatsIdReportsPost422ResponseToJSON(json) {
|
|
41
|
-
return ApiV1ChatsIdReportsPost422ResponseToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function ApiV1ChatsIdReportsPost422ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'errors': value['errors'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Blanche API
|
|
5
|
-
* AI-powered life tracking system API
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ApiV1ChatsIdReportsPost422Response
|
|
20
|
-
*/
|
|
21
|
-
export interface ApiV1ChatsIdReportsPost422Response {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<string>}
|
|
25
|
-
* @memberof ApiV1ChatsIdReportsPost422Response
|
|
26
|
-
*/
|
|
27
|
-
errors: Array<string>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the ApiV1ChatsIdReportsPost422Response interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfApiV1ChatsIdReportsPost422Response(value: object): value is ApiV1ChatsIdReportsPost422Response {
|
|
34
|
-
if (!('errors' in value) || value['errors'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function ApiV1ChatsIdReportsPost422ResponseFromJSON(json: any): ApiV1ChatsIdReportsPost422Response {
|
|
39
|
-
return ApiV1ChatsIdReportsPost422ResponseFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function ApiV1ChatsIdReportsPost422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdReportsPost422Response {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'errors': json['errors'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function ApiV1ChatsIdReportsPost422ResponseToJSON(json: any): ApiV1ChatsIdReportsPost422Response {
|
|
53
|
-
return ApiV1ChatsIdReportsPost422ResponseToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function ApiV1ChatsIdReportsPost422ResponseToJSONTyped(value?: ApiV1ChatsIdReportsPost422Response | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'errors': value['errors'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|