@relyio/sdk 0.2.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 (45) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE +201 -0
  3. package/README.md +314 -0
  4. package/dist/.tsbuildinfo +1 -0
  5. package/dist/chunk-2QUK2ZGD.js +738 -0
  6. package/dist/chunk-7W4MJXQ4.cjs +4429 -0
  7. package/dist/chunk-FJK7ZWKK.cjs +776 -0
  8. package/dist/chunk-HT6NFRM2.cjs +196 -0
  9. package/dist/chunk-I3ESNANB.js +177 -0
  10. package/dist/chunk-IY5LSKXU.js +3 -0
  11. package/dist/chunk-MWMSFIWN.cjs +17 -0
  12. package/dist/chunk-PPA2WWOH.cjs +4 -0
  13. package/dist/chunk-RJBIJ2ZK.js +4375 -0
  14. package/dist/chunk-XQ4QHWZE.js +13 -0
  15. package/dist/client/index.cjs +17 -0
  16. package/dist/client/index.d.cts +3 -0
  17. package/dist/client/index.d.ts +3 -0
  18. package/dist/client/index.js +4 -0
  19. package/dist/define-schema-DHvUCKwj.d.cts +2101 -0
  20. package/dist/define-schema-DHvUCKwj.d.ts +2101 -0
  21. package/dist/index-B-KiFHbx.d.ts +2708 -0
  22. package/dist/index-BsUqCAu8.d.cts +7855 -0
  23. package/dist/index-BsUqCAu8.d.ts +7855 -0
  24. package/dist/index-DGWaawHt.d.cts +2708 -0
  25. package/dist/index.cjs +499 -0
  26. package/dist/index.d.cts +523 -0
  27. package/dist/index.d.ts +523 -0
  28. package/dist/index.js +148 -0
  29. package/dist/react/index.cjs +4 -0
  30. package/dist/react/index.d.cts +2 -0
  31. package/dist/react/index.d.ts +2 -0
  32. package/dist/react/index.js +3 -0
  33. package/dist/schema/index.cjs +157 -0
  34. package/dist/schema/index.d.cts +223 -0
  35. package/dist/schema/index.d.ts +223 -0
  36. package/dist/schema/index.js +4 -0
  37. package/dist/types/index.cjs +6 -0
  38. package/dist/types/index.d.cts +1 -0
  39. package/dist/types/index.d.ts +1 -0
  40. package/dist/types/index.js +3 -0
  41. package/dist/utils/index.cjs +81 -0
  42. package/dist/utils/index.d.cts +87 -0
  43. package/dist/utils/index.d.ts +87 -0
  44. package/dist/utils/index.js +4 -0
  45. package/package.json +159 -0
@@ -0,0 +1,2 @@
1
+
2
+ export { }
@@ -0,0 +1,3 @@
1
+
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,157 @@
1
+ 'use strict';
2
+
3
+ var chunkFJK7ZWKK_cjs = require('../chunk-FJK7ZWKK.cjs');
4
+ require('../chunk-MWMSFIWN.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "BUILT_IN_ROLES", {
9
+ enumerable: true,
10
+ get: function () { return chunkFJK7ZWKK_cjs.BUILT_IN_ROLES; }
11
+ });
12
+ Object.defineProperty(exports, "BUILT_IN_ROLE_ACTIONS", {
13
+ enumerable: true,
14
+ get: function () { return chunkFJK7ZWKK_cjs.BUILT_IN_ROLE_ACTIONS; }
15
+ });
16
+ Object.defineProperty(exports, "ROLE_ACTIONS", {
17
+ enumerable: true,
18
+ get: function () { return chunkFJK7ZWKK_cjs.ROLE_ACTIONS; }
19
+ });
20
+ Object.defineProperty(exports, "buildFallbackChain", {
21
+ enumerable: true,
22
+ get: function () { return chunkFJK7ZWKK_cjs.buildFallbackChain; }
23
+ });
24
+ Object.defineProperty(exports, "defineAssetType", {
25
+ enumerable: true,
26
+ get: function () { return chunkFJK7ZWKK_cjs.defineAssetType; }
27
+ });
28
+ Object.defineProperty(exports, "defineComponent", {
29
+ enumerable: true,
30
+ get: function () { return chunkFJK7ZWKK_cjs.defineComponent; }
31
+ });
32
+ Object.defineProperty(exports, "defineContentType", {
33
+ enumerable: true,
34
+ get: function () { return chunkFJK7ZWKK_cjs.defineContentType; }
35
+ });
36
+ Object.defineProperty(exports, "defineContentTypeWorkflow", {
37
+ enumerable: true,
38
+ get: function () { return chunkFJK7ZWKK_cjs.defineContentTypeWorkflow; }
39
+ });
40
+ Object.defineProperty(exports, "defineLocale", {
41
+ enumerable: true,
42
+ get: function () { return chunkFJK7ZWKK_cjs.defineLocale; }
43
+ });
44
+ Object.defineProperty(exports, "defineQuery", {
45
+ enumerable: true,
46
+ get: function () { return chunkFJK7ZWKK_cjs.defineQuery; }
47
+ });
48
+ Object.defineProperty(exports, "defineRole", {
49
+ enumerable: true,
50
+ get: function () { return chunkFJK7ZWKK_cjs.defineRole; }
51
+ });
52
+ Object.defineProperty(exports, "defineSchema", {
53
+ enumerable: true,
54
+ get: function () { return chunkFJK7ZWKK_cjs.defineSchema; }
55
+ });
56
+ Object.defineProperty(exports, "defineSettingsGroup", {
57
+ enumerable: true,
58
+ get: function () { return chunkFJK7ZWKK_cjs.defineSettingsGroup; }
59
+ });
60
+ Object.defineProperty(exports, "defineSingleton", {
61
+ enumerable: true,
62
+ get: function () { return chunkFJK7ZWKK_cjs.defineSingleton; }
63
+ });
64
+ Object.defineProperty(exports, "defineSingletonContentType", {
65
+ enumerable: true,
66
+ get: function () { return chunkFJK7ZWKK_cjs.defineSingletonContentType; }
67
+ });
68
+ Object.defineProperty(exports, "defineView", {
69
+ enumerable: true,
70
+ get: function () { return chunkFJK7ZWKK_cjs.defineView; }
71
+ });
72
+ Object.defineProperty(exports, "defineWorkflow", {
73
+ enumerable: true,
74
+ get: function () { return chunkFJK7ZWKK_cjs.defineWorkflow; }
75
+ });
76
+ Object.defineProperty(exports, "defineWorkflowStage", {
77
+ enumerable: true,
78
+ get: function () { return chunkFJK7ZWKK_cjs.defineWorkflowStage; }
79
+ });
80
+ Object.defineProperty(exports, "fields", {
81
+ enumerable: true,
82
+ get: function () { return chunkFJK7ZWKK_cjs.fields; }
83
+ });
84
+ Object.defineProperty(exports, "fieldset", {
85
+ enumerable: true,
86
+ get: function () { return chunkFJK7ZWKK_cjs.fieldset; }
87
+ });
88
+ Object.defineProperty(exports, "findDefaultLocale", {
89
+ enumerable: true,
90
+ get: function () { return chunkFJK7ZWKK_cjs.findDefaultLocale; }
91
+ });
92
+ Object.defineProperty(exports, "findWorkflowStage", {
93
+ enumerable: true,
94
+ get: function () { return chunkFJK7ZWKK_cjs.findWorkflowStage; }
95
+ });
96
+ Object.defineProperty(exports, "getActiveLocales", {
97
+ enumerable: true,
98
+ get: function () { return chunkFJK7ZWKK_cjs.getActiveLocales; }
99
+ });
100
+ Object.defineProperty(exports, "getBuiltInRoleActions", {
101
+ enumerable: true,
102
+ get: function () { return chunkFJK7ZWKK_cjs.getBuiltInRoleActions; }
103
+ });
104
+ Object.defineProperty(exports, "getFirstWorkflowStage", {
105
+ enumerable: true,
106
+ get: function () { return chunkFJK7ZWKK_cjs.getFirstWorkflowStage; }
107
+ });
108
+ Object.defineProperty(exports, "getLocaleCodes", {
109
+ enumerable: true,
110
+ get: function () { return chunkFJK7ZWKK_cjs.getLocaleCodes; }
111
+ });
112
+ Object.defineProperty(exports, "getNextWorkflowStage", {
113
+ enumerable: true,
114
+ get: function () { return chunkFJK7ZWKK_cjs.getNextWorkflowStage; }
115
+ });
116
+ Object.defineProperty(exports, "getWorkflowStageIds", {
117
+ enumerable: true,
118
+ get: function () { return chunkFJK7ZWKK_cjs.getWorkflowStageIds; }
119
+ });
120
+ Object.defineProperty(exports, "isBuiltInRole", {
121
+ enumerable: true,
122
+ get: function () { return chunkFJK7ZWKK_cjs.isBuiltInRole; }
123
+ });
124
+ Object.defineProperty(exports, "isFinalWorkflowStage", {
125
+ enumerable: true,
126
+ get: function () { return chunkFJK7ZWKK_cjs.isFinalWorkflowStage; }
127
+ });
128
+ Object.defineProperty(exports, "isLocaleDefinition", {
129
+ enumerable: true,
130
+ get: function () { return chunkFJK7ZWKK_cjs.isLocaleDefinition; }
131
+ });
132
+ Object.defineProperty(exports, "isRoleDefinition", {
133
+ enumerable: true,
134
+ get: function () { return chunkFJK7ZWKK_cjs.isRoleDefinition; }
135
+ });
136
+ Object.defineProperty(exports, "isWorkflowDefinition", {
137
+ enumerable: true,
138
+ get: function () { return chunkFJK7ZWKK_cjs.isWorkflowDefinition; }
139
+ });
140
+ Object.defineProperty(exports, "isWorkflowStageDefinition", {
141
+ enumerable: true,
142
+ get: function () { return chunkFJK7ZWKK_cjs.isWorkflowStageDefinition; }
143
+ });
144
+ Object.defineProperty(exports, "schemaToJSON", {
145
+ enumerable: true,
146
+ get: function () { return chunkFJK7ZWKK_cjs.schemaToJSON; }
147
+ });
148
+ Object.defineProperty(exports, "viewToJSON", {
149
+ enumerable: true,
150
+ get: function () { return chunkFJK7ZWKK_cjs.viewToJSON; }
151
+ });
152
+ Object.defineProperty(exports, "workflowToJSON", {
153
+ enumerable: true,
154
+ get: function () { return chunkFJK7ZWKK_cjs.workflowToJSON; }
155
+ });
156
+ //# sourceMappingURL=index.cjs.map
157
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1,223 @@
1
+ import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, j as ListConfig, A as AIConfig, k as AllFieldTypes, l as AnyFieldDefinition, m as AssetAIConfig, n as BaseFieldConfig, C as ComponentFieldType, o as FieldType, p as ReadOnlyRule, q as RequirementRule, r as RuleCondition, s as RuleConditions, V as ValidationRule, t as VisibilityRule } from '../define-schema-DHvUCKwj.cjs';
2
+ export { bv as AggregateBlock, bk as AllScopeConfig, ap as AssetTypeConfig, aq as AssetTypeConfigWithFields, ar as AssetTypeConfigWithFieldsets, as as AssetTypeDefinition, aP as BUILT_IN_ROLES, aR as BUILT_IN_ROLE_ACTIONS, aS as BuiltInRole, bG as CachePolicy, bH as CachePolicyObject, ae as ComponentConfig, af as ComponentDefinition, ag as ComponentMetadata, ah as ComponentReusabilityMetadata, ai as ComponentValidationMetadata, a1 as ContentTypeConfig, a2 as ContentTypeConfigWithFields, a3 as ContentTypeConfigWithFieldsets, a4 as ContentTypeDefinition, bh as ContentTypeScopeConfig, bd as ContentTypeWorkflowConfig, bi as ContentTypesScopeConfig, a5 as EntryMetadata, bj as EntryTypeScopeConfig, bu as FetchBlock, aV as FieldVisibility, a0 as Fieldset, aw as FileKindConfig, aK as FileScanConfig, aJ as FileUploadConfig, bF as FilterDefinition, aC as ImageExifConfig, ay as ImageFitMode, au as ImageKindConfig, az as ImageOutputFormat, aB as ImageSourceConfig, ax as ImageTransform, aA as ImageUploadConfig, bD as IncludeDefinition, bJ as IncludeSubQueries, bI as IncludeSubQuery, at as InferAssetType, a6 as InferContentType, bL as InferQueryParams, bK as InferQueryResponse, an as InferSettingsGroup, ac as InferSingleton, ab as InferSingletonContentType, Z as LocaleDefinition, Y as LocaleOptions, bs as QueryConfig, bt as QueryDefinition, aQ as ROLE_ACTIONS, aU as ResourcePermission, aT as RoleAction, aW as RoleConfig, aX as RoleDefinition, K as SchemaAssetTypeNames, w as SchemaConfig, y as SchemaContentTypeNames, x as SchemaDefinition, H as SchemaLocaleCodes, G as SchemaQueryNames, J as SchemaSettingsGroupNames, z as SchemaSingletonNames, bw as SearchBlock, bE as SelectMapping, ak as SettingsGroupConfig, al as SettingsGroupDefinition, am as SettingsGroupMetadata, bx as SimilarBlock, a9 as SingletonContentTypeDefinition, aa as SingletonMetadata, bB as SortCondition, bC as SortDirection, X as TextDirection, aD as VariantDefinition, aG as VideoCaptionsConfig, aH as VideoDownloadConfig, av as VideoKindConfig, aF as VideoPosterConfig, aE as VideoUploadConfig, aI as VideoWatermarkConfig, bp as ViewConfig, bq as ViewDefinition, bo as ViewFilter, bm as ViewFilterCondition, bn as ViewFilterGroup, bl as ViewFilterOperator, bg as ViewScopeConfig, by as WhereCondition, bA as WhereOperator, bz as WhereValue, b8 as WorkflowAutoAssign, bb as WorkflowConfig, bc as WorkflowDefinition, b7 as WorkflowEscalation, b9 as WorkflowStageConfig, ba as WorkflowStageDefinition, W as buildFallbackChain, ao as defineAssetType, ad as defineComponent, _ as defineContentType, a_ as defineContentTypeWorkflow, M as defineLocale, br as defineQuery, aL as defineRole, u as defineSchema, aj as defineSettingsGroup, a8 as defineSingleton, a7 as defineSingletonContentType, be as defineView, aY as defineWorkflow, aZ as defineWorkflowStage, $ as fieldset, P as findDefaultLocale, b2 as findWorkflowStage, Q as getActiveLocales, aO as getBuiltInRoleActions, b4 as getFirstWorkflowStage, O as getLocaleCodes, b3 as getNextWorkflowStage, b1 as getWorkflowStageIds, aN as isBuiltInRole, b5 as isFinalWorkflowStage, N as isLocaleDefinition, aM as isRoleDefinition, a$ as isWorkflowDefinition, b0 as isWorkflowStageDefinition, v as schemaToJSON, bf as viewToJSON, b6 as workflowToJSON } from '../define-schema-DHvUCKwj.cjs';
3
+
4
+ /**
5
+ * Field builders for defining schema fields
6
+ * Matches the @relyio/schema FieldSchema structure
7
+ *
8
+ * All builders are generic over the ID to preserve literal types for type inference.
9
+ */
10
+
11
+ interface FieldOptions<TConfig> {
12
+ /** Type-specific configuration */
13
+ config?: TConfig;
14
+ /** UI display configuration */
15
+ ui?: FieldUIConfig;
16
+ /** AI configuration: generation/review guidance (`instructions`) for this field. */
17
+ ai?: FieldAIConfig;
18
+ /** Dynamic field rules */
19
+ rules?: FieldRule[];
20
+ /** Localization settings */
21
+ localization?: LocalizationConfig;
22
+ /** Fallback value */
23
+ fallback?: unknown;
24
+ /** Whether this field is deprecated */
25
+ deprecated?: boolean;
26
+ }
27
+ /**
28
+ * Short text field (single line)
29
+ * @example fields.shortText('title', { config: { required: true, maxLength: 200 } })
30
+ */
31
+ declare function shortText<TId extends string>(id: TId, options?: FieldOptions<ShortTextConfig>): FieldDefinition<TId, 'shortText', ShortTextConfig>;
32
+ /**
33
+ * Long text field (multi-line textarea)
34
+ * @example fields.longText('description', { config: { maxLength: 5000 } })
35
+ */
36
+ declare function longText<TId extends string>(id: TId, options?: FieldOptions<LongTextConfig>): FieldDefinition<TId, 'longText', LongTextConfig>;
37
+ /**
38
+ * Rich text field with formatting
39
+ * @example fields.richText('content', { config: { allowedMarks: ['bold', 'italic'] } })
40
+ */
41
+ declare function richText<TId extends string>(id: TId, options?: FieldOptions<RichTextConfig>): FieldDefinition<TId, 'richText', RichTextConfig>;
42
+ /**
43
+ * Slug field (URL-friendly identifier)
44
+ * @example fields.slug('slug', { config: { sourceField: 'title' } })
45
+ */
46
+ declare function slug<TId extends string>(id: TId, options?: FieldOptions<SlugConfig>): FieldDefinition<TId, 'slug', SlugConfig>;
47
+ /**
48
+ * URL field with validation
49
+ * @example fields.url('website', { config: { allowedProtocols: ['https'] } })
50
+ */
51
+ declare function url<TId extends string>(id: TId, options?: FieldOptions<UrlConfig>): FieldDefinition<TId, 'url', UrlConfig>;
52
+ /**
53
+ * Email field with validation
54
+ * @example fields.email('contactEmail', { config: { required: true } })
55
+ */
56
+ declare function email<TId extends string>(id: TId, options?: FieldOptions<EmailConfig>): FieldDefinition<TId, 'email', EmailConfig>;
57
+ /**
58
+ * Integer field
59
+ * @example fields.integer('quantity', { config: { min: 0, max: 100 } })
60
+ */
61
+ declare function integer<TId extends string>(id: TId, options?: FieldOptions<IntegerConfig>): FieldDefinition<TId, 'integer', IntegerConfig>;
62
+ /**
63
+ * Decimal field with precision
64
+ * @example fields.decimal('weight', { config: { decimalPlaces: 2, min: 0 } })
65
+ */
66
+ declare function decimal<TId extends string>(id: TId, options?: FieldOptions<DecimalConfig>): FieldDefinition<TId, 'decimal', DecimalConfig>;
67
+ /**
68
+ * Boolean field (true/false toggle)
69
+ * @example fields.boolean('isActive', { config: { defaultValue: false } })
70
+ */
71
+ declare function boolean<TId extends string>(id: TId, options?: FieldOptions<BooleanConfig>): FieldDefinition<TId, 'boolean', BooleanConfig>;
72
+ /**
73
+ * Enum field with predefined options
74
+ * @example fields.enum('status', {
75
+ * config: {
76
+ * options: [
77
+ * { value: 'draft', label: 'Draft' },
78
+ * { value: 'published', label: 'Published' },
79
+ * ]
80
+ * }
81
+ * })
82
+ */
83
+ declare function enumField<TId extends string>(id: TId, options?: FieldOptions<EnumConfig>): FieldDefinition<TId, 'enum', EnumConfig>;
84
+ /**
85
+ * Date field (no time)
86
+ * @example fields.date('publishDate', { config: { minDate: '2024-01-01' } })
87
+ */
88
+ declare function date<TId extends string>(id: TId, options?: FieldOptions<DateConfig>): FieldDefinition<TId, 'date', DateConfig>;
89
+ /**
90
+ * DateTime field with optional timezone
91
+ * @example fields.dateTime('createdAt', { config: { timezone: true } })
92
+ */
93
+ declare function dateTime<TId extends string>(id: TId, options?: FieldOptions<DateTimeConfig>): FieldDefinition<TId, 'dateTime', DateTimeConfig>;
94
+ /**
95
+ * Reference to other entries (content types or asset types)
96
+ * @example fields.reference('category', { config: { to: 'category' } })
97
+ * @example fields.reference('relatedItems', { config: { to: ['product', 'service'], multi: true } })
98
+ * @example fields.reference('heroImage', { config: { to: 'productPhoto' } })
99
+ */
100
+ declare function reference<TId extends string>(id: TId, options?: FieldOptions<ReferenceConfig>): FieldDefinition<TId, 'reference', ReferenceConfig>;
101
+ /**
102
+ * Tags field (array of strings with autocomplete)
103
+ * @example fields.tags('keywords', { config: { predefinedTags: ['featured', 'sale'], maxTags: 10 } })
104
+ */
105
+ declare function tags<TId extends string>(id: TId, options?: FieldOptions<TagsConfig>): FieldDefinition<TId, 'tags', TagsConfig>;
106
+ /**
107
+ * List field (array of complex items)
108
+ * @example fields.list('specifications', {
109
+ * config: {
110
+ * minItems: 1,
111
+ * maxItems: 20,
112
+ * subfields: [
113
+ * fields.shortText('name', { config: { required: true } }),
114
+ * fields.shortText('value', { config: { required: true } }),
115
+ * ]
116
+ * }
117
+ * })
118
+ */
119
+ declare function list<TId extends string>(id: TId, options?: FieldOptions<ListConfig>): FieldDefinition<TId, 'list', ListConfig>;
120
+ /**
121
+ * Component field (reusable field group)
122
+ * @example fields.component('seo', 'seoMetadata')
123
+ */
124
+ declare function component<TId extends string, TComponentId extends string>(id: TId, componentId: TComponentId, options?: Omit<FieldOptions<undefined>, 'config'>): FieldDefinition<TId, `component(${TComponentId})`, undefined>;
125
+
126
+ /**
127
+ * Field builders for defining schema fields
128
+ * Matches the @relyio/schema FieldSchema structure
129
+ *
130
+ * @example
131
+ * import { fields } from '@relyio/sdk/schema'
132
+ *
133
+ * const titleField = fields.shortText('title', {
134
+ * config: { required: true, maxLength: 200 },
135
+ * ui: { displayName: 'Title', description: 'Product title' },
136
+ * localization: true,
137
+ * })
138
+ */
139
+
140
+ declare const fieldBuilders_AIConfig: typeof AIConfig;
141
+ declare const fieldBuilders_AllFieldTypes: typeof AllFieldTypes;
142
+ declare const fieldBuilders_AnyFieldDefinition: typeof AnyFieldDefinition;
143
+ declare const fieldBuilders_AssetAIConfig: typeof AssetAIConfig;
144
+ declare const fieldBuilders_BaseFieldConfig: typeof BaseFieldConfig;
145
+ declare const fieldBuilders_BooleanConfig: typeof BooleanConfig;
146
+ declare const fieldBuilders_ComponentFieldType: typeof ComponentFieldType;
147
+ declare const fieldBuilders_DateConfig: typeof DateConfig;
148
+ declare const fieldBuilders_DateTimeConfig: typeof DateTimeConfig;
149
+ declare const fieldBuilders_DecimalConfig: typeof DecimalConfig;
150
+ declare const fieldBuilders_EmailConfig: typeof EmailConfig;
151
+ declare const fieldBuilders_EnumConfig: typeof EnumConfig;
152
+ declare const fieldBuilders_FieldAIConfig: typeof FieldAIConfig;
153
+ declare const fieldBuilders_FieldDefinition: typeof FieldDefinition;
154
+ declare const fieldBuilders_FieldRule: typeof FieldRule;
155
+ declare const fieldBuilders_FieldType: typeof FieldType;
156
+ declare const fieldBuilders_FieldUIConfig: typeof FieldUIConfig;
157
+ declare const fieldBuilders_IntegerConfig: typeof IntegerConfig;
158
+ declare const fieldBuilders_ListConfig: typeof ListConfig;
159
+ declare const fieldBuilders_LocalizationConfig: typeof LocalizationConfig;
160
+ declare const fieldBuilders_LongTextConfig: typeof LongTextConfig;
161
+ declare const fieldBuilders_ReadOnlyRule: typeof ReadOnlyRule;
162
+ declare const fieldBuilders_ReferenceConfig: typeof ReferenceConfig;
163
+ declare const fieldBuilders_RequirementRule: typeof RequirementRule;
164
+ declare const fieldBuilders_RichTextConfig: typeof RichTextConfig;
165
+ declare const fieldBuilders_RuleCondition: typeof RuleCondition;
166
+ declare const fieldBuilders_RuleConditions: typeof RuleConditions;
167
+ declare const fieldBuilders_ShortTextConfig: typeof ShortTextConfig;
168
+ declare const fieldBuilders_SlugConfig: typeof SlugConfig;
169
+ declare const fieldBuilders_TagsConfig: typeof TagsConfig;
170
+ declare const fieldBuilders_UrlConfig: typeof UrlConfig;
171
+ declare const fieldBuilders_ValidationRule: typeof ValidationRule;
172
+ declare const fieldBuilders_VisibilityRule: typeof VisibilityRule;
173
+ declare const fieldBuilders_boolean: typeof boolean;
174
+ declare const fieldBuilders_component: typeof component;
175
+ declare const fieldBuilders_date: typeof date;
176
+ declare const fieldBuilders_dateTime: typeof dateTime;
177
+ declare const fieldBuilders_decimal: typeof decimal;
178
+ declare const fieldBuilders_email: typeof email;
179
+ declare const fieldBuilders_integer: typeof integer;
180
+ declare const fieldBuilders_list: typeof list;
181
+ declare const fieldBuilders_longText: typeof longText;
182
+ declare const fieldBuilders_reference: typeof reference;
183
+ declare const fieldBuilders_richText: typeof richText;
184
+ declare const fieldBuilders_shortText: typeof shortText;
185
+ declare const fieldBuilders_slug: typeof slug;
186
+ declare const fieldBuilders_tags: typeof tags;
187
+ declare const fieldBuilders_url: typeof url;
188
+ declare namespace fieldBuilders {
189
+ export { fieldBuilders_AIConfig as AIConfig, fieldBuilders_AllFieldTypes as AllFieldTypes, fieldBuilders_AnyFieldDefinition as AnyFieldDefinition, fieldBuilders_AssetAIConfig as AssetAIConfig, fieldBuilders_BaseFieldConfig as BaseFieldConfig, fieldBuilders_BooleanConfig as BooleanConfig, fieldBuilders_ComponentFieldType as ComponentFieldType, fieldBuilders_DateConfig as DateConfig, fieldBuilders_DateTimeConfig as DateTimeConfig, fieldBuilders_DecimalConfig as DecimalConfig, fieldBuilders_EmailConfig as EmailConfig, fieldBuilders_EnumConfig as EnumConfig, fieldBuilders_FieldAIConfig as FieldAIConfig, fieldBuilders_FieldDefinition as FieldDefinition, fieldBuilders_FieldRule as FieldRule, fieldBuilders_FieldType as FieldType, fieldBuilders_FieldUIConfig as FieldUIConfig, fieldBuilders_IntegerConfig as IntegerConfig, fieldBuilders_ListConfig as ListConfig, fieldBuilders_LocalizationConfig as LocalizationConfig, fieldBuilders_LongTextConfig as LongTextConfig, fieldBuilders_ReadOnlyRule as ReadOnlyRule, fieldBuilders_ReferenceConfig as ReferenceConfig, fieldBuilders_RequirementRule as RequirementRule, fieldBuilders_RichTextConfig as RichTextConfig, fieldBuilders_RuleCondition as RuleCondition, fieldBuilders_RuleConditions as RuleConditions, fieldBuilders_ShortTextConfig as ShortTextConfig, fieldBuilders_SlugConfig as SlugConfig, fieldBuilders_TagsConfig as TagsConfig, fieldBuilders_UrlConfig as UrlConfig, fieldBuilders_ValidationRule as ValidationRule, fieldBuilders_VisibilityRule as VisibilityRule, fieldBuilders_boolean as boolean, fieldBuilders_component as component, fieldBuilders_date as date, fieldBuilders_dateTime as dateTime, fieldBuilders_decimal as decimal, fieldBuilders_email as email, enumField as enum, fieldBuilders_integer as integer, fieldBuilders_list as list, fieldBuilders_longText as longText, fieldBuilders_reference as reference, fieldBuilders_richText as richText, fieldBuilders_shortText as shortText, fieldBuilders_slug as slug, fieldBuilders_tags as tags, fieldBuilders_url as url };
190
+ }
191
+
192
+ /**
193
+ * @relyio/sdk/schema - TypeScript-first schema definition
194
+ *
195
+ * Define your content schema directly in TypeScript, matching the
196
+ * exact structure of @relyio/schema. No separate codegen needed for
197
+ * basic type inference.
198
+ *
199
+ * @example
200
+ * // schema/product.ts
201
+ * import { defineContentType, fields } from '@relyio/sdk/schema'
202
+ *
203
+ * export const product = defineContentType('product', {
204
+ * displayName: 'Product',
205
+ * fields: [
206
+ * fields.shortText('title', { config: { required: true, maxLength: 200 } }),
207
+ * fields.currency('price', { config: { currencyCode: 'USD', min: 0 } }),
208
+ * fields.reference('category', { config: { contentType: 'category' } }),
209
+ * ]
210
+ * })
211
+ *
212
+ * // schema/index.ts
213
+ * import { defineSchema } from '@relyio/sdk/schema'
214
+ * import { product } from './product'
215
+ *
216
+ * export const schema = defineSchema({
217
+ * contentTypes: { product },
218
+ * })
219
+ */
220
+
221
+ declare const fields: typeof fieldBuilders;
222
+
223
+ export { AIConfig, AllFieldTypes, AssetAIConfig, BaseFieldConfig, BooleanConfig, ComponentFieldType, DateConfig, DateTimeConfig, DecimalConfig, EmailConfig, EnumConfig, FieldAIConfig, FieldDefinition, FieldRule, FieldType, FieldUIConfig, IntegerConfig, ListConfig, LocalizationConfig, LongTextConfig, ReadOnlyRule, ReferenceConfig, RequirementRule, RichTextConfig, RuleCondition, RuleConditions, ShortTextConfig, SlugConfig, TagsConfig, UrlConfig, ValidationRule, VisibilityRule, fields };
@@ -0,0 +1,223 @@
1
+ import { F as FieldUIConfig, a as FieldAIConfig, b as FieldRule, L as LocalizationConfig, S as ShortTextConfig, c as FieldDefinition, d as LongTextConfig, R as RichTextConfig, e as SlugConfig, U as UrlConfig, E as EmailConfig, I as IntegerConfig, D as DecimalConfig, B as BooleanConfig, f as EnumConfig, g as DateConfig, h as DateTimeConfig, i as ReferenceConfig, T as TagsConfig, j as ListConfig, A as AIConfig, k as AllFieldTypes, l as AnyFieldDefinition, m as AssetAIConfig, n as BaseFieldConfig, C as ComponentFieldType, o as FieldType, p as ReadOnlyRule, q as RequirementRule, r as RuleCondition, s as RuleConditions, V as ValidationRule, t as VisibilityRule } from '../define-schema-DHvUCKwj.js';
2
+ export { bv as AggregateBlock, bk as AllScopeConfig, ap as AssetTypeConfig, aq as AssetTypeConfigWithFields, ar as AssetTypeConfigWithFieldsets, as as AssetTypeDefinition, aP as BUILT_IN_ROLES, aR as BUILT_IN_ROLE_ACTIONS, aS as BuiltInRole, bG as CachePolicy, bH as CachePolicyObject, ae as ComponentConfig, af as ComponentDefinition, ag as ComponentMetadata, ah as ComponentReusabilityMetadata, ai as ComponentValidationMetadata, a1 as ContentTypeConfig, a2 as ContentTypeConfigWithFields, a3 as ContentTypeConfigWithFieldsets, a4 as ContentTypeDefinition, bh as ContentTypeScopeConfig, bd as ContentTypeWorkflowConfig, bi as ContentTypesScopeConfig, a5 as EntryMetadata, bj as EntryTypeScopeConfig, bu as FetchBlock, aV as FieldVisibility, a0 as Fieldset, aw as FileKindConfig, aK as FileScanConfig, aJ as FileUploadConfig, bF as FilterDefinition, aC as ImageExifConfig, ay as ImageFitMode, au as ImageKindConfig, az as ImageOutputFormat, aB as ImageSourceConfig, ax as ImageTransform, aA as ImageUploadConfig, bD as IncludeDefinition, bJ as IncludeSubQueries, bI as IncludeSubQuery, at as InferAssetType, a6 as InferContentType, bL as InferQueryParams, bK as InferQueryResponse, an as InferSettingsGroup, ac as InferSingleton, ab as InferSingletonContentType, Z as LocaleDefinition, Y as LocaleOptions, bs as QueryConfig, bt as QueryDefinition, aQ as ROLE_ACTIONS, aU as ResourcePermission, aT as RoleAction, aW as RoleConfig, aX as RoleDefinition, K as SchemaAssetTypeNames, w as SchemaConfig, y as SchemaContentTypeNames, x as SchemaDefinition, H as SchemaLocaleCodes, G as SchemaQueryNames, J as SchemaSettingsGroupNames, z as SchemaSingletonNames, bw as SearchBlock, bE as SelectMapping, ak as SettingsGroupConfig, al as SettingsGroupDefinition, am as SettingsGroupMetadata, bx as SimilarBlock, a9 as SingletonContentTypeDefinition, aa as SingletonMetadata, bB as SortCondition, bC as SortDirection, X as TextDirection, aD as VariantDefinition, aG as VideoCaptionsConfig, aH as VideoDownloadConfig, av as VideoKindConfig, aF as VideoPosterConfig, aE as VideoUploadConfig, aI as VideoWatermarkConfig, bp as ViewConfig, bq as ViewDefinition, bo as ViewFilter, bm as ViewFilterCondition, bn as ViewFilterGroup, bl as ViewFilterOperator, bg as ViewScopeConfig, by as WhereCondition, bA as WhereOperator, bz as WhereValue, b8 as WorkflowAutoAssign, bb as WorkflowConfig, bc as WorkflowDefinition, b7 as WorkflowEscalation, b9 as WorkflowStageConfig, ba as WorkflowStageDefinition, W as buildFallbackChain, ao as defineAssetType, ad as defineComponent, _ as defineContentType, a_ as defineContentTypeWorkflow, M as defineLocale, br as defineQuery, aL as defineRole, u as defineSchema, aj as defineSettingsGroup, a8 as defineSingleton, a7 as defineSingletonContentType, be as defineView, aY as defineWorkflow, aZ as defineWorkflowStage, $ as fieldset, P as findDefaultLocale, b2 as findWorkflowStage, Q as getActiveLocales, aO as getBuiltInRoleActions, b4 as getFirstWorkflowStage, O as getLocaleCodes, b3 as getNextWorkflowStage, b1 as getWorkflowStageIds, aN as isBuiltInRole, b5 as isFinalWorkflowStage, N as isLocaleDefinition, aM as isRoleDefinition, a$ as isWorkflowDefinition, b0 as isWorkflowStageDefinition, v as schemaToJSON, bf as viewToJSON, b6 as workflowToJSON } from '../define-schema-DHvUCKwj.js';
3
+
4
+ /**
5
+ * Field builders for defining schema fields
6
+ * Matches the @relyio/schema FieldSchema structure
7
+ *
8
+ * All builders are generic over the ID to preserve literal types for type inference.
9
+ */
10
+
11
+ interface FieldOptions<TConfig> {
12
+ /** Type-specific configuration */
13
+ config?: TConfig;
14
+ /** UI display configuration */
15
+ ui?: FieldUIConfig;
16
+ /** AI configuration: generation/review guidance (`instructions`) for this field. */
17
+ ai?: FieldAIConfig;
18
+ /** Dynamic field rules */
19
+ rules?: FieldRule[];
20
+ /** Localization settings */
21
+ localization?: LocalizationConfig;
22
+ /** Fallback value */
23
+ fallback?: unknown;
24
+ /** Whether this field is deprecated */
25
+ deprecated?: boolean;
26
+ }
27
+ /**
28
+ * Short text field (single line)
29
+ * @example fields.shortText('title', { config: { required: true, maxLength: 200 } })
30
+ */
31
+ declare function shortText<TId extends string>(id: TId, options?: FieldOptions<ShortTextConfig>): FieldDefinition<TId, 'shortText', ShortTextConfig>;
32
+ /**
33
+ * Long text field (multi-line textarea)
34
+ * @example fields.longText('description', { config: { maxLength: 5000 } })
35
+ */
36
+ declare function longText<TId extends string>(id: TId, options?: FieldOptions<LongTextConfig>): FieldDefinition<TId, 'longText', LongTextConfig>;
37
+ /**
38
+ * Rich text field with formatting
39
+ * @example fields.richText('content', { config: { allowedMarks: ['bold', 'italic'] } })
40
+ */
41
+ declare function richText<TId extends string>(id: TId, options?: FieldOptions<RichTextConfig>): FieldDefinition<TId, 'richText', RichTextConfig>;
42
+ /**
43
+ * Slug field (URL-friendly identifier)
44
+ * @example fields.slug('slug', { config: { sourceField: 'title' } })
45
+ */
46
+ declare function slug<TId extends string>(id: TId, options?: FieldOptions<SlugConfig>): FieldDefinition<TId, 'slug', SlugConfig>;
47
+ /**
48
+ * URL field with validation
49
+ * @example fields.url('website', { config: { allowedProtocols: ['https'] } })
50
+ */
51
+ declare function url<TId extends string>(id: TId, options?: FieldOptions<UrlConfig>): FieldDefinition<TId, 'url', UrlConfig>;
52
+ /**
53
+ * Email field with validation
54
+ * @example fields.email('contactEmail', { config: { required: true } })
55
+ */
56
+ declare function email<TId extends string>(id: TId, options?: FieldOptions<EmailConfig>): FieldDefinition<TId, 'email', EmailConfig>;
57
+ /**
58
+ * Integer field
59
+ * @example fields.integer('quantity', { config: { min: 0, max: 100 } })
60
+ */
61
+ declare function integer<TId extends string>(id: TId, options?: FieldOptions<IntegerConfig>): FieldDefinition<TId, 'integer', IntegerConfig>;
62
+ /**
63
+ * Decimal field with precision
64
+ * @example fields.decimal('weight', { config: { decimalPlaces: 2, min: 0 } })
65
+ */
66
+ declare function decimal<TId extends string>(id: TId, options?: FieldOptions<DecimalConfig>): FieldDefinition<TId, 'decimal', DecimalConfig>;
67
+ /**
68
+ * Boolean field (true/false toggle)
69
+ * @example fields.boolean('isActive', { config: { defaultValue: false } })
70
+ */
71
+ declare function boolean<TId extends string>(id: TId, options?: FieldOptions<BooleanConfig>): FieldDefinition<TId, 'boolean', BooleanConfig>;
72
+ /**
73
+ * Enum field with predefined options
74
+ * @example fields.enum('status', {
75
+ * config: {
76
+ * options: [
77
+ * { value: 'draft', label: 'Draft' },
78
+ * { value: 'published', label: 'Published' },
79
+ * ]
80
+ * }
81
+ * })
82
+ */
83
+ declare function enumField<TId extends string>(id: TId, options?: FieldOptions<EnumConfig>): FieldDefinition<TId, 'enum', EnumConfig>;
84
+ /**
85
+ * Date field (no time)
86
+ * @example fields.date('publishDate', { config: { minDate: '2024-01-01' } })
87
+ */
88
+ declare function date<TId extends string>(id: TId, options?: FieldOptions<DateConfig>): FieldDefinition<TId, 'date', DateConfig>;
89
+ /**
90
+ * DateTime field with optional timezone
91
+ * @example fields.dateTime('createdAt', { config: { timezone: true } })
92
+ */
93
+ declare function dateTime<TId extends string>(id: TId, options?: FieldOptions<DateTimeConfig>): FieldDefinition<TId, 'dateTime', DateTimeConfig>;
94
+ /**
95
+ * Reference to other entries (content types or asset types)
96
+ * @example fields.reference('category', { config: { to: 'category' } })
97
+ * @example fields.reference('relatedItems', { config: { to: ['product', 'service'], multi: true } })
98
+ * @example fields.reference('heroImage', { config: { to: 'productPhoto' } })
99
+ */
100
+ declare function reference<TId extends string>(id: TId, options?: FieldOptions<ReferenceConfig>): FieldDefinition<TId, 'reference', ReferenceConfig>;
101
+ /**
102
+ * Tags field (array of strings with autocomplete)
103
+ * @example fields.tags('keywords', { config: { predefinedTags: ['featured', 'sale'], maxTags: 10 } })
104
+ */
105
+ declare function tags<TId extends string>(id: TId, options?: FieldOptions<TagsConfig>): FieldDefinition<TId, 'tags', TagsConfig>;
106
+ /**
107
+ * List field (array of complex items)
108
+ * @example fields.list('specifications', {
109
+ * config: {
110
+ * minItems: 1,
111
+ * maxItems: 20,
112
+ * subfields: [
113
+ * fields.shortText('name', { config: { required: true } }),
114
+ * fields.shortText('value', { config: { required: true } }),
115
+ * ]
116
+ * }
117
+ * })
118
+ */
119
+ declare function list<TId extends string>(id: TId, options?: FieldOptions<ListConfig>): FieldDefinition<TId, 'list', ListConfig>;
120
+ /**
121
+ * Component field (reusable field group)
122
+ * @example fields.component('seo', 'seoMetadata')
123
+ */
124
+ declare function component<TId extends string, TComponentId extends string>(id: TId, componentId: TComponentId, options?: Omit<FieldOptions<undefined>, 'config'>): FieldDefinition<TId, `component(${TComponentId})`, undefined>;
125
+
126
+ /**
127
+ * Field builders for defining schema fields
128
+ * Matches the @relyio/schema FieldSchema structure
129
+ *
130
+ * @example
131
+ * import { fields } from '@relyio/sdk/schema'
132
+ *
133
+ * const titleField = fields.shortText('title', {
134
+ * config: { required: true, maxLength: 200 },
135
+ * ui: { displayName: 'Title', description: 'Product title' },
136
+ * localization: true,
137
+ * })
138
+ */
139
+
140
+ declare const fieldBuilders_AIConfig: typeof AIConfig;
141
+ declare const fieldBuilders_AllFieldTypes: typeof AllFieldTypes;
142
+ declare const fieldBuilders_AnyFieldDefinition: typeof AnyFieldDefinition;
143
+ declare const fieldBuilders_AssetAIConfig: typeof AssetAIConfig;
144
+ declare const fieldBuilders_BaseFieldConfig: typeof BaseFieldConfig;
145
+ declare const fieldBuilders_BooleanConfig: typeof BooleanConfig;
146
+ declare const fieldBuilders_ComponentFieldType: typeof ComponentFieldType;
147
+ declare const fieldBuilders_DateConfig: typeof DateConfig;
148
+ declare const fieldBuilders_DateTimeConfig: typeof DateTimeConfig;
149
+ declare const fieldBuilders_DecimalConfig: typeof DecimalConfig;
150
+ declare const fieldBuilders_EmailConfig: typeof EmailConfig;
151
+ declare const fieldBuilders_EnumConfig: typeof EnumConfig;
152
+ declare const fieldBuilders_FieldAIConfig: typeof FieldAIConfig;
153
+ declare const fieldBuilders_FieldDefinition: typeof FieldDefinition;
154
+ declare const fieldBuilders_FieldRule: typeof FieldRule;
155
+ declare const fieldBuilders_FieldType: typeof FieldType;
156
+ declare const fieldBuilders_FieldUIConfig: typeof FieldUIConfig;
157
+ declare const fieldBuilders_IntegerConfig: typeof IntegerConfig;
158
+ declare const fieldBuilders_ListConfig: typeof ListConfig;
159
+ declare const fieldBuilders_LocalizationConfig: typeof LocalizationConfig;
160
+ declare const fieldBuilders_LongTextConfig: typeof LongTextConfig;
161
+ declare const fieldBuilders_ReadOnlyRule: typeof ReadOnlyRule;
162
+ declare const fieldBuilders_ReferenceConfig: typeof ReferenceConfig;
163
+ declare const fieldBuilders_RequirementRule: typeof RequirementRule;
164
+ declare const fieldBuilders_RichTextConfig: typeof RichTextConfig;
165
+ declare const fieldBuilders_RuleCondition: typeof RuleCondition;
166
+ declare const fieldBuilders_RuleConditions: typeof RuleConditions;
167
+ declare const fieldBuilders_ShortTextConfig: typeof ShortTextConfig;
168
+ declare const fieldBuilders_SlugConfig: typeof SlugConfig;
169
+ declare const fieldBuilders_TagsConfig: typeof TagsConfig;
170
+ declare const fieldBuilders_UrlConfig: typeof UrlConfig;
171
+ declare const fieldBuilders_ValidationRule: typeof ValidationRule;
172
+ declare const fieldBuilders_VisibilityRule: typeof VisibilityRule;
173
+ declare const fieldBuilders_boolean: typeof boolean;
174
+ declare const fieldBuilders_component: typeof component;
175
+ declare const fieldBuilders_date: typeof date;
176
+ declare const fieldBuilders_dateTime: typeof dateTime;
177
+ declare const fieldBuilders_decimal: typeof decimal;
178
+ declare const fieldBuilders_email: typeof email;
179
+ declare const fieldBuilders_integer: typeof integer;
180
+ declare const fieldBuilders_list: typeof list;
181
+ declare const fieldBuilders_longText: typeof longText;
182
+ declare const fieldBuilders_reference: typeof reference;
183
+ declare const fieldBuilders_richText: typeof richText;
184
+ declare const fieldBuilders_shortText: typeof shortText;
185
+ declare const fieldBuilders_slug: typeof slug;
186
+ declare const fieldBuilders_tags: typeof tags;
187
+ declare const fieldBuilders_url: typeof url;
188
+ declare namespace fieldBuilders {
189
+ export { fieldBuilders_AIConfig as AIConfig, fieldBuilders_AllFieldTypes as AllFieldTypes, fieldBuilders_AnyFieldDefinition as AnyFieldDefinition, fieldBuilders_AssetAIConfig as AssetAIConfig, fieldBuilders_BaseFieldConfig as BaseFieldConfig, fieldBuilders_BooleanConfig as BooleanConfig, fieldBuilders_ComponentFieldType as ComponentFieldType, fieldBuilders_DateConfig as DateConfig, fieldBuilders_DateTimeConfig as DateTimeConfig, fieldBuilders_DecimalConfig as DecimalConfig, fieldBuilders_EmailConfig as EmailConfig, fieldBuilders_EnumConfig as EnumConfig, fieldBuilders_FieldAIConfig as FieldAIConfig, fieldBuilders_FieldDefinition as FieldDefinition, fieldBuilders_FieldRule as FieldRule, fieldBuilders_FieldType as FieldType, fieldBuilders_FieldUIConfig as FieldUIConfig, fieldBuilders_IntegerConfig as IntegerConfig, fieldBuilders_ListConfig as ListConfig, fieldBuilders_LocalizationConfig as LocalizationConfig, fieldBuilders_LongTextConfig as LongTextConfig, fieldBuilders_ReadOnlyRule as ReadOnlyRule, fieldBuilders_ReferenceConfig as ReferenceConfig, fieldBuilders_RequirementRule as RequirementRule, fieldBuilders_RichTextConfig as RichTextConfig, fieldBuilders_RuleCondition as RuleCondition, fieldBuilders_RuleConditions as RuleConditions, fieldBuilders_ShortTextConfig as ShortTextConfig, fieldBuilders_SlugConfig as SlugConfig, fieldBuilders_TagsConfig as TagsConfig, fieldBuilders_UrlConfig as UrlConfig, fieldBuilders_ValidationRule as ValidationRule, fieldBuilders_VisibilityRule as VisibilityRule, fieldBuilders_boolean as boolean, fieldBuilders_component as component, fieldBuilders_date as date, fieldBuilders_dateTime as dateTime, fieldBuilders_decimal as decimal, fieldBuilders_email as email, enumField as enum, fieldBuilders_integer as integer, fieldBuilders_list as list, fieldBuilders_longText as longText, fieldBuilders_reference as reference, fieldBuilders_richText as richText, fieldBuilders_shortText as shortText, fieldBuilders_slug as slug, fieldBuilders_tags as tags, fieldBuilders_url as url };
190
+ }
191
+
192
+ /**
193
+ * @relyio/sdk/schema - TypeScript-first schema definition
194
+ *
195
+ * Define your content schema directly in TypeScript, matching the
196
+ * exact structure of @relyio/schema. No separate codegen needed for
197
+ * basic type inference.
198
+ *
199
+ * @example
200
+ * // schema/product.ts
201
+ * import { defineContentType, fields } from '@relyio/sdk/schema'
202
+ *
203
+ * export const product = defineContentType('product', {
204
+ * displayName: 'Product',
205
+ * fields: [
206
+ * fields.shortText('title', { config: { required: true, maxLength: 200 } }),
207
+ * fields.currency('price', { config: { currencyCode: 'USD', min: 0 } }),
208
+ * fields.reference('category', { config: { contentType: 'category' } }),
209
+ * ]
210
+ * })
211
+ *
212
+ * // schema/index.ts
213
+ * import { defineSchema } from '@relyio/sdk/schema'
214
+ * import { product } from './product'
215
+ *
216
+ * export const schema = defineSchema({
217
+ * contentTypes: { product },
218
+ * })
219
+ */
220
+
221
+ declare const fields: typeof fieldBuilders;
222
+
223
+ export { AIConfig, AllFieldTypes, AssetAIConfig, BaseFieldConfig, BooleanConfig, ComponentFieldType, DateConfig, DateTimeConfig, DecimalConfig, EmailConfig, EnumConfig, FieldAIConfig, FieldDefinition, FieldRule, FieldType, FieldUIConfig, IntegerConfig, ListConfig, LocalizationConfig, LongTextConfig, ReadOnlyRule, ReferenceConfig, RequirementRule, RichTextConfig, RuleCondition, RuleConditions, ShortTextConfig, SlugConfig, TagsConfig, UrlConfig, ValidationRule, VisibilityRule, fields };
@@ -0,0 +1,4 @@
1
+ export { BUILT_IN_ROLES, BUILT_IN_ROLE_ACTIONS, ROLE_ACTIONS, buildFallbackChain, defineAssetType, defineComponent, defineContentType, defineContentTypeWorkflow, defineLocale, defineQuery, defineRole, defineSchema, defineSettingsGroup, defineSingleton, defineSingletonContentType, defineView, defineWorkflow, defineWorkflowStage, fields, fieldset, findDefaultLocale, findWorkflowStage, getActiveLocales, getBuiltInRoleActions, getFirstWorkflowStage, getLocaleCodes, getNextWorkflowStage, getWorkflowStageIds, isBuiltInRole, isFinalWorkflowStage, isLocaleDefinition, isRoleDefinition, isWorkflowDefinition, isWorkflowStageDefinition, schemaToJSON, viewToJSON, workflowToJSON } from '../chunk-2QUK2ZGD.js';
2
+ import '../chunk-XQ4QHWZE.js';
3
+ //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ require('../chunk-PPA2WWOH.cjs');
4
+
5
+ //# sourceMappingURL=index.cjs.map
6
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ export { r as ApiResponse, B as BaseContent, o as CacheConfig, t as CacheStrategy, f as ContentQueryResult, j as ContentTypeSchema, C as CreateInput, i as CustomQuery, D as DebugConfig, E as Environment, J as FieldDefinition, k as FieldOptions, F as FieldTypeName, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, p as RealtimeConfig, m as RealtimeEvent, l as RealtimeEventType, R as RelyIOConfig, q as RequestConfig, s as RetryConfig, h as SettingsGroup, g as SingletonContent, e as SortOptions, n as SubscriptionOptions, U as UpdateInput, V as ValidationRule, u as ValidationViolation, c as WhereClause, d as WhereOperator } from '../index-BsUqCAu8.cjs';
@@ -0,0 +1 @@
1
+ export { r as ApiResponse, B as BaseContent, o as CacheConfig, t as CacheStrategy, f as ContentQueryResult, j as ContentTypeSchema, C as CreateInput, i as CustomQuery, D as DebugConfig, E as Environment, J as FieldDefinition, k as FieldOptions, F as FieldTypeName, L as LogLevel, P as PerformanceMetrics, Q as QueryOptions, p as RealtimeConfig, m as RealtimeEvent, l as RealtimeEventType, R as RelyIOConfig, q as RequestConfig, s as RetryConfig, h as SettingsGroup, g as SingletonContent, e as SortOptions, n as SubscriptionOptions, U as UpdateInput, V as ValidationRule, u as ValidationViolation, c as WhereClause, d as WhereOperator } from '../index-BsUqCAu8.js';
@@ -0,0 +1,3 @@
1
+ import '../chunk-IY5LSKXU.js';
2
+ //# sourceMappingURL=index.js.map
3
+ //# sourceMappingURL=index.js.map