@wix/auto_sdk_domains_dns-propagation 1.0.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.
Files changed (39) hide show
  1. package/build/cjs/index.d.ts +20 -0
  2. package/build/cjs/index.js +162 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +372 -0
  5. package/build/cjs/index.typings.js +149 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +375 -0
  8. package/build/cjs/meta.js +140 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/es/index.d.mts +20 -0
  11. package/build/es/index.mjs +135 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/es/index.typings.d.mts +372 -0
  14. package/build/es/index.typings.mjs +122 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +375 -0
  17. package/build/es/meta.mjs +110 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/es/package.json +3 -0
  20. package/build/internal/cjs/index.d.ts +20 -0
  21. package/build/internal/cjs/index.js +162 -0
  22. package/build/internal/cjs/index.js.map +1 -0
  23. package/build/internal/cjs/index.typings.d.ts +372 -0
  24. package/build/internal/cjs/index.typings.js +149 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -0
  26. package/build/internal/cjs/meta.d.ts +375 -0
  27. package/build/internal/cjs/meta.js +140 -0
  28. package/build/internal/cjs/meta.js.map +1 -0
  29. package/build/internal/es/index.d.mts +20 -0
  30. package/build/internal/es/index.mjs +135 -0
  31. package/build/internal/es/index.mjs.map +1 -0
  32. package/build/internal/es/index.typings.d.mts +372 -0
  33. package/build/internal/es/index.typings.mjs +122 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -0
  35. package/build/internal/es/meta.d.mts +375 -0
  36. package/build/internal/es/meta.mjs +110 -0
  37. package/build/internal/es/meta.mjs.map +1 -0
  38. package/meta/package.json +3 -0
  39. package/package.json +54 -0
@@ -0,0 +1,20 @@
1
+ import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { DnsPropagation } from './index.typings.js';
3
+ export { AccountInfo, ActionEvent, CheckDnsPropagationRequest, CheckDnsPropagationResponse, CreateDnsPropagationRequest, CreateDnsPropagationResponse, DnsPropagationStatusInfoOneOf, DnsRecord, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FailedStatusInfo, GetDnsPropagationRequest, GetDnsPropagationResponse, IdentificationData, IdentificationDataIdOneOf, InvalidRecord, InvalidRecordInfo, InvalidRecordWithLiterals, MessageEnvelope, RestoreInfo, ScheduleDnsPropagationChecksRequest, ScheduleDnsPropagationChecksResponse, Status, StatusWithLiterals, SyncDnsPropagationDomainRequest, SyncDnsPropagationDomainResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js';
4
+
5
+ declare function getDnsPropagation$1(httpClient: HttpClient): GetDnsPropagationSignature;
6
+ interface GetDnsPropagationSignature {
7
+ /**
8
+ * Retrieves DNS propagation status for a domain.
9
+ *
10
+ * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,
11
+ * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.
12
+ * @param - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).
13
+ * @returns Retrieved DNS propagation.
14
+ */
15
+ (dnsPropagationId: string): Promise<NonNullablePaths<DnsPropagation, `failureInfo.invalidRecords` | `failureInfo.invalidARecordInfo.expectedDnsRecords` | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName` | `failureInfo.invalidARecordInfo.actualDnsRecords` | `_id` | `domain` | `status`, 6>>;
16
+ }
17
+
18
+ declare const getDnsPropagation: MaybeContext<BuildRESTFunction<typeof getDnsPropagation$1> & typeof getDnsPropagation$1>;
19
+
20
+ export { DnsPropagation, getDnsPropagation };
@@ -0,0 +1,162 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ InvalidRecord: () => InvalidRecord,
24
+ Status: () => Status,
25
+ WebhookIdentityType: () => WebhookIdentityType,
26
+ getDnsPropagation: () => getDnsPropagation4
27
+ });
28
+ module.exports = __toCommonJS(index_exports);
29
+
30
+ // src/premium-domains-v1-dns-propagation-dns-propagation.universal.ts
31
+ var import_transform_error = require("@wix/sdk-runtime/transform-error");
32
+ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
33
+
34
+ // src/premium-domains-v1-dns-propagation-dns-propagation.http.ts
35
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
36
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
37
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
38
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
39
+ function resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(opts) {
40
+ const domainToMappings = {
41
+ "www.wixapis.com": [
42
+ {
43
+ srcPath: "/premium/domains/v1/dns-propagations",
44
+ destPath: "/v1/dns-propagations"
45
+ }
46
+ ],
47
+ "*.dev.wix-code.com": [
48
+ {
49
+ srcPath: "/premium/domains/v1/dns-propagations",
50
+ destPath: "/v1/dns-propagations"
51
+ }
52
+ ],
53
+ _: [
54
+ {
55
+ srcPath: "/premium/domains/v1/dns-propagations",
56
+ destPath: "/v1/dns-propagations"
57
+ }
58
+ ]
59
+ };
60
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
61
+ }
62
+ var PACKAGE_NAME = "@wix/auto_sdk_domains_dns-propagation";
63
+ function getDnsPropagation(payload) {
64
+ function __getDnsPropagation({ host }) {
65
+ const metadata = {
66
+ entityFqdn: "wix.premium.domains.v1.dns_propagation",
67
+ method: "GET",
68
+ methodFqn: "com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation",
69
+ packageName: PACKAGE_NAME,
70
+ migrationOptions: {
71
+ optInTransformResponse: true
72
+ },
73
+ url: resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(
74
+ {
75
+ protoPath: "/v1/dns-propagations/{dnsPropagationId}",
76
+ data: payload,
77
+ host
78
+ }
79
+ ),
80
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
81
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
82
+ {
83
+ transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
84
+ paths: [
85
+ { path: "dnsPropagation.createdDate" },
86
+ { path: "dnsPropagation.updatedDate" }
87
+ ]
88
+ }
89
+ ])
90
+ };
91
+ return metadata;
92
+ }
93
+ return __getDnsPropagation;
94
+ }
95
+
96
+ // src/premium-domains-v1-dns-propagation-dns-propagation.universal.ts
97
+ var Status = /* @__PURE__ */ ((Status2) => {
98
+ Status2["SUCCEEDED"] = "SUCCEEDED";
99
+ Status2["FAILED"] = "FAILED";
100
+ Status2["IN_PROGRESS"] = "IN_PROGRESS";
101
+ return Status2;
102
+ })(Status || {});
103
+ var InvalidRecord = /* @__PURE__ */ ((InvalidRecord2) => {
104
+ InvalidRecord2["INVALID_A_RECORD"] = "INVALID_A_RECORD";
105
+ InvalidRecord2["INVALID_NS_RECORD"] = "INVALID_NS_RECORD";
106
+ InvalidRecord2["INVALID_CNAME_RECORD"] = "INVALID_CNAME_RECORD";
107
+ return InvalidRecord2;
108
+ })(InvalidRecord || {});
109
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
110
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
111
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
112
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
113
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
114
+ WebhookIdentityType2["APP"] = "APP";
115
+ return WebhookIdentityType2;
116
+ })(WebhookIdentityType || {});
117
+ async function getDnsPropagation2(dnsPropagationId) {
118
+ const { httpClient, sideEffects } = arguments[1];
119
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
120
+ dnsPropagationId
121
+ });
122
+ const reqOpts = getDnsPropagation(payload);
123
+ sideEffects?.onSiteCall?.();
124
+ try {
125
+ const result = await httpClient.request(reqOpts);
126
+ sideEffects?.onSuccess?.(result);
127
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.dnsPropagation;
128
+ } catch (err) {
129
+ const transformedError = (0, import_transform_error.transformError)(
130
+ err,
131
+ {
132
+ spreadPathsToArguments: {},
133
+ explicitPathsToArguments: { dnsPropagationId: "$[0]" },
134
+ singleArgumentUnchanged: false
135
+ },
136
+ ["dnsPropagationId"]
137
+ );
138
+ sideEffects?.onError?.(err);
139
+ throw transformedError;
140
+ }
141
+ }
142
+
143
+ // src/premium-domains-v1-dns-propagation-dns-propagation.public.ts
144
+ function getDnsPropagation3(httpClient) {
145
+ return (dnsPropagationId) => getDnsPropagation2(
146
+ dnsPropagationId,
147
+ // @ts-ignore
148
+ { httpClient }
149
+ );
150
+ }
151
+
152
+ // src/premium-domains-v1-dns-propagation-dns-propagation.context.ts
153
+ var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
154
+ var getDnsPropagation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getDnsPropagation3);
155
+ // Annotate the CommonJS export names for ESM import in node:
156
+ 0 && (module.exports = {
157
+ InvalidRecord,
158
+ Status,
159
+ WebhookIdentityType,
160
+ getDnsPropagation
161
+ });
162
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../index.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.universal.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.http.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.public.ts","../../src/premium-domains-v1-dns-propagation-dns-propagation.context.ts"],"sourcesContent":["export * from './src/premium-domains-v1-dns-propagation-dns-propagation.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPremiumDomainsV1DnsPropagation from './premium-domains-v1-dns-propagation-dns-propagation.http.js';\n\n/**\n * The DNS (Domain Name System) propagation object contains information for a domain.\n * Tracks whether the DNS records are correctly configured and propagated globally.\n * Learn more [about DNS propagation](https://support.wix.com/en/article/about-domain-propagation).\n */\nexport interface DnsPropagation extends DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n /**\n * ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).\n * @format HOSTNAME\n * @readonly\n */\n _id?: string;\n /**\n * Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Revision number, which increments by 1 each time the DNS propagation\n * is updated. Ignored when creating a DNS propagation.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the DNS propagation was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the DNS propagation was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Current status of the DNS propagation. Can take up to 3 days to complete.\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * Whether Wix name servers were detected among the domain's name servers.\n * For subdomains, this value matches the root domain's setting.\n * @readonly\n */\n dnsResolverIncludesWixNs?: boolean | null;\n}\n\n/** @oneof */\nexport interface DnsPropagationStatusInfoOneOf {\n /**\n * Details about DNS propagation failure, including which record types failed.\n * Only present when `status` is `FAILED`.\n * @readonly\n */\n failureInfo?: FailedStatusInfo;\n}\n\nexport enum Status {\n /** DNS propagation completed successfully. All required DNS records are properly configured and propagated. */\n SUCCEEDED = 'SUCCEEDED',\n /** DNS propagation failed. One or more DNS records are incorrectly configured or haven't propagated. */\n FAILED = 'FAILED',\n /** DNS propagation is in progress. Check again later for updated status. */\n IN_PROGRESS = 'IN_PROGRESS',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'SUCCEEDED'\n | 'FAILED'\n | 'IN_PROGRESS';\n\nexport interface FailedStatusInfo {\n /**\n * The DNS record types that failed propagation.\n *\n * Max: 3 invalid records\n * @readonly\n */\n invalidRecords?: InvalidRecordWithLiterals[];\n /**\n * Details about the A record for which the DNS propagation has failed.\n * Includes all expected and current values of the A record.\n * @readonly\n */\n invalidARecordInfo?: InvalidRecordInfo;\n /**\n * Details about the NS (nameserver) record for which the DNS propagation has failed.\n * Includes all expected and current values of the NS record.\n * @readonly\n */\n invalidNsRecordInfo?: InvalidRecordInfo;\n /**\n * Details about the CNAME record for which the DNS propagation has failed.\n * Includes all expected and current values of the CNAME records.\n * @readonly\n */\n invalidCnameRecordInfo?: InvalidRecordInfo;\n}\n\nexport enum InvalidRecord {\n /** The propagation of the A record has failed. */\n INVALID_A_RECORD = 'INVALID_A_RECORD',\n /** The propagation of the NS record has failed. */\n INVALID_NS_RECORD = 'INVALID_NS_RECORD',\n /** The propagation of at least one CNAME record has failed. */\n INVALID_CNAME_RECORD = 'INVALID_CNAME_RECORD',\n}\n\n/** @enumType */\nexport type InvalidRecordWithLiterals =\n | InvalidRecord\n | 'INVALID_A_RECORD'\n | 'INVALID_NS_RECORD'\n | 'INVALID_CNAME_RECORD';\n\nexport interface InvalidRecordInfo {\n /**\n * The DNS records that should be configured in the external database. Note that there can only be a single A and NS record.\n *\n * Max: 10 DNS records\n * @maxSize 10\n * @readonly\n */\n expectedDnsRecords?: DnsRecord[];\n /**\n * DNS records currently configured in the external database. Note that there can only be a single A and NS record.\n * @maxSize 10\n * @readonly\n */\n actualDnsRecords?: DnsRecord[];\n}\n\nexport interface DnsRecord {\n /**\n * Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.\n * @format HOSTNAME\n * @readonly\n */\n hostName?: string;\n /**\n * Values associated with the DNS record. For example, IP addresses for A records or server names for NS records.\n *\n * Min: 1 value\n * Max: 10 values\n * @minSize 1\n * @maxSize 10\n * @readonly\n */\n values?: string[];\n}\n\nexport interface CreateDnsPropagationRequest {\n /** DNS propagation to create. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CreateDnsPropagationResponse {\n /** Created DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface GetDnsPropagationRequest {\n /**\n * ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId: string;\n}\n\nexport interface GetDnsPropagationResponse {\n /** Retrieved DNS propagation. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface CheckDnsPropagationRequest {\n /**\n * ID of the DNS propagation to check the propagation status for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface CheckDnsPropagationResponse {\n /** Retrieved DNS propagation with current status. */\n dnsPropagation?: DnsPropagation;\n}\n\nexport interface ScheduleDnsPropagationChecksRequest {\n /**\n * ID of the DNS propagation to schedule a check for.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n}\n\nexport interface ScheduleDnsPropagationChecksResponse {}\n\nexport interface SyncDnsPropagationDomainRequest {\n /**\n * ID of the DNS propagation to synchronize.\n * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @format HOSTNAME\n */\n dnsPropagationId?: string;\n /**\n * Whether to perform a dry run without making actual changes.\n *\n * If true, reports sync issues without applying any fixes.\n * If false, attempts to resolve detected issues.\n *\n * Default: `false`\n */\n dryRunEnabled?: boolean | null;\n}\n\nexport interface SyncDnsPropagationDomainResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param dnsPropagationId - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @public\n * @documentationMaturity preview\n * @requiredField dnsPropagationId\n * @permissionId DOMAINS.READ_DNS_PROPAGATION\n * @returns Retrieved DNS propagation.\n * @fqn com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation\n */\nexport async function getDnsPropagation(\n dnsPropagationId: string\n): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n dnsPropagationId: dnsPropagationId,\n });\n\n const reqOpts =\n ambassadorWixPremiumDomainsV1DnsPropagation.getDnsPropagation(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.dnsPropagation!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { dnsPropagationId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['dnsPropagationId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n _: [\n {\n srcPath: '/premium/domains/v1/dns-propagations',\n destPath: '/v1/dns-propagations',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_domains_dns-propagation';\n\n/**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n */\nexport function getDnsPropagation(payload: object): RequestOptionsFactory<any> {\n function __getDnsPropagation({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.premium.domains.v1.dns_propagation',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressPremiumDomainPropagationV1DnsPropagationServiceUrl(\n {\n protoPath: '/v1/dns-propagations/{dnsPropagationId}',\n data: payload,\n host,\n }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'dnsPropagation.createdDate' },\n { path: 'dnsPropagation.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDnsPropagation;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n DnsPropagation,\n getDnsPropagation as universalGetDnsPropagation,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/domains' };\n\nexport function getDnsPropagation(\n httpClient: HttpClient\n): GetDnsPropagationSignature {\n return (dnsPropagationId: string) =>\n universalGetDnsPropagation(\n dnsPropagationId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetDnsPropagationSignature {\n /**\n * Retrieves DNS propagation status for a domain.\n *\n * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,\n * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.\n * @param - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).\n * @returns Retrieved DNS propagation.\n */\n (dnsPropagationId: string): Promise<\n NonNullablePaths<\n DnsPropagation,\n | `failureInfo.invalidRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords`\n | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName`\n | `failureInfo.invalidARecordInfo.actualDnsRecords`\n | `_id`\n | `domain`\n | `status`,\n 6\n >\n >;\n}\n\nexport {\n AccountInfo,\n ActionEvent,\n CheckDnsPropagationRequest,\n CheckDnsPropagationResponse,\n CreateDnsPropagationRequest,\n CreateDnsPropagationResponse,\n DnsPropagation,\n DnsPropagationStatusInfoOneOf,\n DnsRecord,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n FailedStatusInfo,\n GetDnsPropagationRequest,\n GetDnsPropagationResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidRecord,\n InvalidRecordInfo,\n MessageEnvelope,\n RestoreInfo,\n ScheduleDnsPropagationChecksRequest,\n ScheduleDnsPropagationChecksResponse,\n Status,\n SyncDnsPropagationDomainRequest,\n SyncDnsPropagationDomainResponse,\n WebhookIdentityType,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n","import { getDnsPropagation as publicGetDnsPropagation } from './premium-domains-v1-dns-propagation-dns-propagation.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getDnsPropagation: MaybeContext<\n BuildRESTFunction<typeof publicGetDnsPropagation> &\n typeof publicGetDnsPropagation\n> = /*#__PURE__*/ createRESTModule(publicGetDnsPropagation);\n\nexport {\n Status,\n InvalidRecord,\n WebhookIdentityType,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\nexport {\n DnsPropagation,\n DnsPropagationStatusInfoOneOf,\n FailedStatusInfo,\n InvalidRecordInfo,\n DnsRecord,\n CreateDnsPropagationRequest,\n CreateDnsPropagationResponse,\n GetDnsPropagationRequest,\n GetDnsPropagationResponse,\n CheckDnsPropagationRequest,\n CheckDnsPropagationResponse,\n ScheduleDnsPropagationChecksRequest,\n ScheduleDnsPropagationChecksResponse,\n SyncDnsPropagationDomainRequest,\n SyncDnsPropagationDomainResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\nexport {\n StatusWithLiterals,\n InvalidRecordWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './premium-domains-v1-dns-propagation-dns-propagation.universal.js';\n"],"mappings":"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","names":["getDnsPropagation","import_rest_modules","payload","Status","InvalidRecord","WebhookIdentityType","getDnsPropagation","sdkTransformError","getDnsPropagation","import_rest_modules","getDnsPropagation"]}
@@ -0,0 +1,372 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+
3
+ /**
4
+ * The DNS (Domain Name System) propagation object contains information for a domain.
5
+ * Tracks whether the DNS records are correctly configured and propagated globally.
6
+ * Learn more [about DNS propagation](https://support.wix.com/en/article/about-domain-propagation).
7
+ */
8
+ interface DnsPropagation extends DnsPropagationStatusInfoOneOf {
9
+ /**
10
+ * Details about DNS propagation failure, including which record types failed.
11
+ * Only present when `status` is `FAILED`.
12
+ * @readonly
13
+ */
14
+ failureInfo?: FailedStatusInfo;
15
+ /**
16
+ * ID of the DNS propagation. Identical to the domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology) (top-level domain).
17
+ * @format HOSTNAME
18
+ * @readonly
19
+ */
20
+ _id?: string;
21
+ /**
22
+ * Domain name, including the [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology). Both root domains and subdomains are supported.
23
+ * @format HOSTNAME
24
+ */
25
+ domain?: string;
26
+ /**
27
+ * Revision number, which increments by 1 each time the DNS propagation
28
+ * is updated. Ignored when creating a DNS propagation.
29
+ * @readonly
30
+ */
31
+ revision?: string | null;
32
+ /**
33
+ * Date and time the DNS propagation was created.
34
+ * @readonly
35
+ */
36
+ _createdDate?: Date | null;
37
+ /**
38
+ * Date and time the DNS propagation was updated.
39
+ * @readonly
40
+ */
41
+ _updatedDate?: Date | null;
42
+ /**
43
+ * Current status of the DNS propagation. Can take up to 3 days to complete.
44
+ * @readonly
45
+ */
46
+ status?: StatusWithLiterals;
47
+ /**
48
+ * Whether Wix name servers were detected among the domain's name servers.
49
+ * For subdomains, this value matches the root domain's setting.
50
+ * @readonly
51
+ */
52
+ dnsResolverIncludesWixNs?: boolean | null;
53
+ }
54
+ /** @oneof */
55
+ interface DnsPropagationStatusInfoOneOf {
56
+ /**
57
+ * Details about DNS propagation failure, including which record types failed.
58
+ * Only present when `status` is `FAILED`.
59
+ * @readonly
60
+ */
61
+ failureInfo?: FailedStatusInfo;
62
+ }
63
+ declare enum Status {
64
+ /** DNS propagation completed successfully. All required DNS records are properly configured and propagated. */
65
+ SUCCEEDED = "SUCCEEDED",
66
+ /** DNS propagation failed. One or more DNS records are incorrectly configured or haven't propagated. */
67
+ FAILED = "FAILED",
68
+ /** DNS propagation is in progress. Check again later for updated status. */
69
+ IN_PROGRESS = "IN_PROGRESS"
70
+ }
71
+ /** @enumType */
72
+ type StatusWithLiterals = Status | 'SUCCEEDED' | 'FAILED' | 'IN_PROGRESS';
73
+ interface FailedStatusInfo {
74
+ /**
75
+ * The DNS record types that failed propagation.
76
+ *
77
+ * Max: 3 invalid records
78
+ * @readonly
79
+ */
80
+ invalidRecords?: InvalidRecordWithLiterals[];
81
+ /**
82
+ * Details about the A record for which the DNS propagation has failed.
83
+ * Includes all expected and current values of the A record.
84
+ * @readonly
85
+ */
86
+ invalidARecordInfo?: InvalidRecordInfo;
87
+ /**
88
+ * Details about the NS (nameserver) record for which the DNS propagation has failed.
89
+ * Includes all expected and current values of the NS record.
90
+ * @readonly
91
+ */
92
+ invalidNsRecordInfo?: InvalidRecordInfo;
93
+ /**
94
+ * Details about the CNAME record for which the DNS propagation has failed.
95
+ * Includes all expected and current values of the CNAME records.
96
+ * @readonly
97
+ */
98
+ invalidCnameRecordInfo?: InvalidRecordInfo;
99
+ }
100
+ declare enum InvalidRecord {
101
+ /** The propagation of the A record has failed. */
102
+ INVALID_A_RECORD = "INVALID_A_RECORD",
103
+ /** The propagation of the NS record has failed. */
104
+ INVALID_NS_RECORD = "INVALID_NS_RECORD",
105
+ /** The propagation of at least one CNAME record has failed. */
106
+ INVALID_CNAME_RECORD = "INVALID_CNAME_RECORD"
107
+ }
108
+ /** @enumType */
109
+ type InvalidRecordWithLiterals = InvalidRecord | 'INVALID_A_RECORD' | 'INVALID_NS_RECORD' | 'INVALID_CNAME_RECORD';
110
+ interface InvalidRecordInfo {
111
+ /**
112
+ * The DNS records that should be configured in the external database. Note that there can only be a single A and NS record.
113
+ *
114
+ * Max: 10 DNS records
115
+ * @maxSize 10
116
+ * @readonly
117
+ */
118
+ expectedDnsRecords?: DnsRecord[];
119
+ /**
120
+ * DNS records currently configured in the external database. Note that there can only be a single A and NS record.
121
+ * @maxSize 10
122
+ * @readonly
123
+ */
124
+ actualDnsRecords?: DnsRecord[];
125
+ }
126
+ interface DnsRecord {
127
+ /**
128
+ * Hostname for the DNS record. For example, `domain.com` or `mail.domain.com`. Supports both root domains and subdomains.
129
+ * @format HOSTNAME
130
+ * @readonly
131
+ */
132
+ hostName?: string;
133
+ /**
134
+ * Values associated with the DNS record. For example, IP addresses for A records or server names for NS records.
135
+ *
136
+ * Min: 1 value
137
+ * Max: 10 values
138
+ * @minSize 1
139
+ * @maxSize 10
140
+ * @readonly
141
+ */
142
+ values?: string[];
143
+ }
144
+ interface CreateDnsPropagationRequest {
145
+ /** DNS propagation to create. */
146
+ dnsPropagation?: DnsPropagation;
147
+ }
148
+ interface CreateDnsPropagationResponse {
149
+ /** Created DNS propagation. */
150
+ dnsPropagation?: DnsPropagation;
151
+ }
152
+ interface GetDnsPropagationRequest {
153
+ /**
154
+ * ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).
155
+ * @format HOSTNAME
156
+ */
157
+ dnsPropagationId: string;
158
+ }
159
+ interface GetDnsPropagationResponse {
160
+ /** Retrieved DNS propagation. */
161
+ dnsPropagation?: DnsPropagation;
162
+ }
163
+ interface CheckDnsPropagationRequest {
164
+ /**
165
+ * ID of the DNS propagation to check the propagation status for.
166
+ * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).
167
+ * @format HOSTNAME
168
+ */
169
+ dnsPropagationId?: string;
170
+ }
171
+ interface CheckDnsPropagationResponse {
172
+ /** Retrieved DNS propagation with current status. */
173
+ dnsPropagation?: DnsPropagation;
174
+ }
175
+ interface ScheduleDnsPropagationChecksRequest {
176
+ /**
177
+ * ID of the DNS propagation to schedule a check for.
178
+ * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).
179
+ * @format HOSTNAME
180
+ */
181
+ dnsPropagationId?: string;
182
+ }
183
+ interface ScheduleDnsPropagationChecksResponse {
184
+ }
185
+ interface SyncDnsPropagationDomainRequest {
186
+ /**
187
+ * ID of the DNS propagation to synchronize.
188
+ * Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).
189
+ * @format HOSTNAME
190
+ */
191
+ dnsPropagationId?: string;
192
+ /**
193
+ * Whether to perform a dry run without making actual changes.
194
+ *
195
+ * If true, reports sync issues without applying any fixes.
196
+ * If false, attempts to resolve detected issues.
197
+ *
198
+ * Default: `false`
199
+ */
200
+ dryRunEnabled?: boolean | null;
201
+ }
202
+ interface SyncDnsPropagationDomainResponse {
203
+ }
204
+ interface DomainEvent extends DomainEventBodyOneOf {
205
+ createdEvent?: EntityCreatedEvent;
206
+ updatedEvent?: EntityUpdatedEvent;
207
+ deletedEvent?: EntityDeletedEvent;
208
+ actionEvent?: ActionEvent;
209
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
210
+ _id?: string;
211
+ /**
212
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
213
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
214
+ */
215
+ entityFqdn?: string;
216
+ /**
217
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
218
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
219
+ */
220
+ slug?: string;
221
+ /** ID of the entity associated with the event. */
222
+ entityId?: string;
223
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
224
+ eventTime?: Date | null;
225
+ /**
226
+ * Whether the event was triggered as a result of a privacy regulation application
227
+ * (for example, GDPR).
228
+ */
229
+ triggeredByAnonymizeRequest?: boolean | null;
230
+ /** If present, indicates the action that triggered the event. */
231
+ originatedFrom?: string | null;
232
+ /**
233
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
234
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
235
+ */
236
+ entityEventSequence?: string | null;
237
+ }
238
+ /** @oneof */
239
+ interface DomainEventBodyOneOf {
240
+ createdEvent?: EntityCreatedEvent;
241
+ updatedEvent?: EntityUpdatedEvent;
242
+ deletedEvent?: EntityDeletedEvent;
243
+ actionEvent?: ActionEvent;
244
+ }
245
+ interface EntityCreatedEvent {
246
+ entity?: string;
247
+ }
248
+ interface RestoreInfo {
249
+ deletedDate?: Date | null;
250
+ }
251
+ interface EntityUpdatedEvent {
252
+ /**
253
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
254
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
255
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
256
+ */
257
+ currentEntity?: string;
258
+ }
259
+ interface EntityDeletedEvent {
260
+ /** Entity that was deleted. */
261
+ deletedEntity?: string | null;
262
+ }
263
+ interface ActionEvent {
264
+ body?: string;
265
+ }
266
+ interface MessageEnvelope {
267
+ /**
268
+ * App instance ID.
269
+ * @format GUID
270
+ */
271
+ instanceId?: string | null;
272
+ /**
273
+ * Event type.
274
+ * @maxLength 150
275
+ */
276
+ eventType?: string;
277
+ /** The identification type and identity data. */
278
+ identity?: IdentificationData;
279
+ /** Stringify payload. */
280
+ data?: string;
281
+ /** Details related to the account */
282
+ accountInfo?: AccountInfo;
283
+ }
284
+ interface IdentificationData extends IdentificationDataIdOneOf {
285
+ /**
286
+ * ID of a site visitor that has not logged in to the site.
287
+ * @format GUID
288
+ */
289
+ anonymousVisitorId?: string;
290
+ /**
291
+ * ID of a site visitor that has logged in to the site.
292
+ * @format GUID
293
+ */
294
+ memberId?: string;
295
+ /**
296
+ * ID of a Wix user (site owner, contributor, etc.).
297
+ * @format GUID
298
+ */
299
+ wixUserId?: string;
300
+ /**
301
+ * ID of an app.
302
+ * @format GUID
303
+ */
304
+ appId?: string;
305
+ /** @readonly */
306
+ identityType?: WebhookIdentityTypeWithLiterals;
307
+ }
308
+ /** @oneof */
309
+ interface IdentificationDataIdOneOf {
310
+ /**
311
+ * ID of a site visitor that has not logged in to the site.
312
+ * @format GUID
313
+ */
314
+ anonymousVisitorId?: string;
315
+ /**
316
+ * ID of a site visitor that has logged in to the site.
317
+ * @format GUID
318
+ */
319
+ memberId?: string;
320
+ /**
321
+ * ID of a Wix user (site owner, contributor, etc.).
322
+ * @format GUID
323
+ */
324
+ wixUserId?: string;
325
+ /**
326
+ * ID of an app.
327
+ * @format GUID
328
+ */
329
+ appId?: string;
330
+ }
331
+ declare enum WebhookIdentityType {
332
+ UNKNOWN = "UNKNOWN",
333
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
334
+ MEMBER = "MEMBER",
335
+ WIX_USER = "WIX_USER",
336
+ APP = "APP"
337
+ }
338
+ /** @enumType */
339
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
340
+ interface AccountInfo {
341
+ /**
342
+ * ID of the Wix account associated with the event.
343
+ * @format GUID
344
+ */
345
+ accountId?: string | null;
346
+ /**
347
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
348
+ * @format GUID
349
+ */
350
+ parentAccountId?: string | null;
351
+ /**
352
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
353
+ * @format GUID
354
+ */
355
+ siteId?: string | null;
356
+ }
357
+ /**
358
+ * Retrieves DNS propagation status for a domain.
359
+ *
360
+ * Use this method to check if DNS records are properly configured and propagated after connecting a custom domain,
361
+ * during domain setup to see required DNS records, or to monitor ongoing propagation status after making DNS changes.
362
+ * @param dnsPropagationId - ID of the DNS propagation to retrieve. Identical to the domain name, including [TLD](https://dev.wix.com/docs/api-reference/account-level/domains/dns-propagation/introduction#terminology).
363
+ * @public
364
+ * @documentationMaturity preview
365
+ * @requiredField dnsPropagationId
366
+ * @permissionId DOMAINS.READ_DNS_PROPAGATION
367
+ * @returns Retrieved DNS propagation.
368
+ * @fqn com.wixpress.premium.domain.propagation.v1.DnsPropagationService.GetDnsPropagation
369
+ */
370
+ declare function getDnsPropagation(dnsPropagationId: string): Promise<NonNullablePaths<DnsPropagation, `failureInfo.invalidRecords` | `failureInfo.invalidARecordInfo.expectedDnsRecords` | `failureInfo.invalidARecordInfo.expectedDnsRecords.${number}.hostName` | `failureInfo.invalidARecordInfo.actualDnsRecords` | `_id` | `domain` | `status`, 6>>;
371
+
372
+ export { type AccountInfo, type ActionEvent, type CheckDnsPropagationRequest, type CheckDnsPropagationResponse, type CreateDnsPropagationRequest, type CreateDnsPropagationResponse, type DnsPropagation, type DnsPropagationStatusInfoOneOf, type DnsRecord, type DomainEvent, type DomainEventBodyOneOf, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type FailedStatusInfo, type GetDnsPropagationRequest, type GetDnsPropagationResponse, type IdentificationData, type IdentificationDataIdOneOf, InvalidRecord, type InvalidRecordInfo, type InvalidRecordWithLiterals, type MessageEnvelope, type RestoreInfo, type ScheduleDnsPropagationChecksRequest, type ScheduleDnsPropagationChecksResponse, Status, type StatusWithLiterals, type SyncDnsPropagationDomainRequest, type SyncDnsPropagationDomainResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getDnsPropagation };