teleleo 0.1.0 → 0.3.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 (113) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +121 -10
  3. package/api.md +130 -112
  4. package/dist/client.d.ts +3 -1
  5. package/dist/client.d.ts.map +1 -1
  6. package/dist/client.js +5 -2
  7. package/dist/client.js.map +1 -1
  8. package/dist/core.d.ts +14 -3
  9. package/dist/core.d.ts.map +1 -1
  10. package/dist/core.js +19 -6
  11. package/dist/core.js.map +1 -1
  12. package/dist/errors.d.ts +23 -5
  13. package/dist/errors.d.ts.map +1 -1
  14. package/dist/errors.js +23 -5
  15. package/dist/errors.js.map +1 -1
  16. package/dist/resources/call-scenarios.d.ts +15 -3
  17. package/dist/resources/call-scenarios.d.ts.map +1 -1
  18. package/dist/resources/call-scenarios.js +15 -3
  19. package/dist/resources/call-scenarios.js.map +1 -1
  20. package/dist/resources/calls.d.ts +26 -6
  21. package/dist/resources/calls.d.ts.map +1 -1
  22. package/dist/resources/calls.js +29 -5
  23. package/dist/resources/calls.js.map +1 -1
  24. package/dist/resources/contact-groups.d.ts +15 -5
  25. package/dist/resources/contact-groups.d.ts.map +1 -1
  26. package/dist/resources/contact-groups.js +15 -5
  27. package/dist/resources/contact-groups.js.map +1 -1
  28. package/dist/resources/contacts.d.ts +18 -6
  29. package/dist/resources/contacts.d.ts.map +1 -1
  30. package/dist/resources/contacts.js +18 -6
  31. package/dist/resources/contacts.js.map +1 -1
  32. package/dist/resources/dongles.d.ts +87 -15
  33. package/dist/resources/dongles.d.ts.map +1 -1
  34. package/dist/resources/dongles.js +103 -13
  35. package/dist/resources/dongles.js.map +1 -1
  36. package/dist/resources/files.d.ts +14 -6
  37. package/dist/resources/files.d.ts.map +1 -1
  38. package/dist/resources/files.js +14 -6
  39. package/dist/resources/files.js.map +1 -1
  40. package/dist/resources/follow-up-sms-settings.d.ts +14 -4
  41. package/dist/resources/follow-up-sms-settings.d.ts.map +1 -1
  42. package/dist/resources/follow-up-sms-settings.js +14 -4
  43. package/dist/resources/follow-up-sms-settings.js.map +1 -1
  44. package/dist/resources/index.d.ts +7 -2
  45. package/dist/resources/index.d.ts.map +1 -1
  46. package/dist/resources/index.js +3 -1
  47. package/dist/resources/index.js.map +1 -1
  48. package/dist/resources/mailings.d.ts +21 -7
  49. package/dist/resources/mailings.d.ts.map +1 -1
  50. package/dist/resources/mailings.js +21 -7
  51. package/dist/resources/mailings.js.map +1 -1
  52. package/dist/resources/plans.d.ts +20 -0
  53. package/dist/resources/plans.d.ts.map +1 -0
  54. package/dist/resources/plans.js +22 -0
  55. package/dist/resources/plans.js.map +1 -0
  56. package/dist/resources/public-vpn.d.ts +11 -1
  57. package/dist/resources/public-vpn.d.ts.map +1 -1
  58. package/dist/resources/public-vpn.js +11 -1
  59. package/dist/resources/public-vpn.js.map +1 -1
  60. package/dist/resources/redirections.d.ts +15 -5
  61. package/dist/resources/redirections.d.ts.map +1 -1
  62. package/dist/resources/redirections.js +15 -5
  63. package/dist/resources/redirections.js.map +1 -1
  64. package/dist/resources/sip-users.d.ts +6 -2
  65. package/dist/resources/sip-users.d.ts.map +1 -1
  66. package/dist/resources/sip-users.js +6 -2
  67. package/dist/resources/sip-users.js.map +1 -1
  68. package/dist/resources/sms.d.ts +28 -10
  69. package/dist/resources/sms.d.ts.map +1 -1
  70. package/dist/resources/sms.js +28 -10
  71. package/dist/resources/sms.js.map +1 -1
  72. package/dist/resources/socks-proxies.d.ts +13 -3
  73. package/dist/resources/socks-proxies.d.ts.map +1 -1
  74. package/dist/resources/socks-proxies.js +13 -3
  75. package/dist/resources/socks-proxies.js.map +1 -1
  76. package/dist/resources/ussd.d.ts +15 -5
  77. package/dist/resources/ussd.d.ts.map +1 -1
  78. package/dist/resources/ussd.js +15 -5
  79. package/dist/resources/ussd.js.map +1 -1
  80. package/dist/types/enums.d.ts +34 -11
  81. package/dist/types/enums.d.ts.map +1 -1
  82. package/dist/types/enums.js +28 -9
  83. package/dist/types/enums.js.map +1 -1
  84. package/dist/types/models.d.ts +191 -22
  85. package/dist/types/models.d.ts.map +1 -1
  86. package/dist/types/params.d.ts +32 -5
  87. package/dist/types/params.d.ts.map +1 -1
  88. package/dist/version.d.ts +1 -1
  89. package/dist/version.js +1 -1
  90. package/package.json +1 -1
  91. package/src/client.ts +5 -2
  92. package/src/core.ts +46 -11
  93. package/src/errors.ts +23 -5
  94. package/src/resources/call-scenarios.ts +15 -3
  95. package/src/resources/calls.ts +31 -6
  96. package/src/resources/contact-groups.ts +15 -5
  97. package/src/resources/contacts.ts +18 -6
  98. package/src/resources/dongles.ts +117 -13
  99. package/src/resources/files.ts +14 -6
  100. package/src/resources/follow-up-sms-settings.ts +14 -4
  101. package/src/resources/index.ts +8 -1
  102. package/src/resources/mailings.ts +21 -7
  103. package/src/resources/plans.ts +25 -0
  104. package/src/resources/public-vpn.ts +11 -1
  105. package/src/resources/redirections.ts +15 -5
  106. package/src/resources/sip-users.ts +6 -2
  107. package/src/resources/sms.ts +28 -10
  108. package/src/resources/socks-proxies.ts +13 -3
  109. package/src/resources/ussd.ts +15 -5
  110. package/src/types/enums.ts +35 -11
  111. package/src/types/models.ts +199 -21
  112. package/src/types/params.ts +35 -5
  113. package/src/version.ts +1 -1
@@ -19,11 +19,13 @@ export class SmsResource extends APIResource {
19
19
  /**
20
20
  * Send SMS.
21
21
  *
22
- * Sends an SMS from the modem to a phone number, now or at scheduled_at. sms_status_id 1 (Sended) means the mobile network accepted it, not that the handset received it.
22
+ * Sends an SMS from the modem to a phone number, now or at scheduled_at. sms_status_id 1 (Sended) means the modem took it for the mobile network, not that the handset received it: delivery is confirmed by 2 (from the delivery report), and 3 means it was not delivered or no report came within about 5 minutes.
23
23
  *
24
24
  * @param dongleId - ID of the dongle
25
25
  *
26
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, SMS_ERROR_INVALID_RECEIVER_NUMBER, SMS_ERROR_IDENTIFIER_INVALID_CALLBACK_URL, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS.
26
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, SMS_ERROR_INVALID_RECEIVER_NUMBER, SMS_ERROR_IDENTIFIER_INVALID_CALLBACK_URL, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS, DONGLE_FIRMWARE_UPDATING_EXCEPTION.
27
+ *
28
+ * Capability the role of an organization API key needs: `sms.send`.
27
29
  */
28
30
  send(dongleId: number, params: SmsSendParams, options?: RequestOptions): Promise<Sms> {
29
31
  return this._client
@@ -46,7 +48,9 @@ export class SmsResource extends APIResource {
46
48
  *
47
49
  * @param dongleId - ID of the dongle
48
50
  *
49
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS.
51
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS, DONGLE_FIRMWARE_UPDATING_EXCEPTION.
52
+ *
53
+ * Capability the role of an organization API key needs: `sms.send`.
50
54
  */
51
55
  sendToContact(dongleId: number, params: SmsSendToContactParams, options?: RequestOptions): Promise<Sms> {
52
56
  return this._client
@@ -64,7 +68,9 @@ export class SmsResource extends APIResource {
64
68
  *
65
69
  * @param dongleId - ID of the dongle
66
70
  *
67
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, SMS_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS.
71
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, SMS_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, SMS_ERROR_IDENTIFIER_EMPTY_FIELDS, DONGLE_FIRMWARE_UPDATING_EXCEPTION.
72
+ *
73
+ * Capability the role of an organization API key needs: `sms.send`.
68
74
  */
69
75
  reply(dongleId: number, params: SmsReplyParams, options?: RequestOptions): Promise<Sms> {
70
76
  return this._client
@@ -84,7 +90,9 @@ export class SmsResource extends APIResource {
84
90
  *
85
91
  * Conversation view: the last SMS per phone number of the modem, newest first.
86
92
  *
87
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
93
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
94
+ *
95
+ * Capability the role of an organization API key needs: `sms.view`.
88
96
  */
89
97
  listThreads(params: SmsListThreadsParams = {}, options?: RequestOptions): PagePromise<SmsThread> {
90
98
  return this._client.getPage<SmsThread>('/sms/thread', {
@@ -99,7 +107,9 @@ export class SmsResource extends APIResource {
99
107
  *
100
108
  * SMS of all modems of the account, incoming and outgoing. Newest first by default (created_at descending, then the id descending).
101
109
  *
102
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, SMS_ERROR_IDENTIFIER_INVALID_SMS_TYPE.
110
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, SMS_ERROR_IDENTIFIER_INVALID_SMS_TYPE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
111
+ *
112
+ * Capability the role of an organization API key needs: `sms.view`.
103
113
  */
104
114
  list(params: SmsListParams = {}, options?: RequestOptions): PagePromise<Sms> {
105
115
  return this._client.getPage<Sms>('/sms', {
@@ -127,7 +137,9 @@ export class SmsResource extends APIResource {
127
137
  *
128
138
  * @param dongleId - Identifier in the path
129
139
  *
130
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, SMS_ERROR_IDENTIFIER_INVALID_SMS_TYPE.
140
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, PARSING_DATE_TIME_EXCEPTION, SMS_ERROR_IDENTIFIER_INVALID_SMS_TYPE, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
141
+ *
142
+ * Capability the role of an organization API key needs: `sms.view`.
131
143
  */
132
144
  listForDongle(
133
145
  dongleId: number,
@@ -158,7 +170,9 @@ export class SmsResource extends APIResource {
158
170
  * @param dongleId - Identifier in the path
159
171
  * @param smsId - Identifier in the path
160
172
  *
161
- * Error codes (`errorMessage`): SMS_ERROR_ERROR_SMS_NOT_FOUND.
173
+ * Error codes (`errorMessage`): SMS_ERROR_ERROR_SMS_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
174
+ *
175
+ * Capability the role of an organization API key needs: `sms.view`.
162
176
  */
163
177
  get(dongleId: number, smsId: number, options?: RequestOptions): Promise<Sms> {
164
178
  return this._client
@@ -174,7 +188,9 @@ export class SmsResource extends APIResource {
174
188
  * @param dongleId - Identifier in the path
175
189
  * @param smsId - Identifier in the path
176
190
  *
177
- * Error codes (`errorMessage`): SMS_ERROR_ERROR_SMS_NOT_FOUND, DONGLE_ERROR_DONGLE_NOT_FOUND, CONTACT_ERROR_IDENTIFIER_CONTACT_NOT_FOUND, SMS_ERROR_IDENTIFIER_INVALID_SMS_TYPE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, PARSING_DATE_TIME_EXCEPTION.
191
+ * Error codes (`errorMessage`): SMS_ERROR_ERROR_SMS_NOT_FOUND, DONGLE_ERROR_DONGLE_NOT_FOUND, CONTACT_ERROR_IDENTIFIER_CONTACT_NOT_FOUND, SMS_ERROR_IDENTIFIER_INVALID_SMS_TYPE, SMS_ERROR_IDENTIFIER_LONG_MESSAGE, SMS_ERROR_IDENTIFIER_EMPTY_MESSAGE, SMS_ERROR_IDENTIFIER_INVALID_SCHEDULED_AT, PARSING_DATE_TIME_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
192
+ *
193
+ * Capability the role of an organization API key needs: `sms.send`.
178
194
  */
179
195
  update(
180
196
  dongleId: number,
@@ -204,7 +220,9 @@ export class SmsResource extends APIResource {
204
220
  * @param dongleId - Identifier in the path
205
221
  * @param smsId - Identifier in the path
206
222
  *
207
- * Error codes (`errorMessage`): SMS_ERROR_ERROR_SMS_NOT_FOUND.
223
+ * Error codes (`errorMessage`): SMS_ERROR_ERROR_SMS_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
224
+ *
225
+ * Capability the role of an organization API key needs: `sms.send`.
208
226
  */
209
227
  delete(dongleId: number, smsId: number, options?: RequestOptions): Promise<void> {
210
228
  return this._client
@@ -17,7 +17,9 @@ export class SocksProxiesResource extends APIResource {
17
17
  *
18
18
  * SOCKS5 proxies of the modems of the account. Newest first by default (created_at descending, then the id descending).
19
19
  *
20
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
20
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
21
+ *
22
+ * Capability the role of an organization API key needs: `network.view`.
21
23
  */
22
24
  list(params: SocksProxiesListParams = {}, options?: RequestOptions): PagePromise<DongleSocksProxy> {
23
25
  return this._client.getPage<DongleSocksProxy>('/dongle-socks-proxy', {
@@ -33,6 +35,8 @@ export class SocksProxiesResource extends APIResource {
33
35
  * One proxy per modem; the login is generated by the server. The proxy routes traffic through the mobile network of the modem.
34
36
  *
35
37
  * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, PASSWORD_TOO_SHORT_EXCEPTION, ALLOWED_IPS_NOT_VALID_EXCEPTION, DONGLE_SOCKS_PROXY_ALREADY_EXISTS_EXCEPTION.
38
+ *
39
+ * Capability the role of an organization API key needs: `network.manage`.
36
40
  */
37
41
  create(params: SocksProxiesCreateParams, options?: RequestOptions): Promise<DongleSocksProxy> {
38
42
  return this._client
@@ -50,7 +54,9 @@ export class SocksProxiesResource extends APIResource {
50
54
  *
51
55
  * @param dongleSocksProxyId - Identifier in the path
52
56
  *
53
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_SOCKS_PROXY_NOT_FOUND_EXCEPTION.
57
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_SOCKS_PROXY_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
58
+ *
59
+ * Capability the role of an organization API key needs: `network.view`.
54
60
  */
55
61
  get(dongleSocksProxyId: number, options?: RequestOptions): Promise<DongleSocksProxy> {
56
62
  return this._client
@@ -66,6 +72,8 @@ export class SocksProxiesResource extends APIResource {
66
72
  * @param dongleSocksProxyId - Identifier in the path
67
73
  *
68
74
  * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_SOCKS_PROXY_NOT_FOUND_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, PASSWORD_TOO_SHORT_EXCEPTION, ALLOWED_IPS_NOT_VALID_EXCEPTION.
75
+ *
76
+ * Capability the role of an organization API key needs: `network.manage`.
69
77
  */
70
78
  update(
71
79
  dongleSocksProxyId: number,
@@ -87,7 +95,9 @@ export class SocksProxiesResource extends APIResource {
87
95
  *
88
96
  * @param dongleSocksProxyId - Identifier in the path
89
97
  *
90
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_SOCKS_PROXY_NOT_FOUND_EXCEPTION.
98
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_SOCKS_PROXY_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
99
+ *
100
+ * Capability the role of an organization API key needs: `network.manage`.
91
101
  */
92
102
  delete(dongleSocksProxyId: number, options?: RequestOptions): Promise<boolean> {
93
103
  return this._client
@@ -15,7 +15,9 @@ export class UssdResource extends APIResource {
15
15
  *
16
16
  * @param dongleId - Identifier in the path
17
17
  *
18
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION.
18
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
19
+ *
20
+ * Capability the role of an organization API key needs: `device.manage`.
19
21
  */
20
22
  list(dongleId: number, params: UssdListParams = {}, options?: RequestOptions): PagePromise<Ussd> {
21
23
  return this._client.getPage<Ussd>(`/dongle/${pathParam(dongleId)}/ussd`, {
@@ -32,7 +34,9 @@ export class UssdResource extends APIResource {
32
34
  *
33
35
  * @param dongleId - Identifier in the path
34
36
  *
35
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_INVALID_COMMAND_FORMAT_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, USSD_LAST_USSD_NOT_PROCESSED_EXCEPTION.
37
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_INVALID_COMMAND_FORMAT_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, USSD_LAST_USSD_NOT_PROCESSED_EXCEPTION, DONGLE_FIRMWARE_UPDATING_EXCEPTION.
38
+ *
39
+ * Capability the role of an organization API key needs: `device.manage`.
36
40
  */
37
41
  send(dongleId: number, params: UssdSendParams, options?: RequestOptions): Promise<Ussd> {
38
42
  return this._client
@@ -48,7 +52,9 @@ export class UssdResource extends APIResource {
48
52
  * @param dongleId - Identifier in the path
49
53
  * @param ussdId - Identifier in the path
50
54
  *
51
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_NOT_FOUND_EXCEPTION.
55
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
56
+ *
57
+ * Capability the role of an organization API key needs: `device.manage`.
52
58
  */
53
59
  get(dongleId: number, ussdId: number, options?: RequestOptions): Promise<Ussd> {
54
60
  return this._client
@@ -64,7 +70,9 @@ export class UssdResource extends APIResource {
64
70
  * @param dongleId - Identifier in the path
65
71
  * @param ussdId - Identifier in the path
66
72
  *
67
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_NOT_FOUND_EXCEPTION.
73
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, USSD_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
74
+ *
75
+ * Capability the role of an organization API key needs: `device.manage`.
68
76
  */
69
77
  delete(dongleId: number, ussdId: number, options?: RequestOptions): Promise<boolean> {
70
78
  return this._client
@@ -79,7 +87,9 @@ export class UssdResource extends APIResource {
79
87
  *
80
88
  * @param dongleId - Identifier in the path
81
89
  *
82
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION.
90
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
91
+ *
92
+ * Capability the role of an organization API key needs: `device.manage`.
83
93
  */
84
94
  deleteAll(dongleId: number, options?: RequestOptions): Promise<boolean> {
85
95
  return this._client.request('DELETE', `/dongle/${pathParam(dongleId)}/ussds`, { options }).then(asStatus);
@@ -65,6 +65,22 @@ export const CallStatus = {
65
65
  /** 1: Created, 2: Enqueued, 3: Sent, 4: Received (answered), 5: Not received, 6: Canceled, 7: Missed */
66
66
  export type CallStatus = (typeof CallStatus)[keyof typeof CallStatus];
67
67
 
68
+ /**
69
+ * 1: Processing (usually a couple of minutes after the call), 2: Ready, 3: Failed (the speech could not be recognised)
70
+ */
71
+ export const CallTranscriptStatus = {
72
+ /** Processing (usually a couple of minutes after the call) */
73
+ PROCESSING: 1,
74
+ /** Ready */
75
+ READY: 2,
76
+ /** Failed (the speech could not be recognised) */
77
+ FAILED: 3,
78
+ } as const;
79
+ /**
80
+ * 1: Processing (usually a couple of minutes after the call), 2: Ready, 3: Failed (the speech could not be recognised)
81
+ */
82
+ export type CallTranscriptStatus = (typeof CallTranscriptStatus)[keyof typeof CallTranscriptStatus];
83
+
68
84
  /** 1: Outgoing, 2: Incoming, 3: Robotics incoming, 4: Robotics outgoing */
69
85
  export const CallType = {
70
86
  /** Outgoing */
@@ -94,7 +110,7 @@ export const DongleOnlineErrorCode = {
94
110
  export type DongleOnlineErrorCode = (typeof DongleOnlineErrorCode)[keyof typeof DongleOnlineErrorCode];
95
111
 
96
112
  /**
97
- * 1: Offline, 2: Online processing (connecting), 3: Error (see dongle_online_error_code_id), 4: Manual phone determination, 5: Online, 6: Updating, 7: Rebooting (set at once by POST /dongle/{dongle_id}/reboot)
113
+ * 1: Offline, 2: Online processing (connecting), 3: Error (see dongle_online_error_code_id), 4: Manual phone determination, 5: Online, 6: Updating, 7: Rebooting (set at once by POST /dongle/{dongle_id}/reboot and by PUT /dongle/{dongle_id}/setting/usb-gateway when it sends the mode to the modem)
98
114
  */
99
115
  export const DongleOnlineStatus = {
100
116
  /** Offline */
@@ -109,11 +125,13 @@ export const DongleOnlineStatus = {
109
125
  ONLINE: 5,
110
126
  /** Updating */
111
127
  UPDATING: 6,
112
- /** Rebooting (set at once by POST /dongle/{dongle_id}/reboot) */
128
+ /**
129
+ * Rebooting (set at once by POST /dongle/{dongle_id}/reboot and by PUT /dongle/{dongle_id}/setting/usb-gateway when it sends the mode to the modem)
130
+ */
113
131
  REBOOTING: 7,
114
132
  } as const;
115
133
  /**
116
- * 1: Offline, 2: Online processing (connecting), 3: Error (see dongle_online_error_code_id), 4: Manual phone determination, 5: Online, 6: Updating, 7: Rebooting (set at once by POST /dongle/{dongle_id}/reboot)
134
+ * 1: Offline, 2: Online processing (connecting), 3: Error (see dongle_online_error_code_id), 4: Manual phone determination, 5: Online, 6: Updating, 7: Rebooting (set at once by POST /dongle/{dongle_id}/reboot and by PUT /dongle/{dongle_id}/setting/usb-gateway when it sends the mode to the modem)
117
135
  */
118
136
  export type DongleOnlineStatus = (typeof DongleOnlineStatus)[keyof typeof DongleOnlineStatus];
119
137
 
@@ -208,28 +226,34 @@ export const SmsSourceType = {
208
226
  export type SmsSourceType = (typeof SmsSourceType)[keyof typeof SmsSourceType];
209
227
 
210
228
  /**
211
- * 1: Sended - accepted by the mobile network (about a second after creation), not delivered to the handset; 2: Received (incoming); 3: Not received - the network refused it; 4: Created; 5: Enqueued; 6: Canceled; 7: Incoming incomplete - not every part of a multipart SMS arrived
229
+ * 1: Sended - an outgoing SMS the modem took for the mobile network (about a second after creation); delivery to the handset is not confirmed yet; 2: Received - an incoming SMS arrived in full, or, for an outgoing SMS, the delivery report confirmed delivery to the handset (network_status_code 0); 3: Not received - an outgoing SMS was not delivered: the delivery report gave an error code (network_status_code), or no report came within about 5 minutes of status 1 (a later report still updates the status); 4: Created - not handed to the modem yet (a scheduled SMS waits for scheduled_at); 5: Enqueued - in the send queue; 6: Canceled - an outgoing SMS that was never sent: a scheduled SMS the user canceled in the web app, or the send failed (no active subscription, SMS sending is off for the modem, the account is blocked, the modem was unreachable or could not send it); 7: Incoming incomplete - not every part of a multipart SMS arrived
212
230
  */
213
231
  export const SmsStatus = {
214
232
  /**
215
- * Sended - accepted by the mobile network (about a second after creation), not delivered to the handset
233
+ * Sended - an outgoing SMS the modem took for the mobile network (about a second after creation); delivery to the handset is not confirmed yet
216
234
  */
217
235
  SENT: 1,
218
- /** Received (incoming) */
236
+ /**
237
+ * Received - an incoming SMS arrived in full, or, for an outgoing SMS, the delivery report confirmed delivery to the handset (network_status_code 0)
238
+ */
219
239
  RECEIVED: 2,
220
- /** Not received - the network refused it */
240
+ /**
241
+ * Not received - an outgoing SMS was not delivered: the delivery report gave an error code (network_status_code), or no report came within about 5 minutes of status 1 (a later report still updates the status)
242
+ */
221
243
  NOT_RECEIVED: 3,
222
- /** Created */
244
+ /** Created - not handed to the modem yet (a scheduled SMS waits for scheduled_at) */
223
245
  CREATED: 4,
224
- /** Enqueued */
246
+ /** Enqueued - in the send queue */
225
247
  ENQUEUED: 5,
226
- /** Canceled */
248
+ /**
249
+ * Canceled - an outgoing SMS that was never sent: a scheduled SMS the user canceled in the web app, or the send failed (no active subscription, SMS sending is off for the modem, the account is blocked, the modem was unreachable or could not send it)
250
+ */
227
251
  CANCELED: 6,
228
252
  /** Incoming incomplete - not every part of a multipart SMS arrived */
229
253
  INCOMING_INCOMPLETE: 7,
230
254
  } as const;
231
255
  /**
232
- * 1: Sended - accepted by the mobile network (about a second after creation), not delivered to the handset; 2: Received (incoming); 3: Not received - the network refused it; 4: Created; 5: Enqueued; 6: Canceled; 7: Incoming incomplete - not every part of a multipart SMS arrived
256
+ * 1: Sended - an outgoing SMS the modem took for the mobile network (about a second after creation); delivery to the handset is not confirmed yet; 2: Received - an incoming SMS arrived in full, or, for an outgoing SMS, the delivery report confirmed delivery to the handset (network_status_code 0); 3: Not received - an outgoing SMS was not delivered: the delivery report gave an error code (network_status_code), or no report came within about 5 minutes of status 1 (a later report still updates the status); 4: Created - not handed to the modem yet (a scheduled SMS waits for scheduled_at); 5: Enqueued - in the send queue; 6: Canceled - an outgoing SMS that was never sent: a scheduled SMS the user canceled in the web app, or the send failed (no active subscription, SMS sending is off for the modem, the account is blocked, the modem was unreachable or could not send it); 7: Incoming incomplete - not every part of a multipart SMS arrived
233
257
  */
234
258
  export type SmsStatus = (typeof SmsStatus)[keyof typeof SmsStatus];
235
259