Skip to content

Commit

Permalink
feat!: Merge branch 'main' into ''9.0.0-rc'
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Mar 7, 2024
2 parents eb8b092 + 0a797ba commit b172c44
Show file tree
Hide file tree
Showing 21 changed files with 771 additions and 938 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -1,3 +1,6 @@
### Dot files ###
.*

### Logs ###
logs
*.log
Expand All @@ -13,6 +16,9 @@ pids
### NPM modules ###
node_modules

### Spec and test coverage ###
spec

### Test coverage ###
coverage

Expand Down
28 changes: 0 additions & 28 deletions .npmignore

This file was deleted.

120 changes: 120 additions & 0 deletions CHANGES.md
@@ -1,6 +1,126 @@
twilio-node changelog
=====================

[2024-02-27] Version 4.23.0
---------------------------
**Library - Chore**
- [PR #1005](https://github.com/twilio/twilio-node/pull/1005): cluster tests enabled. Thanks to [@sbansla](https://github.com/sbansla)!

**Api**
- remove feedback and feedback summary from call resource

**Flex**
- Adding `routing_properties` to Interactions Channels Participant

**Lookups**
- Add new `line_status` package to the lookup response
- Remove `live_activity` package from the lookup response **(breaking change)**

**Messaging**
- Add tollfree multiple rejection reasons response array

**Trusthub**
- Add ENUM for businessRegistrationAuthority in compliance_registration. **(breaking change)**
- Add new field in isIsvEmbed in compliance_registration.
- Add additional optional fields in compliance_registration for Individual business type.

**Twiml**
- Add support for new Amazon Polly and Google voices (Q1 2024) for `Say` verb


[2024-02-09] Version 4.22.0
---------------------------
**Library - Chore**
- [PR #1002](https://github.com/twilio/twilio-node/pull/1002): disable cluster test. Thanks to [@sbansla](https://github.com/sbansla)!
- [PR #1001](https://github.com/twilio/twilio-node/pull/1001): Remove Media V1. Thanks to [@califlower](https://github.com/califlower)!
- [PR #997](https://github.com/twilio/twilio-node/pull/997): removing oauth and autopilot references. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Api**
- Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
- Update documentation to reflect RiskCheck GA
- Added optional parameter `CallToken` for create participant api

**Events**
- Marked as GA

**Flex**
- Adding `flex_instance_sid` to Flex Configuration
- Adding `provisioning_status` for Email Manager
- Adding `offline_config` to Flex Configuration

**Insights**
- add flag to restrict access to unapid customers
- decommission voice-qualitystats-endpoint role

**Intelligence**
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.

**Lookups**
- Remove `carrier` field from `sms_pumping_risk` and leave `carrier_risk_category` **(breaking change)**
- Remove carrier information from call forwarding package **(breaking change)**

**Messaging**
- Add update instance endpoints to us_app_to_person api
- Add tollfree edit_allowed and edit_reason fields
- Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation
- Add DELETE support to Tollfree Verification resource

**Numbers**
- Add Get Port In request api

**Push**
- Migrated to new Push API V4 with Resilient Notification Delivery.

**Serverless**
- Add node18 as a valid Build runtime

**Taskrouter**
- Add `jitter_buffer_size` param in update reservation
- Add container attribute to task_queue_bulk_real_time_statistics endpoint
- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint

**Trusthub**
- Add optional field NotificationEmail to the POST /v1/ComplianceInquiries/Customers/Initialize API
- Add additional optional fields in compliance_tollfree_inquiry.json
- Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
- Add new optional field notification_email to compliance_tollfree_inquiry.json

**Verify**
- `Tags` property added again to Public Docs **(breaking change)**
- Remove `Tags` from Public Docs **(breaking change)**
- Add `VerifyEventSubscriptionEnabled` parameter to service create and update endpoints.
- Add `Tags` optional parameter on Verification creation.
- Update Verify TOTP maturity to GA.


[2024-01-25] Version 4.21.0
---------------------------
**Library - Fix**
- [PR #996](https://github.com/twilio/twilio-node/pull/996): Update Dockerfile with node version which has security support as of now. Thanks to [@AsabuHere](https://github.com/AsabuHere)!

**Library - Chore**
- [PR #994](https://github.com/twilio/twilio-node/pull/994): removed .npmignore. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
- [PR #995](https://github.com/twilio/twilio-node/pull/995): removed unnecessary badge and added relevant badges. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Oauth**
- updated openid discovery endpoint uri **(breaking change)**
- Added device code authorization endpoint
- added oauth JWKS endpoint
- Get userinfo resource
- OpenID discovery resource
- Add new API for token endpoint


[2024-01-14] Version 4.20.1
---------------------------
**Library - Chore**
- [PR #985](https://github.com/twilio/twilio-node/pull/985): Removing tests for Autopilot and Understand Endpoints - product EoL. Thanks to [@miriamela](https://github.com/miriamela)!
- [PR #989](https://github.com/twilio/twilio-node/pull/989): add lts version. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Push**
- Migrated to new Push API V4 with Resilient Notification Delivery.


[2023-12-14] Version 4.20.0
---------------------------
**Api**
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
@@ -1,4 +1,4 @@
FROM node:14
FROM node:20

RUN mkdir /twilio
WORKDIR /twilio
Expand All @@ -10,7 +10,7 @@ COPY spec ./spec
COPY examples ./examples
COPY index.* package.json babel.config.js tsconfig.json ./

RUN npm config set unsafe-perm true # Needed to run prepublish as root.
RUN npm install --unsafe-perm true # Needed to run prepublish as root.

RUN npm install . --include=dev
RUN npm install -g .
17 changes: 13 additions & 4 deletions README.md
@@ -1,9 +1,9 @@
# twilio-node

[![NPM](https://nodei.co/npm/twilio.png?downloads=true&stars=true)](https://nodei.co/npm/twilio/)

[![Tests](https://github.com/twilio/twilio-node/actions/workflows/test-and-deploy.yml/badge.svg)](https://github.com/twilio/twilio-node/actions/workflows/test-and-deploy.yml)
[![Learn with TwilioQuest](https://img.shields.io/static/v1?label=TwilioQuest&message=Learn%20to%20contribute%21&color=F22F46&labelColor=1f243c&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAASFBMVEUAAAAZGRkcHBwjIyMoKCgAAABgYGBoaGiAgICMjIyzs7PJycnMzMzNzc3UoBfd3d3m5ubqrhfrMEDu7u739/f4vSb/3AD///9tbdyEAAAABXRSTlMAAAAAAMJrBrEAAAKoSURBVHgB7ZrRcuI6EESdyxXGYoNFvMD//+l2bSszRgyUYpFAsXOeiJGmj4NkuWx1Qeh+Ekl9DgEXOBwOx+Px5xyQhDykfgq4wG63MxxaR4ddIkg6Ul3g84vCIcjPBA5gmUMeXESrlukuoK33+33uID8TWeLAdOWsKpJYzwVMB7bOzYSGOciyUlXSn0/ABXTosJ1M1SbypZ4O4MbZuIDMU02PMbauhhHMHXbmebmALIiEbbbbbUrpF1gwE9kFfRNAJaP+FQEXCCTGyJ4ngDrjOFo3jEL5JdqjF/pueR4cCeCGgAtwmuRS6gDwaRiGvu+DMFwSBLTE3+jF8JyuV1okPZ+AC4hDFhCHyHQjdjPHUKFDlHSJkHQXMB3KpSwXNGJPcwwTdZiXlRN0gSp0zpWxNtM0beYE0nRH6QIbO7rawwXaBYz0j78gxjokDuv12gVeUuBD0MDi0OQCLvDaAho4juP1Q/jkAncXqIcCfd+7gAu4QLMACCLxpRsSuQh0igu0C9Svhi7weAGZg50L3IE3cai4IfkNZAC8dfdhsUD3CgKBVC9JE5ABAFzg4QL/taYPAAWrHdYcgfLaIgAXWJ7OV38n1LEF8tt2TH29E+QAoDoO5Ve/LtCQDmKM9kPbvCEBApK+IXzbcSJ0cIGF6e8gpcRhUDogWZ8JnaWjPXc/fNnBBUKRngiHgTUSivSzDRDgHZQOLvBQgf8rRt+VdBUUhwkU6VpJ+xcOwQUqZr+mR0kvBUgv6cB4+37hQAkXqE8PwGisGhJtN4xAHMzrsgvI7rccXqSvKh6jltGlrOHA3Xk1At3LC4QiPdX9/0ndHpGVvTjR4bZA1ypAKgVcwE5vx74ulwIugDt8e/X7JgfkucBMIAr26ndnB4UCLnDOqvteQsHlgX9N4A+c4cW3DXSPbwAAAABJRU5ErkJggg==)](https://twil.io/learn-open-source)
[![][test-workflow-image]][test-workflow-url]
[![][npm-version-image]][npm-url]
[![][npm-install-size-image]][npm-install-size-url]
[![][npm-downloads-image]][npm-downloads-url]

## Documentation

Expand Down Expand Up @@ -294,3 +294,12 @@ npm run test:javascript -- -m .\*client.\*

[apidocs]: https://www.twilio.com/docs/api
[libdocs]: https://twilio.github.io/twilio-node

[test-workflow-image]: https://github.com/twilio/twilio-node/actions/workflows/test-and-deploy.yml/badge.svg
[test-workflow-url]: https://github.com/twilio/twilio-node/actions/workflows/test-and-deploy.yml
[npm-downloads-image]: https://img.shields.io/npm/dm/twilio.svg
[npm-downloads-url]: https://npmcharts.com/compare/twilio?minimal=true
[npm-install-size-image]: https://badgen.net/packagephobia/install/twilio
[npm-install-size-url]: https://packagephobia.com/result?p=twilio
[npm-url]: https://npmjs.org/package/twilio
[npm-version-image]: https://img.shields.io/npm/v/twilio.svg
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "twilio",
"description": "A Twilio helper library",
"version": "5.0.0-rc.1",
"version": "4.23.0",
"author": "API Team <api@twilio.com>",
"contributors": [
{
Expand Down
35 changes: 1 addition & 34 deletions src/rest/Media.ts
@@ -1,38 +1,5 @@
import { MediaProcessorListInstance } from "./media/v1/mediaProcessor";
import { MediaRecordingListInstance } from "./media/v1/mediaRecording";
import { PlayerStreamerListInstance } from "./media/v1/playerStreamer";
import MediaBase from "./MediaBase";

class Media extends MediaBase {
/**
* @deprecated - Use v1.mediaProcessor instead
*/
get mediaProcessor(): MediaProcessorListInstance {
console.warn(
"mediaProcessor is deprecated. Use v1.mediaProcessor instead."
);
return this.v1.mediaProcessor;
}

/**
* @deprecated - Use v1.mediaRecording instead
*/
get mediaRecording(): MediaRecordingListInstance {
console.warn(
"mediaRecording is deprecated. Use v1.mediaRecording instead."
);
return this.v1.mediaRecording;
}

/**
* @deprecated - Use v1.playerStreamer instead
*/
get playerStreamer(): PlayerStreamerListInstance {
console.warn(
"playerStreamer is deprecated. Use v1.playerStreamer instead."
);
return this.v1.playerStreamer;
}
}
class Media extends MediaBase {}

export = Media;
37 changes: 0 additions & 37 deletions src/rest/api/v2010/account/call.ts
Expand Up @@ -20,8 +20,6 @@ const deserialize = require("../../../../base/deserialize");
const serialize = require("../../../../base/serialize");
import { isValidPathParam } from "../../../../base/utility";
import { EventListInstance } from "./call/event";
import { FeedbackListInstance } from "./call/feedback";
import { FeedbackSummaryListInstance } from "./call/feedbackSummary";
import { NotificationListInstance } from "./call/notification";
import { PaymentListInstance } from "./call/payment";
import { RecordingListInstance } from "./call/recording";
Expand Down Expand Up @@ -216,7 +214,6 @@ export interface CallListInstancePageOptions {

export interface CallContext {
events: EventListInstance;
feedback: FeedbackListInstance;
notifications: NotificationListInstance;
payments: PaymentListInstance;
recordings: RecordingListInstance;
Expand Down Expand Up @@ -287,7 +284,6 @@ export class CallContextImpl implements CallContext {
protected _uri: string;

protected _events?: EventListInstance;
protected _feedback?: FeedbackListInstance;
protected _notifications?: NotificationListInstance;
protected _payments?: PaymentListInstance;
protected _recordings?: RecordingListInstance;
Expand Down Expand Up @@ -320,17 +316,6 @@ export class CallContextImpl implements CallContext {
return this._events;
}

get feedback(): FeedbackListInstance {
this._feedback =
this._feedback ||
FeedbackListInstance(
this._version,
this._solution.accountSid,
this._solution.sid
);
return this._feedback;
}

get notifications(): NotificationListInstance {
this._notifications =
this._notifications ||
Expand Down Expand Up @@ -775,13 +760,6 @@ export class CallInstance {
return this._proxy.events;
}

/**
* Access the feedback.
*/
feedback(): FeedbackListInstance {
return this._proxy.feedback;
}

/**
* Access the notifications.
*/
Expand Down Expand Up @@ -884,9 +862,6 @@ export interface CallListInstance {
(sid: string): CallContext;
get(sid: string): CallContext;

_feedbackSummaries?: FeedbackSummaryListInstance;
feedbackSummaries: FeedbackSummaryListInstance;

/**
* Create a CallInstance
*
Expand Down Expand Up @@ -994,18 +969,6 @@ export function CallListInstance(
instance._solution = { accountSid };
instance._uri = `/Accounts/${accountSid}/Calls.json`;

Object.defineProperty(instance, "feedbackSummaries", {
get: function feedbackSummaries() {
if (!instance._feedbackSummaries) {
instance._feedbackSummaries = FeedbackSummaryListInstance(
instance._version,
instance._solution.accountSid
);
}
return instance._feedbackSummaries;
},
});

instance.create = function create(
params: CallListInstanceCreateOptions,
callback?: (error: Error | null, items: CallInstance) => any
Expand Down

0 comments on commit b172c44

Please sign in to comment.