Skip to content
Open
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
8 changes: 4 additions & 4 deletions fern/apis/compatibility/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6216,7 +6216,7 @@ components:
anyOf:
- type: string
- type: 'null'
description: The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay. It ranges from about 1 to 4.5, the score for a call with no lost or late packets. Returned as a decimal string. Null if the call has no quality measurement.
description: The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay. It ranges from about 1 to 4.5. 4.5 is the best score, and a call that received no audio packets also scores 4.5. Returned as a decimal string. Null if the call has no quality measurement.
examples:
- '4.5'
sip_result_code:
Expand Down Expand Up @@ -6810,7 +6810,7 @@ components:
anyOf:
- type: string
- type: 'null'
description: The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay. It ranges from about 1 to 4.5, the score for a call with no lost or late packets. Returned as a decimal string. Null if the call has no quality measurement.
description: The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay. It ranges from about 1 to 4.5. 4.5 is the best score, and a call that received no audio packets also scores 4.5. Returned as a decimal string. Null if the call has no quality measurement.
examples:
- '4.5'
sip_result_code:
Expand Down Expand Up @@ -10093,7 +10093,7 @@ components:
format: double
description: |-
The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay.
It ranges from about 1 to 4.5, the score for a call with no lost or late packets.
It ranges from about 1 to 4.5. 4.5 is the best score, and a call that received no audio packets also scores 4.5.
Sent with up to two decimal places, such as `4.37`. A whole-number score is sent with one decimal place, such as `4.0`.
examples:
- 4.37
Expand Down Expand Up @@ -13774,7 +13774,7 @@ components:
format: double
description: |-
The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay.
It ranges from about 1 to 4.5, the score for a call with no lost or late packets.
It ranges from about 1 to 4.5. 4.5 is the best score, and a call that received no audio packets also scores 4.5.
Sent with up to two decimal places, such as `4.37`. A whole-number score is sent with one decimal place, such as `4.0`.
examples:
- 4.37
Expand Down
363 changes: 74 additions & 289 deletions fern/apis/signalwire-rest/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ You should respond to any callbacks with a `200 OK` or `204 No Content`, otherwi
The `StatusCallback` request contains the [Standard Request Parameters](#request-parameters) plus the following optional parameters. It also carries call-quality metrics such as packet counts, jitter, and round-trip time. The [Voice status callback reference](/docs/compatibility-api/rest/calls/webhooks/voice-status-callback) lists every parameter.

<ParamField path="AudioInMos" type="number" toc={true}>
The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay. It ranges from about 1 to 4.5, the score for a call with no lost or late packets. Sent with up to two decimal places, such as `4.37`.
The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay. It ranges from about 1 to 4.5. 4.5 is the best score, and a call that received no audio packets also scores 4.5. Sent with up to two decimal places, such as `4.37`.
</ParamField>

<ParamField path="CallbackSource" type="string" toc={true}>
Expand Down
2 changes: 1 addition & 1 deletion specs/compatibility-api/calls/models/core.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ model Call {
@example(null)
group_sid: string | null;

@doc("The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay. It ranges from about 1 to 4.5, the score for a call with no lost or late packets. Returned as a decimal string. Null if the call has no quality measurement.")
@doc("The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay. It ranges from about 1 to 4.5. 4.5 is the best score, and a call that received no audio packets also scores 4.5. Returned as a decimal string. Null if the call has no quality measurement.")
@example("4.5")
audio_in_mos: string | null;

Expand Down
2 changes: 1 addition & 1 deletion specs/compatibility-api/calls/models/webhooks.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ model VoiceStatusCallbackPayload {

@doc("""
The estimated Mean Opinion Score (MOS) for inbound audio quality, based on the share of incoming audio packets that arrived without loss or delay.
It ranges from about 1 to 4.5, the score for a call with no lost or late packets.
It ranges from about 1 to 4.5. 4.5 is the best score, and a call that received no audio packets also scores 4.5.
Sent with up to two decimal places, such as `4.37`. A whole-number score is sent with one decimal place, such as `4.0`.
""")
@example(4.37)
Expand Down
57 changes: 57 additions & 0 deletions specs/signalwire-rest/_globally_shared/log-list-query.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import "@typespec/http";

using TypeSpec.Http;

namespace SignalWireAPI;

/**
* Date filters and cursor paging shared by the five log lists: voice, message, fax, video,
* and conference logs. All five read the same contract, so they share one model. Fax, video,
* and conference logs also honour `include_deleted` and declare it on their own request
* models; voice and message logs ignore it, so it does not belong here.
*/
@doc("Date filters and paging for the log list endpoints.")
model LogListQuery {
@doc("Return logs created at or before this time. Accepts a date (`YYYY-MM-DD`), an ISO 8601 timestamp, or Unix time in seconds. A date is read as midnight UTC at the start of that day, so logs from that day are left out. A timestamp without `Z` or a UTC offset is read as UTC.")
@example("2026-11-08")
@query
created_before?: string;

@doc("Return logs created during this UTC day. Accepts the same formats as `created_before`. A timestamp selects the whole UTC day that contains it.")
@example("2026-11-02")
@query
created_on?: string;

@doc("Return logs created at or after this time. Accepts the same formats as `created_before`. A date is read as midnight UTC at the start of that day, so logs from that day are included.")
@example("2026-11-01")
@query
created_after?: string;

@doc("The page index, starting at `0`. Any value above `0` also requires `page_token`.")
@example(0)
@query
@minValue(0)
page_number?: int32 = 0;

@doc("The number of results per page. The default is `50` and the maximum is `1000`.")
@example(50)
@query
@minValue(1)
@maxValue(1000)
page_size?: int32 = 50;

@doc("The cursor for any page after the first. Take it from the `links.next` or `links.prev` URL of the previous response.")
@example("PAb7182dc2-00f3-40e4-a5ce-20f164b329df")
@query
page_token?: string;
}

/**
* Ordering, link, and history-window behaviour shared by the log list operations.
* Use in the operation's @doc, before the permissions block.
*/
alias logListBehavior = """
Results are sorted newest first. Each `links.next` URL carries your filters along with the `page_token` for the next page, so follow it as given.

Lists return at most one year of history: logs created before the start of the UTC day one year ago are never returned, and a `created_before`, `created_on`, or `created_after` value earlier than that returns `422` with the code `exceeds_history_logs_limit`.
""";
2 changes: 2 additions & 0 deletions specs/signalwire-rest/fax-api/logs/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ namespace SignalWireAPI.Fax.Logs {
@doc("""
Lists historical fax activity in the project for delivery review, usage reporting, and troubleshooting. The Fax Logs API is read-only; send or manage faxes through the Compatibility API's [Faxes](/docs/compatibility-api/rest/faxes/send-fax) operations instead.

${logListBehavior}

${tokenPermissions<"_Fax_">}
""")
list(...LogListRequest):
Expand Down
37 changes: 5 additions & 32 deletions specs/signalwire-rest/fax-api/logs/models/requests.tsp
Original file line number Diff line number Diff line change
@@ -1,44 +1,17 @@
import "@typespec/http";
import "../../../_globally_shared/log-list-query.tsp";

using TypeSpec.Http;

namespace SignalWireAPI.Fax;


@doc("Query parameters for listing fax logs.")
model LogListRequest {
@doc("Include logs for deleted activity.")
@example(false)
@query
include_deleted?: boolean = false;

@doc("Return logs for activity prior to this date.")
@example("2022-04-30")
@query
created_before?: string;

@doc("Return logs for activity on this date.")
@example("2022-04-30")
@query
created_on?: string;

@doc("Return logs for activity after this date.")
@example("2022-04-30")
@query
created_after?: string;

@doc("Specify the number of results to return on a single page. The default page size is `50` and the maximum is `1000`.")
@example(20)
@query
@minValue(1)
@maxValue(1000)
page_size?: int32 = 50;

@doc("Page number to retrieve. Requires `page_token` when greater than `0`.")
@example(0)
@query
@minValue(0)
page_number?: int32 = 0;

@doc("Token for cursor-based pagination. Required when `page_number` is greater than `0`. The token is returned in pagination links.")
@example("PAbff61159-faab-48b3-959a-3021a8f5beca")
@query
page_token?: string;
...LogListQuery;
}
2 changes: 2 additions & 0 deletions specs/signalwire-rest/logs-api/conferences/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace SignalWireAPI.Logs.Conferences {
@doc("""
Lists historical voice conferences and Video Room or Conference sessions across the project. Use it for usage reporting and auditing across conference types, not for live control. Use Compatibility [Conferences](/docs/compatibility-api/rest/conferences/list-all-conferences) to inspect or control live voice conferences, or [Video Conferences](/docs/apis/rest/video/video-conferences/list-video-conferences) to manage hosted video conference configurations.

${logListBehavior}

${tokenPermissions<"_Voice_ or _Video_">}
""")
list(...ConferenceLogListRequest):
Expand Down
38 changes: 5 additions & 33 deletions specs/signalwire-rest/logs-api/conferences/models/requests.tsp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import "@typespec/http";
import "../../../_globally_shared/log-list-query.tsp";

using TypeSpec.Http;

namespace SignalWireAPI.Logs;
Expand All @@ -8,38 +11,7 @@ model ConferenceLogListRequest {
@doc("Include logs for deleted activity.")
@example(false)
@query
include_deleted?: boolean;

@doc("Return logs for activity on this date. Accepts a date (YYYY-MM-DD) or ISO 8601 timestamp.")
@example("2025-03-11")
@query
created_on?: string;

@doc("Return logs for activity prior to this date. Accepts a date (YYYY-MM-DD) or ISO 8601 timestamp.")
@example("2025-03-12")
@query
created_before?: string;

@doc("Return logs for activity after this date. Accepts a date (YYYY-MM-DD) or ISO 8601 timestamp.")
@example("2025-03-10")
@query
created_after?: string;

@doc("The page number to retrieve (0-indexed).")
@example(0)
@query
@minValue(0)
page_number?: int32 = 0;
include_deleted?: boolean = false;

@doc("Specify the number of results to return on a single page. The default page size is `50` and the maximum is `1000`.")
@example(50)
@query
@minValue(1)
@maxValue(1000)
page_size?: int32 = 50;

@doc("Token for cursor-based pagination. Required when `page_number` > 0.")
@example("PAb3877c40da604998")
@query
page_token?: string;
...LogListQuery;
}
6 changes: 4 additions & 2 deletions specs/signalwire-rest/message-api/logs/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "@typespec/openapi";
import "../../types/status-codes/main.tsp";
import "../tags.tsp";
import "./models/core.tsp";
import "./models/requests.tsp";
import "../../_globally_shared/log-list-query.tsp";
import "./models/responses.tsp";
import "./models/errors.tsp";
import "../../../_shared/alias/token-permissions.tsp";
Expand All @@ -22,9 +22,11 @@ namespace SignalWireAPI.Message.Logs {
@doc("""
Lists historical messaging activity in the project for delivery review, auditing, and troubleshooting. This collection is read-only; send or redact messages through the [Messages API](/docs/apis/rest/messages/create-message) instead.

${logListBehavior}

${tokenPermissions<"_Messaging_">}
""")
list(...LogListRequest):
list(...LogListQuery):
| LogListResponse
| StatusCode400
| StatusCode401
Expand Down
47 changes: 0 additions & 47 deletions specs/signalwire-rest/message-api/logs/models/requests.tsp

This file was deleted.

4 changes: 2 additions & 2 deletions specs/signalwire-rest/space-api/billing/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ interface Billing {
@doc("""
Lists the balance adjustments recorded for the space: top-ups, auto top-ups, and
credits or debits applied by SignalWire. Narrow the range with `created_after` and
`created_before`. Results are paged; follow the `links.next` URL for the next page,
which carries the filters and the `page_token` for you.
`created_before`. Results are sorted newest first and paged; follow the `links.next` URL
for the next page, which carries the filters and the `page_token` for you.

${patPermissions}
""")
Expand Down
4 changes: 2 additions & 2 deletions specs/signalwire-rest/space-api/billing/models/requests.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ model UsageQuery {

@doc("Query parameters for payment history.")
model PaymentHistoryQuery {
@doc("Return only adjustments recorded after this date (`YYYY-MM-DD`) or ISO 8601 timestamp.")
@doc("Return only adjustments recorded at or after this time. Accepts a date (`YYYY-MM-DD`), an ISO 8601 timestamp, or Unix time in seconds. A date is read as midnight UTC at the start of that day, so adjustments from that day are included. A timestamp without `Z` or a UTC offset is read as UTC.")
@query
@example("2026-07-01")
created_after?: string;

@doc("Return only adjustments recorded before this date (`YYYY-MM-DD`) or ISO 8601 timestamp.")
@doc("Return only adjustments recorded before this time; an adjustment recorded at exactly this time is left out. Accepts the same formats as `created_after`. A date is read as midnight UTC at the start of that day, so adjustments from that day are left out.")
@query
@example("2026-08-01")
created_before?: string;
Expand Down
5 changes: 5 additions & 0 deletions specs/signalwire-rest/space-api/billing/models/responses.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ model BillingStatementPdfRedirect {
@doc("A page of balance adjustments.")
model PaymentHistoryListResponse {
@doc("Pagination links for the list. The `created_after` and `created_before` filters are preserved in each link.")
@example(#{
self: "/api/space/payment_history?created_after=2026-07-01&page_number=0&page_size=50",
first: "/api/space/payment_history?created_after=2026-07-01&page_size=50",
next: "/api/space/payment_history?created_after=2026-07-01&page_number=1&page_size=50&page_token=PA6f708192-a3b4-4c5d-9e6f-708192a3b4c5",
})
links: SpacePaginationLinks;

@doc("The balance adjustments on this page.")
Expand Down
2 changes: 1 addition & 1 deletion specs/signalwire-rest/space-api/models/shared.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ model SpacePaginationLinks {

@doc("Cursor pagination query parameters shared by the space list endpoints.")
model SpacePaginationQuery {
@doc("The number of results per page.")
@doc("The number of results per page. The default is `50` and the maximum is `1000`.")
@query
@minValue(1)
@maxValue(1000)
Expand Down
2 changes: 2 additions & 0 deletions specs/signalwire-rest/video-api/logs/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace SignalWireAPI.Video.Logs {
@doc("""
Lists historical Video API activity in the project for usage review and troubleshooting. This collection does not manage live Rooms or Conferences; use [Get video log](/docs/apis/rest/video-logs/get-log) when you already have a log ID.

${logListBehavior}

${tokenPermissions<"_Video_">}
""")
list(...ListLogsRequest):
Expand Down
Loading
Loading