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
@@ -10,7 +10,9 @@ export declare class ContactGroupsResource extends APIResource {
10
10
  *
11
11
  * Contact groups of the account. Newest first by default (the id descending).
12
12
  *
13
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
13
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
14
+ *
15
+ * Capability the role of an organization API key needs: `contact.view`.
14
16
  */
15
17
  list(params?: ContactGroupsListParams, options?: RequestOptions): PagePromise<ContactGroup>;
16
18
  /**
@@ -18,7 +20,9 @@ export declare class ContactGroupsResource extends APIResource {
18
20
  *
19
21
  * Creates a contact group with the given contacts.
20
22
  *
21
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT.
23
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
24
+ *
25
+ * Capability the role of an organization API key needs: `contact.manage`.
22
26
  */
23
27
  create(params: ContactGroupsCreateParams, options?: RequestOptions): Promise<ContactGroup>;
24
28
  /**
@@ -28,7 +32,9 @@ export declare class ContactGroupsResource extends APIResource {
28
32
  *
29
33
  * @param contactGroupId - Identifier in the path
30
34
  *
31
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION.
35
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
36
+ *
37
+ * Capability the role of an organization API key needs: `contact.view`.
32
38
  */
33
39
  get(contactGroupId: number, options?: RequestOptions): Promise<ContactGroup>;
34
40
  /**
@@ -38,7 +44,9 @@ export declare class ContactGroupsResource extends APIResource {
38
44
  *
39
45
  * @param contactGroupId - Identifier in the path
40
46
  *
41
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT.
47
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
48
+ *
49
+ * Capability the role of an organization API key needs: `contact.manage`.
42
50
  */
43
51
  update(contactGroupId: number, params: ContactGroupsUpdateParams, options?: RequestOptions): Promise<ContactGroup>;
44
52
  /**
@@ -48,7 +56,9 @@ export declare class ContactGroupsResource extends APIResource {
48
56
  *
49
57
  * @param contactGroupId - Identifier in the path
50
58
  *
51
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, CONTACT_GROUP_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP.
59
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, CONTACT_GROUP_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
60
+ *
61
+ * Capability the role of an organization API key needs: `contact.manage`.
52
62
  */
53
63
  delete(contactGroupId: number, options?: RequestOptions): Promise<boolean>;
54
64
  }
@@ -1 +1 @@
1
- {"version":3,"file":"contact-groups.d.ts","sourceRoot":"","sources":["../../src/resources/contact-groups.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EACV,yBAAy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AAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,YAAY,CAAC;IAgB/F;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAS1F;;;;;;;;;;OAUG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAM5E;;;;;;;;;;OAUG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,YAAY,CAAC;IASxB;;;;;;;;;;OAUG;IACH,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAK3E"}
@@ -8,7 +8,9 @@ export class ContactGroupsResource extends APIResource {
8
8
  *
9
9
  * Contact groups of the account. Newest first by default (the id descending).
10
10
  *
11
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
11
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
12
+ *
13
+ * Capability the role of an organization API key needs: `contact.view`.
12
14
  */
13
15
  list(params = {}, options) {
14
16
  return this._client.getPage('/contact-group', {
@@ -30,7 +32,9 @@ export class ContactGroupsResource extends APIResource {
30
32
  *
31
33
  * Creates a contact group with the given contacts.
32
34
  *
33
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT.
35
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
36
+ *
37
+ * Capability the role of an organization API key needs: `contact.manage`.
34
38
  */
35
39
  create(params, options) {
36
40
  return this._client
@@ -47,7 +51,9 @@ export class ContactGroupsResource extends APIResource {
47
51
  *
48
52
  * @param contactGroupId - Identifier in the path
49
53
  *
50
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION.
54
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
55
+ *
56
+ * Capability the role of an organization API key needs: `contact.view`.
51
57
  */
52
58
  get(contactGroupId, options) {
53
59
  return this._client
@@ -61,7 +67,9 @@ export class ContactGroupsResource extends APIResource {
61
67
  *
62
68
  * @param contactGroupId - Identifier in the path
63
69
  *
64
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT.
70
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, CONTACT_GROUP_ERROR_INVALID_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
71
+ *
72
+ * Capability the role of an organization API key needs: `contact.manage`.
65
73
  */
66
74
  update(contactGroupId, params, options) {
67
75
  return this._client
@@ -78,7 +86,9 @@ export class ContactGroupsResource extends APIResource {
78
86
  *
79
87
  * @param contactGroupId - Identifier in the path
80
88
  *
81
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, CONTACT_GROUP_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP.
89
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_GROUP_NOT_FOUND_EXCEPTION, CONTACT_GROUP_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, CONTACT_GROUP_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT_GROUP, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
90
+ *
91
+ * Capability the role of an organization API key needs: `contact.manage`.
82
92
  */
83
93
  delete(contactGroupId, options) {
84
94
  return this._client
@@ -1 +1 @@
1
- {"version":3,"file":"contact-groups.js","sourceRoot":"","sources":["../../src/resources/contact-groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAO7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,6EAA6E;AAC7E,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;;;;OAMG;IACH,IAAI,CAAC,SAAkC,EAAE,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAe,gBAAgB,EAAE;YAC1D,KAAK,EAAE;gBACL,qBAAqB,EAAE,MAAM,CAAC,iBAAiB;gBAC/C,eAAe,EAAE,MAAM,CAAC,WAAW;gBACnC,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,KAAK,EAAE,MAAM,CAAC,KAAK;aACpB;YACD,OAAO,EAAE,gBAAgB;YACzB,OAAO;SACR,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EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;aAC1E,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,cAAsB,EACtB,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,KAAK,EAAE,kBAAkB,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE;YAC7D,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE;YAC5D,OAAO;SACR,CAAC;aACD,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,cAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO;aAChB,OAAO,CAAC,QAAQ,EAAE,kBAAkB,SAAS,CAAC,cAAc,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC;aAC7E,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;CACF"}
@@ -10,7 +10,9 @@ export declare class ContactsResource extends APIResource {
10
10
  *
11
11
  * Contacts of the account. Filters combine with AND. Newest first by default (the id descending).
12
12
  *
13
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
13
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
14
+ *
15
+ * Capability the role of an organization API key needs: `contact.view`.
14
16
  */
15
17
  list(params?: ContactsListParams, options?: RequestOptions): PagePromise<Contact>;
16
18
  /**
@@ -18,7 +20,9 @@ export declare class ContactsResource extends APIResource {
18
20
  *
19
21
  * Creates a contact. The phone number is normalised to E.164; a number that already belongs to a contact of the account is refused.
20
22
  *
21
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION.
23
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
24
+ *
25
+ * Capability the role of an organization API key needs: `contact.manage`.
22
26
  */
23
27
  create(params: ContactsCreateParams, options?: RequestOptions): Promise<Contact>;
24
28
  /**
@@ -28,7 +32,9 @@ export declare class ContactsResource extends APIResource {
28
32
  *
29
33
  * @param contactId - Identifier in the path
30
34
  *
31
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION.
35
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
36
+ *
37
+ * Capability the role of an organization API key needs: `contact.view`.
32
38
  */
33
39
  get(contactId: number, options?: RequestOptions): Promise<Contact>;
34
40
  /**
@@ -38,7 +44,9 @@ export declare class ContactsResource extends APIResource {
38
44
  *
39
45
  * @param contactId - Identifier in the path
40
46
  *
41
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION.
47
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
48
+ *
49
+ * Capability the role of an organization API key needs: `contact.manage`.
42
50
  */
43
51
  update(contactId: number, params: ContactsUpdateParams, options?: RequestOptions): Promise<Contact>;
44
52
  /**
@@ -48,7 +56,9 @@ export declare class ContactsResource extends APIResource {
48
56
  *
49
57
  * @param contactId - Identifier in the path
50
58
  *
51
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT, CONTACT_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT.
59
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT, CONTACT_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
60
+ *
61
+ * Capability the role of an organization API key needs: `contact.manage`.
52
62
  */
53
63
  delete(contactId: number, options?: RequestOptions): Promise<boolean>;
54
64
  /**
@@ -56,7 +66,9 @@ export declare class ContactsResource extends APIResource {
56
66
  *
57
67
  * Bulk creation of contacts from the body; duplicates by phone number are skipped.
58
68
  *
59
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_IMPORT_ERROR_IDENTIFIER_EMPTY_DATA, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST.
69
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_IMPORT_ERROR_IDENTIFIER_EMPTY_DATA, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
70
+ *
71
+ * Capability the role of an organization API key needs: `contact.manage`.
60
72
  */
61
73
  importContacts(params: ContactsImportContactsParams, options?: RequestOptions): Promise<ContactImportResult>;
62
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../src/resources/contacts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,KAAK,E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,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,mCAAmC;AACnC,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;OAQG;IACH,IAAI,CAAC,MAAM,GAAE,kBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,OAAO,CAAC;IAoBrF;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAchF;;;;;;;;;;OAUG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAMlE;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAcnG;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIrE;;;;;;;;OAQG;IACH,cAAc,CACZ,MAAM,EAAE,4BAA4B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,mBAAmB,CAAC;CAYhC"}
@@ -8,7 +8,9 @@ export class ContactsResource extends APIResource {
8
8
  *
9
9
  * Contacts of the account. Filters combine with AND. Newest first by default (the id descending).
10
10
  *
11
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
11
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
12
+ *
13
+ * Capability the role of an organization API key needs: `contact.view`.
12
14
  */
13
15
  list(params = {}, options) {
14
16
  return this._client.getPage('/contact', {
@@ -34,7 +36,9 @@ export class ContactsResource extends APIResource {
34
36
  *
35
37
  * Creates a contact. The phone number is normalised to E.164; a number that already belongs to a contact of the account is refused.
36
38
  *
37
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION.
39
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
40
+ *
41
+ * Capability the role of an organization API key needs: `contact.manage`.
38
42
  */
39
43
  create(params, options) {
40
44
  return this._client
@@ -56,7 +60,9 @@ export class ContactsResource extends APIResource {
56
60
  *
57
61
  * @param contactId - Identifier in the path
58
62
  *
59
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION.
63
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
64
+ *
65
+ * Capability the role of an organization API key needs: `contact.view`.
60
66
  */
61
67
  get(contactId, options) {
62
68
  return this._client
@@ -70,7 +76,9 @@ export class ContactsResource extends APIResource {
70
76
  *
71
77
  * @param contactId - Identifier in the path
72
78
  *
73
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION.
79
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_IDENTIFIER_INVALID_EMAIL_FORMAT, CONTACT_ERROR_IDENTIFIER_BIG_NAME, CONTACT_ERROR_IDENTIFIER_BIG_PHONE, CONTACT_ERROR_IDENTIFIER_INVALID_PHONE, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NAME, CONTACT_ERROR_IDENTIFIER_ALREADY_EXISTS_SAME_NUMBER, CONTACT_MANAGEMENT_INVALID_CONTACT_GROUP_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
80
+ *
81
+ * Capability the role of an organization API key needs: `contact.manage`.
74
82
  */
75
83
  update(contactId, params, options) {
76
84
  return this._client
@@ -92,7 +100,9 @@ export class ContactsResource extends APIResource {
92
100
  *
93
101
  * @param contactId - Identifier in the path
94
102
  *
95
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT, CONTACT_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT.
103
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_NOT_FOUND_EXCEPTION, CONTACT_ERROR_REDIRECTS_ARE_PRESENT_WHILE_DELETING_CONTACT, CONTACT_ERROR_MAILINGS_ARE_PRESENT_WHILE_DELETING_CONTACT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
104
+ *
105
+ * Capability the role of an organization API key needs: `contact.manage`.
96
106
  */
97
107
  delete(contactId, options) {
98
108
  return this._client.request('DELETE', `/contact/${pathParam(contactId)}`, { options }).then(asStatus);
@@ -102,7 +112,9 @@ export class ContactsResource extends APIResource {
102
112
  *
103
113
  * Bulk creation of contacts from the body; duplicates by phone number are skipped.
104
114
  *
105
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_IMPORT_ERROR_IDENTIFIER_EMPTY_DATA, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST.
115
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, CONTACT_IMPORT_ERROR_IDENTIFIER_EMPTY_DATA, CONTACT_GROUP_ERROR_WITH_SAME_NAME_ALREADY_EXIST, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
116
+ *
117
+ * Capability the role of an organization API key needs: `contact.manage`.
106
118
  */
107
119
  importContacts(params, options) {
108
120
  return this._client
@@ -1 +1 @@
1
- {"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/resources/contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAItF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQ7C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAClD,mCAAmC;AACnC,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;OAMG;IACH,IAAI,CAAC,SAA6B,EAAE,EAAE,OAAwB;QAC5D,OAAO,IAAI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8 +1,8 @@
1
1
  import type { RequestOptions } from '../core.js';
2
2
  import type { PagePromise } from '../pagination.js';
3
3
  import { APIResource } from '../resource.js';
4
- import type { Dongle, DongleListItem, DongleNetworkInfo, DongleSimIdentifiers, DongleStatistic } from '../types/models.js';
5
- import type { DonglesEnableWifiExtenderParams, DonglesListParams, DonglesListStatisticsParams, DonglesSetNumberParams, DonglesSetWifiCredentialsParams, DonglesUpdateOfflineNotificationParams, DonglesUpdateParams } from '../types/params.js';
4
+ import type { Dongle, DongleListItem, DongleNetworkInfo, DongleSimIdentifiers, DongleStatistic, DongleWifiClientList } from '../types/models.js';
5
+ import type { DonglesEnableWifiExtenderParams, DonglesListParams, DonglesListStatisticsParams, DonglesSetNumberParams, DonglesSetWifiCredentialsParams, DonglesUpdateOfflineNotificationParams, DonglesUpdateParams, DonglesUpdateUsbGatewayParams, DonglesUpdateWifiIsolationParams } from '../types/params.js';
6
6
  /** Modems of the account and their commands: reboot, Wi-Fi, Wi-Fi extender, number, network info. */
7
7
  export declare class DonglesResource extends APIResource {
8
8
  /**
@@ -11,18 +11,36 @@ export declare class DonglesResource extends APIResource {
11
11
  * Modems of the account. In full mode every field of the Dongle schema that the list serves is returned; dongle_setting and public_vpn_server are present in full mode only. The cheapest call is GET /dongle?is_short=1&limit=1: use it to check that an API key works. Newest first by default (created_at descending, then the id descending).
12
12
  *
13
13
  * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION.
14
+ *
15
+ * Capability the role of an organization API key needs: `device.view`.
14
16
  */
15
17
  list(params?: DonglesListParams, options?: RequestOptions): PagePromise<DongleListItem>;
16
18
  /**
17
19
  * Reboot modem.
18
20
  *
19
- * 200 means the reboot is accepted, not done: dongle_online_status becomes 7 (REBOOTING) at once and goes back to an online or offline status when the modem returns. A repeated call while a reboot is in progress (about 180 s for the API stage, then the SMS stage) is a no-op that also answers 200. The reboot is accepted regardless of the subscription and of the online state; track progress through dongle_online_status in GET /dongle or GET /dongle/{dongle_id}.
21
+ * 200 means the reboot is accepted, not done: dongle_online_status becomes 7 (REBOOTING) at once and goes back to an online or offline status when the modem returns. A repeated call while a reboot is in progress (about 180 s for the API stage, then the SMS stage) is a no-op that also answers 200. The reboot is accepted regardless of the online state (the subscription is needed, see Subscription); track progress through dongle_online_status in GET /dongle or GET /dongle/{dongle_id}.
20
22
  *
21
23
  * @param dongleId - Identifier in the path
22
24
  *
23
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION.
25
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
26
+ *
27
+ * Capability the role of an organization API key needs: `device.manage`.
24
28
  */
25
29
  reboot(dongleId: number, options?: RequestOptions): Promise<boolean>;
30
+ /**
31
+ * List devices on modem Wi-Fi.
32
+ *
33
+ * Devices connected to the Wi-Fi hotspot of the modem. The modem is asked only when this is called; its answer, a failure included, is kept for 20 seconds: a call within that time gets it without asking the modem again, and updated_at tells when the modem answered. Turning Wi-Fi on or off and new Wi-Fi credentials drop the kept answer. The computer on USB is not in the list. Available from modem firmware 4.5.8; older firmware answers 409 DONGLE_WIFI_CLIENT_LIST_NOT_SUPPORTED_EXCEPTION.
34
+ *
35
+ * @param dongleId - ID of the dongle
36
+ *
37
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_OFFLINE_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_BUSY_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_NOT_SUPPORTED_EXCEPTION, DONGLE_WIFI_CLIENT_LIST_DONGLE_UNAVAILABLE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
38
+ *
39
+ * Capability the role of an organization API key needs: `network.view`.
40
+ *
41
+ * Needs modem firmware 4.5.8 or later.
42
+ */
43
+ getWifiClients(dongleId: number, options?: RequestOptions): Promise<DongleWifiClientList>;
26
44
  /**
27
45
  * Enable modem Wi-Fi.
28
46
  *
@@ -30,7 +48,9 @@ export declare class DonglesResource extends APIResource {
30
48
  *
31
49
  * @param dongleId - ID of the dongle
32
50
  *
33
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
51
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
52
+ *
53
+ * Capability the role of an organization API key needs: `device.manage`.
34
54
  */
35
55
  enableWifi(dongleId: number, options?: RequestOptions): Promise<boolean>;
36
56
  /**
@@ -40,7 +60,9 @@ export declare class DonglesResource extends APIResource {
40
60
  *
41
61
  * @param dongleId - ID of the dongle
42
62
  *
43
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
63
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_ALREADY_IN_THE_SAME_STATUS_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
64
+ *
65
+ * Capability the role of an organization API key needs: `device.manage`.
44
66
  */
45
67
  disableWifi(dongleId: number, options?: RequestOptions): Promise<boolean>;
46
68
  /**
@@ -50,7 +72,9 @@ export declare class DonglesResource extends APIResource {
50
72
  *
51
73
  * @param dongleId - ID of the dongle
52
74
  *
53
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_INVALID_SSID_EXCEPTION, DONGLE_WIFI_INVALID_PASSWORD_EXCEPTION, DONGLE_WIFI_API_EXCEPTION.
75
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_INVALID_SSID_EXCEPTION, DONGLE_WIFI_INVALID_PASSWORD_EXCEPTION, DONGLE_WIFI_API_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
76
+ *
77
+ * Capability the role of an organization API key needs: `device.manage`.
54
78
  */
55
79
  setWifiCredentials(dongleId: number, params: DonglesSetWifiCredentialsParams, options?: RequestOptions): Promise<boolean>;
56
80
  /**
@@ -61,6 +85,8 @@ export declare class DonglesResource extends APIResource {
61
85
  * @param dongleId - ID of the dongle
62
86
  *
63
87
  * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_WIFI_EXTENDER_LOCKED_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
88
+ *
89
+ * Capability the role of an organization API key needs: `device.manage`.
64
90
  */
65
91
  enableWifiExtender(dongleId: number, params: DonglesEnableWifiExtenderParams, options?: RequestOptions): Promise<boolean>;
66
92
  /**
@@ -70,7 +96,9 @@ export declare class DonglesResource extends APIResource {
70
96
  *
71
97
  * @param dongleId - ID of the dongle
72
98
  *
73
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_EXTENDER_LOCKED_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
99
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_WIFI_EXTENDER_LOCKED_EXCEPTION, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
100
+ *
101
+ * Capability the role of an organization API key needs: `device.manage`.
74
102
  */
75
103
  disableWifiExtender(dongleId: number, options?: RequestOptions): Promise<boolean>;
76
104
  /**
@@ -81,6 +109,8 @@ export declare class DonglesResource extends APIResource {
81
109
  * @param dongleId - ID of the dongle
82
110
  *
83
111
  * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_API_CONNECTION_EXCEPTION, DONGLE_API_HTTP_RESPONSE_EXCEPTION.
112
+ *
113
+ * Capability the role of an organization API key needs: `device.manage`.
84
114
  */
85
115
  scanWifiNetworks(dongleId: number, options?: RequestOptions): Promise<boolean>;
86
116
  /**
@@ -90,9 +120,39 @@ export declare class DonglesResource extends APIResource {
90
120
  *
91
121
  * @param dongleId - ID of the dongle
92
122
  *
93
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_SETTING_NOT_FOUND.
123
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_SETTING_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
124
+ *
125
+ * Capability the role of an organization API key needs: `device.manage`.
94
126
  */
95
127
  updateOfflineNotification(dongleId: number, params: DonglesUpdateOfflineNotificationParams, options?: RequestOptions): Promise<boolean>;
128
+ /**
129
+ * Set Wi-Fi isolation.
130
+ *
131
+ * Turns the Wi-Fi isolation of the modem on or off: devices on its Wi-Fi do not see each other or the computer on USB. The modem is asked for its mode first, and the mode is sent to it in the same request only when it reports another one. When the modem cannot be reached, answers an error, or loses the answer and then does not report the new mode, the mode stays as it was and the answer is 400 DONGLE_WIFI_API_EXCEPTION. On a loaded modem the request takes up to 45 seconds. Shown as dongle_setting.is_wifi_isolation_enabled in GET /dongle. Available from modem firmware 5.1.0; with older firmware the mode is only saved and the answer is 200: the modem gets it when it connects with 5.1.0 or newer.
132
+ *
133
+ * @param dongleId - ID of the dongle
134
+ *
135
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_SETTING_NOT_FOUND, DONGLE_WIFI_API_EXCEPTION.
136
+ *
137
+ * Capability the role of an organization API key needs: `device.manage`.
138
+ *
139
+ * Needs modem firmware 5.1.0 or later.
140
+ */
141
+ updateWifiIsolation(dongleId: number, params: DonglesUpdateWifiIsolationParams, options?: RequestOptions): Promise<boolean>;
142
+ /**
143
+ * Set USB gateway mode.
144
+ *
145
+ * Makes the modem the gateway of the computer plugged into it over USB, or not; off by default; shown as dongle_setting.is_usb_gateway_enabled in GET /dongle. The value is sent to the modem at once: if the modem cannot be reached or rejects the command, the saved value is put back (400 DONGLE_SETTING_API_EXCEPTION); if the firmware of the modem cannot turn the gateway off, it is put back too (400 DONGLE_SETTING_USB_GATEWAY_NOT_SUPPORTED). The modem takes the setting with a reboot: after a change it reboots to apply it, even while a reboot is already in progress (dongle_online_status 7 while it reboots). A value equal to the saved one is checked with the modem; it is sent, and applied by a reboot, only when the modem reports another one. When the modem cannot be reached for that check, the answer is 400 DONGLE_SETTING_API_EXCEPTION as well. The modem reports the mode it has saved, not the one in effect: to apply a mode it has saved, reboot it (POST /dongle/{dongle_id}/reboot). Available from modem firmware 5.1.0; older firmware answers 400 DONGLE_SETTING_API_EXCEPTION.
146
+ *
147
+ * @param dongleId - ID of the dongle
148
+ *
149
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE, DONGLE_SETTING_NOT_FOUND, DONGLE_SETTING_API_EXCEPTION, DONGLE_SETTING_USB_GATEWAY_NOT_SUPPORTED.
150
+ *
151
+ * Capability the role of an organization API key needs: `device.manage`.
152
+ *
153
+ * Needs modem firmware 5.1.0 or later.
154
+ */
155
+ updateUsbGateway(dongleId: number, params: DonglesUpdateUsbGatewayParams, options?: RequestOptions): Promise<boolean>;
96
156
  /**
97
157
  * Set modem number.
98
158
  *
@@ -100,7 +160,9 @@ export declare class DonglesResource extends APIResource {
100
160
  *
101
161
  * @param dongleId - ID of the dongle
102
162
  *
103
- * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_NUMBER_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_ALREADY_IN_PROGRESS_EXCEPTION.
163
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_NOT_FOUND_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_NUMBER_EXCEPTION, DONGLE_MANUAL_PHONE_DETERMINATION_ALREADY_IN_PROGRESS_EXCEPTION, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
164
+ *
165
+ * Capability the role of an organization API key needs: `device.manage`.
104
166
  */
105
167
  setNumber(dongleId: number, params: DonglesSetNumberParams, options?: RequestOptions): Promise<boolean>;
106
168
  /**
@@ -111,16 +173,20 @@ export declare class DonglesResource extends APIResource {
111
173
  * @param dongleId - Identifier in the path
112
174
  *
113
175
  * Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND.
176
+ *
177
+ * Capability the role of an organization API key needs: `device.view`.
114
178
  */
115
179
  get(dongleId: number, options?: RequestOptions): Promise<Dongle>;
116
180
  /**
117
181
  * Update modem.
118
182
  *
119
- * Only the listed body fields are read; unknown fields are ignored. An omitted field keeps its value. The billing fields tariff_package_id, is_tariff_package_enabled, order_dongle_id, is_deleted and is_active and the field imei_fake are outside the public API: a body with any of them is refused as a whole with 403 PUBLIC_API_FIELD_FORBIDDEN.
183
+ * Only the listed body fields are read; unknown fields are ignored. An omitted field keeps its value. The billing fields tariff_package_id, is_tariff_package_enabled, order_dongle_id, is_deleted and is_active and the field imei_fake are outside the public API: a body with any of them is refused as a whole with 403 PUBLIC_API_FIELD_FORBIDDEN, whatever the role of the key. Switching dongle_call_type_id to 1 (SIP) takes the call scenario off the modem first: a modem that does not take it off answers 400 DONGLE_ERROR_CALL_SCENARIO_NOT_REMOVED, and nothing is changed.
120
184
  *
121
185
  * @param dongleId - Identifier in the path
122
186
  *
123
- * Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, PUBLIC_API_FIELD_FORBIDDEN.
187
+ * Error codes (`errorMessage`): REQUEST_VALIDATION_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_ERROR_CALL_SCENARIO_NOT_REMOVED, PUBLIC_API_FIELD_FORBIDDEN, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
188
+ *
189
+ * Capability the role of an organization API key needs: `device.manage`.
124
190
  */
125
191
  update(dongleId: number, params?: DonglesUpdateParams, options?: RequestOptions): Promise<Dongle>;
126
192
  /**
@@ -130,7 +196,9 @@ export declare class DonglesResource extends APIResource {
130
196
  *
131
197
  * @param dongleId - Identifier in the path
132
198
  *
133
- * Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT.
199
+ * Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
200
+ *
201
+ * Capability the role of an organization API key needs: `device.view`.
134
202
  */
135
203
  getNetworkInfo(dongleId: number, options?: RequestOptions): Promise<DongleNetworkInfo>;
136
204
  /**
@@ -140,7 +208,9 @@ export declare class DonglesResource extends APIResource {
140
208
  *
141
209
  * @param dongleId - Identifier in the path
142
210
  *
143
- * Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT.
211
+ * Error codes (`errorMessage`): DONGLE_ERROR_DONGLE_NOT_FOUND, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_HTTP_RESPONSE, DONGLE_MANAGEMENT_API_ERROR_IDENTIFIER_INVALID_CONTENT, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
212
+ *
213
+ * Capability the role of an organization API key needs: `device.view`.
144
214
  */
145
215
  getSimIdentifiers(dongleId: number, options?: RequestOptions): Promise<DongleSimIdentifiers>;
146
216
  /**
@@ -150,7 +220,9 @@ export declare class DonglesResource extends APIResource {
150
220
  *
151
221
  * @param dongleId - Identifier in the path
152
222
  *
153
- * Error codes (`errorMessage`): PARSING_DATE_TIME_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND.
223
+ * Error codes (`errorMessage`): PARSING_DATE_TIME_EXCEPTION, DONGLE_ERROR_DONGLE_NOT_FOUND, BILLING_ERROR_IDENTIFIER_DONGLE_SUBSCRIPTION_NOT_ACTIVE.
224
+ *
225
+ * Capability the role of an organization API key needs: `device.view`.
154
226
  */
155
227
  listStatistics(dongleId: number, params?: DonglesListStatisticsParams, options?: RequestOptions): Promise<Array<DongleStatistic>>;
156
228
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dongles.d.ts","sourceRoot":"","sources":["../../src/resources/dongles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EACV,MAAM,EACN,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,+BAA+B,EAC/B,iBAAiB,EACjB,2BAA2B,EAC3B,sBAAsB,EACtB,+BAA+B,EAC/B,sCAAsC,EACtC,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AAE5B,qGAAqG;AACrG,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,GAAE,iBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC;IAqB3F;;;;;;;;OAQG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpE;;;;;;;;OAQG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAMxE;;;;;;;;OAQG;IACH,WAAW,CAAC,QAAQ,EAAE,M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