@relyio/sdk 0.17.0 → 0.19.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 (74) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/automations/index.cjs +71 -0
  3. package/dist/automations/index.d.cts +1590 -0
  4. package/dist/automations/index.d.ts +1590 -0
  5. package/dist/automations/index.js +6 -0
  6. package/dist/{chunk-RSHMA4KT.cjs → chunk-2SPPU2WG.cjs} +68 -68
  7. package/dist/{chunk-VS2DEUTN.js → chunk-356SF5Y2.js} +463 -26
  8. package/dist/chunk-5F3YYPLZ.cjs +19237 -0
  9. package/dist/chunk-7I3SC7SV.cjs +40 -0
  10. package/dist/chunk-DBYMG6MQ.cjs +535 -0
  11. package/dist/chunk-DI6KFDBO.js +43 -0
  12. package/dist/chunk-HDHBYYEY.js +36 -0
  13. package/dist/chunk-L6DXCKVQ.cjs +50 -0
  14. package/dist/{chunk-TZL374LS.cjs → chunk-M7MWNV3Q.cjs} +21 -21
  15. package/dist/{chunk-H6IBQSMM.js → chunk-NJQK5STK.js} +3 -3
  16. package/dist/chunk-NN45CSPZ.cjs +872 -0
  17. package/dist/{chunk-6E22GYPB.cjs → chunk-P23G5NXD.cjs} +781 -337
  18. package/dist/chunk-PZCDJFMA.js +19195 -0
  19. package/dist/chunk-T7LGREB3.js +848 -0
  20. package/dist/{chunk-BBUB7C2Z.js → chunk-W2A4OTCI.js} +3 -3
  21. package/dist/chunk-W2GRVXDG.js +520 -0
  22. package/dist/{chunk-5UMY6CS4.js → chunk-ZAKEY6DY.js} +3 -3
  23. package/dist/{chunk-LSRPMNPT.cjs → chunk-ZO6QDYJG.cjs} +7 -7
  24. package/dist/client/index.cjs +8 -7
  25. package/dist/client/index.d.cts +4 -3
  26. package/dist/client/index.d.ts +4 -3
  27. package/dist/client/index.js +6 -5
  28. package/dist/{define-content-type-AuL9-oz6.d.cts → define-content-type-BZ6X8GvL.d.cts} +4547 -842
  29. package/dist/{define-content-type-BGoQxqLf.d.ts → define-content-type-C12jh8cY.d.ts} +4547 -842
  30. package/dist/{define-schema-DgCX9YB7.d.ts → define-schema-BPlZl4a2.d.cts} +258 -10
  31. package/dist/{define-schema-DkXwpp0I.d.cts → define-schema-CK7TtYot.d.ts} +258 -10
  32. package/dist/dev-handshake/index.cjs +9 -9
  33. package/dist/dev-handshake/index.js +2 -2
  34. package/dist/extensions/index.cjs +100 -0
  35. package/dist/extensions/index.d.cts +6 -0
  36. package/dist/extensions/index.d.ts +6 -0
  37. package/dist/extensions/index.js +96 -0
  38. package/dist/functions/index.cjs +71 -0
  39. package/dist/functions/index.d.cts +6 -0
  40. package/dist/functions/index.d.ts +6 -0
  41. package/dist/functions/index.js +62 -0
  42. package/dist/{index-BBp8_tn9.d.ts → index-BxNnlc5D.d.ts} +167 -494
  43. package/dist/{index-DaMZ4FQ_.d.ts → index-C-MymZTe.d.ts} +1 -1
  44. package/dist/{index-DxRmKPrR.d.cts → index-D5jyIeQ5.d.cts} +167 -494
  45. package/dist/{index-Bp4AiNT3.d.cts → index-DN0l8RHw.d.cts} +1 -1
  46. package/dist/index.cjs +208 -185
  47. package/dist/index.d.cts +147 -17
  48. package/dist/index.d.ts +147 -17
  49. package/dist/index.js +11 -16
  50. package/dist/markdown/index.cjs +382 -382
  51. package/dist/markdown/index.js +1 -1
  52. package/dist/preview/index.cjs +11 -10
  53. package/dist/preview/index.js +3 -2
  54. package/dist/register-BiMQKVp-.d.ts +693 -0
  55. package/dist/register-DeMsaurp.d.cts +693 -0
  56. package/dist/rich-text/index.cjs +12 -12
  57. package/dist/rich-text/index.d.cts +2 -2
  58. package/dist/rich-text/index.d.ts +2 -2
  59. package/dist/rich-text/index.js +2 -2
  60. package/dist/schema/index.cjs +63 -34
  61. package/dist/schema/index.d.cts +14 -5
  62. package/dist/schema/index.d.ts +14 -5
  63. package/dist/schema/index.js +3 -2
  64. package/dist/types/index.d.cts +1 -1
  65. package/dist/types/index.d.ts +1 -1
  66. package/dist/utils/index.cjs +20 -20
  67. package/dist/utils/index.js +2 -2
  68. package/package.json +23 -5
  69. package/dist/chunk-6PTRZP5U.cjs +0 -433
  70. package/dist/chunk-DIZY6CKM.js +0 -950
  71. package/dist/chunk-GHYB6IZK.cjs +0 -983
  72. package/dist/chunk-MWMSFIWN.cjs +0 -17
  73. package/dist/chunk-OVMIHAYK.js +0 -411
  74. package/dist/chunk-XQ4QHWZE.js +0 -13
package/dist/index.d.cts CHANGED
@@ -1,14 +1,64 @@
1
- import { C as Change, a as ChangesExpiredError, V as VisitorRetry, b as ChangesExpiredReason } from './index-DxRmKPrR.cjs';
2
- export { i as ActiveSandbox, aS as AdhocQuery, aT as AdhocRecord, aQ as AggregateMetric, A as AnySchemaDefinition, m as ApiMethod, l as ApiPath, n as ApiSuccessBody, a$ as AssetClient, b8 as AssetEntryResponse, b0 as AssetFileBuilder, b6 as AssetFileExtracted, b9 as AssetFileWhere, bi as AssetPlacement, b1 as AssetUploadBuilder, b3 as AssetVisibility, as as AutocompleteOptions, an as AutocompleteResponse, am as AutocompleteSuggestion, aI as BatchBody, aJ as BatchCreate, aM as BatchDelete, aP as BatchDeleteTarget, aD as BatchOperationResult, aL as BatchReplace, aF as BatchResponse, aN as BatchSingletonWrite, aE as BatchSummary, aO as BatchTarget, aK as BatchUpdate, aG as BatchWrite, aH as BatchWriteOptions, y as ChangesHeadOptions, z as ChangesOptions, aa as ChildEntry, a0 as ChildrenListOptions, $ as ChildrenOptions, ab as ChildrenRead, e as ClientDefaults, f as ClientSchema, bd as ConfirmInput, be as ConfirmResult, I as ContentClient, bh as CreateAssetOptions, J as CreateEntryOptions, s as DefaultRetryPolicy, g as DeployedContentType, D as DeployedLocale, U as DocumentFields, a1 as DocumentReadOptions, X as DocumentVersion, Y as DocumentVersionRow, Z as DocumentVersionsOptions, _ as DocumentWriteOptions, a2 as EntryList, K as EntryPlacement, N as EntryWriteOptions, F as FeedChange, a3 as FieldKey, b5 as FileBackend, bu as FileErrorCode, b4 as FileStatus, b7 as FileStatusResult, bw as FileUploadError, bv as FileUploadErrorCode, by as FileValidationConstraints, bx as FileValidationError, a4 as FreshOption, a5 as GetOptions, H as Health, j as HttpClient, B as LIVE_KEEPALIVE_INTERVAL_MS, E as LIVE_SOCKET_OPEN_TIMEOUT_MS, a6 as ListAllOptions, a7 as ListOptions, G as LiveChangesOptions, L as LocaleCodeOf, a8 as LocaleOption, M as MatchRouteOptions, bl as MultipartCreateResult, bm as MultipartPart, bn as MultipartTarget, aU as NamedQueryOptions, aV as NamedQueryParams, a9 as Paging, ba as PopulatedAssetReference, bb as PresignInput, bc as PresignResult, P as Project, aW as QueryAggregate, aX as QueryAnswer, aY as QueryCall, aR as QueryMetadata, aZ as QueryName, a_ as QueryTypeName, ac as ReadAs, q as ReadEntry, ae as ReadLocale, R as Register, h as RegisteredSchema, bf as ResolveUrlInput, bg as ResolveUrlResult, bq as ResourceConflictError, br as ResourceExpiredError, bp as ResourceNotFoundError, w as RetryPolicy, x as RetryableRequest, r as RetryableWriteOptions, p as RouteMatch, S as SandboxState, ar as SearchEntry, at as SearchFacet, au as SearchFieldKey, av as SearchHighlight, ak as SearchHitMetadata, aw as SearchOptions, ax as SearchPage, al as SearchResponse, aj as SearchResultItem, ay as SearchScope, az as SearchSelected, aA as SearchSortOption, aq as SearchTypeName, aB as SearchWhere, k as SendOptions, Q as SettingsClient, aC as SimilarOptions, ap as SimilarResponse, ao as SimilarResult, O as SingletonClient, af as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, bj as UpdateAssetOptions, bo as UploadProgress, ag as VersionOptions, bk as WaitUntilReadyOptions, W as Wire, ad as WithChildren, ah as WrittenReadScope, ai as WrittenSort, c as createClient, c as default, b2 as isAssetEntry, bt as isMissingEntry, t as isReplaySafe, bs as isResourceNotFound, o as matchRoute, u as retryPolicyFor, bz as validateFile, v as versionCheckOf } from './index-DxRmKPrR.cjs';
1
+ import { C as Change, a as ChangesExpiredError, V as VisitorRetry, b as ChangesExpiredReason } from './index-D5jyIeQ5.cjs';
2
+ export { A as ActiveSandbox, aC as AdhocQuery, aD as AdhocRecord, aA as AggregateMetric, aL as AssetClient, aU as AssetEntryResponse, aM as AssetFileBuilder, aS as AssetFileExtracted, aV as AssetFileWhere, b2 as AssetPlacement, aN as AssetUploadBuilder, aP as AssetVisibility, ac as AutocompleteOptions, a7 as AutocompleteResponse, a6 as AutocompleteSuggestion, as as BatchBody, at as BatchCreate, aw as BatchDelete, az as BatchDeleteTarget, an as BatchOperationResult, av as BatchReplace, ap as BatchResponse, ax as BatchSingletonWrite, ao as BatchSummary, ay as BatchTarget, au as BatchUpdate, aq as BatchWrite, ar as BatchWriteOptions, j as ChangesHeadOptions, k as ChangesOptions, W as ChildEntry, B as ChildrenListOptions, z as ChildrenOptions, X as ChildrenRead, e as ClientDefaults, f as ClientSchema, aZ as ConfirmInput, a_ as ConfirmResult, o as ContentClient, b1 as CreateAssetOptions, p as CreateEntryOptions, g as DeployedContentType, D as DeployedLocale, t as DocumentFields, G as DocumentReadOptions, u as DocumentVersion, w as DocumentVersionRow, x as DocumentVersionsOptions, y as DocumentWriteOptions, I as EntryList, E as EntryPlacement, q as EntryWriteOptions, F as FeedChange, J as FieldKey, aR as FileBackend, be as FileErrorCode, aQ as FileStatus, aT as FileStatusResult, bg as FileUploadError, bf as FileUploadErrorCode, bi as FileValidationConstraints, bh as FileValidationError, K as FreshOption, M as GetOptions, H as Health, l as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, N as ListAllOptions, O as ListOptions, n as LiveChangesOptions, L as LocaleCodeOf, Q as LocaleOption, b5 as MultipartCreateResult, b6 as MultipartPart, b7 as MultipartTarget, aE as NamedQueryOptions, aF as NamedQueryParams, U as Paging, aW as PopulatedAssetReference, aX as PresignInput, aY as PresignResult, P as Project, aG as QueryAggregate, aH as QueryAnswer, aI as QueryCall, aB as QueryMetadata, aJ as QueryName, aK as QueryTypeName, Y as ReadAs, h as ReadEntry, _ as ReadLocale, R as RecordsAccessor, a$ as ResolveUrlInput, b0 as ResolveUrlResult, ba as ResourceConflictError, bb as ResourceExpiredError, b9 as ResourceNotFoundError, i as RetryableWriteOptions, S as SandboxState, ab as SearchEntry, ad as SearchFacet, ae as SearchFieldKey, af as SearchHighlight, a4 as SearchHitMetadata, ag as SearchOptions, ah as SearchPage, a5 as SearchResponse, a3 as SearchResultItem, ai as SearchScope, aj as SearchSelected, ak as SearchSortOption, aa as SearchTypeName, al as SearchWhere, s as SettingsClient, am as SimilarOptions, a9 as SimilarResponse, a8 as SimilarResult, r as SingletonClient, $ as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, b3 as UpdateAssetOptions, b8 as UploadProgress, a0 as VersionOptions, b4 as WaitUntilReadyOptions, Z as WithChildren, a1 as WrittenReadScope, a2 as WrittenSort, c as createClient, c as default, aO as isAssetEntry, bd as isMissingEntry, bc as isResourceNotFound, bj as validateFile, v as versionCheckOf } from './index-D5jyIeQ5.cjs';
3
+ export { A as AnySchemaDefinition, f as ApiMethod, e as ApiPath, g as ApiSuccessBody, B as BaseRecord, D as DefaultRetryPolicy, H as HttpClient, M as MatchRouteOptions, y as RecordBatchOperation, z as RecordBatchOperationResult, C as RecordBatchOptions, b as RecordBatchResult, a as RecordBatchTarget, n as RecordCallOptions, d as RecordConditionValue, o as RecordFacetBucket, p as RecordFileBytes, q as RecordFileUploadOptions, s as RecordList, t as RecordListOptions, u as RecordMetadata, v as RecordReadOptions, w as RecordUpdateOptions, l as RecordsClient, c as Register, R as RegisteredSchema, j as RetryPolicy, k as RetryableRequest, h as RouteMatch, S as SendOptions, W as Wire, i as isReplaySafe, m as matchRoute, x as refusedOperationOf, r as retryPolicyFor } from './register-DeMsaurp.cjs';
3
4
  export { fields } from './schema/index.cjs';
4
- import { cl as SDKError, aM as EntryMetadata } from './define-content-type-AuL9-oz6.cjs';
5
- export { aH as AnyDeclaredFieldset, cV as ApiResponse, cq as AssetFileBlock, ak as AssetReading, b2 as AssetServedBlocks, a$ as AssetTypeDefinition, cr as AssetUrls, cs as BaseContent, B as BaseFieldConfig, cu as BaseSettingsGroup, ct as BaseSingleton, c$ as BaseValidationError, ai as BlockOf, cS as CacheConfig, cX as CacheStrategy, am as CheckInclude, al as CheckedIncludes, an as ContentReading, aL as ContentTypeDefinition, cL as ContentTypeSchema, cG as ContentVersion, cH as ContentVersionRow, cA as CreateInput, cB as CreatedContent, cK as CustomQuery, cz as DateOnlyOperator, cT as DebugConfig, aG as DeclaredFieldset, cZ as Environment, h as FieldDefinition, aJ as FieldMember, cN as FieldOptions, i as FieldRule, ac as FieldSchemaContext, j as FieldType, k as FieldUIConfig, ad as FieldValue, ae as FieldValues, aF as Fieldset, b5 as FileKindConfig, bj as FileScanConfig, bi as FileUploadConfig, bb as ImageExifConfig, b3 as ImageKindConfig, ba as ImageSourceConfig, b9 as ImageUploadConfig, ao as IncludablePaths, b1 as InferAssetEntry, b0 as InferAssetType, aN as InferContentType, ca as InferJsonSchema, aT as InferSingleton, d1 as InvalidPayloadError, cb as JsonFieldValue, cc as JsonSchema, cd as JsonValue, ah as Keyed, a_ as KeyedAssetTypeConfig, aK as KeyedContentTypeConfig, K as KeyedEnumConfig, l as KeyedField, m as KeyedFieldOptions, aI as KeyedFieldsetConfig, aV as KeyedSettingsGroupConfig, aQ as KeyedSingletonConfig, co as LiveWebSocket, cp as LiveWebSocketConstructor, aO as LocalePublicationFields, r as LocalizationConfig, s as Localized, t as LocalizedDetails, cY as LogLevel, cR as PerformanceMetrics, aq as ReadWith, ap as Reading, cP as RealtimeEvent, cO as RealtimeEventType, cm as RelyIOConfig, cn as RelyIOConfigUpdate, cU as RequestConfig, cF as RestoredContent, cW as RetryConfig, cC as RevisedContent, aW as SettingsGroupDefinition, ar as SettingsReading, aj as ShapeValue, cJ as SingletonContent, aR as SingletonContentTypeDefinition, aS as SingletonMetadata, as as SingletonReading, cQ as SubscriptionOptions, ag as UnresolvedEntry, at as UntypedReading, cI as UpdateInput, d0 as ValidationError, cM as ValidationRule, c_ as ValidationViolation, bc as VariantDefinition, bf as VideoCaptionsConfig, bg as VideoDownloadConfig, b4 as VideoKindConfig, be as VideoPosterConfig, bd as VideoUploadConfig, bh as VideoWatermarkConfig, cx as WhereClause, cw as WhereFieldCondition, cy as WhereOperator, cv as WhereScalar, W as WidgetOptions, cE as WrittenSettingsGroup, cD as WrittenSingleton, aZ as defineAssetType, aD as defineContentType, au as defineLocale, aU as defineSettingsGroup, aP as defineSingleton, aE as fieldset } from './define-content-type-AuL9-oz6.cjs';
5
+ import { d3 as SDKError, aW as EntryMetadata } from './define-content-type-BZ6X8GvL.cjs';
6
+ export { aQ as AnyDeclaredFieldset, d2 as ApiResponse, d8 as AssetFileBlock, at as AssetReading, bc as AssetServedBlocks, b9 as AssetTypeDefinition, d9 as AssetUrls, da as BaseContent, B as BaseFieldConfig, dc as BaseSettingsGroup, db as BaseSingleton, dI as BaseValidationError, ar as BlockOf, dB as CacheConfig, dE as CacheStrategy, av as CheckInclude, au as CheckedIncludes, aw as ContentReading, aV as ContentTypeDefinition, du as ContentTypeSchema, dp as ContentVersion, dq as ContentVersionRow, di as CreateInput, dj as CreatedContent, dt as CustomQuery, dh as DateOnlyOperator, dC as DebugConfig, aP as DeclaredFieldset, dG as Environment, i as FieldDefinition, aS as FieldMember, dw as FieldOptions, j as FieldRule, al as FieldSchemaContext, k as FieldType, l as FieldUIConfig, am as FieldValue, an as FieldValues, aO as Fieldset, bf as FileKindConfig, bt as FileScanConfig, cx as FileUpload, bs as FileUploadConfig, bl as ImageExifConfig, bd as ImageKindConfig, bk as ImageSourceConfig, bj as ImageUploadConfig, ax as IncludablePaths, bb as InferAssetEntry, ba as InferAssetType, aX as InferContentType, ct as InferJsonSchema, b1 as InferSingleton, dK as InvalidPayloadError, cu as JsonFieldValue, cv as JsonSchema, cw as JsonValue, aq as Keyed, b8 as KeyedAssetTypeConfig, aT as KeyedContentTypeConfig, K as KeyedEnumConfig, n as KeyedField, o as KeyedFieldOptions, aR as KeyedFieldsetConfig, b3 as KeyedSettingsGroupConfig, a_ as KeyedSingletonConfig, d6 as LiveWebSocket, d7 as LiveWebSocketConstructor, aY as LocalePublicationFields, t as LocalizationConfig, u as Localized, v as LocalizedDetails, dF as LogLevel, N as NeverUniqueFieldConfig, dA as PerformanceMetrics, az as ReadWith, ay as Reading, dy as RealtimeEvent, dx as RealtimeEventType, cy as RecordFile, d4 as RelyIOConfig, d5 as RelyIOConfigUpdate, dD as RequestConfig, dn as RestoredContent, d0 as RetryConfig, dk as RevisedContent, b4 as SettingsGroupDefinition, aA as SettingsReading, as as ShapeValue, ds as SingletonContent, a$ as SingletonContentTypeDefinition, b0 as SingletonMetadata, aB as SingletonReading, dz as SubscriptionOptions, ap as UnresolvedEntry, aC as UntypedReading, dr as UpdateInput, dJ as ValidationError, dv as ValidationRule, dH as ValidationViolation, bm as VariantDefinition, bp as VideoCaptionsConfig, bq as VideoDownloadConfig, be as VideoKindConfig, bo as VideoPosterConfig, bn as VideoUploadConfig, br as VideoWatermarkConfig, df as WhereClause, de as WhereFieldCondition, dg as WhereOperator, dd as WhereScalar, Z as WidgetOptions, dm as WrittenSettingsGroup, dl as WrittenSingleton, b7 as defineAssetType, aM as defineContentType, aD as defineLocale, b2 as defineSettingsGroup, aZ as defineSingleton, aN as fieldset } from './define-content-type-BZ6X8GvL.cjs';
7
+ export { y as AggregateBlock, a6 as AnyQueryParameters, a7 as DeclaredParameters, x as FetchBlock, U as FilterDefinition, L as IncludeDefinition, a4 as InferQueryParams, a3 as InferQueryResponse, I as InferRecordType, Q as QueryConfig, u as QueryDefinition, a5 as QueryParameterValue, o as RecordFieldsOf, q as RecordUpdateFieldsOf, r as RecordWriteFieldsOf, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, j as SchemaEntry, k as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, z as SearchBlock, T as SelectMapping, G as SortCondition, B as WhereCondition, t as defineQuery, d as defineSchema } from './define-schema-BPlZl4a2.cjs';
6
8
  export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './utils/index.cjs';
7
- export { n as RICH_TEXT_VOID_TAGS, R as RelyIOFieldAttributes, a as RelyIOFieldName, b as RelyIOFieldPath, c as RelyIOKeyed, q as RichTextAnchorsOption, t as RichTextAttributes, u as RichTextBlocksOf, v as RichTextDeclaredOf, w as RichTextDeclaredWriters, x as RichTextEntryLinkOf, y as RichTextEntryLinkOption, j as RichTextHtmlDeclaredWriters, k as RichTextHtmlFieldOption, l as RichTextHtmlOptions, z as RichTextInlineOf, m as RichTextMarkdownOptions, A as RichTextNodeContext, B as RichTextRenderable, C as RichTextRenderableOf, D as RichTextReplaceableNode, E as RichTextTag, F as RichTextTarget, e as entryHeadingAnchors, g as escapeHtml, o as isDeclaredRichTextNode, r as relyioField, p as renderRichText, d as richTextHeadingAnchors, f as richTextHeadingSlug, h as richTextToHtml, i as richTextToMarkdown, s as safeRichTextHref } from './index-Bp4AiNT3.cjs';
8
- export { A as AggregateBlock, L as AnyQueryParameters, M as DeclaredParameters, n as FetchBlock, w as FilterDefinition, I as IncludeDefinition, J as InferQueryParams, G as InferQueryResponse, Q as QueryConfig, l as QueryDefinition, K as QueryParameterValue, 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, o as SearchBlock, v as SelectMapping, s as SortCondition, W as WhereCondition, k as defineQuery, d as defineSchema } from './define-schema-DkXwpp0I.cjs';
9
+ export { n as RICH_TEXT_VOID_TAGS, R as RelyIOFieldAttributes, a as RelyIOFieldName, b as RelyIOFieldPath, c as RelyIOKeyed, q as RichTextAnchorsOption, t as RichTextAttributes, u as RichTextBlocksOf, v as RichTextDeclaredOf, w as RichTextDeclaredWriters, x as RichTextEntryLinkOf, y as RichTextEntryLinkOption, j as RichTextHtmlDeclaredWriters, k as RichTextHtmlFieldOption, l as RichTextHtmlOptions, z as RichTextInlineOf, m as RichTextMarkdownOptions, A as RichTextNodeContext, B as RichTextRenderable, C as RichTextRenderableOf, D as RichTextReplaceableNode, E as RichTextTag, F as RichTextTarget, e as entryHeadingAnchors, g as escapeHtml, o as isDeclaredRichTextNode, r as relyioField, p as renderRichText, d as richTextHeadingAnchors, f as richTextHeadingSlug, h as richTextToHtml, i as richTextToMarkdown, s as safeRichTextHref } from './index-DN0l8RHw.cjs';
9
10
  export { e as RichTextBlock, f as RichTextCellAlignment, g as RichTextCodeBlock, h as RichTextCodeGroup, i as RichTextCodeLines, j as RichTextDivider, d as RichTextEntryLinkMark, k as RichTextHeading, l as RichTextInline, m as RichTextLineBreak, n as RichTextLinkMark, o as RichTextList, p as RichTextListItem, q as RichTextListStyle, r as RichTextMark, s as RichTextMarkType, t as RichTextNode, u as RichTextParagraph, v as RichTextQuote, w as RichTextSpan, x as RichTextStructure, y as RichTextTable, z as RichTextTableCell, B as RichTextTableRow, b as RichTextValue } from './rich-text.d-BWc-5gX1.cjs';
10
11
  import './dev-handshake/index.cjs';
11
12
 
13
+ /**
14
+ * Why a run ended without an answer — the one list every reader, document enum and refusal's details
15
+ * are built from:
16
+ *
17
+ * - `threw` — the customer's code threw, or its promise rejected.
18
+ * - `exceeded-cpu` — past its CPU limit: Cloudflare ended it.
19
+ * - `exceeded-memory` — past 128 MB: Cloudflare ended it.
20
+ * - `exceeded-duration` — a Container past its declared duration: its runner ended it (REL-3832).
21
+ * - `load-failed` — the bundle could not be read or loaded, or does not default-export a Function.
22
+ * - `output-invalid` — it answered something that is not JSON.
23
+ */
24
+ declare const FUNCTION_RUN_FAILURES: readonly ['threw', 'exceeded-cpu', 'exceeded-memory', 'exceeded-duration', 'load-failed', 'output-invalid'];
25
+ /** Why a run ended without an answer: one of {@link FUNCTION_RUN_FAILURES}. */
26
+ type FunctionRunFailure$1 = (typeof FUNCTION_RUN_FAILURES)[number];
27
+
28
+ /**
29
+ * The End-user token a request carries, read **one** way wherever it is read (spec 4, REL-3880).
30
+ *
31
+ * A customer's app sends the token its identity provider minted for the person signed in to it in
32
+ * `X-RelyIO-End-User`, beside its key. `apps/services/api` verifies it against the Environment's
33
+ * identity source and answers as that End user; `apps/edge/api` never looks up or stores a response
34
+ * to a request that carries it (`edge-delivery-spec.md`'s withhold list), since that response is one
35
+ * person's. Both read the header here, so "carries a token" is one rule for the cache and the origin:
36
+ * a request the edge passed through as an End user's is one origin answers as an End user's.
37
+ *
38
+ * - The header is matched case-insensitively and its value trimmed. A value that is blank once
39
+ * trimmed is **no token**: the request is the key's alone, as without the header.
40
+ * - It never carries the key, and the key's headers never carry it: `X-API-Key` keeps meaning the
41
+ * key, and `Authorization: Bearer` keeps meaning the key when it is alone (`./credential.ts`).
42
+ *
43
+ * Its refusal is `END_USER_TOKEN_INVALID` (401) with `details.reason`, one of
44
+ * {@link END_USER_TOKEN_REFUSAL_REASONS}.
45
+ */
46
+
47
+ /**
48
+ * Why an End user's token was refused, as `END_USER_TOKEN_INVALID`'s `details.reason`:
49
+ *
50
+ * - `missing` — the call needs one and carried none: a publishable key's call of a Function declaring
51
+ * `endUsers: 'required'` (spec 4, REL-3892).
52
+ * - `no-identity-source` — the Environment the request is answered in has no identity source: its
53
+ * Project uses no identity Extension, or has no Connection of it for the Environment (nor, for
54
+ * Preview, for Production).
55
+ * - the rest — the verifier's (`@relyio/auth/end-users`): the token is malformed, signed with an
56
+ * algorithm RelyIO does not take, from another issuer, by a key the issuer does not publish, with a
57
+ * signature that does not verify, for another audience, expired, not yet valid, or naming no subject.
58
+ */
59
+ declare const END_USER_TOKEN_REFUSAL_REASONS: readonly ['missing', 'no-identity-source', 'malformed', 'unsupported-algorithm', 'wrong-issuer', 'unknown-key', 'bad-signature', 'wrong-audience', 'expired', 'not-yet-valid', 'missing-subject'];
60
+ type EndUserTokenRefusalReason = (typeof END_USER_TOKEN_REFUSAL_REASONS)[number];
61
+
12
62
  /**
13
63
  * What a key may do is in its prefix. A RelyIO project key is
14
64
  * `rly_{scope}_{region}_v2_{entropy}_{checksum}`: the scope first, then the region of its project's
@@ -335,10 +385,10 @@ declare class ConnectionError extends SDKError {
335
385
  * `details.reason: 'expired'`.
336
386
  *
337
387
  * `AuthenticationError` was deleted by REL-1471 for the same reason. The
338
- * vocabulary's two 401 codes are `MISSING_API_KEY` and `INVALID_API_KEY`, and
339
- * the mapper throws `MissingApiKeyError` and `InvalidApiKeyError` for them —
340
- * so a generic 401 class had no refusal left to stand for, and nothing
341
- * constructed it.
388
+ * vocabulary's 401 codes are `MISSING_API_KEY`, `INVALID_API_KEY` and — since
389
+ * spec 4 — `END_USER_TOKEN_INVALID`, and the mapper throws `MissingApiKeyError`,
390
+ * `InvalidApiKeyError` and `EndUserTokenInvalidError` for them — so a generic
391
+ * 401 class has no refusal left to stand for, and nothing constructs it.
342
392
  */
343
393
  declare class AuthorizationError extends SDKError {
344
394
  readonly code = "AUTHORIZATION_ERROR";
@@ -352,6 +402,19 @@ declare class InvalidApiKeyError extends SDKError {
352
402
  constructor(message?: string, cause?: Error, context?: Record<string, unknown>);
353
403
  getUserMessage(): string;
354
404
  }
405
+ /**
406
+ * The End user's token the request carried was refused (spec 4, REL-3863): `reason` says why —
407
+ * `expired`, `wrong-audience`, `missing` for a call that needs one, and the rest of
408
+ * `END_USER_TOKEN_REFUSAL_REASONS`. Caught by class, an app signs the shopper in again rather than
409
+ * reading its key as bad.
410
+ */
411
+ declare class EndUserTokenInvalidError extends SDKError {
412
+ readonly reason: EndUserTokenRefusalReason | undefined;
413
+ readonly code = "END_USER_TOKEN_INVALID";
414
+ readonly retryable = false;
415
+ constructor(message: string, reason: EndUserTokenRefusalReason | undefined, context?: Record<string, unknown>);
416
+ getUserMessage(): string;
417
+ }
355
418
 
356
419
  /**
357
420
  * One class per contract code that had none.
@@ -385,6 +448,77 @@ declare class ReadOnlyKeyError extends SDKError {
385
448
  constructor(message?: string, context?: Record<string, unknown>);
386
449
  getUserMessage(): string;
387
450
  }
451
+ /**
452
+ * `PUBLISHABLE_KEY_REFUSED` — a publishable key writing a Record with no End user's token, uploading
453
+ * a Record's File, or calling a Function that does not declare `endUsers` (REL-3771). A browser
454
+ * writes a Record only for a signed-in End user, as the type's write Policy allows (spec 4,
455
+ * REL-3884), and calls a Function only when it opts in (REL-3892): send their token, declare
456
+ * `endUsers` on the Function, or call from your server with a secret key.
457
+ */
458
+ declare class PublishableKeyRefusedError extends SDKError {
459
+ readonly code = "PUBLISHABLE_KEY_REFUSED";
460
+ readonly retryable = false;
461
+ constructor(message?: string, context?: Record<string, unknown>);
462
+ getUserMessage(): string;
463
+ }
464
+ /** Why a Function run ended without an answer (spec 2, REL-3821): the contract's one list. */
465
+ type FunctionRunFailure = FunctionRunFailure$1;
466
+ /**
467
+ * `FUNCTION_RUN_FAILED` — the Function ran and ended without an answer: its code threw, it was ended
468
+ * at its CPU or memory limit, or its bundle could not be loaded (spec 2, REL-3821). `runId` names the
469
+ * run, whose record and console output Manage serves; `runError` is what the run's code threw.
470
+ */
471
+ declare class FunctionRunFailedError extends SDKError {
472
+ readonly code = "FUNCTION_RUN_FAILED";
473
+ readonly retryable = false;
474
+ readonly runId?: string;
475
+ readonly failure?: FunctionRunFailure;
476
+ readonly runError?: {
477
+ readonly name: string;
478
+ readonly message: string;
479
+ };
480
+ constructor(message?: string, run?: {
481
+ readonly runId?: string;
482
+ readonly failure?: FunctionRunFailure;
483
+ readonly runError?: {
484
+ readonly name: string;
485
+ readonly message: string;
486
+ };
487
+ }, context?: Record<string, unknown>);
488
+ getUserMessage(): string;
489
+ }
490
+ /**
491
+ * `FUNCTION_CONTAINERS_BUSY` — the project is running as many Function runs in Containers at once
492
+ * as its plan includes, so this run was not started: nothing ran and nothing was counted (spec 2,
493
+ * REL-3832). `retryAfterMs` is the service's `Retry-After`. Not retried by the client on its own: a
494
+ * Function call is never retried for you. A run started from a schedule or an Automation step waits
495
+ * for a free Container instead.
496
+ */
497
+ declare class FunctionContainersBusyError extends SDKError {
498
+ readonly code = "FUNCTION_CONTAINERS_BUSY";
499
+ readonly retryable = false;
500
+ /** The Function that was not started. */
501
+ readonly function?: string;
502
+ /** `Retry-After`, in milliseconds, where the response carried a readable one. */
503
+ readonly retryAfterMs?: number;
504
+ constructor(message?: string, name?: string, context?: Record<string, unknown>, retryAfterMs?: number);
505
+ getUserMessage(): string;
506
+ }
507
+ /**
508
+ * `FUNCTION_RUN_TIMED_OUT` — the call waited five minutes and the run had not answered. The run is
509
+ * not stopped: it goes on to its own limit, and its record says how it ends (spec 2, REL-3821).
510
+ */
511
+ declare class FunctionRunTimedOutError extends SDKError {
512
+ readonly code = "FUNCTION_RUN_TIMED_OUT";
513
+ readonly retryable = false;
514
+ readonly runId?: string;
515
+ readonly waitedMs?: number;
516
+ constructor(message?: string, run?: {
517
+ readonly runId?: string;
518
+ readonly waitedMs?: number;
519
+ }, context?: Record<string, unknown>);
520
+ getUserMessage(): string;
521
+ }
388
522
  /** `PLAN_FEATURE_UNAVAILABLE` — the plan does not include the capability. */
389
523
  declare class PlanFeatureUnavailableError extends SDKError {
390
524
  readonly code = "PLAN_FEATURE_UNAVAILABLE";
@@ -667,7 +801,6 @@ interface LanguageSwitcherOption {
667
801
  status: LocaleStatus['status'];
668
802
  isCurrent: boolean;
669
803
  isDefault: boolean;
670
- hasContent: boolean;
671
804
  }
672
805
  /**
673
806
  * Options for building language switcher
@@ -677,8 +810,6 @@ interface LanguageSwitcherOptions {
677
810
  currentLocale: string;
678
811
  /** Whether to show inactive locales */
679
812
  showInactive?: boolean;
680
- /** Whether to show archived locales */
681
- showArchived?: boolean;
682
813
  /** Custom display name resolver */
683
814
  getDisplayName?: (code: string) => string;
684
815
  }
@@ -728,13 +859,12 @@ declare function getFieldFallbackLocale(entry: LocalizedEntry, fieldName: string
728
859
  * ```typescript
729
860
  * const options = localeHelpers.buildLanguageSwitcher(product, {
730
861
  * currentLocale: 'en-US',
731
- * showArchived: false,
732
862
  * })
733
863
  *
734
864
  * // Returns:
735
865
  * // [
736
- * // { code: 'en-US', label: 'English (US)', status: 'published', isCurrent: true, isDefault: true, hasContent: true },
737
- * // { code: 'es-ES', label: 'es-ES', status: 'published', isCurrent: false, isDefault: false, hasContent: true },
866
+ * // { code: 'en-US', label: 'English (US)', status: 'published', isCurrent: true, isDefault: true },
867
+ * // { code: 'es-ES', label: 'es-ES', status: 'published', isCurrent: false, isDefault: false },
738
868
  * // ]
739
869
  * ```
740
870
  */
@@ -982,4 +1112,4 @@ declare function snapToLadder(value: number): number;
982
1112
 
983
1113
  declare const VERSION = "__VERSION__";
984
1114
 
985
- export { AuthorizationError, Change, type ChangeSource, type ChangeSourceOptions, ChangesExpiredError, ChangesExpiredReason, ConnectionError, EntryMetadata, ErrorMapper, FOLLOW_BACK_OFF_MAX_MS, FOLLOW_RETRY_BASE_MS, FOLLOW_RETRY_MAX_MS, type FollowEnd, type FollowOptions, type FollowResync, type FollowState, type FollowVerdict, IMAGE_LADDER, InvalidApiKeyError, type KeyPathSegment, type LanguageSwitcherOption, type LanguageSwitcherOptions, type LiveEdgeEnd, LiveEdgeError, type LocaleMetadata, type LocaleStatus, type LocalizedEntry, MethodNotAllowedError, MissingApiKeyError, NetworkError, PREVIEW_KEY_PREFIX, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, RELYIO_CHANGE_EVENT, RELYIO_RESYNC_EVENT, RateLimitError, ReadOnlyKeyError, type RelyIOChangeDetail, type RelyIOResyncDetail, SDKError, ServerError, ServiceIndeterminateError, TimeoutError, TransactionRolledBackError, type TranslationCompleteness, UnknownContractError, UsageQuotaExceededError, VERSION, buildLanguageSwitcher, classifyFollowFailure, estimateTranslationCompleteness, followChanges, formatKeyPath, getAllLocalizedValues, getAvailableLocaleCodes, getDefaultLocale, getFallbackFields, getFieldFallbackLocale, getLocalizedField, getPublishedLocaleCodes, getRequestedLocale, hasLocale, isFieldFallback, isPreviewKey, isPublishableKey, isPublishedInLocale, localeHelpers, needsTranslation, parseKeyPath, snapToLadder };
1115
+ export { AuthorizationError, Change, type ChangeSource, type ChangeSourceOptions, ChangesExpiredError, ChangesExpiredReason, ConnectionError, EndUserTokenInvalidError, EntryMetadata, ErrorMapper, FOLLOW_BACK_OFF_MAX_MS, FOLLOW_RETRY_BASE_MS, FOLLOW_RETRY_MAX_MS, type FollowEnd, type FollowOptions, type FollowResync, type FollowState, type FollowVerdict, FunctionContainersBusyError, FunctionRunFailedError, type FunctionRunFailure, FunctionRunTimedOutError, IMAGE_LADDER, InvalidApiKeyError, type KeyPathSegment, type LanguageSwitcherOption, type LanguageSwitcherOptions, type LiveEdgeEnd, LiveEdgeError, type LocaleMetadata, type LocaleStatus, type LocalizedEntry, MethodNotAllowedError, MissingApiKeyError, NetworkError, PREVIEW_KEY_PREFIX, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, PublishableKeyRefusedError, RELYIO_CHANGE_EVENT, RELYIO_RESYNC_EVENT, RateLimitError, ReadOnlyKeyError, type RelyIOChangeDetail, type RelyIOResyncDetail, SDKError, ServerError, ServiceIndeterminateError, TimeoutError, TransactionRolledBackError, type TranslationCompleteness, UnknownContractError, UsageQuotaExceededError, VERSION, buildLanguageSwitcher, classifyFollowFailure, estimateTranslationCompleteness, followChanges, formatKeyPath, getAllLocalizedValues, getAvailableLocaleCodes, getDefaultLocale, getFallbackFields, getFieldFallbackLocale, getLocalizedField, getPublishedLocaleCodes, getRequestedLocale, hasLocale, isFieldFallback, isPreviewKey, isPublishableKey, isPublishedInLocale, localeHelpers, needsTranslation, parseKeyPath, snapToLadder };
package/dist/index.d.ts CHANGED
@@ -1,14 +1,64 @@
1
- import { C as Change, a as ChangesExpiredError, V as VisitorRetry, b as ChangesExpiredReason } from './index-BBp8_tn9.js';
2
- export { i as ActiveSandbox, aS as AdhocQuery, aT as AdhocRecord, aQ as AggregateMetric, A as AnySchemaDefinition, m as ApiMethod, l as ApiPath, n as ApiSuccessBody, a$ as AssetClient, b8 as AssetEntryResponse, b0 as AssetFileBuilder, b6 as AssetFileExtracted, b9 as AssetFileWhere, bi as AssetPlacement, b1 as AssetUploadBuilder, b3 as AssetVisibility, as as AutocompleteOptions, an as AutocompleteResponse, am as AutocompleteSuggestion, aI as BatchBody, aJ as BatchCreate, aM as BatchDelete, aP as BatchDeleteTarget, aD as BatchOperationResult, aL as BatchReplace, aF as BatchResponse, aN as BatchSingletonWrite, aE as BatchSummary, aO as BatchTarget, aK as BatchUpdate, aG as BatchWrite, aH as BatchWriteOptions, y as ChangesHeadOptions, z as ChangesOptions, aa as ChildEntry, a0 as ChildrenListOptions, $ as ChildrenOptions, ab as ChildrenRead, e as ClientDefaults, f as ClientSchema, bd as ConfirmInput, be as ConfirmResult, I as ContentClient, bh as CreateAssetOptions, J as CreateEntryOptions, s as DefaultRetryPolicy, g as DeployedContentType, D as DeployedLocale, U as DocumentFields, a1 as DocumentReadOptions, X as DocumentVersion, Y as DocumentVersionRow, Z as DocumentVersionsOptions, _ as DocumentWriteOptions, a2 as EntryList, K as EntryPlacement, N as EntryWriteOptions, F as FeedChange, a3 as FieldKey, b5 as FileBackend, bu as FileErrorCode, b4 as FileStatus, b7 as FileStatusResult, bw as FileUploadError, bv as FileUploadErrorCode, by as FileValidationConstraints, bx as FileValidationError, a4 as FreshOption, a5 as GetOptions, H as Health, j as HttpClient, B as LIVE_KEEPALIVE_INTERVAL_MS, E as LIVE_SOCKET_OPEN_TIMEOUT_MS, a6 as ListAllOptions, a7 as ListOptions, G as LiveChangesOptions, L as LocaleCodeOf, a8 as LocaleOption, M as MatchRouteOptions, bl as MultipartCreateResult, bm as MultipartPart, bn as MultipartTarget, aU as NamedQueryOptions, aV as NamedQueryParams, a9 as Paging, ba as PopulatedAssetReference, bb as PresignInput, bc as PresignResult, P as Project, aW as QueryAggregate, aX as QueryAnswer, aY as QueryCall, aR as QueryMetadata, aZ as QueryName, a_ as QueryTypeName, ac as ReadAs, q as ReadEntry, ae as ReadLocale, R as Register, h as RegisteredSchema, bf as ResolveUrlInput, bg as ResolveUrlResult, bq as ResourceConflictError, br as ResourceExpiredError, bp as ResourceNotFoundError, w as RetryPolicy, x as RetryableRequest, r as RetryableWriteOptions, p as RouteMatch, S as SandboxState, ar as SearchEntry, at as SearchFacet, au as SearchFieldKey, av as SearchHighlight, ak as SearchHitMetadata, aw as SearchOptions, ax as SearchPage, al as SearchResponse, aj as SearchResultItem, ay as SearchScope, az as SearchSelected, aA as SearchSortOption, aq as SearchTypeName, aB as SearchWhere, k as SendOptions, Q as SettingsClient, aC as SimilarOptions, ap as SimilarResponse, ao as SimilarResult, O as SingletonClient, af as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, bj as UpdateAssetOptions, bo as UploadProgress, ag as VersionOptions, bk as WaitUntilReadyOptions, W as Wire, ad as WithChildren, ah as WrittenReadScope, ai as WrittenSort, c as createClient, c as default, b2 as isAssetEntry, bt as isMissingEntry, t as isReplaySafe, bs as isResourceNotFound, o as matchRoute, u as retryPolicyFor, bz as validateFile, v as versionCheckOf } from './index-BBp8_tn9.js';
1
+ import { C as Change, a as ChangesExpiredError, V as VisitorRetry, b as ChangesExpiredReason } from './index-BxNnlc5D.js';
2
+ export { A as ActiveSandbox, aC as AdhocQuery, aD as AdhocRecord, aA as AggregateMetric, aL as AssetClient, aU as AssetEntryResponse, aM as AssetFileBuilder, aS as AssetFileExtracted, aV as AssetFileWhere, b2 as AssetPlacement, aN as AssetUploadBuilder, aP as AssetVisibility, ac as AutocompleteOptions, a7 as AutocompleteResponse, a6 as AutocompleteSuggestion, as as BatchBody, at as BatchCreate, aw as BatchDelete, az as BatchDeleteTarget, an as BatchOperationResult, av as BatchReplace, ap as BatchResponse, ax as BatchSingletonWrite, ao as BatchSummary, ay as BatchTarget, au as BatchUpdate, aq as BatchWrite, ar as BatchWriteOptions, j as ChangesHeadOptions, k as ChangesOptions, W as ChildEntry, B as ChildrenListOptions, z as ChildrenOptions, X as ChildrenRead, e as ClientDefaults, f as ClientSchema, aZ as ConfirmInput, a_ as ConfirmResult, o as ContentClient, b1 as CreateAssetOptions, p as CreateEntryOptions, g as DeployedContentType, D as DeployedLocale, t as DocumentFields, G as DocumentReadOptions, u as DocumentVersion, w as DocumentVersionRow, x as DocumentVersionsOptions, y as DocumentWriteOptions, I as EntryList, E as EntryPlacement, q as EntryWriteOptions, F as FeedChange, J as FieldKey, aR as FileBackend, be as FileErrorCode, aQ as FileStatus, aT as FileStatusResult, bg as FileUploadError, bf as FileUploadErrorCode, bi as FileValidationConstraints, bh as FileValidationError, K as FreshOption, M as GetOptions, H as Health, l as LIVE_KEEPALIVE_INTERVAL_MS, m as LIVE_SOCKET_OPEN_TIMEOUT_MS, N as ListAllOptions, O as ListOptions, n as LiveChangesOptions, L as LocaleCodeOf, Q as LocaleOption, b5 as MultipartCreateResult, b6 as MultipartPart, b7 as MultipartTarget, aE as NamedQueryOptions, aF as NamedQueryParams, U as Paging, aW as PopulatedAssetReference, aX as PresignInput, aY as PresignResult, P as Project, aG as QueryAggregate, aH as QueryAnswer, aI as QueryCall, aB as QueryMetadata, aJ as QueryName, aK as QueryTypeName, Y as ReadAs, h as ReadEntry, _ as ReadLocale, R as RecordsAccessor, a$ as ResolveUrlInput, b0 as ResolveUrlResult, ba as ResourceConflictError, bb as ResourceExpiredError, b9 as ResourceNotFoundError, i as RetryableWriteOptions, S as SandboxState, ab as SearchEntry, ad as SearchFacet, ae as SearchFieldKey, af as SearchHighlight, a4 as SearchHitMetadata, ag as SearchOptions, ah as SearchPage, a5 as SearchResponse, a3 as SearchResultItem, ai as SearchScope, aj as SearchSelected, ak as SearchSortOption, aa as SearchTypeName, al as SearchWhere, s as SettingsClient, am as SimilarOptions, a9 as SimilarResponse, a8 as SimilarResult, r as SingletonClient, $ as SortOption, d as TypedClientConfig, T as TypedRelyIOClient, b3 as UpdateAssetOptions, b8 as UploadProgress, a0 as VersionOptions, b4 as WaitUntilReadyOptions, Z as WithChildren, a1 as WrittenReadScope, a2 as WrittenSort, c as createClient, c as default, aO as isAssetEntry, bd as isMissingEntry, bc as isResourceNotFound, bj as validateFile, v as versionCheckOf } from './index-BxNnlc5D.js';
3
+ export { A as AnySchemaDefinition, f as ApiMethod, e as ApiPath, g as ApiSuccessBody, B as BaseRecord, D as DefaultRetryPolicy, H as HttpClient, M as MatchRouteOptions, y as RecordBatchOperation, z as RecordBatchOperationResult, C as RecordBatchOptions, b as RecordBatchResult, a as RecordBatchTarget, n as RecordCallOptions, d as RecordConditionValue, o as RecordFacetBucket, p as RecordFileBytes, q as RecordFileUploadOptions, s as RecordList, t as RecordListOptions, u as RecordMetadata, v as RecordReadOptions, w as RecordUpdateOptions, l as RecordsClient, c as Register, R as RegisteredSchema, j as RetryPolicy, k as RetryableRequest, h as RouteMatch, S as SendOptions, W as Wire, i as isReplaySafe, m as matchRoute, x as refusedOperationOf, r as retryPolicyFor } from './register-BiMQKVp-.js';
3
4
  export { fields } from './schema/index.js';
4
- import { cl as SDKError, aM as EntryMetadata } from './define-content-type-BGoQxqLf.js';
5
- export { aH as AnyDeclaredFieldset, cV as ApiResponse, cq as AssetFileBlock, ak as AssetReading, b2 as AssetServedBlocks, a$ as AssetTypeDefinition, cr as AssetUrls, cs as BaseContent, B as BaseFieldConfig, cu as BaseSettingsGroup, ct as BaseSingleton, c$ as BaseValidationError, ai as BlockOf, cS as CacheConfig, cX as CacheStrategy, am as CheckInclude, al as CheckedIncludes, an as ContentReading, aL as ContentTypeDefinition, cL as ContentTypeSchema, cG as ContentVersion, cH as ContentVersionRow, cA as CreateInput, cB as CreatedContent, cK as CustomQuery, cz as DateOnlyOperator, cT as DebugConfig, aG as DeclaredFieldset, cZ as Environment, h as FieldDefinition, aJ as FieldMember, cN as FieldOptions, i as FieldRule, ac as FieldSchemaContext, j as FieldType, k as FieldUIConfig, ad as FieldValue, ae as FieldValues, aF as Fieldset, b5 as FileKindConfig, bj as FileScanConfig, bi as FileUploadConfig, bb as ImageExifConfig, b3 as ImageKindConfig, ba as ImageSourceConfig, b9 as ImageUploadConfig, ao as IncludablePaths, b1 as InferAssetEntry, b0 as InferAssetType, aN as InferContentType, ca as InferJsonSchema, aT as InferSingleton, d1 as InvalidPayloadError, cb as JsonFieldValue, cc as JsonSchema, cd as JsonValue, ah as Keyed, a_ as KeyedAssetTypeConfig, aK as KeyedContentTypeConfig, K as KeyedEnumConfig, l as KeyedField, m as KeyedFieldOptions, aI as KeyedFieldsetConfig, aV as KeyedSettingsGroupConfig, aQ as KeyedSingletonConfig, co as LiveWebSocket, cp as LiveWebSocketConstructor, aO as LocalePublicationFields, r as LocalizationConfig, s as Localized, t as LocalizedDetails, cY as LogLevel, cR as PerformanceMetrics, aq as ReadWith, ap as Reading, cP as RealtimeEvent, cO as RealtimeEventType, cm as RelyIOConfig, cn as RelyIOConfigUpdate, cU as RequestConfig, cF as RestoredContent, cW as RetryConfig, cC as RevisedContent, aW as SettingsGroupDefinition, ar as SettingsReading, aj as ShapeValue, cJ as SingletonContent, aR as SingletonContentTypeDefinition, aS as SingletonMetadata, as as SingletonReading, cQ as SubscriptionOptions, ag as UnresolvedEntry, at as UntypedReading, cI as UpdateInput, d0 as ValidationError, cM as ValidationRule, c_ as ValidationViolation, bc as VariantDefinition, bf as VideoCaptionsConfig, bg as VideoDownloadConfig, b4 as VideoKindConfig, be as VideoPosterConfig, bd as VideoUploadConfig, bh as VideoWatermarkConfig, cx as WhereClause, cw as WhereFieldCondition, cy as WhereOperator, cv as WhereScalar, W as WidgetOptions, cE as WrittenSettingsGroup, cD as WrittenSingleton, aZ as defineAssetType, aD as defineContentType, au as defineLocale, aU as defineSettingsGroup, aP as defineSingleton, aE as fieldset } from './define-content-type-BGoQxqLf.js';
5
+ import { d3 as SDKError, aW as EntryMetadata } from './define-content-type-C12jh8cY.js';
6
+ export { aQ as AnyDeclaredFieldset, d2 as ApiResponse, d8 as AssetFileBlock, at as AssetReading, bc as AssetServedBlocks, b9 as AssetTypeDefinition, d9 as AssetUrls, da as BaseContent, B as BaseFieldConfig, dc as BaseSettingsGroup, db as BaseSingleton, dI as BaseValidationError, ar as BlockOf, dB as CacheConfig, dE as CacheStrategy, av as CheckInclude, au as CheckedIncludes, aw as ContentReading, aV as ContentTypeDefinition, du as ContentTypeSchema, dp as ContentVersion, dq as ContentVersionRow, di as CreateInput, dj as CreatedContent, dt as CustomQuery, dh as DateOnlyOperator, dC as DebugConfig, aP as DeclaredFieldset, dG as Environment, i as FieldDefinition, aS as FieldMember, dw as FieldOptions, j as FieldRule, al as FieldSchemaContext, k as FieldType, l as FieldUIConfig, am as FieldValue, an as FieldValues, aO as Fieldset, bf as FileKindConfig, bt as FileScanConfig, cx as FileUpload, bs as FileUploadConfig, bl as ImageExifConfig, bd as ImageKindConfig, bk as ImageSourceConfig, bj as ImageUploadConfig, ax as IncludablePaths, bb as InferAssetEntry, ba as InferAssetType, aX as InferContentType, ct as InferJsonSchema, b1 as InferSingleton, dK as InvalidPayloadError, cu as JsonFieldValue, cv as JsonSchema, cw as JsonValue, aq as Keyed, b8 as KeyedAssetTypeConfig, aT as KeyedContentTypeConfig, K as KeyedEnumConfig, n as KeyedField, o as KeyedFieldOptions, aR as KeyedFieldsetConfig, b3 as KeyedSettingsGroupConfig, a_ as KeyedSingletonConfig, d6 as LiveWebSocket, d7 as LiveWebSocketConstructor, aY as LocalePublicationFields, t as LocalizationConfig, u as Localized, v as LocalizedDetails, dF as LogLevel, N as NeverUniqueFieldConfig, dA as PerformanceMetrics, az as ReadWith, ay as Reading, dy as RealtimeEvent, dx as RealtimeEventType, cy as RecordFile, d4 as RelyIOConfig, d5 as RelyIOConfigUpdate, dD as RequestConfig, dn as RestoredContent, d0 as RetryConfig, dk as RevisedContent, b4 as SettingsGroupDefinition, aA as SettingsReading, as as ShapeValue, ds as SingletonContent, a$ as SingletonContentTypeDefinition, b0 as SingletonMetadata, aB as SingletonReading, dz as SubscriptionOptions, ap as UnresolvedEntry, aC as UntypedReading, dr as UpdateInput, dJ as ValidationError, dv as ValidationRule, dH as ValidationViolation, bm as VariantDefinition, bp as VideoCaptionsConfig, bq as VideoDownloadConfig, be as VideoKindConfig, bo as VideoPosterConfig, bn as VideoUploadConfig, br as VideoWatermarkConfig, df as WhereClause, de as WhereFieldCondition, dg as WhereOperator, dd as WhereScalar, Z as WidgetOptions, dm as WrittenSettingsGroup, dl as WrittenSingleton, b7 as defineAssetType, aM as defineContentType, aD as defineLocale, b2 as defineSettingsGroup, aZ as defineSingleton, aN as fieldset } from './define-content-type-C12jh8cY.js';
7
+ export { y as AggregateBlock, a6 as AnyQueryParameters, a7 as DeclaredParameters, x as FetchBlock, U as FilterDefinition, L as IncludeDefinition, a4 as InferQueryParams, a3 as InferQueryResponse, I as InferRecordType, Q as QueryConfig, u as QueryDefinition, a5 as QueryParameterValue, o as RecordFieldsOf, q as RecordUpdateFieldsOf, r as RecordWriteFieldsOf, h as SchemaAssetTypeNames, S as SchemaConfig, b as SchemaContentTypeNames, a as SchemaDefinition, j as SchemaEntry, k as SchemaEntryOf, f as SchemaLocaleCodes, e as SchemaQueryNames, g as SchemaSettingsGroupNames, c as SchemaSingletonNames, z as SearchBlock, T as SelectMapping, G as SortCondition, B as WhereCondition, t as defineQuery, d as defineSchema } from './define-schema-CK7TtYot.js';
6
8
  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 { n as RICH_TEXT_VOID_TAGS, R as RelyIOFieldAttributes, a as RelyIOFieldName, b as RelyIOFieldPath, c as RelyIOKeyed, q as RichTextAnchorsOption, t as RichTextAttributes, u as RichTextBlocksOf, v as RichTextDeclaredOf, w as RichTextDeclaredWriters, x as RichTextEntryLinkOf, y as RichTextEntryLinkOption, j as RichTextHtmlDeclaredWriters, k as RichTextHtmlFieldOption, l as RichTextHtmlOptions, z as RichTextInlineOf, m as RichTextMarkdownOptions, A as RichTextNodeContext, B as RichTextRenderable, C as RichTextRenderableOf, D as RichTextReplaceableNode, E as RichTextTag, F as RichTextTarget, e as entryHeadingAnchors, g as escapeHtml, o as isDeclaredRichTextNode, r as relyioField, p as renderRichText, d as richTextHeadingAnchors, f as richTextHeadingSlug, h as richTextToHtml, i as richTextToMarkdown, s as safeRichTextHref } from './index-DaMZ4FQ_.js';
8
- export { A as AggregateBlock, L as AnyQueryParameters, M as DeclaredParameters, n as FetchBlock, w as FilterDefinition, I as IncludeDefinition, J as InferQueryParams, G as InferQueryResponse, Q as QueryConfig, l as QueryDefinition, K as QueryParameterValue, 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, o as SearchBlock, v as SelectMapping, s as SortCondition, W as WhereCondition, k as defineQuery, d as defineSchema } from './define-schema-DgCX9YB7.js';
9
+ export { n as RICH_TEXT_VOID_TAGS, R as RelyIOFieldAttributes, a as RelyIOFieldName, b as RelyIOFieldPath, c as RelyIOKeyed, q as RichTextAnchorsOption, t as RichTextAttributes, u as RichTextBlocksOf, v as RichTextDeclaredOf, w as RichTextDeclaredWriters, x as RichTextEntryLinkOf, y as RichTextEntryLinkOption, j as RichTextHtmlDeclaredWriters, k as RichTextHtmlFieldOption, l as RichTextHtmlOptions, z as RichTextInlineOf, m as RichTextMarkdownOptions, A as RichTextNodeContext, B as RichTextRenderable, C as RichTextRenderableOf, D as RichTextReplaceableNode, E as RichTextTag, F as RichTextTarget, e as entryHeadingAnchors, g as escapeHtml, o as isDeclaredRichTextNode, r as relyioField, p as renderRichText, d as richTextHeadingAnchors, f as richTextHeadingSlug, h as richTextToHtml, i as richTextToMarkdown, s as safeRichTextHref } from './index-C-MymZTe.js';
9
10
  export { e as RichTextBlock, f as RichTextCellAlignment, g as RichTextCodeBlock, h as RichTextCodeGroup, i as RichTextCodeLines, j as RichTextDivider, d as RichTextEntryLinkMark, k as RichTextHeading, l as RichTextInline, m as RichTextLineBreak, n as RichTextLinkMark, o as RichTextList, p as RichTextListItem, q as RichTextListStyle, r as RichTextMark, s as RichTextMarkType, t as RichTextNode, u as RichTextParagraph, v as RichTextQuote, w as RichTextSpan, x as RichTextStructure, y as RichTextTable, z as RichTextTableCell, B as RichTextTableRow, b as RichTextValue } from './rich-text.d-BWc-5gX1.js';
10
11
  import './dev-handshake/index.js';
11
12
 
13
+ /**
14
+ * Why a run ended without an answer — the one list every reader, document enum and refusal's details
15
+ * are built from:
16
+ *
17
+ * - `threw` — the customer's code threw, or its promise rejected.
18
+ * - `exceeded-cpu` — past its CPU limit: Cloudflare ended it.
19
+ * - `exceeded-memory` — past 128 MB: Cloudflare ended it.
20
+ * - `exceeded-duration` — a Container past its declared duration: its runner ended it (REL-3832).
21
+ * - `load-failed` — the bundle could not be read or loaded, or does not default-export a Function.
22
+ * - `output-invalid` — it answered something that is not JSON.
23
+ */
24
+ declare const FUNCTION_RUN_FAILURES: readonly ['threw', 'exceeded-cpu', 'exceeded-memory', 'exceeded-duration', 'load-failed', 'output-invalid'];
25
+ /** Why a run ended without an answer: one of {@link FUNCTION_RUN_FAILURES}. */
26
+ type FunctionRunFailure$1 = (typeof FUNCTION_RUN_FAILURES)[number];
27
+
28
+ /**
29
+ * The End-user token a request carries, read **one** way wherever it is read (spec 4, REL-3880).
30
+ *
31
+ * A customer's app sends the token its identity provider minted for the person signed in to it in
32
+ * `X-RelyIO-End-User`, beside its key. `apps/services/api` verifies it against the Environment's
33
+ * identity source and answers as that End user; `apps/edge/api` never looks up or stores a response
34
+ * to a request that carries it (`edge-delivery-spec.md`'s withhold list), since that response is one
35
+ * person's. Both read the header here, so "carries a token" is one rule for the cache and the origin:
36
+ * a request the edge passed through as an End user's is one origin answers as an End user's.
37
+ *
38
+ * - The header is matched case-insensitively and its value trimmed. A value that is blank once
39
+ * trimmed is **no token**: the request is the key's alone, as without the header.
40
+ * - It never carries the key, and the key's headers never carry it: `X-API-Key` keeps meaning the
41
+ * key, and `Authorization: Bearer` keeps meaning the key when it is alone (`./credential.ts`).
42
+ *
43
+ * Its refusal is `END_USER_TOKEN_INVALID` (401) with `details.reason`, one of
44
+ * {@link END_USER_TOKEN_REFUSAL_REASONS}.
45
+ */
46
+
47
+ /**
48
+ * Why an End user's token was refused, as `END_USER_TOKEN_INVALID`'s `details.reason`:
49
+ *
50
+ * - `missing` — the call needs one and carried none: a publishable key's call of a Function declaring
51
+ * `endUsers: 'required'` (spec 4, REL-3892).
52
+ * - `no-identity-source` — the Environment the request is answered in has no identity source: its
53
+ * Project uses no identity Extension, or has no Connection of it for the Environment (nor, for
54
+ * Preview, for Production).
55
+ * - the rest — the verifier's (`@relyio/auth/end-users`): the token is malformed, signed with an
56
+ * algorithm RelyIO does not take, from another issuer, by a key the issuer does not publish, with a
57
+ * signature that does not verify, for another audience, expired, not yet valid, or naming no subject.
58
+ */
59
+ declare const END_USER_TOKEN_REFUSAL_REASONS: readonly ['missing', 'no-identity-source', 'malformed', 'unsupported-algorithm', 'wrong-issuer', 'unknown-key', 'bad-signature', 'wrong-audience', 'expired', 'not-yet-valid', 'missing-subject'];
60
+ type EndUserTokenRefusalReason = (typeof END_USER_TOKEN_REFUSAL_REASONS)[number];
61
+
12
62
  /**
13
63
  * What a key may do is in its prefix. A RelyIO project key is
14
64
  * `rly_{scope}_{region}_v2_{entropy}_{checksum}`: the scope first, then the region of its project's
@@ -335,10 +385,10 @@ declare class ConnectionError extends SDKError {
335
385
  * `details.reason: 'expired'`.
336
386
  *
337
387
  * `AuthenticationError` was deleted by REL-1471 for the same reason. The
338
- * vocabulary's two 401 codes are `MISSING_API_KEY` and `INVALID_API_KEY`, and
339
- * the mapper throws `MissingApiKeyError` and `InvalidApiKeyError` for them —
340
- * so a generic 401 class had no refusal left to stand for, and nothing
341
- * constructed it.
388
+ * vocabulary's 401 codes are `MISSING_API_KEY`, `INVALID_API_KEY` and — since
389
+ * spec 4 — `END_USER_TOKEN_INVALID`, and the mapper throws `MissingApiKeyError`,
390
+ * `InvalidApiKeyError` and `EndUserTokenInvalidError` for them — so a generic
391
+ * 401 class has no refusal left to stand for, and nothing constructs it.
342
392
  */
343
393
  declare class AuthorizationError extends SDKError {
344
394
  readonly code = "AUTHORIZATION_ERROR";
@@ -352,6 +402,19 @@ declare class InvalidApiKeyError extends SDKError {
352
402
  constructor(message?: string, cause?: Error, context?: Record<string, unknown>);
353
403
  getUserMessage(): string;
354
404
  }
405
+ /**
406
+ * The End user's token the request carried was refused (spec 4, REL-3863): `reason` says why —
407
+ * `expired`, `wrong-audience`, `missing` for a call that needs one, and the rest of
408
+ * `END_USER_TOKEN_REFUSAL_REASONS`. Caught by class, an app signs the shopper in again rather than
409
+ * reading its key as bad.
410
+ */
411
+ declare class EndUserTokenInvalidError extends SDKError {
412
+ readonly reason: EndUserTokenRefusalReason | undefined;
413
+ readonly code = "END_USER_TOKEN_INVALID";
414
+ readonly retryable = false;
415
+ constructor(message: string, reason: EndUserTokenRefusalReason | undefined, context?: Record<string, unknown>);
416
+ getUserMessage(): string;
417
+ }
355
418
 
356
419
  /**
357
420
  * One class per contract code that had none.
@@ -385,6 +448,77 @@ declare class ReadOnlyKeyError extends SDKError {
385
448
  constructor(message?: string, context?: Record<string, unknown>);
386
449
  getUserMessage(): string;
387
450
  }
451
+ /**
452
+ * `PUBLISHABLE_KEY_REFUSED` — a publishable key writing a Record with no End user's token, uploading
453
+ * a Record's File, or calling a Function that does not declare `endUsers` (REL-3771). A browser
454
+ * writes a Record only for a signed-in End user, as the type's write Policy allows (spec 4,
455
+ * REL-3884), and calls a Function only when it opts in (REL-3892): send their token, declare
456
+ * `endUsers` on the Function, or call from your server with a secret key.
457
+ */
458
+ declare class PublishableKeyRefusedError extends SDKError {
459
+ readonly code = "PUBLISHABLE_KEY_REFUSED";
460
+ readonly retryable = false;
461
+ constructor(message?: string, context?: Record<string, unknown>);
462
+ getUserMessage(): string;
463
+ }
464
+ /** Why a Function run ended without an answer (spec 2, REL-3821): the contract's one list. */
465
+ type FunctionRunFailure = FunctionRunFailure$1;
466
+ /**
467
+ * `FUNCTION_RUN_FAILED` — the Function ran and ended without an answer: its code threw, it was ended
468
+ * at its CPU or memory limit, or its bundle could not be loaded (spec 2, REL-3821). `runId` names the
469
+ * run, whose record and console output Manage serves; `runError` is what the run's code threw.
470
+ */
471
+ declare class FunctionRunFailedError extends SDKError {
472
+ readonly code = "FUNCTION_RUN_FAILED";
473
+ readonly retryable = false;
474
+ readonly runId?: string;
475
+ readonly failure?: FunctionRunFailure;
476
+ readonly runError?: {
477
+ readonly name: string;
478
+ readonly message: string;
479
+ };
480
+ constructor(message?: string, run?: {
481
+ readonly runId?: string;
482
+ readonly failure?: FunctionRunFailure;
483
+ readonly runError?: {
484
+ readonly name: string;
485
+ readonly message: string;
486
+ };
487
+ }, context?: Record<string, unknown>);
488
+ getUserMessage(): string;
489
+ }
490
+ /**
491
+ * `FUNCTION_CONTAINERS_BUSY` — the project is running as many Function runs in Containers at once
492
+ * as its plan includes, so this run was not started: nothing ran and nothing was counted (spec 2,
493
+ * REL-3832). `retryAfterMs` is the service's `Retry-After`. Not retried by the client on its own: a
494
+ * Function call is never retried for you. A run started from a schedule or an Automation step waits
495
+ * for a free Container instead.
496
+ */
497
+ declare class FunctionContainersBusyError extends SDKError {
498
+ readonly code = "FUNCTION_CONTAINERS_BUSY";
499
+ readonly retryable = false;
500
+ /** The Function that was not started. */
501
+ readonly function?: string;
502
+ /** `Retry-After`, in milliseconds, where the response carried a readable one. */
503
+ readonly retryAfterMs?: number;
504
+ constructor(message?: string, name?: string, context?: Record<string, unknown>, retryAfterMs?: number);
505
+ getUserMessage(): string;
506
+ }
507
+ /**
508
+ * `FUNCTION_RUN_TIMED_OUT` — the call waited five minutes and the run had not answered. The run is
509
+ * not stopped: it goes on to its own limit, and its record says how it ends (spec 2, REL-3821).
510
+ */
511
+ declare class FunctionRunTimedOutError extends SDKError {
512
+ readonly code = "FUNCTION_RUN_TIMED_OUT";
513
+ readonly retryable = false;
514
+ readonly runId?: string;
515
+ readonly waitedMs?: number;
516
+ constructor(message?: string, run?: {
517
+ readonly runId?: string;
518
+ readonly waitedMs?: number;
519
+ }, context?: Record<string, unknown>);
520
+ getUserMessage(): string;
521
+ }
388
522
  /** `PLAN_FEATURE_UNAVAILABLE` — the plan does not include the capability. */
389
523
  declare class PlanFeatureUnavailableError extends SDKError {
390
524
  readonly code = "PLAN_FEATURE_UNAVAILABLE";
@@ -667,7 +801,6 @@ interface LanguageSwitcherOption {
667
801
  status: LocaleStatus['status'];
668
802
  isCurrent: boolean;
669
803
  isDefault: boolean;
670
- hasContent: boolean;
671
804
  }
672
805
  /**
673
806
  * Options for building language switcher
@@ -677,8 +810,6 @@ interface LanguageSwitcherOptions {
677
810
  currentLocale: string;
678
811
  /** Whether to show inactive locales */
679
812
  showInactive?: boolean;
680
- /** Whether to show archived locales */
681
- showArchived?: boolean;
682
813
  /** Custom display name resolver */
683
814
  getDisplayName?: (code: string) => string;
684
815
  }
@@ -728,13 +859,12 @@ declare function getFieldFallbackLocale(entry: LocalizedEntry, fieldName: string
728
859
  * ```typescript
729
860
  * const options = localeHelpers.buildLanguageSwitcher(product, {
730
861
  * currentLocale: 'en-US',
731
- * showArchived: false,
732
862
  * })
733
863
  *
734
864
  * // Returns:
735
865
  * // [
736
- * // { code: 'en-US', label: 'English (US)', status: 'published', isCurrent: true, isDefault: true, hasContent: true },
737
- * // { code: 'es-ES', label: 'es-ES', status: 'published', isCurrent: false, isDefault: false, hasContent: true },
866
+ * // { code: 'en-US', label: 'English (US)', status: 'published', isCurrent: true, isDefault: true },
867
+ * // { code: 'es-ES', label: 'es-ES', status: 'published', isCurrent: false, isDefault: false },
738
868
  * // ]
739
869
  * ```
740
870
  */
@@ -982,4 +1112,4 @@ declare function snapToLadder(value: number): number;
982
1112
 
983
1113
  declare const VERSION = "__VERSION__";
984
1114
 
985
- export { AuthorizationError, Change, type ChangeSource, type ChangeSourceOptions, ChangesExpiredError, ChangesExpiredReason, ConnectionError, EntryMetadata, ErrorMapper, FOLLOW_BACK_OFF_MAX_MS, FOLLOW_RETRY_BASE_MS, FOLLOW_RETRY_MAX_MS, type FollowEnd, type FollowOptions, type FollowResync, type FollowState, type FollowVerdict, IMAGE_LADDER, InvalidApiKeyError, type KeyPathSegment, type LanguageSwitcherOption, type LanguageSwitcherOptions, type LiveEdgeEnd, LiveEdgeError, type LocaleMetadata, type LocaleStatus, type LocalizedEntry, MethodNotAllowedError, MissingApiKeyError, NetworkError, PREVIEW_KEY_PREFIX, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, RELYIO_CHANGE_EVENT, RELYIO_RESYNC_EVENT, RateLimitError, ReadOnlyKeyError, type RelyIOChangeDetail, type RelyIOResyncDetail, SDKError, ServerError, ServiceIndeterminateError, TimeoutError, TransactionRolledBackError, type TranslationCompleteness, UnknownContractError, UsageQuotaExceededError, VERSION, buildLanguageSwitcher, classifyFollowFailure, estimateTranslationCompleteness, followChanges, formatKeyPath, getAllLocalizedValues, getAvailableLocaleCodes, getDefaultLocale, getFallbackFields, getFieldFallbackLocale, getLocalizedField, getPublishedLocaleCodes, getRequestedLocale, hasLocale, isFieldFallback, isPreviewKey, isPublishableKey, isPublishedInLocale, localeHelpers, needsTranslation, parseKeyPath, snapToLadder };
1115
+ export { AuthorizationError, Change, type ChangeSource, type ChangeSourceOptions, ChangesExpiredError, ChangesExpiredReason, ConnectionError, EndUserTokenInvalidError, EntryMetadata, ErrorMapper, FOLLOW_BACK_OFF_MAX_MS, FOLLOW_RETRY_BASE_MS, FOLLOW_RETRY_MAX_MS, type FollowEnd, type FollowOptions, type FollowResync, type FollowState, type FollowVerdict, FunctionContainersBusyError, FunctionRunFailedError, type FunctionRunFailure, FunctionRunTimedOutError, IMAGE_LADDER, InvalidApiKeyError, type KeyPathSegment, type LanguageSwitcherOption, type LanguageSwitcherOptions, type LiveEdgeEnd, LiveEdgeError, type LocaleMetadata, type LocaleStatus, type LocalizedEntry, MethodNotAllowedError, MissingApiKeyError, NetworkError, PREVIEW_KEY_PREFIX, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, PublishableKeyRefusedError, RELYIO_CHANGE_EVENT, RELYIO_RESYNC_EVENT, RateLimitError, ReadOnlyKeyError, type RelyIOChangeDetail, type RelyIOResyncDetail, SDKError, ServerError, ServiceIndeterminateError, TimeoutError, TransactionRolledBackError, type TranslationCompleteness, UnknownContractError, UsageQuotaExceededError, VERSION, buildLanguageSwitcher, classifyFollowFailure, estimateTranslationCompleteness, followChanges, formatKeyPath, getAllLocalizedValues, getAvailableLocaleCodes, getDefaultLocale, getFallbackFields, getFieldFallbackLocale, getLocalizedField, getPublishedLocaleCodes, getRequestedLocale, hasLocale, isFieldFallback, isPreviewKey, isPublishableKey, isPublishedInLocale, localeHelpers, needsTranslation, parseKeyPath, snapToLadder };
package/dist/index.js CHANGED
@@ -1,12 +1,13 @@
1
- export { defineAssetType, defineContentType, defineLocale, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, fields, fieldset } from './chunk-DIZY6CKM.js';
2
- import { LiveEdgeError, SDKError, serviceInstructedDelayMs, isAborted, sleep } from './chunk-VS2DEUTN.js';
3
- export { AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthorizationError, BaseValidationError, ChangesExpiredError, ConnectionError, ContentClient, DefaultRetryPolicy, ErrorMapper, FileUploadError, FileValidationError, HttpClient, InvalidApiKeyError, InvalidPayloadError, LIVE_KEEPALIVE_INTERVAL_MS, LIVE_SOCKET_OPEN_TIMEOUT_MS, LiveEdgeError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PREVIEW_KEY_PREFIX, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, RateLimitError, ReadOnlyKeyError, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, ServerError, ServiceIndeterminateError, SettingsClient, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, isAssetEntry, isMissingEntry, isPreviewKey, isPublishableKey, isReplaySafe, isResourceNotFound, matchRoute, retryPolicyFor, validateFile, versionCheckOf } from './chunk-VS2DEUTN.js';
4
- import './chunk-BBUB7C2Z.js';
5
- import { VISITOR_ADMISSION_RETRY_AFTER_SECONDS } from './chunk-OVMIHAYK.js';
6
1
  import './chunk-IY5LSKXU.js';
7
- export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './chunk-H6IBQSMM.js';
8
- export { RICH_TEXT_VOID_TAGS, entryHeadingAnchors, escapeHtml, formatKeyPath, isDeclaredRichTextNode, parseKeyPath, relyioField, renderRichText, richTextHeadingAnchors, richTextHeadingSlug, richTextToHtml, richTextToMarkdown, safeRichTextHref } from './chunk-5UMY6CS4.js';
9
- import { __name } from './chunk-XQ4QHWZE.js';
2
+ export { RICH_TEXT_VOID_TAGS, entryHeadingAnchors, escapeHtml, formatKeyPath, isDeclaredRichTextNode, parseKeyPath, relyioField, renderRichText, richTextHeadingAnchors, richTextHeadingSlug, richTextToHtml, richTextToMarkdown, safeRichTextHref } from './chunk-ZAKEY6DY.js';
3
+ export { defineAssetType, defineContentType, defineLocale, defineQuery, defineSchema, defineSettingsGroup, defineSingleton, fields, fieldset } from './chunk-PZCDJFMA.js';
4
+ import { LiveEdgeError, SDKError, serviceInstructedDelayMs, isAborted, sleep } from './chunk-356SF5Y2.js';
5
+ export { AssetClient, AssetFileBuilder, AssetUploadBuilder, AuthorizationError, BaseValidationError, ChangesExpiredError, ConnectionError, ContentClient, DefaultRetryPolicy, EndUserTokenInvalidError, ErrorMapper, FileUploadError, FileValidationError, FunctionContainersBusyError, FunctionRunFailedError, FunctionRunTimedOutError, HttpClient, InvalidApiKeyError, InvalidPayloadError, LIVE_KEEPALIVE_INTERVAL_MS, LIVE_SOCKET_OPEN_TIMEOUT_MS, LiveEdgeError, MethodNotAllowedError, MissingApiKeyError, NetworkError, PREVIEW_KEY_PREFIX, PUBLISHABLE_KEY_PREFIX, PayloadTooLargeError, PlanFeatureUnavailableError, PublishableKeyRefusedError, RateLimitError, ReadOnlyKeyError, RecordsClient, ResourceConflictError, ResourceExpiredError, ResourceNotFoundError, SDKError, ServerError, ServiceIndeterminateError, SettingsClient, SingletonClient, TimeoutError, TransactionRolledBackError, TypedRelyIOClient, UnknownContractError, UsageQuotaExceededError, ValidationError, createClient, createClient as default, isAssetEntry, isMissingEntry, isPreviewKey, isPublishableKey, isReplaySafe, isResourceNotFound, matchRoute, refusedOperationOf, retryPolicyFor, validateFile, versionCheckOf } from './chunk-356SF5Y2.js';
6
+ export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from './chunk-NJQK5STK.js';
7
+ import './chunk-W2A4OTCI.js';
8
+ import './chunk-HDHBYYEY.js';
9
+ import { VISITOR_ADMISSION_RETRY_AFTER_SECONDS } from './chunk-T7LGREB3.js';
10
+ import { __name } from './chunk-DI6KFDBO.js';
10
11
 
11
12
  /* RelyIO SDK - Built with ❤️ by the RelyIO Team */
12
13
 
@@ -147,18 +148,12 @@ __name(getFieldFallbackLocale, "getFieldFallbackLocale");
147
148
  function buildLanguageSwitcher(entry, options) {
148
149
  const availableLocales = entry._metadata?.availableLocales ?? [];
149
150
  const defaultLocale = entry._metadata?.defaultLocale;
150
- return availableLocales.filter((locale) => {
151
- if (options.showArchived !== true && locale.status === "archived") {
152
- return false;
153
- }
154
- return true;
155
- }).map((locale) => ({
151
+ return availableLocales.map((locale) => ({
156
152
  code: locale.code,
157
153
  label: options.getDisplayName?.(locale.code) ?? locale.code,
158
154
  status: locale.status,
159
155
  isCurrent: locale.code === options.currentLocale,
160
- isDefault: locale.code === defaultLocale,
161
- hasContent: locale.status !== "archived"
156
+ isDefault: locale.code === defaultLocale
162
157
  }));
163
158
  }
164
159
  __name(buildLanguageSwitcher, "buildLanguageSwitcher");