@relyio/sdk 0.17.0 → 0.18.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 +15 -0
  2. package/dist/automations/index.cjs +70 -0
  3. package/dist/automations/index.d.cts +1309 -0
  4. package/dist/automations/index.d.ts +1309 -0
  5. package/dist/automations/index.js +5 -0
  6. package/dist/{chunk-RSHMA4KT.cjs → chunk-2SPPU2WG.cjs} +68 -68
  7. package/dist/chunk-7I3SC7SV.cjs +40 -0
  8. package/dist/chunk-DI6KFDBO.js +43 -0
  9. package/dist/chunk-EDE2H37D.js +686 -0
  10. package/dist/chunk-HDHBYYEY.js +36 -0
  11. package/dist/{chunk-6E22GYPB.cjs → chunk-IFKF72VJ.cjs} +705 -320
  12. package/dist/chunk-L6DXCKVQ.cjs +50 -0
  13. package/dist/chunk-LSI26ZN2.cjs +535 -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-R6E4HE7R.js +520 -0
  17. package/dist/chunk-SHSK7UUY.cjs +706 -0
  18. package/dist/{chunk-BBUB7C2Z.js → chunk-W2A4OTCI.js} +3 -3
  19. package/dist/chunk-W7JFHSFM.js +18718 -0
  20. package/dist/{chunk-5UMY6CS4.js → chunk-ZAKEY6DY.js} +3 -3
  21. package/dist/chunk-ZAMAR3X2.cjs +18759 -0
  22. package/dist/{chunk-VS2DEUTN.js → chunk-ZHTJ7GXH.js} +387 -8
  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-NEQDrvdq.d.cts} +3342 -805
  29. package/dist/{define-content-type-BGoQxqLf.d.ts → define-content-type-fb-WCD5e.d.ts} +3342 -805
  30. package/dist/{define-schema-DgCX9YB7.d.ts → define-schema-DZhtvLiK.d.cts} +157 -10
  31. package/dist/{define-schema-DkXwpp0I.d.cts → define-schema-Dlwh6l_J.d.ts} +157 -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 +80 -0
  35. package/dist/extensions/index.d.cts +792 -0
  36. package/dist/extensions/index.d.ts +792 -0
  37. package/dist/extensions/index.js +76 -0
  38. package/dist/functions/index.cjs +68 -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 +59 -0
  42. package/dist/{index-DaMZ4FQ_.d.ts → index-C4LqrNd1.d.ts} +1 -1
  43. package/dist/{index-Bp4AiNT3.d.cts → index-Dnmt_UOo.d.cts} +1 -1
  44. package/dist/{index-DxRmKPrR.d.cts → index-DwHcL6x5.d.cts} +83 -428
  45. package/dist/{index-BBp8_tn9.d.ts → index-M3luH06A.d.ts} +83 -428
  46. package/dist/index.cjs +204 -185
  47. package/dist/index.d.cts +93 -13
  48. package/dist/index.d.ts +93 -13
  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-B53i97A9.d.ts +677 -0
  55. package/dist/register-BYCs0FpF.d.cts +677 -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 +62 -34
  61. package/dist/schema/index.d.cts +127 -5
  62. package/dist/schema/index.d.ts +127 -5
  63. package/dist/schema/index.js +2 -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
@@ -1,8 +1,123 @@
1
- export { A as AggregateBlock, L as AnyQueryParameters, C as CachePolicy, x as CachePolicyObject, M as DeclaredParameters, n as FetchBlock, w as FilterDefinition, F as FullTextSearch, H as HavingOperator, I as IncludeDefinition, u as IncludeRelationship, z as IncludeSubQueries, y as IncludeSubQuery, J as InferQueryParams, G as InferQueryResponse, P as Parameterizable, E as QueryCardinality, Q as QueryConfig, l as QueryDefinition, B as QueryParameter, D as QueryParameterType, K as QueryParameterValue, r as QueryScalar, m as QueryType, R as RolesAsList, 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, t as SortDirection, V as ViewsAsList, W as WhereCondition, q as WhereOperator, p as WhereValue, k as defineQuery, d as defineSchema } from '../define-schema-DgCX9YB7.js';
2
- import { A as AIConfig, a as AnyFieldDefinition, b as AnyKeyedField, c as AssetAIConfig, B as BaseFieldConfig, d as BooleanConfig, C as CodeConfig, D as DateConfig, e as DateTimeConfig, f as DecimalConfig, E as EmailConfig, g as EnumConfig, F as FieldAIConfig, h as FieldDefinition, i as FieldRule, j as FieldType, k as FieldUIConfig, I as IntegerConfig, J as JsonConfig, K as KeyedEnumConfig, l as KeyedField, m as KeyedFieldOptions, n as KeyedFields, o as KeyedFieldsOf, p as KeyedMembers, q as KeyedMembersOf, L as ListConfig, r as LocalizationConfig, s as Localized, t as LocalizedDetails, u as LongTextConfig, O as ObjectConfig, R as ReadOnlyRule, v as ReferenceConfig, w as RequirementRule, x as RichTextConfig, y as RichTextLinks, z as RuleCondition, G as RuleConditions, S as ShortTextConfig, H as SlugConfig, T as TableConfig, M as TagsConfig, U as UrlConfig, V as ValidationRule, N as VisibilityRule, W as WidgetOptions, P as boolean, Q as code, X as date, Y as dateTime, Z as decimal, _ as email, $ as enumField, a0 as integer, a1 as json, a2 as list, a3 as longText, a4 as object, a5 as reference, a6 as richText, a7 as shortText, a8 as slug, a9 as table, aa as tags, ab as url } from '../define-content-type-BGoQxqLf.js';
3
- export { b_ as AllScopeConfig, aH as AnyDeclaredFieldset, ak as AssetReading, b2 as AssetServedBlocks, a$ as AssetTypeDefinition, bo as BUILT_IN_ROLES, bq as BUILT_IN_ROLE_ACTIONS, ai as BlockOf, br as BuiltInRole, am as CheckInclude, al as CheckedIncludes, an as ContentReading, aL as ContentTypeDefinition, bX as ContentTypeScopeConfig, bQ as ContentTypeWorkflowConfig, bY as ContentTypesScopeConfig, af as DeclaredFields, aG as DeclaredFieldset, aM as EntryMetadata, bZ as EntryTypeScopeConfig, aJ as FieldMember, ac as FieldSchemaContext, ad as FieldValue, ae as FieldValues, bu as FieldVisibility, aF as Fieldset, b5 as FileKindConfig, bj as FileScanConfig, bi as FileUploadConfig, bb as ImageExifConfig, b7 as ImageFitMode, b3 as ImageKindConfig, b8 as ImageOutputFormat, ba as ImageSourceConfig, b6 as ImageTransform, b9 as ImageUploadConfig, ao as IncludablePaths, b1 as InferAssetEntry, b0 as InferAssetType, aN as InferContentType, ca as InferJsonSchema, aY as InferSettingsGroup, aT as InferSingleton, cb as JsonFieldValue, cc as JsonSchema, cd as JsonValue, ah as Keyed, a_ as KeyedAssetTypeConfig, aK as KeyedContentTypeConfig, aI as KeyedFieldsetConfig, bx as KeyedRoleConfig, by as KeyedRoleDefinition, bz as KeyedRoles, bA as KeyedRolesAsList, aV as KeyedSettingsGroupConfig, aQ as KeyedSingletonConfig, c6 as KeyedViewConfig, c7 as KeyedViewDefinition, c8 as KeyedViews, c9 as KeyedViewsAsList, bR as KeyedWorkflowConfig, bS as KeyedWorkflowStageConfig, bT as KeyedWorkflowStageDefinition, bU as KeyedWorkflowStages, aC as LocaleDefinition, aB as LocaleOptions, aO as LocalePublicationFields, bp as ROLE_ACTIONS, aq as ReadWith, ap as Reading, bt as ResourcePermission, bs as RoleAction, bv as RoleConfig, bw as RoleDefinition, aW as SettingsGroupDefinition, aX as SettingsGroupMetadata, ar as SettingsReading, aj as ShapeValue, aR as SingletonContentTypeDefinition, aS as SingletonMetadata, as as SingletonReading, aA as TextDirection, ag as UnresolvedEntry, at as UntypedReading, bc as VariantDefinition, bf as VideoCaptionsConfig, bg as VideoDownloadConfig, b4 as VideoKindConfig, be as VideoPosterConfig, bd as VideoUploadConfig, bh as VideoWatermarkConfig, c4 as ViewConfig, c5 as ViewDefinition, c3 as ViewFilter, c2 as ViewFilterCondition, b$ as ViewFilterOperator, c1 as ViewFilterRelativeDate, c0 as ViewFilterValue, bW as ViewScopeConfig, bM as WorkflowAutoAssign, bP as WorkflowDefinition, bL as WorkflowEscalation, bN as WorkflowStageConfig, bO as WorkflowStageDefinition, az as buildFallbackChain, aZ as defineAssetType, aD as defineContentType, bD as defineContentTypeWorkflow, au as defineLocale, bk as defineRole, aU as defineSettingsGroup, aP as defineSingleton, bV as defineView, bB as defineWorkflow, bC as defineWorkflowStage, aE as fieldset, ax as findDefaultLocale, bH as findWorkflowStage, ay as getActiveLocales, bn as getBuiltInRoleActions, bJ as getFirstWorkflowStage, aw as getLocaleCodes, bI as getNextWorkflowStage, bG as getWorkflowStageIds, bm as isBuiltInRole, bK as isFinalWorkflowStage, av as isLocaleDefinition, bl as isRoleDefinition, bE as isWorkflowDefinition, bF as isWorkflowStageDefinition } from '../define-content-type-BGoQxqLf.js';
1
+ export { v as AggregateBlock, $ as AnyQueryParameters, A as AnyRecordTypeDefinition, L as CachePolicy, M as CachePolicyObject, a0 as DeclaredParameters, u as FetchBlock, J as FilterDefinition, F as FullTextSearch, H as HavingOperator, D as IncludeDefinition, E as IncludeRelationship, O as IncludeSubQueries, N as IncludeSubQuery, Z as InferQueryParams, Y as InferQueryResponse, I as InferRecordType, K as KeyedRecordTypeConfig, P as Parameterizable, X as QueryCardinality, Q as QueryConfig, s as QueryDefinition, T as QueryParameter, U as QueryParameterType, _ as QueryParameterValue, z as QueryScalar, t as QueryType, p as RecordExpiry, q as RecordFieldsOf, o as RecordTypeDefinition, d as RecordUpdateFieldsOf, R as RecordWriteFieldsOf, m as RolesAsList, k as SchemaAssetTypeNames, f as SchemaConfig, a as SchemaContentTypeNames, g as SchemaDefinition, b as SchemaEntry, l as SchemaEntryOf, c as SchemaLocaleCodes, i as SchemaQueryNames, S as SchemaRecordTypeNames, j as SchemaSettingsGroupNames, h as SchemaSingletonNames, w as SearchBlock, G as SelectMapping, B as SortCondition, C as SortDirection, V as ViewsAsList, W as WhereCondition, y as WhereOperator, x as WhereValue, r as defineQuery, n as defineRecordType, e as defineSchema } from '../define-schema-Dlwh6l_J.js';
2
+ import { A as AIConfig, c as AnyFieldDefinition, d as AnyKeyedField, e as AssetAIConfig, B as BaseFieldConfig, f as BooleanConfig, C as CodeConfig, g as CounterConfig, h as DateConfig, i as DateTimeConfig, j as DecimalConfig, E as EmailConfig, k as EnumConfig, l as FieldAIConfig, m as FieldDefinition, n as FieldRule, o as FieldType, p as FieldUIConfig, q as FileConfig, I as IntegerConfig, J as JsonConfig, r as KeyedEnumConfig, s as KeyedField, t as KeyedFieldOptions, u as KeyedFields, v as KeyedFieldsOf, K as KeyedMembers, a as KeyedMembersOf, L as ListConfig, w as LocalizationConfig, x as Localized, y as LocalizedDetails, z as LongTextConfig, N as NeverUniqueFieldConfig, O as ObjectConfig, R as ReadOnlyRule, G as ReferenceConfig, H as RequirementRule, M as RichTextConfig, P as RichTextLinks, Q as RuleCondition, S as RuleConditions, T as SequenceConfig, U as ShortTextConfig, V as SlugConfig, W as TableConfig, X as TagsConfig, Y as UrlConfig, Z as ValidationRule, _ as VisibilityRule, $ as WidgetOptions, a0 as boolean, a1 as code, a2 as counter, a3 as date, a4 as dateTime, a5 as decimal, a6 as email, a7 as enumField, a8 as file, a9 as integer, aa as json, ab as list, ac as longText, ad as object, ae as reference, af as richText, ag as sequence, ah as shortText, ai as slug, aj as table, ak as tags, al as url } from '../define-content-type-fb-WCD5e.js';
3
+ export { cf as AllScopeConfig, aP as AnyDeclaredFieldset, as as AssetReading, ba as AssetServedBlocks, b7 as AssetTypeDefinition, bF as BUILT_IN_ROLES, bH as BUILT_IN_ROLE_ACTIONS, aq as BlockOf, bI as BuiltInRole, au as CheckInclude, at as CheckedIncludes, av as ContentReading, aT as ContentTypeDefinition, cc as ContentTypeScopeConfig, c5 as ContentTypeWorkflowConfig, cd as ContentTypesScopeConfig, D as DeclaredFields, aO as DeclaredFieldset, aU as EntryMetadata, ce as EntryTypeScopeConfig, aR as FieldMember, am as FieldSchemaContext, an as FieldValue, F as FieldValues, bL as FieldVisibility, aN as Fieldset, bd as FileKindConfig, br as FileScanConfig, b as FileUpload, bq as FileUploadConfig, bj as ImageExifConfig, bf as ImageFitMode, bb as ImageKindConfig, bg as ImageOutputFormat, bi as ImageSourceConfig, be as ImageTransform, bh as ImageUploadConfig, aw as IncludablePaths, b9 as InferAssetEntry, b8 as InferAssetType, aV as InferContentType, cr as InferJsonSchema, b4 as InferSettingsGroup, a$ as InferSingleton, cs as JsonFieldValue, ct as JsonSchema, cu as JsonValue, ap as Keyed, b6 as KeyedAssetTypeConfig, aS as KeyedContentTypeConfig, aQ as KeyedFieldsetConfig, bO as KeyedRoleConfig, bP as KeyedRoleDefinition, bQ as KeyedRoles, bR as KeyedRolesAsList, bt as KeyedRollups, b1 as KeyedSettingsGroupConfig, aY as KeyedSingletonConfig, cn as KeyedViewConfig, co as KeyedViewDefinition, cp as KeyedViews, cq as KeyedViewsAsList, c6 as KeyedWorkflowConfig, c7 as KeyedWorkflowStageConfig, c8 as KeyedWorkflowStageDefinition, c9 as KeyedWorkflowStages, aK as LocaleDefinition, aJ as LocaleOptions, aW as LocalePublicationFields, bG as ROLE_ACTIONS, ay as ReadWith, ax as Reading, cv as RecordFile, bK as ResourcePermission, bJ as RoleAction, bM as RoleConfig, bN as RoleDefinition, bu as RollupDefinition, bv as RollupKind, bw as RollupOptions, bx as RollupValues, by as RollupWhereValue, bA as RollupsOf, b2 as SettingsGroupDefinition, b3 as SettingsGroupMetadata, az as SettingsReading, ar as ShapeValue, aZ as SingletonContentTypeDefinition, a_ as SingletonMetadata, aA as SingletonReading, bz as StoredRollup, aI as TextDirection, ao as UnresolvedEntry, aB as UntypedReading, bk as VariantDefinition, bn as VideoCaptionsConfig, bo as VideoDownloadConfig, bc as VideoKindConfig, bm as VideoPosterConfig, bl as VideoUploadConfig, bp as VideoWatermarkConfig, cl as ViewConfig, cm as ViewDefinition, ck as ViewFilter, cj as ViewFilterCondition, cg as ViewFilterOperator, ci as ViewFilterRelativeDate, ch as ViewFilterValue, cb as ViewScopeConfig, c1 as WorkflowAutoAssign, c4 as WorkflowDefinition, c0 as WorkflowEscalation, c2 as WorkflowStageConfig, c3 as WorkflowStageDefinition, aH as buildFallbackChain, b5 as defineAssetType, aL as defineContentType, bU as defineContentTypeWorkflow, aC as defineLocale, bB as defineRole, b0 as defineSettingsGroup, aX as defineSingleton, ca as defineView, bS as defineWorkflow, bT as defineWorkflowStage, aM as fieldset, aF as findDefaultLocale, bY as findWorkflowStage, aG as getActiveLocales, bE as getBuiltInRoleActions, b_ as getFirstWorkflowStage, aE as getLocaleCodes, bZ as getNextWorkflowStage, bX as getWorkflowStageIds, bD as isBuiltInRole, b$ as isFinalWorkflowStage, aD as isLocaleDefinition, bC as isRoleDefinition, bV as isWorkflowDefinition, bW as isWorkflowStageDefinition, bs as rollup } from '../define-content-type-fb-WCD5e.js';
4
4
  import '../rich-text.d-BWc-5gX1.js';
5
5
 
6
+ /**
7
+ * A condition tree — the list grammar's operators combined with `and`, `or` and `not` over named
8
+ * roots — and the one check every evaluator runs before it answers one (REL-3879).
9
+ *
10
+ * One language for three askers: an End user's Policy (spec 4, ADR 0027), over `owner`, `claims.*`
11
+ * and the item's fields (`record.*` / `entry.*`); an Automation's If step and its trigger's `where`
12
+ * (spec 3), over the event and earlier steps' outputs. A tree is plain data (ADR 0021): the builder
13
+ * below returns the very object a deployed Automation or Policy stores, so the plan can diff it and
14
+ * no customer code runs to decide it.
15
+ *
16
+ * A test names a **root** and a path under it. A root is either the item a read is about, which the
17
+ * database half compiles against stored documents, or a value its caller **supplies** — a token's
18
+ * Claims, an event, a step's output. Which roots exist is the caller's to say; a tree naming one it
19
+ * does not supply is refused by name ({@link ConditionRefusedError}), never answered as false,
20
+ * because a misspelt root that quietly fails every test reads exactly like a rule that holds of
21
+ * nobody.
22
+ *
23
+ * What an operator *means* is not here, as for the list module's own conditions: the in-memory
24
+ * evaluator (`evaluateConditionTree`) and the database half read `@relyio/queries`' catalog rows,
25
+ * whose two faces `catalog-parity.mongo.test.ts` holds to one answer. An absent value is absent and
26
+ * is never defaulted, so a test answers it as Mongo answers a missing field: `eq`, `in`, `gt`,
27
+ * `exists` are false; `ne`, `nin`, `isEmpty`, `notContains` are true.
28
+ */
29
+ /**
30
+ * The operators a condition tree may test with: the list grammar's, less the ones that need a fact
31
+ * a value bag does not carry — a clock (`inTheLast`, `inTheNext`) or the form a path stores its date
32
+ * in (`isBefore`, `isAfter`, `isOn`, `isBetween`) — and the case-sensitivity spellings of the REST
33
+ * dialect. A date is compared as the text or number it is.
34
+ */
35
+ declare const CONDITION_OPERATORS: readonly ["eq", "ne", "gt", "gte", "lt", "lte", "in", "nin", "exists", "isNull", "isEmpty", "hasValue", "contains", "notContains", "between"];
36
+ type ConditionOperator = (typeof CONDITION_OPERATORS)[number];
37
+ /** One value a test compares with. */
38
+ type ConditionScalar = string | number | boolean;
39
+ /** What a test is answered with, by the argument its operator takes. */
40
+ type ConditionArgument = ConditionScalar | readonly ConditionScalar[] | {
41
+ readonly from: string | number;
42
+ readonly to: string | number;
43
+ };
44
+ /** One test: a path under a root, an operator, and the operator's argument. */
45
+ type ConditionTest = {
46
+ readonly root: string;
47
+ readonly path: readonly string[];
48
+ readonly operator: ConditionOperator;
49
+ readonly value?: ConditionArgument;
50
+ };
51
+ /** Tests combined. An empty `and` holds; an empty `or` does not. */
52
+ type ConditionTree = ConditionTest | {
53
+ readonly and: readonly ConditionTree[];
54
+ } | {
55
+ readonly or: readonly ConditionTree[];
56
+ } | {
57
+ readonly not: ConditionTree;
58
+ };
59
+ /** Every test holds. */
60
+ declare function and(...conditions: readonly ConditionTree[]): ConditionTree;
61
+ /** Some test holds. */
62
+ declare function or(...conditions: readonly ConditionTree[]): ConditionTree;
63
+ /** The test does not hold. */
64
+ declare function not(condition: ConditionTree): ConditionTree;
65
+ /** A list is compared by its members, as Mongo compares an array field. */
66
+ type MemberOf<T> = T extends ReadonlyArray<infer Member> ? Member : T;
67
+ /** The values a path holding `T` is compared with: any scalar where its shape is not known. */
68
+ type ComparedWith<T> = unknown extends T ? ConditionScalar : MemberOf<NonNullable<T>> extends infer Member ? Member extends ConditionScalar ? Member : never : never;
69
+ /** What a path offers: one method per condition operator. */
70
+ interface ConditionTests<T = unknown> {
71
+ eq(value: ComparedWith<T>): ConditionTest;
72
+ ne(value: ComparedWith<T>): ConditionTest;
73
+ gt(value: ComparedWith<T> & (string | number)): ConditionTest;
74
+ gte(value: ComparedWith<T> & (string | number)): ConditionTest;
75
+ lt(value: ComparedWith<T> & (string | number)): ConditionTest;
76
+ lte(value: ComparedWith<T> & (string | number)): ConditionTest;
77
+ in(values: ReadonlyArray<ComparedWith<T>>): ConditionTest;
78
+ nin(values: ReadonlyArray<ComparedWith<T>>): ConditionTest;
79
+ /** Present (the default) or absent. */
80
+ exists(present?: boolean): ConditionTest;
81
+ /** Absent or `null` (the default), or neither. */
82
+ isNull(nullish?: boolean): ConditionTest;
83
+ /** Absent, `null`, the empty string or the empty list. */
84
+ isEmpty(): ConditionTest;
85
+ /** None of {@link isEmpty}'s four. */
86
+ hasValue(): ConditionTest;
87
+ /** Holds the text, any case. */
88
+ contains(text: string): ConditionTest;
89
+ notContains(text: string): ConditionTest;
90
+ /** Both ends inclusive. */
91
+ between(range: {
92
+ readonly from: ComparedWith<T> & (string | number);
93
+ readonly to: ComparedWith<T> & (string | number);
94
+ }): ConditionTest;
95
+ }
96
+ /**
97
+ * The paths under a path whose shape is not known: any name. An interface, so it may name itself.
98
+ * It is an index signature, so a project with `noUncheckedIndexedAccess` reads each step as possibly
99
+ * undefined — a customer's roots are typed (codegen's Claims and fields, a step's output fields).
100
+ */
101
+ interface OpenConditionChildren {
102
+ readonly [key: string]: ConditionPath;
103
+ }
104
+ type ChildrenOf<T> = unknown extends T ? OpenConditionChildren : NonNullable<T> extends readonly unknown[] ? unknown : NonNullable<T> extends object ? {
105
+ readonly [K in keyof NonNullable<T> & string]-?: ConditionPath<NonNullable<T>[K]>;
106
+ } : unknown;
107
+ /**
108
+ * A path under a root: its tests, and the paths under it. Typed from `T` where the caller knows the
109
+ * shape — codegen's Claims, a step's output fields — and open where it does not.
110
+ *
111
+ * A field named like a test (`eq`, `in`) is reached with {@link conditionRoot}'s path argument.
112
+ */
113
+ type ConditionPath<T = unknown> = ConditionTests<T> & ChildrenOf<T>;
114
+ /**
115
+ * A root to write tests against: `conditionRoot('claims').plan.eq('paid')` is
116
+ * `{ root: 'claims', path: ['plan'], operator: 'eq', value: 'paid' }`. `path` starts it deeper,
117
+ * which is also how a segment named like a test is reached.
118
+ */
119
+ declare function conditionRoot<T = unknown>(root: string, path?: readonly string[]): ConditionPath<T>;
120
+
6
121
  /**
7
122
  * Field builders for defining schema fields
8
123
  * Matches the @relyio/schema FieldSchema structure
@@ -26,6 +141,7 @@ declare const fieldBuilders_AssetAIConfig: typeof AssetAIConfig;
26
141
  declare const fieldBuilders_BaseFieldConfig: typeof BaseFieldConfig;
27
142
  declare const fieldBuilders_BooleanConfig: typeof BooleanConfig;
28
143
  declare const fieldBuilders_CodeConfig: typeof CodeConfig;
144
+ declare const fieldBuilders_CounterConfig: typeof CounterConfig;
29
145
  declare const fieldBuilders_DateConfig: typeof DateConfig;
30
146
  declare const fieldBuilders_DateTimeConfig: typeof DateTimeConfig;
31
147
  declare const fieldBuilders_DecimalConfig: typeof DecimalConfig;
@@ -36,6 +152,7 @@ declare const fieldBuilders_FieldDefinition: typeof FieldDefinition;
36
152
  declare const fieldBuilders_FieldRule: typeof FieldRule;
37
153
  declare const fieldBuilders_FieldType: typeof FieldType;
38
154
  declare const fieldBuilders_FieldUIConfig: typeof FieldUIConfig;
155
+ declare const fieldBuilders_FileConfig: typeof FileConfig;
39
156
  declare const fieldBuilders_IntegerConfig: typeof IntegerConfig;
40
157
  declare const fieldBuilders_JsonConfig: typeof JsonConfig;
41
158
  declare const fieldBuilders_KeyedEnumConfig: typeof KeyedEnumConfig;
@@ -50,6 +167,7 @@ declare const fieldBuilders_LocalizationConfig: typeof LocalizationConfig;
50
167
  declare const fieldBuilders_Localized: typeof Localized;
51
168
  declare const fieldBuilders_LocalizedDetails: typeof LocalizedDetails;
52
169
  declare const fieldBuilders_LongTextConfig: typeof LongTextConfig;
170
+ declare const fieldBuilders_NeverUniqueFieldConfig: typeof NeverUniqueFieldConfig;
53
171
  declare const fieldBuilders_ObjectConfig: typeof ObjectConfig;
54
172
  declare const fieldBuilders_ReadOnlyRule: typeof ReadOnlyRule;
55
173
  declare const fieldBuilders_ReferenceConfig: typeof ReferenceConfig;
@@ -58,6 +176,7 @@ declare const fieldBuilders_RichTextConfig: typeof RichTextConfig;
58
176
  declare const fieldBuilders_RichTextLinks: typeof RichTextLinks;
59
177
  declare const fieldBuilders_RuleCondition: typeof RuleCondition;
60
178
  declare const fieldBuilders_RuleConditions: typeof RuleConditions;
179
+ declare const fieldBuilders_SequenceConfig: typeof SequenceConfig;
61
180
  declare const fieldBuilders_ShortTextConfig: typeof ShortTextConfig;
62
181
  declare const fieldBuilders_SlugConfig: typeof SlugConfig;
63
182
  declare const fieldBuilders_TableConfig: typeof TableConfig;
@@ -68,10 +187,12 @@ declare const fieldBuilders_VisibilityRule: typeof VisibilityRule;
68
187
  declare const fieldBuilders_WidgetOptions: typeof WidgetOptions;
69
188
  declare const fieldBuilders_boolean: typeof boolean;
70
189
  declare const fieldBuilders_code: typeof code;
190
+ declare const fieldBuilders_counter: typeof counter;
71
191
  declare const fieldBuilders_date: typeof date;
72
192
  declare const fieldBuilders_dateTime: typeof dateTime;
73
193
  declare const fieldBuilders_decimal: typeof decimal;
74
194
  declare const fieldBuilders_email: typeof email;
195
+ declare const fieldBuilders_file: typeof file;
75
196
  declare const fieldBuilders_integer: typeof integer;
76
197
  declare const fieldBuilders_json: typeof json;
77
198
  declare const fieldBuilders_list: typeof list;
@@ -79,13 +200,14 @@ declare const fieldBuilders_longText: typeof longText;
79
200
  declare const fieldBuilders_object: typeof object;
80
201
  declare const fieldBuilders_reference: typeof reference;
81
202
  declare const fieldBuilders_richText: typeof richText;
203
+ declare const fieldBuilders_sequence: typeof sequence;
82
204
  declare const fieldBuilders_shortText: typeof shortText;
83
205
  declare const fieldBuilders_slug: typeof slug;
84
206
  declare const fieldBuilders_table: typeof table;
85
207
  declare const fieldBuilders_tags: typeof tags;
86
208
  declare const fieldBuilders_url: typeof url;
87
209
  declare namespace fieldBuilders {
88
- export { fieldBuilders_AIConfig as AIConfig, fieldBuilders_AnyFieldDefinition as AnyFieldDefinition, fieldBuilders_AnyKeyedField as AnyKeyedField, fieldBuilders_AssetAIConfig as AssetAIConfig, fieldBuilders_BaseFieldConfig as BaseFieldConfig, fieldBuilders_BooleanConfig as BooleanConfig, fieldBuilders_CodeConfig as CodeConfig, 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_JsonConfig as JsonConfig, fieldBuilders_KeyedEnumConfig as KeyedEnumConfig, fieldBuilders_KeyedField as KeyedField, fieldBuilders_KeyedFieldOptions as KeyedFieldOptions, fieldBuilders_KeyedFields as KeyedFields, fieldBuilders_KeyedFieldsOf as KeyedFieldsOf, fieldBuilders_KeyedMembers as KeyedMembers, fieldBuilders_KeyedMembersOf as KeyedMembersOf, fieldBuilders_ListConfig as ListConfig, fieldBuilders_LocalizationConfig as LocalizationConfig, fieldBuilders_Localized as Localized, fieldBuilders_LocalizedDetails as LocalizedDetails, fieldBuilders_LongTextConfig as LongTextConfig, fieldBuilders_ObjectConfig as ObjectConfig, fieldBuilders_ReadOnlyRule as ReadOnlyRule, fieldBuilders_ReferenceConfig as ReferenceConfig, fieldBuilders_RequirementRule as RequirementRule, fieldBuilders_RichTextConfig as RichTextConfig, fieldBuilders_RichTextLinks as RichTextLinks, fieldBuilders_RuleCondition as RuleCondition, fieldBuilders_RuleConditions as RuleConditions, fieldBuilders_ShortTextConfig as ShortTextConfig, fieldBuilders_SlugConfig as SlugConfig, fieldBuilders_TableConfig as TableConfig, fieldBuilders_TagsConfig as TagsConfig, fieldBuilders_UrlConfig as UrlConfig, fieldBuilders_ValidationRule as ValidationRule, fieldBuilders_VisibilityRule as VisibilityRule, fieldBuilders_WidgetOptions as WidgetOptions, fieldBuilders_boolean as boolean, fieldBuilders_code as code, fieldBuilders_date as date, fieldBuilders_dateTime as dateTime, fieldBuilders_decimal as decimal, fieldBuilders_email as email, enumField as enum, fieldBuilders_integer as integer, fieldBuilders_json as json, fieldBuilders_list as list, fieldBuilders_longText as longText, fieldBuilders_object as object, fieldBuilders_reference as reference, fieldBuilders_richText as richText, fieldBuilders_shortText as shortText, fieldBuilders_slug as slug, fieldBuilders_table as table, fieldBuilders_tags as tags, fieldBuilders_url as url };
210
+ export { fieldBuilders_AIConfig as AIConfig, fieldBuilders_AnyFieldDefinition as AnyFieldDefinition, fieldBuilders_AnyKeyedField as AnyKeyedField, fieldBuilders_AssetAIConfig as AssetAIConfig, fieldBuilders_BaseFieldConfig as BaseFieldConfig, fieldBuilders_BooleanConfig as BooleanConfig, fieldBuilders_CodeConfig as CodeConfig, fieldBuilders_CounterConfig as CounterConfig, 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_FileConfig as FileConfig, fieldBuilders_IntegerConfig as IntegerConfig, fieldBuilders_JsonConfig as JsonConfig, fieldBuilders_KeyedEnumConfig as KeyedEnumConfig, fieldBuilders_KeyedField as KeyedField, fieldBuilders_KeyedFieldOptions as KeyedFieldOptions, fieldBuilders_KeyedFields as KeyedFields, fieldBuilders_KeyedFieldsOf as KeyedFieldsOf, fieldBuilders_KeyedMembers as KeyedMembers, fieldBuilders_KeyedMembersOf as KeyedMembersOf, fieldBuilders_ListConfig as ListConfig, fieldBuilders_LocalizationConfig as LocalizationConfig, fieldBuilders_Localized as Localized, fieldBuilders_LocalizedDetails as LocalizedDetails, fieldBuilders_LongTextConfig as LongTextConfig, fieldBuilders_NeverUniqueFieldConfig as NeverUniqueFieldConfig, fieldBuilders_ObjectConfig as ObjectConfig, fieldBuilders_ReadOnlyRule as ReadOnlyRule, fieldBuilders_ReferenceConfig as ReferenceConfig, fieldBuilders_RequirementRule as RequirementRule, fieldBuilders_RichTextConfig as RichTextConfig, fieldBuilders_RichTextLinks as RichTextLinks, fieldBuilders_RuleCondition as RuleCondition, fieldBuilders_RuleConditions as RuleConditions, fieldBuilders_SequenceConfig as SequenceConfig, fieldBuilders_ShortTextConfig as ShortTextConfig, fieldBuilders_SlugConfig as SlugConfig, fieldBuilders_TableConfig as TableConfig, fieldBuilders_TagsConfig as TagsConfig, fieldBuilders_UrlConfig as UrlConfig, fieldBuilders_ValidationRule as ValidationRule, fieldBuilders_VisibilityRule as VisibilityRule, fieldBuilders_WidgetOptions as WidgetOptions, fieldBuilders_boolean as boolean, fieldBuilders_code as code, fieldBuilders_counter as counter, fieldBuilders_date as date, fieldBuilders_dateTime as dateTime, fieldBuilders_decimal as decimal, fieldBuilders_email as email, enumField as enum, fieldBuilders_file as file, fieldBuilders_integer as integer, fieldBuilders_json as json, fieldBuilders_list as list, fieldBuilders_longText as longText, fieldBuilders_object as object, fieldBuilders_reference as reference, fieldBuilders_richText as richText, fieldBuilders_sequence as sequence, fieldBuilders_shortText as shortText, fieldBuilders_slug as slug, fieldBuilders_table as table, fieldBuilders_tags as tags, fieldBuilders_url as url };
89
211
  }
90
212
 
91
213
  /**
@@ -121,4 +243,4 @@ declare namespace fieldBuilders {
121
243
 
122
244
  declare const fields: typeof fieldBuilders;
123
245
 
124
- export { AIConfig, AnyKeyedField, AssetAIConfig, BaseFieldConfig, BooleanConfig, CodeConfig, DateConfig, DateTimeConfig, DecimalConfig, EmailConfig, EnumConfig, FieldAIConfig, FieldDefinition, FieldRule, FieldType, FieldUIConfig, IntegerConfig, JsonConfig, KeyedEnumConfig, KeyedField, KeyedFieldOptions, KeyedFields, KeyedFieldsOf, KeyedMembers, KeyedMembersOf, ListConfig, LocalizationConfig, Localized, LocalizedDetails, LongTextConfig, ObjectConfig, ReadOnlyRule, ReferenceConfig, RequirementRule, RichTextConfig, RichTextLinks, RuleCondition, RuleConditions, ShortTextConfig, SlugConfig, TableConfig, TagsConfig, UrlConfig, ValidationRule, VisibilityRule, WidgetOptions, fields };
246
+ export { AIConfig, AnyKeyedField, AssetAIConfig, BaseFieldConfig, BooleanConfig, CONDITION_OPERATORS, CodeConfig, type ConditionArgument, type ConditionOperator, type ConditionPath, type ConditionScalar, type ConditionTest, type ConditionTests, type ConditionTree, CounterConfig, DateConfig, DateTimeConfig, DecimalConfig, EmailConfig, EnumConfig, FieldAIConfig, FieldDefinition, FieldRule, FieldType, FieldUIConfig, FileConfig, IntegerConfig, JsonConfig, KeyedEnumConfig, KeyedField, KeyedFieldOptions, KeyedFields, KeyedFieldsOf, KeyedMembers, KeyedMembersOf, ListConfig, LocalizationConfig, Localized, LocalizedDetails, LongTextConfig, NeverUniqueFieldConfig, ObjectConfig, type OpenConditionChildren, ReadOnlyRule, ReferenceConfig, RequirementRule, RichTextConfig, RichTextLinks, RuleCondition, RuleConditions, SequenceConfig, ShortTextConfig, SlugConfig, TableConfig, TagsConfig, UrlConfig, ValidationRule, VisibilityRule, WidgetOptions, and, conditionRoot, fields, not, or };
@@ -1,4 +1,4 @@
1
- export { BUILT_IN_ROLES, BUILT_IN_ROLE_ACTIONS, ROLE_ACTIONS, buildFallbackChain, defineAssetType, defineContentType, defineContentTypeWorkflow, defineLocale, defineQuery, defineRole, defineSchema, defineSettingsGroup, defineSingleton, defineView, defineWorkflow, defineWorkflowStage, fields, fieldset, findDefaultLocale, findWorkflowStage, getActiveLocales, getBuiltInRoleActions, getFirstWorkflowStage, getLocaleCodes, getNextWorkflowStage, getWorkflowStageIds, isBuiltInRole, isFinalWorkflowStage, isLocaleDefinition, isRoleDefinition, isWorkflowDefinition, isWorkflowStageDefinition } from '../chunk-DIZY6CKM.js';
2
- import '../chunk-XQ4QHWZE.js';
1
+ export { BUILT_IN_ROLES, BUILT_IN_ROLE_ACTIONS, CONDITION_OPERATORS, ROLE_ACTIONS, and, buildFallbackChain, conditionRoot, defineAssetType, defineContentType, defineContentTypeWorkflow, defineLocale, defineQuery, defineRecordType, defineRole, defineSchema, defineSettingsGroup, defineSingleton, defineView, defineWorkflow, defineWorkflowStage, fields, fieldset, findDefaultLocale, findWorkflowStage, getActiveLocales, getBuiltInRoleActions, getFirstWorkflowStage, getLocaleCodes, getNextWorkflowStage, getWorkflowStageIds, isBuiltInRole, isFinalWorkflowStage, isLocaleDefinition, isRoleDefinition, isWorkflowDefinition, isWorkflowStageDefinition, not, or, rollup } from '../chunk-W7JFHSFM.js';
2
+ import '../chunk-DI6KFDBO.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export { cV as ApiResponse, cs as BaseContent, cu as BaseSettingsGroup, ct as BaseSingleton, cS as CacheConfig, cX as CacheStrategy, cL as ContentTypeSchema, cG as ContentVersion, cH as ContentVersionRow, cA as CreateInput, cB as CreatedContent, cK as CustomQuery, cz as DateOnlyOperator, cT as DebugConfig, cZ as Environment, d7 as FieldDefinition, cN as FieldOptions, cY as LogLevel, cR as PerformanceMetrics, cP as RealtimeEvent, cO as RealtimeEventType, cm as RelyIOConfig, cU as RequestConfig, cF as RestoredContent, cW as RetryConfig, cC as RevisedContent, cJ as SingletonContent, cQ as SubscriptionOptions, cI as UpdateInput, cM as ValidationRule, c_ as ValidationViolation, cx as WhereClause, cw as WhereFieldCondition, cy as WhereOperator, cv as WhereScalar, cE as WrittenSettingsGroup, cD as WrittenSingleton } from '../define-content-type-AuL9-oz6.cjs';
1
+ export { cI as ApiResponse, cQ as BaseContent, cS as BaseSettingsGroup, cR as BaseSingleton, de as CacheConfig, dh as CacheStrategy, d7 as ContentTypeSchema, d2 as ContentVersion, d3 as ContentVersionRow, cY as CreateInput, cZ as CreatedContent, d6 as CustomQuery, cX as DateOnlyOperator, df as DebugConfig, dj as Environment, dr as FieldDefinition, d9 as FieldOptions, di as LogLevel, dd as PerformanceMetrics, db as RealtimeEvent, da as RealtimeEventType, cK as RelyIOConfig, dg as RequestConfig, d1 as RestoredContent, cG as RetryConfig, c_ as RevisedContent, d5 as SingletonContent, dc as SubscriptionOptions, d4 as UpdateInput, d8 as ValidationRule, dk as ValidationViolation, cV as WhereClause, cU as WhereFieldCondition, cW as WhereOperator, cT as WhereScalar, d0 as WrittenSettingsGroup, c$ as WrittenSingleton } from '../define-content-type-NEQDrvdq.cjs';
2
2
  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';
@@ -1,2 +1,2 @@
1
- export { cV as ApiResponse, cs as BaseContent, cu as BaseSettingsGroup, ct as BaseSingleton, cS as CacheConfig, cX as CacheStrategy, cL as ContentTypeSchema, cG as ContentVersion, cH as ContentVersionRow, cA as CreateInput, cB as CreatedContent, cK as CustomQuery, cz as DateOnlyOperator, cT as DebugConfig, cZ as Environment, d7 as FieldDefinition, cN as FieldOptions, cY as LogLevel, cR as PerformanceMetrics, cP as RealtimeEvent, cO as RealtimeEventType, cm as RelyIOConfig, cU as RequestConfig, cF as RestoredContent, cW as RetryConfig, cC as RevisedContent, cJ as SingletonContent, cQ as SubscriptionOptions, cI as UpdateInput, cM as ValidationRule, c_ as ValidationViolation, cx as WhereClause, cw as WhereFieldCondition, cy as WhereOperator, cv as WhereScalar, cE as WrittenSettingsGroup, cD as WrittenSingleton } from '../define-content-type-BGoQxqLf.js';
1
+ export { cI as ApiResponse, cQ as BaseContent, cS as BaseSettingsGroup, cR as BaseSingleton, de as CacheConfig, dh as CacheStrategy, d7 as ContentTypeSchema, d2 as ContentVersion, d3 as ContentVersionRow, cY as CreateInput, cZ as CreatedContent, d6 as CustomQuery, cX as DateOnlyOperator, df as DebugConfig, dj as Environment, dr as FieldDefinition, d9 as FieldOptions, di as LogLevel, dd as PerformanceMetrics, db as RealtimeEvent, da as RealtimeEventType, cK as RelyIOConfig, dg as RequestConfig, d1 as RestoredContent, cG as RetryConfig, c_ as RevisedContent, d5 as SingletonContent, dc as SubscriptionOptions, d4 as UpdateInput, d8 as ValidationRule, dk as ValidationViolation, cV as WhereClause, cU as WhereFieldCondition, cW as WhereOperator, cT as WhereScalar, d0 as WrittenSettingsGroup, c$ as WrittenSingleton } from '../define-content-type-fb-WCD5e.js';
2
2
  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';
@@ -1,81 +1,81 @@
1
1
  'use strict';
2
2
 
3
- var chunkTZL374LS_cjs = require('../chunk-TZL374LS.cjs');
4
- require('../chunk-MWMSFIWN.cjs');
3
+ var chunkM7MWNV3Q_cjs = require('../chunk-M7MWNV3Q.cjs');
4
+ require('../chunk-L6DXCKVQ.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "camelToSnake", {
9
9
  enumerable: true,
10
- get: function () { return chunkTZL374LS_cjs.camelToSnake; }
10
+ get: function () { return chunkM7MWNV3Q_cjs.camelToSnake; }
11
11
  });
12
12
  Object.defineProperty(exports, "createDeferred", {
13
13
  enumerable: true,
14
- get: function () { return chunkTZL374LS_cjs.createDeferred; }
14
+ get: function () { return chunkM7MWNV3Q_cjs.createDeferred; }
15
15
  });
16
16
  Object.defineProperty(exports, "debounce", {
17
17
  enumerable: true,
18
- get: function () { return chunkTZL374LS_cjs.debounce; }
18
+ get: function () { return chunkM7MWNV3Q_cjs.debounce; }
19
19
  });
20
20
  Object.defineProperty(exports, "deepClone", {
21
21
  enumerable: true,
22
- get: function () { return chunkTZL374LS_cjs.deepClone; }
22
+ get: function () { return chunkM7MWNV3Q_cjs.deepClone; }
23
23
  });
24
24
  Object.defineProperty(exports, "generateId", {
25
25
  enumerable: true,
26
- get: function () { return chunkTZL374LS_cjs.generateId; }
26
+ get: function () { return chunkM7MWNV3Q_cjs.generateId; }
27
27
  });
28
28
  Object.defineProperty(exports, "isBrowser", {
29
29
  enumerable: true,
30
- get: function () { return chunkTZL374LS_cjs.isBrowser; }
30
+ get: function () { return chunkM7MWNV3Q_cjs.isBrowser; }
31
31
  });
32
32
  Object.defineProperty(exports, "isNode", {
33
33
  enumerable: true,
34
- get: function () { return chunkTZL374LS_cjs.isNode; }
34
+ get: function () { return chunkM7MWNV3Q_cjs.isNode; }
35
35
  });
36
36
  Object.defineProperty(exports, "isPlainObject", {
37
37
  enumerable: true,
38
- get: function () { return chunkTZL374LS_cjs.isPlainObject; }
38
+ get: function () { return chunkM7MWNV3Q_cjs.isPlainObject; }
39
39
  });
40
40
  Object.defineProperty(exports, "isValidEmail", {
41
41
  enumerable: true,
42
- get: function () { return chunkTZL374LS_cjs.isValidEmail; }
42
+ get: function () { return chunkM7MWNV3Q_cjs.isValidEmail; }
43
43
  });
44
44
  Object.defineProperty(exports, "isValidUrl", {
45
45
  enumerable: true,
46
- get: function () { return chunkTZL374LS_cjs.isValidUrl; }
46
+ get: function () { return chunkM7MWNV3Q_cjs.isValidUrl; }
47
47
  });
48
48
  Object.defineProperty(exports, "mergeDeep", {
49
49
  enumerable: true,
50
- get: function () { return chunkTZL374LS_cjs.mergeDeep; }
50
+ get: function () { return chunkM7MWNV3Q_cjs.mergeDeep; }
51
51
  });
52
52
  Object.defineProperty(exports, "omit", {
53
53
  enumerable: true,
54
- get: function () { return chunkTZL374LS_cjs.omit; }
54
+ get: function () { return chunkM7MWNV3Q_cjs.omit; }
55
55
  });
56
56
  Object.defineProperty(exports, "pick", {
57
57
  enumerable: true,
58
- get: function () { return chunkTZL374LS_cjs.pick; }
58
+ get: function () { return chunkM7MWNV3Q_cjs.pick; }
59
59
  });
60
60
  Object.defineProperty(exports, "retry", {
61
61
  enumerable: true,
62
- get: function () { return chunkTZL374LS_cjs.retry; }
62
+ get: function () { return chunkM7MWNV3Q_cjs.retry; }
63
63
  });
64
64
  Object.defineProperty(exports, "sleep", {
65
65
  enumerable: true,
66
- get: function () { return chunkTZL374LS_cjs.sleep; }
66
+ get: function () { return chunkM7MWNV3Q_cjs.sleep; }
67
67
  });
68
68
  Object.defineProperty(exports, "snakeToCamel", {
69
69
  enumerable: true,
70
- get: function () { return chunkTZL374LS_cjs.snakeToCamel; }
70
+ get: function () { return chunkM7MWNV3Q_cjs.snakeToCamel; }
71
71
  });
72
72
  Object.defineProperty(exports, "throttle", {
73
73
  enumerable: true,
74
- get: function () { return chunkTZL374LS_cjs.throttle; }
74
+ get: function () { return chunkM7MWNV3Q_cjs.throttle; }
75
75
  });
76
76
  Object.defineProperty(exports, "toSafeString", {
77
77
  enumerable: true,
78
- get: function () { return chunkTZL374LS_cjs.toSafeString; }
78
+ get: function () { return chunkM7MWNV3Q_cjs.toSafeString; }
79
79
  });
80
80
  //# sourceMappingURL=index.cjs.map
81
81
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from '../chunk-H6IBQSMM.js';
2
- import '../chunk-XQ4QHWZE.js';
1
+ export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from '../chunk-NJQK5STK.js';
2
+ import '../chunk-DI6KFDBO.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relyio/sdk",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "RelyIO is coming soon — this package is not ready for general use yet.",
5
5
  "keywords": [
6
6
  "relyio"
@@ -38,6 +38,24 @@
38
38
  "import": "./dist/preview/index.js",
39
39
  "require": "./dist/preview/index.cjs"
40
40
  },
41
+ "./functions": {
42
+ "types": "./dist/functions/index.d.ts",
43
+ "source": "./src/functions/index.ts",
44
+ "import": "./dist/functions/index.js",
45
+ "require": "./dist/functions/index.cjs"
46
+ },
47
+ "./automations": {
48
+ "types": "./dist/automations/index.d.ts",
49
+ "source": "./src/automations/index.ts",
50
+ "import": "./dist/automations/index.js",
51
+ "require": "./dist/automations/index.cjs"
52
+ },
53
+ "./extensions": {
54
+ "types": "./dist/extensions/index.d.ts",
55
+ "source": "./src/extensions/index.ts",
56
+ "import": "./dist/extensions/index.js",
57
+ "require": "./dist/extensions/index.cjs"
58
+ },
41
59
  "./schema": {
42
60
  "types": "./dist/schema/index.d.ts",
43
61
  "import": "./dist/schema/index.js",
@@ -101,10 +119,10 @@
101
119
  "typedoc": "^0.28.20",
102
120
  "typescript": "npm:@typescript/typescript6@6.0.2",
103
121
  "vitest": "4.1.11",
104
- "@relyio/rich-text-markdown": "0.0.0",
105
- "@relyio/schema": "0.0.1",
106
122
  "@relyio/eslint-config": "0.0.0",
107
- "@relyio/api-contract": "0.1.0"
123
+ "@relyio/api-contract": "0.1.0",
124
+ "@relyio/rich-text-markdown": "0.0.0",
125
+ "@relyio/schema": "0.0.1"
108
126
  },
109
127
  "peerDependencies": {
110
128
  "typescript": ">=4.9.0"
@@ -155,7 +173,7 @@
155
173
  "test:watch": "vitest --watch",
156
174
  "test:coverage": "vitest --coverage",
157
175
  "test:ui": "vitest --ui",
158
- "type:check": "tsc --noEmit && tsc --noEmit -p tsconfig.register-types.json",
176
+ "type:check": "tsc --noEmit && tsc --noEmit -p tsconfig.register-types.json && tsc --noEmit -p tsconfig.register-functions-types.json",
159
177
  "test:types": "tsc --noEmit -p tsconfig.test.json",
160
178
  "codegen:openapi": "node ../../../scripts/emit-openapi-types.mjs ../../../apps/services/api/openapi-spec.json src/http/api-schema.ts",
161
179
  "lint:write": "relyio-lint --fix",