twilio 5.13.1 → 6.0.1

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 (151) hide show
  1. package/README.md +2 -4
  2. package/lib/rest/ConversationsBase.d.ts +3 -0
  3. package/lib/rest/ConversationsBase.js +5 -0
  4. package/lib/rest/InsightsBase.d.ts +3 -0
  5. package/lib/rest/InsightsBase.js +5 -0
  6. package/lib/rest/IntelligenceBase.d.ts +3 -0
  7. package/lib/rest/IntelligenceBase.js +5 -0
  8. package/lib/rest/KnowledgeBase.d.ts +3 -0
  9. package/lib/rest/KnowledgeBase.js +5 -0
  10. package/lib/rest/Memory.d.ts +4 -0
  11. package/lib/rest/Memory.js +8 -0
  12. package/lib/rest/MemoryBase.d.ts +13 -0
  13. package/lib/rest/MemoryBase.js +31 -0
  14. package/lib/rest/MessagingBase.d.ts +3 -0
  15. package/lib/rest/MessagingBase.js +5 -0
  16. package/lib/rest/Twilio.d.ts +5 -0
  17. package/lib/rest/Twilio.js +5 -0
  18. package/lib/rest/VoiceBase.d.ts +3 -0
  19. package/lib/rest/VoiceBase.js +5 -0
  20. package/lib/rest/api/v2010/account/call/recording.d.ts +2 -0
  21. package/lib/rest/api/v2010/account/call/recording.js +4 -0
  22. package/lib/rest/api/v2010/account/call/transcription.d.ts +2 -0
  23. package/lib/rest/api/v2010/account/call/transcription.js +6 -0
  24. package/lib/rest/api/v2010/account/call.d.ts +2 -0
  25. package/lib/rest/api/v2010/account/call.js +4 -0
  26. package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -0
  27. package/lib/rest/api/v2010/account/conference/participant.js +4 -0
  28. package/lib/rest/api/v2010/account/message.d.ts +2 -0
  29. package/lib/rest/api/v2010/account/message.js +4 -0
  30. package/lib/rest/conversations/V2.d.ts +35 -0
  31. package/lib/rest/conversations/V2.js +67 -0
  32. package/lib/rest/conversations/v2/communication.d.ts +479 -0
  33. package/lib/rest/conversations/v2/communication.js +436 -0
  34. package/lib/rest/conversations/v2/configuration.d.ts +906 -0
  35. package/lib/rest/conversations/v2/configuration.js +619 -0
  36. package/lib/rest/conversations/v2/conversation.d.ts +936 -0
  37. package/lib/rest/conversations/v2/conversation.js +664 -0
  38. package/lib/rest/conversations/v2/operation.d.ts +167 -0
  39. package/lib/rest/conversations/v2/operation.js +170 -0
  40. package/lib/rest/conversations/v2/participant.d.ts +469 -0
  41. package/lib/rest/conversations/v2/participant.js +442 -0
  42. package/lib/rest/flexApi/V1.d.ts +0 -5
  43. package/lib/rest/flexApi/V1.js +0 -7
  44. package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +1 -1
  45. package/lib/rest/flexApi/v1/plugin/pluginVersions.js +8 -6
  46. package/lib/rest/iam/V1.d.ts +3 -0
  47. package/lib/rest/iam/V1.js +5 -0
  48. package/lib/rest/iam/v1/rolePermission.d.ts +225 -0
  49. package/lib/rest/iam/v1/rolePermission.js +181 -0
  50. package/lib/rest/insights/V3.d.ts +20 -0
  51. package/lib/rest/insights/V3.js +42 -0
  52. package/lib/rest/insights/v1/call/callSummary.d.ts +10 -10
  53. package/lib/rest/insights/v1/call/event.d.ts +4 -4
  54. package/lib/rest/insights/v1/callSummaries.d.ts +12 -9
  55. package/lib/rest/insights/v2/inbound.d.ts +8 -8
  56. package/lib/rest/insights/v2/inbound.js +4 -4
  57. package/lib/rest/insights/v2/outbound.d.ts +8 -8
  58. package/lib/rest/insights/v2/outbound.js +4 -4
  59. package/lib/rest/insights/v2/report.d.ts +8 -8
  60. package/lib/rest/insights/v2/report.js +4 -4
  61. package/lib/rest/insights/v3/metadata.d.ts +115 -0
  62. package/lib/rest/insights/v3/metadata.js +118 -0
  63. package/lib/rest/insights/v3/query.d.ts +180 -0
  64. package/lib/rest/insights/v3/query.js +214 -0
  65. package/lib/rest/intelligence/V3.d.ts +35 -0
  66. package/lib/rest/intelligence/V3.js +65 -0
  67. package/lib/rest/intelligence/v3/configuration.d.ts +693 -0
  68. package/lib/rest/intelligence/v3/configuration.js +528 -0
  69. package/lib/rest/intelligence/v3/conversation.d.ts +478 -0
  70. package/lib/rest/intelligence/v3/conversation.js +342 -0
  71. package/lib/rest/intelligence/v3/operator.d.ts +619 -0
  72. package/lib/rest/intelligence/v3/operator.js +493 -0
  73. package/lib/rest/intelligence/v3/operatorResult.d.ts +543 -0
  74. package/lib/rest/intelligence/v3/operatorResult.js +478 -0
  75. package/lib/rest/intelligence/v3/version.d.ts +469 -0
  76. package/lib/rest/intelligence/v3/version.js +341 -0
  77. package/lib/rest/knowledge/V2.d.ts +31 -0
  78. package/lib/rest/knowledge/V2.js +62 -0
  79. package/lib/rest/knowledge/v2/chunk.d.ts +209 -0
  80. package/lib/rest/knowledge/v2/chunk.js +178 -0
  81. package/lib/rest/knowledge/v2/knowledge.d.ts +507 -0
  82. package/lib/rest/knowledge/v2/knowledge.js +466 -0
  83. package/lib/rest/knowledge/v2/knowledgeBasis.d.ts +484 -0
  84. package/lib/rest/knowledge/v2/knowledgeBasis.js +441 -0
  85. package/lib/rest/knowledge/v2/operation.d.ts +162 -0
  86. package/lib/rest/knowledge/v2/operation.js +175 -0
  87. package/lib/rest/knowledge/v2/search.d.ts +180 -0
  88. package/lib/rest/{flexApi/v1/createFlexInstance.js → knowledge/v2/search.js} +45 -36
  89. package/lib/rest/memory/V1.d.ts +76 -0
  90. package/lib/rest/memory/V1.js +140 -0
  91. package/lib/rest/memory/v1/bulk.d.ts +129 -0
  92. package/lib/rest/memory/v1/bulk.js +158 -0
  93. package/lib/rest/memory/v1/conversationSummary.d.ts +531 -0
  94. package/lib/rest/memory/v1/conversationSummary.js +473 -0
  95. package/lib/rest/memory/v1/dataMapping.d.ts +630 -0
  96. package/lib/rest/memory/v1/dataMapping.js +512 -0
  97. package/lib/rest/memory/v1/event.d.ts +153 -0
  98. package/lib/rest/memory/v1/event.js +159 -0
  99. package/lib/rest/memory/v1/identifier.d.ts +362 -0
  100. package/lib/rest/memory/v1/identifier.js +369 -0
  101. package/lib/rest/memory/v1/identityResolutionSetting.d.ts +247 -0
  102. package/lib/rest/memory/v1/identityResolutionSetting.js +229 -0
  103. package/lib/rest/memory/v1/import.d.ts +292 -0
  104. package/lib/rest/memory/v1/import.js +280 -0
  105. package/lib/rest/memory/v1/lookup.d.ts +82 -0
  106. package/lib/rest/memory/v1/lookup.js +118 -0
  107. package/lib/rest/memory/v1/observation.d.ts +521 -0
  108. package/lib/rest/memory/v1/observation.js +477 -0
  109. package/lib/rest/memory/v1/operation.d.ts +162 -0
  110. package/lib/rest/memory/v1/operation.js +175 -0
  111. package/lib/rest/memory/v1/profile.d.ts +441 -0
  112. package/lib/rest/memory/v1/profile.js +467 -0
  113. package/lib/rest/memory/v1/recall.d.ts +306 -0
  114. package/lib/rest/memory/v1/recall.js +234 -0
  115. package/lib/rest/memory/v1/revision.d.ts +246 -0
  116. package/lib/rest/memory/v1/revision.js +195 -0
  117. package/lib/rest/memory/v1/store.d.ts +503 -0
  118. package/lib/rest/memory/v1/store.js +482 -0
  119. package/lib/rest/memory/v1/trait.d.ts +233 -0
  120. package/lib/rest/memory/v1/trait.js +190 -0
  121. package/lib/rest/memory/v1/traitGroup.d.ts +758 -0
  122. package/lib/rest/memory/v1/traitGroup.js +555 -0
  123. package/lib/rest/messaging/V3.d.ts +15 -0
  124. package/lib/rest/messaging/V3.js +37 -0
  125. package/lib/rest/messaging/v2/channelsSender.d.ts +9 -1
  126. package/lib/rest/messaging/v2/channelsSender.js +2 -0
  127. package/lib/rest/messaging/v3/typingIndicator.d.ts +90 -0
  128. package/lib/rest/messaging/v3/typingIndicator.js +114 -0
  129. package/lib/rest/numbers/v3/hostedNumberOrder.d.ts +1 -1
  130. package/lib/rest/numbers/v3/hostedNumberOrder.js +2 -1
  131. package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +32 -0
  132. package/lib/rest/previewIam/versionless/organization/roleAssignment.js +14 -0
  133. package/lib/rest/studio/v2/flow/execution.d.ts +12 -0
  134. package/lib/rest/studio/v2/flow/execution.js +6 -0
  135. package/lib/rest/studio/v2/flow.d.ts +4 -0
  136. package/lib/rest/studio/v2/flow.js +8 -0
  137. package/lib/rest/verify/v2/service/approveChallenge.d.ts +6 -6
  138. package/lib/rest/verify/v2/service/approveChallenge.js +2 -2
  139. package/lib/rest/verify/v2/service/newChallenge.d.ts +6 -6
  140. package/lib/rest/verify/v2/service/newChallenge.js +2 -2
  141. package/lib/rest/verify/v2/service/verification.d.ts +1 -1
  142. package/lib/rest/verify/v2/service/webhook.d.ts +2 -2
  143. package/lib/rest/verify/v2/service/webhook.js +8 -8
  144. package/lib/rest/video/v1/room.d.ts +4 -1
  145. package/lib/rest/voice/V3.d.ts +15 -0
  146. package/lib/rest/voice/V3.js +37 -0
  147. package/lib/rest/voice/v3/transcription.d.ts +378 -0
  148. package/lib/rest/voice/v3/transcription.js +264 -0
  149. package/lib/twiml/VoiceResponse.d.ts +18 -0
  150. package/package.json +2 -2
  151. package/lib/rest/flexApi/v1/createFlexInstance.d.ts +0 -165
@@ -0,0 +1,90 @@
1
+ import { inspect, InspectOptions } from "util";
2
+ import V3 from "../V3";
3
+ import { ApiResponse } from "../../../base/ApiResponse";
4
+ /**
5
+ * Request body for sending a typing indicator. The schema varies by channel. Use the `channel` field to determine which properties are required.
6
+ */
7
+ export declare class TypingIndicatorRequest {
8
+ /**
9
+ * The messaging channel. Must be \"APPLE\".
10
+ */
11
+ "channel": string;
12
+ /**
13
+ * The SID of a recent inbound message from the recipient. Must be an SM or MM SID format.
14
+ */
15
+ "messageId": string;
16
+ /**
17
+ * The Apple Messages for Business identifier of the sender (business).
18
+ */
19
+ "from": string;
20
+ /**
21
+ * The Apple Messages for Business identifier of the recipient (customer).
22
+ */
23
+ "to": string;
24
+ /**
25
+ * The type of typing event. \"START\" indicates the agent began typing, \"END\" indicates the agent stopped typing. Defaults to \"START\".
26
+ */
27
+ "event"?: string;
28
+ constructor(payload: any);
29
+ }
30
+ /**
31
+ * Options to pass to create a TypingIndicatorInstance
32
+ */
33
+ export interface TypingIndicatorListInstanceCreateOptions {
34
+ /** */
35
+ typingIndicatorRequest: TypingIndicatorRequest;
36
+ }
37
+ export interface TypingIndicatorSolution {
38
+ }
39
+ export interface TypingIndicatorListInstance {
40
+ _version: V3;
41
+ _solution: TypingIndicatorSolution;
42
+ _uri: string;
43
+ /**
44
+ * Create a TypingIndicatorInstance
45
+ *
46
+ * @param params - Body for request
47
+ * @param headers - header params for request
48
+ * @param callback - Callback to handle processed record
49
+ *
50
+ * @returns Resolves to processed TypingIndicatorInstance
51
+ */
52
+ create(params: TypingIndicatorRequest, headers?: any, callback?: (error: Error | null, item?: TypingIndicatorInstance) => any): Promise<TypingIndicatorInstance>;
53
+ /**
54
+ * Create a TypingIndicatorInstance and return HTTP info
55
+ *
56
+ * @param params - Body for request
57
+ * @param headers - header params for request
58
+ * @param callback - Callback to handle processed record
59
+ *
60
+ * @returns Resolves to processed TypingIndicatorInstance with HTTP metadata
61
+ */
62
+ createWithHttpInfo(params: TypingIndicatorRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<TypingIndicatorInstance>) => any): Promise<ApiResponse<TypingIndicatorInstance>>;
63
+ /**
64
+ * Provide a user-friendly representation
65
+ */
66
+ toJSON(): any;
67
+ [inspect.custom](_depth: any, options: InspectOptions): any;
68
+ }
69
+ export declare function TypingIndicatorListInstance(version: V3): TypingIndicatorListInstance;
70
+ interface TypingIndicatorResource {
71
+ success: boolean;
72
+ }
73
+ export declare class TypingIndicatorInstance {
74
+ protected _version: V3;
75
+ constructor(_version: V3, payload: TypingIndicatorResource);
76
+ /**
77
+ * Indicates if the typing indicator was sent successfully.
78
+ */
79
+ success: boolean;
80
+ /**
81
+ * Provide a user-friendly representation
82
+ *
83
+ * @returns Object
84
+ */
85
+ toJSON(): {
86
+ success: boolean;
87
+ };
88
+ [inspect.custom](_depth: any, options: InspectOptions): string;
89
+ }
90
+ export {};
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Messaging
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.TypingIndicatorInstance = exports.TypingIndicatorRequest = void 0;
17
+ exports.TypingIndicatorListInstance = TypingIndicatorListInstance;
18
+ const util_1 = require("util");
19
+ const deserialize = require("../../../base/deserialize");
20
+ const serialize = require("../../../base/serialize");
21
+ /**
22
+ * Request body for sending a typing indicator. The schema varies by channel. Use the `channel` field to determine which properties are required.
23
+ */
24
+ class TypingIndicatorRequest {
25
+ constructor(payload) {
26
+ this.channel = payload["channel"];
27
+ this.messageId = payload["messageId"];
28
+ this.from = payload["from"];
29
+ this.to = payload["to"];
30
+ this.event = payload["event"];
31
+ }
32
+ }
33
+ exports.TypingIndicatorRequest = TypingIndicatorRequest;
34
+ function TypingIndicatorListInstance(version) {
35
+ const instance = {};
36
+ instance._version = version;
37
+ instance._solution = {};
38
+ instance._uri = `/Indicators/Typing.json`;
39
+ instance.create = function create(params, headers, callback) {
40
+ if (params === null || params === undefined) {
41
+ throw new Error('Required parameter "params" missing.');
42
+ }
43
+ let data = {};
44
+ data = params;
45
+ if (headers === null || headers === undefined) {
46
+ headers = {};
47
+ }
48
+ headers["Content-Type"] = "application/json";
49
+ headers["Accept"] = "application/json";
50
+ let operationVersion = version, operationPromise = operationVersion.create({
51
+ uri: instance._uri,
52
+ method: "post",
53
+ data,
54
+ headers,
55
+ });
56
+ operationPromise = operationPromise.then((payload) => new TypingIndicatorInstance(operationVersion, payload));
57
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
58
+ return operationPromise;
59
+ };
60
+ instance.createWithHttpInfo = function createWithHttpInfo(params, headers, callback) {
61
+ if (params === null || params === undefined) {
62
+ throw new Error('Required parameter "params" missing.');
63
+ }
64
+ let data = {};
65
+ data = params;
66
+ if (headers === null || headers === undefined) {
67
+ headers = {};
68
+ }
69
+ headers["Content-Type"] = "application/json";
70
+ headers["Accept"] = "application/json";
71
+ let operationVersion = version;
72
+ // CREATE, FETCH, UPDATE operations
73
+ let operationPromise = operationVersion
74
+ .createWithResponseInfo({
75
+ uri: instance._uri,
76
+ method: "post",
77
+ data,
78
+ headers,
79
+ })
80
+ .then((response) => ({
81
+ ...response,
82
+ body: new TypingIndicatorInstance(operationVersion, response.body),
83
+ }));
84
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
85
+ return operationPromise;
86
+ };
87
+ instance.toJSON = function toJSON() {
88
+ return instance._solution;
89
+ };
90
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
91
+ return (0, util_1.inspect)(instance.toJSON(), options);
92
+ };
93
+ return instance;
94
+ }
95
+ class TypingIndicatorInstance {
96
+ constructor(_version, payload) {
97
+ this._version = _version;
98
+ this.success = payload.success;
99
+ }
100
+ /**
101
+ * Provide a user-friendly representation
102
+ *
103
+ * @returns Object
104
+ */
105
+ toJSON() {
106
+ return {
107
+ success: this.success,
108
+ };
109
+ }
110
+ [util_1.inspect.custom](_depth, options) {
111
+ return (0, util_1.inspect)(this.toJSON(), options);
112
+ }
113
+ }
114
+ exports.TypingIndicatorInstance = TypingIndicatorInstance;
@@ -101,7 +101,7 @@ interface HostedNumberOrderResource {
101
101
  }
102
102
  export declare class HostedNumberOrderInstance {
103
103
  protected _version: V3;
104
- constructor(_version: V3, payload: HostedNumberOrderResource);
104
+ constructor(_version: V3, _payload: HostedNumberOrderResource);
105
105
  /**
106
106
  * A 34 character string that uniquely identifies this HostedNumberOrder.
107
107
  */
@@ -152,8 +152,9 @@ function HostedNumberOrderListInstance(version) {
152
152
  return instance;
153
153
  }
154
154
  class HostedNumberOrderInstance {
155
- constructor(_version, payload) {
155
+ constructor(_version, _payload) {
156
156
  this._version = _version;
157
+ const payload = _payload;
157
158
  this.sid = payload.sid;
158
159
  this.accountSid = payload.accountSid;
159
160
  this.incomingPhoneNumberSid = payload.incomingPhoneNumberSid;
@@ -16,6 +16,14 @@ export declare class PublicApiCreateRoleAssignmentRequest {
16
16
  * Twilio Sid representing identity of this assignment
17
17
  */
18
18
  "identity": string;
19
+ /**
20
+ * The resource type for resource-level role assignments
21
+ */
22
+ "resourceType"?: string | null;
23
+ /**
24
+ * The resource id for resource-level role assignments
25
+ */
26
+ "resourceId"?: string | null;
19
27
  constructor(payload: any);
20
28
  }
21
29
  /**
@@ -35,6 +43,10 @@ export interface RoleAssignmentListInstanceEachOptions {
35
43
  identity?: string;
36
44
  /** */
37
45
  scope?: string;
46
+ /** Filter by resource type for resource-level role assignments */
47
+ resourceType?: string;
48
+ /** Filter by resource id for resource-level role assignments */
49
+ resourceId?: string;
38
50
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
39
51
  callback?: (item: RoleAssignmentInstance, done: (err?: Error) => void) => void;
40
52
  /** Function to be called upon completion of streaming */
@@ -52,6 +64,10 @@ export interface RoleAssignmentListInstanceOptions {
52
64
  identity?: string;
53
65
  /** */
54
66
  scope?: string;
67
+ /** Filter by resource type for resource-level role assignments */
68
+ resourceType?: string;
69
+ /** Filter by resource id for resource-level role assignments */
70
+ resourceId?: string;
55
71
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
56
72
  limit?: number;
57
73
  }
@@ -65,6 +81,10 @@ export interface RoleAssignmentListInstancePageOptions {
65
81
  identity?: string;
66
82
  /** */
67
83
  scope?: string;
84
+ /** Filter by resource type for resource-level role assignments */
85
+ resourceType?: string;
86
+ /** Filter by resource id for resource-level role assignments */
87
+ resourceId?: string;
68
88
  /** Page Number, this value is simply for client state */
69
89
  pageNumber?: number;
70
90
  /** PageToken provided by the API */
@@ -120,6 +140,8 @@ interface RoleAssignmentResource {
120
140
  role_sid: string;
121
141
  scope: string;
122
142
  identity: string;
143
+ resource_type: string;
144
+ resource_id: string;
123
145
  code: number;
124
146
  message: string;
125
147
  moreInfo: string;
@@ -146,6 +168,14 @@ export declare class RoleAssignmentInstance {
146
168
  * Twilio Sid representing scope of this assignment
147
169
  */
148
170
  identity: string;
171
+ /**
172
+ * The resource type for resource-level role assignments
173
+ */
174
+ resourceType: string;
175
+ /**
176
+ * The resource id for resource-level role assignments
177
+ */
178
+ resourceId: string;
149
179
  /**
150
180
  * Twilio-specific error code
151
181
  */
@@ -189,6 +219,8 @@ export declare class RoleAssignmentInstance {
189
219
  roleSid: string;
190
220
  scope: string;
191
221
  identity: string;
222
+ resourceType: string;
223
+ resourceId: string;
192
224
  code: number;
193
225
  message: string;
194
226
  moreInfo: string;
@@ -28,6 +28,8 @@ class PublicApiCreateRoleAssignmentRequest {
28
28
  this.roleSid = payload["role_sid"];
29
29
  this.scope = payload["scope"];
30
30
  this.identity = payload["identity"];
31
+ this.resourceType = payload["resource_type"];
32
+ this.resourceId = payload["resource_id"];
31
33
  }
32
34
  }
33
35
  exports.PublicApiCreateRoleAssignmentRequest = PublicApiCreateRoleAssignmentRequest;
@@ -88,6 +90,8 @@ class RoleAssignmentInstance {
88
90
  this.roleSid = payload.role_sid;
89
91
  this.scope = payload.scope;
90
92
  this.identity = payload.identity;
93
+ this.resourceType = payload.resource_type;
94
+ this.resourceId = payload.resource_id;
91
95
  this.code = payload.code;
92
96
  this.message = payload.message;
93
97
  this.moreInfo = payload.moreInfo;
@@ -131,6 +135,8 @@ class RoleAssignmentInstance {
131
135
  roleSid: this.roleSid,
132
136
  scope: this.scope,
133
137
  identity: this.identity,
138
+ resourceType: this.resourceType,
139
+ resourceId: this.resourceId,
134
140
  code: this.code,
135
141
  message: this.message,
136
142
  moreInfo: this.moreInfo,
@@ -216,6 +222,10 @@ function RoleAssignmentListInstance(version, organizationSid) {
216
222
  data["Identity"] = params["identity"];
217
223
  if (params["scope"] !== undefined)
218
224
  data["Scope"] = params["scope"];
225
+ if (params["resourceType"] !== undefined)
226
+ data["ResourceType"] = params["resourceType"];
227
+ if (params["resourceId"] !== undefined)
228
+ data["ResourceId"] = params["resourceId"];
219
229
  if (params.pageNumber !== undefined)
220
230
  data["Page"] = params.pageNumber;
221
231
  if (params.pageToken !== undefined)
@@ -258,6 +268,10 @@ function RoleAssignmentListInstance(version, organizationSid) {
258
268
  data["Identity"] = params["identity"];
259
269
  if (params["scope"] !== undefined)
260
270
  data["Scope"] = params["scope"];
271
+ if (params["resourceType"] !== undefined)
272
+ data["ResourceType"] = params["resourceType"];
273
+ if (params["resourceId"] !== undefined)
274
+ data["ResourceId"] = params["resourceId"];
261
275
  if (params.pageNumber !== undefined)
262
276
  data["Page"] = params.pageNumber;
263
277
  if (params.pageToken !== undefined)
@@ -31,6 +31,8 @@ export interface ExecutionListInstanceCreateOptions {
31
31
  * Options to pass to each
32
32
  */
33
33
  export interface ExecutionListInstanceEachOptions {
34
+ /** Only show Execution resources with the given status. Can be: `active` or `ended`. */
35
+ status?: ExecutionStatus;
34
36
  /** Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
35
37
  dateCreatedFrom?: Date;
36
38
  /** Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
@@ -48,6 +50,8 @@ export interface ExecutionListInstanceEachOptions {
48
50
  * Options to pass to list
49
51
  */
50
52
  export interface ExecutionListInstanceOptions {
53
+ /** Only show Execution resources with the given status. Can be: `active` or `ended`. */
54
+ status?: ExecutionStatus;
51
55
  /** Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
52
56
  dateCreatedFrom?: Date;
53
57
  /** Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
@@ -61,6 +65,8 @@ export interface ExecutionListInstanceOptions {
61
65
  * Options to pass to page
62
66
  */
63
67
  export interface ExecutionListInstancePageOptions {
68
+ /** Only show Execution resources with the given status. Can be: `active` or `ended`. */
69
+ status?: ExecutionStatus;
64
70
  /** Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
65
71
  dateCreatedFrom?: Date;
66
72
  /** Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
@@ -172,6 +178,7 @@ interface ExecutionResource {
172
178
  status: ExecutionStatus;
173
179
  date_created: Date;
174
180
  date_updated: Date;
181
+ initiated_by: string;
175
182
  url: string;
176
183
  links: Record<string, string>;
177
184
  }
@@ -217,6 +224,10 @@ export declare class ExecutionInstance {
217
224
  * The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
218
225
  */
219
226
  dateUpdated: Date;
227
+ /**
228
+ * The SID or identifier that triggered this Execution. For example, a Call SID if triggered by an incoming call, a Message SID if triggered by an incoming message, a Request SID if triggered by a REST API request, and so on.
229
+ */
230
+ initiatedBy: string;
220
231
  /**
221
232
  * The absolute URL of the resource.
222
233
  */
@@ -300,6 +311,7 @@ export declare class ExecutionInstance {
300
311
  status: ExecutionStatus;
301
312
  dateCreated: Date;
302
313
  dateUpdated: Date;
314
+ initiatedBy: string;
303
315
  url: string;
304
316
  links: Record<string, string>;
305
317
  };
@@ -184,6 +184,7 @@ class ExecutionInstance {
184
184
  this.status = payload.status;
185
185
  this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
186
186
  this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
187
+ this.initiatedBy = payload.initiated_by;
187
188
  this.url = payload.url;
188
189
  this.links = payload.links;
189
190
  this._solution = { flowSid, sid: sid || this.sid };
@@ -269,6 +270,7 @@ class ExecutionInstance {
269
270
  status: this.status,
270
271
  dateCreated: this.dateCreated,
271
272
  dateUpdated: this.dateUpdated,
273
+ initiatedBy: this.initiatedBy,
272
274
  url: this.url,
273
275
  links: this.links,
274
276
  };
@@ -360,6 +362,8 @@ function ExecutionListInstance(version, flowSid) {
360
362
  params = params || {};
361
363
  }
362
364
  let data = {};
365
+ if (params["status"] !== undefined)
366
+ data["status"] = params["status"];
363
367
  if (params["dateCreatedFrom"] !== undefined)
364
368
  data["DateCreatedFrom"] = serialize.iso8601DateTime(params["dateCreatedFrom"]);
365
369
  if (params["dateCreatedTo"] !== undefined)
@@ -402,6 +406,8 @@ function ExecutionListInstance(version, flowSid) {
402
406
  params = params || {};
403
407
  }
404
408
  let data = {};
409
+ if (params["status"] !== undefined)
410
+ data["status"] = params["status"];
405
411
  if (params["dateCreatedFrom"] !== undefined)
406
412
  data["DateCreatedFrom"] = serialize.iso8601DateTime(params["dateCreatedFrom"]);
407
413
  if (params["dateCreatedTo"] !== undefined)
@@ -22,6 +22,8 @@ export interface FlowContextUpdateOptions {
22
22
  definition?: any;
23
23
  /** Description of change made in the revision. */
24
24
  commitMessage?: string;
25
+ /** The SID of the User that created or last updated the Flow. */
26
+ authorSid?: string;
25
27
  }
26
28
  /**
27
29
  * Options to pass to create a FlowInstance
@@ -35,6 +37,8 @@ export interface FlowListInstanceCreateOptions {
35
37
  definition: any;
36
38
  /** Description of change made in the revision. */
37
39
  commitMessage?: string;
40
+ /** The SID of the User that created the Flow. */
41
+ authorSid?: string;
38
42
  }
39
43
  /**
40
44
  * Options to pass to each
@@ -125,6 +125,8 @@ class FlowContextImpl {
125
125
  data["Definition"] = serialize.object(params["definition"]);
126
126
  if (params["commitMessage"] !== undefined)
127
127
  data["CommitMessage"] = params["commitMessage"];
128
+ if (params["authorSid"] !== undefined)
129
+ data["AuthorSid"] = params["authorSid"];
128
130
  const headers = {};
129
131
  headers["Content-Type"] = "application/x-www-form-urlencoded";
130
132
  headers["Accept"] = "application/json";
@@ -154,6 +156,8 @@ class FlowContextImpl {
154
156
  data["Definition"] = serialize.object(params["definition"]);
155
157
  if (params["commitMessage"] !== undefined)
156
158
  data["CommitMessage"] = params["commitMessage"];
159
+ if (params["authorSid"] !== undefined)
160
+ data["AuthorSid"] = params["authorSid"];
157
161
  const headers = {};
158
162
  headers["Content-Type"] = "application/x-www-form-urlencoded";
159
163
  headers["Accept"] = "application/json";
@@ -335,6 +339,8 @@ function FlowListInstance(version) {
335
339
  data["Definition"] = serialize.object(params["definition"]);
336
340
  if (params["commitMessage"] !== undefined)
337
341
  data["CommitMessage"] = params["commitMessage"];
342
+ if (params["authorSid"] !== undefined)
343
+ data["AuthorSid"] = params["authorSid"];
338
344
  const headers = {};
339
345
  headers["Content-Type"] = "application/x-www-form-urlencoded";
340
346
  headers["Accept"] = "application/json";
@@ -368,6 +374,8 @@ function FlowListInstance(version) {
368
374
  data["Definition"] = serialize.object(params["definition"]);
369
375
  if (params["commitMessage"] !== undefined)
370
376
  data["CommitMessage"] = params["commitMessage"];
377
+ if (params["authorSid"] !== undefined)
378
+ data["AuthorSid"] = params["authorSid"];
371
379
  const headers = {};
372
380
  headers["Content-Type"] = "application/x-www-form-urlencoded";
373
381
  headers["Accept"] = "application/json";
@@ -85,7 +85,6 @@ export interface ApproveChallengeListInstance {
85
85
  }
86
86
  export declare function ApproveChallengeListInstance(version: V2, serviceSid: string): ApproveChallengeListInstance;
87
87
  interface ApproveChallengeResource {
88
- options: Record<string, object>;
89
88
  sid: string;
90
89
  account_sid: string;
91
90
  service_sid: string;
@@ -104,14 +103,11 @@ interface ApproveChallengeResource {
104
103
  factor_type: string;
105
104
  url: string;
106
105
  links: Record<string, string>;
106
+ options: Record<string, object>;
107
107
  }
108
108
  export declare class ApproveChallengeInstance {
109
109
  protected _version: V2;
110
110
  constructor(_version: V2, payload: ApproveChallengeResource, serviceSid: string);
111
- /**
112
- * An object that contains challenge options. Currently only used for `passkeys`.
113
- */
114
- options: Record<string, object>;
115
111
  /**
116
112
  * A 34 character string that uniquely identifies this Challenge.
117
113
  */
@@ -184,13 +180,16 @@ export declare class ApproveChallengeInstance {
184
180
  * Contains a dictionary of URL links to nested resources of this Challenge.
185
181
  */
186
182
  links: Record<string, string>;
183
+ /**
184
+ * An object that contains challenge options. Currently only used for `passkeys`.
185
+ */
186
+ options: Record<string, object>;
187
187
  /**
188
188
  * Provide a user-friendly representation
189
189
  *
190
190
  * @returns Object
191
191
  */
192
192
  toJSON(): {
193
- options: Record<string, object>;
194
193
  sid: string;
195
194
  accountSid: string;
196
195
  serviceSid: string;
@@ -209,6 +208,7 @@ export declare class ApproveChallengeInstance {
209
208
  factorType: string;
210
209
  url: string;
211
210
  links: Record<string, string>;
211
+ options: Record<string, object>;
212
212
  };
213
213
  [inspect.custom](_depth: any, options: InspectOptions): string;
214
214
  }
@@ -108,7 +108,6 @@ function ApproveChallengeListInstance(version, serviceSid) {
108
108
  class ApproveChallengeInstance {
109
109
  constructor(_version, payload, serviceSid) {
110
110
  this._version = _version;
111
- this.options = payload.options;
112
111
  this.sid = payload.sid;
113
112
  this.accountSid = payload.account_sid;
114
113
  this.serviceSid = payload.service_sid;
@@ -127,6 +126,7 @@ class ApproveChallengeInstance {
127
126
  this.factorType = payload.factor_type;
128
127
  this.url = payload.url;
129
128
  this.links = payload.links;
129
+ this.options = payload.options;
130
130
  }
131
131
  /**
132
132
  * Provide a user-friendly representation
@@ -135,7 +135,6 @@ class ApproveChallengeInstance {
135
135
  */
136
136
  toJSON() {
137
137
  return {
138
- options: this.options,
139
138
  sid: this.sid,
140
139
  accountSid: this.accountSid,
141
140
  serviceSid: this.serviceSid,
@@ -154,6 +153,7 @@ class ApproveChallengeInstance {
154
153
  factorType: this.factorType,
155
154
  url: this.url,
156
155
  links: this.links,
156
+ options: this.options,
157
157
  };
158
158
  }
159
159
  [util_1.inspect.custom](_depth, options) {
@@ -59,7 +59,6 @@ export declare class NewChallengeContextImpl implements NewChallengeContext {
59
59
  [inspect.custom](_depth: any, options: InspectOptions): string;
60
60
  }
61
61
  interface NewChallengeResource {
62
- options: Record<string, object>;
63
62
  sid: string;
64
63
  account_sid: string;
65
64
  service_sid: string;
@@ -78,16 +77,13 @@ interface NewChallengeResource {
78
77
  factor_type: string;
79
78
  url: string;
80
79
  links: Record<string, string>;
80
+ options: Record<string, object>;
81
81
  }
82
82
  export declare class NewChallengeInstance {
83
83
  protected _version: V2;
84
84
  protected _solution: NewChallengeContextSolution;
85
85
  protected _context?: NewChallengeContext;
86
86
  constructor(_version: V2, payload: NewChallengeResource, serviceSid: string);
87
- /**
88
- * An object that contains challenge options. Currently only used for `passkeys`.
89
- */
90
- options: Record<string, object>;
91
87
  /**
92
88
  * A 34 character string that uniquely identifies this Challenge.
93
89
  */
@@ -160,6 +156,10 @@ export declare class NewChallengeInstance {
160
156
  * Contains a dictionary of URL links to nested resources of this Challenge.
161
157
  */
162
158
  links: Record<string, string>;
159
+ /**
160
+ * An object that contains challenge options. Currently only used for `passkeys`.
161
+ */
162
+ options: Record<string, object>;
163
163
  private get _proxy();
164
164
  /**
165
165
  * Create a NewChallengeInstance
@@ -187,7 +187,6 @@ export declare class NewChallengeInstance {
187
187
  * @returns Object
188
188
  */
189
189
  toJSON(): {
190
- options: Record<string, object>;
191
190
  sid: string;
192
191
  accountSid: string;
193
192
  serviceSid: string;
@@ -206,6 +205,7 @@ export declare class NewChallengeInstance {
206
205
  factorType: string;
207
206
  url: string;
208
207
  links: Record<string, string>;
208
+ options: Record<string, object>;
209
209
  };
210
210
  [inspect.custom](_depth: any, options: InspectOptions): string;
211
211
  }
@@ -101,7 +101,6 @@ exports.NewChallengeContextImpl = NewChallengeContextImpl;
101
101
  class NewChallengeInstance {
102
102
  constructor(_version, payload, serviceSid) {
103
103
  this._version = _version;
104
- this.options = payload.options;
105
104
  this.sid = payload.sid;
106
105
  this.accountSid = payload.account_sid;
107
106
  this.serviceSid = payload.service_sid;
@@ -120,6 +119,7 @@ class NewChallengeInstance {
120
119
  this.factorType = payload.factor_type;
121
120
  this.url = payload.url;
122
121
  this.links = payload.links;
122
+ this.options = payload.options;
123
123
  this._solution = { serviceSid };
124
124
  }
125
125
  get _proxy() {
@@ -141,7 +141,6 @@ class NewChallengeInstance {
141
141
  */
142
142
  toJSON() {
143
143
  return {
144
- options: this.options,
145
144
  sid: this.sid,
146
145
  accountSid: this.accountSid,
147
146
  serviceSid: this.serviceSid,
@@ -160,6 +159,7 @@ class NewChallengeInstance {
160
159
  factorType: this.factorType,
161
160
  url: this.url,
162
161
  links: this.links,
162
+ options: this.options,
163
163
  };
164
164
  }
165
165
  [util_1.inspect.custom](_depth, options) {
@@ -58,7 +58,7 @@ export interface VerificationListInstanceCreateOptions {
58
58
  enableSnaClientToken?: boolean;
59
59
  /** */
60
60
  riskCheck?: VerificationRiskCheck;
61
- /** A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. */
61
+ /** A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The tags will also be included as part of the verification and message status event type payloads. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. **This value should not contain PII.** */
62
62
  tags?: string;
63
63
  }
64
64
  export interface VerificationContext {