1+ /* eslint-disable */
12/* tslint:disable */
23/*
34 * ---------------------------------------------------------------
@@ -55,6 +56,8 @@ export interface EntitiesHeartbeat {
5556 timestamp : string
5657 /** @example "WB7DRDWrJZRGbYrv2CKGkqbzvqdC" */
5758 user_id : string
59+ /** @example "344c10f" */
60+ version : string
5861}
5962
6063export interface EntitiesMessage {
@@ -86,6 +89,8 @@ export interface EntitiesMessage {
8689 owner : string
8790 /** @example "2022-06-05T14:26:09.527976+03:00" */
8891 received_at : string
92+ /** @example "153554b5-ae44-44a0-8f4f-7bbac5657ad4" */
93+ request_id : string
8994 /** @example "2022-06-05T14:26:01.520828+03:00" */
9095 request_received_at : string
9196 /** @example "2022-06-05T14:26:09.527976+03:00" */
@@ -106,7 +111,7 @@ export interface EntitiesMessage {
106111 * * DEFAULT: used the default communication SIM card
107112 * @example "DEFAULT"
108113 */
109- sim : string
114+ sim : EntitiesSIM
110115 /** @example "pending" */
111116 status : string
112117 /** @example "mobile-terminated" */
@@ -136,6 +141,8 @@ export interface EntitiesMessageThread {
136141 order_timestamp : string
137142 /** @example "+18005550199" */
138143 owner : string
144+ /** @example "PENDING" */
145+ status : string
139146 /** @example "2022-06-05T14:26:09.527976+03:00" */
140147 updated_at : string
141148 /** @example "WB7DRDWrJZRGbYrv2CKGkqbzvqdC" */
@@ -160,36 +167,52 @@ export interface EntitiesPhone {
160167 messages_per_minute : number
161168 /** @example "+18005550199" */
162169 phone_number : string
163- sim : string
170+ sim : EntitiesSIM
164171 /** @example "2022-06-05T14:26:10.303278+03:00" */
165172 updated_at : string
166173 /** @example "WB7DRDWrJZRGbYrv2CKGkqbzvqdC" */
167174 user_id : string
168175}
169176
177+ export enum EntitiesSIM {
178+ SIM1 = 'SIM1' ,
179+ SIM2 = 'SIM2' ,
180+ }
181+
182+ export enum EntitiesSubscriptionName {
183+ SubscriptionNameFree = 'free' ,
184+ SubscriptionNameProMonthly = 'pro-monthly' ,
185+ SubscriptionNameProYearly = 'pro-yearly' ,
186+ SubscriptionNameUltraMonthly = 'ultra-monthly' ,
187+ SubscriptionNameUltraYearly = 'ultra-yearly' ,
188+ SubscriptionNameProLifetime = 'pro-lifetime' ,
189+ SubscriptionName20KMonthly = '20k-monthly' ,
190+ SubscriptionName20KYearly = '20k-yearly' ,
191+ }
192+
170193export interface EntitiesUser {
171194 /** @example "32343a19-da5e-4b1b-a767-3298a73703cb" */
172195 active_phone_id : string
173- /**
174- * gorm:"uniqueIndex"
175- * @example "xyz"
176- */
196+ /** @example "xyz" */
177197 api_key : string
178198 /** @example "2022-06-05T14:26:02.302718+03:00" */
179199 created_at : string
180- /**
181- * gorm:"uniqueIndex"
182- * @example "name@email.com"
183- */
200+ /** @example "name@email.com" */
184201 email : string
185202 /** @example "WB7DRDWrJZRGbYrv2CKGkqbzvqdC" */
186203 id : string
204+ /** @example true */
205+ notification_heartbeat_enabled : boolean
206+ /** @example true */
207+ notification_message_status_enabled : boolean
208+ /** @example true */
209+ notification_webhook_enabled : boolean
187210 /** @example "2022-06-05T14:26:02.302718+03:00" */
188211 subscription_ends_at : string
189212 /** @example "8f9c71b8-b84e-4417-8408-a62274f65a08" */
190213 subscription_id : string
191214 /** @example "free" */
192- subscription_name : string
215+ subscription_name : EntitiesSubscriptionName
193216 /** @example "2022-06-05T14:26:02.302718+03:00" */
194217 subscription_renews_at : string
195218 /** @example "on_trial" */
@@ -240,6 +263,11 @@ export interface RequestsMessageBulkSend {
240263 content : string
241264 /** @example "+18005550199" */
242265 from : string
266+ /**
267+ * RequestID is an optional parameter used to track a request from the client's perspective
268+ * @example "153554b5-ae44-44a0-8f4f-7bbac5657ad4"
269+ */
270+ request_id ?: string
243271 /** @example ["+18005550100","+18005550100"] */
244272 to : string [ ]
245273}
@@ -271,7 +299,7 @@ export interface RequestsMessageReceive {
271299 * SIM card that received the message
272300 * @example "SIM1"
273301 */
274- sim : string
302+ sim : EntitiesSIM
275303 /**
276304 * Timestamp is the time when the event was emitted, Please send the timestamp in UTC with as much precision as possible
277305 * @example "2022-06-05T14:26:09.527976+03:00"
@@ -286,6 +314,11 @@ export interface RequestsMessageSend {
286314 content : string
287315 /** @example "+18005550199" */
288316 from : string
317+ /**
318+ * RequestID is an optional parameter used to track a request from the client's perspective
319+ * @example "153554b5-ae44-44a0-8f4f-7bbac5657ad4"
320+ */
321+ request_id ?: string
289322 /** @example "+18005550100" */
290323 to : string
291324}
@@ -319,6 +352,15 @@ export interface RequestsPhoneUpsert {
319352 sim : string
320353}
321354
355+ export interface RequestsUserNotificationUpdate {
356+ /** @example true */
357+ heartbeat_enabled : boolean
358+ /** @example true */
359+ message_status_enabled : boolean
360+ /** @example true */
361+ webhook_enabled : boolean
362+ }
363+
322364export interface RequestsUserUpdate {
323365 /** @example "32343a19-da5e-4b1b-a767-3298a73703cb" */
324366 active_phone_id : string
@@ -431,7 +473,7 @@ export interface ResponsesMessagesResponse {
431473}
432474
433475export interface ResponsesNoContent {
434- /** @example "phone deleted successfully" */
476+ /** @example "action performed successfully" */
435477 message : string
436478 /** @example "success" */
437479 status : string
0 commit comments