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