@wix/domains 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.
@@ -0,0 +1,1453 @@
1
+ /**
2
+ * A registered domain is a domain that Wix has registered on behalf of a customer
3
+ * with an external registar.
4
+ */
5
+ interface RegisteredDomain$1 extends RegisteredDomainStatusInfoOneOf$1 {
6
+ /**
7
+ * Information about a domain that hasn't been successfully registered
8
+ * yet. Includes the timestamp of the latest registration attempt.
9
+ * @readonly
10
+ */
11
+ pendingRegistrationInfo?: PendingRegistrationInfo$1;
12
+ /**
13
+ * Information about a domain that couldn't be registered. Includes
14
+ * failure code and message.
15
+ * @readonly
16
+ */
17
+ failedRegistrationInfo?: FailedRegistrationInfo$1;
18
+ /**
19
+ * Domain ID. Identical to `domain`.
20
+ * @readonly
21
+ */
22
+ id?: string;
23
+ /**
24
+ * Name of the domain including TLD.
25
+ * Subdomains aren't supported. You can only register a root domain.
26
+ * Domain name and TLD must be separated by a dot. For example,
27
+ * `my-new-domain.com`. Only alphanumeric characters, hyphens, and dots are
28
+ * supported.
29
+ *
30
+ * Min: 3 characters
31
+ * Max: 63 characters
32
+ */
33
+ domain?: string;
34
+ /**
35
+ * ID of the product instance from the
36
+ * [Resellers API](https://dev.wix.com/docs/rest/api-reference/account-level-apis/resellers/packages-and-product-instances/packages-object)
37
+ * that belongs to the `registeredDomain` object.
38
+ * Your account must own a product that supports the chosen TLD, regardless of
39
+ * whether you want to assign the domain to a site or keep it floating. If
40
+ * you want to assign the domain to a site, the relevant site must also
41
+ * own a Premium plan. Contact the [Wix B2B team](mailto:bizdev@wix.com)
42
+ * for more information about how to become a reseller and a list of available
43
+ * product IDs.
44
+ */
45
+ productInstanceId?: string;
46
+ /**
47
+ * Date and time the `registeredDomain` object was created in
48
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
49
+ * @readonly
50
+ */
51
+ createdDate?: Date;
52
+ /**
53
+ * Date and time the `registeredDomain` object was last updated in
54
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
55
+ * @readonly
56
+ */
57
+ updatedDate?: Date;
58
+ /**
59
+ * Revision number, which increments by 1 each time the registered domain
60
+ * is updated. To prevent conflicting changes, the current revision must be
61
+ * passed when updating the registered domain.
62
+ *
63
+ * Ignored when creating a registered domain.
64
+ */
65
+ revision?: string | null;
66
+ /**
67
+ * Information about the Wix site the domain is connected to and whether the
68
+ * domain is assigned as the primary domain or a redirect.
69
+ */
70
+ siteInfo?: SiteInfo$1;
71
+ /**
72
+ * Contact details for the registrant, admin, and tech support of the registered domain.
73
+ * You can read more about which
74
+ * [Contact Field Validations](https://https://dev.wix.com/api/rest/account-level-apis/registered-domains/contact-field-validations)
75
+ * are implemented.
76
+ */
77
+ contacts?: Contacts$1;
78
+ /**
79
+ * Status of the registered domain.
80
+ *
81
+ * + `"UNKNOWN_STATUS"`: There's no information about the status of the registered domain.
82
+ * + `"PENDING_REGISTRATION"`: Wix has started the domain registration process, but the domain hasn't been successfully registered yet.
83
+ * + `"ACTIVE"`: The domain has been registered successfully and is active.
84
+ * + `"FAILED_REGISTRATION"`: Wix has tried to register the domain, but has stopped the process due to too many failed attempts. Contact the [Wix B2B team](mailto:bizdev@wix.com) for more information.
85
+ * + `"CANCELED"`: The domain has been canceled and isn't active any longer.
86
+ * @readonly
87
+ */
88
+ status?: Status$1;
89
+ /**
90
+ * ICANN confirmation status.
91
+ *
92
+ * + `"UNKNOWN_ICANN_CONFIRMATION_STATUS"`: There's no information about the status of the ICANN confirmation process.
93
+ * + `"PENDING"`: Wix has started the ICANN confirmation process, but not all contacts have confirmed the domain yet.
94
+ * + `"CONFIRMED_BY_ALL"`: The domain has been successfully confirmed by all contacts.
95
+ * + `"EXPIRED"`: The domain hasn't been confirmed by all contacts before the ICANN confirmation process expired. The domain isn't active and a new confirmation process must be started. Contact the [Wix B2B team](mailto:bizdev@wix.com) for more information.
96
+ * @readonly
97
+ */
98
+ icannConfirmationStatus?: ICANNConfirmationStatus$1;
99
+ /**
100
+ * Details about the ICANN confirmation status.
101
+ * @readonly
102
+ */
103
+ icannConfirmationStatusInfo?: ICANNConfirmationStatusInfo$1;
104
+ /**
105
+ * DNS propagation status.
106
+ *
107
+ * + `"UNKNOWN_DNS_PROPAGATION_STATUS"`: There's no information about the domain's DNS propagation status.
108
+ * + `"IN_PROGRESS"`: The domain's DNS propagation process has started but hasn't successfully completed yet.
109
+ * + `"COMPLETED"`: The domain's DNS propagation process has successfully finished.
110
+ * + `"FAILED"`: The domain's DNS propagation process has failed.
111
+ * @readonly
112
+ */
113
+ dnsPropagationStatus?: DnsPropagationStatus$1;
114
+ /**
115
+ * Expiration date of the registered domain in `YYYY-MM-DDThh:mm:ss.sssZ`
116
+ * format.
117
+ * @readonly
118
+ */
119
+ expirationDate?: Date;
120
+ }
121
+ /** @oneof */
122
+ interface RegisteredDomainStatusInfoOneOf$1 {
123
+ /**
124
+ * Information about a domain that hasn't been successfully registered
125
+ * yet. Includes the timestamp of the latest registration attempt.
126
+ * @readonly
127
+ */
128
+ pendingRegistrationInfo?: PendingRegistrationInfo$1;
129
+ /**
130
+ * Information about a domain that couldn't be registered. Includes
131
+ * failure code and message.
132
+ * @readonly
133
+ */
134
+ failedRegistrationInfo?: FailedRegistrationInfo$1;
135
+ }
136
+ interface SiteInfo$1 extends SiteInfoAssignmentInfoOneOf$1 {
137
+ /**
138
+ * Extra details if `{"assignmentType": `"REDIRECT"}`.
139
+ * @readonly
140
+ */
141
+ redirectInfo?: RedirectAssignmentInfo$1;
142
+ /**
143
+ * ID of the site to which the domain is assigned.
144
+ * @readonly
145
+ */
146
+ id?: string | null;
147
+ /**
148
+ * Whether the domain is assigned as the primary domain or a redirect.
149
+ * Read more about [primary and redirected domains](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).
150
+ * __Note:__ When you connect a domain or subdomain, you can't pass `"UNKNOWN_ASSIGNMENT_TYPE"`
151
+ * in the request of the Create Registered Domain call.
152
+ *
153
+ * + `"UNKNOWN_ASSIGNMENT_TYPE"`: There's no information about the assignment type.
154
+ * + `"PRIMARY"`: The domain is assigned as the primary domain to the Wix site.
155
+ * + `"REDIRECT"`: The domain is assigned as a redirect to the Wix site.
156
+ */
157
+ assignmentType?: AssignmentType$1;
158
+ }
159
+ /** @oneof */
160
+ interface SiteInfoAssignmentInfoOneOf$1 {
161
+ /**
162
+ * Extra details if `{"assignmentType": `"REDIRECT"}`.
163
+ * @readonly
164
+ */
165
+ redirectInfo?: RedirectAssignmentInfo$1;
166
+ }
167
+ declare enum AssignmentType$1 {
168
+ UNKNOWN_ASSIGNMENT_TYPE = "UNKNOWN_ASSIGNMENT_TYPE",
169
+ PRIMARY = "PRIMARY",
170
+ REDIRECT = "REDIRECT"
171
+ }
172
+ interface RedirectAssignmentInfo$1 {
173
+ /**
174
+ * Primary domain the redirect points to.
175
+ * @readonly
176
+ */
177
+ primaryDomain?: string;
178
+ }
179
+ interface Contacts$1 {
180
+ /** Contact information for the domain registrant. */
181
+ registrant?: ContactData$1;
182
+ /** Contact information for the domain admin. */
183
+ admin?: ContactData$1;
184
+ /** Contact information for the tech support of the domain. */
185
+ tech?: ContactData$1;
186
+ }
187
+ interface ContactData$1 {
188
+ /**
189
+ * First name. Only
190
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
191
+ * are supported.
192
+ *
193
+ * Min: 2 characters
194
+ * Max: 64 characters
195
+ */
196
+ firstName?: string;
197
+ /**
198
+ * Last name. Only
199
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
200
+ * are supported.
201
+ *
202
+ * Min: 2 characters
203
+ * Max: 64 characters
204
+ */
205
+ lastName?: string;
206
+ /**
207
+ * Email address. Only
208
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
209
+ * and a single `@` are supported. Wix doesn't validate that the email address
210
+ * exists.
211
+ *
212
+ * Min: 3 characters
213
+ * Max: 64 characters before the `@` and 63 after
214
+ */
215
+ email?: string;
216
+ /**
217
+ * Address details, including street name and house number. Only
218
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
219
+ * are supported.
220
+ *
221
+ * Min: 2 characters
222
+ * Max: 64 characters
223
+ */
224
+ address?: string;
225
+ /**
226
+ * City. Only
227
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
228
+ * are supported.
229
+ *
230
+ * Min: 2 characters
231
+ * Max: 64 characters
232
+ */
233
+ city?: string;
234
+ /**
235
+ * Subdivision code in
236
+ * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
237
+ * format. Only
238
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
239
+ * are supported.
240
+ * __Required__ for these countries:
241
+ * `”AE"`, `"AR"`, `"AT"`, `"AU"`, `"BE"`, `"BR"`, `"CA"`, `"CH"`, `"CL"`,
242
+ * `"CO"`, `"CR"`, `"CZ"`, `"DE"`, `"DK"`, `"ES"`, `"FI"`, `"FR"`, `"GR"`,
243
+ * `"IE"`, `"IN"`, `"IT"`, `"JP"`, `"KR"`, `"MX"`, `"MY"`, `"NL"`, `"NO"`,
244
+ * `"NZ"`, `"PE"`, `"PL"`, `"PT"`, `"RU"`, `"SE"`, `"SG"`, `"TH"`, `"TR"`,
245
+ * `"TW"`, `"UA"`, `"US"`, `”ZA”`.
246
+ *
247
+ * Min: 2 characters
248
+ * Max: 2 characters
249
+ */
250
+ subdivisionCode?: string | null;
251
+ /**
252
+ * Postal code. Only
253
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
254
+ * are supported.
255
+ *
256
+ * Min: 2 characters
257
+ * Max: 16 characters
258
+ */
259
+ postalCode?: string | null;
260
+ /**
261
+ * Country code in
262
+ * [ISO-3166 alpha-1](https://en.wikipedia.org/wiki/ISO_3166-2#Subdivisions_included_in_ISO_3166-1)
263
+ * format. Only
264
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
265
+ * are supported. Wix doesn't validate that the postal code is valid for the
266
+ * given country.
267
+ *
268
+ * Min: 2 characters
269
+ * Max: 2 characters
270
+ */
271
+ countryCode?: string;
272
+ /**
273
+ * Phone number. Only
274
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
275
+ * are supported. For example, `+15551234567`. Wix doesn't validate that the
276
+ * phone number belongs to the specified country.
277
+ *
278
+ * Min: 2 characters
279
+ * Max: 20 characters
280
+ */
281
+ phone?: string;
282
+ /**
283
+ * Company name. Only
284
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
285
+ * are supported.
286
+ *
287
+ * Max: 2 characters
288
+ * Max: 64 characters
289
+ */
290
+ company?: string | null;
291
+ }
292
+ declare enum Status$1 {
293
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
294
+ PENDING_REGISTRATION = "PENDING_REGISTRATION",
295
+ ACTIVE = "ACTIVE",
296
+ FAILED_REGISTRATION = "FAILED_REGISTRATION",
297
+ CANCELED = "CANCELED"
298
+ }
299
+ interface PendingRegistrationInfo$1 {
300
+ /**
301
+ * Information about the latest attempt to register
302
+ * the domain. Wix tries to register the domain several times if the
303
+ * first attempt is unsuccessful. You can contact the
304
+ * [Wix B2B team](mailto:bizdev@wix.com)
305
+ * for more information about the number of attempts and their timing.
306
+ * @readonly
307
+ */
308
+ latestAttempt?: LatestAttempt$1;
309
+ }
310
+ interface LatestAttempt$1 {
311
+ /**
312
+ * Number of the latest attempt to register the domain.
313
+ * @readonly
314
+ */
315
+ number?: number;
316
+ /**
317
+ * Date and time of the latest domain registration attempt in
318
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
319
+ * @readonly
320
+ */
321
+ timestamp?: Date;
322
+ }
323
+ interface FailedRegistrationInfo$1 {
324
+ /**
325
+ * Failure code.
326
+ *
327
+ * + `"UNKNOWN_FAILURE_CODE"`: There's no information about the failure code.
328
+ * + `"OTHER"`: There was a failure, but none of the listed failure codes applies.
329
+ * @readonly
330
+ */
331
+ code?: FailureCode$1;
332
+ /**
333
+ * Failure message.
334
+ * @readonly
335
+ */
336
+ message?: string;
337
+ }
338
+ declare enum FailureCode$1 {
339
+ UNKNOWN_FAILURE_CODE = "UNKNOWN_FAILURE_CODE",
340
+ OTHER = "OTHER"
341
+ }
342
+ /**
343
+ * he confirmation status types, a record:
344
+ * starts at pending
345
+ * ends either at confirmed_by_all or expired
346
+ */
347
+ declare enum ICANNConfirmationStatus$1 {
348
+ UNKNOWN_ICANN_CONFIRMATION_STATUS = "UNKNOWN_ICANN_CONFIRMATION_STATUS",
349
+ PENDING = "PENDING",
350
+ CONFIRMED_BY_ALL = "CONFIRMED_BY_ALL",
351
+ EXPIRED = "EXPIRED"
352
+ }
353
+ interface ICANNConfirmationStatusInfo$1 extends ICANNConfirmationStatusInfoStatusOneOf$1 {
354
+ /** Details about domains with `"PENDING"` ICANN confirmation status. */
355
+ pending?: Pending$1;
356
+ /** Details about domains with `"EXPIRED"` ICANN confirmation status. */
357
+ expired?: Expired$1;
358
+ }
359
+ /** @oneof */
360
+ interface ICANNConfirmationStatusInfoStatusOneOf$1 {
361
+ /** Details about domains with `"PENDING"` ICANN confirmation status. */
362
+ pending?: Pending$1;
363
+ /** Details about domains with `"EXPIRED"` ICANN confirmation status. */
364
+ expired?: Expired$1;
365
+ }
366
+ interface Pending$1 {
367
+ /**
368
+ * Expiration date of the ICANN confirmation process in
369
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format. All contacts must confirm the domain
370
+ * before this date or the domain won't be active.
371
+ */
372
+ expirationDate?: Date;
373
+ /**
374
+ * Email addresses of the contacts who haven't confirmed the domain with ICANN
375
+ * yet.
376
+ */
377
+ notConfirmedBy?: string[];
378
+ }
379
+ interface Expired$1 {
380
+ /**
381
+ * Email addresses of the contacts who haven't confirmed the domain with ICANN
382
+ * in time.
383
+ */
384
+ notConfirmedBy?: string[];
385
+ }
386
+ declare enum DnsPropagationStatus$1 {
387
+ UNKNOWN_DNS_PROPAGATION_STATUS = "UNKNOWN_DNS_PROPAGATION_STATUS",
388
+ COMPLETED = "COMPLETED",
389
+ FAILED = "FAILED",
390
+ IN_PROGRESS = "IN_PROGRESS"
391
+ }
392
+ interface CreateRegisteredDomainRequest$1 {
393
+ /** Information about the domain to register including contact details. */
394
+ registeredDomain: RegisteredDomain$1;
395
+ }
396
+ interface CreateRegisteredDomainResponse$1 {
397
+ /** Created registered domain. */
398
+ registeredDomain?: RegisteredDomain$1;
399
+ }
400
+ interface GetRegisteredDomainRequest$1 {
401
+ /** ID of the registered domain to retrieve. */
402
+ registeredDomainId: string;
403
+ }
404
+ interface GetRegisteredDomainResponse$1 {
405
+ /** Retrieved registered domain. */
406
+ registeredDomain?: RegisteredDomain$1;
407
+ }
408
+ interface ListRegisteredDomainsRequest$1 {
409
+ /** Cursor paging options. */
410
+ paging?: CursorPaging$1;
411
+ }
412
+ interface CursorPaging$1 {
413
+ /**
414
+ * Number of domains to load.
415
+ *
416
+ * Min: `0`
417
+ * Max: `100`
418
+ */
419
+ limit?: number | null;
420
+ /**
421
+ * Pointer to the next or previous page in the list of results.
422
+ *
423
+ * You can get the relevant cursor token
424
+ * from the `pagingMetadata` object in the previous call's response.
425
+ * Not relevant for the first request.
426
+ */
427
+ cursor?: string | null;
428
+ }
429
+ interface ListRegisteredDomainsResponse$1 {
430
+ /** Metadata about the returned list of registered domains. */
431
+ pagingMetadata?: CursorPagingMetadata$1;
432
+ /** Retrieved registered domains. */
433
+ registeredDomains?: RegisteredDomain$1[];
434
+ }
435
+ interface CursorPagingMetadata$1 {
436
+ /** Number of domains returned in the response. */
437
+ count?: number | null;
438
+ /** Offset that was requested. */
439
+ cursors?: Cursors$1;
440
+ /**
441
+ * Indicates if there are more results after the current page.
442
+ * If `true`, another page of results can be retrieved.
443
+ * If `false`, this is the last page.
444
+ */
445
+ hasNext?: boolean | null;
446
+ }
447
+ interface Cursors$1 {
448
+ /** Cursor pointing to next page in the list of results. */
449
+ next?: string | null;
450
+ /** Cursor pointing to previous page in the list of results. */
451
+ prev?: string | null;
452
+ }
453
+ interface RedeemRegisteredDomainRequest$1 {
454
+ /**
455
+ * ID of the registered domain to redeem. Identical to the domain name
456
+ * including TLD.
457
+ */
458
+ registeredDomainId: string;
459
+ }
460
+ interface RedeemRegisteredDomainResponse$1 {
461
+ /** Registered domain to redeem. */
462
+ registeredDomain?: RegisteredDomain$1;
463
+ }
464
+ interface CreateRegisteredDomainResponseNonNullableFields$1 {
465
+ registeredDomain?: {
466
+ pendingRegistrationInfo?: {
467
+ latestAttempt?: {
468
+ number: number;
469
+ };
470
+ };
471
+ failedRegistrationInfo?: {
472
+ code: FailureCode$1;
473
+ message: string;
474
+ };
475
+ id: string;
476
+ domain: string;
477
+ productInstanceId: string;
478
+ siteInfo?: {
479
+ redirectInfo?: {
480
+ primaryDomain: string;
481
+ };
482
+ assignmentType: AssignmentType$1;
483
+ };
484
+ contacts?: {
485
+ registrant?: {
486
+ firstName: string;
487
+ lastName: string;
488
+ email: string;
489
+ address: string;
490
+ city: string;
491
+ countryCode: string;
492
+ phone: string;
493
+ };
494
+ admin?: {
495
+ firstName: string;
496
+ lastName: string;
497
+ email: string;
498
+ address: string;
499
+ city: string;
500
+ countryCode: string;
501
+ phone: string;
502
+ };
503
+ tech?: {
504
+ firstName: string;
505
+ lastName: string;
506
+ email: string;
507
+ address: string;
508
+ city: string;
509
+ countryCode: string;
510
+ phone: string;
511
+ };
512
+ };
513
+ status: Status$1;
514
+ icannConfirmationStatus: ICANNConfirmationStatus$1;
515
+ icannConfirmationStatusInfo?: {
516
+ pending?: {
517
+ notConfirmedBy: string[];
518
+ };
519
+ expired?: {
520
+ notConfirmedBy: string[];
521
+ };
522
+ };
523
+ dnsPropagationStatus: DnsPropagationStatus$1;
524
+ };
525
+ }
526
+ interface GetRegisteredDomainResponseNonNullableFields$1 {
527
+ registeredDomain?: {
528
+ pendingRegistrationInfo?: {
529
+ latestAttempt?: {
530
+ number: number;
531
+ };
532
+ };
533
+ failedRegistrationInfo?: {
534
+ code: FailureCode$1;
535
+ message: string;
536
+ };
537
+ id: string;
538
+ domain: string;
539
+ productInstanceId: string;
540
+ siteInfo?: {
541
+ redirectInfo?: {
542
+ primaryDomain: string;
543
+ };
544
+ assignmentType: AssignmentType$1;
545
+ };
546
+ contacts?: {
547
+ registrant?: {
548
+ firstName: string;
549
+ lastName: string;
550
+ email: string;
551
+ address: string;
552
+ city: string;
553
+ countryCode: string;
554
+ phone: string;
555
+ };
556
+ admin?: {
557
+ firstName: string;
558
+ lastName: string;
559
+ email: string;
560
+ address: string;
561
+ city: string;
562
+ countryCode: string;
563
+ phone: string;
564
+ };
565
+ tech?: {
566
+ firstName: string;
567
+ lastName: string;
568
+ email: string;
569
+ address: string;
570
+ city: string;
571
+ countryCode: string;
572
+ phone: string;
573
+ };
574
+ };
575
+ status: Status$1;
576
+ icannConfirmationStatus: ICANNConfirmationStatus$1;
577
+ icannConfirmationStatusInfo?: {
578
+ pending?: {
579
+ notConfirmedBy: string[];
580
+ };
581
+ expired?: {
582
+ notConfirmedBy: string[];
583
+ };
584
+ };
585
+ dnsPropagationStatus: DnsPropagationStatus$1;
586
+ };
587
+ }
588
+ interface ListRegisteredDomainsResponseNonNullableFields$1 {
589
+ registeredDomains: {
590
+ pendingRegistrationInfo?: {
591
+ latestAttempt?: {
592
+ number: number;
593
+ };
594
+ };
595
+ failedRegistrationInfo?: {
596
+ code: FailureCode$1;
597
+ message: string;
598
+ };
599
+ id: string;
600
+ domain: string;
601
+ productInstanceId: string;
602
+ siteInfo?: {
603
+ redirectInfo?: {
604
+ primaryDomain: string;
605
+ };
606
+ assignmentType: AssignmentType$1;
607
+ };
608
+ contacts?: {
609
+ registrant?: {
610
+ firstName: string;
611
+ lastName: string;
612
+ email: string;
613
+ address: string;
614
+ city: string;
615
+ countryCode: string;
616
+ phone: string;
617
+ };
618
+ admin?: {
619
+ firstName: string;
620
+ lastName: string;
621
+ email: string;
622
+ address: string;
623
+ city: string;
624
+ countryCode: string;
625
+ phone: string;
626
+ };
627
+ tech?: {
628
+ firstName: string;
629
+ lastName: string;
630
+ email: string;
631
+ address: string;
632
+ city: string;
633
+ countryCode: string;
634
+ phone: string;
635
+ };
636
+ };
637
+ status: Status$1;
638
+ icannConfirmationStatus: ICANNConfirmationStatus$1;
639
+ icannConfirmationStatusInfo?: {
640
+ pending?: {
641
+ notConfirmedBy: string[];
642
+ };
643
+ expired?: {
644
+ notConfirmedBy: string[];
645
+ };
646
+ };
647
+ dnsPropagationStatus: DnsPropagationStatus$1;
648
+ }[];
649
+ }
650
+ interface RedeemRegisteredDomainResponseNonNullableFields$1 {
651
+ registeredDomain?: {
652
+ pendingRegistrationInfo?: {
653
+ latestAttempt?: {
654
+ number: number;
655
+ };
656
+ };
657
+ failedRegistrationInfo?: {
658
+ code: FailureCode$1;
659
+ message: string;
660
+ };
661
+ id: string;
662
+ domain: string;
663
+ productInstanceId: string;
664
+ siteInfo?: {
665
+ redirectInfo?: {
666
+ primaryDomain: string;
667
+ };
668
+ assignmentType: AssignmentType$1;
669
+ };
670
+ contacts?: {
671
+ registrant?: {
672
+ firstName: string;
673
+ lastName: string;
674
+ email: string;
675
+ address: string;
676
+ city: string;
677
+ countryCode: string;
678
+ phone: string;
679
+ };
680
+ admin?: {
681
+ firstName: string;
682
+ lastName: string;
683
+ email: string;
684
+ address: string;
685
+ city: string;
686
+ countryCode: string;
687
+ phone: string;
688
+ };
689
+ tech?: {
690
+ firstName: string;
691
+ lastName: string;
692
+ email: string;
693
+ address: string;
694
+ city: string;
695
+ countryCode: string;
696
+ phone: string;
697
+ };
698
+ };
699
+ status: Status$1;
700
+ icannConfirmationStatus: ICANNConfirmationStatus$1;
701
+ icannConfirmationStatusInfo?: {
702
+ pending?: {
703
+ notConfirmedBy: string[];
704
+ };
705
+ expired?: {
706
+ notConfirmedBy: string[];
707
+ };
708
+ };
709
+ dnsPropagationStatus: DnsPropagationStatus$1;
710
+ };
711
+ }
712
+
713
+ /**
714
+ * A registered domain is a domain that Wix has registered on behalf of a customer
715
+ * with an external registar.
716
+ */
717
+ interface RegisteredDomain extends RegisteredDomainStatusInfoOneOf {
718
+ /**
719
+ * Information about a domain that hasn't been successfully registered
720
+ * yet. Includes the timestamp of the latest registration attempt.
721
+ * @readonly
722
+ */
723
+ pendingRegistrationInfo?: PendingRegistrationInfo;
724
+ /**
725
+ * Information about a domain that couldn't be registered. Includes
726
+ * failure code and message.
727
+ * @readonly
728
+ */
729
+ failedRegistrationInfo?: FailedRegistrationInfo;
730
+ /**
731
+ * Domain ID. Identical to `domain`.
732
+ * @readonly
733
+ */
734
+ _id?: string;
735
+ /**
736
+ * Name of the domain including TLD.
737
+ * Subdomains aren't supported. You can only register a root domain.
738
+ * Domain name and TLD must be separated by a dot. For example,
739
+ * `my-new-domain.com`. Only alphanumeric characters, hyphens, and dots are
740
+ * supported.
741
+ *
742
+ * Min: 3 characters
743
+ * Max: 63 characters
744
+ */
745
+ domain?: string;
746
+ /**
747
+ * ID of the product instance from the
748
+ * [Resellers API](https://dev.wix.com/docs/rest/api-reference/account-level-apis/resellers/packages-and-product-instances/packages-object)
749
+ * that belongs to the `registeredDomain` object.
750
+ * Your account must own a product that supports the chosen TLD, regardless of
751
+ * whether you want to assign the domain to a site or keep it floating. If
752
+ * you want to assign the domain to a site, the relevant site must also
753
+ * own a Premium plan. Contact the [Wix B2B team](mailto:bizdev@wix.com)
754
+ * for more information about how to become a reseller and a list of available
755
+ * product IDs.
756
+ */
757
+ productInstanceId?: string;
758
+ /**
759
+ * Date and time the `registeredDomain` object was created in
760
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
761
+ * @readonly
762
+ */
763
+ _createdDate?: Date;
764
+ /**
765
+ * Date and time the `registeredDomain` object was last updated in
766
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
767
+ * @readonly
768
+ */
769
+ _updatedDate?: Date;
770
+ /**
771
+ * Revision number, which increments by 1 each time the registered domain
772
+ * is updated. To prevent conflicting changes, the current revision must be
773
+ * passed when updating the registered domain.
774
+ *
775
+ * Ignored when creating a registered domain.
776
+ */
777
+ revision?: string | null;
778
+ /**
779
+ * Information about the Wix site the domain is connected to and whether the
780
+ * domain is assigned as the primary domain or a redirect.
781
+ */
782
+ siteInfo?: SiteInfo;
783
+ /**
784
+ * Contact details for the registrant, admin, and tech support of the registered domain.
785
+ * You can read more about which
786
+ * [Contact Field Validations](https://https://dev.wix.com/api/rest/account-level-apis/registered-domains/contact-field-validations)
787
+ * are implemented.
788
+ */
789
+ contacts?: Contacts;
790
+ /**
791
+ * Status of the registered domain.
792
+ *
793
+ * + `"UNKNOWN_STATUS"`: There's no information about the status of the registered domain.
794
+ * + `"PENDING_REGISTRATION"`: Wix has started the domain registration process, but the domain hasn't been successfully registered yet.
795
+ * + `"ACTIVE"`: The domain has been registered successfully and is active.
796
+ * + `"FAILED_REGISTRATION"`: Wix has tried to register the domain, but has stopped the process due to too many failed attempts. Contact the [Wix B2B team](mailto:bizdev@wix.com) for more information.
797
+ * + `"CANCELED"`: The domain has been canceled and isn't active any longer.
798
+ * @readonly
799
+ */
800
+ status?: Status;
801
+ /**
802
+ * ICANN confirmation status.
803
+ *
804
+ * + `"UNKNOWN_ICANN_CONFIRMATION_STATUS"`: There's no information about the status of the ICANN confirmation process.
805
+ * + `"PENDING"`: Wix has started the ICANN confirmation process, but not all contacts have confirmed the domain yet.
806
+ * + `"CONFIRMED_BY_ALL"`: The domain has been successfully confirmed by all contacts.
807
+ * + `"EXPIRED"`: The domain hasn't been confirmed by all contacts before the ICANN confirmation process expired. The domain isn't active and a new confirmation process must be started. Contact the [Wix B2B team](mailto:bizdev@wix.com) for more information.
808
+ * @readonly
809
+ */
810
+ icannConfirmationStatus?: ICANNConfirmationStatus;
811
+ /**
812
+ * Details about the ICANN confirmation status.
813
+ * @readonly
814
+ */
815
+ icannConfirmationStatusInfo?: ICANNConfirmationStatusInfo;
816
+ /**
817
+ * DNS propagation status.
818
+ *
819
+ * + `"UNKNOWN_DNS_PROPAGATION_STATUS"`: There's no information about the domain's DNS propagation status.
820
+ * + `"IN_PROGRESS"`: The domain's DNS propagation process has started but hasn't successfully completed yet.
821
+ * + `"COMPLETED"`: The domain's DNS propagation process has successfully finished.
822
+ * + `"FAILED"`: The domain's DNS propagation process has failed.
823
+ * @readonly
824
+ */
825
+ dnsPropagationStatus?: DnsPropagationStatus;
826
+ /**
827
+ * Expiration date of the registered domain in `YYYY-MM-DDThh:mm:ss.sssZ`
828
+ * format.
829
+ * @readonly
830
+ */
831
+ expirationDate?: Date;
832
+ }
833
+ /** @oneof */
834
+ interface RegisteredDomainStatusInfoOneOf {
835
+ /**
836
+ * Information about a domain that hasn't been successfully registered
837
+ * yet. Includes the timestamp of the latest registration attempt.
838
+ * @readonly
839
+ */
840
+ pendingRegistrationInfo?: PendingRegistrationInfo;
841
+ /**
842
+ * Information about a domain that couldn't be registered. Includes
843
+ * failure code and message.
844
+ * @readonly
845
+ */
846
+ failedRegistrationInfo?: FailedRegistrationInfo;
847
+ }
848
+ interface SiteInfo extends SiteInfoAssignmentInfoOneOf {
849
+ /**
850
+ * Extra details if `{"assignmentType": `"REDIRECT"}`.
851
+ * @readonly
852
+ */
853
+ redirectInfo?: RedirectAssignmentInfo;
854
+ /**
855
+ * ID of the site to which the domain is assigned.
856
+ * @readonly
857
+ */
858
+ _id?: string | null;
859
+ /**
860
+ * Whether the domain is assigned as the primary domain or a redirect.
861
+ * Read more about [primary and redirected domains](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).
862
+ * __Note:__ When you connect a domain or subdomain, you can't pass `"UNKNOWN_ASSIGNMENT_TYPE"`
863
+ * in the request of the Create Registered Domain call.
864
+ *
865
+ * + `"UNKNOWN_ASSIGNMENT_TYPE"`: There's no information about the assignment type.
866
+ * + `"PRIMARY"`: The domain is assigned as the primary domain to the Wix site.
867
+ * + `"REDIRECT"`: The domain is assigned as a redirect to the Wix site.
868
+ */
869
+ assignmentType?: AssignmentType;
870
+ }
871
+ /** @oneof */
872
+ interface SiteInfoAssignmentInfoOneOf {
873
+ /**
874
+ * Extra details if `{"assignmentType": `"REDIRECT"}`.
875
+ * @readonly
876
+ */
877
+ redirectInfo?: RedirectAssignmentInfo;
878
+ }
879
+ declare enum AssignmentType {
880
+ UNKNOWN_ASSIGNMENT_TYPE = "UNKNOWN_ASSIGNMENT_TYPE",
881
+ PRIMARY = "PRIMARY",
882
+ REDIRECT = "REDIRECT"
883
+ }
884
+ interface RedirectAssignmentInfo {
885
+ /**
886
+ * Primary domain the redirect points to.
887
+ * @readonly
888
+ */
889
+ primaryDomain?: string;
890
+ }
891
+ interface Contacts {
892
+ /** Contact information for the domain registrant. */
893
+ registrant?: ContactData;
894
+ /** Contact information for the domain admin. */
895
+ admin?: ContactData;
896
+ /** Contact information for the tech support of the domain. */
897
+ tech?: ContactData;
898
+ }
899
+ interface ContactData {
900
+ /**
901
+ * First name. Only
902
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
903
+ * are supported.
904
+ *
905
+ * Min: 2 characters
906
+ * Max: 64 characters
907
+ */
908
+ firstName?: string;
909
+ /**
910
+ * Last name. Only
911
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
912
+ * are supported.
913
+ *
914
+ * Min: 2 characters
915
+ * Max: 64 characters
916
+ */
917
+ lastName?: string;
918
+ /**
919
+ * Email address. Only
920
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
921
+ * and a single `@` are supported. Wix doesn't validate that the email address
922
+ * exists.
923
+ *
924
+ * Min: 3 characters
925
+ * Max: 64 characters before the `@` and 63 after
926
+ */
927
+ email?: string;
928
+ /**
929
+ * Address details, including street name and house number. Only
930
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
931
+ * are supported.
932
+ *
933
+ * Min: 2 characters
934
+ * Max: 64 characters
935
+ */
936
+ address?: string;
937
+ /**
938
+ * City. Only
939
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
940
+ * are supported.
941
+ *
942
+ * Min: 2 characters
943
+ * Max: 64 characters
944
+ */
945
+ city?: string;
946
+ /**
947
+ * Subdivision code in
948
+ * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
949
+ * format. Only
950
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
951
+ * are supported.
952
+ * __Required__ for these countries:
953
+ * `”AE"`, `"AR"`, `"AT"`, `"AU"`, `"BE"`, `"BR"`, `"CA"`, `"CH"`, `"CL"`,
954
+ * `"CO"`, `"CR"`, `"CZ"`, `"DE"`, `"DK"`, `"ES"`, `"FI"`, `"FR"`, `"GR"`,
955
+ * `"IE"`, `"IN"`, `"IT"`, `"JP"`, `"KR"`, `"MX"`, `"MY"`, `"NL"`, `"NO"`,
956
+ * `"NZ"`, `"PE"`, `"PL"`, `"PT"`, `"RU"`, `"SE"`, `"SG"`, `"TH"`, `"TR"`,
957
+ * `"TW"`, `"UA"`, `"US"`, `”ZA”`.
958
+ *
959
+ * Min: 2 characters
960
+ * Max: 2 characters
961
+ */
962
+ subdivisionCode?: string | null;
963
+ /**
964
+ * Postal code. Only
965
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
966
+ * are supported.
967
+ *
968
+ * Min: 2 characters
969
+ * Max: 16 characters
970
+ */
971
+ postalCode?: string | null;
972
+ /**
973
+ * Country code in
974
+ * [ISO-3166 alpha-1](https://en.wikipedia.org/wiki/ISO_3166-2#Subdivisions_included_in_ISO_3166-1)
975
+ * format. Only
976
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
977
+ * are supported. Wix doesn't validate that the postal code is valid for the
978
+ * given country.
979
+ *
980
+ * Min: 2 characters
981
+ * Max: 2 characters
982
+ */
983
+ countryCode?: string;
984
+ /**
985
+ * Phone number. Only
986
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
987
+ * are supported. For example, `+15551234567`. Wix doesn't validate that the
988
+ * phone number belongs to the specified country.
989
+ *
990
+ * Min: 2 characters
991
+ * Max: 20 characters
992
+ */
993
+ phone?: string;
994
+ /**
995
+ * Company name. Only
996
+ * [alphanumerical characters](https://en.wikipedia.org/wiki/Alphanumericals)
997
+ * are supported.
998
+ *
999
+ * Max: 2 characters
1000
+ * Max: 64 characters
1001
+ */
1002
+ company?: string | null;
1003
+ }
1004
+ declare enum Status {
1005
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
1006
+ PENDING_REGISTRATION = "PENDING_REGISTRATION",
1007
+ ACTIVE = "ACTIVE",
1008
+ FAILED_REGISTRATION = "FAILED_REGISTRATION",
1009
+ CANCELED = "CANCELED"
1010
+ }
1011
+ interface PendingRegistrationInfo {
1012
+ /**
1013
+ * Information about the latest attempt to register
1014
+ * the domain. Wix tries to register the domain several times if the
1015
+ * first attempt is unsuccessful. You can contact the
1016
+ * [Wix B2B team](mailto:bizdev@wix.com)
1017
+ * for more information about the number of attempts and their timing.
1018
+ * @readonly
1019
+ */
1020
+ latestAttempt?: LatestAttempt;
1021
+ }
1022
+ interface LatestAttempt {
1023
+ /**
1024
+ * Number of the latest attempt to register the domain.
1025
+ * @readonly
1026
+ */
1027
+ number?: number;
1028
+ /**
1029
+ * Date and time of the latest domain registration attempt in
1030
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format.
1031
+ * @readonly
1032
+ */
1033
+ timestamp?: Date;
1034
+ }
1035
+ interface FailedRegistrationInfo {
1036
+ /**
1037
+ * Failure code.
1038
+ *
1039
+ * + `"UNKNOWN_FAILURE_CODE"`: There's no information about the failure code.
1040
+ * + `"OTHER"`: There was a failure, but none of the listed failure codes applies.
1041
+ * @readonly
1042
+ */
1043
+ code?: FailureCode;
1044
+ /**
1045
+ * Failure message.
1046
+ * @readonly
1047
+ */
1048
+ message?: string;
1049
+ }
1050
+ declare enum FailureCode {
1051
+ UNKNOWN_FAILURE_CODE = "UNKNOWN_FAILURE_CODE",
1052
+ OTHER = "OTHER"
1053
+ }
1054
+ /**
1055
+ * he confirmation status types, a record:
1056
+ * starts at pending
1057
+ * ends either at confirmed_by_all or expired
1058
+ */
1059
+ declare enum ICANNConfirmationStatus {
1060
+ UNKNOWN_ICANN_CONFIRMATION_STATUS = "UNKNOWN_ICANN_CONFIRMATION_STATUS",
1061
+ PENDING = "PENDING",
1062
+ CONFIRMED_BY_ALL = "CONFIRMED_BY_ALL",
1063
+ EXPIRED = "EXPIRED"
1064
+ }
1065
+ interface ICANNConfirmationStatusInfo extends ICANNConfirmationStatusInfoStatusOneOf {
1066
+ /** Details about domains with `"PENDING"` ICANN confirmation status. */
1067
+ pending?: Pending;
1068
+ /** Details about domains with `"EXPIRED"` ICANN confirmation status. */
1069
+ expired?: Expired;
1070
+ }
1071
+ /** @oneof */
1072
+ interface ICANNConfirmationStatusInfoStatusOneOf {
1073
+ /** Details about domains with `"PENDING"` ICANN confirmation status. */
1074
+ pending?: Pending;
1075
+ /** Details about domains with `"EXPIRED"` ICANN confirmation status. */
1076
+ expired?: Expired;
1077
+ }
1078
+ interface Pending {
1079
+ /**
1080
+ * Expiration date of the ICANN confirmation process in
1081
+ * `YYYY-MM-DDThh:mm:ss.sssZ` format. All contacts must confirm the domain
1082
+ * before this date or the domain won't be active.
1083
+ */
1084
+ expirationDate?: Date;
1085
+ /**
1086
+ * Email addresses of the contacts who haven't confirmed the domain with ICANN
1087
+ * yet.
1088
+ */
1089
+ notConfirmedBy?: string[];
1090
+ }
1091
+ interface Expired {
1092
+ /**
1093
+ * Email addresses of the contacts who haven't confirmed the domain with ICANN
1094
+ * in time.
1095
+ */
1096
+ notConfirmedBy?: string[];
1097
+ }
1098
+ declare enum DnsPropagationStatus {
1099
+ UNKNOWN_DNS_PROPAGATION_STATUS = "UNKNOWN_DNS_PROPAGATION_STATUS",
1100
+ COMPLETED = "COMPLETED",
1101
+ FAILED = "FAILED",
1102
+ IN_PROGRESS = "IN_PROGRESS"
1103
+ }
1104
+ interface CreateRegisteredDomainRequest {
1105
+ /** Information about the domain to register including contact details. */
1106
+ registeredDomain: RegisteredDomain;
1107
+ }
1108
+ interface CreateRegisteredDomainResponse {
1109
+ /** Created registered domain. */
1110
+ registeredDomain?: RegisteredDomain;
1111
+ }
1112
+ interface GetRegisteredDomainRequest {
1113
+ /** ID of the registered domain to retrieve. */
1114
+ registeredDomainId: string;
1115
+ }
1116
+ interface GetRegisteredDomainResponse {
1117
+ /** Retrieved registered domain. */
1118
+ registeredDomain?: RegisteredDomain;
1119
+ }
1120
+ interface ListRegisteredDomainsRequest {
1121
+ /** Cursor paging options. */
1122
+ paging?: CursorPaging;
1123
+ }
1124
+ interface CursorPaging {
1125
+ /**
1126
+ * Number of domains to load.
1127
+ *
1128
+ * Min: `0`
1129
+ * Max: `100`
1130
+ */
1131
+ limit?: number | null;
1132
+ /**
1133
+ * Pointer to the next or previous page in the list of results.
1134
+ *
1135
+ * You can get the relevant cursor token
1136
+ * from the `pagingMetadata` object in the previous call's response.
1137
+ * Not relevant for the first request.
1138
+ */
1139
+ cursor?: string | null;
1140
+ }
1141
+ interface ListRegisteredDomainsResponse {
1142
+ /** Metadata about the returned list of registered domains. */
1143
+ pagingMetadata?: CursorPagingMetadata;
1144
+ /** Retrieved registered domains. */
1145
+ registeredDomains?: RegisteredDomain[];
1146
+ }
1147
+ interface CursorPagingMetadata {
1148
+ /** Number of domains returned in the response. */
1149
+ count?: number | null;
1150
+ /** Offset that was requested. */
1151
+ cursors?: Cursors;
1152
+ /**
1153
+ * Indicates if there are more results after the current page.
1154
+ * If `true`, another page of results can be retrieved.
1155
+ * If `false`, this is the last page.
1156
+ */
1157
+ hasNext?: boolean | null;
1158
+ }
1159
+ interface Cursors {
1160
+ /** Cursor pointing to next page in the list of results. */
1161
+ next?: string | null;
1162
+ /** Cursor pointing to previous page in the list of results. */
1163
+ prev?: string | null;
1164
+ }
1165
+ interface RedeemRegisteredDomainRequest {
1166
+ /**
1167
+ * ID of the registered domain to redeem. Identical to the domain name
1168
+ * including TLD.
1169
+ */
1170
+ registeredDomainId: string;
1171
+ }
1172
+ interface RedeemRegisteredDomainResponse {
1173
+ /** Registered domain to redeem. */
1174
+ registeredDomain?: RegisteredDomain;
1175
+ }
1176
+ interface CreateRegisteredDomainResponseNonNullableFields {
1177
+ registeredDomain?: {
1178
+ pendingRegistrationInfo?: {
1179
+ latestAttempt?: {
1180
+ number: number;
1181
+ };
1182
+ };
1183
+ failedRegistrationInfo?: {
1184
+ code: FailureCode;
1185
+ message: string;
1186
+ };
1187
+ _id: string;
1188
+ domain: string;
1189
+ productInstanceId: string;
1190
+ siteInfo?: {
1191
+ redirectInfo?: {
1192
+ primaryDomain: string;
1193
+ };
1194
+ assignmentType: AssignmentType;
1195
+ };
1196
+ contacts?: {
1197
+ registrant?: {
1198
+ firstName: string;
1199
+ lastName: string;
1200
+ email: string;
1201
+ address: string;
1202
+ city: string;
1203
+ countryCode: string;
1204
+ phone: string;
1205
+ };
1206
+ admin?: {
1207
+ firstName: string;
1208
+ lastName: string;
1209
+ email: string;
1210
+ address: string;
1211
+ city: string;
1212
+ countryCode: string;
1213
+ phone: string;
1214
+ };
1215
+ tech?: {
1216
+ firstName: string;
1217
+ lastName: string;
1218
+ email: string;
1219
+ address: string;
1220
+ city: string;
1221
+ countryCode: string;
1222
+ phone: string;
1223
+ };
1224
+ };
1225
+ status: Status;
1226
+ icannConfirmationStatus: ICANNConfirmationStatus;
1227
+ icannConfirmationStatusInfo?: {
1228
+ pending?: {
1229
+ notConfirmedBy: string[];
1230
+ };
1231
+ expired?: {
1232
+ notConfirmedBy: string[];
1233
+ };
1234
+ };
1235
+ dnsPropagationStatus: DnsPropagationStatus;
1236
+ };
1237
+ }
1238
+ interface GetRegisteredDomainResponseNonNullableFields {
1239
+ registeredDomain?: {
1240
+ pendingRegistrationInfo?: {
1241
+ latestAttempt?: {
1242
+ number: number;
1243
+ };
1244
+ };
1245
+ failedRegistrationInfo?: {
1246
+ code: FailureCode;
1247
+ message: string;
1248
+ };
1249
+ _id: string;
1250
+ domain: string;
1251
+ productInstanceId: string;
1252
+ siteInfo?: {
1253
+ redirectInfo?: {
1254
+ primaryDomain: string;
1255
+ };
1256
+ assignmentType: AssignmentType;
1257
+ };
1258
+ contacts?: {
1259
+ registrant?: {
1260
+ firstName: string;
1261
+ lastName: string;
1262
+ email: string;
1263
+ address: string;
1264
+ city: string;
1265
+ countryCode: string;
1266
+ phone: string;
1267
+ };
1268
+ admin?: {
1269
+ firstName: string;
1270
+ lastName: string;
1271
+ email: string;
1272
+ address: string;
1273
+ city: string;
1274
+ countryCode: string;
1275
+ phone: string;
1276
+ };
1277
+ tech?: {
1278
+ firstName: string;
1279
+ lastName: string;
1280
+ email: string;
1281
+ address: string;
1282
+ city: string;
1283
+ countryCode: string;
1284
+ phone: string;
1285
+ };
1286
+ };
1287
+ status: Status;
1288
+ icannConfirmationStatus: ICANNConfirmationStatus;
1289
+ icannConfirmationStatusInfo?: {
1290
+ pending?: {
1291
+ notConfirmedBy: string[];
1292
+ };
1293
+ expired?: {
1294
+ notConfirmedBy: string[];
1295
+ };
1296
+ };
1297
+ dnsPropagationStatus: DnsPropagationStatus;
1298
+ };
1299
+ }
1300
+ interface ListRegisteredDomainsResponseNonNullableFields {
1301
+ registeredDomains: {
1302
+ pendingRegistrationInfo?: {
1303
+ latestAttempt?: {
1304
+ number: number;
1305
+ };
1306
+ };
1307
+ failedRegistrationInfo?: {
1308
+ code: FailureCode;
1309
+ message: string;
1310
+ };
1311
+ _id: string;
1312
+ domain: string;
1313
+ productInstanceId: string;
1314
+ siteInfo?: {
1315
+ redirectInfo?: {
1316
+ primaryDomain: string;
1317
+ };
1318
+ assignmentType: AssignmentType;
1319
+ };
1320
+ contacts?: {
1321
+ registrant?: {
1322
+ firstName: string;
1323
+ lastName: string;
1324
+ email: string;
1325
+ address: string;
1326
+ city: string;
1327
+ countryCode: string;
1328
+ phone: string;
1329
+ };
1330
+ admin?: {
1331
+ firstName: string;
1332
+ lastName: string;
1333
+ email: string;
1334
+ address: string;
1335
+ city: string;
1336
+ countryCode: string;
1337
+ phone: string;
1338
+ };
1339
+ tech?: {
1340
+ firstName: string;
1341
+ lastName: string;
1342
+ email: string;
1343
+ address: string;
1344
+ city: string;
1345
+ countryCode: string;
1346
+ phone: string;
1347
+ };
1348
+ };
1349
+ status: Status;
1350
+ icannConfirmationStatus: ICANNConfirmationStatus;
1351
+ icannConfirmationStatusInfo?: {
1352
+ pending?: {
1353
+ notConfirmedBy: string[];
1354
+ };
1355
+ expired?: {
1356
+ notConfirmedBy: string[];
1357
+ };
1358
+ };
1359
+ dnsPropagationStatus: DnsPropagationStatus;
1360
+ }[];
1361
+ }
1362
+ interface RedeemRegisteredDomainResponseNonNullableFields {
1363
+ registeredDomain?: {
1364
+ pendingRegistrationInfo?: {
1365
+ latestAttempt?: {
1366
+ number: number;
1367
+ };
1368
+ };
1369
+ failedRegistrationInfo?: {
1370
+ code: FailureCode;
1371
+ message: string;
1372
+ };
1373
+ _id: string;
1374
+ domain: string;
1375
+ productInstanceId: string;
1376
+ siteInfo?: {
1377
+ redirectInfo?: {
1378
+ primaryDomain: string;
1379
+ };
1380
+ assignmentType: AssignmentType;
1381
+ };
1382
+ contacts?: {
1383
+ registrant?: {
1384
+ firstName: string;
1385
+ lastName: string;
1386
+ email: string;
1387
+ address: string;
1388
+ city: string;
1389
+ countryCode: string;
1390
+ phone: string;
1391
+ };
1392
+ admin?: {
1393
+ firstName: string;
1394
+ lastName: string;
1395
+ email: string;
1396
+ address: string;
1397
+ city: string;
1398
+ countryCode: string;
1399
+ phone: string;
1400
+ };
1401
+ tech?: {
1402
+ firstName: string;
1403
+ lastName: string;
1404
+ email: string;
1405
+ address: string;
1406
+ city: string;
1407
+ countryCode: string;
1408
+ phone: string;
1409
+ };
1410
+ };
1411
+ status: Status;
1412
+ icannConfirmationStatus: ICANNConfirmationStatus;
1413
+ icannConfirmationStatusInfo?: {
1414
+ pending?: {
1415
+ notConfirmedBy: string[];
1416
+ };
1417
+ expired?: {
1418
+ notConfirmedBy: string[];
1419
+ };
1420
+ };
1421
+ dnsPropagationStatus: DnsPropagationStatus;
1422
+ };
1423
+ }
1424
+
1425
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1426
+ getUrl: (context: any) => string;
1427
+ httpMethod: K;
1428
+ path: string;
1429
+ pathParams: M;
1430
+ __requestType: T;
1431
+ __originalRequestType: S;
1432
+ __responseType: Q;
1433
+ __originalResponseType: R;
1434
+ };
1435
+ declare function createRegisteredDomain(): __PublicMethodMetaInfo<'POST', {}, CreateRegisteredDomainRequest, CreateRegisteredDomainRequest$1, CreateRegisteredDomainResponse & CreateRegisteredDomainResponseNonNullableFields, CreateRegisteredDomainResponse$1 & CreateRegisteredDomainResponseNonNullableFields$1>;
1436
+ declare function getRegisteredDomain(): __PublicMethodMetaInfo<'GET', {
1437
+ registeredDomainId: string;
1438
+ }, GetRegisteredDomainRequest, GetRegisteredDomainRequest$1, GetRegisteredDomainResponse & GetRegisteredDomainResponseNonNullableFields, GetRegisteredDomainResponse$1 & GetRegisteredDomainResponseNonNullableFields$1>;
1439
+ declare function listRegisteredDomains(): __PublicMethodMetaInfo<'GET', {}, ListRegisteredDomainsRequest, ListRegisteredDomainsRequest$1, ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields, ListRegisteredDomainsResponse$1 & ListRegisteredDomainsResponseNonNullableFields$1>;
1440
+ declare function redeemRegisteredDomain(): __PublicMethodMetaInfo<'POST', {
1441
+ registeredDomainId: string;
1442
+ }, RedeemRegisteredDomainRequest, RedeemRegisteredDomainRequest$1, RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields, RedeemRegisteredDomainResponse$1 & RedeemRegisteredDomainResponseNonNullableFields$1>;
1443
+
1444
+ type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
1445
+ declare const meta_createRegisteredDomain: typeof createRegisteredDomain;
1446
+ declare const meta_getRegisteredDomain: typeof getRegisteredDomain;
1447
+ declare const meta_listRegisteredDomains: typeof listRegisteredDomains;
1448
+ declare const meta_redeemRegisteredDomain: typeof redeemRegisteredDomain;
1449
+ declare namespace meta {
1450
+ export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_createRegisteredDomain as createRegisteredDomain, meta_getRegisteredDomain as getRegisteredDomain, meta_listRegisteredDomains as listRegisteredDomains, meta_redeemRegisteredDomain as redeemRegisteredDomain };
1451
+ }
1452
+
1453
+ export { meta as registeredDomains };