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
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Microvisor
9
+ * This is the public Twilio REST API.
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator.
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AppManifestListInstance = exports.AppManifestInstance = exports.AppManifestContextImpl = void 0;
17
+ const util_1 = require("util");
18
+ const deserialize = require("../../../../base/deserialize");
19
+ const serialize = require("../../../../base/serialize");
20
+ const utility_1 = require("../../../../base/utility");
21
+ class AppManifestContextImpl {
22
+ constructor(_version, appSid) {
23
+ this._version = _version;
24
+ if (!(0, utility_1.isValidPathParam)(appSid)) {
25
+ throw new Error("Parameter 'appSid' is not valid.");
26
+ }
27
+ this._solution = { appSid };
28
+ this._uri = `/Apps/${appSid}/Manifest`;
29
+ }
30
+ fetch(callback) {
31
+ const instance = this;
32
+ let operationVersion = instance._version, operationPromise = operationVersion.fetch({
33
+ uri: instance._uri,
34
+ method: "get",
35
+ });
36
+ operationPromise = operationPromise.then((payload) => new AppManifestInstance(operationVersion, payload, instance._solution.appSid));
37
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
38
+ return operationPromise;
39
+ }
40
+ /**
41
+ * Provide a user-friendly representation
42
+ *
43
+ * @returns Object
44
+ */
45
+ toJSON() {
46
+ return this._solution;
47
+ }
48
+ [util_1.inspect.custom](_depth, options) {
49
+ return (0, util_1.inspect)(this.toJSON(), options);
50
+ }
51
+ }
52
+ exports.AppManifestContextImpl = AppManifestContextImpl;
53
+ class AppManifestInstance {
54
+ constructor(_version, payload, appSid) {
55
+ this._version = _version;
56
+ this.appSid = payload.app_sid;
57
+ this.hash = payload.hash;
58
+ this.encodedBytes = payload.encoded_bytes;
59
+ this.url = payload.url;
60
+ this._solution = { appSid };
61
+ }
62
+ get _proxy() {
63
+ this._context =
64
+ this._context ||
65
+ new AppManifestContextImpl(this._version, this._solution.appSid);
66
+ return this._context;
67
+ }
68
+ /**
69
+ * Fetch a AppManifestInstance
70
+ *
71
+ * @param callback - Callback to handle processed record
72
+ *
73
+ * @returns Resolves to processed AppManifestInstance
74
+ */
75
+ fetch(callback) {
76
+ return this._proxy.fetch(callback);
77
+ }
78
+ /**
79
+ * Provide a user-friendly representation
80
+ *
81
+ * @returns Object
82
+ */
83
+ toJSON() {
84
+ return {
85
+ appSid: this.appSid,
86
+ hash: this.hash,
87
+ encodedBytes: this.encodedBytes,
88
+ url: this.url,
89
+ };
90
+ }
91
+ [util_1.inspect.custom](_depth, options) {
92
+ return (0, util_1.inspect)(this.toJSON(), options);
93
+ }
94
+ }
95
+ exports.AppManifestInstance = AppManifestInstance;
96
+ function AppManifestListInstance(version, appSid) {
97
+ if (!(0, utility_1.isValidPathParam)(appSid)) {
98
+ throw new Error("Parameter 'appSid' is not valid.");
99
+ }
100
+ const instance = (() => instance.get());
101
+ instance.get = function get() {
102
+ return new AppManifestContextImpl(version, appSid);
103
+ };
104
+ instance._version = version;
105
+ instance._solution = { appSid };
106
+ instance._uri = ``;
107
+ instance.toJSON = function toJSON() {
108
+ return instance._solution;
109
+ };
110
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
111
+ return (0, util_1.inspect)(instance.toJSON(), options);
112
+ };
113
+ return instance;
114
+ }
115
+ exports.AppManifestListInstance = AppManifestListInstance;
@@ -3,6 +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
+ import { AppManifestListInstance } from "./app/appManifest";
6
7
  /**
7
8
  * Options to pass to each
8
9
  */
@@ -37,6 +38,7 @@ export interface AppListInstancePageOptions {
37
38
  pageToken?: string;
38
39
  }
39
40
  export interface AppContext {
41
+ appManifests: AppManifestListInstance;
40
42
  /**
41
43
  * Remove a AppInstance
42
44
  *
@@ -66,7 +68,9 @@ export declare class AppContextImpl implements AppContext {
66
68
  protected _version: V1;
67
69
  protected _solution: AppContextSolution;
68
70
  protected _uri: string;
71
+ protected _appManifests?: AppManifestListInstance;
69
72
  constructor(_version: V1, sid: string);
73
+ get appManifests(): AppManifestListInstance;
70
74
  remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
71
75
  fetch(callback?: (error: Error | null, item?: AppInstance) => any): Promise<AppInstance>;
72
76
  /**
@@ -88,6 +92,7 @@ interface AppResource {
88
92
  date_created: Date;
89
93
  date_updated: Date;
90
94
  url: string;
95
+ links: Record<string, string>;
91
96
  }
92
97
  export declare class AppInstance {
93
98
  protected _version: V1;
@@ -122,6 +127,7 @@ export declare class AppInstance {
122
127
  * The URL of this resource.
123
128
  */
124
129
  url: string;
130
+ links: Record<string, string>;
125
131
  private get _proxy();
126
132
  /**
127
133
  * Remove a AppInstance
@@ -139,6 +145,10 @@ export declare class AppInstance {
139
145
  * @returns Resolves to processed AppInstance
140
146
  */
141
147
  fetch(callback?: (error: Error | null, item?: AppInstance) => any): Promise<AppInstance>;
148
+ /**
149
+ * Access the appManifests.
150
+ */
151
+ appManifests(): AppManifestListInstance;
142
152
  /**
143
153
  * Provide a user-friendly representation
144
154
  *
@@ -152,6 +162,7 @@ export declare class AppInstance {
152
162
  dateCreated: Date;
153
163
  dateUpdated: Date;
154
164
  url: string;
165
+ links: Record<string, string>;
155
166
  };
156
167
  [inspect.custom](_depth: any, options: InspectOptions): string;
157
168
  }
@@ -22,6 +22,7 @@ const Page_1 = __importDefault(require("../../../base/Page"));
22
22
  const deserialize = require("../../../base/deserialize");
23
23
  const serialize = require("../../../base/serialize");
24
24
  const utility_1 = require("../../../base/utility");
25
+ const appManifest_1 = require("./app/appManifest");
25
26
  class AppContextImpl {
26
27
  constructor(_version, sid) {
27
28
  this._version = _version;
@@ -31,6 +32,12 @@ class AppContextImpl {
31
32
  this._solution = { sid };
32
33
  this._uri = `/Apps/${sid}`;
33
34
  }
35
+ get appManifests() {
36
+ this._appManifests =
37
+ this._appManifests ||
38
+ (0, appManifest_1.AppManifestListInstance)(this._version, this._solution.sid);
39
+ return this._appManifests;
40
+ }
34
41
  remove(callback) {
35
42
  const instance = this;
36
43
  let operationVersion = instance._version, operationPromise = operationVersion.remove({
@@ -73,6 +80,7 @@ class AppInstance {
73
80
  this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
74
81
  this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
75
82
  this.url = payload.url;
83
+ this.links = payload.links;
76
84
  this._solution = { sid: sid || this.sid };
77
85
  }
78
86
  get _proxy() {
@@ -100,6 +108,12 @@ class AppInstance {
100
108
  fetch(callback) {
101
109
  return this._proxy.fetch(callback);
102
110
  }
111
+ /**
112
+ * Access the appManifests.
113
+ */
114
+ appManifests() {
115
+ return this._proxy.appManifests;
116
+ }
103
117
  /**
104
118
  * Provide a user-friendly representation
105
119
  *
@@ -114,6 +128,7 @@ class AppInstance {
114
128
  dateCreated: this.dateCreated,
115
129
  dateUpdated: this.dateUpdated,
116
130
  url: this.url,
131
+ links: this.links,
117
132
  };
118
133
  }
119
134
  [util_1.inspect.custom](_depth, options) {
@@ -86,7 +86,6 @@ export declare class AlertContextImpl implements AlertContext {
86
86
  toJSON(): AlertContextSolution;
87
87
  [inspect.custom](_depth: any, options: InspectOptions): string;
88
88
  }
89
- export type AlertRequestMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
90
89
  interface AlertPayload extends TwilioResponsePayload {
91
90
  alerts: AlertResource[];
92
91
  }
@@ -100,7 +99,7 @@ interface AlertResource {
100
99
  error_code: string;
101
100
  log_level: string;
102
101
  more_info: string;
103
- request_method: AlertRequestMethod;
102
+ request_method: string;
104
103
  request_url: string;
105
104
  request_variables: string;
106
105
  resource_sid: string;
@@ -155,7 +154,7 @@ export declare class AlertInstance {
155
154
  /**
156
155
  * The method used by the request that generated the alert. If the alert was generated by a request we made to your server, this is the method we used. If the alert was generated by a request from your application to our API, this is the method your application used.
157
156
  */
158
- requestMethod: AlertRequestMethod;
157
+ requestMethod: string;
159
158
  /**
160
159
  * The URL of the request that generated the alert. If the alert was generated by a request we made to your server, this is the URL on your server that generated the alert. If the alert was generated by a request from your application to our API, this is the URL of the resource requested.
161
160
  */
@@ -216,7 +215,7 @@ export declare class AlertInstance {
216
215
  errorCode: string;
217
216
  logLevel: string;
218
217
  moreInfo: string;
219
- requestMethod: AlertRequestMethod;
218
+ requestMethod: string;
220
219
  requestUrl: string;
221
220
  requestVariables: string;
222
221
  resourceSid: string;
@@ -157,10 +157,6 @@ export declare class SimContextImpl implements SimContext {
157
157
  toJSON(): SimContextSolution;
158
158
  [inspect.custom](_depth: any, options: InspectOptions): string;
159
159
  }
160
- export type SimSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
161
- export type SimSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
162
- export type SimVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
163
- export type SimVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
164
160
  interface SimPayload extends TwilioResponsePayload {
165
161
  sims: SimResource[];
166
162
  }
@@ -175,13 +171,13 @@ interface SimResource {
175
171
  status: string;
176
172
  commands_callback_url: string;
177
173
  commands_callback_method: string;
178
- sms_fallback_method: SimSmsFallbackMethod;
174
+ sms_fallback_method: string;
179
175
  sms_fallback_url: string;
180
- sms_method: SimSmsMethod;
176
+ sms_method: string;
181
177
  sms_url: string;
182
- voice_fallback_method: SimVoiceFallbackMethod;
178
+ voice_fallback_method: string;
183
179
  voice_fallback_url: string;
184
- voice_method: SimVoiceMethod;
180
+ voice_method: string;
185
181
  voice_url: string;
186
182
  date_created: Date;
187
183
  date_updated: Date;
@@ -203,13 +199,13 @@ export declare class SimInstance {
203
199
  status: string;
204
200
  commandsCallbackUrl: string;
205
201
  commandsCallbackMethod: string;
206
- smsFallbackMethod: SimSmsFallbackMethod;
202
+ smsFallbackMethod: string;
207
203
  smsFallbackUrl: string;
208
- smsMethod: SimSmsMethod;
204
+ smsMethod: string;
209
205
  smsUrl: string;
210
- voiceFallbackMethod: SimVoiceFallbackMethod;
206
+ voiceFallbackMethod: string;
211
207
  voiceFallbackUrl: string;
212
- voiceMethod: SimVoiceMethod;
208
+ voiceMethod: string;
213
209
  voiceUrl: string;
214
210
  dateCreated: Date;
215
211
  dateUpdated: Date;
@@ -261,13 +257,13 @@ export declare class SimInstance {
261
257
  status: string;
262
258
  commandsCallbackUrl: string;
263
259
  commandsCallbackMethod: string;
264
- smsFallbackMethod: SimSmsFallbackMethod;
260
+ smsFallbackMethod: string;
265
261
  smsFallbackUrl: string;
266
- smsMethod: SimSmsMethod;
262
+ smsMethod: string;
267
263
  smsUrl: string;
268
- voiceFallbackMethod: SimVoiceFallbackMethod;
264
+ voiceFallbackMethod: string;
269
265
  voiceFallbackUrl: string;
270
- voiceMethod: SimVoiceMethod;
266
+ voiceMethod: string;
271
267
  voiceUrl: string;
272
268
  dateCreated: Date;
273
269
  dateUpdated: Date;
@@ -12,6 +12,8 @@ export interface EsimProfileListInstanceCreateOptions {
12
12
  callbackUrl?: string;
13
13
  /** The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. */
14
14
  callbackMethod?: string;
15
+ /** When set to `true`, a value for `Eid` does not need to be provided. Instead, when the eSIM profile is reserved, a matching ID will be generated and returned via the `matching_id` property. This identifies the specific eSIM profile that can be used by any capable device to claim and download the profile. */
16
+ generateMatchingId?: boolean;
15
17
  /** Identifier of the eUICC that will claim the eSIM Profile. */
16
18
  eid?: string;
17
19
  }
@@ -109,6 +111,8 @@ interface EsimProfileResource {
109
111
  status: EsimProfileStatus;
110
112
  eid: string;
111
113
  smdp_plus_address: string;
114
+ matching_id: string;
115
+ activation_code: string;
112
116
  error_code: string;
113
117
  error_message: string;
114
118
  date_created: Date;
@@ -145,6 +149,14 @@ export declare class EsimProfileInstance {
145
149
  * Address of the SM-DP+ server from which the Profile will be downloaded. The URL will appear once the eSIM Profile reaches the status `available`.
146
150
  */
147
151
  smdpPlusAddress: string;
152
+ /**
153
+ * Unique identifier of the eSIM profile that can be used to identify and download the eSIM profile from the SM-DP+ server. Populated if `generate_matching_id` is set to `true` when creating the eSIM profile reservation.
154
+ */
155
+ matchingId: string;
156
+ /**
157
+ * Combined machine-readable activation code for acquiring an eSIM Profile with the Activation Code download method. Can be used in a QR code to download an eSIM profile.
158
+ */
159
+ activationCode: string;
148
160
  /**
149
161
  * Code indicating the failure if the download of the SIM Profile failed and the eSIM Profile is in `failed` state.
150
162
  */
@@ -187,6 +199,8 @@ export declare class EsimProfileInstance {
187
199
  status: EsimProfileStatus;
188
200
  eid: string;
189
201
  smdpPlusAddress: string;
202
+ matchingId: string;
203
+ activationCode: string;
190
204
  errorCode: string;
191
205
  errorMessage: string;
192
206
  dateCreated: Date;
@@ -64,6 +64,8 @@ class EsimProfileInstance {
64
64
  this.status = payload.status;
65
65
  this.eid = payload.eid;
66
66
  this.smdpPlusAddress = payload.smdp_plus_address;
67
+ this.matchingId = payload.matching_id;
68
+ this.activationCode = payload.activation_code;
67
69
  this.errorCode = payload.error_code;
68
70
  this.errorMessage = payload.error_message;
69
71
  this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
@@ -101,6 +103,8 @@ class EsimProfileInstance {
101
103
  status: this.status,
102
104
  eid: this.eid,
103
105
  smdpPlusAddress: this.smdpPlusAddress,
106
+ matchingId: this.matchingId,
107
+ activationCode: this.activationCode,
104
108
  errorCode: this.errorCode,
105
109
  errorMessage: this.errorMessage,
106
110
  dateCreated: this.dateCreated,
@@ -134,6 +138,8 @@ function EsimProfileListInstance(version) {
134
138
  data["CallbackUrl"] = params["callbackUrl"];
135
139
  if (params["callbackMethod"] !== undefined)
136
140
  data["CallbackMethod"] = params["callbackMethod"];
141
+ if (params["generateMatchingId"] !== undefined)
142
+ data["GenerateMatchingId"] = serialize.bool(params["generateMatchingId"]);
137
143
  if (params["eid"] !== undefined)
138
144
  data["Eid"] = params["eid"];
139
145
  const headers = {};
@@ -135,8 +135,6 @@ export declare class FleetContextImpl implements FleetContext {
135
135
  toJSON(): FleetContextSolution;
136
136
  [inspect.custom](_depth: any, options: InspectOptions): string;
137
137
  }
138
- export type FleetSmsCommandsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
139
- export type FleetIpCommandsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
140
138
  interface FleetPayload extends TwilioResponsePayload {
141
139
  fleets: FleetResource[];
142
140
  }
@@ -152,10 +150,10 @@ interface FleetResource {
152
150
  data_metering: FleetDataMetering;
153
151
  sms_commands_enabled: boolean;
154
152
  sms_commands_url: string;
155
- sms_commands_method: FleetSmsCommandsMethod;
153
+ sms_commands_method: string;
156
154
  network_access_profile_sid: string;
157
155
  ip_commands_url: string;
158
- ip_commands_method: FleetIpCommandsMethod;
156
+ ip_commands_method: string;
159
157
  }
160
158
  export declare class FleetInstance {
161
159
  protected _version: V1;
@@ -206,7 +204,7 @@ export declare class FleetInstance {
206
204
  /**
207
205
  * A string representing the HTTP method to use when making a request to `sms_commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`.
208
206
  */
209
- smsCommandsMethod: FleetSmsCommandsMethod;
207
+ smsCommandsMethod: string;
210
208
  /**
211
209
  * The SID of the Network Access Profile that controls which cellular networks the Fleet\'s SIMs can connect to.
212
210
  */
@@ -218,7 +216,7 @@ export declare class FleetInstance {
218
216
  /**
219
217
  * A string representing the HTTP method to use when making a request to `ip_commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`.
220
218
  */
221
- ipCommandsMethod: FleetIpCommandsMethod;
219
+ ipCommandsMethod: string;
222
220
  private get _proxy();
223
221
  /**
224
222
  * Fetch a FleetInstance
@@ -262,10 +260,10 @@ export declare class FleetInstance {
262
260
  dataMetering: "payg";
263
261
  smsCommandsEnabled: boolean;
264
262
  smsCommandsUrl: string;
265
- smsCommandsMethod: FleetSmsCommandsMethod;
263
+ smsCommandsMethod: string;
266
264
  networkAccessProfileSid: string;
267
265
  ipCommandsUrl: string;
268
- ipCommandsMethod: FleetIpCommandsMethod;
266
+ ipCommandsMethod: string;
269
267
  };
270
268
  [inspect.custom](_depth: any, options: InspectOptions): string;
271
269
  }
@@ -3,10 +3,10 @@ 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 TaskReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
7
- export type TaskReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
8
- export type TaskReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
9
- export type TaskReservationSupervisorMode = "monitor" | "whisper" | "barge";
6
+ export type ReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
7
+ export type ReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
8
+ export type ReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
9
+ export type ReservationSupervisorMode = "monitor" | "whisper" | "barge";
10
10
  /**
11
11
  * Options to pass to update a ReservationInstance
12
12
  */
@@ -14,7 +14,7 @@ export interface ReservationContextUpdateOptions {
14
14
  /** The If-Match HTTP request header */
15
15
  ifMatch?: string;
16
16
  /** */
17
- reservationStatus?: TaskReservationStatus;
17
+ reservationStatus?: ReservationStatus;
18
18
  /** The new worker activity SID if rejecting a reservation. */
19
19
  workerActivitySid?: string;
20
20
  /** The assignment instruction for reservation. */
@@ -60,7 +60,7 @@ export interface ReservationContextUpdateOptions {
60
60
  /** The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. */
61
61
  statusCallbackMethod?: string;
62
62
  /** The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. */
63
- statusCallbackEvent?: Array<TaskReservationCallStatus>;
63
+ statusCallbackEvent?: Array<ReservationCallStatus>;
64
64
  /** Timeout for call when executing a Conference instruction. */
65
65
  timeout?: number;
66
66
  /** Whether to record the participant and their conferences, including the time between conferences. The default is `false`. */
@@ -86,7 +86,7 @@ export interface ReservationContextUpdateOptions {
86
86
  /** The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. */
87
87
  conferenceStatusCallbackMethod?: string;
88
88
  /** The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. */
89
- conferenceStatusCallbackEvent?: Array<TaskReservationConferenceEvent>;
89
+ conferenceStatusCallbackEvent?: Array<ReservationConferenceEvent>;
90
90
  /** Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. */
91
91
  conferenceRecord?: string;
92
92
  /** How to trim the leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. */
@@ -112,7 +112,7 @@ export interface ReservationContextUpdateOptions {
112
112
  /** The new worker activity SID after executing a Conference instruction. */
113
113
  postWorkActivitySid?: string;
114
114
  /** */
115
- supervisorMode?: TaskReservationSupervisorMode;
115
+ supervisorMode?: ReservationSupervisorMode;
116
116
  /** The Supervisor SID/URI when executing the Supervise instruction. */
117
117
  supervisor?: string;
118
118
  /** Whether to end the conference when the customer leaves. */
@@ -125,7 +125,7 @@ export interface ReservationContextUpdateOptions {
125
125
  */
126
126
  export interface ReservationListInstanceEachOptions {
127
127
  /** Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. */
128
- reservationStatus?: TaskReservationStatus;
128
+ reservationStatus?: ReservationStatus;
129
129
  /** The SID of the reserved Worker resource to read. */
130
130
  workerSid?: string;
131
131
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
@@ -142,7 +142,7 @@ export interface ReservationListInstanceEachOptions {
142
142
  */
143
143
  export interface ReservationListInstanceOptions {
144
144
  /** Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. */
145
- reservationStatus?: TaskReservationStatus;
145
+ reservationStatus?: ReservationStatus;
146
146
  /** The SID of the reserved Worker resource to read. */
147
147
  workerSid?: string;
148
148
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
@@ -155,7 +155,7 @@ export interface ReservationListInstanceOptions {
155
155
  */
156
156
  export interface ReservationListInstancePageOptions {
157
157
  /** Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. */
158
- reservationStatus?: TaskReservationStatus;
158
+ reservationStatus?: ReservationStatus;
159
159
  /** The SID of the reserved Worker resource to read. */
160
160
  workerSid?: string;
161
161
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
@@ -224,7 +224,7 @@ interface ReservationResource {
224
224
  account_sid: string;
225
225
  date_created: Date;
226
226
  date_updated: Date;
227
- reservation_status: TaskReservationStatus;
227
+ reservation_status: ReservationStatus;
228
228
  sid: string;
229
229
  task_sid: string;
230
230
  worker_name: string;
@@ -250,7 +250,7 @@ export declare class ReservationInstance {
250
250
  * The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
251
251
  */
252
252
  dateUpdated: Date;
253
- reservationStatus: TaskReservationStatus;
253
+ reservationStatus: ReservationStatus;
254
254
  /**
255
255
  * The unique string that we created to identify the TaskReservation resource.
256
256
  */
@@ -314,7 +314,7 @@ export declare class ReservationInstance {
314
314
  accountSid: string;
315
315
  dateCreated: Date;
316
316
  dateUpdated: Date;
317
- reservationStatus: TaskReservationStatus;
317
+ reservationStatus: ReservationStatus;
318
318
  sid: string;
319
319
  taskSid: string;
320
320
  workerName: string;
@@ -3,9 +3,9 @@ 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 WorkerReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
7
- export type WorkerReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
8
- export type WorkerReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
6
+ export type ReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
7
+ export type ReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
8
+ export type ReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
9
9
  /**
10
10
  * Options to pass to update a ReservationInstance
11
11
  */
@@ -13,7 +13,7 @@ export interface ReservationContextUpdateOptions {
13
13
  /** The If-Match HTTP request header */
14
14
  ifMatch?: string;
15
15
  /** */
16
- reservationStatus?: WorkerReservationStatus;
16
+ reservationStatus?: ReservationStatus;
17
17
  /** The new worker activity SID if rejecting a reservation. */
18
18
  workerActivitySid?: string;
19
19
  /** The assignment instruction for the reservation. */
@@ -59,7 +59,7 @@ export interface ReservationContextUpdateOptions {
59
59
  /** The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. */
60
60
  statusCallbackMethod?: string;
61
61
  /** The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. */
62
- statusCallbackEvent?: Array<WorkerReservationCallStatus>;
62
+ statusCallbackEvent?: Array<ReservationCallStatus>;
63
63
  /** The timeout for a call when executing a Conference instruction. */
64
64
  timeout?: number;
65
65
  /** Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. */
@@ -85,7 +85,7 @@ export interface ReservationContextUpdateOptions {
85
85
  /** The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. */
86
86
  conferenceStatusCallbackMethod?: string;
87
87
  /** The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. */
88
- conferenceStatusCallbackEvent?: Array<WorkerReservationConferenceEvent>;
88
+ conferenceStatusCallbackEvent?: Array<ReservationConferenceEvent>;
89
89
  /** Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. */
90
90
  conferenceRecord?: string;
91
91
  /** Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. */
@@ -120,7 +120,7 @@ export interface ReservationContextUpdateOptions {
120
120
  */
121
121
  export interface ReservationListInstanceEachOptions {
122
122
  /** Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. */
123
- reservationStatus?: WorkerReservationStatus;
123
+ reservationStatus?: ReservationStatus;
124
124
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
125
125
  pageSize?: number;
126
126
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -135,7 +135,7 @@ export interface ReservationListInstanceEachOptions {
135
135
  */
136
136
  export interface ReservationListInstanceOptions {
137
137
  /** Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. */
138
- reservationStatus?: WorkerReservationStatus;
138
+ reservationStatus?: ReservationStatus;
139
139
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
140
140
  pageSize?: number;
141
141
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -146,7 +146,7 @@ export interface ReservationListInstanceOptions {
146
146
  */
147
147
  export interface ReservationListInstancePageOptions {
148
148
  /** Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. */
149
- reservationStatus?: WorkerReservationStatus;
149
+ reservationStatus?: ReservationStatus;
150
150
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
151
151
  pageSize?: number;
152
152
  /** Page Number, this value is simply for client state */
@@ -213,7 +213,7 @@ interface ReservationResource {
213
213
  account_sid: string;
214
214
  date_created: Date;
215
215
  date_updated: Date;
216
- reservation_status: WorkerReservationStatus;
216
+ reservation_status: ReservationStatus;
217
217
  sid: string;
218
218
  task_sid: string;
219
219
  worker_name: string;
@@ -239,7 +239,7 @@ export declare class ReservationInstance {
239
239
  * The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
240
240
  */
241
241
  dateUpdated: Date;
242
- reservationStatus: WorkerReservationStatus;
242
+ reservationStatus: ReservationStatus;
243
243
  /**
244
244
  * The unique string that we created to identify the WorkerReservation resource.
245
245
  */
@@ -303,7 +303,7 @@ export declare class ReservationInstance {
303
303
  accountSid: string;
304
304
  dateCreated: Date;
305
305
  dateUpdated: Date;
306
- reservationStatus: WorkerReservationStatus;
306
+ reservationStatus: ReservationStatus;
307
307
  sid: string;
308
308
  taskSid: string;
309
309
  workerName: string;