blanche-client-sdk 0.3.0 → 0.5.0
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 +16 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +25 -11
- package/dist/apis/RecordsApi.d.ts +81 -0
- package/dist/apis/RecordsApi.js +324 -0
- package/dist/apis/SessionsApi.d.ts +12 -0
- package/dist/apis/SessionsApi.js +86 -47
- package/dist/apis/TelegramLinksApi.d.ts +12 -0
- package/dist/apis/TelegramLinksApi.js +78 -39
- package/dist/apis/TemplatesApi.d.ts +16 -0
- package/dist/apis/TemplatesApi.js +111 -59
- package/dist/apis/UsersApi.d.ts +12 -0
- package/dist/apis/UsersApi.js +80 -41
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ApiV1RecordsGet200Response.d.ts +51 -0
- package/dist/models/ApiV1RecordsGet200Response.js +64 -0
- package/dist/models/ApiV1RecordsGet200ResponseRecordsInner.d.ts +56 -0
- package/dist/models/ApiV1RecordsGet200ResponseRecordsInner.js +67 -0
- package/dist/models/ApiV1RecordsIdDelete200Response.d.ts +32 -0
- package/dist/models/ApiV1RecordsIdDelete200Response.js +51 -0
- package/dist/models/ApiV1RecordsIdGet200Response.d.ts +62 -0
- package/dist/models/ApiV1RecordsIdGet200Response.js +71 -0
- package/dist/models/ApiV1RecordsIdPatch200Response.d.ts +50 -0
- package/dist/models/ApiV1RecordsIdPatch200Response.js +63 -0
- package/dist/models/ApiV1RecordsIdPatch422Response.d.ts +32 -0
- package/dist/models/ApiV1RecordsIdPatch422Response.js +51 -0
- package/dist/models/ApiV1RecordsIdPatchRequest.d.ts +32 -0
- package/dist/models/ApiV1RecordsIdPatchRequest.js +51 -0
- package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInner.d.ts +6 -0
- package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInner.js +2 -0
- package/dist/models/ApiV1TemplatesIdGet200ResponseSchemasInner.d.ts +6 -0
- package/dist/models/ApiV1TemplatesIdGet200ResponseSchemasInner.js +2 -0
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.js +7 -1
- package/docs/ApiV1RecordsGet200Response.md +40 -0
- package/docs/ApiV1RecordsGet200ResponseRecordsInner.md +42 -0
- package/docs/ApiV1RecordsIdDelete200Response.md +34 -0
- package/docs/ApiV1RecordsIdGet200Response.md +44 -0
- package/docs/ApiV1RecordsIdPatch200Response.md +40 -0
- package/docs/{ApiV1TemplatesPost422Response.md → ApiV1RecordsIdPatch422Response.md} +4 -4
- package/docs/ApiV1RecordsIdPatchRequest.md +34 -0
- package/docs/ApiV1TemplatesGet200ResponseTemplatesInner.md +2 -0
- package/docs/ApiV1TemplatesIdGet200ResponseSchemasInner.md +2 -0
- package/docs/RecordsApi.md +282 -0
- package/package.json +1 -1
- package/src/apis/RecordsApi.ts +251 -0
- package/src/apis/SessionsApi.ts +36 -12
- package/src/apis/TelegramLinksApi.ts +36 -12
- package/src/apis/TemplatesApi.ts +51 -19
- package/src/apis/UsersApi.ts +36 -12
- package/src/apis/index.ts +1 -0
- package/src/models/ApiV1RecordsGet200Response.ts +101 -0
- package/src/models/ApiV1RecordsGet200ResponseRecordsInner.ts +102 -0
- package/src/models/ApiV1RecordsIdDelete200Response.ts +66 -0
- package/src/models/ApiV1RecordsIdGet200Response.ts +111 -0
- package/src/models/ApiV1RecordsIdPatch200Response.ts +93 -0
- package/src/models/ApiV1RecordsIdPatch422Response.ts +66 -0
- package/src/models/ApiV1RecordsIdPatchRequest.ts +66 -0
- package/src/models/ApiV1TemplatesGet200ResponseTemplatesInner.ts +8 -0
- package/src/models/ApiV1TemplatesIdGet200ResponseSchemasInner.ts +8 -0
- package/src/models/index.ts +7 -1
- package/dist/models/ApiV1TemplatesPost422Response.d.ts +0 -32
- package/dist/models/ApiV1TemplatesPost422Response.js +0 -51
- package/src/models/ApiV1TemplatesPost422Response.ts +0 -66
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Blanche API
|
|
5
|
+
* AI-powered life tracking system API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiV1RecordsIdGet200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1RecordsIdGet200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
32
|
+
*/
|
|
33
|
+
template: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
38
|
+
*/
|
|
39
|
+
data: object;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
44
|
+
*/
|
|
45
|
+
schemaVersion: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof ApiV1RecordsIdGet200Response
|
|
56
|
+
*/
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ApiV1RecordsIdGet200Response interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfApiV1RecordsIdGet200Response(value: object): value is ApiV1RecordsIdGet200Response {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('template' in value) || value['template'] === undefined) return false;
|
|
66
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
67
|
+
if (!('schemaVersion' in value) || value['schemaVersion'] === undefined) return false;
|
|
68
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
69
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ApiV1RecordsIdGet200ResponseFromJSON(json: any): ApiV1RecordsIdGet200Response {
|
|
74
|
+
return ApiV1RecordsIdGet200ResponseFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ApiV1RecordsIdGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdGet200Response {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'template': json['template'],
|
|
85
|
+
'data': json['data'],
|
|
86
|
+
'schemaVersion': json['schema_version'],
|
|
87
|
+
'createdAt': (new Date(json['created_at'])),
|
|
88
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ApiV1RecordsIdGet200ResponseToJSON(json: any): ApiV1RecordsIdGet200Response {
|
|
93
|
+
return ApiV1RecordsIdGet200ResponseToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ApiV1RecordsIdGet200ResponseToJSONTyped(value?: ApiV1RecordsIdGet200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'template': value['template'],
|
|
105
|
+
'data': value['data'],
|
|
106
|
+
'schema_version': value['schemaVersion'],
|
|
107
|
+
'created_at': value['createdAt'].toISOString(),
|
|
108
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Blanche API
|
|
5
|
+
* AI-powered life tracking system API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiV1RecordsIdPatch200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1RecordsIdPatch200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ApiV1RecordsIdPatch200Response
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ApiV1RecordsIdPatch200Response
|
|
32
|
+
*/
|
|
33
|
+
template: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof ApiV1RecordsIdPatch200Response
|
|
38
|
+
*/
|
|
39
|
+
data: object;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof ApiV1RecordsIdPatch200Response
|
|
44
|
+
*/
|
|
45
|
+
updatedAt: Date;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ApiV1RecordsIdPatch200Response interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfApiV1RecordsIdPatch200Response(value: object): value is ApiV1RecordsIdPatch200Response {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('template' in value) || value['template'] === undefined) return false;
|
|
54
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
55
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ApiV1RecordsIdPatch200ResponseFromJSON(json: any): ApiV1RecordsIdPatch200Response {
|
|
60
|
+
return ApiV1RecordsIdPatch200ResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ApiV1RecordsIdPatch200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdPatch200Response {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'template': json['template'],
|
|
71
|
+
'data': json['data'],
|
|
72
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ApiV1RecordsIdPatch200ResponseToJSON(json: any): ApiV1RecordsIdPatch200Response {
|
|
77
|
+
return ApiV1RecordsIdPatch200ResponseToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ApiV1RecordsIdPatch200ResponseToJSONTyped(value?: ApiV1RecordsIdPatch200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'template': value['template'],
|
|
89
|
+
'data': value['data'],
|
|
90
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Blanche API
|
|
5
|
+
* AI-powered life tracking system API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiV1RecordsIdPatch422Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1RecordsIdPatch422Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof ApiV1RecordsIdPatch422Response
|
|
26
|
+
*/
|
|
27
|
+
errors: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiV1RecordsIdPatch422Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiV1RecordsIdPatch422Response(value: object): value is ApiV1RecordsIdPatch422Response {
|
|
34
|
+
if (!('errors' in value) || value['errors'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiV1RecordsIdPatch422ResponseFromJSON(json: any): ApiV1RecordsIdPatch422Response {
|
|
39
|
+
return ApiV1RecordsIdPatch422ResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiV1RecordsIdPatch422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdPatch422Response {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'errors': json['errors'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiV1RecordsIdPatch422ResponseToJSON(json: any): ApiV1RecordsIdPatch422Response {
|
|
53
|
+
return ApiV1RecordsIdPatch422ResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiV1RecordsIdPatch422ResponseToJSONTyped(value?: ApiV1RecordsIdPatch422Response | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'errors': value['errors'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Blanche API
|
|
5
|
+
* AI-powered life tracking system API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ApiV1RecordsIdPatchRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ApiV1RecordsIdPatchRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof ApiV1RecordsIdPatchRequest
|
|
26
|
+
*/
|
|
27
|
+
data: object;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ApiV1RecordsIdPatchRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfApiV1RecordsIdPatchRequest(value: object): value is ApiV1RecordsIdPatchRequest {
|
|
34
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ApiV1RecordsIdPatchRequestFromJSON(json: any): ApiV1RecordsIdPatchRequest {
|
|
39
|
+
return ApiV1RecordsIdPatchRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ApiV1RecordsIdPatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdPatchRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'data': json['data'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ApiV1RecordsIdPatchRequestToJSON(json: any): ApiV1RecordsIdPatchRequest {
|
|
53
|
+
return ApiV1RecordsIdPatchRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ApiV1RecordsIdPatchRequestToJSONTyped(value?: ApiV1RecordsIdPatchRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'data': value['data'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -93,6 +93,12 @@ export interface ApiV1TemplatesGet200ResponseTemplatesInner {
|
|
|
93
93
|
* @memberof ApiV1TemplatesGet200ResponseTemplatesInner
|
|
94
94
|
*/
|
|
95
95
|
prompt?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof ApiV1TemplatesGet200ResponseTemplatesInner
|
|
100
|
+
*/
|
|
101
|
+
messageTemplate?: string | null;
|
|
96
102
|
}
|
|
97
103
|
|
|
98
104
|
/**
|
|
@@ -125,6 +131,7 @@ export function ApiV1TemplatesGet200ResponseTemplatesInnerFromJSONTyped(json: an
|
|
|
125
131
|
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
126
132
|
'schema': json['schema'],
|
|
127
133
|
'prompt': json['prompt'] == null ? undefined : json['prompt'],
|
|
134
|
+
'messageTemplate': json['message_template'] == null ? undefined : json['message_template'],
|
|
128
135
|
};
|
|
129
136
|
}
|
|
130
137
|
|
|
@@ -150,6 +157,7 @@ export function ApiV1TemplatesGet200ResponseTemplatesInnerToJSONTyped(value?: Ap
|
|
|
150
157
|
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
151
158
|
'schema': value['schema'],
|
|
152
159
|
'prompt': value['prompt'],
|
|
160
|
+
'message_template': value['messageTemplate'],
|
|
153
161
|
};
|
|
154
162
|
}
|
|
155
163
|
|
|
@@ -43,6 +43,12 @@ export interface ApiV1TemplatesIdGet200ResponseSchemasInner {
|
|
|
43
43
|
* @memberof ApiV1TemplatesIdGet200ResponseSchemasInner
|
|
44
44
|
*/
|
|
45
45
|
systemPrompt?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ApiV1TemplatesIdGet200ResponseSchemasInner
|
|
50
|
+
*/
|
|
51
|
+
messageTemplate?: string | null;
|
|
46
52
|
/**
|
|
47
53
|
*
|
|
48
54
|
* @type {boolean}
|
|
@@ -83,6 +89,7 @@ export function ApiV1TemplatesIdGet200ResponseSchemasInnerFromJSONTyped(json: an
|
|
|
83
89
|
'version': json['version'],
|
|
84
90
|
'jsonSchema': json['json_schema'],
|
|
85
91
|
'systemPrompt': json['system_prompt'] == null ? undefined : json['system_prompt'],
|
|
92
|
+
'messageTemplate': json['message_template'] == null ? undefined : json['message_template'],
|
|
86
93
|
'active': json['active'],
|
|
87
94
|
'createdAt': (new Date(json['created_at'])),
|
|
88
95
|
};
|
|
@@ -103,6 +110,7 @@ export function ApiV1TemplatesIdGet200ResponseSchemasInnerToJSONTyped(value?: Ap
|
|
|
103
110
|
'version': value['version'],
|
|
104
111
|
'json_schema': value['jsonSchema'],
|
|
105
112
|
'system_prompt': value['systemPrompt'],
|
|
113
|
+
'message_template': value['messageTemplate'],
|
|
106
114
|
'active': value['active'],
|
|
107
115
|
'created_at': value['createdAt'].toISOString(),
|
|
108
116
|
};
|
package/src/models/index.ts
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './ApiV1ProfileGet200Response';
|
|
4
4
|
export * from './ApiV1ProfileGet401Response';
|
|
5
|
+
export * from './ApiV1RecordsGet200Response';
|
|
6
|
+
export * from './ApiV1RecordsGet200ResponseRecordsInner';
|
|
7
|
+
export * from './ApiV1RecordsIdDelete200Response';
|
|
8
|
+
export * from './ApiV1RecordsIdGet200Response';
|
|
9
|
+
export * from './ApiV1RecordsIdPatch200Response';
|
|
10
|
+
export * from './ApiV1RecordsIdPatch422Response';
|
|
11
|
+
export * from './ApiV1RecordsIdPatchRequest';
|
|
5
12
|
export * from './ApiV1SessionsPost200Response';
|
|
6
13
|
export * from './ApiV1SessionsPost401Response';
|
|
7
14
|
export * from './ApiV1SessionsPostRequest';
|
|
@@ -21,7 +28,6 @@ export * from './ApiV1TemplatesIdGet404Response';
|
|
|
21
28
|
export * from './ApiV1TemplatesIdPatchRequest';
|
|
22
29
|
export * from './ApiV1TemplatesIdPatchRequestTemplate';
|
|
23
30
|
export * from './ApiV1TemplatesPost201Response';
|
|
24
|
-
export * from './ApiV1TemplatesPost422Response';
|
|
25
31
|
export * from './ApiV1TemplatesPostRequest';
|
|
26
32
|
export * from './ApiV1TemplatesPostRequestTemplate';
|
|
27
33
|
export * from './ApiV1UsersIdPatch200Response';
|
|
@@ -1,32 +0,0 @@
|
|
|
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 ApiV1TemplatesPost422Response
|
|
16
|
-
*/
|
|
17
|
-
export interface ApiV1TemplatesPost422Response {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {Array<string>}
|
|
21
|
-
* @memberof ApiV1TemplatesPost422Response
|
|
22
|
-
*/
|
|
23
|
-
errors: Array<string>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ApiV1TemplatesPost422Response interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfApiV1TemplatesPost422Response(value: object): value is ApiV1TemplatesPost422Response;
|
|
29
|
-
export declare function ApiV1TemplatesPost422ResponseFromJSON(json: any): ApiV1TemplatesPost422Response;
|
|
30
|
-
export declare function ApiV1TemplatesPost422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TemplatesPost422Response;
|
|
31
|
-
export declare function ApiV1TemplatesPost422ResponseToJSON(json: any): ApiV1TemplatesPost422Response;
|
|
32
|
-
export declare function ApiV1TemplatesPost422ResponseToJSONTyped(value?: ApiV1TemplatesPost422Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
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.instanceOfApiV1TemplatesPost422Response = instanceOfApiV1TemplatesPost422Response;
|
|
17
|
-
exports.ApiV1TemplatesPost422ResponseFromJSON = ApiV1TemplatesPost422ResponseFromJSON;
|
|
18
|
-
exports.ApiV1TemplatesPost422ResponseFromJSONTyped = ApiV1TemplatesPost422ResponseFromJSONTyped;
|
|
19
|
-
exports.ApiV1TemplatesPost422ResponseToJSON = ApiV1TemplatesPost422ResponseToJSON;
|
|
20
|
-
exports.ApiV1TemplatesPost422ResponseToJSONTyped = ApiV1TemplatesPost422ResponseToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ApiV1TemplatesPost422Response interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfApiV1TemplatesPost422Response(value) {
|
|
25
|
-
if (!('errors' in value) || value['errors'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function ApiV1TemplatesPost422ResponseFromJSON(json) {
|
|
30
|
-
return ApiV1TemplatesPost422ResponseFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function ApiV1TemplatesPost422ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'errors': json['errors'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function ApiV1TemplatesPost422ResponseToJSON(json) {
|
|
41
|
-
return ApiV1TemplatesPost422ResponseToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function ApiV1TemplatesPost422ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'errors': value['errors'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Blanche API
|
|
5
|
-
* AI-powered life tracking system API
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ApiV1TemplatesPost422Response
|
|
20
|
-
*/
|
|
21
|
-
export interface ApiV1TemplatesPost422Response {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<string>}
|
|
25
|
-
* @memberof ApiV1TemplatesPost422Response
|
|
26
|
-
*/
|
|
27
|
-
errors: Array<string>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the ApiV1TemplatesPost422Response interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfApiV1TemplatesPost422Response(value: object): value is ApiV1TemplatesPost422Response {
|
|
34
|
-
if (!('errors' in value) || value['errors'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function ApiV1TemplatesPost422ResponseFromJSON(json: any): ApiV1TemplatesPost422Response {
|
|
39
|
-
return ApiV1TemplatesPost422ResponseFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function ApiV1TemplatesPost422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TemplatesPost422Response {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'errors': json['errors'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function ApiV1TemplatesPost422ResponseToJSON(json: any): ApiV1TemplatesPost422Response {
|
|
53
|
-
return ApiV1TemplatesPost422ResponseToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function ApiV1TemplatesPost422ResponseToJSONTyped(value?: ApiV1TemplatesPost422Response | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'errors': value['errors'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|