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
10 changes: 10 additions & 0 deletions src/libs/Speechify/Generated/Speechify.CallersClient.List.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public partial class CallersClient
partial void PrepareListArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? agentId,
ref string? contactId,
ref string? q,
ref global::System.DateTime? lastSeenAfter,
ref string? projectId,
Expand All @@ -38,6 +39,7 @@ partial void PrepareListRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string? agentId,
string? contactId,
string? q,
global::System.DateTime? lastSeenAfter,
string? projectId,
Expand All @@ -63,6 +65,7 @@ partial void ProcessListResponseContent(
/// leaves the callers it already knows attributed where they were met.
/// </summary>
/// <param name="agentId"></param>
/// <param name="contactId"></param>
/// <param name="q"></param>
/// <param name="lastSeenAfter"></param>
/// <param name="projectId"></param>
Expand All @@ -76,6 +79,7 @@ partial void ProcessListResponseContent(
/// <exception cref="global::Speechify.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Speechify.ListCallersResponse> ListAsync(
string? agentId = default,
string? contactId = default,
string? q = default,
global::System.DateTime? lastSeenAfter = default,
string? projectId = default,
Expand All @@ -87,6 +91,7 @@ partial void ProcessListResponseContent(
{
var __response = await ListAsResponseAsync(
agentId: agentId,
contactId: contactId,
q: q,
lastSeenAfter: lastSeenAfter,
projectId: projectId,
Expand All @@ -109,6 +114,7 @@ partial void ProcessListResponseContent(
/// leaves the callers it already knows attributed where they were met.
/// </summary>
/// <param name="agentId"></param>
/// <param name="contactId"></param>
/// <param name="q"></param>
/// <param name="lastSeenAfter"></param>
/// <param name="projectId"></param>
Expand All @@ -122,6 +128,7 @@ partial void ProcessListResponseContent(
/// <exception cref="global::Speechify.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Speechify.AutoSDKHttpResponse<global::Speechify.ListCallersResponse>> ListAsResponseAsync(
string? agentId = default,
string? contactId = default,
string? q = default,
global::System.DateTime? lastSeenAfter = default,
string? projectId = default,
Expand All @@ -136,6 +143,7 @@ partial void ProcessListResponseContent(
PrepareListArguments(
httpClient: HttpClient,
agentId: ref agentId,
contactId: ref contactId,
q: ref q,
lastSeenAfter: ref lastSeenAfter,
projectId: ref projectId,
Expand Down Expand Up @@ -171,6 +179,7 @@ partial void ProcessListResponseContent(
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("agent_id", agentId)
.AddOptionalParameter("contact_id", contactId)
.AddOptionalParameter("q", q)
.AddOptionalParameter("last_seen_after", lastSeenAfter?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
.AddOptionalParameter("project_id", projectId)
Expand Down Expand Up @@ -224,6 +233,7 @@ partial void ProcessListResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
contactId: contactId,
q: q,
lastSeenAfter: lastSeenAfter,
projectId: projectId,
Expand Down
22 changes: 14 additions & 8 deletions src/libs/Speechify/Generated/Speechify.ContactsClient.Delete.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@ partial void ProcessDeleteResponseContent(
/// with them.<br/>
/// A recording stops being served from the moment of the request, and a<br/>
/// call still in progress can no longer append to its transcript, so a<br/>
/// turn that lands after the erasure cannot put the person back. The<br/>
/// audio itself is not yet collected from storage - that is tracked<br/>
/// separately - so treat the erasure as complete for every API surface<br/>
/// and pending for the stored bytes.<br/>
/// turn that lands after the erasure cannot put the person back.<br/>
/// The stored audio itself is deleted 30 days later, not immediately.<br/>
/// This is deliberate: an erasure that destroyed the bytes on request<br/>
/// would be a way to erase evidence, so the recording stops being<br/>
/// reachable at once and stays recoverable by us for the same 30 days a<br/>
/// deleted agent or a purged project does. Absent an erasure, every<br/>
/// recording is kept for one year from the call and removed after that.<br/>
/// The identifiers are tombstoned as part of the purge, which is what<br/>
/// stops the person's phone number ever resolving again: a later merge<br/>
/// naming the purged contact moves rows that are already dead rather than<br/>
Expand Down Expand Up @@ -121,10 +124,13 @@ partial void ProcessDeleteResponseContent(
/// with them.<br/>
/// A recording stops being served from the moment of the request, and a<br/>
/// call still in progress can no longer append to its transcript, so a<br/>
/// turn that lands after the erasure cannot put the person back. The<br/>
/// audio itself is not yet collected from storage - that is tracked<br/>
/// separately - so treat the erasure as complete for every API surface<br/>
/// and pending for the stored bytes.<br/>
/// turn that lands after the erasure cannot put the person back.<br/>
/// The stored audio itself is deleted 30 days later, not immediately.<br/>
/// This is deliberate: an erasure that destroyed the bytes on request<br/>
/// would be a way to erase evidence, so the recording stops being<br/>
/// reachable at once and stays recoverable by us for the same 30 days a<br/>
/// deleted agent or a purged project does. Absent an erasure, every<br/>
/// recording is kept for one year from the call and removed after that.<br/>
/// The identifiers are tombstoned as part of the purge, which is what<br/>
/// stops the person's phone number ever resolving again: a later merge<br/>
/// naming the purged contact moves rows that are already dead rather than<br/>
Expand Down
18 changes: 16 additions & 2 deletions src/libs/Speechify/Generated/Speechify.ContactsClient.List.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ public partial class ContactsClient
};
partial void PrepareListArguments(
global::System.Net.Http.HttpClient httpClient,
ref string? agentId,
ref string? q,
ref string? cursor,
ref int? limit,
ref string? speechifyVersion);
partial void PrepareListRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string? agentId,
string? q,
string? cursor,
int? limit,
Expand All @@ -55,8 +57,11 @@ partial void ProcessListResponseContent(
/// 200).<br/>
/// Contacts are workspace-level, not per-agent: the same person reached<br/>
/// on two agents and on two channels is one row here, while<br/>
/// `/v1/agents/callers` stays the per-agent observation of them.
/// `/v1/agents/callers` stays the per-agent observation of them. Filter<br/>
/// by `agent_id` for the people one agent has reached; each row names<br/>
/// the agents that reached it in `agent_ids`.
/// </summary>
/// <param name="agentId"></param>
/// <param name="q"></param>
/// <param name="cursor"></param>
/// <param name="limit">
Expand All @@ -67,6 +72,7 @@ partial void ProcessListResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Speechify.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Speechify.ListContactsResponse> ListAsync(
string? agentId = default,
string? q = default,
string? cursor = default,
int? limit = default,
Expand All @@ -75,6 +81,7 @@ partial void ProcessListResponseContent(
global::System.Threading.CancellationToken cancellationToken = default)
{
var __response = await ListAsResponseAsync(
agentId: agentId,
q: q,
cursor: cursor,
limit: limit,
Expand All @@ -93,8 +100,11 @@ partial void ProcessListResponseContent(
/// 200).<br/>
/// Contacts are workspace-level, not per-agent: the same person reached<br/>
/// on two agents and on two channels is one row here, while<br/>
/// `/v1/agents/callers` stays the per-agent observation of them.
/// `/v1/agents/callers` stays the per-agent observation of them. Filter<br/>
/// by `agent_id` for the people one agent has reached; each row names<br/>
/// the agents that reached it in `agent_ids`.
/// </summary>
/// <param name="agentId"></param>
/// <param name="q"></param>
/// <param name="cursor"></param>
/// <param name="limit">
Expand All @@ -105,6 +115,7 @@ partial void ProcessListResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Speechify.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::Speechify.AutoSDKHttpResponse<global::Speechify.ListContactsResponse>> ListAsResponseAsync(
string? agentId = default,
string? q = default,
string? cursor = default,
int? limit = default,
Expand All @@ -116,6 +127,7 @@ partial void ProcessListResponseContent(
client: HttpClient);
PrepareListArguments(
httpClient: HttpClient,
agentId: ref agentId,
q: ref q,
cursor: ref cursor,
limit: ref limit,
Expand Down Expand Up @@ -148,6 +160,7 @@ partial void ProcessListResponseContent(
path: "/v1/contacts",
baseUri: HttpClient.BaseAddress);
__pathBuilder
.AddOptionalParameter("agent_id", agentId)
.AddOptionalParameter("q", q)
.AddOptionalParameter("cursor", cursor)
.AddOptionalParameter("limit", limit?.ToString())
Expand Down Expand Up @@ -198,6 +211,7 @@ partial void ProcessListResponseContent(
PrepareListRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
agentId: agentId,
q: q,
cursor: cursor,
limit: limit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ partial void PrepareListArguments(
ref global::Speechify.ConversationStatus? status,
ref global::Speechify.ConversationTransport? transport,
ref string? callerIdentity,
ref string? contactId,
ref string? q,
ref global::System.DateTime? startedAfter,
ref global::System.DateTime? startedBefore,
Expand All @@ -49,6 +50,7 @@ partial void PrepareListRequest(
global::Speechify.ConversationStatus? status,
global::Speechify.ConversationTransport? transport,
string? callerIdentity,
string? contactId,
string? q,
global::System.DateTime? startedAfter,
global::System.DateTime? startedBefore,
Expand Down Expand Up @@ -89,6 +91,7 @@ partial void ProcessListResponseContent(
/// (turn-based, roomless, no call duration).
/// </param>
/// <param name="callerIdentity"></param>
/// <param name="contactId"></param>
/// <param name="q"></param>
/// <param name="startedAfter"></param>
/// <param name="startedBefore"></param>
Expand All @@ -106,6 +109,7 @@ partial void ProcessListResponseContent(
global::Speechify.ConversationStatus? status = default,
global::Speechify.ConversationTransport? transport = default,
string? callerIdentity = default,
string? contactId = default,
string? q = default,
global::System.DateTime? startedAfter = default,
global::System.DateTime? startedBefore = default,
Expand All @@ -123,6 +127,7 @@ partial void ProcessListResponseContent(
status: status,
transport: transport,
callerIdentity: callerIdentity,
contactId: contactId,
q: q,
startedAfter: startedAfter,
startedBefore: startedBefore,
Expand Down Expand Up @@ -160,6 +165,7 @@ partial void ProcessListResponseContent(
/// (turn-based, roomless, no call duration).
/// </param>
/// <param name="callerIdentity"></param>
/// <param name="contactId"></param>
/// <param name="q"></param>
/// <param name="startedAfter"></param>
/// <param name="startedBefore"></param>
Expand All @@ -177,6 +183,7 @@ partial void ProcessListResponseContent(
global::Speechify.ConversationStatus? status = default,
global::Speechify.ConversationTransport? transport = default,
string? callerIdentity = default,
string? contactId = default,
string? q = default,
global::System.DateTime? startedAfter = default,
global::System.DateTime? startedBefore = default,
Expand All @@ -197,6 +204,7 @@ partial void ProcessListResponseContent(
status: ref status,
transport: ref transport,
callerIdentity: ref callerIdentity,
contactId: ref contactId,
q: ref q,
startedAfter: ref startedAfter,
startedBefore: ref startedBefore,
Expand Down Expand Up @@ -238,6 +246,7 @@ partial void ProcessListResponseContent(
.AddOptionalParameter("status", status?.ToValueString())
.AddOptionalParameter("transport", transport?.ToValueString())
.AddOptionalParameter("caller_identity", callerIdentity)
.AddOptionalParameter("contact_id", contactId)
.AddOptionalParameter("q", q)
.AddOptionalParameter("started_after", startedAfter?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
.AddOptionalParameter("started_before", startedBefore?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
Expand Down Expand Up @@ -297,6 +306,7 @@ partial void ProcessListResponseContent(
status: status,
transport: transport,
callerIdentity: callerIdentity,
contactId: contactId,
q: q,
startedAfter: startedAfter,
startedBefore: startedBefore,
Expand Down Expand Up @@ -482,6 +492,43 @@ partial void ProcessListResponseContent(
retryReason: global::System.String.Empty,
cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false);
}
// The request was malformed or failed validation. The response body is the standard `Error` envelope; for validation failures `error.fields` enumerates the offending fields as a `path -> message` map (code = `validation_failed`).
if ((int)__response.StatusCode == 400)
{
string? __content_400 = null;
global::System.Exception? __exception_400 = null;
global::Speechify.Error? __value_400 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext);
}
else
{
__content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_400 = global::Speechify.Error.FromJson(__content_400, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
{
__exception_400 = __ex;
}


throw global::Speechify.ApiException<global::Speechify.Error>.Create(
statusCode: __response.StatusCode,
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_400,
responseBody: __content_400,
responseObject: __value_400,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}
// Authentication is missing or invalid. The request did not carry a recognised credential (console session token, API key, or worker JWT).
if ((int)__response.StatusCode == 401)
{
Expand Down
Loading