-
Notifications
You must be signed in to change notification settings - Fork 11
feat!(generated): regenerate from spec (7 changes) #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 92db0495807c86fbbc4d45bd266a6c1f5bcbb59c | ||
| ff939ff075453287993e1e6182f1d6f23c67ab80 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| // This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| namespace WorkOS | ||
| { | ||
| using System.Collections.Generic; | ||
|
|
||
| /// <summary>Represents a create user api key.</summary> | ||
| public class CreateUserApiKey | ||
| { | ||
|
|
||
| /// <summary>A descriptive name for the API key.</summary> | ||
| public string Name { get; set; } = default!; | ||
|
|
||
| /// <summary>The ID of the organization the user API key is associated with. The user must have an active membership in this organization.</summary> | ||
| public string OrganizationId { get; set; } = default!; | ||
|
|
||
| /// <summary>The permission slugs to assign to the API key. Each permission must be enabled for user API keys.</summary> | ||
| public List<string>? Permissions { get; set; } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| // This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| namespace WorkOS | ||
| { | ||
| using System; | ||
| using System.Collections.Generic; | ||
|
|
||
| /// <summary>Represents an organization api key.</summary> | ||
| public class OrganizationApiKey | ||
| { | ||
|
|
||
| /// <summary>Distinguishes the API Key object.</summary> | ||
| public string Object { get; internal set; } = "api_key"; | ||
|
|
||
| /// <summary>Unique identifier of the API Key.</summary> | ||
| public string Id { get; set; } = default!; | ||
|
|
||
| /// <summary>The entity that owns the API Key.</summary> | ||
| public ApiKeyCreatedDataOwner Owner { get; set; } = default!; | ||
|
|
||
| /// <summary>A descriptive name for the API Key.</summary> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| public string Name { get; set; } = default!; | ||
|
|
||
| /// <summary>An obfuscated representation of the API Key value.</summary> | ||
| public string ObfuscatedValue { get; set; } = default!; | ||
|
|
||
| /// <summary>Timestamp of when the API Key was last used.</summary> | ||
| public DateTimeOffset? LastUsedAt { get; set; } | ||
|
|
||
| /// <summary>The permission slugs assigned to the API Key.</summary> | ||
| public List<string> Permissions { get; set; } = default!; | ||
|
|
||
| /// <summary>An ISO 8601 timestamp.</summary> | ||
| public DateTimeOffset CreatedAt { get; set; } | ||
|
|
||
| /// <summary>An ISO 8601 timestamp.</summary> | ||
| public DateTimeOffset UpdatedAt { get; set; } | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CreateUserApiKeyentity is unreferenced dead codeThis class is not used anywhere in service or client code —
UserManagementService.CreateApiKeyAsyncacceptsUserManagementCreateApiKeyOptions(which carries the same three fields:Name,OrganizationId,Permissions).CreateUserApiKeyonly appears in the generated manifest. Shipping a public class that mirrors a request-options class adds API-surface noise and may confuse consumers about which type to use when creating user API keys.