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
68 changes: 28 additions & 40 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@ await client.Connections.ListAsync(
{
From = "from",
Take = 1,
Strategy = [new List<ConnectionStrategyEnum?>() { ConnectionStrategyEnum.Ad }],
Strategy = new List<ConnectionStrategyEnum?>() { ConnectionStrategyEnum.Ad },
Name = "name",
Fields = "fields",
IncludeFields = true,
Expand Down Expand Up @@ -3418,7 +3418,10 @@ client.Events.SubscribeAsync(
{
From = "from",
FromTimestamp = "from_timestamp",
EventType = EventStreamSubscribeEventsEventTypeEnum.GroupCreated,
EventType = new List<EventStreamSubscribeEventsEventTypeEnum?>()
{
EventStreamSubscribeEventsEventTypeEnum.GroupCreated,
},
}
);
```
Expand Down Expand Up @@ -3467,13 +3470,10 @@ await client.Flows.ListAsync(
Page = 1,
PerPage = 1,
IncludeTotals = true,
Hydrate =
[
new List<ListFlowsRequestParametersHydrateEnum?>()
{
ListFlowsRequestParametersHydrateEnum.FormCount,
},
],
Hydrate = new List<ListFlowsRequestParametersHydrateEnum?>()
{
ListFlowsRequestParametersHydrateEnum.FormCount,
},
Synchronous = true,
}
);
Expand Down Expand Up @@ -3560,13 +3560,10 @@ await client.Flows.GetAsync(
"id",
new GetFlowRequestParameters
{
Hydrate =
[
new List<GetFlowRequestParametersHydrateEnum?>()
{
GetFlowRequestParametersHydrateEnum.FormCount,
},
],
Hydrate = new List<GetFlowRequestParametersHydrateEnum?>()
{
GetFlowRequestParametersHydrateEnum.FormCount,
},
}
);
```
Expand Down Expand Up @@ -3711,13 +3708,10 @@ await client.Forms.ListAsync(
Page = 1,
PerPage = 1,
IncludeTotals = true,
Hydrate =
[
new List<FormsRequestParametersHydrateEnum?>()
{
FormsRequestParametersHydrateEnum.FlowCount,
},
],
Hydrate = new List<FormsRequestParametersHydrateEnum?>()
{
FormsRequestParametersHydrateEnum.FlowCount,
},
}
);
```
Expand Down Expand Up @@ -3803,13 +3797,10 @@ await client.Forms.GetAsync(
"id",
new GetFormRequestParameters
{
Hydrate =
[
new List<FormsRequestParametersHydrateEnum?>()
{
FormsRequestParametersHydrateEnum.FlowCount,
},
],
Hydrate = new List<FormsRequestParametersHydrateEnum?>()
{
FormsRequestParametersHydrateEnum.FlowCount,
},
}
);
```
Expand Down Expand Up @@ -6696,7 +6687,7 @@ Retrieve details of all APIs associated with your tenant.
await client.ResourceServers.ListAsync(
new ListResourceServerRequestParameters
{
Identifiers = [new List<string?>() { "identifiers" }],
Identifiers = new List<string?>() { "identifiers" },
Page = 1,
PerPage = 1,
IncludeTotals = true,
Expand Down Expand Up @@ -13279,7 +13270,7 @@ await client.Clients.Connections.GetAsync(
"id",
new ConnectionsGetRequest
{
Strategy = [new List<ConnectionStrategyEnum?>() { ConnectionStrategyEnum.Ad }],
Strategy = new List<ConnectionStrategyEnum?>() { ConnectionStrategyEnum.Ad },
From = "from",
Take = 1,
Fields = "fields",
Expand Down Expand Up @@ -15334,13 +15325,10 @@ await client.Flows.Executions.GetAsync(
"execution_id",
new GetFlowExecutionRequestParameters
{
Hydrate =
[
new List<GetFlowExecutionRequestParametersHydrateEnum?>()
{
GetFlowExecutionRequestParametersHydrateEnum.Debug,
},
],
Hydrate = new List<GetFlowExecutionRequestParametersHydrateEnum?>()
{
GetFlowExecutionRequestParametersHydrateEnum.Debug,
},
}
);
```
Expand Down Expand Up @@ -18774,7 +18762,7 @@ await client.Organizations.ClientGrants.ListAsync(
{
Audience = "audience",
ClientId = "client_id",
GrantIds = [new List<string?>() { "grant_ids" }],
GrantIds = new List<string?>() { "grant_ids" },
Page = 1,
PerPage = 1,
IncludeTotals = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private async Task<WithRawResponse<ListClientConnectionsResponseContent>> GetInt
/// "id",
/// new ConnectionsGetRequest
/// {
/// Strategy = [new List&lt;ConnectionStrategyEnum?&gt;() { ConnectionStrategyEnum.Ad }],
/// Strategy = new List&lt;ConnectionStrategyEnum?&gt;() { ConnectionStrategyEnum.Ad },
/// From = "from",
/// Take = 1,
/// Fields = "fields",
Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.ManagementApi/Connections/ConnectionsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ private async Task<WithRawResponse<UpdateConnectionResponseContent>> UpdateAsync
/// {
/// From = "from",
/// Take = 1,
/// Strategy = [new List&lt;ConnectionStrategyEnum?&gt;() { ConnectionStrategyEnum.Ad }],
/// Strategy = new List&lt;ConnectionStrategyEnum?&gt;() { ConnectionStrategyEnum.Ad },
/// Name = "name",
/// Fields = "fields",
/// IncludeFields = true,
Expand Down
10 changes: 5 additions & 5 deletions src/Auth0.ManagementApi/Events/EventsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ internal EventsClient(RawClient client)
/// {
/// From = "from",
/// FromTimestamp = "from_timestamp",
/// EventType = EventStreamSubscribeEventsEventTypeEnum.GroupCreated,
/// EventType = new List&lt;EventStreamSubscribeEventsEventTypeEnum?&gt;()
/// {
/// EventStreamSubscribeEventsEventTypeEnum.GroupCreated,
/// },
/// }
/// );
/// </code></example>
Expand All @@ -38,10 +41,7 @@ public async IAsyncEnumerable<EventStreamSubscribeEventsResponseContent> Subscri
"from_timestamp",
request.FromTimestamp.IsDefined ? request.FromTimestamp.Value : null
)
.AddDeepObject(
"event_type",
request.EventType.IsDefined ? request.EventType.Value : null
)
.Add("event_type", request.EventType)
.MergeAdditional(options?.AdditionalQueryParameters)
.Build();
var _headers = await new Auth0.ManagementApi.Core.HeadersBuilder.Builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public record SubscribeEventsRequestParameters
/// Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed.
/// </summary>
[JsonIgnore]
public Optional<EventStreamSubscribeEventsEventTypeParam?> EventType { get; set; }
public IEnumerable<EventStreamSubscribeEventsEventTypeEnum?> EventType { get; set; } =
new List<EventStreamSubscribeEventsEventTypeEnum?>();

/// <inheritdoc />
public override string ToString()
Expand Down
11 changes: 4 additions & 7 deletions src/Auth0.ManagementApi/Flows/Executions/ExecutionsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,10 @@ await ListInternalAsync(flowId, request, options, cancellationToken)
/// "execution_id",
/// new GetFlowExecutionRequestParameters
/// {
/// Hydrate =
/// [
/// new List&lt;GetFlowExecutionRequestParametersHydrateEnum?&gt;()
/// {
/// GetFlowExecutionRequestParametersHydrateEnum.Debug,
/// },
/// ],
/// Hydrate = new List&lt;GetFlowExecutionRequestParametersHydrateEnum?&gt;()
/// {
/// GetFlowExecutionRequestParametersHydrateEnum.Debug,
/// },
/// }
/// );
/// </code></example>
Expand Down
22 changes: 8 additions & 14 deletions src/Auth0.ManagementApi/Flows/FlowsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,10 @@ private async Task<WithRawResponse<UpdateFlowResponseContent>> UpdateAsyncCore(
/// Page = 1,
/// PerPage = 1,
/// IncludeTotals = true,
/// Hydrate =
/// [
/// new List&lt;ListFlowsRequestParametersHydrateEnum?&gt;()
/// {
/// ListFlowsRequestParametersHydrateEnum.FormCount,
/// },
/// ],
/// Hydrate = new List&lt;ListFlowsRequestParametersHydrateEnum?&gt;()
/// {
/// ListFlowsRequestParametersHydrateEnum.FormCount,
/// },
/// Synchronous = true,
/// }
/// );
Expand Down Expand Up @@ -462,13 +459,10 @@ public WithRawResponseTask<CreateFlowResponseContent> CreateAsync(
/// "id",
/// new GetFlowRequestParameters
/// {
/// Hydrate =
/// [
/// new List&lt;GetFlowRequestParametersHydrateEnum?&gt;()
/// {
/// GetFlowRequestParametersHydrateEnum.FormCount,
/// },
/// ],
/// Hydrate = new List&lt;GetFlowRequestParametersHydrateEnum?&gt;()
/// {
/// GetFlowRequestParametersHydrateEnum.FormCount,
/// },
/// }
/// );
/// </code></example>
Expand Down
22 changes: 8 additions & 14 deletions src/Auth0.ManagementApi/Forms/FormsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,10 @@ private async Task<WithRawResponse<UpdateFormResponseContent>> UpdateAsyncCore(
/// Page = 1,
/// PerPage = 1,
/// IncludeTotals = true,
/// Hydrate =
/// [
/// new List&lt;FormsRequestParametersHydrateEnum?&gt;()
/// {
/// FormsRequestParametersHydrateEnum.FlowCount,
/// },
/// ],
/// Hydrate = new List&lt;FormsRequestParametersHydrateEnum?&gt;()
/// {
/// FormsRequestParametersHydrateEnum.FlowCount,
/// },
/// }
/// );
/// </code></example>
Expand Down Expand Up @@ -451,13 +448,10 @@ public WithRawResponseTask<CreateFormResponseContent> CreateAsync(
/// "id",
/// new GetFormRequestParameters
/// {
/// Hydrate =
/// [
/// new List&lt;FormsRequestParametersHydrateEnum?&gt;()
/// {
/// FormsRequestParametersHydrateEnum.FlowCount,
/// },
/// ],
/// Hydrate = new List&lt;FormsRequestParametersHydrateEnum?&gt;()
/// {
/// FormsRequestParametersHydrateEnum.FlowCount,
/// },
/// }
/// );
/// </code></example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private async Task<
/// {
/// Audience = "audience",
/// ClientId = "client_id",
/// GrantIds = [new List&lt;string?&gt;() { "grant_ids" }],
/// GrantIds = new List&lt;string?&gt;() { "grant_ids" },
/// Page = 1,
/// PerPage = 1,
/// IncludeTotals = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ private async Task<WithRawResponse<UpdateResourceServerResponseContent>> UpdateA
/// await client.ResourceServers.ListAsync(
/// new ListResourceServerRequestParameters
/// {
/// Identifiers = [new List&lt;string?&gt;() { "identifiers" }],
/// Identifiers = new List&lt;string?&gt;() { "identifiers" },
/// Page = 1,
/// PerPage = 1,
/// IncludeTotals = true,
Expand Down
Loading
Loading