@zinn-digital/sdk 0.1.1669 → 0.1.1671
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/dist/generated/schema.d.ts +95 -3
- package/package.json +1 -1
|
@@ -32491,6 +32491,29 @@ export interface paths {
|
|
|
32491
32491
|
patch?: never;
|
|
32492
32492
|
trace?: never;
|
|
32493
32493
|
};
|
|
32494
|
+
"/v1/domains/{domainId}/dns/holder-rows/remove": {
|
|
32495
|
+
parameters: {
|
|
32496
|
+
query?: never;
|
|
32497
|
+
header?: never;
|
|
32498
|
+
path: {
|
|
32499
|
+
/** @description The domain's id. */
|
|
32500
|
+
domainId: components["parameters"]["DomainId"];
|
|
32501
|
+
};
|
|
32502
|
+
cookie?: never;
|
|
32503
|
+
};
|
|
32504
|
+
get?: never;
|
|
32505
|
+
put?: never;
|
|
32506
|
+
/**
|
|
32507
|
+
* Remove the parking-holder rows from a hostname that also points at the site.
|
|
32508
|
+
* @description s1014 DNSSTATE. A hostname publishing BOTH the parking holder's addresses and the site's own target sends some visitors to the holder page. This deletes only the holder rows at a name that, re-read from the DNS provider now, still carries a non-holder target; a name holding only holder rows (a parked name) is never touched, and the client sends no list. Answers what was removed (empty when nothing was mixed). Audited as `domain.dns.holder_rows_removed`. Requires `domains.dns.manage`.
|
|
32509
|
+
*/
|
|
32510
|
+
post: operations["removeDnsHolderRows"];
|
|
32511
|
+
delete?: never;
|
|
32512
|
+
options?: never;
|
|
32513
|
+
head?: never;
|
|
32514
|
+
patch?: never;
|
|
32515
|
+
trace?: never;
|
|
32516
|
+
};
|
|
32494
32517
|
"/v1/domains/{domainId}/dns/records": {
|
|
32495
32518
|
parameters: {
|
|
32496
32519
|
query?: never;
|
|
@@ -54507,7 +54530,9 @@ export interface paths {
|
|
|
54507
54530
|
};
|
|
54508
54531
|
/**
|
|
54509
54532
|
* Get this site's most recent transfer offer.
|
|
54510
|
-
* @description The latest offer for this site, in any state, so the site page can show either a pending handover or the outcome of the last one.
|
|
54533
|
+
* @description The latest offer for this site, in any state, so the site page can show either a pending handover or the outcome of the last one. A site that has never been offered answers `200` with `offer: null` — an empty state, not an error.
|
|
54534
|
+
*
|
|
54535
|
+
* `404` only when the caller cannot see the site: another tenant's id and an id that does not exist give the same body, so this is never an existence oracle. A caller who can see the site already knows it exists, so telling them it has no offer discloses nothing. Requires `sites.view`.
|
|
54511
54536
|
*/
|
|
54512
54537
|
get: operations["getSiteTransfer"];
|
|
54513
54538
|
put?: never;
|
|
@@ -82681,6 +82706,30 @@ export interface components {
|
|
|
82681
82706
|
rto_seconds?: number | null;
|
|
82682
82707
|
size_bytes?: number | null;
|
|
82683
82708
|
};
|
|
82709
|
+
DnsHolderMixHostname: {
|
|
82710
|
+
holder_records: components["schemas"]["DnsHolderMixRecord"][];
|
|
82711
|
+
/** @example www.example.com */
|
|
82712
|
+
host: string;
|
|
82713
|
+
/** @description The record name in the zone (`@`, `www`). */
|
|
82714
|
+
name: string;
|
|
82715
|
+
site_records: components["schemas"]["DnsHolderMixRecord"][];
|
|
82716
|
+
};
|
|
82717
|
+
DnsHolderMixRecord: {
|
|
82718
|
+
/** @example A */
|
|
82719
|
+
type: string;
|
|
82720
|
+
/** @example 203.0.113.10 */
|
|
82721
|
+
value: string;
|
|
82722
|
+
};
|
|
82723
|
+
DnsHolderRowsRemoved: {
|
|
82724
|
+
/** Format: uuid */
|
|
82725
|
+
domain_id: string;
|
|
82726
|
+
/** @description The holder rows deleted at the provider. Empty when nothing was mixed. */
|
|
82727
|
+
removed: {
|
|
82728
|
+
name: string;
|
|
82729
|
+
type: string;
|
|
82730
|
+
value: string;
|
|
82731
|
+
}[];
|
|
82732
|
+
};
|
|
82684
82733
|
/** @description A DNS resource record in a domain's hosted zone. */
|
|
82685
82734
|
DnsRecord: {
|
|
82686
82735
|
drift?: components["schemas"]["DnsRecordDrift"];
|
|
@@ -105574,6 +105623,12 @@ export interface components {
|
|
|
105574
105623
|
/** @description Where a site's domain actually sends traffic, as measured (docs/823). */
|
|
105575
105624
|
SiteDomainPointing: {
|
|
105576
105625
|
diagnosis?: components["schemas"]["SiteOwnDomainDiagnosis"];
|
|
105626
|
+
/** @description Hostnames that publish the parking holder's addresses AND the site's own target, so some visitors get the holder page (s1014 DNSSTATE). Null when none. `POST /v1/domains/{domainId}/dns/holder-rows/remove` deletes the holder rows. */
|
|
105627
|
+
holder_mix?: {
|
|
105628
|
+
/** Format: uuid */
|
|
105629
|
+
domain_id: string;
|
|
105630
|
+
hostnames: components["schemas"]["DnsHolderMixHostname"][];
|
|
105631
|
+
} | null;
|
|
105577
105632
|
/** @example example.com */
|
|
105578
105633
|
hostname: string;
|
|
105579
105634
|
/**
|
|
@@ -105665,6 +105720,11 @@ export interface components {
|
|
|
105665
105720
|
value: string;
|
|
105666
105721
|
}[];
|
|
105667
105722
|
};
|
|
105723
|
+
/**
|
|
105724
|
+
* @description The customer's OWN state that keeps visitors out, measured by the serving sweep (s1014 DNSSTATE): `maintenance_mode` (a maintenance page the site itself serves) or `access_rule_denies` (a 403 the worker proved is the site's own `.htaccess` rule, for example `Deny from all` with one allowed address — the server log names the refusal AND the rule is in the file). Null when there is none. It is never our outage and never "propagating"; the remedy is the customer's, on their site.
|
|
105725
|
+
* @enum {string|null}
|
|
105726
|
+
*/
|
|
105727
|
+
site_state?: "maintenance_mode" | "access_rule_denies" | null;
|
|
105668
105728
|
/**
|
|
105669
105729
|
* @description `serving` reaches us on our nameservers. `serving_via_other_dns` is PROVEN to reach us through DNS the customer runs — never show it a nameserver instruction, that would take a live site down. `propagating` points at us and is not answering yet. `awaiting_record` has working nameservers and publishes nothing at the apex — the remedy is a record, not a nameserver change. `awaiting_pointing` does not reach us and we host a site for it. `pointed_elsewhere` answers elsewhere and we host no site there, so it is informational only. `zone_expired` means the zone we assigned was deleted and the old nameservers are dead. `unknown` means we could not measure — never green, never an accusation. `moving_in` means a partner is moving the site in (docs/808 §12): the zone stays where it is and `move` says who switches it.
|
|
105670
105730
|
* @enum {string}
|
|
@@ -109717,6 +109777,10 @@ export interface components {
|
|
|
109717
109777
|
*/
|
|
109718
109778
|
target_org_id: components["schemas"]["Uuid"];
|
|
109719
109779
|
};
|
|
109780
|
+
/** @description A site's transfer state as its owner sees it: the most recent offer in any state, or `null` when the site has never been offered. */
|
|
109781
|
+
SiteTransferState: {
|
|
109782
|
+
offer: components["schemas"]["SiteTransfer"] | null;
|
|
109783
|
+
};
|
|
109720
109784
|
/** @description One site's translation state. A site that has not bought this is still a `200`, with `state: disabled` and `tier: null` — the screen renders the offer from it. */
|
|
109721
109785
|
SiteTranslation: {
|
|
109722
109786
|
/** @description The ladder, so the screen never hardcodes a price. */
|
|
@@ -171791,6 +171855,34 @@ export interface operations {
|
|
|
171791
171855
|
503: components["responses"]["ServiceUnavailable"];
|
|
171792
171856
|
};
|
|
171793
171857
|
};
|
|
171858
|
+
removeDnsHolderRows: {
|
|
171859
|
+
parameters: {
|
|
171860
|
+
query?: never;
|
|
171861
|
+
header?: never;
|
|
171862
|
+
path: {
|
|
171863
|
+
/** @description The domain's id. */
|
|
171864
|
+
domainId: components["parameters"]["DomainId"];
|
|
171865
|
+
};
|
|
171866
|
+
cookie?: never;
|
|
171867
|
+
};
|
|
171868
|
+
requestBody?: never;
|
|
171869
|
+
responses: {
|
|
171870
|
+
/** @description The holder rows that were removed. */
|
|
171871
|
+
200: {
|
|
171872
|
+
headers: {
|
|
171873
|
+
[name: string]: unknown;
|
|
171874
|
+
};
|
|
171875
|
+
content: {
|
|
171876
|
+
"application/json": components["schemas"]["DnsHolderRowsRemoved"];
|
|
171877
|
+
};
|
|
171878
|
+
};
|
|
171879
|
+
401: components["responses"]["Unauthorized"];
|
|
171880
|
+
403: components["responses"]["Forbidden"];
|
|
171881
|
+
404: components["responses"]["NotFound"];
|
|
171882
|
+
429: components["responses"]["TooManyRequests"];
|
|
171883
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
171884
|
+
};
|
|
171885
|
+
};
|
|
171794
171886
|
listDnsRecords: {
|
|
171795
171887
|
parameters: {
|
|
171796
171888
|
query?: {
|
|
@@ -207237,14 +207329,14 @@ export interface operations {
|
|
|
207237
207329
|
};
|
|
207238
207330
|
requestBody?: never;
|
|
207239
207331
|
responses: {
|
|
207240
|
-
/** @description The site's most recent transfer offer. */
|
|
207332
|
+
/** @description The site's most recent transfer offer, or `null` when it has never been offered. */
|
|
207241
207333
|
200: {
|
|
207242
207334
|
headers: {
|
|
207243
207335
|
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
207244
207336
|
[name: string]: unknown;
|
|
207245
207337
|
};
|
|
207246
207338
|
content: {
|
|
207247
|
-
"application/json": components["schemas"]["
|
|
207339
|
+
"application/json": components["schemas"]["SiteTransferState"];
|
|
207248
207340
|
};
|
|
207249
207341
|
};
|
|
207250
207342
|
401: components["responses"]["Unauthorized"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1671",
|
|
4
4
|
"description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",
|