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,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 ApiV1RecordsIdPatch200Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1RecordsIdPatch200Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiV1RecordsIdPatch200Response
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiV1RecordsIdPatch200Response
|
|
28
|
+
*/
|
|
29
|
+
template: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof ApiV1RecordsIdPatch200Response
|
|
34
|
+
*/
|
|
35
|
+
data: object;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof ApiV1RecordsIdPatch200Response
|
|
40
|
+
*/
|
|
41
|
+
updatedAt: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ApiV1RecordsIdPatch200Response interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfApiV1RecordsIdPatch200Response(value: object): value is ApiV1RecordsIdPatch200Response;
|
|
47
|
+
export declare function ApiV1RecordsIdPatch200ResponseFromJSON(json: any): ApiV1RecordsIdPatch200Response;
|
|
48
|
+
export declare function ApiV1RecordsIdPatch200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdPatch200Response;
|
|
49
|
+
export declare function ApiV1RecordsIdPatch200ResponseToJSON(json: any): ApiV1RecordsIdPatch200Response;
|
|
50
|
+
export declare function ApiV1RecordsIdPatch200ResponseToJSONTyped(value?: ApiV1RecordsIdPatch200Response | 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.instanceOfApiV1RecordsIdPatch200Response = instanceOfApiV1RecordsIdPatch200Response;
|
|
17
|
+
exports.ApiV1RecordsIdPatch200ResponseFromJSON = ApiV1RecordsIdPatch200ResponseFromJSON;
|
|
18
|
+
exports.ApiV1RecordsIdPatch200ResponseFromJSONTyped = ApiV1RecordsIdPatch200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1RecordsIdPatch200ResponseToJSON = ApiV1RecordsIdPatch200ResponseToJSON;
|
|
20
|
+
exports.ApiV1RecordsIdPatch200ResponseToJSONTyped = ApiV1RecordsIdPatch200ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1RecordsIdPatch200Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1RecordsIdPatch200Response(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('template' in value) || value['template'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function ApiV1RecordsIdPatch200ResponseFromJSON(json) {
|
|
36
|
+
return ApiV1RecordsIdPatch200ResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function ApiV1RecordsIdPatch200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'template': json['template'],
|
|
45
|
+
'data': json['data'],
|
|
46
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function ApiV1RecordsIdPatch200ResponseToJSON(json) {
|
|
50
|
+
return ApiV1RecordsIdPatch200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function ApiV1RecordsIdPatch200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'template': value['template'],
|
|
60
|
+
'data': value['data'],
|
|
61
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ApiV1RecordsIdPatch422Response
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1RecordsIdPatch422Response {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof ApiV1RecordsIdPatch422Response
|
|
22
|
+
*/
|
|
23
|
+
errors: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiV1RecordsIdPatch422Response interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiV1RecordsIdPatch422Response(value: object): value is ApiV1RecordsIdPatch422Response;
|
|
29
|
+
export declare function ApiV1RecordsIdPatch422ResponseFromJSON(json: any): ApiV1RecordsIdPatch422Response;
|
|
30
|
+
export declare function ApiV1RecordsIdPatch422ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdPatch422Response;
|
|
31
|
+
export declare function ApiV1RecordsIdPatch422ResponseToJSON(json: any): ApiV1RecordsIdPatch422Response;
|
|
32
|
+
export declare function ApiV1RecordsIdPatch422ResponseToJSONTyped(value?: ApiV1RecordsIdPatch422Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfApiV1RecordsIdPatch422Response = instanceOfApiV1RecordsIdPatch422Response;
|
|
17
|
+
exports.ApiV1RecordsIdPatch422ResponseFromJSON = ApiV1RecordsIdPatch422ResponseFromJSON;
|
|
18
|
+
exports.ApiV1RecordsIdPatch422ResponseFromJSONTyped = ApiV1RecordsIdPatch422ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiV1RecordsIdPatch422ResponseToJSON = ApiV1RecordsIdPatch422ResponseToJSON;
|
|
20
|
+
exports.ApiV1RecordsIdPatch422ResponseToJSONTyped = ApiV1RecordsIdPatch422ResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1RecordsIdPatch422Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1RecordsIdPatch422Response(value) {
|
|
25
|
+
if (!('errors' in value) || value['errors'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiV1RecordsIdPatch422ResponseFromJSON(json) {
|
|
30
|
+
return ApiV1RecordsIdPatch422ResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiV1RecordsIdPatch422ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'errors': json['errors'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1RecordsIdPatch422ResponseToJSON(json) {
|
|
41
|
+
return ApiV1RecordsIdPatch422ResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1RecordsIdPatch422ResponseToJSONTyped(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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 ApiV1RecordsIdPatchRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiV1RecordsIdPatchRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof ApiV1RecordsIdPatchRequest
|
|
22
|
+
*/
|
|
23
|
+
data: object;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ApiV1RecordsIdPatchRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfApiV1RecordsIdPatchRequest(value: object): value is ApiV1RecordsIdPatchRequest;
|
|
29
|
+
export declare function ApiV1RecordsIdPatchRequestFromJSON(json: any): ApiV1RecordsIdPatchRequest;
|
|
30
|
+
export declare function ApiV1RecordsIdPatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdPatchRequest;
|
|
31
|
+
export declare function ApiV1RecordsIdPatchRequestToJSON(json: any): ApiV1RecordsIdPatchRequest;
|
|
32
|
+
export declare function ApiV1RecordsIdPatchRequestToJSONTyped(value?: ApiV1RecordsIdPatchRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfApiV1RecordsIdPatchRequest = instanceOfApiV1RecordsIdPatchRequest;
|
|
17
|
+
exports.ApiV1RecordsIdPatchRequestFromJSON = ApiV1RecordsIdPatchRequestFromJSON;
|
|
18
|
+
exports.ApiV1RecordsIdPatchRequestFromJSONTyped = ApiV1RecordsIdPatchRequestFromJSONTyped;
|
|
19
|
+
exports.ApiV1RecordsIdPatchRequestToJSON = ApiV1RecordsIdPatchRequestToJSON;
|
|
20
|
+
exports.ApiV1RecordsIdPatchRequestToJSONTyped = ApiV1RecordsIdPatchRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiV1RecordsIdPatchRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiV1RecordsIdPatchRequest(value) {
|
|
25
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ApiV1RecordsIdPatchRequestFromJSON(json) {
|
|
30
|
+
return ApiV1RecordsIdPatchRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ApiV1RecordsIdPatchRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'data': json['data'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ApiV1RecordsIdPatchRequestToJSON(json) {
|
|
41
|
+
return ApiV1RecordsIdPatchRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiV1RecordsIdPatchRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'data': value['data'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -82,6 +82,12 @@ export interface ApiV1TemplatesGet200ResponseTemplatesInner {
|
|
|
82
82
|
* @memberof ApiV1TemplatesGet200ResponseTemplatesInner
|
|
83
83
|
*/
|
|
84
84
|
prompt?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof ApiV1TemplatesGet200ResponseTemplatesInner
|
|
89
|
+
*/
|
|
90
|
+
messageTemplate?: string | null;
|
|
85
91
|
}
|
|
86
92
|
/**
|
|
87
93
|
* Check if a given object implements the ApiV1TemplatesGet200ResponseTemplatesInner interface.
|
|
@@ -48,6 +48,7 @@ function ApiV1TemplatesGet200ResponseTemplatesInnerFromJSONTyped(json, ignoreDis
|
|
|
48
48
|
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
49
49
|
'schema': json['schema'],
|
|
50
50
|
'prompt': json['prompt'] == null ? undefined : json['prompt'],
|
|
51
|
+
'messageTemplate': json['message_template'] == null ? undefined : json['message_template'],
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
function ApiV1TemplatesGet200ResponseTemplatesInnerToJSON(json) {
|
|
@@ -70,5 +71,6 @@ function ApiV1TemplatesGet200ResponseTemplatesInnerToJSONTyped(value, ignoreDisc
|
|
|
70
71
|
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
71
72
|
'schema': value['schema'],
|
|
72
73
|
'prompt': value['prompt'],
|
|
74
|
+
'message_template': value['messageTemplate'],
|
|
73
75
|
};
|
|
74
76
|
}
|
|
@@ -39,6 +39,12 @@ export interface ApiV1TemplatesIdGet200ResponseSchemasInner {
|
|
|
39
39
|
* @memberof ApiV1TemplatesIdGet200ResponseSchemasInner
|
|
40
40
|
*/
|
|
41
41
|
systemPrompt?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApiV1TemplatesIdGet200ResponseSchemasInner
|
|
46
|
+
*/
|
|
47
|
+
messageTemplate?: string | null;
|
|
42
48
|
/**
|
|
43
49
|
*
|
|
44
50
|
* @type {boolean}
|
|
@@ -46,6 +46,7 @@ function ApiV1TemplatesIdGet200ResponseSchemasInnerFromJSONTyped(json, ignoreDis
|
|
|
46
46
|
'version': json['version'],
|
|
47
47
|
'jsonSchema': json['json_schema'],
|
|
48
48
|
'systemPrompt': json['system_prompt'] == null ? undefined : json['system_prompt'],
|
|
49
|
+
'messageTemplate': json['message_template'] == null ? undefined : json['message_template'],
|
|
49
50
|
'active': json['active'],
|
|
50
51
|
'createdAt': (new Date(json['created_at'])),
|
|
51
52
|
};
|
|
@@ -63,6 +64,7 @@ function ApiV1TemplatesIdGet200ResponseSchemasInnerToJSONTyped(value, ignoreDisc
|
|
|
63
64
|
'version': value['version'],
|
|
64
65
|
'json_schema': value['jsonSchema'],
|
|
65
66
|
'system_prompt': value['systemPrompt'],
|
|
67
|
+
'message_template': value['messageTemplate'],
|
|
66
68
|
'active': value['active'],
|
|
67
69
|
'created_at': value['createdAt'].toISOString(),
|
|
68
70
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
export * from './ApiV1ProfileGet200Response';
|
|
2
2
|
export * from './ApiV1ProfileGet401Response';
|
|
3
|
+
export * from './ApiV1RecordsGet200Response';
|
|
4
|
+
export * from './ApiV1RecordsGet200ResponseRecordsInner';
|
|
5
|
+
export * from './ApiV1RecordsIdDelete200Response';
|
|
6
|
+
export * from './ApiV1RecordsIdGet200Response';
|
|
7
|
+
export * from './ApiV1RecordsIdPatch200Response';
|
|
8
|
+
export * from './ApiV1RecordsIdPatch422Response';
|
|
9
|
+
export * from './ApiV1RecordsIdPatchRequest';
|
|
3
10
|
export * from './ApiV1SessionsPost200Response';
|
|
4
11
|
export * from './ApiV1SessionsPost401Response';
|
|
5
12
|
export * from './ApiV1SessionsPostRequest';
|
|
@@ -19,7 +26,6 @@ export * from './ApiV1TemplatesIdGet404Response';
|
|
|
19
26
|
export * from './ApiV1TemplatesIdPatchRequest';
|
|
20
27
|
export * from './ApiV1TemplatesIdPatchRequestTemplate';
|
|
21
28
|
export * from './ApiV1TemplatesPost201Response';
|
|
22
|
-
export * from './ApiV1TemplatesPost422Response';
|
|
23
29
|
export * from './ApiV1TemplatesPostRequest';
|
|
24
30
|
export * from './ApiV1TemplatesPostRequestTemplate';
|
|
25
31
|
export * from './ApiV1UsersIdPatch200Response';
|
package/dist/models/index.js
CHANGED
|
@@ -18,6 +18,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./ApiV1ProfileGet200Response"), exports);
|
|
20
20
|
__exportStar(require("./ApiV1ProfileGet401Response"), exports);
|
|
21
|
+
__exportStar(require("./ApiV1RecordsGet200Response"), exports);
|
|
22
|
+
__exportStar(require("./ApiV1RecordsGet200ResponseRecordsInner"), exports);
|
|
23
|
+
__exportStar(require("./ApiV1RecordsIdDelete200Response"), exports);
|
|
24
|
+
__exportStar(require("./ApiV1RecordsIdGet200Response"), exports);
|
|
25
|
+
__exportStar(require("./ApiV1RecordsIdPatch200Response"), exports);
|
|
26
|
+
__exportStar(require("./ApiV1RecordsIdPatch422Response"), exports);
|
|
27
|
+
__exportStar(require("./ApiV1RecordsIdPatchRequest"), exports);
|
|
21
28
|
__exportStar(require("./ApiV1SessionsPost200Response"), exports);
|
|
22
29
|
__exportStar(require("./ApiV1SessionsPost401Response"), exports);
|
|
23
30
|
__exportStar(require("./ApiV1SessionsPostRequest"), exports);
|
|
@@ -37,7 +44,6 @@ __exportStar(require("./ApiV1TemplatesIdGet404Response"), exports);
|
|
|
37
44
|
__exportStar(require("./ApiV1TemplatesIdPatchRequest"), exports);
|
|
38
45
|
__exportStar(require("./ApiV1TemplatesIdPatchRequestTemplate"), exports);
|
|
39
46
|
__exportStar(require("./ApiV1TemplatesPost201Response"), exports);
|
|
40
|
-
__exportStar(require("./ApiV1TemplatesPost422Response"), exports);
|
|
41
47
|
__exportStar(require("./ApiV1TemplatesPostRequest"), exports);
|
|
42
48
|
__exportStar(require("./ApiV1TemplatesPostRequestTemplate"), exports);
|
|
43
49
|
__exportStar(require("./ApiV1UsersIdPatch200Response"), exports);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# ApiV1RecordsGet200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`records` | [Array<ApiV1RecordsGet200ResponseRecordsInner>](ApiV1RecordsGet200ResponseRecordsInner.md)
|
|
10
|
+
`total` | number
|
|
11
|
+
`limit` | number
|
|
12
|
+
`offset` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ApiV1RecordsGet200Response } from 'blanche-client-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"records": null,
|
|
22
|
+
"total": null,
|
|
23
|
+
"limit": null,
|
|
24
|
+
"offset": null,
|
|
25
|
+
} satisfies ApiV1RecordsGet200Response
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApiV1RecordsGet200Response
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# ApiV1RecordsGet200ResponseRecordsInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`template` | string
|
|
11
|
+
`data` | object
|
|
12
|
+
`createdAt` | Date
|
|
13
|
+
`updatedAt` | Date
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { ApiV1RecordsGet200ResponseRecordsInner } from 'blanche-client-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"template": null,
|
|
24
|
+
"data": null,
|
|
25
|
+
"createdAt": null,
|
|
26
|
+
"updatedAt": null,
|
|
27
|
+
} satisfies ApiV1RecordsGet200ResponseRecordsInner
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApiV1RecordsGet200ResponseRecordsInner
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ApiV1RecordsIdDelete200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`message` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ApiV1RecordsIdDelete200Response } from 'blanche-client-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"message": null,
|
|
19
|
+
} satisfies ApiV1RecordsIdDelete200Response
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApiV1RecordsIdDelete200Response
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# ApiV1RecordsIdGet200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`template` | string
|
|
11
|
+
`data` | object
|
|
12
|
+
`schemaVersion` | number
|
|
13
|
+
`createdAt` | Date
|
|
14
|
+
`updatedAt` | Date
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { ApiV1RecordsIdGet200Response } from 'blanche-client-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"id": null,
|
|
24
|
+
"template": null,
|
|
25
|
+
"data": null,
|
|
26
|
+
"schemaVersion": null,
|
|
27
|
+
"createdAt": null,
|
|
28
|
+
"updatedAt": null,
|
|
29
|
+
} satisfies ApiV1RecordsIdGet200Response
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApiV1RecordsIdGet200Response
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# ApiV1RecordsIdPatch200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`template` | string
|
|
11
|
+
`data` | object
|
|
12
|
+
`updatedAt` | Date
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ApiV1RecordsIdPatch200Response } from 'blanche-client-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"id": null,
|
|
22
|
+
"template": null,
|
|
23
|
+
"data": null,
|
|
24
|
+
"updatedAt": null,
|
|
25
|
+
} satisfies ApiV1RecordsIdPatch200Response
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApiV1RecordsIdPatch200Response
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ApiV1RecordsIdPatch422Response
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -11,12 +11,12 @@ Name | Type
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ApiV1RecordsIdPatch422Response } from 'blanche-client-sdk'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
18
|
"errors": null,
|
|
19
|
-
} satisfies
|
|
19
|
+
} satisfies ApiV1RecordsIdPatch422Response
|
|
20
20
|
|
|
21
21
|
console.log(example)
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
25
|
console.log(exampleJSON)
|
|
26
26
|
|
|
27
27
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApiV1RecordsIdPatch422Response
|
|
29
29
|
console.log(exampleParsed)
|
|
30
30
|
```
|
|
31
31
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ApiV1RecordsIdPatchRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | object
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ApiV1RecordsIdPatchRequest } from 'blanche-client-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ApiV1RecordsIdPatchRequest
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApiV1RecordsIdPatchRequest
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -17,6 +17,7 @@ Name | Type
|
|
|
17
17
|
`updatedAt` | Date
|
|
18
18
|
`schema` | object
|
|
19
19
|
`prompt` | string
|
|
20
|
+
`messageTemplate` | string
|
|
20
21
|
|
|
21
22
|
## Example
|
|
22
23
|
|
|
@@ -36,6 +37,7 @@ const example = {
|
|
|
36
37
|
"updatedAt": null,
|
|
37
38
|
"schema": null,
|
|
38
39
|
"prompt": null,
|
|
40
|
+
"messageTemplate": null,
|
|
39
41
|
} satisfies ApiV1TemplatesGet200ResponseTemplatesInner
|
|
40
42
|
|
|
41
43
|
console.log(example)
|