Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Use Record type #873

Merged
merged 1 commit into from
Jan 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ interface AccountResource {
owner_account_sid: string;
sid: string;
status: AccountStatus;
subresource_uris: object;
subresource_uris: Record<string, string>;
type: AccountType;
uri: string;
}
Expand Down Expand Up @@ -529,7 +529,7 @@ export class AccountInstance {
/**
* Account Instance Subresources
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
type: AccountType;
/**
* The URI for this resource, relative to `https://api.twilio.com`
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/availablePhoneNumberCountry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ interface AvailablePhoneNumberCountryResource {
country: string;
uri: string;
beta: boolean;
subresource_uris: object;
subresource_uris: Record<string, string>;
}

export class AvailablePhoneNumberCountryInstance {
Expand Down Expand Up @@ -306,7 +306,7 @@ export class AvailablePhoneNumberCountryInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;

private get _proxy(): AvailablePhoneNumberCountryContext {
this._context =
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ interface CallResource {
queue_time: string;
trunk_sid: string;
uri: string;
subresource_uris: object;
subresource_uris: Record<string, string>;
}

export class CallInstance {
Expand Down Expand Up @@ -721,7 +721,7 @@ export class CallInstance {
/**
* A list of related subresources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;

private get _proxy(): CallContext {
this._context =
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/conference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ interface ConferenceResource {
sid: string;
status: ConferenceStatus;
uri: string;
subresource_uris: object;
subresource_uris: Record<string, string>;
reason_conference_ended: ConferenceReasonConferenceEnded;
call_sid_ending_conference: string;
}
Expand Down Expand Up @@ -392,7 +392,7 @@ export class ConferenceInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
reasonConferenceEnded: ConferenceReasonConferenceEnded;
/**
* The call SID that caused the conference to end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ interface AssignedAddOnResource {
date_created: Date;
date_updated: Date;
uri: string;
subresource_uris: object;
subresource_uris: Record<string, string>;
}

export class AssignedAddOnInstance {
Expand Down Expand Up @@ -288,7 +288,7 @@ export class AssignedAddOnInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;

private get _proxy(): AssignedAddOnContext {
this._context =
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ interface MessageResource {
error_code: number;
price_unit: string;
api_version: string;
subresource_uris: object;
subresource_uris: Record<string, string>;
}

export class MessageInstance {
Expand Down Expand Up @@ -518,7 +518,7 @@ export class MessageInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;

private get _proxy(): MessageContext {
this._context =
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/recording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ interface RecordingResource {
error_code: number;
uri: string;
encryption_details: any;
subresource_uris: object;
subresource_uris: Record<string, string>;
media_url: string;
}

Expand Down Expand Up @@ -412,7 +412,7 @@ export class RecordingInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URL of the media file.
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/recording/addOnResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ interface AddOnResultResource {
date_updated: Date;
date_completed: Date;
reference_sid: string;
subresource_uris: object;
subresource_uris: Record<string, string>;
}

export class AddOnResultInstance {
Expand Down Expand Up @@ -282,7 +282,7 @@ export class AddOnResultInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;

private get _proxy(): AddOnResultContext {
this._context =
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/recording/addOnResult/payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ interface PayloadResource {
date_created: Date;
date_updated: Date;
reference_sid: string;
subresource_uris: object;
subresource_uris: Record<string, string>;
}

export class PayloadInstance {
Expand Down Expand Up @@ -277,7 +277,7 @@ export class PayloadInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;

private get _proxy(): PayloadContext {
this._context =
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/sip/credentialList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ interface CredentialListResource {
date_updated: Date;
friendly_name: string;
sid: string;
subresource_uris: object;
subresource_uris: Record<string, string>;
uri: string;
}

Expand Down Expand Up @@ -321,7 +321,7 @@ export class CredentialListInstance {
/**
* The list of credentials associated with this credential list.
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URI for this resource
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/sip/domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ interface DomainResource {
voice_status_callback_method: DomainVoiceStatusCallbackMethod;
voice_status_callback_url: string;
voice_url: string;
subresource_uris: object;
subresource_uris: Record<string, string>;
sip_registration: boolean;
emergency_calling_enabled: boolean;
secure: boolean;
Expand Down Expand Up @@ -516,7 +516,7 @@ export class DomainInstance {
/**
* A list mapping resources associated with the SIP Domain resource
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* Whether SIP registration is allowed
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/sip/ipAccessControlList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ interface IpAccessControlListResource {
friendly_name: string;
date_created: Date;
date_updated: Date;
subresource_uris: object;
subresource_uris: Record<string, string>;
uri: string;
}

Expand Down Expand Up @@ -323,7 +323,7 @@ export class IpAccessControlListInstance {
/**
* The IP addresses associated with this resource.
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URI for this resource
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/usage/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ interface RecordResource {
price: number;
price_unit: string;
start_date: Date;
subresource_uris: object;
subresource_uris: Record<string, string>;
uri: string;
usage: string;
usage_unit: string;
Expand Down Expand Up @@ -717,7 +717,7 @@ export class RecordInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URI of the resource, relative to `https://api.twilio.com`
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/usage/record/allTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ interface AllTimeResource {
price: number;
price_unit: string;
start_date: Date;
subresource_uris: object;
subresource_uris: Record<string, string>;
uri: string;
usage: string;
usage_unit: string;
Expand Down Expand Up @@ -597,7 +597,7 @@ export class AllTimeInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URI of the resource, relative to `https://api.twilio.com`
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/usage/record/daily.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ interface DailyResource {
price: number;
price_unit: string;
start_date: Date;
subresource_uris: object;
subresource_uris: Record<string, string>;
uri: string;
usage: string;
usage_unit: string;
Expand Down Expand Up @@ -595,7 +595,7 @@ export class DailyInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URI of the resource, relative to `https://api.twilio.com`
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/usage/record/lastMonth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ interface LastMonthResource {
price: number;
price_unit: string;
start_date: Date;
subresource_uris: object;
subresource_uris: Record<string, string>;
uri: string;
usage: string;
usage_unit: string;
Expand Down Expand Up @@ -597,7 +597,7 @@ export class LastMonthInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URI of the resource, relative to `https://api.twilio.com`
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/usage/record/monthly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ interface MonthlyResource {
price: number;
price_unit: string;
start_date: Date;
subresource_uris: object;
subresource_uris: Record<string, string>;
uri: string;
usage: string;
usage_unit: string;
Expand Down Expand Up @@ -597,7 +597,7 @@ export class MonthlyInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URI of the resource, relative to `https://api.twilio.com`
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/usage/record/thisMonth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ interface ThisMonthResource {
price: number;
price_unit: string;
start_date: Date;
subresource_uris: object;
subresource_uris: Record<string, string>;
uri: string;
usage: string;
usage_unit: string;
Expand Down Expand Up @@ -597,7 +597,7 @@ export class ThisMonthInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URI of the resource, relative to `https://api.twilio.com`
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/usage/record/today.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ interface TodayResource {
price: number;
price_unit: string;
start_date: Date;
subresource_uris: object;
subresource_uris: Record<string, string>;
uri: string;
usage: string;
usage_unit: string;
Expand Down Expand Up @@ -595,7 +595,7 @@ export class TodayInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URI of the resource, relative to `https://api.twilio.com`
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/usage/record/yearly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ interface YearlyResource {
price: number;
price_unit: string;
start_date: Date;
subresource_uris: object;
subresource_uris: Record<string, string>;
uri: string;
usage: string;
usage_unit: string;
Expand Down Expand Up @@ -596,7 +596,7 @@ export class YearlyInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URI of the resource, relative to `https://api.twilio.com`
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/api/v2010/account/usage/record/yesterday.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ interface YesterdayResource {
price: number;
price_unit: string;
start_date: Date;
subresource_uris: object;
subresource_uris: Record<string, string>;
uri: string;
usage: string;
usage_unit: string;
Expand Down Expand Up @@ -597,7 +597,7 @@ export class YesterdayInstance {
/**
* A list of related resources identified by their relative URIs
*/
subresourceUris: object;
subresourceUris: Record<string, string>;
/**
* The URI of the resource, relative to `https://api.twilio.com`
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/autopilot/v1/assistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ interface AssistantResource {
date_updated: Date;
friendly_name: string;
latest_model_build_sid: string;
links: object;
links: Record<string, string>;
log_queries: boolean;
development_stage: string;
needs_model_build: boolean;
Expand Down Expand Up @@ -425,7 +425,7 @@ export class AssistantInstance {
/**
* A list of the URLs of the Assistant\'s related resources
*/
links: object;
links: Record<string, string>;
/**
* Whether queries should be logged and kept after training
*/
Expand Down
Loading