@opusdns/api 1.80.0 → 1.82.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "@opusdns/api-spec-ts-generator": "^1.2.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "1.80.0",
6
+ "version": "1.82.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -114,6 +114,8 @@ import type {
114
114
  VerificationClaimType,
115
115
  VerificationDeadlineType,
116
116
  VerificationType,
117
+ WhitelabelOnboardingFailureCode,
118
+ WhitelabelOnboardingFailureType,
117
119
  WhitelabelOnboardingStatus,
118
120
  ZoneIncludeField,
119
121
  ZoneSortField,
@@ -1992,6 +1994,40 @@ export const VERIFICATION_TYPE_VALUES = [
1992
1994
  'email',
1993
1995
  ] as const satisfies ReadonlyArray<VerificationType>;
1994
1996
 
1997
+ export const WHITELABEL_ONBOARDING_FAILURE_CODE = {
1998
+ ZONE_NOT_OWNED: "zone_not_owned",
1999
+ DELEGATION_MISSING: "delegation_missing",
2000
+ DELEGATION_MISMATCH: "delegation_mismatch",
2001
+ DNS_RECORD_REJECTED: "dns_record_rejected",
2002
+ AUTH_CLIENT_REJECTED: "auth_client_rejected",
2003
+ BRANDING_REJECTED: "branding_rejected",
2004
+ RETRIES_EXHAUSTED: "retries_exhausted",
2005
+ } as const satisfies Record<string, WhitelabelOnboardingFailureCode>;
2006
+
2007
+ export const WHITELABEL_ONBOARDING_FAILURE_CODE_VALUES = [
2008
+ 'zone_not_owned',
2009
+ 'delegation_missing',
2010
+ 'delegation_mismatch',
2011
+ 'dns_record_rejected',
2012
+ 'auth_client_rejected',
2013
+ 'branding_rejected',
2014
+ 'retries_exhausted',
2015
+ ] as const satisfies ReadonlyArray<WhitelabelOnboardingFailureCode>;
2016
+
2017
+ export const WHITELABEL_ONBOARDING_FAILURE_TYPE = {
2018
+ DNS: "dns",
2019
+ AUTH: "auth",
2020
+ BRANDING: "branding",
2021
+ SYSTEM: "system",
2022
+ } as const satisfies Record<string, WhitelabelOnboardingFailureType>;
2023
+
2024
+ export const WHITELABEL_ONBOARDING_FAILURE_TYPE_VALUES = [
2025
+ 'dns',
2026
+ 'auth',
2027
+ 'branding',
2028
+ 'system',
2029
+ ] as const satisfies ReadonlyArray<WhitelabelOnboardingFailureType>;
2030
+
1995
2031
  export const WHITELABEL_ONBOARDING_STATUS = {
1996
2032
  PENDING_DOMAIN_VERIFICATION: "pending_domain_verification",
1997
2033
  VERIFYING: "verifying",
@@ -425,6 +425,7 @@ import type {
425
425
  Verification,
426
426
  VisitsByKeyBucket,
427
427
  WhitelabelBrandingCreate,
428
+ WhitelabelBrandingRecheck,
428
429
  WhitelabelBranding,
429
430
  WhoisBase,
430
431
  ZoneVanitySetUpdate,
@@ -5763,9 +5764,19 @@ export const KEYS_WHITELABEL_BRANDING_CREATE = [
5763
5764
  KEY_WHITELABEL_BRANDING_CREATE_PERIOD,
5764
5765
  ] as const satisfies (keyof WhitelabelBrandingCreate)[];
5765
5766
 
5767
+ export const KEY_WHITELABEL_BRANDING_RECHECK_AUTH_HOSTNAME = 'auth_hostname' satisfies keyof WhitelabelBrandingRecheck;
5768
+ export const KEY_WHITELABEL_BRANDING_RECHECK_HOSTNAME = 'hostname' satisfies keyof WhitelabelBrandingRecheck;
5769
+
5770
+ export const KEYS_WHITELABEL_BRANDING_RECHECK = [
5771
+ KEY_WHITELABEL_BRANDING_RECHECK_AUTH_HOSTNAME,
5772
+ KEY_WHITELABEL_BRANDING_RECHECK_HOSTNAME,
5773
+ ] as const satisfies (keyof WhitelabelBrandingRecheck)[];
5774
+
5766
5775
  export const KEY_WHITELABEL_BRANDING_AUTH_HOSTNAME = 'auth_hostname' satisfies keyof WhitelabelBranding;
5767
5776
  export const KEY_WHITELABEL_BRANDING_CREATED_ON = 'created_on' satisfies keyof WhitelabelBranding;
5768
- export const KEY_WHITELABEL_BRANDING_FAILURE_REASON = 'failure_reason' satisfies keyof WhitelabelBranding;
5777
+ export const KEY_WHITELABEL_BRANDING_FAILURE_CODE = 'failure_code' satisfies keyof WhitelabelBranding;
5778
+ export const KEY_WHITELABEL_BRANDING_FAILURE_DETAIL = 'failure_detail' satisfies keyof WhitelabelBranding;
5779
+ export const KEY_WHITELABEL_BRANDING_FAILURE_TYPE = 'failure_type' satisfies keyof WhitelabelBranding;
5769
5780
  export const KEY_WHITELABEL_BRANDING_HOSTNAME = 'hostname' satisfies keyof WhitelabelBranding;
5770
5781
  export const KEY_WHITELABEL_BRANDING_KEYCLOAK_CLIENT_ID = 'keycloak_client_id' satisfies keyof WhitelabelBranding;
5771
5782
  export const KEY_WHITELABEL_BRANDING_ONBOARDING_STATUS = 'onboarding_status' satisfies keyof WhitelabelBranding;
@@ -5777,7 +5788,9 @@ export const KEY_WHITELABEL_BRANDING_WHITELABEL_BRANDING_ID = 'whitelabel_brandi
5777
5788
  export const KEYS_WHITELABEL_BRANDING = [
5778
5789
  KEY_WHITELABEL_BRANDING_AUTH_HOSTNAME,
5779
5790
  KEY_WHITELABEL_BRANDING_CREATED_ON,
5780
- KEY_WHITELABEL_BRANDING_FAILURE_REASON,
5791
+ KEY_WHITELABEL_BRANDING_FAILURE_CODE,
5792
+ KEY_WHITELABEL_BRANDING_FAILURE_DETAIL,
5793
+ KEY_WHITELABEL_BRANDING_FAILURE_TYPE,
5781
5794
  KEY_WHITELABEL_BRANDING_HOSTNAME,
5782
5795
  KEY_WHITELABEL_BRANDING_KEYCLOAK_CLIENT_ID,
5783
5796
  KEY_WHITELABEL_BRANDING_ONBOARDING_STATUS,
@@ -564,7 +564,10 @@ export type Verification = components['schemas']['VerificationResponse'];
564
564
  export type VerificationType = components['schemas']['VerificationType'];
565
565
  export type VisitsByKeyBucket = components['schemas']['VisitsByKeyBucket'];
566
566
  export type WhitelabelBrandingCreate = components['schemas']['WhitelabelBrandingCreate'];
567
+ export type WhitelabelBrandingRecheck = components['schemas']['WhitelabelBrandingRecheck'];
567
568
  export type WhitelabelBranding = components['schemas']['WhitelabelBrandingResponse'];
569
+ export type WhitelabelOnboardingFailureCode = components['schemas']['WhitelabelOnboardingFailureCode'];
570
+ export type WhitelabelOnboardingFailureType = components['schemas']['WhitelabelOnboardingFailureType'];
568
571
  export type WhitelabelOnboardingStatus = components['schemas']['WhitelabelOnboardingStatus'];
569
572
  export type WhoisBase = components['schemas']['WhoisBase'];
570
573
  export type ZoneIncludeField = components['schemas']['ZoneIncludeField'];
package/src/openapi.yaml CHANGED
@@ -14389,6 +14389,31 @@ components:
14389
14389
  - period
14390
14390
  title: WhitelabelBrandingCreate
14391
14391
  type: object
14392
+ WhitelabelBrandingRecheck:
14393
+ description: 'Public recheck body. Empty = re-run onboarding against the stored
14394
+ hosts (retry after
14395
+
14396
+ fixing DNS). Both hosts present = re-point a wrong domain before re-running
14397
+ (pre-provisioning
14398
+
14399
+ only; server rejects once a Keycloak client exists).'
14400
+ properties:
14401
+ auth_hostname:
14402
+ anyOf:
14403
+ - maxLength: 255
14404
+ minLength: 1
14405
+ type: string
14406
+ - type: 'null'
14407
+ title: Auth Hostname
14408
+ hostname:
14409
+ anyOf:
14410
+ - maxLength: 255
14411
+ minLength: 1
14412
+ type: string
14413
+ - type: 'null'
14414
+ title: Hostname
14415
+ title: WhitelabelBrandingRecheck
14416
+ type: object
14392
14417
  WhitelabelBrandingResponse:
14393
14418
  description: Public read shape for an organization's whitelabel branding config.
14394
14419
  properties:
@@ -14401,11 +14426,20 @@ components:
14401
14426
  format: date-time
14402
14427
  title: Created On
14403
14428
  type: string
14404
- failure_reason:
14429
+ failure_code:
14430
+ anyOf:
14431
+ - $ref: '#/components/schemas/WhitelabelOnboardingFailureCode'
14432
+ - type: 'null'
14433
+ failure_detail:
14405
14434
  anyOf:
14406
14435
  - type: string
14407
14436
  - type: 'null'
14408
- title: Failure Reason
14437
+ title: Failure Detail
14438
+ failure_type:
14439
+ anyOf:
14440
+ - $ref: '#/components/schemas/WhitelabelOnboardingFailureType'
14441
+ - type: 'null'
14442
+ readOnly: true
14409
14443
  hostname:
14410
14444
  maxLength: 255
14411
14445
  minLength: 1
@@ -14453,11 +14487,34 @@ components:
14453
14487
  - auth_hostname
14454
14488
  - verification_domain
14455
14489
  - keycloak_client_id
14456
- - failure_reason
14457
14490
  - created_on
14458
14491
  - updated_on
14492
+ - failure_type
14459
14493
  title: WhitelabelBrandingResponse
14460
14494
  type: object
14495
+ WhitelabelOnboardingFailureCode:
14496
+ description: 'Stable, frontend-facing reason a terminal onboarding failure happened.
14497
+ The free-text
14498
+
14499
+ detail that accompanies it is for support/debugging, never for customer display.'
14500
+ enum:
14501
+ - zone_not_owned
14502
+ - delegation_missing
14503
+ - delegation_mismatch
14504
+ - dns_record_rejected
14505
+ - auth_client_rejected
14506
+ - branding_rejected
14507
+ - retries_exhausted
14508
+ title: WhitelabelOnboardingFailureCode
14509
+ type: string
14510
+ WhitelabelOnboardingFailureType:
14511
+ enum:
14512
+ - dns
14513
+ - auth
14514
+ - branding
14515
+ - system
14516
+ title: WhitelabelOnboardingFailureType
14517
+ type: string
14461
14518
  WhitelabelOnboardingStatus:
14462
14519
  enum:
14463
14520
  - pending_domain_verification
@@ -14793,7 +14850,7 @@ info:
14793
14850
  \n\n"
14794
14851
  summary: OpusDNS - your gateway to a seamless domain management experience.
14795
14852
  title: OpusDNS API
14796
- version: 2026-07-26-224919
14853
+ version: 2026-07-27-084121
14797
14854
  x-logo:
14798
14855
  altText: OpusDNS API Reference
14799
14856
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -31433,6 +31490,14 @@ paths:
31433
31490
  operationId: recheck_whitelabel_branding_v1_whitelabel_branding_recheck_post
31434
31491
  parameters:
31435
31492
  - $ref: '#/components/parameters/DatetimeFormatHeader'
31493
+ requestBody:
31494
+ content:
31495
+ application/json:
31496
+ schema:
31497
+ anyOf:
31498
+ - $ref: '#/components/schemas/WhitelabelBrandingRecheck'
31499
+ - type: 'null'
31500
+ title: Body
31436
31501
  responses:
31437
31502
  '202':
31438
31503
  content:
package/src/schema.d.ts CHANGED
@@ -12411,6 +12411,18 @@ export interface components {
12411
12411
  /** @description Billing period for the subscription; offered: 1 month or 1 year */
12412
12412
  period: components["schemas"]["Period"];
12413
12413
  };
12414
+ /**
12415
+ * WhitelabelBrandingRecheck
12416
+ * @description Public recheck body. Empty = re-run onboarding against the stored hosts (retry after
12417
+ * fixing DNS). Both hosts present = re-point a wrong domain before re-running (pre-provisioning
12418
+ * only; server rejects once a Keycloak client exists).
12419
+ */
12420
+ WhitelabelBrandingRecheck: {
12421
+ /** Auth Hostname */
12422
+ auth_hostname?: string | null;
12423
+ /** Hostname */
12424
+ hostname?: string | null;
12425
+ };
12414
12426
  /**
12415
12427
  * WhitelabelBrandingResponse
12416
12428
  * @description Public read shape for an organization's whitelabel branding config.
@@ -12423,8 +12435,10 @@ export interface components {
12423
12435
  * Format: date-time
12424
12436
  */
12425
12437
  created_on: Date;
12426
- /** Failure Reason */
12427
- failure_reason: string | null;
12438
+ failure_code?: components["schemas"]["WhitelabelOnboardingFailureCode"] | null;
12439
+ /** Failure Detail */
12440
+ failure_detail?: string | null;
12441
+ readonly failure_type: components["schemas"]["WhitelabelOnboardingFailureType"] | null;
12428
12442
  /** Hostname */
12429
12443
  hostname: string;
12430
12444
  /** Keycloak Client Id */
@@ -12450,6 +12464,18 @@ export interface components {
12450
12464
  */
12451
12465
  whitelabel_branding_id: TypeId<"wlb">;
12452
12466
  };
12467
+ /**
12468
+ * WhitelabelOnboardingFailureCode
12469
+ * @description Stable, frontend-facing reason a terminal onboarding failure happened. The free-text
12470
+ * detail that accompanies it is for support/debugging, never for customer display.
12471
+ * @enum {string}
12472
+ */
12473
+ WhitelabelOnboardingFailureCode: "zone_not_owned" | "delegation_missing" | "delegation_mismatch" | "dns_record_rejected" | "auth_client_rejected" | "branding_rejected" | "retries_exhausted";
12474
+ /**
12475
+ * WhitelabelOnboardingFailureType
12476
+ * @enum {string}
12477
+ */
12478
+ WhitelabelOnboardingFailureType: "dns" | "auth" | "branding" | "system";
12453
12479
  /**
12454
12480
  * WhitelabelOnboardingStatus
12455
12481
  * @enum {string}
@@ -26434,7 +26460,11 @@ export interface operations {
26434
26460
  path?: never;
26435
26461
  cookie?: never;
26436
26462
  };
26437
- requestBody?: never;
26463
+ requestBody?: {
26464
+ content: {
26465
+ "application/json": components["schemas"]["WhitelabelBrandingRecheck"] | null;
26466
+ };
26467
+ };
26438
26468
  responses: {
26439
26469
  /** @description Successful Response */
26440
26470
  202: {