blanche-client-sdk 0.6.0 → 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 +14 -0
- package/README.md +12 -2
- package/dist/apis/ChatsApi.d.ts +44 -1
- package/dist/apis/ChatsApi.js +177 -0
- package/dist/models/ApiV1ChatsChatIdMessagesSyncGet200Response.d.ts +7 -0
- package/dist/models/ApiV1ChatsChatIdMessagesSyncGet200Response.js +5 -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/ApiV1ChatsIdReportsPost200Response.d.ts +12 -0
- package/dist/models/ApiV1ChatsIdReportsPost200Response.js +8 -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/ApiV1ChatsRealtimeContractGet200Response.d.ts +57 -0
- package/dist/models/ApiV1ChatsRealtimeContractGet200Response.js +68 -0
- package/dist/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.d.ts +38 -0
- package/dist/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.js +55 -0
- package/dist/models/ApiV1ChatsSyncGet200Response.d.ts +7 -0
- package/dist/models/ApiV1ChatsSyncGet200Response.js +5 -0
- package/dist/models/ApiV1ChatsSyncGet200ResponseCursorContract.d.ts +38 -0
- package/dist/models/ApiV1ChatsSyncGet200ResponseCursorContract.js +55 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/docs/ApiV1ChatsChatIdMessagesSyncGet200Response.md +2 -0
- package/docs/ApiV1ChatsIdArtifactsGet200Response.md +34 -0
- package/docs/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.md +50 -0
- package/docs/ApiV1ChatsIdReportsPost200Response.md +4 -0
- package/docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md +34 -0
- package/docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md +42 -0
- package/docs/ApiV1ChatsRealtimeContractGet200Response.md +42 -0
- package/docs/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.md +36 -0
- package/docs/ApiV1ChatsSyncGet200Response.md +2 -0
- package/docs/ApiV1ChatsSyncGet200ResponseCursorContract.md +36 -0
- package/docs/ChatsApi.md +193 -0
- package/package.json +1 -1
- package/src/apis/ChatsApi.ts +153 -0
- package/src/models/ApiV1ChatsChatIdMessagesSyncGet200Response.ts +17 -0
- package/src/models/ApiV1ChatsIdArtifactsGet200Response.ts +74 -0
- package/src/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.ts +137 -0
- package/src/models/ApiV1ChatsIdReportsPost200Response.ts +18 -0
- package/src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.ts +74 -0
- package/src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.ts +102 -0
- package/src/models/ApiV1ChatsRealtimeContractGet200Response.ts +110 -0
- package/src/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.ts +75 -0
- package/src/models/ApiV1ChatsSyncGet200Response.ts +17 -0
- package/src/models/ApiV1ChatsSyncGet200ResponseCursorContract.ts +75 -0
- package/src/models/index.ts +7 -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
|
|
@@ -35,7 +39,10 @@ docs/ApiV1ChatsPlannerPost200Response.md
|
|
|
35
39
|
docs/ApiV1ChatsPlannerPostRequest.md
|
|
36
40
|
docs/ApiV1ChatsPost201Response.md
|
|
37
41
|
docs/ApiV1ChatsPostRequest.md
|
|
42
|
+
docs/ApiV1ChatsRealtimeContractGet200Response.md
|
|
43
|
+
docs/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.md
|
|
38
44
|
docs/ApiV1ChatsSyncGet200Response.md
|
|
45
|
+
docs/ApiV1ChatsSyncGet200ResponseCursorContract.md
|
|
39
46
|
docs/ApiV1ProfileGet200Response.md
|
|
40
47
|
docs/ApiV1ProfileGet401Response.md
|
|
41
48
|
docs/ApiV1RecordsGet200Response.md
|
|
@@ -104,6 +111,8 @@ src/models/ApiV1ChatsChatIdMessagesPostRequest.ts
|
|
|
104
111
|
src/models/ApiV1ChatsChatIdMessagesSyncGet200Response.ts
|
|
105
112
|
src/models/ApiV1ChatsGet200Response.ts
|
|
106
113
|
src/models/ApiV1ChatsGet200ResponseChatsInner.ts
|
|
114
|
+
src/models/ApiV1ChatsIdArtifactsGet200Response.ts
|
|
115
|
+
src/models/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.ts
|
|
107
116
|
src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.ts
|
|
108
117
|
src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.ts
|
|
109
118
|
src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.ts
|
|
@@ -118,6 +127,8 @@ src/models/ApiV1ChatsIdReportsPostRequest.ts
|
|
|
118
127
|
src/models/ApiV1ChatsIdReportsPostRequestPlanner.ts
|
|
119
128
|
src/models/ApiV1ChatsIdReportsPostRequestPlannerParams.ts
|
|
120
129
|
src/models/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.ts
|
|
130
|
+
src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.ts
|
|
131
|
+
src/models/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.ts
|
|
121
132
|
src/models/ApiV1ChatsIdRunsRunIdCitationsGet200Response.ts
|
|
122
133
|
src/models/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.ts
|
|
123
134
|
src/models/ApiV1ChatsIdRunsRunIdGet200Response.ts
|
|
@@ -130,7 +141,10 @@ src/models/ApiV1ChatsPlannerPost200Response.ts
|
|
|
130
141
|
src/models/ApiV1ChatsPlannerPostRequest.ts
|
|
131
142
|
src/models/ApiV1ChatsPost201Response.ts
|
|
132
143
|
src/models/ApiV1ChatsPostRequest.ts
|
|
144
|
+
src/models/ApiV1ChatsRealtimeContractGet200Response.ts
|
|
145
|
+
src/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.ts
|
|
133
146
|
src/models/ApiV1ChatsSyncGet200Response.ts
|
|
147
|
+
src/models/ApiV1ChatsSyncGet200ResponseCursorContract.ts
|
|
134
148
|
src/models/ApiV1ProfileGet200Response.ts
|
|
135
149
|
src/models/ApiV1ProfileGet401Response.ts
|
|
136
150
|
src/models/ApiV1RecordsGet200Response.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
|
|
@@ -70,6 +72,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
70
72
|
*ChatsApi* | [**apiV1ChatsPlannerContractGet**](docs/ChatsApi.md#apiv1chatsplannercontractget) | **GET** /api/v1/chats/planner_contract | Get planner contract schema
|
|
71
73
|
*ChatsApi* | [**apiV1ChatsPlannerPost**](docs/ChatsApi.md#apiv1chatsplannerpostoperation) | **POST** /api/v1/chats/planner | Build deterministic planner decision
|
|
72
74
|
*ChatsApi* | [**apiV1ChatsPost**](docs/ChatsApi.md#apiv1chatspostoperation) | **POST** /api/v1/chats | Create chat
|
|
75
|
+
*ChatsApi* | [**apiV1ChatsRealtimeContractGet**](docs/ChatsApi.md#apiv1chatsrealtimecontractget) | **GET** /api/v1/chats/realtime_contract | Get AnyCable realtime event contract
|
|
73
76
|
*ChatsApi* | [**apiV1ChatsSyncGet**](docs/ChatsApi.md#apiv1chatssyncget) | **GET** /api/v1/chats/sync | Sync chats by cursor
|
|
74
77
|
*RecordsApi* | [**apiV1RecordsGet**](docs/RecordsApi.md#apiv1recordsget) | **GET** /api/v1/records | List records
|
|
75
78
|
*RecordsApi* | [**apiV1RecordsIdDelete**](docs/RecordsApi.md#apiv1recordsiddelete) | **DELETE** /api/v1/records/{id} | Delete record
|
|
@@ -108,6 +111,8 @@ All URIs are relative to *http://localhost:3000*
|
|
|
108
111
|
- [ApiV1ChatsChatIdMessagesSyncGet200Response](docs/ApiV1ChatsChatIdMessagesSyncGet200Response.md)
|
|
109
112
|
- [ApiV1ChatsGet200Response](docs/ApiV1ChatsGet200Response.md)
|
|
110
113
|
- [ApiV1ChatsGet200ResponseChatsInner](docs/ApiV1ChatsGet200ResponseChatsInner.md)
|
|
114
|
+
- [ApiV1ChatsIdArtifactsGet200Response](docs/ApiV1ChatsIdArtifactsGet200Response.md)
|
|
115
|
+
- [ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner](docs/ApiV1ChatsIdArtifactsGet200ResponseArtifactsInner.md)
|
|
111
116
|
- [ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response](docs/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.md)
|
|
112
117
|
- [ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner](docs/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.md)
|
|
113
118
|
- [ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response](docs/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.md)
|
|
@@ -122,6 +127,8 @@ All URIs are relative to *http://localhost:3000*
|
|
|
122
127
|
- [ApiV1ChatsIdReportsPostRequestPlanner](docs/ApiV1ChatsIdReportsPostRequestPlanner.md)
|
|
123
128
|
- [ApiV1ChatsIdReportsPostRequestPlannerParams](docs/ApiV1ChatsIdReportsPostRequestPlannerParams.md)
|
|
124
129
|
- [ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner](docs/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.md)
|
|
130
|
+
- [ApiV1ChatsIdRunsRunIdArtifactsGet200Response](docs/ApiV1ChatsIdRunsRunIdArtifactsGet200Response.md)
|
|
131
|
+
- [ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner](docs/ApiV1ChatsIdRunsRunIdArtifactsGet200ResponseArtifactsInner.md)
|
|
125
132
|
- [ApiV1ChatsIdRunsRunIdCitationsGet200Response](docs/ApiV1ChatsIdRunsRunIdCitationsGet200Response.md)
|
|
126
133
|
- [ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner](docs/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.md)
|
|
127
134
|
- [ApiV1ChatsIdRunsRunIdGet200Response](docs/ApiV1ChatsIdRunsRunIdGet200Response.md)
|
|
@@ -134,7 +141,10 @@ All URIs are relative to *http://localhost:3000*
|
|
|
134
141
|
- [ApiV1ChatsPlannerPostRequest](docs/ApiV1ChatsPlannerPostRequest.md)
|
|
135
142
|
- [ApiV1ChatsPost201Response](docs/ApiV1ChatsPost201Response.md)
|
|
136
143
|
- [ApiV1ChatsPostRequest](docs/ApiV1ChatsPostRequest.md)
|
|
144
|
+
- [ApiV1ChatsRealtimeContractGet200Response](docs/ApiV1ChatsRealtimeContractGet200Response.md)
|
|
145
|
+
- [ApiV1ChatsRealtimeContractGet200ResponseEventsInner](docs/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.md)
|
|
137
146
|
- [ApiV1ChatsSyncGet200Response](docs/ApiV1ChatsSyncGet200Response.md)
|
|
147
|
+
- [ApiV1ChatsSyncGet200ResponseCursorContract](docs/ApiV1ChatsSyncGet200ResponseCursorContract.md)
|
|
138
148
|
- [ApiV1ProfileGet200Response](docs/ApiV1ProfileGet200Response.md)
|
|
139
149
|
- [ApiV1ProfileGet401Response](docs/ApiV1ProfileGet401Response.md)
|
|
140
150
|
- [ApiV1RecordsGet200Response](docs/ApiV1RecordsGet200Response.md)
|
|
@@ -192,7 +202,7 @@ and is automatically generated by the
|
|
|
192
202
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
193
203
|
|
|
194
204
|
- API version: `v1`
|
|
195
|
-
- Package version: `0.6.
|
|
205
|
+
- Package version: `0.6.2`
|
|
196
206
|
- Generator version: `7.20.0`
|
|
197
207
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
198
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, 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
|
*/
|
|
@@ -271,6 +302,18 @@ export declare class ChatsApi extends runtime.BaseAPI {
|
|
|
271
302
|
* Create chat
|
|
272
303
|
*/
|
|
273
304
|
apiV1ChatsPost(requestParameters?: ApiV1ChatsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsPost201Response>;
|
|
305
|
+
/**
|
|
306
|
+
* Creates request options for apiV1ChatsRealtimeContractGet without sending the request
|
|
307
|
+
*/
|
|
308
|
+
apiV1ChatsRealtimeContractGetRequestOpts(): Promise<runtime.RequestOpts>;
|
|
309
|
+
/**
|
|
310
|
+
* Get AnyCable realtime event contract
|
|
311
|
+
*/
|
|
312
|
+
apiV1ChatsRealtimeContractGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1ChatsRealtimeContractGet200Response>>;
|
|
313
|
+
/**
|
|
314
|
+
* Get AnyCable realtime event contract
|
|
315
|
+
*/
|
|
316
|
+
apiV1ChatsRealtimeContractGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsRealtimeContractGet200Response>;
|
|
274
317
|
/**
|
|
275
318
|
* Creates request options for apiV1ChatsSyncGet without sending the request
|
|
276
319
|
*/
|
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
|
*/
|
|
@@ -1058,6 +1180,61 @@ var ChatsApi = /** @class */ (function (_super) {
|
|
|
1058
1180
|
});
|
|
1059
1181
|
});
|
|
1060
1182
|
};
|
|
1183
|
+
/**
|
|
1184
|
+
* Creates request options for apiV1ChatsRealtimeContractGet without sending the request
|
|
1185
|
+
*/
|
|
1186
|
+
ChatsApi.prototype.apiV1ChatsRealtimeContractGetRequestOpts = function () {
|
|
1187
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1188
|
+
var queryParameters, headerParameters, urlPath;
|
|
1189
|
+
return __generator(this, function (_a) {
|
|
1190
|
+
queryParameters = {};
|
|
1191
|
+
headerParameters = {};
|
|
1192
|
+
urlPath = "/api/v1/chats/realtime_contract";
|
|
1193
|
+
return [2 /*return*/, {
|
|
1194
|
+
path: urlPath,
|
|
1195
|
+
method: 'GET',
|
|
1196
|
+
headers: headerParameters,
|
|
1197
|
+
query: queryParameters,
|
|
1198
|
+
}];
|
|
1199
|
+
});
|
|
1200
|
+
});
|
|
1201
|
+
};
|
|
1202
|
+
/**
|
|
1203
|
+
* Get AnyCable realtime event contract
|
|
1204
|
+
*/
|
|
1205
|
+
ChatsApi.prototype.apiV1ChatsRealtimeContractGetRaw = function (initOverrides) {
|
|
1206
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1207
|
+
var requestOptions, response;
|
|
1208
|
+
return __generator(this, function (_a) {
|
|
1209
|
+
switch (_a.label) {
|
|
1210
|
+
case 0: return [4 /*yield*/, this.apiV1ChatsRealtimeContractGetRequestOpts()];
|
|
1211
|
+
case 1:
|
|
1212
|
+
requestOptions = _a.sent();
|
|
1213
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1214
|
+
case 2:
|
|
1215
|
+
response = _a.sent();
|
|
1216
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1ChatsRealtimeContractGet200ResponseFromJSON)(jsonValue); })];
|
|
1217
|
+
}
|
|
1218
|
+
});
|
|
1219
|
+
});
|
|
1220
|
+
};
|
|
1221
|
+
/**
|
|
1222
|
+
* Get AnyCable realtime event contract
|
|
1223
|
+
*/
|
|
1224
|
+
ChatsApi.prototype.apiV1ChatsRealtimeContractGet = function (initOverrides) {
|
|
1225
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1226
|
+
var response;
|
|
1227
|
+
return __generator(this, function (_a) {
|
|
1228
|
+
switch (_a.label) {
|
|
1229
|
+
case 0: return [4 /*yield*/, this.apiV1ChatsRealtimeContractGetRaw(initOverrides)];
|
|
1230
|
+
case 1:
|
|
1231
|
+
response = _a.sent();
|
|
1232
|
+
return [4 /*yield*/, response.value()];
|
|
1233
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1234
|
+
}
|
|
1235
|
+
});
|
|
1236
|
+
});
|
|
1237
|
+
};
|
|
1061
1238
|
/**
|
|
1062
1239
|
* Creates request options for apiV1ChatsSyncGet without sending the request
|
|
1063
1240
|
*/
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ApiV1ChatsSyncGet200ResponseCursorContract } from './ApiV1ChatsSyncGet200ResponseCursorContract';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -33,6 +34,12 @@ export interface ApiV1ChatsChatIdMessagesSyncGet200Response {
|
|
|
33
34
|
* @memberof ApiV1ChatsChatIdMessagesSyncGet200Response
|
|
34
35
|
*/
|
|
35
36
|
hasMore: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ApiV1ChatsSyncGet200ResponseCursorContract}
|
|
40
|
+
* @memberof ApiV1ChatsChatIdMessagesSyncGet200Response
|
|
41
|
+
*/
|
|
42
|
+
cursorContract: ApiV1ChatsSyncGet200ResponseCursorContract;
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
45
|
* Check if a given object implements the ApiV1ChatsChatIdMessagesSyncGet200Response interface.
|
|
@@ -18,6 +18,7 @@ exports.ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSON = ApiV1ChatsChatIdMes
|
|
|
18
18
|
exports.ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSONTyped = ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSONTyped;
|
|
19
19
|
exports.ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSON = ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSON;
|
|
20
20
|
exports.ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSONTyped = ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSONTyped;
|
|
21
|
+
var ApiV1ChatsSyncGet200ResponseCursorContract_1 = require("./ApiV1ChatsSyncGet200ResponseCursorContract");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the ApiV1ChatsChatIdMessagesSyncGet200Response interface.
|
|
23
24
|
*/
|
|
@@ -26,6 +27,8 @@ function instanceOfApiV1ChatsChatIdMessagesSyncGet200Response(value) {
|
|
|
26
27
|
return false;
|
|
27
28
|
if (!('hasMore' in value) || value['hasMore'] === undefined)
|
|
28
29
|
return false;
|
|
30
|
+
if (!('cursorContract' in value) || value['cursorContract'] === undefined)
|
|
31
|
+
return false;
|
|
29
32
|
return true;
|
|
30
33
|
}
|
|
31
34
|
function ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSON(json) {
|
|
@@ -39,6 +42,7 @@ function ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSONTyped(json, ignoreDis
|
|
|
39
42
|
'messages': json['messages'],
|
|
40
43
|
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
41
44
|
'hasMore': json['has_more'],
|
|
45
|
+
'cursorContract': (0, ApiV1ChatsSyncGet200ResponseCursorContract_1.ApiV1ChatsSyncGet200ResponseCursorContractFromJSON)(json['cursor_contract']),
|
|
42
46
|
};
|
|
43
47
|
}
|
|
44
48
|
function ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSON(json) {
|
|
@@ -53,5 +57,6 @@ function ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSONTyped(value, ignoreDisc
|
|
|
53
57
|
'messages': value['messages'],
|
|
54
58
|
'cursor': value['cursor'],
|
|
55
59
|
'has_more': value['hasMore'],
|
|
60
|
+
'cursor_contract': (0, ApiV1ChatsSyncGet200ResponseCursorContract_1.ApiV1ChatsSyncGet200ResponseCursorContractToJSON)(value['cursorContract']),
|
|
56
61
|
};
|
|
57
62
|
}
|
|
@@ -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;
|