blanche-client-sdk 0.6.1 → 0.6.3

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.
Files changed (34) hide show
  1. package/.openapi-generator/FILES +10 -2
  2. package/README.md +9 -3
  3. package/dist/apis/ChatsApi.d.ts +32 -1
  4. package/dist/apis/ChatsApi.js +122 -0
  5. package/dist/models/ApiV1ChatsIdArtifactsGet200Response.d.ts +33 -0
  6. package/dist/models/ApiV1ChatsIdArtifactsGet200Response.js +52 -0
  7. package/dist/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.d.ts +80 -0
  8. package/dist/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.js +81 -0
  9. package/dist/models/ApiV1ChatsIdReportsPost410Response.d.ts +32 -0
  10. package/dist/models/ApiV1ChatsIdReportsPost410Response.js +51 -0
  11. package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.d.ts +33 -0
  12. package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.js +52 -0
  13. package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.d.ts +56 -0
  14. package/dist/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.js +67 -0
  15. package/dist/models/index.d.ts +5 -1
  16. package/dist/models/index.js +5 -1
  17. package/docs/ApiV1ChatsIdArtifactsGet200Response.md +34 -0
  18. package/docs/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.md +50 -0
  19. package/docs/{ApiV1TemplatesIdGet404Response.md → ApiV1ChatsIdReportsPost410Response.md} +4 -4
  20. package/docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md +34 -0
  21. package/docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md +42 -0
  22. package/docs/ChatsApi.md +136 -0
  23. package/package.json +1 -1
  24. package/src/apis/ChatsApi.ts +116 -0
  25. package/src/apis/TemplatesApi.ts +3 -3
  26. package/src/models/ApiV1ChatsIdArtifactsGet200Response.ts +74 -0
  27. package/src/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.ts +137 -0
  28. package/src/models/ApiV1ChatsIdReportsPost410Response.ts +66 -0
  29. package/src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.ts +74 -0
  30. package/src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.ts +102 -0
  31. package/src/models/index.ts +5 -1
  32. package/dist/models/ApiV1TemplatesIdGet404Response.d.ts +0 -32
  33. package/dist/models/ApiV1TemplatesIdGet404Response.js +0 -51
  34. package/src/models/ApiV1TemplatesIdGet404Response.ts +0 -66
@@ -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
@@ -18,11 +20,14 @@ docs/ApiV1ChatsIdReadPostRequest.md
18
20
  docs/ApiV1ChatsIdReportsPost200Response.md
19
21
  docs/ApiV1ChatsIdReportsPost200ResponseRowsInner.md
20
22
  docs/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.md
23
+ docs/ApiV1ChatsIdReportsPost410Response.md
21
24
  docs/ApiV1ChatsIdReportsPost422Response.md
22
25
  docs/ApiV1ChatsIdReportsPostRequest.md
23
26
  docs/ApiV1ChatsIdReportsPostRequestPlanner.md
24
27
  docs/ApiV1ChatsIdReportsPostRequestPlannerParams.md
25
28
  docs/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.md
29
+ docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md
30
+ docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md
26
31
  docs/ApiV1ChatsIdRunsRunIdCitationsGet200Response.md
27
32
  docs/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.md
28
33
  docs/ApiV1ChatsIdRunsRunIdGet200Response.md
@@ -62,7 +67,6 @@ docs/ApiV1TemplatesGet200ResponseTemplatesInner.md
62
67
  docs/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.md
63
68
  docs/ApiV1TemplatesIdGet200Response.md
64
69
  docs/ApiV1TemplatesIdGet200ResponseSchemasInner.md
65
- docs/ApiV1TemplatesIdGet404Response.md
66
70
  docs/ApiV1TemplatesIdPutRequest.md
67
71
  docs/ApiV1TemplatesIdPutRequestTemplate.md
68
72
  docs/ApiV1TemplatesPost201Response.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
@@ -116,11 +122,14 @@ src/models/ApiV1ChatsIdReadPostRequest.ts
116
122
  src/models/ApiV1ChatsIdReportsPost200Response.ts
117
123
  src/models/ApiV1ChatsIdReportsPost200ResponseRowsInner.ts
118
124
  src/models/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.ts
125
+ src/models/ApiV1ChatsIdReportsPost410Response.ts
119
126
  src/models/ApiV1ChatsIdReportsPost422Response.ts
120
127
  src/models/ApiV1ChatsIdReportsPostRequest.ts
121
128
  src/models/ApiV1ChatsIdReportsPostRequestPlanner.ts
122
129
  src/models/ApiV1ChatsIdReportsPostRequestPlannerParams.ts
123
130
  src/models/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.ts
131
+ src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.ts
132
+ src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.ts
124
133
  src/models/ApiV1ChatsIdRunsRunIdCitationsGet200Response.ts
125
134
  src/models/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.ts
126
135
  src/models/ApiV1ChatsIdRunsRunIdGet200Response.ts
@@ -160,7 +169,6 @@ src/models/ApiV1TemplatesGet200ResponseTemplatesInner.ts
160
169
  src/models/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.ts
161
170
  src/models/ApiV1TemplatesIdGet200Response.ts
162
171
  src/models/ApiV1TemplatesIdGet200ResponseSchemasInner.ts
163
- src/models/ApiV1TemplatesIdGet404Response.ts
164
172
  src/models/ApiV1TemplatesIdPutRequest.ts
165
173
  src/models/ApiV1TemplatesIdPutRequestTemplate.ts
166
174
  src/models/ApiV1TemplatesPost201Response.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # blanche-client-sdk@0.6.1
1
+ # blanche-client-sdk@0.6.3
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)
@@ -118,11 +122,14 @@ All URIs are relative to *http://localhost:3000*
118
122
  - [ApiV1ChatsIdReportsPost200Response](docs/ApiV1ChatsIdReportsPost200Response.md)
119
123
  - [ApiV1ChatsIdReportsPost200ResponseRowsInner](docs/ApiV1ChatsIdReportsPost200ResponseRowsInner.md)
120
124
  - [ApiV1ChatsIdReportsPost200ResponseSourceMetadata](docs/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.md)
125
+ - [ApiV1ChatsIdReportsPost410Response](docs/ApiV1ChatsIdReportsPost410Response.md)
121
126
  - [ApiV1ChatsIdReportsPost422Response](docs/ApiV1ChatsIdReportsPost422Response.md)
122
127
  - [ApiV1ChatsIdReportsPostRequest](docs/ApiV1ChatsIdReportsPostRequest.md)
123
128
  - [ApiV1ChatsIdReportsPostRequestPlanner](docs/ApiV1ChatsIdReportsPostRequestPlanner.md)
124
129
  - [ApiV1ChatsIdReportsPostRequestPlannerParams](docs/ApiV1ChatsIdReportsPostRequestPlannerParams.md)
125
130
  - [ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner](docs/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.md)
131
+ - [ApiV1ChatsIdRunsRunIdArtifactsGet200Response](docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md)
132
+ - [ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner](docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md)
126
133
  - [ApiV1ChatsIdRunsRunIdCitationsGet200Response](docs/ApiV1ChatsIdRunsRunIdCitationsGet200Response.md)
127
134
  - [ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner](docs/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.md)
128
135
  - [ApiV1ChatsIdRunsRunIdGet200Response](docs/ApiV1ChatsIdRunsRunIdGet200Response.md)
@@ -162,7 +169,6 @@ All URIs are relative to *http://localhost:3000*
162
169
  - [ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema](docs/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.md)
163
170
  - [ApiV1TemplatesIdGet200Response](docs/ApiV1TemplatesIdGet200Response.md)
164
171
  - [ApiV1TemplatesIdGet200ResponseSchemasInner](docs/ApiV1TemplatesIdGet200ResponseSchemasInner.md)
165
- - [ApiV1TemplatesIdGet404Response](docs/ApiV1TemplatesIdGet404Response.md)
166
172
  - [ApiV1TemplatesIdPutRequest](docs/ApiV1TemplatesIdPutRequest.md)
167
173
  - [ApiV1TemplatesIdPutRequestTemplate](docs/ApiV1TemplatesIdPutRequestTemplate.md)
168
174
  - [ApiV1TemplatesPost201Response](docs/ApiV1TemplatesPost201Response.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.1`
205
+ - Package version: `0.6.3`
200
206
  - Generator version: `7.20.0`
201
207
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
202
208
 
@@ -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
  */
@@ -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,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 ApiV1ChatsIdReportsPost410Response
16
+ */
17
+ export interface ApiV1ChatsIdReportsPost410Response {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiV1ChatsIdReportsPost410Response
22
+ */
23
+ error: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ApiV1ChatsIdReportsPost410Response interface.
27
+ */
28
+ export declare function instanceOfApiV1ChatsIdReportsPost410Response(value: object): value is ApiV1ChatsIdReportsPost410Response;
29
+ export declare function ApiV1ChatsIdReportsPost410ResponseFromJSON(json: any): ApiV1ChatsIdReportsPost410Response;
30
+ export declare function ApiV1ChatsIdReportsPost410ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdReportsPost410Response;
31
+ export declare function ApiV1ChatsIdReportsPost410ResponseToJSON(json: any): ApiV1ChatsIdReportsPost410Response;
32
+ export declare function ApiV1ChatsIdReportsPost410ResponseToJSONTyped(value?: ApiV1ChatsIdReportsPost410Response | 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.instanceOfApiV1ChatsIdReportsPost410Response = instanceOfApiV1ChatsIdReportsPost410Response;
17
+ exports.ApiV1ChatsIdReportsPost410ResponseFromJSON = ApiV1ChatsIdReportsPost410ResponseFromJSON;
18
+ exports.ApiV1ChatsIdReportsPost410ResponseFromJSONTyped = ApiV1ChatsIdReportsPost410ResponseFromJSONTyped;
19
+ exports.ApiV1ChatsIdReportsPost410ResponseToJSON = ApiV1ChatsIdReportsPost410ResponseToJSON;
20
+ exports.ApiV1ChatsIdReportsPost410ResponseToJSONTyped = ApiV1ChatsIdReportsPost410ResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ApiV1ChatsIdReportsPost410Response interface.
23
+ */
24
+ function instanceOfApiV1ChatsIdReportsPost410Response(value) {
25
+ if (!('error' in value) || value['error'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ApiV1ChatsIdReportsPost410ResponseFromJSON(json) {
30
+ return ApiV1ChatsIdReportsPost410ResponseFromJSONTyped(json, false);
31
+ }
32
+ function ApiV1ChatsIdReportsPost410ResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'error': json['error'],
38
+ };
39
+ }
40
+ function ApiV1ChatsIdReportsPost410ResponseToJSON(json) {
41
+ return ApiV1ChatsIdReportsPost410ResponseToJSONTyped(json, false);
42
+ }
43
+ function ApiV1ChatsIdReportsPost410ResponseToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'error': value['error'],
50
+ };
51
+ }