@opusdns/api 1.162.0 → 1.163.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.5.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "1.162.0",
6
+ "version": "1.163.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -123,6 +123,7 @@ import type {
123
123
  VerificationDeadlineType,
124
124
  VerificationType,
125
125
  WhitelabelBrandingTier,
126
+ WhitelabelDnsCheckReason,
126
127
  WhitelabelOnboardingFailureCode,
127
128
  WhitelabelOnboardingFailureType,
128
129
  WhitelabelOnboardingStatus,
@@ -2324,6 +2325,20 @@ export const WHITELABEL_BRANDING_TIER_VALUES = [
2324
2325
  'plus',
2325
2326
  ] as const satisfies ReadonlyArray<WhitelabelBrandingTier>;
2326
2327
 
2328
+ export const WHITELABEL_DNS_CHECK_REASON = {
2329
+ VERIFIED: "verified",
2330
+ MISSING: "missing",
2331
+ MISMATCH: "mismatch",
2332
+ DNS_ERROR: "dns_error",
2333
+ } as const satisfies Record<string, WhitelabelDnsCheckReason>;
2334
+
2335
+ export const WHITELABEL_DNS_CHECK_REASON_VALUES = [
2336
+ 'verified',
2337
+ 'missing',
2338
+ 'mismatch',
2339
+ 'dns_error',
2340
+ ] as const satisfies ReadonlyArray<WhitelabelDnsCheckReason>;
2341
+
2327
2342
  export const WHITELABEL_ONBOARDING_FAILURE_CODE = {
2328
2343
  ZONE_NOT_OWNED: "zone_not_owned",
2329
2344
  DELEGATION_MISSING: "delegation_missing",
@@ -149,6 +149,7 @@ export const VANITY_NAMESERVER_SETS_BY_SET_ID_ZONES_ENDPOINT = '/v1/vanity-names
149
149
  export const WHITELABEL_BRANDING_ENDPOINT = '/v1/whitelabel-branding';
150
150
  export const WHITELABEL_BRANDING_ASSETS_ENDPOINT = '/v1/whitelabel-branding/assets';
151
151
  export const WHITELABEL_BRANDING_ASSETS_BY_ASSET_ID_ENDPOINT = '/v1/whitelabel-branding/assets/{asset_id}';
152
+ export const WHITELABEL_BRANDING_DNS_CHECK_ENDPOINT = '/v1/whitelabel-branding/dns-check';
152
153
  export const WHITELABEL_BRANDING_DOCUMENT_ENDPOINT = '/v1/whitelabel-branding/document';
153
154
  export const WHITELABEL_BRANDING_EMAIL_PREVIEW_ENDPOINT = '/v1/whitelabel-branding/email/preview';
154
155
  export const WHITELABEL_BRANDING_EMAIL_TEMPLATES_ENDPOINT = '/v1/whitelabel-branding/email/templates';
@@ -308,6 +309,7 @@ export type Endpoint =
308
309
  | typeof WHITELABEL_BRANDING_ENDPOINT
309
310
  | typeof WHITELABEL_BRANDING_ASSETS_ENDPOINT
310
311
  | typeof WHITELABEL_BRANDING_ASSETS_BY_ASSET_ID_ENDPOINT
312
+ | typeof WHITELABEL_BRANDING_DNS_CHECK_ENDPOINT
311
313
  | typeof WHITELABEL_BRANDING_DOCUMENT_ENDPOINT
312
314
  | typeof WHITELABEL_BRANDING_EMAIL_PREVIEW_ENDPOINT
313
315
  | typeof WHITELABEL_BRANDING_EMAIL_TEMPLATES_ENDPOINT
@@ -446,6 +446,8 @@ import type {
446
446
  WhitelabelBrandingPatch,
447
447
  WhitelabelBrandingRecheck,
448
448
  WhitelabelBranding,
449
+ WhitelabelDnsCheckItem,
450
+ WhitelabelDnsCheck,
449
451
  WhitelabelPlusCreate,
450
452
  WhitelabelSubscriptionInfo,
451
453
  WhitelabelUpgradeToPlus,
@@ -6062,6 +6064,32 @@ export const KEYS_WHITELABEL_BRANDING = [
6062
6064
  KEY_WHITELABEL_BRANDING_WHITELABEL_BRANDING_ID,
6063
6065
  ] as const satisfies (keyof WhitelabelBranding)[];
6064
6066
 
6067
+ export const KEY_WHITELABEL_DNS_CHECK_ITEM_EXPECTED = 'expected' satisfies keyof WhitelabelDnsCheckItem;
6068
+ export const KEY_WHITELABEL_DNS_CHECK_ITEM_NAME = 'name' satisfies keyof WhitelabelDnsCheckItem;
6069
+ export const KEY_WHITELABEL_DNS_CHECK_ITEM_OBSERVED = 'observed' satisfies keyof WhitelabelDnsCheckItem;
6070
+ export const KEY_WHITELABEL_DNS_CHECK_ITEM_OK = 'ok' satisfies keyof WhitelabelDnsCheckItem;
6071
+ export const KEY_WHITELABEL_DNS_CHECK_ITEM_REASON = 'reason' satisfies keyof WhitelabelDnsCheckItem;
6072
+ export const KEY_WHITELABEL_DNS_CHECK_ITEM_REQUIRED = 'required' satisfies keyof WhitelabelDnsCheckItem;
6073
+ export const KEY_WHITELABEL_DNS_CHECK_ITEM_TYPE = 'type' satisfies keyof WhitelabelDnsCheckItem;
6074
+
6075
+ export const KEYS_WHITELABEL_DNS_CHECK_ITEM = [
6076
+ KEY_WHITELABEL_DNS_CHECK_ITEM_EXPECTED,
6077
+ KEY_WHITELABEL_DNS_CHECK_ITEM_NAME,
6078
+ KEY_WHITELABEL_DNS_CHECK_ITEM_OBSERVED,
6079
+ KEY_WHITELABEL_DNS_CHECK_ITEM_OK,
6080
+ KEY_WHITELABEL_DNS_CHECK_ITEM_REASON,
6081
+ KEY_WHITELABEL_DNS_CHECK_ITEM_REQUIRED,
6082
+ KEY_WHITELABEL_DNS_CHECK_ITEM_TYPE,
6083
+ ] as const satisfies (keyof WhitelabelDnsCheckItem)[];
6084
+
6085
+ export const KEY_WHITELABEL_DNS_CHECK_CHECKS = 'checks' satisfies keyof WhitelabelDnsCheck;
6086
+ export const KEY_WHITELABEL_DNS_CHECK_READY = 'ready' satisfies keyof WhitelabelDnsCheck;
6087
+
6088
+ export const KEYS_WHITELABEL_DNS_CHECK = [
6089
+ KEY_WHITELABEL_DNS_CHECK_CHECKS,
6090
+ KEY_WHITELABEL_DNS_CHECK_READY,
6091
+ ] as const satisfies (keyof WhitelabelDnsCheck)[];
6092
+
6065
6093
  export const KEY_WHITELABEL_PLUS_CREATE_AUTH_SUBDOMAIN = 'auth_subdomain' satisfies keyof WhitelabelPlusCreate;
6066
6094
  export const KEY_WHITELABEL_PLUS_CREATE_CREATE_ZONE = 'create_zone' satisfies keyof WhitelabelPlusCreate;
6067
6095
  export const KEY_WHITELABEL_PLUS_CREATE_DASHBOARD_SUBDOMAIN = 'dashboard_subdomain' satisfies keyof WhitelabelPlusCreate;
@@ -152,6 +152,7 @@ import {
152
152
  VANITY_NAMESERVER_SETS_ENDPOINT,
153
153
  WHITELABEL_BRANDING_ASSETS_BY_ASSET_ID_ENDPOINT,
154
154
  WHITELABEL_BRANDING_ASSETS_ENDPOINT,
155
+ WHITELABEL_BRANDING_DNS_CHECK_ENDPOINT,
155
156
  WHITELABEL_BRANDING_DOCUMENT_ENDPOINT,
156
157
  WHITELABEL_BRANDING_EMAIL_PREVIEW_ENDPOINT,
157
158
  WHITELABEL_BRANDING_EMAIL_TEMPLATES_ENDPOINT,
@@ -1277,6 +1278,13 @@ export const REQUIRED_PERMISSIONS = {
1277
1278
  patch: [],
1278
1279
  delete: [],
1279
1280
  },
1281
+ [WHITELABEL_BRANDING_DNS_CHECK_ENDPOINT]: {
1282
+ get: [PUBLIC_PERMISSION.WHITELABEL_BRANDING_READ],
1283
+ post: [],
1284
+ put: [],
1285
+ patch: [],
1286
+ delete: [],
1287
+ },
1280
1288
  [WHITELABEL_BRANDING_DOCUMENT_ENDPOINT]: {
1281
1289
  get: [PUBLIC_PERMISSION.WHITELABEL_BRANDING_READ],
1282
1290
  post: [PUBLIC_PERMISSION.WHITELABEL_BRANDING_MANAGE],
@@ -1203,6 +1203,9 @@ export type DELETE_WhitelabelBrandingAssetsByAssetId_Request = {
1203
1203
  };
1204
1204
  export type DELETE_WhitelabelBrandingAssetsByAssetId_Request_Path = DELETE_WhitelabelBrandingAssetsByAssetId_Request['parameters']['path'];
1205
1205
 
1206
+ export type GET_WhitelabelBrandingDnsCheck_Request = {
1207
+ };
1208
+
1206
1209
  export type GET_WhitelabelBrandingDocument_Request = {
1207
1210
  };
1208
1211
 
@@ -120,6 +120,7 @@ import type {
120
120
  VanityNameserverSetSummaryDTO,
121
121
  VanityNsCheckRes,
122
122
  WhitelabelBranding,
123
+ WhitelabelDnsCheck,
123
124
  } from './schemas';
124
125
 
125
126
  export type DELETE_AiConciergeConversationsByConversationId_Response = DELETE_AiConciergeConversationsByConversationId_Response_401 | DELETE_AiConciergeConversationsByConversationId_Response_404 | DELETE_AiConciergeConversationsByConversationId_Response_422 | DELETE_AiConciergeConversationsByConversationId_Response_502;
@@ -887,6 +888,11 @@ export type GET_WhitelabelBrandingAssets_Response = GET_WhitelabelBrandingAssets
887
888
  export type GET_WhitelabelBrandingAssets_Response_200 = ListBrandingAssets;
888
889
  export type GET_WhitelabelBrandingAssets_Response_422 = HTTPValidationError;
889
890
 
891
+ export type GET_WhitelabelBrandingDnsCheck_Response = GET_WhitelabelBrandingDnsCheck_Response_200 | GET_WhitelabelBrandingDnsCheck_Response_422;
892
+
893
+ export type GET_WhitelabelBrandingDnsCheck_Response_200 = WhitelabelDnsCheck;
894
+ export type GET_WhitelabelBrandingDnsCheck_Response_422 = HTTPValidationError;
895
+
890
896
  export type GET_WhitelabelBrandingDocument_Response = GET_WhitelabelBrandingDocument_Response_200 | GET_WhitelabelBrandingDocument_Response_422;
891
897
 
892
898
  export type GET_WhitelabelBrandingDocument_Response_200 = BrandingDocument;
@@ -594,6 +594,9 @@ export type WhitelabelBrandingPatch = components['schemas']['WhitelabelBrandingP
594
594
  export type WhitelabelBrandingRecheck = components['schemas']['WhitelabelBrandingRecheck'];
595
595
  export type WhitelabelBranding = components['schemas']['WhitelabelBrandingResponse'];
596
596
  export type WhitelabelBrandingTier = components['schemas']['WhitelabelBrandingTier'];
597
+ export type WhitelabelDnsCheckItem = components['schemas']['WhitelabelDnsCheckItem'];
598
+ export type WhitelabelDnsCheckReason = components['schemas']['WhitelabelDnsCheckReason'];
599
+ export type WhitelabelDnsCheck = components['schemas']['WhitelabelDnsCheckResponse'];
597
600
  export type WhitelabelOnboardingFailureCode = components['schemas']['WhitelabelOnboardingFailureCode'];
598
601
  export type WhitelabelOnboardingFailureType = components['schemas']['WhitelabelOnboardingFailureType'];
599
602
  export type WhitelabelOnboardingStatus = components['schemas']['WhitelabelOnboardingStatus'];
package/src/openapi.yaml CHANGED
@@ -15673,6 +15673,64 @@ components:
15673
15673
  - plus
15674
15674
  title: WhitelabelBrandingTier
15675
15675
  type: string
15676
+ WhitelabelDnsCheckItem:
15677
+ properties:
15678
+ expected:
15679
+ items:
15680
+ type: string
15681
+ title: Expected
15682
+ type: array
15683
+ name:
15684
+ title: Name
15685
+ type: string
15686
+ observed:
15687
+ items:
15688
+ type: string
15689
+ title: Observed
15690
+ type: array
15691
+ ok:
15692
+ title: Ok
15693
+ type: boolean
15694
+ reason:
15695
+ $ref: '#/components/schemas/WhitelabelDnsCheckReason'
15696
+ required:
15697
+ default: true
15698
+ title: Required
15699
+ type: boolean
15700
+ type:
15701
+ $ref: '#/components/schemas/DnsRrsetType'
15702
+ required:
15703
+ - name
15704
+ - type
15705
+ - expected
15706
+ - observed
15707
+ - ok
15708
+ - reason
15709
+ title: WhitelabelDnsCheckItem
15710
+ type: object
15711
+ WhitelabelDnsCheckReason:
15712
+ enum:
15713
+ - verified
15714
+ - missing
15715
+ - mismatch
15716
+ - dns_error
15717
+ title: WhitelabelDnsCheckReason
15718
+ type: string
15719
+ WhitelabelDnsCheckResponse:
15720
+ properties:
15721
+ checks:
15722
+ items:
15723
+ $ref: '#/components/schemas/WhitelabelDnsCheckItem'
15724
+ title: Checks
15725
+ type: array
15726
+ ready:
15727
+ title: Ready
15728
+ type: boolean
15729
+ required:
15730
+ - ready
15731
+ - checks
15732
+ title: WhitelabelDnsCheckResponse
15733
+ type: object
15676
15734
  WhitelabelOnboardingFailureCode:
15677
15735
  description: 'Stable, frontend-facing reason a terminal onboarding failure happened.
15678
15736
  The free-text
@@ -16385,7 +16443,7 @@ info:
16385
16443
  \n\n"
16386
16444
  summary: OpusDNS - your gateway to a seamless domain management experience.
16387
16445
  title: OpusDNS API
16388
- version: 2026-09-08-214430
16446
+ version: 2026-09-09-151559
16389
16447
  x-logo:
16390
16448
  altText: OpusDNS API Reference
16391
16449
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -34274,6 +34332,33 @@ paths:
34274
34332
  - whitelabel
34275
34333
  x-required-permissions:
34276
34334
  - whitelabel_branding:manage
34335
+ /v1/whitelabel-branding/dns-check:
34336
+ get:
34337
+ operationId: check_whitelabel_dns_v1_whitelabel_branding_dns_check_get
34338
+ parameters:
34339
+ - $ref: '#/components/parameters/DatetimeFormatHeader'
34340
+ responses:
34341
+ '200':
34342
+ content:
34343
+ application/json:
34344
+ schema:
34345
+ $ref: '#/components/schemas/WhitelabelDnsCheckResponse'
34346
+ description: Successful Response
34347
+ '422':
34348
+ content:
34349
+ application/problem+json:
34350
+ schema:
34351
+ $ref: '#/components/schemas/HTTPValidationError'
34352
+ description: Validation Error
34353
+ security:
34354
+ - OAuth2PasswordBearer: []
34355
+ - APIKeyHeader: []
34356
+ summary: Check whether the whitelabel's DNS (delegation + serving records) resolves
34357
+ yet
34358
+ tags:
34359
+ - whitelabel
34360
+ x-required-permissions:
34361
+ - whitelabel_branding:read
34277
34362
  /v1/whitelabel-branding/document:
34278
34363
  get:
34279
34364
  operationId: get_whitelabel_document_v1_whitelabel_branding_document_get
package/src/schema.d.ts CHANGED
@@ -3067,6 +3067,23 @@ export interface paths {
3067
3067
  patch?: never;
3068
3068
  trace?: never;
3069
3069
  };
3070
+ "/v1/whitelabel-branding/dns-check": {
3071
+ parameters: {
3072
+ query?: never;
3073
+ header?: never;
3074
+ path?: never;
3075
+ cookie?: never;
3076
+ };
3077
+ /** Check whether the whitelabel's DNS (delegation + serving records) resolves yet */
3078
+ get: operations["check_whitelabel_dns_v1_whitelabel_branding_dns_check_get"];
3079
+ put?: never;
3080
+ post?: never;
3081
+ delete?: never;
3082
+ options?: never;
3083
+ head?: never;
3084
+ patch?: never;
3085
+ trace?: never;
3086
+ };
3070
3087
  "/v1/whitelabel-branding/document": {
3071
3088
  parameters: {
3072
3089
  query?: never;
@@ -13550,6 +13567,36 @@ export interface components {
13550
13567
  * @enum {string}
13551
13568
  */
13552
13569
  WhitelabelBrandingTier: "base" | "plus";
13570
+ /** WhitelabelDnsCheckItem */
13571
+ WhitelabelDnsCheckItem: {
13572
+ /** Expected */
13573
+ expected: string[];
13574
+ /** Name */
13575
+ name: string;
13576
+ /** Observed */
13577
+ observed: string[];
13578
+ /** Ok */
13579
+ ok: boolean;
13580
+ reason: components["schemas"]["WhitelabelDnsCheckReason"];
13581
+ /**
13582
+ * Required
13583
+ * @default true
13584
+ */
13585
+ required: boolean;
13586
+ type: components["schemas"]["DnsRrsetType"];
13587
+ };
13588
+ /**
13589
+ * WhitelabelDnsCheckReason
13590
+ * @enum {string}
13591
+ */
13592
+ WhitelabelDnsCheckReason: "verified" | "missing" | "mismatch" | "dns_error";
13593
+ /** WhitelabelDnsCheckResponse */
13594
+ WhitelabelDnsCheckResponse: {
13595
+ /** Checks */
13596
+ checks: components["schemas"]["WhitelabelDnsCheckItem"][];
13597
+ /** Ready */
13598
+ ready: boolean;
13599
+ };
13553
13600
  /**
13554
13601
  * WhitelabelOnboardingFailureCode
13555
13602
  * @description Stable, frontend-facing reason a terminal onboarding failure happened. The free-text
@@ -28712,6 +28759,41 @@ export interface operations {
28712
28759
  };
28713
28760
  };
28714
28761
  };
28762
+ check_whitelabel_dns_v1_whitelabel_branding_dns_check_get: {
28763
+ parameters: {
28764
+ query?: never;
28765
+ header?: {
28766
+ /**
28767
+ * @description Opt in to RFC 3339 datetime serialization. When set to `rfc3339`, response datetimes are normalized to UTC and serialized with a `Z` suffix. This is opt-in until the announced default cutover date, after which RFC 3339 becomes the default and this header is accepted as a no-op. Any other value or omission uses the current default serialization.
28768
+ * @example rfc3339
28769
+ */
28770
+ "X-Datetime-Format"?: components["parameters"]["DatetimeFormatHeader"];
28771
+ };
28772
+ path?: never;
28773
+ cookie?: never;
28774
+ };
28775
+ requestBody?: never;
28776
+ responses: {
28777
+ /** @description Successful Response */
28778
+ 200: {
28779
+ headers: {
28780
+ [name: string]: unknown;
28781
+ };
28782
+ content: {
28783
+ "application/json": components["schemas"]["WhitelabelDnsCheckResponse"];
28784
+ };
28785
+ };
28786
+ /** @description Validation Error */
28787
+ 422: {
28788
+ headers: {
28789
+ [name: string]: unknown;
28790
+ };
28791
+ content: {
28792
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
28793
+ };
28794
+ };
28795
+ };
28796
+ };
28715
28797
  get_whitelabel_document_v1_whitelabel_branding_document_get: {
28716
28798
  parameters: {
28717
28799
  query?: never;