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
@@ -20,14 +20,17 @@ import type {
20
20
  ApiV1ChatsChatIdMessagesPostRequest,
21
21
  ApiV1ChatsChatIdMessagesSyncGet200Response,
22
22
  ApiV1ChatsGet200Response,
23
+ ApiV1ChatsIdArtifactsGet200Response,
23
24
  ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response,
24
25
  ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response,
25
26
  ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest,
26
27
  ApiV1ChatsIdReadPost200Response,
27
28
  ApiV1ChatsIdReadPostRequest,
28
29
  ApiV1ChatsIdReportsPost200Response,
30
+ ApiV1ChatsIdReportsPost410Response,
29
31
  ApiV1ChatsIdReportsPost422Response,
30
32
  ApiV1ChatsIdReportsPostRequest,
33
+ ApiV1ChatsIdRunsRunIdArtifactsGet200Response,
31
34
  ApiV1ChatsIdRunsRunIdCitationsGet200Response,
32
35
  ApiV1ChatsIdRunsRunIdGet200Response,
33
36
  ApiV1ChatsIdRunsRunIdRetryPost201Response,
@@ -53,6 +56,8 @@ import {
53
56
  ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSON,
54
57
  ApiV1ChatsGet200ResponseFromJSON,
55
58
  ApiV1ChatsGet200ResponseToJSON,
59
+ ApiV1ChatsIdArtifactsGet200ResponseFromJSON,
60
+ ApiV1ChatsIdArtifactsGet200ResponseToJSON,
56
61
  ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseFromJSON,
57
62
  ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseToJSON,
58
63
  ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseFromJSON,
@@ -65,10 +70,14 @@ import {
65
70
  ApiV1ChatsIdReadPostRequestToJSON,
66
71
  ApiV1ChatsIdReportsPost200ResponseFromJSON,
67
72
  ApiV1ChatsIdReportsPost200ResponseToJSON,
73
+ ApiV1ChatsIdReportsPost410ResponseFromJSON,
74
+ ApiV1ChatsIdReportsPost410ResponseToJSON,
68
75
  ApiV1ChatsIdReportsPost422ResponseFromJSON,
69
76
  ApiV1ChatsIdReportsPost422ResponseToJSON,
70
77
  ApiV1ChatsIdReportsPostRequestFromJSON,
71
78
  ApiV1ChatsIdReportsPostRequestToJSON,
79
+ ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSON,
80
+ ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSON,
72
81
  ApiV1ChatsIdRunsRunIdCitationsGet200ResponseFromJSON,
73
82
  ApiV1ChatsIdRunsRunIdCitationsGet200ResponseToJSON,
74
83
  ApiV1ChatsIdRunsRunIdGet200ResponseFromJSON,
@@ -119,6 +128,10 @@ export interface ApiV1ChatsGetRequest {
119
128
  offset?: number;
120
129
  }
121
130
 
131
+ export interface ApiV1ChatsIdArtifactsGetRequest {
132
+ id: string;
133
+ }
134
+
122
135
  export interface ApiV1ChatsIdMessagesMessageIdAttachmentsGetRequest {
123
136
  id: string;
124
137
  messageId: string;
@@ -140,6 +153,11 @@ export interface ApiV1ChatsIdReportsPostOperationRequest {
140
153
  apiV1ChatsIdReportsPostRequest?: ApiV1ChatsIdReportsPostRequest;
141
154
  }
142
155
 
156
+ export interface ApiV1ChatsIdRunsRunIdArtifactsGetRequest {
157
+ id: string;
158
+ runId: string;
159
+ }
160
+
143
161
  export interface ApiV1ChatsIdRunsRunIdCitationsGetRequest {
144
162
  id: string;
145
163
  runId: string;
@@ -381,6 +399,51 @@ export class ChatsApi extends runtime.BaseAPI {
381
399
  return await response.value();
382
400
  }
383
401
 
402
+ /**
403
+ * Creates request options for apiV1ChatsIdArtifactsGet without sending the request
404
+ */
405
+ async apiV1ChatsIdArtifactsGetRequestOpts(requestParameters: ApiV1ChatsIdArtifactsGetRequest): Promise<runtime.RequestOpts> {
406
+ if (requestParameters['id'] == null) {
407
+ throw new runtime.RequiredError(
408
+ 'id',
409
+ 'Required parameter "id" was null or undefined when calling apiV1ChatsIdArtifactsGet().'
410
+ );
411
+ }
412
+
413
+ const queryParameters: any = {};
414
+
415
+ const headerParameters: runtime.HTTPHeaders = {};
416
+
417
+
418
+ let urlPath = `/api/v1/chats/{id}/artifacts`;
419
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
420
+
421
+ return {
422
+ path: urlPath,
423
+ method: 'GET',
424
+ headers: headerParameters,
425
+ query: queryParameters,
426
+ };
427
+ }
428
+
429
+ /**
430
+ * List artifacts for chat
431
+ */
432
+ async apiV1ChatsIdArtifactsGetRaw(requestParameters: ApiV1ChatsIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1ChatsIdArtifactsGet200Response>> {
433
+ const requestOptions = await this.apiV1ChatsIdArtifactsGetRequestOpts(requestParameters);
434
+ const response = await this.request(requestOptions, initOverrides);
435
+
436
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1ChatsIdArtifactsGet200ResponseFromJSON(jsonValue));
437
+ }
438
+
439
+ /**
440
+ * List artifacts for chat
441
+ */
442
+ async apiV1ChatsIdArtifactsGet(requestParameters: ApiV1ChatsIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsIdArtifactsGet200Response> {
443
+ const response = await this.apiV1ChatsIdArtifactsGetRaw(requestParameters, initOverrides);
444
+ return await response.value();
445
+ }
446
+
384
447
  /**
385
448
  * Creates request options for apiV1ChatsIdMessagesMessageIdAttachmentsGet without sending the request
386
449
  */
@@ -586,6 +649,59 @@ export class ChatsApi extends runtime.BaseAPI {
586
649
  return await response.value();
587
650
  }
588
651
 
652
+ /**
653
+ * Creates request options for apiV1ChatsIdRunsRunIdArtifactsGet without sending the request
654
+ */
655
+ async apiV1ChatsIdRunsRunIdArtifactsGetRequestOpts(requestParameters: ApiV1ChatsIdRunsRunIdArtifactsGetRequest): Promise<runtime.RequestOpts> {
656
+ if (requestParameters['id'] == null) {
657
+ throw new runtime.RequiredError(
658
+ 'id',
659
+ 'Required parameter "id" was null or undefined when calling apiV1ChatsIdRunsRunIdArtifactsGet().'
660
+ );
661
+ }
662
+
663
+ if (requestParameters['runId'] == null) {
664
+ throw new runtime.RequiredError(
665
+ 'runId',
666
+ 'Required parameter "runId" was null or undefined when calling apiV1ChatsIdRunsRunIdArtifactsGet().'
667
+ );
668
+ }
669
+
670
+ const queryParameters: any = {};
671
+
672
+ const headerParameters: runtime.HTTPHeaders = {};
673
+
674
+
675
+ let urlPath = `/api/v1/chats/{id}/runs/{run_id}/artifacts`;
676
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
677
+ urlPath = urlPath.replace(`{${"run_id"}}`, encodeURIComponent(String(requestParameters['runId'])));
678
+
679
+ return {
680
+ path: urlPath,
681
+ method: 'GET',
682
+ headers: headerParameters,
683
+ query: queryParameters,
684
+ };
685
+ }
686
+
687
+ /**
688
+ * List artifacts for chat run
689
+ */
690
+ async apiV1ChatsIdRunsRunIdArtifactsGetRaw(requestParameters: ApiV1ChatsIdRunsRunIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1ChatsIdRunsRunIdArtifactsGet200Response>> {
691
+ const requestOptions = await this.apiV1ChatsIdRunsRunIdArtifactsGetRequestOpts(requestParameters);
692
+ const response = await this.request(requestOptions, initOverrides);
693
+
694
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSON(jsonValue));
695
+ }
696
+
697
+ /**
698
+ * List artifacts for chat run
699
+ */
700
+ async apiV1ChatsIdRunsRunIdArtifactsGet(requestParameters: ApiV1ChatsIdRunsRunIdArtifactsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsIdRunsRunIdArtifactsGet200Response> {
701
+ const response = await this.apiV1ChatsIdRunsRunIdArtifactsGetRaw(requestParameters, initOverrides);
702
+ return await response.value();
703
+ }
704
+
589
705
  /**
590
706
  * Creates request options for apiV1ChatsIdRunsRunIdCitationsGet without sending the request
591
707
  */
@@ -15,23 +15,23 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ApiV1ChatsIdReportsPost410Response,
18
19
  ApiV1ChatsIdReportsPost422Response,
19
20
  ApiV1TemplatesGet200Response,
20
21
  ApiV1TemplatesIdGet200Response,
21
- ApiV1TemplatesIdGet404Response,
22
22
  ApiV1TemplatesIdPutRequest,
23
23
  ApiV1TemplatesPost201Response,
24
24
  ApiV1TemplatesPostRequest,
25
25
  } from '../models/index';
26
26
  import {
27
+ ApiV1ChatsIdReportsPost410ResponseFromJSON,
28
+ ApiV1ChatsIdReportsPost410ResponseToJSON,
27
29
  ApiV1ChatsIdReportsPost422ResponseFromJSON,
28
30
  ApiV1ChatsIdReportsPost422ResponseToJSON,
29
31
  ApiV1TemplatesGet200ResponseFromJSON,
30
32
  ApiV1TemplatesGet200ResponseToJSON,
31
33
  ApiV1TemplatesIdGet200ResponseFromJSON,
32
34
  ApiV1TemplatesIdGet200ResponseToJSON,
33
- ApiV1TemplatesIdGet404ResponseFromJSON,
34
- ApiV1TemplatesIdGet404ResponseToJSON,
35
35
  ApiV1TemplatesIdPutRequestFromJSON,
36
36
  ApiV1TemplatesIdPutRequestToJSON,
37
37
  ApiV1TemplatesPost201ResponseFromJSON,
@@ -0,0 +1,74 @@
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
+ import type { ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner } from './ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner';
17
+ import {
18
+ ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSON,
19
+ ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped,
20
+ ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSON,
21
+ ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSONTyped,
22
+ } from './ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiV1ChatsIdArtifactsGet200Response
28
+ */
29
+ export interface ApiV1ChatsIdArtifactsGet200Response {
30
+ /**
31
+ *
32
+ * @type {Array<ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner>}
33
+ * @memberof ApiV1ChatsIdArtifactsGet200Response
34
+ */
35
+ artifacts: Array<ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ApiV1ChatsIdArtifactsGet200Response interface.
40
+ */
41
+ export function instanceOfApiV1ChatsIdArtifactsGet200Response(value: object): value is ApiV1ChatsIdArtifactsGet200Response {
42
+ if (!('artifacts' in value) || value['artifacts'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function ApiV1ChatsIdArtifactsGet200ResponseFromJSON(json: any): ApiV1ChatsIdArtifactsGet200Response {
47
+ return ApiV1ChatsIdArtifactsGet200ResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function ApiV1ChatsIdArtifactsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdArtifactsGet200Response {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'artifacts': ((json['artifacts'] as Array<any>).map(ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function ApiV1ChatsIdArtifactsGet200ResponseToJSON(json: any): ApiV1ChatsIdArtifactsGet200Response {
61
+ return ApiV1ChatsIdArtifactsGet200ResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApiV1ChatsIdArtifactsGet200ResponseToJSONTyped(value?: ApiV1ChatsIdArtifactsGet200Response | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'artifacts': ((value['artifacts'] as Array<any>).map(ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,137 @@
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 ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
20
+ */
21
+ export interface ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
32
+ */
33
+ sessionId: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
38
+ */
39
+ runId: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
44
+ */
45
+ kind: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
50
+ */
51
+ title?: string | null;
52
+ /**
53
+ *
54
+ * @type {object}
55
+ * @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
56
+ */
57
+ payload: object;
58
+ /**
59
+ *
60
+ * @type {object}
61
+ * @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
62
+ */
63
+ metadata: object;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
68
+ */
69
+ position: number;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner
74
+ */
75
+ createdAt: Date;
76
+ }
77
+
78
+ /**
79
+ * Check if a given object implements the ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner interface.
80
+ */
81
+ export function instanceOfApiV1ChatsIdArtifactsGet200ResponseArtifactsInner(value: object): value is ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner {
82
+ if (!('id' in value) || value['id'] === undefined) return false;
83
+ if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
84
+ if (!('runId' in value) || value['runId'] === undefined) return false;
85
+ if (!('kind' in value) || value['kind'] === undefined) return false;
86
+ if (!('payload' in value) || value['payload'] === undefined) return false;
87
+ if (!('metadata' in value) || value['metadata'] === undefined) return false;
88
+ if (!('position' in value) || value['position'] === undefined) return false;
89
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
90
+ return true;
91
+ }
92
+
93
+ export function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSON(json: any): ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner {
94
+ return ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'id': json['id'],
104
+ 'sessionId': json['session_id'],
105
+ 'runId': json['run_id'],
106
+ 'kind': json['kind'],
107
+ 'title': json['title'] == null ? undefined : json['title'],
108
+ 'payload': json['payload'],
109
+ 'metadata': json['metadata'],
110
+ 'position': json['position'],
111
+ 'createdAt': (new Date(json['created_at'])),
112
+ };
113
+ }
114
+
115
+ export function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSON(json: any): ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner {
116
+ return ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSONTyped(json, false);
117
+ }
118
+
119
+ export function ApiV1ChatsIdArtifactsGet200ResponseArtifactsInnerToJSONTyped(value?: ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner | null, ignoreDiscriminator: boolean = false): any {
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+
124
+ return {
125
+
126
+ 'id': value['id'],
127
+ 'session_id': value['sessionId'],
128
+ 'run_id': value['runId'],
129
+ 'kind': value['kind'],
130
+ 'title': value['title'],
131
+ 'payload': value['payload'],
132
+ 'metadata': value['metadata'],
133
+ 'position': value['position'],
134
+ 'created_at': value['createdAt'].toISOString(),
135
+ };
136
+ }
137
+
@@ -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 ApiV1ChatsIdReportsPost410Response
20
+ */
21
+ export interface ApiV1ChatsIdReportsPost410Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiV1ChatsIdReportsPost410Response
26
+ */
27
+ error: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ApiV1ChatsIdReportsPost410Response interface.
32
+ */
33
+ export function instanceOfApiV1ChatsIdReportsPost410Response(value: object): value is ApiV1ChatsIdReportsPost410Response {
34
+ if (!('error' in value) || value['error'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ApiV1ChatsIdReportsPost410ResponseFromJSON(json: any): ApiV1ChatsIdReportsPost410Response {
39
+ return ApiV1ChatsIdReportsPost410ResponseFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ApiV1ChatsIdReportsPost410ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdReportsPost410Response {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'error': json['error'],
49
+ };
50
+ }
51
+
52
+ export function ApiV1ChatsIdReportsPost410ResponseToJSON(json: any): ApiV1ChatsIdReportsPost410Response {
53
+ return ApiV1ChatsIdReportsPost410ResponseToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ApiV1ChatsIdReportsPost410ResponseToJSONTyped(value?: ApiV1ChatsIdReportsPost410Response | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'error': value['error'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,74 @@
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
+ import type { ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner } from './ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner';
17
+ import {
18
+ ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSON,
19
+ ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped,
20
+ ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSON,
21
+ ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSONTyped,
22
+ } from './ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiV1ChatsIdRunsRunIdArtifactsGet200Response
28
+ */
29
+ export interface ApiV1ChatsIdRunsRunIdArtifactsGet200Response {
30
+ /**
31
+ *
32
+ * @type {Array<ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner>}
33
+ * @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200Response
34
+ */
35
+ artifacts: Array<ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ApiV1ChatsIdRunsRunIdArtifactsGet200Response interface.
40
+ */
41
+ export function instanceOfApiV1ChatsIdRunsRunIdArtifactsGet200Response(value: object): value is ApiV1ChatsIdRunsRunIdArtifactsGet200Response {
42
+ if (!('artifacts' in value) || value['artifacts'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSON(json: any): ApiV1ChatsIdRunsRunIdArtifactsGet200Response {
47
+ return ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdRunsRunIdArtifactsGet200Response {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'artifacts': ((json['artifacts'] as Array<any>).map(ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSON(json: any): ApiV1ChatsIdRunsRunIdArtifactsGet200Response {
61
+ return ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseToJSONTyped(value?: ApiV1ChatsIdRunsRunIdArtifactsGet200Response | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'artifacts': ((value['artifacts'] as Array<any>).map(ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,102 @@
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 ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
20
+ */
21
+ export interface ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
32
+ */
33
+ runId: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
38
+ */
39
+ kind: string;
40
+ /**
41
+ *
42
+ * @type {object}
43
+ * @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
44
+ */
45
+ payload: object;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner
50
+ */
51
+ position: number;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner interface.
56
+ */
57
+ export function instanceOfApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner(value: object): value is ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner {
58
+ if (!('id' in value) || value['id'] === undefined) return false;
59
+ if (!('runId' in value) || value['runId'] === undefined) return false;
60
+ if (!('kind' in value) || value['kind'] === undefined) return false;
61
+ if (!('payload' in value) || value['payload'] === undefined) return false;
62
+ if (!('position' in value) || value['position'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSON(json: any): ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner {
67
+ return ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'id': json['id'],
77
+ 'runId': json['run_id'],
78
+ 'kind': json['kind'],
79
+ 'payload': json['payload'],
80
+ 'position': json['position'],
81
+ };
82
+ }
83
+
84
+ export function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSON(json: any): ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner {
85
+ return ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSONTyped(json, false);
86
+ }
87
+
88
+ export function ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInnerToJSONTyped(value?: ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'id': value['id'],
96
+ 'run_id': value['runId'],
97
+ 'kind': value['kind'],
98
+ 'payload': value['payload'],
99
+ 'position': value['position'],
100
+ };
101
+ }
102
+
@@ -7,6 +7,8 @@ export * from './ApiV1ChatsChatIdMessagesPostRequest';
7
7
  export * from './ApiV1ChatsChatIdMessagesSyncGet200Response';
8
8
  export * from './ApiV1ChatsGet200Response';
9
9
  export * from './ApiV1ChatsGet200ResponseChatsInner';
10
+ export * from './ApiV1ChatsIdArtifactsGet200Response';
11
+ export * from './ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner';
10
12
  export * from './ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response';
11
13
  export * from './ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner';
12
14
  export * from './ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response';
@@ -16,11 +18,14 @@ export * from './ApiV1ChatsIdReadPostRequest';
16
18
  export * from './ApiV1ChatsIdReportsPost200Response';
17
19
  export * from './ApiV1ChatsIdReportsPost200ResponseRowsInner';
18
20
  export * from './ApiV1ChatsIdReportsPost200ResponseSourceMetadata';
21
+ export * from './ApiV1ChatsIdReportsPost410Response';
19
22
  export * from './ApiV1ChatsIdReportsPost422Response';
20
23
  export * from './ApiV1ChatsIdReportsPostRequest';
21
24
  export * from './ApiV1ChatsIdReportsPostRequestPlanner';
22
25
  export * from './ApiV1ChatsIdReportsPostRequestPlannerParams';
23
26
  export * from './ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner';
27
+ export * from './ApiV1ChatsIdRunsRunIdArtifactsGet200Response';
28
+ export * from './ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner';
24
29
  export * from './ApiV1ChatsIdRunsRunIdCitationsGet200Response';
25
30
  export * from './ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner';
26
31
  export * from './ApiV1ChatsIdRunsRunIdGet200Response';
@@ -60,7 +65,6 @@ export * from './ApiV1TemplatesGet200ResponseTemplatesInner';
60
65
  export * from './ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema';
61
66
  export * from './ApiV1TemplatesIdGet200Response';
62
67
  export * from './ApiV1TemplatesIdGet200ResponseSchemasInner';
63
- export * from './ApiV1TemplatesIdGet404Response';
64
68
  export * from './ApiV1TemplatesIdPutRequest';
65
69
  export * from './ApiV1TemplatesIdPutRequestTemplate';
66
70
  export * from './ApiV1TemplatesPost201Response';