@wix/domains 1.0.17 → 1.0.19

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.
@@ -20,7 +20,7 @@ interface ConnectedDomain {
20
20
  */
21
21
  connectionType?: ConnectionType$1;
22
22
  /**
23
- * Information about the site to which the domain is assigned to and whether
23
+ * Information about the site to which the domain is assigned, and whether
24
24
  * it's the primary domain or a redirect.
25
25
  */
26
26
  siteInfo?: SiteInfo$1;
@@ -56,20 +56,20 @@ declare enum ConnectionType$1 {
56
56
  }
57
57
  interface SiteInfo$1 extends SiteInfoAssignmentInfoOneOf$1 {
58
58
  /**
59
- * Extra details in case assignment type is redirect.
59
+ * Redirect information, relevant when `assignmentType` = `REDIRECT`.
60
60
  * @readonly
61
61
  */
62
62
  redirectInfo?: RedirectAssignmentInfo$1;
63
63
  /**
64
- * ID of the site the domain is assigned to, will be taken from context.
64
+ * ID of the site to which the domain is assigned.
65
65
  * @readonly
66
66
  */
67
67
  _id?: string | null;
68
68
  /**
69
- * The assignment type the relationship will be based on:
70
- * + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type
71
- * + `"PRIMARY"`: There can only be one primary domain per site, the result of this assignment type is that the domain will lead directly to a site.
72
- * + `"REDIRECT"`: There can be multiple redirect domains. the result of this assignment type is that the redirects will lead to the primary domain
69
+ * The relationship assigned for this domain to the site:
70
+ * + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type.
71
+ * + `"PRIMARY"`: The singular primary domain for a site. When this type is assigned, this domain will lead directly to the site.
72
+ * + `"REDIRECT"`: A redirect domain for a site. Each site can have multiple redirect domains. When this type is assigned, this domain will redirect to the primary domain.
73
73
  * Read more about [primary and redirected domains](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).
74
74
  */
75
75
  assignmentType?: AssignmentType$1;
@@ -77,7 +77,7 @@ interface SiteInfo$1 extends SiteInfoAssignmentInfoOneOf$1 {
77
77
  /** @oneof */
78
78
  interface SiteInfoAssignmentInfoOneOf$1 {
79
79
  /**
80
- * Extra details in case assignment type is redirect.
80
+ * Redirect information, relevant when `assignmentType` = `REDIRECT`.
81
81
  * @readonly
82
82
  */
83
83
  redirectInfo?: RedirectAssignmentInfo$1;
@@ -89,7 +89,7 @@ declare enum AssignmentType$1 {
89
89
  }
90
90
  interface RedirectAssignmentInfo$1 {
91
91
  /**
92
- * Primary domain the redirect points to.
92
+ * Primary domain to which this domain will redirect.
93
93
  * @readonly
94
94
  */
95
95
  primaryDomain?: string;
@@ -159,7 +159,7 @@ interface ListConnectedDomainsResponse {
159
159
  interface CursorPagingMetadata$2 {
160
160
  /** Number of domains returned in the response. */
161
161
  count?: number | null;
162
- /** Offset that was requested. */
162
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
163
163
  cursors?: Cursors$2;
164
164
  /**
165
165
  * Indicates if there are more results after the current page.
@@ -226,7 +226,7 @@ interface DomainEventBodyOneOf$2 {
226
226
  interface EntityCreatedEvent$2 {
227
227
  entity?: string;
228
228
  }
229
- interface RestoreInfo {
229
+ interface RestoreInfo$1 {
230
230
  deletedDate?: Date;
231
231
  }
232
232
  interface EntityUpdatedEvent$2 {
@@ -329,56 +329,6 @@ interface ListConnectedDomainsResponseNonNullableFields {
329
329
  dnsPropagationStatus: DnsPropagationStatus$1;
330
330
  }[];
331
331
  }
332
- interface BaseEventMetadata {
333
- /** App instance ID. */
334
- instanceId?: string | null;
335
- /** Event type. */
336
- eventType?: string;
337
- /** The identification type and identity data. */
338
- identity?: IdentificationData$2;
339
- }
340
- interface EventMetadata extends BaseEventMetadata {
341
- /**
342
- * Unique event ID.
343
- * Allows clients to ignore duplicate webhooks.
344
- */
345
- _id?: string;
346
- /**
347
- * Assumes actions are also always typed to an entity_type
348
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
349
- */
350
- entityFqdn?: string;
351
- /**
352
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
353
- * This is although the created/updated/deleted notion is duplication of the oneof types
354
- * Example: created/updated/deleted/started/completed/email_opened
355
- */
356
- slug?: string;
357
- /** ID of the entity associated with the event. */
358
- entityId?: string;
359
- /** Event timestamp. */
360
- eventTime?: Date;
361
- /**
362
- * Whether the event was triggered as a result of a privacy regulation application
363
- * (for example, GDPR).
364
- */
365
- triggeredByAnonymizeRequest?: boolean | null;
366
- /** If present, indicates the action that triggered the event. */
367
- originatedFrom?: string | null;
368
- /**
369
- * A sequence number defining the order of updates to the underlying entity.
370
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
371
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
372
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
373
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
374
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
375
- */
376
- entityEventSequence?: string | null;
377
- }
378
- interface ConnectedDomainRemovedEnvelope {
379
- data: DomainRemovedEvent$1;
380
- metadata: EventMetadata;
381
- }
382
332
  interface ListConnectedDomainsOptions {
383
333
  /** Cursor paging options. */
384
334
  paging?: CursorPaging$2;
@@ -408,14 +358,6 @@ type APIMetadata = {
408
358
  entityFqdn?: string;
409
359
  packageName?: string;
410
360
  };
411
- type EventDefinition<Payload = unknown, Type extends string = string> = {
412
- __type: 'event-definition';
413
- type: Type;
414
- isDomainEvent?: boolean;
415
- transformations?: (envelope: unknown) => Payload;
416
- __payload: Payload;
417
- };
418
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
419
361
 
420
362
  declare global {
421
363
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -455,17 +397,13 @@ declare function getConnectedDomain(httpClient: HttpClient): (connectedDomainId:
455
397
  }>;
456
398
  declare function deleteConnectedDomain(httpClient: HttpClient): (connectedDomainId: string) => Promise<void>;
457
399
  declare function listConnectedDomains(httpClient: HttpClient): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
458
- declare const onConnectedDomainRemoved: EventDefinition<ConnectedDomainRemovedEnvelope, "wix.premium.domains.v1.connected_domain_removed">;
459
400
 
460
- type index_d$5_BaseEventMetadata = BaseEventMetadata;
461
401
  type index_d$5_ConnectedDomain = ConnectedDomain;
462
- type index_d$5_ConnectedDomainRemovedEnvelope = ConnectedDomainRemovedEnvelope;
463
402
  type index_d$5_CreateConnectedDomainRequest = CreateConnectedDomainRequest;
464
403
  type index_d$5_CreateConnectedDomainResponse = CreateConnectedDomainResponse;
465
404
  type index_d$5_CreateConnectedDomainResponseNonNullableFields = CreateConnectedDomainResponseNonNullableFields;
466
405
  type index_d$5_DeleteConnectedDomainRequest = DeleteConnectedDomainRequest;
467
406
  type index_d$5_DeleteConnectedDomainResponse = DeleteConnectedDomainResponse;
468
- type index_d$5_EventMetadata = EventMetadata;
469
407
  type index_d$5_GetConnectedDomainRequest = GetConnectedDomainRequest;
470
408
  type index_d$5_GetConnectedDomainResponse = GetConnectedDomainResponse;
471
409
  type index_d$5_GetConnectedDomainResponseNonNullableFields = GetConnectedDomainResponseNonNullableFields;
@@ -473,14 +411,12 @@ type index_d$5_ListConnectedDomainsOptions = ListConnectedDomainsOptions;
473
411
  type index_d$5_ListConnectedDomainsRequest = ListConnectedDomainsRequest;
474
412
  type index_d$5_ListConnectedDomainsResponse = ListConnectedDomainsResponse;
475
413
  type index_d$5_ListConnectedDomainsResponseNonNullableFields = ListConnectedDomainsResponseNonNullableFields;
476
- type index_d$5_RestoreInfo = RestoreInfo;
477
414
  declare const index_d$5_createConnectedDomain: typeof createConnectedDomain;
478
415
  declare const index_d$5_deleteConnectedDomain: typeof deleteConnectedDomain;
479
416
  declare const index_d$5_getConnectedDomain: typeof getConnectedDomain;
480
417
  declare const index_d$5_listConnectedDomains: typeof listConnectedDomains;
481
- declare const index_d$5_onConnectedDomainRemoved: typeof onConnectedDomainRemoved;
482
418
  declare namespace index_d$5 {
483
- export { type ActionEvent$2 as ActionEvent, AssignmentType$1 as AssignmentType, type index_d$5_BaseEventMetadata as BaseEventMetadata, type index_d$5_ConnectedDomain as ConnectedDomain, type index_d$5_ConnectedDomainRemovedEnvelope as ConnectedDomainRemovedEnvelope, ConnectionType$1 as ConnectionType, type index_d$5_CreateConnectedDomainRequest as CreateConnectedDomainRequest, type index_d$5_CreateConnectedDomainResponse as CreateConnectedDomainResponse, type index_d$5_CreateConnectedDomainResponseNonNullableFields as CreateConnectedDomainResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type Cursors$2 as Cursors, type index_d$5_DeleteConnectedDomainRequest as DeleteConnectedDomainRequest, type index_d$5_DeleteConnectedDomainResponse as DeleteConnectedDomainResponse, DnsPropagationStatus$1 as DnsPropagationStatus, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type DomainRemovedEvent$1 as DomainRemovedEvent, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$5_EventMetadata as EventMetadata, type index_d$5_GetConnectedDomainRequest as GetConnectedDomainRequest, type index_d$5_GetConnectedDomainResponse as GetConnectedDomainResponse, type index_d$5_GetConnectedDomainResponseNonNullableFields as GetConnectedDomainResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$5_ListConnectedDomainsOptions as ListConnectedDomainsOptions, type index_d$5_ListConnectedDomainsRequest as ListConnectedDomainsRequest, type index_d$5_ListConnectedDomainsResponse as ListConnectedDomainsResponse, type index_d$5_ListConnectedDomainsResponseNonNullableFields as ListConnectedDomainsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type RedirectAssignmentInfo$1 as RedirectAssignmentInfo, type index_d$5_RestoreInfo as RestoreInfo, type SiteInfo$1 as SiteInfo, type SiteInfoAssignmentInfoOneOf$1 as SiteInfoAssignmentInfoOneOf, WebhookIdentityType$2 as WebhookIdentityType, __metadata$5 as __metadata, index_d$5_createConnectedDomain as createConnectedDomain, index_d$5_deleteConnectedDomain as deleteConnectedDomain, index_d$5_getConnectedDomain as getConnectedDomain, index_d$5_listConnectedDomains as listConnectedDomains, index_d$5_onConnectedDomainRemoved as onConnectedDomainRemoved };
419
+ export { type ActionEvent$2 as ActionEvent, AssignmentType$1 as AssignmentType, type index_d$5_ConnectedDomain as ConnectedDomain, ConnectionType$1 as ConnectionType, type index_d$5_CreateConnectedDomainRequest as CreateConnectedDomainRequest, type index_d$5_CreateConnectedDomainResponse as CreateConnectedDomainResponse, type index_d$5_CreateConnectedDomainResponseNonNullableFields as CreateConnectedDomainResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type Cursors$2 as Cursors, type index_d$5_DeleteConnectedDomainRequest as DeleteConnectedDomainRequest, type index_d$5_DeleteConnectedDomainResponse as DeleteConnectedDomainResponse, DnsPropagationStatus$1 as DnsPropagationStatus, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type DomainRemovedEvent$1 as DomainRemovedEvent, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$5_GetConnectedDomainRequest as GetConnectedDomainRequest, type index_d$5_GetConnectedDomainResponse as GetConnectedDomainResponse, type index_d$5_GetConnectedDomainResponseNonNullableFields as GetConnectedDomainResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$5_ListConnectedDomainsOptions as ListConnectedDomainsOptions, type index_d$5_ListConnectedDomainsRequest as ListConnectedDomainsRequest, type index_d$5_ListConnectedDomainsResponse as ListConnectedDomainsResponse, type index_d$5_ListConnectedDomainsResponseNonNullableFields as ListConnectedDomainsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type RedirectAssignmentInfo$1 as RedirectAssignmentInfo, type RestoreInfo$1 as RestoreInfo, type SiteInfo$1 as SiteInfo, type SiteInfoAssignmentInfoOneOf$1 as SiteInfoAssignmentInfoOneOf, WebhookIdentityType$2 as WebhookIdentityType, __metadata$5 as __metadata, index_d$5_createConnectedDomain as createConnectedDomain, index_d$5_deleteConnectedDomain as deleteConnectedDomain, index_d$5_getConnectedDomain as getConnectedDomain, index_d$5_listConnectedDomains as listConnectedDomains };
484
420
  }
485
421
 
486
422
  /**
@@ -1514,7 +1450,7 @@ interface ListRegisteredDomainsResponse {
1514
1450
  interface CursorPagingMetadata$1 {
1515
1451
  /** Number of domains returned in the response. */
1516
1452
  count?: number | null;
1517
- /** Offset that was requested. */
1453
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
1518
1454
  cursors?: Cursors$1;
1519
1455
  /**
1520
1456
  * Indicates if there are more results after the current page.
@@ -1598,6 +1534,9 @@ interface DomainEventBodyOneOf {
1598
1534
  interface EntityCreatedEvent {
1599
1535
  entity?: string;
1600
1536
  }
1537
+ interface RestoreInfo {
1538
+ deletedDate?: Date;
1539
+ }
1601
1540
  interface EntityUpdatedEvent {
1602
1541
  /**
1603
1542
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
@@ -2076,6 +2015,7 @@ type index_d$2_RedeemRegisteredDomainResponseNonNullableFields = RedeemRegistere
2076
2015
  type index_d$2_RedirectAssignmentInfo = RedirectAssignmentInfo;
2077
2016
  type index_d$2_RegisteredDomain = RegisteredDomain;
2078
2017
  type index_d$2_RegisteredDomainStatusInfoOneOf = RegisteredDomainStatusInfoOneOf;
2018
+ type index_d$2_RestoreInfo = RestoreInfo;
2079
2019
  type index_d$2_SiteInfo = SiteInfo;
2080
2020
  type index_d$2_SiteInfoAssignmentInfoOneOf = SiteInfoAssignmentInfoOneOf;
2081
2021
  type index_d$2_Status = Status;
@@ -2087,7 +2027,7 @@ declare const index_d$2_getRegisteredDomain: typeof getRegisteredDomain;
2087
2027
  declare const index_d$2_listRegisteredDomains: typeof listRegisteredDomains;
2088
2028
  declare const index_d$2_redeemRegisteredDomain: typeof redeemRegisteredDomain;
2089
2029
  declare namespace index_d$2 {
2090
- export { type index_d$2_ActionEvent as ActionEvent, index_d$2_AssignmentType as AssignmentType, type index_d$2_ContactData as ContactData, type index_d$2_Contacts as Contacts, type index_d$2_CreateRegisteredDomainRequest as CreateRegisteredDomainRequest, type index_d$2_CreateRegisteredDomainResponse as CreateRegisteredDomainResponse, type index_d$2_CreateRegisteredDomainResponseNonNullableFields as CreateRegisteredDomainResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type Cursors$1 as Cursors, type index_d$2_DeleteRegisteredDomainByIdRequest as DeleteRegisteredDomainByIdRequest, type index_d$2_DeleteRegisteredDomainByIdResponse as DeleteRegisteredDomainByIdResponse, index_d$2_DnsPropagationStatus as DnsPropagationStatus, type index_d$2_DomainEvent as DomainEvent, type index_d$2_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$2_EntityCreatedEvent as EntityCreatedEvent, type index_d$2_EntityDeletedEvent as EntityDeletedEvent, type index_d$2_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$2_Expired as Expired, type index_d$2_FailedRegistrationInfo as FailedRegistrationInfo, index_d$2_FailureCode as FailureCode, type index_d$2_GetRegisteredDomainRequest as GetRegisteredDomainRequest, type index_d$2_GetRegisteredDomainResponse as GetRegisteredDomainResponse, type index_d$2_GetRegisteredDomainResponseNonNullableFields as GetRegisteredDomainResponseNonNullableFields, index_d$2_ICANNConfirmationStatus as ICANNConfirmationStatus, type index_d$2_ICANNConfirmationStatusInfo as ICANNConfirmationStatusInfo, type index_d$2_ICANNConfirmationStatusInfoStatusOneOf as ICANNConfirmationStatusInfoStatusOneOf, type index_d$2_IdentificationData as IdentificationData, type index_d$2_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$2_LatestAttempt as LatestAttempt, type index_d$2_ListRegisteredDomainsOptions as ListRegisteredDomainsOptions, type index_d$2_ListRegisteredDomainsRequest as ListRegisteredDomainsRequest, type index_d$2_ListRegisteredDomainsResponse as ListRegisteredDomainsResponse, type index_d$2_ListRegisteredDomainsResponseNonNullableFields as ListRegisteredDomainsResponseNonNullableFields, type index_d$2_MessageEnvelope as MessageEnvelope, type index_d$2_Pending as Pending, type index_d$2_PendingRegistrationInfo as PendingRegistrationInfo, type index_d$2_RedeemRegisteredDomainRequest as RedeemRegisteredDomainRequest, type index_d$2_RedeemRegisteredDomainResponse as RedeemRegisteredDomainResponse, type index_d$2_RedeemRegisteredDomainResponseNonNullableFields as RedeemRegisteredDomainResponseNonNullableFields, type index_d$2_RedirectAssignmentInfo as RedirectAssignmentInfo, type index_d$2_RegisteredDomain as RegisteredDomain, type index_d$2_RegisteredDomainStatusInfoOneOf as RegisteredDomainStatusInfoOneOf, type index_d$2_SiteInfo as SiteInfo, type index_d$2_SiteInfoAssignmentInfoOneOf as SiteInfoAssignmentInfoOneOf, index_d$2_Status as Status, index_d$2_WebhookIdentityType as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_createRegisteredDomain as createRegisteredDomain, index_d$2_getRegisteredDomain as getRegisteredDomain, index_d$2_listRegisteredDomains as listRegisteredDomains, index_d$2_redeemRegisteredDomain as redeemRegisteredDomain };
2030
+ export { type index_d$2_ActionEvent as ActionEvent, index_d$2_AssignmentType as AssignmentType, type index_d$2_ContactData as ContactData, type index_d$2_Contacts as Contacts, type index_d$2_CreateRegisteredDomainRequest as CreateRegisteredDomainRequest, type index_d$2_CreateRegisteredDomainResponse as CreateRegisteredDomainResponse, type index_d$2_CreateRegisteredDomainResponseNonNullableFields as CreateRegisteredDomainResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type Cursors$1 as Cursors, type index_d$2_DeleteRegisteredDomainByIdRequest as DeleteRegisteredDomainByIdRequest, type index_d$2_DeleteRegisteredDomainByIdResponse as DeleteRegisteredDomainByIdResponse, index_d$2_DnsPropagationStatus as DnsPropagationStatus, type index_d$2_DomainEvent as DomainEvent, type index_d$2_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$2_EntityCreatedEvent as EntityCreatedEvent, type index_d$2_EntityDeletedEvent as EntityDeletedEvent, type index_d$2_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$2_Expired as Expired, type index_d$2_FailedRegistrationInfo as FailedRegistrationInfo, index_d$2_FailureCode as FailureCode, type index_d$2_GetRegisteredDomainRequest as GetRegisteredDomainRequest, type index_d$2_GetRegisteredDomainResponse as GetRegisteredDomainResponse, type index_d$2_GetRegisteredDomainResponseNonNullableFields as GetRegisteredDomainResponseNonNullableFields, index_d$2_ICANNConfirmationStatus as ICANNConfirmationStatus, type index_d$2_ICANNConfirmationStatusInfo as ICANNConfirmationStatusInfo, type index_d$2_ICANNConfirmationStatusInfoStatusOneOf as ICANNConfirmationStatusInfoStatusOneOf, type index_d$2_IdentificationData as IdentificationData, type index_d$2_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$2_LatestAttempt as LatestAttempt, type index_d$2_ListRegisteredDomainsOptions as ListRegisteredDomainsOptions, type index_d$2_ListRegisteredDomainsRequest as ListRegisteredDomainsRequest, type index_d$2_ListRegisteredDomainsResponse as ListRegisteredDomainsResponse, type index_d$2_ListRegisteredDomainsResponseNonNullableFields as ListRegisteredDomainsResponseNonNullableFields, type index_d$2_MessageEnvelope as MessageEnvelope, type index_d$2_Pending as Pending, type index_d$2_PendingRegistrationInfo as PendingRegistrationInfo, type index_d$2_RedeemRegisteredDomainRequest as RedeemRegisteredDomainRequest, type index_d$2_RedeemRegisteredDomainResponse as RedeemRegisteredDomainResponse, type index_d$2_RedeemRegisteredDomainResponseNonNullableFields as RedeemRegisteredDomainResponseNonNullableFields, type index_d$2_RedirectAssignmentInfo as RedirectAssignmentInfo, type index_d$2_RegisteredDomain as RegisteredDomain, type index_d$2_RegisteredDomainStatusInfoOneOf as RegisteredDomainStatusInfoOneOf, type index_d$2_RestoreInfo as RestoreInfo, type index_d$2_SiteInfo as SiteInfo, type index_d$2_SiteInfoAssignmentInfoOneOf as SiteInfoAssignmentInfoOneOf, index_d$2_Status as Status, index_d$2_WebhookIdentityType as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_createRegisteredDomain as createRegisteredDomain, index_d$2_getRegisteredDomain as getRegisteredDomain, index_d$2_listRegisteredDomains as listRegisteredDomains, index_d$2_redeemRegisteredDomain as redeemRegisteredDomain };
2091
2031
  }
2092
2032
 
2093
2033
  interface DomainAvailability {
@@ -2164,13 +2104,13 @@ interface SuggestDomainsRequest {
2164
2104
  * Min: `1`
2165
2105
  * Max: `20`
2166
2106
  * Default: `10`
2167
- * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead
2107
+ * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead.
2168
2108
  * @deprecated Number of domain suggestions to return.
2169
2109
  *
2170
2110
  * Min: `1`
2171
2111
  * Max: `20`
2172
2112
  * Default: `10`
2173
- * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead
2113
+ * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead.
2174
2114
  * @replacedBy paging.limit
2175
2115
  * @targetRemovalDate 2025-03-01
2176
2116
  */
@@ -2204,7 +2144,7 @@ interface SuggestDomainsResponse {
2204
2144
  interface CursorPagingMetadata {
2205
2145
  /** Number of domains returned in the response. */
2206
2146
  count?: number | null;
2207
- /** Offset that was requested. */
2147
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2208
2148
  cursors?: Cursors;
2209
2149
  /**
2210
2150
  * Indicates if there are more results after the current page.
@@ -2241,13 +2181,13 @@ interface SuggestDomainsOptions {
2241
2181
  * Min: `1`
2242
2182
  * Max: `20`
2243
2183
  * Default: `10`
2244
- * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead
2184
+ * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead.
2245
2185
  * @deprecated Number of domain suggestions to return.
2246
2186
  *
2247
2187
  * Min: `1`
2248
2188
  * Max: `20`
2249
2189
  * Default: `10`
2250
- * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead
2190
+ * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead.
2251
2191
  * @replacedBy paging.limit
2252
2192
  * @targetRemovalDate 2025-03-01
2253
2193
  */
@@ -20,7 +20,7 @@ interface ConnectedDomain$1 {
20
20
  */
21
21
  connectionType?: ConnectionType$1;
22
22
  /**
23
- * Information about the site to which the domain is assigned to and whether
23
+ * Information about the site to which the domain is assigned, and whether
24
24
  * it's the primary domain or a redirect.
25
25
  */
26
26
  siteInfo?: SiteInfo$3;
@@ -56,20 +56,20 @@ declare enum ConnectionType$1 {
56
56
  }
57
57
  interface SiteInfo$3 extends SiteInfoAssignmentInfoOneOf$3 {
58
58
  /**
59
- * Extra details in case assignment type is redirect.
59
+ * Redirect information, relevant when `assignmentType` = `REDIRECT`.
60
60
  * @readonly
61
61
  */
62
62
  redirectInfo?: RedirectAssignmentInfo$3;
63
63
  /**
64
- * ID of the site the domain is assigned to, will be taken from context.
64
+ * ID of the site to which the domain is assigned.
65
65
  * @readonly
66
66
  */
67
67
  id?: string | null;
68
68
  /**
69
- * The assignment type the relationship will be based on:
70
- * + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type
71
- * + `"PRIMARY"`: There can only be one primary domain per site, the result of this assignment type is that the domain will lead directly to a site.
72
- * + `"REDIRECT"`: There can be multiple redirect domains. the result of this assignment type is that the redirects will lead to the primary domain
69
+ * The relationship assigned for this domain to the site:
70
+ * + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type.
71
+ * + `"PRIMARY"`: The singular primary domain for a site. When this type is assigned, this domain will lead directly to the site.
72
+ * + `"REDIRECT"`: A redirect domain for a site. Each site can have multiple redirect domains. When this type is assigned, this domain will redirect to the primary domain.
73
73
  * Read more about [primary and redirected domains](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).
74
74
  */
75
75
  assignmentType?: AssignmentType$3;
@@ -77,7 +77,7 @@ interface SiteInfo$3 extends SiteInfoAssignmentInfoOneOf$3 {
77
77
  /** @oneof */
78
78
  interface SiteInfoAssignmentInfoOneOf$3 {
79
79
  /**
80
- * Extra details in case assignment type is redirect.
80
+ * Redirect information, relevant when `assignmentType` = `REDIRECT`.
81
81
  * @readonly
82
82
  */
83
83
  redirectInfo?: RedirectAssignmentInfo$3;
@@ -89,7 +89,7 @@ declare enum AssignmentType$3 {
89
89
  }
90
90
  interface RedirectAssignmentInfo$3 {
91
91
  /**
92
- * Primary domain the redirect points to.
92
+ * Primary domain to which this domain will redirect.
93
93
  * @readonly
94
94
  */
95
95
  primaryDomain?: string;
@@ -152,7 +152,7 @@ interface ListConnectedDomainsResponse$1 {
152
152
  interface CursorPagingMetadata$5 {
153
153
  /** Number of domains returned in the response. */
154
154
  count?: number | null;
155
- /** Offset that was requested. */
155
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
156
156
  cursors?: Cursors$5;
157
157
  /**
158
158
  * Indicates if there are more results after the current page.
@@ -235,7 +235,7 @@ interface ConnectedDomain {
235
235
  */
236
236
  connectionType?: ConnectionType;
237
237
  /**
238
- * Information about the site to which the domain is assigned to and whether
238
+ * Information about the site to which the domain is assigned, and whether
239
239
  * it's the primary domain or a redirect.
240
240
  */
241
241
  siteInfo?: SiteInfo$2;
@@ -271,20 +271,20 @@ declare enum ConnectionType {
271
271
  }
272
272
  interface SiteInfo$2 extends SiteInfoAssignmentInfoOneOf$2 {
273
273
  /**
274
- * Extra details in case assignment type is redirect.
274
+ * Redirect information, relevant when `assignmentType` = `REDIRECT`.
275
275
  * @readonly
276
276
  */
277
277
  redirectInfo?: RedirectAssignmentInfo$2;
278
278
  /**
279
- * ID of the site the domain is assigned to, will be taken from context.
279
+ * ID of the site to which the domain is assigned.
280
280
  * @readonly
281
281
  */
282
282
  _id?: string | null;
283
283
  /**
284
- * The assignment type the relationship will be based on:
285
- * + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type
286
- * + `"PRIMARY"`: There can only be one primary domain per site, the result of this assignment type is that the domain will lead directly to a site.
287
- * + `"REDIRECT"`: There can be multiple redirect domains. the result of this assignment type is that the redirects will lead to the primary domain
284
+ * The relationship assigned for this domain to the site:
285
+ * + `"UNKNOWN_ASSIGNMENT_TYPE"`: There is no information about the domain assignment type.
286
+ * + `"PRIMARY"`: The singular primary domain for a site. When this type is assigned, this domain will lead directly to the site.
287
+ * + `"REDIRECT"`: A redirect domain for a site. Each site can have multiple redirect domains. When this type is assigned, this domain will redirect to the primary domain.
288
288
  * Read more about [primary and redirected domains](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).
289
289
  */
290
290
  assignmentType?: AssignmentType$2;
@@ -292,7 +292,7 @@ interface SiteInfo$2 extends SiteInfoAssignmentInfoOneOf$2 {
292
292
  /** @oneof */
293
293
  interface SiteInfoAssignmentInfoOneOf$2 {
294
294
  /**
295
- * Extra details in case assignment type is redirect.
295
+ * Redirect information, relevant when `assignmentType` = `REDIRECT`.
296
296
  * @readonly
297
297
  */
298
298
  redirectInfo?: RedirectAssignmentInfo$2;
@@ -304,7 +304,7 @@ declare enum AssignmentType$2 {
304
304
  }
305
305
  interface RedirectAssignmentInfo$2 {
306
306
  /**
307
- * Primary domain the redirect points to.
307
+ * Primary domain to which this domain will redirect.
308
308
  * @readonly
309
309
  */
310
310
  primaryDomain?: string;
@@ -367,7 +367,7 @@ interface ListConnectedDomainsResponse {
367
367
  interface CursorPagingMetadata$4 {
368
368
  /** Number of domains returned in the response. */
369
369
  count?: number | null;
370
- /** Offset that was requested. */
370
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
371
371
  cursors?: Cursors$4;
372
372
  /**
373
373
  * Indicates if there are more results after the current page.
@@ -1642,7 +1642,7 @@ interface ListRegisteredDomainsResponse$1 {
1642
1642
  interface CursorPagingMetadata$3 {
1643
1643
  /** Number of domains returned in the response. */
1644
1644
  count?: number | null;
1645
- /** Offset that was requested. */
1645
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
1646
1646
  cursors?: Cursors$3;
1647
1647
  /**
1648
1648
  * Indicates if there are more results after the current page.
@@ -2354,7 +2354,7 @@ interface ListRegisteredDomainsResponse {
2354
2354
  interface CursorPagingMetadata$2 {
2355
2355
  /** Number of domains returned in the response. */
2356
2356
  count?: number | null;
2357
- /** Offset that was requested. */
2357
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2358
2358
  cursors?: Cursors$2;
2359
2359
  /**
2360
2360
  * Indicates if there are more results after the current page.
@@ -2764,13 +2764,13 @@ interface SuggestDomainsRequest$1 {
2764
2764
  * Min: `1`
2765
2765
  * Max: `20`
2766
2766
  * Default: `10`
2767
- * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead
2767
+ * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead.
2768
2768
  * @deprecated Number of domain suggestions to return.
2769
2769
  *
2770
2770
  * Min: `1`
2771
2771
  * Max: `20`
2772
2772
  * Default: `10`
2773
- * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead
2773
+ * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead.
2774
2774
  * @replacedBy paging.limit
2775
2775
  * @targetRemovalDate 2025-03-01
2776
2776
  */
@@ -2804,7 +2804,7 @@ interface SuggestDomainsResponse$1 {
2804
2804
  interface CursorPagingMetadata$1 {
2805
2805
  /** Number of domains returned in the response. */
2806
2806
  count?: number | null;
2807
- /** Offset that was requested. */
2807
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2808
2808
  cursors?: Cursors$1;
2809
2809
  /**
2810
2810
  * Indicates if there are more results after the current page.
@@ -2854,13 +2854,13 @@ interface SuggestDomainsRequest {
2854
2854
  * Min: `1`
2855
2855
  * Max: `20`
2856
2856
  * Default: `10`
2857
- * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead
2857
+ * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead.
2858
2858
  * @deprecated Number of domain suggestions to return.
2859
2859
  *
2860
2860
  * Min: `1`
2861
2861
  * Max: `20`
2862
2862
  * Default: `10`
2863
- * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead
2863
+ * Note: limit field is deprecated from Aug 1, 2024, use `paging.limit` instead.
2864
2864
  * @replacedBy paging.limit
2865
2865
  * @targetRemovalDate 2025-03-01
2866
2866
  */
@@ -2894,7 +2894,7 @@ interface SuggestDomainsResponse {
2894
2894
  interface CursorPagingMetadata {
2895
2895
  /** Number of domains returned in the response. */
2896
2896
  count?: number | null;
2897
- /** Offset that was requested. */
2897
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
2898
2898
  cursors?: Cursors;
2899
2899
  /**
2900
2900
  * Indicates if there are more results after the current page.