@wix/papyrus 1.0.14 → 1.0.16

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/papyrus",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -22,7 +22,7 @@
22
22
  "schemas"
23
23
  ],
24
24
  "dependencies": {
25
- "@wix/auto_sdk_papyrus_templates": "1.0.1",
25
+ "@wix/auto_sdk_papyrus_templates": "1.0.2",
26
26
  "@wix/papyrus_documents": "^1.0.0"
27
27
  },
28
28
  "devDependencies": {
@@ -54,5 +54,5 @@
54
54
  "types": "./build/es/schemas.d.mts"
55
55
  }
56
56
  },
57
- "falconPackageHash": "a94fd8246c3605c02ede54221f368d8307dc998466a772568d55d0bc"
57
+ "falconPackageHash": "4d3b588b5d070c96f87891c377963af10c39835df21adc648e13ca1b"
58
58
  }
@@ -754,12 +754,19 @@ declare global {
754
754
  }
755
755
 
756
756
  type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
757
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
757
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient, options?: {
758
+ validateRequestSchema?: boolean;
759
+ }) => T;
758
760
  interface HttpClient {
759
761
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
760
762
  fetchWithAuth: typeof fetch;
761
763
  wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
764
+ /** Returns the current access token synchronously, if available. */
762
765
  getActiveToken?: () => string | undefined;
766
+ /** Returns auth headers (may trigger token refresh). Prefer this over getActiveToken when making authenticated requests. */
767
+ getAuthHeaders?: () => Promise<{
768
+ headers: Record<string, string>;
769
+ }>;
763
770
  }
764
771
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
765
772
  type HttpResponse<T = any> = {
@@ -956,12 +956,12 @@ type Host<Environment = unknown> = {
956
956
  } | undefined;
957
957
  };
958
958
 
959
- type HTTPMethod$1 = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
960
- type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1, options?: {
959
+ type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
960
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient, options?: {
961
961
  validateRequestSchema?: boolean;
962
962
  }) => T;
963
- interface HttpClient$1 {
964
- request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
963
+ interface HttpClient {
964
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
965
965
  fetchWithAuth: typeof fetch;
966
966
  wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
967
967
  /** Returns the current access token synchronously, if available. */
@@ -971,47 +971,47 @@ interface HttpClient$1 {
971
971
  headers: Record<string, string>;
972
972
  }>;
973
973
  }
974
- type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
975
- type HttpResponse$1<T = any> = {
974
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
975
+ type HttpResponse<T = any> = {
976
976
  data: T;
977
977
  status: number;
978
978
  statusText: string;
979
979
  headers: any;
980
980
  request?: any;
981
981
  };
982
- type ResponseTransformer$1$1 = (data: any) => any;
983
- type RequestOptions$1<_TResponse = any, Data = any> = {
984
- method: HTTPMethod$1;
982
+ type ResponseTransformer$1 = (data: any) => any;
983
+ type RequestOptions<_TResponse = any, Data = any> = {
984
+ method: HTTPMethod;
985
985
  url: string;
986
986
  data?: Data;
987
987
  params?: URLSearchParams;
988
- fallback?: RequestOptions$1<any, any>[];
988
+ fallback?: RequestOptions<any, any>[];
989
989
  /**
990
990
  * The array option is for interoperability, defacto only the first function is used
991
991
  * if an array is provided
992
992
  */
993
- transformResponse?: ResponseTransformer$1$1 | ResponseTransformer$1$1[];
994
- } & APIMetadata$1;
995
- type APIMetadata$1 = {
993
+ transformResponse?: ResponseTransformer$1 | ResponseTransformer$1[];
994
+ } & APIMetadata;
995
+ type APIMetadata = {
996
996
  methodFqn?: string;
997
997
  entityFqdn?: string;
998
998
  packageName?: string;
999
- migrationOptions?: MigrationOptions$1;
999
+ migrationOptions?: MigrationOptions;
1000
1000
  };
1001
- type MigrationOptions$1 = {
1001
+ type MigrationOptions = {
1002
1002
  optInTransformResponse?: boolean;
1003
1003
  };
1004
- type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
1005
- type EventDefinition$1<Payload = unknown, Type extends string = string> = {
1004
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
1005
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
1006
1006
  __type: 'event-definition';
1007
1007
  type: Type;
1008
1008
  isDomainEvent?: boolean;
1009
1009
  transformations?: (envelope: unknown) => Payload;
1010
1010
  __payload: Payload;
1011
1011
  };
1012
- declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
1013
- type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
1014
- type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
1012
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
1013
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
1014
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
1015
1015
 
1016
1016
  type ServicePluginMethodInput = {
1017
1017
  request: any;
@@ -1067,7 +1067,7 @@ type BuildAmbassadorFunction<T extends AmbassadorFunctionDescriptor> = T extends
1067
1067
  * can either be a REST module or a host module.
1068
1068
  * This type is recursive, so it can describe nested modules.
1069
1069
  */
1070
- type Descriptors = RESTFunctionDescriptor$1 | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition$1<any> | ServicePluginDefinition<any> | {
1070
+ type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition<any> | ServicePluginDefinition<any> | {
1071
1071
  [key: string]: Descriptors | PublicMetadata | any;
1072
1072
  };
1073
1073
  /**
@@ -1080,7 +1080,7 @@ type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, De
1080
1080
  done: T;
1081
1081
  recurse: T extends {
1082
1082
  __type: typeof SERVICE_PLUGIN_ERROR_TYPE;
1083
- } ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor$1 ? BuildRESTFunction$1<T> : T extends EventDefinition$1<any> ? BuildEventDefinition$1<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
1083
+ } ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition<any> ? BuildEventDefinition<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
1084
1084
  [Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
1085
1085
  -1,
1086
1086
  0,
@@ -1101,12 +1101,24 @@ declare global {
1101
1101
  }
1102
1102
  }
1103
1103
  /**
1104
- * A type used to create concerete types from SDK descriptors in
1105
- * case a contextual client is available.
1104
+ * Creates concrete types from SDK descriptors when a contextual client is
1105
+ * available.
1106
+ *
1107
+ * For a REST descriptor the built (bound) API is intersected with the original
1108
+ * descriptor, matching what `contextualizeRESTModuleV2` returns at runtime — a
1109
+ * value callable as the bound API and still usable as a descriptor. Keeping the
1110
+ * descriptor half lets contextual modules be passed to descriptor-constrained
1111
+ * helpers such as `elevate` from `@wix/sdk/context` (FEDINF-14092).
1112
+ *
1113
+ * The `& T` is scoped to REST descriptors — the only shape codegen wraps in
1114
+ * `MaybeContext` — so `BuildDescriptors` (used by `createClient().use`) is left
1115
+ * unchanged and stays bound-only. The fix lives here rather than in `elevate`,
1116
+ * which is kept strict on purpose (see #941) so it still rejects bound-only
1117
+ * functions that are unsafe through `createRESTModule`.
1106
1118
  */
1107
1119
  type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
1108
1120
  host: Host;
1109
- } ? BuildDescriptors<T, globalThis.ContextualClient['host']> : T;
1121
+ } ? T extends RESTFunctionDescriptor ? BuildDescriptors<T, globalThis.ContextualClient['host']> & T : BuildDescriptors<T, globalThis.ContextualClient['host']> : T;
1110
1122
  declare global {
1111
1123
  /**
1112
1124
  * A global interface to set the exposure toggle for the SDK.
@@ -1205,6 +1217,14 @@ declare const SORT_CAPABILITIES: {
1205
1217
  readonly ASC: "ASC";
1206
1218
  readonly DESC: "DESC";
1207
1219
  };
1220
+ /**
1221
+ * Origin point for geo-distance sorting on a GEO field.
1222
+ * Results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
1223
+ */
1224
+ type SortingOrigin = {
1225
+ latitude?: number | null;
1226
+ longitude?: number | null;
1227
+ };
1208
1228
  /**
1209
1229
  * Helper type to get the fields from a WQL group
1210
1230
  * @template WQLGroup The WQL group type
@@ -1222,6 +1242,7 @@ type Sorting$2<Spec extends WQLSpec> = Spec['wql'] extends {
1222
1242
  fieldName?: string;
1223
1243
  order?: SortOrder$2;
1224
1244
  selectItemsBy?: Record<string, any>[] | null;
1245
+ origin?: SortingOrigin | null;
1225
1246
  } : {
1226
1247
  [WQLGroupIndex in keyof Spec['wql']]: Spec['wql'][WQLGroupIndex] extends {
1227
1248
  fields: readonly string[];
@@ -1230,18 +1251,22 @@ type Sorting$2<Spec extends WQLSpec> = Spec['wql'] extends {
1230
1251
  fieldName: WQLFields<Spec['wql'][WQLGroupIndex]>;
1231
1252
  order: typeof SORT_DIRECTIONS.ASC;
1232
1253
  selectItemsBy?: Record<string, any>[] | null;
1254
+ origin?: SortingOrigin | null;
1233
1255
  } : GroupSortCapability extends typeof SORT_DIRECTIONS.DESC ? {
1234
1256
  fieldName: WQLFields<Spec['wql'][WQLGroupIndex]>;
1235
1257
  order: typeof SORT_DIRECTIONS.DESC;
1236
1258
  selectItemsBy?: Record<string, any>[] | null;
1259
+ origin?: SortingOrigin | null;
1237
1260
  } : GroupSortCapability extends typeof SORT_CAPABILITIES.BOTH ? {
1238
1261
  fieldName: WQLFields<Spec['wql'][WQLGroupIndex]>;
1239
1262
  order: SortOrder$2;
1240
1263
  selectItemsBy?: Record<string, any>[] | null;
1264
+ origin?: SortingOrigin | null;
1241
1265
  } : GroupSortCapability extends typeof SORT_CAPABILITIES.NONE ? {
1242
1266
  fieldName?: never;
1243
1267
  order?: never;
1244
1268
  selectItemsBy?: Record<string, any>[] | null;
1269
+ origin?: SortingOrigin | null;
1245
1270
  } : never : never;
1246
1271
  }[keyof Spec['wql']];
1247
1272
 
@@ -1891,6 +1916,11 @@ interface Sorting$1 {
1891
1916
  fieldName?: string;
1892
1917
  /** Sort order. */
1893
1918
  order?: SortOrderWithLiterals;
1919
+ /**
1920
+ * Origin point for geo-distance sorting on a GEO field
1921
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
1922
+ */
1923
+ origin?: AddressLocation;
1894
1924
  }
1895
1925
  declare enum SortOrder$1 {
1896
1926
  ASC = "ASC",
@@ -1898,6 +1928,12 @@ declare enum SortOrder$1 {
1898
1928
  }
1899
1929
  /** @enumType */
1900
1930
  type SortOrderWithLiterals = SortOrder$1 | 'ASC' | 'DESC';
1931
+ interface AddressLocation {
1932
+ /** Address latitude. */
1933
+ latitude?: number | null;
1934
+ /** Address longitude. */
1935
+ longitude?: number | null;
1936
+ }
1901
1937
  interface Paging$1 {
1902
1938
  /** Number of items to load. */
1903
1939
  limit?: number | null;
@@ -2613,6 +2649,11 @@ type TemplateSettingsQuery = {
2613
2649
  Sort order.
2614
2650
  */
2615
2651
  order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
2652
+ /**
2653
+ Origin point for geo-distance sorting on a GEO field
2654
+ results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
2655
+ */
2656
+ origin?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['origin'];
2616
2657
  }[];
2617
2658
  };
2618
2659
  declare const utils: {
@@ -2653,7 +2694,7 @@ interface ResolveTemplateSettingsOptions {
2653
2694
  templateId?: string | null;
2654
2695
  }
2655
2696
 
2656
- declare function upsertTemplateSettings$1(httpClient: HttpClient$1): UpsertTemplateSettingsSignature;
2697
+ declare function upsertTemplateSettings$1(httpClient: HttpClient): UpsertTemplateSettingsSignature;
2657
2698
  interface UpsertTemplateSettingsSignature {
2658
2699
  /**
2659
2700
  * Upsert Template Settings.
@@ -2662,7 +2703,7 @@ interface UpsertTemplateSettingsSignature {
2662
2703
  __applicationErrorsType?: UpsertTemplateSettingsApplicationErrors;
2663
2704
  }>;
2664
2705
  }
2665
- declare function resolveTemplateSettings$1(httpClient: HttpClient$1): ResolveTemplateSettingsSignature;
2706
+ declare function resolveTemplateSettings$1(httpClient: HttpClient): ResolveTemplateSettingsSignature;
2666
2707
  interface ResolveTemplateSettingsSignature {
2667
2708
  /**
2668
2709
  * Resolve Template Settings. Returns default Template Settings if it does not exist.
@@ -2671,23 +2712,24 @@ interface ResolveTemplateSettingsSignature {
2671
2712
  __applicationErrorsType?: ResolveTemplateSettingsApplicationErrors;
2672
2713
  }>;
2673
2714
  }
2674
- declare const onTemplateSettingsCreated$1: EventDefinition$1<TemplateSettingsCreatedEnvelope, "wix.papyrus.v1.template_settings_created">;
2675
- declare const onTemplateSettingsUpdated$1: EventDefinition$1<TemplateSettingsUpdatedEnvelope, "wix.papyrus.v1.template_settings_updated">;
2715
+ declare const onTemplateSettingsCreated$1: EventDefinition<TemplateSettingsCreatedEnvelope, "wix.papyrus.v1.template_settings_created">;
2716
+ declare const onTemplateSettingsUpdated$1: EventDefinition<TemplateSettingsUpdatedEnvelope, "wix.papyrus.v1.template_settings_updated">;
2676
2717
 
2677
- declare function customQueryTemplateSettings(httpClient: HttpClient$1): {
2718
+ declare function customQueryTemplateSettings(httpClient: HttpClient): {
2678
2719
  (): SettingsQueryBuilder;
2679
2720
  (query: TemplateSettingsQuery): ReturnType<typeof typedQueryTemplateSettings>;
2680
2721
  };
2681
- declare const upsertTemplateSettings: MaybeContext<BuildRESTFunction$1<typeof upsertTemplateSettings$1> & typeof upsertTemplateSettings$1>;
2682
- declare const resolveTemplateSettings: MaybeContext<BuildRESTFunction$1<typeof resolveTemplateSettings$1> & typeof resolveTemplateSettings$1>;
2683
- declare const queryTemplateSettings: MaybeContext<BuildRESTFunction$1<typeof customQueryTemplateSettings> & typeof customQueryTemplateSettings>;
2722
+ declare const upsertTemplateSettings: MaybeContext<BuildRESTFunction<typeof upsertTemplateSettings$1> & typeof upsertTemplateSettings$1>;
2723
+ declare const resolveTemplateSettings: MaybeContext<BuildRESTFunction<typeof resolveTemplateSettings$1> & typeof resolveTemplateSettings$1>;
2724
+ declare const queryTemplateSettings: MaybeContext<BuildRESTFunction<typeof customQueryTemplateSettings> & typeof customQueryTemplateSettings>;
2684
2725
  /** */
2685
- declare const onTemplateSettingsCreated: BuildEventDefinition$1<typeof onTemplateSettingsCreated$1> & typeof onTemplateSettingsCreated$1;
2726
+ declare const onTemplateSettingsCreated: BuildEventDefinition<typeof onTemplateSettingsCreated$1> & typeof onTemplateSettingsCreated$1;
2686
2727
  /** */
2687
- declare const onTemplateSettingsUpdated: BuildEventDefinition$1<typeof onTemplateSettingsUpdated$1> & typeof onTemplateSettingsUpdated$1;
2728
+ declare const onTemplateSettingsUpdated: BuildEventDefinition<typeof onTemplateSettingsUpdated$1> & typeof onTemplateSettingsUpdated$1;
2688
2729
 
2689
2730
  type index_d$1_AccountInfo = AccountInfo;
2690
2731
  type index_d$1_AccountInfoMetadata = AccountInfoMetadata;
2732
+ type index_d$1_AddressLocation = AddressLocation;
2691
2733
  type index_d$1_BackgroundControl = BackgroundControl;
2692
2734
  type index_d$1_BulkCreateTemplateSettingsRequest = BulkCreateTemplateSettingsRequest;
2693
2735
  type index_d$1_BulkCreateTemplateSettingsResponse = BulkCreateTemplateSettingsResponse;
@@ -2748,7 +2790,7 @@ declare const index_d$1_resolveTemplateSettings: typeof resolveTemplateSettings;
2748
2790
  declare const index_d$1_upsertTemplateSettings: typeof upsertTemplateSettings;
2749
2791
  declare const index_d$1_utils: typeof utils;
2750
2792
  declare namespace index_d$1 {
2751
- export { type index_d$1_AccountInfo as AccountInfo, type index_d$1_AccountInfoMetadata as AccountInfoMetadata, type ActionEvent$1 as ActionEvent, type index_d$1_BackgroundControl as BackgroundControl, type BackgroundSetting$1 as BackgroundSetting, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkCreateTemplateSettingsRequest as BulkCreateTemplateSettingsRequest, type index_d$1_BulkCreateTemplateSettingsResponse as BulkCreateTemplateSettingsResponse, type index_d$1_CommonQueryWithEntityContext as CommonQueryWithEntityContext, type index_d$1_ControlGroup as ControlGroup, type index_d$1_CreateTemplateSettingsRequest as CreateTemplateSettingsRequest, type index_d$1_CreateTemplateSettingsResponse as CreateTemplateSettingsResponse, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type index_d$1_DeleteTemplateSettingsRequest as DeleteTemplateSettingsRequest, type index_d$1_DeleteTemplateSettingsResponse as DeleteTemplateSettingsResponse, type index_d$1_DisplayControl as DisplayControl, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_FocalPoint as FocalPoint, type index_d$1_GetTemplateControlsRequest as GetTemplateControlsRequest, type index_d$1_GetTemplateControlsResponse as GetTemplateControlsResponse, type index_d$1_GetTemplateRegistryRequest as GetTemplateRegistryRequest, type index_d$1_GetTemplateRegistryResponse as GetTemplateRegistryResponse, type index_d$1_GetTemplateSettingsRequest as GetTemplateSettingsRequest, type index_d$1_GetTemplateSettingsResponse as GetTemplateSettingsResponse, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_ImageControl as ImageControl, type ImageSetting$1 as ImageSetting, type MessageEnvelope$1 as MessageEnvelope, index_d$1_PageOverflow as PageOverflow, type index_d$1_PageOverflowWithLiterals as PageOverflowWithLiterals, type Paging$1 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, PaperSize$1 as PaperSize, type index_d$1_PaperSizeWithLiterals as PaperSizeWithLiterals, type index_d$1_QueryTemplateSettingsRequest as QueryTemplateSettingsRequest, type index_d$1_QueryTemplateSettingsResponse as QueryTemplateSettingsResponse, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type index_d$1_Range as Range, ResizeOption$1 as ResizeOption, type index_d$1_ResizeOptionWithLiterals as ResizeOptionWithLiterals, type index_d$1_ResolveTemplateSettingsApplicationErrors as ResolveTemplateSettingsApplicationErrors, type index_d$1_ResolveTemplateSettingsOptions as ResolveTemplateSettingsOptions, type index_d$1_ResolveTemplateSettingsRequest as ResolveTemplateSettingsRequest, type index_d$1_ResolveTemplateSettingsResponse as ResolveTemplateSettingsResponse, type RestoreInfo$1 as RestoreInfo, type index_d$1_SelectControl as SelectControl, type SelectSetting$1 as SelectSetting, type SettingsGroup$1 as SettingsGroup, type index_d$1_SettingsQueryBuilder as SettingsQueryBuilder, type index_d$1_SettingsQueryResult as SettingsQueryResult, SortOrder$1 as SortOrder, type index_d$1_SortOrderWithLiterals as SortOrderWithLiterals, type Sorting$1 as Sorting, type index_d$1_TemplateControls as TemplateControls, type index_d$1_TemplateRegistry as TemplateRegistry, type TemplateSettings$1 as TemplateSettings, type index_d$1_TemplateSettingsCreatedEnvelope as TemplateSettingsCreatedEnvelope, type index_d$1_TemplateSettingsQuery as TemplateSettingsQuery, type index_d$1_TemplateSettingsQuerySpec as TemplateSettingsQuerySpec, type index_d$1_TemplateSettingsUpdatedEnvelope as TemplateSettingsUpdatedEnvelope, type index_d$1_TemplateStyle as TemplateStyle, type TextContent$1 as TextContent, type index_d$1_TextContentControl as TextContentControl, type index_d$1_TextControl as TextControl, type index_d$1_TextPropertyControl as TextPropertyControl, type TextSetting$1 as TextSetting, type index_d$1_UpdateTemplateSettingsRequest as UpdateTemplateSettingsRequest, type index_d$1_UpdateTemplateSettingsResponse as UpdateTemplateSettingsResponse, type index_d$1_UpsertTemplateSettingsApplicationErrors as UpsertTemplateSettingsApplicationErrors, type index_d$1_UpsertTemplateSettingsOptions as UpsertTemplateSettingsOptions, type index_d$1_UpsertTemplateSettingsRequest as UpsertTemplateSettingsRequest, type index_d$1_UpsertTemplateSettingsResponse as UpsertTemplateSettingsResponse, type index_d$1_ValueOption as ValueOption, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1_WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiterals, type index_d$1_WixAppTemplate as WixAppTemplate, index_d$1_onTemplateSettingsCreated as onTemplateSettingsCreated, index_d$1_onTemplateSettingsUpdated as onTemplateSettingsUpdated, index_d$1_queryTemplateSettings as queryTemplateSettings, index_d$1_resolveTemplateSettings as resolveTemplateSettings, index_d$1_upsertTemplateSettings as upsertTemplateSettings, index_d$1_utils as utils };
2793
+ export { type index_d$1_AccountInfo as AccountInfo, type index_d$1_AccountInfoMetadata as AccountInfoMetadata, type ActionEvent$1 as ActionEvent, type index_d$1_AddressLocation as AddressLocation, type index_d$1_BackgroundControl as BackgroundControl, type BackgroundSetting$1 as BackgroundSetting, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkCreateTemplateSettingsRequest as BulkCreateTemplateSettingsRequest, type index_d$1_BulkCreateTemplateSettingsResponse as BulkCreateTemplateSettingsResponse, type index_d$1_CommonQueryWithEntityContext as CommonQueryWithEntityContext, type index_d$1_ControlGroup as ControlGroup, type index_d$1_CreateTemplateSettingsRequest as CreateTemplateSettingsRequest, type index_d$1_CreateTemplateSettingsResponse as CreateTemplateSettingsResponse, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type index_d$1_DeleteTemplateSettingsRequest as DeleteTemplateSettingsRequest, type index_d$1_DeleteTemplateSettingsResponse as DeleteTemplateSettingsResponse, type index_d$1_DisplayControl as DisplayControl, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_FocalPoint as FocalPoint, type index_d$1_GetTemplateControlsRequest as GetTemplateControlsRequest, type index_d$1_GetTemplateControlsResponse as GetTemplateControlsResponse, type index_d$1_GetTemplateRegistryRequest as GetTemplateRegistryRequest, type index_d$1_GetTemplateRegistryResponse as GetTemplateRegistryResponse, type index_d$1_GetTemplateSettingsRequest as GetTemplateSettingsRequest, type index_d$1_GetTemplateSettingsResponse as GetTemplateSettingsResponse, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_ImageControl as ImageControl, type ImageSetting$1 as ImageSetting, type MessageEnvelope$1 as MessageEnvelope, index_d$1_PageOverflow as PageOverflow, type index_d$1_PageOverflowWithLiterals as PageOverflowWithLiterals, type Paging$1 as Paging, type PagingMetadataV2$1 as PagingMetadataV2, PaperSize$1 as PaperSize, type index_d$1_PaperSizeWithLiterals as PaperSizeWithLiterals, type index_d$1_QueryTemplateSettingsRequest as QueryTemplateSettingsRequest, type index_d$1_QueryTemplateSettingsResponse as QueryTemplateSettingsResponse, type QueryV2$1 as QueryV2, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOf, type index_d$1_Range as Range, ResizeOption$1 as ResizeOption, type index_d$1_ResizeOptionWithLiterals as ResizeOptionWithLiterals, type index_d$1_ResolveTemplateSettingsApplicationErrors as ResolveTemplateSettingsApplicationErrors, type index_d$1_ResolveTemplateSettingsOptions as ResolveTemplateSettingsOptions, type index_d$1_ResolveTemplateSettingsRequest as ResolveTemplateSettingsRequest, type index_d$1_ResolveTemplateSettingsResponse as ResolveTemplateSettingsResponse, type RestoreInfo$1 as RestoreInfo, type index_d$1_SelectControl as SelectControl, type SelectSetting$1 as SelectSetting, type SettingsGroup$1 as SettingsGroup, type index_d$1_SettingsQueryBuilder as SettingsQueryBuilder, type index_d$1_SettingsQueryResult as SettingsQueryResult, SortOrder$1 as SortOrder, type index_d$1_SortOrderWithLiterals as SortOrderWithLiterals, type Sorting$1 as Sorting, type index_d$1_TemplateControls as TemplateControls, type index_d$1_TemplateRegistry as TemplateRegistry, type TemplateSettings$1 as TemplateSettings, type index_d$1_TemplateSettingsCreatedEnvelope as TemplateSettingsCreatedEnvelope, type index_d$1_TemplateSettingsQuery as TemplateSettingsQuery, type index_d$1_TemplateSettingsQuerySpec as TemplateSettingsQuerySpec, type index_d$1_TemplateSettingsUpdatedEnvelope as TemplateSettingsUpdatedEnvelope, type index_d$1_TemplateStyle as TemplateStyle, type TextContent$1 as TextContent, type index_d$1_TextContentControl as TextContentControl, type index_d$1_TextControl as TextControl, type index_d$1_TextPropertyControl as TextPropertyControl, type TextSetting$1 as TextSetting, type index_d$1_UpdateTemplateSettingsRequest as UpdateTemplateSettingsRequest, type index_d$1_UpdateTemplateSettingsResponse as UpdateTemplateSettingsResponse, type index_d$1_UpsertTemplateSettingsApplicationErrors as UpsertTemplateSettingsApplicationErrors, type index_d$1_UpsertTemplateSettingsOptions as UpsertTemplateSettingsOptions, type index_d$1_UpsertTemplateSettingsRequest as UpsertTemplateSettingsRequest, type index_d$1_UpsertTemplateSettingsResponse as UpsertTemplateSettingsResponse, type index_d$1_ValueOption as ValueOption, WebhookIdentityType$1 as WebhookIdentityType, type index_d$1_WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiterals, type index_d$1_WixAppTemplate as WixAppTemplate, index_d$1_onTemplateSettingsCreated as onTemplateSettingsCreated, index_d$1_onTemplateSettingsUpdated as onTemplateSettingsUpdated, index_d$1_queryTemplateSettings as queryTemplateSettings, index_d$1_resolveTemplateSettings as resolveTemplateSettings, index_d$1_upsertTemplateSettings as upsertTemplateSettings, index_d$1_utils as utils };
2752
2794
  }
2753
2795
 
2754
2796
  /** Document is the main entity of DocumentService. */
@@ -3499,90 +3541,6 @@ interface GetDownloadUrlOptions extends GetDownloadUrlRequestDocumentOneOf {
3499
3541
  urlExpirationInSeconds?: number | null;
3500
3542
  }
3501
3543
 
3502
- type HTTPMethod = 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
3503
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
3504
- interface HttpClient {
3505
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
3506
- fetchWithAuth: typeof fetch;
3507
- wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
3508
- getActiveToken?: () => string | undefined;
3509
- }
3510
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
3511
- type HttpResponse<T = any> = {
3512
- data: T;
3513
- status: number;
3514
- statusText: string;
3515
- headers: any;
3516
- request?: any;
3517
- };
3518
- type ResponseTransformer$1 = (data: any) => any;
3519
- type RequestOptions<_TResponse = any, Data = any> = {
3520
- method: HTTPMethod;
3521
- url: string;
3522
- data?: Data;
3523
- params?: URLSearchParams;
3524
- fallback?: RequestOptions<any, any>[];
3525
- /**
3526
- * The array option is for interoperability, defacto only the first function is used
3527
- * if an array is provided
3528
- */
3529
- transformResponse?: ResponseTransformer$1 | ResponseTransformer$1[];
3530
- } & APIMetadata;
3531
- type APIMetadata = {
3532
- methodFqn?: string;
3533
- entityFqdn?: string;
3534
- packageName?: string;
3535
- migrationOptions?: MigrationOptions;
3536
- };
3537
- type MigrationOptions = {
3538
- optInTransformResponse?: boolean;
3539
- };
3540
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
3541
- type EventDefinition<Payload = unknown, Type extends string = string> = {
3542
- __type: 'event-definition';
3543
- type: Type;
3544
- isDomainEvent?: boolean;
3545
- transformations?: (envelope: unknown) => Payload;
3546
- __payload: Payload;
3547
- };
3548
- declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
3549
- type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
3550
- type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
3551
-
3552
- declare global {
3553
- interface ContextualClient {
3554
- }
3555
- }
3556
- declare global {
3557
- /**
3558
- * A global interface to set the exposure toggle for the SDK.
3559
- * @example
3560
- * ```ts
3561
- * declare global {
3562
- * interface SDKExposureToggle {
3563
- * alpha: true;
3564
- * }
3565
- * }
3566
- */
3567
- interface SDKExposureToggle {
3568
- }
3569
- }
3570
-
3571
- declare global {
3572
- /**
3573
- * A global interface to set the type mode for the SDK.
3574
- * @example
3575
- * ```ts
3576
- * declare global {
3577
- * interface SDKTypeMode {
3578
- * strict: true;
3579
- * }
3580
- * }
3581
- */
3582
- interface SDKTypeMode {
3583
- }
3584
- }
3585
-
3586
3544
  declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3587
3545
 
3588
3546
  declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
@@ -1069,6 +1069,11 @@ interface Sorting$1 {
1069
1069
  fieldName?: string;
1070
1070
  /** Sort order. */
1071
1071
  order?: SortOrderWithLiterals$1;
1072
+ /**
1073
+ * Origin point for geo-distance sorting on a GEO field
1074
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
1075
+ */
1076
+ origin?: AddressLocation$1;
1072
1077
  }
1073
1078
  declare enum SortOrder$1 {
1074
1079
  ASC = "ASC",
@@ -1076,6 +1081,12 @@ declare enum SortOrder$1 {
1076
1081
  }
1077
1082
  /** @enumType */
1078
1083
  type SortOrderWithLiterals$1 = SortOrder$1 | 'ASC' | 'DESC';
1084
+ interface AddressLocation$1 {
1085
+ /** Address latitude. */
1086
+ latitude?: number | null;
1087
+ /** Address longitude. */
1088
+ longitude?: number | null;
1089
+ }
1079
1090
  interface Paging$1 {
1080
1091
  /** Number of items to load. */
1081
1092
  limit?: number | null;
@@ -1917,6 +1928,11 @@ interface Sorting {
1917
1928
  fieldName?: string;
1918
1929
  /** Sort order. */
1919
1930
  order?: SortOrderWithLiterals;
1931
+ /**
1932
+ * Origin point for geo-distance sorting on a GEO field
1933
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
1934
+ */
1935
+ origin?: AddressLocation;
1920
1936
  }
1921
1937
  declare enum SortOrder {
1922
1938
  ASC = "ASC",
@@ -1924,6 +1940,12 @@ declare enum SortOrder {
1924
1940
  }
1925
1941
  /** @enumType */
1926
1942
  type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
1943
+ interface AddressLocation {
1944
+ /** Address latitude. */
1945
+ latitude?: number | null;
1946
+ /** Address longitude. */
1947
+ longitude?: number | null;
1948
+ }
1927
1949
  interface Paging {
1928
1950
  /** Number of items to load. */
1929
1951
  limit?: number | null;
@@ -2029,7 +2051,7 @@ declare const meta_queryTemplateSettings: typeof queryTemplateSettings;
2029
2051
  declare const meta_resolveTemplateSettings: typeof resolveTemplateSettings;
2030
2052
  declare const meta_upsertTemplateSettings: typeof upsertTemplateSettings;
2031
2053
  declare namespace meta {
2032
- export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type BackgroundControl as BackgroundControlOriginal, type BackgroundSetting$1 as BackgroundSettingOriginal, type BulkCreateTemplateSettingsRequest as BulkCreateTemplateSettingsRequestOriginal, type BulkCreateTemplateSettingsResponse as BulkCreateTemplateSettingsResponseOriginal, type ControlGroup as ControlGroupOriginal, type CreateTemplateSettingsRequest as CreateTemplateSettingsRequestOriginal, type CreateTemplateSettingsResponse as CreateTemplateSettingsResponseOriginal, type CursorPaging$1 as CursorPagingOriginal, type Cursors$1 as CursorsOriginal, type DeleteTemplateSettingsRequest as DeleteTemplateSettingsRequestOriginal, type DeleteTemplateSettingsResponse as DeleteTemplateSettingsResponseOriginal, type DisplayControl as DisplayControlOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FocalPoint as FocalPointOriginal, type GetTemplateControlsRequest as GetTemplateControlsRequestOriginal, type GetTemplateControlsResponse as GetTemplateControlsResponseOriginal, type GetTemplateRegistryRequest as GetTemplateRegistryRequestOriginal, type GetTemplateRegistryResponse as GetTemplateRegistryResponseOriginal, type GetTemplateSettingsRequest as GetTemplateSettingsRequestOriginal, type GetTemplateSettingsResponse as GetTemplateSettingsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ImageControl as ImageControlOriginal, type Image as ImageOriginal, type ImageSetting$1 as ImageSettingOriginal, type MessageEnvelope as MessageEnvelopeOriginal, PageOverflow$1 as PageOverflowOriginal, type PageOverflowWithLiterals$1 as PageOverflowWithLiteralsOriginal, type PagingMetadataV2$1 as PagingMetadataV2Original, type Paging$1 as PagingOriginal, PaperSize$1 as PaperSizeOriginal, type PaperSizeWithLiterals$1 as PaperSizeWithLiteralsOriginal, type QueryTemplateSettingsRequest$1 as QueryTemplateSettingsRequestOriginal, type QueryTemplateSettingsResponse$1 as QueryTemplateSettingsResponseOriginal, type QueryV2$1 as QueryV2Original, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOfOriginal, type Range as RangeOriginal, ResizeOption$1 as ResizeOptionOriginal, type ResizeOptionWithLiterals$1 as ResizeOptionWithLiteralsOriginal, type ResolveTemplateSettingsApplicationErrors as ResolveTemplateSettingsApplicationErrorsOriginal, type ResolveTemplateSettingsRequest$1 as ResolveTemplateSettingsRequestOriginal, type ResolveTemplateSettingsResponse$1 as ResolveTemplateSettingsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type SelectControl as SelectControlOriginal, type SelectSetting$1 as SelectSettingOriginal, type SettingsGroup$1 as SettingsGroupOriginal, SortOrder$1 as SortOrderOriginal, type SortOrderWithLiterals$1 as SortOrderWithLiteralsOriginal, type Sorting$1 as SortingOriginal, type TemplateControls as TemplateControlsOriginal, type TemplateRegistry as TemplateRegistryOriginal, type TemplateSettings$1 as TemplateSettingsOriginal, type TemplateStyle as TemplateStyleOriginal, type TextContentControl as TextContentControlOriginal, type TextContent$1 as TextContentOriginal, type TextControl as TextControlOriginal, type TextPropertyControl as TextPropertyControlOriginal, type TextSetting$1 as TextSettingOriginal, type UpdateTemplateSettingsRequest as UpdateTemplateSettingsRequestOriginal, type UpdateTemplateSettingsResponse as UpdateTemplateSettingsResponseOriginal, type UpsertTemplateSettingsApplicationErrors as UpsertTemplateSettingsApplicationErrorsOriginal, type UpsertTemplateSettingsRequest$1 as UpsertTemplateSettingsRequestOriginal, type UpsertTemplateSettingsResponse$1 as UpsertTemplateSettingsResponseOriginal, type ValueOption as ValueOptionOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WixAppTemplate as WixAppTemplateOriginal, type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_queryTemplateSettings as queryTemplateSettings, meta_resolveTemplateSettings as resolveTemplateSettings, meta_upsertTemplateSettings as upsertTemplateSettings };
2054
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation$1 as AddressLocationOriginal, type BackgroundControl as BackgroundControlOriginal, type BackgroundSetting$1 as BackgroundSettingOriginal, type BulkCreateTemplateSettingsRequest as BulkCreateTemplateSettingsRequestOriginal, type BulkCreateTemplateSettingsResponse as BulkCreateTemplateSettingsResponseOriginal, type ControlGroup as ControlGroupOriginal, type CreateTemplateSettingsRequest as CreateTemplateSettingsRequestOriginal, type CreateTemplateSettingsResponse as CreateTemplateSettingsResponseOriginal, type CursorPaging$1 as CursorPagingOriginal, type Cursors$1 as CursorsOriginal, type DeleteTemplateSettingsRequest as DeleteTemplateSettingsRequestOriginal, type DeleteTemplateSettingsResponse as DeleteTemplateSettingsResponseOriginal, type DisplayControl as DisplayControlOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type FocalPoint as FocalPointOriginal, type GetTemplateControlsRequest as GetTemplateControlsRequestOriginal, type GetTemplateControlsResponse as GetTemplateControlsResponseOriginal, type GetTemplateRegistryRequest as GetTemplateRegistryRequestOriginal, type GetTemplateRegistryResponse as GetTemplateRegistryResponseOriginal, type GetTemplateSettingsRequest as GetTemplateSettingsRequestOriginal, type GetTemplateSettingsResponse as GetTemplateSettingsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type ImageControl as ImageControlOriginal, type Image as ImageOriginal, type ImageSetting$1 as ImageSettingOriginal, type MessageEnvelope as MessageEnvelopeOriginal, PageOverflow$1 as PageOverflowOriginal, type PageOverflowWithLiterals$1 as PageOverflowWithLiteralsOriginal, type PagingMetadataV2$1 as PagingMetadataV2Original, type Paging$1 as PagingOriginal, PaperSize$1 as PaperSizeOriginal, type PaperSizeWithLiterals$1 as PaperSizeWithLiteralsOriginal, type QueryTemplateSettingsRequest$1 as QueryTemplateSettingsRequestOriginal, type QueryTemplateSettingsResponse$1 as QueryTemplateSettingsResponseOriginal, type QueryV2$1 as QueryV2Original, type QueryV2PagingMethodOneOf$1 as QueryV2PagingMethodOneOfOriginal, type Range as RangeOriginal, ResizeOption$1 as ResizeOptionOriginal, type ResizeOptionWithLiterals$1 as ResizeOptionWithLiteralsOriginal, type ResolveTemplateSettingsApplicationErrors as ResolveTemplateSettingsApplicationErrorsOriginal, type ResolveTemplateSettingsRequest$1 as ResolveTemplateSettingsRequestOriginal, type ResolveTemplateSettingsResponse$1 as ResolveTemplateSettingsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type SelectControl as SelectControlOriginal, type SelectSetting$1 as SelectSettingOriginal, type SettingsGroup$1 as SettingsGroupOriginal, SortOrder$1 as SortOrderOriginal, type SortOrderWithLiterals$1 as SortOrderWithLiteralsOriginal, type Sorting$1 as SortingOriginal, type TemplateControls as TemplateControlsOriginal, type TemplateRegistry as TemplateRegistryOriginal, type TemplateSettings$1 as TemplateSettingsOriginal, type TemplateStyle as TemplateStyleOriginal, type TextContentControl as TextContentControlOriginal, type TextContent$1 as TextContentOriginal, type TextControl as TextControlOriginal, type TextPropertyControl as TextPropertyControlOriginal, type TextSetting$1 as TextSettingOriginal, type UpdateTemplateSettingsRequest as UpdateTemplateSettingsRequestOriginal, type UpdateTemplateSettingsResponse as UpdateTemplateSettingsResponseOriginal, type UpsertTemplateSettingsApplicationErrors as UpsertTemplateSettingsApplicationErrorsOriginal, type UpsertTemplateSettingsRequest$1 as UpsertTemplateSettingsRequestOriginal, type UpsertTemplateSettingsResponse$1 as UpsertTemplateSettingsResponseOriginal, type ValueOption as ValueOptionOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WixAppTemplate as WixAppTemplateOriginal, type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_queryTemplateSettings as queryTemplateSettings, meta_resolveTemplateSettings as resolveTemplateSettings, meta_upsertTemplateSettings as upsertTemplateSettings };
2033
2055
  }
2034
2056
 
2035
2057
  export { meta_d as documents, meta as templates };
@@ -2301,6 +2301,10 @@ declare const QueryTemplateSettingsRequest: ZodObject<{
2301
2301
  ASC: "ASC";
2302
2302
  DESC: "DESC";
2303
2303
  }>>;
2304
+ origin: ZodOptional<ZodObject<{
2305
+ latitude: ZodNullable<ZodOptional<ZodNumber>>;
2306
+ longitude: ZodNullable<ZodOptional<ZodNumber>>;
2307
+ }, $strip>>;
2304
2308
  }, $strip>>>;
2305
2309
  }, $strip>, ZodXor<readonly [ZodObject<{
2306
2310
  paging: ZodOptional<ZodNever>;