@takeshape/schema 12.1.1 → 12.1.5

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