Skip to content
Open
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
1,129 changes: 1,115 additions & 14 deletions api/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ public partial class ApiKeysRequestBuilder : BaseRequestBuilder
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public ApiKeysRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/api-keys{?cursor*,include_inactive*,intended_use*,limit*,mode*,scope*}", pathParameters)
public ApiKeysRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/api-keys{?cursor*,include*,include_inactive*,intended_use*,limit*,mode*,q*,scope*}", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="global::Substratal.Hub.Core.Api.Generated.ApiKeys.ApiKeysRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public ApiKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/api-keys{?cursor*,include_inactive*,intended_use*,limit*,mode*,scope*}", rawUrl)
public ApiKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/api-keys{?cursor*,include*,include_inactive*,intended_use*,limit*,mode*,q*,scope*}", rawUrl)
{
}
/// <summary>
Expand Down Expand Up @@ -167,6 +167,9 @@ public partial class ApiKeysRequestBuilderGetQueryParameters
public string Cursor { get; set; }
#pragma warning restore CS1591
#endif
/// <summary>`total` adds `page.total` and `page.total_capped`: the number of rows matching the current filters across every page, counted up to 10,000 (Conventions → Pagination). Omitted unless requested.</summary>
[QueryParameter("include")]
public global::Substratal.Hub.Core.Api.Generated.ApiKeys.GetIncludeQueryParameterType? Include { get; set; }
/// <summary>Include revoked and expired keys</summary>
[QueryParameter("include_inactive")]
public bool? IncludeInactive { get; set; }
Expand All @@ -182,6 +185,16 @@ public partial class ApiKeysRequestBuilderGetQueryParameters
[QueryParameter("mode")]
public global::Substratal.Hub.Core.Api.Generated.ApiKeys.GetModeQueryParameterType? Mode { get; set; }
#pragma warning restore CS1591
/// <summary>Case-insensitive prefix match on name</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
[QueryParameter("q")]
public string? Q { get; set; }
#nullable restore
#else
[QueryParameter("q")]
public string Q { get; set; }
#endif
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
#pragma warning disable CS1591
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// <auto-generated/>
using System.Runtime.Serialization;
using System;
namespace Substratal.Hub.Core.Api.Generated.ApiKeys
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public enum GetIncludeQueryParameterType
#pragma warning restore CS1591
{
[EnumMember(Value = "total")]
#pragma warning disable CS1591
Total,
#pragma warning restore CS1591
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
return await RequestAdapter.SendAsync<global::Substratal.Hub.Core.Api.Generated.Models.ApiKey>(requestInfo, global::Substratal.Hub.Core.Api.Generated.Models.ApiKey.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Change name, permissions, or restrict_destructive
/// Change name, permissions, restrict_destructive, or rate_limit_per_minute (api_keys.manage only)
/// </summary>
/// <returns>A <see cref="global::Substratal.Hub.Core.Api.Generated.Models.ApiKey"/></returns>
/// <param name="body">The request body</param>
Expand Down Expand Up @@ -156,7 +156,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<De
return requestInfo;
}
/// <summary>
/// Change name, permissions, or restrict_destructive
/// Change name, permissions, restrict_destructive, or rate_limit_per_minute (api_keys.manage only)
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ public List<string> Permissions
set { BackingStore?.Set("permissions", value); }
}
#endif
/// <summary>Platform api_keys.manage only (403 forbidden otherwise). Null restores the platform default.</summary>
public int? RateLimitPerMinute
{
get { return BackingStore?.Get<int?>("rate_limit_per_minute"); }
set { BackingStore?.Set("rate_limit_per_minute", value); }
}
/// <summary>The restrict_destructive property</summary>
public bool? RestrictDestructive
{
Expand Down Expand Up @@ -87,6 +93,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
{ "name", n => { Name = n.GetStringValue(); } },
{ "permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
{ "rate_limit_per_minute", n => { RateLimitPerMinute = n.GetIntValue(); } },
{ "restrict_destructive", n => { RestrictDestructive = n.GetBoolValue(); } },
};
}
Expand All @@ -99,6 +106,7 @@ public virtual void Serialize(ISerializationWriter writer)
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("name", Name);
writer.WriteCollectionOfPrimitiveValues<string>("permissions", Permissions);
writer.WriteIntValue("rate_limit_per_minute", RateLimitPerMinute);
writer.WriteBoolValue("restrict_destructive", RestrictDestructive);
writer.WriteAdditionalData(AdditionalData);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,25 @@ public partial class ApplicationsRequestBuilder : BaseRequestBuilder
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public ApplicationsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications{?access_tier*,cursor*,limit*,owned*,owner_organization_id*,owner_user_id*,review_status*,tenant_id*,visibility*}", pathParameters)
public ApplicationsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications{?access_tier*,cursor*,include*,include_inactive*,limit*,owned*,owner_organization_id*,owner_user_id*,q*,review_status*,sort*,tenant_id*,visibility*}", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="global::Substratal.Hub.Core.Api.Generated.Applications.ApplicationsRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public ApplicationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications{?access_tier*,cursor*,limit*,owned*,owner_organization_id*,owner_user_id*,review_status*,tenant_id*,visibility*}", rawUrl)
public ApplicationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications{?access_tier*,cursor*,include*,include_inactive*,limit*,owned*,owner_organization_id*,owner_user_id*,q*,review_status*,sort*,tenant_id*,visibility*}", rawUrl)
{
}
/// <summary>
/// List the catalog (filtered by visibility rules)
/// Newest first by created_at, ties broken by id. With applications.manage, review_status=pending_review is the review queue and defaults to oldest-waiting first, by review_requested_at (falling back to created_at). sort sets the order explicitly by created_at: created_at for oldest first, -created_at for newest first, in the queue too. A cursor is only valid under the sort it was issued with.
/// </summary>
/// <returns>A <see cref="global::Substratal.Hub.Core.Api.Generated.Models.ApplicationSummaryPage"/></returns>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <exception cref="global::Substratal.Hub.Core.Api.Generated.Models.Error">When receiving a 400 status code</exception>
/// <exception cref="global::Substratal.Hub.Core.Api.Generated.Models.Error">When receiving a 422 status code</exception>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task<global::Substratal.Hub.Core.Api.Generated.Models.ApplicationSummaryPage?> GetAsync(Action<RequestConfiguration<global::Substratal.Hub.Core.Api.Generated.Applications.ApplicationsRequestBuilder.ApplicationsRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
Expand All @@ -66,11 +67,12 @@ public ApplicationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{ "400", global::Substratal.Hub.Core.Api.Generated.Models.Error.CreateFromDiscriminatorValue },
{ "422", global::Substratal.Hub.Core.Api.Generated.Models.Error.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<global::Substratal.Hub.Core.Api.Generated.Models.ApplicationSummaryPage>(requestInfo, global::Substratal.Hub.Core.Api.Generated.Models.ApplicationSummaryPage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// applications.manage creates any Application, approved by default (concierge onboarding). Any other User with a verified email may submit their own: it&apos;s owned by the caller (or an Organization they&apos;re an org_admin of), starts in pending_review, and can&apos;t set visibility, access_tier, review_status, or review_notes (403 moderation_field_forbidden). Unverified email is 403 email_not_verified; API Keys without applications.manage are 403 forbidden. Self-service submissions are limited to 10 per User per day.
/// applications.manage creates any Application, approved by default (concierge onboarding). Any other User with a verified email may submit their own: it&apos;s owned by the caller (or an Organization they&apos;re an org_admin of), starts in pending_review, and can&apos;t set visibility, review_status, or review_notes (403 moderation_field_forbidden). Its access_tier is free or restricted (the default); standard is 422 access_tier_reserved. Unverified email is 403 email_not_verified; API Keys without applications.manage are 403 forbidden. Self-service submissions are limited to 10 per User per day.
/// </summary>
/// <returns>A <see cref="global::Substratal.Hub.Core.Api.Generated.Models.Application"/></returns>
/// <param name="body">The request body</param>
Expand Down Expand Up @@ -103,7 +105,7 @@ public ApplicationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
return await RequestAdapter.SendAsync<global::Substratal.Hub.Core.Api.Generated.Models.Application>(requestInfo, global::Substratal.Hub.Core.Api.Generated.Models.Application.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// List the catalog (filtered by visibility rules)
/// Newest first by created_at, ties broken by id. With applications.manage, review_status=pending_review is the review queue and defaults to oldest-waiting first, by review_requested_at (falling back to created_at). sort sets the order explicitly by created_at: created_at for oldest first, -created_at for newest first, in the queue too. A cursor is only valid under the sort it was issued with.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand All @@ -122,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
return requestInfo;
}
/// <summary>
/// applications.manage creates any Application, approved by default (concierge onboarding). Any other User with a verified email may submit their own: it&apos;s owned by the caller (or an Organization they&apos;re an org_admin of), starts in pending_review, and can&apos;t set visibility, access_tier, review_status, or review_notes (403 moderation_field_forbidden). Unverified email is 403 email_not_verified; API Keys without applications.manage are 403 forbidden. Self-service submissions are limited to 10 per User per day.
/// applications.manage creates any Application, approved by default (concierge onboarding). Any other User with a verified email may submit their own: it&apos;s owned by the caller (or an Organization they&apos;re an org_admin of), starts in pending_review, and can&apos;t set visibility, review_status, or review_notes (403 moderation_field_forbidden). Its access_tier is free or restricted (the default); standard is 422 access_tier_reserved. Unverified email is 403 email_not_verified; API Keys without applications.manage are 403 forbidden. Self-service submissions are limited to 10 per User per day.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
Expand Down Expand Up @@ -153,7 +155,7 @@ public RequestInformation ToPostRequestInformation(global::Substratal.Hub.Core.A
return new global::Substratal.Hub.Core.Api.Generated.Applications.ApplicationsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// List the catalog (filtered by visibility rules)
/// Newest first by created_at, ties broken by id. With applications.manage, review_status=pending_review is the review queue and defaults to oldest-waiting first, by review_requested_at (falling back to created_at). sort sets the order explicitly by created_at: created_at for oldest first, -created_at for newest first, in the queue too. A cursor is only valid under the sort it was issued with.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class ApplicationsRequestBuilderGetQueryParameters
Expand All @@ -175,6 +177,12 @@ public partial class ApplicationsRequestBuilderGetQueryParameters
public string Cursor { get; set; }
#pragma warning restore CS1591
#endif
/// <summary>`total` adds `page.total` and `page.total_capped`: the number of rows matching the current filters across every page, counted up to 10,000 (Conventions → Pagination). Omitted unless requested.</summary>
[QueryParameter("include")]
public global::Substratal.Hub.Core.Api.Generated.Applications.GetIncludeQueryParameterType? Include { get; set; }
/// <summary>Include retired Applications (also included by review_status=retired)</summary>
[QueryParameter("include_inactive")]
public bool? IncludeInactive { get; set; }
#pragma warning disable CS1591
[QueryParameter("limit")]
public int? Limit { get; set; }
Expand Down Expand Up @@ -208,11 +216,24 @@ public partial class ApplicationsRequestBuilderGetQueryParameters
[QueryParameter("owner_user_id")]
public string OwnerUserId { get; set; }
#pragma warning restore CS1591
#endif
/// <summary>Case-insensitive prefix match on name or slug</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
[QueryParameter("q")]
public string? Q { get; set; }
#nullable restore
#else
[QueryParameter("q")]
public string Q { get; set; }
#endif
#pragma warning disable CS1591
[QueryParameter("review_status")]
public global::Substratal.Hub.Core.Api.Generated.Models.ApplicationReviewStatus? ReviewStatus { get; set; }
#pragma warning restore CS1591
/// <summary>created_at (oldest first) or -created_at (newest first). Ties are broken by id in the same direction.</summary>
[QueryParameter("sort")]
public global::Substratal.Hub.Core.Api.Generated.Applications.GetSortQueryParameterType? Sort { get; set; }
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
#pragma warning disable CS1591
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// <auto-generated/>
using System.Runtime.Serialization;
using System;
namespace Substratal.Hub.Core.Api.Generated.Applications
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public enum GetIncludeQueryParameterType
#pragma warning restore CS1591
{
[EnumMember(Value = "total")]
#pragma warning disable CS1591
Total,
#pragma warning restore CS1591
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// <auto-generated/>
using System.Runtime.Serialization;
using System;
namespace Substratal.Hub.Core.Api.Generated.Applications
{
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
public enum GetSortQueryParameterType
#pragma warning restore CS1591
{
[EnumMember(Value = "created_at")]
#pragma warning disable CS1591
Created_at,
#pragma warning restore CS1591
[EnumMember(Value = "-created_at")]
#pragma warning disable CS1591
Minus_created_at,
#pragma warning restore CS1591
}
}
Loading