|
| 1 | +/** |
| 2 | + * This file was auto-generated by openapi-typescript. |
| 3 | + * Do not make direct changes to the file. |
| 4 | + */ |
| 5 | + |
| 6 | +export interface paths { |
| 7 | + "/contacts": { |
| 8 | + get: operations["getContacts"]; |
| 9 | + }; |
| 10 | + "/contacts/{userUid}": { |
| 11 | + get: operations["getContactInfo"]; |
| 12 | + }; |
| 13 | + "/contacts/{userUid}/icon": { |
| 14 | + get: operations["getContactIcon"]; |
| 15 | + }; |
| 16 | + "/contacts/me": { |
| 17 | + get: operations["getMyInfo"]; |
| 18 | + }; |
| 19 | + "/contacts/me/icon": { |
| 20 | + get: operations["getMyIcon"]; |
| 21 | + delete: operations["deleteMyIcon"]; |
| 22 | + }; |
| 23 | +} |
| 24 | + |
| 25 | +export interface components { |
| 26 | + schemas: { |
| 27 | + /** Parent of most important objects */ |
| 28 | + BaseEntity: { |
| 29 | + /** |
| 30 | + * Format: nanoid |
| 31 | + * @deprecated |
| 32 | + * @description Test description with deprecated |
| 33 | + * @example njbusD52k6YoRG346tPgD |
| 34 | + */ |
| 35 | + uid?: string; |
| 36 | + /** |
| 37 | + * Format: date-time |
| 38 | + * @description It's date example |
| 39 | + * @example 1999-03-31 15:00:00.000 |
| 40 | + */ |
| 41 | + created_at?: string; |
| 42 | + /** |
| 43 | + * Format: date-time |
| 44 | + * @example 2020-07-10 10:10:00.000 |
| 45 | + */ |
| 46 | + updated_at?: string; |
| 47 | + deleted?: boolean; |
| 48 | + }; |
| 49 | + /** Image for preview */ |
| 50 | + Image: { |
| 51 | + /** @example https://shantichat.com/data/V1StGXR8_Z5jdHi6B-myT/white-rabbit.png */ |
| 52 | + url: string; |
| 53 | + /** @example 128 */ |
| 54 | + width: unknown; |
| 55 | + /** @example 128 */ |
| 56 | + height: unknown; |
| 57 | + /** @example LEHV6nWB2yk8pyo0adR*.7kCMdnj */ |
| 58 | + blurhash?: string; |
| 59 | + }; |
| 60 | + /** User object */ |
| 61 | + User: components["schemas"]["BaseEntity"] & { |
| 62 | + /** @example Thomas A. Anderson */ |
| 63 | + name?: string; |
| 64 | + /** |
| 65 | + * @default test |
| 66 | + * @example The One |
| 67 | + */ |
| 68 | + description?: string; |
| 69 | + icon?: components["schemas"]["Image"]; |
| 70 | + /** @example America/Chicago */ |
| 71 | + timezone?: string; |
| 72 | + /** |
| 73 | + * Format: date-time |
| 74 | + * @example 2020-07-10 15:00:00.000 |
| 75 | + */ |
| 76 | + last_online_at?: string; |
| 77 | + }; |
| 78 | + }; |
| 79 | +} |
| 80 | + |
| 81 | +export interface operations { |
| 82 | + getContacts: { |
| 83 | + responses: { |
| 84 | + /** OK */ |
| 85 | + 200: { |
| 86 | + content: { |
| 87 | + "application/json": components["schemas"]["User"][]; |
| 88 | + }; |
| 89 | + }; |
| 90 | + }; |
| 91 | + }; |
| 92 | + getContactInfo: { |
| 93 | + parameters: { |
| 94 | + path: { |
| 95 | + userUid: string; |
| 96 | + }; |
| 97 | + }; |
| 98 | + responses: { |
| 99 | + /** OK */ |
| 100 | + 200: { |
| 101 | + content: { |
| 102 | + "application/json": components["schemas"]["User"]; |
| 103 | + }; |
| 104 | + }; |
| 105 | + }; |
| 106 | + }; |
| 107 | + getContactIcon: { |
| 108 | + parameters: { |
| 109 | + path: { |
| 110 | + userUid: string; |
| 111 | + }; |
| 112 | + }; |
| 113 | + responses: { |
| 114 | + /** OK */ |
| 115 | + 200: { |
| 116 | + content: { |
| 117 | + "application/json": components["schemas"]["Image"]; |
| 118 | + }; |
| 119 | + }; |
| 120 | + }; |
| 121 | + }; |
| 122 | + getMyInfo: { |
| 123 | + responses: { |
| 124 | + /** OK */ |
| 125 | + 200: { |
| 126 | + content: { |
| 127 | + "application/json": components["schemas"]["User"]; |
| 128 | + }; |
| 129 | + }; |
| 130 | + }; |
| 131 | + }; |
| 132 | + getMyIcon: { |
| 133 | + responses: { |
| 134 | + /** OK */ |
| 135 | + 200: { |
| 136 | + content: { |
| 137 | + "application/json": components["schemas"]["Image"]; |
| 138 | + }; |
| 139 | + }; |
| 140 | + }; |
| 141 | + }; |
| 142 | + deleteMyIcon: { |
| 143 | + responses: { |
| 144 | + /** OK */ |
| 145 | + 200: unknown; |
| 146 | + }; |
| 147 | + }; |
| 148 | +} |
| 149 | + |
| 150 | +export interface external {} |
0 commit comments