@opusdns/api 1.216.0 → 1.218.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 +1 -1
- package/src/helpers/constants.ts +11 -0
- package/src/helpers/requests.d.ts +2 -0
- package/src/helpers/schemas.d.ts +1 -0
- package/src/openapi.yaml +75 -24
- package/src/schema.d.ts +18 -5
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type {
|
|
2
|
+
AccountTypeFilterMode,
|
|
2
3
|
AgreementType,
|
|
3
4
|
AllocationMethodType,
|
|
4
5
|
AssignablePublicRole,
|
|
@@ -145,6 +146,16 @@ import type {
|
|
|
145
146
|
ZoneSortField,
|
|
146
147
|
} from './schemas';
|
|
147
148
|
|
|
149
|
+
export const ACCOUNT_TYPE_FILTER_MODE = {
|
|
150
|
+
MATCH_ANY: "match_any",
|
|
151
|
+
MATCH_NONE: "match_none",
|
|
152
|
+
} as const satisfies Record<string, AccountTypeFilterMode>;
|
|
153
|
+
|
|
154
|
+
export const ACCOUNT_TYPE_FILTER_MODE_VALUES = [
|
|
155
|
+
'match_any',
|
|
156
|
+
'match_none',
|
|
157
|
+
] as const satisfies ReadonlyArray<AccountTypeFilterMode>;
|
|
158
|
+
|
|
148
159
|
export const AGREEMENT_TYPE = {
|
|
149
160
|
TERMS_AND_CONDITIONS: "terms_and_conditions",
|
|
150
161
|
MASTER_SERVICE_AGREEMENT: "master_service_agreement",
|
|
@@ -597,7 +597,9 @@ export type GET_DomainsStatistics_Request = {
|
|
|
597
597
|
export type GET_DomainsStatistics_Request_Query = GET_DomainsStatistics_Request['parameters']['query'];
|
|
598
598
|
|
|
599
599
|
export type GET_DomainsSummary_Request = {
|
|
600
|
+
parameters: operations['get_domain_summary_v1_domains_summary_get']['parameters'];
|
|
600
601
|
};
|
|
602
|
+
export type GET_DomainsSummary_Request_Query = GET_DomainsSummary_Request['parameters']['query'];
|
|
601
603
|
|
|
602
604
|
export type POST_DomainsTldSpecificAtByDomainReferenceWithdraw_Request = {
|
|
603
605
|
parameters: operations['withdraw_domain_v1_domains_tld_specific_at__domain_reference__withdraw_post']['parameters'];
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { components } from '../schema';
|
|
2
2
|
|
|
3
|
+
export type AccountTypeFilterMode = components['schemas']['AccountTypeFilterMode'];
|
|
3
4
|
export type AggregationResult = components['schemas']['AggregationResult'];
|
|
4
5
|
export type AggregationRow = components['schemas']['AggregationRow'];
|
|
5
6
|
export type AggregationsContext = components['schemas']['AggregationsContext'];
|
package/src/openapi.yaml
CHANGED
|
@@ -13,6 +13,14 @@ components:
|
|
|
13
13
|
- rfc3339
|
|
14
14
|
type: string
|
|
15
15
|
schemas:
|
|
16
|
+
AccountTypeFilterMode:
|
|
17
|
+
description: How an `account_type` filter applies; no `match_all`, since a domain
|
|
18
|
+
has exactly one account type.
|
|
19
|
+
enum:
|
|
20
|
+
- match_any
|
|
21
|
+
- match_none
|
|
22
|
+
title: AccountTypeFilterMode
|
|
23
|
+
type: string
|
|
16
24
|
AggregationResult:
|
|
17
25
|
properties:
|
|
18
26
|
field:
|
|
@@ -23443,6 +23451,8 @@ components:
|
|
|
23443
23451
|
properties:
|
|
23444
23452
|
hostnames:
|
|
23445
23453
|
description: Fully-qualified vanity NS hostnames, ordered by intended position.
|
|
23454
|
+
A set may not have more hostnames than there are anycast address pairs
|
|
23455
|
+
(each hostname gets its own IPs); a larger set is rejected with 400.
|
|
23446
23456
|
items:
|
|
23447
23457
|
type: string
|
|
23448
23458
|
maxItems: 4
|
|
@@ -24958,7 +24968,7 @@ info:
|
|
|
24958
24968
|
\n\n"
|
|
24959
24969
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
24960
24970
|
title: OpusDNS API
|
|
24961
|
-
version: 2026-10-09-
|
|
24971
|
+
version: 2026-10-09-220959
|
|
24962
24972
|
x-logo:
|
|
24963
24973
|
altText: OpusDNS API Reference
|
|
24964
24974
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -33599,10 +33609,10 @@ paths:
|
|
|
33599
33609
|
- description: 'Filter domains by the type of the registry account they are
|
|
33600
33610
|
held on: `ras` for domains on a registrar-abstraction (RAS) account synced
|
|
33601
33611
|
from a connected external registrar, including those whose credential has
|
|
33602
|
-
since been deleted
|
|
33603
|
-
|
|
33604
|
-
|
|
33605
|
-
|
|
33612
|
+
since been deleted; `ams` for domains managed on a customer''s own registry
|
|
33613
|
+
accreditation; `default` for all others, manually managed domains included
|
|
33614
|
+
(their accounts are typed `default`). Can be specified multiple times (union
|
|
33615
|
+
of all provided values).'
|
|
33606
33616
|
in: query
|
|
33607
33617
|
name: account_type
|
|
33608
33618
|
required: false
|
|
@@ -33615,29 +33625,26 @@ paths:
|
|
|
33615
33625
|
description: 'Filter domains by the type of the registry account they are
|
|
33616
33626
|
held on: `ras` for domains on a registrar-abstraction (RAS) account synced
|
|
33617
33627
|
from a connected external registrar, including those whose credential
|
|
33618
|
-
has since been deleted
|
|
33619
|
-
|
|
33620
|
-
|
|
33621
|
-
|
|
33622
|
-
values).'
|
|
33628
|
+
has since been deleted; `ams` for domains managed on a customer''s own
|
|
33629
|
+
registry accreditation; `default` for all others, manually managed domains
|
|
33630
|
+
included (their accounts are typed `default`). Can be specified multiple
|
|
33631
|
+
times (union of all provided values).'
|
|
33623
33632
|
title: Account Type
|
|
33624
33633
|
- description: 'How to apply `account_type`: `match_any` keeps the domains on
|
|
33625
33634
|
any of the listed types, `match_none` the domains on none of them (so `account_type=ras&account_type_mode=match_none`
|
|
33626
|
-
|
|
33627
|
-
|
|
33628
|
-
a domain has exactly one account type.'
|
|
33635
|
+
keeps every domain not on a RAS account, and naming every type keeps none).
|
|
33636
|
+
Has no effect without `account_type`.'
|
|
33629
33637
|
in: query
|
|
33630
33638
|
name: account_type_mode
|
|
33631
33639
|
required: false
|
|
33632
33640
|
schema:
|
|
33633
|
-
$ref: '#/components/schemas/
|
|
33641
|
+
$ref: '#/components/schemas/AccountTypeFilterMode'
|
|
33634
33642
|
default: match_any
|
|
33635
33643
|
description: 'How to apply `account_type`: `match_any` keeps the domains
|
|
33636
33644
|
on any of the listed types, `match_none` the domains on none of them (so
|
|
33637
|
-
`account_type=ras&account_type_mode=match_none`
|
|
33638
|
-
on a RAS account, and
|
|
33639
|
-
|
|
33640
|
-
account type.'
|
|
33645
|
+
`account_type=ras&account_type_mode=match_none` keeps every domain not
|
|
33646
|
+
on a RAS account, and naming every type keeps none). Has no effect without
|
|
33647
|
+
`account_type`.'
|
|
33641
33648
|
- description: Extra data to include in each result. `tags` populates the `tags`
|
|
33642
33649
|
(user tags) and `status_tags` fields, which are otherwise null; filtering
|
|
33643
33650
|
by `tag_ids` or `status_tags` alone does not populate them. `connected_account`
|
|
@@ -34091,9 +34098,54 @@ paths:
|
|
|
34091
34098
|
by status, status tag, TLD,
|
|
34092
34099
|
|
|
34093
34100
|
registry account type and expiration timeframe. Only `by_organization` includes
|
|
34094
|
-
sub-organizations.
|
|
34101
|
+
sub-organizations.
|
|
34102
|
+
|
|
34103
|
+
With `account_type`, every count covers only the domains that filter keeps,
|
|
34104
|
+
so a sub-organization
|
|
34105
|
+
|
|
34106
|
+
whose domains all fall outside it is left out of `by_organization`, as one
|
|
34107
|
+
without domains always is.'
|
|
34095
34108
|
operationId: get_domain_summary_v1_domains_summary_get
|
|
34096
34109
|
parameters:
|
|
34110
|
+
- description: 'Filter domains by the type of the registry account they are
|
|
34111
|
+
held on: `ras` for domains on a registrar-abstraction (RAS) account synced
|
|
34112
|
+
from a connected external registrar, including those whose credential has
|
|
34113
|
+
since been deleted; `ams` for domains managed on a customer''s own registry
|
|
34114
|
+
accreditation; `default` for all others, manually managed domains included
|
|
34115
|
+
(their accounts are typed `default`). Can be specified multiple times (union
|
|
34116
|
+
of all provided values).'
|
|
34117
|
+
in: query
|
|
34118
|
+
name: account_type
|
|
34119
|
+
required: false
|
|
34120
|
+
schema:
|
|
34121
|
+
anyOf:
|
|
34122
|
+
- items:
|
|
34123
|
+
$ref: '#/components/schemas/ConnectedAccountType'
|
|
34124
|
+
type: array
|
|
34125
|
+
- type: 'null'
|
|
34126
|
+
description: 'Filter domains by the type of the registry account they are
|
|
34127
|
+
held on: `ras` for domains on a registrar-abstraction (RAS) account synced
|
|
34128
|
+
from a connected external registrar, including those whose credential
|
|
34129
|
+
has since been deleted; `ams` for domains managed on a customer''s own
|
|
34130
|
+
registry accreditation; `default` for all others, manually managed domains
|
|
34131
|
+
included (their accounts are typed `default`). Can be specified multiple
|
|
34132
|
+
times (union of all provided values).'
|
|
34133
|
+
title: Account Type
|
|
34134
|
+
- description: 'How to apply `account_type`: `match_any` keeps the domains on
|
|
34135
|
+
any of the listed types, `match_none` the domains on none of them (so `account_type=ras&account_type_mode=match_none`
|
|
34136
|
+
keeps every domain not on a RAS account, and naming every type keeps none).
|
|
34137
|
+
Has no effect without `account_type`.'
|
|
34138
|
+
in: query
|
|
34139
|
+
name: account_type_mode
|
|
34140
|
+
required: false
|
|
34141
|
+
schema:
|
|
34142
|
+
$ref: '#/components/schemas/AccountTypeFilterMode'
|
|
34143
|
+
default: match_any
|
|
34144
|
+
description: 'How to apply `account_type`: `match_any` keeps the domains
|
|
34145
|
+
on any of the listed types, `match_none` the domains on none of them (so
|
|
34146
|
+
`account_type=ras&account_type_mode=match_none` keeps every domain not
|
|
34147
|
+
on a RAS account, and naming every type keeps none). Has no effect without
|
|
34148
|
+
`account_type`.'
|
|
34097
34149
|
- $ref: '#/components/parameters/DatetimeFormatHeader'
|
|
34098
34150
|
responses:
|
|
34099
34151
|
'200':
|
|
@@ -43197,15 +43249,14 @@ paths:
|
|
|
43197
43249
|
content:
|
|
43198
43250
|
application/json:
|
|
43199
43251
|
examples:
|
|
43200
|
-
|
|
43201
|
-
description: A set with
|
|
43202
|
-
|
|
43203
|
-
summary:
|
|
43252
|
+
other_parent:
|
|
43253
|
+
description: A set with two branded hostnames under a different parent
|
|
43254
|
+
domain.
|
|
43255
|
+
summary: Set under another parent domain
|
|
43204
43256
|
value:
|
|
43205
43257
|
hostnames:
|
|
43206
43258
|
- ns1.acme.example
|
|
43207
43259
|
- ns2.acme.example
|
|
43208
|
-
- ns3.acme.example
|
|
43209
43260
|
name: Acme nameservers
|
|
43210
43261
|
parent_domain_name: acme.example
|
|
43211
43262
|
soa_rname: hostmaster.acme.example
|
package/src/schema.d.ts
CHANGED
|
@@ -1213,6 +1213,8 @@ export interface paths {
|
|
|
1213
1213
|
* Get domain summary
|
|
1214
1214
|
* @description Retrieves a summary of your organization's domains, with counts by status, status tag, TLD,
|
|
1215
1215
|
* registry account type and expiration timeframe. Only `by_organization` includes sub-organizations.
|
|
1216
|
+
* With `account_type`, every count covers only the domains that filter keeps, so a sub-organization
|
|
1217
|
+
* whose domains all fall outside it is left out of `by_organization`, as one without domains always is.
|
|
1216
1218
|
*/
|
|
1217
1219
|
get: operations["get_domain_summary_v1_domains_summary_get"];
|
|
1218
1220
|
put?: never;
|
|
@@ -3293,6 +3295,12 @@ export interface paths {
|
|
|
3293
3295
|
export type webhooks = Record<string, never>;
|
|
3294
3296
|
export interface components {
|
|
3295
3297
|
schemas: {
|
|
3298
|
+
/**
|
|
3299
|
+
* AccountTypeFilterMode
|
|
3300
|
+
* @description How an `account_type` filter applies; no `match_all`, since a domain has exactly one account type.
|
|
3301
|
+
* @enum {string}
|
|
3302
|
+
*/
|
|
3303
|
+
AccountTypeFilterMode: "match_any" | "match_none";
|
|
3296
3304
|
/** AggregationResult */
|
|
3297
3305
|
AggregationResult: {
|
|
3298
3306
|
/** Field */
|
|
@@ -19543,7 +19551,7 @@ export interface components {
|
|
|
19543
19551
|
VanityNameserverSetCreate: {
|
|
19544
19552
|
/**
|
|
19545
19553
|
* Hostnames
|
|
19546
|
-
* @description Fully-qualified vanity NS hostnames, ordered by intended position.
|
|
19554
|
+
* @description Fully-qualified vanity NS hostnames, ordered by intended position. A set may not have more hostnames than there are anycast address pairs (each hostname gets its own IPs); a larger set is rejected with 400.
|
|
19547
19555
|
*/
|
|
19548
19556
|
hostnames: string[];
|
|
19549
19557
|
/**
|
|
@@ -26815,10 +26823,10 @@ export interface operations {
|
|
|
26815
26823
|
registrar_credential_id?: TypeId<"registrar_credential">[] | null;
|
|
26816
26824
|
/** @description Filter domains held at an external registrar by that registrar. Can be specified multiple times (union of all provided values); combined with `registrar_credential_id`, both must match. Matches exactly the domains whose `connected_account` field carries the registrar, so domains OpusDNS sponsors never match. */
|
|
26817
26825
|
registrar?: components["schemas"]["Registrar"][] | null;
|
|
26818
|
-
/** @description Filter domains by the type of the registry account they are held on: `ras` for domains on a registrar-abstraction (RAS) account synced from a connected external registrar, including those whose credential has since been deleted
|
|
26826
|
+
/** @description Filter domains by the type of the registry account they are held on: `ras` for domains on a registrar-abstraction (RAS) account synced from a connected external registrar, including those whose credential has since been deleted; `ams` for domains managed on a customer's own registry accreditation; `default` for all others, manually managed domains included (their accounts are typed `default`). Can be specified multiple times (union of all provided values). */
|
|
26819
26827
|
account_type?: components["schemas"]["ConnectedAccountType"][] | null;
|
|
26820
|
-
/** @description How to apply `account_type`: `match_any` keeps the domains on any of the listed types, `match_none` the domains on none of them (so `account_type=ras&account_type_mode=match_none`
|
|
26821
|
-
account_type_mode?: components["schemas"]["
|
|
26828
|
+
/** @description How to apply `account_type`: `match_any` keeps the domains on any of the listed types, `match_none` the domains on none of them (so `account_type=ras&account_type_mode=match_none` keeps every domain not on a RAS account, and naming every type keeps none). Has no effect without `account_type`. */
|
|
26829
|
+
account_type_mode?: components["schemas"]["AccountTypeFilterMode"];
|
|
26822
26830
|
/** @description Extra data to include in each result. `tags` populates the `tags` (user tags) and `status_tags` fields, which are otherwise null; filtering by `tag_ids` or `status_tags` alone does not populate them. `connected_account` populates the `connected_account` field for domains held at an external registrar. */
|
|
26823
26831
|
include?: components["schemas"]["DomainListIncludeField"][] | null;
|
|
26824
26832
|
};
|
|
@@ -27111,7 +27119,12 @@ export interface operations {
|
|
|
27111
27119
|
};
|
|
27112
27120
|
get_domain_summary_v1_domains_summary_get: {
|
|
27113
27121
|
parameters: {
|
|
27114
|
-
query?:
|
|
27122
|
+
query?: {
|
|
27123
|
+
/** @description Filter domains by the type of the registry account they are held on: `ras` for domains on a registrar-abstraction (RAS) account synced from a connected external registrar, including those whose credential has since been deleted; `ams` for domains managed on a customer's own registry accreditation; `default` for all others, manually managed domains included (their accounts are typed `default`). Can be specified multiple times (union of all provided values). */
|
|
27124
|
+
account_type?: components["schemas"]["ConnectedAccountType"][] | null;
|
|
27125
|
+
/** @description How to apply `account_type`: `match_any` keeps the domains on any of the listed types, `match_none` the domains on none of them (so `account_type=ras&account_type_mode=match_none` keeps every domain not on a RAS account, and naming every type keeps none). Has no effect without `account_type`. */
|
|
27126
|
+
account_type_mode?: components["schemas"]["AccountTypeFilterMode"];
|
|
27127
|
+
};
|
|
27115
27128
|
header?: {
|
|
27116
27129
|
/**
|
|
27117
27130
|
* @description Accepted for backwards compatibility; has no effect. Response datetimes are always normalized to UTC and serialized as RFC 3339 with a `Z` suffix, whether or not this header is sent.
|