blanche-client-sdk 0.6.1 → 0.6.2
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 -0
- package/README.md +8 -2
- package/dist/apis/ChatsApi.d.ts +32 -1
- package/dist/apis/ChatsApi.js +122 -0
- package/dist/models/ApiV1ChatsIdArtifactsGet200Response.d.ts +33 -0
- package/dist/models/ApiV1ChatsIdArtifactsGet200Response.js +52 -0
- package/dist/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.d.ts +80 -0
- package/dist/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.js +81 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.d.ts +33 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.js +52 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.d.ts +56 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.js +67 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/ApiV1ChatsIdArtifactsGet200Response.md +34 -0
- package/docs/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.md +50 -0
- package/docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md +34 -0
- package/docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md +42 -0
- package/docs/ChatsApi.md +135 -0
- package/package.json +1 -1
- package/src/apis/ChatsApi.ts +113 -0
- package/src/models/ApiV1ChatsIdArtifactsGet200Response.ts +74 -0
- package/src/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.ts +137 -0
- package/src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.ts +74 -0
- package/src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.ts +102 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -9,6 +9,8 @@ docs/ApiV1ChatsChatIdMessagesPostRequest.md
|
|
|
9
9
|
docs/ApiV1ChatsChatIdMessagesSyncGet200Response.md
|
|
10
10
|
docs/ApiV1ChatsGet200Response.md
|
|
11
11
|
docs/ApiV1ChatsGet200ResponseChatsInner.md
|
|
12
|
+
docs/ApiV1ChatsIdArtifactsGet200Response.md
|
|
13
|
+
docs/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.md
|
|
12
14
|
docs/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.md
|
|
13
15
|
docs/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.md
|
|
14
16
|
docs/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.md
|
|
@@ -23,6 +25,8 @@ docs/ApiV1ChatsIdReportsPostRequest.md
|
|
|
23
25
|
docs/ApiV1ChatsIdReportsPostRequestPlanner.md
|
|
24
26
|
docs/ApiV1ChatsIdReportsPostRequestPlannerParams.md
|
|
25
27
|
docs/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.md
|
|
28
|
+
docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md
|
|
29
|
+
docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md
|
|
26
30
|
docs/ApiV1ChatsIdRunsRunIdCitationsGet200Response.md
|
|
27
31
|
docs/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.md
|
|
28
32
|
docs/ApiV1ChatsIdRunsRunIdGet200Response.md
|
|
@@ -107,6 +111,8 @@ src/models/ApiV1ChatsChatIdMessagesPostRequest.ts
|
|
|
107
111
|
src/models/ApiV1ChatsChatIdMessagesSyncGet200Response.ts
|
|
108
112
|
src/models/ApiV1ChatsGet200Response.ts
|
|
109
113
|
src/models/ApiV1ChatsGet200ResponseChatsInner.ts
|
|
114
|
+
src/models/ApiV1ChatsIdArtifactsGet200Response.ts
|
|
115
|
+
src/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.ts
|
|
110
116
|
src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.ts
|
|
111
117
|
src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.ts
|
|
112
118
|
src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.ts
|
|
@@ -121,6 +127,8 @@ src/models/ApiV1ChatsIdReportsPostRequest.ts
|
|
|
121
127
|
src/models/ApiV1ChatsIdReportsPostRequestPlanner.ts
|
|
122
128
|
src/models/ApiV1ChatsIdReportsPostRequestPlannerParams.ts
|
|
123
129
|
src/models/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.ts
|
|
130
|
+
src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.ts
|
|
131
|
+
src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.ts
|
|
124
132
|
src/models/ApiV1ChatsIdRunsRunIdCitationsGet200Response.ts
|
|
125
133
|
src/models/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.ts
|
|
126
134
|
src/models/ApiV1ChatsIdRunsRunIdGet200Response.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# blanche-client-sdk@0.6.
|
|
1
|
+
# blanche-client-sdk@0.6.2
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -58,10 +58,12 @@ All URIs are relative to *http://localhost:3000*
|
|
|
58
58
|
*ChatsApi* | [**apiV1ChatsChatIdMessagesPost**](docs/ChatsApi.md#apiv1chatschatidmessagespostoperation) | **POST** /api/v1/chats/{chat_id}/messages | Create chat message
|
|
59
59
|
*ChatsApi* | [**apiV1ChatsChatIdMessagesSyncGet**](docs/ChatsApi.md#apiv1chatschatidmessagessyncget) | **GET** /api/v1/chats/{chat_id}/messages/sync | Sync chat messages by cursor
|
|
60
60
|
*ChatsApi* | [**apiV1ChatsGet**](docs/ChatsApi.md#apiv1chatsget) | **GET** /api/v1/chats | List chats
|
|
61
|
+
*ChatsApi* | [**apiV1ChatsIdArtifactsGet**](docs/ChatsApi.md#apiv1chatsidartifactsget) | **GET** /api/v1/chats/{id}/artifacts | List artifacts for chat
|
|
61
62
|
*ChatsApi* | [**apiV1ChatsIdMessagesMessageIdAttachmentsGet**](docs/ChatsApi.md#apiv1chatsidmessagesmessageidattachmentsget) | **GET** /api/v1/chats/{id}/messages/{message_id}/attachments | List chat message attachments
|
|
62
63
|
*ChatsApi* | [**apiV1ChatsIdMessagesMessageIdAttachmentsPost**](docs/ChatsApi.md#apiv1chatsidmessagesmessageidattachmentspostoperation) | **POST** /api/v1/chats/{id}/messages/{message_id}/attachments | Create chat message attachment
|
|
63
64
|
*ChatsApi* | [**apiV1ChatsIdReadPost**](docs/ChatsApi.md#apiv1chatsidreadpostoperation) | **POST** /api/v1/chats/{id}/read | Mark chat as read
|
|
64
65
|
*ChatsApi* | [**apiV1ChatsIdReportsPost**](docs/ChatsApi.md#apiv1chatsidreportspostoperation) | **POST** /api/v1/chats/{id}/reports | Run deterministic SQL report tool
|
|
66
|
+
*ChatsApi* | [**apiV1ChatsIdRunsRunIdArtifactsGet**](docs/ChatsApi.md#apiv1chatsidrunsrunidartifactsget) | **GET** /api/v1/chats/{id}/runs/{run_id}/artifacts | List artifacts for chat run
|
|
65
67
|
*ChatsApi* | [**apiV1ChatsIdRunsRunIdCitationsGet**](docs/ChatsApi.md#apiv1chatsidrunsrunidcitationsget) | **GET** /api/v1/chats/{id}/runs/{run_id}/citations | Get run citations
|
|
66
68
|
*ChatsApi* | [**apiV1ChatsIdRunsRunIdGet**](docs/ChatsApi.md#apiv1chatsidrunsrunidget) | **GET** /api/v1/chats/{id}/runs/{run_id} | Get chat run status
|
|
67
69
|
*ChatsApi* | [**apiV1ChatsIdRunsRunIdRetryPost**](docs/ChatsApi.md#apiv1chatsidrunsrunidretrypost) | **POST** /api/v1/chats/{id}/runs/{run_id}/retry | Retry chat run
|
|
@@ -109,6 +111,8 @@ All URIs are relative to *http://localhost:3000*
|
|
|
109
111
|
- [ApiV1ChatsChatIdMessagesSyncGet200Response](docs/ApiV1ChatsChatIdMessagesSyncGet200Response.md)
|
|
110
112
|
- [ApiV1ChatsGet200Response](docs/ApiV1ChatsGet200Response.md)
|
|
111
113
|
- [ApiV1ChatsGet200ResponseChatsInner](docs/ApiV1ChatsGet200ResponseChatsInner.md)
|
|
114
|
+
- [ApiV1ChatsIdArtifactsGet200Response](docs/ApiV1ChatsIdArtifactsGet200Response.md)
|
|
115
|
+
- [ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner](docs/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.md)
|
|
112
116
|
- [ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response](docs/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.md)
|
|
113
117
|
- [ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner](docs/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.md)
|
|
114
118
|
- [ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response](docs/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.md)
|
|
@@ -123,6 +127,8 @@ All URIs are relative to *http://localhost:3000*
|
|
|
123
127
|
- [ApiV1ChatsIdReportsPostRequestPlanner](docs/ApiV1ChatsIdReportsPostRequestPlanner.md)
|
|
124
128
|
- [ApiV1ChatsIdReportsPostRequestPlannerParams](docs/ApiV1ChatsIdReportsPostRequestPlannerParams.md)
|
|
125
129
|
- [ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner](docs/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.md)
|
|
130
|
+
- [ApiV1ChatsIdRunsRunIdArtifactsGet200Response](docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md)
|
|
131
|
+
- [ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner](docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md)
|
|
126
132
|
- [ApiV1ChatsIdRunsRunIdCitationsGet200Response](docs/ApiV1ChatsIdRunsRunIdCitationsGet200Response.md)
|
|
127
133
|
- [ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner](docs/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.md)
|
|
128
134
|
- [ApiV1ChatsIdRunsRunIdGet200Response](docs/ApiV1ChatsIdRunsRunIdGet200Response.md)
|
|
@@ -196,7 +202,7 @@ and is automatically generated by the
|
|
|
196
202
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
197
203
|
|
|
198
204
|
- API version: `v1`
|
|
199
|
-
- Package version: `0.6.
|
|
205
|
+
- Package version: `0.6.2`
|
|
200
206
|
- Generator version: `7.20.0`
|
|
201
207
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
202
208
|
|
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, ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response, ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response, ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest, ApiV1ChatsIdReadPost200Response, ApiV1ChatsIdReadPostRequest, ApiV1ChatsIdReportsPost200Response, ApiV1ChatsIdReportsPostRequest, 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, 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;
|
|
@@ -29,6 +29,9 @@ export interface ApiV1ChatsGetRequest {
|
|
|
29
29
|
limit?: number;
|
|
30
30
|
offset?: number;
|
|
31
31
|
}
|
|
32
|
+
export interface ApiV1ChatsIdArtifactsGetRequest {
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
32
35
|
export interface ApiV1ChatsIdMessagesMessageIdAttachmentsGetRequest {
|
|
33
36
|
id: string;
|
|
34
37
|
messageId: string;
|
|
@@ -46,6 +49,10 @@ export interface ApiV1ChatsIdReportsPostOperationRequest {
|
|
|
46
49
|
id: string;
|
|
47
50
|
apiV1ChatsIdReportsPostRequest?: ApiV1ChatsIdReportsPostRequest;
|
|
48
51
|
}
|
|
52
|
+
export interface ApiV1ChatsIdRunsRunIdArtifactsGetRequest {
|
|
53
|
+
id: string;
|
|
54
|
+
runId: string;
|
|
55
|
+
}
|
|
49
56
|
export interface ApiV1ChatsIdRunsRunIdCitationsGetRequest {
|
|
50
57
|
id: string;
|
|
51
58
|
runId: string;
|
|
@@ -127,6 +134,18 @@ export declare class ChatsApi extends runtime.BaseAPI {
|
|
|
127
134
|
* List chats
|
|
128
135
|
*/
|
|
129
136
|
apiV1ChatsGet(requestParameters?: ApiV1ChatsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsGet200Response>;
|
|
137
|
+
/**
|
|
138
|
+
* Creates request options for apiV1ChatsIdArtifactsGet without sending the request
|
|
139
|
+
*/
|
|
140
|
+
apiV1ChatsIdArtifactsGetRequestOpts(requestParameters: ApiV1ChatsIdArtifactsGetRequest): Promise<runtime.RequestOpts>;
|
|
141
|
+
/**
|
|
142
|
+
* List artifacts for chat
|
|
143
|
+
*/
|
|
144
|
+
apiV1ChatsIdArtifactsGetRaw(requestParameters: ApiV1ChatsIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1ChatsIdArtifactsGet200Response>>;
|
|
145
|
+
/**
|
|
146
|
+
* List artifacts for chat
|
|
147
|
+
*/
|
|
148
|
+
apiV1ChatsIdArtifactsGet(requestParameters: ApiV1ChatsIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsIdArtifactsGet200Response>;
|
|
130
149
|
/**
|
|
131
150
|
* Creates request options for apiV1ChatsIdMessagesMessageIdAttachmentsGet without sending the request
|
|
132
151
|
*/
|
|
@@ -175,6 +194,18 @@ export declare class ChatsApi extends runtime.BaseAPI {
|
|
|
175
194
|
* Run deterministic SQL report tool
|
|
176
195
|
*/
|
|
177
196
|
apiV1ChatsIdReportsPost(requestParameters: ApiV1ChatsIdReportsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsIdReportsPost200Response>;
|
|
197
|
+
/**
|
|
198
|
+
* Creates request options for apiV1ChatsIdRunsRunIdArtifactsGet without sending the request
|
|
199
|
+
*/
|
|
200
|
+
apiV1ChatsIdRunsRunIdArtifactsGetRequestOpts(requestParameters: ApiV1ChatsIdRunsRunIdArtifactsGetRequest): Promise<runtime.RequestOpts>;
|
|
201
|
+
/**
|
|
202
|
+
* List artifacts for chat run
|
|
203
|
+
*/
|
|
204
|
+
apiV1ChatsIdRunsRunIdArtifactsGetRaw(requestParameters: ApiV1ChatsIdRunsRunIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1ChatsIdRunsRunIdArtifactsGet200Response>>;
|
|
205
|
+
/**
|
|
206
|
+
* List artifacts for chat run
|
|
207
|
+
*/
|
|
208
|
+
apiV1ChatsIdRunsRunIdArtifactsGet(requestParameters: ApiV1ChatsIdRunsRunIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsIdRunsRunIdArtifactsGet200Response>;
|
|
178
209
|
/**
|
|
179
210
|
* Creates request options for apiV1ChatsIdRunsRunIdCitationsGet without sending the request
|
|
180
211
|
*/
|
package/dist/apis/ChatsApi.js
CHANGED
|
@@ -328,6 +328,65 @@ var ChatsApi = /** @class */ (function (_super) {
|
|
|
328
328
|
});
|
|
329
329
|
});
|
|
330
330
|
};
|
|
331
|
+
/**
|
|
332
|
+
* Creates request options for apiV1ChatsIdArtifactsGet without sending the request
|
|
333
|
+
*/
|
|
334
|
+
ChatsApi.prototype.apiV1ChatsIdArtifactsGetRequestOpts = function (requestParameters) {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
336
|
+
var queryParameters, headerParameters, urlPath;
|
|
337
|
+
return __generator(this, function (_a) {
|
|
338
|
+
if (requestParameters['id'] == null) {
|
|
339
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1ChatsIdArtifactsGet().');
|
|
340
|
+
}
|
|
341
|
+
queryParameters = {};
|
|
342
|
+
headerParameters = {};
|
|
343
|
+
urlPath = "/api/v1/chats/{id}/artifacts";
|
|
344
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
345
|
+
return [2 /*return*/, {
|
|
346
|
+
path: urlPath,
|
|
347
|
+
method: 'GET',
|
|
348
|
+
headers: headerParameters,
|
|
349
|
+
query: queryParameters,
|
|
350
|
+
}];
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* List artifacts for chat
|
|
356
|
+
*/
|
|
357
|
+
ChatsApi.prototype.apiV1ChatsIdArtifactsGetRaw = function (requestParameters, initOverrides) {
|
|
358
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
359
|
+
var requestOptions, response;
|
|
360
|
+
return __generator(this, function (_a) {
|
|
361
|
+
switch (_a.label) {
|
|
362
|
+
case 0: return [4 /*yield*/, this.apiV1ChatsIdArtifactsGetRequestOpts(requestParameters)];
|
|
363
|
+
case 1:
|
|
364
|
+
requestOptions = _a.sent();
|
|
365
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
366
|
+
case 2:
|
|
367
|
+
response = _a.sent();
|
|
368
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1ChatsIdArtifactsGet200ResponseFromJSON)(jsonValue); })];
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* List artifacts for chat
|
|
375
|
+
*/
|
|
376
|
+
ChatsApi.prototype.apiV1ChatsIdArtifactsGet = function (requestParameters, initOverrides) {
|
|
377
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
378
|
+
var response;
|
|
379
|
+
return __generator(this, function (_a) {
|
|
380
|
+
switch (_a.label) {
|
|
381
|
+
case 0: return [4 /*yield*/, this.apiV1ChatsIdArtifactsGetRaw(requestParameters, initOverrides)];
|
|
382
|
+
case 1:
|
|
383
|
+
response = _a.sent();
|
|
384
|
+
return [4 /*yield*/, response.value()];
|
|
385
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
});
|
|
389
|
+
};
|
|
331
390
|
/**
|
|
332
391
|
* Creates request options for apiV1ChatsIdMessagesMessageIdAttachmentsGet without sending the request
|
|
333
392
|
*/
|
|
@@ -578,6 +637,69 @@ var ChatsApi = /** @class */ (function (_super) {
|
|
|
578
637
|
});
|
|
579
638
|
});
|
|
580
639
|
};
|
|
640
|
+
/**
|
|
641
|
+
* Creates request options for apiV1ChatsIdRunsRunIdArtifactsGet without sending the request
|
|
642
|
+
*/
|
|
643
|
+
ChatsApi.prototype.apiV1ChatsIdRunsRunIdArtifactsGetRequestOpts = function (requestParameters) {
|
|
644
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
645
|
+
var queryParameters, headerParameters, urlPath;
|
|
646
|
+
return __generator(this, function (_a) {
|
|
647
|
+
if (requestParameters['id'] == null) {
|
|
648
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1ChatsIdRunsRunIdArtifactsGet().');
|
|
649
|
+
}
|
|
650
|
+
if (requestParameters['runId'] == null) {
|
|
651
|
+
throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling apiV1ChatsIdRunsRunIdArtifactsGet().');
|
|
652
|
+
}
|
|
653
|
+
queryParameters = {};
|
|
654
|
+
headerParameters = {};
|
|
655
|
+
urlPath = "/api/v1/chats/{id}/runs/{run_id}/artifacts";
|
|
656
|
+
urlPath = urlPath.replace("{".concat("id", "}"), encodeURIComponent(String(requestParameters['id'])));
|
|
657
|
+
urlPath = urlPath.replace("{".concat("run_id", "}"), encodeURIComponent(String(requestParameters['runId'])));
|
|
658
|
+
return [2 /*return*/, {
|
|
659
|
+
path: urlPath,
|
|
660
|
+
method: 'GET',
|
|
661
|
+
headers: headerParameters,
|
|
662
|
+
query: queryParameters,
|
|
663
|
+
}];
|
|
664
|
+
});
|
|
665
|
+
});
|
|
666
|
+
};
|
|
667
|
+
/**
|
|
668
|
+
* List artifacts for chat run
|
|
669
|
+
*/
|
|
670
|
+
ChatsApi.prototype.apiV1ChatsIdRunsRunIdArtifactsGetRaw = function (requestParameters, initOverrides) {
|
|
671
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
672
|
+
var requestOptions, response;
|
|
673
|
+
return __generator(this, function (_a) {
|
|
674
|
+
switch (_a.label) {
|
|
675
|
+
case 0: return [4 /*yield*/, this.apiV1ChatsIdRunsRunIdArtifactsGetRequestOpts(requestParameters)];
|
|
676
|
+
case 1:
|
|
677
|
+
requestOptions = _a.sent();
|
|
678
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
679
|
+
case 2:
|
|
680
|
+
response = _a.sent();
|
|
681
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSON)(jsonValue); })];
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
});
|
|
685
|
+
};
|
|
686
|
+
/**
|
|
687
|
+
* List artifacts for chat run
|
|
688
|
+
*/
|
|
689
|
+
ChatsApi.prototype.apiV1ChatsIdRunsRunIdArtifactsGet = function (requestParameters, initOverrides) {
|
|
690
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
691
|
+
var response;
|
|
692
|
+
return __generator(this, function (_a) {
|
|
693
|
+
switch (_a.label) {
|
|
694
|
+
case 0: return [4 /*yield*/, this.apiV1ChatsIdRunsRunIdArtifactsGetRaw(requestParameters, initOverrides)];
|
|
695
|
+
case 1:
|
|
696
|
+
response = _a.sent();
|
|
697
|
+
return [4 /*yield*/, response.value()];
|
|
698
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
});
|
|
702
|
+
};
|
|
581
703
|
/**
|
|
582
704
|
* Creates request options for apiV1ChatsIdRunsRunIdCitationsGet without sending the request
|
|
583
705
|
*/
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner } from './ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1ChatsIdArtifactsGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1ChatsIdArtifactsGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner>}
|
|
22
|
+
* @memberof ApiV1ChatsIdArtifactsGet200Response
|
|
23
|
+
*/
|
|
24
|
+
artifacts: Array<ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ApiV1ChatsIdArtifactsGet200Response interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfApiV1ChatsIdArtifactsGet200Response(value: object): value is ApiV1ChatsIdArtifactsGet200Response;
|
|
30
|
+
export declare function ApiV1ChatsIdArtifactsGet200ResponseFromJSON(json: any): ApiV1ChatsIdArtifactsGet200Response;
|
|
31
|
+
export declare function ApiV1ChatsIdArtifactsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdArtifactsGet200Response;
|
|
32
|
+
export declare function ApiV1ChatsIdArtifactsGet200ResponseToJSON(json: any): ApiV1ChatsIdArtifactsGet200Response;
|
|
33
|
+
export declare function ApiV1ChatsIdArtifactsGet200ResponseToJSONTyped(value?: ApiV1ChatsIdArtifactsGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfApiV1ChatsIdArtifactsGet200Response = instanceOfApiV1ChatsIdArtifactsGet200Response;
|
|
17
|
+
exports.ApiV1ChatsIdArtifactsGet200ResponseFromJSON = ApiV1ChatsIdArtifactsGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1ChatsIdArtifactsGet200ResponseFromJSONTyped = ApiV1ChatsIdArtifactsGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsIdArtifactsGet200ResponseToJSON = ApiV1ChatsIdArtifactsGet200ResponseToJSON;
|
|
20
|
+
exports.ApiV1ChatsIdArtifactsGet200ResponseToJSONTyped = ApiV1ChatsIdArtifactsGet200ResponseToJSONTyped;
|
|
21
|
+
var ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner_1 = require("./ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1ChatsIdArtifactsGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1ChatsIdArtifactsGet200Response(value) {
|
|
26
|
+
if (!('artifacts' in value) || value['artifacts'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ApiV1ChatsIdArtifactsGet200ResponseFromJSON(json) {
|
|
31
|
+
return ApiV1ChatsIdArtifactsGet200ResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ApiV1ChatsIdArtifactsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'artifacts': (json['artifacts'].map(ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner_1.ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApiV1ChatsIdArtifactsGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiV1ChatsIdArtifactsGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApiV1ChatsIdArtifactsGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'artifacts': (value['artifacts'].map(ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner_1.ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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 ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
|
|
28
|
+
*/
|
|
29
|
+
sessionId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
|
|
34
|
+
*/
|
|
35
|
+
runId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
|
|
40
|
+
*/
|
|
41
|
+
kind: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
|
|
46
|
+
*/
|
|
47
|
+
title?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {object}
|
|
51
|
+
* @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
|
|
52
|
+
*/
|
|
53
|
+
payload: object;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {object}
|
|
57
|
+
* @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
|
|
58
|
+
*/
|
|
59
|
+
metadata: object;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
|
|
64
|
+
*/
|
|
65
|
+
position: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
|
|
70
|
+
*/
|
|
71
|
+
createdAt: Date;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfApiV1ChatsIdArtifactsGet200ResponseArtifactsInner(value: object): value is ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner;
|
|
77
|
+
export declare function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSON(json: any): ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner;
|
|
78
|
+
export declare function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner;
|
|
79
|
+
export declare function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSON(json: any): ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner;
|
|
80
|
+
export declare function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSONTyped(value?: ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
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.instanceOfApiV1ChatsIdArtifactsGet200ResponseArtifactsInner = instanceOfApiV1ChatsIdArtifactsGet200ResponseArtifactsInner;
|
|
17
|
+
exports.ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSON = ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSON;
|
|
18
|
+
exports.ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped = ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSON = ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSON;
|
|
20
|
+
exports.ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSONTyped = ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1ChatsIdArtifactsGet200ResponseArtifactsInner(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('runId' in value) || value['runId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('payload' in value) || value['payload'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('position' in value) || value['position'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSON(json) {
|
|
44
|
+
return ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'sessionId': json['session_id'],
|
|
53
|
+
'runId': json['run_id'],
|
|
54
|
+
'kind': json['kind'],
|
|
55
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
56
|
+
'payload': json['payload'],
|
|
57
|
+
'metadata': json['metadata'],
|
|
58
|
+
'position': json['position'],
|
|
59
|
+
'createdAt': (new Date(json['created_at'])),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSON(json) {
|
|
63
|
+
return ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'session_id': value['sessionId'],
|
|
73
|
+
'run_id': value['runId'],
|
|
74
|
+
'kind': value['kind'],
|
|
75
|
+
'title': value['title'],
|
|
76
|
+
'payload': value['payload'],
|
|
77
|
+
'metadata': value['metadata'],
|
|
78
|
+
'position': value['position'],
|
|
79
|
+
'created_at': value['createdAt'].toISOString(),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner } from './ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1ChatsIdRunsRunIdArtifactsGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1ChatsIdRunsRunIdArtifactsGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner>}
|
|
22
|
+
* @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200Response
|
|
23
|
+
*/
|
|
24
|
+
artifacts: Array<ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ApiV1ChatsIdRunsRunIdArtifactsGet200Response interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfApiV1ChatsIdRunsRunIdArtifactsGet200Response(value: object): value is ApiV1ChatsIdRunsRunIdArtifactsGet200Response;
|
|
30
|
+
export declare function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSON(json: any): ApiV1ChatsIdRunsRunIdArtifactsGet200Response;
|
|
31
|
+
export declare function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdRunsRunIdArtifactsGet200Response;
|
|
32
|
+
export declare function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSON(json: any): ApiV1ChatsIdRunsRunIdArtifactsGet200Response;
|
|
33
|
+
export declare function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSONTyped(value?: ApiV1ChatsIdRunsRunIdArtifactsGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfApiV1ChatsIdRunsRunIdArtifactsGet200Response = instanceOfApiV1ChatsIdRunsRunIdArtifactsGet200Response;
|
|
17
|
+
exports.ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSON = ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSONTyped = ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSON = ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSON;
|
|
20
|
+
exports.ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSONTyped = ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSONTyped;
|
|
21
|
+
var ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner_1 = require("./ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1ChatsIdRunsRunIdArtifactsGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1ChatsIdRunsRunIdArtifactsGet200Response(value) {
|
|
26
|
+
if (!('artifacts' in value) || value['artifacts'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSON(json) {
|
|
31
|
+
return ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'artifacts': (json['artifacts'].map(ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner_1.ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'artifacts': (value['artifacts'].map(ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner_1.ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|