@relyio/sdk 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +370 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/{chunk-DY2XT7OF.cjs → chunk-72UK5U7T.cjs} +70 -60
  4. package/dist/{chunk-7ABNXVWL.js → chunk-GYHAVYND.js} +777 -399
  5. package/dist/{chunk-I3ESNANB.js → chunk-H6IBQSMM.js} +2 -2
  6. package/dist/{chunk-HT6NFRM2.cjs → chunk-TZL374LS.cjs} +2 -2
  7. package/dist/{chunk-GCMQUM6N.cjs → chunk-VH2DE7HZ.cjs} +776 -402
  8. package/dist/{chunk-XJVY2CLY.js → chunk-YEJUMW4X.js} +70 -60
  9. package/dist/client/index.cjs +4 -3
  10. package/dist/client/index.d.cts +4 -4
  11. package/dist/client/index.d.ts +4 -4
  12. package/dist/client/index.js +2 -1
  13. package/dist/{index-d1Kz1e19.d.cts → define-content-type-DiVpbwNs.d.cts} +1615 -684
  14. package/dist/{index-yPbhZc6q.d.ts → define-content-type-DiVpbwNs.d.ts} +1615 -684
  15. package/dist/{define-schema-1kr2HIzN.d.cts → define-schema-C-5an28C.d.ts} +189 -85
  16. package/dist/{define-schema-ChvAzY8H.d.ts → define-schema-D7MButVt.d.cts} +189 -85
  17. package/dist/{index-XqoGUaAY.d.ts → index-1G97sNA8.d.ts} +489 -267
  18. package/dist/index-BOQIHnsh.d.ts +818 -0
  19. package/dist/index-DbsTUw3Q.d.cts +818 -0
  20. package/dist/{index-Df1VsfJR.d.cts → index-M0X45k7J.d.cts} +489 -267
  21. package/dist/index.cjs +98 -114
  22. package/dist/index.d.cts +31 -31
  23. package/dist/index.d.ts +31 -31
  24. package/dist/index.js +8 -8
  25. package/dist/schema/index.cjs +35 -35
  26. package/dist/schema/index.d.cts +13 -11
  27. package/dist/schema/index.d.ts +13 -11
  28. package/dist/schema/index.js +1 -1
  29. package/dist/types/index.d.cts +2 -2
  30. package/dist/types/index.d.ts +2 -2
  31. package/dist/utils/index.cjs +19 -19
  32. package/dist/utils/index.d.cts +10 -1
  33. package/dist/utils/index.d.ts +10 -1
  34. package/dist/utils/index.js +1 -1
  35. package/package.json +4 -3
  36. package/dist/define-content-type-CDB3kyeA.d.cts +0 -1173
  37. package/dist/define-content-type-CDB3kyeA.d.ts +0 -1173
package/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- import { C as ChangesExpiredError, a as Change, b as ChangesExpiredReason } from './index-XqoGUaAY.js';
2
- export { A as ActiveSandbox, a1 as AdhocAggregateBlock, a0 as AdhocFetchBlock, $ as AdhocQueryBuilder, _ as AdhocQueryClient, a7 as AdhocQueryDefinition, a8 as AdhocQueryOptions, aa as AdhocQueryResult, a3 as AdhocSearchBlock, a4 as AdhocSimilarBlock, a2 as AggregateMetric, ab as AssetClient, al as AssetEntryResponse, ai as AssetFileBlock, ac as AssetFileBuilder, aj as AssetFileExtracted, ad as AssetUploadBuilder, ak as AssetUrls, af as AssetVisibility, w as AutocompleteBuilder, F as AutocompleteResponse, D as AutocompleteSuggestion, Q as BatchBuilder, O as BatchClient, U as BatchMethod, V as BatchOperation, X as BatchOperationResult, W as BatchOptions, Z as BatchResponse, Y as BatchSummary, k as ChangesHeadOptions, l as ChangesOptions, r as ChildrenOptions, e as ClientSchema, i as ConditionalWriteOptions, ap as ConfirmInput, aq as ConfirmResult, q as ContentByIdBuilder, m as ContentClient, p as ContentQueryBuilder, at as CreateAssetOptions, E as ExtendedQueryResult, ah as FileBackend, aD as FileErrorCode, ag as FileStatus, aE as FileUploadError, aG as FileValidationConstraints, aF as FileValidationError, a5 as FilterValue, a6 as FullTextConfig, H as HttpClient, av as MultipartCreateResult, aw as MultipartPart, ax as MultipartTarget, am as PopulatedAssetReference, an as PresignInput, ao as PresignResult, P as Project, a9 as QueryMetadata, R as Register, f as RegisteredSchema, ar as ResolveUrlInput, as as ResolveUrlResult, aA as ResourceConflictError, aB as ResourceExpiredError, az as ResourceNotFoundError, j as RetryableWriteOptions, S as SandboxState, v as SearchBuilder, u as SearchClient, N as SearchEntry, K as SearchFields, J as SearchFilter, y as SearchMode, B as SearchResponse, z as SearchResultItem, L as SearchSort, M as SearchTypeName, g as SendOptions, o as SettingsClient, t as SettingsFetchOptions, x as SimilarBuilder, I as SimilarResponse, G as SimilarResult, n as SingletonClient, s as SingletonFetchOptions, d as TypedClientConfig, T as TypedRelyIOClient, ay as UploadProgress, au as WaitUntilReadyOptions, c as createClient, c as default, h as entityTagOf, ae as isAssetEntry, aC as isResourceNotFound, aH as validateFile } from './index-XqoGUaAY.js';
1
+ import { C as ChangesExpiredError, a as Change, b as ChangesExpiredReason } from './index-1G97sNA8.js';
2
+ export { A as ActiveSandbox, a2 as AdhocAggregateBlock, a1 as AdhocFetchBlock, a0 as AdhocQueryBuilder, $ as AdhocQueryClient, a7 as AdhocQueryDefinition, a8 as AdhocQueryOptions, aa as AdhocQueryResult, a4 as AdhocSearchBlock, a3 as AggregateMetric, ab as AssetClient, am as AssetEntryResponse, ai as AssetFileBlock, ac as AssetFileBuilder, aj as AssetFileExtracted, ad as AssetUploadBuilder, al as AssetUrls, af as AssetVisibility, w as AutocompleteBuilder, G as AutocompleteResponse, F as AutocompleteSuggestion, U as BatchBuilder, Q as BatchClient, V as BatchMethod, W as BatchOperation, Y as BatchOperationResult, X as BatchOptions, _ as BatchResponse, Z as BatchSummary, k as ChangesHeadOptions, l as ChangesOptions, r as ChildrenOptions, e as ClientSchema, i as ConditionalWriteOptions, aq as ConfirmInput, ar as ConfirmResult, q as ContentByIdBuilder, m as ContentClient, p as ContentQueryBuilder, au as CreateAssetOptions, E as ExtendedQueryResult, ah as FileBackend, aE as FileErrorCode, ag as FileStatus, ak as FileStatusResult, aG as FileUploadError, aF as FileUploadErrorCode, aI as FileValidationConstraints, aH as FileValidationError, a5 as FilterValue, a6 as FullTextConfig, H as HttpClient, aw as MultipartCreateResult, ax as MultipartPart, ay as MultipartTarget, an as PopulatedAssetReference, ao as PresignInput, ap as PresignResult, P as Project, a9 as QueryMetadata, R as Register, f as RegisteredSchema, as as ResolveUrlInput, at as ResolveUrlResult, aB as ResourceConflictError, aC as ResourceExpiredError, aA as ResourceNotFoundError, j as RetryableWriteOptions, S as SandboxState, v as SearchBuilder, u as SearchClient, O as SearchEntry, L as SearchFields, K as SearchFilter, B as SearchHitMetadata, y as SearchMode, D as SearchResponse, z as SearchResultItem, M as SearchSort, N as SearchTypeName, g as SendOptions, o as SettingsClient, t as SettingsFetchOptions, x as SimilarBuilder, J as SimilarResponse, I as SimilarResult, n as SingletonClient, s as SingletonFetchOptions, d as TypedClientConfig, T as TypedRelyIOClient, az as UploadProgress, av as WaitUntilReadyOptions, c as createClient, c as default, h as entityTagOf, ae as isAssetEntry, aD as isResourceNotFound, aJ as validateFile } from './index-1G97sNA8.js';
3
3
  export { fields } from './schema/index.js';
4
- import { S as SDKError, B as BaseContent } from './index-yPbhZc6q.js';
5
- export { a as ApiMethod, A as ApiPath, v as ApiResponse, b as ApiSuccessBody, z as BaseValidationError, s as CacheConfig, x as CacheStrategy, i as ContentQueryResult, n as ContentTypeSchema, C as CreateInput, l as CustomQuery, D as DebugConfig, E as Environment, o as FieldOptions, F as FieldTypeName, K as InvalidFieldTypeError, I as InvalidPayloadError, L as LogLevel, M as MatchRouteOptions, P as PerformanceMetrics, Q as QueryOptions, t as RealtimeConfig, q as RealtimeEvent, p as RealtimeEventType, R as RelyIOConfig, u as RequestConfig, J as RequiredFieldError, w as RetryConfig, c as RouteMatch, H as SchemaValidationError, k as SettingsGroup, j as SingletonContent, h as SortOptions, r as SubscriptionOptions, U as UpdateInput, G as ValidationError, V as ValidationRule, y as ValidationViolation, f as WhereClause, e as WhereFieldCondition, g as WhereOperator, d as WhereScalar, W as Wire, m as matchRoute } from './index-yPbhZc6q.js';
4
+ import { S as SDKError, B as BaseContent } from './index-BOQIHnsh.js';
5
+ export { b as ApiMethod, A as ApiPath, v as ApiResponse, c as ApiSuccessBody, z as BaseValidationError, s as CacheConfig, x as CacheStrategy, j as ContentQueryResult, n as ContentTypeSchema, C as CreateInput, l as CustomQuery, D as DebugConfig, E as Environment, o as FieldOptions, F as FieldTypeName, I as InvalidPayloadError, L as LogLevel, M as MatchRouteOptions, P as PerformanceMetrics, Q as QueryOptions, t as RealtimeConfig, q as RealtimeEvent, p as RealtimeEventType, R as RelyIOConfig, a as RelyIOConfigUpdate, u as RequestConfig, w as RetryConfig, d as RouteMatch, k as SingletonContent, i as SortOptions, r as SubscriptionOptions, U as UpdateInput, G as ValidationError, V as ValidationRule, y as ValidationViolation, g as WhereClause, f as WhereFieldCondition, h as WhereOperator, e as WhereScalar, W as Wire, m as matchRoute } from './index-BOQIHnsh.js';
6
6
  export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './utils/index.js';
7
- export { a6 as AggregateBlock, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, a5 as FetchBlock, ag as FilterDefinition, ae as IncludeDefinition, aq as InferQueryParams, ap as InferQueryResponse, a3 as QueryConfig, a4 as QueryDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, a7 as SearchBlock, af as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, a8 as SimilarBlock, ac as SortCondition, a9 as WhereCondition, r as defineComponent, a2 as defineQuery, d as defineSchema, w as defineSettingsGroup } from './define-schema-ChvAzY8H.js';
8
- export { a2 as AssetTypeConfig, a5 as AssetTypeDefinition, n as BaseFieldConfig, K as ContentTypeConfig, M as ContentTypeConfigWithFields, N as ContentTypeConfigWithFieldsets, O as ContentTypeDefinition, P as EntryMetadata, c as FieldDefinition, b as FieldRule, u as FieldSchemaContext, o as FieldType, F as FieldUIConfig, v as FieldValue, w as FieldValues, J as Fieldset, a9 as FileKindConfig, an as FileScanConfig, am as FileUploadConfig, af as ImageExifConfig, a7 as ImageKindConfig, ae as ImageSourceConfig, ad as ImageUploadConfig, a6 as InferAssetType, Q as InferContentType, a0 as InferSingleton, $ as InferSingletonContentType, W as LocalePublicationFields, L as LocalizationConfig, Z as SingletonContentTypeDefinition, _ as SingletonMetadata, z as UnresolvedComponent, y as UnresolvedEntry, ag as VariantDefinition, aj as VideoCaptionsConfig, ak as VideoDownloadConfig, a8 as VideoKindConfig, ai as VideoPosterConfig, ah as VideoUploadConfig, al as VideoWatermarkConfig, a1 as defineAssetType, G as defineContentType, Y as defineSingleton, X as defineSingletonContentType, H as fieldset } from './define-content-type-CDB3kyeA.js';
7
+ import { Q as EntryMetadata } from './define-content-type-DiVpbwNs.js';
8
+ export { a5 as AssetTypeConfig, a9 as AssetTypeDefinition, n as BaseFieldConfig, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, c as FieldDefinition, b as FieldRule, v as FieldSchemaContext, p as FieldType, F as FieldUIConfig, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, ab as ImageKindConfig, ai as ImageSourceConfig, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, L as LocalizationConfig, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, a4 as defineAssetType, H as defineContentType, Z as defineSingleton, Y as defineSingletonContentType, J as fieldset } from './define-content-type-DiVpbwNs.js';
9
+ export { aa as AggregateBlock, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, a9 as FetchBlock, an as FilterDefinition, aj as IncludeDefinition, ax as InferQueryParams, aw as InferQueryResponse, a5 as QueryConfig, a6 as QueryDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, ab as SearchBlock, am as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, ah as SortCondition, ac as WhereCondition, r as defineComponent, a4 as defineQuery, d as defineSchema, w as defineSettingsGroup } from './define-schema-C-5an28C.js';
9
10
  import './dev-handshake/index.js';
10
11
 
11
12
  /**
@@ -279,13 +280,13 @@ declare class ConnectionError extends SDKError {
279
280
  * (`INV-API-CODES-ARE-A-CLOSED-UNION`: a code no route declares is deleted, not
280
281
  * retained). An API key that has expired arrives as `INVALID_API_KEY` with
281
282
  * `details.reason: 'expired'`.
283
+ *
284
+ * `AuthenticationError` was deleted by REL-1471 for the same reason. The
285
+ * vocabulary's two 401 codes are `MISSING_API_KEY` and `INVALID_API_KEY`, and
286
+ * the mapper throws `MissingApiKeyError` and `InvalidApiKeyError` for them —
287
+ * so a generic 401 class had no refusal left to stand for, and nothing
288
+ * constructed it.
282
289
  */
283
- declare class AuthenticationError extends SDKError {
284
- readonly code = "AUTHENTICATION_ERROR";
285
- readonly retryable = false;
286
- constructor(message?: string, statusCode?: number, cause?: Error, context?: Record<string, unknown>);
287
- getUserMessage(): string;
288
- }
289
290
  declare class AuthorizationError extends SDKError {
290
291
  readonly code = "AUTHORIZATION_ERROR";
291
292
  readonly retryable = false;
@@ -508,28 +509,27 @@ declare class ErrorMapper {
508
509
  * })
509
510
  * ```
510
511
  */
512
+
511
513
  /**
512
- * Locale status information from entry metadata
514
+ * One locale an entry has content in, as `_metadata.availableLocales` lists it: the document's
515
+ * `EntryLocale`. `version` is that locale's own counter and is always sent.
513
516
  */
514
- interface LocaleStatus {
515
- code: string;
516
- status: 'published' | 'draft' | 'archived';
517
- version?: number;
518
- publishedAt?: string;
519
- }
517
+ type LocaleStatus = EntryMetadata['availableLocales'][number];
520
518
  /**
521
- * Entry metadata with locale information
519
+ * The locale facts of an entry's `_metadata` that these helpers read — a `Pick` of the document's
520
+ * `EntryMetadata`, so what they read is what a read declares, not a second, looser copy of it.
521
+ * `locale`, `defaultLocale` and `availableLocales` are always sent; `requestedLocale`,
522
+ * `localeFallbacksApplied` and `localizations` only when the request asked for them.
522
523
  */
523
- interface LocaleMetadata {
524
- locale?: string;
525
- requestedLocale?: string;
526
- defaultLocale?: string;
527
- localeFallbacksApplied?: Record<string, string>;
528
- availableLocales?: LocaleStatus[];
529
- localizations?: Record<string, unknown>;
530
- }
524
+ type LocaleMetadata = Pick<EntryMetadata, 'locale' | 'requestedLocale' | 'defaultLocale' | 'localeFallbacksApplied' | 'availableLocales' | 'localizations'>;
531
525
  /**
532
- * Entry with locale metadata
526
+ * Entry with locale metadata: an entry read — single, listed, a child or an expanded reference.
527
+ *
528
+ * Not a search or similar hit: a hit's `_metadata` is the document's `SearchHitMetadata`, which
529
+ * carries no `defaultLocale` or `availableLocales`, so passing one here is a compile error rather
530
+ * than an empty answer. That is what let the helpers below read `availableLocales` without an
531
+ * optional chain (REL-1413); the one on `_metadata` stays because a schema-defined query's row
532
+ * carries `_metadata` only when the query selects it.
533
533
  */
534
534
  interface LocalizedEntry {
535
535
  _metadata?: LocaleMetadata;
@@ -541,7 +541,7 @@ interface LocalizedEntry {
541
541
  interface LanguageSwitcherOption {
542
542
  code: string;
543
543
  label: string;
544
- status: 'published' | 'draft' | 'archived';
544
+ status: LocaleStatus['status'];
545
545
  isCurrent: boolean;
546
546
  isDefault: boolean;
547
547
  hasContent: boolean;
@@ -895,4 +895,4 @@ declare function snapToLadder(value: number): number;
895
895
 
896
896
  declare const VERSION = "__VERSION__";
897
897
 
898
- export { AuthenticationError, AuthorizationError, BaseContent, Change, type ChangeSource, type ChangeSourceOptions, ChangesExpiredError, ChangesExpiredReason, ConnectionError, ErrorMapper, FOLLOW_RETRY_BASE_MS, FOLLOW_RETRY_MAX_MS, type FollowEnd, type FollowOptions, type FollowResync, type FollowState, type FollowVerdict, IMAGE_LADDER, InvalidApiKeyError, type LanguageSwitcherOption, type LanguageSwitcherOptions, type LocaleMetadata, type LocaleStatus, type LocalizedEntry, MethodNotAllowedError, MissingApiKeyError, NetworkError, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, RELYIO_CHANGE_EVENT, RELYIO_RESYNC_EVENT, RateLimitError, ReadOnlyKeyError, type RelyIOChangeDetail, type RelyIOFieldAttributes, type RelyIOFieldName, type RelyIOResyncDetail, SDKError, ServerError, ServiceIndeterminateError, TimeoutError, TransactionRolledBackError, type TranslationCompleteness, UnknownContractError, UsageQuotaExceededError, VERSION, buildLanguageSwitcher, classifyFollowFailure, estimateTranslationCompleteness, followChanges, getAllLocalizedValues, getAvailableLocaleCodes, getDefaultLocale, getFallbackFields, getFieldFallbackLocale, getLocalizedField, getPublishedLocaleCodes, getRequestedLocale, hasLocale, isFieldFallback, isPublishableKey, isPublishedInLocale, localeHelpers, needsTranslation, relyioField, snapToLadder };
898
+ export { AuthorizationError, BaseContent, Change, type ChangeSource, type ChangeSourceOptions, ChangesExpiredError, ChangesExpiredReason, ConnectionError, EntryMetadata, ErrorMapper, FOLLOW_RETRY_BASE_MS, FOLLOW_RETRY_MAX_MS, type FollowEnd, type FollowOptions, type FollowResync, type FollowState, type FollowVerdict, IMAGE_LADDER, InvalidApiKeyError, type LanguageSwitcherOption, type LanguageSwitcherOptions, type LocaleMetadata, type LocaleStatus, type LocalizedEntry, MethodNotAllowedError, MissingApiKeyError, NetworkError, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, RELYIO_CHANGE_EVENT, RELYIO_RESYNC_EVENT, RateLimitError, ReadOnlyKeyError, type RelyIOChangeDetail, type RelyIOFieldAttributes, type RelyIOFieldName, type RelyIOResyncDetail, SDKError, ServerError, ServiceIndeterminateError, TimeoutError, TransactionRolledBackError, type TranslationCompleteness, UnknownContractError, UsageQuotaExceededError, VERSION, buildLanguageSwitcher, classifyFollowFailure, estimateTranslationCompleteness, followChanges, getAllLocalizedValues, getAvailableLocaleCodes, getDefaultLocale, getFallbackFields, getFieldFallbackLocale, getLocalizedField, getPublishedLocaleCodes, getRequestedLocale, hasLocale, isFieldFallback, isPublishableKey, isPublishedInLocale, localeHelpers, needsTranslation, relyioField, snapToLadder };
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- export { defineAssetType, defineComponent, defineContentType, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, fields, fieldset } from './chunk-XJVY2CLY.js';
2
- import { SDKError, serviceInstructedDelayMs, isAborted, sleep } from './chunk-7ABNXVWL.js';
3
- export { AdhocQueryBuilder, AdhocQueryClient, AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthenticationError, AuthorizationError, AutocompleteBuilder, BaseValidationError, BatchBuilder, BatchClient, ChangesExpiredError, ConnectionError, ContentByIdBuilder, ContentClient, ContentQueryBuilder, ErrorMapper, FileUploadError, FileValidationError, HttpClient, InvalidApiKeyError, InvalidFieldTypeError, InvalidPayloadError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError, RequiredFieldError, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, SchemaValidationError, SearchBuilder, SearchClient, ServerError, ServiceIndeterminateError, SettingsClient, SimilarBuilder, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, entityTagOf, isAssetEntry, isResourceNotFound, matchRoute, validateFile } from './chunk-7ABNXVWL.js';
1
+ export { defineAssetType, defineComponent, defineContentType, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, fields, fieldset } from './chunk-YEJUMW4X.js';
2
+ import { SDKError, serviceInstructedDelayMs, isAborted, sleep } from './chunk-GYHAVYND.js';
3
+ export { AdhocQueryBuilder, AdhocQueryClient, AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthorizationError, AutocompleteBuilder, BaseValidationError, BatchBuilder, BatchClient, ChangesExpiredError, ConnectionError, ContentByIdBuilder, ContentClient, ContentQueryBuilder, ErrorMapper, FileUploadError, FileValidationError, HttpClient, InvalidApiKeyError, InvalidPayloadError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, SearchBuilder, SearchClient, ServerError, ServiceIndeterminateError, SettingsClient, SimilarBuilder, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, entityTagOf, isAssetEntry, isResourceNotFound, matchRoute, validateFile } from './chunk-GYHAVYND.js';
4
4
  import './chunk-BBUB7C2Z.js';
5
5
  import './chunk-IY5LSKXU.js';
6
- export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './chunk-I3ESNANB.js';
6
+ export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './chunk-H6IBQSMM.js';
7
7
  import { __name } from './chunk-XQ4QHWZE.js';
8
8
 
9
9
  /* RelyIO SDK - Built with ❤️ by the RelyIO Team */
@@ -136,20 +136,20 @@ function buildLanguageSwitcher(entry, options) {
136
136
  }
137
137
  __name(buildLanguageSwitcher, "buildLanguageSwitcher");
138
138
  function getAvailableLocaleCodes(entry) {
139
- return entry._metadata?.availableLocales?.map((l) => l.code) ?? [];
139
+ return entry._metadata?.availableLocales.map((l) => l.code) ?? [];
140
140
  }
141
141
  __name(getAvailableLocaleCodes, "getAvailableLocaleCodes");
142
142
  var LOCALE_STATUS_PUBLISHED = "published";
143
143
  function getPublishedLocaleCodes(entry) {
144
- return entry._metadata?.availableLocales?.filter((l) => l.status === LOCALE_STATUS_PUBLISHED).map((l) => l.code) ?? [];
144
+ return entry._metadata?.availableLocales.filter((l) => l.status === LOCALE_STATUS_PUBLISHED).map((l) => l.code) ?? [];
145
145
  }
146
146
  __name(getPublishedLocaleCodes, "getPublishedLocaleCodes");
147
147
  function hasLocale(entry, localeCode) {
148
- return entry._metadata?.availableLocales?.some((l) => l.code === localeCode) ?? false;
148
+ return entry._metadata?.availableLocales.some((l) => l.code === localeCode) ?? false;
149
149
  }
150
150
  __name(hasLocale, "hasLocale");
151
151
  function isPublishedInLocale(entry, localeCode) {
152
- return entry._metadata?.availableLocales?.some(
152
+ return entry._metadata?.availableLocales.some(
153
153
  (l) => l.code === localeCode && l.status === LOCALE_STATUS_PUBLISHED
154
154
  ) ?? false;
155
155
  }
@@ -1,145 +1,145 @@
1
1
  'use strict';
2
2
 
3
- var chunkDY2XT7OF_cjs = require('../chunk-DY2XT7OF.cjs');
3
+ var chunk72UK5U7T_cjs = require('../chunk-72UK5U7T.cjs');
4
4
  require('../chunk-MWMSFIWN.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "BUILT_IN_ROLES", {
9
9
  enumerable: true,
10
- get: function () { return chunkDY2XT7OF_cjs.BUILT_IN_ROLES; }
10
+ get: function () { return chunk72UK5U7T_cjs.BUILT_IN_ROLES; }
11
11
  });
12
12
  Object.defineProperty(exports, "BUILT_IN_ROLE_ACTIONS", {
13
13
  enumerable: true,
14
- get: function () { return chunkDY2XT7OF_cjs.BUILT_IN_ROLE_ACTIONS; }
14
+ get: function () { return chunk72UK5U7T_cjs.BUILT_IN_ROLE_ACTIONS; }
15
15
  });
16
16
  Object.defineProperty(exports, "ROLE_ACTIONS", {
17
17
  enumerable: true,
18
- get: function () { return chunkDY2XT7OF_cjs.ROLE_ACTIONS; }
18
+ get: function () { return chunk72UK5U7T_cjs.ROLE_ACTIONS; }
19
19
  });
20
20
  Object.defineProperty(exports, "buildFallbackChain", {
21
21
  enumerable: true,
22
- get: function () { return chunkDY2XT7OF_cjs.buildFallbackChain; }
22
+ get: function () { return chunk72UK5U7T_cjs.buildFallbackChain; }
23
23
  });
24
24
  Object.defineProperty(exports, "defineAssetType", {
25
25
  enumerable: true,
26
- get: function () { return chunkDY2XT7OF_cjs.defineAssetType; }
26
+ get: function () { return chunk72UK5U7T_cjs.defineAssetType; }
27
27
  });
28
28
  Object.defineProperty(exports, "defineComponent", {
29
29
  enumerable: true,
30
- get: function () { return chunkDY2XT7OF_cjs.defineComponent; }
30
+ get: function () { return chunk72UK5U7T_cjs.defineComponent; }
31
31
  });
32
32
  Object.defineProperty(exports, "defineContentType", {
33
33
  enumerable: true,
34
- get: function () { return chunkDY2XT7OF_cjs.defineContentType; }
34
+ get: function () { return chunk72UK5U7T_cjs.defineContentType; }
35
35
  });
36
36
  Object.defineProperty(exports, "defineContentTypeWorkflow", {
37
37
  enumerable: true,
38
- get: function () { return chunkDY2XT7OF_cjs.defineContentTypeWorkflow; }
38
+ get: function () { return chunk72UK5U7T_cjs.defineContentTypeWorkflow; }
39
39
  });
40
40
  Object.defineProperty(exports, "defineLocale", {
41
41
  enumerable: true,
42
- get: function () { return chunkDY2XT7OF_cjs.defineLocale; }
42
+ get: function () { return chunk72UK5U7T_cjs.defineLocale; }
43
43
  });
44
44
  Object.defineProperty(exports, "defineQuery", {
45
45
  enumerable: true,
46
- get: function () { return chunkDY2XT7OF_cjs.defineQuery; }
46
+ get: function () { return chunk72UK5U7T_cjs.defineQuery; }
47
47
  });
48
48
  Object.defineProperty(exports, "defineRole", {
49
49
  enumerable: true,
50
- get: function () { return chunkDY2XT7OF_cjs.defineRole; }
50
+ get: function () { return chunk72UK5U7T_cjs.defineRole; }
51
51
  });
52
52
  Object.defineProperty(exports, "defineSchema", {
53
53
  enumerable: true,
54
- get: function () { return chunkDY2XT7OF_cjs.defineSchema; }
54
+ get: function () { return chunk72UK5U7T_cjs.defineSchema; }
55
55
  });
56
56
  Object.defineProperty(exports, "defineSettingsGroup", {
57
57
  enumerable: true,
58
- get: function () { return chunkDY2XT7OF_cjs.defineSettingsGroup; }
58
+ get: function () { return chunk72UK5U7T_cjs.defineSettingsGroup; }
59
59
  });
60
60
  Object.defineProperty(exports, "defineSingleton", {
61
61
  enumerable: true,
62
- get: function () { return chunkDY2XT7OF_cjs.defineSingleton; }
62
+ get: function () { return chunk72UK5U7T_cjs.defineSingleton; }
63
63
  });
64
64
  Object.defineProperty(exports, "defineSingletonContentType", {
65
65
  enumerable: true,
66
- get: function () { return chunkDY2XT7OF_cjs.defineSingletonContentType; }
66
+ get: function () { return chunk72UK5U7T_cjs.defineSingletonContentType; }
67
67
  });
68
68
  Object.defineProperty(exports, "defineView", {
69
69
  enumerable: true,
70
- get: function () { return chunkDY2XT7OF_cjs.defineView; }
70
+ get: function () { return chunk72UK5U7T_cjs.defineView; }
71
71
  });
72
72
  Object.defineProperty(exports, "defineWorkflow", {
73
73
  enumerable: true,
74
- get: function () { return chunkDY2XT7OF_cjs.defineWorkflow; }
74
+ get: function () { return chunk72UK5U7T_cjs.defineWorkflow; }
75
75
  });
76
76
  Object.defineProperty(exports, "defineWorkflowStage", {
77
77
  enumerable: true,
78
- get: function () { return chunkDY2XT7OF_cjs.defineWorkflowStage; }
78
+ get: function () { return chunk72UK5U7T_cjs.defineWorkflowStage; }
79
79
  });
80
80
  Object.defineProperty(exports, "fields", {
81
81
  enumerable: true,
82
- get: function () { return chunkDY2XT7OF_cjs.fields; }
82
+ get: function () { return chunk72UK5U7T_cjs.fields; }
83
83
  });
84
84
  Object.defineProperty(exports, "fieldset", {
85
85
  enumerable: true,
86
- get: function () { return chunkDY2XT7OF_cjs.fieldset; }
86
+ get: function () { return chunk72UK5U7T_cjs.fieldset; }
87
87
  });
88
88
  Object.defineProperty(exports, "findDefaultLocale", {
89
89
  enumerable: true,
90
- get: function () { return chunkDY2XT7OF_cjs.findDefaultLocale; }
90
+ get: function () { return chunk72UK5U7T_cjs.findDefaultLocale; }
91
91
  });
92
92
  Object.defineProperty(exports, "findWorkflowStage", {
93
93
  enumerable: true,
94
- get: function () { return chunkDY2XT7OF_cjs.findWorkflowStage; }
94
+ get: function () { return chunk72UK5U7T_cjs.findWorkflowStage; }
95
95
  });
96
96
  Object.defineProperty(exports, "getActiveLocales", {
97
97
  enumerable: true,
98
- get: function () { return chunkDY2XT7OF_cjs.getActiveLocales; }
98
+ get: function () { return chunk72UK5U7T_cjs.getActiveLocales; }
99
99
  });
100
100
  Object.defineProperty(exports, "getBuiltInRoleActions", {
101
101
  enumerable: true,
102
- get: function () { return chunkDY2XT7OF_cjs.getBuiltInRoleActions; }
102
+ get: function () { return chunk72UK5U7T_cjs.getBuiltInRoleActions; }
103
103
  });
104
104
  Object.defineProperty(exports, "getFirstWorkflowStage", {
105
105
  enumerable: true,
106
- get: function () { return chunkDY2XT7OF_cjs.getFirstWorkflowStage; }
106
+ get: function () { return chunk72UK5U7T_cjs.getFirstWorkflowStage; }
107
107
  });
108
108
  Object.defineProperty(exports, "getLocaleCodes", {
109
109
  enumerable: true,
110
- get: function () { return chunkDY2XT7OF_cjs.getLocaleCodes; }
110
+ get: function () { return chunk72UK5U7T_cjs.getLocaleCodes; }
111
111
  });
112
112
  Object.defineProperty(exports, "getNextWorkflowStage", {
113
113
  enumerable: true,
114
- get: function () { return chunkDY2XT7OF_cjs.getNextWorkflowStage; }
114
+ get: function () { return chunk72UK5U7T_cjs.getNextWorkflowStage; }
115
115
  });
116
116
  Object.defineProperty(exports, "getWorkflowStageIds", {
117
117
  enumerable: true,
118
- get: function () { return chunkDY2XT7OF_cjs.getWorkflowStageIds; }
118
+ get: function () { return chunk72UK5U7T_cjs.getWorkflowStageIds; }
119
119
  });
120
120
  Object.defineProperty(exports, "isBuiltInRole", {
121
121
  enumerable: true,
122
- get: function () { return chunkDY2XT7OF_cjs.isBuiltInRole; }
122
+ get: function () { return chunk72UK5U7T_cjs.isBuiltInRole; }
123
123
  });
124
124
  Object.defineProperty(exports, "isFinalWorkflowStage", {
125
125
  enumerable: true,
126
- get: function () { return chunkDY2XT7OF_cjs.isFinalWorkflowStage; }
126
+ get: function () { return chunk72UK5U7T_cjs.isFinalWorkflowStage; }
127
127
  });
128
128
  Object.defineProperty(exports, "isLocaleDefinition", {
129
129
  enumerable: true,
130
- get: function () { return chunkDY2XT7OF_cjs.isLocaleDefinition; }
130
+ get: function () { return chunk72UK5U7T_cjs.isLocaleDefinition; }
131
131
  });
132
132
  Object.defineProperty(exports, "isRoleDefinition", {
133
133
  enumerable: true,
134
- get: function () { return chunkDY2XT7OF_cjs.isRoleDefinition; }
134
+ get: function () { return chunk72UK5U7T_cjs.isRoleDefinition; }
135
135
  });
136
136
  Object.defineProperty(exports, "isWorkflowDefinition", {
137
137
  enumerable: true,
138
- get: function () { return chunkDY2XT7OF_cjs.isWorkflowDefinition; }
138
+ get: function () { return chunk72UK5U7T_cjs.isWorkflowDefinition; }
139
139
  });
140
140
  Object.defineProperty(exports, "isWorkflowStageDefinition", {
141
141
  enumerable: true,
142
- get: function () { return chunkDY2XT7OF_cjs.isWorkflowStageDefinition; }
142
+ get: function () { return chunk72UK5U7T_cjs.isWorkflowStageDefinition; }
143
143
  });
144
144
  //# sourceMappingURL=index.cjs.map
145
145
  //# sourceMappingURL=index.cjs.map
@@ -1,6 +1,6 @@
1
- export { a6 as AggregateBlock, X as AllScopeConfig, F as BUILT_IN_ROLES, G as BUILT_IN_ROLE_ACTIONS, H as BuiltInRole, ah as CachePolicy, ai as CachePolicyObject, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, u as ComponentReusabilityMetadata, v as ComponentValidationMetadata, Q as ContentTypeScopeConfig, U as ContentTypesScopeConfig, W as EntryTypeScopeConfig, a5 as FetchBlock, M as FieldVisibility, ag as FilterDefinition, ae as IncludeDefinition, ak as IncludeSubQueries, aj as IncludeSubQuery, aq as InferQueryParams, ap as InferQueryResponse, I as InferSettingsGroup, q as LocaleDefinition, L as LocaleOptions, al as Parameterizable, ao as QueryCardinality, a3 as QueryConfig, a4 as QueryDefinition, am as QueryParameter, an as QueryParameterType, R as ROLE_ACTIONS, K as ResourcePermission, J as RoleAction, N as RoleConfig, O as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, a7 as SearchBlock, af as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, z as SettingsGroupMetadata, a8 as SimilarBlock, ac as SortCondition, ad as SortDirection, T as TextDirection, a0 as ViewConfig, a1 as ViewDefinition, $ as ViewFilter, Z as ViewFilterCondition, _ as ViewFilterGroup, Y as ViewFilterOperator, V as ViewScopeConfig, a9 as WhereCondition, ab as WhereOperator, aa as WhereValue, p as buildFallbackChain, r as defineComponent, k as defineLocale, a2 as defineQuery, A as defineRole, d as defineSchema, w as defineSettingsGroup, P as defineView, n as findDefaultLocale, o as getActiveLocales, E as getBuiltInRoleActions, m as getLocaleCodes, D as isBuiltInRole, l as isLocaleDefinition, B as isRoleDefinition } from '../define-schema-1kr2HIzN.cjs';
2
- import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, A as AnyFieldDefinition, j as ListConfig, k as AIConfig, l as AllFieldTypes, m as AssetAIConfig, n as BaseFieldConfig, C as ComponentFieldType, o as FieldType, p as ReadOnlyRule, q as RequirementRule, r as RuleCondition, s as RuleConditions, V as ValidationRule, t as VisibilityRule } from '../define-content-type-CDB3kyeA.cjs';
3
- export { a2 as AssetTypeConfig, a3 as AssetTypeConfigWithFields, a4 as AssetTypeConfigWithFieldsets, a5 as AssetTypeDefinition, K as ContentTypeConfig, M as ContentTypeConfigWithFields, N as ContentTypeConfigWithFieldsets, O as ContentTypeDefinition, aE as ContentTypeWorkflowConfig, x as DeclaredFields, P as EntryMetadata, u as FieldSchemaContext, v as FieldValue, w as FieldValues, J as Fieldset, a9 as FileKindConfig, an as FileScanConfig, am as FileUploadConfig, af as ImageExifConfig, ab as ImageFitMode, a7 as ImageKindConfig, ac as ImageOutputFormat, ae as ImageSourceConfig, aa as ImageTransform, ad as ImageUploadConfig, a6 as InferAssetType, Q as InferContentType, a0 as InferSingleton, $ as InferSingletonContentType, W as LocalePublicationFields, Z as SingletonContentTypeDefinition, _ as SingletonMetadata, z as UnresolvedComponent, y as UnresolvedEntry, ag as VariantDefinition, aj as VideoCaptionsConfig, ak as VideoDownloadConfig, a8 as VideoKindConfig, ai as VideoPosterConfig, ah as VideoUploadConfig, al as VideoWatermarkConfig, az as WorkflowAutoAssign, aC as WorkflowConfig, aD as WorkflowDefinition, ay as WorkflowEscalation, aA as WorkflowStageConfig, aB as WorkflowStageDefinition, a1 as defineAssetType, G as defineContentType, aq as defineContentTypeWorkflow, Y as defineSingleton, X as defineSingletonContentType, ao as defineWorkflow, ap as defineWorkflowStage, H as fieldset, au as findWorkflowStage, aw as getFirstWorkflowStage, av as getNextWorkflowStage, at as getWorkflowStageIds, ax as isFinalWorkflowStage, ar as isWorkflowDefinition, as as isWorkflowStageDefinition } from '../define-content-type-CDB3kyeA.cjs';
1
+ export { aa as AggregateBlock, X as AllScopeConfig, F as BUILT_IN_ROLES, G as BUILT_IN_ROLE_ACTIONS, H as BuiltInRole, ao as CachePolicy, ap as CachePolicyObject, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, u as ComponentReusabilityMetadata, v as ComponentValidationMetadata, Q as ContentTypeScopeConfig, U as ContentTypesScopeConfig, W as EntryTypeScopeConfig, a9 as FetchBlock, M as FieldVisibility, an as FilterDefinition, a8 as FullTextSearch, af as HavingOperator, aj as IncludeDefinition, ak as IncludeRelationship, al as IncludeSelection, ar as IncludeSubQueries, aq as IncludeSubQuery, ax as InferQueryParams, aw as InferQueryResponse, I as InferSettingsGroup, q as LocaleDefinition, L as LocaleOptions, as as Parameterizable, av as QueryCardinality, a5 as QueryConfig, a6 as QueryDefinition, at as QueryParameter, au as QueryParameterType, ag as QueryScalar, a7 as QueryType, R as ROLE_ACTIONS, K as ResourcePermission, J as RoleAction, N as RoleConfig, O as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, ab as SearchBlock, am as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, z as SettingsGroupMetadata, ah as SortCondition, ai as SortDirection, T as TextDirection, a2 as ViewConfig, a3 as ViewDefinition, a1 as ViewFilter, $ as ViewFilterCondition, a0 as ViewFilterGroup, Y as ViewFilterOperator, _ as ViewFilterRelativeDate, Z as ViewFilterValue, V as ViewScopeConfig, ac as WhereCondition, ae as WhereOperator, ad as WhereValue, p as buildFallbackChain, r as defineComponent, k as defineLocale, a4 as defineQuery, A as defineRole, d as defineSchema, w as defineSettingsGroup, P as defineView, n as findDefaultLocale, o as getActiveLocales, E as getBuiltInRoleActions, m as getLocaleCodes, D as isBuiltInRole, l as isLocaleDefinition, B as isRoleDefinition } from '../define-schema-D7MButVt.cjs';
2
+ import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, A as AnyFieldDefinition, j as ListConfig, C as ComponentFieldConfig, k as AIConfig, l as AllFieldTypes, m as AssetAIConfig, n as BaseFieldConfig, o as ComponentFieldType, p as FieldType, q as ReadOnlyRule, r as RequirementRule, s as RuleCondition, t as RuleConditions, V as ValidationRule, u as VisibilityRule } from '../define-content-type-DiVpbwNs.cjs';
3
+ export { a5 as AssetTypeConfig, a6 as AssetTypeConfigWithFields, a7 as AssetTypeConfigWithFieldsets, a8 as AssetTypeConfigWithoutFields, a9 as AssetTypeDefinition, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, aI as ContentTypeWorkflowConfig, y as DeclaredFields, Q as EntryMetadata, v as FieldSchemaContext, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, af as ImageFitMode, ab as ImageKindConfig, ag as ImageOutputFormat, ai as ImageSourceConfig, ae as ImageTransform, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, _ as SingletonConfigWithFields, $ as SingletonConfigWithFieldsets, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, aD as WorkflowAutoAssign, aG as WorkflowConfig, aH as WorkflowDefinition, aC as WorkflowEscalation, aE as WorkflowStageConfig, aF as WorkflowStageDefinition, a4 as defineAssetType, H as defineContentType, au as defineContentTypeWorkflow, Z as defineSingleton, Y as defineSingletonContentType, as as defineWorkflow, at as defineWorkflowStage, J as fieldset, ay as findWorkflowStage, aA as getFirstWorkflowStage, az as getNextWorkflowStage, ax as getWorkflowStageIds, aB as isFinalWorkflowStage, av as isWorkflowDefinition, aw as isWorkflowStageDefinition } from '../define-content-type-DiVpbwNs.cjs';
4
4
 
5
5
  /**
6
6
  * Field builders for defining schema fields
@@ -41,7 +41,7 @@ declare function shortText<TId extends string>(id: TId, options?: FieldOptions<S
41
41
  declare function longText<TId extends string>(id: TId, options?: FieldOptions<LongTextConfig>): FieldDefinition<TId, 'longText', LongTextConfig>;
42
42
  /**
43
43
  * Rich text field with formatting
44
- * @example fields.richText('content', { config: { allowedMarks: ['bold', 'italic'] } })
44
+ * @example fields.richText('content', { config: { allowedFormats: ['bold', 'italic'] } })
45
45
  */
46
46
  declare function richText<TId extends string>(id: TId, options?: FieldOptions<RichTextConfig>): FieldDefinition<TId, 'richText', RichTextConfig>;
47
47
  /**
@@ -92,8 +92,8 @@ declare function enumField<TId extends string, TValue extends string = string, T
92
92
  */
93
93
  declare function date<TId extends string>(id: TId, options?: FieldOptions<DateConfig>): FieldDefinition<TId, 'date', DateConfig>;
94
94
  /**
95
- * DateTime field with optional timezone
96
- * @example fields.dateTime('createdAt', { config: { timezone: true } })
95
+ * DateTime field, stored in UTC or in the author's local time
96
+ * @example fields.dateTime('createdAt', { config: { timeZoneHandling: 'UTC' } })
97
97
  */
98
98
  declare function dateTime<TId extends string>(id: TId, options?: FieldOptions<DateTimeConfig>): FieldDefinition<TId, 'dateTime', DateTimeConfig>;
99
99
  /**
@@ -125,8 +125,9 @@ declare function list<TId extends string, TSubfields extends readonly AnyFieldDe
125
125
  /**
126
126
  * Component field (reusable field group)
127
127
  * @example fields.component('seo', 'seoMetadata')
128
+ * @example fields.component('seo', 'seoMetadata', { config: { required: true } })
128
129
  */
129
- declare function component<TId extends string, TComponentId extends string>(id: TId, componentId: TComponentId, options?: Omit<FieldOptions<undefined>, 'config'>): FieldDefinition<TId, `component(${TComponentId})`, undefined>;
130
+ declare function component<TId extends string, TComponentId extends string>(id: TId, componentId: TComponentId, options?: FieldOptions<ComponentFieldConfig>): FieldDefinition<TId, `component(${TComponentId})`, ComponentFieldConfig>;
130
131
 
131
132
  /**
132
133
  * Field builders for defining schema fields
@@ -148,6 +149,7 @@ declare const fieldBuilders_AnyFieldDefinition: typeof AnyFieldDefinition;
148
149
  declare const fieldBuilders_AssetAIConfig: typeof AssetAIConfig;
149
150
  declare const fieldBuilders_BaseFieldConfig: typeof BaseFieldConfig;
150
151
  declare const fieldBuilders_BooleanConfig: typeof BooleanConfig;
152
+ declare const fieldBuilders_ComponentFieldConfig: typeof ComponentFieldConfig;
151
153
  declare const fieldBuilders_ComponentFieldType: typeof ComponentFieldType;
152
154
  declare const fieldBuilders_DateConfig: typeof DateConfig;
153
155
  declare const fieldBuilders_DateTimeConfig: typeof DateTimeConfig;
@@ -191,7 +193,7 @@ declare const fieldBuilders_slug: typeof slug;
191
193
  declare const fieldBuilders_tags: typeof tags;
192
194
  declare const fieldBuilders_url: typeof url;
193
195
  declare namespace fieldBuilders {
194
- export { fieldBuilders_AIConfig as AIConfig, fieldBuilders_AllFieldTypes as AllFieldTypes, fieldBuilders_AnyFieldDefinition as AnyFieldDefinition, fieldBuilders_AssetAIConfig as AssetAIConfig, fieldBuilders_BaseFieldConfig as BaseFieldConfig, fieldBuilders_BooleanConfig as BooleanConfig, fieldBuilders_ComponentFieldType as ComponentFieldType, fieldBuilders_DateConfig as DateConfig, fieldBuilders_DateTimeConfig as DateTimeConfig, fieldBuilders_DecimalConfig as DecimalConfig, fieldBuilders_EmailConfig as EmailConfig, fieldBuilders_EnumConfig as EnumConfig, fieldBuilders_FieldAIConfig as FieldAIConfig, fieldBuilders_FieldDefinition as FieldDefinition, fieldBuilders_FieldRule as FieldRule, fieldBuilders_FieldType as FieldType, fieldBuilders_FieldUIConfig as FieldUIConfig, fieldBuilders_IntegerConfig as IntegerConfig, fieldBuilders_ListConfig as ListConfig, fieldBuilders_LocalizationConfig as LocalizationConfig, fieldBuilders_LongTextConfig as LongTextConfig, fieldBuilders_ReadOnlyRule as ReadOnlyRule, fieldBuilders_ReferenceConfig as ReferenceConfig, fieldBuilders_RequirementRule as RequirementRule, fieldBuilders_RichTextConfig as RichTextConfig, fieldBuilders_RuleCondition as RuleCondition, fieldBuilders_RuleConditions as RuleConditions, fieldBuilders_ShortTextConfig as ShortTextConfig, fieldBuilders_SlugConfig as SlugConfig, fieldBuilders_TagsConfig as TagsConfig, fieldBuilders_UrlConfig as UrlConfig, fieldBuilders_ValidationRule as ValidationRule, fieldBuilders_VisibilityRule as VisibilityRule, fieldBuilders_boolean as boolean, fieldBuilders_component as component, fieldBuilders_date as date, fieldBuilders_dateTime as dateTime, fieldBuilders_decimal as decimal, fieldBuilders_email as email, enumField as enum, fieldBuilders_integer as integer, fieldBuilders_list as list, fieldBuilders_longText as longText, fieldBuilders_reference as reference, fieldBuilders_richText as richText, fieldBuilders_shortText as shortText, fieldBuilders_slug as slug, fieldBuilders_tags as tags, fieldBuilders_url as url };
196
+ export { fieldBuilders_AIConfig as AIConfig, fieldBuilders_AllFieldTypes as AllFieldTypes, fieldBuilders_AnyFieldDefinition as AnyFieldDefinition, fieldBuilders_AssetAIConfig as AssetAIConfig, fieldBuilders_BaseFieldConfig as BaseFieldConfig, fieldBuilders_BooleanConfig as BooleanConfig, fieldBuilders_ComponentFieldConfig as ComponentFieldConfig, fieldBuilders_ComponentFieldType as ComponentFieldType, fieldBuilders_DateConfig as DateConfig, fieldBuilders_DateTimeConfig as DateTimeConfig, fieldBuilders_DecimalConfig as DecimalConfig, fieldBuilders_EmailConfig as EmailConfig, fieldBuilders_EnumConfig as EnumConfig, fieldBuilders_FieldAIConfig as FieldAIConfig, fieldBuilders_FieldDefinition as FieldDefinition, fieldBuilders_FieldRule as FieldRule, fieldBuilders_FieldType as FieldType, fieldBuilders_FieldUIConfig as FieldUIConfig, fieldBuilders_IntegerConfig as IntegerConfig, fieldBuilders_ListConfig as ListConfig, fieldBuilders_LocalizationConfig as LocalizationConfig, fieldBuilders_LongTextConfig as LongTextConfig, fieldBuilders_ReadOnlyRule as ReadOnlyRule, fieldBuilders_ReferenceConfig as ReferenceConfig, fieldBuilders_RequirementRule as RequirementRule, fieldBuilders_RichTextConfig as RichTextConfig, fieldBuilders_RuleCondition as RuleCondition, fieldBuilders_RuleConditions as RuleConditions, fieldBuilders_ShortTextConfig as ShortTextConfig, fieldBuilders_SlugConfig as SlugConfig, fieldBuilders_TagsConfig as TagsConfig, fieldBuilders_UrlConfig as UrlConfig, fieldBuilders_ValidationRule as ValidationRule, fieldBuilders_VisibilityRule as VisibilityRule, fieldBuilders_boolean as boolean, fieldBuilders_component as component, fieldBuilders_date as date, fieldBuilders_dateTime as dateTime, fieldBuilders_decimal as decimal, fieldBuilders_email as email, enumField as enum, fieldBuilders_integer as integer, fieldBuilders_list as list, fieldBuilders_longText as longText, fieldBuilders_reference as reference, fieldBuilders_richText as richText, fieldBuilders_shortText as shortText, fieldBuilders_slug as slug, fieldBuilders_tags as tags, fieldBuilders_url as url };
195
197
  }
196
198
 
197
199
  /**
@@ -209,8 +211,8 @@ declare namespace fieldBuilders {
209
211
  * displayName: 'Product',
210
212
  * fields: [
211
213
  * fields.shortText('title', { config: { required: true, maxLength: 200 } }),
212
- * fields.currency('price', { config: { currencyCode: 'USD', min: 0 } }),
213
- * fields.reference('category', { config: { contentType: 'category' } }),
214
+ * fields.decimal('price', { config: { min: 0, decimalPlaces: 2 } }),
215
+ * fields.reference('category', { config: { to: 'category' } }),
214
216
  * ]
215
217
  * })
216
218
  *
@@ -225,4 +227,4 @@ declare namespace fieldBuilders {
225
227
 
226
228
  declare const fields: typeof fieldBuilders;
227
229
 
228
- export { AIConfig, AllFieldTypes, AssetAIConfig, BaseFieldConfig, BooleanConfig, ComponentFieldType, DateConfig, DateTimeConfig, DecimalConfig, EmailConfig, EnumConfig, FieldAIConfig, FieldDefinition, FieldRule, FieldType, FieldUIConfig, IntegerConfig, ListConfig, LocalizationConfig, LongTextConfig, ReadOnlyRule, ReferenceConfig, RequirementRule, RichTextConfig, RuleCondition, RuleConditions, ShortTextConfig, SlugConfig, TagsConfig, UrlConfig, ValidationRule, VisibilityRule, fields };
230
+ export { AIConfig, AllFieldTypes, AssetAIConfig, BaseFieldConfig, BooleanConfig, ComponentFieldConfig, ComponentFieldType, DateConfig, DateTimeConfig, DecimalConfig, EmailConfig, EnumConfig, FieldAIConfig, FieldDefinition, FieldRule, FieldType, FieldUIConfig, IntegerConfig, ListConfig, LocalizationConfig, LongTextConfig, ReadOnlyRule, ReferenceConfig, RequirementRule, RichTextConfig, RuleCondition, RuleConditions, ShortTextConfig, SlugConfig, TagsConfig, UrlConfig, ValidationRule, VisibilityRule, fields };
@@ -1,6 +1,6 @@
1
- export { a6 as AggregateBlock, X as AllScopeConfig, F as BUILT_IN_ROLES, G as BUILT_IN_ROLE_ACTIONS, H as BuiltInRole, ah as CachePolicy, ai as CachePolicyObject, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, u as ComponentReusabilityMetadata, v as ComponentValidationMetadata, Q as ContentTypeScopeConfig, U as ContentTypesScopeConfig, W as EntryTypeScopeConfig, a5 as FetchBlock, M as FieldVisibility, ag as FilterDefinition, ae as IncludeDefinition, ak as IncludeSubQueries, aj as IncludeSubQuery, aq as InferQueryParams, ap as InferQueryResponse, I as InferSettingsGroup, q as LocaleDefinition, L as LocaleOptions, al as Parameterizable, ao as QueryCardinality, a3 as QueryConfig, a4 as QueryDefinition, am as QueryParameter, an as QueryParameterType, R as ROLE_ACTIONS, K as ResourcePermission, J as RoleAction, N as RoleConfig, O as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, a7 as SearchBlock, af as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, z as SettingsGroupMetadata, a8 as SimilarBlock, ac as SortCondition, ad as SortDirection, T as TextDirection, a0 as ViewConfig, a1 as ViewDefinition, $ as ViewFilter, Z as ViewFilterCondition, _ as ViewFilterGroup, Y as ViewFilterOperator, V as ViewScopeConfig, a9 as WhereCondition, ab as WhereOperator, aa as WhereValue, p as buildFallbackChain, r as defineComponent, k as defineLocale, a2 as defineQuery, A as defineRole, d as defineSchema, w as defineSettingsGroup, P as defineView, n as findDefaultLocale, o as getActiveLocales, E as getBuiltInRoleActions, m as getLocaleCodes, D as isBuiltInRole, l as isLocaleDefinition, B as isRoleDefinition } from '../define-schema-ChvAzY8H.js';
2
- import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, A as AnyFieldDefinition, j as ListConfig, k as AIConfig, l as AllFieldTypes, m as AssetAIConfig, n as BaseFieldConfig, C as ComponentFieldType, o as FieldType, p as ReadOnlyRule, q as RequirementRule, r as RuleCondition, s as RuleConditions, V as ValidationRule, t as VisibilityRule } from '../define-content-type-CDB3kyeA.js';
3
- export { a2 as AssetTypeConfig, a3 as AssetTypeConfigWithFields, a4 as AssetTypeConfigWithFieldsets, a5 as AssetTypeDefinition, K as ContentTypeConfig, M as ContentTypeConfigWithFields, N as ContentTypeConfigWithFieldsets, O as ContentTypeDefinition, aE as ContentTypeWorkflowConfig, x as DeclaredFields, P as EntryMetadata, u as FieldSchemaContext, v as FieldValue, w as FieldValues, J as Fieldset, a9 as FileKindConfig, an as FileScanConfig, am as FileUploadConfig, af as ImageExifConfig, ab as ImageFitMode, a7 as ImageKindConfig, ac as ImageOutputFormat, ae as ImageSourceConfig, aa as ImageTransform, ad as ImageUploadConfig, a6 as InferAssetType, Q as InferContentType, a0 as InferSingleton, $ as InferSingletonContentType, W as LocalePublicationFields, Z as SingletonContentTypeDefinition, _ as SingletonMetadata, z as UnresolvedComponent, y as UnresolvedEntry, ag as VariantDefinition, aj as VideoCaptionsConfig, ak as VideoDownloadConfig, a8 as VideoKindConfig, ai as VideoPosterConfig, ah as VideoUploadConfig, al as VideoWatermarkConfig, az as WorkflowAutoAssign, aC as WorkflowConfig, aD as WorkflowDefinition, ay as WorkflowEscalation, aA as WorkflowStageConfig, aB as WorkflowStageDefinition, a1 as defineAssetType, G as defineContentType, aq as defineContentTypeWorkflow, Y as defineSingleton, X as defineSingletonContentType, ao as defineWorkflow, ap as defineWorkflowStage, H as fieldset, au as findWorkflowStage, aw as getFirstWorkflowStage, av as getNextWorkflowStage, at as getWorkflowStageIds, ax as isFinalWorkflowStage, ar as isWorkflowDefinition, as as isWorkflowStageDefinition } from '../define-content-type-CDB3kyeA.js';
1
+ export { aa as AggregateBlock, X as AllScopeConfig, F as BUILT_IN_ROLES, G as BUILT_IN_ROLE_ACTIONS, H as BuiltInRole, ao as CachePolicy, ap as CachePolicyObject, C as ComponentConfig, s as ComponentDefinition, t as ComponentMetadata, u as ComponentReusabilityMetadata, v as ComponentValidationMetadata, Q as ContentTypeScopeConfig, U as ContentTypesScopeConfig, W as EntryTypeScopeConfig, a9 as FetchBlock, M as FieldVisibility, an as FilterDefinition, a8 as FullTextSearch, af as HavingOperator, aj as IncludeDefinition, ak as IncludeRelationship, al as IncludeSelection, ar as IncludeSubQueries, aq as IncludeSubQuery, ax as InferQueryParams, aw as InferQueryResponse, I as InferSettingsGroup, q as LocaleDefinition, L as LocaleOptions, as as Parameterizable, av as QueryCardinality, a5 as QueryConfig, a6 as QueryDefinition, at as QueryParameter, au as QueryParameterType, ag as QueryScalar, a7 as QueryType, R as ROLE_ACTIONS, K as ResourcePermission, J as RoleAction, N as RoleConfig, O as RoleDefinition, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, i as SchemaEntry, j as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, ab as SearchBlock, am as SelectMapping, x as SettingsGroupConfig, y as SettingsGroupDefinition, z as SettingsGroupMetadata, ah as SortCondition, ai as SortDirection, T as TextDirection, a2 as ViewConfig, a3 as ViewDefinition, a1 as ViewFilter, $ as ViewFilterCondition, a0 as ViewFilterGroup, Y as ViewFilterOperator, _ as ViewFilterRelativeDate, Z as ViewFilterValue, V as ViewScopeConfig, ac as WhereCondition, ae as WhereOperator, ad as WhereValue, p as buildFallbackChain, r as defineComponent, k as defineLocale, a4 as defineQuery, A as defineRole, d as defineSchema, w as defineSettingsGroup, P as defineView, n as findDefaultLocale, o as getActiveLocales, E as getBuiltInRoleActions, m as getLocaleCodes, D as isBuiltInRole, l as isLocaleDefinition, B as isRoleDefinition } from '../define-schema-C-5an28C.js';
2
+ import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, A as AnyFieldDefinition, j as ListConfig, C as ComponentFieldConfig, k as AIConfig, l as AllFieldTypes, m as AssetAIConfig, n as BaseFieldConfig, o as ComponentFieldType, p as FieldType, q as ReadOnlyRule, r as RequirementRule, s as RuleCondition, t as RuleConditions, V as ValidationRule, u as VisibilityRule } from '../define-content-type-DiVpbwNs.js';
3
+ export { a5 as AssetTypeConfig, a6 as AssetTypeConfigWithFields, a7 as AssetTypeConfigWithFieldsets, a8 as AssetTypeConfigWithoutFields, a9 as AssetTypeDefinition, M as ContentTypeConfig, N as ContentTypeConfigWithFields, O as ContentTypeConfigWithFieldsets, P as ContentTypeDefinition, aI as ContentTypeWorkflowConfig, y as DeclaredFields, Q as EntryMetadata, v as FieldSchemaContext, w as FieldValue, x as FieldValues, K as Fieldset, ad as FileKindConfig, ar as FileScanConfig, aq as FileUploadConfig, aj as ImageExifConfig, af as ImageFitMode, ab as ImageKindConfig, ag as ImageOutputFormat, ai as ImageSourceConfig, ae as ImageTransform, ah as ImageUploadConfig, aa as InferAssetType, W as InferContentType, a3 as InferSingleton, a2 as InferSingletonContentType, X as LocalePublicationFields, _ as SingletonConfigWithFields, $ as SingletonConfigWithFieldsets, a0 as SingletonContentTypeDefinition, a1 as SingletonMetadata, G as UnresolvedComponent, z as UnresolvedEntry, ak as VariantDefinition, an as VideoCaptionsConfig, ao as VideoDownloadConfig, ac as VideoKindConfig, am as VideoPosterConfig, al as VideoUploadConfig, ap as VideoWatermarkConfig, aD as WorkflowAutoAssign, aG as WorkflowConfig, aH as WorkflowDefinition, aC as WorkflowEscalation, aE as WorkflowStageConfig, aF as WorkflowStageDefinition, a4 as defineAssetType, H as defineContentType, au as defineContentTypeWorkflow, Z as defineSingleton, Y as defineSingletonContentType, as as defineWorkflow, at as defineWorkflowStage, J as fieldset, ay as findWorkflowStage, aA as getFirstWorkflowStage, az as getNextWorkflowStage, ax as getWorkflowStageIds, aB as isFinalWorkflowStage, av as isWorkflowDefinition, aw as isWorkflowStageDefinition } from '../define-content-type-DiVpbwNs.js';
4
4
 
5
5
  /**
6
6
  * Field builders for defining schema fields
@@ -41,7 +41,7 @@ declare function shortText<TId extends string>(id: TId, options?: FieldOptions<S
41
41
  declare function longText<TId extends string>(id: TId, options?: FieldOptions<LongTextConfig>): FieldDefinition<TId, 'longText', LongTextConfig>;
42
42
  /**
43
43
  * Rich text field with formatting
44
- * @example fields.richText('content', { config: { allowedMarks: ['bold', 'italic'] } })
44
+ * @example fields.richText('content', { config: { allowedFormats: ['bold', 'italic'] } })
45
45
  */
46
46
  declare function richText<TId extends string>(id: TId, options?: FieldOptions<RichTextConfig>): FieldDefinition<TId, 'richText', RichTextConfig>;
47
47
  /**
@@ -92,8 +92,8 @@ declare function enumField<TId extends string, TValue extends string = string, T
92
92
  */
93
93
  declare function date<TId extends string>(id: TId, options?: FieldOptions<DateConfig>): FieldDefinition<TId, 'date', DateConfig>;
94
94
  /**
95
- * DateTime field with optional timezone
96
- * @example fields.dateTime('createdAt', { config: { timezone: true } })
95
+ * DateTime field, stored in UTC or in the author's local time
96
+ * @example fields.dateTime('createdAt', { config: { timeZoneHandling: 'UTC' } })
97
97
  */
98
98
  declare function dateTime<TId extends string>(id: TId, options?: FieldOptions<DateTimeConfig>): FieldDefinition<TId, 'dateTime', DateTimeConfig>;
99
99
  /**
@@ -125,8 +125,9 @@ declare function list<TId extends string, TSubfields extends readonly AnyFieldDe
125
125
  /**
126
126
  * Component field (reusable field group)
127
127
  * @example fields.component('seo', 'seoMetadata')
128
+ * @example fields.component('seo', 'seoMetadata', { config: { required: true } })
128
129
  */
129
- declare function component<TId extends string, TComponentId extends string>(id: TId, componentId: TComponentId, options?: Omit<FieldOptions<undefined>, 'config'>): FieldDefinition<TId, `component(${TComponentId})`, undefined>;
130
+ declare function component<TId extends string, TComponentId extends string>(id: TId, componentId: TComponentId, options?: FieldOptions<ComponentFieldConfig>): FieldDefinition<TId, `component(${TComponentId})`, ComponentFieldConfig>;
130
131
 
131
132
  /**
132
133
  * Field builders for defining schema fields
@@ -148,6 +149,7 @@ declare const fieldBuilders_AnyFieldDefinition: typeof AnyFieldDefinition;
148
149
  declare const fieldBuilders_AssetAIConfig: typeof AssetAIConfig;
149
150
  declare const fieldBuilders_BaseFieldConfig: typeof BaseFieldConfig;
150
151
  declare const fieldBuilders_BooleanConfig: typeof BooleanConfig;
152
+ declare const fieldBuilders_ComponentFieldConfig: typeof ComponentFieldConfig;
151
153
  declare const fieldBuilders_ComponentFieldType: typeof ComponentFieldType;
152
154
  declare const fieldBuilders_DateConfig: typeof DateConfig;
153
155
  declare const fieldBuilders_DateTimeConfig: typeof DateTimeConfig;
@@ -191,7 +193,7 @@ declare const fieldBuilders_slug: typeof slug;
191
193
  declare const fieldBuilders_tags: typeof tags;
192
194
  declare const fieldBuilders_url: typeof url;
193
195
  declare namespace fieldBuilders {
194
- export { fieldBuilders_AIConfig as AIConfig, fieldBuilders_AllFieldTypes as AllFieldTypes, fieldBuilders_AnyFieldDefinition as AnyFieldDefinition, fieldBuilders_AssetAIConfig as AssetAIConfig, fieldBuilders_BaseFieldConfig as BaseFieldConfig, fieldBuilders_BooleanConfig as BooleanConfig, fieldBuilders_ComponentFieldType as ComponentFieldType, fieldBuilders_DateConfig as DateConfig, fieldBuilders_DateTimeConfig as DateTimeConfig, fieldBuilders_DecimalConfig as DecimalConfig, fieldBuilders_EmailConfig as EmailConfig, fieldBuilders_EnumConfig as EnumConfig, fieldBuilders_FieldAIConfig as FieldAIConfig, fieldBuilders_FieldDefinition as FieldDefinition, fieldBuilders_FieldRule as FieldRule, fieldBuilders_FieldType as FieldType, fieldBuilders_FieldUIConfig as FieldUIConfig, fieldBuilders_IntegerConfig as IntegerConfig, fieldBuilders_ListConfig as ListConfig, fieldBuilders_LocalizationConfig as LocalizationConfig, fieldBuilders_LongTextConfig as LongTextConfig, fieldBuilders_ReadOnlyRule as ReadOnlyRule, fieldBuilders_ReferenceConfig as ReferenceConfig, fieldBuilders_RequirementRule as RequirementRule, fieldBuilders_RichTextConfig as RichTextConfig, fieldBuilders_RuleCondition as RuleCondition, fieldBuilders_RuleConditions as RuleConditions, fieldBuilders_ShortTextConfig as ShortTextConfig, fieldBuilders_SlugConfig as SlugConfig, fieldBuilders_TagsConfig as TagsConfig, fieldBuilders_UrlConfig as UrlConfig, fieldBuilders_ValidationRule as ValidationRule, fieldBuilders_VisibilityRule as VisibilityRule, fieldBuilders_boolean as boolean, fieldBuilders_component as component, fieldBuilders_date as date, fieldBuilders_dateTime as dateTime, fieldBuilders_decimal as decimal, fieldBuilders_email as email, enumField as enum, fieldBuilders_integer as integer, fieldBuilders_list as list, fieldBuilders_longText as longText, fieldBuilders_reference as reference, fieldBuilders_richText as richText, fieldBuilders_shortText as shortText, fieldBuilders_slug as slug, fieldBuilders_tags as tags, fieldBuilders_url as url };
196
+ export { fieldBuilders_AIConfig as AIConfig, fieldBuilders_AllFieldTypes as AllFieldTypes, fieldBuilders_AnyFieldDefinition as AnyFieldDefinition, fieldBuilders_AssetAIConfig as AssetAIConfig, fieldBuilders_BaseFieldConfig as BaseFieldConfig, fieldBuilders_BooleanConfig as BooleanConfig, fieldBuilders_ComponentFieldConfig as ComponentFieldConfig, fieldBuilders_ComponentFieldType as ComponentFieldType, fieldBuilders_DateConfig as DateConfig, fieldBuilders_DateTimeConfig as DateTimeConfig, fieldBuilders_DecimalConfig as DecimalConfig, fieldBuilders_EmailConfig as EmailConfig, fieldBuilders_EnumConfig as EnumConfig, fieldBuilders_FieldAIConfig as FieldAIConfig, fieldBuilders_FieldDefinition as FieldDefinition, fieldBuilders_FieldRule as FieldRule, fieldBuilders_FieldType as FieldType, fieldBuilders_FieldUIConfig as FieldUIConfig, fieldBuilders_IntegerConfig as IntegerConfig, fieldBuilders_ListConfig as ListConfig, fieldBuilders_LocalizationConfig as LocalizationConfig, fieldBuilders_LongTextConfig as LongTextConfig, fieldBuilders_ReadOnlyRule as ReadOnlyRule, fieldBuilders_ReferenceConfig as ReferenceConfig, fieldBuilders_RequirementRule as RequirementRule, fieldBuilders_RichTextConfig as RichTextConfig, fieldBuilders_RuleCondition as RuleCondition, fieldBuilders_RuleConditions as RuleConditions, fieldBuilders_ShortTextConfig as ShortTextConfig, fieldBuilders_SlugConfig as SlugConfig, fieldBuilders_TagsConfig as TagsConfig, fieldBuilders_UrlConfig as UrlConfig, fieldBuilders_ValidationRule as ValidationRule, fieldBuilders_VisibilityRule as VisibilityRule, fieldBuilders_boolean as boolean, fieldBuilders_component as component, fieldBuilders_date as date, fieldBuilders_dateTime as dateTime, fieldBuilders_decimal as decimal, fieldBuilders_email as email, enumField as enum, fieldBuilders_integer as integer, fieldBuilders_list as list, fieldBuilders_longText as longText, fieldBuilders_reference as reference, fieldBuilders_richText as richText, fieldBuilders_shortText as shortText, fieldBuilders_slug as slug, fieldBuilders_tags as tags, fieldBuilders_url as url };
195
197
  }
196
198
 
197
199
  /**
@@ -209,8 +211,8 @@ declare namespace fieldBuilders {
209
211
  * displayName: 'Product',
210
212
  * fields: [
211
213
  * fields.shortText('title', { config: { required: true, maxLength: 200 } }),
212
- * fields.currency('price', { config: { currencyCode: 'USD', min: 0 } }),
213
- * fields.reference('category', { config: { contentType: 'category' } }),
214
+ * fields.decimal('price', { config: { min: 0, decimalPlaces: 2 } }),
215
+ * fields.reference('category', { config: { to: 'category' } }),
214
216
  * ]
215
217
  * })
216
218
  *
@@ -225,4 +227,4 @@ declare namespace fieldBuilders {
225
227
 
226
228
  declare const fields: typeof fieldBuilders;
227
229
 
228
- export { AIConfig, AllFieldTypes, AssetAIConfig, BaseFieldConfig, BooleanConfig, ComponentFieldType, DateConfig, DateTimeConfig, DecimalConfig, EmailConfig, EnumConfig, FieldAIConfig, FieldDefinition, FieldRule, FieldType, FieldUIConfig, IntegerConfig, ListConfig, LocalizationConfig, LongTextConfig, ReadOnlyRule, ReferenceConfig, RequirementRule, RichTextConfig, RuleCondition, RuleConditions, ShortTextConfig, SlugConfig, TagsConfig, UrlConfig, ValidationRule, VisibilityRule, fields };
230
+ export { AIConfig, AllFieldTypes, AssetAIConfig, BaseFieldConfig, BooleanConfig, ComponentFieldConfig, ComponentFieldType, DateConfig, DateTimeConfig, DecimalConfig, EmailConfig, EnumConfig, FieldAIConfig, FieldDefinition, FieldRule, FieldType, FieldUIConfig, IntegerConfig, ListConfig, LocalizationConfig, LongTextConfig, ReadOnlyRule, ReferenceConfig, RequirementRule, RichTextConfig, RuleCondition, RuleConditions, ShortTextConfig, SlugConfig, TagsConfig, UrlConfig, ValidationRule, VisibilityRule, fields };
@@ -1,4 +1,4 @@
1
- export { BUILT_IN_ROLES, BUILT_IN_ROLE_ACTIONS, ROLE_ACTIONS, buildFallbackChain, defineAssetType, defineComponent, defineContentType, defineContentTypeWorkflow, defineLocale, defineQuery, defineRole, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, defineView, defineWorkflow, defineWorkflowStage, fields, fieldset, findDefaultLocale, findWorkflowStage, getActiveLocales, getBuiltInRoleActions, getFirstWorkflowStage, getLocaleCodes, getNextWorkflowStage, getWorkflowStageIds, isBuiltInRole, isFinalWorkflowStage, isLocaleDefinition, isRoleDefinition, isWorkflowDefinition, isWorkflowStageDefinition } from '../chunk-XJVY2CLY.js';
1
+ export { BUILT_IN_ROLES, BUILT_IN_ROLE_ACTIONS, ROLE_ACTIONS, buildFallbackChain, defineAssetType, defineComponent, defineContentType, defineContentTypeWorkflow, defineLocale, defineQuery, defineRole, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, defineView, defineWorkflow, defineWorkflowStage, fields, fieldset, findDefaultLocale, findWorkflowStage, getActiveLocales, getBuiltInRoleActions, getFirstWorkflowStage, getLocaleCodes, getNextWorkflowStage, getWorkflowStageIds, isBuiltInRole, isFinalWorkflowStage, isLocaleDefinition, isRoleDefinition, isWorkflowDefinition, isWorkflowStageDefinition } from '../chunk-YEJUMW4X.js';
2
2
  import '../chunk-XQ4QHWZE.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export { v as ApiResponse, B as BaseContent, s as CacheConfig, x as CacheStrategy, i as ContentQueryResult, n as ContentTypeSchema, C as CreateInput, l as CustomQuery, D as DebugConfig, E as Environment, Y as FieldDefinition, o as FieldOptions, F as FieldTypeName, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, t as RealtimeConfig, q as RealtimeEvent, p as RealtimeEventType, R as RelyIOConfig, u as RequestConfig, w as RetryConfig, k as SettingsGroup, j as SingletonContent, h as SortOptions, r as SubscriptionOptions, U as UpdateInput, V as ValidationRule, y as ValidationViolation, f as WhereClause, e as WhereFieldCondition, g as WhereOperator, d as WhereScalar } from '../index-d1Kz1e19.cjs';
2
- import '../define-content-type-CDB3kyeA.cjs';
1
+ export { v as ApiResponse, B as BaseContent, s as CacheConfig, x as CacheStrategy, j as ContentQueryResult, n as ContentTypeSchema, C as CreateInput, l as CustomQuery, D as DebugConfig, E as Environment, K as FieldDefinition, o as FieldOptions, F as FieldTypeName, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, t as RealtimeConfig, q as RealtimeEvent, p as RealtimeEventType, R as RelyIOConfig, u as RequestConfig, w as RetryConfig, k as SingletonContent, i as SortOptions, r as SubscriptionOptions, U as UpdateInput, V as ValidationRule, y as ValidationViolation, g as WhereClause, f as WhereFieldCondition, h as WhereOperator, e as WhereScalar } from '../index-DbsTUw3Q.cjs';
2
+ import '../define-content-type-DiVpbwNs.cjs';
@@ -1,2 +1,2 @@
1
- export { v as ApiResponse, B as BaseContent, s as CacheConfig, x as CacheStrategy, i as ContentQueryResult, n as ContentTypeSchema, C as CreateInput, l as CustomQuery, D as DebugConfig, E as Environment, Y as FieldDefinition, o as FieldOptions, F as FieldTypeName, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, t as RealtimeConfig, q as RealtimeEvent, p as RealtimeEventType, R as RelyIOConfig, u as RequestConfig, w as RetryConfig, k as SettingsGroup, j as SingletonContent, h as SortOptions, r as SubscriptionOptions, U as UpdateInput, V as ValidationRule, y as ValidationViolation, f as WhereClause, e as WhereFieldCondition, g as WhereOperator, d as WhereScalar } from '../index-yPbhZc6q.js';
2
- import '../define-content-type-CDB3kyeA.js';
1
+ export { v as ApiResponse, B as BaseContent, s as CacheConfig, x as CacheStrategy, j as ContentQueryResult, n as ContentTypeSchema, C as CreateInput, l as CustomQuery, D as DebugConfig, E as Environment, K as FieldDefinition, o as FieldOptions, F as FieldTypeName, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, t as RealtimeConfig, q as RealtimeEvent, p as RealtimeEventType, R as RelyIOConfig, u as RequestConfig, w as RetryConfig, k as SingletonContent, i as SortOptions, r as SubscriptionOptions, U as UpdateInput, V as ValidationRule, y as ValidationViolation, g as WhereClause, f as WhereFieldCondition, h as WhereOperator, e as WhereScalar } from '../index-BOQIHnsh.js';
2
+ import '../define-content-type-DiVpbwNs.js';