blanche-client-sdk 0.1.3 → 0.2.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.
Files changed (72) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +14 -2
  3. package/dist/apis/TelegramLinksApi.d.ts +48 -0
  4. package/dist/apis/TelegramLinksApi.js +213 -0
  5. package/dist/apis/UsersApi.d.ts +3 -3
  6. package/dist/apis/UsersApi.js +1 -1
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/ApiV1ProfileGet200Response.d.ts +18 -0
  10. package/dist/models/ApiV1ProfileGet200Response.js +12 -0
  11. package/dist/models/ApiV1TelegramLinksConsumePost200Response.d.ts +32 -0
  12. package/dist/models/ApiV1TelegramLinksConsumePost200Response.js +51 -0
  13. package/dist/models/ApiV1TelegramLinksConsumePost422Response.d.ts +34 -0
  14. package/dist/models/ApiV1TelegramLinksConsumePost422Response.js +51 -0
  15. package/dist/models/ApiV1TelegramLinksConsumePostRequest.d.ts +62 -0
  16. package/dist/models/ApiV1TelegramLinksConsumePostRequest.js +63 -0
  17. package/dist/models/ApiV1TelegramLinksPost201Response.d.ts +38 -0
  18. package/dist/models/ApiV1TelegramLinksPost201Response.js +55 -0
  19. package/dist/models/ApiV1TelegramLinksTokenGet200Response.d.ts +57 -0
  20. package/dist/models/ApiV1TelegramLinksTokenGet200Response.js +66 -0
  21. package/dist/models/ApiV1TelegramLinksTokenGet200ResponseTelegram.d.ts +56 -0
  22. package/dist/models/ApiV1TelegramLinksTokenGet200ResponseTelegram.js +57 -0
  23. package/dist/models/ApiV1TelegramLinksTokenGet404Response.d.ts +32 -0
  24. package/dist/models/ApiV1TelegramLinksTokenGet404Response.js +51 -0
  25. package/dist/models/ApiV1UsersIdPatch200Response.d.ts +12 -0
  26. package/dist/models/ApiV1UsersIdPatch200Response.js +8 -0
  27. package/dist/models/ApiV1UsersIdPatch422Response.d.ts +34 -0
  28. package/dist/models/ApiV1UsersIdPatch422Response.js +51 -0
  29. package/dist/models/ApiV1UsersIdPatchRequestUser.d.ts +12 -0
  30. package/dist/models/ApiV1UsersIdPatchRequestUser.js +4 -0
  31. package/dist/models/ApiV1UsersPost201Response.d.ts +56 -0
  32. package/dist/models/ApiV1UsersPost201Response.js +67 -0
  33. package/dist/models/ApiV1UsersPost422Response.d.ts +4 -2
  34. package/dist/models/ApiV1UsersPostRequestUser.d.ts +12 -0
  35. package/dist/models/ApiV1UsersPostRequestUser.js +8 -0
  36. package/dist/models/index.d.ts +9 -0
  37. package/dist/models/index.js +9 -0
  38. package/docs/ApiV1ProfileGet200Response.md +6 -0
  39. package/docs/ApiV1TelegramLinksConsumePost200Response.md +34 -0
  40. package/docs/ApiV1TelegramLinksConsumePost422Response.md +34 -0
  41. package/docs/ApiV1TelegramLinksConsumePostRequest.md +44 -0
  42. package/docs/ApiV1TelegramLinksPost201Response.md +36 -0
  43. package/docs/ApiV1TelegramLinksTokenGet200Response.md +42 -0
  44. package/docs/ApiV1TelegramLinksTokenGet200ResponseTelegram.md +42 -0
  45. package/docs/ApiV1TelegramLinksTokenGet404Response.md +34 -0
  46. package/docs/ApiV1UsersIdPatch200Response.md +4 -0
  47. package/docs/ApiV1UsersIdPatch422Response.md +34 -0
  48. package/docs/ApiV1UsersIdPatchRequestUser.md +4 -0
  49. package/docs/ApiV1UsersPost201Response.md +42 -0
  50. package/docs/ApiV1UsersPost422Response.md +2 -2
  51. package/docs/ApiV1UsersPostRequestUser.md +4 -0
  52. package/docs/TelegramLinksApi.md +201 -0
  53. package/docs/UsersApi.md +2 -2
  54. package/package.json +1 -1
  55. package/src/apis/TelegramLinksApi.ts +154 -0
  56. package/src/apis/UsersApi.ts +9 -3
  57. package/src/apis/index.ts +1 -0
  58. package/src/models/ApiV1ProfileGet200Response.ts +27 -0
  59. package/src/models/ApiV1TelegramLinksConsumePost200Response.ts +66 -0
  60. package/src/models/ApiV1TelegramLinksConsumePost422Response.ts +66 -0
  61. package/src/models/ApiV1TelegramLinksConsumePostRequest.ts +107 -0
  62. package/src/models/ApiV1TelegramLinksPost201Response.ts +75 -0
  63. package/src/models/ApiV1TelegramLinksTokenGet200Response.ts +109 -0
  64. package/src/models/ApiV1TelegramLinksTokenGet200ResponseTelegram.ts +97 -0
  65. package/src/models/ApiV1TelegramLinksTokenGet404Response.ts +66 -0
  66. package/src/models/ApiV1UsersIdPatch200Response.ts +18 -0
  67. package/src/models/ApiV1UsersIdPatch422Response.ts +66 -0
  68. package/src/models/ApiV1UsersIdPatchRequestUser.ts +16 -0
  69. package/src/models/ApiV1UsersPost201Response.ts +102 -0
  70. package/src/models/ApiV1UsersPost422Response.ts +2 -2
  71. package/src/models/ApiV1UsersPostRequestUser.ts +18 -0
  72. package/src/models/index.ts +9 -0
@@ -15,6 +15,18 @@
15
15
  * @interface ApiV1UsersIdPatchRequestUser
16
16
  */
17
17
  export interface ApiV1UsersIdPatchRequestUser {
18
+ /**
19
+ * User first name
20
+ * @type {string}
21
+ * @memberof ApiV1UsersIdPatchRequestUser
22
+ */
23
+ firstName?: string;
24
+ /**
25
+ * User last name
26
+ * @type {string}
27
+ * @memberof ApiV1UsersIdPatchRequestUser
28
+ */
29
+ lastName?: string;
18
30
  /**
19
31
  * User email address
20
32
  * @type {string}
@@ -32,6 +32,8 @@ function ApiV1UsersIdPatchRequestUserFromJSONTyped(json, ignoreDiscriminator) {
32
32
  return json;
33
33
  }
34
34
  return {
35
+ 'firstName': json['first_name'] == null ? undefined : json['first_name'],
36
+ 'lastName': json['last_name'] == null ? undefined : json['last_name'],
35
37
  'email': json['email'] == null ? undefined : json['email'],
36
38
  'password': json['password'] == null ? undefined : json['password'],
37
39
  'timezone': json['timezone'] == null ? undefined : json['timezone'],
@@ -46,6 +48,8 @@ function ApiV1UsersIdPatchRequestUserToJSONTyped(value, ignoreDiscriminator) {
46
48
  return value;
47
49
  }
48
50
  return {
51
+ 'first_name': value['firstName'],
52
+ 'last_name': value['lastName'],
49
53
  'email': value['email'],
50
54
  'password': value['password'],
51
55
  'timezone': value['timezone'],
@@ -0,0 +1,56 @@
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 ApiV1UsersPost201Response
16
+ */
17
+ export interface ApiV1UsersPost201Response {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiV1UsersPost201Response
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApiV1UsersPost201Response
28
+ */
29
+ firstName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ApiV1UsersPost201Response
34
+ */
35
+ lastName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiV1UsersPost201Response
40
+ */
41
+ email: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ApiV1UsersPost201Response
46
+ */
47
+ timezone: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the ApiV1UsersPost201Response interface.
51
+ */
52
+ export declare function instanceOfApiV1UsersPost201Response(value: object): value is ApiV1UsersPost201Response;
53
+ export declare function ApiV1UsersPost201ResponseFromJSON(json: any): ApiV1UsersPost201Response;
54
+ export declare function ApiV1UsersPost201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiV1UsersPost201Response;
55
+ export declare function ApiV1UsersPost201ResponseToJSON(json: any): ApiV1UsersPost201Response;
56
+ export declare function ApiV1UsersPost201ResponseToJSONTyped(value?: ApiV1UsersPost201Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.instanceOfApiV1UsersPost201Response = instanceOfApiV1UsersPost201Response;
17
+ exports.ApiV1UsersPost201ResponseFromJSON = ApiV1UsersPost201ResponseFromJSON;
18
+ exports.ApiV1UsersPost201ResponseFromJSONTyped = ApiV1UsersPost201ResponseFromJSONTyped;
19
+ exports.ApiV1UsersPost201ResponseToJSON = ApiV1UsersPost201ResponseToJSON;
20
+ exports.ApiV1UsersPost201ResponseToJSONTyped = ApiV1UsersPost201ResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ApiV1UsersPost201Response interface.
23
+ */
24
+ function instanceOfApiV1UsersPost201Response(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('firstName' in value) || value['firstName'] === undefined)
28
+ return false;
29
+ if (!('lastName' in value) || value['lastName'] === undefined)
30
+ return false;
31
+ if (!('email' in value) || value['email'] === undefined)
32
+ return false;
33
+ if (!('timezone' in value) || value['timezone'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function ApiV1UsersPost201ResponseFromJSON(json) {
38
+ return ApiV1UsersPost201ResponseFromJSONTyped(json, false);
39
+ }
40
+ function ApiV1UsersPost201ResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'firstName': json['first_name'],
47
+ 'lastName': json['last_name'],
48
+ 'email': json['email'],
49
+ 'timezone': json['timezone'],
50
+ };
51
+ }
52
+ function ApiV1UsersPost201ResponseToJSON(json) {
53
+ return ApiV1UsersPost201ResponseToJSONTyped(json, false);
54
+ }
55
+ function ApiV1UsersPost201ResponseToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'id': value['id'],
62
+ 'first_name': value['firstName'],
63
+ 'last_name': value['lastName'],
64
+ 'email': value['email'],
65
+ 'timezone': value['timezone'],
66
+ };
67
+ }
@@ -17,10 +17,12 @@
17
17
  export interface ApiV1UsersPost422Response {
18
18
  /**
19
19
  *
20
- * @type {Array<string>}
20
+ * @type {{ [key: string]: Array<string>; }}
21
21
  * @memberof ApiV1UsersPost422Response
22
22
  */
23
- errors: Array<string>;
23
+ errors: {
24
+ [key: string]: Array<string>;
25
+ };
24
26
  }
25
27
  /**
26
28
  * Check if a given object implements the ApiV1UsersPost422Response interface.
@@ -15,6 +15,18 @@
15
15
  * @interface ApiV1UsersPostRequestUser
16
16
  */
17
17
  export interface ApiV1UsersPostRequestUser {
18
+ /**
19
+ * User first name
20
+ * @type {string}
21
+ * @memberof ApiV1UsersPostRequestUser
22
+ */
23
+ firstName: string;
24
+ /**
25
+ * User last name
26
+ * @type {string}
27
+ * @memberof ApiV1UsersPostRequestUser
28
+ */
29
+ lastName: string;
18
30
  /**
19
31
  * User email address
20
32
  * @type {string}
@@ -22,6 +22,10 @@ exports.ApiV1UsersPostRequestUserToJSONTyped = ApiV1UsersPostRequestUserToJSONTy
22
22
  * Check if a given object implements the ApiV1UsersPostRequestUser interface.
23
23
  */
24
24
  function instanceOfApiV1UsersPostRequestUser(value) {
25
+ if (!('firstName' in value) || value['firstName'] === undefined)
26
+ return false;
27
+ if (!('lastName' in value) || value['lastName'] === undefined)
28
+ return false;
25
29
  if (!('email' in value) || value['email'] === undefined)
26
30
  return false;
27
31
  if (!('password' in value) || value['password'] === undefined)
@@ -38,6 +42,8 @@ function ApiV1UsersPostRequestUserFromJSONTyped(json, ignoreDiscriminator) {
38
42
  return json;
39
43
  }
40
44
  return {
45
+ 'firstName': json['first_name'],
46
+ 'lastName': json['last_name'],
41
47
  'email': json['email'],
42
48
  'password': json['password'],
43
49
  'timezone': json['timezone'],
@@ -52,6 +58,8 @@ function ApiV1UsersPostRequestUserToJSONTyped(value, ignoreDiscriminator) {
52
58
  return value;
53
59
  }
54
60
  return {
61
+ 'first_name': value['firstName'],
62
+ 'last_name': value['lastName'],
55
63
  'email': value['email'],
56
64
  'password': value['password'],
57
65
  'timezone': value['timezone'],
@@ -3,9 +3,18 @@ export * from './ApiV1ProfileGet401Response';
3
3
  export * from './ApiV1SessionsPost200Response';
4
4
  export * from './ApiV1SessionsPost401Response';
5
5
  export * from './ApiV1SessionsPostRequest';
6
+ export * from './ApiV1TelegramLinksConsumePost200Response';
7
+ export * from './ApiV1TelegramLinksConsumePost422Response';
8
+ export * from './ApiV1TelegramLinksConsumePostRequest';
9
+ export * from './ApiV1TelegramLinksPost201Response';
10
+ export * from './ApiV1TelegramLinksTokenGet200Response';
11
+ export * from './ApiV1TelegramLinksTokenGet200ResponseTelegram';
12
+ export * from './ApiV1TelegramLinksTokenGet404Response';
6
13
  export * from './ApiV1UsersIdPatch200Response';
14
+ export * from './ApiV1UsersIdPatch422Response';
7
15
  export * from './ApiV1UsersIdPatchRequest';
8
16
  export * from './ApiV1UsersIdPatchRequestUser';
17
+ export * from './ApiV1UsersPost201Response';
9
18
  export * from './ApiV1UsersPost422Response';
10
19
  export * from './ApiV1UsersPostRequest';
11
20
  export * from './ApiV1UsersPostRequestUser';
@@ -21,9 +21,18 @@ __exportStar(require("./ApiV1ProfileGet401Response"), exports);
21
21
  __exportStar(require("./ApiV1SessionsPost200Response"), exports);
22
22
  __exportStar(require("./ApiV1SessionsPost401Response"), exports);
23
23
  __exportStar(require("./ApiV1SessionsPostRequest"), exports);
24
+ __exportStar(require("./ApiV1TelegramLinksConsumePost200Response"), exports);
25
+ __exportStar(require("./ApiV1TelegramLinksConsumePost422Response"), exports);
26
+ __exportStar(require("./ApiV1TelegramLinksConsumePostRequest"), exports);
27
+ __exportStar(require("./ApiV1TelegramLinksPost201Response"), exports);
28
+ __exportStar(require("./ApiV1TelegramLinksTokenGet200Response"), exports);
29
+ __exportStar(require("./ApiV1TelegramLinksTokenGet200ResponseTelegram"), exports);
30
+ __exportStar(require("./ApiV1TelegramLinksTokenGet404Response"), exports);
24
31
  __exportStar(require("./ApiV1UsersIdPatch200Response"), exports);
32
+ __exportStar(require("./ApiV1UsersIdPatch422Response"), exports);
25
33
  __exportStar(require("./ApiV1UsersIdPatchRequest"), exports);
26
34
  __exportStar(require("./ApiV1UsersIdPatchRequestUser"), exports);
35
+ __exportStar(require("./ApiV1UsersPost201Response"), exports);
27
36
  __exportStar(require("./ApiV1UsersPost422Response"), exports);
28
37
  __exportStar(require("./ApiV1UsersPostRequest"), exports);
29
38
  __exportStar(require("./ApiV1UsersPostRequestUser"), exports);
@@ -7,8 +7,11 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
+ `firstName` | string
11
+ `lastName` | string
10
12
  `email` | string
11
13
  `timezone` | string
14
+ `telegramConnected` | boolean
12
15
 
13
16
  ## Example
14
17
 
@@ -18,8 +21,11 @@ import type { ApiV1ProfileGet200Response } from 'blanche-client-sdk'
18
21
  // TODO: Update the object below with actual values
19
22
  const example = {
20
23
  "id": 0197df79-a0b4-71d5-a540-4ae11062b340,
24
+ "firstName": Test,
25
+ "lastName": User,
21
26
  "email": user@example.com,
22
27
  "timezone": UTC,
28
+ "telegramConnected": false,
23
29
  } satisfies ApiV1ProfileGet200Response
24
30
 
25
31
  console.log(example)
@@ -0,0 +1,34 @@
1
+
2
+ # ApiV1TelegramLinksConsumePost200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `status` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApiV1TelegramLinksConsumePost200Response } from 'blanche-client-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "status": linked,
19
+ } satisfies ApiV1TelegramLinksConsumePost200Response
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 ApiV1TelegramLinksConsumePost200Response
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,34 @@
1
+
2
+ # ApiV1TelegramLinksConsumePost422Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `errors` | { [key: string]: Array&lt;string&gt;; }
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApiV1TelegramLinksConsumePost422Response } from 'blanche-client-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "errors": {"token":["invalid"]},
19
+ } satisfies ApiV1TelegramLinksConsumePost422Response
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 ApiV1TelegramLinksConsumePost422Response
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
+ # ApiV1TelegramLinksConsumePostRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `token` | string
10
+ `telegramId` | number
11
+ `username` | string
12
+ `firstName` | string
13
+ `lastName` | string
14
+ `languageCode` | string
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { ApiV1TelegramLinksConsumePostRequest } from 'blanche-client-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "token": null,
24
+ "telegramId": null,
25
+ "username": null,
26
+ "firstName": null,
27
+ "lastName": null,
28
+ "languageCode": null,
29
+ } satisfies ApiV1TelegramLinksConsumePostRequest
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 ApiV1TelegramLinksConsumePostRequest
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,36 @@
1
+
2
+ # ApiV1TelegramLinksPost201Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `token` | string
10
+ `expiresAt` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ApiV1TelegramLinksPost201Response } from 'blanche-client-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "token": 0197df79-a0b4-71d5-a540-4ae11062b340,
20
+ "expiresAt": null,
21
+ } satisfies ApiV1TelegramLinksPost201Response
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ApiV1TelegramLinksPost201Response
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,42 @@
1
+
2
+ # ApiV1TelegramLinksTokenGet200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `token` | string
10
+ `expiresAt` | string
11
+ `consumedAt` | string
12
+ `linked` | boolean
13
+ `telegram` | [ApiV1TelegramLinksTokenGet200ResponseTelegram](ApiV1TelegramLinksTokenGet200ResponseTelegram.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { ApiV1TelegramLinksTokenGet200Response } from 'blanche-client-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "token": 0197df79-a0b4-71d5-a540-4ae11062b340,
23
+ "expiresAt": null,
24
+ "consumedAt": null,
25
+ "linked": false,
26
+ "telegram": null,
27
+ } satisfies ApiV1TelegramLinksTokenGet200Response
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 ApiV1TelegramLinksTokenGet200Response
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,42 @@
1
+
2
+ # ApiV1TelegramLinksTokenGet200ResponseTelegram
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `username` | string
11
+ `firstName` | string
12
+ `lastName` | string
13
+ `languageCode` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { ApiV1TelegramLinksTokenGet200ResponseTelegram } from 'blanche-client-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "id": 123456,
23
+ "username": tester,
24
+ "firstName": Test,
25
+ "lastName": User,
26
+ "languageCode": en,
27
+ } satisfies ApiV1TelegramLinksTokenGet200ResponseTelegram
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 ApiV1TelegramLinksTokenGet200ResponseTelegram
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
+ # ApiV1TelegramLinksTokenGet404Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `error` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApiV1TelegramLinksTokenGet404Response } from 'blanche-client-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "error": Not found,
19
+ } satisfies ApiV1TelegramLinksTokenGet404Response
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 ApiV1TelegramLinksTokenGet404Response
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
+
@@ -7,6 +7,8 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
+ `firstName` | string
11
+ `lastName` | string
10
12
  `email` | string
11
13
  `timezone` | string
12
14
 
@@ -18,6 +20,8 @@ import type { ApiV1UsersIdPatch200Response } from 'blanche-client-sdk'
18
20
  // TODO: Update the object below with actual values
19
21
  const example = {
20
22
  "id": 0197df79-a142-74e4-b92c-bb3b8f1aae22,
23
+ "firstName": Updated,
24
+ "lastName": User,
21
25
  "email": updated@example.com,
22
26
  "timezone": America/New_York,
23
27
  } satisfies ApiV1UsersIdPatch200Response
@@ -0,0 +1,34 @@
1
+
2
+ # ApiV1UsersIdPatch422Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `errors` | { [key: string]: Array&lt;string&gt;; }
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApiV1UsersIdPatch422Response } from 'blanche-client-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "errors": {"email":["can't be blank"]},
19
+ } satisfies ApiV1UsersIdPatch422Response
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 ApiV1UsersIdPatch422Response
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
+
@@ -6,6 +6,8 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
+ `firstName` | string
10
+ `lastName` | string
9
11
  `email` | string
10
12
  `password` | string
11
13
  `timezone` | string
@@ -17,6 +19,8 @@ import type { ApiV1UsersIdPatchRequestUser } from 'blanche-client-sdk'
17
19
 
18
20
  // TODO: Update the object below with actual values
19
21
  const example = {
22
+ "firstName": Updated,
23
+ "lastName": User,
20
24
  "email": updated@example.com,
21
25
  "password": newpassword123,
22
26
  "timezone": America/New_York,
@@ -0,0 +1,42 @@
1
+
2
+ # ApiV1UsersPost201Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `firstName` | string
11
+ `lastName` | string
12
+ `email` | string
13
+ `timezone` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { ApiV1UsersPost201Response } from 'blanche-client-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "id": 0197df79-a0b4-71d5-a540-4ae11062b340,
23
+ "firstName": Test,
24
+ "lastName": User,
25
+ "email": user@example.com,
26
+ "timezone": UTC,
27
+ } satisfies ApiV1UsersPost201Response
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 ApiV1UsersPost201Response
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
+