From c78d809b86dc24f3a94207103aad0cfd21ec226c Mon Sep 17 00:00:00 2001 From: Sam Harrison Date: Mon, 16 Sep 2019 14:29:32 -0500 Subject: [PATCH] Correct the TS return type for various instance and context actions --- lib/rest/accounts/v1/credential/aws.d.ts | 8 ++++---- lib/rest/accounts/v1/credential/publicKey.d.ts | 8 ++++---- lib/rest/api/v2010/account.d.ts | 4 ++-- lib/rest/api/v2010/account/address.d.ts | 8 ++++---- lib/rest/api/v2010/account/application.d.ts | 8 ++++---- lib/rest/api/v2010/account/authorizedConnectApp.d.ts | 2 +- lib/rest/api/v2010/account/availablePhoneNumber.d.ts | 2 +- lib/rest/api/v2010/account/call.d.ts | 8 ++++---- lib/rest/api/v2010/account/call/feedback.d.ts | 6 +++--- lib/rest/api/v2010/account/call/feedbackSummary.d.ts | 6 +++--- lib/rest/api/v2010/account/call/notification.d.ts | 6 +++--- lib/rest/api/v2010/account/call/recording.d.ts | 8 ++++---- lib/rest/api/v2010/account/conference.d.ts | 4 ++-- lib/rest/api/v2010/account/conference/participant.d.ts | 8 ++++---- lib/rest/api/v2010/account/conference/recording.d.ts | 8 ++++---- lib/rest/api/v2010/account/connectApp.d.ts | 8 ++++---- lib/rest/api/v2010/account/incomingPhoneNumber.d.ts | 8 ++++---- .../v2010/account/incomingPhoneNumber/assignedAddOn.d.ts | 6 +++--- .../assignedAddOn/assignedAddOnExtension.d.ts | 2 +- lib/rest/api/v2010/account/key.d.ts | 8 ++++---- lib/rest/api/v2010/account/message.d.ts | 8 ++++---- lib/rest/api/v2010/account/message/media.d.ts | 6 +++--- lib/rest/api/v2010/account/notification.d.ts | 6 +++--- lib/rest/api/v2010/account/outgoingCallerId.d.ts | 8 ++++---- lib/rest/api/v2010/account/queue.d.ts | 8 ++++---- lib/rest/api/v2010/account/queue/member.d.ts | 4 ++-- lib/rest/api/v2010/account/recording.d.ts | 6 +++--- lib/rest/api/v2010/account/recording/addOnResult.d.ts | 6 +++--- .../api/v2010/account/recording/addOnResult/payload.d.ts | 6 +++--- lib/rest/api/v2010/account/recording/transcription.d.ts | 6 +++--- lib/rest/api/v2010/account/shortCode.d.ts | 4 ++-- lib/rest/api/v2010/account/signingKey.d.ts | 8 ++++---- lib/rest/api/v2010/account/sip/credentialList.d.ts | 8 ++++---- .../api/v2010/account/sip/credentialList/credential.d.ts | 8 ++++---- lib/rest/api/v2010/account/sip/domain.d.ts | 8 ++++---- .../authCallsMapping/authCallsCredentialListMapping.d.ts | 6 +++--- .../authCallsIpAccessControlListMapping.d.ts | 6 +++--- .../authRegistrationsCredentialListMapping.d.ts | 6 +++--- .../v2010/account/sip/domain/credentialListMapping.d.ts | 6 +++--- .../account/sip/domain/ipAccessControlListMapping.d.ts | 6 +++--- lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts | 8 ++++---- .../v2010/account/sip/ipAccessControlList/ipAddress.d.ts | 8 ++++---- lib/rest/api/v2010/account/transcription.d.ts | 6 +++--- lib/rest/api/v2010/account/usage/trigger.d.ts | 8 ++++---- lib/rest/authy/v1/form.d.ts | 2 +- lib/rest/authy/v1/service.d.ts | 8 ++++---- lib/rest/authy/v1/service/entity.d.ts | 6 +++--- lib/rest/authy/v1/service/entity/factor.d.ts | 8 ++++---- lib/rest/authy/v1/service/entity/factor/challenge.d.ts | 8 ++++---- lib/rest/autopilot/v1/assistant.d.ts | 8 ++++---- lib/rest/autopilot/v1/assistant/defaults.d.ts | 4 ++-- lib/rest/autopilot/v1/assistant/dialogue.d.ts | 2 +- lib/rest/autopilot/v1/assistant/fieldType.d.ts | 8 ++++---- lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts | 6 +++--- lib/rest/autopilot/v1/assistant/modelBuild.d.ts | 8 ++++---- lib/rest/autopilot/v1/assistant/query.d.ts | 8 ++++---- lib/rest/autopilot/v1/assistant/styleSheet.d.ts | 4 ++-- lib/rest/autopilot/v1/assistant/task.d.ts | 8 ++++---- lib/rest/autopilot/v1/assistant/task/field.d.ts | 6 +++--- lib/rest/autopilot/v1/assistant/task/sample.d.ts | 8 ++++---- lib/rest/autopilot/v1/assistant/task/taskActions.d.ts | 4 ++-- lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts | 2 +- lib/rest/autopilot/v1/assistant/webhook.d.ts | 8 ++++---- lib/rest/chat/v1/credential.d.ts | 8 ++++---- lib/rest/chat/v1/service.d.ts | 8 ++++---- lib/rest/chat/v1/service/channel.d.ts | 8 ++++---- lib/rest/chat/v1/service/channel/invite.d.ts | 6 +++--- lib/rest/chat/v1/service/channel/member.d.ts | 8 ++++---- lib/rest/chat/v1/service/channel/message.d.ts | 8 ++++---- lib/rest/chat/v1/service/role.d.ts | 8 ++++---- lib/rest/chat/v1/service/user.d.ts | 8 ++++---- lib/rest/chat/v2/credential.d.ts | 8 ++++---- lib/rest/chat/v2/service.d.ts | 8 ++++---- lib/rest/chat/v2/service/binding.d.ts | 6 +++--- lib/rest/chat/v2/service/channel.d.ts | 8 ++++---- lib/rest/chat/v2/service/channel/invite.d.ts | 6 +++--- lib/rest/chat/v2/service/channel/member.d.ts | 8 ++++---- lib/rest/chat/v2/service/channel/message.d.ts | 8 ++++---- lib/rest/chat/v2/service/channel/webhook.d.ts | 8 ++++---- lib/rest/chat/v2/service/role.d.ts | 8 ++++---- lib/rest/chat/v2/service/user.d.ts | 8 ++++---- lib/rest/chat/v2/service/user/userBinding.d.ts | 6 +++--- lib/rest/chat/v2/service/user/userChannel.d.ts | 4 ++-- lib/rest/conversations/v1/conversation.d.ts | 8 ++++---- lib/rest/conversations/v1/conversation/message.d.ts | 8 ++++---- lib/rest/conversations/v1/conversation/participant.d.ts | 8 ++++---- lib/rest/conversations/v1/conversation/webhook.d.ts | 8 ++++---- lib/rest/conversations/v1/webhook.d.ts | 4 ++-- lib/rest/fax/v1/fax.d.ts | 8 ++++---- lib/rest/fax/v1/fax/faxMedia.d.ts | 6 +++--- lib/rest/flexApi/v1/channel.d.ts | 6 +++--- lib/rest/flexApi/v1/configuration.d.ts | 6 +++--- lib/rest/flexApi/v1/flexFlow.d.ts | 8 ++++---- lib/rest/flexApi/v1/webChannel.d.ts | 8 ++++---- lib/rest/insights/v1/summary.d.ts | 2 +- lib/rest/ipMessaging/v1/credential.d.ts | 8 ++++---- lib/rest/ipMessaging/v1/service.d.ts | 8 ++++---- lib/rest/ipMessaging/v1/service/channel.d.ts | 8 ++++---- lib/rest/ipMessaging/v1/service/channel/invite.d.ts | 6 +++--- lib/rest/ipMessaging/v1/service/channel/member.d.ts | 8 ++++---- lib/rest/ipMessaging/v1/service/channel/message.d.ts | 8 ++++---- lib/rest/ipMessaging/v1/service/role.d.ts | 8 ++++---- lib/rest/ipMessaging/v1/service/user.d.ts | 8 ++++---- lib/rest/ipMessaging/v2/credential.d.ts | 8 ++++---- lib/rest/ipMessaging/v2/service.d.ts | 8 ++++---- lib/rest/ipMessaging/v2/service/binding.d.ts | 6 +++--- lib/rest/ipMessaging/v2/service/channel.d.ts | 8 ++++---- lib/rest/ipMessaging/v2/service/channel/invite.d.ts | 6 +++--- lib/rest/ipMessaging/v2/service/channel/member.d.ts | 8 ++++---- lib/rest/ipMessaging/v2/service/channel/message.d.ts | 8 ++++---- lib/rest/ipMessaging/v2/service/channel/webhook.d.ts | 8 ++++---- lib/rest/ipMessaging/v2/service/role.d.ts | 8 ++++---- lib/rest/ipMessaging/v2/service/user.d.ts | 8 ++++---- lib/rest/ipMessaging/v2/service/user/userBinding.d.ts | 6 +++--- lib/rest/ipMessaging/v2/service/user/userChannel.d.ts | 4 ++-- lib/rest/lookups/v1/phoneNumber.d.ts | 2 +- lib/rest/messaging/v1/service.d.ts | 8 ++++---- lib/rest/messaging/v1/service/alphaSender.d.ts | 6 +++--- lib/rest/messaging/v1/service/phoneNumber.d.ts | 6 +++--- lib/rest/messaging/v1/service/shortCode.d.ts | 6 +++--- lib/rest/messaging/v1/session.d.ts | 8 ++++---- lib/rest/messaging/v1/session/message.d.ts | 8 ++++---- lib/rest/messaging/v1/session/participant.d.ts | 8 ++++---- lib/rest/messaging/v1/session/webhook.d.ts | 8 ++++---- lib/rest/messaging/v1/webhook.d.ts | 4 ++-- lib/rest/monitor/v1/alert.d.ts | 6 +++--- lib/rest/monitor/v1/event.d.ts | 2 +- lib/rest/notify/v1/credential.d.ts | 8 ++++---- lib/rest/notify/v1/service.d.ts | 8 ++++---- lib/rest/notify/v1/service/binding.d.ts | 6 +++--- lib/rest/preview/acc_security/service.d.ts | 4 ++-- lib/rest/preview/bulk_exports/export.d.ts | 2 +- lib/rest/preview/bulk_exports/exportConfiguration.d.ts | 4 ++-- lib/rest/preview/deployed_devices/fleet.d.ts | 8 ++++---- lib/rest/preview/deployed_devices/fleet/certificate.d.ts | 8 ++++---- lib/rest/preview/deployed_devices/fleet/deployment.d.ts | 8 ++++---- lib/rest/preview/deployed_devices/fleet/device.d.ts | 8 ++++---- lib/rest/preview/deployed_devices/fleet/key.d.ts | 8 ++++---- .../preview/hosted_numbers/authorizationDocument.d.ts | 4 ++-- lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts | 8 ++++---- lib/rest/preview/marketplace/availableAddOn.d.ts | 2 +- .../availableAddOn/availableAddOnExtension.d.ts | 2 +- lib/rest/preview/marketplace/installedAddOn.d.ts | 8 ++++---- .../installedAddOn/installedAddOnExtension.d.ts | 4 ++-- lib/rest/preview/sync/service.d.ts | 8 ++++---- lib/rest/preview/sync/service/document.d.ts | 8 ++++---- .../preview/sync/service/document/documentPermission.d.ts | 8 ++++---- lib/rest/preview/sync/service/syncList.d.ts | 6 +++--- lib/rest/preview/sync/service/syncList/syncListItem.d.ts | 8 ++++---- .../preview/sync/service/syncList/syncListPermission.d.ts | 8 ++++---- lib/rest/preview/sync/service/syncMap.d.ts | 6 +++--- lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts | 8 ++++---- .../preview/sync/service/syncMap/syncMapPermission.d.ts | 8 ++++---- lib/rest/preview/trusted_comms/cps.d.ts | 2 +- lib/rest/preview/trusted_comms/currentCall.d.ts | 2 +- lib/rest/preview/understand/assistant.d.ts | 8 ++++---- .../understand/assistant/assistantFallbackActions.d.ts | 4 ++-- .../understand/assistant/assistantInitiationActions.d.ts | 4 ++-- lib/rest/preview/understand/assistant/dialogue.d.ts | 2 +- lib/rest/preview/understand/assistant/fieldType.d.ts | 8 ++++---- .../understand/assistant/fieldType/fieldValue.d.ts | 6 +++--- lib/rest/preview/understand/assistant/modelBuild.d.ts | 8 ++++---- lib/rest/preview/understand/assistant/query.d.ts | 8 ++++---- lib/rest/preview/understand/assistant/styleSheet.d.ts | 4 ++-- lib/rest/preview/understand/assistant/task.d.ts | 8 ++++---- lib/rest/preview/understand/assistant/task/field.d.ts | 6 +++--- lib/rest/preview/understand/assistant/task/sample.d.ts | 8 ++++---- .../preview/understand/assistant/task/taskActions.d.ts | 4 ++-- .../preview/understand/assistant/task/taskStatistics.d.ts | 2 +- lib/rest/preview/wireless/command.d.ts | 2 +- lib/rest/preview/wireless/ratePlan.d.ts | 8 ++++---- lib/rest/preview/wireless/sim.d.ts | 4 ++-- lib/rest/preview/wireless/sim/usage.d.ts | 2 +- lib/rest/pricing/v1/messaging/country.d.ts | 2 +- lib/rest/pricing/v1/phoneNumber/country.d.ts | 2 +- lib/rest/pricing/v1/voice/country.d.ts | 2 +- lib/rest/pricing/v1/voice/number.d.ts | 2 +- lib/rest/pricing/v2/voice/country.d.ts | 2 +- lib/rest/pricing/v2/voice/number.d.ts | 2 +- lib/rest/proxy/v1/service.d.ts | 8 ++++---- lib/rest/proxy/v1/service/phoneNumber.d.ts | 8 ++++---- lib/rest/proxy/v1/service/session.d.ts | 8 ++++---- lib/rest/proxy/v1/service/session/interaction.d.ts | 6 +++--- lib/rest/proxy/v1/service/session/participant.d.ts | 6 +++--- .../service/session/participant/messageInteraction.d.ts | 2 +- lib/rest/proxy/v1/service/shortCode.d.ts | 8 ++++---- lib/rest/serverless/v1/service.d.ts | 8 ++++---- lib/rest/serverless/v1/service/asset.d.ts | 8 ++++---- lib/rest/serverless/v1/service/asset/assetVersion.d.ts | 2 +- lib/rest/serverless/v1/service/build.d.ts | 6 +++--- lib/rest/serverless/v1/service/environment.d.ts | 6 +++--- .../serverless/v1/service/environment/deployment.d.ts | 2 +- lib/rest/serverless/v1/service/environment/log.d.ts | 2 +- lib/rest/serverless/v1/service/environment/variable.d.ts | 8 ++++---- lib/rest/serverless/v1/service/function.d.ts | 8 ++++---- .../serverless/v1/service/function/functionVersion.d.ts | 2 +- lib/rest/studio/v1/flow.d.ts | 6 +++--- lib/rest/studio/v1/flow/engagement.d.ts | 6 +++--- lib/rest/studio/v1/flow/engagement/engagementContext.d.ts | 2 +- lib/rest/studio/v1/flow/engagement/step.d.ts | 2 +- lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts | 2 +- lib/rest/studio/v1/flow/execution.d.ts | 6 +++--- lib/rest/studio/v1/flow/execution/executionContext.d.ts | 2 +- lib/rest/studio/v1/flow/execution/executionStep.d.ts | 2 +- .../execution/executionStep/executionStepContext.d.ts | 2 +- lib/rest/sync/v1/service.d.ts | 8 ++++---- lib/rest/sync/v1/service/document.d.ts | 8 ++++---- lib/rest/sync/v1/service/document/documentPermission.d.ts | 8 ++++---- lib/rest/sync/v1/service/syncList.d.ts | 8 ++++---- lib/rest/sync/v1/service/syncList/syncListItem.d.ts | 8 ++++---- lib/rest/sync/v1/service/syncList/syncListPermission.d.ts | 8 ++++---- lib/rest/sync/v1/service/syncMap.d.ts | 8 ++++---- lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts | 8 ++++---- lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts | 8 ++++---- lib/rest/sync/v1/service/syncStream.d.ts | 8 ++++---- lib/rest/taskrouter/v1/workspace.d.ts | 8 ++++---- lib/rest/taskrouter/v1/workspace/activity.d.ts | 8 ++++---- lib/rest/taskrouter/v1/workspace/event.d.ts | 2 +- lib/rest/taskrouter/v1/workspace/task.d.ts | 8 ++++---- lib/rest/taskrouter/v1/workspace/task/reservation.d.ts | 4 ++-- lib/rest/taskrouter/v1/workspace/taskChannel.d.ts | 8 ++++---- lib/rest/taskrouter/v1/workspace/taskQueue.d.ts | 8 ++++---- .../taskQueue/taskQueueCumulativeStatistics.d.ts | 2 +- .../workspace/taskQueue/taskQueueRealTimeStatistics.d.ts | 2 +- .../v1/workspace/taskQueue/taskQueueStatistics.d.ts | 2 +- lib/rest/taskrouter/v1/workspace/worker.d.ts | 8 ++++---- lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts | 4 ++-- .../taskrouter/v1/workspace/worker/workerChannel.d.ts | 4 ++-- .../taskrouter/v1/workspace/worker/workerStatistics.d.ts | 2 +- .../v1/workspace/worker/workersCumulativeStatistics.d.ts | 2 +- .../v1/workspace/worker/workersRealTimeStatistics.d.ts | 2 +- .../taskrouter/v1/workspace/worker/workersStatistics.d.ts | 2 +- lib/rest/taskrouter/v1/workspace/workflow.d.ts | 8 ++++---- .../workspace/workflow/workflowCumulativeStatistics.d.ts | 2 +- .../v1/workspace/workflow/workflowRealTimeStatistics.d.ts | 2 +- .../v1/workspace/workflow/workflowStatistics.d.ts | 2 +- .../v1/workspace/workspaceCumulativeStatistics.d.ts | 2 +- .../v1/workspace/workspaceRealTimeStatistics.d.ts | 2 +- lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts | 2 +- lib/rest/trunking/v1/trunk.d.ts | 8 ++++---- lib/rest/trunking/v1/trunk/credentialList.d.ts | 6 +++--- lib/rest/trunking/v1/trunk/ipAccessControlList.d.ts | 6 +++--- lib/rest/trunking/v1/trunk/originationUrl.d.ts | 8 ++++---- lib/rest/trunking/v1/trunk/phoneNumber.d.ts | 6 +++--- lib/rest/trunking/v1/trunk/terminatingSipDomain.d.ts | 6 +++--- lib/rest/verify/v2/service.d.ts | 8 ++++---- lib/rest/verify/v2/service/messagingConfiguration.d.ts | 8 ++++---- lib/rest/verify/v2/service/rateLimit.d.ts | 8 ++++---- lib/rest/verify/v2/service/rateLimit/bucket.d.ts | 8 ++++---- lib/rest/verify/v2/service/verification.d.ts | 4 ++-- lib/rest/video/v1/composition.d.ts | 6 +++--- lib/rest/video/v1/compositionHook.d.ts | 8 ++++---- lib/rest/video/v1/compositionSettings.d.ts | 4 ++-- lib/rest/video/v1/recording.d.ts | 6 +++--- lib/rest/video/v1/recordingSettings.d.ts | 4 ++-- lib/rest/video/v1/room.d.ts | 4 ++-- lib/rest/video/v1/room/recording.d.ts | 6 +++--- lib/rest/video/v1/room/roomParticipant.d.ts | 4 ++-- .../roomParticipant/roomParticipantPublishedTrack.d.ts | 2 +- .../roomParticipant/roomParticipantSubscribedTrack.d.ts | 2 +- lib/rest/voice/v1/dialingPermissions/country.d.ts | 2 +- lib/rest/voice/v1/dialingPermissions/settings.d.ts | 4 ++-- lib/rest/wireless/v1/command.d.ts | 6 +++--- lib/rest/wireless/v1/ratePlan.d.ts | 8 ++++---- lib/rest/wireless/v1/sim.d.ts | 8 ++++---- 265 files changed, 792 insertions(+), 792 deletions(-) diff --git a/lib/rest/accounts/v1/credential/aws.d.ts b/lib/rest/accounts/v1/credential/aws.d.ts index 3968f3edc7..ec0d05d19e 100644 --- a/lib/rest/accounts/v1/credential/aws.d.ts +++ b/lib/rest/accounts/v1/credential/aws.d.ts @@ -206,7 +206,7 @@ declare class AwsContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AwsInstance) => any): void; + remove(callback?: (error: Error | null, items: AwsInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -240,14 +240,14 @@ declare class AwsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AwsInstance) => any): void; + fetch(callback?: (error: Error | null, items: AwsInstance) => any): Promise; friendlyName: string; /** * remove a AwsInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AwsInstance) => any): void; + remove(callback?: (error: Error | null, items: AwsInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -259,7 +259,7 @@ declare class AwsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: AwsInstanceUpdateOptions, callback?: (error: Error | null, items: AwsInstance) => any): void; + update(opts?: AwsInstanceUpdateOptions, callback?: (error: Error | null, items: AwsInstance) => any): Promise; url: string; } diff --git a/lib/rest/accounts/v1/credential/publicKey.d.ts b/lib/rest/accounts/v1/credential/publicKey.d.ts index 6ccb7cb0b0..2952ee547e 100644 --- a/lib/rest/accounts/v1/credential/publicKey.d.ts +++ b/lib/rest/accounts/v1/credential/publicKey.d.ts @@ -206,7 +206,7 @@ declare class PublicKeyContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: PublicKeyInstance) => any): void; + remove(callback?: (error: Error | null, items: PublicKeyInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -240,14 +240,14 @@ declare class PublicKeyInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: PublicKeyInstance) => any): void; + fetch(callback?: (error: Error | null, items: PublicKeyInstance) => any): Promise; friendlyName: string; /** * remove a PublicKeyInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: PublicKeyInstance) => any): void; + remove(callback?: (error: Error | null, items: PublicKeyInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -259,7 +259,7 @@ declare class PublicKeyInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: PublicKeyInstanceUpdateOptions, callback?: (error: Error | null, items: PublicKeyInstance) => any): void; + update(opts?: PublicKeyInstanceUpdateOptions, callback?: (error: Error | null, items: PublicKeyInstance) => any): Promise; url: string; } diff --git a/lib/rest/api/v2010/account.d.ts b/lib/rest/api/v2010/account.d.ts index 2da7fb3085..b4149c4ae4 100644 --- a/lib/rest/api/v2010/account.d.ts +++ b/lib/rest/api/v2010/account.d.ts @@ -356,7 +356,7 @@ declare class AccountInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AccountInstance) => any): void; + fetch(callback?: (error: Error | null, items: AccountInstance) => any): Promise; friendlyName: string; /** * Access the incomingPhoneNumbers @@ -429,7 +429,7 @@ declare class AccountInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: AccountInstanceUpdateOptions, callback?: (error: Error | null, items: AccountInstance) => any): void; + update(opts?: AccountInstanceUpdateOptions, callback?: (error: Error | null, items: AccountInstance) => any): Promise; uri: string; /** * Access the usage diff --git a/lib/rest/api/v2010/account/address.d.ts b/lib/rest/api/v2010/account/address.d.ts index bcde50d331..5424ff690f 100644 --- a/lib/rest/api/v2010/account/address.d.ts +++ b/lib/rest/api/v2010/account/address.d.ts @@ -266,7 +266,7 @@ declare class AddressContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AddressInstance) => any): void; + remove(callback?: (error: Error | null, items: AddressInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -308,7 +308,7 @@ declare class AddressInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AddressInstance) => any): void; + fetch(callback?: (error: Error | null, items: AddressInstance) => any): Promise; friendlyName: string; isoCountry: string; postalCode: string; @@ -318,7 +318,7 @@ declare class AddressInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AddressInstance) => any): void; + remove(callback?: (error: Error | null, items: AddressInstance) => any): Promise; sid: string; street: string; /** @@ -331,7 +331,7 @@ declare class AddressInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: AddressInstanceUpdateOptions, callback?: (error: Error | null, items: AddressInstance) => any): void; + update(opts?: AddressInstanceUpdateOptions, callback?: (error: Error | null, items: AddressInstance) => any): Promise; uri: string; validated: boolean; verified: boolean; diff --git a/lib/rest/api/v2010/account/application.d.ts b/lib/rest/api/v2010/account/application.d.ts index 3959ebc11d..b9eda7bff2 100644 --- a/lib/rest/api/v2010/account/application.d.ts +++ b/lib/rest/api/v2010/account/application.d.ts @@ -282,7 +282,7 @@ declare class ApplicationContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ApplicationInstance) => any): void; + remove(callback?: (error: Error | null, items: ApplicationInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -318,7 +318,7 @@ declare class ApplicationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ApplicationInstance) => any): void; + fetch(callback?: (error: Error | null, items: ApplicationInstance) => any): Promise; friendlyName: string; messageStatusCallback: string; /** @@ -326,7 +326,7 @@ declare class ApplicationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ApplicationInstance) => any): void; + remove(callback?: (error: Error | null, items: ApplicationInstance) => any): Promise; sid: string; smsFallbackMethod: string; smsFallbackUrl: string; @@ -345,7 +345,7 @@ declare class ApplicationInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ApplicationInstanceUpdateOptions, callback?: (error: Error | null, items: ApplicationInstance) => any): void; + update(opts?: ApplicationInstanceUpdateOptions, callback?: (error: Error | null, items: ApplicationInstance) => any): Promise; uri: string; voiceCallerIdLookup: boolean; voiceFallbackMethod: string; diff --git a/lib/rest/api/v2010/account/authorizedConnectApp.d.ts b/lib/rest/api/v2010/account/authorizedConnectApp.d.ts index f32e8fa8ed..f79b32ac6a 100644 --- a/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +++ b/lib/rest/api/v2010/account/authorizedConnectApp.d.ts @@ -214,7 +214,7 @@ declare class AuthorizedConnectAppInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AuthorizedConnectAppInstance) => any): void; + fetch(callback?: (error: Error | null, items: AuthorizedConnectAppInstance) => any): Promise; permissions: AuthorizedConnectAppPermission[]; /** * Provide a user-friendly representation diff --git a/lib/rest/api/v2010/account/availablePhoneNumber.d.ts b/lib/rest/api/v2010/account/availablePhoneNumber.d.ts index a8b52a9f8b..6625e1e1b6 100644 --- a/lib/rest/api/v2010/account/availablePhoneNumber.d.ts +++ b/lib/rest/api/v2010/account/availablePhoneNumber.d.ts @@ -224,7 +224,7 @@ declare class AvailablePhoneNumberCountryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AvailablePhoneNumberCountryInstance) => any): void; + fetch(callback?: (error: Error | null, items: AvailablePhoneNumberCountryInstance) => any): Promise; /** * Access the local */ diff --git a/lib/rest/api/v2010/account/call.d.ts b/lib/rest/api/v2010/account/call.d.ts index bbfccd5286..ff734a069c 100644 --- a/lib/rest/api/v2010/account/call.d.ts +++ b/lib/rest/api/v2010/account/call.d.ts @@ -365,7 +365,7 @@ declare class CallContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CallInstance) => any): void; + remove(callback?: (error: Error | null, items: CallInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -411,7 +411,7 @@ declare class CallInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CallInstance) => any): void; + fetch(callback?: (error: Error | null, items: CallInstance) => any): Promise; forwardedFrom: string; from: string; fromFormatted: string; @@ -433,7 +433,7 @@ declare class CallInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CallInstance) => any): void; + remove(callback?: (error: Error | null, items: CallInstance) => any): Promise; sid: string; startTime: Date; status: CallStatus; @@ -450,7 +450,7 @@ declare class CallInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: CallInstanceUpdateOptions, callback?: (error: Error | null, items: CallInstance) => any): void; + update(opts?: CallInstanceUpdateOptions, callback?: (error: Error | null, items: CallInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/call/feedback.d.ts b/lib/rest/api/v2010/account/call/feedback.d.ts index 077aa0e7cf..c1b831c0e4 100644 --- a/lib/rest/api/v2010/account/call/feedback.d.ts +++ b/lib/rest/api/v2010/account/call/feedback.d.ts @@ -133,7 +133,7 @@ declare class FeedbackInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - create(opts: FeedbackInstanceCreateOptions, callback?: (error: Error | null, items: FeedbackInstance) => any): void; + create(opts: FeedbackInstanceCreateOptions, callback?: (error: Error | null, items: FeedbackInstance) => any): Promise; dateCreated: Date; dateUpdated: Date; /** @@ -141,7 +141,7 @@ declare class FeedbackInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FeedbackInstance) => any): void; + fetch(callback?: (error: Error | null, items: FeedbackInstance) => any): Promise; issues: FeedbackIssues[]; qualityScore: number; sid: string; @@ -155,7 +155,7 @@ declare class FeedbackInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: FeedbackInstanceUpdateOptions, callback?: (error: Error | null, items: FeedbackInstance) => any): void; + update(opts: FeedbackInstanceUpdateOptions, callback?: (error: Error | null, items: FeedbackInstance) => any): Promise; } diff --git a/lib/rest/api/v2010/account/call/feedbackSummary.d.ts b/lib/rest/api/v2010/account/call/feedbackSummary.d.ts index 1b52fc7f2c..5a3c7f9af5 100644 --- a/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +++ b/lib/rest/api/v2010/account/call/feedbackSummary.d.ts @@ -108,7 +108,7 @@ declare class FeedbackSummaryContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FeedbackSummaryInstance) => any): void; + remove(callback?: (error: Error | null, items: FeedbackSummaryInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -139,7 +139,7 @@ declare class FeedbackSummaryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FeedbackSummaryInstance) => any): void; + fetch(callback?: (error: Error | null, items: FeedbackSummaryInstance) => any): Promise; includeSubaccounts: boolean; issues: string[]; qualityScoreAverage: number; @@ -150,7 +150,7 @@ declare class FeedbackSummaryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FeedbackSummaryInstance) => any): void; + remove(callback?: (error: Error | null, items: FeedbackSummaryInstance) => any): Promise; sid: string; startDate: Date; status: FeedbackSummaryStatus; diff --git a/lib/rest/api/v2010/account/call/notification.d.ts b/lib/rest/api/v2010/account/call/notification.d.ts index 3580b832ab..391e2bc2da 100644 --- a/lib/rest/api/v2010/account/call/notification.d.ts +++ b/lib/rest/api/v2010/account/call/notification.d.ts @@ -219,7 +219,7 @@ declare class NotificationContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: NotificationInstance) => any): void; + remove(callback?: (error: Error | null, items: NotificationInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -251,7 +251,7 @@ declare class NotificationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: NotificationInstance) => any): void; + fetch(callback?: (error: Error | null, items: NotificationInstance) => any): Promise; log: string; messageDate: Date; messageText: string; @@ -261,7 +261,7 @@ declare class NotificationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: NotificationInstance) => any): void; + remove(callback?: (error: Error | null, items: NotificationInstance) => any): Promise; requestMethod: string; requestUrl: string; requestVariables: string; diff --git a/lib/rest/api/v2010/account/call/recording.d.ts b/lib/rest/api/v2010/account/call/recording.d.ts index f3370994c5..12624207cb 100644 --- a/lib/rest/api/v2010/account/call/recording.d.ts +++ b/lib/rest/api/v2010/account/call/recording.d.ts @@ -252,7 +252,7 @@ declare class RecordingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RecordingInstance) => any): void; + remove(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -295,7 +295,7 @@ declare class RecordingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RecordingInstance) => any): void; + fetch(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; price: number; priceUnit: string; /** @@ -303,7 +303,7 @@ declare class RecordingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RecordingInstance) => any): void; + remove(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; sid: string; source: RecordingSource; startTime: Date; @@ -318,7 +318,7 @@ declare class RecordingInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: RecordingInstanceUpdateOptions, callback?: (error: Error | null, items: RecordingInstance) => any): void; + update(opts: RecordingInstanceUpdateOptions, callback?: (error: Error | null, items: RecordingInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/conference.d.ts b/lib/rest/api/v2010/account/conference.d.ts index c656241832..e7475be6e5 100644 --- a/lib/rest/api/v2010/account/conference.d.ts +++ b/lib/rest/api/v2010/account/conference.d.ts @@ -286,7 +286,7 @@ declare class ConferenceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ConferenceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ConferenceInstance) => any): Promise; friendlyName: string; /** * Access the participants @@ -310,7 +310,7 @@ declare class ConferenceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ConferenceInstanceUpdateOptions, callback?: (error: Error | null, items: ConferenceInstance) => any): void; + update(opts?: ConferenceInstanceUpdateOptions, callback?: (error: Error | null, items: ConferenceInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/conference/participant.d.ts b/lib/rest/api/v2010/account/conference/participant.d.ts index 4402024863..0c4a51cc24 100644 --- a/lib/rest/api/v2010/account/conference/participant.d.ts +++ b/lib/rest/api/v2010/account/conference/participant.d.ts @@ -320,7 +320,7 @@ declare class ParticipantContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + remove(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -361,7 +361,7 @@ declare class ParticipantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + fetch(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; hold: boolean; muted: boolean; /** @@ -369,7 +369,7 @@ declare class ParticipantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + remove(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; startConferenceOnEnter: boolean; status: ParticipantStatus; /** @@ -382,7 +382,7 @@ declare class ParticipantInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ParticipantInstanceUpdateOptions, callback?: (error: Error | null, items: ParticipantInstance) => any): void; + update(opts?: ParticipantInstanceUpdateOptions, callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/conference/recording.d.ts b/lib/rest/api/v2010/account/conference/recording.d.ts index 6e341cac6f..58d5fdf7de 100644 --- a/lib/rest/api/v2010/account/conference/recording.d.ts +++ b/lib/rest/api/v2010/account/conference/recording.d.ts @@ -228,7 +228,7 @@ declare class RecordingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RecordingInstance) => any): void; + remove(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -271,7 +271,7 @@ declare class RecordingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RecordingInstance) => any): void; + fetch(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; price: number; priceUnit: string; /** @@ -279,7 +279,7 @@ declare class RecordingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RecordingInstance) => any): void; + remove(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; sid: string; source: RecordingSource; startTime: Date; @@ -294,7 +294,7 @@ declare class RecordingInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: RecordingInstanceUpdateOptions, callback?: (error: Error | null, items: RecordingInstance) => any): void; + update(opts: RecordingInstanceUpdateOptions, callback?: (error: Error | null, items: RecordingInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/connectApp.d.ts b/lib/rest/api/v2010/account/connectApp.d.ts index c1f44f3a56..9f4115feba 100644 --- a/lib/rest/api/v2010/account/connectApp.d.ts +++ b/lib/rest/api/v2010/account/connectApp.d.ts @@ -211,7 +211,7 @@ declare class ConnectAppContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ConnectAppInstance) => any): void; + remove(callback?: (error: Error | null, items: ConnectAppInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -249,7 +249,7 @@ declare class ConnectAppInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ConnectAppInstance) => any): void; + fetch(callback?: (error: Error | null, items: ConnectAppInstance) => any): Promise; friendlyName: string; homepageUrl: string; permissions: ConnectAppPermission[]; @@ -258,7 +258,7 @@ declare class ConnectAppInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ConnectAppInstance) => any): void; + remove(callback?: (error: Error | null, items: ConnectAppInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -270,7 +270,7 @@ declare class ConnectAppInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ConnectAppInstanceUpdateOptions, callback?: (error: Error | null, items: ConnectAppInstance) => any): void; + update(opts?: ConnectAppInstanceUpdateOptions, callback?: (error: Error | null, items: ConnectAppInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts b/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts index 9e6d500898..0eb73066bd 100644 --- a/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +++ b/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts @@ -353,7 +353,7 @@ declare class IncomingPhoneNumberContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: IncomingPhoneNumberInstance) => any): void; + remove(callback?: (error: Error | null, items: IncomingPhoneNumberInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -399,7 +399,7 @@ declare class IncomingPhoneNumberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: IncomingPhoneNumberInstance) => any): void; + fetch(callback?: (error: Error | null, items: IncomingPhoneNumberInstance) => any): Promise; friendlyName: string; identitySid: string; origin: string; @@ -409,7 +409,7 @@ declare class IncomingPhoneNumberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: IncomingPhoneNumberInstance) => any): void; + remove(callback?: (error: Error | null, items: IncomingPhoneNumberInstance) => any): Promise; sid: string; smsApplicationSid: string; smsFallbackMethod: string; @@ -429,7 +429,7 @@ declare class IncomingPhoneNumberInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: IncomingPhoneNumberInstanceUpdateOptions, callback?: (error: Error | null, items: IncomingPhoneNumberInstance) => any): void; + update(opts?: IncomingPhoneNumberInstanceUpdateOptions, callback?: (error: Error | null, items: IncomingPhoneNumberInstance) => any): Promise; uri: string; voiceApplicationSid: string; voiceCallerIdLookup: boolean; diff --git a/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts b/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts index dacc3f52d0..f6224c701d 100644 --- a/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +++ b/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts @@ -213,7 +213,7 @@ declare class AssignedAddOnContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AssignedAddOnInstance) => any): void; + remove(callback?: (error: Error | null, items: AssignedAddOnInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -251,14 +251,14 @@ declare class AssignedAddOnInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AssignedAddOnInstance) => any): void; + fetch(callback?: (error: Error | null, items: AssignedAddOnInstance) => any): Promise; friendlyName: string; /** * remove a AssignedAddOnInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AssignedAddOnInstance) => any): void; + remove(callback?: (error: Error | null, items: AssignedAddOnInstance) => any): Promise; resourceSid: string; sid: string; subresourceUris: string; diff --git a/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.d.ts b/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.d.ts index c8df5e58b9..aa7c9e1d24 100644 --- a/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.d.ts +++ b/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.d.ts @@ -223,7 +223,7 @@ declare class AssignedAddOnExtensionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AssignedAddOnExtensionInstance) => any): void; + fetch(callback?: (error: Error | null, items: AssignedAddOnExtensionInstance) => any): Promise; friendlyName: string; productName: string; resourceSid: string; diff --git a/lib/rest/api/v2010/account/key.d.ts b/lib/rest/api/v2010/account/key.d.ts index 413d95d1d1..1b07188797 100644 --- a/lib/rest/api/v2010/account/key.d.ts +++ b/lib/rest/api/v2010/account/key.d.ts @@ -187,7 +187,7 @@ declare class KeyContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: KeyInstance) => any): void; + remove(callback?: (error: Error | null, items: KeyInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -221,14 +221,14 @@ declare class KeyInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: KeyInstance) => any): void; + fetch(callback?: (error: Error | null, items: KeyInstance) => any): Promise; friendlyName: string; /** * remove a KeyInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: KeyInstance) => any): void; + remove(callback?: (error: Error | null, items: KeyInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -240,7 +240,7 @@ declare class KeyInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: KeyInstanceUpdateOptions, callback?: (error: Error | null, items: KeyInstance) => any): void; + update(opts?: KeyInstanceUpdateOptions, callback?: (error: Error | null, items: KeyInstance) => any): Promise; } diff --git a/lib/rest/api/v2010/account/message.d.ts b/lib/rest/api/v2010/account/message.d.ts index 45595c28b6..f7ae725b76 100644 --- a/lib/rest/api/v2010/account/message.d.ts +++ b/lib/rest/api/v2010/account/message.d.ts @@ -288,7 +288,7 @@ declare class MessageContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -333,7 +333,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MessageInstance) => any): void; + fetch(callback?: (error: Error | null, items: MessageInstance) => any): Promise; from: string; /** * Access the media @@ -349,7 +349,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; sid: string; status: MessageStatus; subresourceUris: string; @@ -364,7 +364,7 @@ declare class MessageInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): void; + update(opts: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/message/media.d.ts b/lib/rest/api/v2010/account/message/media.d.ts index eeb3511ffa..ab4408af85 100644 --- a/lib/rest/api/v2010/account/message/media.d.ts +++ b/lib/rest/api/v2010/account/message/media.d.ts @@ -203,7 +203,7 @@ declare class MediaContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MediaInstance) => any): void; + remove(callback?: (error: Error | null, items: MediaInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -233,14 +233,14 @@ declare class MediaInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MediaInstance) => any): void; + fetch(callback?: (error: Error | null, items: MediaInstance) => any): Promise; parentSid: string; /** * remove a MediaInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MediaInstance) => any): void; + remove(callback?: (error: Error | null, items: MediaInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/api/v2010/account/notification.d.ts b/lib/rest/api/v2010/account/notification.d.ts index e6af8eabd9..1be2d51a13 100644 --- a/lib/rest/api/v2010/account/notification.d.ts +++ b/lib/rest/api/v2010/account/notification.d.ts @@ -216,7 +216,7 @@ declare class NotificationContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: NotificationInstance) => any): void; + remove(callback?: (error: Error | null, items: NotificationInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -247,7 +247,7 @@ declare class NotificationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: NotificationInstance) => any): void; + fetch(callback?: (error: Error | null, items: NotificationInstance) => any): Promise; log: string; messageDate: Date; messageText: string; @@ -257,7 +257,7 @@ declare class NotificationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: NotificationInstance) => any): void; + remove(callback?: (error: Error | null, items: NotificationInstance) => any): Promise; requestMethod: string; requestUrl: string; requestVariables: string; diff --git a/lib/rest/api/v2010/account/outgoingCallerId.d.ts b/lib/rest/api/v2010/account/outgoingCallerId.d.ts index 420aeec308..40f29405dd 100644 --- a/lib/rest/api/v2010/account/outgoingCallerId.d.ts +++ b/lib/rest/api/v2010/account/outgoingCallerId.d.ts @@ -202,7 +202,7 @@ declare class OutgoingCallerIdContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: OutgoingCallerIdInstance) => any): void; + remove(callback?: (error: Error | null, items: OutgoingCallerIdInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -237,7 +237,7 @@ declare class OutgoingCallerIdInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: OutgoingCallerIdInstance) => any): void; + fetch(callback?: (error: Error | null, items: OutgoingCallerIdInstance) => any): Promise; friendlyName: string; phoneNumber: string; /** @@ -245,7 +245,7 @@ declare class OutgoingCallerIdInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: OutgoingCallerIdInstance) => any): void; + remove(callback?: (error: Error | null, items: OutgoingCallerIdInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -257,7 +257,7 @@ declare class OutgoingCallerIdInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: OutgoingCallerIdInstanceUpdateOptions, callback?: (error: Error | null, items: OutgoingCallerIdInstance) => any): void; + update(opts?: OutgoingCallerIdInstanceUpdateOptions, callback?: (error: Error | null, items: OutgoingCallerIdInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/queue.d.ts b/lib/rest/api/v2010/account/queue.d.ts index 9b742d5e35..ceb5e98c3e 100644 --- a/lib/rest/api/v2010/account/queue.d.ts +++ b/lib/rest/api/v2010/account/queue.d.ts @@ -215,7 +215,7 @@ declare class QueueContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: QueueInstance) => any): void; + remove(callback?: (error: Error | null, items: QueueInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -252,7 +252,7 @@ declare class QueueInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: QueueInstance) => any): void; + fetch(callback?: (error: Error | null, items: QueueInstance) => any): Promise; friendlyName: string; maxSize: number; /** @@ -264,7 +264,7 @@ declare class QueueInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: QueueInstance) => any): void; + remove(callback?: (error: Error | null, items: QueueInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -276,7 +276,7 @@ declare class QueueInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: QueueInstanceUpdateOptions, callback?: (error: Error | null, items: QueueInstance) => any): void; + update(opts?: QueueInstanceUpdateOptions, callback?: (error: Error | null, items: QueueInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/queue/member.d.ts b/lib/rest/api/v2010/account/queue/member.d.ts index b04d11aadb..022d4d8cce 100644 --- a/lib/rest/api/v2010/account/queue/member.d.ts +++ b/lib/rest/api/v2010/account/queue/member.d.ts @@ -223,7 +223,7 @@ declare class MemberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MemberInstance) => any): void; + fetch(callback?: (error: Error | null, items: MemberInstance) => any): Promise; position: number; queueSid: string; /** @@ -236,7 +236,7 @@ declare class MemberInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: MemberInstanceUpdateOptions, callback?: (error: Error | null, items: MemberInstance) => any): void; + update(opts: MemberInstanceUpdateOptions, callback?: (error: Error | null, items: MemberInstance) => any): Promise; uri: string; waitTime: number; } diff --git a/lib/rest/api/v2010/account/recording.d.ts b/lib/rest/api/v2010/account/recording.d.ts index 53cc2c98ed..38e7e07595 100644 --- a/lib/rest/api/v2010/account/recording.d.ts +++ b/lib/rest/api/v2010/account/recording.d.ts @@ -232,7 +232,7 @@ declare class RecordingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RecordingInstance) => any): void; + remove(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -272,7 +272,7 @@ declare class RecordingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RecordingInstance) => any): void; + fetch(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; price: string; priceUnit: string; /** @@ -280,7 +280,7 @@ declare class RecordingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RecordingInstance) => any): void; + remove(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; sid: string; source: RecordingSource; startTime: Date; diff --git a/lib/rest/api/v2010/account/recording/addOnResult.d.ts b/lib/rest/api/v2010/account/recording/addOnResult.d.ts index 5ebb3c18b2..2e9c3c6aa5 100644 --- a/lib/rest/api/v2010/account/recording/addOnResult.d.ts +++ b/lib/rest/api/v2010/account/recording/addOnResult.d.ts @@ -192,7 +192,7 @@ declare class AddOnResultContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AddOnResultInstance) => any): void; + remove(callback?: (error: Error | null, items: AddOnResultInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -224,7 +224,7 @@ declare class AddOnResultInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AddOnResultInstance) => any): void; + fetch(callback?: (error: Error | null, items: AddOnResultInstance) => any): Promise; /** * Access the payloads */ @@ -235,7 +235,7 @@ declare class AddOnResultInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AddOnResultInstance) => any): void; + remove(callback?: (error: Error | null, items: AddOnResultInstance) => any): Promise; sid: string; status: AddOnResultStatus; subresourceUris: string; diff --git a/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts b/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts index 19933e5be4..59d573ee2a 100644 --- a/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts +++ b/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts @@ -191,7 +191,7 @@ declare class PayloadContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: PayloadInstance) => any): void; + remove(callback?: (error: Error | null, items: PayloadInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -225,7 +225,7 @@ declare class PayloadInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: PayloadInstance) => any): void; + fetch(callback?: (error: Error | null, items: PayloadInstance) => any): Promise; label: string; referenceSid: string; /** @@ -233,7 +233,7 @@ declare class PayloadInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: PayloadInstance) => any): void; + remove(callback?: (error: Error | null, items: PayloadInstance) => any): Promise; sid: string; subresourceUris: string; /** diff --git a/lib/rest/api/v2010/account/recording/transcription.d.ts b/lib/rest/api/v2010/account/recording/transcription.d.ts index c5b590eb99..6c633197e1 100644 --- a/lib/rest/api/v2010/account/recording/transcription.d.ts +++ b/lib/rest/api/v2010/account/recording/transcription.d.ts @@ -192,7 +192,7 @@ declare class TranscriptionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TranscriptionInstance) => any): void; + remove(callback?: (error: Error | null, items: TranscriptionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -223,7 +223,7 @@ declare class TranscriptionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TranscriptionInstance) => any): void; + fetch(callback?: (error: Error | null, items: TranscriptionInstance) => any): Promise; price: number; priceUnit: string; recordingSid: string; @@ -232,7 +232,7 @@ declare class TranscriptionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TranscriptionInstance) => any): void; + remove(callback?: (error: Error | null, items: TranscriptionInstance) => any): Promise; sid: string; status: TranscriptionStatus; /** diff --git a/lib/rest/api/v2010/account/shortCode.d.ts b/lib/rest/api/v2010/account/shortCode.d.ts index 2747a16ad4..1d7719c1cd 100644 --- a/lib/rest/api/v2010/account/shortCode.d.ts +++ b/lib/rest/api/v2010/account/shortCode.d.ts @@ -247,7 +247,7 @@ declare class ShortCodeInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ShortCodeInstance) => any): void; + fetch(callback?: (error: Error | null, items: ShortCodeInstance) => any): Promise; friendlyName: string; shortCode: string; sid: string; @@ -265,7 +265,7 @@ declare class ShortCodeInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ShortCodeInstanceUpdateOptions, callback?: (error: Error | null, items: ShortCodeInstance) => any): void; + update(opts?: ShortCodeInstanceUpdateOptions, callback?: (error: Error | null, items: ShortCodeInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/signingKey.d.ts b/lib/rest/api/v2010/account/signingKey.d.ts index 08ae7fd524..569f2fc826 100644 --- a/lib/rest/api/v2010/account/signingKey.d.ts +++ b/lib/rest/api/v2010/account/signingKey.d.ts @@ -187,7 +187,7 @@ declare class SigningKeyContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SigningKeyInstance) => any): void; + remove(callback?: (error: Error | null, items: SigningKeyInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -221,14 +221,14 @@ declare class SigningKeyInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SigningKeyInstance) => any): void; + fetch(callback?: (error: Error | null, items: SigningKeyInstance) => any): Promise; friendlyName: string; /** * remove a SigningKeyInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SigningKeyInstance) => any): void; + remove(callback?: (error: Error | null, items: SigningKeyInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -240,7 +240,7 @@ declare class SigningKeyInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SigningKeyInstanceUpdateOptions, callback?: (error: Error | null, items: SigningKeyInstance) => any): void; + update(opts?: SigningKeyInstanceUpdateOptions, callback?: (error: Error | null, items: SigningKeyInstance) => any): Promise; } diff --git a/lib/rest/api/v2010/account/sip/credentialList.d.ts b/lib/rest/api/v2010/account/sip/credentialList.d.ts index 342d9653bd..27b59eb848 100644 --- a/lib/rest/api/v2010/account/sip/credentialList.d.ts +++ b/lib/rest/api/v2010/account/sip/credentialList.d.ts @@ -209,7 +209,7 @@ declare class CredentialListContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialListInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialListInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -248,14 +248,14 @@ declare class CredentialListInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CredentialListInstance) => any): void; + fetch(callback?: (error: Error | null, items: CredentialListInstance) => any): Promise; friendlyName: string; /** * remove a CredentialListInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialListInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialListInstance) => any): Promise; sid: string; subresourceUris: string; /** @@ -268,7 +268,7 @@ declare class CredentialListInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: CredentialListInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialListInstance) => any): void; + update(opts: CredentialListInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialListInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/sip/credentialList/credential.d.ts b/lib/rest/api/v2010/account/sip/credentialList/credential.d.ts index 9fc5ee37dc..769fb3ae9d 100644 --- a/lib/rest/api/v2010/account/sip/credentialList/credential.d.ts +++ b/lib/rest/api/v2010/account/sip/credentialList/credential.d.ts @@ -211,7 +211,7 @@ declare class CredentialContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -248,13 +248,13 @@ declare class CredentialInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CredentialInstance) => any): void; + fetch(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; /** * remove a CredentialInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -266,7 +266,7 @@ declare class CredentialInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): void; + update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): Promise; uri: string; username: string; } diff --git a/lib/rest/api/v2010/account/sip/domain.d.ts b/lib/rest/api/v2010/account/sip/domain.d.ts index a9ba90ae42..b85c47eaa2 100644 --- a/lib/rest/api/v2010/account/sip/domain.d.ts +++ b/lib/rest/api/v2010/account/sip/domain.d.ts @@ -258,7 +258,7 @@ declare class DomainContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DomainInstance) => any): void; + remove(callback?: (error: Error | null, items: DomainInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -304,7 +304,7 @@ declare class DomainInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: DomainInstance) => any): void; + fetch(callback?: (error: Error | null, items: DomainInstance) => any): Promise; friendlyName: string; /** * Access the ipAccessControlListMappings @@ -315,7 +315,7 @@ declare class DomainInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DomainInstance) => any): void; + remove(callback?: (error: Error | null, items: DomainInstance) => any): Promise; sid: string; sipRegistration: boolean; subresourceUris: string; @@ -329,7 +329,7 @@ declare class DomainInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: DomainInstanceUpdateOptions, callback?: (error: Error | null, items: DomainInstance) => any): void; + update(opts?: DomainInstanceUpdateOptions, callback?: (error: Error | null, items: DomainInstance) => any): Promise; uri: string; voiceFallbackMethod: string; voiceFallbackUrl: string; diff --git a/lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsCredentialListMapping.d.ts b/lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsCredentialListMapping.d.ts index 66fcc9ac34..6110146c48 100644 --- a/lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsCredentialListMapping.d.ts +++ b/lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsCredentialListMapping.d.ts @@ -200,7 +200,7 @@ declare class AuthCallsCredentialListMappingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AuthCallsCredentialListMappingInstance) => any): void; + remove(callback?: (error: Error | null, items: AuthCallsCredentialListMappingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -229,14 +229,14 @@ declare class AuthCallsCredentialListMappingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AuthCallsCredentialListMappingInstance) => any): void; + fetch(callback?: (error: Error | null, items: AuthCallsCredentialListMappingInstance) => any): Promise; friendlyName: string; /** * remove a AuthCallsCredentialListMappingInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AuthCallsCredentialListMappingInstance) => any): void; + remove(callback?: (error: Error | null, items: AuthCallsCredentialListMappingInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsIpAccessControlListMapping.d.ts b/lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsIpAccessControlListMapping.d.ts index 722b65a42a..bf2eed39a8 100644 --- a/lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsIpAccessControlListMapping.d.ts +++ b/lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsIpAccessControlListMapping.d.ts @@ -201,7 +201,7 @@ declare class AuthCallsIpAccessControlListMappingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AuthCallsIpAccessControlListMappingInstance) => any): void; + remove(callback?: (error: Error | null, items: AuthCallsIpAccessControlListMappingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -230,14 +230,14 @@ declare class AuthCallsIpAccessControlListMappingInstance extends SerializableCl * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AuthCallsIpAccessControlListMappingInstance) => any): void; + fetch(callback?: (error: Error | null, items: AuthCallsIpAccessControlListMappingInstance) => any): Promise; friendlyName: string; /** * remove a AuthCallsIpAccessControlListMappingInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AuthCallsIpAccessControlListMappingInstance) => any): void; + remove(callback?: (error: Error | null, items: AuthCallsIpAccessControlListMappingInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/api/v2010/account/sip/domain/authTypes/authRegistrationsMapping/authRegistrationsCredentialListMapping.d.ts b/lib/rest/api/v2010/account/sip/domain/authTypes/authRegistrationsMapping/authRegistrationsCredentialListMapping.d.ts index 946eff71e8..f5b3cc8b81 100644 --- a/lib/rest/api/v2010/account/sip/domain/authTypes/authRegistrationsMapping/authRegistrationsCredentialListMapping.d.ts +++ b/lib/rest/api/v2010/account/sip/domain/authTypes/authRegistrationsMapping/authRegistrationsCredentialListMapping.d.ts @@ -201,7 +201,7 @@ declare class AuthRegistrationsCredentialListMappingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AuthRegistrationsCredentialListMappingInstance) => any): void; + remove(callback?: (error: Error | null, items: AuthRegistrationsCredentialListMappingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -230,14 +230,14 @@ declare class AuthRegistrationsCredentialListMappingInstance extends Serializabl * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AuthRegistrationsCredentialListMappingInstance) => any): void; + fetch(callback?: (error: Error | null, items: AuthRegistrationsCredentialListMappingInstance) => any): Promise; friendlyName: string; /** * remove a AuthRegistrationsCredentialListMappingInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AuthRegistrationsCredentialListMappingInstance) => any): void; + remove(callback?: (error: Error | null, items: AuthRegistrationsCredentialListMappingInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/api/v2010/account/sip/domain/credentialListMapping.d.ts b/lib/rest/api/v2010/account/sip/domain/credentialListMapping.d.ts index 707b4f2d21..24aea586a8 100644 --- a/lib/rest/api/v2010/account/sip/domain/credentialListMapping.d.ts +++ b/lib/rest/api/v2010/account/sip/domain/credentialListMapping.d.ts @@ -201,7 +201,7 @@ declare class CredentialListMappingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialListMappingInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialListMappingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -230,14 +230,14 @@ declare class CredentialListMappingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CredentialListMappingInstance) => any): void; + fetch(callback?: (error: Error | null, items: CredentialListMappingInstance) => any): Promise; friendlyName: string; /** * remove a CredentialListMappingInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialListMappingInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialListMappingInstance) => any): Promise; sid: string; subresourceUris: string; /** diff --git a/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.d.ts b/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.d.ts index 97184846c5..2cd097262c 100644 --- a/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.d.ts +++ b/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.d.ts @@ -202,7 +202,7 @@ declare class IpAccessControlListMappingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: IpAccessControlListMappingInstance) => any): void; + remove(callback?: (error: Error | null, items: IpAccessControlListMappingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -231,14 +231,14 @@ declare class IpAccessControlListMappingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: IpAccessControlListMappingInstance) => any): void; + fetch(callback?: (error: Error | null, items: IpAccessControlListMappingInstance) => any): Promise; friendlyName: string; /** * remove a IpAccessControlListMappingInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: IpAccessControlListMappingInstance) => any): void; + remove(callback?: (error: Error | null, items: IpAccessControlListMappingInstance) => any): Promise; sid: string; subresourceUris: string; /** diff --git a/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts b/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts index 122070dcd3..9578125913 100644 --- a/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts +++ b/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts @@ -210,7 +210,7 @@ declare class IpAccessControlListContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): void; + remove(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -245,7 +245,7 @@ declare class IpAccessControlListInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): void; + fetch(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): Promise; friendlyName: string; /** * Access the ipAddresses @@ -256,7 +256,7 @@ declare class IpAccessControlListInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): void; + remove(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): Promise; sid: string; subresourceUris: string; /** @@ -269,7 +269,7 @@ declare class IpAccessControlListInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: IpAccessControlListInstanceUpdateOptions, callback?: (error: Error | null, items: IpAccessControlListInstance) => any): void; + update(opts: IpAccessControlListInstanceUpdateOptions, callback?: (error: Error | null, items: IpAccessControlListInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts b/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts index 69d3fcccaf..a3b3da2e75 100644 --- a/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +++ b/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts @@ -219,7 +219,7 @@ declare class IpAddressContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: IpAddressInstance) => any): void; + remove(callback?: (error: Error | null, items: IpAddressInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -256,7 +256,7 @@ declare class IpAddressInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: IpAddressInstance) => any): void; + fetch(callback?: (error: Error | null, items: IpAddressInstance) => any): Promise; friendlyName: string; ipAccessControlListSid: string; ipAddress: string; @@ -265,7 +265,7 @@ declare class IpAddressInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: IpAddressInstance) => any): void; + remove(callback?: (error: Error | null, items: IpAddressInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -277,7 +277,7 @@ declare class IpAddressInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: IpAddressInstanceUpdateOptions, callback?: (error: Error | null, items: IpAddressInstance) => any): void; + update(opts?: IpAddressInstanceUpdateOptions, callback?: (error: Error | null, items: IpAddressInstance) => any): Promise; uri: string; } diff --git a/lib/rest/api/v2010/account/transcription.d.ts b/lib/rest/api/v2010/account/transcription.d.ts index a9358e8ba8..804f37758d 100644 --- a/lib/rest/api/v2010/account/transcription.d.ts +++ b/lib/rest/api/v2010/account/transcription.d.ts @@ -189,7 +189,7 @@ declare class TranscriptionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TranscriptionInstance) => any): void; + remove(callback?: (error: Error | null, items: TranscriptionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -219,7 +219,7 @@ declare class TranscriptionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TranscriptionInstance) => any): void; + fetch(callback?: (error: Error | null, items: TranscriptionInstance) => any): Promise; price: number; priceUnit: string; recordingSid: string; @@ -228,7 +228,7 @@ declare class TranscriptionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TranscriptionInstance) => any): void; + remove(callback?: (error: Error | null, items: TranscriptionInstance) => any): Promise; sid: string; status: TranscriptionStatus; /** diff --git a/lib/rest/api/v2010/account/usage/trigger.d.ts b/lib/rest/api/v2010/account/usage/trigger.d.ts index c5bb64363f..74efdc6831 100644 --- a/lib/rest/api/v2010/account/usage/trigger.d.ts +++ b/lib/rest/api/v2010/account/usage/trigger.d.ts @@ -255,7 +255,7 @@ declare class TriggerContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TriggerInstance) => any): void; + remove(callback?: (error: Error | null, items: TriggerInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -295,7 +295,7 @@ declare class TriggerInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TriggerInstance) => any): void; + fetch(callback?: (error: Error | null, items: TriggerInstance) => any): Promise; friendlyName: string; recurring: TriggerRecurring; /** @@ -303,7 +303,7 @@ declare class TriggerInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TriggerInstance) => any): void; + remove(callback?: (error: Error | null, items: TriggerInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -317,7 +317,7 @@ declare class TriggerInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: TriggerInstanceUpdateOptions, callback?: (error: Error | null, items: TriggerInstance) => any): void; + update(opts?: TriggerInstanceUpdateOptions, callback?: (error: Error | null, items: TriggerInstance) => any): Promise; uri: string; usageCategory: TriggerUsageCategory; usageRecordUri: string; diff --git a/lib/rest/authy/v1/form.d.ts b/lib/rest/authy/v1/form.d.ts index fdae2301fb..b4f01fbc47 100644 --- a/lib/rest/authy/v1/form.d.ts +++ b/lib/rest/authy/v1/form.d.ts @@ -100,7 +100,7 @@ declare class FormInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FormInstance) => any): void; + fetch(callback?: (error: Error | null, items: FormInstance) => any): Promise; formMeta: object; formType: FormFormTypes; forms: object; diff --git a/lib/rest/authy/v1/service.d.ts b/lib/rest/authy/v1/service.d.ts index 4d97c6d3ae..bca56e2e27 100644 --- a/lib/rest/authy/v1/service.d.ts +++ b/lib/rest/authy/v1/service.d.ts @@ -214,7 +214,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -256,7 +256,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; friendlyName: string; links: string; /** @@ -264,7 +264,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -276,7 +276,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; } diff --git a/lib/rest/authy/v1/service/entity.d.ts b/lib/rest/authy/v1/service/entity.d.ts index e15d7113b3..5ccfa4af82 100644 --- a/lib/rest/authy/v1/service/entity.d.ts +++ b/lib/rest/authy/v1/service/entity.d.ts @@ -209,7 +209,7 @@ declare class EntityContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: EntityInstance) => any): void; + remove(callback?: (error: Error | null, items: EntityInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -245,7 +245,7 @@ declare class EntityInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: EntityInstance) => any): void; + fetch(callback?: (error: Error | null, items: EntityInstance) => any): Promise; identity: string; links: string; /** @@ -253,7 +253,7 @@ declare class EntityInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: EntityInstance) => any): void; + remove(callback?: (error: Error | null, items: EntityInstance) => any): Promise; serviceSid: string; sid: string; /** diff --git a/lib/rest/authy/v1/service/entity/factor.d.ts b/lib/rest/authy/v1/service/entity/factor.d.ts index 3493c35f96..aff5f02825 100644 --- a/lib/rest/authy/v1/service/entity/factor.d.ts +++ b/lib/rest/authy/v1/service/entity/factor.d.ts @@ -236,7 +236,7 @@ declare class FactorContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FactorInstance) => any): void; + remove(callback?: (error: Error | null, items: FactorInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -283,7 +283,7 @@ declare class FactorInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FactorInstance) => any): void; + fetch(callback?: (error: Error | null, items: FactorInstance) => any): Promise; friendlyName: string; identity: string; links: string; @@ -292,7 +292,7 @@ declare class FactorInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FactorInstance) => any): void; + remove(callback?: (error: Error | null, items: FactorInstance) => any): Promise; serviceSid: string; sid: string; status: FactorFactorStatuses; @@ -306,7 +306,7 @@ declare class FactorInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: FactorInstanceUpdateOptions, callback?: (error: Error | null, items: FactorInstance) => any): void; + update(opts?: FactorInstanceUpdateOptions, callback?: (error: Error | null, items: FactorInstance) => any): Promise; url: string; } diff --git a/lib/rest/authy/v1/service/entity/factor/challenge.d.ts b/lib/rest/authy/v1/service/entity/factor/challenge.d.ts index d156d07972..457c0138e4 100644 --- a/lib/rest/authy/v1/service/entity/factor/challenge.d.ts +++ b/lib/rest/authy/v1/service/entity/factor/challenge.d.ts @@ -136,7 +136,7 @@ declare class ChallengeContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChallengeInstance) => any): void; + remove(callback?: (error: Error | null, items: ChallengeInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -184,7 +184,7 @@ declare class ChallengeInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ChallengeInstance) => any): void; + fetch(callback?: (error: Error | null, items: ChallengeInstance) => any): Promise; hiddenDetails: string; identity: string; /** @@ -192,7 +192,7 @@ declare class ChallengeInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChallengeInstance) => any): void; + remove(callback?: (error: Error | null, items: ChallengeInstance) => any): Promise; respondedReason: ChallengeChallengeReasons; serviceSid: string; sid: string; @@ -207,7 +207,7 @@ declare class ChallengeInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ChallengeInstanceUpdateOptions, callback?: (error: Error | null, items: ChallengeInstance) => any): void; + update(opts?: ChallengeInstanceUpdateOptions, callback?: (error: Error | null, items: ChallengeInstance) => any): Promise; url: string; } diff --git a/lib/rest/autopilot/v1/assistant.d.ts b/lib/rest/autopilot/v1/assistant.d.ts index b44697dc6a..1cf464b972 100644 --- a/lib/rest/autopilot/v1/assistant.d.ts +++ b/lib/rest/autopilot/v1/assistant.d.ts @@ -266,7 +266,7 @@ declare class AssistantContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AssistantInstance) => any): void; + remove(callback?: (error: Error | null, items: AssistantInstance) => any): Promise; styleSheet: StyleSheetListInstance; tasks: TaskListInstance; /** @@ -318,7 +318,7 @@ declare class AssistantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AssistantInstance) => any): void; + fetch(callback?: (error: Error | null, items: AssistantInstance) => any): Promise; /** * Access the fieldTypes */ @@ -341,7 +341,7 @@ declare class AssistantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AssistantInstance) => any): void; + remove(callback?: (error: Error | null, items: AssistantInstance) => any): Promise; sid: string; /** * Access the styleSheet @@ -362,7 +362,7 @@ declare class AssistantInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: AssistantInstanceUpdateOptions, callback?: (error: Error | null, items: AssistantInstance) => any): void; + update(opts?: AssistantInstanceUpdateOptions, callback?: (error: Error | null, items: AssistantInstance) => any): Promise; url: string; /** * Access the webhooks diff --git a/lib/rest/autopilot/v1/assistant/defaults.d.ts b/lib/rest/autopilot/v1/assistant/defaults.d.ts index e2a4eae2ac..ac3b615fc4 100644 --- a/lib/rest/autopilot/v1/assistant/defaults.d.ts +++ b/lib/rest/autopilot/v1/assistant/defaults.d.ts @@ -118,7 +118,7 @@ declare class DefaultsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: DefaultsInstance) => any): void; + fetch(callback?: (error: Error | null, items: DefaultsInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -129,7 +129,7 @@ declare class DefaultsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: DefaultsInstanceUpdateOptions, callback?: (error: Error | null, items: DefaultsInstance) => any): void; + update(opts?: DefaultsInstanceUpdateOptions, callback?: (error: Error | null, items: DefaultsInstance) => any): Promise; url: string; } diff --git a/lib/rest/autopilot/v1/assistant/dialogue.d.ts b/lib/rest/autopilot/v1/assistant/dialogue.d.ts index c666a76d11..c7f9099dc9 100644 --- a/lib/rest/autopilot/v1/assistant/dialogue.d.ts +++ b/lib/rest/autopilot/v1/assistant/dialogue.d.ts @@ -106,7 +106,7 @@ declare class DialogueInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: DialogueInstance) => any): void; + fetch(callback?: (error: Error | null, items: DialogueInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/autopilot/v1/assistant/fieldType.d.ts b/lib/rest/autopilot/v1/assistant/fieldType.d.ts index bd260974f3..1f79188f78 100644 --- a/lib/rest/autopilot/v1/assistant/fieldType.d.ts +++ b/lib/rest/autopilot/v1/assistant/fieldType.d.ts @@ -223,7 +223,7 @@ declare class FieldTypeContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldTypeInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldTypeInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -263,7 +263,7 @@ declare class FieldTypeInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FieldTypeInstance) => any): void; + fetch(callback?: (error: Error | null, items: FieldTypeInstance) => any): Promise; /** * Access the fieldValues */ @@ -275,7 +275,7 @@ declare class FieldTypeInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldTypeInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldTypeInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -288,7 +288,7 @@ declare class FieldTypeInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: FieldTypeInstanceUpdateOptions, callback?: (error: Error | null, items: FieldTypeInstance) => any): void; + update(opts?: FieldTypeInstanceUpdateOptions, callback?: (error: Error | null, items: FieldTypeInstance) => any): Promise; url: string; } diff --git a/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts b/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts index 086ce50f93..ec562da111 100644 --- a/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts +++ b/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts @@ -221,7 +221,7 @@ declare class FieldValueContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldValueInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldValueInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -255,7 +255,7 @@ declare class FieldValueInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FieldValueInstance) => any): void; + fetch(callback?: (error: Error | null, items: FieldValueInstance) => any): Promise; fieldTypeSid: string; language: string; /** @@ -263,7 +263,7 @@ declare class FieldValueInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldValueInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldValueInstance) => any): Promise; sid: string; synonymOf: string; /** diff --git a/lib/rest/autopilot/v1/assistant/modelBuild.d.ts b/lib/rest/autopilot/v1/assistant/modelBuild.d.ts index 1257babc39..45ab5e91b8 100644 --- a/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +++ b/lib/rest/autopilot/v1/assistant/modelBuild.d.ts @@ -221,7 +221,7 @@ declare class ModelBuildContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ModelBuildInstance) => any): void; + remove(callback?: (error: Error | null, items: ModelBuildInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -263,13 +263,13 @@ declare class ModelBuildInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ModelBuildInstance) => any): void; + fetch(callback?: (error: Error | null, items: ModelBuildInstance) => any): Promise; /** * remove a ModelBuildInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ModelBuildInstance) => any): void; + remove(callback?: (error: Error | null, items: ModelBuildInstance) => any): Promise; sid: string; status: ModelBuildStatus; /** @@ -283,7 +283,7 @@ declare class ModelBuildInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ModelBuildInstanceUpdateOptions, callback?: (error: Error | null, items: ModelBuildInstance) => any): void; + update(opts?: ModelBuildInstanceUpdateOptions, callback?: (error: Error | null, items: ModelBuildInstance) => any): Promise; url: string; } diff --git a/lib/rest/autopilot/v1/assistant/query.d.ts b/lib/rest/autopilot/v1/assistant/query.d.ts index d329659da7..c5f9cca875 100644 --- a/lib/rest/autopilot/v1/assistant/query.d.ts +++ b/lib/rest/autopilot/v1/assistant/query.d.ts @@ -246,7 +246,7 @@ declare class QueryContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: QueryInstance) => any): void; + remove(callback?: (error: Error | null, items: QueryInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -286,7 +286,7 @@ declare class QueryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: QueryInstance) => any): void; + fetch(callback?: (error: Error | null, items: QueryInstance) => any): Promise; language: string; modelBuildSid: string; query: string; @@ -295,7 +295,7 @@ declare class QueryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: QueryInstance) => any): void; + remove(callback?: (error: Error | null, items: QueryInstance) => any): Promise; results: object; sampleSid: string; sid: string; @@ -311,7 +311,7 @@ declare class QueryInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: QueryInstanceUpdateOptions, callback?: (error: Error | null, items: QueryInstance) => any): void; + update(opts?: QueryInstanceUpdateOptions, callback?: (error: Error | null, items: QueryInstance) => any): Promise; url: string; } diff --git a/lib/rest/autopilot/v1/assistant/styleSheet.d.ts b/lib/rest/autopilot/v1/assistant/styleSheet.d.ts index e85b850423..f94afa4e74 100644 --- a/lib/rest/autopilot/v1/assistant/styleSheet.d.ts +++ b/lib/rest/autopilot/v1/assistant/styleSheet.d.ts @@ -118,7 +118,7 @@ declare class StyleSheetInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: StyleSheetInstance) => any): void; + fetch(callback?: (error: Error | null, items: StyleSheetInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -129,7 +129,7 @@ declare class StyleSheetInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: StyleSheetInstanceUpdateOptions, callback?: (error: Error | null, items: StyleSheetInstance) => any): void; + update(opts?: StyleSheetInstanceUpdateOptions, callback?: (error: Error | null, items: StyleSheetInstance) => any): Promise; url: string; } diff --git a/lib/rest/autopilot/v1/assistant/task.d.ts b/lib/rest/autopilot/v1/assistant/task.d.ts index 764b64d2e9..b566231b0e 100644 --- a/lib/rest/autopilot/v1/assistant/task.d.ts +++ b/lib/rest/autopilot/v1/assistant/task.d.ts @@ -239,7 +239,7 @@ declare class TaskContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TaskInstance) => any): void; + remove(callback?: (error: Error | null, items: TaskInstance) => any): Promise; samples: SampleListInstance; statistics: TaskStatisticsListInstance; taskActions: TaskActionsListInstance; @@ -283,7 +283,7 @@ declare class TaskInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TaskInstance) => any): void; + fetch(callback?: (error: Error | null, items: TaskInstance) => any): Promise; /** * Access the fields */ @@ -295,7 +295,7 @@ declare class TaskInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TaskInstance) => any): void; + remove(callback?: (error: Error | null, items: TaskInstance) => any): Promise; /** * Access the samples */ @@ -320,7 +320,7 @@ declare class TaskInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: TaskInstanceUpdateOptions, callback?: (error: Error | null, items: TaskInstance) => any): void; + update(opts?: TaskInstanceUpdateOptions, callback?: (error: Error | null, items: TaskInstance) => any): Promise; url: string; } diff --git a/lib/rest/autopilot/v1/assistant/task/field.d.ts b/lib/rest/autopilot/v1/assistant/task/field.d.ts index 4e96dba671..847a5770a6 100644 --- a/lib/rest/autopilot/v1/assistant/task/field.d.ts +++ b/lib/rest/autopilot/v1/assistant/task/field.d.ts @@ -212,7 +212,7 @@ declare class FieldContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -246,14 +246,14 @@ declare class FieldInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FieldInstance) => any): void; + fetch(callback?: (error: Error | null, items: FieldInstance) => any): Promise; fieldType: string; /** * remove a FieldInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldInstance) => any): Promise; sid: string; taskSid: string; /** diff --git a/lib/rest/autopilot/v1/assistant/task/sample.d.ts b/lib/rest/autopilot/v1/assistant/task/sample.d.ts index b9c7917ded..c34b3b4874 100644 --- a/lib/rest/autopilot/v1/assistant/task/sample.d.ts +++ b/lib/rest/autopilot/v1/assistant/task/sample.d.ts @@ -234,7 +234,7 @@ declare class SampleContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SampleInstance) => any): void; + remove(callback?: (error: Error | null, items: SampleInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -275,14 +275,14 @@ declare class SampleInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SampleInstance) => any): void; + fetch(callback?: (error: Error | null, items: SampleInstance) => any): Promise; language: string; /** * remove a SampleInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SampleInstance) => any): void; + remove(callback?: (error: Error | null, items: SampleInstance) => any): Promise; sid: string; sourceChannel: string; taggedText: string; @@ -297,7 +297,7 @@ declare class SampleInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SampleInstanceUpdateOptions, callback?: (error: Error | null, items: SampleInstance) => any): void; + update(opts?: SampleInstanceUpdateOptions, callback?: (error: Error | null, items: SampleInstance) => any): Promise; url: string; } diff --git a/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts b/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts index fe7570a1aa..544afbca3a 100644 --- a/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts +++ b/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts @@ -123,7 +123,7 @@ declare class TaskActionsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TaskActionsInstance) => any): void; + fetch(callback?: (error: Error | null, items: TaskActionsInstance) => any): Promise; taskSid: string; /** * Provide a user-friendly representation @@ -135,7 +135,7 @@ declare class TaskActionsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: TaskActionsInstanceUpdateOptions, callback?: (error: Error | null, items: TaskActionsInstance) => any): void; + update(opts?: TaskActionsInstanceUpdateOptions, callback?: (error: Error | null, items: TaskActionsInstance) => any): Promise; url: string; } diff --git a/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts b/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts index 439d91725f..a21b55e0cf 100644 --- a/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts +++ b/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts @@ -106,7 +106,7 @@ declare class TaskStatisticsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TaskStatisticsInstance) => any): void; + fetch(callback?: (error: Error | null, items: TaskStatisticsInstance) => any): Promise; fieldsCount: number; samplesCount: number; taskSid: string; diff --git a/lib/rest/autopilot/v1/assistant/webhook.d.ts b/lib/rest/autopilot/v1/assistant/webhook.d.ts index 3435452e0a..480db2c818 100644 --- a/lib/rest/autopilot/v1/assistant/webhook.d.ts +++ b/lib/rest/autopilot/v1/assistant/webhook.d.ts @@ -229,7 +229,7 @@ declare class WebhookContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebhookInstance) => any): void; + remove(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -270,13 +270,13 @@ declare class WebhookInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WebhookInstance) => any): void; + fetch(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; /** * remove a WebhookInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebhookInstance) => any): void; + remove(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -289,7 +289,7 @@ declare class WebhookInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): void; + update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): Promise; url: string; webhookMethod: string; webhookUrl: string; diff --git a/lib/rest/chat/v1/credential.d.ts b/lib/rest/chat/v1/credential.d.ts index 20bcb6d0a2..342a4eba94 100644 --- a/lib/rest/chat/v1/credential.d.ts +++ b/lib/rest/chat/v1/credential.d.ts @@ -229,7 +229,7 @@ declare class CredentialContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -263,14 +263,14 @@ declare class CredentialInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CredentialInstance) => any): void; + fetch(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; friendlyName: string; /** * remove a CredentialInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; sandbox: string; sid: string; /** @@ -284,7 +284,7 @@ declare class CredentialInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): void; + update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): Promise; url: string; } diff --git a/lib/rest/chat/v1/service.d.ts b/lib/rest/chat/v1/service.d.ts index ad43d0b212..38ccc7e883 100644 --- a/lib/rest/chat/v1/service.d.ts +++ b/lib/rest/chat/v1/service.d.ts @@ -377,7 +377,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; roles: RoleListInstance; /** * Provide a user-friendly representation @@ -421,7 +421,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; friendlyName: string; limits: object; links: string; @@ -435,7 +435,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; /** * Access the roles */ @@ -452,7 +452,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; /** * Access the users diff --git a/lib/rest/chat/v1/service/channel.d.ts b/lib/rest/chat/v1/service/channel.d.ts index 0ba4a3a9df..2efb19da29 100644 --- a/lib/rest/chat/v1/service/channel.d.ts +++ b/lib/rest/chat/v1/service/channel.d.ts @@ -241,7 +241,7 @@ declare class ChannelContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -278,7 +278,7 @@ declare class ChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ChannelInstance) => any): void; + fetch(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; friendlyName: string; /** * Access the invites @@ -300,7 +300,7 @@ declare class ChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -315,7 +315,7 @@ declare class ChannelInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ChannelInstanceUpdateOptions, callback?: (error: Error | null, items: ChannelInstance) => any): void; + update(opts?: ChannelInstanceUpdateOptions, callback?: (error: Error | null, items: ChannelInstance) => any): Promise; url: string; } diff --git a/lib/rest/chat/v1/service/channel/invite.d.ts b/lib/rest/chat/v1/service/channel/invite.d.ts index c8f64c201b..5f280705a1 100644 --- a/lib/rest/chat/v1/service/channel/invite.d.ts +++ b/lib/rest/chat/v1/service/channel/invite.d.ts @@ -212,7 +212,7 @@ declare class InviteContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InviteInstance) => any): void; + remove(callback?: (error: Error | null, items: InviteInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -243,14 +243,14 @@ declare class InviteInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: InviteInstance) => any): void; + fetch(callback?: (error: Error | null, items: InviteInstance) => any): Promise; identity: string; /** * remove a InviteInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InviteInstance) => any): void; + remove(callback?: (error: Error | null, items: InviteInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; diff --git a/lib/rest/chat/v1/service/channel/member.d.ts b/lib/rest/chat/v1/service/channel/member.d.ts index 562b65050c..91fb8fd050 100644 --- a/lib/rest/chat/v1/service/channel/member.d.ts +++ b/lib/rest/chat/v1/service/channel/member.d.ts @@ -224,7 +224,7 @@ declare class MemberContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MemberInstance) => any): void; + remove(callback?: (error: Error | null, items: MemberInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -261,7 +261,7 @@ declare class MemberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MemberInstance) => any): void; + fetch(callback?: (error: Error | null, items: MemberInstance) => any): Promise; identity: string; lastConsumedMessageIndex: number; lastConsumptionTimestamp: Date; @@ -270,7 +270,7 @@ declare class MemberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MemberInstance) => any): void; + remove(callback?: (error: Error | null, items: MemberInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; @@ -284,7 +284,7 @@ declare class MemberInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: MemberInstanceUpdateOptions, callback?: (error: Error | null, items: MemberInstance) => any): void; + update(opts?: MemberInstanceUpdateOptions, callback?: (error: Error | null, items: MemberInstance) => any): Promise; url: string; } diff --git a/lib/rest/chat/v1/service/channel/message.d.ts b/lib/rest/chat/v1/service/channel/message.d.ts index d86da5032a..c9fd782df6 100644 --- a/lib/rest/chat/v1/service/channel/message.d.ts +++ b/lib/rest/chat/v1/service/channel/message.d.ts @@ -229,7 +229,7 @@ declare class MessageContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -268,7 +268,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MessageInstance) => any): void; + fetch(callback?: (error: Error | null, items: MessageInstance) => any): Promise; from: string; index: number; /** @@ -276,7 +276,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; serviceSid: string; sid: string; to: string; @@ -290,7 +290,7 @@ declare class MessageInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): void; + update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): Promise; url: string; wasEdited: boolean; } diff --git a/lib/rest/chat/v1/service/role.d.ts b/lib/rest/chat/v1/service/role.d.ts index 4aba995c32..3fbc3436ac 100644 --- a/lib/rest/chat/v1/service/role.d.ts +++ b/lib/rest/chat/v1/service/role.d.ts @@ -215,7 +215,7 @@ declare class RoleContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RoleInstance) => any): void; + remove(callback?: (error: Error | null, items: RoleInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -250,7 +250,7 @@ declare class RoleInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RoleInstance) => any): void; + fetch(callback?: (error: Error | null, items: RoleInstance) => any): Promise; friendlyName: string; permissions: string[]; /** @@ -258,7 +258,7 @@ declare class RoleInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RoleInstance) => any): void; + remove(callback?: (error: Error | null, items: RoleInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -272,7 +272,7 @@ declare class RoleInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: RoleInstanceUpdateOptions, callback?: (error: Error | null, items: RoleInstance) => any): void; + update(opts: RoleInstanceUpdateOptions, callback?: (error: Error | null, items: RoleInstance) => any): Promise; url: string; } diff --git a/lib/rest/chat/v1/service/user.d.ts b/lib/rest/chat/v1/service/user.d.ts index 276e267fcb..7ac675dd4c 100644 --- a/lib/rest/chat/v1/service/user.d.ts +++ b/lib/rest/chat/v1/service/user.d.ts @@ -225,7 +225,7 @@ declare class UserContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserInstance) => any): void; + remove(callback?: (error: Error | null, items: UserInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -262,7 +262,7 @@ declare class UserInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: UserInstance) => any): void; + fetch(callback?: (error: Error | null, items: UserInstance) => any): Promise; friendlyName: string; identity: string; isNotifiable: boolean; @@ -274,7 +274,7 @@ declare class UserInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserInstance) => any): void; + remove(callback?: (error: Error | null, items: UserInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; @@ -288,7 +288,7 @@ declare class UserInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: UserInstanceUpdateOptions, callback?: (error: Error | null, items: UserInstance) => any): void; + update(opts?: UserInstanceUpdateOptions, callback?: (error: Error | null, items: UserInstance) => any): Promise; url: string; /** * Access the userChannels diff --git a/lib/rest/chat/v2/credential.d.ts b/lib/rest/chat/v2/credential.d.ts index 194455a8c3..73adbd5c4d 100644 --- a/lib/rest/chat/v2/credential.d.ts +++ b/lib/rest/chat/v2/credential.d.ts @@ -229,7 +229,7 @@ declare class CredentialContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -263,14 +263,14 @@ declare class CredentialInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CredentialInstance) => any): void; + fetch(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; friendlyName: string; /** * remove a CredentialInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; sandbox: string; sid: string; /** @@ -284,7 +284,7 @@ declare class CredentialInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): void; + update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): Promise; url: string; } diff --git a/lib/rest/chat/v2/service.d.ts b/lib/rest/chat/v2/service.d.ts index 07138c8924..1d9057b09c 100644 --- a/lib/rest/chat/v2/service.d.ts +++ b/lib/rest/chat/v2/service.d.ts @@ -304,7 +304,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; roles: RoleListInstance; /** * Provide a user-friendly representation @@ -352,7 +352,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; friendlyName: string; limits: object; links: string; @@ -369,7 +369,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; /** * Access the roles */ @@ -386,7 +386,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; /** * Access the users diff --git a/lib/rest/chat/v2/service/binding.d.ts b/lib/rest/chat/v2/service/binding.d.ts index 5af7685f23..97a2fdafb9 100644 --- a/lib/rest/chat/v2/service/binding.d.ts +++ b/lib/rest/chat/v2/service/binding.d.ts @@ -201,7 +201,7 @@ declare class BindingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: BindingInstance) => any): void; + remove(callback?: (error: Error | null, items: BindingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -232,7 +232,7 @@ declare class BindingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: BindingInstance) => any): void; + fetch(callback?: (error: Error | null, items: BindingInstance) => any): Promise; identity: string; links: string; messageTypes: string[]; @@ -241,7 +241,7 @@ declare class BindingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: BindingInstance) => any): void; + remove(callback?: (error: Error | null, items: BindingInstance) => any): Promise; serviceSid: string; sid: string; /** diff --git a/lib/rest/chat/v2/service/channel.d.ts b/lib/rest/chat/v2/service/channel.d.ts index 4fa6121a7e..1a4553c118 100644 --- a/lib/rest/chat/v2/service/channel.d.ts +++ b/lib/rest/chat/v2/service/channel.d.ts @@ -257,7 +257,7 @@ declare class ChannelContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -295,7 +295,7 @@ declare class ChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ChannelInstance) => any): void; + fetch(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; friendlyName: string; /** * Access the invites @@ -317,7 +317,7 @@ declare class ChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -332,7 +332,7 @@ declare class ChannelInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ChannelInstanceUpdateOptions, callback?: (error: Error | null, items: ChannelInstance) => any): void; + update(opts?: ChannelInstanceUpdateOptions, callback?: (error: Error | null, items: ChannelInstance) => any): Promise; url: string; /** * Access the webhooks diff --git a/lib/rest/chat/v2/service/channel/invite.d.ts b/lib/rest/chat/v2/service/channel/invite.d.ts index fcb2e35a6f..7a9b297112 100644 --- a/lib/rest/chat/v2/service/channel/invite.d.ts +++ b/lib/rest/chat/v2/service/channel/invite.d.ts @@ -212,7 +212,7 @@ declare class InviteContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InviteInstance) => any): void; + remove(callback?: (error: Error | null, items: InviteInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -243,14 +243,14 @@ declare class InviteInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: InviteInstance) => any): void; + fetch(callback?: (error: Error | null, items: InviteInstance) => any): Promise; identity: string; /** * remove a InviteInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InviteInstance) => any): void; + remove(callback?: (error: Error | null, items: InviteInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; diff --git a/lib/rest/chat/v2/service/channel/member.d.ts b/lib/rest/chat/v2/service/channel/member.d.ts index 39ad37fc3c..b3d745e623 100644 --- a/lib/rest/chat/v2/service/channel/member.d.ts +++ b/lib/rest/chat/v2/service/channel/member.d.ts @@ -245,7 +245,7 @@ declare class MemberContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MemberInstance) => any): void; + remove(callback?: (error: Error | null, items: MemberInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -283,7 +283,7 @@ declare class MemberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MemberInstance) => any): void; + fetch(callback?: (error: Error | null, items: MemberInstance) => any): Promise; identity: string; lastConsumedMessageIndex: number; lastConsumptionTimestamp: Date; @@ -292,7 +292,7 @@ declare class MemberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MemberInstance) => any): void; + remove(callback?: (error: Error | null, items: MemberInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; @@ -306,7 +306,7 @@ declare class MemberInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: MemberInstanceUpdateOptions, callback?: (error: Error | null, items: MemberInstance) => any): void; + update(opts?: MemberInstanceUpdateOptions, callback?: (error: Error | null, items: MemberInstance) => any): Promise; url: string; } diff --git a/lib/rest/chat/v2/service/channel/message.d.ts b/lib/rest/chat/v2/service/channel/message.d.ts index 21e33af71e..f9695262fb 100644 --- a/lib/rest/chat/v2/service/channel/message.d.ts +++ b/lib/rest/chat/v2/service/channel/message.d.ts @@ -251,7 +251,7 @@ declare class MessageContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -290,7 +290,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MessageInstance) => any): void; + fetch(callback?: (error: Error | null, items: MessageInstance) => any): Promise; from: string; index: number; lastUpdatedBy: string; @@ -300,7 +300,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; serviceSid: string; sid: string; to: string; @@ -315,7 +315,7 @@ declare class MessageInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): void; + update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): Promise; url: string; wasEdited: boolean; } diff --git a/lib/rest/chat/v2/service/channel/webhook.d.ts b/lib/rest/chat/v2/service/channel/webhook.d.ts index c27685fafd..e599c496ba 100644 --- a/lib/rest/chat/v2/service/channel/webhook.d.ts +++ b/lib/rest/chat/v2/service/channel/webhook.d.ts @@ -242,7 +242,7 @@ declare class WebhookContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebhookInstance) => any): void; + remove(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -280,13 +280,13 @@ declare class WebhookInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WebhookInstance) => any): void; + fetch(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; /** * remove a WebhookInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebhookInstance) => any): void; + remove(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -300,7 +300,7 @@ declare class WebhookInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): void; + update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): Promise; url: string; } diff --git a/lib/rest/chat/v2/service/role.d.ts b/lib/rest/chat/v2/service/role.d.ts index 7162646ac7..7801a85686 100644 --- a/lib/rest/chat/v2/service/role.d.ts +++ b/lib/rest/chat/v2/service/role.d.ts @@ -215,7 +215,7 @@ declare class RoleContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RoleInstance) => any): void; + remove(callback?: (error: Error | null, items: RoleInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -250,7 +250,7 @@ declare class RoleInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RoleInstance) => any): void; + fetch(callback?: (error: Error | null, items: RoleInstance) => any): Promise; friendlyName: string; permissions: string[]; /** @@ -258,7 +258,7 @@ declare class RoleInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RoleInstance) => any): void; + remove(callback?: (error: Error | null, items: RoleInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -272,7 +272,7 @@ declare class RoleInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: RoleInstanceUpdateOptions, callback?: (error: Error | null, items: RoleInstance) => any): void; + update(opts: RoleInstanceUpdateOptions, callback?: (error: Error | null, items: RoleInstance) => any): Promise; url: string; } diff --git a/lib/rest/chat/v2/service/user.d.ts b/lib/rest/chat/v2/service/user.d.ts index caa62dc9ff..d6c28f5b62 100644 --- a/lib/rest/chat/v2/service/user.d.ts +++ b/lib/rest/chat/v2/service/user.d.ts @@ -229,7 +229,7 @@ declare class UserContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserInstance) => any): void; + remove(callback?: (error: Error | null, items: UserInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -267,7 +267,7 @@ declare class UserInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: UserInstance) => any): void; + fetch(callback?: (error: Error | null, items: UserInstance) => any): Promise; friendlyName: string; identity: string; isNotifiable: boolean; @@ -279,7 +279,7 @@ declare class UserInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserInstance) => any): void; + remove(callback?: (error: Error | null, items: UserInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; @@ -293,7 +293,7 @@ declare class UserInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: UserInstanceUpdateOptions, callback?: (error: Error | null, items: UserInstance) => any): void; + update(opts?: UserInstanceUpdateOptions, callback?: (error: Error | null, items: UserInstance) => any): Promise; url: string; /** * Access the userBindings diff --git a/lib/rest/chat/v2/service/user/userBinding.d.ts b/lib/rest/chat/v2/service/user/userBinding.d.ts index 1c0c58ad51..e6ab58d675 100644 --- a/lib/rest/chat/v2/service/user/userBinding.d.ts +++ b/lib/rest/chat/v2/service/user/userBinding.d.ts @@ -198,7 +198,7 @@ declare class UserBindingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserBindingInstance) => any): void; + remove(callback?: (error: Error | null, items: UserBindingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -230,7 +230,7 @@ declare class UserBindingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: UserBindingInstance) => any): void; + fetch(callback?: (error: Error | null, items: UserBindingInstance) => any): Promise; identity: string; messageTypes: string[]; /** @@ -238,7 +238,7 @@ declare class UserBindingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserBindingInstance) => any): void; + remove(callback?: (error: Error | null, items: UserBindingInstance) => any): Promise; serviceSid: string; sid: string; /** diff --git a/lib/rest/chat/v2/service/user/userChannel.d.ts b/lib/rest/chat/v2/service/user/userChannel.d.ts index 09e512f70d..704d5967d5 100644 --- a/lib/rest/chat/v2/service/user/userChannel.d.ts +++ b/lib/rest/chat/v2/service/user/userChannel.d.ts @@ -230,7 +230,7 @@ declare class UserChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: UserChannelInstance) => any): void; + fetch(callback?: (error: Error | null, items: UserChannelInstance) => any): Promise; lastConsumedMessageIndex: number; links: string; memberSid: string; @@ -248,7 +248,7 @@ declare class UserChannelInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: UserChannelInstanceUpdateOptions, callback?: (error: Error | null, items: UserChannelInstance) => any): void; + update(opts: UserChannelInstanceUpdateOptions, callback?: (error: Error | null, items: UserChannelInstance) => any): Promise; url: string; userSid: string; } diff --git a/lib/rest/conversations/v1/conversation.d.ts b/lib/rest/conversations/v1/conversation.d.ts index ca5f6f9cca..8c4fcd63b5 100644 --- a/lib/rest/conversations/v1/conversation.d.ts +++ b/lib/rest/conversations/v1/conversation.d.ts @@ -239,7 +239,7 @@ declare class ConversationContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ConversationInstance) => any): void; + remove(callback?: (error: Error | null, items: ConversationInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -280,7 +280,7 @@ declare class ConversationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ConversationInstance) => any): void; + fetch(callback?: (error: Error | null, items: ConversationInstance) => any): Promise; friendlyName: string; links: string; /** @@ -297,7 +297,7 @@ declare class ConversationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ConversationInstance) => any): void; + remove(callback?: (error: Error | null, items: ConversationInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -309,7 +309,7 @@ declare class ConversationInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ConversationInstanceUpdateOptions, callback?: (error: Error | null, items: ConversationInstance) => any): void; + update(opts?: ConversationInstanceUpdateOptions, callback?: (error: Error | null, items: ConversationInstance) => any): Promise; url: string; /** * Access the webhooks diff --git a/lib/rest/conversations/v1/conversation/message.d.ts b/lib/rest/conversations/v1/conversation/message.d.ts index 718237400b..964cd9ebc3 100644 --- a/lib/rest/conversations/v1/conversation/message.d.ts +++ b/lib/rest/conversations/v1/conversation/message.d.ts @@ -236,7 +236,7 @@ declare class MessageContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -279,14 +279,14 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MessageInstance) => any): void; + fetch(callback?: (error: Error | null, items: MessageInstance) => any): Promise; index: number; /** * remove a MessageInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -298,7 +298,7 @@ declare class MessageInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): void; + update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): Promise; url: string; } diff --git a/lib/rest/conversations/v1/conversation/participant.d.ts b/lib/rest/conversations/v1/conversation/participant.d.ts index 18d48fe556..6c9f702afd 100644 --- a/lib/rest/conversations/v1/conversation/participant.d.ts +++ b/lib/rest/conversations/v1/conversation/participant.d.ts @@ -235,7 +235,7 @@ declare class ParticipantContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + remove(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -276,7 +276,7 @@ declare class ParticipantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + fetch(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; identity: string; messagingBinding: object; /** @@ -284,7 +284,7 @@ declare class ParticipantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + remove(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -296,7 +296,7 @@ declare class ParticipantInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ParticipantInstanceUpdateOptions, callback?: (error: Error | null, items: ParticipantInstance) => any): void; + update(opts?: ParticipantInstanceUpdateOptions, callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; url: string; } diff --git a/lib/rest/conversations/v1/conversation/webhook.d.ts b/lib/rest/conversations/v1/conversation/webhook.d.ts index 2ad4f30893..4d234cd8bd 100644 --- a/lib/rest/conversations/v1/conversation/webhook.d.ts +++ b/lib/rest/conversations/v1/conversation/webhook.d.ts @@ -244,7 +244,7 @@ declare class WebhookContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebhookInstance) => any): void; + remove(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -285,13 +285,13 @@ declare class WebhookInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WebhookInstance) => any): void; + fetch(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; /** * remove a WebhookInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebhookInstance) => any): void; + remove(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; sid: string; target: string; /** @@ -304,7 +304,7 @@ declare class WebhookInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): void; + update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): Promise; url: string; } diff --git a/lib/rest/conversations/v1/webhook.d.ts b/lib/rest/conversations/v1/webhook.d.ts index bab9be820b..4e3af33bfb 100644 --- a/lib/rest/conversations/v1/webhook.d.ts +++ b/lib/rest/conversations/v1/webhook.d.ts @@ -127,7 +127,7 @@ declare class WebhookInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WebhookInstance) => any): void; + fetch(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; filters: string[]; method: WebhookMethod; postWebhookUrl: string; @@ -143,7 +143,7 @@ declare class WebhookInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): void; + update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): Promise; url: string; } diff --git a/lib/rest/fax/v1/fax.d.ts b/lib/rest/fax/v1/fax.d.ts index 88578bec8b..449c43c902 100644 --- a/lib/rest/fax/v1/fax.d.ts +++ b/lib/rest/fax/v1/fax.d.ts @@ -272,7 +272,7 @@ declare class FaxContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FaxInstance) => any): void; + remove(callback?: (error: Error | null, items: FaxInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -312,7 +312,7 @@ declare class FaxInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FaxInstance) => any): void; + fetch(callback?: (error: Error | null, items: FaxInstance) => any): Promise; from: string; links: string; /** @@ -330,7 +330,7 @@ declare class FaxInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FaxInstance) => any): void; + remove(callback?: (error: Error | null, items: FaxInstance) => any): Promise; sid: string; status: FaxStatus; to: string; @@ -344,7 +344,7 @@ declare class FaxInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: FaxInstanceUpdateOptions, callback?: (error: Error | null, items: FaxInstance) => any): void; + update(opts?: FaxInstanceUpdateOptions, callback?: (error: Error | null, items: FaxInstance) => any): Promise; url: string; } diff --git a/lib/rest/fax/v1/fax/faxMedia.d.ts b/lib/rest/fax/v1/fax/faxMedia.d.ts index 33358e2829..801c2a37e0 100644 --- a/lib/rest/fax/v1/fax/faxMedia.d.ts +++ b/lib/rest/fax/v1/fax/faxMedia.d.ts @@ -187,7 +187,7 @@ declare class FaxMediaContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FaxMediaInstance) => any): void; + remove(callback?: (error: Error | null, items: FaxMediaInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -220,13 +220,13 @@ declare class FaxMediaInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FaxMediaInstance) => any): void; + fetch(callback?: (error: Error | null, items: FaxMediaInstance) => any): Promise; /** * remove a FaxMediaInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FaxMediaInstance) => any): void; + remove(callback?: (error: Error | null, items: FaxMediaInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/flexApi/v1/channel.d.ts b/lib/rest/flexApi/v1/channel.d.ts index 945504a066..bdd51e7cac 100644 --- a/lib/rest/flexApi/v1/channel.d.ts +++ b/lib/rest/flexApi/v1/channel.d.ts @@ -214,7 +214,7 @@ declare class ChannelContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -241,14 +241,14 @@ declare class ChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ChannelInstance) => any): void; + fetch(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; flexFlowSid: string; /** * remove a ChannelInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; sid: string; taskSid: string; /** diff --git a/lib/rest/flexApi/v1/configuration.d.ts b/lib/rest/flexApi/v1/configuration.d.ts index 32c9d94d87..09bf40a7bb 100644 --- a/lib/rest/flexApi/v1/configuration.d.ts +++ b/lib/rest/flexApi/v1/configuration.d.ts @@ -142,7 +142,7 @@ declare class ConfigurationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - create(callback?: (error: Error | null, items: ConfigurationInstance) => any): void; + create(callback?: (error: Error | null, items: ConfigurationInstance) => any): Promise; crmAttributes: object; crmCallbackUrl: string; crmEnabled: boolean; @@ -157,7 +157,7 @@ declare class ConfigurationInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: ConfigurationInstanceFetchOptions, callback?: (error: Error | null, items: ConfigurationInstance) => any): void; + fetch(opts?: ConfigurationInstanceFetchOptions, callback?: (error: Error | null, items: ConfigurationInstance) => any): Promise; integrations: object[]; messagingServiceInstanceSid: string; outboundCallFlows: object; @@ -188,7 +188,7 @@ declare class ConfigurationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - update(callback?: (error: Error | null, items: ConfigurationInstance) => any): void; + update(callback?: (error: Error | null, items: ConfigurationInstance) => any): Promise; url: string; } diff --git a/lib/rest/flexApi/v1/flexFlow.d.ts b/lib/rest/flexApi/v1/flexFlow.d.ts index 48c837196e..3edf0e9fb6 100644 --- a/lib/rest/flexApi/v1/flexFlow.d.ts +++ b/lib/rest/flexApi/v1/flexFlow.d.ts @@ -280,7 +280,7 @@ declare class FlexFlowContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FlexFlowInstance) => any): void; + remove(callback?: (error: Error | null, items: FlexFlowInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -318,7 +318,7 @@ declare class FlexFlowInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FlexFlowInstance) => any): void; + fetch(callback?: (error: Error | null, items: FlexFlowInstance) => any): Promise; friendlyName: string; integration: object; integrationType: FlexFlowIntegrationType; @@ -328,7 +328,7 @@ declare class FlexFlowInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FlexFlowInstance) => any): void; + remove(callback?: (error: Error | null, items: FlexFlowInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -340,7 +340,7 @@ declare class FlexFlowInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: FlexFlowInstanceUpdateOptions, callback?: (error: Error | null, items: FlexFlowInstance) => any): void; + update(opts?: FlexFlowInstanceUpdateOptions, callback?: (error: Error | null, items: FlexFlowInstance) => any): Promise; url: string; } diff --git a/lib/rest/flexApi/v1/webChannel.d.ts b/lib/rest/flexApi/v1/webChannel.d.ts index d7c61cd76c..e33ce4dba0 100644 --- a/lib/rest/flexApi/v1/webChannel.d.ts +++ b/lib/rest/flexApi/v1/webChannel.d.ts @@ -216,7 +216,7 @@ declare class WebChannelContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: WebChannelInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -250,14 +250,14 @@ declare class WebChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WebChannelInstance) => any): void; + fetch(callback?: (error: Error | null, items: WebChannelInstance) => any): Promise; flexFlowSid: string; /** * remove a WebChannelInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: WebChannelInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -269,7 +269,7 @@ declare class WebChannelInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WebChannelInstanceUpdateOptions, callback?: (error: Error | null, items: WebChannelInstance) => any): void; + update(opts?: WebChannelInstanceUpdateOptions, callback?: (error: Error | null, items: WebChannelInstance) => any): Promise; url: string; } diff --git a/lib/rest/insights/v1/summary.d.ts b/lib/rest/insights/v1/summary.d.ts index 65da5c738c..80f94e30e8 100644 --- a/lib/rest/insights/v1/summary.d.ts +++ b/lib/rest/insights/v1/summary.d.ts @@ -140,7 +140,7 @@ declare class CallSummaryInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: CallSummaryInstanceFetchOptions, callback?: (error: Error | null, items: CallSummaryInstance) => any): void; + fetch(opts?: CallSummaryInstanceFetchOptions, callback?: (error: Error | null, items: CallSummaryInstance) => any): Promise; from: object; processingState: CallSummaryProcessingState; properties: object; diff --git a/lib/rest/ipMessaging/v1/credential.d.ts b/lib/rest/ipMessaging/v1/credential.d.ts index 20bcb6d0a2..342a4eba94 100644 --- a/lib/rest/ipMessaging/v1/credential.d.ts +++ b/lib/rest/ipMessaging/v1/credential.d.ts @@ -229,7 +229,7 @@ declare class CredentialContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -263,14 +263,14 @@ declare class CredentialInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CredentialInstance) => any): void; + fetch(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; friendlyName: string; /** * remove a CredentialInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; sandbox: string; sid: string; /** @@ -284,7 +284,7 @@ declare class CredentialInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): void; + update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): Promise; url: string; } diff --git a/lib/rest/ipMessaging/v1/service.d.ts b/lib/rest/ipMessaging/v1/service.d.ts index ad43d0b212..38ccc7e883 100644 --- a/lib/rest/ipMessaging/v1/service.d.ts +++ b/lib/rest/ipMessaging/v1/service.d.ts @@ -377,7 +377,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; roles: RoleListInstance; /** * Provide a user-friendly representation @@ -421,7 +421,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; friendlyName: string; limits: object; links: string; @@ -435,7 +435,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; /** * Access the roles */ @@ -452,7 +452,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; /** * Access the users diff --git a/lib/rest/ipMessaging/v1/service/channel.d.ts b/lib/rest/ipMessaging/v1/service/channel.d.ts index 0ba4a3a9df..2efb19da29 100644 --- a/lib/rest/ipMessaging/v1/service/channel.d.ts +++ b/lib/rest/ipMessaging/v1/service/channel.d.ts @@ -241,7 +241,7 @@ declare class ChannelContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -278,7 +278,7 @@ declare class ChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ChannelInstance) => any): void; + fetch(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; friendlyName: string; /** * Access the invites @@ -300,7 +300,7 @@ declare class ChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -315,7 +315,7 @@ declare class ChannelInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ChannelInstanceUpdateOptions, callback?: (error: Error | null, items: ChannelInstance) => any): void; + update(opts?: ChannelInstanceUpdateOptions, callback?: (error: Error | null, items: ChannelInstance) => any): Promise; url: string; } diff --git a/lib/rest/ipMessaging/v1/service/channel/invite.d.ts b/lib/rest/ipMessaging/v1/service/channel/invite.d.ts index c8f64c201b..5f280705a1 100644 --- a/lib/rest/ipMessaging/v1/service/channel/invite.d.ts +++ b/lib/rest/ipMessaging/v1/service/channel/invite.d.ts @@ -212,7 +212,7 @@ declare class InviteContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InviteInstance) => any): void; + remove(callback?: (error: Error | null, items: InviteInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -243,14 +243,14 @@ declare class InviteInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: InviteInstance) => any): void; + fetch(callback?: (error: Error | null, items: InviteInstance) => any): Promise; identity: string; /** * remove a InviteInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InviteInstance) => any): void; + remove(callback?: (error: Error | null, items: InviteInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; diff --git a/lib/rest/ipMessaging/v1/service/channel/member.d.ts b/lib/rest/ipMessaging/v1/service/channel/member.d.ts index 562b65050c..91fb8fd050 100644 --- a/lib/rest/ipMessaging/v1/service/channel/member.d.ts +++ b/lib/rest/ipMessaging/v1/service/channel/member.d.ts @@ -224,7 +224,7 @@ declare class MemberContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MemberInstance) => any): void; + remove(callback?: (error: Error | null, items: MemberInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -261,7 +261,7 @@ declare class MemberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MemberInstance) => any): void; + fetch(callback?: (error: Error | null, items: MemberInstance) => any): Promise; identity: string; lastConsumedMessageIndex: number; lastConsumptionTimestamp: Date; @@ -270,7 +270,7 @@ declare class MemberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MemberInstance) => any): void; + remove(callback?: (error: Error | null, items: MemberInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; @@ -284,7 +284,7 @@ declare class MemberInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: MemberInstanceUpdateOptions, callback?: (error: Error | null, items: MemberInstance) => any): void; + update(opts?: MemberInstanceUpdateOptions, callback?: (error: Error | null, items: MemberInstance) => any): Promise; url: string; } diff --git a/lib/rest/ipMessaging/v1/service/channel/message.d.ts b/lib/rest/ipMessaging/v1/service/channel/message.d.ts index d86da5032a..c9fd782df6 100644 --- a/lib/rest/ipMessaging/v1/service/channel/message.d.ts +++ b/lib/rest/ipMessaging/v1/service/channel/message.d.ts @@ -229,7 +229,7 @@ declare class MessageContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -268,7 +268,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MessageInstance) => any): void; + fetch(callback?: (error: Error | null, items: MessageInstance) => any): Promise; from: string; index: number; /** @@ -276,7 +276,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; serviceSid: string; sid: string; to: string; @@ -290,7 +290,7 @@ declare class MessageInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): void; + update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): Promise; url: string; wasEdited: boolean; } diff --git a/lib/rest/ipMessaging/v1/service/role.d.ts b/lib/rest/ipMessaging/v1/service/role.d.ts index 4aba995c32..3fbc3436ac 100644 --- a/lib/rest/ipMessaging/v1/service/role.d.ts +++ b/lib/rest/ipMessaging/v1/service/role.d.ts @@ -215,7 +215,7 @@ declare class RoleContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RoleInstance) => any): void; + remove(callback?: (error: Error | null, items: RoleInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -250,7 +250,7 @@ declare class RoleInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RoleInstance) => any): void; + fetch(callback?: (error: Error | null, items: RoleInstance) => any): Promise; friendlyName: string; permissions: string[]; /** @@ -258,7 +258,7 @@ declare class RoleInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RoleInstance) => any): void; + remove(callback?: (error: Error | null, items: RoleInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -272,7 +272,7 @@ declare class RoleInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: RoleInstanceUpdateOptions, callback?: (error: Error | null, items: RoleInstance) => any): void; + update(opts: RoleInstanceUpdateOptions, callback?: (error: Error | null, items: RoleInstance) => any): Promise; url: string; } diff --git a/lib/rest/ipMessaging/v1/service/user.d.ts b/lib/rest/ipMessaging/v1/service/user.d.ts index 276e267fcb..7ac675dd4c 100644 --- a/lib/rest/ipMessaging/v1/service/user.d.ts +++ b/lib/rest/ipMessaging/v1/service/user.d.ts @@ -225,7 +225,7 @@ declare class UserContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserInstance) => any): void; + remove(callback?: (error: Error | null, items: UserInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -262,7 +262,7 @@ declare class UserInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: UserInstance) => any): void; + fetch(callback?: (error: Error | null, items: UserInstance) => any): Promise; friendlyName: string; identity: string; isNotifiable: boolean; @@ -274,7 +274,7 @@ declare class UserInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserInstance) => any): void; + remove(callback?: (error: Error | null, items: UserInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; @@ -288,7 +288,7 @@ declare class UserInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: UserInstanceUpdateOptions, callback?: (error: Error | null, items: UserInstance) => any): void; + update(opts?: UserInstanceUpdateOptions, callback?: (error: Error | null, items: UserInstance) => any): Promise; url: string; /** * Access the userChannels diff --git a/lib/rest/ipMessaging/v2/credential.d.ts b/lib/rest/ipMessaging/v2/credential.d.ts index 194455a8c3..73adbd5c4d 100644 --- a/lib/rest/ipMessaging/v2/credential.d.ts +++ b/lib/rest/ipMessaging/v2/credential.d.ts @@ -229,7 +229,7 @@ declare class CredentialContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -263,14 +263,14 @@ declare class CredentialInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CredentialInstance) => any): void; + fetch(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; friendlyName: string; /** * remove a CredentialInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; sandbox: string; sid: string; /** @@ -284,7 +284,7 @@ declare class CredentialInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): void; + update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): Promise; url: string; } diff --git a/lib/rest/ipMessaging/v2/service.d.ts b/lib/rest/ipMessaging/v2/service.d.ts index 07138c8924..1d9057b09c 100644 --- a/lib/rest/ipMessaging/v2/service.d.ts +++ b/lib/rest/ipMessaging/v2/service.d.ts @@ -304,7 +304,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; roles: RoleListInstance; /** * Provide a user-friendly representation @@ -352,7 +352,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; friendlyName: string; limits: object; links: string; @@ -369,7 +369,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; /** * Access the roles */ @@ -386,7 +386,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; /** * Access the users diff --git a/lib/rest/ipMessaging/v2/service/binding.d.ts b/lib/rest/ipMessaging/v2/service/binding.d.ts index 5af7685f23..97a2fdafb9 100644 --- a/lib/rest/ipMessaging/v2/service/binding.d.ts +++ b/lib/rest/ipMessaging/v2/service/binding.d.ts @@ -201,7 +201,7 @@ declare class BindingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: BindingInstance) => any): void; + remove(callback?: (error: Error | null, items: BindingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -232,7 +232,7 @@ declare class BindingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: BindingInstance) => any): void; + fetch(callback?: (error: Error | null, items: BindingInstance) => any): Promise; identity: string; links: string; messageTypes: string[]; @@ -241,7 +241,7 @@ declare class BindingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: BindingInstance) => any): void; + remove(callback?: (error: Error | null, items: BindingInstance) => any): Promise; serviceSid: string; sid: string; /** diff --git a/lib/rest/ipMessaging/v2/service/channel.d.ts b/lib/rest/ipMessaging/v2/service/channel.d.ts index 4fa6121a7e..1a4553c118 100644 --- a/lib/rest/ipMessaging/v2/service/channel.d.ts +++ b/lib/rest/ipMessaging/v2/service/channel.d.ts @@ -257,7 +257,7 @@ declare class ChannelContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -295,7 +295,7 @@ declare class ChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ChannelInstance) => any): void; + fetch(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; friendlyName: string; /** * Access the invites @@ -317,7 +317,7 @@ declare class ChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: ChannelInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -332,7 +332,7 @@ declare class ChannelInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ChannelInstanceUpdateOptions, callback?: (error: Error | null, items: ChannelInstance) => any): void; + update(opts?: ChannelInstanceUpdateOptions, callback?: (error: Error | null, items: ChannelInstance) => any): Promise; url: string; /** * Access the webhooks diff --git a/lib/rest/ipMessaging/v2/service/channel/invite.d.ts b/lib/rest/ipMessaging/v2/service/channel/invite.d.ts index fcb2e35a6f..7a9b297112 100644 --- a/lib/rest/ipMessaging/v2/service/channel/invite.d.ts +++ b/lib/rest/ipMessaging/v2/service/channel/invite.d.ts @@ -212,7 +212,7 @@ declare class InviteContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InviteInstance) => any): void; + remove(callback?: (error: Error | null, items: InviteInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -243,14 +243,14 @@ declare class InviteInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: InviteInstance) => any): void; + fetch(callback?: (error: Error | null, items: InviteInstance) => any): Promise; identity: string; /** * remove a InviteInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InviteInstance) => any): void; + remove(callback?: (error: Error | null, items: InviteInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; diff --git a/lib/rest/ipMessaging/v2/service/channel/member.d.ts b/lib/rest/ipMessaging/v2/service/channel/member.d.ts index 39ad37fc3c..b3d745e623 100644 --- a/lib/rest/ipMessaging/v2/service/channel/member.d.ts +++ b/lib/rest/ipMessaging/v2/service/channel/member.d.ts @@ -245,7 +245,7 @@ declare class MemberContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MemberInstance) => any): void; + remove(callback?: (error: Error | null, items: MemberInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -283,7 +283,7 @@ declare class MemberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MemberInstance) => any): void; + fetch(callback?: (error: Error | null, items: MemberInstance) => any): Promise; identity: string; lastConsumedMessageIndex: number; lastConsumptionTimestamp: Date; @@ -292,7 +292,7 @@ declare class MemberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MemberInstance) => any): void; + remove(callback?: (error: Error | null, items: MemberInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; @@ -306,7 +306,7 @@ declare class MemberInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: MemberInstanceUpdateOptions, callback?: (error: Error | null, items: MemberInstance) => any): void; + update(opts?: MemberInstanceUpdateOptions, callback?: (error: Error | null, items: MemberInstance) => any): Promise; url: string; } diff --git a/lib/rest/ipMessaging/v2/service/channel/message.d.ts b/lib/rest/ipMessaging/v2/service/channel/message.d.ts index 21e33af71e..f9695262fb 100644 --- a/lib/rest/ipMessaging/v2/service/channel/message.d.ts +++ b/lib/rest/ipMessaging/v2/service/channel/message.d.ts @@ -251,7 +251,7 @@ declare class MessageContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -290,7 +290,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MessageInstance) => any): void; + fetch(callback?: (error: Error | null, items: MessageInstance) => any): Promise; from: string; index: number; lastUpdatedBy: string; @@ -300,7 +300,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; serviceSid: string; sid: string; to: string; @@ -315,7 +315,7 @@ declare class MessageInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): void; + update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): Promise; url: string; wasEdited: boolean; } diff --git a/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts b/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts index c27685fafd..e599c496ba 100644 --- a/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +++ b/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts @@ -242,7 +242,7 @@ declare class WebhookContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebhookInstance) => any): void; + remove(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -280,13 +280,13 @@ declare class WebhookInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WebhookInstance) => any): void; + fetch(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; /** * remove a WebhookInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebhookInstance) => any): void; + remove(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -300,7 +300,7 @@ declare class WebhookInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): void; + update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): Promise; url: string; } diff --git a/lib/rest/ipMessaging/v2/service/role.d.ts b/lib/rest/ipMessaging/v2/service/role.d.ts index 7162646ac7..7801a85686 100644 --- a/lib/rest/ipMessaging/v2/service/role.d.ts +++ b/lib/rest/ipMessaging/v2/service/role.d.ts @@ -215,7 +215,7 @@ declare class RoleContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RoleInstance) => any): void; + remove(callback?: (error: Error | null, items: RoleInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -250,7 +250,7 @@ declare class RoleInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RoleInstance) => any): void; + fetch(callback?: (error: Error | null, items: RoleInstance) => any): Promise; friendlyName: string; permissions: string[]; /** @@ -258,7 +258,7 @@ declare class RoleInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RoleInstance) => any): void; + remove(callback?: (error: Error | null, items: RoleInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -272,7 +272,7 @@ declare class RoleInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: RoleInstanceUpdateOptions, callback?: (error: Error | null, items: RoleInstance) => any): void; + update(opts: RoleInstanceUpdateOptions, callback?: (error: Error | null, items: RoleInstance) => any): Promise; url: string; } diff --git a/lib/rest/ipMessaging/v2/service/user.d.ts b/lib/rest/ipMessaging/v2/service/user.d.ts index caa62dc9ff..d6c28f5b62 100644 --- a/lib/rest/ipMessaging/v2/service/user.d.ts +++ b/lib/rest/ipMessaging/v2/service/user.d.ts @@ -229,7 +229,7 @@ declare class UserContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserInstance) => any): void; + remove(callback?: (error: Error | null, items: UserInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -267,7 +267,7 @@ declare class UserInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: UserInstance) => any): void; + fetch(callback?: (error: Error | null, items: UserInstance) => any): Promise; friendlyName: string; identity: string; isNotifiable: boolean; @@ -279,7 +279,7 @@ declare class UserInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserInstance) => any): void; + remove(callback?: (error: Error | null, items: UserInstance) => any): Promise; roleSid: string; serviceSid: string; sid: string; @@ -293,7 +293,7 @@ declare class UserInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: UserInstanceUpdateOptions, callback?: (error: Error | null, items: UserInstance) => any): void; + update(opts?: UserInstanceUpdateOptions, callback?: (error: Error | null, items: UserInstance) => any): Promise; url: string; /** * Access the userBindings diff --git a/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts b/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts index 1c0c58ad51..e6ab58d675 100644 --- a/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +++ b/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts @@ -198,7 +198,7 @@ declare class UserBindingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserBindingInstance) => any): void; + remove(callback?: (error: Error | null, items: UserBindingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -230,7 +230,7 @@ declare class UserBindingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: UserBindingInstance) => any): void; + fetch(callback?: (error: Error | null, items: UserBindingInstance) => any): Promise; identity: string; messageTypes: string[]; /** @@ -238,7 +238,7 @@ declare class UserBindingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: UserBindingInstance) => any): void; + remove(callback?: (error: Error | null, items: UserBindingInstance) => any): Promise; serviceSid: string; sid: string; /** diff --git a/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts b/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts index 09e512f70d..704d5967d5 100644 --- a/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +++ b/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts @@ -230,7 +230,7 @@ declare class UserChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: UserChannelInstance) => any): void; + fetch(callback?: (error: Error | null, items: UserChannelInstance) => any): Promise; lastConsumedMessageIndex: number; links: string; memberSid: string; @@ -248,7 +248,7 @@ declare class UserChannelInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: UserChannelInstanceUpdateOptions, callback?: (error: Error | null, items: UserChannelInstance) => any): void; + update(opts: UserChannelInstanceUpdateOptions, callback?: (error: Error | null, items: UserChannelInstance) => any): Promise; url: string; userSid: string; } diff --git a/lib/rest/lookups/v1/phoneNumber.d.ts b/lib/rest/lookups/v1/phoneNumber.d.ts index 26dedf9d1f..a058328ded 100644 --- a/lib/rest/lookups/v1/phoneNumber.d.ts +++ b/lib/rest/lookups/v1/phoneNumber.d.ts @@ -113,7 +113,7 @@ declare class PhoneNumberInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: PhoneNumberInstanceFetchOptions, callback?: (error: Error | null, items: PhoneNumberInstance) => any): void; + fetch(opts?: PhoneNumberInstanceFetchOptions, callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise; nationalFormat: string; phoneNumber: string; /** diff --git a/lib/rest/messaging/v1/service.d.ts b/lib/rest/messaging/v1/service.d.ts index 17b106c28d..acc2dbb87c 100644 --- a/lib/rest/messaging/v1/service.d.ts +++ b/lib/rest/messaging/v1/service.d.ts @@ -285,7 +285,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; shortCodes: ShortCodeListInstance; /** * Provide a user-friendly representation @@ -331,7 +331,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; friendlyName: string; inboundMethod: string; inboundRequestUrl: string; @@ -346,7 +346,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; scanMessageContent: ServiceScanMessageContent; /** * Access the shortCodes @@ -367,7 +367,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; validityPeriod: number; } diff --git a/lib/rest/messaging/v1/service/alphaSender.d.ts b/lib/rest/messaging/v1/service/alphaSender.d.ts index 9feba77806..e631c75fc8 100644 --- a/lib/rest/messaging/v1/service/alphaSender.d.ts +++ b/lib/rest/messaging/v1/service/alphaSender.d.ts @@ -204,7 +204,7 @@ declare class AlphaSenderContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AlphaSenderInstance) => any): void; + remove(callback?: (error: Error | null, items: AlphaSenderInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -237,13 +237,13 @@ declare class AlphaSenderInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AlphaSenderInstance) => any): void; + fetch(callback?: (error: Error | null, items: AlphaSenderInstance) => any): Promise; /** * remove a AlphaSenderInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AlphaSenderInstance) => any): void; + remove(callback?: (error: Error | null, items: AlphaSenderInstance) => any): Promise; serviceSid: string; sid: string; /** diff --git a/lib/rest/messaging/v1/service/phoneNumber.d.ts b/lib/rest/messaging/v1/service/phoneNumber.d.ts index f97a9ccef4..274601b856 100644 --- a/lib/rest/messaging/v1/service/phoneNumber.d.ts +++ b/lib/rest/messaging/v1/service/phoneNumber.d.ts @@ -205,7 +205,7 @@ declare class PhoneNumberContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): void; + remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -238,14 +238,14 @@ declare class PhoneNumberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: PhoneNumberInstance) => any): void; + fetch(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise; phoneNumber: string; /** * remove a PhoneNumberInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): void; + remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise; serviceSid: string; sid: string; /** diff --git a/lib/rest/messaging/v1/service/shortCode.d.ts b/lib/rest/messaging/v1/service/shortCode.d.ts index c02dafbd26..015cb4d235 100644 --- a/lib/rest/messaging/v1/service/shortCode.d.ts +++ b/lib/rest/messaging/v1/service/shortCode.d.ts @@ -205,7 +205,7 @@ declare class ShortCodeContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ShortCodeInstance) => any): void; + remove(callback?: (error: Error | null, items: ShortCodeInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -238,13 +238,13 @@ declare class ShortCodeInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ShortCodeInstance) => any): void; + fetch(callback?: (error: Error | null, items: ShortCodeInstance) => any): Promise; /** * remove a ShortCodeInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ShortCodeInstance) => any): void; + remove(callback?: (error: Error | null, items: ShortCodeInstance) => any): Promise; serviceSid: string; shortCode: string; sid: string; diff --git a/lib/rest/messaging/v1/session.d.ts b/lib/rest/messaging/v1/session.d.ts index c85c92f695..78d22d0b77 100644 --- a/lib/rest/messaging/v1/session.d.ts +++ b/lib/rest/messaging/v1/session.d.ts @@ -242,7 +242,7 @@ declare class SessionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SessionInstance) => any): void; + remove(callback?: (error: Error | null, items: SessionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -283,7 +283,7 @@ declare class SessionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SessionInstance) => any): void; + fetch(callback?: (error: Error | null, items: SessionInstance) => any): Promise; friendlyName: string; links: string; /** @@ -300,7 +300,7 @@ declare class SessionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SessionInstance) => any): void; + remove(callback?: (error: Error | null, items: SessionInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -313,7 +313,7 @@ declare class SessionInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SessionInstanceUpdateOptions, callback?: (error: Error | null, items: SessionInstance) => any): void; + update(opts?: SessionInstanceUpdateOptions, callback?: (error: Error | null, items: SessionInstance) => any): Promise; url: string; /** * Access the webhooks diff --git a/lib/rest/messaging/v1/session/message.d.ts b/lib/rest/messaging/v1/session/message.d.ts index 641bfcfe4f..587217e469 100644 --- a/lib/rest/messaging/v1/session/message.d.ts +++ b/lib/rest/messaging/v1/session/message.d.ts @@ -236,7 +236,7 @@ declare class MessageContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -278,7 +278,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MessageInstance) => any): void; + fetch(callback?: (error: Error | null, items: MessageInstance) => any): Promise; index: number; messagingServiceSid: string; /** @@ -286,7 +286,7 @@ declare class MessageInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessageInstance) => any): void; + remove(callback?: (error: Error | null, items: MessageInstance) => any): Promise; serviceSid: string; sessionSid: string; sid: string; @@ -300,7 +300,7 @@ declare class MessageInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): void; + update(opts?: MessageInstanceUpdateOptions, callback?: (error: Error | null, items: MessageInstance) => any): Promise; url: string; } diff --git a/lib/rest/messaging/v1/session/participant.d.ts b/lib/rest/messaging/v1/session/participant.d.ts index 8064e7a5c1..ec8263b735 100644 --- a/lib/rest/messaging/v1/session/participant.d.ts +++ b/lib/rest/messaging/v1/session/participant.d.ts @@ -237,7 +237,7 @@ declare class ParticipantContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + remove(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -277,7 +277,7 @@ declare class ParticipantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + fetch(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; identity: string; messagingServiceSid: string; /** @@ -285,7 +285,7 @@ declare class ParticipantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + remove(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; serviceSid: string; sessionSid: string; sid: string; @@ -301,7 +301,7 @@ declare class ParticipantInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ParticipantInstanceUpdateOptions, callback?: (error: Error | null, items: ParticipantInstance) => any): void; + update(opts?: ParticipantInstanceUpdateOptions, callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; url: string; userAddress: string; } diff --git a/lib/rest/messaging/v1/session/webhook.d.ts b/lib/rest/messaging/v1/session/webhook.d.ts index 8d80f33ecd..2fb30fc451 100644 --- a/lib/rest/messaging/v1/session/webhook.d.ts +++ b/lib/rest/messaging/v1/session/webhook.d.ts @@ -256,7 +256,7 @@ declare class WebhookContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebhookInstance) => any): void; + remove(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -296,13 +296,13 @@ declare class WebhookInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WebhookInstance) => any): void; + fetch(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; /** * remove a WebhookInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WebhookInstance) => any): void; + remove(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; sessionSid: string; sid: string; target: string; @@ -316,7 +316,7 @@ declare class WebhookInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): void; + update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): Promise; url: string; } diff --git a/lib/rest/messaging/v1/webhook.d.ts b/lib/rest/messaging/v1/webhook.d.ts index 176860a467..79400e27ab 100644 --- a/lib/rest/messaging/v1/webhook.d.ts +++ b/lib/rest/messaging/v1/webhook.d.ts @@ -132,7 +132,7 @@ declare class WebhookInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WebhookInstance) => any): void; + fetch(callback?: (error: Error | null, items: WebhookInstance) => any): Promise; postWebhookRetryCount: number; postWebhookUrl: string; preWebhookRetryCount: number; @@ -149,7 +149,7 @@ declare class WebhookInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): void; + update(opts?: WebhookInstanceUpdateOptions, callback?: (error: Error | null, items: WebhookInstance) => any): Promise; url: string; webhookFilters: string[]; webhookMethod: string; diff --git a/lib/rest/monitor/v1/alert.d.ts b/lib/rest/monitor/v1/alert.d.ts index edaaf7293b..9ded4d1eb2 100644 --- a/lib/rest/monitor/v1/alert.d.ts +++ b/lib/rest/monitor/v1/alert.d.ts @@ -207,7 +207,7 @@ declare class AlertContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AlertInstance) => any): void; + remove(callback?: (error: Error | null, items: AlertInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -238,7 +238,7 @@ declare class AlertInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AlertInstance) => any): void; + fetch(callback?: (error: Error | null, items: AlertInstance) => any): Promise; logLevel: string; moreInfo: string; /** @@ -246,7 +246,7 @@ declare class AlertInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AlertInstance) => any): void; + remove(callback?: (error: Error | null, items: AlertInstance) => any): Promise; requestMethod: string; requestUrl: string; requestVariables: string; diff --git a/lib/rest/monitor/v1/event.d.ts b/lib/rest/monitor/v1/event.d.ts index bfedb5a93e..9f0257aa52 100644 --- a/lib/rest/monitor/v1/event.d.ts +++ b/lib/rest/monitor/v1/event.d.ts @@ -247,7 +247,7 @@ declare class EventInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: EventInstance) => any): void; + fetch(callback?: (error: Error | null, items: EventInstance) => any): Promise; links: string; resourceSid: string; resourceType: string; diff --git a/lib/rest/notify/v1/credential.d.ts b/lib/rest/notify/v1/credential.d.ts index 09aae03c38..09f918df20 100644 --- a/lib/rest/notify/v1/credential.d.ts +++ b/lib/rest/notify/v1/credential.d.ts @@ -235,7 +235,7 @@ declare class CredentialContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -272,14 +272,14 @@ declare class CredentialInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CredentialInstance) => any): void; + fetch(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; friendlyName: string; /** * remove a CredentialInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialInstance) => any): Promise; sandbox: string; sid: string; /** @@ -293,7 +293,7 @@ declare class CredentialInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): void; + update(opts?: CredentialInstanceUpdateOptions, callback?: (error: Error | null, items: CredentialInstance) => any): Promise; url: string; } diff --git a/lib/rest/notify/v1/service.d.ts b/lib/rest/notify/v1/service.d.ts index d2e7aa89d1..5fd5c75942 100644 --- a/lib/rest/notify/v1/service.d.ts +++ b/lib/rest/notify/v1/service.d.ts @@ -277,7 +277,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -326,7 +326,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; friendlyName: string; gcmCredentialSid: string; links: string; @@ -341,7 +341,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -353,7 +353,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; } diff --git a/lib/rest/notify/v1/service/binding.d.ts b/lib/rest/notify/v1/service/binding.d.ts index f2dba9e769..ab7c609138 100644 --- a/lib/rest/notify/v1/service/binding.d.ts +++ b/lib/rest/notify/v1/service/binding.d.ts @@ -249,7 +249,7 @@ declare class BindingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: BindingInstance) => any): void; + remove(callback?: (error: Error | null, items: BindingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -284,7 +284,7 @@ declare class BindingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: BindingInstance) => any): void; + fetch(callback?: (error: Error | null, items: BindingInstance) => any): Promise; identity: string; links: string; notificationProtocolVersion: string; @@ -293,7 +293,7 @@ declare class BindingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: BindingInstance) => any): void; + remove(callback?: (error: Error | null, items: BindingInstance) => any): Promise; serviceSid: string; sid: string; tags: string[]; diff --git a/lib/rest/preview/acc_security/service.d.ts b/lib/rest/preview/acc_security/service.d.ts index c5bb4951a8..97142f30d2 100644 --- a/lib/rest/preview/acc_security/service.d.ts +++ b/lib/rest/preview/acc_security/service.d.ts @@ -255,7 +255,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; links: string; name: string; sid: string; @@ -269,7 +269,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; /** * Access the verificationChecks diff --git a/lib/rest/preview/bulk_exports/export.d.ts b/lib/rest/preview/bulk_exports/export.d.ts index 4cffa4448b..42f1ed4ab0 100644 --- a/lib/rest/preview/bulk_exports/export.d.ts +++ b/lib/rest/preview/bulk_exports/export.d.ts @@ -104,7 +104,7 @@ declare class ExportInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ExportInstance) => any): void; + fetch(callback?: (error: Error | null, items: ExportInstance) => any): Promise; links: string; resourceType: string; /** diff --git a/lib/rest/preview/bulk_exports/exportConfiguration.d.ts b/lib/rest/preview/bulk_exports/exportConfiguration.d.ts index b53d0cc692..22b0a72f3a 100644 --- a/lib/rest/preview/bulk_exports/exportConfiguration.d.ts +++ b/lib/rest/preview/bulk_exports/exportConfiguration.d.ts @@ -121,7 +121,7 @@ declare class ExportConfigurationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ExportConfigurationInstance) => any): void; + fetch(callback?: (error: Error | null, items: ExportConfigurationInstance) => any): Promise; resourceType: string; /** * Provide a user-friendly representation @@ -133,7 +133,7 @@ declare class ExportConfigurationInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ExportConfigurationInstanceUpdateOptions, callback?: (error: Error | null, items: ExportConfigurationInstance) => any): void; + update(opts?: ExportConfigurationInstanceUpdateOptions, callback?: (error: Error | null, items: ExportConfigurationInstance) => any): Promise; url: string; webhookMethod: string; webhookUrl: string; diff --git a/lib/rest/preview/deployed_devices/fleet.d.ts b/lib/rest/preview/deployed_devices/fleet.d.ts index 1f6196aeb6..1ae91a0537 100644 --- a/lib/rest/preview/deployed_devices/fleet.d.ts +++ b/lib/rest/preview/deployed_devices/fleet.d.ts @@ -227,7 +227,7 @@ declare class FleetContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FleetInstance) => any): void; + remove(callback?: (error: Error | null, items: FleetInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -278,7 +278,7 @@ declare class FleetInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FleetInstance) => any): void; + fetch(callback?: (error: Error | null, items: FleetInstance) => any): Promise; friendlyName: string; /** * Access the keys @@ -290,7 +290,7 @@ declare class FleetInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FleetInstance) => any): void; + remove(callback?: (error: Error | null, items: FleetInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -303,7 +303,7 @@ declare class FleetInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: FleetInstanceUpdateOptions, callback?: (error: Error | null, items: FleetInstance) => any): void; + update(opts?: FleetInstanceUpdateOptions, callback?: (error: Error | null, items: FleetInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/deployed_devices/fleet/certificate.d.ts b/lib/rest/preview/deployed_devices/fleet/certificate.d.ts index e849e450ab..1ccf24a887 100644 --- a/lib/rest/preview/deployed_devices/fleet/certificate.d.ts +++ b/lib/rest/preview/deployed_devices/fleet/certificate.d.ts @@ -228,7 +228,7 @@ declare class CertificateContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CertificateInstance) => any): void; + remove(callback?: (error: Error | null, items: CertificateInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -268,7 +268,7 @@ declare class CertificateInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CertificateInstance) => any): void; + fetch(callback?: (error: Error | null, items: CertificateInstance) => any): Promise; fleetSid: string; friendlyName: string; /** @@ -276,7 +276,7 @@ declare class CertificateInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CertificateInstance) => any): void; + remove(callback?: (error: Error | null, items: CertificateInstance) => any): Promise; sid: string; thumbprint: string; /** @@ -289,7 +289,7 @@ declare class CertificateInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: CertificateInstanceUpdateOptions, callback?: (error: Error | null, items: CertificateInstance) => any): void; + update(opts?: CertificateInstanceUpdateOptions, callback?: (error: Error | null, items: CertificateInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/deployed_devices/fleet/deployment.d.ts b/lib/rest/preview/deployed_devices/fleet/deployment.d.ts index a22dac233b..f61d745094 100644 --- a/lib/rest/preview/deployed_devices/fleet/deployment.d.ts +++ b/lib/rest/preview/deployed_devices/fleet/deployment.d.ts @@ -219,7 +219,7 @@ declare class DeploymentContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DeploymentInstance) => any): void; + remove(callback?: (error: Error | null, items: DeploymentInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -258,7 +258,7 @@ declare class DeploymentInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: DeploymentInstance) => any): void; + fetch(callback?: (error: Error | null, items: DeploymentInstance) => any): Promise; fleetSid: string; friendlyName: string; /** @@ -266,7 +266,7 @@ declare class DeploymentInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DeploymentInstance) => any): void; + remove(callback?: (error: Error | null, items: DeploymentInstance) => any): Promise; sid: string; syncServiceSid: string; /** @@ -279,7 +279,7 @@ declare class DeploymentInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: DeploymentInstanceUpdateOptions, callback?: (error: Error | null, items: DeploymentInstance) => any): void; + update(opts?: DeploymentInstanceUpdateOptions, callback?: (error: Error | null, items: DeploymentInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/deployed_devices/fleet/device.d.ts b/lib/rest/preview/deployed_devices/fleet/device.d.ts index 5ef1cc4337..948bbb9e03 100644 --- a/lib/rest/preview/deployed_devices/fleet/device.d.ts +++ b/lib/rest/preview/deployed_devices/fleet/device.d.ts @@ -240,7 +240,7 @@ declare class DeviceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DeviceInstance) => any): void; + remove(callback?: (error: Error | null, items: DeviceInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -282,7 +282,7 @@ declare class DeviceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: DeviceInstance) => any): void; + fetch(callback?: (error: Error | null, items: DeviceInstance) => any): Promise; fleetSid: string; friendlyName: string; identity: string; @@ -291,7 +291,7 @@ declare class DeviceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DeviceInstance) => any): void; + remove(callback?: (error: Error | null, items: DeviceInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -304,7 +304,7 @@ declare class DeviceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: DeviceInstanceUpdateOptions, callback?: (error: Error | null, items: DeviceInstance) => any): void; + update(opts?: DeviceInstanceUpdateOptions, callback?: (error: Error | null, items: DeviceInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/deployed_devices/fleet/key.d.ts b/lib/rest/preview/deployed_devices/fleet/key.d.ts index 345409e529..71f054f389 100644 --- a/lib/rest/preview/deployed_devices/fleet/key.d.ts +++ b/lib/rest/preview/deployed_devices/fleet/key.d.ts @@ -226,7 +226,7 @@ declare class KeyContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: KeyInstance) => any): void; + remove(callback?: (error: Error | null, items: KeyInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -266,7 +266,7 @@ declare class KeyInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: KeyInstance) => any): void; + fetch(callback?: (error: Error | null, items: KeyInstance) => any): Promise; fleetSid: string; friendlyName: string; /** @@ -274,7 +274,7 @@ declare class KeyInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: KeyInstance) => any): void; + remove(callback?: (error: Error | null, items: KeyInstance) => any): Promise; secret: string; sid: string; /** @@ -287,7 +287,7 @@ declare class KeyInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: KeyInstanceUpdateOptions, callback?: (error: Error | null, items: KeyInstance) => any): void; + update(opts?: KeyInstanceUpdateOptions, callback?: (error: Error | null, items: KeyInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts b/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts index 694a0f5451..1439da0e4d 100644 --- a/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +++ b/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts @@ -292,7 +292,7 @@ declare class AuthorizationDocumentInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AuthorizationDocumentInstance) => any): void; + fetch(callback?: (error: Error | null, items: AuthorizationDocumentInstance) => any): Promise; links: string; sid: string; status: AuthorizationDocumentStatus; @@ -306,7 +306,7 @@ declare class AuthorizationDocumentInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: AuthorizationDocumentInstanceUpdateOptions, callback?: (error: Error | null, items: AuthorizationDocumentInstance) => any): void; + update(opts?: AuthorizationDocumentInstanceUpdateOptions, callback?: (error: Error | null, items: AuthorizationDocumentInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts b/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts index 1f1caad7c4..8a9d0a2eb1 100644 --- a/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +++ b/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts @@ -312,7 +312,7 @@ declare class HostedNumberOrderContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: HostedNumberOrderInstance) => any): void; + remove(callback?: (error: Error | null, items: HostedNumberOrderInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -357,7 +357,7 @@ declare class HostedNumberOrderInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: HostedNumberOrderInstance) => any): void; + fetch(callback?: (error: Error | null, items: HostedNumberOrderInstance) => any): Promise; friendlyName: string; incomingPhoneNumberSid: string; phoneNumber: string; @@ -366,7 +366,7 @@ declare class HostedNumberOrderInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: HostedNumberOrderInstance) => any): void; + remove(callback?: (error: Error | null, items: HostedNumberOrderInstance) => any): Promise; sid: string; signingDocumentSid: string; status: HostedNumberOrderStatus; @@ -381,7 +381,7 @@ declare class HostedNumberOrderInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: HostedNumberOrderInstanceUpdateOptions, callback?: (error: Error | null, items: HostedNumberOrderInstance) => any): void; + update(opts?: HostedNumberOrderInstanceUpdateOptions, callback?: (error: Error | null, items: HostedNumberOrderInstance) => any): Promise; url: string; verificationAttempts: number; verificationCallSids: string[]; diff --git a/lib/rest/preview/marketplace/availableAddOn.d.ts b/lib/rest/preview/marketplace/availableAddOn.d.ts index 0bfcffc95c..9966576935 100644 --- a/lib/rest/preview/marketplace/availableAddOn.d.ts +++ b/lib/rest/preview/marketplace/availableAddOn.d.ts @@ -217,7 +217,7 @@ declare class AvailableAddOnInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AvailableAddOnInstance) => any): void; + fetch(callback?: (error: Error | null, items: AvailableAddOnInstance) => any): Promise; friendlyName: string; links: string; pricingType: string; diff --git a/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.d.ts b/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.d.ts index 0922050655..3153602315 100644 --- a/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.d.ts +++ b/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.d.ts @@ -213,7 +213,7 @@ declare class AvailableAddOnExtensionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AvailableAddOnExtensionInstance) => any): void; + fetch(callback?: (error: Error | null, items: AvailableAddOnExtensionInstance) => any): Promise; friendlyName: string; productName: string; sid: string; diff --git a/lib/rest/preview/marketplace/installedAddOn.d.ts b/lib/rest/preview/marketplace/installedAddOn.d.ts index 0c35db19e2..06d08f960e 100644 --- a/lib/rest/preview/marketplace/installedAddOn.d.ts +++ b/lib/rest/preview/marketplace/installedAddOn.d.ts @@ -226,7 +226,7 @@ declare class InstalledAddOnContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InstalledAddOnInstance) => any): void; + remove(callback?: (error: Error | null, items: InstalledAddOnInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -270,7 +270,7 @@ declare class InstalledAddOnInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: InstalledAddOnInstance) => any): void; + fetch(callback?: (error: Error | null, items: InstalledAddOnInstance) => any): Promise; friendlyName: string; links: string; /** @@ -278,7 +278,7 @@ declare class InstalledAddOnInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InstalledAddOnInstance) => any): void; + remove(callback?: (error: Error | null, items: InstalledAddOnInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -291,7 +291,7 @@ declare class InstalledAddOnInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: InstalledAddOnInstanceUpdateOptions, callback?: (error: Error | null, items: InstalledAddOnInstance) => any): void; + update(opts?: InstalledAddOnInstanceUpdateOptions, callback?: (error: Error | null, items: InstalledAddOnInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.d.ts b/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.d.ts index 98767799bc..49c643af2d 100644 --- a/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.d.ts +++ b/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.d.ts @@ -231,7 +231,7 @@ declare class InstalledAddOnExtensionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: InstalledAddOnExtensionInstance) => any): void; + fetch(callback?: (error: Error | null, items: InstalledAddOnExtensionInstance) => any): Promise; friendlyName: string; installedAddOnSid: string; productName: string; @@ -247,7 +247,7 @@ declare class InstalledAddOnExtensionInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: InstalledAddOnExtensionInstanceUpdateOptions, callback?: (error: Error | null, items: InstalledAddOnExtensionInstance) => any): void; + update(opts: InstalledAddOnExtensionInstanceUpdateOptions, callback?: (error: Error | null, items: InstalledAddOnExtensionInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/sync/service.d.ts b/lib/rest/preview/sync/service.d.ts index df2d10c437..45bdd46d0b 100644 --- a/lib/rest/preview/sync/service.d.ts +++ b/lib/rest/preview/sync/service.d.ts @@ -234,7 +234,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; syncLists: SyncListListInstance; syncMaps: SyncMapListInstance; /** @@ -279,7 +279,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; friendlyName: string; links: string; reachabilityWebhooksEnabled: boolean; @@ -288,7 +288,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; sid: string; /** * Access the syncLists @@ -308,7 +308,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; webhookUrl: string; } diff --git a/lib/rest/preview/sync/service/document.d.ts b/lib/rest/preview/sync/service/document.d.ts index 019893f59d..b94bfa5f3a 100644 --- a/lib/rest/preview/sync/service/document.d.ts +++ b/lib/rest/preview/sync/service/document.d.ts @@ -224,7 +224,7 @@ declare class DocumentContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DocumentInstance) => any): void; + remove(callback?: (error: Error | null, items: DocumentInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -269,14 +269,14 @@ declare class DocumentInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: DocumentInstance) => any): void; + fetch(callback?: (error: Error | null, items: DocumentInstance) => any): Promise; links: string; /** * remove a DocumentInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DocumentInstance) => any): void; + remove(callback?: (error: Error | null, items: DocumentInstance) => any): Promise; revision: string; serviceSid: string; sid: string; @@ -291,7 +291,7 @@ declare class DocumentInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: DocumentInstanceUpdateOptions, callback?: (error: Error | null, items: DocumentInstance) => any): void; + update(opts: DocumentInstanceUpdateOptions, callback?: (error: Error | null, items: DocumentInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/sync/service/document/documentPermission.d.ts b/lib/rest/preview/sync/service/document/documentPermission.d.ts index 36543a8f3e..82deeaa491 100644 --- a/lib/rest/preview/sync/service/document/documentPermission.d.ts +++ b/lib/rest/preview/sync/service/document/documentPermission.d.ts @@ -208,7 +208,7 @@ declare class DocumentPermissionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -247,7 +247,7 @@ declare class DocumentPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): void; + fetch(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): Promise; identity: string; manage: boolean; read: boolean; @@ -256,7 +256,7 @@ declare class DocumentPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): Promise; serviceSid: string; /** * Provide a user-friendly representation @@ -268,7 +268,7 @@ declare class DocumentPermissionInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: DocumentPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: DocumentPermissionInstance) => any): void; + update(opts: DocumentPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: DocumentPermissionInstance) => any): Promise; url: string; write: boolean; } diff --git a/lib/rest/preview/sync/service/syncList.d.ts b/lib/rest/preview/sync/service/syncList.d.ts index 43c556a432..8c77615272 100644 --- a/lib/rest/preview/sync/service/syncList.d.ts +++ b/lib/rest/preview/sync/service/syncList.d.ts @@ -212,7 +212,7 @@ declare class SyncListContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListInstance) => any): Promise; syncListItems: SyncListItemListInstance; syncListPermissions: SyncListPermissionListInstance; /** @@ -247,14 +247,14 @@ declare class SyncListInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncListInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncListInstance) => any): Promise; links: string; /** * remove a SyncListInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListInstance) => any): Promise; revision: string; serviceSid: string; sid: string; diff --git a/lib/rest/preview/sync/service/syncList/syncListItem.d.ts b/lib/rest/preview/sync/service/syncList/syncListItem.d.ts index 8c4c9b4bb0..16fe1325be 100644 --- a/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +++ b/lib/rest/preview/sync/service/syncList/syncListItem.d.ts @@ -243,7 +243,7 @@ declare class SyncListItemContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListItemInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListItemInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -285,7 +285,7 @@ declare class SyncListItemInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncListItemInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncListItemInstance) => any): Promise; index: number; listSid: string; /** @@ -293,7 +293,7 @@ declare class SyncListItemInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListItemInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListItemInstance) => any): Promise; revision: string; serviceSid: string; /** @@ -306,7 +306,7 @@ declare class SyncListItemInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: SyncListItemInstanceUpdateOptions, callback?: (error: Error | null, items: SyncListItemInstance) => any): void; + update(opts: SyncListItemInstanceUpdateOptions, callback?: (error: Error | null, items: SyncListItemInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/sync/service/syncList/syncListPermission.d.ts b/lib/rest/preview/sync/service/syncList/syncListPermission.d.ts index e439fa8374..d378546421 100644 --- a/lib/rest/preview/sync/service/syncList/syncListPermission.d.ts +++ b/lib/rest/preview/sync/service/syncList/syncListPermission.d.ts @@ -208,7 +208,7 @@ declare class SyncListPermissionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -246,7 +246,7 @@ declare class SyncListPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): Promise; identity: string; listSid: string; manage: boolean; @@ -256,7 +256,7 @@ declare class SyncListPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): Promise; serviceSid: string; /** * Provide a user-friendly representation @@ -268,7 +268,7 @@ declare class SyncListPermissionInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: SyncListPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: SyncListPermissionInstance) => any): void; + update(opts: SyncListPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: SyncListPermissionInstance) => any): Promise; url: string; write: boolean; } diff --git a/lib/rest/preview/sync/service/syncMap.d.ts b/lib/rest/preview/sync/service/syncMap.d.ts index 61bcc75043..5b7d6dca73 100644 --- a/lib/rest/preview/sync/service/syncMap.d.ts +++ b/lib/rest/preview/sync/service/syncMap.d.ts @@ -212,7 +212,7 @@ declare class SyncMapContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapInstance) => any): Promise; syncMapItems: SyncMapItemListInstance; syncMapPermissions: SyncMapPermissionListInstance; /** @@ -247,14 +247,14 @@ declare class SyncMapInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncMapInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncMapInstance) => any): Promise; links: string; /** * remove a SyncMapInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapInstance) => any): Promise; revision: string; serviceSid: string; sid: string; diff --git a/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts b/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts index f49dfe059d..ec026e62af 100644 --- a/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +++ b/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts @@ -245,7 +245,7 @@ declare class SyncMapItemContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapItemInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapItemInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -287,7 +287,7 @@ declare class SyncMapItemInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncMapItemInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncMapItemInstance) => any): Promise; key: string; mapSid: string; /** @@ -295,7 +295,7 @@ declare class SyncMapItemInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapItemInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapItemInstance) => any): Promise; revision: string; serviceSid: string; /** @@ -308,7 +308,7 @@ declare class SyncMapItemInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: SyncMapItemInstanceUpdateOptions, callback?: (error: Error | null, items: SyncMapItemInstance) => any): void; + update(opts: SyncMapItemInstanceUpdateOptions, callback?: (error: Error | null, items: SyncMapItemInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/sync/service/syncMap/syncMapPermission.d.ts b/lib/rest/preview/sync/service/syncMap/syncMapPermission.d.ts index c5eb95ef1b..d01a5b77c8 100644 --- a/lib/rest/preview/sync/service/syncMap/syncMapPermission.d.ts +++ b/lib/rest/preview/sync/service/syncMap/syncMapPermission.d.ts @@ -207,7 +207,7 @@ declare class SyncMapPermissionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -245,7 +245,7 @@ declare class SyncMapPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): Promise; identity: string; manage: boolean; mapSid: string; @@ -255,7 +255,7 @@ declare class SyncMapPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): Promise; serviceSid: string; /** * Provide a user-friendly representation @@ -267,7 +267,7 @@ declare class SyncMapPermissionInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: SyncMapPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): void; + update(opts: SyncMapPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): Promise; url: string; write: boolean; } diff --git a/lib/rest/preview/trusted_comms/cps.d.ts b/lib/rest/preview/trusted_comms/cps.d.ts index 6158c2f818..7af4662c89 100644 --- a/lib/rest/preview/trusted_comms/cps.d.ts +++ b/lib/rest/preview/trusted_comms/cps.d.ts @@ -94,7 +94,7 @@ declare class CpsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CpsInstance) => any): void; + fetch(callback?: (error: Error | null, items: CpsInstance) => any): Promise; phoneNumber: string; /** * Provide a user-friendly representation diff --git a/lib/rest/preview/trusted_comms/currentCall.d.ts b/lib/rest/preview/trusted_comms/currentCall.d.ts index e4a231e166..9e2e904c16 100644 --- a/lib/rest/preview/trusted_comms/currentCall.d.ts +++ b/lib/rest/preview/trusted_comms/currentCall.d.ts @@ -107,7 +107,7 @@ declare class CurrentCallInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CurrentCallInstance) => any): void; + fetch(callback?: (error: Error | null, items: CurrentCallInstance) => any): Promise; fontColor: string; from: string; logo: string; diff --git a/lib/rest/preview/understand/assistant.d.ts b/lib/rest/preview/understand/assistant.d.ts index 515de5acef..7b2fee0416 100644 --- a/lib/rest/preview/understand/assistant.d.ts +++ b/lib/rest/preview/understand/assistant.d.ts @@ -267,7 +267,7 @@ declare class AssistantContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AssistantInstance) => any): void; + remove(callback?: (error: Error | null, items: AssistantInstance) => any): Promise; styleSheet: StyleSheetListInstance; tasks: TaskListInstance; /** @@ -321,7 +321,7 @@ declare class AssistantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AssistantInstance) => any): void; + fetch(callback?: (error: Error | null, items: AssistantInstance) => any): Promise; /** * Access the fieldTypes */ @@ -343,7 +343,7 @@ declare class AssistantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AssistantInstance) => any): void; + remove(callback?: (error: Error | null, items: AssistantInstance) => any): Promise; sid: string; /** * Access the styleSheet @@ -364,7 +364,7 @@ declare class AssistantInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: AssistantInstanceUpdateOptions, callback?: (error: Error | null, items: AssistantInstance) => any): void; + update(opts?: AssistantInstanceUpdateOptions, callback?: (error: Error | null, items: AssistantInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/understand/assistant/assistantFallbackActions.d.ts b/lib/rest/preview/understand/assistant/assistantFallbackActions.d.ts index c3c1caa7e1..710ce3a6c2 100644 --- a/lib/rest/preview/understand/assistant/assistantFallbackActions.d.ts +++ b/lib/rest/preview/understand/assistant/assistantFallbackActions.d.ts @@ -118,7 +118,7 @@ declare class AssistantFallbackActionsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AssistantFallbackActionsInstance) => any): void; + fetch(callback?: (error: Error | null, items: AssistantFallbackActionsInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -129,7 +129,7 @@ declare class AssistantFallbackActionsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: AssistantFallbackActionsInstanceUpdateOptions, callback?: (error: Error | null, items: AssistantFallbackActionsInstance) => any): void; + update(opts?: AssistantFallbackActionsInstanceUpdateOptions, callback?: (error: Error | null, items: AssistantFallbackActionsInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/understand/assistant/assistantInitiationActions.d.ts b/lib/rest/preview/understand/assistant/assistantInitiationActions.d.ts index a8330c0eea..14470d2b6a 100644 --- a/lib/rest/preview/understand/assistant/assistantInitiationActions.d.ts +++ b/lib/rest/preview/understand/assistant/assistantInitiationActions.d.ts @@ -118,7 +118,7 @@ declare class AssistantInitiationActionsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AssistantInitiationActionsInstance) => any): void; + fetch(callback?: (error: Error | null, items: AssistantInitiationActionsInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -129,7 +129,7 @@ declare class AssistantInitiationActionsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: AssistantInitiationActionsInstanceUpdateOptions, callback?: (error: Error | null, items: AssistantInitiationActionsInstance) => any): void; + update(opts?: AssistantInitiationActionsInstanceUpdateOptions, callback?: (error: Error | null, items: AssistantInitiationActionsInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/understand/assistant/dialogue.d.ts b/lib/rest/preview/understand/assistant/dialogue.d.ts index 06084493ad..1977a438f6 100644 --- a/lib/rest/preview/understand/assistant/dialogue.d.ts +++ b/lib/rest/preview/understand/assistant/dialogue.d.ts @@ -106,7 +106,7 @@ declare class DialogueInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: DialogueInstance) => any): void; + fetch(callback?: (error: Error | null, items: DialogueInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/preview/understand/assistant/fieldType.d.ts b/lib/rest/preview/understand/assistant/fieldType.d.ts index c7f58982c9..3db6db4ef0 100644 --- a/lib/rest/preview/understand/assistant/fieldType.d.ts +++ b/lib/rest/preview/understand/assistant/fieldType.d.ts @@ -223,7 +223,7 @@ declare class FieldTypeContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldTypeInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldTypeInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -263,7 +263,7 @@ declare class FieldTypeInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FieldTypeInstance) => any): void; + fetch(callback?: (error: Error | null, items: FieldTypeInstance) => any): Promise; /** * Access the fieldValues */ @@ -275,7 +275,7 @@ declare class FieldTypeInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldTypeInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldTypeInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -288,7 +288,7 @@ declare class FieldTypeInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: FieldTypeInstanceUpdateOptions, callback?: (error: Error | null, items: FieldTypeInstance) => any): void; + update(opts?: FieldTypeInstanceUpdateOptions, callback?: (error: Error | null, items: FieldTypeInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/understand/assistant/fieldType/fieldValue.d.ts b/lib/rest/preview/understand/assistant/fieldType/fieldValue.d.ts index b8c474148c..9e4544b1af 100644 --- a/lib/rest/preview/understand/assistant/fieldType/fieldValue.d.ts +++ b/lib/rest/preview/understand/assistant/fieldType/fieldValue.d.ts @@ -221,7 +221,7 @@ declare class FieldValueContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldValueInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldValueInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -255,7 +255,7 @@ declare class FieldValueInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FieldValueInstance) => any): void; + fetch(callback?: (error: Error | null, items: FieldValueInstance) => any): Promise; fieldTypeSid: string; language: string; /** @@ -263,7 +263,7 @@ declare class FieldValueInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldValueInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldValueInstance) => any): Promise; sid: string; synonymOf: string; /** diff --git a/lib/rest/preview/understand/assistant/modelBuild.d.ts b/lib/rest/preview/understand/assistant/modelBuild.d.ts index a4bf687529..d099185f05 100644 --- a/lib/rest/preview/understand/assistant/modelBuild.d.ts +++ b/lib/rest/preview/understand/assistant/modelBuild.d.ts @@ -221,7 +221,7 @@ declare class ModelBuildContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ModelBuildInstance) => any): void; + remove(callback?: (error: Error | null, items: ModelBuildInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -263,13 +263,13 @@ declare class ModelBuildInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ModelBuildInstance) => any): void; + fetch(callback?: (error: Error | null, items: ModelBuildInstance) => any): Promise; /** * remove a ModelBuildInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ModelBuildInstance) => any): void; + remove(callback?: (error: Error | null, items: ModelBuildInstance) => any): Promise; sid: string; status: ModelBuildStatus; /** @@ -283,7 +283,7 @@ declare class ModelBuildInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ModelBuildInstanceUpdateOptions, callback?: (error: Error | null, items: ModelBuildInstance) => any): void; + update(opts?: ModelBuildInstanceUpdateOptions, callback?: (error: Error | null, items: ModelBuildInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/understand/assistant/query.d.ts b/lib/rest/preview/understand/assistant/query.d.ts index aecea678e2..3c6f5e90fb 100644 --- a/lib/rest/preview/understand/assistant/query.d.ts +++ b/lib/rest/preview/understand/assistant/query.d.ts @@ -248,7 +248,7 @@ declare class QueryContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: QueryInstance) => any): void; + remove(callback?: (error: Error | null, items: QueryInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -288,7 +288,7 @@ declare class QueryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: QueryInstance) => any): void; + fetch(callback?: (error: Error | null, items: QueryInstance) => any): Promise; language: string; modelBuildSid: string; query: string; @@ -297,7 +297,7 @@ declare class QueryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: QueryInstance) => any): void; + remove(callback?: (error: Error | null, items: QueryInstance) => any): Promise; results: object; sampleSid: string; sid: string; @@ -313,7 +313,7 @@ declare class QueryInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: QueryInstanceUpdateOptions, callback?: (error: Error | null, items: QueryInstance) => any): void; + update(opts?: QueryInstanceUpdateOptions, callback?: (error: Error | null, items: QueryInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/understand/assistant/styleSheet.d.ts b/lib/rest/preview/understand/assistant/styleSheet.d.ts index f91b7be551..ebc53c33ae 100644 --- a/lib/rest/preview/understand/assistant/styleSheet.d.ts +++ b/lib/rest/preview/understand/assistant/styleSheet.d.ts @@ -118,7 +118,7 @@ declare class StyleSheetInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: StyleSheetInstance) => any): void; + fetch(callback?: (error: Error | null, items: StyleSheetInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -129,7 +129,7 @@ declare class StyleSheetInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: StyleSheetInstanceUpdateOptions, callback?: (error: Error | null, items: StyleSheetInstance) => any): void; + update(opts?: StyleSheetInstanceUpdateOptions, callback?: (error: Error | null, items: StyleSheetInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/understand/assistant/task.d.ts b/lib/rest/preview/understand/assistant/task.d.ts index 956def1bb3..446e366e07 100644 --- a/lib/rest/preview/understand/assistant/task.d.ts +++ b/lib/rest/preview/understand/assistant/task.d.ts @@ -239,7 +239,7 @@ declare class TaskContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TaskInstance) => any): void; + remove(callback?: (error: Error | null, items: TaskInstance) => any): Promise; samples: SampleListInstance; statistics: TaskStatisticsListInstance; taskActions: TaskActionsListInstance; @@ -283,7 +283,7 @@ declare class TaskInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TaskInstance) => any): void; + fetch(callback?: (error: Error | null, items: TaskInstance) => any): Promise; /** * Access the fields */ @@ -295,7 +295,7 @@ declare class TaskInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TaskInstance) => any): void; + remove(callback?: (error: Error | null, items: TaskInstance) => any): Promise; /** * Access the samples */ @@ -320,7 +320,7 @@ declare class TaskInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: TaskInstanceUpdateOptions, callback?: (error: Error | null, items: TaskInstance) => any): void; + update(opts?: TaskInstanceUpdateOptions, callback?: (error: Error | null, items: TaskInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/understand/assistant/task/field.d.ts b/lib/rest/preview/understand/assistant/task/field.d.ts index e4751f0b7a..ae12efa824 100644 --- a/lib/rest/preview/understand/assistant/task/field.d.ts +++ b/lib/rest/preview/understand/assistant/task/field.d.ts @@ -212,7 +212,7 @@ declare class FieldContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -246,14 +246,14 @@ declare class FieldInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FieldInstance) => any): void; + fetch(callback?: (error: Error | null, items: FieldInstance) => any): Promise; fieldType: string; /** * remove a FieldInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FieldInstance) => any): void; + remove(callback?: (error: Error | null, items: FieldInstance) => any): Promise; sid: string; taskSid: string; /** diff --git a/lib/rest/preview/understand/assistant/task/sample.d.ts b/lib/rest/preview/understand/assistant/task/sample.d.ts index 7f51496579..ec3e00440f 100644 --- a/lib/rest/preview/understand/assistant/task/sample.d.ts +++ b/lib/rest/preview/understand/assistant/task/sample.d.ts @@ -234,7 +234,7 @@ declare class SampleContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SampleInstance) => any): void; + remove(callback?: (error: Error | null, items: SampleInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -275,14 +275,14 @@ declare class SampleInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SampleInstance) => any): void; + fetch(callback?: (error: Error | null, items: SampleInstance) => any): Promise; language: string; /** * remove a SampleInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SampleInstance) => any): void; + remove(callback?: (error: Error | null, items: SampleInstance) => any): Promise; sid: string; sourceChannel: string; taggedText: string; @@ -297,7 +297,7 @@ declare class SampleInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SampleInstanceUpdateOptions, callback?: (error: Error | null, items: SampleInstance) => any): void; + update(opts?: SampleInstanceUpdateOptions, callback?: (error: Error | null, items: SampleInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/understand/assistant/task/taskActions.d.ts b/lib/rest/preview/understand/assistant/task/taskActions.d.ts index 25e075d82d..782b8906bf 100644 --- a/lib/rest/preview/understand/assistant/task/taskActions.d.ts +++ b/lib/rest/preview/understand/assistant/task/taskActions.d.ts @@ -123,7 +123,7 @@ declare class TaskActionsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TaskActionsInstance) => any): void; + fetch(callback?: (error: Error | null, items: TaskActionsInstance) => any): Promise; taskSid: string; /** * Provide a user-friendly representation @@ -135,7 +135,7 @@ declare class TaskActionsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: TaskActionsInstanceUpdateOptions, callback?: (error: Error | null, items: TaskActionsInstance) => any): void; + update(opts?: TaskActionsInstanceUpdateOptions, callback?: (error: Error | null, items: TaskActionsInstance) => any): Promise; url: string; } diff --git a/lib/rest/preview/understand/assistant/task/taskStatistics.d.ts b/lib/rest/preview/understand/assistant/task/taskStatistics.d.ts index 619baa2168..acacdc4bb7 100644 --- a/lib/rest/preview/understand/assistant/task/taskStatistics.d.ts +++ b/lib/rest/preview/understand/assistant/task/taskStatistics.d.ts @@ -106,7 +106,7 @@ declare class TaskStatisticsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TaskStatisticsInstance) => any): void; + fetch(callback?: (error: Error | null, items: TaskStatisticsInstance) => any): Promise; fieldsCount: number; samplesCount: number; taskSid: string; diff --git a/lib/rest/preview/wireless/command.d.ts b/lib/rest/preview/wireless/command.d.ts index 874a5a5d8f..a40d6920ce 100644 --- a/lib/rest/preview/wireless/command.d.ts +++ b/lib/rest/preview/wireless/command.d.ts @@ -271,7 +271,7 @@ declare class CommandInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CommandInstance) => any): void; + fetch(callback?: (error: Error | null, items: CommandInstance) => any): Promise; sid: string; simSid: string; status: string; diff --git a/lib/rest/preview/wireless/ratePlan.d.ts b/lib/rest/preview/wireless/ratePlan.d.ts index ac6a874ee8..9d2db60f1c 100644 --- a/lib/rest/preview/wireless/ratePlan.d.ts +++ b/lib/rest/preview/wireless/ratePlan.d.ts @@ -239,7 +239,7 @@ declare class RatePlanContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RatePlanInstance) => any): void; + remove(callback?: (error: Error | null, items: RatePlanInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -280,7 +280,7 @@ declare class RatePlanInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RatePlanInstance) => any): void; + fetch(callback?: (error: Error | null, items: RatePlanInstance) => any): Promise; friendlyName: string; internationalRoaming: string[]; messagingEnabled: boolean; @@ -290,7 +290,7 @@ declare class RatePlanInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RatePlanInstance) => any): void; + remove(callback?: (error: Error | null, items: RatePlanInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -303,7 +303,7 @@ declare class RatePlanInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: RatePlanInstanceUpdateOptions, callback?: (error: Error | null, items: RatePlanInstance) => any): void; + update(opts?: RatePlanInstanceUpdateOptions, callback?: (error: Error | null, items: RatePlanInstance) => any): Promise; url: string; voiceEnabled: boolean; } diff --git a/lib/rest/preview/wireless/sim.d.ts b/lib/rest/preview/wireless/sim.d.ts index 23c51f9d05..513c6b49f4 100644 --- a/lib/rest/preview/wireless/sim.d.ts +++ b/lib/rest/preview/wireless/sim.d.ts @@ -308,7 +308,7 @@ declare class SimInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SimInstance) => any): void; + fetch(callback?: (error: Error | null, items: SimInstance) => any): Promise; friendlyName: string; iccid: string; links: string; @@ -330,7 +330,7 @@ declare class SimInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SimInstanceUpdateOptions, callback?: (error: Error | null, items: SimInstance) => any): void; + update(opts?: SimInstanceUpdateOptions, callback?: (error: Error | null, items: SimInstance) => any): Promise; url: string; /** * Access the usage diff --git a/lib/rest/preview/wireless/sim/usage.d.ts b/lib/rest/preview/wireless/sim/usage.d.ts index a63df30f1c..3d5e640769 100644 --- a/lib/rest/preview/wireless/sim/usage.d.ts +++ b/lib/rest/preview/wireless/sim/usage.d.ts @@ -121,7 +121,7 @@ declare class UsageInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: UsageInstanceFetchOptions, callback?: (error: Error | null, items: UsageInstance) => any): void; + fetch(opts?: UsageInstanceFetchOptions, callback?: (error: Error | null, items: UsageInstance) => any): Promise; period: object; simSid: string; simUniqueName: string; diff --git a/lib/rest/pricing/v1/messaging/country.d.ts b/lib/rest/pricing/v1/messaging/country.d.ts index b1dacb2060..8abe468020 100644 --- a/lib/rest/pricing/v1/messaging/country.d.ts +++ b/lib/rest/pricing/v1/messaging/country.d.ts @@ -196,7 +196,7 @@ declare class CountryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CountryInstance) => any): void; + fetch(callback?: (error: Error | null, items: CountryInstance) => any): Promise; inboundSmsPrices: string[]; isoCountry: string; outboundSmsPrices: string[]; diff --git a/lib/rest/pricing/v1/phoneNumber/country.d.ts b/lib/rest/pricing/v1/phoneNumber/country.d.ts index 1029e13487..a1876d6817 100644 --- a/lib/rest/pricing/v1/phoneNumber/country.d.ts +++ b/lib/rest/pricing/v1/phoneNumber/country.d.ts @@ -195,7 +195,7 @@ declare class CountryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CountryInstance) => any): void; + fetch(callback?: (error: Error | null, items: CountryInstance) => any): Promise; isoCountry: string; phoneNumberPrices: string[]; priceUnit: string; diff --git a/lib/rest/pricing/v1/voice/country.d.ts b/lib/rest/pricing/v1/voice/country.d.ts index 2da16ff752..76ab6fd6db 100644 --- a/lib/rest/pricing/v1/voice/country.d.ts +++ b/lib/rest/pricing/v1/voice/country.d.ts @@ -196,7 +196,7 @@ declare class CountryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CountryInstance) => any): void; + fetch(callback?: (error: Error | null, items: CountryInstance) => any): Promise; inboundCallPrices: string[]; isoCountry: string; outboundPrefixPrices: string[]; diff --git a/lib/rest/pricing/v1/voice/number.d.ts b/lib/rest/pricing/v1/voice/number.d.ts index 973b75ea8b..65bbb44743 100644 --- a/lib/rest/pricing/v1/voice/number.d.ts +++ b/lib/rest/pricing/v1/voice/number.d.ts @@ -90,7 +90,7 @@ declare class NumberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: NumberInstance) => any): void; + fetch(callback?: (error: Error | null, items: NumberInstance) => any): Promise; inboundCallPrice: string; isoCountry: string; number: string; diff --git a/lib/rest/pricing/v2/voice/country.d.ts b/lib/rest/pricing/v2/voice/country.d.ts index b460ba891c..34e5867584 100644 --- a/lib/rest/pricing/v2/voice/country.d.ts +++ b/lib/rest/pricing/v2/voice/country.d.ts @@ -196,7 +196,7 @@ declare class CountryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CountryInstance) => any): void; + fetch(callback?: (error: Error | null, items: CountryInstance) => any): Promise; inboundCallPrices: string[]; isoCountry: string; outboundPrefixPrices: string[]; diff --git a/lib/rest/pricing/v2/voice/number.d.ts b/lib/rest/pricing/v2/voice/number.d.ts index 9b4dce31c7..8df4121a26 100644 --- a/lib/rest/pricing/v2/voice/number.d.ts +++ b/lib/rest/pricing/v2/voice/number.d.ts @@ -103,7 +103,7 @@ declare class NumberInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: NumberInstanceFetchOptions, callback?: (error: Error | null, items: NumberInstance) => any): void; + fetch(opts?: NumberInstanceFetchOptions, callback?: (error: Error | null, items: NumberInstance) => any): Promise; inboundCallPrice: string; isoCountry: string; originationNumber: string; diff --git a/lib/rest/proxy/v1/service.d.ts b/lib/rest/proxy/v1/service.d.ts index 2ffc449899..fbe9e3d3f6 100644 --- a/lib/rest/proxy/v1/service.d.ts +++ b/lib/rest/proxy/v1/service.d.ts @@ -255,7 +255,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; sessions: SessionListInstance; shortCodes: ShortCodeListInstance; /** @@ -297,7 +297,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; geoMatchLevel: ServiceGeoMatchLevel; interceptCallbackUrl: string; links: string; @@ -312,7 +312,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; /** * Access the sessions */ @@ -333,7 +333,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; } diff --git a/lib/rest/proxy/v1/service/phoneNumber.d.ts b/lib/rest/proxy/v1/service/phoneNumber.d.ts index 960550b27b..4818ffa282 100644 --- a/lib/rest/proxy/v1/service/phoneNumber.d.ts +++ b/lib/rest/proxy/v1/service/phoneNumber.d.ts @@ -222,7 +222,7 @@ declare class PhoneNumberContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): void; + remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -261,7 +261,7 @@ declare class PhoneNumberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: PhoneNumberInstance) => any): void; + fetch(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise; friendlyName: string; inUse: number; isReserved: boolean; @@ -272,7 +272,7 @@ declare class PhoneNumberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): void; + remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -285,7 +285,7 @@ declare class PhoneNumberInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: PhoneNumberInstanceUpdateOptions, callback?: (error: Error | null, items: PhoneNumberInstance) => any): void; + update(opts?: PhoneNumberInstanceUpdateOptions, callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise; url: string; } diff --git a/lib/rest/proxy/v1/service/session.d.ts b/lib/rest/proxy/v1/service/session.d.ts index 44dd02861d..a6a092c41e 100644 --- a/lib/rest/proxy/v1/service/session.d.ts +++ b/lib/rest/proxy/v1/service/session.d.ts @@ -246,7 +246,7 @@ declare class SessionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SessionInstance) => any): void; + remove(callback?: (error: Error | null, items: SessionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -289,7 +289,7 @@ declare class SessionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SessionInstance) => any): void; + fetch(callback?: (error: Error | null, items: SessionInstance) => any): Promise; /** * Access the interactions */ @@ -305,7 +305,7 @@ declare class SessionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SessionInstance) => any): void; + remove(callback?: (error: Error | null, items: SessionInstance) => any): Promise; serviceSid: string; sid: string; status: SessionStatus; @@ -321,7 +321,7 @@ declare class SessionInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SessionInstanceUpdateOptions, callback?: (error: Error | null, items: SessionInstance) => any): void; + update(opts?: SessionInstanceUpdateOptions, callback?: (error: Error | null, items: SessionInstance) => any): Promise; url: string; } diff --git a/lib/rest/proxy/v1/service/session/interaction.d.ts b/lib/rest/proxy/v1/service/session/interaction.d.ts index 9e1f3cc9be..f830cccc04 100644 --- a/lib/rest/proxy/v1/service/session/interaction.d.ts +++ b/lib/rest/proxy/v1/service/session/interaction.d.ts @@ -206,7 +206,7 @@ declare class InteractionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InteractionInstance) => any): void; + remove(callback?: (error: Error | null, items: InteractionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -239,7 +239,7 @@ declare class InteractionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: InteractionInstance) => any): void; + fetch(callback?: (error: Error | null, items: InteractionInstance) => any): Promise; inboundParticipantSid: string; inboundResourceSid: string; inboundResourceStatus: InteractionResourceStatus; @@ -255,7 +255,7 @@ declare class InteractionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: InteractionInstance) => any): void; + remove(callback?: (error: Error | null, items: InteractionInstance) => any): Promise; serviceSid: string; sessionSid: string; sid: string; diff --git a/lib/rest/proxy/v1/service/session/participant.d.ts b/lib/rest/proxy/v1/service/session/participant.d.ts index 65f72b611f..063634a86f 100644 --- a/lib/rest/proxy/v1/service/session/participant.d.ts +++ b/lib/rest/proxy/v1/service/session/participant.d.ts @@ -221,7 +221,7 @@ declare class ParticipantContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + remove(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -254,7 +254,7 @@ declare class ParticipantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + fetch(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; friendlyName: string; identifier: string; links: string; @@ -269,7 +269,7 @@ declare class ParticipantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + remove(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; serviceSid: string; sessionSid: string; sid: string; diff --git a/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts b/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts index 38f018861f..002cf9764d 100644 --- a/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +++ b/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts @@ -258,7 +258,7 @@ declare class MessageInteractionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MessageInteractionInstance) => any): void; + fetch(callback?: (error: Error | null, items: MessageInteractionInstance) => any): Promise; inboundParticipantSid: string; inboundResourceSid: string; inboundResourceStatus: MessageInteractionResourceStatus; diff --git a/lib/rest/proxy/v1/service/shortCode.d.ts b/lib/rest/proxy/v1/service/shortCode.d.ts index 4378913682..a6831070df 100644 --- a/lib/rest/proxy/v1/service/shortCode.d.ts +++ b/lib/rest/proxy/v1/service/shortCode.d.ts @@ -216,7 +216,7 @@ declare class ShortCodeContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ShortCodeInstance) => any): void; + remove(callback?: (error: Error | null, items: ShortCodeInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -255,7 +255,7 @@ declare class ShortCodeInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ShortCodeInstance) => any): void; + fetch(callback?: (error: Error | null, items: ShortCodeInstance) => any): Promise; isReserved: boolean; isoCountry: string; /** @@ -263,7 +263,7 @@ declare class ShortCodeInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ShortCodeInstance) => any): void; + remove(callback?: (error: Error | null, items: ShortCodeInstance) => any): Promise; serviceSid: string; shortCode: string; sid: string; @@ -277,7 +277,7 @@ declare class ShortCodeInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ShortCodeInstanceUpdateOptions, callback?: (error: Error | null, items: ShortCodeInstance) => any): void; + update(opts?: ShortCodeInstanceUpdateOptions, callback?: (error: Error | null, items: ShortCodeInstance) => any): Promise; url: string; } diff --git a/lib/rest/serverless/v1/service.d.ts b/lib/rest/serverless/v1/service.d.ts index c7fbc54142..ef4701ce28 100644 --- a/lib/rest/serverless/v1/service.d.ts +++ b/lib/rest/serverless/v1/service.d.ts @@ -232,7 +232,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -282,7 +282,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; friendlyName: string; /** * Access the functions @@ -295,7 +295,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -308,7 +308,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; } diff --git a/lib/rest/serverless/v1/service/asset.d.ts b/lib/rest/serverless/v1/service/asset.d.ts index 00b9e70a69..41b962712f 100644 --- a/lib/rest/serverless/v1/service/asset.d.ts +++ b/lib/rest/serverless/v1/service/asset.d.ts @@ -218,7 +218,7 @@ declare class AssetContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AssetInstance) => any): void; + remove(callback?: (error: Error | null, items: AssetInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -261,7 +261,7 @@ declare class AssetInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AssetInstance) => any): void; + fetch(callback?: (error: Error | null, items: AssetInstance) => any): Promise; friendlyName: string; links: string; /** @@ -269,7 +269,7 @@ declare class AssetInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: AssetInstance) => any): void; + remove(callback?: (error: Error | null, items: AssetInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -282,7 +282,7 @@ declare class AssetInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: AssetInstanceUpdateOptions, callback?: (error: Error | null, items: AssetInstance) => any): void; + update(opts: AssetInstanceUpdateOptions, callback?: (error: Error | null, items: AssetInstance) => any): Promise; url: string; } diff --git a/lib/rest/serverless/v1/service/asset/assetVersion.d.ts b/lib/rest/serverless/v1/service/asset/assetVersion.d.ts index c50fa419c0..29db2964d2 100644 --- a/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +++ b/lib/rest/serverless/v1/service/asset/assetVersion.d.ts @@ -222,7 +222,7 @@ declare class AssetVersionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: AssetVersionInstance) => any): void; + fetch(callback?: (error: Error | null, items: AssetVersionInstance) => any): Promise; path: string; serviceSid: string; sid: string; diff --git a/lib/rest/serverless/v1/service/build.d.ts b/lib/rest/serverless/v1/service/build.d.ts index 21d4b0ac68..2539739b6d 100644 --- a/lib/rest/serverless/v1/service/build.d.ts +++ b/lib/rest/serverless/v1/service/build.d.ts @@ -215,7 +215,7 @@ declare class BuildContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: BuildInstance) => any): void; + remove(callback?: (error: Error | null, items: BuildInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -249,14 +249,14 @@ declare class BuildInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: BuildInstance) => any): void; + fetch(callback?: (error: Error | null, items: BuildInstance) => any): Promise; functionVersions: object[]; /** * remove a BuildInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: BuildInstance) => any): void; + remove(callback?: (error: Error | null, items: BuildInstance) => any): Promise; serviceSid: string; sid: string; status: BuildStatus; diff --git a/lib/rest/serverless/v1/service/environment.d.ts b/lib/rest/serverless/v1/service/environment.d.ts index c6e87f44f9..5da1ffc119 100644 --- a/lib/rest/serverless/v1/service/environment.d.ts +++ b/lib/rest/serverless/v1/service/environment.d.ts @@ -219,7 +219,7 @@ declare class EnvironmentContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: EnvironmentInstance) => any): void; + remove(callback?: (error: Error | null, items: EnvironmentInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -259,7 +259,7 @@ declare class EnvironmentInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: EnvironmentInstance) => any): void; + fetch(callback?: (error: Error | null, items: EnvironmentInstance) => any): Promise; links: string; /** * Access the logs @@ -270,7 +270,7 @@ declare class EnvironmentInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: EnvironmentInstance) => any): void; + remove(callback?: (error: Error | null, items: EnvironmentInstance) => any): Promise; serviceSid: string; sid: string; /** diff --git a/lib/rest/serverless/v1/service/environment/deployment.d.ts b/lib/rest/serverless/v1/service/environment/deployment.d.ts index e1e9f8ea1c..40a90aa0da 100644 --- a/lib/rest/serverless/v1/service/environment/deployment.d.ts +++ b/lib/rest/serverless/v1/service/environment/deployment.d.ts @@ -238,7 +238,7 @@ declare class DeploymentInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: DeploymentInstance) => any): void; + fetch(callback?: (error: Error | null, items: DeploymentInstance) => any): Promise; serviceSid: string; sid: string; /** diff --git a/lib/rest/serverless/v1/service/environment/log.d.ts b/lib/rest/serverless/v1/service/environment/log.d.ts index cc2d7ed2f8..ff8ce26fda 100644 --- a/lib/rest/serverless/v1/service/environment/log.d.ts +++ b/lib/rest/serverless/v1/service/environment/log.d.ts @@ -232,7 +232,7 @@ declare class LogInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: LogInstance) => any): void; + fetch(callback?: (error: Error | null, items: LogInstance) => any): Promise; functionSid: string; level: LogLevel; message: string; diff --git a/lib/rest/serverless/v1/service/environment/variable.d.ts b/lib/rest/serverless/v1/service/environment/variable.d.ts index 1e7c1d8a31..cdb1e4234e 100644 --- a/lib/rest/serverless/v1/service/environment/variable.d.ts +++ b/lib/rest/serverless/v1/service/environment/variable.d.ts @@ -223,7 +223,7 @@ declare class VariableContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: VariableInstance) => any): void; + remove(callback?: (error: Error | null, items: VariableInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -264,14 +264,14 @@ declare class VariableInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: VariableInstance) => any): void; + fetch(callback?: (error: Error | null, items: VariableInstance) => any): Promise; key: string; /** * remove a VariableInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: VariableInstance) => any): void; + remove(callback?: (error: Error | null, items: VariableInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -284,7 +284,7 @@ declare class VariableInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: VariableInstanceUpdateOptions, callback?: (error: Error | null, items: VariableInstance) => any): void; + update(opts?: VariableInstanceUpdateOptions, callback?: (error: Error | null, items: VariableInstance) => any): Promise; url: string; value: string; } diff --git a/lib/rest/serverless/v1/service/function.d.ts b/lib/rest/serverless/v1/service/function.d.ts index 27b6eef4b0..1f11e2d51e 100644 --- a/lib/rest/serverless/v1/service/function.d.ts +++ b/lib/rest/serverless/v1/service/function.d.ts @@ -218,7 +218,7 @@ declare class FunctionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FunctionInstance) => any): void; + remove(callback?: (error: Error | null, items: FunctionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -257,7 +257,7 @@ declare class FunctionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FunctionInstance) => any): void; + fetch(callback?: (error: Error | null, items: FunctionInstance) => any): Promise; friendlyName: string; /** * Access the functionVersions @@ -269,7 +269,7 @@ declare class FunctionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FunctionInstance) => any): void; + remove(callback?: (error: Error | null, items: FunctionInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -282,7 +282,7 @@ declare class FunctionInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: FunctionInstanceUpdateOptions, callback?: (error: Error | null, items: FunctionInstance) => any): void; + update(opts: FunctionInstanceUpdateOptions, callback?: (error: Error | null, items: FunctionInstance) => any): Promise; url: string; } diff --git a/lib/rest/serverless/v1/service/function/functionVersion.d.ts b/lib/rest/serverless/v1/service/function/functionVersion.d.ts index ab100ae18a..d216192d78 100644 --- a/lib/rest/serverless/v1/service/function/functionVersion.d.ts +++ b/lib/rest/serverless/v1/service/function/functionVersion.d.ts @@ -221,7 +221,7 @@ declare class FunctionVersionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FunctionVersionInstance) => any): void; + fetch(callback?: (error: Error | null, items: FunctionVersionInstance) => any): Promise; functionSid: string; path: string; serviceSid: string; diff --git a/lib/rest/studio/v1/flow.d.ts b/lib/rest/studio/v1/flow.d.ts index 2cf6cfcef6..5f245b36b0 100644 --- a/lib/rest/studio/v1/flow.d.ts +++ b/lib/rest/studio/v1/flow.d.ts @@ -188,7 +188,7 @@ declare class FlowContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FlowInstance) => any): void; + remove(callback?: (error: Error | null, items: FlowInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -223,7 +223,7 @@ declare class FlowInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: FlowInstance) => any): void; + fetch(callback?: (error: Error | null, items: FlowInstance) => any): Promise; friendlyName: string; links: string; /** @@ -231,7 +231,7 @@ declare class FlowInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: FlowInstance) => any): void; + remove(callback?: (error: Error | null, items: FlowInstance) => any): Promise; sid: string; status: FlowStatus; /** diff --git a/lib/rest/studio/v1/flow/engagement.d.ts b/lib/rest/studio/v1/flow/engagement.d.ts index c79de0ee2f..2d7e62a2de 100644 --- a/lib/rest/studio/v1/flow/engagement.d.ts +++ b/lib/rest/studio/v1/flow/engagement.d.ts @@ -213,7 +213,7 @@ declare class EngagementContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: EngagementInstance) => any): void; + remove(callback?: (error: Error | null, items: EngagementInstance) => any): Promise; steps: StepListInstance; /** * Provide a user-friendly representation @@ -249,7 +249,7 @@ declare class EngagementInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: EngagementInstance) => any): void; + fetch(callback?: (error: Error | null, items: EngagementInstance) => any): Promise; flowSid: string; links: string; /** @@ -257,7 +257,7 @@ declare class EngagementInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: EngagementInstance) => any): void; + remove(callback?: (error: Error | null, items: EngagementInstance) => any): Promise; sid: string; status: EngagementStatus; /** diff --git a/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts b/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts index fc1925980e..5c9e16e911 100644 --- a/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +++ b/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts @@ -94,7 +94,7 @@ declare class EngagementContextInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: EngagementContextInstance) => any): void; + fetch(callback?: (error: Error | null, items: EngagementContextInstance) => any): Promise; flowSid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/studio/v1/flow/engagement/step.d.ts b/lib/rest/studio/v1/flow/engagement/step.d.ts index 7d6aa7ec77..deb4eb63cf 100644 --- a/lib/rest/studio/v1/flow/engagement/step.d.ts +++ b/lib/rest/studio/v1/flow/engagement/step.d.ts @@ -217,7 +217,7 @@ declare class StepInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: StepInstance) => any): void; + fetch(callback?: (error: Error | null, items: StepInstance) => any): Promise; flowSid: string; links: string; name: string; diff --git a/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts b/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts index e09e49dc29..16bb59afb2 100644 --- a/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +++ b/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts @@ -99,7 +99,7 @@ declare class StepContextInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: StepContextInstance) => any): void; + fetch(callback?: (error: Error | null, items: StepContextInstance) => any): Promise; flowSid: string; stepSid: string; /** diff --git a/lib/rest/studio/v1/flow/execution.d.ts b/lib/rest/studio/v1/flow/execution.d.ts index 0938bd3127..2109c94547 100644 --- a/lib/rest/studio/v1/flow/execution.d.ts +++ b/lib/rest/studio/v1/flow/execution.d.ts @@ -225,7 +225,7 @@ declare class ExecutionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ExecutionInstance) => any): void; + remove(callback?: (error: Error | null, items: ExecutionInstance) => any): Promise; steps: ExecutionStepListInstance; /** * Provide a user-friendly representation @@ -261,7 +261,7 @@ declare class ExecutionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ExecutionInstance) => any): void; + fetch(callback?: (error: Error | null, items: ExecutionInstance) => any): Promise; flowSid: string; links: string; /** @@ -269,7 +269,7 @@ declare class ExecutionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ExecutionInstance) => any): void; + remove(callback?: (error: Error | null, items: ExecutionInstance) => any): Promise; sid: string; status: ExecutionStatus; /** diff --git a/lib/rest/studio/v1/flow/execution/executionContext.d.ts b/lib/rest/studio/v1/flow/execution/executionContext.d.ts index c2d71dbbe9..32f8f4fa7a 100644 --- a/lib/rest/studio/v1/flow/execution/executionContext.d.ts +++ b/lib/rest/studio/v1/flow/execution/executionContext.d.ts @@ -94,7 +94,7 @@ declare class ExecutionContextInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ExecutionContextInstance) => any): void; + fetch(callback?: (error: Error | null, items: ExecutionContextInstance) => any): Promise; flowSid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/studio/v1/flow/execution/executionStep.d.ts b/lib/rest/studio/v1/flow/execution/executionStep.d.ts index 288c2de33b..e45b57db10 100644 --- a/lib/rest/studio/v1/flow/execution/executionStep.d.ts +++ b/lib/rest/studio/v1/flow/execution/executionStep.d.ts @@ -217,7 +217,7 @@ declare class ExecutionStepInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ExecutionStepInstance) => any): void; + fetch(callback?: (error: Error | null, items: ExecutionStepInstance) => any): Promise; flowSid: string; links: string; name: string; diff --git a/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts b/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts index 769f5ce978..5ba008e280 100644 --- a/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +++ b/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts @@ -99,7 +99,7 @@ declare class ExecutionStepContextInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ExecutionStepContextInstance) => any): void; + fetch(callback?: (error: Error | null, items: ExecutionStepContextInstance) => any): Promise; flowSid: string; stepSid: string; /** diff --git a/lib/rest/sync/v1/service.d.ts b/lib/rest/sync/v1/service.d.ts index 16cc855791..c4458f7e17 100644 --- a/lib/rest/sync/v1/service.d.ts +++ b/lib/rest/sync/v1/service.d.ts @@ -250,7 +250,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; syncLists: SyncListListInstance; syncMaps: SyncMapListInstance; syncStreams: SyncStreamListInstance; @@ -295,7 +295,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; friendlyName: string; links: string; reachabilityDebouncingEnabled: boolean; @@ -306,7 +306,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; sid: string; /** * Access the syncLists @@ -331,7 +331,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; webhookUrl: string; webhooksFromRestEnabled: boolean; diff --git a/lib/rest/sync/v1/service/document.d.ts b/lib/rest/sync/v1/service/document.d.ts index ec4a365318..9d38364664 100644 --- a/lib/rest/sync/v1/service/document.d.ts +++ b/lib/rest/sync/v1/service/document.d.ts @@ -227,7 +227,7 @@ declare class DocumentContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DocumentInstance) => any): void; + remove(callback?: (error: Error | null, items: DocumentInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -272,14 +272,14 @@ declare class DocumentInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: DocumentInstance) => any): void; + fetch(callback?: (error: Error | null, items: DocumentInstance) => any): Promise; links: string; /** * remove a DocumentInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DocumentInstance) => any): void; + remove(callback?: (error: Error | null, items: DocumentInstance) => any): Promise; revision: string; serviceSid: string; sid: string; @@ -294,7 +294,7 @@ declare class DocumentInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: DocumentInstanceUpdateOptions, callback?: (error: Error | null, items: DocumentInstance) => any): void; + update(opts?: DocumentInstanceUpdateOptions, callback?: (error: Error | null, items: DocumentInstance) => any): Promise; url: string; } diff --git a/lib/rest/sync/v1/service/document/documentPermission.d.ts b/lib/rest/sync/v1/service/document/documentPermission.d.ts index 6ed76e9887..0c6613afbd 100644 --- a/lib/rest/sync/v1/service/document/documentPermission.d.ts +++ b/lib/rest/sync/v1/service/document/documentPermission.d.ts @@ -206,7 +206,7 @@ declare class DocumentPermissionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -244,7 +244,7 @@ declare class DocumentPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): void; + fetch(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): Promise; identity: string; manage: boolean; read: boolean; @@ -253,7 +253,7 @@ declare class DocumentPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: DocumentPermissionInstance) => any): Promise; serviceSid: string; /** * Provide a user-friendly representation @@ -265,7 +265,7 @@ declare class DocumentPermissionInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: DocumentPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: DocumentPermissionInstance) => any): void; + update(opts: DocumentPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: DocumentPermissionInstance) => any): Promise; url: string; write: boolean; } diff --git a/lib/rest/sync/v1/service/syncList.d.ts b/lib/rest/sync/v1/service/syncList.d.ts index e41ff59da8..16db7f38d5 100644 --- a/lib/rest/sync/v1/service/syncList.d.ts +++ b/lib/rest/sync/v1/service/syncList.d.ts @@ -226,7 +226,7 @@ declare class SyncListContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListInstance) => any): Promise; syncListItems: SyncListItemListInstance; syncListPermissions: SyncListPermissionListInstance; /** @@ -268,14 +268,14 @@ declare class SyncListInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncListInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncListInstance) => any): Promise; links: string; /** * remove a SyncListInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListInstance) => any): Promise; revision: string; serviceSid: string; sid: string; @@ -298,7 +298,7 @@ declare class SyncListInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SyncListInstanceUpdateOptions, callback?: (error: Error | null, items: SyncListInstance) => any): void; + update(opts?: SyncListInstanceUpdateOptions, callback?: (error: Error | null, items: SyncListInstance) => any): Promise; url: string; } diff --git a/lib/rest/sync/v1/service/syncList/syncListItem.d.ts b/lib/rest/sync/v1/service/syncList/syncListItem.d.ts index 809c06ea5e..1d87c6a56a 100644 --- a/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +++ b/lib/rest/sync/v1/service/syncList/syncListItem.d.ts @@ -254,7 +254,7 @@ declare class SyncListItemContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListItemInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListItemInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -296,7 +296,7 @@ declare class SyncListItemInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncListItemInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncListItemInstance) => any): Promise; index: number; listSid: string; /** @@ -304,7 +304,7 @@ declare class SyncListItemInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListItemInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListItemInstance) => any): Promise; revision: string; serviceSid: string; /** @@ -317,7 +317,7 @@ declare class SyncListItemInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SyncListItemInstanceUpdateOptions, callback?: (error: Error | null, items: SyncListItemInstance) => any): void; + update(opts?: SyncListItemInstanceUpdateOptions, callback?: (error: Error | null, items: SyncListItemInstance) => any): Promise; url: string; } diff --git a/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts b/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts index 601c39f144..a382be351f 100644 --- a/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +++ b/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts @@ -206,7 +206,7 @@ declare class SyncListPermissionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -243,7 +243,7 @@ declare class SyncListPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): Promise; identity: string; listSid: string; manage: boolean; @@ -253,7 +253,7 @@ declare class SyncListPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncListPermissionInstance) => any): Promise; serviceSid: string; /** * Provide a user-friendly representation @@ -265,7 +265,7 @@ declare class SyncListPermissionInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: SyncListPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: SyncListPermissionInstance) => any): void; + update(opts: SyncListPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: SyncListPermissionInstance) => any): Promise; url: string; write: boolean; } diff --git a/lib/rest/sync/v1/service/syncMap.d.ts b/lib/rest/sync/v1/service/syncMap.d.ts index 170ad7f715..e9b734abbe 100644 --- a/lib/rest/sync/v1/service/syncMap.d.ts +++ b/lib/rest/sync/v1/service/syncMap.d.ts @@ -226,7 +226,7 @@ declare class SyncMapContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapInstance) => any): Promise; syncMapItems: SyncMapItemListInstance; syncMapPermissions: SyncMapPermissionListInstance; /** @@ -268,14 +268,14 @@ declare class SyncMapInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncMapInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncMapInstance) => any): Promise; links: string; /** * remove a SyncMapInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapInstance) => any): Promise; revision: string; serviceSid: string; sid: string; @@ -298,7 +298,7 @@ declare class SyncMapInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SyncMapInstanceUpdateOptions, callback?: (error: Error | null, items: SyncMapInstance) => any): void; + update(opts?: SyncMapInstanceUpdateOptions, callback?: (error: Error | null, items: SyncMapInstance) => any): Promise; url: string; } diff --git a/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts b/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts index 37d4c72cd0..50f3935dfd 100644 --- a/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +++ b/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts @@ -256,7 +256,7 @@ declare class SyncMapItemContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapItemInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapItemInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -298,7 +298,7 @@ declare class SyncMapItemInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncMapItemInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncMapItemInstance) => any): Promise; key: string; mapSid: string; /** @@ -306,7 +306,7 @@ declare class SyncMapItemInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapItemInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapItemInstance) => any): Promise; revision: string; serviceSid: string; /** @@ -319,7 +319,7 @@ declare class SyncMapItemInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SyncMapItemInstanceUpdateOptions, callback?: (error: Error | null, items: SyncMapItemInstance) => any): void; + update(opts?: SyncMapItemInstanceUpdateOptions, callback?: (error: Error | null, items: SyncMapItemInstance) => any): Promise; url: string; } diff --git a/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts b/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts index cd8cb2ec91..2aea3a3029 100644 --- a/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +++ b/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts @@ -205,7 +205,7 @@ declare class SyncMapPermissionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -242,7 +242,7 @@ declare class SyncMapPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): Promise; identity: string; manage: boolean; mapSid: string; @@ -252,7 +252,7 @@ declare class SyncMapPermissionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): Promise; serviceSid: string; /** * Provide a user-friendly representation @@ -264,7 +264,7 @@ declare class SyncMapPermissionInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: SyncMapPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): void; + update(opts: SyncMapPermissionInstanceUpdateOptions, callback?: (error: Error | null, items: SyncMapPermissionInstance) => any): Promise; url: string; write: boolean; } diff --git a/lib/rest/sync/v1/service/syncStream.d.ts b/lib/rest/sync/v1/service/syncStream.d.ts index 40c1ac8859..ac826f1c15 100644 --- a/lib/rest/sync/v1/service/syncStream.d.ts +++ b/lib/rest/sync/v1/service/syncStream.d.ts @@ -219,7 +219,7 @@ declare class SyncStreamContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncStreamInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncStreamInstance) => any): Promise; streamMessages: StreamMessageListInstance; /** * Provide a user-friendly representation @@ -260,14 +260,14 @@ declare class SyncStreamInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SyncStreamInstance) => any): void; + fetch(callback?: (error: Error | null, items: SyncStreamInstance) => any): Promise; links: string; /** * remove a SyncStreamInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SyncStreamInstance) => any): void; + remove(callback?: (error: Error | null, items: SyncStreamInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -285,7 +285,7 @@ declare class SyncStreamInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SyncStreamInstanceUpdateOptions, callback?: (error: Error | null, items: SyncStreamInstance) => any): void; + update(opts?: SyncStreamInstanceUpdateOptions, callback?: (error: Error | null, items: SyncStreamInstance) => any): Promise; url: string; } diff --git a/lib/rest/taskrouter/v1/workspace.d.ts b/lib/rest/taskrouter/v1/workspace.d.ts index 37c43650f8..12645c2dd9 100644 --- a/lib/rest/taskrouter/v1/workspace.d.ts +++ b/lib/rest/taskrouter/v1/workspace.d.ts @@ -266,7 +266,7 @@ declare class WorkspaceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WorkspaceInstance) => any): void; + remove(callback?: (error: Error | null, items: WorkspaceInstance) => any): Promise; statistics: WorkspaceStatisticsListInstance; taskChannels: TaskChannelListInstance; taskQueues: TaskQueueListInstance; @@ -322,7 +322,7 @@ declare class WorkspaceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WorkspaceInstance) => any): void; + fetch(callback?: (error: Error | null, items: WorkspaceInstance) => any): Promise; friendlyName: string; links: string; multiTaskEnabled: boolean; @@ -336,7 +336,7 @@ declare class WorkspaceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WorkspaceInstance) => any): void; + remove(callback?: (error: Error | null, items: WorkspaceInstance) => any): Promise; sid: string; /** * Access the statistics @@ -366,7 +366,7 @@ declare class WorkspaceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WorkspaceInstanceUpdateOptions, callback?: (error: Error | null, items: WorkspaceInstance) => any): void; + update(opts?: WorkspaceInstanceUpdateOptions, callback?: (error: Error | null, items: WorkspaceInstance) => any): Promise; url: string; /** * Access the workers diff --git a/lib/rest/taskrouter/v1/workspace/activity.d.ts b/lib/rest/taskrouter/v1/workspace/activity.d.ts index 5c10ca4da4..81a366e354 100644 --- a/lib/rest/taskrouter/v1/workspace/activity.d.ts +++ b/lib/rest/taskrouter/v1/workspace/activity.d.ts @@ -222,7 +222,7 @@ declare class ActivityContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ActivityInstance) => any): void; + remove(callback?: (error: Error | null, items: ActivityInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -258,14 +258,14 @@ declare class ActivityInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ActivityInstance) => any): void; + fetch(callback?: (error: Error | null, items: ActivityInstance) => any): Promise; friendlyName: string; /** * remove a ActivityInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ActivityInstance) => any): void; + remove(callback?: (error: Error | null, items: ActivityInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -277,7 +277,7 @@ declare class ActivityInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ActivityInstanceUpdateOptions, callback?: (error: Error | null, items: ActivityInstance) => any): void; + update(opts?: ActivityInstanceUpdateOptions, callback?: (error: Error | null, items: ActivityInstance) => any): Promise; url: string; workspaceSid: string; } diff --git a/lib/rest/taskrouter/v1/workspace/event.d.ts b/lib/rest/taskrouter/v1/workspace/event.d.ts index e1ba9d4a18..0fd1012cff 100644 --- a/lib/rest/taskrouter/v1/workspace/event.d.ts +++ b/lib/rest/taskrouter/v1/workspace/event.d.ts @@ -286,7 +286,7 @@ declare class EventInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: EventInstance) => any): void; + fetch(callback?: (error: Error | null, items: EventInstance) => any): Promise; resourceSid: string; resourceType: string; resourceUrl: string; diff --git a/lib/rest/taskrouter/v1/workspace/task.d.ts b/lib/rest/taskrouter/v1/workspace/task.d.ts index 8b6366935c..94ffb735ea 100644 --- a/lib/rest/taskrouter/v1/workspace/task.d.ts +++ b/lib/rest/taskrouter/v1/workspace/task.d.ts @@ -294,7 +294,7 @@ declare class TaskContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TaskInstance) => any): void; + remove(callback?: (error: Error | null, items: TaskInstance) => any): Promise; reservations: ReservationListInstance; /** * Provide a user-friendly representation @@ -334,7 +334,7 @@ declare class TaskInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TaskInstance) => any): void; + fetch(callback?: (error: Error | null, items: TaskInstance) => any): Promise; links: string; priority: number; reason: string; @@ -343,7 +343,7 @@ declare class TaskInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TaskInstance) => any): void; + remove(callback?: (error: Error | null, items: TaskInstance) => any): Promise; /** * Access the reservations */ @@ -364,7 +364,7 @@ declare class TaskInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: TaskInstanceUpdateOptions, callback?: (error: Error | null, items: TaskInstance) => any): void; + update(opts?: TaskInstanceUpdateOptions, callback?: (error: Error | null, items: TaskInstance) => any): Promise; url: string; workflowFriendlyName: string; workflowSid: string; diff --git a/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts b/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts index 9786f7cec1..3867fa395a 100644 --- a/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +++ b/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts @@ -346,7 +346,7 @@ declare class ReservationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ReservationInstance) => any): void; + fetch(callback?: (error: Error | null, items: ReservationInstance) => any): Promise; links: string; reservationStatus: ReservationStatus; sid: string; @@ -361,7 +361,7 @@ declare class ReservationInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ReservationInstanceUpdateOptions, callback?: (error: Error | null, items: ReservationInstance) => any): void; + update(opts?: ReservationInstanceUpdateOptions, callback?: (error: Error | null, items: ReservationInstance) => any): Promise; url: string; workerName: string; workerSid: string; diff --git a/lib/rest/taskrouter/v1/workspace/taskChannel.d.ts b/lib/rest/taskrouter/v1/workspace/taskChannel.d.ts index 073ce8bc14..68824ebe60 100644 --- a/lib/rest/taskrouter/v1/workspace/taskChannel.d.ts +++ b/lib/rest/taskrouter/v1/workspace/taskChannel.d.ts @@ -216,7 +216,7 @@ declare class TaskChannelContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TaskChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: TaskChannelInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -252,7 +252,7 @@ declare class TaskChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TaskChannelInstance) => any): void; + fetch(callback?: (error: Error | null, items: TaskChannelInstance) => any): Promise; friendlyName: string; links: string; /** @@ -260,7 +260,7 @@ declare class TaskChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TaskChannelInstance) => any): void; + remove(callback?: (error: Error | null, items: TaskChannelInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -273,7 +273,7 @@ declare class TaskChannelInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: TaskChannelInstanceUpdateOptions, callback?: (error: Error | null, items: TaskChannelInstance) => any): void; + update(opts?: TaskChannelInstanceUpdateOptions, callback?: (error: Error | null, items: TaskChannelInstance) => any): Promise; url: string; workspaceSid: string; } diff --git a/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts b/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts index 1926748288..5dc3d214e5 100644 --- a/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +++ b/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts @@ -263,7 +263,7 @@ declare class TaskQueueContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TaskQueueInstance) => any): void; + remove(callback?: (error: Error | null, items: TaskQueueInstance) => any): Promise; statistics: TaskQueueStatisticsListInstance; /** * Provide a user-friendly representation @@ -305,7 +305,7 @@ declare class TaskQueueInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TaskQueueInstance) => any): void; + fetch(callback?: (error: Error | null, items: TaskQueueInstance) => any): Promise; friendlyName: string; links: string; maxReservedWorkers: number; @@ -318,7 +318,7 @@ declare class TaskQueueInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TaskQueueInstance) => any): void; + remove(callback?: (error: Error | null, items: TaskQueueInstance) => any): Promise; reservationActivityName: string; reservationActivitySid: string; sid: string; @@ -338,7 +338,7 @@ declare class TaskQueueInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: TaskQueueInstanceUpdateOptions, callback?: (error: Error | null, items: TaskQueueInstance) => any): void; + update(opts?: TaskQueueInstanceUpdateOptions, callback?: (error: Error | null, items: TaskQueueInstance) => any): Promise; url: string; workspaceSid: string; } diff --git a/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts index 6bce13c47d..7067b361b9 100644 --- a/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts @@ -130,7 +130,7 @@ declare class TaskQueueCumulativeStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: TaskQueueCumulativeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: TaskQueueCumulativeStatisticsInstance) => any): void; + fetch(opts?: TaskQueueCumulativeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: TaskQueueCumulativeStatisticsInstance) => any): Promise; reservationsAccepted: number; reservationsCanceled: number; reservationsCreated: number; diff --git a/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts index 665950acbb..8f79ba52c0 100644 --- a/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts @@ -111,7 +111,7 @@ declare class TaskQueueRealTimeStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: TaskQueueRealTimeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: TaskQueueRealTimeStatisticsInstance) => any): void; + fetch(opts?: TaskQueueRealTimeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: TaskQueueRealTimeStatisticsInstance) => any): Promise; longestTaskWaitingAge: number; longestTaskWaitingSid: string; taskQueueSid: string; diff --git a/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts index 43c201d14b..5224a64022 100644 --- a/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts @@ -114,7 +114,7 @@ declare class TaskQueueStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: TaskQueueStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: TaskQueueStatisticsInstance) => any): void; + fetch(opts?: TaskQueueStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: TaskQueueStatisticsInstance) => any): Promise; realtime: object; taskQueueSid: string; /** diff --git a/lib/rest/taskrouter/v1/workspace/worker.d.ts b/lib/rest/taskrouter/v1/workspace/worker.d.ts index 1e5c92a3e9..56fd76df24 100644 --- a/lib/rest/taskrouter/v1/workspace/worker.d.ts +++ b/lib/rest/taskrouter/v1/workspace/worker.d.ts @@ -278,7 +278,7 @@ declare class WorkerContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WorkerInstance) => any): void; + remove(callback?: (error: Error | null, items: WorkerInstance) => any): Promise; reservations: ReservationListInstance; statistics: WorkerStatisticsListInstance; /** @@ -325,7 +325,7 @@ declare class WorkerInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WorkerInstance) => any): void; + fetch(callback?: (error: Error | null, items: WorkerInstance) => any): Promise; friendlyName: string; links: string; /** @@ -337,7 +337,7 @@ declare class WorkerInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WorkerInstance) => any): void; + remove(callback?: (error: Error | null, items: WorkerInstance) => any): Promise; /** * Access the reservations */ @@ -357,7 +357,7 @@ declare class WorkerInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WorkerInstanceUpdateOptions, callback?: (error: Error | null, items: WorkerInstance) => any): void; + update(opts?: WorkerInstanceUpdateOptions, callback?: (error: Error | null, items: WorkerInstance) => any): Promise; url: string; /** * Access the workerChannels diff --git a/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts b/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts index fc750b8941..d064fac4e6 100644 --- a/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +++ b/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts @@ -340,7 +340,7 @@ declare class ReservationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ReservationInstance) => any): void; + fetch(callback?: (error: Error | null, items: ReservationInstance) => any): Promise; links: string; reservationStatus: ReservationStatus; sid: string; @@ -355,7 +355,7 @@ declare class ReservationInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ReservationInstanceUpdateOptions, callback?: (error: Error | null, items: ReservationInstance) => any): void; + update(opts?: ReservationInstanceUpdateOptions, callback?: (error: Error | null, items: ReservationInstance) => any): Promise; url: string; workerName: string; workerSid: string; diff --git a/lib/rest/taskrouter/v1/workspace/worker/workerChannel.d.ts b/lib/rest/taskrouter/v1/workspace/worker/workerChannel.d.ts index 6a87b85f93..f527c11ecf 100644 --- a/lib/rest/taskrouter/v1/workspace/worker/workerChannel.d.ts +++ b/lib/rest/taskrouter/v1/workspace/worker/workerChannel.d.ts @@ -236,7 +236,7 @@ declare class WorkerChannelInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WorkerChannelInstance) => any): void; + fetch(callback?: (error: Error | null, items: WorkerChannelInstance) => any): Promise; sid: string; taskChannelSid: string; taskChannelUniqueName: string; @@ -250,7 +250,7 @@ declare class WorkerChannelInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WorkerChannelInstanceUpdateOptions, callback?: (error: Error | null, items: WorkerChannelInstance) => any): void; + update(opts?: WorkerChannelInstanceUpdateOptions, callback?: (error: Error | null, items: WorkerChannelInstance) => any): Promise; url: string; workerSid: string; workspaceSid: string; diff --git a/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts index eae1c2a2e6..a672e53822 100644 --- a/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts @@ -111,7 +111,7 @@ declare class WorkerStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: WorkerStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkerStatisticsInstance) => any): void; + fetch(opts?: WorkerStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkerStatisticsInstance) => any): Promise; /** * Provide a user-friendly representation */ diff --git a/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts index 7ba6abbe90..b16dd4c2ed 100644 --- a/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts @@ -115,7 +115,7 @@ declare class WorkersCumulativeStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: WorkersCumulativeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkersCumulativeStatisticsInstance) => any): void; + fetch(opts?: WorkersCumulativeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkersCumulativeStatisticsInstance) => any): Promise; reservationsAccepted: number; reservationsCanceled: number; reservationsCreated: number; diff --git a/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts index 11ba80aed4..29ac617981 100644 --- a/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts @@ -100,7 +100,7 @@ declare class WorkersRealTimeStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: WorkersRealTimeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkersRealTimeStatisticsInstance) => any): void; + fetch(opts?: WorkersRealTimeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkersRealTimeStatisticsInstance) => any): Promise; /** * Provide a user-friendly representation */ diff --git a/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts index 31310e1d5c..d9b3f37070 100644 --- a/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts @@ -113,7 +113,7 @@ declare class WorkersStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: WorkersStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkersStatisticsInstance) => any): void; + fetch(opts?: WorkersStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkersStatisticsInstance) => any): Promise; realtime: object; /** * Provide a user-friendly representation diff --git a/lib/rest/taskrouter/v1/workspace/workflow.d.ts b/lib/rest/taskrouter/v1/workspace/workflow.d.ts index 06fde2b514..901548cc84 100644 --- a/lib/rest/taskrouter/v1/workspace/workflow.d.ts +++ b/lib/rest/taskrouter/v1/workspace/workflow.d.ts @@ -242,7 +242,7 @@ declare class WorkflowContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WorkflowInstance) => any): void; + remove(callback?: (error: Error | null, items: WorkflowInstance) => any): Promise; statistics: WorkflowStatisticsListInstance; /** * Provide a user-friendly representation @@ -286,7 +286,7 @@ declare class WorkflowInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: WorkflowInstance) => any): void; + fetch(callback?: (error: Error | null, items: WorkflowInstance) => any): Promise; friendlyName: string; links: string; /** @@ -298,7 +298,7 @@ declare class WorkflowInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: WorkflowInstance) => any): void; + remove(callback?: (error: Error | null, items: WorkflowInstance) => any): Promise; sid: string; /** * Access the statistics @@ -315,7 +315,7 @@ declare class WorkflowInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: WorkflowInstanceUpdateOptions, callback?: (error: Error | null, items: WorkflowInstance) => any): void; + update(opts?: WorkflowInstanceUpdateOptions, callback?: (error: Error | null, items: WorkflowInstance) => any): Promise; url: string; workspaceSid: string; } diff --git a/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts index 048c1a170b..46c71a7b3a 100644 --- a/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts @@ -131,7 +131,7 @@ declare class WorkflowCumulativeStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: WorkflowCumulativeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkflowCumulativeStatisticsInstance) => any): void; + fetch(opts?: WorkflowCumulativeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkflowCumulativeStatisticsInstance) => any): Promise; reservationsAccepted: number; reservationsCanceled: number; reservationsCreated: number; diff --git a/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts index dfb03974c3..85968e90b4 100644 --- a/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts @@ -107,7 +107,7 @@ declare class WorkflowRealTimeStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: WorkflowRealTimeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkflowRealTimeStatisticsInstance) => any): void; + fetch(opts?: WorkflowRealTimeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkflowRealTimeStatisticsInstance) => any): Promise; longestTaskWaitingAge: number; longestTaskWaitingSid: string; tasksByPriority: object; diff --git a/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts index cc0a381091..20d5883355 100644 --- a/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts @@ -114,7 +114,7 @@ declare class WorkflowStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: WorkflowStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkflowStatisticsInstance) => any): void; + fetch(opts?: WorkflowStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkflowStatisticsInstance) => any): Promise; realtime: object; /** * Provide a user-friendly representation diff --git a/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts index 1bec361ce1..5c64626120 100644 --- a/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts @@ -126,7 +126,7 @@ declare class WorkspaceCumulativeStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: WorkspaceCumulativeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkspaceCumulativeStatisticsInstance) => any): void; + fetch(opts?: WorkspaceCumulativeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkspaceCumulativeStatisticsInstance) => any): Promise; reservationsAccepted: number; reservationsCanceled: number; reservationsCreated: number; diff --git a/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts index 8d05695325..52b4816310 100644 --- a/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts @@ -105,7 +105,7 @@ declare class WorkspaceRealTimeStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: WorkspaceRealTimeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkspaceRealTimeStatisticsInstance) => any): void; + fetch(opts?: WorkspaceRealTimeStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkspaceRealTimeStatisticsInstance) => any): Promise; longestTaskWaitingAge: number; longestTaskWaitingSid: string; tasksByPriority: object; diff --git a/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts b/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts index 8f27bbd9b6..899ca3a3c5 100644 --- a/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +++ b/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts @@ -109,7 +109,7 @@ declare class WorkspaceStatisticsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - fetch(opts?: WorkspaceStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkspaceStatisticsInstance) => any): void; + fetch(opts?: WorkspaceStatisticsInstanceFetchOptions, callback?: (error: Error | null, items: WorkspaceStatisticsInstance) => any): Promise; realtime: object; /** * Provide a user-friendly representation diff --git a/lib/rest/trunking/v1/trunk.d.ts b/lib/rest/trunking/v1/trunk.d.ts index 4a22e5cbef..e5762c14df 100644 --- a/lib/rest/trunking/v1/trunk.d.ts +++ b/lib/rest/trunking/v1/trunk.d.ts @@ -252,7 +252,7 @@ declare class TrunkContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TrunkInstance) => any): void; + remove(callback?: (error: Error | null, items: TrunkInstance) => any): Promise; terminatingSipDomains: TerminatingSipDomainListInstance; /** * Provide a user-friendly representation @@ -297,7 +297,7 @@ declare class TrunkInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TrunkInstance) => any): void; + fetch(callback?: (error: Error | null, items: TrunkInstance) => any): Promise; friendlyName: string; /** * Access the ipAccessControlLists @@ -318,7 +318,7 @@ declare class TrunkInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TrunkInstance) => any): void; + remove(callback?: (error: Error | null, items: TrunkInstance) => any): Promise; secure: boolean; sid: string; /** @@ -335,7 +335,7 @@ declare class TrunkInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: TrunkInstanceUpdateOptions, callback?: (error: Error | null, items: TrunkInstance) => any): void; + update(opts?: TrunkInstanceUpdateOptions, callback?: (error: Error | null, items: TrunkInstance) => any): Promise; url: string; } diff --git a/lib/rest/trunking/v1/trunk/credentialList.d.ts b/lib/rest/trunking/v1/trunk/credentialList.d.ts index dccb5034e2..a20633c1fa 100644 --- a/lib/rest/trunking/v1/trunk/credentialList.d.ts +++ b/lib/rest/trunking/v1/trunk/credentialList.d.ts @@ -197,7 +197,7 @@ declare class CredentialListContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialListInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialListInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -225,14 +225,14 @@ declare class CredentialListInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CredentialListInstance) => any): void; + fetch(callback?: (error: Error | null, items: CredentialListInstance) => any): Promise; friendlyName: string; /** * remove a CredentialListInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CredentialListInstance) => any): void; + remove(callback?: (error: Error | null, items: CredentialListInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/trunking/v1/trunk/ipAccessControlList.d.ts b/lib/rest/trunking/v1/trunk/ipAccessControlList.d.ts index b53aca382c..c911b021d8 100644 --- a/lib/rest/trunking/v1/trunk/ipAccessControlList.d.ts +++ b/lib/rest/trunking/v1/trunk/ipAccessControlList.d.ts @@ -198,7 +198,7 @@ declare class IpAccessControlListContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): void; + remove(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -226,14 +226,14 @@ declare class IpAccessControlListInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): void; + fetch(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): Promise; friendlyName: string; /** * remove a IpAccessControlListInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): void; + remove(callback?: (error: Error | null, items: IpAccessControlListInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation diff --git a/lib/rest/trunking/v1/trunk/originationUrl.d.ts b/lib/rest/trunking/v1/trunk/originationUrl.d.ts index c5281a51f0..4675715c1b 100644 --- a/lib/rest/trunking/v1/trunk/originationUrl.d.ts +++ b/lib/rest/trunking/v1/trunk/originationUrl.d.ts @@ -227,7 +227,7 @@ declare class OriginationUrlContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: OriginationUrlInstance) => any): void; + remove(callback?: (error: Error | null, items: OriginationUrlInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -263,7 +263,7 @@ declare class OriginationUrlInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: OriginationUrlInstance) => any): void; + fetch(callback?: (error: Error | null, items: OriginationUrlInstance) => any): Promise; friendlyName: string; priority: number; /** @@ -271,7 +271,7 @@ declare class OriginationUrlInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: OriginationUrlInstance) => any): void; + remove(callback?: (error: Error | null, items: OriginationUrlInstance) => any): Promise; sid: string; sipUrl: string; /** @@ -285,7 +285,7 @@ declare class OriginationUrlInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: OriginationUrlInstanceUpdateOptions, callback?: (error: Error | null, items: OriginationUrlInstance) => any): void; + update(opts?: OriginationUrlInstanceUpdateOptions, callback?: (error: Error | null, items: OriginationUrlInstance) => any): Promise; url: string; weight: number; } diff --git a/lib/rest/trunking/v1/trunk/phoneNumber.d.ts b/lib/rest/trunking/v1/trunk/phoneNumber.d.ts index 4028c3e3a8..6b1f20e2de 100644 --- a/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +++ b/lib/rest/trunking/v1/trunk/phoneNumber.d.ts @@ -218,7 +218,7 @@ declare class PhoneNumberContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): void; + remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -250,7 +250,7 @@ declare class PhoneNumberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: PhoneNumberInstance) => any): void; + fetch(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise; friendlyName: string; links: string; phoneNumber: string; @@ -259,7 +259,7 @@ declare class PhoneNumberInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): void; + remove(callback?: (error: Error | null, items: PhoneNumberInstance) => any): Promise; sid: string; smsApplicationSid: string; smsFallbackMethod: string; diff --git a/lib/rest/trunking/v1/trunk/terminatingSipDomain.d.ts b/lib/rest/trunking/v1/trunk/terminatingSipDomain.d.ts index 64c840dfeb..088e99070b 100644 --- a/lib/rest/trunking/v1/trunk/terminatingSipDomain.d.ts +++ b/lib/rest/trunking/v1/trunk/terminatingSipDomain.d.ts @@ -209,7 +209,7 @@ declare class TerminatingSipDomainContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TerminatingSipDomainInstance) => any): void; + remove(callback?: (error: Error | null, items: TerminatingSipDomainInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -240,7 +240,7 @@ declare class TerminatingSipDomainInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: TerminatingSipDomainInstance) => any): void; + fetch(callback?: (error: Error | null, items: TerminatingSipDomainInstance) => any): Promise; friendlyName: string; links: string; /** @@ -248,7 +248,7 @@ declare class TerminatingSipDomainInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: TerminatingSipDomainInstance) => any): void; + remove(callback?: (error: Error | null, items: TerminatingSipDomainInstance) => any): Promise; sid: string; sipRegistration: boolean; /** diff --git a/lib/rest/verify/v2/service.d.ts b/lib/rest/verify/v2/service.d.ts index 1ff362f6cb..e960cdd886 100644 --- a/lib/rest/verify/v2/service.d.ts +++ b/lib/rest/verify/v2/service.d.ts @@ -250,7 +250,7 @@ declare class ServiceContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -291,7 +291,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ServiceInstance) => any): void; + fetch(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; friendlyName: string; links: string; lookupEnabled: boolean; @@ -309,7 +309,7 @@ declare class ServiceInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: ServiceInstance) => any): void; + remove(callback?: (error: Error | null, items: ServiceInstance) => any): Promise; sid: string; skipSmsToLandlines: boolean; /** @@ -323,7 +323,7 @@ declare class ServiceInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): void; + update(opts?: ServiceInstanceUpdateOptions, callback?: (error: Error | null, items: ServiceInstance) => any): Promise; url: string; /** * Access the verificationChecks diff --git a/lib/rest/verify/v2/service/messagingConfiguration.d.ts b/lib/rest/verify/v2/service/messagingConfiguration.d.ts index d31d014586..d19c34056d 100644 --- a/lib/rest/verify/v2/service/messagingConfiguration.d.ts +++ b/lib/rest/verify/v2/service/messagingConfiguration.d.ts @@ -215,7 +215,7 @@ declare class MessagingConfigurationContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessagingConfigurationInstance) => any): void; + remove(callback?: (error: Error | null, items: MessagingConfigurationInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -254,14 +254,14 @@ declare class MessagingConfigurationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: MessagingConfigurationInstance) => any): void; + fetch(callback?: (error: Error | null, items: MessagingConfigurationInstance) => any): Promise; messagingServiceSid: string; /** * remove a MessagingConfigurationInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: MessagingConfigurationInstance) => any): void; + remove(callback?: (error: Error | null, items: MessagingConfigurationInstance) => any): Promise; serviceSid: string; /** * Provide a user-friendly representation @@ -273,7 +273,7 @@ declare class MessagingConfigurationInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: MessagingConfigurationInstanceUpdateOptions, callback?: (error: Error | null, items: MessagingConfigurationInstance) => any): void; + update(opts: MessagingConfigurationInstanceUpdateOptions, callback?: (error: Error | null, items: MessagingConfigurationInstance) => any): Promise; url: string; } diff --git a/lib/rest/verify/v2/service/rateLimit.d.ts b/lib/rest/verify/v2/service/rateLimit.d.ts index 837236faed..a9e434c300 100644 --- a/lib/rest/verify/v2/service/rateLimit.d.ts +++ b/lib/rest/verify/v2/service/rateLimit.d.ts @@ -219,7 +219,7 @@ declare class RateLimitContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RateLimitInstance) => any): void; + remove(callback?: (error: Error | null, items: RateLimitInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -262,14 +262,14 @@ declare class RateLimitInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RateLimitInstance) => any): void; + fetch(callback?: (error: Error | null, items: RateLimitInstance) => any): Promise; links: string; /** * remove a RateLimitInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RateLimitInstance) => any): void; + remove(callback?: (error: Error | null, items: RateLimitInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -283,7 +283,7 @@ declare class RateLimitInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: RateLimitInstanceUpdateOptions, callback?: (error: Error | null, items: RateLimitInstance) => any): void; + update(opts?: RateLimitInstanceUpdateOptions, callback?: (error: Error | null, items: RateLimitInstance) => any): Promise; url: string; } diff --git a/lib/rest/verify/v2/service/rateLimit/bucket.d.ts b/lib/rest/verify/v2/service/rateLimit/bucket.d.ts index c4ce466e54..4a10195df5 100644 --- a/lib/rest/verify/v2/service/rateLimit/bucket.d.ts +++ b/lib/rest/verify/v2/service/rateLimit/bucket.d.ts @@ -221,7 +221,7 @@ declare class BucketContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: BucketInstance) => any): void; + remove(callback?: (error: Error | null, items: BucketInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -260,7 +260,7 @@ declare class BucketInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: BucketInstance) => any): void; + fetch(callback?: (error: Error | null, items: BucketInstance) => any): Promise; interval: number; max: number; rateLimitSid: string; @@ -269,7 +269,7 @@ declare class BucketInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: BucketInstance) => any): void; + remove(callback?: (error: Error | null, items: BucketInstance) => any): Promise; serviceSid: string; sid: string; /** @@ -282,7 +282,7 @@ declare class BucketInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: BucketInstanceUpdateOptions, callback?: (error: Error | null, items: BucketInstance) => any): void; + update(opts?: BucketInstanceUpdateOptions, callback?: (error: Error | null, items: BucketInstance) => any): Promise; url: string; } diff --git a/lib/rest/verify/v2/service/verification.d.ts b/lib/rest/verify/v2/service/verification.d.ts index b2f25b7b7b..36c328c243 100644 --- a/lib/rest/verify/v2/service/verification.d.ts +++ b/lib/rest/verify/v2/service/verification.d.ts @@ -166,7 +166,7 @@ declare class VerificationInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: VerificationInstance) => any): void; + fetch(callback?: (error: Error | null, items: VerificationInstance) => any): Promise; lookup: object; payee: string; serviceSid: string; @@ -183,7 +183,7 @@ declare class VerificationInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: VerificationInstanceUpdateOptions, callback?: (error: Error | null, items: VerificationInstance) => any): void; + update(opts: VerificationInstanceUpdateOptions, callback?: (error: Error | null, items: VerificationInstance) => any): Promise; url: string; valid: boolean; } diff --git a/lib/rest/video/v1/composition.d.ts b/lib/rest/video/v1/composition.d.ts index bea68a7c42..5483480e24 100644 --- a/lib/rest/video/v1/composition.d.ts +++ b/lib/rest/video/v1/composition.d.ts @@ -258,7 +258,7 @@ declare class CompositionContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CompositionInstance) => any): void; + remove(callback?: (error: Error | null, items: CompositionInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -294,7 +294,7 @@ declare class CompositionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CompositionInstance) => any): void; + fetch(callback?: (error: Error | null, items: CompositionInstance) => any): Promise; format: CompositionFormat; links: string; /** @@ -302,7 +302,7 @@ declare class CompositionInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CompositionInstance) => any): void; + remove(callback?: (error: Error | null, items: CompositionInstance) => any): Promise; resolution: string; roomSid: string; sid: string; diff --git a/lib/rest/video/v1/compositionHook.d.ts b/lib/rest/video/v1/compositionHook.d.ts index ffe8e11047..ddd1da4db4 100644 --- a/lib/rest/video/v1/compositionHook.d.ts +++ b/lib/rest/video/v1/compositionHook.d.ts @@ -282,7 +282,7 @@ declare class CompositionHookContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CompositionHookInstance) => any): void; + remove(callback?: (error: Error | null, items: CompositionHookInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -323,7 +323,7 @@ declare class CompositionHookInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CompositionHookInstance) => any): void; + fetch(callback?: (error: Error | null, items: CompositionHookInstance) => any): Promise; format: CompositionHookFormat; friendlyName: string; /** @@ -331,7 +331,7 @@ declare class CompositionHookInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CompositionHookInstance) => any): void; + remove(callback?: (error: Error | null, items: CompositionHookInstance) => any): Promise; resolution: string; sid: string; statusCallback: string; @@ -347,7 +347,7 @@ declare class CompositionHookInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: CompositionHookInstanceUpdateOptions, callback?: (error: Error | null, items: CompositionHookInstance) => any): void; + update(opts: CompositionHookInstanceUpdateOptions, callback?: (error: Error | null, items: CompositionHookInstance) => any): Promise; url: string; videoLayout: object; } diff --git a/lib/rest/video/v1/compositionSettings.d.ts b/lib/rest/video/v1/compositionSettings.d.ts index 2c79f4e5ea..b420795277 100644 --- a/lib/rest/video/v1/compositionSettings.d.ts +++ b/lib/rest/video/v1/compositionSettings.d.ts @@ -130,7 +130,7 @@ declare class CompositionSettingsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - create(opts: CompositionSettingsInstanceCreateOptions, callback?: (error: Error | null, items: CompositionSettingsInstance) => any): void; + create(opts: CompositionSettingsInstanceCreateOptions, callback?: (error: Error | null, items: CompositionSettingsInstance) => any): Promise; encryptionEnabled: boolean; encryptionKeySid: string; /** @@ -138,7 +138,7 @@ declare class CompositionSettingsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CompositionSettingsInstance) => any): void; + fetch(callback?: (error: Error | null, items: CompositionSettingsInstance) => any): Promise; friendlyName: string; /** * Provide a user-friendly representation diff --git a/lib/rest/video/v1/recording.d.ts b/lib/rest/video/v1/recording.d.ts index bd038e4909..a0c6ba63b3 100644 --- a/lib/rest/video/v1/recording.d.ts +++ b/lib/rest/video/v1/recording.d.ts @@ -231,7 +231,7 @@ declare class RecordingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RecordingInstance) => any): void; + remove(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -260,7 +260,7 @@ declare class RecordingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RecordingInstance) => any): void; + fetch(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; groupingSids: object; links: string; offset: number; @@ -269,7 +269,7 @@ declare class RecordingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RecordingInstance) => any): void; + remove(callback?: (error: Error | null, items: RecordingInstance) => any): Promise; sid: string; size: number; sourceSid: string; diff --git a/lib/rest/video/v1/recordingSettings.d.ts b/lib/rest/video/v1/recordingSettings.d.ts index a46086b325..838dcc18e3 100644 --- a/lib/rest/video/v1/recordingSettings.d.ts +++ b/lib/rest/video/v1/recordingSettings.d.ts @@ -130,7 +130,7 @@ declare class RecordingSettingsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - create(opts: RecordingSettingsInstanceCreateOptions, callback?: (error: Error | null, items: RecordingSettingsInstance) => any): void; + create(opts: RecordingSettingsInstanceCreateOptions, callback?: (error: Error | null, items: RecordingSettingsInstance) => any): Promise; encryptionEnabled: boolean; encryptionKeySid: string; /** @@ -138,7 +138,7 @@ declare class RecordingSettingsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RecordingSettingsInstance) => any): void; + fetch(callback?: (error: Error | null, items: RecordingSettingsInstance) => any): Promise; friendlyName: string; /** * Provide a user-friendly representation diff --git a/lib/rest/video/v1/room.d.ts b/lib/rest/video/v1/room.d.ts index aec267ab21..39c33033bd 100644 --- a/lib/rest/video/v1/room.d.ts +++ b/lib/rest/video/v1/room.d.ts @@ -298,7 +298,7 @@ declare class RoomInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RoomInstance) => any): void; + fetch(callback?: (error: Error | null, items: RoomInstance) => any): Promise; links: string; maxParticipants: number; mediaRegion: string; @@ -327,7 +327,7 @@ declare class RoomInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts: RoomInstanceUpdateOptions, callback?: (error: Error | null, items: RoomInstance) => any): void; + update(opts: RoomInstanceUpdateOptions, callback?: (error: Error | null, items: RoomInstance) => any): Promise; url: string; videoCodecs: RoomVideoCodec[]; } diff --git a/lib/rest/video/v1/room/recording.d.ts b/lib/rest/video/v1/room/recording.d.ts index ebcdfed6ae..0bb652b903 100644 --- a/lib/rest/video/v1/room/recording.d.ts +++ b/lib/rest/video/v1/room/recording.d.ts @@ -223,7 +223,7 @@ declare class RoomRecordingContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RoomRecordingInstance) => any): void; + remove(callback?: (error: Error | null, items: RoomRecordingInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -253,7 +253,7 @@ declare class RoomRecordingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RoomRecordingInstance) => any): void; + fetch(callback?: (error: Error | null, items: RoomRecordingInstance) => any): Promise; groupingSids: object; links: string; offset: number; @@ -262,7 +262,7 @@ declare class RoomRecordingInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RoomRecordingInstance) => any): void; + remove(callback?: (error: Error | null, items: RoomRecordingInstance) => any): Promise; roomSid: string; sid: string; size: number; diff --git a/lib/rest/video/v1/room/roomParticipant.d.ts b/lib/rest/video/v1/room/roomParticipant.d.ts index c7d02fdd4d..6cd3629aaa 100644 --- a/lib/rest/video/v1/room/roomParticipant.d.ts +++ b/lib/rest/video/v1/room/roomParticipant.d.ts @@ -262,7 +262,7 @@ declare class ParticipantInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: ParticipantInstance) => any): void; + fetch(callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; identity: string; links: string; /** @@ -291,7 +291,7 @@ declare class ParticipantInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: ParticipantInstanceUpdateOptions, callback?: (error: Error | null, items: ParticipantInstance) => any): void; + update(opts?: ParticipantInstanceUpdateOptions, callback?: (error: Error | null, items: ParticipantInstance) => any): Promise; url: string; } diff --git a/lib/rest/video/v1/room/roomParticipant/roomParticipantPublishedTrack.d.ts b/lib/rest/video/v1/room/roomParticipant/roomParticipantPublishedTrack.d.ts index 51246ae14c..bc4bd9e432 100644 --- a/lib/rest/video/v1/room/roomParticipant/roomParticipantPublishedTrack.d.ts +++ b/lib/rest/video/v1/room/roomParticipant/roomParticipantPublishedTrack.d.ts @@ -211,7 +211,7 @@ declare class PublishedTrackInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: PublishedTrackInstance) => any): void; + fetch(callback?: (error: Error | null, items: PublishedTrackInstance) => any): Promise; kind: PublishedTrackKind; name: string; participantSid: string; diff --git a/lib/rest/video/v1/room/roomParticipant/roomParticipantSubscribedTrack.d.ts b/lib/rest/video/v1/room/roomParticipant/roomParticipantSubscribedTrack.d.ts index c09b3928af..5e5e450985 100644 --- a/lib/rest/video/v1/room/roomParticipant/roomParticipantSubscribedTrack.d.ts +++ b/lib/rest/video/v1/room/roomParticipant/roomParticipantSubscribedTrack.d.ts @@ -212,7 +212,7 @@ declare class SubscribedTrackInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SubscribedTrackInstance) => any): void; + fetch(callback?: (error: Error | null, items: SubscribedTrackInstance) => any): Promise; kind: SubscribedTrackKind; name: string; participantSid: string; diff --git a/lib/rest/voice/v1/dialingPermissions/country.d.ts b/lib/rest/voice/v1/dialingPermissions/country.d.ts index f6572d2541..89e47f4639 100644 --- a/lib/rest/voice/v1/dialingPermissions/country.d.ts +++ b/lib/rest/voice/v1/dialingPermissions/country.d.ts @@ -252,7 +252,7 @@ declare class CountryInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CountryInstance) => any): void; + fetch(callback?: (error: Error | null, items: CountryInstance) => any): Promise; highRiskSpecialNumbersEnabled: boolean; highRiskTollfraudNumbersEnabled: boolean; /** diff --git a/lib/rest/voice/v1/dialingPermissions/settings.d.ts b/lib/rest/voice/v1/dialingPermissions/settings.d.ts index f0f7d6024e..5f4e1760a7 100644 --- a/lib/rest/voice/v1/dialingPermissions/settings.d.ts +++ b/lib/rest/voice/v1/dialingPermissions/settings.d.ts @@ -110,7 +110,7 @@ declare class SettingsInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SettingsInstance) => any): void; + fetch(callback?: (error: Error | null, items: SettingsInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -121,7 +121,7 @@ declare class SettingsInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SettingsInstanceUpdateOptions, callback?: (error: Error | null, items: SettingsInstance) => any): void; + update(opts?: SettingsInstanceUpdateOptions, callback?: (error: Error | null, items: SettingsInstance) => any): Promise; url: string; } diff --git a/lib/rest/wireless/v1/command.d.ts b/lib/rest/wireless/v1/command.d.ts index 1a907ddc29..bbea1ec834 100644 --- a/lib/rest/wireless/v1/command.d.ts +++ b/lib/rest/wireless/v1/command.d.ts @@ -244,7 +244,7 @@ declare class CommandContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CommandInstance) => any): void; + remove(callback?: (error: Error | null, items: CommandInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -275,13 +275,13 @@ declare class CommandInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: CommandInstance) => any): void; + fetch(callback?: (error: Error | null, items: CommandInstance) => any): Promise; /** * remove a CommandInstance * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: CommandInstance) => any): void; + remove(callback?: (error: Error | null, items: CommandInstance) => any): Promise; sid: string; simSid: string; status: CommandStatus; diff --git a/lib/rest/wireless/v1/ratePlan.d.ts b/lib/rest/wireless/v1/ratePlan.d.ts index 49050896d3..d149161251 100644 --- a/lib/rest/wireless/v1/ratePlan.d.ts +++ b/lib/rest/wireless/v1/ratePlan.d.ts @@ -235,7 +235,7 @@ declare class RatePlanContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RatePlanInstance) => any): void; + remove(callback?: (error: Error | null, items: RatePlanInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -272,7 +272,7 @@ declare class RatePlanInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: RatePlanInstance) => any): void; + fetch(callback?: (error: Error | null, items: RatePlanInstance) => any): Promise; friendlyName: string; internationalRoaming: string[]; internationalRoamingDataLimit: number; @@ -284,7 +284,7 @@ declare class RatePlanInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: RatePlanInstance) => any): void; + remove(callback?: (error: Error | null, items: RatePlanInstance) => any): Promise; sid: string; /** * Provide a user-friendly representation @@ -297,7 +297,7 @@ declare class RatePlanInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: RatePlanInstanceUpdateOptions, callback?: (error: Error | null, items: RatePlanInstance) => any): void; + update(opts?: RatePlanInstanceUpdateOptions, callback?: (error: Error | null, items: RatePlanInstance) => any): Promise; url: string; voiceEnabled: boolean; } diff --git a/lib/rest/wireless/v1/sim.d.ts b/lib/rest/wireless/v1/sim.d.ts index eff652a782..4abeecb51c 100644 --- a/lib/rest/wireless/v1/sim.d.ts +++ b/lib/rest/wireless/v1/sim.d.ts @@ -275,7 +275,7 @@ declare class SimContext { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SimInstance) => any): void; + remove(callback?: (error: Error | null, items: SimInstance) => any): Promise; /** * Provide a user-friendly representation */ @@ -317,7 +317,7 @@ declare class SimInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - fetch(callback?: (error: Error | null, items: SimInstance) => any): void; + fetch(callback?: (error: Error | null, items: SimInstance) => any): Promise; friendlyName: string; iccid: string; ipAddress: string; @@ -328,7 +328,7 @@ declare class SimInstance extends SerializableClass { * * @param callback - Callback to handle processed record */ - remove(callback?: (error: Error | null, items: SimInstance) => any): void; + remove(callback?: (error: Error | null, items: SimInstance) => any): Promise; resetStatus: SimResetStatus; sid: string; smsFallbackMethod: string; @@ -347,7 +347,7 @@ declare class SimInstance extends SerializableClass { * @param opts - Options for request * @param callback - Callback to handle processed record */ - update(opts?: SimInstanceUpdateOptions, callback?: (error: Error | null, items: SimInstance) => any): void; + update(opts?: SimInstanceUpdateOptions, callback?: (error: Error | null, items: SimInstance) => any): Promise; url: string; /** * Access the usageRecords