@wix/domains 1.0.2 → 1.0.4

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.
@@ -381,24 +381,25 @@ interface ListConnectedDomainsOptions {
381
381
  paging?: CursorPaging$1;
382
382
  }
383
383
 
384
- interface HttpClient {
385
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
384
+ interface HttpClient$5 {
385
+ request<TResponse, TData = any>(req: RequestOptionsFactory$5<TResponse, TData>): Promise<HttpResponse$5<TResponse>>;
386
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
386
387
  }
387
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
388
- type HttpResponse<T = any> = {
388
+ type RequestOptionsFactory$5<TResponse = any, TData = any> = (context: any) => RequestOptions$5<TResponse, TData>;
389
+ type HttpResponse$5<T = any> = {
389
390
  data: T;
390
391
  status: number;
391
392
  statusText: string;
392
393
  headers: any;
393
394
  request?: any;
394
395
  };
395
- type RequestOptions<_TResponse = any, Data = any> = {
396
+ type RequestOptions$5<_TResponse = any, Data = any> = {
396
397
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
397
398
  url: string;
398
399
  data?: Data;
399
400
  params?: URLSearchParams;
400
- } & APIMetadata;
401
- type APIMetadata = {
401
+ } & APIMetadata$5;
402
+ type APIMetadata$5 = {
402
403
  methodFqn?: string;
403
404
  entityFqdn?: string;
404
405
  packageName?: string;
@@ -407,15 +408,22 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
407
408
  __type: 'event-definition';
408
409
  type: Type;
409
410
  isDomainEvent?: boolean;
410
- transformations?: unknown;
411
+ transformations?: (envelope: unknown) => Payload;
411
412
  __payload: Payload;
412
413
  };
413
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
414
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
414
415
 
415
- declare const __metadata$4: {
416
+ declare global {
417
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
418
+ interface SymbolConstructor {
419
+ readonly observable: symbol;
420
+ }
421
+ }
422
+
423
+ declare const __metadata$5: {
416
424
  PACKAGE_NAME: string;
417
425
  };
418
- declare function createConnectedDomain(httpClient: HttpClient): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
426
+ declare function createConnectedDomain(httpClient: HttpClient$5): (connectedDomain: ConnectedDomain) => Promise<ConnectedDomain & {
419
427
  _id: string;
420
428
  domain: string;
421
429
  connectionType: ConnectionType$1;
@@ -428,7 +436,7 @@ declare function createConnectedDomain(httpClient: HttpClient): (connectedDomain
428
436
  suppressNotifications: boolean;
429
437
  dnsPropagationStatus: DnsPropagationStatus$1;
430
438
  }>;
431
- declare function getConnectedDomain(httpClient: HttpClient): (connectedDomainId: string) => Promise<ConnectedDomain & {
439
+ declare function getConnectedDomain(httpClient: HttpClient$5): (connectedDomainId: string) => Promise<ConnectedDomain & {
432
440
  _id: string;
433
441
  domain: string;
434
442
  connectionType: ConnectionType$1;
@@ -441,31 +449,31 @@ declare function getConnectedDomain(httpClient: HttpClient): (connectedDomainId:
441
449
  suppressNotifications: boolean;
442
450
  dnsPropagationStatus: DnsPropagationStatus$1;
443
451
  }>;
444
- declare function listConnectedDomains(httpClient: HttpClient): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
452
+ declare function listConnectedDomains(httpClient: HttpClient$5): (options?: ListConnectedDomainsOptions) => Promise<ListConnectedDomainsResponse & ListConnectedDomainsResponseNonNullableFields>;
445
453
  declare const onConnectedDomainRemoved: EventDefinition<ConnectedDomainRemovedEnvelope, "wix.premium.domains.v1.connected_domain_removed">;
446
454
 
447
- type index_d$4_BaseEventMetadata = BaseEventMetadata;
448
- type index_d$4_ConnectedDomain = ConnectedDomain;
449
- type index_d$4_ConnectedDomainRemovedEnvelope = ConnectedDomainRemovedEnvelope;
450
- type index_d$4_CreateConnectedDomainRequest = CreateConnectedDomainRequest;
451
- type index_d$4_CreateConnectedDomainResponse = CreateConnectedDomainResponse;
452
- type index_d$4_CreateConnectedDomainResponseNonNullableFields = CreateConnectedDomainResponseNonNullableFields;
453
- type index_d$4_DeleteConnectedDomainRequest = DeleteConnectedDomainRequest;
454
- type index_d$4_DeleteConnectedDomainResponse = DeleteConnectedDomainResponse;
455
- type index_d$4_EventMetadata = EventMetadata;
456
- type index_d$4_GetConnectedDomainRequest = GetConnectedDomainRequest;
457
- type index_d$4_GetConnectedDomainResponse = GetConnectedDomainResponse;
458
- type index_d$4_GetConnectedDomainResponseNonNullableFields = GetConnectedDomainResponseNonNullableFields;
459
- type index_d$4_ListConnectedDomainsOptions = ListConnectedDomainsOptions;
460
- type index_d$4_ListConnectedDomainsRequest = ListConnectedDomainsRequest;
461
- type index_d$4_ListConnectedDomainsResponse = ListConnectedDomainsResponse;
462
- type index_d$4_ListConnectedDomainsResponseNonNullableFields = ListConnectedDomainsResponseNonNullableFields;
463
- declare const index_d$4_createConnectedDomain: typeof createConnectedDomain;
464
- declare const index_d$4_getConnectedDomain: typeof getConnectedDomain;
465
- declare const index_d$4_listConnectedDomains: typeof listConnectedDomains;
466
- declare const index_d$4_onConnectedDomainRemoved: typeof onConnectedDomainRemoved;
467
- declare namespace index_d$4 {
468
- export { type ActionEvent$2 as ActionEvent, AssignmentType$1 as AssignmentType, type index_d$4_BaseEventMetadata as BaseEventMetadata, type index_d$4_ConnectedDomain as ConnectedDomain, type index_d$4_ConnectedDomainRemovedEnvelope as ConnectedDomainRemovedEnvelope, ConnectionType$1 as ConnectionType, type index_d$4_CreateConnectedDomainRequest as CreateConnectedDomainRequest, type index_d$4_CreateConnectedDomainResponse as CreateConnectedDomainResponse, type index_d$4_CreateConnectedDomainResponseNonNullableFields as CreateConnectedDomainResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type Cursors$1 as Cursors, type index_d$4_DeleteConnectedDomainRequest as DeleteConnectedDomainRequest, type index_d$4_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$4_EventMetadata as EventMetadata, type index_d$4_GetConnectedDomainRequest as GetConnectedDomainRequest, type index_d$4_GetConnectedDomainResponse as GetConnectedDomainResponse, type index_d$4_GetConnectedDomainResponseNonNullableFields as GetConnectedDomainResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$4_ListConnectedDomainsOptions as ListConnectedDomainsOptions, type index_d$4_ListConnectedDomainsRequest as ListConnectedDomainsRequest, type index_d$4_ListConnectedDomainsResponse as ListConnectedDomainsResponse, type index_d$4_ListConnectedDomainsResponseNonNullableFields as ListConnectedDomainsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type RedirectAssignmentInfo$1 as RedirectAssignmentInfo, type SiteInfo$1 as SiteInfo, type SiteInfoAssignmentInfoOneOf$1 as SiteInfoAssignmentInfoOneOf, WebhookIdentityType$2 as WebhookIdentityType, __metadata$4 as __metadata, index_d$4_createConnectedDomain as createConnectedDomain, index_d$4_getConnectedDomain as getConnectedDomain, index_d$4_listConnectedDomains as listConnectedDomains, index_d$4_onConnectedDomainRemoved as onConnectedDomainRemoved };
455
+ type index_d$5_BaseEventMetadata = BaseEventMetadata;
456
+ type index_d$5_ConnectedDomain = ConnectedDomain;
457
+ type index_d$5_ConnectedDomainRemovedEnvelope = ConnectedDomainRemovedEnvelope;
458
+ type index_d$5_CreateConnectedDomainRequest = CreateConnectedDomainRequest;
459
+ type index_d$5_CreateConnectedDomainResponse = CreateConnectedDomainResponse;
460
+ type index_d$5_CreateConnectedDomainResponseNonNullableFields = CreateConnectedDomainResponseNonNullableFields;
461
+ type index_d$5_DeleteConnectedDomainRequest = DeleteConnectedDomainRequest;
462
+ type index_d$5_DeleteConnectedDomainResponse = DeleteConnectedDomainResponse;
463
+ type index_d$5_EventMetadata = EventMetadata;
464
+ type index_d$5_GetConnectedDomainRequest = GetConnectedDomainRequest;
465
+ type index_d$5_GetConnectedDomainResponse = GetConnectedDomainResponse;
466
+ type index_d$5_GetConnectedDomainResponseNonNullableFields = GetConnectedDomainResponseNonNullableFields;
467
+ type index_d$5_ListConnectedDomainsOptions = ListConnectedDomainsOptions;
468
+ type index_d$5_ListConnectedDomainsRequest = ListConnectedDomainsRequest;
469
+ type index_d$5_ListConnectedDomainsResponse = ListConnectedDomainsResponse;
470
+ type index_d$5_ListConnectedDomainsResponseNonNullableFields = ListConnectedDomainsResponseNonNullableFields;
471
+ declare const index_d$5_createConnectedDomain: typeof createConnectedDomain;
472
+ declare const index_d$5_getConnectedDomain: typeof getConnectedDomain;
473
+ declare const index_d$5_listConnectedDomains: typeof listConnectedDomains;
474
+ declare const index_d$5_onConnectedDomainRemoved: typeof onConnectedDomainRemoved;
475
+ declare namespace index_d$5 {
476
+ export { type ActionEvent$2 as ActionEvent, AssignmentType$1 as AssignmentType, type index_d$5_BaseEventMetadata as BaseEventMetadata, type index_d$5_ConnectedDomain as ConnectedDomain, type index_d$5_ConnectedDomainRemovedEnvelope as ConnectedDomainRemovedEnvelope, ConnectionType$1 as ConnectionType, type index_d$5_CreateConnectedDomainRequest as CreateConnectedDomainRequest, type index_d$5_CreateConnectedDomainResponse as CreateConnectedDomainResponse, type index_d$5_CreateConnectedDomainResponseNonNullableFields as CreateConnectedDomainResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type Cursors$1 as Cursors, type index_d$5_DeleteConnectedDomainRequest as DeleteConnectedDomainRequest, type index_d$5_DeleteConnectedDomainResponse as DeleteConnectedDomainResponse, DnsPropagationStatus$1 as DnsPropagationStatus, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type DomainRemovedEvent$1 as DomainRemovedEvent, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type index_d$5_EventMetadata as EventMetadata, type index_d$5_GetConnectedDomainRequest as GetConnectedDomainRequest, type index_d$5_GetConnectedDomainResponse as GetConnectedDomainResponse, type index_d$5_GetConnectedDomainResponseNonNullableFields as GetConnectedDomainResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type index_d$5_ListConnectedDomainsOptions as ListConnectedDomainsOptions, type index_d$5_ListConnectedDomainsRequest as ListConnectedDomainsRequest, type index_d$5_ListConnectedDomainsResponse as ListConnectedDomainsResponse, type index_d$5_ListConnectedDomainsResponseNonNullableFields as ListConnectedDomainsResponseNonNullableFields, type MessageEnvelope$2 as MessageEnvelope, type RedirectAssignmentInfo$1 as RedirectAssignmentInfo, type 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_getConnectedDomain as getConnectedDomain, index_d$5_listConnectedDomains as listConnectedDomains, index_d$5_onConnectedDomainRemoved as onConnectedDomainRemoved };
469
477
  }
470
478
 
471
479
  /**
@@ -684,32 +692,63 @@ interface GetConnectedDomainSetupInfoResponseNonNullableFields {
684
692
  };
685
693
  }
686
694
 
687
- declare const __metadata$3: {
695
+ interface HttpClient$4 {
696
+ request<TResponse, TData = any>(req: RequestOptionsFactory$4<TResponse, TData>): Promise<HttpResponse$4<TResponse>>;
697
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
698
+ }
699
+ type RequestOptionsFactory$4<TResponse = any, TData = any> = (context: any) => RequestOptions$4<TResponse, TData>;
700
+ type HttpResponse$4<T = any> = {
701
+ data: T;
702
+ status: number;
703
+ statusText: string;
704
+ headers: any;
705
+ request?: any;
706
+ };
707
+ type RequestOptions$4<_TResponse = any, Data = any> = {
708
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
709
+ url: string;
710
+ data?: Data;
711
+ params?: URLSearchParams;
712
+ } & APIMetadata$4;
713
+ type APIMetadata$4 = {
714
+ methodFqn?: string;
715
+ entityFqdn?: string;
716
+ packageName?: string;
717
+ };
718
+
719
+ declare global {
720
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
721
+ interface SymbolConstructor {
722
+ readonly observable: symbol;
723
+ }
724
+ }
725
+
726
+ declare const __metadata$4: {
688
727
  PACKAGE_NAME: string;
689
728
  };
690
- declare function getConnectedDomainSetupInfo(httpClient: HttpClient): (connectedDomainId: string) => Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
729
+ declare function getConnectedDomainSetupInfo(httpClient: HttpClient$4): (connectedDomainId: string) => Promise<GetConnectedDomainSetupInfoResponse & GetConnectedDomainSetupInfoResponseNonNullableFields>;
691
730
 
692
- type index_d$3_ARecord = ARecord;
693
- type index_d$3_CnameRecord = CnameRecord;
694
- type index_d$3_ConnectedDomainSetupInfo = ConnectedDomainSetupInfo;
695
- type index_d$3_ConnectedDomainSetupInfoDnsRecordsOneOf = ConnectedDomainSetupInfoDnsRecordsOneOf;
696
- type index_d$3_ConnectionType = ConnectionType;
697
- declare const index_d$3_ConnectionType: typeof ConnectionType;
698
- type index_d$3_GetConnectedDomainSetupInfoRequest = GetConnectedDomainSetupInfoRequest;
699
- type index_d$3_GetConnectedDomainSetupInfoResponse = GetConnectedDomainSetupInfoResponse;
700
- type index_d$3_GetConnectedDomainSetupInfoResponseNonNullableFields = GetConnectedDomainSetupInfoResponseNonNullableFields;
701
- type index_d$3_GetDomainSetupInfoRequest = GetDomainSetupInfoRequest;
702
- type index_d$3_GetDomainSetupInfoResponse = GetDomainSetupInfoResponse;
703
- type index_d$3_GetSetupInfoRequest = GetSetupInfoRequest;
704
- type index_d$3_GetSetupInfoResponse = GetSetupInfoResponse;
705
- type index_d$3_NameserverRecord = NameserverRecord;
706
- type index_d$3_NsRecord = NsRecord;
707
- type index_d$3_PointingRecords = PointingRecords;
708
- type index_d$3_Registrar = Registrar;
709
- type index_d$3_SubdomainRecords = SubdomainRecords;
710
- declare const index_d$3_getConnectedDomainSetupInfo: typeof getConnectedDomainSetupInfo;
711
- declare namespace index_d$3 {
712
- export { type index_d$3_ARecord as ARecord, type index_d$3_CnameRecord as CnameRecord, type index_d$3_ConnectedDomainSetupInfo as ConnectedDomainSetupInfo, type index_d$3_ConnectedDomainSetupInfoDnsRecordsOneOf as ConnectedDomainSetupInfoDnsRecordsOneOf, index_d$3_ConnectionType as ConnectionType, type index_d$3_GetConnectedDomainSetupInfoRequest as GetConnectedDomainSetupInfoRequest, type index_d$3_GetConnectedDomainSetupInfoResponse as GetConnectedDomainSetupInfoResponse, type index_d$3_GetConnectedDomainSetupInfoResponseNonNullableFields as GetConnectedDomainSetupInfoResponseNonNullableFields, type index_d$3_GetDomainSetupInfoRequest as GetDomainSetupInfoRequest, type index_d$3_GetDomainSetupInfoResponse as GetDomainSetupInfoResponse, type index_d$3_GetSetupInfoRequest as GetSetupInfoRequest, type index_d$3_GetSetupInfoResponse as GetSetupInfoResponse, type index_d$3_NameserverRecord as NameserverRecord, type index_d$3_NsRecord as NsRecord, type index_d$3_PointingRecords as PointingRecords, type index_d$3_Registrar as Registrar, type index_d$3_SubdomainRecords as SubdomainRecords, __metadata$3 as __metadata, index_d$3_getConnectedDomainSetupInfo as getConnectedDomainSetupInfo };
731
+ type index_d$4_ARecord = ARecord;
732
+ type index_d$4_CnameRecord = CnameRecord;
733
+ type index_d$4_ConnectedDomainSetupInfo = ConnectedDomainSetupInfo;
734
+ type index_d$4_ConnectedDomainSetupInfoDnsRecordsOneOf = ConnectedDomainSetupInfoDnsRecordsOneOf;
735
+ type index_d$4_ConnectionType = ConnectionType;
736
+ declare const index_d$4_ConnectionType: typeof ConnectionType;
737
+ type index_d$4_GetConnectedDomainSetupInfoRequest = GetConnectedDomainSetupInfoRequest;
738
+ type index_d$4_GetConnectedDomainSetupInfoResponse = GetConnectedDomainSetupInfoResponse;
739
+ type index_d$4_GetConnectedDomainSetupInfoResponseNonNullableFields = GetConnectedDomainSetupInfoResponseNonNullableFields;
740
+ type index_d$4_GetDomainSetupInfoRequest = GetDomainSetupInfoRequest;
741
+ type index_d$4_GetDomainSetupInfoResponse = GetDomainSetupInfoResponse;
742
+ type index_d$4_GetSetupInfoRequest = GetSetupInfoRequest;
743
+ type index_d$4_GetSetupInfoResponse = GetSetupInfoResponse;
744
+ type index_d$4_NameserverRecord = NameserverRecord;
745
+ type index_d$4_NsRecord = NsRecord;
746
+ type index_d$4_PointingRecords = PointingRecords;
747
+ type index_d$4_Registrar = Registrar;
748
+ type index_d$4_SubdomainRecords = SubdomainRecords;
749
+ declare const index_d$4_getConnectedDomainSetupInfo: typeof getConnectedDomainSetupInfo;
750
+ declare namespace index_d$4 {
751
+ 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_GetDomainSetupInfoRequest as GetDomainSetupInfoRequest, type index_d$4_GetDomainSetupInfoResponse as GetDomainSetupInfoResponse, 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 };
713
752
  }
714
753
 
715
754
  /** DNS zones hold information about the records that map a domain's URL to an IP address. */
@@ -1025,10 +1064,41 @@ interface UpdateDnsZoneOptions {
1025
1064
  dnssecEnabled?: boolean | null;
1026
1065
  }
1027
1066
 
1028
- declare const __metadata$2: {
1067
+ interface HttpClient$3 {
1068
+ request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
1069
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1070
+ }
1071
+ type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
1072
+ type HttpResponse$3<T = any> = {
1073
+ data: T;
1074
+ status: number;
1075
+ statusText: string;
1076
+ headers: any;
1077
+ request?: any;
1078
+ };
1079
+ type RequestOptions$3<_TResponse = any, Data = any> = {
1080
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1081
+ url: string;
1082
+ data?: Data;
1083
+ params?: URLSearchParams;
1084
+ } & APIMetadata$3;
1085
+ type APIMetadata$3 = {
1086
+ methodFqn?: string;
1087
+ entityFqdn?: string;
1088
+ packageName?: string;
1089
+ };
1090
+
1091
+ declare global {
1092
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1093
+ interface SymbolConstructor {
1094
+ readonly observable: symbol;
1095
+ }
1096
+ }
1097
+
1098
+ declare const __metadata$3: {
1029
1099
  PACKAGE_NAME: string;
1030
1100
  };
1031
- declare function createDnsZone(httpClient: HttpClient): (dnsZone: DnsZone) => Promise<DnsZone & {
1101
+ declare function createDnsZone(httpClient: HttpClient$3): (dnsZone: DnsZone) => Promise<DnsZone & {
1032
1102
  domainName: string;
1033
1103
  records: {
1034
1104
  type: RecordType;
@@ -1039,7 +1109,7 @@ declare function createDnsZone(httpClient: HttpClient): (dnsZone: DnsZone) => Pr
1039
1109
  _id: string;
1040
1110
  dnssecEnabled: boolean;
1041
1111
  }>;
1042
- declare function getDnsZone(httpClient: HttpClient): (domainName: string) => Promise<DnsZone & {
1112
+ declare function getDnsZone(httpClient: HttpClient$3): (domainName: string) => Promise<DnsZone & {
1043
1113
  domainName: string;
1044
1114
  records: {
1045
1115
  type: RecordType;
@@ -1050,37 +1120,37 @@ declare function getDnsZone(httpClient: HttpClient): (domainName: string) => Pro
1050
1120
  _id: string;
1051
1121
  dnssecEnabled: boolean;
1052
1122
  }>;
1053
- declare function updateDnsZone(httpClient: HttpClient): (domainName: string, options?: UpdateDnsZoneOptions) => Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
1054
- declare function deleteDnsZone(httpClient: HttpClient): (domainName: string) => Promise<void>;
1055
- declare function previewDnsZone(httpClient: HttpClient): (domainName: string) => Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
1123
+ declare function updateDnsZone(httpClient: HttpClient$3): (domainName: string, options?: UpdateDnsZoneOptions) => Promise<UpdateDnsZoneResponse & UpdateDnsZoneResponseNonNullableFields>;
1124
+ declare function deleteDnsZone(httpClient: HttpClient$3): (domainName: string) => Promise<void>;
1125
+ declare function previewDnsZone(httpClient: HttpClient$3): (domainName: string) => Promise<PreviewDnsZoneResponse & PreviewDnsZoneResponseNonNullableFields>;
1056
1126
 
1057
- type index_d$2_CreateDnsZoneRequest = CreateDnsZoneRequest;
1058
- type index_d$2_CreateDnsZoneResponse = CreateDnsZoneResponse;
1059
- type index_d$2_CreateDnsZoneResponseNonNullableFields = CreateDnsZoneResponseNonNullableFields;
1060
- type index_d$2_DeleteDnsZoneRequest = DeleteDnsZoneRequest;
1061
- type index_d$2_DeleteDnsZoneResponse = DeleteDnsZoneResponse;
1062
- type index_d$2_DnsRecord = DnsRecord;
1063
- type index_d$2_DnsZone = DnsZone;
1064
- type index_d$2_DomainRemovedEvent = DomainRemovedEvent;
1065
- type index_d$2_GetDnsZoneRequest = GetDnsZoneRequest;
1066
- type index_d$2_GetDnsZoneResponse = GetDnsZoneResponse;
1067
- type index_d$2_GetDnsZoneResponseNonNullableFields = GetDnsZoneResponseNonNullableFields;
1068
- type index_d$2_PreviewDnsZoneRequest = PreviewDnsZoneRequest;
1069
- type index_d$2_PreviewDnsZoneResponse = PreviewDnsZoneResponse;
1070
- type index_d$2_PreviewDnsZoneResponseNonNullableFields = PreviewDnsZoneResponseNonNullableFields;
1071
- type index_d$2_RecordType = RecordType;
1072
- declare const index_d$2_RecordType: typeof RecordType;
1073
- type index_d$2_UpdateDnsZoneOptions = UpdateDnsZoneOptions;
1074
- type index_d$2_UpdateDnsZoneRequest = UpdateDnsZoneRequest;
1075
- type index_d$2_UpdateDnsZoneResponse = UpdateDnsZoneResponse;
1076
- type index_d$2_UpdateDnsZoneResponseNonNullableFields = UpdateDnsZoneResponseNonNullableFields;
1077
- declare const index_d$2_createDnsZone: typeof createDnsZone;
1078
- declare const index_d$2_deleteDnsZone: typeof deleteDnsZone;
1079
- declare const index_d$2_getDnsZone: typeof getDnsZone;
1080
- declare const index_d$2_previewDnsZone: typeof previewDnsZone;
1081
- declare const index_d$2_updateDnsZone: typeof updateDnsZone;
1082
- declare namespace index_d$2 {
1083
- export { type ActionEvent$1 as ActionEvent, type index_d$2_CreateDnsZoneRequest as CreateDnsZoneRequest, type index_d$2_CreateDnsZoneResponse as CreateDnsZoneResponse, type index_d$2_CreateDnsZoneResponseNonNullableFields as CreateDnsZoneResponseNonNullableFields, type index_d$2_DeleteDnsZoneRequest as DeleteDnsZoneRequest, type index_d$2_DeleteDnsZoneResponse as DeleteDnsZoneResponse, type index_d$2_DnsRecord as DnsRecord, type index_d$2_DnsZone as DnsZone, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$2_DomainRemovedEvent as DomainRemovedEvent, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type index_d$2_GetDnsZoneRequest as GetDnsZoneRequest, type index_d$2_GetDnsZoneResponse as GetDnsZoneResponse, type index_d$2_GetDnsZoneResponseNonNullableFields as GetDnsZoneResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type MessageEnvelope$1 as MessageEnvelope, type index_d$2_PreviewDnsZoneRequest as PreviewDnsZoneRequest, type index_d$2_PreviewDnsZoneResponse as PreviewDnsZoneResponse, type index_d$2_PreviewDnsZoneResponseNonNullableFields as PreviewDnsZoneResponseNonNullableFields, index_d$2_RecordType as RecordType, type index_d$2_UpdateDnsZoneOptions as UpdateDnsZoneOptions, type index_d$2_UpdateDnsZoneRequest as UpdateDnsZoneRequest, type index_d$2_UpdateDnsZoneResponse as UpdateDnsZoneResponse, type index_d$2_UpdateDnsZoneResponseNonNullableFields as UpdateDnsZoneResponseNonNullableFields, WebhookIdentityType$1 as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_createDnsZone as createDnsZone, index_d$2_deleteDnsZone as deleteDnsZone, index_d$2_getDnsZone as getDnsZone, index_d$2_previewDnsZone as previewDnsZone, index_d$2_updateDnsZone as updateDnsZone };
1127
+ type index_d$3_CreateDnsZoneRequest = CreateDnsZoneRequest;
1128
+ type index_d$3_CreateDnsZoneResponse = CreateDnsZoneResponse;
1129
+ type index_d$3_CreateDnsZoneResponseNonNullableFields = CreateDnsZoneResponseNonNullableFields;
1130
+ type index_d$3_DeleteDnsZoneRequest = DeleteDnsZoneRequest;
1131
+ type index_d$3_DeleteDnsZoneResponse = DeleteDnsZoneResponse;
1132
+ type index_d$3_DnsRecord = DnsRecord;
1133
+ type index_d$3_DnsZone = DnsZone;
1134
+ type index_d$3_DomainRemovedEvent = DomainRemovedEvent;
1135
+ type index_d$3_GetDnsZoneRequest = GetDnsZoneRequest;
1136
+ type index_d$3_GetDnsZoneResponse = GetDnsZoneResponse;
1137
+ type index_d$3_GetDnsZoneResponseNonNullableFields = GetDnsZoneResponseNonNullableFields;
1138
+ type index_d$3_PreviewDnsZoneRequest = PreviewDnsZoneRequest;
1139
+ type index_d$3_PreviewDnsZoneResponse = PreviewDnsZoneResponse;
1140
+ type index_d$3_PreviewDnsZoneResponseNonNullableFields = PreviewDnsZoneResponseNonNullableFields;
1141
+ type index_d$3_RecordType = RecordType;
1142
+ declare const index_d$3_RecordType: typeof RecordType;
1143
+ type index_d$3_UpdateDnsZoneOptions = UpdateDnsZoneOptions;
1144
+ type index_d$3_UpdateDnsZoneRequest = UpdateDnsZoneRequest;
1145
+ type index_d$3_UpdateDnsZoneResponse = UpdateDnsZoneResponse;
1146
+ type index_d$3_UpdateDnsZoneResponseNonNullableFields = UpdateDnsZoneResponseNonNullableFields;
1147
+ declare const index_d$3_createDnsZone: typeof createDnsZone;
1148
+ declare const index_d$3_deleteDnsZone: typeof deleteDnsZone;
1149
+ declare const index_d$3_getDnsZone: typeof getDnsZone;
1150
+ declare const index_d$3_previewDnsZone: typeof previewDnsZone;
1151
+ declare const index_d$3_updateDnsZone: typeof updateDnsZone;
1152
+ declare namespace index_d$3 {
1153
+ 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 };
1084
1154
  }
1085
1155
 
1086
1156
  /**
@@ -1912,10 +1982,41 @@ interface ListRegisteredDomainsOptions {
1912
1982
  paging?: CursorPaging;
1913
1983
  }
1914
1984
 
1915
- declare const __metadata$1: {
1985
+ interface HttpClient$2 {
1986
+ request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
1987
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1988
+ }
1989
+ type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
1990
+ type HttpResponse$2<T = any> = {
1991
+ data: T;
1992
+ status: number;
1993
+ statusText: string;
1994
+ headers: any;
1995
+ request?: any;
1996
+ };
1997
+ type RequestOptions$2<_TResponse = any, Data = any> = {
1998
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1999
+ url: string;
2000
+ data?: Data;
2001
+ params?: URLSearchParams;
2002
+ } & APIMetadata$2;
2003
+ type APIMetadata$2 = {
2004
+ methodFqn?: string;
2005
+ entityFqdn?: string;
2006
+ packageName?: string;
2007
+ };
2008
+
2009
+ declare global {
2010
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2011
+ interface SymbolConstructor {
2012
+ readonly observable: symbol;
2013
+ }
2014
+ }
2015
+
2016
+ declare const __metadata$2: {
1916
2017
  PACKAGE_NAME: string;
1917
2018
  };
1918
- declare function createRegisteredDomain(httpClient: HttpClient): (registeredDomain: RegisteredDomain) => Promise<RegisteredDomain & {
2019
+ declare function createRegisteredDomain(httpClient: HttpClient$2): (registeredDomain: RegisteredDomain) => Promise<RegisteredDomain & {
1919
2020
  pendingRegistrationInfo?: {
1920
2021
  latestAttempt?: {
1921
2022
  number: number;
@@ -1975,7 +2076,7 @@ declare function createRegisteredDomain(httpClient: HttpClient): (registeredDoma
1975
2076
  } | undefined;
1976
2077
  dnsPropagationStatus: DnsPropagationStatus;
1977
2078
  }>;
1978
- declare function getRegisteredDomain(httpClient: HttpClient): (registeredDomainId: string) => Promise<RegisteredDomain & {
2079
+ declare function getRegisteredDomain(httpClient: HttpClient$2): (registeredDomainId: string) => Promise<RegisteredDomain & {
1979
2080
  pendingRegistrationInfo?: {
1980
2081
  latestAttempt?: {
1981
2082
  number: number;
@@ -2035,68 +2136,144 @@ declare function getRegisteredDomain(httpClient: HttpClient): (registeredDomainI
2035
2136
  } | undefined;
2036
2137
  dnsPropagationStatus: DnsPropagationStatus;
2037
2138
  }>;
2038
- declare function listRegisteredDomains(httpClient: HttpClient): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
2039
- declare function redeemRegisteredDomain(httpClient: HttpClient): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
2139
+ declare function listRegisteredDomains(httpClient: HttpClient$2): (options?: ListRegisteredDomainsOptions) => Promise<ListRegisteredDomainsResponse & ListRegisteredDomainsResponseNonNullableFields>;
2140
+ declare function redeemRegisteredDomain(httpClient: HttpClient$2): (registeredDomainId: string) => Promise<RedeemRegisteredDomainResponse & RedeemRegisteredDomainResponseNonNullableFields>;
2141
+
2142
+ type index_d$2_ActionEvent = ActionEvent;
2143
+ type index_d$2_AssignmentType = AssignmentType;
2144
+ declare const index_d$2_AssignmentType: typeof AssignmentType;
2145
+ type index_d$2_ContactData = ContactData;
2146
+ type index_d$2_Contacts = Contacts;
2147
+ type index_d$2_CreateRegisteredDomainRequest = CreateRegisteredDomainRequest;
2148
+ type index_d$2_CreateRegisteredDomainResponse = CreateRegisteredDomainResponse;
2149
+ type index_d$2_CreateRegisteredDomainResponseNonNullableFields = CreateRegisteredDomainResponseNonNullableFields;
2150
+ type index_d$2_CursorPaging = CursorPaging;
2151
+ type index_d$2_CursorPagingMetadata = CursorPagingMetadata;
2152
+ type index_d$2_Cursors = Cursors;
2153
+ type index_d$2_DeleteRegisteredDomainByIdRequest = DeleteRegisteredDomainByIdRequest;
2154
+ type index_d$2_DeleteRegisteredDomainByIdResponse = DeleteRegisteredDomainByIdResponse;
2155
+ type index_d$2_DnsPropagationStatus = DnsPropagationStatus;
2156
+ declare const index_d$2_DnsPropagationStatus: typeof DnsPropagationStatus;
2157
+ type index_d$2_DomainEvent = DomainEvent;
2158
+ type index_d$2_DomainEventBodyOneOf = DomainEventBodyOneOf;
2159
+ type index_d$2_EntityCreatedEvent = EntityCreatedEvent;
2160
+ type index_d$2_EntityDeletedEvent = EntityDeletedEvent;
2161
+ type index_d$2_EntityUpdatedEvent = EntityUpdatedEvent;
2162
+ type index_d$2_Expired = Expired;
2163
+ type index_d$2_FailedRegistrationInfo = FailedRegistrationInfo;
2164
+ type index_d$2_FailureCode = FailureCode;
2165
+ declare const index_d$2_FailureCode: typeof FailureCode;
2166
+ type index_d$2_GetRegisteredDomainRequest = GetRegisteredDomainRequest;
2167
+ type index_d$2_GetRegisteredDomainResponse = GetRegisteredDomainResponse;
2168
+ type index_d$2_GetRegisteredDomainResponseNonNullableFields = GetRegisteredDomainResponseNonNullableFields;
2169
+ type index_d$2_ICANNConfirmationStatus = ICANNConfirmationStatus;
2170
+ declare const index_d$2_ICANNConfirmationStatus: typeof ICANNConfirmationStatus;
2171
+ type index_d$2_ICANNConfirmationStatusInfo = ICANNConfirmationStatusInfo;
2172
+ type index_d$2_ICANNConfirmationStatusInfoStatusOneOf = ICANNConfirmationStatusInfoStatusOneOf;
2173
+ type index_d$2_IdentificationData = IdentificationData;
2174
+ type index_d$2_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
2175
+ type index_d$2_LatestAttempt = LatestAttempt;
2176
+ type index_d$2_ListRegisteredDomainsOptions = ListRegisteredDomainsOptions;
2177
+ type index_d$2_ListRegisteredDomainsRequest = ListRegisteredDomainsRequest;
2178
+ type index_d$2_ListRegisteredDomainsResponse = ListRegisteredDomainsResponse;
2179
+ type index_d$2_ListRegisteredDomainsResponseNonNullableFields = ListRegisteredDomainsResponseNonNullableFields;
2180
+ type index_d$2_MessageEnvelope = MessageEnvelope;
2181
+ type index_d$2_Pending = Pending;
2182
+ type index_d$2_PendingRegistrationInfo = PendingRegistrationInfo;
2183
+ type index_d$2_RedeemRegisteredDomainRequest = RedeemRegisteredDomainRequest;
2184
+ type index_d$2_RedeemRegisteredDomainResponse = RedeemRegisteredDomainResponse;
2185
+ type index_d$2_RedeemRegisteredDomainResponseNonNullableFields = RedeemRegisteredDomainResponseNonNullableFields;
2186
+ type index_d$2_RedirectAssignmentInfo = RedirectAssignmentInfo;
2187
+ type index_d$2_RegisteredDomain = RegisteredDomain;
2188
+ type index_d$2_RegisteredDomainStatusInfoOneOf = RegisteredDomainStatusInfoOneOf;
2189
+ type index_d$2_SiteInfo = SiteInfo;
2190
+ type index_d$2_SiteInfoAssignmentInfoOneOf = SiteInfoAssignmentInfoOneOf;
2191
+ type index_d$2_Status = Status;
2192
+ declare const index_d$2_Status: typeof Status;
2193
+ type index_d$2_WebhookIdentityType = WebhookIdentityType;
2194
+ declare const index_d$2_WebhookIdentityType: typeof WebhookIdentityType;
2195
+ declare const index_d$2_createRegisteredDomain: typeof createRegisteredDomain;
2196
+ declare const index_d$2_getRegisteredDomain: typeof getRegisteredDomain;
2197
+ declare const index_d$2_listRegisteredDomains: typeof listRegisteredDomains;
2198
+ declare const index_d$2_redeemRegisteredDomain: typeof redeemRegisteredDomain;
2199
+ declare namespace index_d$2 {
2200
+ 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 index_d$2_CursorPaging as CursorPaging, type index_d$2_CursorPagingMetadata as CursorPagingMetadata, type index_d$2_Cursors as Cursors, type index_d$2_DeleteRegisteredDomainByIdRequest as DeleteRegisteredDomainByIdRequest, type index_d$2_DeleteRegisteredDomainByIdResponse as DeleteRegisteredDomainByIdResponse, index_d$2_DnsPropagationStatus as DnsPropagationStatus, type index_d$2_DomainEvent as DomainEvent, type index_d$2_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$2_EntityCreatedEvent as EntityCreatedEvent, type index_d$2_EntityDeletedEvent as EntityDeletedEvent, type index_d$2_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$2_Expired as Expired, type index_d$2_FailedRegistrationInfo as FailedRegistrationInfo, index_d$2_FailureCode as FailureCode, type index_d$2_GetRegisteredDomainRequest as GetRegisteredDomainRequest, type index_d$2_GetRegisteredDomainResponse as GetRegisteredDomainResponse, type index_d$2_GetRegisteredDomainResponseNonNullableFields as GetRegisteredDomainResponseNonNullableFields, index_d$2_ICANNConfirmationStatus as ICANNConfirmationStatus, type index_d$2_ICANNConfirmationStatusInfo as ICANNConfirmationStatusInfo, type index_d$2_ICANNConfirmationStatusInfoStatusOneOf as ICANNConfirmationStatusInfoStatusOneOf, type index_d$2_IdentificationData as IdentificationData, type index_d$2_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$2_LatestAttempt as LatestAttempt, type index_d$2_ListRegisteredDomainsOptions as ListRegisteredDomainsOptions, type index_d$2_ListRegisteredDomainsRequest as ListRegisteredDomainsRequest, type index_d$2_ListRegisteredDomainsResponse as ListRegisteredDomainsResponse, type index_d$2_ListRegisteredDomainsResponseNonNullableFields as ListRegisteredDomainsResponseNonNullableFields, type index_d$2_MessageEnvelope as MessageEnvelope, type index_d$2_Pending as Pending, type index_d$2_PendingRegistrationInfo as PendingRegistrationInfo, type index_d$2_RedeemRegisteredDomainRequest as RedeemRegisteredDomainRequest, type index_d$2_RedeemRegisteredDomainResponse as RedeemRegisteredDomainResponse, type index_d$2_RedeemRegisteredDomainResponseNonNullableFields as RedeemRegisteredDomainResponseNonNullableFields, type index_d$2_RedirectAssignmentInfo as RedirectAssignmentInfo, type index_d$2_RegisteredDomain as RegisteredDomain, type index_d$2_RegisteredDomainStatusInfoOneOf as RegisteredDomainStatusInfoOneOf, type index_d$2_SiteInfo as SiteInfo, type index_d$2_SiteInfoAssignmentInfoOneOf as SiteInfoAssignmentInfoOneOf, index_d$2_Status as Status, index_d$2_WebhookIdentityType as WebhookIdentityType, __metadata$2 as __metadata, index_d$2_createRegisteredDomain as createRegisteredDomain, index_d$2_getRegisteredDomain as getRegisteredDomain, index_d$2_listRegisteredDomains as listRegisteredDomains, index_d$2_redeemRegisteredDomain as redeemRegisteredDomain };
2201
+ }
2202
+
2203
+ interface DomainAvailability {
2204
+ /** Domain name including TLD. For example, `my-new-domain.com`. */
2205
+ domain?: string;
2206
+ /**
2207
+ * Whether the domain is available for purchase. You can purchase the
2208
+ * domain in case the boolean is `true`. The domain is already taken
2209
+ * when `false` is returned.
2210
+ */
2211
+ available?: boolean;
2212
+ }
2213
+ interface CheckDomainAvailabilityRequest {
2214
+ /**
2215
+ * Domain name. Must include the TLD. For example, `my-new-domain.com`. Only
2216
+ * alphanumeric characters, hyphens, and dots are supported.
2217
+ *
2218
+ * Min: 3 characters
2219
+ * Max: 63 characters
2220
+ */
2221
+ domain: string;
2222
+ }
2223
+ interface CheckDomainAvailabilityResponse {
2224
+ /** Information about the domain's availability. */
2225
+ availability?: DomainAvailability;
2226
+ }
2227
+ interface CheckDomainAvailabilityResponseNonNullableFields {
2228
+ availability?: {
2229
+ domain: string;
2230
+ available: boolean;
2231
+ };
2232
+ }
2233
+
2234
+ interface HttpClient$1 {
2235
+ request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
2236
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2237
+ }
2238
+ type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
2239
+ type HttpResponse$1<T = any> = {
2240
+ data: T;
2241
+ status: number;
2242
+ statusText: string;
2243
+ headers: any;
2244
+ request?: any;
2245
+ };
2246
+ type RequestOptions$1<_TResponse = any, Data = any> = {
2247
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2248
+ url: string;
2249
+ data?: Data;
2250
+ params?: URLSearchParams;
2251
+ } & APIMetadata$1;
2252
+ type APIMetadata$1 = {
2253
+ methodFqn?: string;
2254
+ entityFqdn?: string;
2255
+ packageName?: string;
2256
+ };
2257
+
2258
+ declare global {
2259
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2260
+ interface SymbolConstructor {
2261
+ readonly observable: symbol;
2262
+ }
2263
+ }
2264
+
2265
+ declare const __metadata$1: {
2266
+ PACKAGE_NAME: string;
2267
+ };
2268
+ declare function checkDomainAvailability(httpClient: HttpClient$1): (domain: string) => Promise<CheckDomainAvailabilityResponse & CheckDomainAvailabilityResponseNonNullableFields>;
2040
2269
 
2041
- type index_d$1_ActionEvent = ActionEvent;
2042
- type index_d$1_AssignmentType = AssignmentType;
2043
- declare const index_d$1_AssignmentType: typeof AssignmentType;
2044
- type index_d$1_ContactData = ContactData;
2045
- type index_d$1_Contacts = Contacts;
2046
- type index_d$1_CreateRegisteredDomainRequest = CreateRegisteredDomainRequest;
2047
- type index_d$1_CreateRegisteredDomainResponse = CreateRegisteredDomainResponse;
2048
- type index_d$1_CreateRegisteredDomainResponseNonNullableFields = CreateRegisteredDomainResponseNonNullableFields;
2049
- type index_d$1_CursorPaging = CursorPaging;
2050
- type index_d$1_CursorPagingMetadata = CursorPagingMetadata;
2051
- type index_d$1_Cursors = Cursors;
2052
- type index_d$1_DeleteRegisteredDomainByIdRequest = DeleteRegisteredDomainByIdRequest;
2053
- type index_d$1_DeleteRegisteredDomainByIdResponse = DeleteRegisteredDomainByIdResponse;
2054
- type index_d$1_DnsPropagationStatus = DnsPropagationStatus;
2055
- declare const index_d$1_DnsPropagationStatus: typeof DnsPropagationStatus;
2056
- type index_d$1_DomainEvent = DomainEvent;
2057
- type index_d$1_DomainEventBodyOneOf = DomainEventBodyOneOf;
2058
- type index_d$1_EntityCreatedEvent = EntityCreatedEvent;
2059
- type index_d$1_EntityDeletedEvent = EntityDeletedEvent;
2060
- type index_d$1_EntityUpdatedEvent = EntityUpdatedEvent;
2061
- type index_d$1_Expired = Expired;
2062
- type index_d$1_FailedRegistrationInfo = FailedRegistrationInfo;
2063
- type index_d$1_FailureCode = FailureCode;
2064
- declare const index_d$1_FailureCode: typeof FailureCode;
2065
- type index_d$1_GetRegisteredDomainRequest = GetRegisteredDomainRequest;
2066
- type index_d$1_GetRegisteredDomainResponse = GetRegisteredDomainResponse;
2067
- type index_d$1_GetRegisteredDomainResponseNonNullableFields = GetRegisteredDomainResponseNonNullableFields;
2068
- type index_d$1_ICANNConfirmationStatus = ICANNConfirmationStatus;
2069
- declare const index_d$1_ICANNConfirmationStatus: typeof ICANNConfirmationStatus;
2070
- type index_d$1_ICANNConfirmationStatusInfo = ICANNConfirmationStatusInfo;
2071
- type index_d$1_ICANNConfirmationStatusInfoStatusOneOf = ICANNConfirmationStatusInfoStatusOneOf;
2072
- type index_d$1_IdentificationData = IdentificationData;
2073
- type index_d$1_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
2074
- type index_d$1_LatestAttempt = LatestAttempt;
2075
- type index_d$1_ListRegisteredDomainsOptions = ListRegisteredDomainsOptions;
2076
- type index_d$1_ListRegisteredDomainsRequest = ListRegisteredDomainsRequest;
2077
- type index_d$1_ListRegisteredDomainsResponse = ListRegisteredDomainsResponse;
2078
- type index_d$1_ListRegisteredDomainsResponseNonNullableFields = ListRegisteredDomainsResponseNonNullableFields;
2079
- type index_d$1_MessageEnvelope = MessageEnvelope;
2080
- type index_d$1_Pending = Pending;
2081
- type index_d$1_PendingRegistrationInfo = PendingRegistrationInfo;
2082
- type index_d$1_RedeemRegisteredDomainRequest = RedeemRegisteredDomainRequest;
2083
- type index_d$1_RedeemRegisteredDomainResponse = RedeemRegisteredDomainResponse;
2084
- type index_d$1_RedeemRegisteredDomainResponseNonNullableFields = RedeemRegisteredDomainResponseNonNullableFields;
2085
- type index_d$1_RedirectAssignmentInfo = RedirectAssignmentInfo;
2086
- type index_d$1_RegisteredDomain = RegisteredDomain;
2087
- type index_d$1_RegisteredDomainStatusInfoOneOf = RegisteredDomainStatusInfoOneOf;
2088
- type index_d$1_SiteInfo = SiteInfo;
2089
- type index_d$1_SiteInfoAssignmentInfoOneOf = SiteInfoAssignmentInfoOneOf;
2090
- type index_d$1_Status = Status;
2091
- declare const index_d$1_Status: typeof Status;
2092
- type index_d$1_WebhookIdentityType = WebhookIdentityType;
2093
- declare const index_d$1_WebhookIdentityType: typeof WebhookIdentityType;
2094
- declare const index_d$1_createRegisteredDomain: typeof createRegisteredDomain;
2095
- declare const index_d$1_getRegisteredDomain: typeof getRegisteredDomain;
2096
- declare const index_d$1_listRegisteredDomains: typeof listRegisteredDomains;
2097
- declare const index_d$1_redeemRegisteredDomain: typeof redeemRegisteredDomain;
2270
+ type index_d$1_CheckDomainAvailabilityRequest = CheckDomainAvailabilityRequest;
2271
+ type index_d$1_CheckDomainAvailabilityResponse = CheckDomainAvailabilityResponse;
2272
+ type index_d$1_CheckDomainAvailabilityResponseNonNullableFields = CheckDomainAvailabilityResponseNonNullableFields;
2273
+ type index_d$1_DomainAvailability = DomainAvailability;
2274
+ declare const index_d$1_checkDomainAvailability: typeof checkDomainAvailability;
2098
2275
  declare namespace index_d$1 {
2099
- export { type index_d$1_ActionEvent as ActionEvent, index_d$1_AssignmentType as AssignmentType, type index_d$1_ContactData as ContactData, type index_d$1_Contacts as Contacts, type index_d$1_CreateRegisteredDomainRequest as CreateRegisteredDomainRequest, type index_d$1_CreateRegisteredDomainResponse as CreateRegisteredDomainResponse, type index_d$1_CreateRegisteredDomainResponseNonNullableFields as CreateRegisteredDomainResponseNonNullableFields, type index_d$1_CursorPaging as CursorPaging, type index_d$1_CursorPagingMetadata as CursorPagingMetadata, type index_d$1_Cursors as Cursors, type index_d$1_DeleteRegisteredDomainByIdRequest as DeleteRegisteredDomainByIdRequest, type index_d$1_DeleteRegisteredDomainByIdResponse as DeleteRegisteredDomainByIdResponse, index_d$1_DnsPropagationStatus as DnsPropagationStatus, type index_d$1_DomainEvent as DomainEvent, type index_d$1_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d$1_EntityCreatedEvent as EntityCreatedEvent, type index_d$1_EntityDeletedEvent as EntityDeletedEvent, type index_d$1_EntityUpdatedEvent as EntityUpdatedEvent, type index_d$1_Expired as Expired, type index_d$1_FailedRegistrationInfo as FailedRegistrationInfo, index_d$1_FailureCode as FailureCode, type index_d$1_GetRegisteredDomainRequest as GetRegisteredDomainRequest, type index_d$1_GetRegisteredDomainResponse as GetRegisteredDomainResponse, type index_d$1_GetRegisteredDomainResponseNonNullableFields as GetRegisteredDomainResponseNonNullableFields, index_d$1_ICANNConfirmationStatus as ICANNConfirmationStatus, type index_d$1_ICANNConfirmationStatusInfo as ICANNConfirmationStatusInfo, type index_d$1_ICANNConfirmationStatusInfoStatusOneOf as ICANNConfirmationStatusInfoStatusOneOf, type index_d$1_IdentificationData as IdentificationData, type index_d$1_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d$1_LatestAttempt as LatestAttempt, type index_d$1_ListRegisteredDomainsOptions as ListRegisteredDomainsOptions, type index_d$1_ListRegisteredDomainsRequest as ListRegisteredDomainsRequest, type index_d$1_ListRegisteredDomainsResponse as ListRegisteredDomainsResponse, type index_d$1_ListRegisteredDomainsResponseNonNullableFields as ListRegisteredDomainsResponseNonNullableFields, type index_d$1_MessageEnvelope as MessageEnvelope, type index_d$1_Pending as Pending, type index_d$1_PendingRegistrationInfo as PendingRegistrationInfo, type index_d$1_RedeemRegisteredDomainRequest as RedeemRegisteredDomainRequest, type index_d$1_RedeemRegisteredDomainResponse as RedeemRegisteredDomainResponse, type index_d$1_RedeemRegisteredDomainResponseNonNullableFields as RedeemRegisteredDomainResponseNonNullableFields, type index_d$1_RedirectAssignmentInfo as RedirectAssignmentInfo, type index_d$1_RegisteredDomain as RegisteredDomain, type index_d$1_RegisteredDomainStatusInfoOneOf as RegisteredDomainStatusInfoOneOf, type index_d$1_SiteInfo as SiteInfo, type index_d$1_SiteInfoAssignmentInfoOneOf as SiteInfoAssignmentInfoOneOf, index_d$1_Status as Status, index_d$1_WebhookIdentityType as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_createRegisteredDomain as createRegisteredDomain, index_d$1_getRegisteredDomain as getRegisteredDomain, index_d$1_listRegisteredDomains as listRegisteredDomains, index_d$1_redeemRegisteredDomain as redeemRegisteredDomain };
2276
+ 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 };
2100
2277
  }
2101
2278
 
2102
2279
  interface DomainSuggestion {
@@ -2161,6 +2338,37 @@ interface SuggestDomainsOptions {
2161
2338
  limit?: number | null;
2162
2339
  }
2163
2340
 
2341
+ interface HttpClient {
2342
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
2343
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
2344
+ }
2345
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
2346
+ type HttpResponse<T = any> = {
2347
+ data: T;
2348
+ status: number;
2349
+ statusText: string;
2350
+ headers: any;
2351
+ request?: any;
2352
+ };
2353
+ type RequestOptions<_TResponse = any, Data = any> = {
2354
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
2355
+ url: string;
2356
+ data?: Data;
2357
+ params?: URLSearchParams;
2358
+ } & APIMetadata;
2359
+ type APIMetadata = {
2360
+ methodFqn?: string;
2361
+ entityFqdn?: string;
2362
+ packageName?: string;
2363
+ };
2364
+
2365
+ declare global {
2366
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
2367
+ interface SymbolConstructor {
2368
+ readonly observable: symbol;
2369
+ }
2370
+ }
2371
+
2164
2372
  declare const __metadata: {
2165
2373
  PACKAGE_NAME: string;
2166
2374
  };
@@ -2177,4 +2385,4 @@ declare namespace index_d {
2177
2385
  export { 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 };
2178
2386
  }
2179
2387
 
2180
- export { index_d$3 as connectedDomainSetupInfo, index_d$4 as connectedDomains, index_d$2 as domainDns, index_d as domainSuggestions, index_d$1 as registeredDomains };
2388
+ 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 };