-
Notifications
You must be signed in to change notification settings - Fork 55
feat!: generate OrganizationDomains off the OpenAPI spec #1620
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 |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "domain": "foo-corp.com", | ||
| "organization_id": "org_01EHQMYV6MBK39QC5PZXHY59C3" | ||
| } |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "object": "organization_domain", | ||
| "id": "org_domain_01EHZNVPK2QXHMVWCEDQEKY69A", | ||
| "organization_id": "org_01HE8GSH8FQPASKSY27THRKRBP", | ||
| "domain": "foo-corp.com", | ||
| "state": "pending", | ||
| "verification_prefix": "superapp-domain-verification-z3kjny", | ||
| "verification_token": "m5Oztg3jdK4NJLgs8uIlIprMw", | ||
| "verification_strategy": "dns", | ||
| "created_at": "2026-01-15T12:00:00.000Z", | ||
| "updated_at": "2026-01-15T12:00:00.000Z" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| // This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| export interface CreateOrganizationDomain { | ||
| /** The domain to add to the organization. */ | ||
| domain: string; | ||
| /** The ID of the organization to add the domain to. */ | ||
| organizationId: string; | ||
| } | ||
|
|
||
| export interface CreateOrganizationDomainResponse { | ||
| domain: string; | ||
| organization_id: string; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| export interface DeleteOrganizationDomainOptions { | ||
| /** Unique identifier of the organization domain. */ | ||
| id: string; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| export interface GetOrganizationDomainOptions { | ||
| /** Unique identifier of the organization domain. */ | ||
| id: string; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,11 @@ | ||
| // This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| export * from './create-organization-domain-options.interface'; | ||
| export * from './organization-domain.interface'; | ||
| export * from './create-organization-domain.interface'; | ||
| export * from './delete-organization-domain-options.interface'; | ||
| export * from './get-organization-domain-options.interface'; | ||
| export * from './organization-domain-state.interface'; | ||
| export * from './organization-domain-verification-failed.interface'; | ||
| export * from './organization-domain-verification-strategy.interface'; | ||
| export * from './organization-domain.interface'; | ||
| export * from './verify-organization-domain-options.interface'; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| // This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| export enum OrganizationDomainState { | ||
| Failed = 'failed', | ||
| LegacyVerified = 'legacy_verified', | ||
| Pending = 'pending', | ||
| Unverified = 'unverified', | ||
| Verified = 'verified', | ||
| } | ||
|
Comment on lines
+1
to
+9
Contributor
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.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| export enum OrganizationDomainVerificationStrategy { | ||
| Dns = 'dns', | ||
| Manual = 'manual', | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,46 +1,40 @@ | ||
| export enum OrganizationDomainState { | ||
| Verified = 'verified', | ||
| Pending = 'pending', | ||
| Failed = 'failed', | ||
| } | ||
| // This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| export enum OrganizationDomainVerificationStrategy { | ||
| Dns = 'dns', | ||
| Manual = 'manual', | ||
| } | ||
| import type { OrganizationDomainState } from './organization-domain-state.interface'; | ||
| import type { OrganizationDomainVerificationStrategy } from './organization-domain-verification-strategy.interface'; | ||
|
|
||
| export interface OrganizationDomain { | ||
| /** Distinguishes the organization domain object. */ | ||
| object: 'organization_domain'; | ||
| /** Unique identifier of the organization domain. */ | ||
| id: string; | ||
| /** Domain for the organization domain. */ | ||
| domain: string; | ||
| /** ID of the parent Organization. */ | ||
| organizationId: string; | ||
| /** Domain for the organization domain. */ | ||
| domain: string; | ||
| /** Verification state of the domain. */ | ||
| state: OrganizationDomainState; | ||
| state?: OrganizationDomainState; | ||
| /** The prefix used in DNS verification. */ | ||
| verificationPrefix?: string; | ||
| /** Validation token to be used in DNS TXT record. */ | ||
| verificationToken?: string; | ||
| /** Strategy used to verify the domain. */ | ||
| verificationStrategy: OrganizationDomainVerificationStrategy; | ||
| /** The prefix used in DNS verification. */ | ||
| verificationPrefix?: string; | ||
| verificationStrategy?: OrganizationDomainVerificationStrategy; | ||
| /** An ISO 8601 timestamp. */ | ||
| createdAt: string; | ||
| createdAt: Date; | ||
| /** An ISO 8601 timestamp. */ | ||
| updatedAt: string; | ||
| updatedAt: Date; | ||
| } | ||
|
|
||
| export interface OrganizationDomainResponse { | ||
| object: 'organization_domain'; | ||
| id: string; | ||
| domain: string; | ||
| organization_id: string; | ||
| state: OrganizationDomainState; | ||
| verification_token?: string; | ||
| verification_strategy: OrganizationDomainVerificationStrategy; | ||
| domain: string; | ||
| state?: OrganizationDomainState; | ||
| verification_prefix?: string; | ||
| verification_token?: string; | ||
| verification_strategy?: OrganizationDomainVerificationStrategy; | ||
| created_at: string; | ||
| updated_at: string; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // This file is auto-generated by oagen. Do not edit. | ||
|
|
||
| export interface VerifyOrganizationDomainOptions { | ||
| /** Unique identifier of the organization domain. */ | ||
| id: string; | ||
| } |
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.
oagenregenerationinterfaces/index.ts(listed in the oagen manifest) currently exportsorganization-domain-verification-failed.interface.ts, but that interface file itself is not in the manifest. Ifoagenregeneratesindex.tsit will only emit entries for files it tracks, silently dropping theexport * from './organization-domain-verification-failed.interface'line.organization-domain-verification-failed.serializer.tsimports its types from this barrel and would fail to compile after such a regeneration. Either add the verification-failed interface to the manifest, or import it directly in the serializer rather than through the auto-generated barrel.