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
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,18 @@ partial void ProcessCampaignControllerCreateResponseContent(
/// <param name="customers">
/// These are the customers that will be called in the campaign. Required if dialPlan is not provided.
/// </param>
/// <param name="maxConcurrency">
/// This is the maximum number of concurrent calls that will be made for the campaign. Defaults to 10.
/// </param>
/// <param name="assistantOverrides">
/// These are the overrides for the assistant's settings and template variables for the campaign. Use this when the campaign targets an `assistantId`.
/// </param>
/// <param name="squadOverrides">
/// These are the overrides for the squad and template variables for the campaign. Use this when the campaign targets a `squadId`. Per-contact `squadOverrides` are deep-merged on top of this at dispatch time.
/// </param>
/// <param name="duplicateFromCampaignId">
/// Optional campaign ID to duplicate config from. Provided fields in the request override the source. If `customers` is omitted, contacts are copied from the source.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand All @@ -471,6 +483,10 @@ partial void ProcessCampaignControllerCreateResponseContent(
global::System.Collections.Generic.IList<global::Vapi.DialPlanEntry>? dialPlan = default,
global::Vapi.SchedulePlan? schedulePlan = default,
global::System.Collections.Generic.IList<global::Vapi.CreateCustomerDTO>? customers = default,
double? maxConcurrency = default,
global::Vapi.AssistantOverrides? assistantOverrides = default,
global::Vapi.AssistantOverrides? squadOverrides = default,
string? duplicateFromCampaignId = default,
global::Vapi.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -484,6 +500,10 @@ partial void ProcessCampaignControllerCreateResponseContent(
DialPlan = dialPlan,
SchedulePlan = schedulePlan,
Customers = customers,
MaxConcurrency = maxConcurrency,
AssistantOverrides = assistantOverrides,
SquadOverrides = squadOverrides,
DuplicateFromCampaignId = duplicateFromCampaignId,
};

return await CampaignControllerCreateAsync(
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,8 @@ partial void ProcessCampaignControllerUpdateResponseContent(
/// Can only be updated if campaign is not in progress or has ended.
/// </param>
/// <param name="status">
/// This is the status of the campaign.<br/>
/// Can only be updated to 'ended' if you want to end the campaign.<br/>
/// When set to 'ended', it will delete all scheduled calls. Calls in progress will be allowed to complete.
/// Set to 'cancelled' to stop the campaign ('ended' is a V1 alias). Scheduled<br/>
/// calls are deleted; in-progress calls are allowed to finish.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ public partial interface ICampaignsClient
/// <param name="customers">
/// These are the customers that will be called in the campaign. Required if dialPlan is not provided.
/// </param>
/// <param name="maxConcurrency">
/// This is the maximum number of concurrent calls that will be made for the campaign. Defaults to 10.
/// </param>
/// <param name="assistantOverrides">
/// These are the overrides for the assistant's settings and template variables for the campaign. Use this when the campaign targets an `assistantId`.
/// </param>
/// <param name="squadOverrides">
/// These are the overrides for the squad and template variables for the campaign. Use this when the campaign targets a `squadId`. Per-contact `squadOverrides` are deep-merged on top of this at dispatch time.
/// </param>
/// <param name="duplicateFromCampaignId">
/// Optional campaign ID to duplicate config from. Provided fields in the request override the source. If `customers` is omitted, contacts are copied from the source.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
Expand All @@ -68,6 +80,10 @@ public partial interface ICampaignsClient
global::System.Collections.Generic.IList<global::Vapi.DialPlanEntry>? dialPlan = default,
global::Vapi.SchedulePlan? schedulePlan = default,
global::System.Collections.Generic.IList<global::Vapi.CreateCustomerDTO>? customers = default,
double? maxConcurrency = default,
global::Vapi.AssistantOverrides? assistantOverrides = default,
global::Vapi.AssistantOverrides? squadOverrides = default,
string? duplicateFromCampaignId = default,
global::Vapi.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#nullable enable

namespace Vapi
{
public partial interface ICampaignsClient
{
/// <summary>
/// Create Campaign V2
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vapi.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vapi.Campaign> CampaignControllerCreateV2Async(

global::Vapi.CreateCampaignDTO request,
global::Vapi.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create Campaign V2
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vapi.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vapi.AutoSDKHttpResponse<global::Vapi.Campaign>> CampaignControllerCreateV2AsResponseAsync(

global::Vapi.CreateCampaignDTO request,
global::Vapi.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create Campaign V2
/// </summary>
/// <param name="name">
/// This is the name of the campaign. This is just for your own reference.<br/>
/// Example: Q2 Sales Campaign
/// </param>
/// <param name="assistantId">
/// This is the assistant ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used.
/// </param>
/// <param name="workflowId">
/// This is the workflow ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used.
/// </param>
/// <param name="squadId">
/// This is the squad ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used.
/// </param>
/// <param name="phoneNumberId">
/// This is the phone number ID that will be used for the campaign calls. Required if dialPlan is not provided. Note: phoneNumberId and dialPlan are mutually exclusive.
/// </param>
/// <param name="dialPlan">
/// This is a list of dial entries, each specifying a phone number and the customers to call using that number. Use this when you want different phone numbers to call different sets of customers. Note: phoneNumberId and dialPlan are mutually exclusive.
/// </param>
/// <param name="schedulePlan">
/// This is the schedule plan for the campaign. Calls will start at startedAt and continue until your organization’s concurrency limit is reached. Any remaining calls will be retried for up to one hour as capacity becomes available. After that hour or after latestAt, whichever comes first, any calls that couldn’t be placed won’t be retried.
/// </param>
/// <param name="customers">
/// These are the customers that will be called in the campaign. Required if dialPlan is not provided.
/// </param>
/// <param name="maxConcurrency">
/// This is the maximum number of concurrent calls that will be made for the campaign. Defaults to 10.
/// </param>
/// <param name="assistantOverrides">
/// These are the overrides for the assistant's settings and template variables for the campaign. Use this when the campaign targets an `assistantId`.
/// </param>
/// <param name="squadOverrides">
/// These are the overrides for the squad and template variables for the campaign. Use this when the campaign targets a `squadId`. Per-contact `squadOverrides` are deep-merged on top of this at dispatch time.
/// </param>
/// <param name="duplicateFromCampaignId">
/// Optional campaign ID to duplicate config from. Provided fields in the request override the source. If `customers` is omitted, contacts are copied from the source.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Vapi.Campaign> CampaignControllerCreateV2Async(
string name,
string? assistantId = default,
string? workflowId = default,
string? squadId = default,
string? phoneNumberId = default,
global::System.Collections.Generic.IList<global::Vapi.DialPlanEntry>? dialPlan = default,
global::Vapi.SchedulePlan? schedulePlan = default,
global::System.Collections.Generic.IList<global::Vapi.CreateCustomerDTO>? customers = default,
double? maxConcurrency = default,
global::Vapi.AssistantOverrides? assistantOverrides = default,
global::Vapi.AssistantOverrides? squadOverrides = default,
string? duplicateFromCampaignId = default,
global::Vapi.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#nullable enable

namespace Vapi
{
public partial interface ICampaignsClient
{
/// <summary>
/// List Campaigns V2
/// </summary>
/// <param name="id"></param>
/// <param name="status"></param>
/// <param name="page"></param>
/// <param name="sortOrder"></param>
/// <param name="sortBy"></param>
/// <param name="limit"></param>
/// <param name="createdAtGt"></param>
/// <param name="createdAtLt"></param>
/// <param name="createdAtGe"></param>
/// <param name="createdAtLe"></param>
/// <param name="updatedAtGt"></param>
/// <param name="updatedAtLt"></param>
/// <param name="updatedAtGe"></param>
/// <param name="updatedAtLe"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vapi.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vapi.CampaignPaginatedResponse> CampaignControllerFindAllV2Async(
string? id = default,
global::Vapi.CampaignControllerFindAllV2Status? status = default,
double? page = default,
global::Vapi.CampaignControllerFindAllV2SortOrder? sortOrder = default,
global::Vapi.CampaignControllerFindAllV2SortBy? sortBy = default,
double? limit = default,
global::System.DateTime? createdAtGt = default,
global::System.DateTime? createdAtLt = default,
global::System.DateTime? createdAtGe = default,
global::System.DateTime? createdAtLe = default,
global::System.DateTime? updatedAtGt = default,
global::System.DateTime? updatedAtLt = default,
global::System.DateTime? updatedAtGe = default,
global::System.DateTime? updatedAtLe = default,
global::Vapi.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// List Campaigns V2
/// </summary>
/// <param name="id"></param>
/// <param name="status"></param>
/// <param name="page"></param>
/// <param name="sortOrder"></param>
/// <param name="sortBy"></param>
/// <param name="limit"></param>
/// <param name="createdAtGt"></param>
/// <param name="createdAtLt"></param>
/// <param name="createdAtGe"></param>
/// <param name="createdAtLe"></param>
/// <param name="updatedAtGt"></param>
/// <param name="updatedAtLt"></param>
/// <param name="updatedAtGe"></param>
/// <param name="updatedAtLe"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vapi.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vapi.AutoSDKHttpResponse<global::Vapi.CampaignPaginatedResponse>> CampaignControllerFindAllV2AsResponseAsync(
string? id = default,
global::Vapi.CampaignControllerFindAllV2Status? status = default,
double? page = default,
global::Vapi.CampaignControllerFindAllV2SortOrder? sortOrder = default,
global::Vapi.CampaignControllerFindAllV2SortBy? sortBy = default,
double? limit = default,
global::System.DateTime? createdAtGt = default,
global::System.DateTime? createdAtLt = default,
global::System.DateTime? createdAtGe = default,
global::System.DateTime? createdAtLe = default,
global::System.DateTime? updatedAtGt = default,
global::System.DateTime? updatedAtLt = default,
global::System.DateTime? updatedAtGe = default,
global::System.DateTime? updatedAtLe = default,
global::Vapi.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#nullable enable

namespace Vapi
{
public partial interface ICampaignsClient
{
/// <summary>
/// Get Campaign V2
/// </summary>
/// <param name="id"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vapi.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vapi.Campaign> CampaignControllerFindOneV2Async(
global::System.Guid id,
global::Vapi.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get Campaign V2
/// </summary>
/// <param name="id"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vapi.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vapi.AutoSDKHttpResponse<global::Vapi.Campaign>> CampaignControllerFindOneV2AsResponseAsync(
global::System.Guid id,
global::Vapi.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#nullable enable

namespace Vapi
{
public partial interface ICampaignsClient
{
/// <summary>
/// Delete Campaign
/// </summary>
/// <param name="id"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vapi.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vapi.Campaign> CampaignControllerRemoveV2Async(
global::System.Guid id,
global::Vapi.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Delete Campaign
/// </summary>
/// <param name="id"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Vapi.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Vapi.AutoSDKHttpResponse<global::Vapi.Campaign>> CampaignControllerRemoveV2AsResponseAsync(
global::System.Guid id,
global::Vapi.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Loading