@wix/domains 1.0.19 → 1.0.21

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.
@@ -197,7 +197,7 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
197
197
  slug?: string;
198
198
  /** ID of the entity associated with the event. */
199
199
  entityId?: string;
200
- /** Event timestamp. */
200
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
201
201
  eventTime?: Date;
202
202
  /**
203
203
  * Whether the event was triggered as a result of a privacy regulation application
@@ -226,7 +226,7 @@ interface DomainEventBodyOneOf$2 {
226
226
  interface EntityCreatedEvent$2 {
227
227
  entity?: string;
228
228
  }
229
- interface RestoreInfo$1 {
229
+ interface RestoreInfo$2 {
230
230
  deletedDate?: Date;
231
231
  }
232
232
  interface EntityUpdatedEvent$2 {
@@ -284,56 +284,36 @@ declare enum WebhookIdentityType$2 {
284
284
  WIX_USER = "WIX_USER",
285
285
  APP = "APP"
286
286
  }
287
+ interface RedirectAssignmentInfoNonNullableFields$1 {
288
+ primaryDomain: string;
289
+ }
290
+ interface SiteInfoNonNullableFields$1 {
291
+ redirectInfo?: RedirectAssignmentInfoNonNullableFields$1;
292
+ assignmentType: AssignmentType$1;
293
+ }
294
+ interface ConnectedDomainNonNullableFields {
295
+ _id: string;
296
+ domain: string;
297
+ connectionType: ConnectionType$1;
298
+ siteInfo?: SiteInfoNonNullableFields$1;
299
+ suppressNotifications: boolean;
300
+ dnsPropagationStatus: DnsPropagationStatus$1;
301
+ }
287
302
  interface CreateConnectedDomainResponseNonNullableFields {
288
- connectedDomain?: {
289
- _id: string;
290
- domain: string;
291
- connectionType: ConnectionType$1;
292
- siteInfo?: {
293
- redirectInfo?: {
294
- primaryDomain: string;
295
- };
296
- assignmentType: AssignmentType$1;
297
- };
298
- suppressNotifications: boolean;
299
- dnsPropagationStatus: DnsPropagationStatus$1;
300
- };
303
+ connectedDomain?: ConnectedDomainNonNullableFields;
301
304
  }
302
305
  interface GetConnectedDomainResponseNonNullableFields {
303
- connectedDomain?: {
304
- _id: string;
305
- domain: string;
306
- connectionType: ConnectionType$1;
307
- siteInfo?: {
308
- redirectInfo?: {
309
- primaryDomain: string;
310
- };
311
- assignmentType: AssignmentType$1;
312
- };
313
- suppressNotifications: boolean;
314
- dnsPropagationStatus: DnsPropagationStatus$1;
315
- };
306
+ connectedDomain?: ConnectedDomainNonNullableFields;
316
307
  }
317
308
  interface ListConnectedDomainsResponseNonNullableFields {
318
- connectedDomains: {
319
- _id: string;
320
- domain: string;
321
- connectionType: ConnectionType$1;
322
- siteInfo?: {
323
- redirectInfo?: {
324
- primaryDomain: string;
325
- };
326
- assignmentType: AssignmentType$1;
327
- };
328
- suppressNotifications: boolean;
329
- dnsPropagationStatus: DnsPropagationStatus$1;
330
- }[];
309
+ connectedDomains: ConnectedDomainNonNullableFields[];
331
310
  }
332
311
  interface ListConnectedDomainsOptions {
333
312
  /** Cursor paging options. */
334
313
  paging?: CursorPaging$2;
335
314
  }
336
315
 
316
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
337
317
  interface HttpClient {
338
318
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
339
319
  fetchWithAuth: typeof fetch;
@@ -358,6 +338,7 @@ type APIMetadata = {
358
338
  entityFqdn?: string;
359
339
  packageName?: string;
360
340
  };
341
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
361
342
 
362
343
  declare global {
363
344
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -366,39 +347,15 @@ declare global {
366
347
  }
367
348
  }
368
349
 
369
- declare const __metadata$5: {
370
- PACKAGE_NAME: string;
371
- };
372
- declare function createConnectedDomain(httpClient: HttpClient): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
373
- _id: string;
374
- domain: string;
375
- connectionType: ConnectionType$1;
376
- siteInfo?: {
377
- redirectInfo?: {
378
- primaryDomain: string;
379
- } | undefined;
380
- assignmentType: AssignmentType$1;
381
- } | undefined;
382
- suppressNotifications: boolean;
383
- dnsPropagationStatus: DnsPropagationStatus$1;
384
- }>;
385
- declare function getConnectedDomain(httpClient: HttpClient): (connectedDomainId: string) => Promise<ConnectedDomain & {
386
- _id: string;
387
- domain: string;
388
- connectionType: ConnectionType$1;
389
- siteInfo?: {
390
- redirectInfo?: {
391
- primaryDomain: string;
392
- } | undefined;
393
- assignmentType: AssignmentType$1;
394
- } | undefined;
395
- suppressNotifications: boolean;
396
- dnsPropagationStatus: DnsPropagationStatus$1;
397
- }>;
398
- declare function deleteConnectedDomain(httpClient: HttpClient): (connectedDomainId: string) => Promise<void>;
399
- declare function listConnectedDomains(httpClient: HttpClient): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
350
+ declare function createRESTModule$5<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
351
+
352
+ declare const createConnectedDomain: ReturnType<typeof createRESTModule$5<typeof publicCreateConnectedDomain>>;
353
+ declare const getConnectedDomain: ReturnType<typeof createRESTModule$5<typeof publicGetConnectedDomain>>;
354
+ declare const deleteConnectedDomain: ReturnType<typeof createRESTModule$5<typeof publicDeleteConnectedDomain>>;
355
+ declare const listConnectedDomains: ReturnType<typeof createRESTModule$5<typeof publicListConnectedDomains>>;
400
356
 
401
357
  type index_d$5_ConnectedDomain = ConnectedDomain;
358
+ type index_d$5_ConnectedDomainNonNullableFields = ConnectedDomainNonNullableFields;
402
359
  type index_d$5_CreateConnectedDomainRequest = CreateConnectedDomainRequest;
403
360
  type index_d$5_CreateConnectedDomainResponse = CreateConnectedDomainResponse;
404
361
  type index_d$5_CreateConnectedDomainResponseNonNullableFields = CreateConnectedDomainResponseNonNullableFields;
@@ -416,7 +373,7 @@ declare const index_d$5_deleteConnectedDomain: typeof deleteConnectedDomain;
416
373
  declare const index_d$5_getConnectedDomain: typeof getConnectedDomain;
417
374
  declare const index_d$5_listConnectedDomains: typeof listConnectedDomains;
418
375
  declare namespace index_d$5 {
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 };
376
+ export { type ActionEvent$2 as ActionEvent, AssignmentType$1 as AssignmentType, type index_d$5_ConnectedDomain as ConnectedDomain, type index_d$5_ConnectedDomainNonNullableFields as ConnectedDomainNonNullableFields, 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$2 as RestoreInfo, type SiteInfo$1 as SiteInfo, type SiteInfoAssignmentInfoOneOf$1 as SiteInfoAssignmentInfoOneOf, WebhookIdentityType$2 as WebhookIdentityType, index_d$5_createConnectedDomain as createConnectedDomain, index_d$5_deleteConnectedDomain as deleteConnectedDomain, index_d$5_getConnectedDomain as getConnectedDomain, index_d$5_listConnectedDomains as listConnectedDomains };
420
377
  }
421
378
 
422
379
  /**
@@ -581,45 +538,48 @@ interface GetConnectedDomainSetupInfoResponse {
581
538
  /** Retrieved setup information. */
582
539
  connectedDomainSetupInfo?: ConnectedDomainSetupInfo;
583
540
  }
541
+ interface NsRecordNonNullableFields {
542
+ hostName: string;
543
+ ttl: number;
544
+ values: string[];
545
+ }
546
+ interface NameserverRecordNonNullableFields {
547
+ nsRecord?: NsRecordNonNullableFields;
548
+ }
549
+ interface ARecordNonNullableFields {
550
+ hostName: string;
551
+ ttl: number;
552
+ values: string[];
553
+ }
554
+ interface CnameRecordNonNullableFields {
555
+ hostName: string;
556
+ ttl: number;
557
+ value: string;
558
+ }
559
+ interface PointingRecordsNonNullableFields {
560
+ aRecord?: ARecordNonNullableFields;
561
+ cnameRecord?: CnameRecordNonNullableFields;
562
+ }
563
+ interface SubdomainRecordsNonNullableFields {
564
+ cnameRecords: CnameRecordNonNullableFields[];
565
+ }
566
+ interface RegistrarNonNullableFields {
567
+ nameServers: string[];
568
+ }
569
+ interface ConnectedDomainSetupInfoNonNullableFields {
570
+ nameserverRecord?: NameserverRecordNonNullableFields;
571
+ pointingRecords?: PointingRecordsNonNullableFields;
572
+ subdomainRecords?: SubdomainRecordsNonNullableFields;
573
+ connectedDomainId: string;
574
+ registrar?: RegistrarNonNullableFields;
575
+ }
584
576
  interface GetConnectedDomainSetupInfoResponseNonNullableFields {
585
- connectedDomainSetupInfo?: {
586
- nameserverRecord?: {
587
- nsRecord?: {
588
- hostName: string;
589
- ttl: number;
590
- values: string[];
591
- };
592
- };
593
- pointingRecords?: {
594
- aRecord?: {
595
- hostName: string;
596
- ttl: number;
597
- values: string[];
598
- };
599
- cnameRecord?: {
600
- hostName: string;
601
- ttl: number;
602
- value: string;
603
- };
604
- };
605
- subdomainRecords?: {
606
- cnameRecords: {
607
- hostName: string;
608
- ttl: number;
609
- value: string;
610
- }[];
611
- };
612
- connectedDomainId: string;
613
- registrar?: {
614
- nameServers: string[];
615
- };
616
- };
577
+ connectedDomainSetupInfo?: ConnectedDomainSetupInfoNonNullableFields;
617
578
  }
618
579
 
619
- declare const __metadata$4: {
620
- PACKAGE_NAME: string;
621
- };
622
- declare function getConnectedDomainSetupInfo(httpClient: HttpClient): (connectedDomainId: string) => Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
580
+ declare function createRESTModule$4<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
581
+
582
+ declare const getConnectedDomainSetupInfo: ReturnType<typeof createRESTModule$4<typeof publicGetConnectedDomainSetupInfo>>;
623
583
 
624
584
  type index_d$4_ARecord = ARecord;
625
585
  type index_d$4_CnameRecord = CnameRecord;
@@ -639,7 +599,7 @@ type index_d$4_Registrar = Registrar;
639
599
  type index_d$4_SubdomainRecords = SubdomainRecords;
640
600
  declare const index_d$4_getConnectedDomainSetupInfo: typeof getConnectedDomainSetupInfo;
641
601
  declare namespace index_d$4 {
642
- export { type index_d$4_ARecord as ARecord, type index_d$4_CnameRecord as CnameRecord, type index_d$4_ConnectedDomainSetupInfo as ConnectedDomainSetupInfo, type index_d$4_ConnectedDomainSetupInfoDnsRecordsOneOf as ConnectedDomainSetupInfoDnsRecordsOneOf, index_d$4_ConnectionType as ConnectionType, type index_d$4_GetConnectedDomainSetupInfoRequest as GetConnectedDomainSetupInfoRequest, type index_d$4_GetConnectedDomainSetupInfoResponse as GetConnectedDomainSetupInfoResponse, type index_d$4_GetConnectedDomainSetupInfoResponseNonNullableFields as GetConnectedDomainSetupInfoResponseNonNullableFields, type index_d$4_GetSetupInfoRequest as GetSetupInfoRequest, type index_d$4_GetSetupInfoResponse as GetSetupInfoResponse, type index_d$4_NameserverRecord as NameserverRecord, type index_d$4_NsRecord as NsRecord, type index_d$4_PointingRecords as PointingRecords, type index_d$4_Registrar as Registrar, type index_d$4_SubdomainRecords as SubdomainRecords, __metadata$4 as __metadata, index_d$4_getConnectedDomainSetupInfo as getConnectedDomainSetupInfo };
602
+ export { type index_d$4_ARecord as ARecord, type index_d$4_CnameRecord as CnameRecord, type index_d$4_ConnectedDomainSetupInfo as ConnectedDomainSetupInfo, type index_d$4_ConnectedDomainSetupInfoDnsRecordsOneOf as ConnectedDomainSetupInfoDnsRecordsOneOf, index_d$4_ConnectionType as ConnectionType, type index_d$4_GetConnectedDomainSetupInfoRequest as GetConnectedDomainSetupInfoRequest, type index_d$4_GetConnectedDomainSetupInfoResponse as GetConnectedDomainSetupInfoResponse, type index_d$4_GetConnectedDomainSetupInfoResponseNonNullableFields as GetConnectedDomainSetupInfoResponseNonNullableFields, type index_d$4_GetSetupInfoRequest as GetSetupInfoRequest, type index_d$4_GetSetupInfoResponse as GetSetupInfoResponse, type index_d$4_NameserverRecord as NameserverRecord, type index_d$4_NsRecord as NsRecord, type index_d$4_PointingRecords as PointingRecords, type index_d$4_Registrar as Registrar, type index_d$4_SubdomainRecords as SubdomainRecords, index_d$4_getConnectedDomainSetupInfo as getConnectedDomainSetupInfo };
643
603
  }
644
604
 
645
605
  /** DNS zones hold information about the records that map a domain's URL to an IP address. */
@@ -661,11 +621,18 @@ interface DnsZone {
661
621
  */
662
622
  _id?: string;
663
623
  /**
664
- * Whether [DNS Security Extensions (DNSSEC)](https://en.wikipedia.org/wiki/Domain_Name_System_Security_Extensions) are enabled.
624
+ * Whether [DNS Security Extensions (DNSSEC)](https://en.wikipedia.org/wiki/Domain_Name_System_Security_Extensions)
625
+ * are enabled.
665
626
  *
666
627
  * Default: `false`
667
628
  */
668
629
  dnssecEnabled?: boolean;
630
+ /**
631
+ * Information about [DNSSEC](https://en.wikipedia.org/wiki/Domain_Name_System_Security_Extensions).
632
+ * Available only if `{"dnssecEnabled": true}`.
633
+ * @readonly
634
+ */
635
+ dnssecInfo?: DnssecInfo;
669
636
  }
670
637
  interface DnsRecord {
671
638
  /**
@@ -716,6 +683,19 @@ declare enum RecordType {
716
683
  PTR = "PTR",
717
684
  NAPTR = "NAPTR"
718
685
  }
686
+ interface DnssecInfo {
687
+ /**
688
+ * Unique 16-bit identifier for a [DNSKEY](https://cloud.google.com/dns/docs/reference/rest/v1/dnsKeys)
689
+ * record that allows efficient DNSSEC validation in zones with multiple keys.
690
+ */
691
+ keyTag?: number;
692
+ /**
693
+ * Cryptographic hash of the [DNSKEY](https://cloud.google.com/dns/docs/reference/rest/v1/dnsKeys)
694
+ * record that's included in the delegation signer (DS) record and ensures secure
695
+ * DNSSEC validation.
696
+ */
697
+ digest?: string;
698
+ }
719
699
  interface DomainRemovedEvent {
720
700
  /**
721
701
  * Domain name including TLD.
@@ -802,7 +782,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
802
782
  slug?: string;
803
783
  /** ID of the entity associated with the event. */
804
784
  entityId?: string;
805
- /** Event timestamp. */
785
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
806
786
  eventTime?: Date;
807
787
  /**
808
788
  * Whether the event was triggered as a result of a privacy regulation application
@@ -831,6 +811,9 @@ interface DomainEventBodyOneOf$1 {
831
811
  interface EntityCreatedEvent$1 {
832
812
  entity?: string;
833
813
  }
814
+ interface RestoreInfo$1 {
815
+ deletedDate?: Date;
816
+ }
834
817
  interface EntityUpdatedEvent$1 {
835
818
  /**
836
819
  * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
@@ -886,57 +869,34 @@ declare enum WebhookIdentityType$1 {
886
869
  WIX_USER = "WIX_USER",
887
870
  APP = "APP"
888
871
  }
872
+ interface DnsRecordNonNullableFields {
873
+ type: RecordType;
874
+ hostName: string;
875
+ ttl: number;
876
+ values: string[];
877
+ }
878
+ interface DnssecInfoNonNullableFields {
879
+ keyTag: number;
880
+ digest: string;
881
+ }
882
+ interface DnsZoneNonNullableFields {
883
+ domainName: string;
884
+ records: DnsRecordNonNullableFields[];
885
+ _id: string;
886
+ dnssecEnabled: boolean;
887
+ dnssecInfo?: DnssecInfoNonNullableFields;
888
+ }
889
889
  interface CreateDnsZoneResponseNonNullableFields {
890
- dnsZone?: {
891
- domainName: string;
892
- records: {
893
- type: RecordType;
894
- hostName: string;
895
- ttl: number;
896
- values: string[];
897
- }[];
898
- _id: string;
899
- dnssecEnabled: boolean;
900
- };
890
+ dnsZone?: DnsZoneNonNullableFields;
901
891
  }
902
892
  interface GetDnsZoneResponseNonNullableFields {
903
- dnsZone?: {
904
- domainName: string;
905
- records: {
906
- type: RecordType;
907
- hostName: string;
908
- ttl: number;
909
- values: string[];
910
- }[];
911
- _id: string;
912
- dnssecEnabled: boolean;
913
- };
893
+ dnsZone?: DnsZoneNonNullableFields;
914
894
  }
915
895
  interface UpdateDnsZoneResponseNonNullableFields {
916
- dnsZone?: {
917
- domainName: string;
918
- records: {
919
- type: RecordType;
920
- hostName: string;
921
- ttl: number;
922
- values: string[];
923
- }[];
924
- _id: string;
925
- dnssecEnabled: boolean;
926
- };
896
+ dnsZone?: DnsZoneNonNullableFields;
927
897
  }
928
898
  interface PreviewDnsZoneResponseNonNullableFields {
929
- dnsZone?: {
930
- domainName: string;
931
- records: {
932
- type: RecordType;
933
- hostName: string;
934
- ttl: number;
935
- values: string[];
936
- }[];
937
- _id: string;
938
- dnssecEnabled: boolean;
939
- };
899
+ dnsZone?: DnsZoneNonNullableFields;
940
900
  }
941
901
  interface UpdateDnsZoneOptions {
942
902
  /**
@@ -955,34 +915,13 @@ interface UpdateDnsZoneOptions {
955
915
  dnssecEnabled?: boolean | null;
956
916
  }
957
917
 
958
- declare const __metadata$3: {
959
- PACKAGE_NAME: string;
960
- };
961
- declare function createDnsZone(httpClient: HttpClient): (dnsZone: DnsZone) => Promise<DnsZone & {
962
- domainName: string;
963
- records: {
964
- type: RecordType;
965
- hostName: string;
966
- ttl: number;
967
- values: string[];
968
- }[];
969
- _id: string;
970
- dnssecEnabled: boolean;
971
- }>;
972
- declare function getDnsZone(httpClient: HttpClient): (domainName: string) => Promise<DnsZone & {
973
- domainName: string;
974
- records: {
975
- type: RecordType;
976
- hostName: string;
977
- ttl: number;
978
- values: string[];
979
- }[];
980
- _id: string;
981
- dnssecEnabled: boolean;
982
- }>;
983
- declare function updateDnsZone(httpClient: HttpClient): (domainName: string, options?: UpdateDnsZoneOptions) => Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
984
- declare function deleteDnsZone(httpClient: HttpClient): (domainName: string) => Promise<void>;
985
- declare function previewDnsZone(httpClient: HttpClient): (domainName: string) => Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
918
+ declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
919
+
920
+ declare const createDnsZone: ReturnType<typeof createRESTModule$3<typeof publicCreateDnsZone>>;
921
+ declare const getDnsZone: ReturnType<typeof createRESTModule$3<typeof publicGetDnsZone>>;
922
+ declare const updateDnsZone: ReturnType<typeof createRESTModule$3<typeof publicUpdateDnsZone>>;
923
+ declare const deleteDnsZone: ReturnType<typeof createRESTModule$3<typeof publicDeleteDnsZone>>;
924
+ declare const previewDnsZone: ReturnType<typeof createRESTModule$3<typeof publicPreviewDnsZone>>;
986
925
 
987
926
  type index_d$3_CreateDnsZoneRequest = CreateDnsZoneRequest;
988
927
  type index_d$3_CreateDnsZoneResponse = CreateDnsZoneResponse;
@@ -991,6 +930,8 @@ type index_d$3_DeleteDnsZoneRequest = DeleteDnsZoneRequest;
991
930
  type index_d$3_DeleteDnsZoneResponse = DeleteDnsZoneResponse;
992
931
  type index_d$3_DnsRecord = DnsRecord;
993
932
  type index_d$3_DnsZone = DnsZone;
933
+ type index_d$3_DnsZoneNonNullableFields = DnsZoneNonNullableFields;
934
+ type index_d$3_DnssecInfo = DnssecInfo;
994
935
  type index_d$3_DomainRemovedEvent = DomainRemovedEvent;
995
936
  type index_d$3_GetDnsZoneRequest = GetDnsZoneRequest;
996
937
  type index_d$3_GetDnsZoneResponse = GetDnsZoneResponse;
@@ -1010,7 +951,7 @@ declare const index_d$3_getDnsZone: typeof getDnsZone;
1010
951
  declare const index_d$3_previewDnsZone: typeof previewDnsZone;
1011
952
  declare const index_d$3_updateDnsZone: typeof updateDnsZone;
1012
953
  declare namespace index_d$3 {
1013
- export { type ActionEvent$1 as ActionEvent, type index_d$3_CreateDnsZoneRequest as CreateDnsZoneRequest, type index_d$3_CreateDnsZoneResponse as CreateDnsZoneResponse, type index_d$3_CreateDnsZoneResponseNonNullableFields as CreateDnsZoneResponseNonNullableFields, type index_d$3_DeleteDnsZoneRequest as DeleteDnsZoneRequest, type index_d$3_DeleteDnsZoneResponse as DeleteDnsZoneResponse, type index_d$3_DnsRecord as DnsRecord, type index_d$3_DnsZone as DnsZone, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$3_DomainRemovedEvent as DomainRemovedEvent, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$3_GetDnsZoneRequest as GetDnsZoneRequest, type index_d$3_GetDnsZoneResponse as GetDnsZoneResponse, type index_d$3_GetDnsZoneResponseNonNullableFields as GetDnsZoneResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$3_PreviewDnsZoneRequest as PreviewDnsZoneRequest, type index_d$3_PreviewDnsZoneResponse as PreviewDnsZoneResponse, type index_d$3_PreviewDnsZoneResponseNonNullableFields as PreviewDnsZoneResponseNonNullableFields, index_d$3_RecordType as RecordType, type index_d$3_UpdateDnsZoneOptions as UpdateDnsZoneOptions, type index_d$3_UpdateDnsZoneRequest as UpdateDnsZoneRequest, type index_d$3_UpdateDnsZoneResponse as UpdateDnsZoneResponse, type index_d$3_UpdateDnsZoneResponseNonNullableFields as UpdateDnsZoneResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, __metadata$3 as __metadata, index_d$3_createDnsZone as createDnsZone, index_d$3_deleteDnsZone as deleteDnsZone, index_d$3_getDnsZone as getDnsZone, index_d$3_previewDnsZone as previewDnsZone, index_d$3_updateDnsZone as updateDnsZone };
954
+ export { type ActionEvent$1 as ActionEvent, type index_d$3_CreateDnsZoneRequest as CreateDnsZoneRequest, type index_d$3_CreateDnsZoneResponse as CreateDnsZoneResponse, type index_d$3_CreateDnsZoneResponseNonNullableFields as CreateDnsZoneResponseNonNullableFields, type index_d$3_DeleteDnsZoneRequest as DeleteDnsZoneRequest, type index_d$3_DeleteDnsZoneResponse as DeleteDnsZoneResponse, type index_d$3_DnsRecord as DnsRecord, type index_d$3_DnsZone as DnsZone, type index_d$3_DnsZoneNonNullableFields as DnsZoneNonNullableFields, type index_d$3_DnssecInfo as DnssecInfo, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$3_DomainRemovedEvent as DomainRemovedEvent, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$3_GetDnsZoneRequest as GetDnsZoneRequest, type index_d$3_GetDnsZoneResponse as GetDnsZoneResponse, type index_d$3_GetDnsZoneResponseNonNullableFields as GetDnsZoneResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$3_PreviewDnsZoneRequest as PreviewDnsZoneRequest, type index_d$3_PreviewDnsZoneResponse as PreviewDnsZoneResponse, type index_d$3_PreviewDnsZoneResponseNonNullableFields as PreviewDnsZoneResponseNonNullableFields, index_d$3_RecordType as RecordType, type RestoreInfo$1 as RestoreInfo, type index_d$3_UpdateDnsZoneOptions as UpdateDnsZoneOptions, type index_d$3_UpdateDnsZoneRequest as UpdateDnsZoneRequest, type index_d$3_UpdateDnsZoneResponse as UpdateDnsZoneResponse, type index_d$3_UpdateDnsZoneResponseNonNullableFields as UpdateDnsZoneResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, index_d$3_createDnsZone as createDnsZone, index_d$3_deleteDnsZone as deleteDnsZone, index_d$3_getDnsZone as getDnsZone, index_d$3_previewDnsZone as previewDnsZone, index_d$3_updateDnsZone as updateDnsZone };
1014
955
  }
1015
956
 
1016
957
  /**
@@ -1592,384 +1533,83 @@ declare enum WebhookIdentityType {
1592
1533
  WIX_USER = "WIX_USER",
1593
1534
  APP = "APP"
1594
1535
  }
1536
+ interface LatestAttemptNonNullableFields {
1537
+ number: number;
1538
+ }
1539
+ interface PendingRegistrationInfoNonNullableFields {
1540
+ latestAttempt?: LatestAttemptNonNullableFields;
1541
+ }
1542
+ interface FailedRegistrationInfoNonNullableFields {
1543
+ code: FailureCode;
1544
+ message: string;
1545
+ }
1546
+ interface RedirectAssignmentInfoNonNullableFields {
1547
+ primaryDomain: string;
1548
+ }
1549
+ interface SiteInfoNonNullableFields {
1550
+ redirectInfo?: RedirectAssignmentInfoNonNullableFields;
1551
+ assignmentType: AssignmentType;
1552
+ }
1553
+ interface ContactDataNonNullableFields {
1554
+ firstName: string;
1555
+ lastName: string;
1556
+ email: string;
1557
+ address: string;
1558
+ city: string;
1559
+ countryCode: string;
1560
+ phone: string;
1561
+ }
1562
+ interface ContactsNonNullableFields {
1563
+ registrant?: ContactDataNonNullableFields;
1564
+ admin?: ContactDataNonNullableFields;
1565
+ tech?: ContactDataNonNullableFields;
1566
+ }
1567
+ interface PendingNonNullableFields {
1568
+ notConfirmedBy: string[];
1569
+ }
1570
+ interface ExpiredNonNullableFields {
1571
+ notConfirmedBy: string[];
1572
+ }
1573
+ interface ICANNConfirmationStatusInfoNonNullableFields {
1574
+ pending?: PendingNonNullableFields;
1575
+ expired?: ExpiredNonNullableFields;
1576
+ }
1577
+ interface RegisteredDomainNonNullableFields {
1578
+ pendingRegistrationInfo?: PendingRegistrationInfoNonNullableFields;
1579
+ failedRegistrationInfo?: FailedRegistrationInfoNonNullableFields;
1580
+ _id: string;
1581
+ domain: string;
1582
+ productInstanceId: string;
1583
+ siteInfo?: SiteInfoNonNullableFields;
1584
+ contacts?: ContactsNonNullableFields;
1585
+ status: Status;
1586
+ icannConfirmationStatus: ICANNConfirmationStatus;
1587
+ icannConfirmationStatusInfo?: ICANNConfirmationStatusInfoNonNullableFields;
1588
+ dnsPropagationStatus: DnsPropagationStatus;
1589
+ }
1595
1590
  interface CreateRegisteredDomainResponseNonNullableFields {
1596
- registeredDomain?: {
1597
- pendingRegistrationInfo?: {
1598
- latestAttempt?: {
1599
- number: number;
1600
- };
1601
- };
1602
- failedRegistrationInfo?: {
1603
- code: FailureCode;
1604
- message: string;
1605
- };
1606
- _id: string;
1607
- domain: string;
1608
- productInstanceId: string;
1609
- siteInfo?: {
1610
- redirectInfo?: {
1611
- primaryDomain: string;
1612
- };
1613
- assignmentType: AssignmentType;
1614
- };
1615
- contacts?: {
1616
- registrant?: {
1617
- firstName: string;
1618
- lastName: string;
1619
- email: string;
1620
- address: string;
1621
- city: string;
1622
- countryCode: string;
1623
- phone: string;
1624
- };
1625
- admin?: {
1626
- firstName: string;
1627
- lastName: string;
1628
- email: string;
1629
- address: string;
1630
- city: string;
1631
- countryCode: string;
1632
- phone: string;
1633
- };
1634
- tech?: {
1635
- firstName: string;
1636
- lastName: string;
1637
- email: string;
1638
- address: string;
1639
- city: string;
1640
- countryCode: string;
1641
- phone: string;
1642
- };
1643
- };
1644
- status: Status;
1645
- icannConfirmationStatus: ICANNConfirmationStatus;
1646
- icannConfirmationStatusInfo?: {
1647
- pending?: {
1648
- notConfirmedBy: string[];
1649
- };
1650
- expired?: {
1651
- notConfirmedBy: string[];
1652
- };
1653
- };
1654
- dnsPropagationStatus: DnsPropagationStatus;
1655
- };
1591
+ registeredDomain?: RegisteredDomainNonNullableFields;
1656
1592
  }
1657
1593
  interface GetRegisteredDomainResponseNonNullableFields {
1658
- registeredDomain?: {
1659
- pendingRegistrationInfo?: {
1660
- latestAttempt?: {
1661
- number: number;
1662
- };
1663
- };
1664
- failedRegistrationInfo?: {
1665
- code: FailureCode;
1666
- message: string;
1667
- };
1668
- _id: string;
1669
- domain: string;
1670
- productInstanceId: string;
1671
- siteInfo?: {
1672
- redirectInfo?: {
1673
- primaryDomain: string;
1674
- };
1675
- assignmentType: AssignmentType;
1676
- };
1677
- contacts?: {
1678
- registrant?: {
1679
- firstName: string;
1680
- lastName: string;
1681
- email: string;
1682
- address: string;
1683
- city: string;
1684
- countryCode: string;
1685
- phone: string;
1686
- };
1687
- admin?: {
1688
- firstName: string;
1689
- lastName: string;
1690
- email: string;
1691
- address: string;
1692
- city: string;
1693
- countryCode: string;
1694
- phone: string;
1695
- };
1696
- tech?: {
1697
- firstName: string;
1698
- lastName: string;
1699
- email: string;
1700
- address: string;
1701
- city: string;
1702
- countryCode: string;
1703
- phone: string;
1704
- };
1705
- };
1706
- status: Status;
1707
- icannConfirmationStatus: ICANNConfirmationStatus;
1708
- icannConfirmationStatusInfo?: {
1709
- pending?: {
1710
- notConfirmedBy: string[];
1711
- };
1712
- expired?: {
1713
- notConfirmedBy: string[];
1714
- };
1715
- };
1716
- dnsPropagationStatus: DnsPropagationStatus;
1717
- };
1594
+ registeredDomain?: RegisteredDomainNonNullableFields;
1718
1595
  }
1719
1596
  interface ListRegisteredDomainsResponseNonNullableFields {
1720
- registeredDomains: {
1721
- pendingRegistrationInfo?: {
1722
- latestAttempt?: {
1723
- number: number;
1724
- };
1725
- };
1726
- failedRegistrationInfo?: {
1727
- code: FailureCode;
1728
- message: string;
1729
- };
1730
- _id: string;
1731
- domain: string;
1732
- productInstanceId: string;
1733
- siteInfo?: {
1734
- redirectInfo?: {
1735
- primaryDomain: string;
1736
- };
1737
- assignmentType: AssignmentType;
1738
- };
1739
- contacts?: {
1740
- registrant?: {
1741
- firstName: string;
1742
- lastName: string;
1743
- email: string;
1744
- address: string;
1745
- city: string;
1746
- countryCode: string;
1747
- phone: string;
1748
- };
1749
- admin?: {
1750
- firstName: string;
1751
- lastName: string;
1752
- email: string;
1753
- address: string;
1754
- city: string;
1755
- countryCode: string;
1756
- phone: string;
1757
- };
1758
- tech?: {
1759
- firstName: string;
1760
- lastName: string;
1761
- email: string;
1762
- address: string;
1763
- city: string;
1764
- countryCode: string;
1765
- phone: string;
1766
- };
1767
- };
1768
- status: Status;
1769
- icannConfirmationStatus: ICANNConfirmationStatus;
1770
- icannConfirmationStatusInfo?: {
1771
- pending?: {
1772
- notConfirmedBy: string[];
1773
- };
1774
- expired?: {
1775
- notConfirmedBy: string[];
1776
- };
1777
- };
1778
- dnsPropagationStatus: DnsPropagationStatus;
1779
- }[];
1597
+ registeredDomains: RegisteredDomainNonNullableFields[];
1780
1598
  }
1781
1599
  interface RedeemRegisteredDomainResponseNonNullableFields {
1782
- registeredDomain?: {
1783
- pendingRegistrationInfo?: {
1784
- latestAttempt?: {
1785
- number: number;
1786
- };
1787
- };
1788
- failedRegistrationInfo?: {
1789
- code: FailureCode;
1790
- message: string;
1791
- };
1792
- _id: string;
1793
- domain: string;
1794
- productInstanceId: string;
1795
- siteInfo?: {
1796
- redirectInfo?: {
1797
- primaryDomain: string;
1798
- };
1799
- assignmentType: AssignmentType;
1800
- };
1801
- contacts?: {
1802
- registrant?: {
1803
- firstName: string;
1804
- lastName: string;
1805
- email: string;
1806
- address: string;
1807
- city: string;
1808
- countryCode: string;
1809
- phone: string;
1810
- };
1811
- admin?: {
1812
- firstName: string;
1813
- lastName: string;
1814
- email: string;
1815
- address: string;
1816
- city: string;
1817
- countryCode: string;
1818
- phone: string;
1819
- };
1820
- tech?: {
1821
- firstName: string;
1822
- lastName: string;
1823
- email: string;
1824
- address: string;
1825
- city: string;
1826
- countryCode: string;
1827
- phone: string;
1828
- };
1829
- };
1830
- status: Status;
1831
- icannConfirmationStatus: ICANNConfirmationStatus;
1832
- icannConfirmationStatusInfo?: {
1833
- pending?: {
1834
- notConfirmedBy: string[];
1835
- };
1836
- expired?: {
1837
- notConfirmedBy: string[];
1838
- };
1839
- };
1840
- dnsPropagationStatus: DnsPropagationStatus;
1841
- };
1600
+ registeredDomain?: RegisteredDomainNonNullableFields;
1842
1601
  }
1843
1602
  interface ListRegisteredDomainsOptions {
1844
1603
  /** Cursor paging options. */
1845
1604
  paging?: CursorPaging$1;
1846
1605
  }
1847
1606
 
1848
- declare const __metadata$2: {
1849
- PACKAGE_NAME: string;
1850
- };
1851
- declare function createRegisteredDomain(httpClient: HttpClient): (registeredDomain: RegisteredDomain) => Promise<RegisteredDomain & {
1852
- pendingRegistrationInfo?: {
1853
- latestAttempt?: {
1854
- number: number;
1855
- } | undefined;
1856
- } | undefined;
1857
- failedRegistrationInfo?: {
1858
- code: FailureCode;
1859
- message: string;
1860
- } | undefined;
1861
- _id: string;
1862
- domain: string;
1863
- productInstanceId: string;
1864
- siteInfo?: {
1865
- redirectInfo?: {
1866
- primaryDomain: string;
1867
- } | undefined;
1868
- assignmentType: AssignmentType;
1869
- } | undefined;
1870
- contacts?: {
1871
- registrant?: {
1872
- firstName: string;
1873
- lastName: string;
1874
- email: string;
1875
- address: string;
1876
- city: string;
1877
- countryCode: string;
1878
- phone: string;
1879
- } | undefined;
1880
- admin?: {
1881
- firstName: string;
1882
- lastName: string;
1883
- email: string;
1884
- address: string;
1885
- city: string;
1886
- countryCode: string;
1887
- phone: string;
1888
- } | undefined;
1889
- tech?: {
1890
- firstName: string;
1891
- lastName: string;
1892
- email: string;
1893
- address: string;
1894
- city: string;
1895
- countryCode: string;
1896
- phone: string;
1897
- } | undefined;
1898
- } | undefined;
1899
- status: Status;
1900
- icannConfirmationStatus: ICANNConfirmationStatus;
1901
- icannConfirmationStatusInfo?: {
1902
- pending?: {
1903
- notConfirmedBy: string[];
1904
- } | undefined;
1905
- expired?: {
1906
- notConfirmedBy: string[];
1907
- } | undefined;
1908
- } | undefined;
1909
- dnsPropagationStatus: DnsPropagationStatus;
1910
- }>;
1911
- declare function getRegisteredDomain(httpClient: HttpClient): (registeredDomainId: string) => Promise<RegisteredDomain & {
1912
- pendingRegistrationInfo?: {
1913
- latestAttempt?: {
1914
- number: number;
1915
- } | undefined;
1916
- } | undefined;
1917
- failedRegistrationInfo?: {
1918
- code: FailureCode;
1919
- message: string;
1920
- } | undefined;
1921
- _id: string;
1922
- domain: string;
1923
- productInstanceId: string;
1924
- siteInfo?: {
1925
- redirectInfo?: {
1926
- primaryDomain: string;
1927
- } | undefined;
1928
- assignmentType: AssignmentType;
1929
- } | undefined;
1930
- contacts?: {
1931
- registrant?: {
1932
- firstName: string;
1933
- lastName: string;
1934
- email: string;
1935
- address: string;
1936
- city: string;
1937
- countryCode: string;
1938
- phone: string;
1939
- } | undefined;
1940
- admin?: {
1941
- firstName: string;
1942
- lastName: string;
1943
- email: string;
1944
- address: string;
1945
- city: string;
1946
- countryCode: string;
1947
- phone: string;
1948
- } | undefined;
1949
- tech?: {
1950
- firstName: string;
1951
- lastName: string;
1952
- email: string;
1953
- address: string;
1954
- city: string;
1955
- countryCode: string;
1956
- phone: string;
1957
- } | undefined;
1958
- } | undefined;
1959
- status: Status;
1960
- icannConfirmationStatus: ICANNConfirmationStatus;
1961
- icannConfirmationStatusInfo?: {
1962
- pending?: {
1963
- notConfirmedBy: string[];
1964
- } | undefined;
1965
- expired?: {
1966
- notConfirmedBy: string[];
1967
- } | undefined;
1968
- } | undefined;
1969
- dnsPropagationStatus: DnsPropagationStatus;
1970
- }>;
1971
- declare function listRegisteredDomains(httpClient: HttpClient): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
1972
- declare function redeemRegisteredDomain(httpClient: HttpClient): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
1607
+ declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1608
+
1609
+ declare const createRegisteredDomain: ReturnType<typeof createRESTModule$2<typeof publicCreateRegisteredDomain>>;
1610
+ declare const getRegisteredDomain: ReturnType<typeof createRESTModule$2<typeof publicGetRegisteredDomain>>;
1611
+ declare const listRegisteredDomains: ReturnType<typeof createRESTModule$2<typeof publicListRegisteredDomains>>;
1612
+ declare const redeemRegisteredDomain: ReturnType<typeof createRESTModule$2<typeof publicRedeemRegisteredDomain>>;
1973
1613
 
1974
1614
  type index_d$2_ActionEvent = ActionEvent;
1975
1615
  type index_d$2_AssignmentType = AssignmentType;
@@ -2014,6 +1654,7 @@ type index_d$2_RedeemRegisteredDomainResponse = RedeemRegisteredDomainResponse;
2014
1654
  type index_d$2_RedeemRegisteredDomainResponseNonNullableFields = RedeemRegisteredDomainResponseNonNullableFields;
2015
1655
  type index_d$2_RedirectAssignmentInfo = RedirectAssignmentInfo;
2016
1656
  type index_d$2_RegisteredDomain = RegisteredDomain;
1657
+ type index_d$2_RegisteredDomainNonNullableFields = RegisteredDomainNonNullableFields;
2017
1658
  type index_d$2_RegisteredDomainStatusInfoOneOf = RegisteredDomainStatusInfoOneOf;
2018
1659
  type index_d$2_RestoreInfo = RestoreInfo;
2019
1660
  type index_d$2_SiteInfo = SiteInfo;
@@ -2027,7 +1668,7 @@ declare const index_d$2_getRegisteredDomain: typeof getRegisteredDomain;
2027
1668
  declare const index_d$2_listRegisteredDomains: typeof listRegisteredDomains;
2028
1669
  declare const index_d$2_redeemRegisteredDomain: typeof redeemRegisteredDomain;
2029
1670
  declare namespace index_d$2 {
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 };
1671
+ 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_RegisteredDomainNonNullableFields as RegisteredDomainNonNullableFields, 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, index_d$2_createRegisteredDomain as createRegisteredDomain, index_d$2_getRegisteredDomain as getRegisteredDomain, index_d$2_listRegisteredDomains as listRegisteredDomains, index_d$2_redeemRegisteredDomain as redeemRegisteredDomain };
2031
1672
  }
2032
1673
 
2033
1674
  interface DomainAvailability {
@@ -2054,17 +1695,17 @@ interface CheckDomainAvailabilityResponse {
2054
1695
  /** Information about the domain's availability. */
2055
1696
  availability?: DomainAvailability;
2056
1697
  }
1698
+ interface DomainAvailabilityNonNullableFields {
1699
+ domain: string;
1700
+ available: boolean;
1701
+ }
2057
1702
  interface CheckDomainAvailabilityResponseNonNullableFields {
2058
- availability?: {
2059
- domain: string;
2060
- available: boolean;
2061
- };
1703
+ availability?: DomainAvailabilityNonNullableFields;
2062
1704
  }
2063
1705
 
2064
- declare const __metadata$1: {
2065
- PACKAGE_NAME: string;
2066
- };
2067
- declare function checkDomainAvailability(httpClient: HttpClient): (domain: string) => Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
1706
+ declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1707
+
1708
+ declare const checkDomainAvailability: ReturnType<typeof createRESTModule$1<typeof publicCheckDomainAvailability>>;
2068
1709
 
2069
1710
  type index_d$1_CheckDomainAvailabilityRequest = CheckDomainAvailabilityRequest;
2070
1711
  type index_d$1_CheckDomainAvailabilityResponse = CheckDomainAvailabilityResponse;
@@ -2072,7 +1713,7 @@ type index_d$1_CheckDomainAvailabilityResponseNonNullableFields = CheckDomainAva
2072
1713
  type index_d$1_DomainAvailability = DomainAvailability;
2073
1714
  declare const index_d$1_checkDomainAvailability: typeof checkDomainAvailability;
2074
1715
  declare namespace index_d$1 {
2075
- export { type index_d$1_CheckDomainAvailabilityRequest as CheckDomainAvailabilityRequest, type index_d$1_CheckDomainAvailabilityResponse as CheckDomainAvailabilityResponse, type index_d$1_CheckDomainAvailabilityResponseNonNullableFields as CheckDomainAvailabilityResponseNonNullableFields, type index_d$1_DomainAvailability as DomainAvailability, __metadata$1 as __metadata, index_d$1_checkDomainAvailability as checkDomainAvailability };
1716
+ export { type index_d$1_CheckDomainAvailabilityRequest as CheckDomainAvailabilityRequest, type index_d$1_CheckDomainAvailabilityResponse as CheckDomainAvailabilityResponse, type index_d$1_CheckDomainAvailabilityResponseNonNullableFields as CheckDomainAvailabilityResponseNonNullableFields, type index_d$1_DomainAvailability as DomainAvailability, index_d$1_checkDomainAvailability as checkDomainAvailability };
2076
1717
  }
2077
1718
 
2078
1719
  interface DomainSuggestion {
@@ -2159,10 +1800,11 @@ interface Cursors {
2159
1800
  /** Cursor pointing to previous page in the list of results. */
2160
1801
  prev?: string | null;
2161
1802
  }
1803
+ interface DomainSuggestionNonNullableFields {
1804
+ domain: string;
1805
+ }
2162
1806
  interface SuggestDomainsResponseNonNullableFields {
2163
- suggestions: {
2164
- domain: string;
2165
- }[];
1807
+ suggestions: DomainSuggestionNonNullableFields[];
2166
1808
  }
2167
1809
  interface SuggestDomainsOptions {
2168
1810
  /**
@@ -2196,10 +1838,9 @@ interface SuggestDomainsOptions {
2196
1838
  paging?: CursorPaging;
2197
1839
  }
2198
1840
 
2199
- declare const __metadata: {
2200
- PACKAGE_NAME: string;
2201
- };
2202
- declare function suggestDomains(httpClient: HttpClient): (query: string, options?: SuggestDomainsOptions) => Promise<SuggestDomainsResponse & SuggestDomainsResponseNonNullableFields>;
1841
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1842
+
1843
+ declare const suggestDomains: ReturnType<typeof createRESTModule<typeof publicSuggestDomains>>;
2203
1844
 
2204
1845
  type index_d_CursorPaging = CursorPaging;
2205
1846
  type index_d_CursorPagingMetadata = CursorPagingMetadata;
@@ -2209,10 +1850,9 @@ type index_d_SuggestDomainsOptions = SuggestDomainsOptions;
2209
1850
  type index_d_SuggestDomainsRequest = SuggestDomainsRequest;
2210
1851
  type index_d_SuggestDomainsResponse = SuggestDomainsResponse;
2211
1852
  type index_d_SuggestDomainsResponseNonNullableFields = SuggestDomainsResponseNonNullableFields;
2212
- declare const index_d___metadata: typeof __metadata;
2213
1853
  declare const index_d_suggestDomains: typeof suggestDomains;
2214
1854
  declare namespace index_d {
2215
- export { type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_Cursors as Cursors, type index_d_DomainSuggestion as DomainSuggestion, type index_d_SuggestDomainsOptions as SuggestDomainsOptions, type index_d_SuggestDomainsRequest as SuggestDomainsRequest, type index_d_SuggestDomainsResponse as SuggestDomainsResponse, type index_d_SuggestDomainsResponseNonNullableFields as SuggestDomainsResponseNonNullableFields, index_d___metadata as __metadata, index_d_suggestDomains as suggestDomains };
1855
+ export { type index_d_CursorPaging as CursorPaging, type index_d_CursorPagingMetadata as CursorPagingMetadata, type index_d_Cursors as Cursors, type index_d_DomainSuggestion as DomainSuggestion, type index_d_SuggestDomainsOptions as SuggestDomainsOptions, type index_d_SuggestDomainsRequest as SuggestDomainsRequest, type index_d_SuggestDomainsResponse as SuggestDomainsResponse, type index_d_SuggestDomainsResponseNonNullableFields as SuggestDomainsResponseNonNullableFields, index_d_suggestDomains as suggestDomains };
2216
1856
  }
2217
1857
 
2218
1858
  export { index_d$4 as connectedDomainSetupInfo, index_d$5 as connectedDomains, index_d$1 as domainAvailability, index_d$3 as domainDns, index_d as domainSuggestions, index_d$2 as registeredDomains };