blanche-client-sdk 0.2.1 → 0.4.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.
Files changed (89) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/README.md +39 -9
  3. package/dist/apis/RecordsApi.d.ts +65 -0
  4. package/dist/apis/RecordsApi.js +272 -0
  5. package/dist/apis/TemplatesApi.d.ts +63 -0
  6. package/dist/apis/TemplatesApi.js +265 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/models/ApiV1RecordsGet200Response.d.ts +51 -0
  10. package/dist/models/ApiV1RecordsGet200Response.js +64 -0
  11. package/dist/models/ApiV1RecordsGet200ResponseRecordsInner.d.ts +56 -0
  12. package/dist/models/ApiV1RecordsGet200ResponseRecordsInner.js +67 -0
  13. package/dist/models/ApiV1RecordsIdDelete200Response.d.ts +32 -0
  14. package/dist/models/ApiV1RecordsIdDelete200Response.js +51 -0
  15. package/dist/models/ApiV1RecordsIdGet200Response.d.ts +62 -0
  16. package/dist/models/ApiV1RecordsIdGet200Response.js +71 -0
  17. package/dist/models/ApiV1RecordsIdPatch200Response.d.ts +50 -0
  18. package/dist/models/ApiV1RecordsIdPatch200Response.js +63 -0
  19. package/dist/models/ApiV1RecordsIdPatch422Response.d.ts +32 -0
  20. package/dist/models/ApiV1RecordsIdPatch422Response.js +51 -0
  21. package/dist/models/ApiV1RecordsIdPatchRequest.d.ts +32 -0
  22. package/dist/models/ApiV1RecordsIdPatchRequest.js +51 -0
  23. package/dist/models/ApiV1TemplatesGet200Response.d.ts +39 -0
  24. package/dist/models/ApiV1TemplatesGet200Response.js +56 -0
  25. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInner.d.ts +93 -0
  26. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInner.js +74 -0
  27. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.d.ts +38 -0
  28. package/dist/models/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.js +51 -0
  29. package/dist/models/ApiV1TemplatesIdGet200Response.d.ts +69 -0
  30. package/dist/models/ApiV1TemplatesIdGet200Response.js +76 -0
  31. package/dist/models/ApiV1TemplatesIdGet200ResponseSchemasInner.d.ts +62 -0
  32. package/dist/models/ApiV1TemplatesIdGet200ResponseSchemasInner.js +69 -0
  33. package/dist/models/ApiV1TemplatesIdGet404Response.d.ts +32 -0
  34. package/dist/models/ApiV1TemplatesIdGet404Response.js +51 -0
  35. package/dist/models/ApiV1TemplatesIdPatchRequest.d.ts +33 -0
  36. package/dist/models/ApiV1TemplatesIdPatchRequest.js +52 -0
  37. package/dist/models/ApiV1TemplatesIdPatchRequestTemplate.d.ts +38 -0
  38. package/dist/models/ApiV1TemplatesIdPatchRequestTemplate.js +51 -0
  39. package/dist/models/ApiV1TemplatesPost201Response.d.ts +44 -0
  40. package/dist/models/ApiV1TemplatesPost201Response.js +59 -0
  41. package/dist/models/ApiV1TemplatesPostRequest.d.ts +33 -0
  42. package/dist/models/ApiV1TemplatesPostRequest.js +52 -0
  43. package/dist/models/ApiV1TemplatesPostRequestTemplate.d.ts +38 -0
  44. package/dist/models/ApiV1TemplatesPostRequestTemplate.js +53 -0
  45. package/dist/models/index.d.ts +18 -0
  46. package/dist/models/index.js +18 -0
  47. package/docs/ApiV1RecordsGet200Response.md +40 -0
  48. package/docs/ApiV1RecordsGet200ResponseRecordsInner.md +42 -0
  49. package/docs/ApiV1RecordsIdDelete200Response.md +34 -0
  50. package/docs/ApiV1RecordsIdGet200Response.md +44 -0
  51. package/docs/ApiV1RecordsIdPatch200Response.md +40 -0
  52. package/docs/ApiV1RecordsIdPatch422Response.md +34 -0
  53. package/docs/ApiV1RecordsIdPatchRequest.md +34 -0
  54. package/docs/ApiV1TemplatesGet200Response.md +36 -0
  55. package/docs/ApiV1TemplatesGet200ResponseTemplatesInner.md +54 -0
  56. package/docs/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.md +36 -0
  57. package/docs/ApiV1TemplatesIdGet200Response.md +46 -0
  58. package/docs/ApiV1TemplatesIdGet200ResponseSchemasInner.md +44 -0
  59. package/docs/ApiV1TemplatesIdGet404Response.md +34 -0
  60. package/docs/ApiV1TemplatesIdPatchRequest.md +34 -0
  61. package/docs/ApiV1TemplatesIdPatchRequestTemplate.md +36 -0
  62. package/docs/ApiV1TemplatesPost201Response.md +38 -0
  63. package/docs/ApiV1TemplatesPostRequest.md +34 -0
  64. package/docs/ApiV1TemplatesPostRequestTemplate.md +36 -0
  65. package/docs/RecordsApi.md +282 -0
  66. package/docs/TemplatesApi.md +279 -0
  67. package/package.json +1 -1
  68. package/src/apis/RecordsApi.ts +219 -0
  69. package/src/apis/TemplatesApi.ts +207 -0
  70. package/src/apis/index.ts +2 -0
  71. package/src/models/ApiV1RecordsGet200Response.ts +101 -0
  72. package/src/models/ApiV1RecordsGet200ResponseRecordsInner.ts +102 -0
  73. package/src/models/ApiV1RecordsIdDelete200Response.ts +66 -0
  74. package/src/models/ApiV1RecordsIdGet200Response.ts +111 -0
  75. package/src/models/ApiV1RecordsIdPatch200Response.ts +93 -0
  76. package/src/models/ApiV1RecordsIdPatch422Response.ts +66 -0
  77. package/src/models/ApiV1RecordsIdPatchRequest.ts +66 -0
  78. package/src/models/ApiV1TemplatesGet200Response.ts +83 -0
  79. package/src/models/ApiV1TemplatesGet200ResponseTemplatesInner.ts +155 -0
  80. package/src/models/ApiV1TemplatesGet200ResponseTemplatesInnerActiveSchema.ts +73 -0
  81. package/src/models/ApiV1TemplatesIdGet200Response.ts +128 -0
  82. package/src/models/ApiV1TemplatesIdGet200ResponseSchemasInner.ts +110 -0
  83. package/src/models/ApiV1TemplatesIdGet404Response.ts +66 -0
  84. package/src/models/ApiV1TemplatesIdPatchRequest.ts +74 -0
  85. package/src/models/ApiV1TemplatesIdPatchRequestTemplate.ts +73 -0
  86. package/src/models/ApiV1TemplatesPost201Response.ts +84 -0
  87. package/src/models/ApiV1TemplatesPostRequest.ts +74 -0
  88. package/src/models/ApiV1TemplatesPostRequestTemplate.ts +74 -0
  89. package/src/models/index.ts +18 -0
package/src/apis/index.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './RecordsApi';
3
4
  export * from './SessionsApi';
4
5
  export * from './TelegramLinksApi';
6
+ export * from './TemplatesApi';
5
7
  export * from './UsersApi';
@@ -0,0 +1,101 @@
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
+ import type { ApiV1RecordsGet200ResponseRecordsInner } from './ApiV1RecordsGet200ResponseRecordsInner';
17
+ import {
18
+ ApiV1RecordsGet200ResponseRecordsInnerFromJSON,
19
+ ApiV1RecordsGet200ResponseRecordsInnerFromJSONTyped,
20
+ ApiV1RecordsGet200ResponseRecordsInnerToJSON,
21
+ ApiV1RecordsGet200ResponseRecordsInnerToJSONTyped,
22
+ } from './ApiV1RecordsGet200ResponseRecordsInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiV1RecordsGet200Response
28
+ */
29
+ export interface ApiV1RecordsGet200Response {
30
+ /**
31
+ *
32
+ * @type {Array<ApiV1RecordsGet200ResponseRecordsInner>}
33
+ * @memberof ApiV1RecordsGet200Response
34
+ */
35
+ records: Array<ApiV1RecordsGet200ResponseRecordsInner>;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof ApiV1RecordsGet200Response
40
+ */
41
+ total: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ApiV1RecordsGet200Response
46
+ */
47
+ limit: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiV1RecordsGet200Response
52
+ */
53
+ offset: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiV1RecordsGet200Response interface.
58
+ */
59
+ export function instanceOfApiV1RecordsGet200Response(value: object): value is ApiV1RecordsGet200Response {
60
+ if (!('records' in value) || value['records'] === undefined) return false;
61
+ if (!('total' in value) || value['total'] === undefined) return false;
62
+ if (!('limit' in value) || value['limit'] === undefined) return false;
63
+ if (!('offset' in value) || value['offset'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function ApiV1RecordsGet200ResponseFromJSON(json: any): ApiV1RecordsGet200Response {
68
+ return ApiV1RecordsGet200ResponseFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function ApiV1RecordsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsGet200Response {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'records': ((json['records'] as Array<any>).map(ApiV1RecordsGet200ResponseRecordsInnerFromJSON)),
78
+ 'total': json['total'],
79
+ 'limit': json['limit'],
80
+ 'offset': json['offset'],
81
+ };
82
+ }
83
+
84
+ export function ApiV1RecordsGet200ResponseToJSON(json: any): ApiV1RecordsGet200Response {
85
+ return ApiV1RecordsGet200ResponseToJSONTyped(json, false);
86
+ }
87
+
88
+ export function ApiV1RecordsGet200ResponseToJSONTyped(value?: ApiV1RecordsGet200Response | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'records': ((value['records'] as Array<any>).map(ApiV1RecordsGet200ResponseRecordsInnerToJSON)),
96
+ 'total': value['total'],
97
+ 'limit': value['limit'],
98
+ 'offset': value['offset'],
99
+ };
100
+ }
101
+
@@ -0,0 +1,102 @@
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 ApiV1RecordsGet200ResponseRecordsInner
20
+ */
21
+ export interface ApiV1RecordsGet200ResponseRecordsInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiV1RecordsGet200ResponseRecordsInner
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ApiV1RecordsGet200ResponseRecordsInner
32
+ */
33
+ template: string;
34
+ /**
35
+ *
36
+ * @type {object}
37
+ * @memberof ApiV1RecordsGet200ResponseRecordsInner
38
+ */
39
+ data: object;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof ApiV1RecordsGet200ResponseRecordsInner
44
+ */
45
+ createdAt: Date;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof ApiV1RecordsGet200ResponseRecordsInner
50
+ */
51
+ updatedAt: Date;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the ApiV1RecordsGet200ResponseRecordsInner interface.
56
+ */
57
+ export function instanceOfApiV1RecordsGet200ResponseRecordsInner(value: object): value is ApiV1RecordsGet200ResponseRecordsInner {
58
+ if (!('id' in value) || value['id'] === undefined) return false;
59
+ if (!('template' in value) || value['template'] === undefined) return false;
60
+ if (!('data' in value) || value['data'] === undefined) return false;
61
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
62
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ApiV1RecordsGet200ResponseRecordsInnerFromJSON(json: any): ApiV1RecordsGet200ResponseRecordsInner {
67
+ return ApiV1RecordsGet200ResponseRecordsInnerFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiV1RecordsGet200ResponseRecordsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsGet200ResponseRecordsInner {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'id': json['id'],
77
+ 'template': json['template'],
78
+ 'data': json['data'],
79
+ 'createdAt': (new Date(json['created_at'])),
80
+ 'updatedAt': (new Date(json['updated_at'])),
81
+ };
82
+ }
83
+
84
+ export function ApiV1RecordsGet200ResponseRecordsInnerToJSON(json: any): ApiV1RecordsGet200ResponseRecordsInner {
85
+ return ApiV1RecordsGet200ResponseRecordsInnerToJSONTyped(json, false);
86
+ }
87
+
88
+ export function ApiV1RecordsGet200ResponseRecordsInnerToJSONTyped(value?: ApiV1RecordsGet200ResponseRecordsInner | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'id': value['id'],
96
+ 'template': value['template'],
97
+ 'data': value['data'],
98
+ 'created_at': value['createdAt'].toISOString(),
99
+ 'updated_at': value['updatedAt'].toISOString(),
100
+ };
101
+ }
102
+
@@ -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 ApiV1RecordsIdDelete200Response
20
+ */
21
+ export interface ApiV1RecordsIdDelete200Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ApiV1RecordsIdDelete200Response
26
+ */
27
+ message: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ApiV1RecordsIdDelete200Response interface.
32
+ */
33
+ export function instanceOfApiV1RecordsIdDelete200Response(value: object): value is ApiV1RecordsIdDelete200Response {
34
+ if (!('message' in value) || value['message'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ApiV1RecordsIdDelete200ResponseFromJSON(json: any): ApiV1RecordsIdDelete200Response {
39
+ return ApiV1RecordsIdDelete200ResponseFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ApiV1RecordsIdDelete200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1RecordsIdDelete200Response {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'message': json['message'],
49
+ };
50
+ }
51
+
52
+ export function ApiV1RecordsIdDelete200ResponseToJSON(json: any): ApiV1RecordsIdDelete200Response {
53
+ return ApiV1RecordsIdDelete200ResponseToJSONTyped(json, false);
54
+ }
55
+
56
+ export function ApiV1RecordsIdDelete200ResponseToJSONTyped(value?: ApiV1RecordsIdDelete200Response | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'message': value['message'],
64
+ };
65
+ }
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
+
@@ -0,0 +1,83 @@
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
+ import type { ApiV1TemplatesGet200ResponseTemplatesInner } from './ApiV1TemplatesGet200ResponseTemplatesInner';
17
+ import {
18
+ ApiV1TemplatesGet200ResponseTemplatesInnerFromJSON,
19
+ ApiV1TemplatesGet200ResponseTemplatesInnerFromJSONTyped,
20
+ ApiV1TemplatesGet200ResponseTemplatesInnerToJSON,
21
+ ApiV1TemplatesGet200ResponseTemplatesInnerToJSONTyped,
22
+ } from './ApiV1TemplatesGet200ResponseTemplatesInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiV1TemplatesGet200Response
28
+ */
29
+ export interface ApiV1TemplatesGet200Response {
30
+ /**
31
+ *
32
+ * @type {Array<ApiV1TemplatesGet200ResponseTemplatesInner>}
33
+ * @memberof ApiV1TemplatesGet200Response
34
+ */
35
+ templates: Array<ApiV1TemplatesGet200ResponseTemplatesInner>;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiV1TemplatesGet200Response
40
+ */
41
+ systemPrompt: string;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the ApiV1TemplatesGet200Response interface.
46
+ */
47
+ export function instanceOfApiV1TemplatesGet200Response(value: object): value is ApiV1TemplatesGet200Response {
48
+ if (!('templates' in value) || value['templates'] === undefined) return false;
49
+ if (!('systemPrompt' in value) || value['systemPrompt'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function ApiV1TemplatesGet200ResponseFromJSON(json: any): ApiV1TemplatesGet200Response {
54
+ return ApiV1TemplatesGet200ResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function ApiV1TemplatesGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1TemplatesGet200Response {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'templates': ((json['templates'] as Array<any>).map(ApiV1TemplatesGet200ResponseTemplatesInnerFromJSON)),
64
+ 'systemPrompt': json['system_prompt'],
65
+ };
66
+ }
67
+
68
+ export function ApiV1TemplatesGet200ResponseToJSON(json: any): ApiV1TemplatesGet200Response {
69
+ return ApiV1TemplatesGet200ResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function ApiV1TemplatesGet200ResponseToJSONTyped(value?: ApiV1TemplatesGet200Response | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'templates': ((value['templates'] as Array<any>).map(ApiV1TemplatesGet200ResponseTemplatesInnerToJSON)),
80
+ 'system_prompt': value['systemPrompt'],
81
+ };
82
+ }
83
+