twilio 4.8.0 → 4.9.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 (111) hide show
  1. package/lib/base/BaseTwilio.d.ts +1 -0
  2. package/lib/jwt/AccessToken.d.ts +168 -173
  3. package/lib/jwt/AccessToken.js +180 -185
  4. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +15 -20
  5. package/lib/rest/api/v2010/account/application.d.ts +15 -20
  6. package/lib/rest/api/v2010/account/call/feedback.d.ts +5 -5
  7. package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +4 -4
  8. package/lib/rest/api/v2010/account/call/notification.d.ts +3 -4
  9. package/lib/rest/api/v2010/account/call/payment.d.ts +10 -10
  10. package/lib/rest/api/v2010/account/call/recording.d.ts +9 -9
  11. package/lib/rest/api/v2010/account/conference/recording.d.ts +9 -9
  12. package/lib/rest/api/v2010/account/connectApp.d.ts +3 -4
  13. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +33 -38
  14. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +33 -38
  15. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +33 -38
  16. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +15 -20
  17. package/lib/rest/api/v2010/account/message/feedback.d.ts +5 -5
  18. package/lib/rest/api/v2010/account/notification.d.ts +3 -4
  19. package/lib/rest/api/v2010/account/queue.d.ts +3 -3
  20. package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +4 -4
  21. package/lib/rest/api/v2010/account/recording/transcription.d.ts +4 -4
  22. package/lib/rest/api/v2010/account/shortCode.d.ts +6 -8
  23. package/lib/rest/api/v2010/account/sip/domain.d.ts +9 -12
  24. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +7 -7
  25. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +7 -7
  26. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +7 -7
  27. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +7 -7
  28. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +7 -7
  29. package/lib/rest/api/v2010/account/usage/record/today.d.ts +7 -7
  30. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +7 -7
  31. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +7 -7
  32. package/lib/rest/api/v2010/account/usage/record.d.ts +7 -7
  33. package/lib/rest/api/v2010/account/usage/trigger.d.ts +27 -28
  34. package/lib/rest/api/v2010/account/usage.d.ts +1 -1
  35. package/lib/rest/chat/v2/service/channel/webhook.d.ts +5 -5
  36. package/lib/rest/content/V1.d.ts +5 -0
  37. package/lib/rest/content/V1.js +7 -0
  38. package/lib/rest/content/v1/contentAndApprovals.d.ts +190 -0
  39. package/lib/rest/content/v1/contentAndApprovals.js +134 -0
  40. package/lib/rest/conversations/v1/addressConfiguration.d.ts +8 -8
  41. package/lib/rest/conversations/v1/configuration/webhook.d.ts +9 -9
  42. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +4 -4
  43. package/lib/rest/conversations/v1/conversation/message.d.ts +8 -8
  44. package/lib/rest/conversations/v1/conversation/participant.d.ts +4 -4
  45. package/lib/rest/conversations/v1/conversation/webhook.d.ts +5 -5
  46. package/lib/rest/conversations/v1/service/binding.d.ts +7 -7
  47. package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +4 -4
  48. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +4 -4
  49. package/lib/rest/conversations/v1/service/conversation/message.d.ts +8 -8
  50. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +4 -4
  51. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +5 -5
  52. package/lib/rest/conversations/v1/service/conversation.d.ts +10 -10
  53. package/lib/rest/conversations/v1/service/participantConversation.d.ts +4 -4
  54. package/lib/rest/conversations/v1/service/role.d.ts +5 -5
  55. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +9 -9
  56. package/lib/rest/conversations/v1/service/user.d.ts +4 -4
  57. package/lib/rest/flexApi/V1.d.ts +5 -0
  58. package/lib/rest/flexApi/V1.js +7 -0
  59. package/lib/rest/flexApi/v1/assessments.d.ts +117 -0
  60. package/lib/rest/flexApi/v1/assessments.js +70 -1
  61. package/lib/rest/flexApi/v1/insightsConversations.d.ts +172 -0
  62. package/lib/rest/flexApi/v1/insightsConversations.js +128 -0
  63. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +2 -2
  64. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +2 -4
  65. package/lib/rest/insights/v1/call/callSummary.d.ts +17 -17
  66. package/lib/rest/insights/v1/room/participant.d.ts +16 -16
  67. package/lib/rest/insights/v1/room.d.ts +41 -42
  68. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +5 -5
  69. package/lib/rest/media/v1/mediaProcessor.d.ts +3 -4
  70. package/lib/rest/media/v1/mediaRecording.d.ts +3 -4
  71. package/lib/rest/media/v1/playerStreamer.d.ts +3 -4
  72. package/lib/rest/messaging/V1.d.ts +10 -0
  73. package/lib/rest/messaging/V1.js +16 -0
  74. package/lib/rest/messaging/v1/brandRegistration.d.ts +12 -12
  75. package/lib/rest/messaging/v1/domainCerts.d.ts +4 -4
  76. package/lib/rest/messaging/v1/domainCerts.js +2 -2
  77. package/lib/rest/messaging/v1/domainConfigMessagingService.d.ts +121 -0
  78. package/lib/rest/messaging/v1/domainConfigMessagingService.js +122 -0
  79. package/lib/rest/messaging/v1/linkshorteningMessagingService.d.ts +109 -0
  80. package/lib/rest/messaging/v1/linkshorteningMessagingService.js +135 -0
  81. package/lib/rest/messaging/v1/service.d.ts +6 -8
  82. package/lib/rest/microvisor/v1/app/appManifest.d.ts +101 -0
  83. package/lib/rest/microvisor/v1/app/appManifest.js +115 -0
  84. package/lib/rest/microvisor/v1/app.d.ts +11 -0
  85. package/lib/rest/microvisor/v1/app.js +15 -0
  86. package/lib/rest/monitor/v1/alert.d.ts +3 -4
  87. package/lib/rest/preview/wireless/sim.d.ts +12 -16
  88. package/lib/rest/supersim/v1/esimProfile.d.ts +14 -0
  89. package/lib/rest/supersim/v1/esimProfile.js +6 -0
  90. package/lib/rest/supersim/v1/fleet.d.ts +6 -8
  91. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +14 -14
  92. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +12 -12
  93. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +15 -20
  94. package/lib/rest/trunking/v1/trunk.d.ts +3 -4
  95. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +4 -4
  96. package/lib/rest/trusthub/v1/customerProfiles.d.ts +8 -8
  97. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +4 -4
  98. package/lib/rest/trusthub/v1/trustProducts.d.ts +8 -8
  99. package/lib/rest/verify/v2/service/verification.d.ts +1 -1
  100. package/lib/rest/video/v1/composition.d.ts +3 -4
  101. package/lib/rest/video/v1/compositionHook.d.ts +3 -4
  102. package/lib/rest/video/v1/recording.d.ts +3 -4
  103. package/lib/rest/video/v1/room/participant/anonymize.d.ts +4 -4
  104. package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +4 -4
  105. package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +4 -4
  106. package/lib/rest/video/v1/room/participant.d.ts +8 -8
  107. package/lib/rest/video/v1/room.d.ts +3 -4
  108. package/lib/rest/voice/v1/byocTrunk.d.ts +9 -12
  109. package/lib/rest/wireless/v1/sim.d.ts +15 -20
  110. package/lib/rest/wireless/v1/usageRecord.d.ts +4 -4
  111. package/package.json +1 -1
@@ -86,11 +86,6 @@ export declare class PhoneNumberContextImpl implements PhoneNumberContext {
86
86
  toJSON(): PhoneNumberContextSolution;
87
87
  [inspect.custom](_depth: any, options: InspectOptions): string;
88
88
  }
89
- export type PhoneNumberSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
90
- export type PhoneNumberSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
91
- export type PhoneNumberStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
92
- export type PhoneNumberVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
93
- export type PhoneNumberVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
94
89
  interface PhoneNumberPayload extends TwilioResponsePayload {
95
90
  phone_numbers: PhoneNumberResource[];
96
91
  }
@@ -107,19 +102,19 @@ interface PhoneNumberResource {
107
102
  phone_number: string;
108
103
  sid: string;
109
104
  sms_application_sid: string;
110
- sms_fallback_method: PhoneNumberSmsFallbackMethod;
105
+ sms_fallback_method: string;
111
106
  sms_fallback_url: string;
112
- sms_method: PhoneNumberSmsMethod;
107
+ sms_method: string;
113
108
  sms_url: string;
114
109
  status_callback: string;
115
- status_callback_method: PhoneNumberStatusCallbackMethod;
110
+ status_callback_method: string;
116
111
  trunk_sid: string;
117
112
  url: string;
118
113
  voice_application_sid: string;
119
114
  voice_caller_id_lookup: boolean;
120
- voice_fallback_method: PhoneNumberVoiceFallbackMethod;
115
+ voice_fallback_method: string;
121
116
  voice_fallback_url: string;
122
- voice_method: PhoneNumberVoiceMethod;
117
+ voice_method: string;
123
118
  voice_url: string;
124
119
  }
125
120
  export declare class PhoneNumberInstance {
@@ -175,7 +170,7 @@ export declare class PhoneNumberInstance {
175
170
  /**
176
171
  * The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`.
177
172
  */
178
- smsFallbackMethod: PhoneNumberSmsFallbackMethod;
173
+ smsFallbackMethod: string;
179
174
  /**
180
175
  * The URL that we call using the `sms_fallback_method` when an error occurs while retrieving or executing the TwiML from `sms_url`.
181
176
  */
@@ -183,7 +178,7 @@ export declare class PhoneNumberInstance {
183
178
  /**
184
179
  * The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
185
180
  */
186
- smsMethod: PhoneNumberSmsMethod;
181
+ smsMethod: string;
187
182
  /**
188
183
  * The URL we call using the `sms_method` when the phone number receives an incoming SMS message.
189
184
  */
@@ -195,7 +190,7 @@ export declare class PhoneNumberInstance {
195
190
  /**
196
191
  * The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.
197
192
  */
198
- statusCallbackMethod: PhoneNumberStatusCallbackMethod;
193
+ statusCallbackMethod: string;
199
194
  /**
200
195
  * The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice URLs and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa.
201
196
  */
@@ -215,7 +210,7 @@ export declare class PhoneNumberInstance {
215
210
  /**
216
211
  * The HTTP method that we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
217
212
  */
218
- voiceFallbackMethod: PhoneNumberVoiceFallbackMethod;
213
+ voiceFallbackMethod: string;
219
214
  /**
220
215
  * The URL that we call using the `voice_fallback_method` when an error occurs retrieving or executing the TwiML requested by `url`.
221
216
  */
@@ -223,7 +218,7 @@ export declare class PhoneNumberInstance {
223
218
  /**
224
219
  * The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
225
220
  */
226
- voiceMethod: PhoneNumberVoiceMethod;
221
+ voiceMethod: string;
227
222
  /**
228
223
  * The URL we call using the `voice_method` when the phone number receives a call. The `voice_url` is not be used if a `voice_application_sid` or a `trunk_sid` is set.
229
224
  */
@@ -263,19 +258,19 @@ export declare class PhoneNumberInstance {
263
258
  phoneNumber: string;
264
259
  sid: string;
265
260
  smsApplicationSid: string;
266
- smsFallbackMethod: PhoneNumberSmsFallbackMethod;
261
+ smsFallbackMethod: string;
267
262
  smsFallbackUrl: string;
268
- smsMethod: PhoneNumberSmsMethod;
263
+ smsMethod: string;
269
264
  smsUrl: string;
270
265
  statusCallback: string;
271
- statusCallbackMethod: PhoneNumberStatusCallbackMethod;
266
+ statusCallbackMethod: string;
272
267
  trunkSid: string;
273
268
  url: string;
274
269
  voiceApplicationSid: string;
275
270
  voiceCallerIdLookup: boolean;
276
- voiceFallbackMethod: PhoneNumberVoiceFallbackMethod;
271
+ voiceFallbackMethod: string;
277
272
  voiceFallbackUrl: string;
278
- voiceMethod: PhoneNumberVoiceMethod;
273
+ voiceMethod: string;
279
274
  voiceUrl: string;
280
275
  };
281
276
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -159,14 +159,13 @@ export declare class TrunkContextImpl implements TrunkContext {
159
159
  toJSON(): TrunkContextSolution;
160
160
  [inspect.custom](_depth: any, options: InspectOptions): string;
161
161
  }
162
- export type TrunkDisasterRecoveryMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
163
162
  interface TrunkPayload extends TwilioResponsePayload {
164
163
  trunks: TrunkResource[];
165
164
  }
166
165
  interface TrunkResource {
167
166
  account_sid: string;
168
167
  domain_name: string;
169
- disaster_recovery_method: TrunkDisasterRecoveryMethod;
168
+ disaster_recovery_method: string;
170
169
  disaster_recovery_url: string;
171
170
  friendly_name: string;
172
171
  secure: boolean;
@@ -198,7 +197,7 @@ export declare class TrunkInstance {
198
197
  /**
199
198
  * The HTTP method we use to call the `disaster_recovery_url`. Can be: `GET` or `POST`.
200
199
  */
201
- disasterRecoveryMethod: TrunkDisasterRecoveryMethod;
200
+ disasterRecoveryMethod: string;
202
201
  /**
203
202
  * The URL we call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from this URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information.
204
203
  */
@@ -311,7 +310,7 @@ export declare class TrunkInstance {
311
310
  toJSON(): {
312
311
  accountSid: string;
313
312
  domainName: string;
314
- disasterRecoveryMethod: TrunkDisasterRecoveryMethod;
313
+ disasterRecoveryMethod: string;
315
314
  disasterRecoveryUrl: string;
316
315
  friendlyName: string;
317
316
  secure: boolean;
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V1 from "../../V1";
6
- export type CustomerProfileEvaluationStatus = "compliant" | "noncompliant";
6
+ export type CustomerProfilesEvaluationsStatus = "compliant" | "noncompliant";
7
7
  /**
8
8
  * Options to pass to create a CustomerProfilesEvaluationsInstance
9
9
  */
@@ -85,7 +85,7 @@ interface CustomerProfilesEvaluationsResource {
85
85
  account_sid: string;
86
86
  policy_sid: string;
87
87
  customer_profile_sid: string;
88
- status: CustomerProfileEvaluationStatus;
88
+ status: CustomerProfilesEvaluationsStatus;
89
89
  results: Array<any>;
90
90
  date_created: Date;
91
91
  url: string;
@@ -111,7 +111,7 @@ export declare class CustomerProfilesEvaluationsInstance {
111
111
  * The unique string that we created to identify the customer_profile resource.
112
112
  */
113
113
  customerProfileSid: string;
114
- status: CustomerProfileEvaluationStatus;
114
+ status: CustomerProfilesEvaluationsStatus;
115
115
  /**
116
116
  * The results of the Evaluation which includes the valid and invalid attributes.
117
117
  */
@@ -137,7 +137,7 @@ export declare class CustomerProfilesEvaluationsInstance {
137
137
  accountSid: string;
138
138
  policySid: string;
139
139
  customerProfileSid: string;
140
- status: CustomerProfileEvaluationStatus;
140
+ status: CustomerProfilesEvaluationsStatus;
141
141
  results: any[];
142
142
  dateCreated: Date;
143
143
  url: string;
@@ -6,13 +6,13 @@ import V1 from "../V1";
6
6
  import { CustomerProfilesChannelEndpointAssignmentListInstance } from "./customerProfiles/customerProfilesChannelEndpointAssignment";
7
7
  import { CustomerProfilesEntityAssignmentsListInstance } from "./customerProfiles/customerProfilesEntityAssignments";
8
8
  import { CustomerProfilesEvaluationsListInstance } from "./customerProfiles/customerProfilesEvaluations";
9
- export type CustomerProfileStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
9
+ export type CustomerProfilesStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
10
10
  /**
11
11
  * Options to pass to update a CustomerProfilesInstance
12
12
  */
13
13
  export interface CustomerProfilesContextUpdateOptions {
14
14
  /** */
15
- status?: CustomerProfileStatus;
15
+ status?: CustomerProfilesStatus;
16
16
  /** The URL we call to inform your application of status changes. */
17
17
  statusCallback?: string;
18
18
  /** The string that you assigned to describe the resource. */
@@ -38,7 +38,7 @@ export interface CustomerProfilesListInstanceCreateOptions {
38
38
  */
39
39
  export interface CustomerProfilesListInstanceEachOptions {
40
40
  /** The verification status of the Customer-Profile resource. */
41
- status?: CustomerProfileStatus;
41
+ status?: CustomerProfilesStatus;
42
42
  /** The string that you assigned to describe the resource. */
43
43
  friendlyName?: string;
44
44
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -57,7 +57,7 @@ export interface CustomerProfilesListInstanceEachOptions {
57
57
  */
58
58
  export interface CustomerProfilesListInstanceOptions {
59
59
  /** The verification status of the Customer-Profile resource. */
60
- status?: CustomerProfileStatus;
60
+ status?: CustomerProfilesStatus;
61
61
  /** The string that you assigned to describe the resource. */
62
62
  friendlyName?: string;
63
63
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -72,7 +72,7 @@ export interface CustomerProfilesListInstanceOptions {
72
72
  */
73
73
  export interface CustomerProfilesListInstancePageOptions {
74
74
  /** The verification status of the Customer-Profile resource. */
75
- status?: CustomerProfileStatus;
75
+ status?: CustomerProfilesStatus;
76
76
  /** The string that you assigned to describe the resource. */
77
77
  friendlyName?: string;
78
78
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -160,7 +160,7 @@ interface CustomerProfilesResource {
160
160
  account_sid: string;
161
161
  policy_sid: string;
162
162
  friendly_name: string;
163
- status: CustomerProfileStatus;
163
+ status: CustomerProfilesStatus;
164
164
  valid_until: Date;
165
165
  email: string;
166
166
  status_callback: string;
@@ -190,7 +190,7 @@ export declare class CustomerProfilesInstance {
190
190
  * The string that you assigned to describe the resource.
191
191
  */
192
192
  friendlyName: string;
193
- status: CustomerProfileStatus;
193
+ status: CustomerProfilesStatus;
194
194
  /**
195
195
  * The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until.
196
196
  */
@@ -275,7 +275,7 @@ export declare class CustomerProfilesInstance {
275
275
  accountSid: string;
276
276
  policySid: string;
277
277
  friendlyName: string;
278
- status: CustomerProfileStatus;
278
+ status: CustomerProfilesStatus;
279
279
  validUntil: Date;
280
280
  email: string;
281
281
  statusCallback: string;
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../base/Page";
4
4
  import Response from "../../../../http/response";
5
5
  import V1 from "../../V1";
6
- export type TrustProductEvaluationStatus = "compliant" | "noncompliant";
6
+ export type TrustProductsEvaluationsStatus = "compliant" | "noncompliant";
7
7
  /**
8
8
  * Options to pass to create a TrustProductsEvaluationsInstance
9
9
  */
@@ -85,7 +85,7 @@ interface TrustProductsEvaluationsResource {
85
85
  account_sid: string;
86
86
  policy_sid: string;
87
87
  trust_product_sid: string;
88
- status: TrustProductEvaluationStatus;
88
+ status: TrustProductsEvaluationsStatus;
89
89
  results: Array<any>;
90
90
  date_created: Date;
91
91
  url: string;
@@ -111,7 +111,7 @@ export declare class TrustProductsEvaluationsInstance {
111
111
  * The unique string that we created to identify the trust_product resource.
112
112
  */
113
113
  trustProductSid: string;
114
- status: TrustProductEvaluationStatus;
114
+ status: TrustProductsEvaluationsStatus;
115
115
  /**
116
116
  * The results of the Evaluation which includes the valid and invalid attributes.
117
117
  */
@@ -137,7 +137,7 @@ export declare class TrustProductsEvaluationsInstance {
137
137
  accountSid: string;
138
138
  policySid: string;
139
139
  trustProductSid: string;
140
- status: TrustProductEvaluationStatus;
140
+ status: TrustProductsEvaluationsStatus;
141
141
  results: any[];
142
142
  dateCreated: Date;
143
143
  url: string;
@@ -6,13 +6,13 @@ import V1 from "../V1";
6
6
  import { TrustProductsChannelEndpointAssignmentListInstance } from "./trustProducts/trustProductsChannelEndpointAssignment";
7
7
  import { TrustProductsEntityAssignmentsListInstance } from "./trustProducts/trustProductsEntityAssignments";
8
8
  import { TrustProductsEvaluationsListInstance } from "./trustProducts/trustProductsEvaluations";
9
- export type TrustProductStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
9
+ export type TrustProductsStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
10
10
  /**
11
11
  * Options to pass to update a TrustProductsInstance
12
12
  */
13
13
  export interface TrustProductsContextUpdateOptions {
14
14
  /** */
15
- status?: TrustProductStatus;
15
+ status?: TrustProductsStatus;
16
16
  /** The URL we call to inform your application of status changes. */
17
17
  statusCallback?: string;
18
18
  /** The string that you assigned to describe the resource. */
@@ -38,7 +38,7 @@ export interface TrustProductsListInstanceCreateOptions {
38
38
  */
39
39
  export interface TrustProductsListInstanceEachOptions {
40
40
  /** The verification status of the Customer-Profile resource. */
41
- status?: TrustProductStatus;
41
+ status?: TrustProductsStatus;
42
42
  /** The string that you assigned to describe the resource. */
43
43
  friendlyName?: string;
44
44
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -57,7 +57,7 @@ export interface TrustProductsListInstanceEachOptions {
57
57
  */
58
58
  export interface TrustProductsListInstanceOptions {
59
59
  /** The verification status of the Customer-Profile resource. */
60
- status?: TrustProductStatus;
60
+ status?: TrustProductsStatus;
61
61
  /** The string that you assigned to describe the resource. */
62
62
  friendlyName?: string;
63
63
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -72,7 +72,7 @@ export interface TrustProductsListInstanceOptions {
72
72
  */
73
73
  export interface TrustProductsListInstancePageOptions {
74
74
  /** The verification status of the Customer-Profile resource. */
75
- status?: TrustProductStatus;
75
+ status?: TrustProductsStatus;
76
76
  /** The string that you assigned to describe the resource. */
77
77
  friendlyName?: string;
78
78
  /** The unique string of a policy that is associated to the Customer-Profile resource. */
@@ -160,7 +160,7 @@ interface TrustProductsResource {
160
160
  account_sid: string;
161
161
  policy_sid: string;
162
162
  friendly_name: string;
163
- status: TrustProductStatus;
163
+ status: TrustProductsStatus;
164
164
  valid_until: Date;
165
165
  email: string;
166
166
  status_callback: string;
@@ -190,7 +190,7 @@ export declare class TrustProductsInstance {
190
190
  * The string that you assigned to describe the resource.
191
191
  */
192
192
  friendlyName: string;
193
- status: TrustProductStatus;
193
+ status: TrustProductsStatus;
194
194
  /**
195
195
  * The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until.
196
196
  */
@@ -275,7 +275,7 @@ export declare class TrustProductsInstance {
275
275
  accountSid: string;
276
276
  policySid: string;
277
277
  friendlyName: string;
278
- status: TrustProductStatus;
278
+ status: TrustProductsStatus;
279
279
  validUntil: Date;
280
280
  email: string;
281
281
  statusCallback: string;
@@ -42,7 +42,7 @@ export interface VerificationListInstanceCreateOptions {
42
42
  templateSid?: string;
43
43
  /** A stringified JSON object in which the keys are the template\\\'s special variables and the values are the variables substitutions. */
44
44
  templateCustomSubstitutions?: string;
45
- /** The IP address of the client\\\'s device. If provided, it has to be a valid IPv4 or IPv6 address. */
45
+ /** Strongly encouraged if using the auto channel. The IP address of the client\\\'s device. If provided, it has to be a valid IPv4 or IPv6 address. */
46
46
  deviceIp?: string;
47
47
  }
48
48
  export interface VerificationContext {
@@ -126,7 +126,6 @@ export declare class CompositionContextImpl implements CompositionContext {
126
126
  toJSON(): CompositionContextSolution;
127
127
  [inspect.custom](_depth: any, options: InspectOptions): string;
128
128
  }
129
- export type CompositionStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
130
129
  interface CompositionPayload extends TwilioResponsePayload {
131
130
  compositions: CompositionResource[];
132
131
  }
@@ -149,7 +148,7 @@ interface CompositionResource {
149
148
  duration: number;
150
149
  media_external_location: string;
151
150
  status_callback: string;
152
- status_callback_method: CompositionStatusCallbackMethod;
151
+ status_callback_method: string;
153
152
  url: string;
154
153
  links: Record<string, string>;
155
154
  }
@@ -227,7 +226,7 @@ export declare class CompositionInstance {
227
226
  /**
228
227
  * The HTTP method used to call `status_callback`. Can be: `POST` or `GET`, defaults to `POST`.
229
228
  */
230
- statusCallbackMethod: CompositionStatusCallbackMethod;
229
+ statusCallbackMethod: string;
231
230
  /**
232
231
  * The absolute URL of the resource.
233
232
  */
@@ -277,7 +276,7 @@ export declare class CompositionInstance {
277
276
  duration: number;
278
277
  mediaExternalLocation: string;
279
278
  statusCallback: string;
280
- statusCallbackMethod: CompositionStatusCallbackMethod;
279
+ statusCallbackMethod: string;
281
280
  url: string;
282
281
  links: Record<string, string>;
283
282
  };
@@ -162,7 +162,6 @@ export declare class CompositionHookContextImpl implements CompositionHookContex
162
162
  toJSON(): CompositionHookContextSolution;
163
163
  [inspect.custom](_depth: any, options: InspectOptions): string;
164
164
  }
165
- export type CompositionHookStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
166
165
  interface CompositionHookPayload extends TwilioResponsePayload {
167
166
  composition_hooks: CompositionHookResource[];
168
167
  }
@@ -180,7 +179,7 @@ interface CompositionHookResource {
180
179
  trim: boolean;
181
180
  format: CompositionHookFormat;
182
181
  status_callback: string;
183
- status_callback_method: CompositionHookStatusCallbackMethod;
182
+ status_callback_method: string;
184
183
  url: string;
185
184
  }
186
185
  export declare class CompositionHookInstance {
@@ -240,7 +239,7 @@ export declare class CompositionHookInstance {
240
239
  /**
241
240
  * The HTTP method we should use to call `status_callback`. Can be `POST` or `GET` and defaults to `POST`.
242
241
  */
243
- statusCallbackMethod: CompositionHookStatusCallbackMethod;
242
+ statusCallbackMethod: string;
244
243
  /**
245
244
  * The absolute URL of the resource.
246
245
  */
@@ -290,7 +289,7 @@ export declare class CompositionHookInstance {
290
289
  trim: boolean;
291
290
  format: CompositionHookFormat;
292
291
  statusCallback: string;
293
- statusCallbackMethod: CompositionHookStatusCallbackMethod;
292
+ statusCallbackMethod: string;
294
293
  url: string;
295
294
  };
296
295
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -117,7 +117,6 @@ export declare class RecordingContextImpl implements RecordingContext {
117
117
  toJSON(): RecordingContextSolution;
118
118
  [inspect.custom](_depth: any, options: InspectOptions): string;
119
119
  }
120
- export type RecordingStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
121
120
  interface RecordingPayload extends TwilioResponsePayload {
122
121
  recordings: RecordingResource[];
123
122
  }
@@ -138,7 +137,7 @@ interface RecordingResource {
138
137
  offset: number;
139
138
  media_external_location: string;
140
139
  status_callback: string;
141
- status_callback_method: RecordingStatusCallbackMethod;
140
+ status_callback_method: string;
142
141
  links: Record<string, string>;
143
142
  }
144
143
  export declare class RecordingInstance {
@@ -201,7 +200,7 @@ export declare class RecordingInstance {
201
200
  /**
202
201
  * The HTTP method used to call `status_callback`. Can be: `POST` or `GET`, defaults to `POST`.
203
202
  */
204
- statusCallbackMethod: RecordingStatusCallbackMethod;
203
+ statusCallbackMethod: string;
205
204
  /**
206
205
  * The URLs of related resources.
207
206
  */
@@ -245,7 +244,7 @@ export declare class RecordingInstance {
245
244
  offset: number;
246
245
  mediaExternalLocation: string;
247
246
  statusCallback: string;
248
- statusCallbackMethod: RecordingStatusCallbackMethod;
247
+ statusCallbackMethod: string;
249
248
  links: Record<string, string>;
250
249
  };
251
250
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
3
  import V1 from "../../../V1";
4
- export type RoomParticipantAnonymizeStatus = "connected" | "disconnected";
4
+ export type AnonymizeStatus = "connected" | "disconnected";
5
5
  export interface AnonymizeContext {
6
6
  /**
7
7
  * Update a AnonymizeInstance
@@ -39,7 +39,7 @@ interface AnonymizeResource {
39
39
  sid: string;
40
40
  room_sid: string;
41
41
  account_sid: string;
42
- status: RoomParticipantAnonymizeStatus;
42
+ status: AnonymizeStatus;
43
43
  identity: string;
44
44
  date_created: Date;
45
45
  date_updated: Date;
@@ -65,7 +65,7 @@ export declare class AnonymizeInstance {
65
65
  * The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the RoomParticipant resource.
66
66
  */
67
67
  accountSid: string;
68
- status: RoomParticipantAnonymizeStatus;
68
+ status: AnonymizeStatus;
69
69
  /**
70
70
  * The SID of the participant.
71
71
  */
@@ -112,7 +112,7 @@ export declare class AnonymizeInstance {
112
112
  sid: string;
113
113
  roomSid: string;
114
114
  accountSid: string;
115
- status: RoomParticipantAnonymizeStatus;
115
+ status: AnonymizeStatus;
116
116
  identity: string;
117
117
  dateCreated: Date;
118
118
  dateUpdated: Date;
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V1 from "../../../V1";
6
- export type RoomParticipantPublishedTrackKind = "audio" | "video" | "data";
6
+ export type PublishedTrackKind = "audio" | "video" | "data";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -82,7 +82,7 @@ interface PublishedTrackResource {
82
82
  date_created: Date;
83
83
  date_updated: Date;
84
84
  enabled: boolean;
85
- kind: RoomParticipantPublishedTrackKind;
85
+ kind: PublishedTrackKind;
86
86
  url: string;
87
87
  }
88
88
  export declare class PublishedTrackInstance {
@@ -118,7 +118,7 @@ export declare class PublishedTrackInstance {
118
118
  * Whether the track is enabled.
119
119
  */
120
120
  enabled: boolean;
121
- kind: RoomParticipantPublishedTrackKind;
121
+ kind: PublishedTrackKind;
122
122
  /**
123
123
  * The absolute URL of the resource.
124
124
  */
@@ -145,7 +145,7 @@ export declare class PublishedTrackInstance {
145
145
  dateCreated: Date;
146
146
  dateUpdated: Date;
147
147
  enabled: boolean;
148
- kind: RoomParticipantPublishedTrackKind;
148
+ kind: PublishedTrackKind;
149
149
  url: string;
150
150
  };
151
151
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../../../base/Page";
4
4
  import Response from "../../../../../http/response";
5
5
  import V1 from "../../../V1";
6
- export type RoomParticipantSubscribedTrackKind = "audio" | "video" | "data";
6
+ export type SubscribedTrackKind = "audio" | "video" | "data";
7
7
  /**
8
8
  * Options to pass to each
9
9
  */
@@ -83,7 +83,7 @@ interface SubscribedTrackResource {
83
83
  date_created: Date;
84
84
  date_updated: Date;
85
85
  enabled: boolean;
86
- kind: RoomParticipantSubscribedTrackKind;
86
+ kind: SubscribedTrackKind;
87
87
  url: string;
88
88
  }
89
89
  export declare class SubscribedTrackInstance {
@@ -123,7 +123,7 @@ export declare class SubscribedTrackInstance {
123
123
  * Whether the track is enabled.
124
124
  */
125
125
  enabled: boolean;
126
- kind: RoomParticipantSubscribedTrackKind;
126
+ kind: SubscribedTrackKind;
127
127
  /**
128
128
  * The absolute URL of the resource.
129
129
  */
@@ -151,7 +151,7 @@ export declare class SubscribedTrackInstance {
151
151
  dateCreated: Date;
152
152
  dateUpdated: Date;
153
153
  enabled: boolean;
154
- kind: RoomParticipantSubscribedTrackKind;
154
+ kind: SubscribedTrackKind;
155
155
  url: string;
156
156
  };
157
157
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -7,20 +7,20 @@ import { AnonymizeListInstance } from "./participant/anonymize";
7
7
  import { PublishedTrackListInstance } from "./participant/publishedTrack";
8
8
  import { SubscribeRulesListInstance } from "./participant/subscribeRules";
9
9
  import { SubscribedTrackListInstance } from "./participant/subscribedTrack";
10
- export type RoomParticipantStatus = "connected" | "disconnected";
10
+ export type ParticipantStatus = "connected" | "disconnected";
11
11
  /**
12
12
  * Options to pass to update a ParticipantInstance
13
13
  */
14
14
  export interface ParticipantContextUpdateOptions {
15
15
  /** */
16
- status?: RoomParticipantStatus;
16
+ status?: ParticipantStatus;
17
17
  }
18
18
  /**
19
19
  * Options to pass to each
20
20
  */
21
21
  export interface ParticipantListInstanceEachOptions {
22
22
  /** Read only the participants with this status. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. */
23
- status?: RoomParticipantStatus;
23
+ status?: ParticipantStatus;
24
24
  /** Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. */
25
25
  identity?: string;
26
26
  /** Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. */
@@ -41,7 +41,7 @@ export interface ParticipantListInstanceEachOptions {
41
41
  */
42
42
  export interface ParticipantListInstanceOptions {
43
43
  /** Read only the participants with this status. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. */
44
- status?: RoomParticipantStatus;
44
+ status?: ParticipantStatus;
45
45
  /** Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. */
46
46
  identity?: string;
47
47
  /** Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. */
@@ -58,7 +58,7 @@ export interface ParticipantListInstanceOptions {
58
58
  */
59
59
  export interface ParticipantListInstancePageOptions {
60
60
  /** Read only the participants with this status. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. */
61
- status?: RoomParticipantStatus;
61
+ status?: ParticipantStatus;
62
62
  /** Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. */
63
63
  identity?: string;
64
64
  /** Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. */
@@ -142,7 +142,7 @@ interface ParticipantResource {
142
142
  sid: string;
143
143
  room_sid: string;
144
144
  account_sid: string;
145
- status: RoomParticipantStatus;
145
+ status: ParticipantStatus;
146
146
  identity: string;
147
147
  date_created: Date;
148
148
  date_updated: Date;
@@ -169,7 +169,7 @@ export declare class ParticipantInstance {
169
169
  * The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the RoomParticipant resource.
170
170
  */
171
171
  accountSid: string;
172
- status: RoomParticipantStatus;
172
+ status: ParticipantStatus;
173
173
  /**
174
174
  * The application-defined string that uniquely identifies the resource\'s User within a Room. If a client joins with an existing Identity, the existing client is disconnected. See [access tokens](https://www.twilio.com/docs/video/tutorials/user-identity-access-tokens) and [limits](https://www.twilio.com/docs/video/programmable-video-limits) for more info.
175
175
  */
@@ -253,7 +253,7 @@ export declare class ParticipantInstance {
253
253
  sid: string;
254
254
  roomSid: string;
255
255
  accountSid: string;
256
- status: RoomParticipantStatus;
256
+ status: ParticipantStatus;
257
257
  identity: string;
258
258
  dateCreated: Date;
259
259
  dateUpdated: Date;