From 71c1d0088e73e9955eecf7ce47f23c5229bab189 Mon Sep 17 00:00:00 2001 From: Twilio Date: Wed, 22 Sep 2021 18:48:16 +0000 Subject: [PATCH] [Librarian] Regenerated @ ae8fd19a8acd5fda03e9e23a40e1cf739255de74 --- CHANGES.md | 14 +++ lib/rest/events/v1/sink.d.ts | 2 +- lib/rest/messaging/v1/brandRegistration.d.ts | 14 ++- lib/rest/messaging/v1/brandRegistration.js | 12 +- spec/integration/rest/events/v1/sink.spec.js | 31 +++++ .../messaging/v1/brandRegistration.spec.js | 24 ++++ .../v1/service/usAppToPersonUsecase.spec.js | 108 ++++++++++++------ 7 files changed, 166 insertions(+), 39 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 949839339f..a5aaf0fade 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,20 @@ twilio-node changelog ===================== +[2021-09-22] Version 3.68.0 +--------------------------- +**Library - Feature** +- [PR #692](https://github.com/twilio/twilio-node/pull/692): add API response headers to the returned response. Thanks to [@childish-sambino](https://github.com/childish-sambino)! + +**Events** +- Add segment sink + +**Messaging** +- Add post_approval_required attribute in GET us_app_to_person_usecase api response +- Add Identity Status, Russell 3000, Tax Exempt Status and Should Skip SecVet fields for Brand Registrations +- Add Should Skip Secondary Vetting optional flag parameter to create Brand API + + [2021-09-08] Version 3.67.2 --------------------------- **Api** diff --git a/lib/rest/events/v1/sink.d.ts b/lib/rest/events/v1/sink.d.ts index 30a706a093..5e49ecbbd1 100644 --- a/lib/rest/events/v1/sink.d.ts +++ b/lib/rest/events/v1/sink.d.ts @@ -14,7 +14,7 @@ import { SinkTestListInstance } from './sink/sinkTest'; import { SinkValidateList } from './sink/sinkValidate'; import { SinkValidateListInstance } from './sink/sinkValidate'; -type SinkSinkType = 'kinesis'|'webhook'; +type SinkSinkType = 'kinesis'|'webhook'|'segment'; type SinkStatus = 'initialized'|'validating'|'active'|'failed'; diff --git a/lib/rest/messaging/v1/brandRegistration.d.ts b/lib/rest/messaging/v1/brandRegistration.d.ts index bfc8b705b9..a247a80ee3 100644 --- a/lib/rest/messaging/v1/brandRegistration.d.ts +++ b/lib/rest/messaging/v1/brandRegistration.d.ts @@ -10,6 +10,8 @@ import Response = require('../../../http/response'); import V1 = require('../V1'); import { SerializableClass } from '../../../interfaces'; +type BrandRegistrationIdentityStatus = 'SELF_DECLARED'|'UNVERIFIED'|'VERIFIED'|'VETTED_VERIFIED'; + type BrandRegistrationStatus = 'PENDING'|'APPROVED'|'FAILED'; /** @@ -149,12 +151,14 @@ interface BrandRegistrationListInstance { * @property brandType - Type of brand being created. One of: "STANDARD", "STARTER". * @property customerProfileBundleSid - Customer Profile Bundle Sid * @property mock - A boolean that specifies whether brand should be a mock or not. If true, brand will be registered as a mock brand. Defaults to false if no value is provided. + * @property skipAutomaticSecVet - Skip Automatic Secondary Vetting */ interface BrandRegistrationListInstanceCreateOptions { a2PProfileBundleSid: string; brandType?: string; customerProfileBundleSid: string; mock?: boolean; + skipAutomaticSecVet?: boolean; } /** @@ -226,9 +230,13 @@ interface BrandRegistrationResource { date_created: Date; date_updated: Date; failure_reason: string; + identity_status: BrandRegistrationIdentityStatus; mock: boolean; + russell_3000: boolean; sid: string; + skip_automatic_sec_vet: boolean; status: BrandRegistrationStatus; + tax_exempt_status: string; tcr_id: string; url: string; } @@ -290,9 +298,13 @@ declare class BrandRegistrationInstance extends SerializableClass { * @param callback - Callback to handle processed record */ fetch(callback?: (error: Error | null, items: BrandRegistrationInstance) => any): Promise; + identityStatus: BrandRegistrationIdentityStatus; mock: boolean; + russell3000: boolean; sid: string; + skipAutomaticSecVet: boolean; status: BrandRegistrationStatus; + taxExemptStatus: string; tcrId: string; /** * Provide a user-friendly representation @@ -327,4 +339,4 @@ declare class BrandRegistrationPage extends Page