node-type-registry 0.34.0 → 0.35.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 (59) hide show
  1. package/blueprint-types.generated.d.ts +256 -59
  2. package/blueprint-types.generated.js +30 -0
  3. package/codegen/generate-types.js +3 -1
  4. package/data/data-aggregate-limit-counter.d.ts +1 -1
  5. package/data/data-aggregate-limit-counter.js +4 -4
  6. package/data/data-billing-meter.d.ts +1 -1
  7. package/data/data-billing-meter.js +4 -4
  8. package/data/data-chunks.d.ts +2 -2
  9. package/data/data-chunks.js +6 -6
  10. package/data/data-feature-flag.d.ts +1 -1
  11. package/data/data-feature-flag.js +4 -4
  12. package/data/data-file-embedding.d.ts +1 -1
  13. package/data/data-file-embedding.js +8 -27
  14. package/data/data-image-embedding.d.ts +4 -4
  15. package/data/data-image-embedding.js +13 -31
  16. package/data/data-job-trigger.d.ts +1 -1
  17. package/data/data-job-trigger.js +4 -4
  18. package/data/data-limit-counter.d.ts +1 -1
  19. package/data/data-limit-counter.js +4 -4
  20. package/data/index.d.ts +10 -8
  21. package/data/index.js +13 -9
  22. package/data/process-extraction.d.ts +14 -0
  23. package/data/process-extraction.js +108 -0
  24. package/data/process-image-versions.d.ts +15 -0
  25. package/data/process-image-versions.js +139 -0
  26. package/data/search-vector.js +1 -16
  27. package/esm/blueprint-types.generated.d.ts +256 -59
  28. package/esm/blueprint-types.generated.js +30 -0
  29. package/esm/codegen/generate-types.js +3 -1
  30. package/esm/data/data-aggregate-limit-counter.d.ts +1 -1
  31. package/esm/data/data-aggregate-limit-counter.js +3 -3
  32. package/esm/data/data-billing-meter.d.ts +1 -1
  33. package/esm/data/data-billing-meter.js +3 -3
  34. package/esm/data/data-chunks.d.ts +2 -2
  35. package/esm/data/data-chunks.js +5 -5
  36. package/esm/data/data-feature-flag.d.ts +1 -1
  37. package/esm/data/data-feature-flag.js +3 -3
  38. package/esm/data/data-file-embedding.d.ts +1 -1
  39. package/esm/data/data-file-embedding.js +7 -26
  40. package/esm/data/data-image-embedding.d.ts +4 -4
  41. package/esm/data/data-image-embedding.js +12 -30
  42. package/esm/data/data-job-trigger.d.ts +1 -1
  43. package/esm/data/data-job-trigger.js +3 -3
  44. package/esm/data/data-limit-counter.d.ts +1 -1
  45. package/esm/data/data-limit-counter.js +3 -3
  46. package/esm/data/index.d.ts +10 -8
  47. package/esm/data/index.js +10 -8
  48. package/esm/data/process-extraction.d.ts +14 -0
  49. package/esm/data/process-extraction.js +105 -0
  50. package/esm/data/process-image-versions.d.ts +15 -0
  51. package/esm/data/process-image-versions.js +136 -0
  52. package/esm/data/search-vector.js +1 -16
  53. package/esm/module-presets/auth-hardened.js +4 -2
  54. package/esm/module-presets/b2b-storage.js +4 -2
  55. package/esm/module-presets/b2b.js +4 -2
  56. package/module-presets/auth-hardened.js +4 -2
  57. package/module-presets/b2b-storage.js +4 -2
  58. package/module-presets/b2b.js +4 -2
  59. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataFileEmbedding = void 0;
4
- exports.DataFileEmbedding = {
5
- name: 'DataFileEmbedding',
3
+ exports.ProcessFileEmbedding = void 0;
4
+ exports.ProcessFileEmbedding = {
5
+ name: 'ProcessFileEmbedding',
6
6
  slug: 'data_file_embedding',
7
- category: 'data',
7
+ category: 'process',
8
8
  display_name: 'File Embedding',
9
9
  description: 'Generic, MIME-scoped embedding node for file tables. Supports two modes: ' +
10
10
  'direct (whole-file to single vector, e.g. CLIP for images) when extraction ' +
11
11
  'is omitted, or extract (file to text to chunks to per-chunk vectors) when ' +
12
- 'extraction config is provided. Composes SearchVector + DataJobTrigger + ' +
13
- 'DataChunks (enabled by default in extract mode) internally. Multiple ' +
12
+ 'extraction config is provided. Composes SearchVector + JobTrigger + ' +
13
+ 'ProcessChunks (enabled by default in extract mode) internally. Multiple ' +
14
14
  'instances can coexist on the same table with different MIME scopes, field ' +
15
15
  'names, and embedding strategies.',
16
16
  parameter_schema: {
@@ -106,25 +106,19 @@ exports.DataFileEmbedding = {
106
106
  format: 'column-ref',
107
107
  description: 'JSONB field for extraction metadata (page count, language, etc.)',
108
108
  default: 'extracted_metadata'
109
- },
110
- status_field: {
111
- type: 'string',
112
- format: 'column-ref',
113
- description: 'Extraction lifecycle status field',
114
- default: 'extraction_status'
115
109
  }
116
110
  }
117
111
  },
118
112
  // ── Chunking (enabled by default in extract mode) ──────────────
119
113
  include_chunks: {
120
114
  type: 'boolean',
121
- description: 'Whether to create a chunks table via DataChunks. Defaults to true ' +
115
+ description: 'Whether to create a chunks table via ProcessChunks. Defaults to true ' +
122
116
  'when extraction is provided, false in direct mode. Set explicitly ' +
123
117
  'to override.',
124
118
  },
125
119
  chunks: {
126
120
  type: 'object',
127
- description: 'Chunking configuration passed through to DataChunks. When ' +
121
+ description: 'Chunking configuration passed through to ProcessChunks. When ' +
128
122
  'include_chunks is true (or defaults to true in extract mode), these ' +
129
123
  'params configure the chunks table, embedding dimensions, strategy, etc.',
130
124
  properties: {
@@ -166,19 +160,6 @@ exports.DataFileEmbedding = {
166
160
  default: 'generate_chunks'
167
161
  }
168
162
  }
169
- },
170
- // ── Stale tracking (meaningful in extract mode) ────────────────
171
- stale_strategy: {
172
- type: 'string',
173
- enum: ['column', 'null', 'hash'],
174
- description: 'Strategy for tracking embedding staleness when extraction is enabled. ' +
175
- 'column: embedding_stale boolean. null: set embedding to NULL. hash: md5 hash.',
176
- default: 'column'
177
- },
178
- include_stale_field: {
179
- type: 'boolean',
180
- description: 'Whether to include the embedding_stale boolean field (extract mode)',
181
- default: true
182
163
  }
183
164
  }
184
165
  },
@@ -1,14 +1,14 @@
1
1
  import type { NodeTypeDefinition } from '../types';
2
2
  /**
3
- * Image-specific preset of DataFileEmbedding.
3
+ * Image-specific preset of ProcessFileEmbedding.
4
4
  *
5
5
  * At the SQL layer, data_image_embedding delegates entirely to
6
6
  * data_file_embedding, merging image-specific defaults before forwarding.
7
- * The parameter schema here is intentionally identical to DataFileEmbedding;
7
+ * The parameter schema here is intentionally identical to ProcessFileEmbedding;
8
8
  * only the defaults differ (dimensions: 512, task: process_image_embedding,
9
9
  * mime_patterns: ['image/%']).
10
10
  *
11
11
  * Kept as a separate node type for backward compatibility — existing
12
- * blueprints that reference DataImageEmbedding continue to work unchanged.
12
+ * blueprints that reference ProcessImageEmbedding continue to work unchanged.
13
13
  */
14
- export declare const DataImageEmbedding: NodeTypeDefinition;
14
+ export declare const ProcessImageEmbedding: NodeTypeDefinition;
@@ -1,31 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataImageEmbedding = void 0;
3
+ exports.ProcessImageEmbedding = void 0;
4
4
  /**
5
- * Image-specific preset of DataFileEmbedding.
5
+ * Image-specific preset of ProcessFileEmbedding.
6
6
  *
7
7
  * At the SQL layer, data_image_embedding delegates entirely to
8
8
  * data_file_embedding, merging image-specific defaults before forwarding.
9
- * The parameter schema here is intentionally identical to DataFileEmbedding;
9
+ * The parameter schema here is intentionally identical to ProcessFileEmbedding;
10
10
  * only the defaults differ (dimensions: 512, task: process_image_embedding,
11
11
  * mime_patterns: ['image/%']).
12
12
  *
13
13
  * Kept as a separate node type for backward compatibility — existing
14
- * blueprints that reference DataImageEmbedding continue to work unchanged.
14
+ * blueprints that reference ProcessImageEmbedding continue to work unchanged.
15
15
  */
16
- exports.DataImageEmbedding = {
17
- name: 'DataImageEmbedding',
16
+ exports.ProcessImageEmbedding = {
17
+ name: 'ProcessImageEmbedding',
18
18
  slug: 'data_image_embedding',
19
- category: 'data',
19
+ category: 'process',
20
20
  display_name: 'Image Embedding',
21
- description: 'Image-specific preset of DataFileEmbedding. Delegates to DataFileEmbedding ' +
21
+ description: 'Image-specific preset of ProcessFileEmbedding. Delegates to ProcessFileEmbedding ' +
22
22
  'with image-oriented defaults: dimensions=512 (CLIP), mime_patterns=[\'image/%\'], ' +
23
23
  'task_identifier=\'process_image_embedding\', direct mode (no extraction). ' +
24
- 'Accepts all DataFileEmbedding parameters — any overrides are forwarded through.',
24
+ 'Accepts all ProcessFileEmbedding parameters — any overrides are forwarded through.',
25
25
  parameter_schema: {
26
26
  type: 'object',
27
27
  properties: {
28
- // ── Vector config (passed through to DataFileEmbedding) ──────────
28
+ // ── Vector config (passed through to ProcessFileEmbedding) ──────────
29
29
  field_name: {
30
30
  type: 'string',
31
31
  format: 'column-ref',
@@ -96,7 +96,7 @@ exports.DataImageEmbedding = {
96
96
  // ── Extraction config (optional — enables extract mode) ────────
97
97
  extraction: {
98
98
  type: 'object',
99
- description: 'Text extraction configuration. Forwarded to DataFileEmbedding. ' +
99
+ description: 'Text extraction configuration. Forwarded to ProcessFileEmbedding. ' +
100
100
  'When present, enables extract mode (e.g., OCR for images).',
101
101
  properties: {
102
102
  text_field: {
@@ -110,19 +110,13 @@ exports.DataImageEmbedding = {
110
110
  format: 'column-ref',
111
111
  description: 'JSONB field for extraction metadata',
112
112
  default: 'extracted_metadata'
113
- },
114
- status_field: {
115
- type: 'string',
116
- format: 'column-ref',
117
- description: 'Extraction lifecycle status field',
118
- default: 'extraction_status'
119
113
  }
120
114
  }
121
115
  },
122
- // ── Chunking config (optional — forwarded to DataFileEmbedding) ─
116
+ // ── Chunking config (optional — forwarded to ProcessFileEmbedding) ─
123
117
  chunks: {
124
118
  type: 'object',
125
- description: 'Chunking configuration. Forwarded to DataFileEmbedding. ' +
119
+ description: 'Chunking configuration. Forwarded to ProcessFileEmbedding. ' +
126
120
  'Only meaningful when extraction is also provided.',
127
121
  properties: {
128
122
  content_field_name: {
@@ -141,18 +135,6 @@ exports.DataImageEmbedding = {
141
135
  enqueue_chunking_job: { type: 'boolean', default: true },
142
136
  chunking_task_name: { type: 'string', default: 'generate_chunks' }
143
137
  }
144
- },
145
- // ── Stale tracking (forwarded to DataFileEmbedding) ────────────
146
- stale_strategy: {
147
- type: 'string',
148
- enum: ['column', 'null', 'hash'],
149
- description: 'Strategy for tracking embedding staleness in extract mode',
150
- default: 'column'
151
- },
152
- include_stale_field: {
153
- type: 'boolean',
154
- description: 'Whether to include the embedding_stale boolean field',
155
- default: true
156
138
  }
157
139
  }
158
140
  },
@@ -1,2 +1,2 @@
1
1
  import type { NodeTypeDefinition } from '../types';
2
- export declare const DataJobTrigger: NodeTypeDefinition;
2
+ export declare const JobTrigger: NodeTypeDefinition;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataJobTrigger = void 0;
3
+ exports.JobTrigger = void 0;
4
4
  const triggerConditionSchema = {
5
5
  type: 'object',
6
6
  description: 'A leaf condition ({field, op, value?, row?, ref?}) or a combinator ({AND, OR, NOT}).',
@@ -26,10 +26,10 @@ const triggerConditionSchema = {
26
26
  NOT: { $ref: '#/$defs/triggerCondition', description: 'Negated condition.' }
27
27
  }
28
28
  };
29
- exports.DataJobTrigger = {
30
- name: 'DataJobTrigger',
29
+ exports.JobTrigger = {
30
+ name: 'JobTrigger',
31
31
  slug: 'data_job_trigger',
32
- category: 'data',
32
+ category: 'job',
33
33
  display_name: 'Job Trigger',
34
34
  description: 'Dynamically creates PostgreSQL triggers that enqueue jobs via app_jobs.add_job() when table rows are inserted, updated, or deleted. Supports configurable payload strategies (full row, row ID, selected fields, or custom mapping), conditional firing via WHEN clauses, watched field changes, and extended job options (queue, priority, delay, max attempts).',
35
35
  parameter_schema: {
@@ -1,2 +1,2 @@
1
1
  import type { NodeTypeDefinition } from '../types';
2
- export declare const DataLimitCounter: NodeTypeDefinition;
2
+ export declare const LimitCounter: NodeTypeDefinition;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataLimitCounter = void 0;
4
- exports.DataLimitCounter = {
5
- name: 'DataLimitCounter',
3
+ exports.LimitCounter = void 0;
4
+ exports.LimitCounter = {
5
+ name: 'LimitCounter',
6
6
  slug: 'data_limit_counter',
7
- category: 'data',
7
+ category: 'limit',
8
8
  display_name: 'Limit Counter',
9
9
  description: 'Declaratively attaches limit-tracking triggers to a table. On INSERT the named limit is incremented; on DELETE it is decremented. Requires a provisioned limits_module for the target scope.',
10
10
  parameter_schema: {
package/data/index.d.ts CHANGED
@@ -2,25 +2,27 @@ export { CheckGreaterThan } from './check-greater-than';
2
2
  export { CheckLessThan } from './check-less-than';
3
3
  export { CheckNotEqual } from './check-not-equal';
4
4
  export { CheckOneOf } from './check-one-of';
5
- export { DataAggregateLimitCounter } from './data-aggregate-limit-counter';
6
- export { DataBillingMeter } from './data-billing-meter';
5
+ export { LimitAggregate } from './data-aggregate-limit-counter';
6
+ export { BillingMeter } from './data-billing-meter';
7
7
  export { DataBulk } from './data-bulk';
8
- export { DataChunks } from './data-chunks';
8
+ export { ProcessChunks } from './data-chunks';
9
9
  export { DataCompositeField } from './data-composite-field';
10
10
  export { DataDirectOwner } from './data-direct-owner';
11
11
  export { DataEntityMembership } from './data-entity-membership';
12
- export { DataFileEmbedding } from './data-file-embedding';
13
- export { DataFeatureFlag } from './data-feature-flag';
12
+ export { ProcessFileEmbedding } from './data-file-embedding';
13
+ export { LimitFeatureFlag } from './data-feature-flag';
14
14
  export { DataForceCurrentUser } from './data-force-current-user';
15
15
  export { DataId } from './data-id';
16
- export { DataImageEmbedding } from './data-image-embedding';
16
+ export { ProcessImageEmbedding } from './data-image-embedding';
17
17
  export { DataImmutableFields } from './data-immutable-fields';
18
18
  export { DataInflection } from './data-inflection';
19
19
  export { DataInheritFromParent } from './data-inherit-from-parent';
20
- export { DataJobTrigger } from './data-job-trigger';
21
- export { DataLimitCounter } from './data-limit-counter';
20
+ export { JobTrigger } from './data-job-trigger';
21
+ export { LimitCounter } from './data-limit-counter';
22
22
  export { DataJsonb } from './data-jsonb';
23
23
  export { DataOwnedFields } from './data-owned-fields';
24
+ export { ProcessExtraction } from './process-extraction';
25
+ export { ProcessImageVersions } from './process-image-versions';
24
26
  export { DataOwnershipInEntity } from './data-ownership-in-entity';
25
27
  export { DataPeoplestamps } from './data-peoplestamps';
26
28
  export { DataPublishable } from './data-publishable';
package/data/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TableUserSettings = exports.TableUserProfiles = exports.TableOrganizationSettings = exports.SearchVector = exports.SearchUnified = exports.SearchTrgm = exports.SearchSpatialAggregate = exports.SearchSpatial = exports.SearchFullText = exports.SearchBm25 = exports.DataTimestamps = exports.DataTags = exports.DataStatusField = exports.DataSoftDelete = exports.DataSlug = exports.DataRealtime = exports.DataPublishable = exports.DataPeoplestamps = exports.DataOwnershipInEntity = exports.DataOwnedFields = exports.DataJsonb = exports.DataLimitCounter = exports.DataJobTrigger = exports.DataInheritFromParent = exports.DataInflection = exports.DataImmutableFields = exports.DataImageEmbedding = exports.DataId = exports.DataForceCurrentUser = exports.DataFeatureFlag = exports.DataFileEmbedding = exports.DataEntityMembership = exports.DataDirectOwner = exports.DataCompositeField = exports.DataChunks = exports.DataBulk = exports.DataBillingMeter = exports.DataAggregateLimitCounter = exports.CheckOneOf = exports.CheckNotEqual = exports.CheckLessThan = exports.CheckGreaterThan = void 0;
3
+ exports.TableUserSettings = exports.TableUserProfiles = exports.TableOrganizationSettings = exports.SearchVector = exports.SearchUnified = exports.SearchTrgm = exports.SearchSpatialAggregate = exports.SearchSpatial = exports.SearchFullText = exports.SearchBm25 = exports.DataTimestamps = exports.DataTags = exports.DataStatusField = exports.DataSoftDelete = exports.DataSlug = exports.DataRealtime = exports.DataPublishable = exports.DataPeoplestamps = exports.DataOwnershipInEntity = exports.ProcessImageVersions = exports.ProcessExtraction = exports.DataOwnedFields = exports.DataJsonb = exports.LimitCounter = exports.JobTrigger = exports.DataInheritFromParent = exports.DataInflection = exports.DataImmutableFields = exports.ProcessImageEmbedding = exports.DataId = exports.DataForceCurrentUser = exports.LimitFeatureFlag = exports.ProcessFileEmbedding = exports.DataEntityMembership = exports.DataDirectOwner = exports.DataCompositeField = exports.ProcessChunks = exports.DataBulk = exports.BillingMeter = exports.LimitAggregate = exports.CheckOneOf = exports.CheckNotEqual = exports.CheckLessThan = exports.CheckGreaterThan = void 0;
4
4
  var check_greater_than_1 = require("./check-greater-than");
5
5
  Object.defineProperty(exports, "CheckGreaterThan", { enumerable: true, get: function () { return check_greater_than_1.CheckGreaterThan; } });
6
6
  var check_less_than_1 = require("./check-less-than");
@@ -10,13 +10,13 @@ Object.defineProperty(exports, "CheckNotEqual", { enumerable: true, get: functio
10
10
  var check_one_of_1 = require("./check-one-of");
11
11
  Object.defineProperty(exports, "CheckOneOf", { enumerable: true, get: function () { return check_one_of_1.CheckOneOf; } });
12
12
  var data_aggregate_limit_counter_1 = require("./data-aggregate-limit-counter");
13
- Object.defineProperty(exports, "DataAggregateLimitCounter", { enumerable: true, get: function () { return data_aggregate_limit_counter_1.DataAggregateLimitCounter; } });
13
+ Object.defineProperty(exports, "LimitAggregate", { enumerable: true, get: function () { return data_aggregate_limit_counter_1.LimitAggregate; } });
14
14
  var data_billing_meter_1 = require("./data-billing-meter");
15
- Object.defineProperty(exports, "DataBillingMeter", { enumerable: true, get: function () { return data_billing_meter_1.DataBillingMeter; } });
15
+ Object.defineProperty(exports, "BillingMeter", { enumerable: true, get: function () { return data_billing_meter_1.BillingMeter; } });
16
16
  var data_bulk_1 = require("./data-bulk");
17
17
  Object.defineProperty(exports, "DataBulk", { enumerable: true, get: function () { return data_bulk_1.DataBulk; } });
18
18
  var data_chunks_1 = require("./data-chunks");
19
- Object.defineProperty(exports, "DataChunks", { enumerable: true, get: function () { return data_chunks_1.DataChunks; } });
19
+ Object.defineProperty(exports, "ProcessChunks", { enumerable: true, get: function () { return data_chunks_1.ProcessChunks; } });
20
20
  var data_composite_field_1 = require("./data-composite-field");
21
21
  Object.defineProperty(exports, "DataCompositeField", { enumerable: true, get: function () { return data_composite_field_1.DataCompositeField; } });
22
22
  var data_direct_owner_1 = require("./data-direct-owner");
@@ -24,15 +24,15 @@ Object.defineProperty(exports, "DataDirectOwner", { enumerable: true, get: funct
24
24
  var data_entity_membership_1 = require("./data-entity-membership");
25
25
  Object.defineProperty(exports, "DataEntityMembership", { enumerable: true, get: function () { return data_entity_membership_1.DataEntityMembership; } });
26
26
  var data_file_embedding_1 = require("./data-file-embedding");
27
- Object.defineProperty(exports, "DataFileEmbedding", { enumerable: true, get: function () { return data_file_embedding_1.DataFileEmbedding; } });
27
+ Object.defineProperty(exports, "ProcessFileEmbedding", { enumerable: true, get: function () { return data_file_embedding_1.ProcessFileEmbedding; } });
28
28
  var data_feature_flag_1 = require("./data-feature-flag");
29
- Object.defineProperty(exports, "DataFeatureFlag", { enumerable: true, get: function () { return data_feature_flag_1.DataFeatureFlag; } });
29
+ Object.defineProperty(exports, "LimitFeatureFlag", { enumerable: true, get: function () { return data_feature_flag_1.LimitFeatureFlag; } });
30
30
  var data_force_current_user_1 = require("./data-force-current-user");
31
31
  Object.defineProperty(exports, "DataForceCurrentUser", { enumerable: true, get: function () { return data_force_current_user_1.DataForceCurrentUser; } });
32
32
  var data_id_1 = require("./data-id");
33
33
  Object.defineProperty(exports, "DataId", { enumerable: true, get: function () { return data_id_1.DataId; } });
34
34
  var data_image_embedding_1 = require("./data-image-embedding");
35
- Object.defineProperty(exports, "DataImageEmbedding", { enumerable: true, get: function () { return data_image_embedding_1.DataImageEmbedding; } });
35
+ Object.defineProperty(exports, "ProcessImageEmbedding", { enumerable: true, get: function () { return data_image_embedding_1.ProcessImageEmbedding; } });
36
36
  var data_immutable_fields_1 = require("./data-immutable-fields");
37
37
  Object.defineProperty(exports, "DataImmutableFields", { enumerable: true, get: function () { return data_immutable_fields_1.DataImmutableFields; } });
38
38
  var data_inflection_1 = require("./data-inflection");
@@ -40,13 +40,17 @@ Object.defineProperty(exports, "DataInflection", { enumerable: true, get: functi
40
40
  var data_inherit_from_parent_1 = require("./data-inherit-from-parent");
41
41
  Object.defineProperty(exports, "DataInheritFromParent", { enumerable: true, get: function () { return data_inherit_from_parent_1.DataInheritFromParent; } });
42
42
  var data_job_trigger_1 = require("./data-job-trigger");
43
- Object.defineProperty(exports, "DataJobTrigger", { enumerable: true, get: function () { return data_job_trigger_1.DataJobTrigger; } });
43
+ Object.defineProperty(exports, "JobTrigger", { enumerable: true, get: function () { return data_job_trigger_1.JobTrigger; } });
44
44
  var data_limit_counter_1 = require("./data-limit-counter");
45
- Object.defineProperty(exports, "DataLimitCounter", { enumerable: true, get: function () { return data_limit_counter_1.DataLimitCounter; } });
45
+ Object.defineProperty(exports, "LimitCounter", { enumerable: true, get: function () { return data_limit_counter_1.LimitCounter; } });
46
46
  var data_jsonb_1 = require("./data-jsonb");
47
47
  Object.defineProperty(exports, "DataJsonb", { enumerable: true, get: function () { return data_jsonb_1.DataJsonb; } });
48
48
  var data_owned_fields_1 = require("./data-owned-fields");
49
49
  Object.defineProperty(exports, "DataOwnedFields", { enumerable: true, get: function () { return data_owned_fields_1.DataOwnedFields; } });
50
+ var process_extraction_1 = require("./process-extraction");
51
+ Object.defineProperty(exports, "ProcessExtraction", { enumerable: true, get: function () { return process_extraction_1.ProcessExtraction; } });
52
+ var process_image_versions_1 = require("./process-image-versions");
53
+ Object.defineProperty(exports, "ProcessImageVersions", { enumerable: true, get: function () { return process_image_versions_1.ProcessImageVersions; } });
50
54
  var data_ownership_in_entity_1 = require("./data-ownership-in-entity");
51
55
  Object.defineProperty(exports, "DataOwnershipInEntity", { enumerable: true, get: function () { return data_ownership_in_entity_1.DataOwnershipInEntity; } });
52
56
  var data_peoplestamps_1 = require("./data-peoplestamps");
@@ -0,0 +1,14 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ /**
3
+ * File extraction processing node.
4
+ *
5
+ * Composes a JobTrigger that fires when a file transitions to status = 'uploaded'
6
+ * (or on INSERT if confirm_upload is not enabled). The trigger enqueues a
7
+ * text-extraction job that converts the file contents (PDF, DOCX, HTML, etc.)
8
+ * into plain text or markdown, storing the result in configurable output fields.
9
+ *
10
+ * The extraction worker is external (Knative function) — this node only creates
11
+ * the trigger infrastructure and output fields. The worker calls back into the
12
+ * database to write extracted text and metadata.
13
+ */
14
+ export declare const ProcessExtraction: NodeTypeDefinition;
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProcessExtraction = void 0;
4
+ /**
5
+ * File extraction processing node.
6
+ *
7
+ * Composes a JobTrigger that fires when a file transitions to status = 'uploaded'
8
+ * (or on INSERT if confirm_upload is not enabled). The trigger enqueues a
9
+ * text-extraction job that converts the file contents (PDF, DOCX, HTML, etc.)
10
+ * into plain text or markdown, storing the result in configurable output fields.
11
+ *
12
+ * The extraction worker is external (Knative function) — this node only creates
13
+ * the trigger infrastructure and output fields. The worker calls back into the
14
+ * database to write extracted text and metadata.
15
+ */
16
+ exports.ProcessExtraction = {
17
+ name: 'ProcessExtraction',
18
+ slug: 'process_extraction',
19
+ category: 'process',
20
+ display_name: 'File Extraction',
21
+ description: 'Creates extraction output fields and a job trigger for file text extraction. ' +
22
+ 'Fires when a file is uploaded (status = \'uploaded\') or on INSERT. ' +
23
+ 'The external worker extracts text/metadata from the file (PDF, DOCX, HTML, etc.) ' +
24
+ 'and writes the result back to the configured output fields. ' +
25
+ 'Typically used upstream of ProcessFileEmbedding or ProcessChunks.',
26
+ parameter_schema: {
27
+ type: 'object',
28
+ properties: {
29
+ // ── Output fields ─────────────────────────────────────────────
30
+ text_field: {
31
+ type: 'string',
32
+ format: 'column-ref',
33
+ description: 'Field to store extracted text/markdown',
34
+ default: 'extracted_text'
35
+ },
36
+ metadata_field: {
37
+ type: 'string',
38
+ format: 'column-ref',
39
+ description: 'JSONB field for extraction metadata (page count, language, etc.)',
40
+ default: 'extracted_metadata'
41
+ },
42
+ // ── MIME scoping ──────────────────────────────────────────────
43
+ mime_patterns: {
44
+ type: 'array',
45
+ items: { type: 'string' },
46
+ description: 'MIME type LIKE patterns to match. Multiple patterns are OR\'d together. ' +
47
+ 'Examples: [\'application/pdf\', \'text/%\'], [\'application/vnd.openxmlformats%\'].',
48
+ default: ['application/pdf', 'text/%']
49
+ },
50
+ // ── Job routing ───────────────────────────────────────────────
51
+ task_identifier: {
52
+ type: 'string',
53
+ description: 'Job task identifier for the extraction worker',
54
+ default: 'extract_file_text'
55
+ },
56
+ events: {
57
+ type: 'array',
58
+ items: { type: 'string', enum: ['INSERT', 'UPDATE'] },
59
+ description: 'Trigger events that fire the job',
60
+ default: ['INSERT']
61
+ },
62
+ payload_custom: {
63
+ type: 'object',
64
+ additionalProperties: { type: 'string', format: 'column-ref' },
65
+ description: 'Custom payload key-to-column mapping for the job trigger',
66
+ default: {
67
+ file_id: 'id',
68
+ key: 'key',
69
+ mime_type: 'mime_type',
70
+ bucket_id: 'bucket_id'
71
+ }
72
+ },
73
+ trigger_conditions: {
74
+ description: 'Additional compound conditions beyond MIME filtering. ' +
75
+ 'Merged with the auto-generated MIME conditions via AND. ' +
76
+ 'Use this to add status checks (e.g., status = \'uploaded\').',
77
+ 'x-codegen-type': 'TriggerCondition | TriggerCondition[]',
78
+ oneOf: [
79
+ { $ref: '#/$defs/triggerCondition' },
80
+ { type: 'array', items: { $ref: '#/$defs/triggerCondition' } }
81
+ ]
82
+ },
83
+ // ── Job options ───────────────────────────────────────────────
84
+ queue_name: {
85
+ type: 'string',
86
+ description: 'Job queue name for extraction tasks',
87
+ default: 'extraction'
88
+ },
89
+ max_attempts: {
90
+ type: 'integer',
91
+ description: 'Maximum number of retry attempts',
92
+ default: 5
93
+ },
94
+ priority: {
95
+ type: 'integer',
96
+ description: 'Job priority (lower = higher priority)',
97
+ default: 0
98
+ }
99
+ }
100
+ },
101
+ tags: [
102
+ 'extraction',
103
+ 'files',
104
+ 'processing',
105
+ 'jobs',
106
+ 'text'
107
+ ]
108
+ };
@@ -0,0 +1,15 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ /**
3
+ * Image version processing node.
4
+ *
5
+ * Composes a JobTrigger that fires when an image file transitions to
6
+ * status = 'uploaded' (or on INSERT if confirm_upload is not enabled).
7
+ * The trigger enqueues an image-processing job that generates resized,
8
+ * cropped, or reformatted variants of the source image.
9
+ *
10
+ * The image processing worker is external (Knative function) — this node
11
+ * only creates the trigger infrastructure. The worker generates the variants
12
+ * and writes them back to the storage system as new file records linked to
13
+ * the source file.
14
+ */
15
+ export declare const ProcessImageVersions: NodeTypeDefinition;
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProcessImageVersions = void 0;
4
+ /**
5
+ * Image version processing node.
6
+ *
7
+ * Composes a JobTrigger that fires when an image file transitions to
8
+ * status = 'uploaded' (or on INSERT if confirm_upload is not enabled).
9
+ * The trigger enqueues an image-processing job that generates resized,
10
+ * cropped, or reformatted variants of the source image.
11
+ *
12
+ * The image processing worker is external (Knative function) — this node
13
+ * only creates the trigger infrastructure. The worker generates the variants
14
+ * and writes them back to the storage system as new file records linked to
15
+ * the source file.
16
+ */
17
+ exports.ProcessImageVersions = {
18
+ name: 'ProcessImageVersions',
19
+ slug: 'process_image_versions',
20
+ category: 'process',
21
+ display_name: 'Image Versions',
22
+ description: 'Creates a job trigger for image variant generation. ' +
23
+ 'Fires when an image file is uploaded (status = \'uploaded\') or on INSERT. ' +
24
+ 'The external worker generates resized, cropped, or reformatted versions ' +
25
+ '(thumbnails, previews, WebP conversions, etc.) and stores them as new ' +
26
+ 'file records linked to the source image.',
27
+ parameter_schema: {
28
+ type: 'object',
29
+ required: ['versions'],
30
+ properties: {
31
+ // ── Version definitions ───────────────────────────────────────
32
+ versions: {
33
+ type: 'array',
34
+ items: {
35
+ type: 'object',
36
+ properties: {
37
+ name: {
38
+ type: 'string',
39
+ description: 'Version identifier (e.g., "thumb", "preview", "hero")'
40
+ },
41
+ width: {
42
+ type: 'integer',
43
+ description: 'Target width in pixels'
44
+ },
45
+ height: {
46
+ type: 'integer',
47
+ description: 'Target height in pixels'
48
+ },
49
+ fit: {
50
+ type: 'string',
51
+ enum: ['cover', 'contain', 'fill', 'inside', 'outside'],
52
+ description: 'Resize fitting strategy',
53
+ default: 'cover'
54
+ },
55
+ format: {
56
+ type: 'string',
57
+ enum: ['jpeg', 'png', 'webp', 'avif'],
58
+ description: 'Output image format',
59
+ default: 'webp'
60
+ },
61
+ quality: {
62
+ type: 'integer',
63
+ description: 'Output quality (1-100)',
64
+ default: 80
65
+ }
66
+ },
67
+ required: ['name']
68
+ },
69
+ description: 'Array of version definitions. Each version specifies dimensions, ' +
70
+ 'format, and quality for a generated image variant. ' +
71
+ 'Required — the blueprint must explicitly define what variants to generate.',
72
+ minItems: 1
73
+ },
74
+ // ── MIME scoping ──────────────────────────────────────────────
75
+ mime_patterns: {
76
+ type: 'array',
77
+ items: { type: 'string' },
78
+ description: 'MIME type LIKE patterns to match. Defaults to all image types.',
79
+ default: ['image/%']
80
+ },
81
+ // ── Job routing ───────────────────────────────────────────────
82
+ task_identifier: {
83
+ type: 'string',
84
+ description: 'Job task identifier for the image processing worker',
85
+ default: 'process_image_versions'
86
+ },
87
+ events: {
88
+ type: 'array',
89
+ items: { type: 'string', enum: ['INSERT', 'UPDATE'] },
90
+ description: 'Trigger events that fire the job',
91
+ default: ['INSERT']
92
+ },
93
+ payload_custom: {
94
+ type: 'object',
95
+ additionalProperties: { type: 'string', format: 'column-ref' },
96
+ description: 'Custom payload key-to-column mapping for the job trigger',
97
+ default: {
98
+ file_id: 'id',
99
+ key: 'key',
100
+ mime_type: 'mime_type',
101
+ bucket_id: 'bucket_id'
102
+ }
103
+ },
104
+ trigger_conditions: {
105
+ description: 'Additional compound conditions beyond MIME filtering. ' +
106
+ 'Merged with the auto-generated MIME conditions via AND.',
107
+ 'x-codegen-type': 'TriggerCondition | TriggerCondition[]',
108
+ oneOf: [
109
+ { $ref: '#/$defs/triggerCondition' },
110
+ { type: 'array', items: { $ref: '#/$defs/triggerCondition' } }
111
+ ]
112
+ },
113
+ // ── Job options ───────────────────────────────────────────────
114
+ queue_name: {
115
+ type: 'string',
116
+ description: 'Job queue name for image processing tasks',
117
+ default: 'image_processing'
118
+ },
119
+ max_attempts: {
120
+ type: 'integer',
121
+ description: 'Maximum number of retry attempts',
122
+ default: 5
123
+ },
124
+ priority: {
125
+ type: 'integer',
126
+ description: 'Job priority (lower = higher priority)',
127
+ default: 0
128
+ }
129
+ }
130
+ },
131
+ tags: [
132
+ 'images',
133
+ 'processing',
134
+ 'jobs',
135
+ 'resize',
136
+ 'thumbnails',
137
+ 'files'
138
+ ]
139
+ };