@rc-ex/core 1.3.12 → 1.3.14

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 (146) hide show
  1. package/lib/Rest.js +1 -3
  2. package/lib/Rest.js.map +1 -1
  3. package/lib/definitions/ContactBusinessAddressInfo.d.ts +6 -6
  4. package/lib/definitions/ContactInfo.d.ts +12 -13
  5. package/lib/definitions/CreateFaxMessageRequest.d.ts +2 -1
  6. package/lib/definitions/CreateUserEmergencyLocationRequest.d.ts +4 -0
  7. package/lib/definitions/DepartmentInfo.d.ts +2 -2
  8. package/lib/definitions/DeviceResource.d.ts +5 -5
  9. package/lib/definitions/EmergencyLocationRequestResource.d.ts +42 -0
  10. package/lib/definitions/{ImportIdentityRequest.js → EmergencyLocationRequestResource.js} +1 -1
  11. package/lib/definitions/EmergencyLocationRequestResource.js.map +1 -0
  12. package/lib/definitions/EmergencyLocationResponseResource.d.ts +58 -0
  13. package/lib/definitions/EmergencyLocationResponseResource.js +3 -0
  14. package/lib/definitions/EmergencyLocationResponseResource.js.map +1 -0
  15. package/lib/definitions/ExtensionBulkUpdateInfo.d.ts +2 -0
  16. package/lib/definitions/ExtensionCreationRequest.d.ts +1 -2
  17. package/lib/definitions/ExtensionCreationResponse.d.ts +2 -2
  18. package/lib/definitions/ExtensionUpdateRequest.d.ts +2 -0
  19. package/lib/definitions/GetAccountInfoResponse.d.ts +2 -3
  20. package/lib/definitions/GetExtensionInfoResponse.d.ts +1 -1
  21. package/lib/definitions/GrantInfo.d.ts +4 -0
  22. package/lib/definitions/MessageStoreConfiguration.d.ts +1 -1
  23. package/lib/definitions/PauseResumeCallRecordingParameters.d.ts +1 -1
  24. package/lib/definitions/PronouncedNameInfo.d.ts +5 -6
  25. package/lib/definitions/ReadA2PSMSOptOutsParameters.d.ts +2 -1
  26. package/lib/definitions/ReadCallSessionStatusParameters.d.ts +2 -1
  27. package/lib/definitions/SipRegistrationDeviceInfo.d.ts +4 -7
  28. package/lib/definitions/SyncAccountCallLogParameters.d.ts +4 -1
  29. package/lib/definitions/SyncMessagesParameters.d.ts +1 -1
  30. package/lib/definitions/SyncUserCallLogParameters.d.ts +8 -3
  31. package/lib/definitions/TokenInfo.d.ts +3 -3
  32. package/lib/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.d.ts +1 -1
  33. package/lib/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.js +1 -1
  34. package/lib/paths/Ai/Audio/V1/Async/SpeechToText/index.d.ts +1 -1
  35. package/lib/paths/Ai/Audio/V1/Async/SpeechToText/index.js +1 -1
  36. package/lib/paths/Ai/Text/V1/Async/Punctuate/index.d.ts +1 -1
  37. package/lib/paths/Ai/Text/V1/Async/Punctuate/index.js +1 -1
  38. package/lib/paths/Ai/Text/V1/Async/Summarize/index.d.ts +3 -1
  39. package/lib/paths/Ai/Text/V1/Async/Summarize/index.js +3 -1
  40. package/lib/paths/Ai/Text/V1/Async/Summarize/index.js.map +1 -1
  41. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.d.ts +0 -6
  42. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js +0 -15
  43. package/lib/paths/Cx/SocialMessaging/V1/Identities/index.js.map +1 -1
  44. package/lib/paths/Restapi/Account/A2pSms/OptOuts/index.d.ts +4 -1
  45. package/lib/paths/Restapi/Account/A2pSms/OptOuts/index.js +4 -1
  46. package/lib/paths/Restapi/Account/A2pSms/OptOuts/index.js.map +1 -1
  47. package/lib/paths/Restapi/Account/EmergencyLocations/index.d.ts +5 -4
  48. package/lib/paths/Restapi/Account/EmergencyLocations/index.js +4 -4
  49. package/lib/paths/Restapi/Account/EmergencyLocations/index.js.map +1 -1
  50. package/lib/paths/Restapi/Account/Extension/AssignedRole/index.d.ts +1 -1
  51. package/lib/paths/Restapi/Account/Extension/AssignedRole/index.js +1 -1
  52. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.d.ts +4 -3
  53. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.js +2 -2
  54. package/lib/paths/Restapi/Account/Extension/EmergencyLocations/index.js.map +1 -1
  55. package/lib/paths/Restapi/Account/Extension/Features/index.d.ts +6 -6
  56. package/lib/paths/Restapi/Account/Extension/Features/index.js +6 -6
  57. package/lib/paths/Restapi/Account/Extension/MessageStore/index.d.ts +3 -3
  58. package/lib/paths/Restapi/Account/Extension/MessageStore/index.js +3 -3
  59. package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.d.ts +0 -1
  60. package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.js +0 -1
  61. package/lib/paths/Restapi/Account/Extension/OverflowSettings/index.js.map +1 -1
  62. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.d.ts +6 -1
  63. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.js +6 -1
  64. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.js.map +1 -1
  65. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.d.ts +5 -1
  66. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.js +5 -1
  67. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.js.map +1 -1
  68. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.d.ts +1 -1
  69. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.js +1 -1
  70. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.d.ts +1 -1
  71. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.js +1 -1
  72. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.d.ts +11 -1
  73. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.js +11 -1
  74. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.js.map +1 -1
  75. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.d.ts +1 -1
  76. package/lib/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.js +1 -1
  77. package/lib/paths/Restapi/Account/Telephony/Sessions/Supervise/index.d.ts +1 -1
  78. package/lib/paths/Restapi/Account/Telephony/Sessions/Supervise/index.js +1 -1
  79. package/lib/paths/Webinar/Configuration/V1/Webinars/index.d.ts +1 -1
  80. package/lib/paths/Webinar/Configuration/V1/Webinars/index.js +1 -1
  81. package/lib/paths/Webinar/Notifications/V1/Subscriptions/index.d.ts +1 -1
  82. package/lib/paths/Webinar/Notifications/V1/Subscriptions/index.js +1 -1
  83. package/package.json +2 -2
  84. package/src/Rest.ts +1 -5
  85. package/src/definitions/ContactBusinessAddressInfo.ts +6 -6
  86. package/src/definitions/ContactInfo.ts +12 -13
  87. package/src/definitions/CreateFaxMessageRequest.ts +2 -1
  88. package/src/definitions/CreateUserEmergencyLocationRequest.ts +5 -0
  89. package/src/definitions/DepartmentInfo.ts +2 -2
  90. package/src/definitions/DeviceResource.ts +5 -5
  91. package/src/definitions/EmergencyLocationRequestResource.ts +52 -0
  92. package/src/definitions/EmergencyLocationResponseResource.ts +71 -0
  93. package/src/definitions/ExtensionBulkUpdateInfo.ts +2 -0
  94. package/src/definitions/ExtensionCreationRequest.ts +1 -2
  95. package/src/definitions/ExtensionCreationResponse.ts +2 -2
  96. package/src/definitions/ExtensionUpdateRequest.ts +2 -0
  97. package/src/definitions/GetAccountInfoResponse.ts +2 -3
  98. package/src/definitions/GetExtensionInfoResponse.ts +1 -1
  99. package/src/definitions/GrantInfo.ts +5 -0
  100. package/src/definitions/MessageStoreConfiguration.ts +1 -1
  101. package/src/definitions/PauseResumeCallRecordingParameters.ts +1 -1
  102. package/src/definitions/PronouncedNameInfo.ts +5 -6
  103. package/src/definitions/ReadA2PSMSOptOutsParameters.ts +2 -1
  104. package/src/definitions/ReadCallSessionStatusParameters.ts +2 -1
  105. package/src/definitions/SipRegistrationDeviceInfo.ts +4 -7
  106. package/src/definitions/SyncAccountCallLogParameters.ts +4 -1
  107. package/src/definitions/SyncMessagesParameters.ts +1 -1
  108. package/src/definitions/SyncUserCallLogParameters.ts +8 -3
  109. package/src/definitions/TokenInfo.ts +3 -3
  110. package/src/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.ts +1 -1
  111. package/src/paths/Ai/Audio/V1/Async/SpeechToText/index.ts +1 -1
  112. package/src/paths/Ai/Text/V1/Async/Punctuate/index.ts +1 -1
  113. package/src/paths/Ai/Text/V1/Async/Summarize/index.ts +3 -1
  114. package/src/paths/Cx/SocialMessaging/V1/Identities/index.ts +0 -15
  115. package/src/paths/Restapi/Account/A2pSms/OptOuts/index.ts +4 -1
  116. package/src/paths/Restapi/Account/EmergencyLocations/index.ts +11 -10
  117. package/src/paths/Restapi/Account/Extension/AssignedRole/index.ts +1 -1
  118. package/src/paths/Restapi/Account/Extension/EmergencyLocations/index.ts +8 -7
  119. package/src/paths/Restapi/Account/Extension/Features/index.ts +6 -6
  120. package/src/paths/Restapi/Account/Extension/MessageStore/index.ts +3 -3
  121. package/src/paths/Restapi/Account/Extension/OverflowSettings/index.ts +0 -1
  122. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.ts +6 -1
  123. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.ts +5 -1
  124. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.ts +1 -1
  125. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.ts +1 -1
  126. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.ts +11 -1
  127. package/src/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.ts +1 -1
  128. package/src/paths/Restapi/Account/Telephony/Sessions/Supervise/index.ts +1 -1
  129. package/src/paths/Webinar/Configuration/V1/Webinars/index.ts +1 -1
  130. package/src/paths/Webinar/Notifications/V1/Subscriptions/index.ts +1 -1
  131. package/src/samples.md +201 -267
  132. package/lib/definitions/ImportIdentityRequest.d.ts +0 -61
  133. package/lib/definitions/ImportIdentityRequest.js.map +0 -1
  134. package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.d.ts +0 -17
  135. package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.js +0 -25
  136. package/lib/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.js.map +0 -1
  137. package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.d.ts +0 -19
  138. package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.js +0 -27
  139. package/lib/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.js.map +0 -1
  140. package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.d.ts +0 -20
  141. package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.js +0 -27
  142. package/lib/paths/Cx/SocialMessaging/V1/Identities/Import/index.js.map +0 -1
  143. package/src/definitions/ImportIdentityRequest.ts +0 -73
  144. package/src/paths/Cx/SocialMessaging/V1/Identities/Anonymize/index.ts +0 -27
  145. package/src/paths/Cx/SocialMessaging/V1/Identities/Deanonymize/index.ts +0 -29
  146. package/src/paths/Cx/SocialMessaging/V1/Identities/Import/index.ts +0 -33
@@ -58,7 +58,7 @@ declare class Index {
58
58
  delete(restRequestConfig?: RestRequestConfig): Promise<string>;
59
59
  /**
60
60
  * Updates a Webinar. The payload may contain just changed fields of a Webinar resource (it is a partial update):
61
- * - host cannot be changed and host user information cannot be updated;
61
+ * - host cannot be changed, and host user information cannot be updated;
62
62
  * - only the settings which are not mandated at account level or are unlocked can be
63
63
  * changed;
64
64
  * - in order to reset a webinar password it should be passed as an empty string;
@@ -81,7 +81,7 @@ class Index {
81
81
  }
82
82
  /**
83
83
  * Updates a Webinar. The payload may contain just changed fields of a Webinar resource (it is a partial update):
84
- * - host cannot be changed and host user information cannot be updated;
84
+ * - host cannot be changed, and host user information cannot be updated;
85
85
  * - only the settings which are not mandated at account level or are unlocked can be
86
86
  * changed;
87
87
  * - in order to reset a webinar password it should be passed as an empty string;
@@ -35,7 +35,7 @@ declare class Index {
35
35
  * Updates the existing subscription. The client application can extend/narrow
36
36
  * the list of events for which it receives notifications within this subscription.
37
37
  * If event filters are specified, calling this method modifies them for the
38
- * existing subscription. The method also allows to set the subscription expiration time.
38
+ * existing subscription. The method also allows setting the subscription expiration time.
39
39
  * If other than `events` and `expiresIn` parameters are passed in the request they will be ignored.
40
40
  * If the request body is empty then the specified subscription will be just renewed without any
41
41
  * event filter modifications and with default expiration time.
@@ -53,7 +53,7 @@ class Index {
53
53
  * Updates the existing subscription. The client application can extend/narrow
54
54
  * the list of events for which it receives notifications within this subscription.
55
55
  * If event filters are specified, calling this method modifies them for the
56
- * existing subscription. The method also allows to set the subscription expiration time.
56
+ * existing subscription. The method also allows setting the subscription expiration time.
57
57
  * If other than `events` and `expiresIn` parameters are passed in the request they will be ignored.
58
58
  * If the request body is empty then the specified subscription will be just renewed without any
59
59
  * event filter modifications and with default expiration time.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-ex/core",
3
- "version": "1.3.12",
3
+ "version": "1.3.14",
4
4
  "description": "Core for ringcentral-extensible project",
5
5
  "author": "Tyler Liu <tyler.liu@ringcentral.com>",
6
6
  "homepage": "https://github.com/ringcentral/ringcentral-extensible/tree/master/packages/core",
@@ -30,5 +30,5 @@
30
30
  "scripts": {
31
31
  "generate": "ts-node -r dotenv-override-true/config code-generator.ts"
32
32
  },
33
- "gitHead": "ee58ff317cb8e6b16048911a95233d225e26d76c"
33
+ "gitHead": "4b1cbc48d8c68694e751697c41f6f383431a6921"
34
34
  }
package/src/Rest.ts CHANGED
@@ -74,11 +74,7 @@ export default class Rest {
74
74
  ...config,
75
75
  };
76
76
  // /restapi/oauth/wstoken uses bearer token
77
- if (
78
- endpoint === '/restapi/oauth/token' ||
79
- endpoint === '/restapi/oauth/revoke' ||
80
- endpoint === '/restapi/oauth/initiate-otp'
81
- ) {
77
+ if (endpoint === '/restapi/oauth/token' || endpoint === '/restapi/oauth/revoke') {
82
78
  if (this.clientSecret) {
83
79
  // basic token
84
80
  newConfig.auth = {
@@ -1,32 +1,32 @@
1
1
  /**
2
- * Extension user business address. The default is
2
+ * User's business address. The default is
3
3
  * Company (Auto-Receptionist) settings
4
4
  *
5
5
  */
6
6
  interface ContactBusinessAddressInfo {
7
7
  /**
8
- * Country name of an extension user company
8
+ * Country name of a user's company
9
9
  */
10
10
  country?: string;
11
11
 
12
12
  /**
13
- * State/province name of an extension user company. Mandatory
13
+ * State/province name of a user's company. Mandatory
14
14
  * for the USA, UK and Canada
15
15
  */
16
16
  state?: string;
17
17
 
18
18
  /**
19
- * City name of an extension user company
19
+ * City name of a user's company
20
20
  */
21
21
  city?: string;
22
22
 
23
23
  /**
24
- * Street address of an extension user company
24
+ * Street address of a user's company
25
25
  */
26
26
  street?: string;
27
27
 
28
28
  /**
29
- * Zip code of an extension user company
29
+ * Zip code of a user's company
30
30
  */
31
31
  zip?: string;
32
32
  }
@@ -2,49 +2,48 @@ import type ContactBusinessAddressInfo from './ContactBusinessAddressInfo';
2
2
  import type PronouncedNameInfo from './PronouncedNameInfo';
3
3
 
4
4
  /**
5
- * Contact detailed information
5
+ * Detailed contact information
6
6
  */
7
7
  interface ContactInfo {
8
8
  /**
9
- * For User extension type only. Extension user first name
9
+ * User's first name (for extensions of `User` type only)
10
10
  */
11
11
  firstName?: string;
12
12
 
13
13
  /**
14
- * For User extension type only. Extension user last name
14
+ * For User extension type only. User's last name (for extensions of `User` type only)
15
15
  */
16
16
  lastName?: string;
17
17
 
18
18
  /**
19
- * Extension user name (first name and last name)
19
+ * Extension name (for extensions of `User` type - concatenation of first and last name)
20
20
  */
21
21
  name?: string;
22
22
 
23
23
  /**
24
- * Extension user company name
24
+ * User's company name
25
25
  */
26
26
  company?: string;
27
27
 
28
28
  /**
29
+ * User's job title
29
30
  */
30
31
  jobTitle?: string;
31
32
 
32
33
  /**
33
- * Contact email of extension user
34
+ * User's contact email
34
35
  * Format: email
35
36
  */
36
37
  email?: string;
37
38
 
38
39
  /**
39
- * Extension user contact phone number in
40
- * [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I)
40
+ * User's contact phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I)
41
41
  * (with '+' sign) format
42
42
  */
43
43
  businessPhone?: string;
44
44
 
45
45
  /**
46
- * Extension user mobile (**non** Toll Free) phone number in
47
- * [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I)
46
+ * User's mobile (**non** Toll Free) phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I)
48
47
  * (with '+' sign) format
49
48
  */
50
49
  mobilePhone?: string;
@@ -54,8 +53,8 @@ interface ContactInfo {
54
53
  businessAddress?: ContactBusinessAddressInfo;
55
54
 
56
55
  /**
57
- * If `true` then contact email is enabled as login name for this
58
- * user. Please note that email should be unique in this case.
56
+ * Indicates that the contact email is enabled as a login name for this
57
+ * user. Please note that the email must be unique in this case.
59
58
  */
60
59
  emailAsLoginName?: boolean;
61
60
 
@@ -64,7 +63,7 @@ interface ContactInfo {
64
63
  pronouncedName?: PronouncedNameInfo;
65
64
 
66
65
  /**
67
- * Extension user department, if any
66
+ * User's department name
68
67
  */
69
68
  department?: string;
70
69
  }
@@ -26,7 +26,8 @@ interface CreateFaxMessageRequest {
26
26
  sendTime?: string;
27
27
 
28
28
  /**
29
- * ISO Code. e.g UK
29
+ * Alpha-2 ISO Code of a country
30
+ * Example: US
30
31
  */
31
32
  isoCode?: string;
32
33
 
@@ -11,6 +11,11 @@ interface CreateUserEmergencyLocationRequest {
11
11
  */
12
12
  addressFormatId?: string;
13
13
 
14
+ /**
15
+ * If 'true' address validation for non-us addresses is skipped
16
+ */
17
+ trusted?: boolean;
18
+
14
19
  /**
15
20
  */
16
21
  address?: CommonEmergencyLocationAddressInfo;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Please note that legacy 'Department' extension type corresponds to
2
+ * Please note that the `Department` extension type corresponds to
3
3
  * 'Call Queue' extensions in modern RingCentral product terminology
4
4
  *
5
5
  */
@@ -17,7 +17,7 @@ interface DepartmentInfo {
17
17
  uri?: string;
18
18
 
19
19
  /**
20
- * Number of a department extension
20
+ * Short number of a department extension
21
21
  */
22
22
  extensionNumber?: string;
23
23
  }
@@ -83,9 +83,9 @@ interface DeviceResource {
83
83
  shipping?: ShippingInfo;
84
84
 
85
85
  /**
86
- * Box billing identifier of a device. Applicable only for HardPhones.
86
+ * Box billing identifier of a device. Applicable only for devices of `HardPhone` type.
87
87
  * It is an alternative way to identify the device to be ordered. Either
88
- * model structure, or boxBillingId must be specified for HardPhone
88
+ * `model` structure, or `boxBillingId` must be specified
89
89
  * Format: int64
90
90
  */
91
91
  boxBillingId?: number;
@@ -123,9 +123,9 @@ interface DeviceResource {
123
123
 
124
124
  /**
125
125
  * Pooling type of device:
126
- * - Host - a device with standalone paid phone line which can be linked to a soft client instance
127
- * - Guest - a device with a linked phone line
128
- * - None - a device without a phone line or with specific line (free, BLA, etc.)
126
+ * - `Host` - device with a standalone paid phone line which can be linked to soft phone client instance;
127
+ * - `Guest` - device with a linked phone line;
128
+ * - `None` - device without a phone line or with a specific line (free, BLA, etc.)
129
129
  */
130
130
  linePooling?: 'Host' | 'Guest' | 'None';
131
131
 
@@ -0,0 +1,52 @@
1
+ import type CommonEmergencyLocationAddressInfo from './CommonEmergencyLocationAddressInfo';
2
+ import type ShortSiteInfo from './ShortSiteInfo';
3
+
4
+ interface EmergencyLocationRequestResource {
5
+ /**
6
+ * Internal identifier of an emergency response location
7
+ */
8
+ id?: string;
9
+
10
+ /**
11
+ */
12
+ address?: CommonEmergencyLocationAddressInfo;
13
+
14
+ /**
15
+ * Emergency response location name
16
+ */
17
+ name?: string;
18
+
19
+ /**
20
+ */
21
+ site?: ShortSiteInfo;
22
+
23
+ /**
24
+ * Emergency address status
25
+ */
26
+ addressStatus?: 'Valid' | 'Invalid';
27
+
28
+ /**
29
+ * Status of an emergency response location usage.
30
+ */
31
+ usageStatus?: 'Active' | 'Inactive';
32
+
33
+ /**
34
+ * Address format ID
35
+ */
36
+ addressFormatId?: string;
37
+
38
+ /**
39
+ * Visibility of an emergency response location. If `Private`
40
+ * is set, then a location is visible only for restricted number of users,
41
+ * specified in `owners` array
42
+ * Default: Public
43
+ */
44
+ visibility?: 'Public';
45
+
46
+ /**
47
+ * If 'true' address validation for non-us addresses is skipped
48
+ */
49
+ trusted?: boolean;
50
+ }
51
+
52
+ export default EmergencyLocationRequestResource;
@@ -0,0 +1,71 @@
1
+ import type CommonEmergencyLocationAddressInfo from './CommonEmergencyLocationAddressInfo';
2
+ import type ShortSiteInfo from './ShortSiteInfo';
3
+ import type LocationOwnerInfo from './LocationOwnerInfo';
4
+
5
+ /**
6
+ * Company emergency response location details
7
+ */
8
+ interface EmergencyLocationResponseResource {
9
+ /**
10
+ * Internal identifier of an emergency response location
11
+ */
12
+ id?: string;
13
+
14
+ /**
15
+ */
16
+ address?: CommonEmergencyLocationAddressInfo;
17
+
18
+ /**
19
+ * Emergency response location name
20
+ */
21
+ name?: string;
22
+
23
+ /**
24
+ */
25
+ site?: ShortSiteInfo;
26
+
27
+ /**
28
+ * Emergency address status
29
+ */
30
+ addressStatus?: 'Valid' | 'Invalid' | 'Provisioning';
31
+
32
+ /**
33
+ * Status of emergency response location usage.
34
+ */
35
+ usageStatus?: 'Active' | 'Inactive';
36
+
37
+ /**
38
+ * Resulting status of emergency address synchronization. Returned
39
+ * if `syncEmergencyAddress` parameter is set to `true`
40
+ */
41
+ syncStatus?: 'Verified' | 'Updated' | 'Deleted' | 'ActivationProcess' | 'NotRequired' | 'Unsupported' | 'Failed';
42
+
43
+ /**
44
+ */
45
+ addressType?: 'LocationWithElins' | 'LocationWithEndpoint';
46
+
47
+ /**
48
+ * Visibility of an emergency response location. If `Private`
49
+ * is set, then location is visible only for the restricted number of users,
50
+ * specified in `owners` array
51
+ * Default: Public
52
+ */
53
+ visibility?: 'Private' | 'Public';
54
+
55
+ /**
56
+ * List of private location owners
57
+ */
58
+ owners?: LocationOwnerInfo[];
59
+
60
+ /**
61
+ * Address format ID
62
+ */
63
+ addressFormatId?: string;
64
+
65
+ /**
66
+ * If 'true' address validation for non-us addresses is skipped
67
+ */
68
+ trusted?: boolean;
69
+ }
70
+
71
+ export default EmergencyLocationResponseResource;
@@ -46,6 +46,8 @@ interface ExtensionBulkUpdateInfo {
46
46
  regionalSettings?: ExtensionRegionalSettingRequest;
47
47
 
48
48
  /**
49
+ * Initial configuration wizard state
50
+ * Default: NotStarted
49
51
  */
50
52
  setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed';
51
53
 
@@ -50,8 +50,7 @@ interface ExtensionCreationRequest {
50
50
  ivrPin?: string;
51
51
 
52
52
  /**
53
- * Specifies extension configuration wizard state (web service
54
- * setup).
53
+ * Initial configuration wizard state
55
54
  * Default: NotStarted
56
55
  */
57
56
  setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed';
@@ -83,8 +83,8 @@ interface ExtensionCreationResponse {
83
83
  serviceFeatures?: ExtensionServiceFeatureInfo[];
84
84
 
85
85
  /**
86
- * Specifies extension configuration wizard state (web service
87
- * setup). The default value is 'NotStarted'
86
+ * Initial configuration wizard state
87
+ * Default: NotStarted
88
88
  */
89
89
  setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed';
90
90
 
@@ -30,6 +30,8 @@ interface ExtensionUpdateRequest {
30
30
  regionalSettings?: ExtensionRegionalSettingRequest;
31
31
 
32
32
  /**
33
+ * Initial configuration wizard state
34
+ * Default: NotStarted
33
35
  */
34
36
  setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed';
35
37
 
@@ -43,10 +43,9 @@ interface GetAccountInfoResponse {
43
43
  serviceInfo?: ServiceInfo;
44
44
 
45
45
  /**
46
- * Specifies account configuration wizard state (web service setup)
47
- * Default: NotStarted
46
+ * Initial configuration wizard state
48
47
  */
49
- setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed';
48
+ setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed' | 'Unknown';
50
49
 
51
50
  /**
52
51
  */
@@ -108,7 +108,7 @@ interface GetExtensionInfoResponse {
108
108
  serviceFeatures?: ExtensionServiceFeatureInfo[];
109
109
 
110
110
  /**
111
- * Specifies extension configuration wizard state (web service setup)
111
+ * Initial configuration wizard state
112
112
  * Default: NotStarted
113
113
  */
114
114
  setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed';
@@ -61,6 +61,11 @@ interface GrantInfo {
61
61
  */
62
62
  callQueueMessages?: boolean;
63
63
 
64
+ /**
65
+ * Specifies whether the current extension is granted *Forward All Calls (FAC)* permission
66
+ */
67
+ callQueueFacSetup?: boolean;
68
+
64
69
  /**
65
70
  * Specifies whether the user referenced in extension object is sharing voicemails
66
71
  * with the current extension
@@ -1,7 +1,7 @@
1
1
  interface MessageStoreConfiguration {
2
2
  /**
3
3
  * Retention policy setting, specifying how long to keep messages;
4
- * the supported value range is 7-90 days. Currently the retention period is supported for Fax and Voicemail messages only.
4
+ * the supported value range is 7-90 days. Currently, the retention period is supported for `Fax` and `Voicemail` messages only.
5
5
  * SMS messages are stored with no time limits
6
6
  * Maximum: 90
7
7
  * Minimum: 7
@@ -3,7 +3,7 @@
3
3
  */
4
4
  interface PauseResumeCallRecordingParameters {
5
5
  /**
6
- * Identifies a brand of a logged in user or a brand of a sign-up session
6
+ * Identifies a brand of a logged-in user or a brand of a sign-up session
7
7
  * Default: ~
8
8
  */
9
9
  brandId?: string;
@@ -2,16 +2,15 @@ import type PronouncedNamePromptInfo from './PronouncedNamePromptInfo';
2
2
 
3
3
  interface PronouncedNameInfo {
4
4
  /**
5
- * Voice name type. 'Default' - default extension name; first
6
- * name and last name specified in user profile; 'TextToSpeech' - custom
7
- * text; user name spelled the way it sounds and specified by user; 'Recorded'
8
- * - custom audio, user name recorded in user's own voice (supported only
9
- * for extension retrieval)
5
+ * The method used to pronounce the user's name:
6
+ * - `Default` - default extension name; first and last name specified in user's profile are pronounced using text-to-speech;
7
+ * - `TextToSpeech` - custom text specified by a user pronounced using text-to-speech;
8
+ * - `Recorded` - custom audio uploaded by a user, the name recorded in user's own voice (supported only for extension retrieval).
10
9
  */
11
10
  type?: 'Default' | 'TextToSpeech' | 'Recorded';
12
11
 
13
12
  /**
14
- * Custom text
13
+ * Custom text (for `TextToSpeech` type only)
15
14
  */
16
15
  text?: string;
17
16
 
@@ -3,7 +3,8 @@
3
3
  */
4
4
  interface ReadA2PSMSOptOutsParameters {
5
5
  /**
6
- * The sender's phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format for filtering messages. The asterisk value "*" means any number in `from` field
6
+ * The sender's phone number in [E.164](https://www.itu.int/rec/T-REC-E.164-201011-I) format for filtering messages.
7
+ * The asterisk value "*" means any number in `from` field
7
8
  * Example: 15551234455
8
9
  */
9
10
  from?: string;
@@ -8,7 +8,8 @@ interface ReadCallSessionStatusParameters {
8
8
  timestamp?: string;
9
9
 
10
10
  /**
11
- * The time frame of awaiting for a status change before sending the resulting one in response
11
+ * The time frame of awaiting for a status change before sending
12
+ * the resulting one in response
12
13
  */
13
14
  timeout?: string;
14
15
  }
@@ -79,9 +79,7 @@ interface SipRegistrationDeviceInfo {
79
79
  phoneLines?: DevicePhoneLinesInfo[];
80
80
 
81
81
  /**
82
- * Box billing identifier of a device. Applicable only for HardPhones.
83
- * It is an alternative way to identify the device to be ordered. Either
84
- * model structure, or boxBillingId must be specified forT?HardPhone
82
+ * Box billing identifier of a device. Applicable only for devices of `HardPhone` type.
85
83
  * Format: int64
86
84
  */
87
85
  boxBillingId?: number;
@@ -93,10 +91,9 @@ interface SipRegistrationDeviceInfo {
93
91
 
94
92
  /**
95
93
  * Pooling type of device:
96
- * - `Host` - device with standalone paid
97
- * phone line which can be linked to soft phone client instance
98
- * - `Guest` - device with a linked phone line
99
- * - `None` - device without a phone line or with specific line (free, BLA, etc.)
94
+ * - `Host` - device with a standalone paid phone line which can be linked to soft phone client instance;
95
+ * - `Guest` - device with a linked phone line;
96
+ * - `None` - device without a phone line or with a specific line (free, BLA, etc.)
100
97
  */
101
98
  linePooling?: 'Host' | 'Guest' | 'None';
102
99
 
@@ -20,7 +20,10 @@ interface SyncAccountCallLogParameters {
20
20
  dateFrom?: string;
21
21
 
22
22
  /**
23
- * For 'FSync' the parameter is mandatory, it limits the number of records to be returned in response. For 'ISync' it specifies with how many records to extend sync frame to the past, the maximum number of records is 250
23
+ * For `FSync` mode this parameter is mandatory, it limits the number of records to be returned in response.
24
+ *
25
+ * For `ISync` mode this parameter specifies the number of records to extend the sync frame with to the past
26
+ * (the maximum number of records is 250)
24
27
  * Minimum: 1
25
28
  * Format: int32
26
29
  */
@@ -51,7 +51,7 @@ interface SyncMessagesParameters {
51
51
  recordCount?: number;
52
52
 
53
53
  /**
54
- * Value of syncToken property of last sync request response
54
+ * A `syncToken` value from the previous sync response (for `ISync` mode only, mandatory)
55
55
  */
56
56
  syncToken?: string;
57
57
 
@@ -9,18 +9,23 @@ interface SyncUserCallLogParameters {
9
9
  syncType?: 'FSync' | 'ISync';
10
10
 
11
11
  /**
12
- * Value of syncToken property of last sync request response. Mandatory parameter for 'ISync' sync type
12
+ * A `syncToken` value from the previous sync response (for `ISync` mode only, mandatory)
13
13
  */
14
14
  syncToken?: string;
15
15
 
16
16
  /**
17
- * The start datetime for resulting records in ISO 8601 format including timezone, for example 2016-03-10T18:07:52.534Z. The default value is the current moment
17
+ * The start datetime for resulting records in ISO 8601 format including
18
+ * timezone, for example 2016-03-10T18:07:52.534Z. The default value is the
19
+ * current moment
18
20
  * Format: date-time
19
21
  */
20
22
  dateFrom?: string;
21
23
 
22
24
  /**
23
- * For 'FSync' the parameter is mandatory, it limits the number of records to be returned in response. For 'ISync' it specifies with how many records to extend sync Frame to the past, the maximum number of records is 250
25
+ * For `FSync` mode this parameter is mandatory, it limits the number of records to be returned in response.
26
+ *
27
+ * For `ISync` mode this parameter specifies the number of records to extend the sync frame with to the past
28
+ * (the maximum number of records is 250)
24
29
  * Format: int32
25
30
  */
26
31
  recordCount?: number;
@@ -54,7 +54,7 @@ interface TokenInfo {
54
54
  endpoint_id?: string;
55
55
 
56
56
  /**
57
- * OIDC ID token (if OpenId Connect flow was activated during authorization)
57
+ * OIDC ID token (if OpenID Connect flow was activated during authorization)
58
58
  */
59
59
  id_token?: string;
60
60
 
@@ -64,13 +64,13 @@ interface TokenInfo {
64
64
  session_id?: string;
65
65
 
66
66
  /**
67
- * Absolute value of session expiration time as ISO datetime
67
+ * Absolute value of session expiration time as an ISO timestamp
68
68
  * Format: date-time
69
69
  */
70
70
  session_expiration_time?: string;
71
71
 
72
72
  /**
73
- * Remaining time (in seconds) until session expiration due to absolute timeout
73
+ * Remaining time (in seconds) until session expiration due to the absolute timeout
74
74
  * Format: int32
75
75
  */
76
76
  session_expires_in?: number;
@@ -15,7 +15,7 @@ class Index {
15
15
  return `${this._parent.path()}/speaker-identify`;
16
16
  }
17
17
  /**
18
- * Returns Speaker Identification to the provided webhook uri.
18
+ * Returns Speaker Identification to the provided webhook URI.
19
19
  * HTTP Method: post
20
20
  * Endpoint: /ai/audio/v1/async/speaker-identify
21
21
  * Rate Limit Group: Heavy
@@ -15,7 +15,7 @@ class Index {
15
15
  return `${this._parent.path()}/speech-to-text`;
16
16
  }
17
17
  /**
18
- * Returns Speech to Text Conversion to the provided webhook uri.
18
+ * Returns Speech to Text Conversion to the provided webhook URI.
19
19
  * HTTP Method: post
20
20
  * Endpoint: /ai/audio/v1/async/speech-to-text
21
21
  * Rate Limit Group: Heavy