You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "SIM is the SIM card to use to send the message\n* SMS1: use the SIM card in slot 1\n* SMS2: use the SIM card in slot 2\n* DEFAULT: used the default communication SIM card",
3121
-
"type": "string",
3266
+
"allOf": [
3267
+
{
3268
+
"$ref": "#/definitions/entities.SIM"
3269
+
}
3270
+
],
3122
3271
"example": "DEFAULT"
3123
3272
},
3124
3273
"status": {
@@ -3254,8 +3403,7 @@ const docTemplate = `{
3254
3403
"example": "+18005550199"
3255
3404
},
3256
3405
"sim": {
3257
-
"description": "SIM card that received the message",
3258
-
"type": "string"
3406
+
"$ref": "#/definitions/entities.SIM"
3259
3407
},
3260
3408
"updated_at": {
3261
3409
"type": "string",
@@ -3331,6 +3479,46 @@ const docTemplate = `{
3331
3479
}
3332
3480
}
3333
3481
},
3482
+
"entities.SIM": {
3483
+
"type": "string",
3484
+
"enum": [
3485
+
"SIM1",
3486
+
"SIM2"
3487
+
],
3488
+
"x-enum-varnames": [
3489
+
"SIM1",
3490
+
"SIM2"
3491
+
]
3492
+
},
3493
+
"entities.SubscriptionName": {
3494
+
"type": "string",
3495
+
"enum": [
3496
+
"free",
3497
+
"pro-monthly",
3498
+
"pro-yearly",
3499
+
"ultra-monthly",
3500
+
"ultra-yearly",
3501
+
"pro-lifetime",
3502
+
"20k-monthly",
3503
+
"100k-monthly",
3504
+
"50k-monthly",
3505
+
"200k-monthly",
3506
+
"20k-yearly"
3507
+
],
3508
+
"x-enum-varnames": [
3509
+
"SubscriptionNameFree",
3510
+
"SubscriptionNameProMonthly",
3511
+
"SubscriptionNameProYearly",
3512
+
"SubscriptionNameUltraMonthly",
3513
+
"SubscriptionNameUltraYearly",
3514
+
"SubscriptionNameProLifetime",
3515
+
"SubscriptionName20KMonthly",
3516
+
"SubscriptionName100KMonthly",
3517
+
"SubscriptionName50KMonthly",
3518
+
"SubscriptionName200KMonthly",
3519
+
"SubscriptionName20KYearly"
3520
+
]
3521
+
},
3334
3522
"entities.User": {
3335
3523
"type": "object",
3336
3524
"required": [
@@ -3393,7 +3581,11 @@ const docTemplate = `{
3393
3581
"example": "8f9c71b8-b84e-4417-8408-a62274f65a08"
3394
3582
},
3395
3583
"subscription_name": {
3396
-
"type": "string",
3584
+
"allOf": [
3585
+
{
3586
+
"$ref": "#/definitions/entities.SubscriptionName"
3587
+
}
3588
+
],
3397
3589
"example": "free"
3398
3590
},
3399
3591
"subscription_renews_at": {
@@ -3528,15 +3720,46 @@ const docTemplate = `{
3528
3720
}
3529
3721
}
3530
3722
},
3723
+
"requests.MessageAttachment": {
3724
+
"type": "object",
3725
+
"required": [
3726
+
"content",
3727
+
"content_type",
3728
+
"name"
3729
+
],
3730
+
"properties": {
3731
+
"content": {
3732
+
"description": "Content is the base64-encoded attachment data",
3733
+
"type": "string",
3734
+
"example": "base64data..."
3735
+
},
3736
+
"content_type": {
3737
+
"description": "ContentType is the MIME type of the attachment",
3738
+
"type": "string",
3739
+
"example": "image/jpeg"
3740
+
},
3741
+
"name": {
3742
+
"description": "Name is the original filename of the attachment",
3743
+
"type": "string",
3744
+
"example": "photo.jpg"
3745
+
}
3746
+
}
3747
+
},
3531
3748
"requests.MessageBulkSend": {
3532
3749
"type": "object",
3533
3750
"required": [
3534
3751
"content",
3535
-
"encrypted",
3536
3752
"from",
3537
3753
"to"
3538
3754
],
3539
3755
"properties": {
3756
+
"attachments": {
3757
+
"description": "Attachments are optional. When you provide a list of attachments, the message will be sent out as an MMS",
3758
+
"type": "array",
3759
+
"items": {
3760
+
"type": "string"
3761
+
}
3762
+
},
3540
3763
"content": {
3541
3764
"type": "string",
3542
3765
"example": "This is a sample text message"
@@ -3629,6 +3852,13 @@ const docTemplate = `{
3629
3852
"to"
3630
3853
],
3631
3854
"properties": {
3855
+
"attachments": {
3856
+
"description": "Attachments is the list of MMS attachments received with the message",
0 commit comments