@loxtep/sdk 0.9.30 → 0.9.32

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 (52) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -0
  3. package/dist/cli/commands/bots-cmd.d.ts +18 -0
  4. package/dist/cli/commands/bots-cmd.d.ts.map +1 -0
  5. package/dist/cli/commands/bots-cmd.js +85 -0
  6. package/dist/cli/commands/bots-cmd.js.map +1 -0
  7. package/dist/cli/help.d.ts.map +1 -1
  8. package/dist/cli/help.js +2 -0
  9. package/dist/cli/help.js.map +1 -1
  10. package/dist/cli/index.d.ts.map +1 -1
  11. package/dist/cli/index.js +89 -0
  12. package/dist/cli/index.js.map +1 -1
  13. package/dist/client/custom-bots.d.ts +33 -0
  14. package/dist/client/custom-bots.d.ts.map +1 -0
  15. package/dist/client/custom-bots.js +43 -0
  16. package/dist/client/custom-bots.js.map +1 -0
  17. package/dist/client/instances-types.d.ts +0 -1
  18. package/dist/client/instances-types.d.ts.map +1 -1
  19. package/dist/client/loxtep-client.d.ts.map +1 -1
  20. package/dist/client/loxtep-client.js +3 -0
  21. package/dist/client/loxtep-client.js.map +1 -1
  22. package/dist/client/workspace.d.ts +3 -0
  23. package/dist/client/workspace.d.ts.map +1 -1
  24. package/dist/client/workspace.js +1 -0
  25. package/dist/client/workspace.js.map +1 -1
  26. package/dist/lib/entity-json-schemas/types.d.ts +9 -0
  27. package/dist/lib/entity-json-schemas/types.d.ts.map +1 -1
  28. package/dist/lib/entity-json-schemas/types.js +14 -0
  29. package/dist/lib/entity-json-schemas/types.js.map +1 -1
  30. package/dist/lib/workspace-lint.d.ts +7 -0
  31. package/dist/lib/workspace-lint.d.ts.map +1 -1
  32. package/dist/lib/workspace-lint.js +68 -25
  33. package/dist/lib/workspace-lint.js.map +1 -1
  34. package/package.json +2 -1
  35. package/schemas/entity-json-schemas/SCHEMA_SYNC.md +10 -11
  36. package/schemas/entity-json-schemas/SOURCE.json +24 -0
  37. package/schemas/entity-json-schemas/agent.json +97 -0
  38. package/schemas/entity-json-schemas/approval.json +92 -0
  39. package/schemas/entity-json-schemas/connection.json +92 -4
  40. package/schemas/entity-json-schemas/connector.json +2 -0
  41. package/schemas/entity-json-schemas/container.json +1 -1
  42. package/schemas/entity-json-schemas/contract.json +10 -0
  43. package/schemas/entity-json-schemas/data-product.json +18 -1
  44. package/schemas/entity-json-schemas/domain.json +15 -0
  45. package/schemas/entity-json-schemas/export.json +26 -0
  46. package/schemas/entity-json-schemas/odps-product.json +1 -1
  47. package/schemas/entity-json-schemas/projection.json +94 -0
  48. package/schemas/entity-json-schemas/quality-rule.json +10 -0
  49. package/schemas/entity-json-schemas/schema.json +10 -0
  50. package/schemas/entity-json-schemas/transformation.json +11 -3
  51. package/schemas/entity-json-schemas/validation.json +8 -2
  52. package/schemas/entity-json-schemas/workflow.json +58 -3
@@ -39,12 +39,12 @@
39
39
  "upstream_entity_id": {
40
40
  "type": ["string", "null"],
41
41
  "format": "uuid",
42
- "description": "Reference to the upstream entity in the flow graph (connection or previous transformation). Null only when this is the first transformation directly after the trigger connection."
42
+ "description": "Reference to the upstream entity in the flow graph (connection, previous transformation, or the Records data product Studio inserts after a REST trigger). Null only when this is the first transformation directly after the trigger connection."
43
43
  },
44
44
  "upstream_entity_type": {
45
45
  "type": ["string", "null"],
46
- "enum": ["connections", "transformations", null],
47
- "description": "Entity type of the upstream entity (connections or transformations)"
46
+ "enum": ["connections", "transformations", "data-products", null],
47
+ "description": "Entity type of the upstream entity (connections, transformations, or data-products)"
48
48
  },
49
49
  "name": {
50
50
  "type": "string",
@@ -67,6 +67,7 @@
67
67
  "drop_duplicates",
68
68
  "flatten",
69
69
  "explode_array",
70
+ "zip_arrays",
70
71
  "array_to_column",
71
72
  "capitalize",
72
73
  "format_timestamp",
@@ -85,6 +86,7 @@
85
86
  "batch",
86
87
  "delay",
87
88
  "split",
89
+ "route",
88
90
  "execute_code_function",
89
91
  "crypto",
90
92
  "formatter",
@@ -112,6 +114,12 @@
112
114
  {
113
115
  "field": "name",
114
116
  "case": "upper"
117
+ },
118
+ {
119
+ "source_path": "daily",
120
+ "index_field": "time",
121
+ "index_as": "obs_date",
122
+ "carry_fields": ["latitude", "longitude", "elevation", "timezone"]
115
123
  }
116
124
  ]
117
125
  },
@@ -40,11 +40,17 @@
40
40
  "upstream_entity_id": {
41
41
  "type": ["string", "null"],
42
42
  "format": "uuid",
43
- "description": "Reference to the upstream entity this validation applies to (connection, transformation, or data product)"
43
+ "description": "Reference to the upstream entity this validation applies to (connection, transformation, validation, or data product)"
44
44
  },
45
45
  "upstream_entity_type": {
46
46
  "type": ["string", "null"],
47
- "enum": ["connections", "transformations", "data-products", null],
47
+ "enum": [
48
+ "connections",
49
+ "transformations",
50
+ "validations",
51
+ "data-products",
52
+ null
53
+ ],
48
54
  "description": "Entity type of the upstream entity"
49
55
  },
50
56
  "name": {
@@ -69,14 +69,19 @@
69
69
  "type": "string",
70
70
  "description": "Unique identifier for the segment"
71
71
  },
72
- "name": { "type": "string", "description": "Display name" },
72
+ "name": {
73
+ "type": "string",
74
+ "description": "Display name"
75
+ },
73
76
  "description": {
74
77
  "type": ["string", "null"],
75
78
  "description": "Optional description"
76
79
  },
77
80
  "node_ids": {
78
81
  "type": "array",
79
- "items": { "type": "string" },
82
+ "items": {
83
+ "type": "string"
84
+ },
80
85
  "description": "Entity IDs of nodes in this segment"
81
86
  },
82
87
  "color": {
@@ -103,6 +108,37 @@
103
108
  "type": ["string", "null"],
104
109
  "format": "uuid",
105
110
  "description": "Connector ID for connector-driven triggers"
111
+ },
112
+ "query_trigger": {
113
+ "type": ["object", "null"],
114
+ "description": "D14 (docs/system-spec/11-delivery-layer-design.md): a saved query against a data product, run on a schedule or on demand, targeting a data-products node (materialize) or an outbound connections node (deliver) chosen separately at build time. Not a subsystem \u2014 a trigger type, like event/schedule/connector above.",
115
+ "properties": {
116
+ "data_product_id": {
117
+ "type": "string",
118
+ "format": "uuid",
119
+ "description": "An existing data product \u2014 never a raw table."
120
+ },
121
+ "query": {
122
+ "type": "string",
123
+ "minLength": 1,
124
+ "description": "The saved SQL query run against data_product_id."
125
+ },
126
+ "schedule": {
127
+ "type": ["string", "null"],
128
+ "description": "Cron or interval; omit for on-demand (run_trigger / MCP-invoked)."
129
+ },
130
+ "primary_key": {
131
+ "type": "array",
132
+ "description": "Source columns concatenated into lx__id before queue write (business identity).",
133
+ "items": {
134
+ "type": "string",
135
+ "minLength": 1
136
+ },
137
+ "minItems": 1
138
+ }
139
+ },
140
+ "required": ["data_product_id", "query", "primary_key"],
141
+ "additionalProperties": false
106
142
  }
107
143
  },
108
144
  "additionalProperties": false
@@ -119,6 +155,20 @@
119
155
  "type": ["integer", "null"],
120
156
  "minimum": 1,
121
157
  "description": "Number of events to process per batch"
158
+ },
159
+ "activation": {
160
+ "type": ["string", "null"],
161
+ "enum": ["schedule", "event", "request", null],
162
+ "description": "Explicit activation designation for a delivery flow's head (D7, docs/system-spec/11-delivery-layer-design.md). 'request' marks a consumer-initiated delivery flow: no schedule, no event subscription \u2014 the flow is activated by an inbound request against a protocol-adapter registration (route/listener + policy binding) rather than a queue-consumer bot. Distinguishes a deliberately request-activated flow from one whose trigger was simply never configured."
163
+ },
164
+ "data_product_id": {
165
+ "type": "string",
166
+ "format": "uuid",
167
+ "description": "Data product this delivery flow serves. Required in practice when activation is 'request' (protocol-adapter registration) or when a schedule is set (scheduled consumption). Optional at schema level so existing schedule-free event/queue flows remain valid."
168
+ },
169
+ "connector_type": {
170
+ "type": "string",
171
+ "description": "Protocol/connector type for a request-activated delivery flow (e.g. sql-query). Codegen falls back to 'unknown' when omitted."
122
172
  }
123
173
  },
124
174
  "additionalProperties": false
@@ -148,7 +198,7 @@
148
198
  },
149
199
  "status": {
150
200
  "type": "string",
151
- "enum": ["active", "paused", "error", "pending", "inactive"],
201
+ "enum": ["active", "paused", "error", "pending", "inactive", "archived"],
152
202
  "description": "Workflow status"
153
203
  },
154
204
  "metrics": {
@@ -187,6 +237,11 @@
187
237
  "type": ["string", "null"],
188
238
  "format": "date-time",
189
239
  "description": "ISO 8601 timestamp when workflow was deleted (soft delete)"
240
+ },
241
+ "archived_at": {
242
+ "type": ["string", "null"],
243
+ "format": "date-time",
244
+ "description": "ISO 8601 timestamp when workflow was archived (catalog preserved, runtime bots retired)"
190
245
  }
191
246
  },
192
247
  "additionalProperties": false