@opusdns/api 1.216.0 → 1.217.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.6.0"
4
4
  },
5
5
  "name": "@opusdns/api",
6
- "version": "1.216.0",
6
+ "version": "1.217.0",
7
7
  "description": "TypeScript types for the OpusDNS OpenAPI specification",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -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'];
@@ -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:
@@ -24958,7 +24966,7 @@ info:
24958
24966
  \n\n"
24959
24967
  summary: OpusDNS - your gateway to a seamless domain management experience.
24960
24968
  title: OpusDNS API
24961
- version: 2026-10-09-182429
24969
+ version: 2026-10-09-190403
24962
24970
  x-logo:
24963
24971
  altText: OpusDNS API Reference
24964
24972
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -33599,10 +33607,10 @@ paths:
33599
33607
  - description: 'Filter domains by the type of the registry account they are
33600
33608
  held on: `ras` for domains on a registrar-abstraction (RAS) account synced
33601
33609
  from a connected external registrar, including those whose credential has
33602
- since been deleted (their `connected_account` is null); `ams` for domains
33603
- managed on a customer''s own registry accreditation; `default` for all others,
33604
- manually managed domains included (their accounts are typed `default`).
33605
- Can be specified multiple times (union of all provided values).'
33610
+ since been deleted; `ams` for domains managed on a customer''s own registry
33611
+ accreditation; `default` for all others, manually managed domains included
33612
+ (their accounts are typed `default`). Can be specified multiple times (union
33613
+ of all provided values).'
33606
33614
  in: query
33607
33615
  name: account_type
33608
33616
  required: false
@@ -33615,29 +33623,26 @@ paths:
33615
33623
  description: 'Filter domains by the type of the registry account they are
33616
33624
  held on: `ras` for domains on a registrar-abstraction (RAS) account synced
33617
33625
  from a connected external registrar, including those whose credential
33618
- has since been deleted (their `connected_account` is null); `ams` for
33619
- domains managed on a customer''s own registry accreditation; `default`
33620
- for all others, manually managed domains included (their accounts are
33621
- typed `default`). Can be specified multiple times (union of all provided
33622
- values).'
33626
+ has since been deleted; `ams` for domains managed on a customer''s own
33627
+ registry accreditation; `default` for all others, manually managed domains
33628
+ included (their accounts are typed `default`). Can be specified multiple
33629
+ times (union of all provided values).'
33623
33630
  title: Account Type
33624
33631
  - description: 'How to apply `account_type`: `match_any` keeps the domains on
33625
33632
  any of the listed types, `match_none` the domains on none of them (so `account_type=ras&account_type_mode=match_none`
33626
- lists every domain not on a RAS account, and listing every type returns
33627
- nothing). Has no effect without `account_type`. `match_all` is refused:
33628
- a domain has exactly one account type.'
33633
+ keeps every domain not on a RAS account, and naming every type keeps none).
33634
+ Has no effect without `account_type`.'
33629
33635
  in: query
33630
33636
  name: account_type_mode
33631
33637
  required: false
33632
33638
  schema:
33633
- $ref: '#/components/schemas/TagFilterMode'
33639
+ $ref: '#/components/schemas/AccountTypeFilterMode'
33634
33640
  default: match_any
33635
33641
  description: 'How to apply `account_type`: `match_any` keeps the domains
33636
33642
  on any of the listed types, `match_none` the domains on none of them (so
33637
- `account_type=ras&account_type_mode=match_none` lists every domain not
33638
- on a RAS account, and listing every type returns nothing). Has no effect
33639
- without `account_type`. `match_all` is refused: a domain has exactly one
33640
- account type.'
33643
+ `account_type=ras&account_type_mode=match_none` keeps every domain not
33644
+ on a RAS account, and naming every type keeps none). Has no effect without
33645
+ `account_type`.'
33641
33646
  - description: Extra data to include in each result. `tags` populates the `tags`
33642
33647
  (user tags) and `status_tags` fields, which are otherwise null; filtering
33643
33648
  by `tag_ids` or `status_tags` alone does not populate them. `connected_account`
@@ -34091,9 +34096,54 @@ paths:
34091
34096
  by status, status tag, TLD,
34092
34097
 
34093
34098
  registry account type and expiration timeframe. Only `by_organization` includes
34094
- sub-organizations.'
34099
+ sub-organizations.
34100
+
34101
+ With `account_type`, every count covers only the domains that filter keeps,
34102
+ so a sub-organization
34103
+
34104
+ whose domains all fall outside it is left out of `by_organization`, as one
34105
+ without domains always is.'
34095
34106
  operationId: get_domain_summary_v1_domains_summary_get
34096
34107
  parameters:
34108
+ - description: 'Filter domains by the type of the registry account they are
34109
+ held on: `ras` for domains on a registrar-abstraction (RAS) account synced
34110
+ from a connected external registrar, including those whose credential has
34111
+ since been deleted; `ams` for domains managed on a customer''s own registry
34112
+ accreditation; `default` for all others, manually managed domains included
34113
+ (their accounts are typed `default`). Can be specified multiple times (union
34114
+ of all provided values).'
34115
+ in: query
34116
+ name: account_type
34117
+ required: false
34118
+ schema:
34119
+ anyOf:
34120
+ - items:
34121
+ $ref: '#/components/schemas/ConnectedAccountType'
34122
+ type: array
34123
+ - type: 'null'
34124
+ description: 'Filter domains by the type of the registry account they are
34125
+ held on: `ras` for domains on a registrar-abstraction (RAS) account synced
34126
+ from a connected external registrar, including those whose credential
34127
+ has since been deleted; `ams` for domains managed on a customer''s own
34128
+ registry accreditation; `default` for all others, manually managed domains
34129
+ included (their accounts are typed `default`). Can be specified multiple
34130
+ times (union of all provided values).'
34131
+ title: Account Type
34132
+ - description: 'How to apply `account_type`: `match_any` keeps the domains on
34133
+ any of the listed types, `match_none` the domains on none of them (so `account_type=ras&account_type_mode=match_none`
34134
+ keeps every domain not on a RAS account, and naming every type keeps none).
34135
+ Has no effect without `account_type`.'
34136
+ in: query
34137
+ name: account_type_mode
34138
+ required: false
34139
+ schema:
34140
+ $ref: '#/components/schemas/AccountTypeFilterMode'
34141
+ default: match_any
34142
+ description: 'How to apply `account_type`: `match_any` keeps the domains
34143
+ on any of the listed types, `match_none` the domains on none of them (so
34144
+ `account_type=ras&account_type_mode=match_none` keeps every domain not
34145
+ on a RAS account, and naming every type keeps none). Has no effect without
34146
+ `account_type`.'
34097
34147
  - $ref: '#/components/parameters/DatetimeFormatHeader'
34098
34148
  responses:
34099
34149
  '200':
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 */
@@ -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 (their `connected_account` is null); `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). */
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` lists every domain not on a RAS account, and listing every type returns nothing). Has no effect without `account_type`. `match_all` is refused: a domain has exactly one account type. */
26821
- account_type_mode?: components["schemas"]["TagFilterMode"];
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?: never;
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.