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
62 changes: 57 additions & 5 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,7 @@ await client.Connections.ListAsync(
{
From = "from",
Take = 1,
Strategy = [new List<ConnectionStrategyEnum?>() { ConnectionStrategyEnum.Ad }],
Name = "name",
Fields = "fields",
IncludeFields = true,
Expand Down Expand Up @@ -3404,6 +3405,13 @@ await client.Flows.ListAsync(
Page = 1,
PerPage = 1,
IncludeTotals = true,
Hydrate =
[
new List<ListFlowsRequestParametersHydrateEnum?>()
{
ListFlowsRequestParametersHydrateEnum.FormCount,
},
],
Synchronous = true,
}
);
Expand Down Expand Up @@ -3486,7 +3494,19 @@ await client.Flows.CreateAsync(new CreateFlowRequestContent { Name = "name" });
<dd>

```csharp
await client.Flows.GetAsync("id", new GetFlowRequestParameters());
await client.Flows.GetAsync(
"id",
new GetFlowRequestParameters
{
Hydrate =
[
new List<GetFlowRequestParametersHydrateEnum?>()
{
GetFlowRequestParametersHydrateEnum.FormCount,
},
],
}
);
```
</dd>
</dl>
Expand Down Expand Up @@ -3629,6 +3649,13 @@ await client.Forms.ListAsync(
Page = 1,
PerPage = 1,
IncludeTotals = true,
Hydrate =
[
new List<FormsRequestParametersHydrateEnum?>()
{
FormsRequestParametersHydrateEnum.FlowCount,
},
],
}
);
```
Expand Down Expand Up @@ -3710,7 +3737,19 @@ await client.Forms.CreateAsync(new CreateFormRequestContent { Name = "name" });
<dd>

```csharp
await client.Forms.GetAsync("id", new GetFormRequestParameters());
await client.Forms.GetAsync(
"id",
new GetFormRequestParameters
{
Hydrate =
[
new List<FormsRequestParametersHydrateEnum?>()
{
FormsRequestParametersHydrateEnum.FlowCount,
},
],
}
);
```
</dd>
</dl>
Expand Down Expand Up @@ -4042,6 +4081,7 @@ await client.Groups.ListAsync(
ConnectionId = "connection_id",
Name = "name",
ExternalId = "external_id",
Search = "search",
Fields = "fields",
IncludeFields = true,
From = "from",
Expand Down Expand Up @@ -6540,6 +6580,7 @@ Retrieve details of all APIs associated with your tenant.
await client.ResourceServers.ListAsync(
new ListResourceServerRequestParameters
{
Identifiers = [new List<string?>() { "identifiers" }],
Page = 1,
PerPage = 1,
IncludeTotals = true,
Expand Down Expand Up @@ -8755,7 +8796,7 @@ await client.UserAttributeProfiles.ListAsync(
<dl>
<dd>

Retrieve details about a single User Attribute Profile specified by ID.
Create a User Attribute Profile
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -13122,6 +13163,7 @@ await client.Clients.Connections.GetAsync(
"id",
new ConnectionsGetRequest
{
Strategy = [new List<ConnectionStrategyEnum?>() { ConnectionStrategyEnum.Ad }],
From = "from",
Take = 1,
Fields = "fields",
Expand Down Expand Up @@ -15174,7 +15216,16 @@ await client.Flows.Executions.ListAsync(
await client.Flows.Executions.GetAsync(
"flow_id",
"execution_id",
new GetFlowExecutionRequestParameters()
new GetFlowExecutionRequestParameters
{
Hydrate =
[
new List<GetFlowExecutionRequestParametersHydrateEnum?>()
{
GetFlowExecutionRequestParametersHydrateEnum.Debug,
},
],
}
);
```
</dd>
Expand Down Expand Up @@ -18607,6 +18658,7 @@ await client.Organizations.ClientGrants.ListAsync(
{
Audience = "audience",
ClientId = "client_id",
GrantIds = [new List<string?>() { "grant_ids" }],
Page = 1,
PerPage = 1,
IncludeTotals = true,
Expand Down Expand Up @@ -23904,7 +23956,7 @@ await client.Users.Sessions.DeleteAsync("user_id");
<dl>
<dd>

List a verifiable credential templates.
List verifiable credential templates.
</dd>
</dl>
</dd>
Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.ManagementApi/Actions/ActionsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ await ListInternalAsync(request, options, cancellationToken).WithRawResponse(),
{
request.Page = offset;
},
request => request.PerPage.GetValueOrDefault(0),
null,
response => response.Actions?.ToList(),
null,
cancellationToken
Expand Down
4 changes: 2 additions & 2 deletions src/Auth0.ManagementApi/Actions/Modules/ModulesClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ await ListInternalAsync(request, options, cancellationToken).WithRawResponse(),
{
request.Page = offset;
},
request => request.PerPage.GetValueOrDefault(0),
null,
response => response.Modules?.ToList(),
null,
cancellationToken
Expand Down Expand Up @@ -809,7 +809,7 @@ await ListActionsInternalAsync(id, request, options, cancellationToken)
{
request.Page = offset;
},
request => request.PerPage.GetValueOrDefault(0),
null,
response => response.Actions?.ToList(),
null,
cancellationToken
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ await ListInternalAsync(id, request, options, cancellationToken)
{
request.Page = offset;
},
request => request.PerPage.GetValueOrDefault(0),
null,
response => response.Versions?.ToList(),
null,
cancellationToken
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ await ListInternalAsync(triggerId, request, options, cancellationToken)
{
request.Page = offset;
},
request => request.PerPage.GetValueOrDefault(0),
null,
response => response.Bindings?.ToList(),
null,
cancellationToken
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ await ListInternalAsync(actionId, request, options, cancellationToken)
{
request.Page = offset;
},
request => request.PerPage.GetValueOrDefault(0),
null,
response => response.Versions?.ToList(),
null,
cancellationToken
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public record ListClientGrantsRequestParameters
public Optional<ClientGrantSubjectTypeEnum?> SubjectType { get; set; }

/// <summary>
/// Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`.
/// Applies this client grant as the default for all clients in the specified group. The only accepted value is <see href="https://auth0.com/docs/get-started/applications/application-access-to-apis-client-grants#default-permissions-for-third-party-applications">`third_party_clients`</see>, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`.
/// </summary>
[JsonIgnore]
public Optional<ClientGrantDefaultForEnum?> DefaultFor { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Auth0.ManagementApi/Clients/ClientsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ await ListInternalAsync(request, options, cancellationToken).WithRawResponse(),
{
request.Page = offset;
},
request => request.PerPage.GetValueOrDefault(0),
null,
response => response.Clients?.ToList(),
null,
cancellationToken
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private async Task<WithRawResponse<ListClientConnectionsResponseContent>> GetInt
/// "id",
/// new ConnectionsGetRequest
/// {
/// Strategy = [new List&lt;ConnectionStrategyEnum?&gt;() { ConnectionStrategyEnum.Ad }],
/// From = "from",
/// Take = 1,
/// Fields = "fields",
Expand Down
1 change: 1 addition & 0 deletions src/Auth0.ManagementApi/Connections/ConnectionsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ private async Task<WithRawResponse<UpdateConnectionResponseContent>> UpdateAsync
/// {
/// From = "from",
/// Take = 1,
/// Strategy = [new List&lt;ConnectionStrategyEnum?&gt;() { ConnectionStrategyEnum.Ad }],
/// Name = "name",
/// Fields = "fields",
/// IncludeFields = true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ await ListInternalAsync(request, options, cancellationToken).WithRawResponse(),
{
request.Page = offset;
},
request => request.PerPage.GetValueOrDefault(0),
null,
response => response.DeviceCredentials?.ToList(),
null,
cancellationToken
Expand Down
11 changes: 10 additions & 1 deletion src/Auth0.ManagementApi/Flows/Executions/ExecutionsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,16 @@ await ListInternalAsync(flowId, request, options, cancellationToken)
/// await client.Flows.Executions.GetAsync(
/// "flow_id",
/// "execution_id",
/// new GetFlowExecutionRequestParameters()
/// new GetFlowExecutionRequestParameters
/// {
/// Hydrate =
/// [
/// new List&lt;GetFlowExecutionRequestParametersHydrateEnum?&gt;()
/// {
/// GetFlowExecutionRequestParametersHydrateEnum.Debug,
/// },
/// ],
/// }
/// );
/// </code></example>
public WithRawResponseTask<GetFlowExecutionResponseContent> GetAsync(
Expand Down
23 changes: 21 additions & 2 deletions src/Auth0.ManagementApi/Flows/FlowsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,13 @@ private async Task<WithRawResponse<UpdateFlowResponseContent>> UpdateAsyncCore(
/// Page = 1,
/// PerPage = 1,
/// IncludeTotals = true,
/// Hydrate =
/// [
/// new List&lt;ListFlowsRequestParametersHydrateEnum?&gt;()
/// {
/// ListFlowsRequestParametersHydrateEnum.FormCount,
/// },
/// ],
/// Synchronous = true,
/// }
/// );
Expand Down Expand Up @@ -427,7 +434,7 @@ await ListInternalAsync(request, options, cancellationToken).WithRawResponse(),
{
request.Page = offset;
},
request => request.PerPage.GetValueOrDefault(0),
null,
response => response.Flows?.ToList(),
null,
cancellationToken
Expand All @@ -451,7 +458,19 @@ public WithRawResponseTask<CreateFlowResponseContent> CreateAsync(
}

/// <example><code>
/// await client.Flows.GetAsync("id", new GetFlowRequestParameters());
/// await client.Flows.GetAsync(
/// "id",
/// new GetFlowRequestParameters
/// {
/// Hydrate =
/// [
/// new List&lt;GetFlowRequestParametersHydrateEnum?&gt;()
/// {
/// GetFlowRequestParametersHydrateEnum.FormCount,
/// },
/// ],
/// }
/// );
/// </code></example>
public WithRawResponseTask<GetFlowResponseContent> GetAsync(
string id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ await ListInternalAsync(request, options, cancellationToken).WithRawResponse(),
{
request.Page = offset;
},
request => request.PerPage.GetValueOrDefault(0),
null,
response => response.Connections?.ToList(),
null,
cancellationToken
Expand Down
23 changes: 21 additions & 2 deletions src/Auth0.ManagementApi/Forms/FormsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,13 @@ private async Task<WithRawResponse<UpdateFormResponseContent>> UpdateAsyncCore(
/// Page = 1,
/// PerPage = 1,
/// IncludeTotals = true,
/// Hydrate =
/// [
/// new List&lt;FormsRequestParametersHydrateEnum?&gt;()
/// {
/// FormsRequestParametersHydrateEnum.FlowCount,
/// },
/// ],
/// }
/// );
/// </code></example>
Expand Down Expand Up @@ -416,7 +423,7 @@ await ListInternalAsync(request, options, cancellationToken).WithRawResponse(),
{
request.Page = offset;
},
request => request.PerPage.GetValueOrDefault(0),
null,
response => response.Forms?.ToList(),
null,
cancellationToken
Expand All @@ -440,7 +447,19 @@ public WithRawResponseTask<CreateFormResponseContent> CreateAsync(
}

/// <example><code>
/// await client.Forms.GetAsync("id", new GetFormRequestParameters());
/// await client.Forms.GetAsync(
/// "id",
/// new GetFormRequestParameters
/// {
/// Hydrate =
/// [
/// new List&lt;FormsRequestParametersHydrateEnum?&gt;()
/// {
/// FormsRequestParametersHydrateEnum.FlowCount,
/// },
/// ],
/// }
/// );
/// </code></example>
public WithRawResponseTask<GetFormResponseContent> GetAsync(
string id,
Expand Down
4 changes: 3 additions & 1 deletion src/Auth0.ManagementApi/Groups/GroupsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ private async Task<WithRawResponse<ListGroupsPaginatedResponseContent>> ListInte
CancellationToken cancellationToken = default
)
{
var _queryString = new Auth0.ManagementApi.Core.QueryStringBuilder.Builder(capacity: 7)
var _queryString = new Auth0.ManagementApi.Core.QueryStringBuilder.Builder(capacity: 8)
.Add(
"connection_id",
request.ConnectionId.IsDefined ? request.ConnectionId.Value : null
)
.Add("name", request.Name.IsDefined ? request.Name.Value : null)
.Add("external_id", request.ExternalId.IsDefined ? request.ExternalId.Value : null)
.Add("search", request.Search.IsDefined ? request.Search.Value : null)
.Add("fields", request.Fields.IsDefined ? request.Fields.Value : null)
.Add(
"include_fields",
Expand Down Expand Up @@ -226,6 +227,7 @@ private async Task<WithRawResponse<GetGroupResponseContent>> GetAsyncCore(
/// ConnectionId = "connection_id",
/// Name = "name",
/// ExternalId = "external_id",
/// Search = "search",
/// Fields = "fields",
/// IncludeFields = true,
/// From = "from",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ public record ListGroupsRequestParameters
[JsonIgnore]
public Optional<string?> ExternalId { get; set; }

/// <summary>
/// Search for groups by name or external ID.
/// </summary>
[JsonIgnore]
public Optional<string?> Search { get; set; }

/// <summary>
/// A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields
/// </summary>
Expand Down
Loading
Loading