twilio 3.83.2 → 3.83.4

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 (51) hide show
  1. package/LICENSE +1 -1
  2. package/lib/rest/Content.d.ts +26 -0
  3. package/lib/rest/Content.js +54 -0
  4. package/lib/rest/FlexApi.d.ts +2 -0
  5. package/lib/rest/FlexApi.js +8 -0
  6. package/lib/rest/Messaging.d.ts +4 -0
  7. package/lib/rest/Messaging.js +18 -0
  8. package/lib/rest/Preview.d.ts +0 -10
  9. package/lib/rest/Preview.js +0 -46
  10. package/lib/rest/Twilio.d.ts +2 -0
  11. package/lib/rest/Twilio.js +14 -0
  12. package/lib/rest/content/V1.d.ts +25 -0
  13. package/lib/rest/content/V1.js +46 -0
  14. package/lib/rest/content/v1/content/approvalFetch.d.ts +139 -0
  15. package/lib/rest/content/v1/content/approvalFetch.js +328 -0
  16. package/lib/rest/content/v1/content.d.ts +323 -0
  17. package/lib/rest/content/v1/content.js +668 -0
  18. package/lib/rest/flexApi/V1.d.ts +3 -0
  19. package/lib/rest/flexApi/V1.js +11 -0
  20. package/lib/rest/flexApi/v1/assessments.d.ts +113 -0
  21. package/lib/rest/flexApi/v1/assessments.js +300 -0
  22. package/lib/rest/flexApi/v1/goodData.d.ts +2 -0
  23. package/lib/rest/flexApi/v1/goodData.js +2 -0
  24. package/lib/rest/insights/v1/call/summary.d.ts +5 -1
  25. package/lib/rest/insights/v1/call/summary.js +2 -0
  26. package/lib/rest/insights/v1/callSummaries.d.ts +5 -1
  27. package/lib/rest/insights/v1/callSummaries.js +2 -0
  28. package/lib/rest/lookups/v2/phoneNumber.d.ts +22 -0
  29. package/lib/rest/lookups/v2/phoneNumber.js +43 -1
  30. package/lib/rest/messaging/V1.d.ts +6 -0
  31. package/lib/rest/messaging/V1.js +24 -0
  32. package/lib/rest/messaging/v1/domainCert.d.ts +178 -0
  33. package/lib/rest/messaging/v1/domainCert.js +447 -0
  34. package/lib/rest/messaging/v1/domainConfig.d.ts +172 -0
  35. package/lib/rest/messaging/v1/domainConfig.js +421 -0
  36. package/lib/rest/microvisor/v1/device.d.ts +2 -0
  37. package/lib/rest/microvisor/v1/device.js +2 -0
  38. package/lib/rest/serverless/v1/service/build.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/lib/rest/preview/TrustedComms.d.ts +0 -34
  41. package/lib/rest/preview/TrustedComms.js +0 -84
  42. package/lib/rest/preview/trusted_comms/brandedChannel/channel.d.ts +0 -120
  43. package/lib/rest/preview/trusted_comms/brandedChannel/channel.js +0 -257
  44. package/lib/rest/preview/trusted_comms/brandedChannel.d.ts +0 -150
  45. package/lib/rest/preview/trusted_comms/brandedChannel.js +0 -362
  46. package/lib/rest/preview/trusted_comms/brandsInformation.d.ts +0 -158
  47. package/lib/rest/preview/trusted_comms/brandsInformation.js +0 -338
  48. package/lib/rest/preview/trusted_comms/cps.d.ts +0 -156
  49. package/lib/rest/preview/trusted_comms/cps.js +0 -332
  50. package/lib/rest/preview/trusted_comms/currentCall.d.ts +0 -180
  51. package/lib/rest/preview/trusted_comms/currentCall.js +0 -367
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (C) 2021, Twilio, Inc. <help@twilio.com>
3
+ Copyright (C) 2022, Twilio, Inc. <help@twilio.com>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
@@ -0,0 +1,26 @@
1
+ /**
2
+ * This code was generated by
3
+ * \ / _ _ _| _ _
4
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ * / /
6
+ */
7
+
8
+ import Domain = require('../base/Domain');
9
+ import Twilio = require('./Twilio');
10
+ import V1 = require('./content/V1');
11
+ import { ContentListInstance } from './content/v1/content';
12
+
13
+
14
+ declare class Content extends Domain {
15
+ /**
16
+ * Initialize content domain
17
+ *
18
+ * @param twilio - The twilio client
19
+ */
20
+ constructor(twilio: Twilio);
21
+
22
+ readonly contents: ContentListInstance;
23
+ readonly v1: V1;
24
+ }
25
+
26
+ export = Content;
@@ -0,0 +1,54 @@
1
+ 'use strict';
2
+
3
+ /* jshint ignore:start */
4
+ /**
5
+ * This code was generated by
6
+ * \ / _ _ _| _ _
7
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
8
+ * / /
9
+ */
10
+ /* jshint ignore:end */
11
+
12
+ var _ = require('lodash'); /* jshint ignore:line */
13
+ var Domain = require('../base/Domain'); /* jshint ignore:line */
14
+ var V1 = require('./content/V1'); /* jshint ignore:line */
15
+
16
+
17
+ /* jshint ignore:start */
18
+ /**
19
+ * Initialize content domain
20
+ *
21
+ * @constructor Twilio.Content
22
+ *
23
+ * @property {Twilio.Content.V1} v1 - v1 version
24
+ * @property {Twilio.Content.V1.ContentList} contents - contents resource
25
+ *
26
+ * @param {Twilio} twilio - The twilio client
27
+ */
28
+ /* jshint ignore:end */
29
+ function Content(twilio) {
30
+ Domain.prototype.constructor.call(this, twilio, 'https://content.twilio.com');
31
+
32
+ // Versions
33
+ this._v1 = undefined;
34
+ }
35
+
36
+ _.extend(Content.prototype, Domain.prototype);
37
+ Content.prototype.constructor = Content;
38
+
39
+ Object.defineProperty(Content.prototype,
40
+ 'v1', {
41
+ get: function() {
42
+ this._v1 = this._v1 || new V1(this);
43
+ return this._v1;
44
+ }
45
+ });
46
+
47
+ Object.defineProperty(Content.prototype,
48
+ 'contents', {
49
+ get: function() {
50
+ return this.v1.contents;
51
+ }
52
+ });
53
+
54
+ module.exports = Content;
@@ -8,6 +8,7 @@
8
8
  import Domain = require('../base/Domain');
9
9
  import Twilio = require('./Twilio');
10
10
  import V1 = require('./flexApi/V1');
11
+ import { AssessmentsListInstance } from './flexApi/v1/assessments';
11
12
  import { ChannelListInstance } from './flexApi/v1/channel';
12
13
  import { ConfigurationListInstance } from './flexApi/v1/configuration';
13
14
  import { FlexFlowListInstance } from './flexApi/v1/flexFlow';
@@ -25,6 +26,7 @@ declare class FlexApi extends Domain {
25
26
  */
26
27
  constructor(twilio: Twilio);
27
28
 
29
+ readonly assessments: AssessmentsListInstance;
28
30
  readonly channel: ChannelListInstance;
29
31
  readonly configuration: ConfigurationListInstance;
30
32
  readonly flexFlow: FlexFlowListInstance;
@@ -21,6 +21,7 @@ var V1 = require('./flexApi/V1'); /* jshint ignore:line */
21
21
  * @constructor Twilio.FlexApi
22
22
  *
23
23
  * @property {Twilio.FlexApi.V1} v1 - v1 version
24
+ * @property {Twilio.FlexApi.V1.AssessmentsList} assessments - assessments resource
24
25
  * @property {Twilio.FlexApi.V1.ChannelList} channel - channel resource
25
26
  * @property {Twilio.FlexApi.V1.ConfigurationList} configuration -
26
27
  * configuration resource
@@ -51,6 +52,13 @@ Object.defineProperty(FlexApi.prototype,
51
52
  }
52
53
  });
53
54
 
55
+ Object.defineProperty(FlexApi.prototype,
56
+ 'assessments', {
57
+ get: function() {
58
+ return this.v1.assessments;
59
+ }
60
+ });
61
+
54
62
  Object.defineProperty(FlexApi.prototype,
55
63
  'channel', {
56
64
  get: function() {
@@ -10,6 +10,8 @@ import Twilio = require('./Twilio');
10
10
  import V1 = require('./messaging/V1');
11
11
  import { BrandRegistrationListInstance } from './messaging/v1/brandRegistration';
12
12
  import { DeactivationsListInstance } from './messaging/v1/deactivation';
13
+ import { DomainCertsListInstance } from './messaging/v1/domainCert';
14
+ import { DomainConfigListInstance } from './messaging/v1/domainConfig';
13
15
  import { ExternalCampaignListInstance } from './messaging/v1/externalCampaign';
14
16
  import { ServiceListInstance } from './messaging/v1/service';
15
17
  import { TollfreeVerificationListInstance } from './messaging/v1/tollfreeVerification';
@@ -26,6 +28,8 @@ declare class Messaging extends Domain {
26
28
 
27
29
  readonly brandRegistrations: BrandRegistrationListInstance;
28
30
  readonly deactivations: DeactivationsListInstance;
31
+ readonly domainCerts: DomainCertsListInstance;
32
+ readonly domainConfig: DomainConfigListInstance;
29
33
  readonly externalCampaign: ExternalCampaignListInstance;
30
34
  readonly services: ServiceListInstance;
31
35
  readonly tollfreeVerifications: TollfreeVerificationListInstance;
@@ -25,6 +25,10 @@ var V1 = require('./messaging/V1'); /* jshint ignore:line */
25
25
  * brandRegistrations resource
26
26
  * @property {Twilio.Messaging.V1.DeactivationsList} deactivations -
27
27
  * deactivations resource
28
+ * @property {Twilio.Messaging.V1.DomainCertsList} domainCerts -
29
+ * domainCerts resource
30
+ * @property {Twilio.Messaging.V1.DomainConfigList} domainConfig -
31
+ * domainConfig resource
28
32
  * @property {Twilio.Messaging.V1.ExternalCampaignList} externalCampaign -
29
33
  * externalCampaign resource
30
34
  * @property {Twilio.Messaging.V1.ServiceList} services - services resource
@@ -67,6 +71,20 @@ Object.defineProperty(Messaging.prototype,
67
71
  }
68
72
  });
69
73
 
74
+ Object.defineProperty(Messaging.prototype,
75
+ 'domainCerts', {
76
+ get: function() {
77
+ return this.v1.domainCerts;
78
+ }
79
+ });
80
+
81
+ Object.defineProperty(Messaging.prototype,
82
+ 'domainConfig', {
83
+ get: function() {
84
+ return this.v1.domainConfig;
85
+ }
86
+ });
87
+
70
88
  Object.defineProperty(Messaging.prototype,
71
89
  'externalCampaign', {
72
90
  get: function() {
@@ -10,18 +10,13 @@ import Domain = require('../base/Domain');
10
10
  import HostedNumbers = require('./preview/HostedNumbers');
11
11
  import Marketplace = require('./preview/Marketplace');
12
12
  import Sync = require('./preview/Sync');
13
- import TrustedComms = require('./preview/TrustedComms');
14
13
  import Twilio = require('./Twilio');
15
14
  import Understand = require('./preview/Understand');
16
15
  import Wireless = require('./preview/Wireless');
17
16
  import { AssistantListInstance } from './preview/understand/assistant';
18
17
  import { AuthorizationDocumentListInstance } from './preview/hosted_numbers/authorizationDocument';
19
18
  import { AvailableAddOnListInstance } from './preview/marketplace/availableAddOn';
20
- import { BrandedChannelListInstance } from './preview/trusted_comms/brandedChannel';
21
- import { BrandsInformationListInstance } from './preview/trusted_comms/brandsInformation';
22
19
  import { CommandListInstance } from './preview/wireless/command';
23
- import { CpsListInstance } from './preview/trusted_comms/cps';
24
- import { CurrentCallListInstance } from './preview/trusted_comms/currentCall';
25
20
  import { FleetListInstance } from './preview/deployed_devices/fleet';
26
21
  import { HostedNumberOrderListInstance } from './preview/hosted_numbers/hostedNumberOrder';
27
22
  import { InstalledAddOnListInstance } from './preview/marketplace/installedAddOn';
@@ -41,11 +36,7 @@ declare class Preview extends Domain {
41
36
  readonly assistants: AssistantListInstance;
42
37
  readonly authorizationDocuments: AuthorizationDocumentListInstance;
43
38
  readonly availableAddOns: AvailableAddOnListInstance;
44
- readonly brandedChannels: BrandedChannelListInstance;
45
- readonly brandsInformation: BrandsInformationListInstance;
46
39
  readonly commands: CommandListInstance;
47
- readonly cps: CpsListInstance;
48
- readonly currentCalls: CurrentCallListInstance;
49
40
  readonly deployed_devices: DeployedDevices;
50
41
  readonly fleets: FleetListInstance;
51
42
  readonly hostedNumberOrders: HostedNumberOrderListInstance;
@@ -56,7 +47,6 @@ declare class Preview extends Domain {
56
47
  readonly services: ServiceListInstance;
57
48
  readonly sims: SimListInstance;
58
49
  readonly sync: Sync;
59
- readonly trusted_comms: TrustedComms;
60
50
  readonly understand: Understand;
61
51
  readonly wireless: Wireless;
62
52
  }
@@ -17,7 +17,6 @@ var HostedNumbers = require(
17
17
  './preview/HostedNumbers'); /* jshint ignore:line */
18
18
  var Marketplace = require('./preview/Marketplace'); /* jshint ignore:line */
19
19
  var Sync = require('./preview/Sync'); /* jshint ignore:line */
20
- var TrustedComms = require('./preview/TrustedComms'); /* jshint ignore:line */
21
20
  var Understand = require('./preview/Understand'); /* jshint ignore:line */
22
21
  var Wireless = require('./preview/Wireless'); /* jshint ignore:line */
23
22
 
@@ -35,7 +34,6 @@ var Wireless = require('./preview/Wireless'); /* jshint ignore:line */
35
34
  * @property {Twilio.Preview.Sync} sync - sync version
36
35
  * @property {Twilio.Preview.Understand} understand - understand version
37
36
  * @property {Twilio.Preview.Wireless} wireless - wireless version
38
- * @property {Twilio.Preview.TrustedComms} trusted_comms - trusted_comms version
39
37
  * @property {Twilio.Preview.DeployedDevices.FleetList} fleets - fleets resource
40
38
  * @property {Twilio.Preview.HostedNumbers.AuthorizationDocumentList} authorizationDocuments -
41
39
  * authorizationDocuments resource
@@ -51,13 +49,6 @@ var Wireless = require('./preview/Wireless'); /* jshint ignore:line */
51
49
  * @property {Twilio.Preview.Wireless.CommandList} commands - commands resource
52
50
  * @property {Twilio.Preview.Wireless.RatePlanList} ratePlans - ratePlans resource
53
51
  * @property {Twilio.Preview.Wireless.SimList} sims - sims resource
54
- * @property {Twilio.Preview.TrustedComms.BrandedChannelList} brandedChannels -
55
- * brandedChannels resource
56
- * @property {Twilio.Preview.TrustedComms.BrandsInformationList} brandsInformation -
57
- * brandsInformation resource
58
- * @property {Twilio.Preview.TrustedComms.CpsList} cps - cps resource
59
- * @property {Twilio.Preview.TrustedComms.CurrentCallList} currentCalls -
60
- * currentCalls resource
61
52
  *
62
53
  * @param {Twilio} twilio - The twilio client
63
54
  */
@@ -72,7 +63,6 @@ function Preview(twilio) {
72
63
  this._sync = undefined;
73
64
  this._understand = undefined;
74
65
  this._wireless = undefined;
75
- this._trusted_comms = undefined;
76
66
  }
77
67
 
78
68
  _.extend(Preview.prototype, Domain.prototype);
@@ -126,14 +116,6 @@ Object.defineProperty(Preview.prototype,
126
116
  }
127
117
  });
128
118
 
129
- Object.defineProperty(Preview.prototype,
130
- 'trusted_comms', {
131
- get: function() {
132
- this._trusted_comms = this._trusted_comms || new TrustedComms(this);
133
- return this._trusted_comms;
134
- }
135
- });
136
-
137
119
  Object.defineProperty(Preview.prototype,
138
120
  'fleets', {
139
121
  get: function() {
@@ -204,32 +186,4 @@ Object.defineProperty(Preview.prototype,
204
186
  }
205
187
  });
206
188
 
207
- Object.defineProperty(Preview.prototype,
208
- 'brandedChannels', {
209
- get: function() {
210
- return this.trusted_comms.brandedChannels;
211
- }
212
- });
213
-
214
- Object.defineProperty(Preview.prototype,
215
- 'brandsInformation', {
216
- get: function() {
217
- return this.trusted_comms.brandsInformation;
218
- }
219
- });
220
-
221
- Object.defineProperty(Preview.prototype,
222
- 'cps', {
223
- get: function() {
224
- return this.trusted_comms.cps;
225
- }
226
- });
227
-
228
- Object.defineProperty(Preview.prototype,
229
- 'currentCalls', {
230
- get: function() {
231
- return this.trusted_comms.currentCalls;
232
- }
233
- });
234
-
235
189
  module.exports = Preview;
@@ -10,6 +10,7 @@ import Api = require('./Api');
10
10
  import Autopilot = require('./Autopilot');
11
11
  import Bulkexports = require('./Bulkexports');
12
12
  import Chat = require('./Chat');
13
+ import Content = require('./Content');
13
14
  import Conversations = require('./Conversations');
14
15
  import Events = require('./Events');
15
16
  import FlexApi = require('./FlexApi');
@@ -64,6 +65,7 @@ declare class Twilio {
64
65
  chat: Chat;
65
66
  conferences: (typeof Api.prototype.account.conferences);
66
67
  connectApps: (typeof Api.prototype.account.connectApps);
68
+ content: Content;
67
69
  conversations: Conversations;
68
70
  events: Events;
69
71
  flexApi: FlexApi;
@@ -26,6 +26,7 @@ var RestException = require('../base/RestException'); /* jshint ignore:line */
26
26
  * @property {Twilio.Api} api - api domain
27
27
  * @property {Twilio.Autopilot} autopilot - autopilot domain
28
28
  * @property {Twilio.Chat} chat - chat domain
29
+ * @property {Twilio.Content} content - content domain
29
30
  * @property {Twilio.Conversations} conversations - conversations domain
30
31
  * @property {Twilio.Events} events - events domain
31
32
  * @property {Twilio.FlexApi} flexApi - flex_api domain
@@ -154,6 +155,7 @@ function Twilio(username, password, opts) {
154
155
  this._api = undefined;
155
156
  this._autopilot = undefined;
156
157
  this._chat = undefined;
158
+ this._content = undefined;
157
159
  this._conversations = undefined;
158
160
  this._events = undefined;
159
161
  this._flexApi = undefined;
@@ -190,6 +192,7 @@ function Twilio(username, password, opts) {
190
192
  this.api;
191
193
  this.autopilot;
192
194
  this.chat;
195
+ this.content;
193
196
  this.conversations;
194
197
  this.events;
195
198
  this.flexApi;
@@ -412,6 +415,17 @@ Object.defineProperty(Twilio.prototype,
412
415
  }
413
416
  });
414
417
 
418
+ Object.defineProperty(Twilio.prototype,
419
+ 'content', {
420
+ get: function() {
421
+ if (!this._content) {
422
+ var Content = require('./Content'); /* jshint ignore:line */
423
+ this._content = new Content(this);
424
+ }
425
+ return this._content;
426
+ }
427
+ });
428
+
415
429
  Object.defineProperty(Twilio.prototype,
416
430
  'conversations', {
417
431
  get: function() {
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This code was generated by
3
+ * \ / _ _ _| _ _
4
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ * / /
6
+ */
7
+
8
+ import Content = require('../Content');
9
+ import Version = require('../../base/Version');
10
+ import { ContentList } from './v1/content';
11
+ import { ContentListInstance } from './v1/content';
12
+
13
+
14
+ declare class V1 extends Version {
15
+ /**
16
+ * Initialize the V1 version of Content
17
+ *
18
+ * @param domain - The twilio domain
19
+ */
20
+ constructor(domain: Content);
21
+
22
+ readonly contents: ContentListInstance;
23
+ }
24
+
25
+ export = V1;
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ /* jshint ignore:start */
4
+ /**
5
+ * This code was generated by
6
+ * \ / _ _ _| _ _
7
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
8
+ * / /
9
+ */
10
+ /* jshint ignore:end */
11
+
12
+ var _ = require('lodash'); /* jshint ignore:line */
13
+ var ContentList = require('./v1/content').ContentList;
14
+ var Version = require('../../base/Version'); /* jshint ignore:line */
15
+
16
+
17
+ /* jshint ignore:start */
18
+ /**
19
+ * Initialize the V1 version of Content
20
+ *
21
+ * @constructor Twilio.Content.V1
22
+ *
23
+ * @property {Twilio.Content.V1.ContentList} contents - contents resource
24
+ *
25
+ * @param {Twilio.Content} domain - The twilio domain
26
+ */
27
+ /* jshint ignore:end */
28
+ function V1(domain) {
29
+ Version.prototype.constructor.call(this, domain, 'v1');
30
+
31
+ // Resources
32
+ this._contents = undefined;
33
+ }
34
+
35
+ _.extend(V1.prototype, Version.prototype);
36
+ V1.prototype.constructor = V1;
37
+
38
+ Object.defineProperty(V1.prototype,
39
+ 'contents', {
40
+ get: function() {
41
+ this._contents = this._contents || new ContentList(this);
42
+ return this._contents;
43
+ }
44
+ });
45
+
46
+ module.exports = V1;
@@ -0,0 +1,139 @@
1
+ /**
2
+ * This code was generated by
3
+ * \ / _ _ _| _ _
4
+ * | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ * / /
6
+ */
7
+
8
+ import Page = require('../../../../base/Page');
9
+ import Response = require('../../../../http/response');
10
+ import V1 = require('../../V1');
11
+ import { SerializableClass } from '../../../../interfaces';
12
+
13
+ /**
14
+ * Initialize the ApprovalFetchList
15
+ *
16
+ * PLEASE NOTE that this class contains preview products that are subject to
17
+ * change. Use them with caution. If you currently do not have developer preview
18
+ * access, please contact help@twilio.com.
19
+ *
20
+ * @param version - Version of the resource
21
+ * @param sid - The unique string that identifies the Content resource
22
+ */
23
+ declare function ApprovalFetchList(version: V1, sid: string): ApprovalFetchListInstance;
24
+
25
+ interface ApprovalFetchListInstance {
26
+ /**
27
+ * @param sid - sid of instance
28
+ */
29
+ (sid: string): ApprovalFetchContext;
30
+ /**
31
+ * Constructs a approval_fetch
32
+ */
33
+ get(): ApprovalFetchContext;
34
+ /**
35
+ * Provide a user-friendly representation
36
+ */
37
+ toJSON(): any;
38
+ }
39
+
40
+ interface ApprovalFetchPayload extends ApprovalFetchResource, Page.TwilioResponsePayload {
41
+ }
42
+
43
+ interface ApprovalFetchResource {
44
+ account_sid: string;
45
+ sid: string;
46
+ url: string;
47
+ whatsapp: object;
48
+ }
49
+
50
+ interface ApprovalFetchSolution {
51
+ sid?: string;
52
+ }
53
+
54
+
55
+ declare class ApprovalFetchContext {
56
+ /**
57
+ * Initialize the ApprovalFetchContext
58
+ *
59
+ * PLEASE NOTE that this class contains preview products that are subject to
60
+ * change. Use them with caution. If you currently do not have developer preview
61
+ * access, please contact help@twilio.com.
62
+ *
63
+ * @param version - Version of the resource
64
+ * @param sid - The unique string that identifies the Content resource
65
+ */
66
+ constructor(version: V1, sid: string);
67
+
68
+ /**
69
+ * fetch a ApprovalFetchInstance
70
+ *
71
+ * @param callback - Callback to handle processed record
72
+ */
73
+ fetch(callback?: (error: Error | null, items: ApprovalFetchInstance) => any): Promise<ApprovalFetchInstance>;
74
+ /**
75
+ * Provide a user-friendly representation
76
+ */
77
+ toJSON(): any;
78
+ }
79
+
80
+
81
+ declare class ApprovalFetchInstance extends SerializableClass {
82
+ /**
83
+ * Initialize the ApprovalFetchContext
84
+ *
85
+ * PLEASE NOTE that this class contains preview products that are subject to
86
+ * change. Use them with caution. If you currently do not have developer preview
87
+ * access, please contact help@twilio.com.
88
+ *
89
+ * @param version - Version of the resource
90
+ * @param payload - The instance payload
91
+ * @param sid - The unique string that identifies the Content resource
92
+ */
93
+ constructor(version: V1, payload: ApprovalFetchPayload, sid: string);
94
+
95
+ private _proxy: ApprovalFetchContext;
96
+ accountSid: string;
97
+ /**
98
+ * fetch a ApprovalFetchInstance
99
+ *
100
+ * @param callback - Callback to handle processed record
101
+ */
102
+ fetch(callback?: (error: Error | null, items: ApprovalFetchInstance) => any): Promise<ApprovalFetchInstance>;
103
+ sid: string;
104
+ /**
105
+ * Provide a user-friendly representation
106
+ */
107
+ toJSON(): any;
108
+ url: string;
109
+ whatsapp: any;
110
+ }
111
+
112
+
113
+ declare class ApprovalFetchPage extends Page<V1, ApprovalFetchPayload, ApprovalFetchResource, ApprovalFetchInstance> {
114
+ /**
115
+ * Initialize the ApprovalFetchPage
116
+ *
117
+ * PLEASE NOTE that this class contains preview products that are subject to
118
+ * change. Use them with caution. If you currently do not have developer preview
119
+ * access, please contact help@twilio.com.
120
+ *
121
+ * @param version - Version of the resource
122
+ * @param response - Response from the API
123
+ * @param solution - Path solution
124
+ */
125
+ constructor(version: V1, response: Response<string>, solution: ApprovalFetchSolution);
126
+
127
+ /**
128
+ * Build an instance of ApprovalFetchInstance
129
+ *
130
+ * @param payload - Payload response from the API
131
+ */
132
+ getInstance(payload: ApprovalFetchPayload): ApprovalFetchInstance;
133
+ /**
134
+ * Provide a user-friendly representation
135
+ */
136
+ toJSON(): any;
137
+ }
138
+
139
+ export { ApprovalFetchContext, ApprovalFetchInstance, ApprovalFetchList, ApprovalFetchListInstance, ApprovalFetchPage, ApprovalFetchPayload, ApprovalFetchResource, ApprovalFetchSolution }