@takeshape/schema 11.15.3 → 11.16.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 (106) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +39 -1
  4. package/dist/migration/index.d.ts +1 -0
  5. package/dist/migration/index.d.ts.map +1 -1
  6. package/dist/migration/index.js +3 -1
  7. package/dist/migration/to/v3.48.0.d.ts +5 -0
  8. package/dist/migration/to/v3.48.0.d.ts.map +1 -0
  9. package/dist/migration/to/v3.48.0.js +16 -0
  10. package/dist/migration/types.d.ts +5 -2
  11. package/dist/migration/types.d.ts.map +1 -1
  12. package/dist/project-schema/index.d.ts +4 -1
  13. package/dist/project-schema/index.d.ts.map +1 -1
  14. package/dist/project-schema/index.js +17 -3
  15. package/dist/project-schema/latest.d.ts +245 -2
  16. package/dist/project-schema/latest.d.ts.map +1 -1
  17. package/dist/project-schema/migrate.d.ts.map +1 -1
  18. package/dist/project-schema/migrate.js +3 -0
  19. package/dist/project-schema/v3.48.0.d.ts +1980 -0
  20. package/dist/project-schema/v3.48.0.d.ts.map +1 -0
  21. package/dist/project-schema/v3.48.0.js +5 -0
  22. package/dist/schema-util.d.ts +1 -0
  23. package/dist/schema-util.d.ts.map +1 -1
  24. package/dist/schema-util.js +6 -1
  25. package/dist/schemas/index.d.ts +2 -2
  26. package/dist/schemas/index.d.ts.map +1 -1
  27. package/dist/schemas/index.js +5 -4
  28. package/dist/schemas/index.ts +4 -2
  29. package/dist/schemas/project-schema/latest.json +574 -3
  30. package/dist/schemas/project-schema/v3.48.0.json +4197 -0
  31. package/dist/schemas/project-schema.json +3 -0
  32. package/dist/types/utils.d.ts +3 -2
  33. package/dist/types/utils.d.ts.map +1 -1
  34. package/dist/types/utils.js +5 -1
  35. package/dist/util/patch-schema.d.ts.map +1 -1
  36. package/dist/util/patch-schema.js +7 -1
  37. package/dist/validate.d.ts.map +1 -1
  38. package/dist/validate.js +54 -33
  39. package/es/index.js +2 -1
  40. package/es/migration/index.js +3 -1
  41. package/es/migration/to/v3.48.0.js +10 -0
  42. package/es/project-schema/index.js +3 -1
  43. package/es/project-schema/migrate.js +4 -1
  44. package/es/project-schema/v3.48.0.js +1 -0
  45. package/es/schema-util.js +3 -0
  46. package/es/schemas/index.js +4 -3
  47. package/es/schemas/index.ts +4 -2
  48. package/es/schemas/project-schema/latest.json +574 -3
  49. package/es/schemas/project-schema/v3.48.0.json +4197 -0
  50. package/es/schemas/project-schema.json +3 -0
  51. package/es/types/utils.js +4 -1
  52. package/es/util/patch-schema.js +7 -1
  53. package/es/validate.js +54 -33
  54. package/examples/latest/agent-schema.json +363 -0
  55. package/examples/latest/all-fields-shapes-inline.json +1 -1
  56. package/examples/latest/all-fields-shapes.json +1 -1
  57. package/examples/latest/betzino.json +1 -1
  58. package/examples/latest/blog-schema.json +1 -1
  59. package/examples/latest/brewery-schema.json +1 -1
  60. package/examples/latest/clear-cache-schema.json +1 -1
  61. package/examples/latest/complex-project-schema.json +1 -1
  62. package/examples/latest/complex-schema.json +1 -1
  63. package/examples/latest/edit-schema.json +1 -1
  64. package/examples/latest/fabric-ecommerce.json +1 -1
  65. package/examples/latest/frank-and-fred-schema.json +1 -1
  66. package/examples/latest/klirr-schema.json +1 -1
  67. package/examples/latest/layers/rick-and-morty-layer.json +1 -1
  68. package/examples/latest/layers/shopify-layer-2023-01.json +1 -1
  69. package/examples/latest/layers/shopify-storefront-2023-04.json +1 -1
  70. package/examples/latest/layers/wordpress-2024-01.json +1 -1
  71. package/examples/latest/massive-schema.json +1 -1
  72. package/examples/latest/mill-components-schema.json +1 -1
  73. package/examples/latest/nested-shape-arrays.json +1 -1
  74. package/examples/latest/one-earth.json +1 -1
  75. package/examples/latest/pet-oneof-array.json +1 -1
  76. package/examples/latest/post-schema.json +1 -1
  77. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  78. package/examples/latest/rag-example.json +2 -2
  79. package/examples/latest/real-world-schema.json +1 -1
  80. package/examples/latest/recursive-repeater-schema.json +1 -1
  81. package/examples/latest/recursive-schema.json +1 -1
  82. package/examples/latest/rick-and-morty-ast.json +1 -1
  83. package/examples/latest/rick-and-morty-graphql.json +1 -1
  84. package/examples/latest/rick-and-morty-rest.json +1 -1
  85. package/examples/latest/rick-and-morty-with-indexing.json +1 -1
  86. package/examples/latest/schema-where-filter.json +1 -1
  87. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  88. package/examples/latest/schema-with-rick-and-morty.json +1 -1
  89. package/examples/latest/shape-books-v3_2_0.json +1 -1
  90. package/examples/latest/shape-books.json +1 -1
  91. package/examples/latest/shape-editor-schema-edited.json +1 -1
  92. package/examples/latest/shape-editor-schema-initial.json +1 -1
  93. package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
  94. package/examples/latest/shopify-lookbook.json +1 -1
  95. package/examples/latest/shopify-product-2022-07.json +1 -1
  96. package/examples/latest/shopify-product-2023-04.json +1 -1
  97. package/examples/latest/shopify-store-with-widget.json +1 -1
  98. package/examples/latest/stripe-product-runtime-schema.json +1 -1
  99. package/examples/latest/stripe-starter-resolved.json +1 -1
  100. package/examples/latest/user-schema-no-required.json +1 -1
  101. package/examples/latest/user-schema-with-defaults.json +1 -1
  102. package/examples/latest/valvoline-ai-demo.json +1 -1
  103. package/examples/latest/vector-search-schema.json +1 -1
  104. package/examples/source/agent-schema.json +312 -0
  105. package/examples/source/rag-example.json +1 -1
  106. package/package.json +5 -5
@@ -0,0 +1,4197 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://schema.takeshape.io/project-schema/v3.48.0#",
4
+ "title": "Project Schema JSON",
5
+ "definitions": {
6
+ "schemaArray": {
7
+ "title": "Schema Array",
8
+ "type": "array",
9
+ "minItems": 1,
10
+ "items": {
11
+ "$ref": "#/definitions/propertySchema"
12
+ }
13
+ },
14
+ "nonNegativeInteger": {
15
+ "title": "Non Negative Integer",
16
+ "type": "integer",
17
+ "minimum": 0
18
+ },
19
+ "nonNegativeIntegerDefault0": {
20
+ "title": "Non Negative Integer Default 0",
21
+ "allOf": [
22
+ {
23
+ "$ref": "#/definitions/nonNegativeInteger"
24
+ },
25
+ {
26
+ "default": 0
27
+ }
28
+ ]
29
+ },
30
+ "simpleTypes": {
31
+ "title": "Simple Types",
32
+ "enum": [
33
+ "array",
34
+ "boolean",
35
+ "integer",
36
+ "null",
37
+ "number",
38
+ "object",
39
+ "string"
40
+ ]
41
+ },
42
+ "stringArray": {
43
+ "title": "String Array",
44
+ "type": "array",
45
+ "items": {
46
+ "type": "string"
47
+ },
48
+ "uniqueItems": true,
49
+ "default": []
50
+ },
51
+ "backreference": {
52
+ "title": "Back Reference",
53
+ "description": "A configuration object for a reverse reference in a relationship.",
54
+ "type": "object",
55
+ "properties": {
56
+ "enabled": {
57
+ "type": "boolean"
58
+ },
59
+ "name": {
60
+ "type": "string",
61
+ "pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$"
62
+ }
63
+ },
64
+ "additionalProperties": false,
65
+ "required": [
66
+ "enabled"
67
+ ]
68
+ },
69
+ "mappingString": {
70
+ "title": "Mapping String",
71
+ "type": "string",
72
+ "pattern": "^[\\w-]+(?::[\\w-]+)+(?:\\.[\\w%-]+)+$"
73
+ },
74
+ "fieldMapping": {
75
+ "title": "Field Mapping",
76
+ "oneOf": [
77
+ {
78
+ "$ref": "#/definitions/mappingString"
79
+ },
80
+ {
81
+ "type": "array",
82
+ "items": {
83
+ "$ref": "#/definitions/mappingString"
84
+ }
85
+ }
86
+ ]
87
+ },
88
+ "refSchema": {
89
+ "title": "Ref Schema",
90
+ "type": "object",
91
+ "properties": {
92
+ "@ref": {
93
+ "$ref": "#/definitions/ref"
94
+ }
95
+ },
96
+ "required": [
97
+ "@ref"
98
+ ]
99
+ },
100
+ "refSchemaLegacy": {
101
+ "title": "Ref Schema Legacy",
102
+ "type": "object",
103
+ "properties": {
104
+ "$ref": {
105
+ "$ref": "#/definitions/ref"
106
+ }
107
+ },
108
+ "required": [
109
+ "$ref"
110
+ ]
111
+ },
112
+ "shapeSchemaEnum": {
113
+ "title": "Shape Schema Enum",
114
+ "type": "object",
115
+ "properties": {
116
+ "enum": {
117
+ "type": "array",
118
+ "minItems": 1,
119
+ "uniqueItems": true
120
+ }
121
+ },
122
+ "additionalProperties": false,
123
+ "required": [
124
+ "enum"
125
+ ]
126
+ },
127
+ "objectSchema": {
128
+ "title": "Object Schema",
129
+ "type": "object",
130
+ "allOf": [
131
+ {
132
+ "$ref": "#/definitions/propertySchema"
133
+ },
134
+ {
135
+ "properties": {
136
+ "type": {
137
+ "type": "string",
138
+ "const": "object"
139
+ },
140
+ "properties": {
141
+ "type": "object",
142
+ "additionalProperties": {
143
+ "$ref": "#/definitions/propertySchema"
144
+ }
145
+ }
146
+ },
147
+ "required": [
148
+ "type",
149
+ "properties"
150
+ ]
151
+ }
152
+ ]
153
+ },
154
+ "returnShapeArraySchema": {
155
+ "title": "Return Shape Array Schema",
156
+ "type": "object",
157
+ "allOf": [
158
+ {
159
+ "$ref": "#/definitions/propertySchema"
160
+ },
161
+ {
162
+ "properties": {
163
+ "type": {
164
+ "type": "string",
165
+ "const": "array"
166
+ },
167
+ "items": {
168
+ "oneOf": [
169
+ {
170
+ "$ref": "#/definitions/refSchema"
171
+ },
172
+ {
173
+ "type": "object",
174
+ "properties": {
175
+ "type": {
176
+ "enum": [
177
+ "boolean",
178
+ "integer",
179
+ "number",
180
+ "string",
181
+ "object"
182
+ ]
183
+ }
184
+ },
185
+ "required": [
186
+ "type"
187
+ ]
188
+ }
189
+ ]
190
+ }
191
+ },
192
+ "required": [
193
+ "type",
194
+ "items"
195
+ ]
196
+ }
197
+ ]
198
+ },
199
+ "objectOrRefArray": {
200
+ "title": "ObjectOrRefArray",
201
+ "type": "array",
202
+ "items": {
203
+ "oneOf": [
204
+ {
205
+ "$ref": "#/definitions/refSchema"
206
+ },
207
+ {
208
+ "$ref": "#/definitions/refSchemaLegacy"
209
+ },
210
+ {
211
+ "$ref": "#/definitions/objectSchema"
212
+ }
213
+ ],
214
+ "unevaluatedProperties": true
215
+ }
216
+ },
217
+ "shapeSchemaAllOf": {
218
+ "title": "Shape Schema All Of",
219
+ "type": "object",
220
+ "properties": {
221
+ "allOf": {
222
+ "$ref": "#/definitions/objectOrRefArray"
223
+ }
224
+ },
225
+ "required": [
226
+ "allOf"
227
+ ],
228
+ "additionalProperties": false
229
+ },
230
+ "allOfSchema": {
231
+ "title": "AllOfSchema",
232
+ "allOf": [
233
+ {
234
+ "$ref": "#/definitions/propertySchema"
235
+ },
236
+ {
237
+ "type": "object",
238
+ "properties": {
239
+ "allOf": {
240
+ "$ref": "#/definitions/objectOrRefArray"
241
+ }
242
+ },
243
+ "required": [
244
+ "allOf"
245
+ ]
246
+ }
247
+ ]
248
+ },
249
+ "shapeSchemaExtends": {
250
+ "title": "ShapeSchemaExtends",
251
+ "type": "object",
252
+ "properties": {
253
+ "extends": {
254
+ "$ref": "#/definitions/objectOrRefArray"
255
+ }
256
+ },
257
+ "required": [
258
+ "extends"
259
+ ],
260
+ "additionalProperties": false
261
+ },
262
+ "extendsSchema": {
263
+ "title": "ExtendsSchema",
264
+ "allOf": [
265
+ {
266
+ "$ref": "#/definitions/propertySchema"
267
+ },
268
+ {
269
+ "type": "object",
270
+ "properties": {
271
+ "extends": {
272
+ "$ref": "#/definitions/objectOrRefArray"
273
+ }
274
+ },
275
+ "required": [
276
+ "extends"
277
+ ]
278
+ }
279
+ ]
280
+ },
281
+ "shapeSchemaOneOf": {
282
+ "title": "Shape Schema One Of",
283
+ "type": "object",
284
+ "properties": {
285
+ "oneOf": {
286
+ "$ref": "#/definitions/objectOrRefArray"
287
+ }
288
+ },
289
+ "required": [
290
+ "oneOf"
291
+ ],
292
+ "additionalProperties": false
293
+ },
294
+ "oneOfSchema": {
295
+ "title": "OneOfSchema",
296
+ "allOf": [
297
+ {
298
+ "$ref": "#/definitions/propertySchema"
299
+ },
300
+ {
301
+ "type": "object",
302
+ "properties": {
303
+ "oneOf": {
304
+ "$ref": "#/definitions/objectOrRefArray"
305
+ }
306
+ },
307
+ "required": [
308
+ "oneOf"
309
+ ],
310
+ "additionalProperties": false
311
+ }
312
+ ]
313
+ },
314
+ "shapeSchemaAny": {
315
+ "type": "object",
316
+ "title": "ShapeSchemaAny",
317
+ "additionalProperties": false
318
+ },
319
+ "shapeSchema": {
320
+ "title": "Shape Schema",
321
+ "type": "object",
322
+ "oneOf": [
323
+ {
324
+ "$ref": "#/definitions/shapeSchemaAllOf"
325
+ },
326
+ {
327
+ "$ref": "#/definitions/shapeSchemaExtends"
328
+ },
329
+ {
330
+ "$ref": "#/definitions/shapeSchemaOneOf"
331
+ },
332
+ {
333
+ "$ref": "#/definitions/shapeSchemaEnum"
334
+ },
335
+ {
336
+ "$ref": "#/definitions/objectSchema"
337
+ },
338
+ {
339
+ "$ref": "#/definitions/shapeSchemaAny"
340
+ }
341
+ ]
342
+ },
343
+ "queryMap": {
344
+ "title": "Query Map",
345
+ "type": "object",
346
+ "patternProperties": {
347
+ "^[0-9A-Za-z_]+$": {
348
+ "$ref": "#/definitions/query"
349
+ }
350
+ },
351
+ "additionalProperties": false
352
+ },
353
+ "args": {
354
+ "title": "Args",
355
+ "oneOf": [
356
+ {
357
+ "type": "string"
358
+ },
359
+ {
360
+ "$ref": "#/definitions/objectSchema"
361
+ }
362
+ ]
363
+ },
364
+ "returnShape": {
365
+ "title": "Return Shape",
366
+ "oneOf": [
367
+ {
368
+ "type": "string"
369
+ },
370
+ {
371
+ "$ref": "#/definitions/returnShapeArraySchema"
372
+ }
373
+ ]
374
+ },
375
+ "directiveConfigItem": {
376
+ "title": "Directive Config Item",
377
+ "description": "A tuple with a string directive name, and options to pass to the directive",
378
+ "type": "array",
379
+ "items": [
380
+ {
381
+ "title": "Directive Name",
382
+ "type": "string"
383
+ },
384
+ {
385
+ "title": "Directive Options",
386
+ "type": "object",
387
+ "propertyNames": {
388
+ "pattern": "[0-9A-Za-z_-]+"
389
+ }
390
+ }
391
+ ]
392
+ },
393
+ "parameterSerializeStyleOptions": {
394
+ "title": "Parameter Serialize Style Options",
395
+ "description": "All possible options for the more specific ParameterSerializeStyleOptions types.",
396
+ "type": "object",
397
+ "properties": {
398
+ "style": {
399
+ "type": "string",
400
+ "enum": [
401
+ "simple",
402
+ "label",
403
+ "matrix",
404
+ "form",
405
+ "spaceDelimited",
406
+ "pipeDelimited",
407
+ "deepObject",
408
+ "none"
409
+ ]
410
+ },
411
+ "explode": {
412
+ "type": "boolean"
413
+ },
414
+ "allowEmptyValue": {
415
+ "type": "boolean"
416
+ },
417
+ "allowReserved": {
418
+ "description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
419
+ "type": "boolean"
420
+ },
421
+ "skipEncoding": {
422
+ "type": "boolean"
423
+ }
424
+ },
425
+ "required": [
426
+ "style"
427
+ ],
428
+ "additionalProperties": false
429
+ },
430
+ "parameterSerializeStyleOptionsForPathParams": {
431
+ "title": "Parameter Serialize Style Options For Path Params",
432
+ "description": "Options to be passed to the serialization routine.",
433
+ "type": "object",
434
+ "properties": {
435
+ "style": {
436
+ "type": "string",
437
+ "enum": [
438
+ "simple",
439
+ "label",
440
+ "matrix",
441
+ "none"
442
+ ]
443
+ },
444
+ "explode": {
445
+ "type": "boolean"
446
+ },
447
+ "allowEmptyValue": {
448
+ "type": "boolean"
449
+ },
450
+ "allowReserved": {
451
+ "description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
452
+ "type": "boolean"
453
+ },
454
+ "skipEncoding": {
455
+ "type": "boolean"
456
+ }
457
+ },
458
+ "required": [
459
+ "style"
460
+ ],
461
+ "additionalProperties": false
462
+ },
463
+ "parameterSerializeStyleOptionsForSearchParams": {
464
+ "title": "Parameter Serialize Style Options For Search Params",
465
+ "description": "Options to be passed to the serialization routine.",
466
+ "type": "object",
467
+ "properties": {
468
+ "style": {
469
+ "type": "string",
470
+ "enum": [
471
+ "form",
472
+ "spaceDelimited",
473
+ "pipeDelimited",
474
+ "deepObject",
475
+ "none"
476
+ ]
477
+ },
478
+ "explode": {
479
+ "type": "boolean"
480
+ },
481
+ "allowEmptyValue": {
482
+ "type": "boolean"
483
+ },
484
+ "allowReserved": {
485
+ "description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
486
+ "type": "boolean"
487
+ },
488
+ "skipEncoding": {
489
+ "type": "boolean"
490
+ }
491
+ },
492
+ "required": [
493
+ "style"
494
+ ],
495
+ "additionalProperties": false
496
+ },
497
+ "parameterSerializeStyleOptionsForHeaders": {
498
+ "title": "Parameter Serialize Style Options For Headers",
499
+ "description": "Options to be passed to the serialization routine.",
500
+ "type": "object",
501
+ "properties": {
502
+ "style": {
503
+ "type": "string",
504
+ "enum": [
505
+ "simple",
506
+ "none"
507
+ ]
508
+ },
509
+ "explode": {
510
+ "type": "boolean"
511
+ }
512
+ },
513
+ "required": [
514
+ "style"
515
+ ],
516
+ "additionalProperties": false
517
+ },
518
+ "parameterSerializeContentOptions": {
519
+ "title": "Parameter Serialize Content Options",
520
+ "description": "Options to be passed to the serialization routine.",
521
+ "type": "object",
522
+ "properties": {
523
+ "contentType": {
524
+ "type": "string"
525
+ },
526
+ "allowReserved": {
527
+ "description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
528
+ "type": "boolean"
529
+ },
530
+ "skipEncoding": {
531
+ "type": "boolean"
532
+ },
533
+ "options": {
534
+ "description": "Options to be passed directly to the content serializer library. Valid options depend upon your contentType.",
535
+ "type": "object"
536
+ }
537
+ },
538
+ "required": [
539
+ "contentType"
540
+ ],
541
+ "additionalProperties": false
542
+ },
543
+ "parameterSerializeOptions": {
544
+ "title": "Parameter Serialize Options",
545
+ "description": "Options to be passed to the serialization routine.",
546
+ "type": "object",
547
+ "oneOf": [
548
+ {
549
+ "$ref": "#/definitions/parameterSerializeStyleOptions"
550
+ },
551
+ {
552
+ "$ref": "#/definitions/parameterSerializeContentOptions"
553
+ }
554
+ ]
555
+ },
556
+ "parameterSerializeConfig": {
557
+ "title": "Parameter Serialize Config",
558
+ "description": "All possible options for the more specific ParameterSerializeConfig types.",
559
+ "type": "object",
560
+ "properties": {
561
+ "content": {
562
+ "$ref": "#/definitions/parameterSerializeContentOptions"
563
+ },
564
+ "defaults": {
565
+ "$ref": "#/definitions/parameterSerializeOptions"
566
+ },
567
+ "paths": {
568
+ "type": "object",
569
+ "patternProperties": {
570
+ "^[^\\n\\r]*$": {
571
+ "$ref": "#/definitions/parameterSerializeOptions"
572
+ }
573
+ }
574
+ }
575
+ },
576
+ "additionalProperties": false
577
+ },
578
+ "parameterSerializeConfigForBody": {
579
+ "title": "Parameter Serialize Config For Body",
580
+ "description": "Top-level paths to use serialization options for.",
581
+ "type": "object",
582
+ "properties": {
583
+ "content": {
584
+ "$ref": "#/definitions/parameterSerializeContentOptions"
585
+ }
586
+ },
587
+ "additionalProperties": false
588
+ },
589
+ "parameterSerializeConfigForPathParams": {
590
+ "title": "Parameter Serialize Config For Path Params",
591
+ "description": "Top-level paths to use path params serialization options for.",
592
+ "type": "object",
593
+ "properties": {
594
+ "template": {
595
+ "description": "For generating the path using tokens frpm the ParameterOps, e.g., '/products/{productId}'",
596
+ "type": "string"
597
+ },
598
+ "defaults": {
599
+ "oneOf": [
600
+ {
601
+ "$ref": "#/definitions/parameterSerializeStyleOptionsForPathParams"
602
+ },
603
+ {
604
+ "$ref": "#/definitions/parameterSerializeContentOptions"
605
+ }
606
+ ]
607
+ },
608
+ "paths": {
609
+ "type": "object",
610
+ "patternProperties": {
611
+ "^[^\\n\\r]*$": {
612
+ "oneOf": [
613
+ {
614
+ "$ref": "#/definitions/parameterSerializeStyleOptionsForPathParams"
615
+ },
616
+ {
617
+ "$ref": "#/definitions/parameterSerializeContentOptions"
618
+ }
619
+ ]
620
+ }
621
+ }
622
+ }
623
+ },
624
+ "required": [
625
+ "template"
626
+ ],
627
+ "additionalProperties": false
628
+ },
629
+ "parameterSerializeConfigForSearchParams": {
630
+ "title": "Parameter Serialize Config For Search Params",
631
+ "description": "Top-level paths to use search params serialization options for.",
632
+ "type": "object",
633
+ "properties": {
634
+ "defaults": {
635
+ "oneOf": [
636
+ {
637
+ "$ref": "#/definitions/parameterSerializeStyleOptionsForSearchParams"
638
+ },
639
+ {
640
+ "$ref": "#/definitions/parameterSerializeContentOptions"
641
+ }
642
+ ]
643
+ },
644
+ "paths": {
645
+ "type": "object",
646
+ "patternProperties": {
647
+ "^[^\\n\\r]*$": {
648
+ "oneOf": [
649
+ {
650
+ "$ref": "#/definitions/parameterSerializeStyleOptionsForSearchParams"
651
+ },
652
+ {
653
+ "$ref": "#/definitions/parameterSerializeContentOptions"
654
+ }
655
+ ]
656
+ }
657
+ }
658
+ }
659
+ },
660
+ "additionalProperties": false
661
+ },
662
+ "parameterSerializeConfigForHeaders": {
663
+ "title": "Parameter Serialize Config For Headers",
664
+ "description": "Top-level paths to use headers serialization options for.",
665
+ "type": "object",
666
+ "properties": {
667
+ "defaults": {
668
+ "oneOf": [
669
+ {
670
+ "$ref": "#/definitions/parameterSerializeStyleOptionsForHeaders"
671
+ },
672
+ {
673
+ "$ref": "#/definitions/parameterSerializeContentOptions"
674
+ }
675
+ ]
676
+ },
677
+ "paths": {
678
+ "type": "object",
679
+ "patternProperties": {
680
+ "^[^\\n\\r]*$": {
681
+ "oneOf": [
682
+ {
683
+ "$ref": "#/definitions/parameterSerializeStyleOptionsForHeaders"
684
+ },
685
+ {
686
+ "$ref": "#/definitions/parameterSerializeContentOptions"
687
+ }
688
+ ]
689
+ }
690
+ }
691
+ }
692
+ },
693
+ "additionalProperties": false
694
+ },
695
+ "parameterOpNested": {
696
+ "title": "Parameter Op Nested",
697
+ "description": "An object describing an operation to generate a parameter, using a nested OpList.",
698
+ "type": "object",
699
+ "properties": {
700
+ "path": {
701
+ "description": "A path to the parameter for this operation.",
702
+ "type": "string",
703
+ "minLength": 1,
704
+ "pattern": "^[^\\n\\r]*$"
705
+ },
706
+ "op": {
707
+ "description": "A mode for this parameter's operation.",
708
+ "type": "string",
709
+ "enum": [
710
+ "set",
711
+ "concat",
712
+ "extend",
713
+ "remove"
714
+ ]
715
+ },
716
+ "ops": {
717
+ "description": "A nested op list.",
718
+ "$ref": "#/definitions/parameterOpList"
719
+ }
720
+ },
721
+ "required": [
722
+ "path",
723
+ "ops"
724
+ ],
725
+ "additionalProperties": false
726
+ },
727
+ "parameterOpValue": {
728
+ "title": "Parameter Op Value",
729
+ "description": "An object describing an operation to generate a parameter using a value.",
730
+ "type": "object",
731
+ "properties": {
732
+ "path": {
733
+ "description": "A path to the parameter for this operation.",
734
+ "type": "string",
735
+ "minLength": 1,
736
+ "pattern": "^[^\\n\\r]*$"
737
+ },
738
+ "op": {
739
+ "description": "A mode for this parameter's operation.",
740
+ "type": "string",
741
+ "enum": [
742
+ "set",
743
+ "concat",
744
+ "extend",
745
+ "remove"
746
+ ]
747
+ },
748
+ "value": {
749
+ "description": "A value to set directly at this path.",
750
+ "type": [
751
+ "number",
752
+ "string",
753
+ "boolean",
754
+ "object",
755
+ "array",
756
+ "null"
757
+ ]
758
+ }
759
+ },
760
+ "required": [
761
+ "path",
762
+ "value"
763
+ ],
764
+ "additionalProperties": false
765
+ },
766
+ "parameterOpMapping": {
767
+ "title": "Parameter Op Mapping",
768
+ "description": "An object describing an operation to generate a parameter using a mapping.",
769
+ "type": "object",
770
+ "properties": {
771
+ "path": {
772
+ "description": "A path to the parameter for this operation.",
773
+ "type": "string",
774
+ "minLength": 1,
775
+ "pattern": "^[^\\n\\r]*$"
776
+ },
777
+ "op": {
778
+ "description": "A mode for this parameter's operation.",
779
+ "type": "string",
780
+ "enum": [
781
+ "set",
782
+ "concat",
783
+ "extend",
784
+ "remove"
785
+ ]
786
+ },
787
+ "mapping": {
788
+ "description": "Either a valid JSONPath or a directive pipeline to evaluate against the query context.",
789
+ "oneOf": [
790
+ {
791
+ "type": "string",
792
+ "minLength": 1
793
+ },
794
+ {
795
+ "$ref": "#/definitions/directiveConfig"
796
+ }
797
+ ]
798
+ }
799
+ },
800
+ "required": [
801
+ "path",
802
+ "mapping"
803
+ ],
804
+ "additionalProperties": false
805
+ },
806
+ "parameterOpOp": {
807
+ "title": "Parameter Op Op",
808
+ "description": "An object describing an operation to generate a parameter using a mapping.",
809
+ "type": "object",
810
+ "properties": {
811
+ "path": {
812
+ "description": "A path to the parameter for this operation.",
813
+ "type": "string",
814
+ "minLength": 1,
815
+ "pattern": "^[^\\n\\r]*$"
816
+ },
817
+ "op": {
818
+ "description": "A mode for this parameter's operation.",
819
+ "type": "string",
820
+ "enum": [
821
+ "set",
822
+ "concat",
823
+ "extend",
824
+ "remove"
825
+ ]
826
+ }
827
+ },
828
+ "required": [
829
+ "path",
830
+ "op"
831
+ ],
832
+ "additionalProperties": false
833
+ },
834
+ "parameterOp": {
835
+ "title": "Parameter Op",
836
+ "description": "An object describing an operation to generate a parameter.",
837
+ "oneOf": [
838
+ {
839
+ "$ref": "#/definitions/parameterOpNested"
840
+ },
841
+ {
842
+ "$ref": "#/definitions/parameterOpValue"
843
+ },
844
+ {
845
+ "$ref": "#/definitions/parameterOpMapping"
846
+ },
847
+ {
848
+ "$ref": "#/definitions/parameterOpOp"
849
+ }
850
+ ]
851
+ },
852
+ "parameterOpList": {
853
+ "title": "Parameter Op List",
854
+ "type": "array",
855
+ "items": {
856
+ "$ref": "#/definitions/parameterOp"
857
+ },
858
+ "minItems": 1
859
+ },
860
+ "parameterConfig": {
861
+ "title": "Parameter Config",
862
+ "description": "All possible options for the more specific ParameterConfig types.",
863
+ "type": "object",
864
+ "properties": {
865
+ "ops": {
866
+ "$ref": "#/definitions/parameterOpList"
867
+ },
868
+ "serialize": {
869
+ "$ref": "#/definitions/parameterSerializeConfig"
870
+ }
871
+ },
872
+ "required": [
873
+ "ops"
874
+ ],
875
+ "additionalProperties": false
876
+ },
877
+ "parameterConfigForBody": {
878
+ "title": "Parameter Config For Body",
879
+ "type": "object",
880
+ "properties": {
881
+ "ops": {
882
+ "$ref": "#/definitions/parameterOpList"
883
+ },
884
+ "serialize": {
885
+ "$ref": "#/definitions/parameterSerializeConfigForBody"
886
+ }
887
+ },
888
+ "required": [
889
+ "ops"
890
+ ],
891
+ "additionalProperties": false
892
+ },
893
+ "parameterConfigForPathParams": {
894
+ "title": "Parameter Config For Path Params",
895
+ "type": "object",
896
+ "properties": {
897
+ "ops": {
898
+ "$ref": "#/definitions/parameterOpList"
899
+ },
900
+ "serialize": {
901
+ "$ref": "#/definitions/parameterSerializeConfigForPathParams"
902
+ }
903
+ },
904
+ "required": [
905
+ "ops",
906
+ "serialize"
907
+ ],
908
+ "additionalProperties": false
909
+ },
910
+ "parameterConfigForAwsLambda": {
911
+ "title": "ParameterConfigForAwsLambda",
912
+ "type": "object",
913
+ "properties": {
914
+ "ops": {
915
+ "$ref": "#/definitions/parameterOpList"
916
+ },
917
+ "serialize": {
918
+ "$ref": "#/definitions/parameterSerializeConfigForPathParams"
919
+ }
920
+ },
921
+ "required": [
922
+ "ops",
923
+ "serialize"
924
+ ],
925
+ "additionalProperties": false
926
+ },
927
+ "parameterConfigForSearchParams": {
928
+ "title": "Parameter Config For Search Params",
929
+ "type": "object",
930
+ "properties": {
931
+ "ops": {
932
+ "$ref": "#/definitions/parameterOpList"
933
+ },
934
+ "serialize": {
935
+ "$ref": "#/definitions/parameterSerializeConfigForSearchParams"
936
+ }
937
+ },
938
+ "required": [
939
+ "ops"
940
+ ],
941
+ "additionalProperties": false
942
+ },
943
+ "parameterConfigForHeaders": {
944
+ "title": "Parameter Config For Headers",
945
+ "type": "object",
946
+ "properties": {
947
+ "ops": {
948
+ "$ref": "#/definitions/parameterOpList"
949
+ },
950
+ "serialize": {
951
+ "$ref": "#/definitions/parameterSerializeConfigForHeaders"
952
+ }
953
+ },
954
+ "required": [
955
+ "ops"
956
+ ],
957
+ "additionalProperties": false
958
+ },
959
+ "parameterConfigForJson": {
960
+ "title": "Parameter Config For Json",
961
+ "type": "object",
962
+ "properties": {
963
+ "ops": {
964
+ "$ref": "#/definitions/parameterOpList"
965
+ }
966
+ },
967
+ "required": [
968
+ "ops"
969
+ ],
970
+ "additionalProperties": false
971
+ },
972
+ "directiveConfig": {
973
+ "title": "Directive Config",
974
+ "description": "An array of individual directive config items to process in order",
975
+ "type": "array",
976
+ "items": {
977
+ "$ref": "#/definitions/directiveConfigItem"
978
+ },
979
+ "minItems": 1
980
+ },
981
+ "directiveMappingMap": {
982
+ "title": "Directive Mapping Map",
983
+ "description": "An map of object keys / key paths to directive configs",
984
+ "type": "object",
985
+ "patternProperties": {
986
+ "[0-9A-Za-z_-]+": {
987
+ "$ref": "#/definitions/directiveConfig"
988
+ }
989
+ }
990
+ },
991
+ "directiveMappingArrayItem": {
992
+ "title": "Directive Mapping Array Item",
993
+ "description": "A tuple with a string key and a directive config to evaluate",
994
+ "type": "array",
995
+ "items": [
996
+ {
997
+ "type": "string"
998
+ },
999
+ {
1000
+ "$ref": "#/definitions/directiveConfig"
1001
+ }
1002
+ ]
1003
+ },
1004
+ "directiveMappingArray": {
1005
+ "title": "Directive Mapping Array",
1006
+ "description": "An array of key / value or directive config tuples",
1007
+ "type": "array",
1008
+ "items": {
1009
+ "$ref": "#/definitions/directiveMappingArrayItem"
1010
+ }
1011
+ },
1012
+ "basicResolver": {
1013
+ "title": "BasicResolver",
1014
+ "description": "A single resolver, can be composed with the ComposeResolver.",
1015
+ "discriminator": {
1016
+ "propertyName": "name"
1017
+ },
1018
+ "oneOf": [
1019
+ {
1020
+ "$ref": "#/definitions/utilResolver"
1021
+ },
1022
+ {
1023
+ "$ref": "#/definitions/delegateResolver"
1024
+ },
1025
+ {
1026
+ "$ref": "#/definitions/takeshapeResolver"
1027
+ },
1028
+ {
1029
+ "$ref": "#/definitions/shapedbResolver"
1030
+ },
1031
+ {
1032
+ "$ref": "#/definitions/shapedbResolverShapeNameNotRequired"
1033
+ },
1034
+ {
1035
+ "$ref": "#/definitions/graphqlResolver"
1036
+ },
1037
+ {
1038
+ "$ref": "#/definitions/restResolver"
1039
+ },
1040
+ {
1041
+ "$ref": "#/definitions/awsLambdaResolver"
1042
+ },
1043
+ {
1044
+ "$ref": "#/definitions/salsifyResolver"
1045
+ },
1046
+ {
1047
+ "$ref": "#/definitions/functionResolver"
1048
+ },
1049
+ {
1050
+ "$ref": "#/definitions/aiGenerateTextResolver"
1051
+ },
1052
+ {
1053
+ "$ref": "#/definitions/aiEmbeddingResolver"
1054
+ },
1055
+ {
1056
+ "$ref": "#/definitions/aiParseFileResolver"
1057
+ },
1058
+ {
1059
+ "$ref": "#/definitions/aiRunAgentResolver"
1060
+ }
1061
+ ]
1062
+ },
1063
+ "serviceResolver": {
1064
+ "title": "ServiceResolver",
1065
+ "description": "A resolver which references a specific service",
1066
+ "discriminator": {
1067
+ "propertyName": "name"
1068
+ },
1069
+ "oneOf": [
1070
+ {
1071
+ "$ref": "#/definitions/takeshapeResolver"
1072
+ },
1073
+ {
1074
+ "$ref": "#/definitions/shapedbResolverShapeNameNotRequired"
1075
+ },
1076
+ {
1077
+ "$ref": "#/definitions/shapedbResolver"
1078
+ },
1079
+ {
1080
+ "$ref": "#/definitions/graphqlResolver"
1081
+ },
1082
+ {
1083
+ "$ref": "#/definitions/restResolver"
1084
+ },
1085
+ {
1086
+ "$ref": "#/definitions/awsLambdaResolver"
1087
+ }
1088
+ ]
1089
+ },
1090
+ "argsMapping": {
1091
+ "title": "ArgsMapping",
1092
+ "description": "Maps a query's input args to the input expected by the service's endpoint.",
1093
+ "oneOf": [
1094
+ {
1095
+ "$ref": "#/definitions/directiveMappingMap"
1096
+ },
1097
+ {
1098
+ "$ref": "#/definitions/directiveConfig"
1099
+ }
1100
+ ]
1101
+ },
1102
+ "searchParamsMapping": {
1103
+ "title": "SearchParamsMapping",
1104
+ "description": "Set or evaluate directives to generate searchParams for the service endpoint.",
1105
+ "$ref": "#/definitions/directiveMappingArray"
1106
+ },
1107
+ "resultsMapping": {
1108
+ "title": "ResultsMapping",
1109
+ "description": "Maps a service endpoint's response results to the expected shape of the query's response.",
1110
+ "oneOf": [
1111
+ {
1112
+ "$ref": "#/definitions/directiveMappingMap"
1113
+ },
1114
+ {
1115
+ "$ref": "#/definitions/directiveConfig"
1116
+ }
1117
+ ]
1118
+ },
1119
+ "utilResolver": {
1120
+ "title": "UtilResolver",
1121
+ "type": "object",
1122
+ "properties": {
1123
+ "if": {
1124
+ "type": "string"
1125
+ },
1126
+ "id": {
1127
+ "type": "string",
1128
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1129
+ },
1130
+ "name": {
1131
+ "title": "UtilResolverName",
1132
+ "type": "string",
1133
+ "description": "Name of the resolver function.",
1134
+ "enum": [
1135
+ "util:noop",
1136
+ "util:wrap"
1137
+ ]
1138
+ },
1139
+ "options": {
1140
+ "title": "UtilResolverOptions",
1141
+ "type": "object",
1142
+ "additionalProperties": true
1143
+ },
1144
+ "value": {
1145
+ "description": "Optional value to return from the noop resolver.",
1146
+ "type": [
1147
+ "number",
1148
+ "string",
1149
+ "boolean",
1150
+ "object",
1151
+ "array",
1152
+ "null"
1153
+ ]
1154
+ },
1155
+ "args": {
1156
+ "description": "Mapping and serialization configuration for args.",
1157
+ "$ref": "#/definitions/parameterConfigForJson"
1158
+ },
1159
+ "results": {
1160
+ "description": "Mapping configuration for the results of this resolver step.",
1161
+ "$ref": "#/definitions/parameterConfigForJson"
1162
+ },
1163
+ "argsMapping": {
1164
+ "$ref": "#/definitions/argsMapping"
1165
+ },
1166
+ "resultsMapping": {
1167
+ "$ref": "#/definitions/resultsMapping"
1168
+ }
1169
+ },
1170
+ "required": [
1171
+ "name"
1172
+ ],
1173
+ "additionalProperties": false
1174
+ },
1175
+ "functionResolver": {
1176
+ "title": "FunctionResolver",
1177
+ "type": "object",
1178
+ "properties": {
1179
+ "if": {
1180
+ "type": "string"
1181
+ },
1182
+ "id": {
1183
+ "type": "string",
1184
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1185
+ },
1186
+ "name": {
1187
+ "title": "FunctionResolverName",
1188
+ "type": "string",
1189
+ "description": "Name of the resolver function.",
1190
+ "enum": [
1191
+ "function:run"
1192
+ ]
1193
+ },
1194
+ "options": {
1195
+ "title": "FunctionResolverOptions",
1196
+ "type": "object",
1197
+ "additionalProperties": true
1198
+ },
1199
+ "args": {
1200
+ "description": "Mapping and serialization configuration for args.",
1201
+ "$ref": "#/definitions/parameterConfigForJson"
1202
+ },
1203
+ "results": {
1204
+ "description": "Mapping configuration for the results of this resolver step.",
1205
+ "$ref": "#/definitions/parameterConfigForJson"
1206
+ },
1207
+ "argsMapping": {
1208
+ "$ref": "#/definitions/argsMapping"
1209
+ },
1210
+ "resultsMapping": {
1211
+ "$ref": "#/definitions/resultsMapping"
1212
+ },
1213
+ "javascript": {
1214
+ "title": "FunctionResolverJavascript",
1215
+ "type": "string"
1216
+ }
1217
+ },
1218
+ "required": [
1219
+ "name"
1220
+ ],
1221
+ "additionalProperties": false
1222
+ },
1223
+ "delegateResolver": {
1224
+ "title": "DelegateResolver",
1225
+ "type": "object",
1226
+ "properties": {
1227
+ "if": {
1228
+ "type": "string"
1229
+ },
1230
+ "id": {
1231
+ "type": "string",
1232
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1233
+ },
1234
+ "name": {
1235
+ "title": "Delegate Resolver Name",
1236
+ "type": "string",
1237
+ "description": "Name of the resolver function.",
1238
+ "enum": [
1239
+ "delegate"
1240
+ ]
1241
+ },
1242
+ "options": {
1243
+ "title": "DelegateResolverOptions",
1244
+ "type": "object",
1245
+ "additionalProperties": true
1246
+ },
1247
+ "argsMapping": {
1248
+ "$ref": "#/definitions/argsMapping"
1249
+ },
1250
+ "resultsMapping": {
1251
+ "$ref": "#/definitions/resultsMapping"
1252
+ },
1253
+ "to": {
1254
+ "description": "A ref to a query/mutation/property to delegate to.",
1255
+ "type": "string",
1256
+ "minLength": 1
1257
+ },
1258
+ "args": {
1259
+ "description": "Mapping and serialization configuration for args.",
1260
+ "$ref": "#/definitions/parameterConfigForJson"
1261
+ },
1262
+ "results": {
1263
+ "description": "Mapping configuration for the results of this resolver step.",
1264
+ "$ref": "#/definitions/parameterConfigForJson"
1265
+ }
1266
+ },
1267
+ "required": [
1268
+ "name",
1269
+ "to"
1270
+ ],
1271
+ "additionalProperties": false
1272
+ },
1273
+ "salsifyResolver": {
1274
+ "title": "SalsifyResolver",
1275
+ "type": "object",
1276
+ "properties": {
1277
+ "if": {
1278
+ "type": "string"
1279
+ },
1280
+ "id": {
1281
+ "type": "string",
1282
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1283
+ },
1284
+ "name": {
1285
+ "title": "Salsify Resolver Name",
1286
+ "type": "string",
1287
+ "description": "Name of the resolver function.",
1288
+ "enum": [
1289
+ "salsify:listChannelProducts"
1290
+ ]
1291
+ },
1292
+ "service": {
1293
+ "type": "string",
1294
+ "description": "Configuration for a service to use with this resolver."
1295
+ },
1296
+ "options": {
1297
+ "title": "SalsifyResolverOptions",
1298
+ "type": "object",
1299
+ "additionalProperties": true
1300
+ },
1301
+ "args": {
1302
+ "description": "Mapping and serialization configuration for args.",
1303
+ "$ref": "#/definitions/parameterConfigForJson"
1304
+ },
1305
+ "results": {
1306
+ "description": "Mapping configuration for the results of this resolver step.",
1307
+ "$ref": "#/definitions/parameterConfigForJson"
1308
+ },
1309
+ "argsMapping": {
1310
+ "$ref": "#/definitions/argsMapping"
1311
+ },
1312
+ "resultsMapping": {
1313
+ "$ref": "#/definitions/resultsMapping"
1314
+ }
1315
+ },
1316
+ "required": [
1317
+ "name",
1318
+ "service"
1319
+ ],
1320
+ "additionalProperties": false
1321
+ },
1322
+ "shapedbResolver": {
1323
+ "title": "ShapedbResolver",
1324
+ "type": "object",
1325
+ "properties": {
1326
+ "if": {
1327
+ "type": "string"
1328
+ },
1329
+ "id": {
1330
+ "type": "string",
1331
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1332
+ },
1333
+ "name": {
1334
+ "title": "ShapedbResolverName",
1335
+ "type": "string",
1336
+ "description": "Name of the resolver function.",
1337
+ "enum": [
1338
+ "shapedb:get",
1339
+ "shapedb:create",
1340
+ "shapedb:update",
1341
+ "shapedb:delete",
1342
+ "shapedb:duplicate",
1343
+ "shapedb:find"
1344
+ ]
1345
+ },
1346
+ "service": {
1347
+ "type": "string",
1348
+ "description": "Internal service identifier.",
1349
+ "enum": [
1350
+ "shapedb"
1351
+ ]
1352
+ },
1353
+ "options": {
1354
+ "title": "ShapedbResolverOptions",
1355
+ "type": "object",
1356
+ "additionalProperties": true
1357
+ },
1358
+ "argsMapping": {
1359
+ "$ref": "#/definitions/argsMapping"
1360
+ },
1361
+ "resultsMapping": {
1362
+ "$ref": "#/definitions/resultsMapping"
1363
+ },
1364
+ "shapeName": {
1365
+ "description": "A Shape name for the resolver to use.",
1366
+ "type": "string",
1367
+ "minLength": 1
1368
+ },
1369
+ "args": {
1370
+ "description": "Mapping and serialization configuration for args.",
1371
+ "$ref": "#/definitions/parameterConfigForJson"
1372
+ },
1373
+ "results": {
1374
+ "description": "Mapping configuration for the results of this resolver step.",
1375
+ "$ref": "#/definitions/parameterConfigForJson"
1376
+ }
1377
+ },
1378
+ "required": [
1379
+ "name",
1380
+ "service",
1381
+ "shapeName"
1382
+ ],
1383
+ "additionalProperties": false
1384
+ },
1385
+ "shapedbResolverShapeNameNotRequired": {
1386
+ "title": "ShapedbResolverShapeNameNotRequired",
1387
+ "type": "object",
1388
+ "properties": {
1389
+ "if": {
1390
+ "type": "string"
1391
+ },
1392
+ "id": {
1393
+ "type": "string",
1394
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1395
+ },
1396
+ "name": {
1397
+ "title": "ShapedbResolverShapeNameNotRequiredName",
1398
+ "type": "string",
1399
+ "description": "Name of the resolver function.",
1400
+ "enum": [
1401
+ "shapedb:list",
1402
+ "shapedb:taxonomySuggest",
1403
+ "shapedb:getRelated"
1404
+ ]
1405
+ },
1406
+ "service": {
1407
+ "type": "string",
1408
+ "description": "Internal service identifier.",
1409
+ "enum": [
1410
+ "shapedb"
1411
+ ]
1412
+ },
1413
+ "options": {
1414
+ "title": "ShapedbResolverShapeNameNotRequiredOptions",
1415
+ "type": "object",
1416
+ "additionalProperties": true
1417
+ },
1418
+ "shapeName": {
1419
+ "description": "An optional Shape name for the resolver.",
1420
+ "type": "string",
1421
+ "minLength": 1
1422
+ },
1423
+ "args": {
1424
+ "description": "Mapping and serialization configuration for args.",
1425
+ "$ref": "#/definitions/parameterConfigForJson"
1426
+ },
1427
+ "results": {
1428
+ "description": "Mapping configuration for the results of this resolver step.",
1429
+ "$ref": "#/definitions/parameterConfigForJson"
1430
+ },
1431
+ "argsMapping": {
1432
+ "$ref": "#/definitions/argsMapping"
1433
+ },
1434
+ "resultsMapping": {
1435
+ "$ref": "#/definitions/resultsMapping"
1436
+ }
1437
+ },
1438
+ "required": [
1439
+ "name",
1440
+ "service"
1441
+ ],
1442
+ "additionalProperties": false
1443
+ },
1444
+ "aiToolConfig": {
1445
+ "title": "AIToolConfig",
1446
+ "type": "object",
1447
+ "properties": {
1448
+ "ref": {
1449
+ "type": "string"
1450
+ },
1451
+ "selectionSet": {
1452
+ "type": "string"
1453
+ }
1454
+ },
1455
+ "required": [
1456
+ "ref"
1457
+ ],
1458
+ "additionalProperties": false
1459
+ },
1460
+ "aiSimilarityGuardrail": {
1461
+ "title": "AISimilarityGuardrail",
1462
+ "type": "object",
1463
+ "properties": {
1464
+ "name": {
1465
+ "enum": [
1466
+ "similarity"
1467
+ ]
1468
+ },
1469
+ "shape": {
1470
+ "type": "string"
1471
+ },
1472
+ "defaultResponse": {
1473
+ "type": "string"
1474
+ },
1475
+ "threshold": {
1476
+ "type": "number"
1477
+ }
1478
+ },
1479
+ "required": [
1480
+ "name",
1481
+ "shape",
1482
+ "defaultResponse"
1483
+ ],
1484
+ "additionalProperties": false
1485
+ },
1486
+ "aiGuardrail": {
1487
+ "title": "AIGuardrail",
1488
+ "discriminator": {
1489
+ "propertyName": "name"
1490
+ },
1491
+ "oneOf": [
1492
+ {
1493
+ "$ref": "#/definitions/aiSimilarityGuardrail"
1494
+ }
1495
+ ]
1496
+ },
1497
+ "aiGenerateTextResolverOptions": {
1498
+ "title": "AIGenerateTextResolverOptions",
1499
+ "type": "object",
1500
+ "properties": {
1501
+ "history": {
1502
+ "title": "history",
1503
+ "type": "boolean"
1504
+ },
1505
+ "maxTokens": {
1506
+ "type": "integer",
1507
+ "title": "Maximum Tokens",
1508
+ "description": "Maximum number of tokens to generate."
1509
+ },
1510
+ "temperature": {
1511
+ "type": "number",
1512
+ "title": "Temperature",
1513
+ "description": "This is a number between 0 (almost no randomness) and 1 (very random). It is recommended to set either `temperature` or `topP`, but not both. Defaults to 0",
1514
+ "minimum": 0,
1515
+ "maximum": 1
1516
+ },
1517
+ "topP": {
1518
+ "type": "number",
1519
+ "title": "Top P",
1520
+ "description": "Nucleus sampling. This is a number between 0 and 1. E.g. 0.1 would mean that only tokens with the top 10% probability mass are considered. It is recommended to set either `temperature` or `topP`, but not both.",
1521
+ "minimum": 0,
1522
+ "maximum": 1
1523
+ },
1524
+ "topK": {
1525
+ "type": "number",
1526
+ "title": "Top K",
1527
+ "description": "Only sample from the top K options for each subsequent token. Used to remove \"long tail\" low probability responses. Recommended for advanced use cases only. You usually only need to use temperature."
1528
+ },
1529
+ "presencePenalty": {
1530
+ "type": "number",
1531
+ "title": "Presence penalty setting",
1532
+ "description": "It affects the likelihood of the model to repeat information that is already in the prompt. The presence penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.",
1533
+ "minimum": -1,
1534
+ "maximum": 1
1535
+ },
1536
+ "frequencyPenalty": {
1537
+ "type": "number",
1538
+ "title": "Frequency penalty setting",
1539
+ "description": "It affects the likelihood of the model to repeatedly use the same words or phrases. The frequency penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.",
1540
+ "minimum": -1,
1541
+ "maximum": 1
1542
+ },
1543
+ "stopSequences": {
1544
+ "title": "Stop sequences",
1545
+ "description": "If set, the model will stop generating text when one of the stop sequences is generated.",
1546
+ "type": "array",
1547
+ "items": {
1548
+ "type": "string"
1549
+ }
1550
+ },
1551
+ "seed": {
1552
+ "type": "integer",
1553
+ "title": "Seed",
1554
+ "description": " The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results."
1555
+ },
1556
+ "maxRetries": {
1557
+ "type": "integer",
1558
+ "description": "Maximum number of retries. Set to 0 to disable retries. Defaults to 2"
1559
+ },
1560
+ "toolChoice": {
1561
+ "type": "string",
1562
+ "description": "The tool choice strategy. Default: 'auto'",
1563
+ "anyOf": [
1564
+ {
1565
+ "enum": [
1566
+ "auto",
1567
+ "none",
1568
+ "required"
1569
+ ]
1570
+ },
1571
+ {
1572
+ "type": "string"
1573
+ }
1574
+ ]
1575
+ },
1576
+ "maxToolRoundtrips": {
1577
+ "type": "integer",
1578
+ "description": "Maximal number of automatic roundtrips for tool calls."
1579
+ }
1580
+ }
1581
+ },
1582
+ "aiGenerateTextResolver": {
1583
+ "title": "AIGenerateTextResolver",
1584
+ "type": "object",
1585
+ "properties": {
1586
+ "if": {
1587
+ "type": "string"
1588
+ },
1589
+ "id": {
1590
+ "type": "string",
1591
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1592
+ },
1593
+ "name": {
1594
+ "title": "AI Resolver Name",
1595
+ "type": "string",
1596
+ "description": "Name of the resolver function.",
1597
+ "enum": [
1598
+ "ai:generateText",
1599
+ "ai:chat"
1600
+ ]
1601
+ },
1602
+ "service": {
1603
+ "type": "string",
1604
+ "description": "Configuration for a service to use with this resolver."
1605
+ },
1606
+ "options": {
1607
+ "$ref": "#/definitions/aiGenerateTextResolverOptions"
1608
+ },
1609
+ "systemPrompt": {
1610
+ "type": "string"
1611
+ },
1612
+ "inputTemplate": {
1613
+ "type": "string"
1614
+ },
1615
+ "model": {
1616
+ "type": "string"
1617
+ },
1618
+ "tools": {
1619
+ "type": "array",
1620
+ "items": {
1621
+ "oneOf": [
1622
+ {
1623
+ "type": "string"
1624
+ },
1625
+ {
1626
+ "$ref": "#/definitions/aiToolConfig"
1627
+ }
1628
+ ]
1629
+ }
1630
+ },
1631
+ "guardrails": {
1632
+ "type": "array",
1633
+ "items": {
1634
+ "$ref": "#/definitions/aiGuardrail"
1635
+ }
1636
+ },
1637
+ "context": {
1638
+ "description": "Mapping and serialization configuration for prompt context.",
1639
+ "$ref": "#/definitions/parameterConfigForJson"
1640
+ },
1641
+ "results": {
1642
+ "description": "Mapping configuration for the results of this resolver step.",
1643
+ "$ref": "#/definitions/parameterConfigForJson"
1644
+ }
1645
+ },
1646
+ "required": [
1647
+ "name",
1648
+ "service",
1649
+ "model",
1650
+ "systemPrompt"
1651
+ ],
1652
+ "additionalProperties": false
1653
+ },
1654
+ "aiEmbeddingResolverOptions": {
1655
+ "title": "AIEmbeddingResolverOptions",
1656
+ "type": "object",
1657
+ "properties": {
1658
+ "useDependencies": {
1659
+ "type": "boolean"
1660
+ }
1661
+ }
1662
+ },
1663
+ "aiEmbeddingResolver": {
1664
+ "title": "AIEmbeddingResolver",
1665
+ "type": "object",
1666
+ "properties": {
1667
+ "if": {
1668
+ "type": "string"
1669
+ },
1670
+ "id": {
1671
+ "type": "string",
1672
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1673
+ },
1674
+ "name": {
1675
+ "title": "AI Resolver Name",
1676
+ "type": "string",
1677
+ "description": "Name of the resolver function.",
1678
+ "enum": [
1679
+ "ai:createEmbedding"
1680
+ ]
1681
+ },
1682
+ "service": {
1683
+ "type": "string",
1684
+ "description": "Configuration for a service to use with this resolver."
1685
+ },
1686
+ "options": {
1687
+ "$ref": "#/definitions/aiEmbeddingResolverOptions"
1688
+ },
1689
+ "model": {
1690
+ "type": "string"
1691
+ },
1692
+ "args": {
1693
+ "description": "Mapping and serialization configuration for prompt context.",
1694
+ "$ref": "#/definitions/parameterConfigForJson"
1695
+ },
1696
+ "results": {
1697
+ "description": "Mapping configuration for the results of this resolver step.",
1698
+ "$ref": "#/definitions/parameterConfigForJson"
1699
+ }
1700
+ },
1701
+ "required": [
1702
+ "name",
1703
+ "service",
1704
+ "model"
1705
+ ],
1706
+ "additionalProperties": false
1707
+ },
1708
+ "aiParseFileResolverOptions": {
1709
+ "title": "AIParseFileResolverOptions",
1710
+ "type": "object"
1711
+ },
1712
+ "aiParseFileResolver": {
1713
+ "title": "AIParseFileResolver",
1714
+ "type": "object",
1715
+ "properties": {
1716
+ "if": {
1717
+ "type": "string"
1718
+ },
1719
+ "id": {
1720
+ "type": "string",
1721
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1722
+ },
1723
+ "name": {
1724
+ "title": "AI Resolver Name",
1725
+ "type": "string",
1726
+ "description": "Name of the resolver function.",
1727
+ "enum": [
1728
+ "ai:parseFile"
1729
+ ]
1730
+ },
1731
+ "service": {
1732
+ "type": "string",
1733
+ "description": "Configuration for a service to use with this resolver."
1734
+ },
1735
+ "options": {
1736
+ "$ref": "#/definitions/aiEmbeddingResolverOptions"
1737
+ },
1738
+ "args": {
1739
+ "description": "Mapping and serialization configuration for prompt context.",
1740
+ "$ref": "#/definitions/parameterConfigForJson"
1741
+ },
1742
+ "results": {
1743
+ "description": "Mapping configuration for the results of this resolver step.",
1744
+ "$ref": "#/definitions/parameterConfigForJson"
1745
+ }
1746
+ },
1747
+ "required": [
1748
+ "name",
1749
+ "service"
1750
+ ],
1751
+ "additionalProperties": false
1752
+ },
1753
+ "aiRunAgentResolver": {
1754
+ "title": "AIRunAgentResolver",
1755
+ "type": "object",
1756
+ "properties": {
1757
+ "id": {
1758
+ "type": "string",
1759
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1760
+ },
1761
+ "name": {
1762
+ "title": "AI Resolver Name",
1763
+ "type": "string",
1764
+ "description": "Name of the resolver function.",
1765
+ "enum": [
1766
+ "ai:runAgent"
1767
+ ]
1768
+ },
1769
+ "agentName": {
1770
+ "type": "string",
1771
+ "pattern": "^[0-9A-Za-z_]+$"
1772
+ },
1773
+ "inputStateId": {
1774
+ "type": "string",
1775
+ "pattern": "^[0-9A-Za-z_]+$"
1776
+ }
1777
+ },
1778
+ "required": [
1779
+ "name",
1780
+ "agentName",
1781
+ "inputStateId"
1782
+ ],
1783
+ "additionalProperties": false
1784
+ },
1785
+ "takeshapeResolver": {
1786
+ "title": "TakeshapeResolver",
1787
+ "type": "object",
1788
+ "properties": {
1789
+ "if": {
1790
+ "type": "string"
1791
+ },
1792
+ "id": {
1793
+ "type": "string",
1794
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1795
+ },
1796
+ "name": {
1797
+ "title": "TakeshapeResolverName",
1798
+ "type": "string",
1799
+ "description": "Name of the resolver function.",
1800
+ "enum": [
1801
+ "takeshape:getUser",
1802
+ "takeshape:search",
1803
+ "takeshape:vectorSearch",
1804
+ "takeshape:queryApiIndex"
1805
+ ]
1806
+ },
1807
+ "service": {
1808
+ "type": "string",
1809
+ "description": "Internal service identifier.",
1810
+ "enum": [
1811
+ "takeshape"
1812
+ ]
1813
+ },
1814
+ "options": {
1815
+ "title": "TakeshapeResolverOptions",
1816
+ "type": "object",
1817
+ "additionalProperties": true
1818
+ },
1819
+ "shapeName": {
1820
+ "description": "An optional Shape name for the resolver.",
1821
+ "type": "string",
1822
+ "minLength": 1
1823
+ },
1824
+ "args": {
1825
+ "description": "Mapping and serialization configuration for args.",
1826
+ "$ref": "#/definitions/parameterConfigForJson"
1827
+ },
1828
+ "results": {
1829
+ "description": "Mapping configuration for the results of this resolver step.",
1830
+ "$ref": "#/definitions/parameterConfigForJson"
1831
+ },
1832
+ "argsMapping": {
1833
+ "$ref": "#/definitions/argsMapping"
1834
+ },
1835
+ "resultsMapping": {
1836
+ "$ref": "#/definitions/resultsMapping"
1837
+ }
1838
+ },
1839
+ "required": [
1840
+ "name",
1841
+ "service"
1842
+ ],
1843
+ "additionalProperties": false
1844
+ },
1845
+ "graphqlResolver": {
1846
+ "title": "GraphqlResolver",
1847
+ "type": "object",
1848
+ "properties": {
1849
+ "if": {
1850
+ "type": "string"
1851
+ },
1852
+ "id": {
1853
+ "type": "string",
1854
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1855
+ },
1856
+ "name": {
1857
+ "title": "GraphqlResolverName",
1858
+ "type": "string",
1859
+ "description": "Name of the resolver function.",
1860
+ "enum": [
1861
+ "graphql:query",
1862
+ "graphql:mutation",
1863
+ "shopify:bulkQuery"
1864
+ ]
1865
+ },
1866
+ "service": {
1867
+ "type": "string",
1868
+ "description": "Configuration for a service to use with this resolver."
1869
+ },
1870
+ "argsMapping": {
1871
+ "$ref": "#/definitions/argsMapping"
1872
+ },
1873
+ "resultsMapping": {
1874
+ "$ref": "#/definitions/resultsMapping"
1875
+ },
1876
+ "options": {
1877
+ "title": "GraphqlResolverOptions",
1878
+ "type": "object",
1879
+ "properties": {
1880
+ "selectionSet": {
1881
+ "type": "string"
1882
+ },
1883
+ "unboxParentSelectionSet": {
1884
+ "type": "boolean"
1885
+ },
1886
+ "ignoreErrors": {
1887
+ "type": "boolean"
1888
+ },
1889
+ "skipWhenMissingArgs": {
1890
+ "type": "boolean"
1891
+ },
1892
+ "ttl": {
1893
+ "type": "number"
1894
+ },
1895
+ "timeout": {
1896
+ "type": "number"
1897
+ },
1898
+ "allowStream": {
1899
+ "type": "boolean"
1900
+ },
1901
+ "retry": {
1902
+ "oneOf": [
1903
+ {
1904
+ "type": "number"
1905
+ },
1906
+ {
1907
+ "type": "object"
1908
+ }
1909
+ ]
1910
+ }
1911
+ },
1912
+ "additionalProperties": true
1913
+ },
1914
+ "fieldName": {
1915
+ "description": "A fieldname to use in queries.",
1916
+ "type": "string"
1917
+ },
1918
+ "headers": {
1919
+ "description": "Mapping and serialization configuration for headers.",
1920
+ "$ref": "#/definitions/parameterConfigForHeaders"
1921
+ },
1922
+ "searchParams": {
1923
+ "description": "Mapping and serialization configuration for searchParams.",
1924
+ "$ref": "#/definitions/parameterConfigForSearchParams"
1925
+ },
1926
+ "args": {
1927
+ "description": "Mapping and serialization configuration for args.",
1928
+ "$ref": "#/definitions/parameterConfigForJson"
1929
+ },
1930
+ "results": {
1931
+ "description": "Mapping configuration for the results of this resolver step.",
1932
+ "$ref": "#/definitions/parameterConfigForJson"
1933
+ }
1934
+ },
1935
+ "required": [
1936
+ "name",
1937
+ "service",
1938
+ "fieldName"
1939
+ ],
1940
+ "additionalProperties": false
1941
+ },
1942
+ "restResolver": {
1943
+ "title": "RestResolver",
1944
+ "type": "object",
1945
+ "properties": {
1946
+ "if": {
1947
+ "type": "string"
1948
+ },
1949
+ "id": {
1950
+ "type": "string",
1951
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1952
+ },
1953
+ "name": {
1954
+ "title": "RestResolverName",
1955
+ "type": "string",
1956
+ "description": "Name of the resolver function.",
1957
+ "enum": [
1958
+ "rest:get",
1959
+ "rest:head",
1960
+ "rest:post",
1961
+ "rest:put",
1962
+ "rest:patch",
1963
+ "rest:delete"
1964
+ ]
1965
+ },
1966
+ "service": {
1967
+ "type": "string",
1968
+ "description": "Configuration for a service to use with this resolver."
1969
+ },
1970
+ "argsMapping": {
1971
+ "$ref": "#/definitions/argsMapping"
1972
+ },
1973
+ "searchParamsMapping": {
1974
+ "$ref": "#/definitions/searchParamsMapping"
1975
+ },
1976
+ "resultsMapping": {
1977
+ "$ref": "#/definitions/resultsMapping"
1978
+ },
1979
+ "options": {
1980
+ "title": "RestResolverOptions",
1981
+ "type": "object",
1982
+ "properties": {
1983
+ "trailingSlash": {
1984
+ "type": "boolean"
1985
+ },
1986
+ "allowStream": {
1987
+ "type": "boolean"
1988
+ },
1989
+ "ttl": {
1990
+ "type": "number"
1991
+ },
1992
+ "timeout": {
1993
+ "type": "number"
1994
+ },
1995
+ "retry": {
1996
+ "oneOf": [
1997
+ {
1998
+ "type": "number"
1999
+ },
2000
+ {
2001
+ "type": "object"
2002
+ }
2003
+ ]
2004
+ }
2005
+ },
2006
+ "additionalProperties": true
2007
+ },
2008
+ "body": {
2009
+ "description": "Mapping and serialization configuration for a request body.",
2010
+ "$ref": "#/definitions/parameterConfigForBody"
2011
+ },
2012
+ "form": {
2013
+ "description": "Mapping and serialization configuration for form data.",
2014
+ "$ref": "#/definitions/parameterConfigForSearchParams"
2015
+ },
2016
+ "headers": {
2017
+ "description": "Mapping and serialization configuration for headers.",
2018
+ "$ref": "#/definitions/parameterConfigForHeaders"
2019
+ },
2020
+ "json": {
2021
+ "description": "Mapping and serialization configuration for a json request body.",
2022
+ "$ref": "#/definitions/parameterConfigForJson"
2023
+ },
2024
+ "path": {
2025
+ "description": "Mapping and serialization configuration for the path, or a simple string.",
2026
+ "oneOf": [
2027
+ {
2028
+ "$ref": "#/definitions/parameterConfigForPathParams"
2029
+ },
2030
+ {
2031
+ "type": "string"
2032
+ }
2033
+ ]
2034
+ },
2035
+ "searchParams": {
2036
+ "description": "Mapping and serialization configuration for searchParams.",
2037
+ "$ref": "#/definitions/parameterConfigForSearchParams"
2038
+ },
2039
+ "args": {
2040
+ "description": "Mapping and serialization configuration for args.",
2041
+ "$ref": "#/definitions/parameterConfigForJson"
2042
+ },
2043
+ "results": {
2044
+ "description": "Mapping configuration for the results of this resolver step.",
2045
+ "$ref": "#/definitions/parameterConfigForJson"
2046
+ }
2047
+ },
2048
+ "required": [
2049
+ "name",
2050
+ "service",
2051
+ "path"
2052
+ ],
2053
+ "additionalProperties": false
2054
+ },
2055
+ "awsLambdaResolver": {
2056
+ "title": "AwsLambdaResolver",
2057
+ "type": "object",
2058
+ "properties": {
2059
+ "if": {
2060
+ "type": "string"
2061
+ },
2062
+ "id": {
2063
+ "type": "string",
2064
+ "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
2065
+ },
2066
+ "name": {
2067
+ "title": "AwsLambdaResolverName",
2068
+ "type": "string",
2069
+ "description": "Name of the resolver function.",
2070
+ "enum": [
2071
+ "awsLambda:invoke"
2072
+ ]
2073
+ },
2074
+ "service": {
2075
+ "type": "string",
2076
+ "description": "Configuration for a service to use with this resolver."
2077
+ },
2078
+ "options": {
2079
+ "title": "AwsLambdaResolverOptions",
2080
+ "type": "object",
2081
+ "additionalProperties": true
2082
+ },
2083
+ "payload": {
2084
+ "description": "Mapping configuration the Payload.",
2085
+ "$ref": "#/definitions/parameterConfigForJson"
2086
+ },
2087
+ "functionName": {
2088
+ "description": "Mapping configuration for the FunctionName.",
2089
+ "oneOf": [
2090
+ {
2091
+ "type": "string"
2092
+ },
2093
+ {
2094
+ "$ref": "#/definitions/parameterConfigForAwsLambda"
2095
+ }
2096
+ ]
2097
+ },
2098
+ "clientContext": {
2099
+ "description": "Mapping configuration for the ClientContext.",
2100
+ "$ref": "#/definitions/parameterConfigForJson"
2101
+ },
2102
+ "args": {
2103
+ "description": "Mapping and serialization configuration for args.",
2104
+ "$ref": "#/definitions/parameterConfigForJson"
2105
+ },
2106
+ "results": {
2107
+ "description": "Mapping configuration for the results of this resolver step.",
2108
+ "$ref": "#/definitions/parameterConfigForJson"
2109
+ },
2110
+ "argsMapping": {
2111
+ "$ref": "#/definitions/argsMapping"
2112
+ },
2113
+ "searchParamsMapping": {
2114
+ "description": "Set or evaluate directives to generate searchParams for the service endpoint.",
2115
+ "$ref": "#/definitions/searchParamsMapping"
2116
+ },
2117
+ "resultsMapping": {
2118
+ "$ref": "#/definitions/resultsMapping"
2119
+ }
2120
+ },
2121
+ "required": [
2122
+ "name",
2123
+ "service",
2124
+ "functionName"
2125
+ ],
2126
+ "additionalProperties": false
2127
+ },
2128
+ "composeResolver": {
2129
+ "title": "ComposeResolver",
2130
+ "type": "object",
2131
+ "properties": {
2132
+ "compose": {
2133
+ "type": "array",
2134
+ "items": {
2135
+ "$ref": "#/definitions/basicResolver"
2136
+ }
2137
+ },
2138
+ "resultsMapping": {
2139
+ "oneOf": [
2140
+ {
2141
+ "$ref": "#/definitions/directiveMappingMap"
2142
+ },
2143
+ {
2144
+ "$ref": "#/definitions/directiveConfig"
2145
+ }
2146
+ ]
2147
+ },
2148
+ "results": {
2149
+ "description": "Mapping configuration for final query results.",
2150
+ "$ref": "#/definitions/parameterConfigForJson"
2151
+ }
2152
+ },
2153
+ "required": [
2154
+ "compose"
2155
+ ],
2156
+ "additionalProperties": false
2157
+ },
2158
+ "resolver": {
2159
+ "title": "Resolver",
2160
+ "oneOf": [
2161
+ {
2162
+ "$ref": "#/definitions/basicResolver"
2163
+ },
2164
+ {
2165
+ "$ref": "#/definitions/composeResolver"
2166
+ }
2167
+ ]
2168
+ },
2169
+ "dependencies": {
2170
+ "title": "Dependencies",
2171
+ "type": "string"
2172
+ },
2173
+ "ref": {
2174
+ "title": "Ref",
2175
+ "type": "string"
2176
+ },
2177
+ "indexed": {
2178
+ "title": "Indexed",
2179
+ "type": "object",
2180
+ "properties": {
2181
+ "nested": {
2182
+ "type": "boolean"
2183
+ }
2184
+ },
2185
+ "additionalProperties": false
2186
+ },
2187
+ "graphql": {
2188
+ "title": "GraphQLConfig",
2189
+ "type": "object",
2190
+ "properties": {
2191
+ "json": {
2192
+ "type": "boolean"
2193
+ }
2194
+ },
2195
+ "additionalProperties": false
2196
+ },
2197
+ "query": {
2198
+ "title": "Query JSON",
2199
+ "type": "object",
2200
+ "properties": {
2201
+ "args": {
2202
+ "description": "The args field specifies the name of a Shape for the input arguments required by your resolver.",
2203
+ "$ref": "#/definitions/args"
2204
+ },
2205
+ "resolver": {
2206
+ "description": "Configures the resolver for your query or mutation.",
2207
+ "$ref": "#/definitions/resolver"
2208
+ },
2209
+ "shape": {
2210
+ "$ref": "#/definitions/returnShape",
2211
+ "description": "Specifies which shape is returned by the query or mutation. The shape can refer to a shape in the schema's \"shapes\" object or a shape that's available on a service schema."
2212
+ },
2213
+ "description": {
2214
+ "type": "string",
2215
+ "description": "Provides more detail about what the query or mutation is for. This will be displayed in the automatically-generated GraphQL API docs."
2216
+ }
2217
+ },
2218
+ "required": [
2219
+ "resolver",
2220
+ "shape"
2221
+ ],
2222
+ "additionalProperties": false
2223
+ },
2224
+ "propertySchema": {
2225
+ "title": "PropertySchema",
2226
+ "type": "object",
2227
+ "properties": {
2228
+ "$ref": {
2229
+ "type": "string",
2230
+ "format": "uri-reference"
2231
+ },
2232
+ "title": {
2233
+ "type": "string"
2234
+ },
2235
+ "description": {
2236
+ "type": "string"
2237
+ },
2238
+ "default": {},
2239
+ "readOnly": {
2240
+ "type": "boolean",
2241
+ "default": false
2242
+ },
2243
+ "multipleOf": {
2244
+ "type": "number",
2245
+ "exclusiveMinimum": 0
2246
+ },
2247
+ "maximum": {
2248
+ "type": "number"
2249
+ },
2250
+ "exclusiveMaximum": {
2251
+ "type": "number"
2252
+ },
2253
+ "minimum": {
2254
+ "type": "number"
2255
+ },
2256
+ "exclusiveMinimum": {
2257
+ "type": "number"
2258
+ },
2259
+ "maxLength": {
2260
+ "$ref": "#/definitions/nonNegativeInteger"
2261
+ },
2262
+ "minLength": {
2263
+ "$ref": "#/definitions/nonNegativeIntegerDefault0"
2264
+ },
2265
+ "pattern": {
2266
+ "type": "string",
2267
+ "format": "regex"
2268
+ },
2269
+ "additionalItems": {
2270
+ "$ref": "#/definitions/propertySchema"
2271
+ },
2272
+ "items": {
2273
+ "$ref": "#/definitions/propertySchema"
2274
+ },
2275
+ "maxItems": {
2276
+ "$ref": "#/definitions/nonNegativeInteger"
2277
+ },
2278
+ "minItems": {
2279
+ "$ref": "#/definitions/nonNegativeIntegerDefault0"
2280
+ },
2281
+ "uniqueItems": {
2282
+ "type": "boolean",
2283
+ "default": false
2284
+ },
2285
+ "contains": {
2286
+ "$ref": "#/definitions/propertySchema"
2287
+ },
2288
+ "maxProperties": {
2289
+ "$ref": "#/definitions/nonNegativeInteger"
2290
+ },
2291
+ "minProperties": {
2292
+ "$ref": "#/definitions/nonNegativeIntegerDefault0"
2293
+ },
2294
+ "required": {
2295
+ "$ref": "#/definitions/stringArray"
2296
+ },
2297
+ "additionalProperties": {
2298
+ "oneOf": [
2299
+ {
2300
+ "$ref": "#/definitions/propertySchema"
2301
+ },
2302
+ {
2303
+ "enum": [
2304
+ false
2305
+ ]
2306
+ }
2307
+ ]
2308
+ },
2309
+ "definitions": {
2310
+ "type": "object",
2311
+ "additionalProperties": {
2312
+ "$ref": "#/definitions/propertySchema"
2313
+ },
2314
+ "default": {}
2315
+ },
2316
+ "properties": {
2317
+ "type": "object",
2318
+ "additionalProperties": {
2319
+ "$ref": "#/definitions/propertySchema"
2320
+ },
2321
+ "default": {}
2322
+ },
2323
+ "const": {},
2324
+ "enum": {
2325
+ "type": "array",
2326
+ "minItems": 1,
2327
+ "uniqueItems": true
2328
+ },
2329
+ "type": {
2330
+ "anyOf": [
2331
+ {
2332
+ "$ref": "#/definitions/simpleTypes"
2333
+ },
2334
+ {
2335
+ "type": "array",
2336
+ "items": {
2337
+ "$ref": "#/definitions/simpleTypes"
2338
+ },
2339
+ "minItems": 1,
2340
+ "uniqueItems": true
2341
+ }
2342
+ ]
2343
+ },
2344
+ "format": {
2345
+ "type": "string"
2346
+ },
2347
+ "contentMediaType": {
2348
+ "type": "string"
2349
+ },
2350
+ "contentEncoding": {
2351
+ "type": "string"
2352
+ },
2353
+ "allOf": {
2354
+ "$ref": "#/definitions/schemaArray"
2355
+ },
2356
+ "discriminator": {
2357
+ "type": "object",
2358
+ "properties": {
2359
+ "propertyName": {
2360
+ "type": "string"
2361
+ }
2362
+ }
2363
+ },
2364
+ "oneOf": {
2365
+ "$ref": "#/definitions/schemaArray"
2366
+ },
2367
+ "extends": {
2368
+ "$ref": "#/definitions/objectOrRefArray"
2369
+ },
2370
+ "@backreference": {
2371
+ "$ref": "#/definitions/backreference"
2372
+ },
2373
+ "@input": {
2374
+ "description": "A PropertySchema providing an alternative shape for a GraphQL input type.",
2375
+ "$ref": "#/definitions/propertySchema"
2376
+ },
2377
+ "@output": {
2378
+ "description": "A PropertySchema which is original output.",
2379
+ "$ref": "#/definitions/propertySchema"
2380
+ },
2381
+ "@syncLocaleStructure": {
2382
+ "type": "boolean"
2383
+ },
2384
+ "@sensitive": {
2385
+ "type": "boolean"
2386
+ },
2387
+ "@draftjs": {
2388
+ "type": "boolean"
2389
+ },
2390
+ "@l10n": {
2391
+ "type": "boolean"
2392
+ },
2393
+ "@key": {
2394
+ "type": "string",
2395
+ "pattern": "^[-_a-zA-Z0-9]+$"
2396
+ },
2397
+ "@workflow": {
2398
+ "type": "string"
2399
+ },
2400
+ "@mapping": {
2401
+ "$ref": "#/definitions/fieldMapping"
2402
+ },
2403
+ "@tag": {
2404
+ "type": "string"
2405
+ },
2406
+ "@tags": {
2407
+ "type": "array",
2408
+ "items": {
2409
+ "type": "string"
2410
+ }
2411
+ },
2412
+ "@deprecationReason": {
2413
+ "type": "string"
2414
+ },
2415
+ "@args": {
2416
+ "$ref": "#/definitions/args"
2417
+ },
2418
+ "@resolver": {
2419
+ "$ref": "#/definitions/resolver"
2420
+ },
2421
+ "@dependencies": {
2422
+ "$ref": "#/definitions/dependencies"
2423
+ },
2424
+ "@ref": {
2425
+ "$ref": "#/definitions/ref"
2426
+ },
2427
+ "@derivedFrom": {
2428
+ "type": "string"
2429
+ },
2430
+ "@indexed": {
2431
+ "$ref": "#/definitions/indexed"
2432
+ },
2433
+ "@graphql": {
2434
+ "$ref": "#/definitions/graphql"
2435
+ }
2436
+ },
2437
+ "additionalProperties": false
2438
+ },
2439
+ "shape": {
2440
+ "title": "Shape JSON",
2441
+ "description": "A Shape is a schema object for structuring and storing data from one or more sources, including the TakeShape data store and connected services",
2442
+ "type": "object",
2443
+ "properties": {
2444
+ "name": {
2445
+ "type": "string",
2446
+ "pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
2447
+ "description": "The Pascal-cased human-readable id for a Shape. This value should match the shape's key in the shapes object. This value is used in @ref and @mapping annotations"
2448
+ },
2449
+ "id": {
2450
+ "type": "string",
2451
+ "pattern": "[0-9A-Za-z_-]+",
2452
+ "description": "The machine-readable id for a Shape which should never change. When using TakeShape's built-in database to store Shape data, this value is used database as a stable \"table name\" and changing it will result in orphaning that data."
2453
+ },
2454
+ "title": {
2455
+ "type": "string",
2456
+ "description": "The human-readable name for a Shape for use in a UI."
2457
+ },
2458
+ "description": {
2459
+ "type": "string"
2460
+ },
2461
+ "type": {
2462
+ "enum": [
2463
+ "interface",
2464
+ "input",
2465
+ "output"
2466
+ ]
2467
+ },
2468
+ "interfaces": {
2469
+ "type": "array",
2470
+ "items": {
2471
+ "type": "string"
2472
+ }
2473
+ },
2474
+ "model": {
2475
+ "description": "Specifying a model type allows Shape data to be stored in TakeShape's built-in database",
2476
+ "type": "object",
2477
+ "properties": {
2478
+ "type": {
2479
+ "title": "Model Type",
2480
+ "type": "string",
2481
+ "enum": [
2482
+ "single",
2483
+ "multiple",
2484
+ "taxonomy"
2485
+ ]
2486
+ }
2487
+ },
2488
+ "required": [
2489
+ "type"
2490
+ ],
2491
+ "additionalProperties": false
2492
+ },
2493
+ "workflow": {
2494
+ "type": "string"
2495
+ },
2496
+ "loaders": {
2497
+ "$ref": "#/definitions/shapeLoaders"
2498
+ },
2499
+ "joins": {
2500
+ "$ref": "#/definitions/shapeJoins"
2501
+ },
2502
+ "cache": {
2503
+ "$ref": "#/definitions/shapeCacheConfig"
2504
+ },
2505
+ "schema": {
2506
+ "$ref": "#/definitions/shapeSchema"
2507
+ }
2508
+ },
2509
+ "required": [
2510
+ "name",
2511
+ "title",
2512
+ "id",
2513
+ "schema"
2514
+ ],
2515
+ "additionalProperties": false
2516
+ },
2517
+ "shapeWithObjectSchema": {
2518
+ "title": "Shape With Object Schema",
2519
+ "type": "object",
2520
+ "allOf": [
2521
+ {
2522
+ "$ref": "#/definitions/shape"
2523
+ },
2524
+ {
2525
+ "type": "object",
2526
+ "properties": {
2527
+ "schema": {
2528
+ "$ref": "#/definitions/objectSchema"
2529
+ }
2530
+ },
2531
+ "required": [
2532
+ "schema"
2533
+ ],
2534
+ "additionalProperties": false
2535
+ }
2536
+ ]
2537
+ },
2538
+ "shapeMap": {
2539
+ "title": "Shape Map",
2540
+ "type": "object",
2541
+ "patternProperties": {
2542
+ "^[0-9A-Za-z_]+$": {
2543
+ "$ref": "#/definitions/shape"
2544
+ }
2545
+ },
2546
+ "additionalProperties": false
2547
+ },
2548
+ "agent": {
2549
+ "title": "Agent JSON",
2550
+ "description": "An Agent is a configuration for an AI service such as a chat bot or a search engine.",
2551
+ "type": "object",
2552
+ "properties": {
2553
+ "description": {
2554
+ "type": "string"
2555
+ },
2556
+ "states": {
2557
+ "$ref": "#/definitions/agentStateMap"
2558
+ }
2559
+ },
2560
+ "required": [
2561
+ "states"
2562
+ ],
2563
+ "additionalProperties": false
2564
+ },
2565
+ "agentVariable": {
2566
+ "title": "Agent Variable",
2567
+ "type": "object",
2568
+ "properties": {
2569
+ "name": {
2570
+ "type": "string"
2571
+ },
2572
+ "steps": {
2573
+ "description": "These are evaluated in order until a value is found.",
2574
+ "type": "array",
2575
+ "items": {
2576
+ "$ref": "#/definitions/agentVariableStep"
2577
+ }
2578
+ }
2579
+ },
2580
+ "required": [
2581
+ "name",
2582
+ "steps"
2583
+ ],
2584
+ "additionalProperties": false
2585
+ },
2586
+ "agentVariableStep": {
2587
+ "title": "Agent Variable Step",
2588
+ "discriminator": {
2589
+ "propertyName": "type"
2590
+ },
2591
+ "oneOf": [
2592
+ {
2593
+ "$ref": "#/definitions/agentVariableStepGraphqlArg"
2594
+ },
2595
+ {
2596
+ "$ref": "#/definitions/agentVariableStepStateOutput"
2597
+ },
2598
+ {
2599
+ "$ref": "#/definitions/agentVariableStepPreviousStateOutput"
2600
+ }
2601
+ ]
2602
+ },
2603
+ "agentVariableStepGraphqlArg": {
2604
+ "title": "Agent Variable Step GraphQL Arg",
2605
+ "description": "An Agent Variable that defines a GraphQL argument and makes its value available to templates.",
2606
+ "type": "object",
2607
+ "properties": {
2608
+ "type": {
2609
+ "enum": [
2610
+ "graphqlArg"
2611
+ ]
2612
+ },
2613
+ "argName": {
2614
+ "type": "string"
2615
+ }
2616
+ },
2617
+ "required": [
2618
+ "type",
2619
+ "argName"
2620
+ ],
2621
+ "additionalProperties": false
2622
+ },
2623
+ "agentVariableStepPreviousStateOutput": {
2624
+ "title": "Agent Variable Step Previous State Output",
2625
+ "description": "An Agent Variable that provides the output of the previous state's execution.",
2626
+ "type": "object",
2627
+ "properties": {
2628
+ "type": {
2629
+ "enum": [
2630
+ "previousStateOutput"
2631
+ ]
2632
+ },
2633
+ "path": {
2634
+ "type": "string"
2635
+ }
2636
+ },
2637
+ "required": [
2638
+ "type"
2639
+ ],
2640
+ "additionalProperties": false
2641
+ },
2642
+ "agentVariableStepStateOutput": {
2643
+ "title": "Agent Variable Step State Output",
2644
+ "description": "An Agent Variable that provides the output of any previous state's execution.",
2645
+ "type": "object",
2646
+ "properties": {
2647
+ "type": {
2648
+ "enum": [
2649
+ "stateOutput"
2650
+ ]
2651
+ },
2652
+ "stateId": {
2653
+ "type": "string",
2654
+ "pattern": "^[0-9A-Za-z_]+$"
2655
+ },
2656
+ "path": {
2657
+ "type": "string"
2658
+ }
2659
+ },
2660
+ "required": [
2661
+ "type",
2662
+ "stateId"
2663
+ ],
2664
+ "additionalProperties": false
2665
+ },
2666
+ "agentStateMap": {
2667
+ "title": "Agent States",
2668
+ "description": "States that are traversed during the execution of an agent.",
2669
+ "type": "object",
2670
+ "patternProperties": {
2671
+ "^[0-9A-Za-z_]+$": {
2672
+ "$ref": "#/definitions/agentState"
2673
+ }
2674
+ },
2675
+ "additionalProperties": false
2676
+ },
2677
+ "agentState": {
2678
+ "title": "Agent State",
2679
+ "description": "One step of an agent's execution.",
2680
+ "type": "object",
2681
+ "properties": {
2682
+ "name": {
2683
+ "type": "string"
2684
+ },
2685
+ "variables": {
2686
+ "title": "Variables",
2687
+ "type": "array",
2688
+ "items": {
2689
+ "$ref": "#/definitions/agentVariable"
2690
+ }
2691
+ },
2692
+ "execution": {
2693
+ "$ref": "#/definitions/agentExecution"
2694
+ },
2695
+ "transition": {
2696
+ "title": "Agent State Transition",
2697
+ "description": "These are evaluated in order until a destination is found.",
2698
+ "type": "array",
2699
+ "items": {
2700
+ "default": {
2701
+ "valueCheck": {
2702
+ "type": "none"
2703
+ }
2704
+ },
2705
+ "$ref": "#/definitions/agentTransition"
2706
+ }
2707
+ }
2708
+ },
2709
+ "required": [
2710
+ "name",
2711
+ "execution"
2712
+ ],
2713
+ "additionalProperties": false
2714
+ },
2715
+ "agentExecution": {
2716
+ "title": "Agent Execution",
2717
+ "discriminator": {
2718
+ "propertyName": "type"
2719
+ },
2720
+ "oneOf": [
2721
+ {
2722
+ "$ref": "#/definitions/agentExecutionNoop"
2723
+ },
2724
+ {
2725
+ "$ref": "#/definitions/agentExecutionInput"
2726
+ },
2727
+ {
2728
+ "$ref": "#/definitions/agentExecutionGraphql"
2729
+ },
2730
+ {
2731
+ "$ref": "#/definitions/agentExecutionGenerateText"
2732
+ },
2733
+ {
2734
+ "$ref": "#/definitions/agentExecutionChat"
2735
+ }
2736
+ ]
2737
+ },
2738
+ "agentExecutionNoop": {
2739
+ "title": "Agent Execution No Operation",
2740
+ "type": "object",
2741
+ "properties": {
2742
+ "type": {
2743
+ "enum": [
2744
+ "noop"
2745
+ ]
2746
+ }
2747
+ },
2748
+ "required": [
2749
+ "type"
2750
+ ],
2751
+ "additionalProperties": false
2752
+ },
2753
+ "agentExecutionInputArgument": {
2754
+ "title": "Agent Execution Input Argument",
2755
+ "type": "object",
2756
+ "properties": {
2757
+ "argName": {
2758
+ "type": "string",
2759
+ "pattern": "^[0-9A-Za-z_]+$"
2760
+ },
2761
+ "argType": {
2762
+ "enum": [
2763
+ "boolean",
2764
+ "integer",
2765
+ "number",
2766
+ "string"
2767
+ ]
2768
+ },
2769
+ "required": {
2770
+ "type": "boolean"
2771
+ }
2772
+ },
2773
+ "required": [
2774
+ "argName",
2775
+ "argType"
2776
+ ],
2777
+ "additionalProperties": false
2778
+ },
2779
+ "agentExecutionInput": {
2780
+ "title": "Agent Execution Input",
2781
+ "type": "object",
2782
+ "properties": {
2783
+ "type": {
2784
+ "enum": [
2785
+ "input"
2786
+ ]
2787
+ },
2788
+ "name": {
2789
+ "type": "string",
2790
+ "pattern": "^[0-9A-Za-z_]+$"
2791
+ },
2792
+ "inputType": {
2793
+ "enum": [
2794
+ "query",
2795
+ "mutation"
2796
+ ]
2797
+ },
2798
+ "arguments": {
2799
+ "type": "array",
2800
+ "items": {
2801
+ "$ref": "#/definitions/agentExecutionInputArgument"
2802
+ }
2803
+ }
2804
+ },
2805
+ "required": [
2806
+ "type",
2807
+ "name",
2808
+ "inputType"
2809
+ ],
2810
+ "additionalProperties": false
2811
+ },
2812
+ "agentExecutionGraphql": {
2813
+ "title": "Agent Execution GraphQL",
2814
+ "type": "object",
2815
+ "properties": {
2816
+ "type": {
2817
+ "enum": [
2818
+ "graphql"
2819
+ ]
2820
+ },
2821
+ "query": {
2822
+ "type": "string"
2823
+ },
2824
+ "path": {
2825
+ "type": "string"
2826
+ }
2827
+ },
2828
+ "required": [
2829
+ "type",
2830
+ "query"
2831
+ ],
2832
+ "additionalProperties": false
2833
+ },
2834
+ "agentAiStateInputArg": {
2835
+ "title": "Agent AI State Input Argument",
2836
+ "type": "object",
2837
+ "properties": {
2838
+ "type": {
2839
+ "enum": [
2840
+ "arg"
2841
+ ]
2842
+ },
2843
+ "inputArgName": {
2844
+ "type": "string"
2845
+ }
2846
+ },
2847
+ "required": [
2848
+ "type",
2849
+ "inputArgName"
2850
+ ]
2851
+ },
2852
+ "agentAiStateInputTemplate": {
2853
+ "title": "Agent AI State Input Template",
2854
+ "type": "object",
2855
+ "properties": {
2856
+ "type": {
2857
+ "enum": [
2858
+ "template"
2859
+ ]
2860
+ },
2861
+ "inputTemplate": {
2862
+ "type": "string"
2863
+ }
2864
+ },
2865
+ "required": [
2866
+ "type",
2867
+ "inputTemplate"
2868
+ ]
2869
+ },
2870
+ "agentAiStateInput": {
2871
+ "title": "Agent AI State Input",
2872
+ "type": "object",
2873
+ "discriminator": {
2874
+ "propertyName": "type"
2875
+ },
2876
+ "oneOf": [
2877
+ {
2878
+ "$ref": "#/definitions/agentAiStateInputArg"
2879
+ },
2880
+ {
2881
+ "$ref": "#/definitions/agentAiStateInputTemplate"
2882
+ }
2883
+ ]
2884
+ },
2885
+ "agentExecutionGenerateText": {
2886
+ "title": "Agent Execution Generate Text",
2887
+ "type": "object",
2888
+ "properties": {
2889
+ "type": {
2890
+ "enum": [
2891
+ "generateText"
2892
+ ]
2893
+ },
2894
+ "service": {
2895
+ "type": "string"
2896
+ },
2897
+ "model": {
2898
+ "type": "string"
2899
+ },
2900
+ "systemPrompt": {
2901
+ "type": "string"
2902
+ },
2903
+ "input": {
2904
+ "$ref": "#/definitions/agentAiStateInput"
2905
+ },
2906
+ "jsonSchema": {
2907
+ "type": "string"
2908
+ },
2909
+ "tools": {
2910
+ "type": "array",
2911
+ "items": {
2912
+ "oneOf": [
2913
+ {
2914
+ "$ref": "#/definitions/aiToolConfig"
2915
+ }
2916
+ ]
2917
+ }
2918
+ },
2919
+ "guardrails": {
2920
+ "type": "array",
2921
+ "items": {
2922
+ "$ref": "#/definitions/aiGuardrail"
2923
+ }
2924
+ },
2925
+ "options": {
2926
+ "$ref": "#/definitions/aiGenerateTextResolverOptions"
2927
+ }
2928
+ },
2929
+ "required": [
2930
+ "type",
2931
+ "service",
2932
+ "model",
2933
+ "input"
2934
+ ],
2935
+ "additionalProperties": false
2936
+ },
2937
+ "agentExecutionChat": {
2938
+ "title": "Agent Execution Chat",
2939
+ "type": "object",
2940
+ "properties": {
2941
+ "type": {
2942
+ "enum": [
2943
+ "chat"
2944
+ ]
2945
+ },
2946
+ "service": {
2947
+ "type": "string"
2948
+ },
2949
+ "model": {
2950
+ "type": "string"
2951
+ },
2952
+ "systemPrompt": {
2953
+ "type": "string"
2954
+ },
2955
+ "input": {
2956
+ "$ref": "#/definitions/agentAiStateInput"
2957
+ },
2958
+ "tools": {
2959
+ "type": "array",
2960
+ "items": {
2961
+ "oneOf": [
2962
+ {
2963
+ "$ref": "#/definitions/aiToolConfig"
2964
+ }
2965
+ ]
2966
+ }
2967
+ },
2968
+ "sessionArg": {
2969
+ "type": "string"
2970
+ },
2971
+ "guardrails": {
2972
+ "type": "array",
2973
+ "items": {
2974
+ "$ref": "#/definitions/aiGuardrail"
2975
+ }
2976
+ },
2977
+ "options": {
2978
+ "$ref": "#/definitions/aiGenerateTextResolverOptions"
2979
+ }
2980
+ },
2981
+ "required": [
2982
+ "type",
2983
+ "service",
2984
+ "model",
2985
+ "input",
2986
+ "sessionArg"
2987
+ ],
2988
+ "additionalProperties": false
2989
+ },
2990
+ "valueCheckNone": {
2991
+ "title": "Value Check None",
2992
+ "type": "object",
2993
+ "properties": {
2994
+ "type": {
2995
+ "enum": [
2996
+ "none"
2997
+ ]
2998
+ }
2999
+ },
3000
+ "required": [
3001
+ "type"
3002
+ ]
3003
+ },
3004
+ "valueCheckBoolean": {
3005
+ "title": "Value Check Boolean",
3006
+ "type": "object",
3007
+ "properties": {
3008
+ "type": {
3009
+ "enum": [
3010
+ "boolean"
3011
+ ]
3012
+ },
3013
+ "path": {
3014
+ "type": "string"
3015
+ },
3016
+ "negated": {
3017
+ "type": "boolean"
3018
+ }
3019
+ },
3020
+ "required": [
3021
+ "type",
3022
+ "path"
3023
+ ]
3024
+ },
3025
+ "agentTransition": {
3026
+ "title": "Agent Transition",
3027
+ "type": "object",
3028
+ "properties": {
3029
+ "valueCheck": {
3030
+ "discriminator": {
3031
+ "propertyName": "type"
3032
+ },
3033
+ "oneOf": [
3034
+ {
3035
+ "$ref": "#/definitions/valueCheckNone"
3036
+ },
3037
+ {
3038
+ "$ref": "#/definitions/valueCheckBoolean"
3039
+ }
3040
+ ]
3041
+ },
3042
+ "limit": {
3043
+ "type": "integer"
3044
+ },
3045
+ "destination": {
3046
+ "type": "string",
3047
+ "pattern": "^[0-9A-Za-z_]+$"
3048
+ }
3049
+ },
3050
+ "additionalProperties": false,
3051
+ "required": [
3052
+ "valueCheck",
3053
+ "destination"
3054
+ ]
3055
+ },
3056
+ "aiExperimental": {
3057
+ "title": "AI Experimental",
3058
+ "type": "object",
3059
+ "properties": {
3060
+ "agents": {
3061
+ "$ref": "#/definitions/agentMap",
3062
+ "description": "An Agent is a configuration for an AI service such as a chat bot or a search engine."
3063
+ }
3064
+ },
3065
+ "additionalProperties": false
3066
+ },
3067
+ "agentMap": {
3068
+ "title": "Agent Map",
3069
+ "type": "object",
3070
+ "patternProperties": {
3071
+ "^[0-9A-Za-z_]+$": {
3072
+ "$ref": "#/definitions/agent"
3073
+ }
3074
+ },
3075
+ "additionalProperties": false
3076
+ },
3077
+ "formMap": {
3078
+ "title": "Form Map",
3079
+ "type": "object",
3080
+ "patternProperties": {
3081
+ "[0-9A-Za-z_-]+": {
3082
+ "$ref": "#/definitions/formsConfig"
3083
+ }
3084
+ }
3085
+ },
3086
+ "shapeCacheConfig": {
3087
+ "title": "ShapeCacheConfig",
3088
+ "type": "object",
3089
+ "properties": {
3090
+ "enabled": {
3091
+ "type": "boolean"
3092
+ },
3093
+ "idField": {
3094
+ "type": "string"
3095
+ },
3096
+ "searchSummaryField": {
3097
+ "type": "string"
3098
+ },
3099
+ "fragment": {
3100
+ "$ref": "#/definitions/cachedFragmentConfig"
3101
+ },
3102
+ "triggers": {
3103
+ "type": "array",
3104
+ "items": {
3105
+ "$ref": "#/definitions/cacheTriggerConfig"
3106
+ }
3107
+ },
3108
+ "maxAge": {
3109
+ "description": "Number of seconds this Shape should be cached. Default 0.",
3110
+ "type": "number",
3111
+ "minimum": 0
3112
+ }
3113
+ },
3114
+ "additionalProperties": false,
3115
+ "required": [
3116
+ "enabled"
3117
+ ]
3118
+ },
3119
+ "shapeJoin": {
3120
+ "title": "ShapeJoin",
3121
+ "type": "object",
3122
+ "properties": {
3123
+ "resolver": {
3124
+ "oneOf": [
3125
+ {
3126
+ "$ref": "#/definitions/delegateResolver"
3127
+ },
3128
+ {
3129
+ "$ref": "#/definitions/shapedbResolver"
3130
+ }
3131
+ ]
3132
+ },
3133
+ "dependencies": {
3134
+ "type": "string"
3135
+ }
3136
+ },
3137
+ "required": [
3138
+ "resolver"
3139
+ ],
3140
+ "additionalProperties": false
3141
+ },
3142
+ "shapeJoins": {
3143
+ "title": "ShapeJoins",
3144
+ "type": "object",
3145
+ "patternProperties": {
3146
+ "[:0-9A-Za-z_-]+": {
3147
+ "$ref": "#/definitions/shapeJoin"
3148
+ }
3149
+ }
3150
+ },
3151
+ "shapeLoaders": {
3152
+ "title": "ShapeLoaders",
3153
+ "type": "object",
3154
+ "properties": {
3155
+ "list": {
3156
+ "oneOf": [
3157
+ {
3158
+ "$ref": "#/definitions/storedListQueryLoaderConfig"
3159
+ },
3160
+ {
3161
+ "type": "array",
3162
+ "items": {
3163
+ "$ref": "#/definitions/storedListQueryLoaderConfig"
3164
+ }
3165
+ }
3166
+ ]
3167
+ },
3168
+ "get": {
3169
+ "$ref": "#/definitions/getQueryLoaderConfig"
3170
+ }
3171
+ },
3172
+ "additionalProperties": false,
3173
+ "required": [
3174
+ "list"
3175
+ ]
3176
+ },
3177
+ "cachedFragmentConfig": {
3178
+ "title": "Cached Fragment Config",
3179
+ "type": "object",
3180
+ "properties": {
3181
+ "ignoreFields": {
3182
+ "type": "array",
3183
+ "items": {
3184
+ "type": "string"
3185
+ }
3186
+ },
3187
+ "maxDepth": {
3188
+ "type": "number"
3189
+ },
3190
+ "selectionSet": {
3191
+ "type": "string"
3192
+ },
3193
+ "includeDeprecated": {
3194
+ "type": "boolean"
3195
+ }
3196
+ },
3197
+ "additionalProperties": false
3198
+ },
3199
+ "listQueryLoaderConfig": {
3200
+ "title": "ListQueryLoaderConfig",
3201
+ "type": "object",
3202
+ "properties": {
3203
+ "query": {
3204
+ "type": "string"
3205
+ },
3206
+ "args": {
3207
+ "type": "object",
3208
+ "additionalProperties": true
3209
+ },
3210
+ "pagination": {
3211
+ "$ref": "#/definitions/paginationConfig"
3212
+ }
3213
+ },
3214
+ "additionalProperties": false,
3215
+ "required": [
3216
+ "query"
3217
+ ]
3218
+ },
3219
+ "storedListQueryLoaderConfig": {
3220
+ "title": "StoredListQueryLoaderConfig",
3221
+ "type": "object",
3222
+ "properties": {
3223
+ "query": {
3224
+ "type": "string"
3225
+ },
3226
+ "args": {
3227
+ "oneOf": [
3228
+ {
3229
+ "type": "object",
3230
+ "additionalProperties": true
3231
+ },
3232
+ {
3233
+ "type": "array",
3234
+ "items": {
3235
+ "type": "object",
3236
+ "additionalProperties": true
3237
+ }
3238
+ }
3239
+ ]
3240
+ },
3241
+ "pagination": {
3242
+ "$ref": "#/definitions/paginationConfig"
3243
+ }
3244
+ },
3245
+ "additionalProperties": false,
3246
+ "required": [
3247
+ "query"
3248
+ ]
3249
+ },
3250
+ "getQueryLoaderConfig": {
3251
+ "title": "GetQueryLoaderConfig",
3252
+ "type": "object",
3253
+ "properties": {
3254
+ "query": {
3255
+ "type": "string"
3256
+ },
3257
+ "args": {
3258
+ "type": "object",
3259
+ "additionalProperties": true
3260
+ },
3261
+ "idArg": {
3262
+ "type": "string"
3263
+ }
3264
+ },
3265
+ "additionalProperties": false,
3266
+ "required": [
3267
+ "query"
3268
+ ]
3269
+ },
3270
+ "paginationConfig": {
3271
+ "title": "Pagination Config",
3272
+ "oneOf": [
3273
+ {
3274
+ "$ref": "#/definitions/paginationCursorConfig"
3275
+ },
3276
+ {
3277
+ "$ref": "#/definitions/paginationPageConfig"
3278
+ },
3279
+ {
3280
+ "$ref": "#/definitions/paginationOffsetConfig"
3281
+ }
3282
+ ]
3283
+ },
3284
+ "paginationCursorConfig": {
3285
+ "title": "Pagination Cursor Config",
3286
+ "type": "object",
3287
+ "properties": {
3288
+ "type": {
3289
+ "type": "string",
3290
+ "enum": [
3291
+ "cursor"
3292
+ ]
3293
+ },
3294
+ "cursorArg": {
3295
+ "type": "string"
3296
+ },
3297
+ "cursorPath": {
3298
+ "type": "string"
3299
+ },
3300
+ "pageSize": {
3301
+ "type": "number"
3302
+ },
3303
+ "pageSizeArg": {
3304
+ "type": "string"
3305
+ },
3306
+ "hasMorePath": {
3307
+ "type": "string"
3308
+ },
3309
+ "itemsPath": {
3310
+ "type": "string"
3311
+ }
3312
+ },
3313
+ "additionalProperties": false,
3314
+ "required": [
3315
+ "type",
3316
+ "cursorArg",
3317
+ "cursorPath",
3318
+ "pageSizeArg",
3319
+ "hasMorePath",
3320
+ "itemsPath"
3321
+ ]
3322
+ },
3323
+ "paginationPageConfig": {
3324
+ "title": "Pagination Page Config",
3325
+ "type": "object",
3326
+ "properties": {
3327
+ "type": {
3328
+ "type": "string",
3329
+ "enum": [
3330
+ "page"
3331
+ ]
3332
+ },
3333
+ "pageArg": {
3334
+ "type": "string"
3335
+ },
3336
+ "pageSize": {
3337
+ "type": "number"
3338
+ },
3339
+ "pageSizeArg": {
3340
+ "type": "string"
3341
+ },
3342
+ "itemsPath": {
3343
+ "type": "string"
3344
+ },
3345
+ "pageTotalPath": {
3346
+ "type": "string"
3347
+ }
3348
+ },
3349
+ "additionalProperties": false,
3350
+ "required": [
3351
+ "type",
3352
+ "pageArg",
3353
+ "itemsPath",
3354
+ "pageTotalPath"
3355
+ ]
3356
+ },
3357
+ "paginationOffsetConfig": {
3358
+ "title": "Pagination Offset Config",
3359
+ "type": "object",
3360
+ "properties": {
3361
+ "type": {
3362
+ "type": "string",
3363
+ "enum": [
3364
+ "offset"
3365
+ ]
3366
+ },
3367
+ "offsetArg": {
3368
+ "type": "string"
3369
+ },
3370
+ "pageSize": {
3371
+ "type": "number"
3372
+ },
3373
+ "pageSizeArg": {
3374
+ "type": "string"
3375
+ },
3376
+ "itemsPath": {
3377
+ "type": "string"
3378
+ },
3379
+ "itemTotalPath": {
3380
+ "type": "string"
3381
+ }
3382
+ },
3383
+ "additionalProperties": false,
3384
+ "required": [
3385
+ "type",
3386
+ "offsetArg",
3387
+ "itemsPath",
3388
+ "itemTotalPath"
3389
+ ]
3390
+ },
3391
+ "cacheTriggerConfig": {
3392
+ "title": "CacheTriggerConfig",
3393
+ "oneOf": [
3394
+ {
3395
+ "$ref": "#/definitions/cacheScheduleTriggerConfig"
3396
+ },
3397
+ {
3398
+ "$ref": "#/definitions/cacheWebhookTriggerConfig"
3399
+ }
3400
+ ]
3401
+ },
3402
+ "cacheScheduleTriggerConfig": {
3403
+ "title": "CacheScheduleTriggerConfig",
3404
+ "type": "object",
3405
+ "properties": {
3406
+ "type": {
3407
+ "type": "string",
3408
+ "enum": [
3409
+ "schedule"
3410
+ ]
3411
+ },
3412
+ "loader": {
3413
+ "enum": [
3414
+ "get",
3415
+ "list"
3416
+ ]
3417
+ },
3418
+ "interval": {
3419
+ "type": "number"
3420
+ }
3421
+ },
3422
+ "additionalProperties": false,
3423
+ "required": [
3424
+ "type",
3425
+ "loader",
3426
+ "interval"
3427
+ ]
3428
+ },
3429
+ "cacheWebhookTriggerConfig": {
3430
+ "title": "CacheWebhookTriggerConfig",
3431
+ "type": "object",
3432
+ "properties": {
3433
+ "type": {
3434
+ "type": "string",
3435
+ "enum": [
3436
+ "webhook"
3437
+ ]
3438
+ },
3439
+ "loader": {
3440
+ "enum": [
3441
+ "get",
3442
+ "list"
3443
+ ]
3444
+ },
3445
+ "service": {
3446
+ "type": "string"
3447
+ },
3448
+ "events": {
3449
+ "type": "array",
3450
+ "items": {
3451
+ "type": "string"
3452
+ }
3453
+ }
3454
+ },
3455
+ "additionalProperties": false,
3456
+ "required": [
3457
+ "type",
3458
+ "loader",
3459
+ "service",
3460
+ "events"
3461
+ ]
3462
+ },
3463
+ "formScalarConfig": {
3464
+ "title": "Form Scalar Config",
3465
+ "type": "object",
3466
+ "properties": {
3467
+ "widget": {
3468
+ "type": "string"
3469
+ }
3470
+ },
3471
+ "additionalProperties": false,
3472
+ "required": [
3473
+ "widget"
3474
+ ]
3475
+ },
3476
+ "formObjectConfig": {
3477
+ "title": "Form Object Config",
3478
+ "type": "object",
3479
+ "properties": {
3480
+ "widget": {
3481
+ "type": "string"
3482
+ },
3483
+ "order": {
3484
+ "type": "array",
3485
+ "items": {
3486
+ "type": "string"
3487
+ }
3488
+ },
3489
+ "properties": {
3490
+ "patternProperties": {
3491
+ "[0-9A-Za-z_-]+": {
3492
+ "$ref": "#/definitions/formConfig"
3493
+ }
3494
+ }
3495
+ }
3496
+ },
3497
+ "additionalProperties": false
3498
+ },
3499
+ "formArrayConfig": {
3500
+ "title": "Form Array Config",
3501
+ "type": "object",
3502
+ "properties": {
3503
+ "widget": {
3504
+ "type": "string"
3505
+ },
3506
+ "items": {
3507
+ "$ref": "#/definitions/formConfig"
3508
+ }
3509
+ },
3510
+ "additionalProperties": false,
3511
+ "required": [
3512
+ "widget",
3513
+ "items"
3514
+ ]
3515
+ },
3516
+ "customAuthentication": {
3517
+ "title": "Custom Authentication",
3518
+ "description": "For use with a custom auth handler on a service provider.",
3519
+ "type": "object",
3520
+ "properties": {
3521
+ "type": {
3522
+ "type": "string",
3523
+ "enum": [
3524
+ "custom"
3525
+ ]
3526
+ }
3527
+ },
3528
+ "additionalProperties": true,
3529
+ "required": [
3530
+ "type"
3531
+ ]
3532
+ },
3533
+ "searchParamsAuthentication": {
3534
+ "title": "Search Params Authentication",
3535
+ "type": "object",
3536
+ "properties": {
3537
+ "type": {
3538
+ "type": "string",
3539
+ "enum": [
3540
+ "searchParams"
3541
+ ]
3542
+ },
3543
+ "params": {
3544
+ "type": "array",
3545
+ "items": {
3546
+ "properties": {
3547
+ "name": {
3548
+ "type": "string"
3549
+ },
3550
+ "value": {
3551
+ "type": "string"
3552
+ }
3553
+ },
3554
+ "required": [
3555
+ "name",
3556
+ "value"
3557
+ ],
3558
+ "additionalProperties": false
3559
+ }
3560
+ }
3561
+ },
3562
+ "additionalProperties": false,
3563
+ "required": [
3564
+ "type",
3565
+ "params"
3566
+ ]
3567
+ },
3568
+ "bearerAuthentication": {
3569
+ "title": "Bearer Authentication",
3570
+ "type": "object",
3571
+ "properties": {
3572
+ "type": {
3573
+ "type": "string",
3574
+ "enum": [
3575
+ "bearer"
3576
+ ]
3577
+ },
3578
+ "token": {
3579
+ "type": "string"
3580
+ },
3581
+ "prefix": {
3582
+ "type": "string"
3583
+ },
3584
+ "header": {
3585
+ "type": "string"
3586
+ }
3587
+ },
3588
+ "additionalProperties": false,
3589
+ "required": [
3590
+ "type",
3591
+ "token"
3592
+ ]
3593
+ },
3594
+ "oauth2BearerAuthentication": {
3595
+ "title": "OAuth 2 Bearer Authentication",
3596
+ "type": "object",
3597
+ "properties": {
3598
+ "type": {
3599
+ "type": "string",
3600
+ "enum": [
3601
+ "oauth2Bearer"
3602
+ ]
3603
+ },
3604
+ "token": {
3605
+ "type": "string"
3606
+ },
3607
+ "prefix": {
3608
+ "type": "string"
3609
+ },
3610
+ "header": {
3611
+ "type": "string"
3612
+ },
3613
+ "scope": {
3614
+ "type": "string"
3615
+ },
3616
+ "expiresAt": {
3617
+ "type": "string"
3618
+ }
3619
+ },
3620
+ "additionalProperties": false,
3621
+ "required": [
3622
+ "type",
3623
+ "token"
3624
+ ]
3625
+ },
3626
+ "basicAuthentication": {
3627
+ "title": "Basic Authentication",
3628
+ "type": "object",
3629
+ "properties": {
3630
+ "type": {
3631
+ "type": "string",
3632
+ "enum": [
3633
+ "basic"
3634
+ ]
3635
+ },
3636
+ "username": {
3637
+ "type": "string"
3638
+ },
3639
+ "password": {
3640
+ "type": "string"
3641
+ },
3642
+ "useIso8859": {
3643
+ "type": "boolean"
3644
+ }
3645
+ },
3646
+ "additionalProperties": false,
3647
+ "required": [
3648
+ "type",
3649
+ "username",
3650
+ "password"
3651
+ ]
3652
+ },
3653
+ "oauth2Authentication": {
3654
+ "title": "OAuth 2 Authentication",
3655
+ "type": "object",
3656
+ "properties": {
3657
+ "type": {
3658
+ "type": "string",
3659
+ "enum": [
3660
+ "oauth2"
3661
+ ]
3662
+ },
3663
+ "grantType": {
3664
+ "type": "string",
3665
+ "enum": [
3666
+ "authorizationCode",
3667
+ "clientCredentials"
3668
+ ]
3669
+ },
3670
+ "authorizationUrl": {
3671
+ "type": "string"
3672
+ },
3673
+ "accessTokenUrl": {
3674
+ "type": "string"
3675
+ },
3676
+ "clientId": {
3677
+ "type": "string"
3678
+ },
3679
+ "clientSecret": {
3680
+ "type": "string"
3681
+ },
3682
+ "scope": {
3683
+ "type": "string"
3684
+ },
3685
+ "usePkce": {
3686
+ "type": "boolean"
3687
+ },
3688
+ "redirectUrl": {
3689
+ "type": "string"
3690
+ },
3691
+ "headerPrefix": {
3692
+ "type": "string"
3693
+ },
3694
+ "audience": {
3695
+ "type": "string"
3696
+ },
3697
+ "resource": {
3698
+ "type": "string"
3699
+ }
3700
+ },
3701
+ "additionalProperties": false,
3702
+ "required": [
3703
+ "type",
3704
+ "grantType",
3705
+ "clientId"
3706
+ ]
3707
+ },
3708
+ "awsAuthentication": {
3709
+ "title": "AWS Authentication",
3710
+ "type": "object",
3711
+ "properties": {
3712
+ "type": {
3713
+ "type": "string",
3714
+ "enum": [
3715
+ "aws"
3716
+ ]
3717
+ },
3718
+ "awsAccessKeyId": {
3719
+ "type": "string"
3720
+ },
3721
+ "awsSecretAccessKey": {
3722
+ "type": "string"
3723
+ }
3724
+ },
3725
+ "additionalProperties": false,
3726
+ "required": [
3727
+ "type",
3728
+ "awsAccessKeyId",
3729
+ "awsSecretAccessKey"
3730
+ ]
3731
+ },
3732
+ "serviceAuthentication": {
3733
+ "title": "Service Authentication",
3734
+ "oneOf": [
3735
+ {
3736
+ "$ref": "#/definitions/oauth2Authentication"
3737
+ },
3738
+ {
3739
+ "$ref": "#/definitions/oauth2BearerAuthentication"
3740
+ },
3741
+ {
3742
+ "$ref": "#/definitions/bearerAuthentication"
3743
+ },
3744
+ {
3745
+ "$ref": "#/definitions/basicAuthentication"
3746
+ },
3747
+ {
3748
+ "$ref": "#/definitions/searchParamsAuthentication"
3749
+ },
3750
+ {
3751
+ "$ref": "#/definitions/awsAuthentication"
3752
+ },
3753
+ {
3754
+ "$ref": "#/definitions/customAuthentication"
3755
+ }
3756
+ ]
3757
+ },
3758
+ "serviceHealthCheckTrigger": {
3759
+ "title": "Service Health Check Trigger",
3760
+ "enum": [
3761
+ "manual",
3762
+ "schedule"
3763
+ ]
3764
+ },
3765
+ "serviceHealthCheck": {
3766
+ "title": "Service Health Check",
3767
+ "description": "Configuration for ping health checks.",
3768
+ "type": "object",
3769
+ "properties": {
3770
+ "checkName": {
3771
+ "title": "Check Name",
3772
+ "description": "The name of a health check to run",
3773
+ "type": "string",
3774
+ "enum": [
3775
+ "graphqlIntrospection",
3776
+ "ping",
3777
+ "none"
3778
+ ]
3779
+ },
3780
+ "endpoint": {
3781
+ "title": "Endpoint",
3782
+ "description": "The endpoint to use when checking the service health.",
3783
+ "type": "string"
3784
+ },
3785
+ "requestMethod": {
3786
+ "title": "Request Method",
3787
+ "description": "A custom method to use for the health check request.",
3788
+ "type": "string",
3789
+ "enum": [
3790
+ "GET",
3791
+ "POST",
3792
+ "PUT",
3793
+ "PATCH",
3794
+ "DELETE"
3795
+ ]
3796
+ },
3797
+ "requestHeaders": {
3798
+ "title": "Request Headers",
3799
+ "description": "Any custom headers to set with the health check request.",
3800
+ "type": "object",
3801
+ "propertyNames": {
3802
+ "pattern": "[0-9A-Za-z_-]+"
3803
+ }
3804
+ },
3805
+ "requestSearchParams": {
3806
+ "title": "Request Search Params",
3807
+ "description": "Any custom search params to set with the health check request.",
3808
+ "type": "object",
3809
+ "propertyNames": {
3810
+ "pattern": "[0-9A-Za-z_-]+"
3811
+ }
3812
+ },
3813
+ "requestBody": {
3814
+ "title": "Request Body",
3815
+ "description": "A custom body to send along with the ping request.",
3816
+ "type": "string"
3817
+ },
3818
+ "requestBodyFormat": {
3819
+ "title": "Request Body Format",
3820
+ "description": "A custom body to send along with the ping request.",
3821
+ "type": "string",
3822
+ "enum": [
3823
+ "string",
3824
+ "form",
3825
+ "json",
3826
+ "form-data"
3827
+ ]
3828
+ },
3829
+ "requestTimeout": {
3830
+ "title": "Request Timeout",
3831
+ "description": "The amount of time to wait when receiving a response from the health check, in seconds.",
3832
+ "type": "number",
3833
+ "minimum": 2,
3834
+ "maximum": 60
3835
+ },
3836
+ "healthyResponseStatusCode": {
3837
+ "title": "Healthy Response Status Code",
3838
+ "description": "The response status code that qualifies as healthy.",
3839
+ "type": "number",
3840
+ "minimum": 200,
3841
+ "maximum": 399
3842
+ },
3843
+ "triggers": {
3844
+ "type": "array",
3845
+ "items": {
3846
+ "$ref": "#/definitions/serviceHealthCheckTrigger"
3847
+ }
3848
+ }
3849
+ },
3850
+ "required": [
3851
+ "checkName"
3852
+ ],
3853
+ "additionalProperties": false
3854
+ },
3855
+ "serviceType": {
3856
+ "title": "Service Type",
3857
+ "description": "The general type of this service, specifying how and where it will be utilized.",
3858
+ "type": "string",
3859
+ "enum": [
3860
+ "deployment",
3861
+ "authentication",
3862
+ "takeshape",
3863
+ "rest",
3864
+ "graphql",
3865
+ "openapi",
3866
+ "aws",
3867
+ "unknown"
3868
+ ]
3869
+ },
3870
+ "serviceConfig": {
3871
+ "title": "Service Config",
3872
+ "type": "object",
3873
+ "properties": {
3874
+ "id": {
3875
+ "type": "string",
3876
+ "description": "Machine-readable identifier, should typically be the same as the property name on the services object."
3877
+ },
3878
+ "title": {
3879
+ "type": "string",
3880
+ "description": "Human-readable name for this service."
3881
+ },
3882
+ "provider": {
3883
+ "description": "The service provider id.",
3884
+ "type": "string"
3885
+ },
3886
+ "namespace": {
3887
+ "type": "string",
3888
+ "description": "A namespace to use for the imported types tied to this service."
3889
+ },
3890
+ "serviceType": {
3891
+ "$ref": "#/definitions/serviceType"
3892
+ },
3893
+ "authenticationType": {
3894
+ "type": "string",
3895
+ "enum": [
3896
+ "oauth2",
3897
+ "basic",
3898
+ "bearer",
3899
+ "searchParams",
3900
+ "oauth2Bearer",
3901
+ "custom",
3902
+ "aws",
3903
+ "none",
3904
+ "unknown"
3905
+ ]
3906
+ },
3907
+ "authentication": {
3908
+ "$ref": "#/definitions/serviceAuthentication"
3909
+ },
3910
+ "healthCheck": {
3911
+ "$ref": "#/definitions/serviceHealthCheck"
3912
+ },
3913
+ "webhookId": {
3914
+ "type": "string"
3915
+ },
3916
+ "options": {
3917
+ "type": "object",
3918
+ "description": "Configuration options passed to and handled by the provider."
3919
+ }
3920
+ },
3921
+ "required": [
3922
+ "id",
3923
+ "title",
3924
+ "provider",
3925
+ "serviceType",
3926
+ "authenticationType"
3927
+ ],
3928
+ "additionalProperties": false
3929
+ },
3930
+ "storedServiceConfig": {
3931
+ "title": "Service Config JSON",
3932
+ "type": "object",
3933
+ "properties": {
3934
+ "id": {
3935
+ "type": "string",
3936
+ "description": "Machine-readable identifier, should typically be the same as the property name on the services object."
3937
+ },
3938
+ "title": {
3939
+ "type": "string",
3940
+ "description": "Human-readable name for this service."
3941
+ },
3942
+ "provider": {
3943
+ "type": "string",
3944
+ "description": "The service provider id."
3945
+ },
3946
+ "namespace": {
3947
+ "type": "string",
3948
+ "description": "A namespace to use for the imported types tied to this service."
3949
+ },
3950
+ "serviceType": {
3951
+ "$ref": "#/definitions/serviceType"
3952
+ },
3953
+ "authenticationType": {
3954
+ "type": "string",
3955
+ "enum": [
3956
+ "oauth2",
3957
+ "basic",
3958
+ "bearer",
3959
+ "searchParams",
3960
+ "oauth2Bearer",
3961
+ "custom",
3962
+ "aws",
3963
+ "none",
3964
+ "unknown"
3965
+ ]
3966
+ },
3967
+ "authentication": {
3968
+ "type": "string"
3969
+ },
3970
+ "healthCheck": {
3971
+ "$ref": "#/definitions/serviceHealthCheck"
3972
+ },
3973
+ "webhookId": {
3974
+ "type": "string"
3975
+ },
3976
+ "options": {
3977
+ "type": "object",
3978
+ "description": "Configuration options passed to and handled by the provider."
3979
+ }
3980
+ },
3981
+ "required": [
3982
+ "id",
3983
+ "title",
3984
+ "provider",
3985
+ "serviceType",
3986
+ "authenticationType"
3987
+ ],
3988
+ "additionalProperties": false
3989
+ },
3990
+ "anyServiceConfig": {
3991
+ "title": "Any Service Config",
3992
+ "oneOf": [
3993
+ {
3994
+ "$ref": "#/definitions/storedServiceConfig"
3995
+ },
3996
+ {
3997
+ "$ref": "#/definitions/serviceConfig"
3998
+ }
3999
+ ]
4000
+ },
4001
+ "storedServiceMap": {
4002
+ "title": "Service Map JSON",
4003
+ "type": "object",
4004
+ "patternProperties": {
4005
+ "[0-9A-Za-z_-]+": {
4006
+ "$ref": "#/definitions/storedServiceConfig"
4007
+ }
4008
+ }
4009
+ },
4010
+ "workflowStep": {
4011
+ "title": "Workflow Step",
4012
+ "type": "object",
4013
+ "properties": {
4014
+ "name": {
4015
+ "type": "string",
4016
+ "title": "Name",
4017
+ "pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
4018
+ "description": "machine-readable slug"
4019
+ },
4020
+ "title": {
4021
+ "title": "Title",
4022
+ "type": "string",
4023
+ "description": "Human-readable id for use in the UI"
4024
+ },
4025
+ "description": {
4026
+ "title": "Description",
4027
+ "type": "string"
4028
+ },
4029
+ "color": {
4030
+ "title": "Color",
4031
+ "type": "string",
4032
+ "description": "Hex color code"
4033
+ },
4034
+ "live": {
4035
+ "title": "Live",
4036
+ "type": "boolean",
4037
+ "description": "Value to indicate whether items in the state should be returned in list queries"
4038
+ },
4039
+ "key": {
4040
+ "title": "Key",
4041
+ "type": "string",
4042
+ "description": "machine-readable id"
4043
+ }
4044
+ },
4045
+ "required": [
4046
+ "name",
4047
+ "title",
4048
+ "color",
4049
+ "live",
4050
+ "key"
4051
+ ],
4052
+ "additionalProperties": false
4053
+ },
4054
+ "workflow": {
4055
+ "title": "Workflow",
4056
+ "type": "object",
4057
+ "properties": {
4058
+ "name": {
4059
+ "type": "string",
4060
+ "pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
4061
+ "description": "machine-readable id"
4062
+ },
4063
+ "title": {
4064
+ "type": "string",
4065
+ "title": "Workflow Name",
4066
+ "minLength": 1,
4067
+ "description": "Human-readable id for use in the UI"
4068
+ },
4069
+ "steps": {
4070
+ "type": "array",
4071
+ "title": "Steps",
4072
+ "items": {
4073
+ "$ref": "#/definitions/workflowStep"
4074
+ },
4075
+ "minItems": 1
4076
+ }
4077
+ },
4078
+ "required": [
4079
+ "name",
4080
+ "title",
4081
+ "steps"
4082
+ ]
4083
+ },
4084
+ "workflowMap": {
4085
+ "title": "Workflow Map",
4086
+ "type": "object",
4087
+ "patternProperties": {
4088
+ "[0-9A-Za-z_-]+": {
4089
+ "$ref": "#/definitions/workflow"
4090
+ }
4091
+ }
4092
+ },
4093
+ "formConfig": {
4094
+ "title": "Form Config",
4095
+ "type": "object"
4096
+ },
4097
+ "formsConfig": {
4098
+ "title": "Forms Config",
4099
+ "type": "object",
4100
+ "properties": {
4101
+ "default": {
4102
+ "$ref": "#/definitions/formConfig"
4103
+ }
4104
+ },
4105
+ "patternProperties": {
4106
+ "[0-9A-Za-z_-]+": {
4107
+ "$ref": "#/definitions/formConfig"
4108
+ }
4109
+ },
4110
+ "required": [
4111
+ "default"
4112
+ ]
4113
+ }
4114
+ },
4115
+ "properties": {
4116
+ "$schema": {
4117
+ "type": "string"
4118
+ },
4119
+ "apiVersion": {
4120
+ "type": "string",
4121
+ "description": "The version of the TakeShape API your project is using. We increase the version as we make breaking changes to the API endpoints."
4122
+ },
4123
+ "schemaVersion": {
4124
+ "type": "string",
4125
+ "enum": [
4126
+ "3.48.0"
4127
+ ],
4128
+ "description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
4129
+ },
4130
+ "projectId": {
4131
+ "type": "string",
4132
+ "description": "The ID of the TakeShape project this schema belongs to."
4133
+ },
4134
+ "author": {
4135
+ "type": "string",
4136
+ "description": "The ID of the TakeShape user who created the schema."
4137
+ },
4138
+ "deactivated": {
4139
+ "type": "number"
4140
+ },
4141
+ "defaultLocale": {
4142
+ "type": "string",
4143
+ "minLength": 1,
4144
+ "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{2,3})?$",
4145
+ "description": "The locale that should be preferred when creating new Shape items. This must be an entry in the locales array."
4146
+ },
4147
+ "locales": {
4148
+ "type": "array",
4149
+ "minItems": 1,
4150
+ "items": {
4151
+ "type": "string",
4152
+ "minLength": 1,
4153
+ "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{2,3})?$"
4154
+ }
4155
+ },
4156
+ "queries": {
4157
+ "$ref": "#/definitions/queryMap",
4158
+ "description": "Queries map directly to queries your project's GraphQL API"
4159
+ },
4160
+ "mutations": {
4161
+ "$ref": "#/definitions/queryMap",
4162
+ "description": "Mutations map directly to mutations your project's GraphQL API"
4163
+ },
4164
+ "shapes": {
4165
+ "$ref": "#/definitions/shapeMap",
4166
+ "description": "A Shape is a schema object for structuring and storing data from one or more sources, including the TakeShape data store and connected services."
4167
+ },
4168
+ "ai-experimental": {
4169
+ "$ref": "#/definitions/aiExperimental",
4170
+ "description": "Unstable AI features that will not be migrated when removed. Not suitable for production use."
4171
+ },
4172
+ "forms": {
4173
+ "$ref": "#/definitions/formMap",
4174
+ "description": "Forms define a visual interface for editing Shapes in the TakeShape UI."
4175
+ },
4176
+ "workflows": {
4177
+ "$ref": "#/definitions/workflowMap",
4178
+ "description": "Workflows describe the status of a shape item. Every schema starts with a default workflow with two steps, Disabled and Enabled"
4179
+ },
4180
+ "services": {
4181
+ "$ref": "#/definitions/storedServiceMap",
4182
+ "description": "By connecting new Services to your project schema, you can add shapes, queries, and mutations from 3rd party sources to your API in TakeShape. This allows you to mesh together exactly the API you need to interact with all of the services your app or business depends upon. Services use an encrypted configuration to keep auth tokens secret. For this reason, services can only be added to a schema through the web client or through the Admin API."
4183
+ }
4184
+ },
4185
+ "additionalProperties": false,
4186
+ "required": [
4187
+ "projectId",
4188
+ "apiVersion",
4189
+ "schemaVersion",
4190
+ "defaultLocale",
4191
+ "locales",
4192
+ "shapes",
4193
+ "queries",
4194
+ "mutations",
4195
+ "workflows"
4196
+ ]
4197
+ }