@takeshape/schema 11.144.1 → 11.154.2

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