@appaflytech/zeyrek-ai-mcp 0.0.1

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 (88) hide show
  1. package/.env.example +46 -0
  2. package/README.md +260 -0
  3. package/dist/config.js +128 -0
  4. package/dist/index.js +88 -0
  5. package/dist/knowledge/componentCatalog.js +438 -0
  6. package/dist/knowledge/componentEvents.js +164 -0
  7. package/dist/knowledge/coverage.js +60 -0
  8. package/dist/knowledge/normalize.js +1309 -0
  9. package/dist/knowledge/outlines.js +167 -0
  10. package/dist/knowledge/policy.js +44 -0
  11. package/dist/knowledge/reservedTables.js +75 -0
  12. package/dist/knowledge/rules.js +1725 -0
  13. package/dist/observability/trace.js +337 -0
  14. package/dist/platform/errors.js +132 -0
  15. package/dist/platform/http.js +169 -0
  16. package/dist/platform/responses.js +94 -0
  17. package/dist/platform/token.js +79 -0
  18. package/dist/resources/examples/entity-pair-m2m.json +105 -0
  19. package/dist/resources/examples/flow-list-to-form.json +65 -0
  20. package/dist/resources/examples/flow-load-table.json +178 -0
  21. package/dist/resources/examples/microservice-table-list.json +49 -0
  22. package/dist/resources/examples/middleware-authenticate.json +194 -0
  23. package/dist/resources/examples/page-detail-profile.json +95 -0
  24. package/dist/resources/examples/page-dynamic-form.json +221 -0
  25. package/dist/resources/examples/page-form-upsert.json +279 -0
  26. package/dist/resources/examples/page-html-embed.json +106 -0
  27. package/dist/resources/examples/page-sign-in.json +194 -0
  28. package/dist/resources/examples/workflow-basic.json +94 -0
  29. package/dist/resources/guides/component.md +108 -0
  30. package/dist/resources/guides/entity.md +348 -0
  31. package/dist/resources/guides/expressions.md +139 -0
  32. package/dist/resources/guides/getting-started.md +109 -0
  33. package/dist/resources/guides/html.md +106 -0
  34. package/dist/resources/guides/microservice.md +313 -0
  35. package/dist/resources/guides/middleware.md +271 -0
  36. package/dist/resources/guides/modify-existing.md +35 -0
  37. package/dist/resources/guides/page.md +1574 -0
  38. package/dist/resources/guides/view.md +89 -0
  39. package/dist/resources/guides/workflow.md +359 -0
  40. package/dist/resources/knowledge.js +44 -0
  41. package/dist/resources/schemas/CreateDatasourceCommand.json +54 -0
  42. package/dist/resources/schemas/CreateDiscoveredEntitiesCommand.json +133 -0
  43. package/dist/resources/schemas/CreateEntityCommand.json +387 -0
  44. package/dist/resources/schemas/CreateMicroserviceCommand.json +528 -0
  45. package/dist/resources/schemas/CreateQueryCommand.json +43 -0
  46. package/dist/resources/schemas/CreateViewCommand.json +158 -0
  47. package/dist/resources/schemas/CreateWorkflowCommand.json +1719 -0
  48. package/dist/resources/schemas/Filter.json +124 -0
  49. package/dist/resources/schemas/GetRowsQuery.json +122 -0
  50. package/dist/resources/schemas/PreviewMicroserviceCommand.json +565 -0
  51. package/dist/resources/schemas/PreviewQueryCommand.json +74 -0
  52. package/dist/resources/schemas/PreviewWorkflowCommand.json +981 -0
  53. package/dist/resources/schemas/StepDto.json +900 -0
  54. package/dist/resources/schemas/UpdateDatasourceCommand.json +58 -0
  55. package/dist/resources/schemas/UpdateEntityCommand.json +679 -0
  56. package/dist/resources/schemas/UpdateMicroserviceCommand.json +512 -0
  57. package/dist/resources/schemas/UpdateQueryCommand.json +86 -0
  58. package/dist/resources/schemas/UpdateViewCommand.json +153 -0
  59. package/dist/resources/schemas/UpdateWorkflowCommand.json +1719 -0
  60. package/dist/resources/schemas.js +40 -0
  61. package/dist/server.js +63 -0
  62. package/dist/tools/access.js +27 -0
  63. package/dist/tools/applications.js +59 -0
  64. package/dist/tools/automations.js +103 -0
  65. package/dist/tools/common.js +18 -0
  66. package/dist/tools/components.js +280 -0
  67. package/dist/tools/datasources.js +82 -0
  68. package/dist/tools/dependencies.js +17 -0
  69. package/dist/tools/deployments.js +17 -0
  70. package/dist/tools/dtos.js +54 -0
  71. package/dist/tools/entities.js +166 -0
  72. package/dist/tools/files.js +138 -0
  73. package/dist/tools/flows.js +226 -0
  74. package/dist/tools/folders.js +51 -0
  75. package/dist/tools/layouts.js +105 -0
  76. package/dist/tools/microservices.js +198 -0
  77. package/dist/tools/organizations.js +65 -0
  78. package/dist/tools/pages.js +597 -0
  79. package/dist/tools/platformInfo.js +44 -0
  80. package/dist/tools/projects.js +152 -0
  81. package/dist/tools/queries.js +48 -0
  82. package/dist/tools/rows.js +115 -0
  83. package/dist/tools/screens.js +97 -0
  84. package/dist/tools/templates.js +65 -0
  85. package/dist/tools/variables.js +94 -0
  86. package/dist/tools/views.js +58 -0
  87. package/dist/tools/workflows.js +196 -0
  88. package/package.json +49 -0
@@ -0,0 +1,512 @@
1
+ {
2
+ "schema": {
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "format": "uuid"
8
+ },
9
+ "name": {
10
+ "type": "string",
11
+ "nullable": true
12
+ },
13
+ "slug": {
14
+ "type": "string",
15
+ "nullable": true
16
+ },
17
+ "url": {
18
+ "type": "string",
19
+ "nullable": true
20
+ },
21
+ "httpMethod": {
22
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.HttpMethod"
23
+ },
24
+ "queryId": {
25
+ "type": "string",
26
+ "format": "uuid",
27
+ "nullable": true
28
+ },
29
+ "typeParameters": {
30
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Dtos.MicroserviceTypeSchema"
31
+ },
32
+ "entityId": {
33
+ "type": "string",
34
+ "format": "uuid",
35
+ "nullable": true
36
+ },
37
+ "source": {
38
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.MicroserviceSource"
39
+ },
40
+ "sourceParameters": {
41
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Dtos.MicroserviceSourceSchema"
42
+ },
43
+ "workflowId": {
44
+ "type": "string",
45
+ "format": "uuid",
46
+ "nullable": true
47
+ },
48
+ "viewId": {
49
+ "type": "string",
50
+ "format": "uuid",
51
+ "nullable": true
52
+ },
53
+ "returnType": {
54
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Views.Search.ViewReturnType"
55
+ },
56
+ "previewParameters": {
57
+ "type": "object",
58
+ "additionalProperties": {
59
+ "nullable": true
60
+ },
61
+ "nullable": true
62
+ },
63
+ "roleIds": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "string",
67
+ "format": "uuid"
68
+ },
69
+ "nullable": true
70
+ },
71
+ "middlewareIds": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "string",
75
+ "format": "uuid"
76
+ },
77
+ "nullable": true
78
+ },
79
+ "validations": {
80
+ "type": "array",
81
+ "items": {
82
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Shared.Validations.ValidationModel"
83
+ },
84
+ "nullable": true
85
+ },
86
+ "enableDynamicFilters": {
87
+ "type": "boolean"
88
+ },
89
+ "enableExport": {
90
+ "type": "boolean"
91
+ }
92
+ },
93
+ "additionalProperties": false
94
+ },
95
+ "components": {
96
+ "schemas": {
97
+ "NgApps.Domain.Contexts.Studio.Microservices.HttpMethod": {
98
+ "enum": [
99
+ "post",
100
+ "get",
101
+ "delete",
102
+ "put"
103
+ ],
104
+ "type": "string",
105
+ "format": ""
106
+ },
107
+ "NgApps.Domain.Contexts.Studio.Microservices.Dtos.MicroserviceTypeSchema": {
108
+ "type": "object",
109
+ "properties": {
110
+ "cronExpression": {
111
+ "type": "string",
112
+ "nullable": true
113
+ }
114
+ },
115
+ "additionalProperties": false
116
+ },
117
+ "NgApps.Domain.Contexts.Studio.Microservices.MicroserviceSource": {
118
+ "enum": [
119
+ "query",
120
+ "table",
121
+ "workflow",
122
+ "view"
123
+ ],
124
+ "type": "string",
125
+ "format": ""
126
+ },
127
+ "NgApps.Domain.Contexts.Studio.Microservices.Dtos.MicroserviceSourceSchema": {
128
+ "type": "object",
129
+ "properties": {
130
+ "operation": {
131
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.MicroserviceTableOperation"
132
+ },
133
+ "entityId": {
134
+ "type": "string",
135
+ "format": "uuid"
136
+ },
137
+ "alias": {
138
+ "type": "string",
139
+ "nullable": true
140
+ },
141
+ "isSingle": {
142
+ "type": "boolean"
143
+ },
144
+ "joins": {
145
+ "type": "array",
146
+ "items": {
147
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableJoin"
148
+ },
149
+ "nullable": true
150
+ },
151
+ "filters": {
152
+ "type": "array",
153
+ "items": {
154
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableFilter"
155
+ },
156
+ "nullable": true
157
+ },
158
+ "selectFields": {
159
+ "type": "array",
160
+ "items": {
161
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableSelect"
162
+ },
163
+ "nullable": true
164
+ },
165
+ "fields": {
166
+ "type": "array",
167
+ "items": {
168
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableField"
169
+ },
170
+ "nullable": true
171
+ },
172
+ "returnFields": {
173
+ "type": "array",
174
+ "items": {
175
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableSelect"
176
+ },
177
+ "nullable": true
178
+ },
179
+ "sort": {
180
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableSort"
181
+ },
182
+ "limit": {
183
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableLimit"
184
+ },
185
+ "includeHistory": {
186
+ "type": "boolean"
187
+ },
188
+ "requestedHistoryType": {
189
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.AuditTrails.AuditTrailType"
190
+ },
191
+ "customParameters": {
192
+ "type": "array",
193
+ "items": {
194
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Flow.Workflows.StepCustomParameter"
195
+ },
196
+ "nullable": true
197
+ }
198
+ },
199
+ "additionalProperties": false
200
+ },
201
+ "NgApps.Domain.Contexts.Datastore.Views.Search.ViewReturnType": {
202
+ "enum": [
203
+ "grouped",
204
+ "flat"
205
+ ],
206
+ "type": "string",
207
+ "format": ""
208
+ },
209
+ "NgApps.Domain.Contexts.Shared.Validations.ValidationModel": {
210
+ "type": "object",
211
+ "properties": {
212
+ "referenceId": {
213
+ "type": "string",
214
+ "format": "uuid"
215
+ },
216
+ "type": {
217
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Shared.Validations.ValidationType"
218
+ },
219
+ "message": {
220
+ "type": "string",
221
+ "nullable": true
222
+ },
223
+ "value": {
224
+ "nullable": true
225
+ },
226
+ "isDefault": {
227
+ "type": "boolean"
228
+ },
229
+ "isActive": {
230
+ "type": "boolean"
231
+ }
232
+ },
233
+ "additionalProperties": false
234
+ },
235
+ "NgApps.Domain.Contexts.Studio.Microservices.MicroserviceTableOperation": {
236
+ "enum": [
237
+ "create",
238
+ "update",
239
+ "get",
240
+ "delete",
241
+ "upsert",
242
+ "count"
243
+ ],
244
+ "type": "string",
245
+ "format": ""
246
+ },
247
+ "NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableJoin": {
248
+ "type": "object",
249
+ "properties": {
250
+ "alias": {
251
+ "type": "string",
252
+ "nullable": true
253
+ },
254
+ "entityId": {
255
+ "type": "string",
256
+ "format": "uuid"
257
+ },
258
+ "fieldId": {
259
+ "type": "string",
260
+ "format": "uuid"
261
+ },
262
+ "joins": {
263
+ "type": "array",
264
+ "items": {
265
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableJoin"
266
+ },
267
+ "nullable": true
268
+ },
269
+ "path": {
270
+ "type": "string",
271
+ "nullable": true
272
+ }
273
+ },
274
+ "additionalProperties": false
275
+ },
276
+ "NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableFilter": {
277
+ "type": "object",
278
+ "properties": {
279
+ "alias": {
280
+ "type": "string",
281
+ "nullable": true
282
+ },
283
+ "fieldId": {
284
+ "type": "string",
285
+ "format": "uuid",
286
+ "nullable": true
287
+ },
288
+ "operator": {
289
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.OperatorType"
290
+ },
291
+ "source": {
292
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.ParameterSource"
293
+ },
294
+ "value": {
295
+ "nullable": true
296
+ },
297
+ "filterType": {
298
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.FilterType"
299
+ },
300
+ "conditionType": {
301
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.ConditionType"
302
+ },
303
+ "isRequired": {
304
+ "type": "boolean"
305
+ },
306
+ "children": {
307
+ "type": "array",
308
+ "items": {
309
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableFilter"
310
+ },
311
+ "nullable": true
312
+ },
313
+ "order": {
314
+ "type": "integer",
315
+ "format": "int32"
316
+ },
317
+ "path": {
318
+ "type": "string",
319
+ "nullable": true
320
+ }
321
+ },
322
+ "additionalProperties": false
323
+ },
324
+ "NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableSelect": {
325
+ "type": "object",
326
+ "properties": {
327
+ "alias": {
328
+ "type": "string",
329
+ "nullable": true
330
+ },
331
+ "fieldId": {
332
+ "type": "string",
333
+ "format": "uuid"
334
+ },
335
+ "path": {
336
+ "type": "string",
337
+ "nullable": true
338
+ },
339
+ "fieldSlug": {
340
+ "type": "string",
341
+ "nullable": true
342
+ }
343
+ },
344
+ "additionalProperties": false
345
+ },
346
+ "NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableField": {
347
+ "type": "object",
348
+ "properties": {
349
+ "fieldId": {
350
+ "type": "string",
351
+ "format": "uuid"
352
+ },
353
+ "source": {
354
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.ParameterSource"
355
+ },
356
+ "value": {
357
+ "nullable": true
358
+ },
359
+ "folderId": {
360
+ "type": "string",
361
+ "format": "uuid",
362
+ "nullable": true
363
+ },
364
+ "order": {
365
+ "type": "integer",
366
+ "format": "int32"
367
+ }
368
+ },
369
+ "additionalProperties": false
370
+ },
371
+ "NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableSort": {
372
+ "type": "object",
373
+ "properties": {
374
+ "name": {
375
+ "type": "string",
376
+ "nullable": true
377
+ },
378
+ "type": {
379
+ "type": "string",
380
+ "nullable": true
381
+ },
382
+ "sortValue": {
383
+ "nullable": true
384
+ },
385
+ "typeValue": {
386
+ "nullable": true
387
+ },
388
+ "source": {
389
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.ParameterSource"
390
+ }
391
+ },
392
+ "additionalProperties": false
393
+ },
394
+ "NgApps.Domain.Contexts.Studio.Microservices.Parameters.TableLimit": {
395
+ "type": "object",
396
+ "properties": {
397
+ "name": {
398
+ "type": "string",
399
+ "nullable": true
400
+ },
401
+ "offset": {
402
+ "type": "string",
403
+ "nullable": true
404
+ },
405
+ "limitValue": {
406
+ "nullable": true
407
+ },
408
+ "offsetValue": {
409
+ "nullable": true
410
+ },
411
+ "source": {
412
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Studio.Microservices.ParameterSource"
413
+ }
414
+ },
415
+ "additionalProperties": false
416
+ },
417
+ "NgApps.Domain.Contexts.Datastore.AuditTrails.AuditTrailType": {
418
+ "enum": [
419
+ "simple",
420
+ "basic",
421
+ "detailed"
422
+ ],
423
+ "type": "string",
424
+ "format": ""
425
+ },
426
+ "NgApps.Domain.Contexts.Flow.Workflows.StepCustomParameter": {
427
+ "type": "object",
428
+ "properties": {
429
+ "name": {
430
+ "type": "string",
431
+ "nullable": true
432
+ },
433
+ "value": {
434
+ "type": "string",
435
+ "nullable": true
436
+ },
437
+ "order": {
438
+ "type": "integer",
439
+ "format": "int32"
440
+ }
441
+ },
442
+ "additionalProperties": false
443
+ },
444
+ "NgApps.Domain.Contexts.Shared.Validations.ValidationType": {
445
+ "enum": [
446
+ "regex",
447
+ "email",
448
+ "required",
449
+ "max-length",
450
+ "min-length",
451
+ "max-value",
452
+ "min-value",
453
+ "value-options",
454
+ "pattern",
455
+ "minLength",
456
+ "maxLength",
457
+ "max",
458
+ "min"
459
+ ],
460
+ "type": "string",
461
+ "format": ""
462
+ },
463
+ "NgApps.Domain.Contexts.Datastore.Entities.OperatorType": {
464
+ "enum": [
465
+ "eq",
466
+ "neq",
467
+ "lt",
468
+ "lte",
469
+ "gt",
470
+ "gte",
471
+ "contains",
472
+ "icontains",
473
+ "in",
474
+ "notin",
475
+ "startswith",
476
+ "endswith",
477
+ "istartswith",
478
+ "iendswith"
479
+ ],
480
+ "type": "string",
481
+ "format": ""
482
+ },
483
+ "NgApps.Domain.Contexts.Studio.Microservices.ParameterSource": {
484
+ "enum": [
485
+ "body",
486
+ "header",
487
+ "query-string",
488
+ "static",
489
+ "expression"
490
+ ],
491
+ "type": "string",
492
+ "format": ""
493
+ },
494
+ "NgApps.Domain.Contexts.Datastore.Entities.FilterType": {
495
+ "enum": [
496
+ "single",
497
+ "group"
498
+ ],
499
+ "type": "string",
500
+ "format": ""
501
+ },
502
+ "NgApps.Domain.Contexts.Datastore.Entities.ConditionType": {
503
+ "enum": [
504
+ "and",
505
+ "or"
506
+ ],
507
+ "type": "string",
508
+ "format": ""
509
+ }
510
+ }
511
+ }
512
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "schema": {
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "format": "uuid"
8
+ },
9
+ "rawQuery": {
10
+ "type": "string",
11
+ "nullable": true
12
+ },
13
+ "slug": {
14
+ "type": "string",
15
+ "nullable": true
16
+ },
17
+ "name": {
18
+ "type": "string",
19
+ "nullable": true
20
+ },
21
+ "datasourceId": {
22
+ "type": "string",
23
+ "format": "uuid"
24
+ },
25
+ "parameters": {
26
+ "type": "array",
27
+ "items": {
28
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Queries.QueryParameter"
29
+ },
30
+ "nullable": true
31
+ },
32
+ "outputType": {
33
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Queries.QueryOutputType"
34
+ }
35
+ },
36
+ "additionalProperties": false
37
+ },
38
+ "components": {
39
+ "schemas": {
40
+ "NgApps.Domain.Contexts.Datastore.Queries.QueryParameter": {
41
+ "type": "object",
42
+ "properties": {
43
+ "name": {
44
+ "type": "string",
45
+ "nullable": true
46
+ },
47
+ "type": {
48
+ "$ref": "#/components/schemas/NgApps.Domain.Contexts.Datastore.Entities.CommonFieldType"
49
+ },
50
+ "value": {
51
+ "nullable": true
52
+ }
53
+ },
54
+ "additionalProperties": false
55
+ },
56
+ "NgApps.Domain.Contexts.Datastore.Queries.QueryOutputType": {
57
+ "enum": [
58
+ "array",
59
+ "object"
60
+ ],
61
+ "type": "string",
62
+ "format": ""
63
+ },
64
+ "NgApps.Domain.Contexts.Datastore.Entities.CommonFieldType": {
65
+ "enum": [
66
+ "text",
67
+ "number",
68
+ "bool",
69
+ "date",
70
+ "time",
71
+ "datetime",
72
+ "guid",
73
+ "float",
74
+ "relation",
75
+ "custom",
76
+ "object",
77
+ "array",
78
+ "file",
79
+ "incremental"
80
+ ],
81
+ "type": "string",
82
+ "format": ""
83
+ }
84
+ }
85
+ }
86
+ }