blanche-client-sdk 0.5.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 +100 -10
- package/README.md +86 -16
- package/dist/apis/ChatsApi.d.ts +298 -0
- package/dist/apis/ChatsApi.js +1180 -0
- package/dist/apis/RecordsApi.d.ts +22 -6
- package/dist/apis/RecordsApi.js +63 -2
- package/dist/apis/TemplateSchemasApi.d.ts +115 -0
- package/dist/apis/TemplateSchemasApi.js +456 -0
- package/dist/apis/TemplatesApi.d.ts +22 -6
- package/dist/apis/TemplatesApi.js +62 -1
- package/dist/apis/UsersApi.d.ts +17 -1
- package/dist/apis/UsersApi.js +59 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/ApiV1ChatsChatIdMessagesGet200Response.d.ts +51 -0
- package/dist/models/ApiV1ChatsChatIdMessagesGet200Response.js +64 -0
- package/dist/models/ApiV1ChatsChatIdMessagesGet200ResponseMessagesInner.d.ts +74 -0
- package/dist/models/ApiV1ChatsChatIdMessagesGet200ResponseMessagesInner.js +79 -0
- package/dist/models/ApiV1ChatsChatIdMessagesPost201Response.d.ts +62 -0
- package/dist/models/ApiV1ChatsChatIdMessagesPost201Response.js +71 -0
- package/dist/models/ApiV1ChatsChatIdMessagesPostRequest.d.ts +44 -0
- package/dist/models/ApiV1ChatsChatIdMessagesPostRequest.js +55 -0
- package/dist/models/ApiV1ChatsChatIdMessagesSyncGet200Response.d.ts +51 -0
- package/dist/models/ApiV1ChatsChatIdMessagesSyncGet200Response.js +62 -0
- package/dist/models/ApiV1ChatsGet200Response.d.ts +51 -0
- package/dist/models/ApiV1ChatsGet200Response.js +64 -0
- package/dist/models/ApiV1ChatsGet200ResponseChatsInner.d.ts +68 -0
- package/dist/models/ApiV1ChatsGet200ResponseChatsInner.js +69 -0
- package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.d.ts +33 -0
- package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.js +52 -0
- package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.d.ts +74 -0
- package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.js +75 -0
- package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.d.ts +50 -0
- package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.js +63 -0
- package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest.d.ts +65 -0
- package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest.js +68 -0
- package/dist/models/ApiV1ChatsIdReadPost200Response.d.ts +50 -0
- package/dist/models/ApiV1ChatsIdReadPost200Response.js +61 -0
- package/dist/models/ApiV1ChatsIdReadPostRequest.d.ts +32 -0
- package/dist/models/ApiV1ChatsIdReadPostRequest.js +49 -0
- package/dist/models/ApiV1ChatsIdReportsPost200Response.d.ts +58 -0
- package/dist/models/ApiV1ChatsIdReportsPost200Response.js +69 -0
- package/dist/models/ApiV1ChatsIdReportsPost200ResponseRowsInner.d.ts +38 -0
- package/dist/models/ApiV1ChatsIdReportsPost200ResponseRowsInner.js +53 -0
- package/dist/models/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.d.ts +56 -0
- package/dist/models/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.js +67 -0
- package/dist/models/ApiV1ChatsIdReportsPost422Response.d.ts +32 -0
- package/dist/models/ApiV1ChatsIdReportsPost422Response.js +51 -0
- package/dist/models/ApiV1ChatsIdReportsPostRequest.d.ts +33 -0
- package/dist/models/ApiV1ChatsIdReportsPostRequest.js +52 -0
- package/dist/models/ApiV1ChatsIdReportsPostRequestPlanner.d.ts +61 -0
- package/dist/models/ApiV1ChatsIdReportsPostRequestPlanner.js +74 -0
- package/dist/models/ApiV1ChatsIdReportsPostRequestPlannerParams.d.ts +100 -0
- package/dist/models/ApiV1ChatsIdReportsPostRequestPlannerParams.js +84 -0
- package/dist/models/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.d.ts +56 -0
- package/dist/models/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.js +71 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdCitationsGet200Response.d.ts +39 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdCitationsGet200Response.js +56 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.d.ts +50 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.js +59 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdGet200Response.d.ts +56 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdGet200Response.js +65 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdRetryPost201Response.d.ts +50 -0
- package/dist/models/ApiV1ChatsIdRunsRunIdRetryPost201Response.js +61 -0
- package/dist/models/ApiV1ChatsIdSavedReportsGet200Response.d.ts +33 -0
- package/dist/models/ApiV1ChatsIdSavedReportsGet200Response.js +52 -0
- package/dist/models/ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner.d.ts +56 -0
- package/dist/models/ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner.js +65 -0
- package/dist/models/ApiV1ChatsIdSavedReportsPostRequest.d.ts +38 -0
- package/dist/models/ApiV1ChatsIdSavedReportsPostRequest.js +53 -0
- package/dist/models/ApiV1ChatsPlannerContractGet200Response.d.ts +38 -0
- package/dist/models/ApiV1ChatsPlannerContractGet200Response.js +55 -0
- package/dist/models/ApiV1ChatsPlannerPost200Response.d.ts +62 -0
- package/dist/models/ApiV1ChatsPlannerPost200Response.js +71 -0
- package/dist/models/ApiV1ChatsPlannerPostRequest.d.ts +50 -0
- package/dist/models/ApiV1ChatsPlannerPostRequest.js +59 -0
- package/dist/models/ApiV1ChatsPost201Response.d.ts +56 -0
- package/dist/models/ApiV1ChatsPost201Response.js +65 -0
- package/dist/models/ApiV1ChatsPostRequest.d.ts +32 -0
- package/dist/models/ApiV1ChatsPostRequest.js +49 -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 +51 -0
- package/dist/models/ApiV1ChatsSyncGet200Response.js +62 -0
- package/dist/models/ApiV1ChatsSyncGet200ResponseCursorContract.d.ts +38 -0
- package/dist/models/ApiV1ChatsSyncGet200ResponseCursorContract.js +55 -0
- package/dist/models/ApiV1RecordsIdPut200Response.d.ts +50 -0
- package/dist/models/{ApiV1RecordsIdPatch200Response.js → ApiV1RecordsIdPut200Response.js} +13 -13
- package/dist/models/ApiV1RecordsIdPutRequest.d.ts +32 -0
- package/dist/models/ApiV1RecordsIdPutRequest.js +51 -0
- package/dist/models/ApiV1TemplatesIdPutRequest.d.ts +33 -0
- package/dist/models/ApiV1TemplatesIdPutRequest.js +52 -0
- package/dist/models/ApiV1TemplatesIdPutRequestTemplate.d.ts +38 -0
- package/dist/models/ApiV1TemplatesIdPutRequestTemplate.js +51 -0
- package/dist/models/ApiV1TemplatesTemplateIdSchemasGet200Response.d.ts +33 -0
- package/dist/models/ApiV1TemplatesTemplateIdSchemasGet200Response.js +52 -0
- package/dist/models/ApiV1TemplatesTemplateIdSchemasGet200ResponseSchemasInner.d.ts +62 -0
- package/dist/models/ApiV1TemplatesTemplateIdSchemasGet200ResponseSchemasInner.js +69 -0
- package/dist/models/ApiV1TemplatesTemplateIdSchemasIdPutRequest.d.ts +50 -0
- package/dist/models/ApiV1TemplatesTemplateIdSchemasIdPutRequest.js +55 -0
- package/dist/models/ApiV1TemplatesTemplateIdSchemasPost201Response.d.ts +44 -0
- package/dist/models/ApiV1TemplatesTemplateIdSchemasPost201Response.js +59 -0
- package/dist/models/ApiV1TemplatesTemplateIdSchemasPostRequest.d.ts +50 -0
- package/dist/models/ApiV1TemplatesTemplateIdSchemasPostRequest.js +59 -0
- package/dist/models/ApiV1UsersIdPutRequest.d.ts +33 -0
- package/dist/models/ApiV1UsersIdPutRequest.js +52 -0
- package/dist/models/ApiV1UsersIdPutRequestUser.d.ts +56 -0
- package/dist/models/ApiV1UsersIdPutRequestUser.js +57 -0
- package/dist/models/index.d.ts +48 -5
- package/dist/models/index.js +48 -5
- package/docs/ApiV1ChatsChatIdMessagesGet200Response.md +40 -0
- package/docs/ApiV1ChatsChatIdMessagesGet200ResponseMessagesInner.md +48 -0
- package/docs/ApiV1ChatsChatIdMessagesPost201Response.md +44 -0
- package/docs/ApiV1ChatsChatIdMessagesPostRequest.md +38 -0
- package/docs/ApiV1ChatsChatIdMessagesSyncGet200Response.md +40 -0
- package/docs/ApiV1ChatsGet200Response.md +40 -0
- package/docs/ApiV1ChatsGet200ResponseChatsInner.md +46 -0
- package/docs/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.md +34 -0
- package/docs/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.md +48 -0
- package/docs/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.md +40 -0
- package/docs/ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest.md +42 -0
- package/docs/ApiV1ChatsIdReadPost200Response.md +40 -0
- package/docs/ApiV1ChatsIdReadPostRequest.md +34 -0
- package/docs/ApiV1ChatsIdReportsPost200Response.md +42 -0
- package/docs/ApiV1ChatsIdReportsPost200ResponseRowsInner.md +36 -0
- package/docs/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.md +42 -0
- package/docs/{ApiV1RecordsIdPatch422Response.md → ApiV1ChatsIdReportsPost422Response.md} +4 -4
- package/docs/ApiV1ChatsIdReportsPostRequest.md +34 -0
- package/docs/ApiV1ChatsIdReportsPostRequestPlanner.md +40 -0
- package/docs/ApiV1ChatsIdReportsPostRequestPlannerParams.md +50 -0
- package/docs/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.md +38 -0
- package/docs/ApiV1ChatsIdRunsRunIdCitationsGet200Response.md +36 -0
- package/docs/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.md +40 -0
- package/docs/ApiV1ChatsIdRunsRunIdGet200Response.md +42 -0
- package/docs/ApiV1ChatsIdRunsRunIdRetryPost201Response.md +40 -0
- package/docs/ApiV1ChatsIdSavedReportsGet200Response.md +34 -0
- package/docs/ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner.md +42 -0
- package/docs/ApiV1ChatsIdSavedReportsPostRequest.md +36 -0
- package/docs/ApiV1ChatsPlannerContractGet200Response.md +36 -0
- package/docs/ApiV1ChatsPlannerPost200Response.md +44 -0
- package/docs/ApiV1ChatsPlannerPostRequest.md +40 -0
- package/docs/ApiV1ChatsPost201Response.md +42 -0
- package/docs/ApiV1ChatsPostRequest.md +34 -0
- package/docs/ApiV1ChatsRealtimeContractGet200Response.md +42 -0
- package/docs/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.md +36 -0
- package/docs/ApiV1ChatsSyncGet200Response.md +40 -0
- package/docs/ApiV1ChatsSyncGet200ResponseCursorContract.md +36 -0
- package/docs/{ApiV1RecordsIdPatch200Response.md → ApiV1RecordsIdPut200Response.md} +4 -4
- package/docs/{ApiV1RecordsIdPatchRequest.md → ApiV1RecordsIdPutRequest.md} +4 -4
- package/docs/{ApiV1TemplatesIdPatchRequest.md → ApiV1TemplatesIdPutRequest.md} +5 -5
- package/docs/{ApiV1TemplatesIdPatchRequestTemplate.md → ApiV1TemplatesIdPutRequestTemplate.md} +4 -4
- package/docs/ApiV1TemplatesTemplateIdSchemasGet200Response.md +34 -0
- package/docs/ApiV1TemplatesTemplateIdSchemasGet200ResponseSchemasInner.md +44 -0
- package/docs/ApiV1TemplatesTemplateIdSchemasIdPutRequest.md +40 -0
- package/docs/ApiV1TemplatesTemplateIdSchemasPost201Response.md +38 -0
- package/docs/ApiV1TemplatesTemplateIdSchemasPostRequest.md +40 -0
- package/docs/ApiV1UsersIdPutRequest.md +34 -0
- package/docs/ApiV1UsersIdPutRequestUser.md +42 -0
- package/docs/ChatsApi.md +1230 -0
- package/docs/RecordsApi.md +77 -8
- package/docs/TemplateSchemasApi.md +425 -0
- package/docs/TemplatesApi.md +76 -7
- package/docs/UsersApi.md +69 -0
- package/package.json +1 -1
- package/src/apis/ChatsApi.ts +1040 -0
- package/src/apis/RecordsApi.ts +69 -16
- package/src/apis/TemplateSchemasApi.ts +381 -0
- package/src/apis/TemplatesApi.ts +65 -12
- package/src/apis/UsersApi.ts +55 -0
- package/src/apis/index.ts +2 -0
- package/src/models/ApiV1ChatsChatIdMessagesGet200Response.ts +101 -0
- package/src/models/ApiV1ChatsChatIdMessagesGet200ResponseMessagesInner.ts +129 -0
- package/src/models/ApiV1ChatsChatIdMessagesPost201Response.ts +111 -0
- package/src/models/ApiV1ChatsChatIdMessagesPostRequest.ts +82 -0
- package/src/models/ApiV1ChatsChatIdMessagesSyncGet200Response.ts +100 -0
- package/src/models/ApiV1ChatsGet200Response.ts +101 -0
- package/src/models/ApiV1ChatsGet200ResponseChatsInner.ts +117 -0
- package/src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response.ts +74 -0
- package/src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.ts +127 -0
- package/src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response.ts +93 -0
- package/src/models/ApiV1ChatsIdMessagesMessageIdAttachmentsPostRequest.ts +110 -0
- package/src/models/ApiV1ChatsIdReadPost200Response.ts +92 -0
- package/src/models/ApiV1ChatsIdReadPostRequest.ts +65 -0
- package/src/models/ApiV1ChatsIdReportsPost200Response.ts +117 -0
- package/src/models/ApiV1ChatsIdReportsPost200ResponseRowsInner.ts +74 -0
- package/src/models/ApiV1ChatsIdReportsPost200ResponseSourceMetadata.ts +102 -0
- package/src/models/ApiV1ChatsIdReportsPost422Response.ts +66 -0
- package/src/models/ApiV1ChatsIdReportsPostRequest.ts +74 -0
- package/src/models/ApiV1ChatsIdReportsPostRequestPlanner.ts +114 -0
- package/src/models/ApiV1ChatsIdReportsPostRequestPlannerParams.ts +160 -0
- package/src/models/ApiV1ChatsIdReportsPostRequestPlannerParamsFiltersInner.ts +99 -0
- package/src/models/ApiV1ChatsIdRunsRunIdCitationsGet200Response.ts +83 -0
- package/src/models/ApiV1ChatsIdRunsRunIdCitationsGet200ResponseCitationsInner.ts +91 -0
- package/src/models/ApiV1ChatsIdRunsRunIdGet200Response.ts +101 -0
- package/src/models/ApiV1ChatsIdRunsRunIdRetryPost201Response.ts +92 -0
- package/src/models/ApiV1ChatsIdSavedReportsGet200Response.ts +74 -0
- package/src/models/ApiV1ChatsIdSavedReportsGet200ResponseSavedReportsInner.ts +101 -0
- package/src/models/ApiV1ChatsIdSavedReportsPostRequest.ts +74 -0
- package/src/models/ApiV1ChatsPlannerContractGet200Response.ts +75 -0
- package/src/models/ApiV1ChatsPlannerPost200Response.ts +111 -0
- package/src/models/ApiV1ChatsPlannerPostRequest.ts +91 -0
- package/src/models/ApiV1ChatsPost201Response.ts +101 -0
- package/src/models/ApiV1ChatsPostRequest.ts +65 -0
- package/src/models/ApiV1ChatsRealtimeContractGet200Response.ts +110 -0
- package/src/models/ApiV1ChatsRealtimeContractGet200ResponseEventsInner.ts +75 -0
- package/src/models/ApiV1ChatsSyncGet200Response.ts +100 -0
- package/src/models/ApiV1ChatsSyncGet200ResponseCursorContract.ts +75 -0
- package/src/models/{ApiV1RecordsIdPatch200Response.ts → ApiV1RecordsIdPut200Response.ts} +14 -14
- package/src/models/ApiV1RecordsIdPutRequest.ts +66 -0
- package/src/models/ApiV1TemplatesIdPutRequest.ts +74 -0
- package/src/models/ApiV1TemplatesIdPutRequestTemplate.ts +73 -0
- package/src/models/ApiV1TemplatesTemplateIdSchemasGet200Response.ts +74 -0
- package/src/models/ApiV1TemplatesTemplateIdSchemasGet200ResponseSchemasInner.ts +110 -0
- package/src/models/ApiV1TemplatesTemplateIdSchemasIdPutRequest.ts +89 -0
- package/src/models/ApiV1TemplatesTemplateIdSchemasPost201Response.ts +84 -0
- package/src/models/ApiV1TemplatesTemplateIdSchemasPostRequest.ts +91 -0
- package/src/models/ApiV1UsersIdPutRequest.ts +74 -0
- package/src/models/ApiV1UsersIdPutRequestUser.ts +97 -0
- package/src/models/index.ts +48 -5
- package/dist/models/ApiV1RecordsIdPatch200Response.d.ts +0 -50
- package/dist/models/ApiV1RecordsIdPatch422Response.d.ts +0 -32
- package/dist/models/ApiV1RecordsIdPatch422Response.js +0 -51
- package/dist/models/ApiV1RecordsIdPatchRequest.d.ts +0 -32
- package/dist/models/ApiV1RecordsIdPatchRequest.js +0 -51
- package/dist/models/ApiV1TemplatesIdPatchRequest.d.ts +0 -33
- package/dist/models/ApiV1TemplatesIdPatchRequest.js +0 -52
- package/dist/models/ApiV1TemplatesIdPatchRequestTemplate.d.ts +0 -38
- package/dist/models/ApiV1TemplatesIdPatchRequestTemplate.js +0 -51
- package/src/models/ApiV1RecordsIdPatch422Response.ts +0 -66
- package/src/models/ApiV1RecordsIdPatchRequest.ts +0 -66
- package/src/models/ApiV1TemplatesIdPatchRequest.ts +0 -74
- package/src/models/ApiV1TemplatesIdPatchRequestTemplate.ts +0 -73
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfApiV1ChatsChatIdMessagesSyncGet200Response = instanceOfApiV1ChatsChatIdMessagesSyncGet200Response;
|
|
17
|
+
exports.ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSON = ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSONTyped = ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSON = ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSON;
|
|
20
|
+
exports.ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSONTyped = ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSONTyped;
|
|
21
|
+
var ApiV1ChatsSyncGet200ResponseCursorContract_1 = require("./ApiV1ChatsSyncGet200ResponseCursorContract");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1ChatsChatIdMessagesSyncGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1ChatsChatIdMessagesSyncGet200Response(value) {
|
|
26
|
+
if (!('messages' in value) || value['messages'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('hasMore' in value) || value['hasMore'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('cursorContract' in value) || value['cursorContract'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSON(json) {
|
|
35
|
+
return ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ApiV1ChatsChatIdMessagesSyncGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'messages': json['messages'],
|
|
43
|
+
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
44
|
+
'hasMore': json['has_more'],
|
|
45
|
+
'cursorContract': (0, ApiV1ChatsSyncGet200ResponseCursorContract_1.ApiV1ChatsSyncGet200ResponseCursorContractFromJSON)(json['cursor_contract']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSON(json) {
|
|
49
|
+
return ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ApiV1ChatsChatIdMessagesSyncGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'messages': value['messages'],
|
|
58
|
+
'cursor': value['cursor'],
|
|
59
|
+
'has_more': value['hasMore'],
|
|
60
|
+
'cursor_contract': (0, ApiV1ChatsSyncGet200ResponseCursorContract_1.ApiV1ChatsSyncGet200ResponseCursorContractToJSON)(value['cursorContract']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 { ApiV1ChatsGet200ResponseChatsInner } from './ApiV1ChatsGet200ResponseChatsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1ChatsGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1ChatsGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiV1ChatsGet200ResponseChatsInner>}
|
|
22
|
+
* @memberof ApiV1ChatsGet200Response
|
|
23
|
+
*/
|
|
24
|
+
chats: Array<ApiV1ChatsGet200ResponseChatsInner>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ApiV1ChatsGet200Response
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof ApiV1ChatsGet200Response
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ApiV1ChatsGet200Response
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ApiV1ChatsGet200Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfApiV1ChatsGet200Response(value: object): value is ApiV1ChatsGet200Response;
|
|
48
|
+
export declare function ApiV1ChatsGet200ResponseFromJSON(json: any): ApiV1ChatsGet200Response;
|
|
49
|
+
export declare function ApiV1ChatsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsGet200Response;
|
|
50
|
+
export declare function ApiV1ChatsGet200ResponseToJSON(json: any): ApiV1ChatsGet200Response;
|
|
51
|
+
export declare function ApiV1ChatsGet200ResponseToJSONTyped(value?: ApiV1ChatsGet200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfApiV1ChatsGet200Response = instanceOfApiV1ChatsGet200Response;
|
|
17
|
+
exports.ApiV1ChatsGet200ResponseFromJSON = ApiV1ChatsGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1ChatsGet200ResponseFromJSONTyped = ApiV1ChatsGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsGet200ResponseToJSON = ApiV1ChatsGet200ResponseToJSON;
|
|
20
|
+
exports.ApiV1ChatsGet200ResponseToJSONTyped = ApiV1ChatsGet200ResponseToJSONTyped;
|
|
21
|
+
var ApiV1ChatsGet200ResponseChatsInner_1 = require("./ApiV1ChatsGet200ResponseChatsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1ChatsGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1ChatsGet200Response(value) {
|
|
26
|
+
if (!('chats' in value) || value['chats'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function ApiV1ChatsGet200ResponseFromJSON(json) {
|
|
37
|
+
return ApiV1ChatsGet200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ApiV1ChatsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'chats': (json['chats'].map(ApiV1ChatsGet200ResponseChatsInner_1.ApiV1ChatsGet200ResponseChatsInnerFromJSON)),
|
|
45
|
+
'total': json['total'],
|
|
46
|
+
'limit': json['limit'],
|
|
47
|
+
'offset': json['offset'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ApiV1ChatsGet200ResponseToJSON(json) {
|
|
51
|
+
return ApiV1ChatsGet200ResponseToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ApiV1ChatsGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'chats': (value['chats'].map(ApiV1ChatsGet200ResponseChatsInner_1.ApiV1ChatsGet200ResponseChatsInnerToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 ApiV1ChatsGet200ResponseChatsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1ChatsGet200ResponseChatsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1ChatsGet200ResponseChatsInner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1ChatsGet200ResponseChatsInner
|
|
28
|
+
*/
|
|
29
|
+
title?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1ChatsGet200ResponseChatsInner
|
|
34
|
+
*/
|
|
35
|
+
status: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof ApiV1ChatsGet200ResponseChatsInner
|
|
40
|
+
*/
|
|
41
|
+
archivedAt?: Date | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof ApiV1ChatsGet200ResponseChatsInner
|
|
46
|
+
*/
|
|
47
|
+
lastMessageAt?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof ApiV1ChatsGet200ResponseChatsInner
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof ApiV1ChatsGet200ResponseChatsInner
|
|
58
|
+
*/
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ApiV1ChatsGet200ResponseChatsInner interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfApiV1ChatsGet200ResponseChatsInner(value: object): value is ApiV1ChatsGet200ResponseChatsInner;
|
|
65
|
+
export declare function ApiV1ChatsGet200ResponseChatsInnerFromJSON(json: any): ApiV1ChatsGet200ResponseChatsInner;
|
|
66
|
+
export declare function ApiV1ChatsGet200ResponseChatsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsGet200ResponseChatsInner;
|
|
67
|
+
export declare function ApiV1ChatsGet200ResponseChatsInnerToJSON(json: any): ApiV1ChatsGet200ResponseChatsInner;
|
|
68
|
+
export declare function ApiV1ChatsGet200ResponseChatsInnerToJSONTyped(value?: ApiV1ChatsGet200ResponseChatsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
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.instanceOfApiV1ChatsGet200ResponseChatsInner = instanceOfApiV1ChatsGet200ResponseChatsInner;
|
|
17
|
+
exports.ApiV1ChatsGet200ResponseChatsInnerFromJSON = ApiV1ChatsGet200ResponseChatsInnerFromJSON;
|
|
18
|
+
exports.ApiV1ChatsGet200ResponseChatsInnerFromJSONTyped = ApiV1ChatsGet200ResponseChatsInnerFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsGet200ResponseChatsInnerToJSON = ApiV1ChatsGet200ResponseChatsInnerToJSON;
|
|
20
|
+
exports.ApiV1ChatsGet200ResponseChatsInnerToJSONTyped = ApiV1ChatsGet200ResponseChatsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1ChatsGet200ResponseChatsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1ChatsGet200ResponseChatsInner(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ApiV1ChatsGet200ResponseChatsInnerFromJSON(json) {
|
|
36
|
+
return ApiV1ChatsGet200ResponseChatsInnerFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ApiV1ChatsGet200ResponseChatsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
45
|
+
'status': json['status'],
|
|
46
|
+
'archivedAt': json['archived_at'] == null ? undefined : (new Date(json['archived_at'])),
|
|
47
|
+
'lastMessageAt': json['last_message_at'] == null ? undefined : (new Date(json['last_message_at'])),
|
|
48
|
+
'createdAt': (new Date(json['created_at'])),
|
|
49
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function ApiV1ChatsGet200ResponseChatsInnerToJSON(json) {
|
|
53
|
+
return ApiV1ChatsGet200ResponseChatsInnerToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function ApiV1ChatsGet200ResponseChatsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'title': value['title'],
|
|
63
|
+
'status': value['status'],
|
|
64
|
+
'archived_at': value['archivedAt'] == null ? value['archivedAt'] : value['archivedAt'].toISOString(),
|
|
65
|
+
'last_message_at': value['lastMessageAt'] == null ? value['lastMessageAt'] : value['lastMessageAt'].toISOString(),
|
|
66
|
+
'created_at': value['createdAt'].toISOString(),
|
|
67
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -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 { ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner } from './ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner>}
|
|
22
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response
|
|
23
|
+
*/
|
|
24
|
+
attachments: Array<ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response(value: object): value is ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response;
|
|
30
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseFromJSON(json: any): ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response;
|
|
31
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response;
|
|
32
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseToJSON(json: any): ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response;
|
|
33
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseToJSONTyped(value?: ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response | 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.instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response = instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response;
|
|
17
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseFromJSON = ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseFromJSONTyped = ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseToJSON = ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseToJSON;
|
|
20
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseToJSONTyped = ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseToJSONTyped;
|
|
21
|
+
var ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner_1 = require("./ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsGet200Response(value) {
|
|
26
|
+
if (!('attachments' in value) || value['attachments'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseFromJSON(json) {
|
|
31
|
+
return ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'attachments': (json['attachments'].map(ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner_1.ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseToJSON(json) {
|
|
42
|
+
return ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'attachments': (value['attachments'].map(ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner_1.ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
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 ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner
|
|
28
|
+
*/
|
|
29
|
+
messageId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner
|
|
34
|
+
*/
|
|
35
|
+
kind: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner
|
|
40
|
+
*/
|
|
41
|
+
fileUrl: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner
|
|
46
|
+
*/
|
|
47
|
+
mimeType?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner
|
|
52
|
+
*/
|
|
53
|
+
fileSize?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {object}
|
|
57
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner
|
|
58
|
+
*/
|
|
59
|
+
metadata: object;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner
|
|
64
|
+
*/
|
|
65
|
+
createdAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner(value: object): value is ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner;
|
|
71
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerFromJSON(json: any): ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner;
|
|
72
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner;
|
|
73
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerToJSON(json: any): ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner;
|
|
74
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerToJSONTyped(value?: ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner = instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner;
|
|
17
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerFromJSON = ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerFromJSON;
|
|
18
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerFromJSONTyped = ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerToJSON = ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerToJSON;
|
|
20
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerToJSONTyped = ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInner(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('messageId' in value) || value['messageId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('fileUrl' in value) || value['fileUrl'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('metadata' in value) || value['metadata'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerFromJSON(json) {
|
|
40
|
+
return ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'messageId': json['message_id'],
|
|
49
|
+
'kind': json['kind'],
|
|
50
|
+
'fileUrl': json['file_url'],
|
|
51
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
52
|
+
'fileSize': json['file_size'] == null ? undefined : json['file_size'],
|
|
53
|
+
'metadata': json['metadata'],
|
|
54
|
+
'createdAt': (new Date(json['created_at'])),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerToJSON(json) {
|
|
58
|
+
return ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsGet200ResponseAttachmentsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'message_id': value['messageId'],
|
|
68
|
+
'kind': value['kind'],
|
|
69
|
+
'file_url': value['fileUrl'],
|
|
70
|
+
'mime_type': value['mimeType'],
|
|
71
|
+
'file_size': value['fileSize'],
|
|
72
|
+
'metadata': value['metadata'],
|
|
73
|
+
'created_at': value['createdAt'].toISOString(),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response
|
|
28
|
+
*/
|
|
29
|
+
messageId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response
|
|
34
|
+
*/
|
|
35
|
+
kind: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response
|
|
40
|
+
*/
|
|
41
|
+
fileUrl: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response(value: object): value is ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response;
|
|
47
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseFromJSON(json: any): ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response;
|
|
48
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response;
|
|
49
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseToJSON(json: any): ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response;
|
|
50
|
+
export declare function ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseToJSONTyped(value?: ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response = instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response;
|
|
17
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseFromJSON = ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseFromJSON;
|
|
18
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseFromJSONTyped = ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseToJSON = ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseToJSON;
|
|
20
|
+
exports.ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseToJSONTyped = ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1ChatsIdMessagesMessageIdAttachmentsPost201Response(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('messageId' in value) || value['messageId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('kind' in value) || value['kind'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('fileUrl' in value) || value['fileUrl'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseFromJSON(json) {
|
|
36
|
+
return ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'messageId': json['message_id'],
|
|
45
|
+
'kind': json['kind'],
|
|
46
|
+
'fileUrl': json['file_url'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseToJSON(json) {
|
|
50
|
+
return ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ApiV1ChatsIdMessagesMessageIdAttachmentsPost201ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'message_id': value['messageId'],
|
|
60
|
+
'kind': value['kind'],
|
|
61
|
+
'file_url': value['fileUrl'],
|
|
62
|
+
};
|
|
63
|
+
}
|