Skip to content
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 src/ChatClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
}

// Delete campaign
public async Task<StreamResponse<DeleteCampaignResponse>> DeleteCampaignAsync(string id, object request = null,

Check warning on line 67 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.

Check warning on line 67 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / 🚀 Release

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand All @@ -80,7 +80,7 @@
}

// Get campaign by ID.
public async Task<StreamResponse<GetCampaignResponse>> GetCampaignAsync(string id, object request = null,

Check warning on line 83 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.

Check warning on line 83 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / 🚀 Release

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -260,7 +260,7 @@

// Sends events:
// - channel.deleted
public async Task<StreamResponse<DeleteChannelResponse>> DeleteChannelAsync(string type, string id, object request = null,

Check warning on line 263 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.

Check warning on line 263 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / 🚀 Release

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand All @@ -277,8 +277,8 @@
return result;
}

// Returns a channel by its CID without creating it. Responds with 404 when the channel does not exist, so it doubles as an existence check. Pass state=true to also load messages, read state and watchers.
// Returns a channel by its CID without creating it. Responds with 404 when the channel does not exist, so it doubles as an existence check. Pass state=true to also load messages, read state and watchers, and the messages_id_* parameters to page those messages by message ID.
public async Task<StreamResponse<ChannelStateResponse>> GetChannelAsync(string type, string id, object request = null,

Check warning on line 281 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.

Check warning on line 281 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / 🚀 Release

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -343,7 +343,7 @@

// Sends events:
// - draft.deleted
public async Task<StreamResponse<Response>> DeleteDraftAsync(string type, string id, object request = null,

Check warning on line 346 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.

Check warning on line 346 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / 🚀 Release

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand All @@ -361,7 +361,7 @@
}

// Get a draft
public async Task<StreamResponse<GetDraftResponse>> GetDraftAsync(string type, string id, object request = null,

Check warning on line 364 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.

Check warning on line 364 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / 🚀 Release

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -396,7 +396,7 @@
}

// Deletes previously uploaded file
public async Task<StreamResponse<Response>> DeleteChannelFileAsync(string type, string id, object request = null,

Check warning on line 399 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.

Check warning on line 399 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / 🚀 Release

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -451,7 +451,7 @@
}

// Deletes previously uploaded image
public async Task<StreamResponse<Response>> DeleteChannelImageAsync(string type, string id, object request = null,

Check warning on line 454 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.

Check warning on line 454 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / 🚀 Release

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -526,7 +526,7 @@
}

// Returns list messages found by IDs
public async Task<StreamResponse<GetManyMessagesResponse>> GetManyMessagesAsync(string type, string id, object request = null,

Check warning on line 529 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.

Check warning on line 529 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / 🚀 Release

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -645,7 +645,7 @@
}

// Lists all available channel types
public async Task<StreamResponse<ListChannelTypesResponse>> ListChannelTypesAsync(object request = null,

Check warning on line 648 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.

Check warning on line 648 in src/ChatClient.cs

View workflow job for this annotation

GitHub Actions / 🚀 Release

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{

Expand Down Expand Up @@ -800,7 +800,7 @@
return result;
}

// Exports channel data to JSON file
// Exports channel data to a JSON or CSV file (CSV requires version=v2)
public async Task<StreamResponse<ExportChannelsResponse>> ExportChannelsAsync(ExportChannelsRequest request,
CancellationToken cancellationToken = default)
{
Expand Down
13 changes: 13 additions & 0 deletions src/VideoClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

// Get the current status of all active calls including metrics and summary information
public async Task<StreamResponse<GetActiveCallsStatusResponse>> GetActiveCallsStatusAsync(object request = null,

Check warning on line 39 in src/VideoClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{

Expand Down Expand Up @@ -85,7 +85,7 @@
}


public async Task<StreamResponse<GetCallResponse>> GetCallAsync(string type, string id, object request = null,

Check warning on line 88 in src/VideoClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -289,7 +289,7 @@

// Sends events:
// - call.ended
public async Task<StreamResponse<EndCallResponse>> EndCallAsync(string type, string id, object request = null,

Check warning on line 292 in src/VideoClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -380,7 +380,7 @@
}

// Lists recordings
public async Task<StreamResponse<ListRecordingsResponse>> ListRecordingsAsync(string type, string id, object request = null,

Check warning on line 383 in src/VideoClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -439,7 +439,7 @@
}


public async Task<StreamResponse<GetCallReportResponse>> GetCallReportAsync(string type, string id, object request = null,

Check warning on line 442 in src/VideoClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -494,7 +494,7 @@
}

// Stop all RTMP broadcasts for the provided call
public async Task<StreamResponse<StopAllRTMPBroadcastsResponse>> StopAllRTMPBroadcastsAsync(string type, string id, object request = null,

Check warning on line 497 in src/VideoClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -529,7 +529,7 @@
}


public async Task<StreamResponse<GetCallParticipantSessionMetricsResponse>> GetCallParticipantSessionMetricsAsync(string type, string id, string session, string user, string userSession, object request = null,

Check warning on line 532 in src/VideoClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand All @@ -550,7 +550,7 @@
}


public async Task<StreamResponse<QueryCallParticipantSessionsResponse>> QueryCallParticipantSessionsAsync(string type, string id, string session, object request = null,

Check warning on line 553 in src/VideoClient.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Cannot convert null literal to non-nullable reference type.
CancellationToken cancellationToken = default)
{
var pathParams = new Dictionary<string, string>
Expand Down Expand Up @@ -1195,5 +1195,18 @@
cancellationToken);
return result;
}

// Returns the app's per-broadcast daily digest bundle for one UTC day, with an explicit readiness status (ready, pending, failed, future_date, expired). Payload keys are only present when status is ready.
public async Task<StreamResponse<GetDailyDigestResponse>> GetDailyDigestAsync(object request = null,
CancellationToken cancellationToken = default)
{
var queryParams = ExtractQueryParams(request);

var result = await _client.MakeRequestAsync<object, GetDailyDigestResponse>(
"GET",
"/api/v2/video/stats/daily_digest", queryParams, null, null,
cancellationToken);
return result;
}
}
}
Loading
Loading