blanche-client-sdk 0.6.0 → 0.6.1
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 +6 -0
- package/README.md +6 -2
- package/dist/apis/ChatsApi.d.ts +13 -1
- package/dist/apis/ChatsApi.js +55 -0
- package/dist/models/ApiV1ChatsChatIdMessagesSyncGet200Response.d.ts +7 -0
- package/dist/models/ApiV1ChatsChatIdMessagesSyncGet200Response.js +5 -0
- package/dist/models/ApiV1ChatsIdReportsPost200Response.d.ts +12 -0
- package/dist/models/ApiV1ChatsIdReportsPost200Response.js +8 -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 +3 -0
- package/dist/models/index.js +3 -0
- package/docs/ApiV1ChatsChatIdMessagesSyncGet200Response.md +2 -0
- package/docs/ApiV1ChatsIdReportsPost200Response.md +4 -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 +58 -0
- package/package.json +1 -1
- package/src/apis/ChatsApi.ts +40 -0
- package/src/models/ApiV1ChatsChatIdMessagesSyncGet200Response.ts +17 -0
- package/src/models/ApiV1ChatsIdReportsPost200Response.ts +18 -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 +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -35,7 +35,10 @@ docs/ApiV1ChatsPlannerPost200Response.md
|
|
|
35
35
|
docs/ApiV1ChatsPlannerPostRequest.md
|
|
36
36
|
docs/ApiV1ChatsPost201Response.md
|
|
37
37
|
docs/ApiV1ChatsPostRequest.md
|
|
38
|
+
docs/ApiV1ChatsRealtimeContractGet200Response.md
|
|
39
|
+
docs/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.md
|
|
38
40
|
docs/ApiV1ChatsSyncGet200Response.md
|
|
41
|
+
docs/ApiV1ChatsSyncGet200ResponseCursorContract.md
|
|
39
42
|
docs/ApiV1ProfileGet200Response.md
|
|
40
43
|
docs/ApiV1ProfileGet401Response.md
|
|
41
44
|
docs/ApiV1RecordsGet200Response.md
|
|
@@ -130,7 +133,10 @@ src/models/ApiV1ChatsPlannerPost200Response.ts
|
|
|
130
133
|
src/models/ApiV1ChatsPlannerPostRequest.ts
|
|
131
134
|
src/models/ApiV1ChatsPost201Response.ts
|
|
132
135
|
src/models/ApiV1ChatsPostRequest.ts
|
|
136
|
+
src/models/ApiV1ChatsRealtimeContractGet200Response.ts
|
|
137
|
+
src/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.ts
|
|
133
138
|
src/models/ApiV1ChatsSyncGet200Response.ts
|
|
139
|
+
src/models/ApiV1ChatsSyncGet200ResponseCursorContract.ts
|
|
134
140
|
src/models/ApiV1ProfileGet200Response.ts
|
|
135
141
|
src/models/ApiV1ProfileGet401Response.ts
|
|
136
142
|
src/models/ApiV1RecordsGet200Response.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# blanche-client-sdk@0.6.
|
|
1
|
+
# blanche-client-sdk@0.6.1
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -70,6 +70,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
70
70
|
*ChatsApi* | [**apiV1ChatsPlannerContractGet**](docs/ChatsApi.md#apiv1chatsplannercontractget) | **GET** /api/v1/chats/planner_contract | Get planner contract schema
|
|
71
71
|
*ChatsApi* | [**apiV1ChatsPlannerPost**](docs/ChatsApi.md#apiv1chatsplannerpostoperation) | **POST** /api/v1/chats/planner | Build deterministic planner decision
|
|
72
72
|
*ChatsApi* | [**apiV1ChatsPost**](docs/ChatsApi.md#apiv1chatspostoperation) | **POST** /api/v1/chats | Create chat
|
|
73
|
+
*ChatsApi* | [**apiV1ChatsRealtimeContractGet**](docs/ChatsApi.md#apiv1chatsrealtimecontractget) | **GET** /api/v1/chats/realtime_contract | Get AnyCable realtime event contract
|
|
73
74
|
*ChatsApi* | [**apiV1ChatsSyncGet**](docs/ChatsApi.md#apiv1chatssyncget) | **GET** /api/v1/chats/sync | Sync chats by cursor
|
|
74
75
|
*RecordsApi* | [**apiV1RecordsGet**](docs/RecordsApi.md#apiv1recordsget) | **GET** /api/v1/records | List records
|
|
75
76
|
*RecordsApi* | [**apiV1RecordsIdDelete**](docs/RecordsApi.md#apiv1recordsiddelete) | **DELETE** /api/v1/records/{id} | Delete record
|
|
@@ -134,7 +135,10 @@ All URIs are relative to *http://localhost:3000*
|
|
|
134
135
|
- [ApiV1ChatsPlannerPostRequest](docs/ApiV1ChatsPlannerPostRequest.md)
|
|
135
136
|
- [ApiV1ChatsPost201Response](docs/ApiV1ChatsPost201Response.md)
|
|
136
137
|
- [ApiV1ChatsPostRequest](docs/ApiV1ChatsPostRequest.md)
|
|
138
|
+
- [ApiV1ChatsRealtimeContractGet200Response](docs/ApiV1ChatsRealtimeContractGet200Response.md)
|
|
139
|
+
- [ApiV1ChatsRealtimeContractGet200ResponseEventsInner](docs/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.md)
|
|
137
140
|
- [ApiV1ChatsSyncGet200Response](docs/ApiV1ChatsSyncGet200Response.md)
|
|
141
|
+
- [ApiV1ChatsSyncGet200ResponseCursorContract](docs/ApiV1ChatsSyncGet200ResponseCursorContract.md)
|
|
138
142
|
- [ApiV1ProfileGet200Response](docs/ApiV1ProfileGet200Response.md)
|
|
139
143
|
- [ApiV1ProfileGet401Response](docs/ApiV1ProfileGet401Response.md)
|
|
140
144
|
- [ApiV1RecordsGet200Response](docs/ApiV1RecordsGet200Response.md)
|
|
@@ -192,7 +196,7 @@ and is automatically generated by the
|
|
|
192
196
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
193
197
|
|
|
194
198
|
- API version: `v1`
|
|
195
|
-
- Package version: `0.6.
|
|
199
|
+
- Package version: `0.6.1`
|
|
196
200
|
- Generator version: `7.20.0`
|
|
197
201
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
198
202
|
|
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, ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response, ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response, ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest, ApiV1ChatsIdReadPost200Response, ApiV1ChatsIdReadPostRequest, ApiV1ChatsIdReportsPost200Response, ApiV1ChatsIdReportsPostRequest, 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;
|
|
@@ -271,6 +271,18 @@ export declare class ChatsApi extends runtime.BaseAPI {
|
|
|
271
271
|
* Create chat
|
|
272
272
|
*/
|
|
273
273
|
apiV1ChatsPost(requestParameters?: ApiV1ChatsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsPost201Response>;
|
|
274
|
+
/**
|
|
275
|
+
* Creates request options for apiV1ChatsRealtimeContractGet without sending the request
|
|
276
|
+
*/
|
|
277
|
+
apiV1ChatsRealtimeContractGetRequestOpts(): Promise<runtime.RequestOpts>;
|
|
278
|
+
/**
|
|
279
|
+
* Get AnyCable realtime event contract
|
|
280
|
+
*/
|
|
281
|
+
apiV1ChatsRealtimeContractGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1ChatsRealtimeContractGet200Response>>;
|
|
282
|
+
/**
|
|
283
|
+
* Get AnyCable realtime event contract
|
|
284
|
+
*/
|
|
285
|
+
apiV1ChatsRealtimeContractGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1ChatsRealtimeContractGet200Response>;
|
|
274
286
|
/**
|
|
275
287
|
* Creates request options for apiV1ChatsSyncGet without sending the request
|
|
276
288
|
*/
|
package/dist/apis/ChatsApi.js
CHANGED
|
@@ -1058,6 +1058,61 @@ var ChatsApi = /** @class */ (function (_super) {
|
|
|
1058
1058
|
});
|
|
1059
1059
|
});
|
|
1060
1060
|
};
|
|
1061
|
+
/**
|
|
1062
|
+
* Creates request options for apiV1ChatsRealtimeContractGet without sending the request
|
|
1063
|
+
*/
|
|
1064
|
+
ChatsApi.prototype.apiV1ChatsRealtimeContractGetRequestOpts = function () {
|
|
1065
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1066
|
+
var queryParameters, headerParameters, urlPath;
|
|
1067
|
+
return __generator(this, function (_a) {
|
|
1068
|
+
queryParameters = {};
|
|
1069
|
+
headerParameters = {};
|
|
1070
|
+
urlPath = "/api/v1/chats/realtime_contract";
|
|
1071
|
+
return [2 /*return*/, {
|
|
1072
|
+
path: urlPath,
|
|
1073
|
+
method: 'GET',
|
|
1074
|
+
headers: headerParameters,
|
|
1075
|
+
query: queryParameters,
|
|
1076
|
+
}];
|
|
1077
|
+
});
|
|
1078
|
+
});
|
|
1079
|
+
};
|
|
1080
|
+
/**
|
|
1081
|
+
* Get AnyCable realtime event contract
|
|
1082
|
+
*/
|
|
1083
|
+
ChatsApi.prototype.apiV1ChatsRealtimeContractGetRaw = function (initOverrides) {
|
|
1084
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1085
|
+
var requestOptions, response;
|
|
1086
|
+
return __generator(this, function (_a) {
|
|
1087
|
+
switch (_a.label) {
|
|
1088
|
+
case 0: return [4 /*yield*/, this.apiV1ChatsRealtimeContractGetRequestOpts()];
|
|
1089
|
+
case 1:
|
|
1090
|
+
requestOptions = _a.sent();
|
|
1091
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1092
|
+
case 2:
|
|
1093
|
+
response = _a.sent();
|
|
1094
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ApiV1ChatsRealtimeContractGet200ResponseFromJSON)(jsonValue); })];
|
|
1095
|
+
}
|
|
1096
|
+
});
|
|
1097
|
+
});
|
|
1098
|
+
};
|
|
1099
|
+
/**
|
|
1100
|
+
* Get AnyCable realtime event contract
|
|
1101
|
+
*/
|
|
1102
|
+
ChatsApi.prototype.apiV1ChatsRealtimeContractGet = function (initOverrides) {
|
|
1103
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1104
|
+
var response;
|
|
1105
|
+
return __generator(this, function (_a) {
|
|
1106
|
+
switch (_a.label) {
|
|
1107
|
+
case 0: return [4 /*yield*/, this.apiV1ChatsRealtimeContractGetRaw(initOverrides)];
|
|
1108
|
+
case 1:
|
|
1109
|
+
response = _a.sent();
|
|
1110
|
+
return [4 /*yield*/, response.value()];
|
|
1111
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
});
|
|
1115
|
+
};
|
|
1061
1116
|
/**
|
|
1062
1117
|
* Creates request options for apiV1ChatsSyncGet without sending the request
|
|
1063
1118
|
*/
|
|
@@ -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
|
}
|
|
@@ -23,6 +23,18 @@ export interface ApiV1ChatsIdReportsPost200Response {
|
|
|
23
23
|
* @memberof ApiV1ChatsIdReportsPost200Response
|
|
24
24
|
*/
|
|
25
25
|
tool: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {object}
|
|
29
|
+
* @memberof ApiV1ChatsIdReportsPost200Response
|
|
30
|
+
*/
|
|
31
|
+
planner: object;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ApiV1ChatsIdReportsPost200Response
|
|
36
|
+
*/
|
|
37
|
+
retrievalStrategy: string;
|
|
26
38
|
/**
|
|
27
39
|
*
|
|
28
40
|
* @type {Array<ApiV1ChatsIdReportsPost200ResponseRowsInner>}
|
|
@@ -26,6 +26,10 @@ var ApiV1ChatsIdReportsPost200ResponseRowsInner_1 = require("./ApiV1ChatsIdRepor
|
|
|
26
26
|
function instanceOfApiV1ChatsIdReportsPost200Response(value) {
|
|
27
27
|
if (!('tool' in value) || value['tool'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('planner' in value) || value['planner'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('retrievalStrategy' in value) || value['retrievalStrategy'] === undefined)
|
|
32
|
+
return false;
|
|
29
33
|
if (!('rows' in value) || value['rows'] === undefined)
|
|
30
34
|
return false;
|
|
31
35
|
if (!('sourceMetadata' in value) || value['sourceMetadata'] === undefined)
|
|
@@ -41,6 +45,8 @@ function ApiV1ChatsIdReportsPost200ResponseFromJSONTyped(json, ignoreDiscriminat
|
|
|
41
45
|
}
|
|
42
46
|
return {
|
|
43
47
|
'tool': json['tool'],
|
|
48
|
+
'planner': json['planner'],
|
|
49
|
+
'retrievalStrategy': json['retrieval_strategy'],
|
|
44
50
|
'rows': (json['rows'].map(ApiV1ChatsIdReportsPost200ResponseRowsInner_1.ApiV1ChatsIdReportsPost200ResponseRowsInnerFromJSON)),
|
|
45
51
|
'sourceMetadata': (0, ApiV1ChatsIdReportsPost200ResponseSourceMetadata_1.ApiV1ChatsIdReportsPost200ResponseSourceMetadataFromJSON)(json['source_metadata']),
|
|
46
52
|
};
|
|
@@ -55,6 +61,8 @@ function ApiV1ChatsIdReportsPost200ResponseToJSONTyped(value, ignoreDiscriminato
|
|
|
55
61
|
}
|
|
56
62
|
return {
|
|
57
63
|
'tool': value['tool'],
|
|
64
|
+
'planner': value['planner'],
|
|
65
|
+
'retrieval_strategy': value['retrievalStrategy'],
|
|
58
66
|
'rows': (value['rows'].map(ApiV1ChatsIdReportsPost200ResponseRowsInner_1.ApiV1ChatsIdReportsPost200ResponseRowsInnerToJSON)),
|
|
59
67
|
'source_metadata': (0, ApiV1ChatsIdReportsPost200ResponseSourceMetadata_1.ApiV1ChatsIdReportsPost200ResponseSourceMetadataToJSON)(value['sourceMetadata']),
|
|
60
68
|
};
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { ApiV1ChatsRealtimeContractGet200ResponseEventsInner } from './ApiV1ChatsRealtimeContractGet200ResponseEventsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1ChatsRealtimeContractGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1ChatsRealtimeContractGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApiV1ChatsRealtimeContractGet200Response
|
|
23
|
+
*/
|
|
24
|
+
version: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiV1ChatsRealtimeContractGet200Response
|
|
29
|
+
*/
|
|
30
|
+
channel: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ApiV1ChatsRealtimeContractGet200Response
|
|
35
|
+
*/
|
|
36
|
+
streamName: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {object}
|
|
40
|
+
* @memberof ApiV1ChatsRealtimeContractGet200Response
|
|
41
|
+
*/
|
|
42
|
+
envelope: object;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<ApiV1ChatsRealtimeContractGet200ResponseEventsInner>}
|
|
46
|
+
* @memberof ApiV1ChatsRealtimeContractGet200Response
|
|
47
|
+
*/
|
|
48
|
+
events: Array<ApiV1ChatsRealtimeContractGet200ResponseEventsInner>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ApiV1ChatsRealtimeContractGet200Response interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfApiV1ChatsRealtimeContractGet200Response(value: object): value is ApiV1ChatsRealtimeContractGet200Response;
|
|
54
|
+
export declare function ApiV1ChatsRealtimeContractGet200ResponseFromJSON(json: any): ApiV1ChatsRealtimeContractGet200Response;
|
|
55
|
+
export declare function ApiV1ChatsRealtimeContractGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsRealtimeContractGet200Response;
|
|
56
|
+
export declare function ApiV1ChatsRealtimeContractGet200ResponseToJSON(json: any): ApiV1ChatsRealtimeContractGet200Response;
|
|
57
|
+
export declare function ApiV1ChatsRealtimeContractGet200ResponseToJSONTyped(value?: ApiV1ChatsRealtimeContractGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.instanceOfApiV1ChatsRealtimeContractGet200Response = instanceOfApiV1ChatsRealtimeContractGet200Response;
|
|
17
|
+
exports.ApiV1ChatsRealtimeContractGet200ResponseFromJSON = ApiV1ChatsRealtimeContractGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1ChatsRealtimeContractGet200ResponseFromJSONTyped = ApiV1ChatsRealtimeContractGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsRealtimeContractGet200ResponseToJSON = ApiV1ChatsRealtimeContractGet200ResponseToJSON;
|
|
20
|
+
exports.ApiV1ChatsRealtimeContractGet200ResponseToJSONTyped = ApiV1ChatsRealtimeContractGet200ResponseToJSONTyped;
|
|
21
|
+
var ApiV1ChatsRealtimeContractGet200ResponseEventsInner_1 = require("./ApiV1ChatsRealtimeContractGet200ResponseEventsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1ChatsRealtimeContractGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1ChatsRealtimeContractGet200Response(value) {
|
|
26
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('channel' in value) || value['channel'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('streamName' in value) || value['streamName'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('envelope' in value) || value['envelope'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('events' in value) || value['events'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function ApiV1ChatsRealtimeContractGet200ResponseFromJSON(json) {
|
|
39
|
+
return ApiV1ChatsRealtimeContractGet200ResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function ApiV1ChatsRealtimeContractGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'version': json['version'],
|
|
47
|
+
'channel': json['channel'],
|
|
48
|
+
'streamName': json['stream_name'],
|
|
49
|
+
'envelope': json['envelope'],
|
|
50
|
+
'events': (json['events'].map(ApiV1ChatsRealtimeContractGet200ResponseEventsInner_1.ApiV1ChatsRealtimeContractGet200ResponseEventsInnerFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function ApiV1ChatsRealtimeContractGet200ResponseToJSON(json) {
|
|
54
|
+
return ApiV1ChatsRealtimeContractGet200ResponseToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function ApiV1ChatsRealtimeContractGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'version': value['version'],
|
|
63
|
+
'channel': value['channel'],
|
|
64
|
+
'stream_name': value['streamName'],
|
|
65
|
+
'envelope': value['envelope'],
|
|
66
|
+
'events': (value['events'].map(ApiV1ChatsRealtimeContractGet200ResponseEventsInner_1.ApiV1ChatsRealtimeContractGet200ResponseEventsInnerToJSON)),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ApiV1ChatsRealtimeContractGet200ResponseEventsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1ChatsRealtimeContractGet200ResponseEventsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1ChatsRealtimeContractGet200ResponseEventsInner
|
|
22
|
+
*/
|
|
23
|
+
type: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1ChatsRealtimeContractGet200ResponseEventsInner
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiV1ChatsRealtimeContractGet200ResponseEventsInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiV1ChatsRealtimeContractGet200ResponseEventsInner(value: object): value is ApiV1ChatsRealtimeContractGet200ResponseEventsInner;
|
|
35
|
+
export declare function ApiV1ChatsRealtimeContractGet200ResponseEventsInnerFromJSON(json: any): ApiV1ChatsRealtimeContractGet200ResponseEventsInner;
|
|
36
|
+
export declare function ApiV1ChatsRealtimeContractGet200ResponseEventsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsRealtimeContractGet200ResponseEventsInner;
|
|
37
|
+
export declare function ApiV1ChatsRealtimeContractGet200ResponseEventsInnerToJSON(json: any): ApiV1ChatsRealtimeContractGet200ResponseEventsInner;
|
|
38
|
+
export declare function ApiV1ChatsRealtimeContractGet200ResponseEventsInnerToJSONTyped(value?: ApiV1ChatsRealtimeContractGet200ResponseEventsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfApiV1ChatsRealtimeContractGet200ResponseEventsInner = instanceOfApiV1ChatsRealtimeContractGet200ResponseEventsInner;
|
|
17
|
+
exports.ApiV1ChatsRealtimeContractGet200ResponseEventsInnerFromJSON = ApiV1ChatsRealtimeContractGet200ResponseEventsInnerFromJSON;
|
|
18
|
+
exports.ApiV1ChatsRealtimeContractGet200ResponseEventsInnerFromJSONTyped = ApiV1ChatsRealtimeContractGet200ResponseEventsInnerFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsRealtimeContractGet200ResponseEventsInnerToJSON = ApiV1ChatsRealtimeContractGet200ResponseEventsInnerToJSON;
|
|
20
|
+
exports.ApiV1ChatsRealtimeContractGet200ResponseEventsInnerToJSONTyped = ApiV1ChatsRealtimeContractGet200ResponseEventsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1ChatsRealtimeContractGet200ResponseEventsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1ChatsRealtimeContractGet200ResponseEventsInner(value) {
|
|
25
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ApiV1ChatsRealtimeContractGet200ResponseEventsInnerFromJSON(json) {
|
|
32
|
+
return ApiV1ChatsRealtimeContractGet200ResponseEventsInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ApiV1ChatsRealtimeContractGet200ResponseEventsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
'description': json['description'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ApiV1ChatsRealtimeContractGet200ResponseEventsInnerToJSON(json) {
|
|
44
|
+
return ApiV1ChatsRealtimeContractGet200ResponseEventsInnerToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiV1ChatsRealtimeContractGet200ResponseEventsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'type': value['type'],
|
|
53
|
+
'description': value['description'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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 ApiV1ChatsSyncGet200Response {
|
|
|
33
34
|
* @memberof ApiV1ChatsSyncGet200Response
|
|
34
35
|
*/
|
|
35
36
|
hasMore: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ApiV1ChatsSyncGet200ResponseCursorContract}
|
|
40
|
+
* @memberof ApiV1ChatsSyncGet200Response
|
|
41
|
+
*/
|
|
42
|
+
cursorContract: ApiV1ChatsSyncGet200ResponseCursorContract;
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
45
|
* Check if a given object implements the ApiV1ChatsSyncGet200Response interface.
|
|
@@ -18,6 +18,7 @@ exports.ApiV1ChatsSyncGet200ResponseFromJSON = ApiV1ChatsSyncGet200ResponseFromJ
|
|
|
18
18
|
exports.ApiV1ChatsSyncGet200ResponseFromJSONTyped = ApiV1ChatsSyncGet200ResponseFromJSONTyped;
|
|
19
19
|
exports.ApiV1ChatsSyncGet200ResponseToJSON = ApiV1ChatsSyncGet200ResponseToJSON;
|
|
20
20
|
exports.ApiV1ChatsSyncGet200ResponseToJSONTyped = ApiV1ChatsSyncGet200ResponseToJSONTyped;
|
|
21
|
+
var ApiV1ChatsSyncGet200ResponseCursorContract_1 = require("./ApiV1ChatsSyncGet200ResponseCursorContract");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the ApiV1ChatsSyncGet200Response interface.
|
|
23
24
|
*/
|
|
@@ -26,6 +27,8 @@ function instanceOfApiV1ChatsSyncGet200Response(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 ApiV1ChatsSyncGet200ResponseFromJSON(json) {
|
|
@@ -39,6 +42,7 @@ function ApiV1ChatsSyncGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
42
|
'chats': json['chats'],
|
|
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 ApiV1ChatsSyncGet200ResponseToJSON(json) {
|
|
@@ -53,5 +57,6 @@ function ApiV1ChatsSyncGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
|
53
57
|
'chats': value['chats'],
|
|
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,38 @@
|
|
|
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 ApiV1ChatsSyncGet200ResponseCursorContract
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1ChatsSyncGet200ResponseCursorContract {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1ChatsSyncGet200ResponseCursorContract
|
|
22
|
+
*/
|
|
23
|
+
order: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1ChatsSyncGet200ResponseCursorContract
|
|
28
|
+
*/
|
|
29
|
+
encoding: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ApiV1ChatsSyncGet200ResponseCursorContract interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfApiV1ChatsSyncGet200ResponseCursorContract(value: object): value is ApiV1ChatsSyncGet200ResponseCursorContract;
|
|
35
|
+
export declare function ApiV1ChatsSyncGet200ResponseCursorContractFromJSON(json: any): ApiV1ChatsSyncGet200ResponseCursorContract;
|
|
36
|
+
export declare function ApiV1ChatsSyncGet200ResponseCursorContractFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsSyncGet200ResponseCursorContract;
|
|
37
|
+
export declare function ApiV1ChatsSyncGet200ResponseCursorContractToJSON(json: any): ApiV1ChatsSyncGet200ResponseCursorContract;
|
|
38
|
+
export declare function ApiV1ChatsSyncGet200ResponseCursorContractToJSONTyped(value?: ApiV1ChatsSyncGet200ResponseCursorContract | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfApiV1ChatsSyncGet200ResponseCursorContract = instanceOfApiV1ChatsSyncGet200ResponseCursorContract;
|
|
17
|
+
exports.ApiV1ChatsSyncGet200ResponseCursorContractFromJSON = ApiV1ChatsSyncGet200ResponseCursorContractFromJSON;
|
|
18
|
+
exports.ApiV1ChatsSyncGet200ResponseCursorContractFromJSONTyped = ApiV1ChatsSyncGet200ResponseCursorContractFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsSyncGet200ResponseCursorContractToJSON = ApiV1ChatsSyncGet200ResponseCursorContractToJSON;
|
|
20
|
+
exports.ApiV1ChatsSyncGet200ResponseCursorContractToJSONTyped = ApiV1ChatsSyncGet200ResponseCursorContractToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1ChatsSyncGet200ResponseCursorContract interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1ChatsSyncGet200ResponseCursorContract(value) {
|
|
25
|
+
if (!('order' in value) || value['order'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('encoding' in value) || value['encoding'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ApiV1ChatsSyncGet200ResponseCursorContractFromJSON(json) {
|
|
32
|
+
return ApiV1ChatsSyncGet200ResponseCursorContractFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ApiV1ChatsSyncGet200ResponseCursorContractFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'order': json['order'],
|
|
40
|
+
'encoding': json['encoding'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ApiV1ChatsSyncGet200ResponseCursorContractToJSON(json) {
|
|
44
|
+
return ApiV1ChatsSyncGet200ResponseCursorContractToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ApiV1ChatsSyncGet200ResponseCursorContractToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'order': value['order'],
|
|
53
|
+
'encoding': value['encoding'],
|
|
54
|
+
};
|
|
55
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -31,7 +31,10 @@ export * from './ApiV1ChatsPlannerPost200Response';
|
|
|
31
31
|
export * from './ApiV1ChatsPlannerPostRequest';
|
|
32
32
|
export * from './ApiV1ChatsPost201Response';
|
|
33
33
|
export * from './ApiV1ChatsPostRequest';
|
|
34
|
+
export * from './ApiV1ChatsRealtimeContractGet200Response';
|
|
35
|
+
export * from './ApiV1ChatsRealtimeContractGet200ResponseEventsInner';
|
|
34
36
|
export * from './ApiV1ChatsSyncGet200Response';
|
|
37
|
+
export * from './ApiV1ChatsSyncGet200ResponseCursorContract';
|
|
35
38
|
export * from './ApiV1ProfileGet200Response';
|
|
36
39
|
export * from './ApiV1ProfileGet401Response';
|
|
37
40
|
export * from './ApiV1RecordsGet200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -49,7 +49,10 @@ __exportStar(require("./ApiV1ChatsPlannerPost200Response"), exports);
|
|
|
49
49
|
__exportStar(require("./ApiV1ChatsPlannerPostRequest"), exports);
|
|
50
50
|
__exportStar(require("./ApiV1ChatsPost201Response"), exports);
|
|
51
51
|
__exportStar(require("./ApiV1ChatsPostRequest"), exports);
|
|
52
|
+
__exportStar(require("./ApiV1ChatsRealtimeContractGet200Response"), exports);
|
|
53
|
+
__exportStar(require("./ApiV1ChatsRealtimeContractGet200ResponseEventsInner"), exports);
|
|
52
54
|
__exportStar(require("./ApiV1ChatsSyncGet200Response"), exports);
|
|
55
|
+
__exportStar(require("./ApiV1ChatsSyncGet200ResponseCursorContract"), exports);
|
|
53
56
|
__exportStar(require("./ApiV1ProfileGet200Response"), exports);
|
|
54
57
|
__exportStar(require("./ApiV1ProfileGet401Response"), exports);
|
|
55
58
|
__exportStar(require("./ApiV1RecordsGet200Response"), exports);
|