@takeshape/schema 11.52.0 → 11.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1024) hide show
  1. package/dist/__tests__/_examples.test.js +77 -0
  2. package/dist/__tests__/agents.test.js +163 -0
  3. package/dist/__tests__/api-version.test.js +24 -0
  4. package/dist/__tests__/builtin-schema.test.js +18 -0
  5. package/dist/__tests__/content-schema-transform.test.d.ts +1 -0
  6. package/dist/__tests__/content-schema-transform.test.js +522 -0
  7. package/dist/__tests__/create-input-schema.test.d.ts +1 -0
  8. package/dist/__tests__/create-input-schema.test.js +184 -0
  9. package/dist/__tests__/enum.test.d.ts +1 -0
  10. package/dist/__tests__/enum.test.js +36 -0
  11. package/dist/__tests__/flatten-templates.test.d.ts +1 -0
  12. package/dist/__tests__/flatten-templates.test.js +40 -0
  13. package/dist/__tests__/get-is-leaf.test.d.ts +1 -0
  14. package/dist/__tests__/get-is-leaf.test.js +50 -0
  15. package/dist/__tests__/interfaces.test.d.ts +1 -0
  16. package/dist/__tests__/interfaces.test.js +219 -0
  17. package/dist/__tests__/migration.test.d.ts +1 -0
  18. package/dist/__tests__/migration.test.js +34 -0
  19. package/dist/__tests__/mocks.test.d.ts +1 -0
  20. package/dist/__tests__/mocks.test.js +24 -0
  21. package/dist/__tests__/refs.test.d.ts +1 -0
  22. package/dist/__tests__/refs.test.js +752 -0
  23. package/dist/__tests__/relationships.test.d.ts +1 -0
  24. package/dist/__tests__/relationships.test.js +638 -0
  25. package/dist/__tests__/schema-transform.test.d.ts +1 -0
  26. package/dist/__tests__/schema-transform.test.js +205 -0
  27. package/dist/__tests__/schema-util.test.d.ts +1 -0
  28. package/dist/__tests__/schema-util.test.js +1731 -0
  29. package/dist/__tests__/service-dependencies.test.d.ts +1 -0
  30. package/dist/__tests__/service-dependencies.test.js +360 -0
  31. package/dist/__tests__/unions.test.d.ts +1 -0
  32. package/dist/__tests__/unions.test.js +44 -0
  33. package/dist/__tests__/validate.test.d.ts +1 -0
  34. package/dist/__tests__/validate.test.js +1926 -0
  35. package/dist/__tests__/workflows.test.d.ts +3 -0
  36. package/dist/__tests__/workflows.test.js +149 -0
  37. package/dist/agents.d.ts +14 -0
  38. package/dist/auth-schemas.d.ts +125 -0
  39. package/dist/builtin-schema.d.ts +8 -0
  40. package/dist/content-schema-transform.d.ts +35 -0
  41. package/dist/content-schema-transform.js +162 -0
  42. package/dist/create-input-schema.d.ts +9 -0
  43. package/dist/enum.d.ts +2 -0
  44. package/dist/flatten-templates.d.ts +2 -0
  45. package/dist/flatten-templates.js +20 -0
  46. package/dist/get-is-leaf.d.ts +3 -0
  47. package/dist/get-is-leaf.js +56 -0
  48. package/dist/index.d.ts +48 -0
  49. package/dist/index.js +46 -0
  50. package/dist/interfaces.d.ts +12 -0
  51. package/dist/interfaces.js +85 -0
  52. package/dist/layers/__tests__/layers.test.d.ts +1 -0
  53. package/dist/layers/__tests__/layers.test.js +38 -0
  54. package/dist/layers/layers.d.ts +26 -0
  55. package/dist/layers/layers.js +301 -0
  56. package/dist/layers/refs.d.ts +102 -0
  57. package/dist/layers/refs.js +220 -0
  58. package/dist/layers/type-utils.d.ts +59 -0
  59. package/dist/layers/type-utils.js +118 -0
  60. package/dist/layers/visitor.d.ts +5 -0
  61. package/dist/layers/visitor.js +38 -0
  62. package/dist/migration/index.d.ts +64 -0
  63. package/dist/migration/index.js +122 -0
  64. package/dist/migration/to/__tests__/v3.10.0.test.d.ts +1 -0
  65. package/dist/migration/to/__tests__/v3.10.0.test.js +90 -0
  66. package/dist/migration/to/__tests__/v3.12.3.test.d.ts +1 -0
  67. package/dist/migration/to/__tests__/v3.12.3.test.js +103 -0
  68. package/dist/migration/to/__tests__/v3.17.test.d.ts +1 -0
  69. package/dist/migration/to/__tests__/v3.17.test.js +71 -0
  70. package/dist/migration/to/__tests__/v3.34.0.test.d.ts +1 -0
  71. package/dist/migration/to/__tests__/v3.34.0.test.js +240 -0
  72. package/dist/migration/to/__tests__/v3.39.0.test.d.ts +1 -0
  73. package/dist/migration/to/__tests__/v3.39.0.test.js +116 -0
  74. package/dist/migration/to/__tests__/v3.46.0.test.d.ts +1 -0
  75. package/dist/migration/to/__tests__/v3.46.0.test.js +59 -0
  76. package/dist/migration/to/v3.0.0.d.ts +4 -0
  77. package/dist/migration/to/v3.0.0.js +212 -0
  78. package/dist/migration/to/v3.1.0.d.ts +4 -0
  79. package/dist/migration/to/v3.1.0.js +194 -0
  80. package/dist/migration/to/v3.10.0.d.ts +4 -0
  81. package/dist/migration/to/v3.11.0.d.ts +4 -0
  82. package/dist/migration/to/v3.12.0.d.ts +4 -0
  83. package/dist/migration/to/v3.12.1.d.ts +4 -0
  84. package/dist/migration/to/v3.12.2.d.ts +4 -0
  85. package/dist/migration/to/v3.12.3.d.ts +4 -0
  86. package/dist/migration/to/v3.13.0.d.ts +4 -0
  87. package/dist/migration/to/v3.14.0.d.ts +4 -0
  88. package/dist/migration/to/v3.15.0.d.ts +4 -0
  89. package/dist/migration/to/v3.16.0.d.ts +4 -0
  90. package/dist/migration/to/v3.17.0.d.ts +4 -0
  91. package/dist/migration/to/v3.17.1.d.ts +4 -0
  92. package/dist/migration/to/v3.18.0.d.ts +4 -0
  93. package/dist/migration/to/v3.18.1.d.ts +4 -0
  94. package/dist/migration/to/v3.18.2.d.ts +4 -0
  95. package/dist/migration/to/v3.19.0.d.ts +4 -0
  96. package/dist/migration/to/v3.2.0.d.ts +4 -0
  97. package/dist/migration/to/v3.20.0.d.ts +4 -0
  98. package/dist/migration/to/v3.21.0.d.ts +4 -0
  99. package/dist/migration/to/v3.22.0.d.ts +4 -0
  100. package/dist/migration/to/v3.23.0.d.ts +4 -0
  101. package/dist/migration/to/v3.24.0.d.ts +4 -0
  102. package/dist/migration/to/v3.25.0.d.ts +4 -0
  103. package/dist/migration/to/v3.26.0.d.ts +4 -0
  104. package/dist/migration/to/v3.27.0.d.ts +4 -0
  105. package/dist/migration/to/v3.28.0.d.ts +4 -0
  106. package/dist/migration/to/v3.29.0.d.ts +4 -0
  107. package/dist/migration/to/v3.3.0.d.ts +4 -0
  108. package/dist/migration/to/v3.30.0.d.ts +4 -0
  109. package/dist/migration/to/v3.31.0.d.ts +4 -0
  110. package/dist/migration/to/v3.32.0.d.ts +4 -0
  111. package/dist/migration/to/v3.32.0.js +59 -0
  112. package/dist/migration/to/v3.33.0.d.ts +4 -0
  113. package/dist/migration/to/v3.34.0.d.ts +6 -0
  114. package/dist/migration/to/v3.34.0.js +116 -0
  115. package/dist/migration/to/v3.35.0.d.ts +4 -0
  116. package/dist/migration/to/v3.36.0.d.ts +4 -0
  117. package/dist/migration/to/v3.37.0.d.ts +4 -0
  118. package/dist/migration/to/v3.38.0.d.ts +4 -0
  119. package/dist/migration/to/v3.39.0.d.ts +4 -0
  120. package/dist/migration/to/v3.39.0.js +45 -0
  121. package/dist/migration/to/v3.4.0.d.ts +4 -0
  122. package/dist/migration/to/v3.40.0.d.ts +4 -0
  123. package/dist/migration/to/v3.41.0.d.ts +4 -0
  124. package/dist/migration/to/v3.42.0.d.ts +4 -0
  125. package/dist/migration/to/v3.43.0.d.ts +4 -0
  126. package/dist/migration/to/v3.44.0.d.ts +4 -0
  127. package/dist/migration/to/v3.45.0.d.ts +4 -0
  128. package/dist/migration/to/v3.46.0.d.ts +4 -0
  129. package/dist/migration/to/v3.47.0.d.ts +4 -0
  130. package/dist/migration/to/v3.48.0.d.ts +4 -0
  131. package/dist/migration/to/v3.49.0.d.ts +4 -0
  132. package/dist/migration/to/v3.5.0.d.ts +4 -0
  133. package/dist/migration/to/v3.5.1.d.ts +4 -0
  134. package/dist/migration/to/v3.50.0.d.ts +4 -0
  135. package/dist/migration/to/v3.51.0.d.ts +4 -0
  136. package/dist/migration/to/v3.6.0.d.ts +4 -0
  137. package/dist/migration/to/v3.7.0.d.ts +4 -0
  138. package/dist/migration/to/v3.8.0.d.ts +4 -0
  139. package/dist/migration/to/v3.9.0.d.ts +4 -0
  140. package/dist/migration/types.d.ts +19 -0
  141. package/dist/migration/types.js +1 -0
  142. package/dist/mocks.d.ts +13 -0
  143. package/dist/mocks.js +58 -0
  144. package/dist/models/__tests__/project-schema.test.d.ts +1 -0
  145. package/dist/models/__tests__/project-schema.test.js +67 -0
  146. package/dist/models/__tests__/query.test.d.ts +1 -0
  147. package/dist/models/__tests__/query.test.js +27 -0
  148. package/dist/models/__tests__/service.test.d.ts +1 -0
  149. package/dist/models/__tests__/service.test.js +17 -0
  150. package/dist/models/__tests__/shape.test.d.ts +1 -0
  151. package/dist/models/__tests__/shape.test.js +61 -0
  152. package/dist/models/project-schema.d.ts +35 -0
  153. package/dist/models/project-schema.js +92 -0
  154. package/dist/models/query.d.ts +17 -0
  155. package/dist/models/service.d.ts +12 -0
  156. package/dist/models/shape.d.ts +41 -0
  157. package/dist/models/shape.js +85 -0
  158. package/dist/patterns.js +1 -0
  159. package/dist/project-schema/index.d.ts +187 -0
  160. package/dist/project-schema/index.js +75 -0
  161. package/dist/project-schema/migrate.d.ts +4 -0
  162. package/dist/project-schema/migrate.js +194 -0
  163. package/dist/refs.d.ts +226 -0
  164. package/dist/refs.js +608 -0
  165. package/dist/relationships.d.ts +40 -0
  166. package/dist/relationships.js +311 -0
  167. package/dist/runtime-schema.d.ts +5 -0
  168. package/dist/runtime-schema.js +80 -0
  169. package/dist/schema-transform.d.ts +19 -0
  170. package/dist/schema-transform.js +74 -0
  171. package/dist/schema-util.d.ts +210 -0
  172. package/dist/schema-util.js +1077 -0
  173. package/dist/schemas/auth-schemas.json +365 -0
  174. package/dist/schemas/index.js +154 -0
  175. package/dist/service-dependencies.d.ts +13 -0
  176. package/dist/service-dependencies.js +165 -0
  177. package/dist/services/__tests__/services.test.d.ts +1 -0
  178. package/dist/services/__tests__/services.test.js +113 -0
  179. package/dist/services/services.d.ts +31 -0
  180. package/dist/services/services.js +145 -0
  181. package/dist/services/types.js +1 -0
  182. package/dist/services/util.d.ts +16 -0
  183. package/dist/taxonomies.d.ts +15 -0
  184. package/dist/taxonomies.js +24 -0
  185. package/dist/template-shapes/__tests__/index.test.d.ts +1 -0
  186. package/dist/template-shapes/__tests__/index.test.js +40 -0
  187. package/dist/template-shapes/__tests__/names.test.d.ts +1 -0
  188. package/dist/template-shapes/__tests__/names.test.js +19 -0
  189. package/dist/template-shapes/__tests__/templates.test.d.ts +1 -0
  190. package/dist/template-shapes/__tests__/templates.test.js +80 -0
  191. package/dist/template-shapes/__tests__/where.test.d.ts +1 -0
  192. package/dist/template-shapes/__tests__/where.test.js +218 -0
  193. package/dist/template-shapes/index.d.ts +7 -0
  194. package/dist/template-shapes/names.d.ts +10 -0
  195. package/dist/template-shapes/templates.d.ts +32 -0
  196. package/dist/template-shapes/templates.js +319 -0
  197. package/dist/template-shapes/types.d.ts +15 -0
  198. package/dist/template-shapes/where.d.ts +37 -0
  199. package/dist/template-shapes/where.js +402 -0
  200. package/dist/types/__tests__/utils.test.d.ts +1 -0
  201. package/dist/types/__tests__/utils.test.js +159 -0
  202. package/dist/types/index.d.ts +3 -0
  203. package/dist/types/index.js +2 -0
  204. package/dist/types/transforms.d.ts +13 -0
  205. package/dist/types/transforms.js +1 -0
  206. package/dist/types/types.d.ts +211 -0
  207. package/dist/types/utils.d.ts +117 -0
  208. package/dist/types/utils.js +279 -0
  209. package/dist/unions.d.ts +14 -0
  210. package/dist/unions.js +77 -0
  211. package/dist/util/__tests__/api-indexing.test.d.ts +1 -0
  212. package/dist/util/__tests__/api-indexing.test.js +129 -0
  213. package/dist/util/__tests__/detect-cycles.test.d.ts +1 -0
  214. package/dist/util/__tests__/detect-cycles.test.js +193 -0
  215. package/dist/util/__tests__/find-shape-at-path.test.d.ts +1 -0
  216. package/dist/util/__tests__/find-shape-at-path.test.js +41 -0
  217. package/dist/util/__tests__/form-config.test.d.ts +1 -0
  218. package/dist/util/__tests__/form-config.test.js +196 -0
  219. package/dist/util/__tests__/get-return-shape.test.d.ts +1 -0
  220. package/dist/util/__tests__/get-return-shape.test.js +27 -0
  221. package/dist/util/__tests__/has-args.test.d.ts +1 -0
  222. package/dist/util/__tests__/has-args.test.js +46 -0
  223. package/dist/util/__tests__/merge.test.d.ts +1 -0
  224. package/dist/util/__tests__/merge.test.js +1074 -0
  225. package/dist/util/__tests__/patch-schema.test.d.ts +1 -0
  226. package/dist/util/__tests__/patch-schema.test.js +82 -0
  227. package/dist/util/__tests__/shapes.test.d.ts +1 -0
  228. package/dist/util/__tests__/shapes.test.js +30 -0
  229. package/dist/util/ai-tools.d.ts +3 -0
  230. package/dist/util/api-indexing.d.ts +9 -0
  231. package/dist/util/api-indexing.js +57 -0
  232. package/dist/util/detect-cycles.d.ts +7 -0
  233. package/dist/util/detect-cycles.js +45 -0
  234. package/dist/util/find-shape-at-path.d.ts +21 -0
  235. package/dist/util/form-config.d.ts +11 -0
  236. package/dist/util/form-config.js +62 -0
  237. package/dist/util/get-conflicting-properties.d.ts +6 -0
  238. package/dist/util/get-conflicting-properties.js +55 -0
  239. package/dist/util/get-return-shape.d.ts +4 -0
  240. package/dist/util/get-return-shape.js +30 -0
  241. package/dist/util/has-arg.d.ts +4 -0
  242. package/dist/util/has-arg.js +13 -0
  243. package/dist/util/merge.d.ts +15 -0
  244. package/dist/util/merge.js +256 -0
  245. package/dist/util/patch-schema.d.ts +8 -0
  246. package/dist/util/shapes.d.ts +5 -0
  247. package/dist/validate/errors.d.ts +3 -0
  248. package/dist/validate/errors.js +20 -0
  249. package/dist/validate/validate.d.ts +73 -0
  250. package/dist/validate/validate.js +1107 -0
  251. package/dist/versions.d.ts +4 -0
  252. package/dist/versions.js +4 -0
  253. package/dist/workflows.d.ts +14 -0
  254. package/dist/workflows.js +66 -0
  255. package/examples/latest/agent-schema.json +12 -4
  256. package/examples/latest/all-fields-shapes-inline.json +52 -18
  257. package/examples/latest/all-fields-shapes.json +76 -26
  258. package/examples/latest/betzino.json +3139 -902
  259. package/examples/latest/blog-schema.json +28 -8
  260. package/examples/latest/brewery-schema.json +25 -7
  261. package/examples/latest/clear-cache-schema.json +7 -3
  262. package/examples/latest/complex-project-schema.json +359 -98
  263. package/examples/latest/complex-schema.json +1754 -487
  264. package/examples/latest/edit-schema.json +11 -4
  265. package/examples/latest/fabric-ecommerce.json +838 -187
  266. package/examples/latest/frank-and-fred-schema.json +1753 -486
  267. package/examples/latest/klirr-schema.json +2411 -682
  268. package/examples/latest/layers/rick-and-morty-layer.json +32 -11
  269. package/examples/latest/layers/shopify-layer-2023-01.json +8637 -2206
  270. package/examples/latest/layers/shopify-storefront-2023-04.json +1714 -404
  271. package/examples/latest/layers/wordpress-2024-01.json +2746 -691
  272. package/examples/latest/massive-schema.json +584 -131
  273. package/examples/latest/mill-components-schema.json +125 -29
  274. package/examples/latest/nested-shape-arrays.json +19 -7
  275. package/examples/latest/one-earth.json +1113 -236
  276. package/examples/latest/pet-oneof-array.json +22 -7
  277. package/examples/latest/post-schema.json +20 -6
  278. package/examples/latest/pruned-shopify-product-schema.json +830 -185
  279. package/examples/latest/rag-example.json +15 -5
  280. package/examples/latest/real-world-schema.json +56 -14
  281. package/examples/latest/recursive-repeater-schema.json +11 -4
  282. package/examples/latest/recursive-schema.json +11 -4
  283. package/examples/latest/rick-and-morty-ast.json +174 -45
  284. package/examples/latest/rick-and-morty-graphql.json +100 -25
  285. package/examples/latest/rick-and-morty-rest.json +7 -3
  286. package/examples/latest/rick-and-morty-with-indexing.json +13 -5
  287. package/examples/latest/schema-where-filter.json +40 -11
  288. package/examples/latest/schema-with-repeater-draftjs.json +8 -3
  289. package/examples/latest/schema-with-rick-and-morty.json +4 -2
  290. package/examples/latest/shape-books-v3_2_0.json +71 -17
  291. package/examples/latest/shape-books.json +71 -17
  292. package/examples/latest/shape-editor-schema-edited.json +69 -23
  293. package/examples/latest/shape-editor-schema-initial.json +28 -10
  294. package/examples/latest/shapedb-crud-every-prop-type.json +22 -8
  295. package/examples/latest/shopify-lookbook.json +19 -5
  296. package/examples/latest/shopify-product-2022-07.json +3217 -726
  297. package/examples/latest/shopify-product-2023-04.json +4496 -1012
  298. package/examples/latest/shopify-store-with-widget.json +942 -213
  299. package/examples/latest/stripe-product-runtime-schema.json +277 -81
  300. package/examples/latest/stripe-starter-resolved.json +1953 -476
  301. package/examples/latest/user-schema-no-required.json +13 -3
  302. package/examples/latest/user-schema-with-defaults.json +27 -5
  303. package/examples/latest/valvoline-ai-demo.json +69 -17
  304. package/examples/latest/vector-search-schema.json +24 -8
  305. package/package.json +23 -24
  306. package/dist/cjs/package.json +0 -1
  307. package/dist/cjs/src/agents.js +0 -147
  308. package/dist/cjs/src/api-version.js +0 -24
  309. package/dist/cjs/src/auth-schemas.js +0 -8
  310. package/dist/cjs/src/builtin-schema.js +0 -616
  311. package/dist/cjs/src/constants.js +0 -4
  312. package/dist/cjs/src/content-schema-transform.js +0 -175
  313. package/dist/cjs/src/create-input-schema.js +0 -66
  314. package/dist/cjs/src/enum.js +0 -12
  315. package/dist/cjs/src/flatten-templates.js +0 -26
  316. package/dist/cjs/src/get-is-leaf.js +0 -59
  317. package/dist/cjs/src/index.js +0 -62
  318. package/dist/cjs/src/interfaces.js +0 -98
  319. package/dist/cjs/src/layers/layers.js +0 -313
  320. package/dist/cjs/src/layers/refs.js +0 -243
  321. package/dist/cjs/src/layers/type-utils.js +0 -145
  322. package/dist/cjs/src/layers/visitor.js +0 -42
  323. package/dist/cjs/src/migration/index.js +0 -142
  324. package/dist/cjs/src/migration/to/v3.0.0.js +0 -217
  325. package/dist/cjs/src/migration/to/v3.1.0.js +0 -199
  326. package/dist/cjs/src/migration/to/v3.10.0.js +0 -72
  327. package/dist/cjs/src/migration/to/v3.11.0.js +0 -90
  328. package/dist/cjs/src/migration/to/v3.12.0.js +0 -12
  329. package/dist/cjs/src/migration/to/v3.12.1.js +0 -12
  330. package/dist/cjs/src/migration/to/v3.12.2.js +0 -12
  331. package/dist/cjs/src/migration/to/v3.12.3.js +0 -92
  332. package/dist/cjs/src/migration/to/v3.13.0.js +0 -22
  333. package/dist/cjs/src/migration/to/v3.14.0.js +0 -12
  334. package/dist/cjs/src/migration/to/v3.15.0.js +0 -12
  335. package/dist/cjs/src/migration/to/v3.16.0.js +0 -12
  336. package/dist/cjs/src/migration/to/v3.17.0.js +0 -27
  337. package/dist/cjs/src/migration/to/v3.17.1.js +0 -12
  338. package/dist/cjs/src/migration/to/v3.18.0.js +0 -69
  339. package/dist/cjs/src/migration/to/v3.18.1.js +0 -20
  340. package/dist/cjs/src/migration/to/v3.18.2.js +0 -24
  341. package/dist/cjs/src/migration/to/v3.19.0.js +0 -12
  342. package/dist/cjs/src/migration/to/v3.2.0.js +0 -12
  343. package/dist/cjs/src/migration/to/v3.20.0.js +0 -29
  344. package/dist/cjs/src/migration/to/v3.21.0.js +0 -12
  345. package/dist/cjs/src/migration/to/v3.22.0.js +0 -30
  346. package/dist/cjs/src/migration/to/v3.23.0.js +0 -12
  347. package/dist/cjs/src/migration/to/v3.24.0.js +0 -13
  348. package/dist/cjs/src/migration/to/v3.25.0.js +0 -13
  349. package/dist/cjs/src/migration/to/v3.26.0.js +0 -12
  350. package/dist/cjs/src/migration/to/v3.27.0.js +0 -12
  351. package/dist/cjs/src/migration/to/v3.28.0.js +0 -12
  352. package/dist/cjs/src/migration/to/v3.29.0.js +0 -12
  353. package/dist/cjs/src/migration/to/v3.3.0.js +0 -15
  354. package/dist/cjs/src/migration/to/v3.30.0.js +0 -12
  355. package/dist/cjs/src/migration/to/v3.31.0.js +0 -43
  356. package/dist/cjs/src/migration/to/v3.32.0.js +0 -61
  357. package/dist/cjs/src/migration/to/v3.33.0.js +0 -12
  358. package/dist/cjs/src/migration/to/v3.34.0.js +0 -123
  359. package/dist/cjs/src/migration/to/v3.35.0.js +0 -12
  360. package/dist/cjs/src/migration/to/v3.36.0.js +0 -27
  361. package/dist/cjs/src/migration/to/v3.37.0.js +0 -12
  362. package/dist/cjs/src/migration/to/v3.38.0.js +0 -12
  363. package/dist/cjs/src/migration/to/v3.39.0.js +0 -47
  364. package/dist/cjs/src/migration/to/v3.4.0.js +0 -12
  365. package/dist/cjs/src/migration/to/v3.40.0.js +0 -31
  366. package/dist/cjs/src/migration/to/v3.41.0.js +0 -12
  367. package/dist/cjs/src/migration/to/v3.42.0.js +0 -12
  368. package/dist/cjs/src/migration/to/v3.43.0.js +0 -12
  369. package/dist/cjs/src/migration/to/v3.44.0.js +0 -12
  370. package/dist/cjs/src/migration/to/v3.45.0.js +0 -12
  371. package/dist/cjs/src/migration/to/v3.46.0.js +0 -37
  372. package/dist/cjs/src/migration/to/v3.47.0.js +0 -12
  373. package/dist/cjs/src/migration/to/v3.48.0.js +0 -12
  374. package/dist/cjs/src/migration/to/v3.49.0.js +0 -12
  375. package/dist/cjs/src/migration/to/v3.5.0.js +0 -12
  376. package/dist/cjs/src/migration/to/v3.5.1.js +0 -12
  377. package/dist/cjs/src/migration/to/v3.50.0.js +0 -12
  378. package/dist/cjs/src/migration/to/v3.51.0.js +0 -12
  379. package/dist/cjs/src/migration/to/v3.6.0.js +0 -12
  380. package/dist/cjs/src/migration/to/v3.7.0.js +0 -12
  381. package/dist/cjs/src/migration/to/v3.8.0.js +0 -12
  382. package/dist/cjs/src/migration/to/v3.9.0.js +0 -84
  383. package/dist/cjs/src/migration/types.js +0 -2
  384. package/dist/cjs/src/migration/utils.js +0 -10
  385. package/dist/cjs/src/mocks.js +0 -65
  386. package/dist/cjs/src/models/project-schema.js +0 -99
  387. package/dist/cjs/src/models/query.js +0 -35
  388. package/dist/cjs/src/models/service.js +0 -24
  389. package/dist/cjs/src/models/shape.js +0 -89
  390. package/dist/cjs/src/patterns.js +0 -2
  391. package/dist/cjs/src/project-schema/index.js +0 -156
  392. package/dist/cjs/src/project-schema/latest.js +0 -8
  393. package/dist/cjs/src/project-schema/migrate.js +0 -198
  394. package/dist/cjs/src/project-schema/v1.0.0.js +0 -8
  395. package/dist/cjs/src/project-schema/v3.0.0.js +0 -8
  396. package/dist/cjs/src/project-schema/v3.1.0.js +0 -8
  397. package/dist/cjs/src/project-schema/v3.10.0.js +0 -8
  398. package/dist/cjs/src/project-schema/v3.11.0.js +0 -8
  399. package/dist/cjs/src/project-schema/v3.12.0.js +0 -8
  400. package/dist/cjs/src/project-schema/v3.12.1.js +0 -8
  401. package/dist/cjs/src/project-schema/v3.12.2.js +0 -8
  402. package/dist/cjs/src/project-schema/v3.12.3.js +0 -8
  403. package/dist/cjs/src/project-schema/v3.13.0.js +0 -8
  404. package/dist/cjs/src/project-schema/v3.13.1.js +0 -8
  405. package/dist/cjs/src/project-schema/v3.14.0.js +0 -8
  406. package/dist/cjs/src/project-schema/v3.15.0.js +0 -8
  407. package/dist/cjs/src/project-schema/v3.16.0.js +0 -8
  408. package/dist/cjs/src/project-schema/v3.17.0.js +0 -8
  409. package/dist/cjs/src/project-schema/v3.17.1.js +0 -8
  410. package/dist/cjs/src/project-schema/v3.18.0.js +0 -8
  411. package/dist/cjs/src/project-schema/v3.18.1.js +0 -8
  412. package/dist/cjs/src/project-schema/v3.18.2.js +0 -8
  413. package/dist/cjs/src/project-schema/v3.19.0.js +0 -8
  414. package/dist/cjs/src/project-schema/v3.2.0.js +0 -8
  415. package/dist/cjs/src/project-schema/v3.20.0.js +0 -8
  416. package/dist/cjs/src/project-schema/v3.21.0.js +0 -8
  417. package/dist/cjs/src/project-schema/v3.22.0.js +0 -8
  418. package/dist/cjs/src/project-schema/v3.23.0.js +0 -8
  419. package/dist/cjs/src/project-schema/v3.24.0.js +0 -8
  420. package/dist/cjs/src/project-schema/v3.25.0.js +0 -8
  421. package/dist/cjs/src/project-schema/v3.26.0.js +0 -8
  422. package/dist/cjs/src/project-schema/v3.27.0.js +0 -8
  423. package/dist/cjs/src/project-schema/v3.28.0.js +0 -8
  424. package/dist/cjs/src/project-schema/v3.29.0.js +0 -8
  425. package/dist/cjs/src/project-schema/v3.3.0.js +0 -8
  426. package/dist/cjs/src/project-schema/v3.30.0.js +0 -8
  427. package/dist/cjs/src/project-schema/v3.31.0.js +0 -8
  428. package/dist/cjs/src/project-schema/v3.32.0.js +0 -8
  429. package/dist/cjs/src/project-schema/v3.33.0.js +0 -8
  430. package/dist/cjs/src/project-schema/v3.34.0.js +0 -8
  431. package/dist/cjs/src/project-schema/v3.35.0.js +0 -8
  432. package/dist/cjs/src/project-schema/v3.36.0.js +0 -8
  433. package/dist/cjs/src/project-schema/v3.37.0.js +0 -8
  434. package/dist/cjs/src/project-schema/v3.38.0.js +0 -8
  435. package/dist/cjs/src/project-schema/v3.39.0.js +0 -8
  436. package/dist/cjs/src/project-schema/v3.4.0.js +0 -8
  437. package/dist/cjs/src/project-schema/v3.40.0.js +0 -8
  438. package/dist/cjs/src/project-schema/v3.41.0.js +0 -8
  439. package/dist/cjs/src/project-schema/v3.42.0.js +0 -8
  440. package/dist/cjs/src/project-schema/v3.43.0.js +0 -8
  441. package/dist/cjs/src/project-schema/v3.44.0.js +0 -8
  442. package/dist/cjs/src/project-schema/v3.45.0.js +0 -8
  443. package/dist/cjs/src/project-schema/v3.46.0.js +0 -8
  444. package/dist/cjs/src/project-schema/v3.47.0.js +0 -8
  445. package/dist/cjs/src/project-schema/v3.48.0.js +0 -8
  446. package/dist/cjs/src/project-schema/v3.49.0.js +0 -8
  447. package/dist/cjs/src/project-schema/v3.5.0.js +0 -8
  448. package/dist/cjs/src/project-schema/v3.5.1.js +0 -8
  449. package/dist/cjs/src/project-schema/v3.50.0.js +0 -8
  450. package/dist/cjs/src/project-schema/v3.51.0.js +0 -8
  451. package/dist/cjs/src/project-schema/v3.6.0.js +0 -8
  452. package/dist/cjs/src/project-schema/v3.7.0.js +0 -8
  453. package/dist/cjs/src/project-schema/v3.8.0.js +0 -8
  454. package/dist/cjs/src/project-schema/v3.9.0.js +0 -8
  455. package/dist/cjs/src/project-schema/v4.0.0.js +0 -8
  456. package/dist/cjs/src/refs.js +0 -671
  457. package/dist/cjs/src/relationships.js +0 -326
  458. package/dist/cjs/src/runtime-schema.js +0 -88
  459. package/dist/cjs/src/scalars.js +0 -8
  460. package/dist/cjs/src/schema-transform.js +0 -83
  461. package/dist/cjs/src/schema-util.js +0 -1140
  462. package/dist/cjs/src/schemas/auth-schemas.json +0 -313
  463. package/dist/cjs/src/schemas/index.js +0 -162
  464. package/dist/cjs/src/schemas/user-schema.json +0 -51
  465. package/dist/cjs/src/service-dependencies.js +0 -172
  466. package/dist/cjs/src/services/services.js +0 -156
  467. package/dist/cjs/src/services/types.js +0 -2
  468. package/dist/cjs/src/services/util.js +0 -45
  469. package/dist/cjs/src/taxonomies.js +0 -28
  470. package/dist/cjs/src/template-shapes/index.js +0 -37
  471. package/dist/cjs/src/template-shapes/names.js +0 -26
  472. package/dist/cjs/src/template-shapes/templates.js +0 -331
  473. package/dist/cjs/src/template-shapes/types.js +0 -10
  474. package/dist/cjs/src/template-shapes/where.js +0 -414
  475. package/dist/cjs/src/types/index.js +0 -19
  476. package/dist/cjs/src/types/transforms.js +0 -2
  477. package/dist/cjs/src/types/types.js +0 -21
  478. package/dist/cjs/src/types/utils.js +0 -344
  479. package/dist/cjs/src/unions.js +0 -88
  480. package/dist/cjs/src/user-schema.js +0 -8
  481. package/dist/cjs/src/util/ai-tools.js +0 -10
  482. package/dist/cjs/src/util/api-indexing.js +0 -62
  483. package/dist/cjs/src/util/detect-cycles.js +0 -48
  484. package/dist/cjs/src/util/find-shape-at-path.js +0 -57
  485. package/dist/cjs/src/util/form-config.js +0 -66
  486. package/dist/cjs/src/util/get-conflicting-properties.js +0 -58
  487. package/dist/cjs/src/util/get-return-shape.js +0 -34
  488. package/dist/cjs/src/util/has-arg.js +0 -17
  489. package/dist/cjs/src/util/merge.js +0 -269
  490. package/dist/cjs/src/util/patch-schema.js +0 -55
  491. package/dist/cjs/src/util/shapes.js +0 -31
  492. package/dist/cjs/src/validate.js +0 -1140
  493. package/dist/cjs/src/versions.js +0 -8
  494. package/dist/cjs/src/workflows.js +0 -76
  495. package/dist/cjs/tsconfig.cjs.tsbuildinfo +0 -1
  496. package/dist/esm/package.json +0 -1
  497. package/dist/esm/src/content-schema-transform.js +0 -162
  498. package/dist/esm/src/flatten-templates.js +0 -20
  499. package/dist/esm/src/get-is-leaf.js +0 -56
  500. package/dist/esm/src/index.js +0 -46
  501. package/dist/esm/src/interfaces.js +0 -85
  502. package/dist/esm/src/layers/layers.js +0 -301
  503. package/dist/esm/src/layers/refs.js +0 -220
  504. package/dist/esm/src/layers/type-utils.js +0 -118
  505. package/dist/esm/src/layers/visitor.js +0 -38
  506. package/dist/esm/src/migration/index.js +0 -122
  507. package/dist/esm/src/migration/to/v3.0.0.js +0 -212
  508. package/dist/esm/src/migration/to/v3.1.0.js +0 -194
  509. package/dist/esm/src/migration/to/v3.32.0.js +0 -59
  510. package/dist/esm/src/migration/to/v3.34.0.js +0 -116
  511. package/dist/esm/src/migration/to/v3.39.0.js +0 -45
  512. package/dist/esm/src/mocks.js +0 -58
  513. package/dist/esm/src/models/project-schema.js +0 -92
  514. package/dist/esm/src/models/shape.js +0 -85
  515. package/dist/esm/src/project-schema/index.js +0 -138
  516. package/dist/esm/src/project-schema/migrate.js +0 -194
  517. package/dist/esm/src/refs.js +0 -608
  518. package/dist/esm/src/relationships.js +0 -311
  519. package/dist/esm/src/runtime-schema.js +0 -80
  520. package/dist/esm/src/schema-transform.js +0 -74
  521. package/dist/esm/src/schema-util.js +0 -1077
  522. package/dist/esm/src/schemas/auth-schemas.json +0 -313
  523. package/dist/esm/src/schemas/index.js +0 -154
  524. package/dist/esm/src/schemas/project-schema/experimental.json +0 -1101
  525. package/dist/esm/src/schemas/project-schema/latest.json +0 -3320
  526. package/dist/esm/src/schemas/project-schema/meta-schema-v1.0.0.json +0 -193
  527. package/dist/esm/src/schemas/project-schema/meta-schema-v3.0.0.json +0 -608
  528. package/dist/esm/src/schemas/project-schema/meta-schema-v3.1.0.json +0 -608
  529. package/dist/esm/src/schemas/project-schema/meta-schema-v3.2.0.json +0 -612
  530. package/dist/esm/src/schemas/project-schema/meta-schema-v3.3.0.json +0 -612
  531. package/dist/esm/src/schemas/project-schema/meta-schema-v3.4.0.json +0 -637
  532. package/dist/esm/src/schemas/project-schema/meta-schema-v3.5.0.json +0 -626
  533. package/dist/esm/src/schemas/project-schema/meta-schema-v3.5.1.json +0 -626
  534. package/dist/esm/src/schemas/project-schema/meta-schema-v3.6.0.json +0 -629
  535. package/dist/esm/src/schemas/project-schema/meta-schema-v3.7.0.json +0 -1137
  536. package/dist/esm/src/schemas/project-schema/meta-schema-v3.8.0.json +0 -1137
  537. package/dist/esm/src/schemas/project-schema/meta-schema-v3.9.0.json +0 -1477
  538. package/dist/esm/src/schemas/project-schema/v1.0.0.json +0 -321
  539. package/dist/esm/src/schemas/project-schema/v3.0.0.json +0 -414
  540. package/dist/esm/src/schemas/project-schema/v3.1.0.json +0 -572
  541. package/dist/esm/src/schemas/project-schema/v3.10.0.json +0 -2097
  542. package/dist/esm/src/schemas/project-schema/v3.11.0.json +0 -2141
  543. package/dist/esm/src/schemas/project-schema/v3.12.0.json +0 -2144
  544. package/dist/esm/src/schemas/project-schema/v3.12.1.json +0 -2282
  545. package/dist/esm/src/schemas/project-schema/v3.12.2.json +0 -2304
  546. package/dist/esm/src/schemas/project-schema/v3.12.3.json +0 -2357
  547. package/dist/esm/src/schemas/project-schema/v3.13.0.json +0 -2377
  548. package/dist/esm/src/schemas/project-schema/v3.14.0.json +0 -2385
  549. package/dist/esm/src/schemas/project-schema/v3.15.0.json +0 -2365
  550. package/dist/esm/src/schemas/project-schema/v3.16.0.json +0 -2373
  551. package/dist/esm/src/schemas/project-schema/v3.17.0.json +0 -2378
  552. package/dist/esm/src/schemas/project-schema/v3.17.1.json +0 -2380
  553. package/dist/esm/src/schemas/project-schema/v3.18.0.json +0 -2356
  554. package/dist/esm/src/schemas/project-schema/v3.18.1.json +0 -2357
  555. package/dist/esm/src/schemas/project-schema/v3.18.2.json +0 -2357
  556. package/dist/esm/src/schemas/project-schema/v3.19.0.json +0 -2369
  557. package/dist/esm/src/schemas/project-schema/v3.2.0.json +0 -580
  558. package/dist/esm/src/schemas/project-schema/v3.20.0.json +0 -2369
  559. package/dist/esm/src/schemas/project-schema/v3.21.0.json +0 -2376
  560. package/dist/esm/src/schemas/project-schema/v3.22.0.json +0 -2381
  561. package/dist/esm/src/schemas/project-schema/v3.23.0.json +0 -2456
  562. package/dist/esm/src/schemas/project-schema/v3.24.0.json +0 -2556
  563. package/dist/esm/src/schemas/project-schema/v3.25.0.json +0 -2552
  564. package/dist/esm/src/schemas/project-schema/v3.26.0.json +0 -2599
  565. package/dist/esm/src/schemas/project-schema/v3.27.0.json +0 -2611
  566. package/dist/esm/src/schemas/project-schema/v3.28.0.json +0 -2656
  567. package/dist/esm/src/schemas/project-schema/v3.29.0.json +0 -2670
  568. package/dist/esm/src/schemas/project-schema/v3.3.0.json +0 -581
  569. package/dist/esm/src/schemas/project-schema/v3.30.0.json +0 -2656
  570. package/dist/esm/src/schemas/project-schema/v3.31.0.json +0 -2714
  571. package/dist/esm/src/schemas/project-schema/v3.32.0.json +0 -2708
  572. package/dist/esm/src/schemas/project-schema/v3.33.0.json +0 -2715
  573. package/dist/esm/src/schemas/project-schema/v3.34.0.json +0 -2715
  574. package/dist/esm/src/schemas/project-schema/v3.35.0.json +0 -2748
  575. package/dist/esm/src/schemas/project-schema/v3.36.0.json +0 -2756
  576. package/dist/esm/src/schemas/project-schema/v3.37.0.json +0 -2821
  577. package/dist/esm/src/schemas/project-schema/v3.38.0.json +0 -2819
  578. package/dist/esm/src/schemas/project-schema/v3.39.0.json +0 -2827
  579. package/dist/esm/src/schemas/project-schema/v3.4.0.json +0 -571
  580. package/dist/esm/src/schemas/project-schema/v3.40.0.json +0 -2830
  581. package/dist/esm/src/schemas/project-schema/v3.41.0.json +0 -2830
  582. package/dist/esm/src/schemas/project-schema/v3.42.0.json +0 -2835
  583. package/dist/esm/src/schemas/project-schema/v3.43.0.json +0 -2841
  584. package/dist/esm/src/schemas/project-schema/v3.44.0.json +0 -3013
  585. package/dist/esm/src/schemas/project-schema/v3.45.0.json +0 -3064
  586. package/dist/esm/src/schemas/project-schema/v3.46.0.json +0 -3136
  587. package/dist/esm/src/schemas/project-schema/v3.47.0.json +0 -3189
  588. package/dist/esm/src/schemas/project-schema/v3.48.0.json +0 -3196
  589. package/dist/esm/src/schemas/project-schema/v3.49.0.json +0 -3239
  590. package/dist/esm/src/schemas/project-schema/v3.5.0.json +0 -571
  591. package/dist/esm/src/schemas/project-schema/v3.5.1.json +0 -571
  592. package/dist/esm/src/schemas/project-schema/v3.50.0.json +0 -3320
  593. package/dist/esm/src/schemas/project-schema/v3.51.0.json +0 -3320
  594. package/dist/esm/src/schemas/project-schema/v3.6.0.json +0 -587
  595. package/dist/esm/src/schemas/project-schema/v3.7.0.json +0 -587
  596. package/dist/esm/src/schemas/project-schema/v3.8.0.json +0 -604
  597. package/dist/esm/src/schemas/project-schema/v3.9.0.json +0 -604
  598. package/dist/esm/src/schemas/project-schema/v4.0.0.json +0 -2316
  599. package/dist/esm/src/schemas/project-schema.json +0 -190
  600. package/dist/esm/src/schemas/user-schema.json +0 -51
  601. package/dist/esm/src/service-dependencies.js +0 -165
  602. package/dist/esm/src/services/services.js +0 -145
  603. package/dist/esm/src/taxonomies.js +0 -24
  604. package/dist/esm/src/template-shapes/templates.js +0 -319
  605. package/dist/esm/src/template-shapes/where.js +0 -402
  606. package/dist/esm/src/types/index.js +0 -3
  607. package/dist/esm/src/types/utils.js +0 -279
  608. package/dist/esm/src/unions.js +0 -77
  609. package/dist/esm/src/user-schema.js +0 -7
  610. package/dist/esm/src/util/api-indexing.js +0 -57
  611. package/dist/esm/src/util/detect-cycles.js +0 -45
  612. package/dist/esm/src/util/form-config.js +0 -62
  613. package/dist/esm/src/util/get-conflicting-properties.js +0 -55
  614. package/dist/esm/src/util/get-return-shape.js +0 -30
  615. package/dist/esm/src/util/has-arg.js +0 -13
  616. package/dist/esm/src/util/merge.js +0 -256
  617. package/dist/esm/src/validate.js +0 -1126
  618. package/dist/esm/src/versions.js +0 -4
  619. package/dist/esm/src/workflows.js +0 -66
  620. package/dist/esm/tsconfig.esm.tsbuildinfo +0 -1
  621. package/dist/types/src/agents.d.ts +0 -14
  622. package/dist/types/src/auth-schemas.d.ts +0 -104
  623. package/dist/types/src/builtin-schema.d.ts +0 -8
  624. package/dist/types/src/content-schema-transform.d.ts +0 -35
  625. package/dist/types/src/create-input-schema.d.ts +0 -9
  626. package/dist/types/src/enum.d.ts +0 -2
  627. package/dist/types/src/flatten-templates.d.ts +0 -2
  628. package/dist/types/src/get-is-leaf.d.ts +0 -3
  629. package/dist/types/src/index.d.ts +0 -48
  630. package/dist/types/src/interfaces.d.ts +0 -12
  631. package/dist/types/src/layers/layers.d.ts +0 -26
  632. package/dist/types/src/layers/refs.d.ts +0 -102
  633. package/dist/types/src/layers/type-utils.d.ts +0 -59
  634. package/dist/types/src/layers/visitor.d.ts +0 -5
  635. package/dist/types/src/migration/index.d.ts +0 -64
  636. package/dist/types/src/migration/to/v3.0.0.d.ts +0 -4
  637. package/dist/types/src/migration/to/v3.1.0.d.ts +0 -4
  638. package/dist/types/src/migration/to/v3.10.0.d.ts +0 -4
  639. package/dist/types/src/migration/to/v3.11.0.d.ts +0 -4
  640. package/dist/types/src/migration/to/v3.12.0.d.ts +0 -4
  641. package/dist/types/src/migration/to/v3.12.1.d.ts +0 -4
  642. package/dist/types/src/migration/to/v3.12.2.d.ts +0 -4
  643. package/dist/types/src/migration/to/v3.12.3.d.ts +0 -4
  644. package/dist/types/src/migration/to/v3.13.0.d.ts +0 -4
  645. package/dist/types/src/migration/to/v3.14.0.d.ts +0 -4
  646. package/dist/types/src/migration/to/v3.15.0.d.ts +0 -4
  647. package/dist/types/src/migration/to/v3.16.0.d.ts +0 -4
  648. package/dist/types/src/migration/to/v3.17.0.d.ts +0 -4
  649. package/dist/types/src/migration/to/v3.17.1.d.ts +0 -4
  650. package/dist/types/src/migration/to/v3.18.0.d.ts +0 -4
  651. package/dist/types/src/migration/to/v3.18.1.d.ts +0 -4
  652. package/dist/types/src/migration/to/v3.18.2.d.ts +0 -4
  653. package/dist/types/src/migration/to/v3.19.0.d.ts +0 -4
  654. package/dist/types/src/migration/to/v3.2.0.d.ts +0 -4
  655. package/dist/types/src/migration/to/v3.20.0.d.ts +0 -4
  656. package/dist/types/src/migration/to/v3.21.0.d.ts +0 -4
  657. package/dist/types/src/migration/to/v3.22.0.d.ts +0 -4
  658. package/dist/types/src/migration/to/v3.23.0.d.ts +0 -4
  659. package/dist/types/src/migration/to/v3.24.0.d.ts +0 -4
  660. package/dist/types/src/migration/to/v3.25.0.d.ts +0 -4
  661. package/dist/types/src/migration/to/v3.26.0.d.ts +0 -4
  662. package/dist/types/src/migration/to/v3.27.0.d.ts +0 -4
  663. package/dist/types/src/migration/to/v3.28.0.d.ts +0 -4
  664. package/dist/types/src/migration/to/v3.29.0.d.ts +0 -4
  665. package/dist/types/src/migration/to/v3.3.0.d.ts +0 -4
  666. package/dist/types/src/migration/to/v3.30.0.d.ts +0 -4
  667. package/dist/types/src/migration/to/v3.31.0.d.ts +0 -4
  668. package/dist/types/src/migration/to/v3.32.0.d.ts +0 -4
  669. package/dist/types/src/migration/to/v3.33.0.d.ts +0 -4
  670. package/dist/types/src/migration/to/v3.34.0.d.ts +0 -6
  671. package/dist/types/src/migration/to/v3.35.0.d.ts +0 -4
  672. package/dist/types/src/migration/to/v3.36.0.d.ts +0 -4
  673. package/dist/types/src/migration/to/v3.37.0.d.ts +0 -4
  674. package/dist/types/src/migration/to/v3.38.0.d.ts +0 -4
  675. package/dist/types/src/migration/to/v3.39.0.d.ts +0 -4
  676. package/dist/types/src/migration/to/v3.4.0.d.ts +0 -4
  677. package/dist/types/src/migration/to/v3.40.0.d.ts +0 -4
  678. package/dist/types/src/migration/to/v3.41.0.d.ts +0 -4
  679. package/dist/types/src/migration/to/v3.42.0.d.ts +0 -4
  680. package/dist/types/src/migration/to/v3.43.0.d.ts +0 -4
  681. package/dist/types/src/migration/to/v3.44.0.d.ts +0 -4
  682. package/dist/types/src/migration/to/v3.45.0.d.ts +0 -4
  683. package/dist/types/src/migration/to/v3.46.0.d.ts +0 -4
  684. package/dist/types/src/migration/to/v3.47.0.d.ts +0 -4
  685. package/dist/types/src/migration/to/v3.48.0.d.ts +0 -4
  686. package/dist/types/src/migration/to/v3.49.0.d.ts +0 -4
  687. package/dist/types/src/migration/to/v3.5.0.d.ts +0 -4
  688. package/dist/types/src/migration/to/v3.5.1.d.ts +0 -4
  689. package/dist/types/src/migration/to/v3.50.0.d.ts +0 -4
  690. package/dist/types/src/migration/to/v3.51.0.d.ts +0 -4
  691. package/dist/types/src/migration/to/v3.6.0.d.ts +0 -4
  692. package/dist/types/src/migration/to/v3.7.0.d.ts +0 -4
  693. package/dist/types/src/migration/to/v3.8.0.d.ts +0 -4
  694. package/dist/types/src/migration/to/v3.9.0.d.ts +0 -4
  695. package/dist/types/src/migration/types.d.ts +0 -19
  696. package/dist/types/src/mocks.d.ts +0 -13
  697. package/dist/types/src/models/project-schema.d.ts +0 -35
  698. package/dist/types/src/models/query.d.ts +0 -17
  699. package/dist/types/src/models/service.d.ts +0 -12
  700. package/dist/types/src/models/shape.d.ts +0 -41
  701. package/dist/types/src/project-schema/index.d.ts +0 -187
  702. package/dist/types/src/project-schema/migrate.d.ts +0 -4
  703. package/dist/types/src/refs.d.ts +0 -226
  704. package/dist/types/src/relationships.d.ts +0 -40
  705. package/dist/types/src/runtime-schema.d.ts +0 -5
  706. package/dist/types/src/schema-transform.d.ts +0 -19
  707. package/dist/types/src/schema-util.d.ts +0 -210
  708. package/dist/types/src/service-dependencies.d.ts +0 -13
  709. package/dist/types/src/services/services.d.ts +0 -31
  710. package/dist/types/src/services/util.d.ts +0 -16
  711. package/dist/types/src/taxonomies.d.ts +0 -15
  712. package/dist/types/src/template-shapes/index.d.ts +0 -7
  713. package/dist/types/src/template-shapes/names.d.ts +0 -10
  714. package/dist/types/src/template-shapes/templates.d.ts +0 -32
  715. package/dist/types/src/template-shapes/types.d.ts +0 -15
  716. package/dist/types/src/template-shapes/where.d.ts +0 -37
  717. package/dist/types/src/types/index.d.ts +0 -3
  718. package/dist/types/src/types/transforms.d.ts +0 -13
  719. package/dist/types/src/types/types.d.ts +0 -211
  720. package/dist/types/src/types/utils.d.ts +0 -117
  721. package/dist/types/src/unions.d.ts +0 -14
  722. package/dist/types/src/user-schema.d.ts +0 -38
  723. package/dist/types/src/util/ai-tools.d.ts +0 -3
  724. package/dist/types/src/util/api-indexing.d.ts +0 -9
  725. package/dist/types/src/util/detect-cycles.d.ts +0 -7
  726. package/dist/types/src/util/find-shape-at-path.d.ts +0 -21
  727. package/dist/types/src/util/form-config.d.ts +0 -11
  728. package/dist/types/src/util/get-conflicting-properties.d.ts +0 -6
  729. package/dist/types/src/util/get-return-shape.d.ts +0 -4
  730. package/dist/types/src/util/has-arg.d.ts +0 -4
  731. package/dist/types/src/util/merge.d.ts +0 -15
  732. package/dist/types/src/util/patch-schema.d.ts +0 -8
  733. package/dist/types/src/util/shapes.d.ts +0 -5
  734. package/dist/types/src/validate.d.ts +0 -75
  735. package/dist/types/src/versions.d.ts +0 -4
  736. package/dist/types/src/workflows.d.ts +0 -14
  737. package/dist/types/tsconfig.types.tsbuildinfo +0 -1
  738. /package/dist/{esm/src/migration/types.js → __tests__/_examples.test.d.ts} +0 -0
  739. /package/dist/{esm/src/patterns.js → __tests__/agents.test.d.ts} +0 -0
  740. /package/dist/{esm/src/services/types.js → __tests__/api-version.test.d.ts} +0 -0
  741. /package/dist/{esm/src/types/transforms.js → __tests__/builtin-schema.test.d.ts} +0 -0
  742. /package/dist/{esm/src/agents.js → agents.js} +0 -0
  743. /package/dist/{types/src/api-version.d.ts → api-version.d.ts} +0 -0
  744. /package/dist/{esm/src/api-version.js → api-version.js} +0 -0
  745. /package/dist/{esm/src/auth-schemas.js → auth-schemas.js} +0 -0
  746. /package/dist/{esm/src/builtin-schema.js → builtin-schema.js} +0 -0
  747. /package/dist/{types/src/constants.d.ts → constants.d.ts} +0 -0
  748. /package/dist/{esm/src/constants.js → constants.js} +0 -0
  749. /package/dist/{esm/src/create-input-schema.js → create-input-schema.js} +0 -0
  750. /package/dist/{esm/src/enum.js → enum.js} +0 -0
  751. /package/dist/{esm/src/migration → migration}/to/v3.10.0.js +0 -0
  752. /package/dist/{esm/src/migration → migration}/to/v3.11.0.js +0 -0
  753. /package/dist/{esm/src/migration → migration}/to/v3.12.0.js +0 -0
  754. /package/dist/{esm/src/migration → migration}/to/v3.12.1.js +0 -0
  755. /package/dist/{esm/src/migration → migration}/to/v3.12.2.js +0 -0
  756. /package/dist/{esm/src/migration → migration}/to/v3.12.3.js +0 -0
  757. /package/dist/{esm/src/migration → migration}/to/v3.13.0.js +0 -0
  758. /package/dist/{esm/src/migration → migration}/to/v3.14.0.js +0 -0
  759. /package/dist/{esm/src/migration → migration}/to/v3.15.0.js +0 -0
  760. /package/dist/{esm/src/migration → migration}/to/v3.16.0.js +0 -0
  761. /package/dist/{esm/src/migration → migration}/to/v3.17.0.js +0 -0
  762. /package/dist/{esm/src/migration → migration}/to/v3.17.1.js +0 -0
  763. /package/dist/{esm/src/migration → migration}/to/v3.18.0.js +0 -0
  764. /package/dist/{esm/src/migration → migration}/to/v3.18.1.js +0 -0
  765. /package/dist/{esm/src/migration → migration}/to/v3.18.2.js +0 -0
  766. /package/dist/{esm/src/migration → migration}/to/v3.19.0.js +0 -0
  767. /package/dist/{esm/src/migration → migration}/to/v3.2.0.js +0 -0
  768. /package/dist/{esm/src/migration → migration}/to/v3.20.0.js +0 -0
  769. /package/dist/{esm/src/migration → migration}/to/v3.21.0.js +0 -0
  770. /package/dist/{esm/src/migration → migration}/to/v3.22.0.js +0 -0
  771. /package/dist/{esm/src/migration → migration}/to/v3.23.0.js +0 -0
  772. /package/dist/{esm/src/migration → migration}/to/v3.24.0.js +0 -0
  773. /package/dist/{esm/src/migration → migration}/to/v3.25.0.js +0 -0
  774. /package/dist/{esm/src/migration → migration}/to/v3.26.0.js +0 -0
  775. /package/dist/{esm/src/migration → migration}/to/v3.27.0.js +0 -0
  776. /package/dist/{esm/src/migration → migration}/to/v3.28.0.js +0 -0
  777. /package/dist/{esm/src/migration → migration}/to/v3.29.0.js +0 -0
  778. /package/dist/{esm/src/migration → migration}/to/v3.3.0.js +0 -0
  779. /package/dist/{esm/src/migration → migration}/to/v3.30.0.js +0 -0
  780. /package/dist/{esm/src/migration → migration}/to/v3.31.0.js +0 -0
  781. /package/dist/{esm/src/migration → migration}/to/v3.33.0.js +0 -0
  782. /package/dist/{esm/src/migration → migration}/to/v3.35.0.js +0 -0
  783. /package/dist/{esm/src/migration → migration}/to/v3.36.0.js +0 -0
  784. /package/dist/{esm/src/migration → migration}/to/v3.37.0.js +0 -0
  785. /package/dist/{esm/src/migration → migration}/to/v3.38.0.js +0 -0
  786. /package/dist/{esm/src/migration → migration}/to/v3.4.0.js +0 -0
  787. /package/dist/{esm/src/migration → migration}/to/v3.40.0.js +0 -0
  788. /package/dist/{esm/src/migration → migration}/to/v3.41.0.js +0 -0
  789. /package/dist/{esm/src/migration → migration}/to/v3.42.0.js +0 -0
  790. /package/dist/{esm/src/migration → migration}/to/v3.43.0.js +0 -0
  791. /package/dist/{esm/src/migration → migration}/to/v3.44.0.js +0 -0
  792. /package/dist/{esm/src/migration → migration}/to/v3.45.0.js +0 -0
  793. /package/dist/{esm/src/migration → migration}/to/v3.46.0.js +0 -0
  794. /package/dist/{esm/src/migration → migration}/to/v3.47.0.js +0 -0
  795. /package/dist/{esm/src/migration → migration}/to/v3.48.0.js +0 -0
  796. /package/dist/{esm/src/migration → migration}/to/v3.49.0.js +0 -0
  797. /package/dist/{esm/src/migration → migration}/to/v3.5.0.js +0 -0
  798. /package/dist/{esm/src/migration → migration}/to/v3.5.1.js +0 -0
  799. /package/dist/{esm/src/migration → migration}/to/v3.50.0.js +0 -0
  800. /package/dist/{esm/src/migration → migration}/to/v3.51.0.js +0 -0
  801. /package/dist/{esm/src/migration → migration}/to/v3.6.0.js +0 -0
  802. /package/dist/{esm/src/migration → migration}/to/v3.7.0.js +0 -0
  803. /package/dist/{esm/src/migration → migration}/to/v3.8.0.js +0 -0
  804. /package/dist/{esm/src/migration → migration}/to/v3.9.0.js +0 -0
  805. /package/dist/{types/src/migration → migration}/utils.d.ts +0 -0
  806. /package/dist/{esm/src/migration → migration}/utils.js +0 -0
  807. /package/dist/{esm/src/models → models}/query.js +0 -0
  808. /package/dist/{esm/src/models → models}/service.js +0 -0
  809. /package/dist/{types/src/patterns.d.ts → patterns.d.ts} +0 -0
  810. /package/dist/{types/src/project-schema → project-schema}/latest.d.ts +0 -0
  811. /package/dist/{esm/src/project-schema → project-schema}/latest.js +0 -0
  812. /package/dist/{types/src/project-schema → project-schema}/v1.0.0.d.ts +0 -0
  813. /package/dist/{esm/src/project-schema → project-schema}/v1.0.0.js +0 -0
  814. /package/dist/{types/src/project-schema → project-schema}/v3.0.0.d.ts +0 -0
  815. /package/dist/{esm/src/project-schema → project-schema}/v3.0.0.js +0 -0
  816. /package/dist/{types/src/project-schema → project-schema}/v3.1.0.d.ts +0 -0
  817. /package/dist/{esm/src/project-schema → project-schema}/v3.1.0.js +0 -0
  818. /package/dist/{types/src/project-schema → project-schema}/v3.10.0.d.ts +0 -0
  819. /package/dist/{esm/src/project-schema → project-schema}/v3.10.0.js +0 -0
  820. /package/dist/{types/src/project-schema → project-schema}/v3.11.0.d.ts +0 -0
  821. /package/dist/{esm/src/project-schema → project-schema}/v3.11.0.js +0 -0
  822. /package/dist/{types/src/project-schema → project-schema}/v3.12.0.d.ts +0 -0
  823. /package/dist/{esm/src/project-schema → project-schema}/v3.12.0.js +0 -0
  824. /package/dist/{types/src/project-schema → project-schema}/v3.12.1.d.ts +0 -0
  825. /package/dist/{esm/src/project-schema → project-schema}/v3.12.1.js +0 -0
  826. /package/dist/{types/src/project-schema → project-schema}/v3.12.2.d.ts +0 -0
  827. /package/dist/{esm/src/project-schema → project-schema}/v3.12.2.js +0 -0
  828. /package/dist/{types/src/project-schema → project-schema}/v3.12.3.d.ts +0 -0
  829. /package/dist/{esm/src/project-schema → project-schema}/v3.12.3.js +0 -0
  830. /package/dist/{types/src/project-schema → project-schema}/v3.13.0.d.ts +0 -0
  831. /package/dist/{esm/src/project-schema → project-schema}/v3.13.0.js +0 -0
  832. /package/dist/{types/src/project-schema → project-schema}/v3.13.1.d.ts +0 -0
  833. /package/dist/{esm/src/project-schema → project-schema}/v3.13.1.js +0 -0
  834. /package/dist/{types/src/project-schema → project-schema}/v3.14.0.d.ts +0 -0
  835. /package/dist/{esm/src/project-schema → project-schema}/v3.14.0.js +0 -0
  836. /package/dist/{types/src/project-schema → project-schema}/v3.15.0.d.ts +0 -0
  837. /package/dist/{esm/src/project-schema → project-schema}/v3.15.0.js +0 -0
  838. /package/dist/{types/src/project-schema → project-schema}/v3.16.0.d.ts +0 -0
  839. /package/dist/{esm/src/project-schema → project-schema}/v3.16.0.js +0 -0
  840. /package/dist/{types/src/project-schema → project-schema}/v3.17.0.d.ts +0 -0
  841. /package/dist/{esm/src/project-schema → project-schema}/v3.17.0.js +0 -0
  842. /package/dist/{types/src/project-schema → project-schema}/v3.17.1.d.ts +0 -0
  843. /package/dist/{esm/src/project-schema → project-schema}/v3.17.1.js +0 -0
  844. /package/dist/{types/src/project-schema → project-schema}/v3.18.0.d.ts +0 -0
  845. /package/dist/{esm/src/project-schema → project-schema}/v3.18.0.js +0 -0
  846. /package/dist/{types/src/project-schema → project-schema}/v3.18.1.d.ts +0 -0
  847. /package/dist/{esm/src/project-schema → project-schema}/v3.18.1.js +0 -0
  848. /package/dist/{types/src/project-schema → project-schema}/v3.18.2.d.ts +0 -0
  849. /package/dist/{esm/src/project-schema → project-schema}/v3.18.2.js +0 -0
  850. /package/dist/{types/src/project-schema → project-schema}/v3.19.0.d.ts +0 -0
  851. /package/dist/{esm/src/project-schema → project-schema}/v3.19.0.js +0 -0
  852. /package/dist/{types/src/project-schema → project-schema}/v3.2.0.d.ts +0 -0
  853. /package/dist/{esm/src/project-schema → project-schema}/v3.2.0.js +0 -0
  854. /package/dist/{types/src/project-schema → project-schema}/v3.20.0.d.ts +0 -0
  855. /package/dist/{esm/src/project-schema → project-schema}/v3.20.0.js +0 -0
  856. /package/dist/{types/src/project-schema → project-schema}/v3.21.0.d.ts +0 -0
  857. /package/dist/{esm/src/project-schema → project-schema}/v3.21.0.js +0 -0
  858. /package/dist/{types/src/project-schema → project-schema}/v3.22.0.d.ts +0 -0
  859. /package/dist/{esm/src/project-schema → project-schema}/v3.22.0.js +0 -0
  860. /package/dist/{types/src/project-schema → project-schema}/v3.23.0.d.ts +0 -0
  861. /package/dist/{esm/src/project-schema → project-schema}/v3.23.0.js +0 -0
  862. /package/dist/{types/src/project-schema → project-schema}/v3.24.0.d.ts +0 -0
  863. /package/dist/{esm/src/project-schema → project-schema}/v3.24.0.js +0 -0
  864. /package/dist/{types/src/project-schema → project-schema}/v3.25.0.d.ts +0 -0
  865. /package/dist/{esm/src/project-schema → project-schema}/v3.25.0.js +0 -0
  866. /package/dist/{types/src/project-schema → project-schema}/v3.26.0.d.ts +0 -0
  867. /package/dist/{esm/src/project-schema → project-schema}/v3.26.0.js +0 -0
  868. /package/dist/{types/src/project-schema → project-schema}/v3.27.0.d.ts +0 -0
  869. /package/dist/{esm/src/project-schema → project-schema}/v3.27.0.js +0 -0
  870. /package/dist/{types/src/project-schema → project-schema}/v3.28.0.d.ts +0 -0
  871. /package/dist/{esm/src/project-schema → project-schema}/v3.28.0.js +0 -0
  872. /package/dist/{types/src/project-schema → project-schema}/v3.29.0.d.ts +0 -0
  873. /package/dist/{esm/src/project-schema → project-schema}/v3.29.0.js +0 -0
  874. /package/dist/{types/src/project-schema → project-schema}/v3.3.0.d.ts +0 -0
  875. /package/dist/{esm/src/project-schema → project-schema}/v3.3.0.js +0 -0
  876. /package/dist/{types/src/project-schema → project-schema}/v3.30.0.d.ts +0 -0
  877. /package/dist/{esm/src/project-schema → project-schema}/v3.30.0.js +0 -0
  878. /package/dist/{types/src/project-schema → project-schema}/v3.31.0.d.ts +0 -0
  879. /package/dist/{esm/src/project-schema → project-schema}/v3.31.0.js +0 -0
  880. /package/dist/{types/src/project-schema → project-schema}/v3.32.0.d.ts +0 -0
  881. /package/dist/{esm/src/project-schema → project-schema}/v3.32.0.js +0 -0
  882. /package/dist/{types/src/project-schema → project-schema}/v3.33.0.d.ts +0 -0
  883. /package/dist/{esm/src/project-schema → project-schema}/v3.33.0.js +0 -0
  884. /package/dist/{types/src/project-schema → project-schema}/v3.34.0.d.ts +0 -0
  885. /package/dist/{esm/src/project-schema → project-schema}/v3.34.0.js +0 -0
  886. /package/dist/{types/src/project-schema → project-schema}/v3.35.0.d.ts +0 -0
  887. /package/dist/{esm/src/project-schema → project-schema}/v3.35.0.js +0 -0
  888. /package/dist/{types/src/project-schema → project-schema}/v3.36.0.d.ts +0 -0
  889. /package/dist/{esm/src/project-schema → project-schema}/v3.36.0.js +0 -0
  890. /package/dist/{types/src/project-schema → project-schema}/v3.37.0.d.ts +0 -0
  891. /package/dist/{esm/src/project-schema → project-schema}/v3.37.0.js +0 -0
  892. /package/dist/{types/src/project-schema → project-schema}/v3.38.0.d.ts +0 -0
  893. /package/dist/{esm/src/project-schema → project-schema}/v3.38.0.js +0 -0
  894. /package/dist/{types/src/project-schema → project-schema}/v3.39.0.d.ts +0 -0
  895. /package/dist/{esm/src/project-schema → project-schema}/v3.39.0.js +0 -0
  896. /package/dist/{types/src/project-schema → project-schema}/v3.4.0.d.ts +0 -0
  897. /package/dist/{esm/src/project-schema → project-schema}/v3.4.0.js +0 -0
  898. /package/dist/{types/src/project-schema → project-schema}/v3.40.0.d.ts +0 -0
  899. /package/dist/{esm/src/project-schema → project-schema}/v3.40.0.js +0 -0
  900. /package/dist/{types/src/project-schema → project-schema}/v3.41.0.d.ts +0 -0
  901. /package/dist/{esm/src/project-schema → project-schema}/v3.41.0.js +0 -0
  902. /package/dist/{types/src/project-schema → project-schema}/v3.42.0.d.ts +0 -0
  903. /package/dist/{esm/src/project-schema → project-schema}/v3.42.0.js +0 -0
  904. /package/dist/{types/src/project-schema → project-schema}/v3.43.0.d.ts +0 -0
  905. /package/dist/{esm/src/project-schema → project-schema}/v3.43.0.js +0 -0
  906. /package/dist/{types/src/project-schema → project-schema}/v3.44.0.d.ts +0 -0
  907. /package/dist/{esm/src/project-schema → project-schema}/v3.44.0.js +0 -0
  908. /package/dist/{types/src/project-schema → project-schema}/v3.45.0.d.ts +0 -0
  909. /package/dist/{esm/src/project-schema → project-schema}/v3.45.0.js +0 -0
  910. /package/dist/{types/src/project-schema → project-schema}/v3.46.0.d.ts +0 -0
  911. /package/dist/{esm/src/project-schema → project-schema}/v3.46.0.js +0 -0
  912. /package/dist/{types/src/project-schema → project-schema}/v3.47.0.d.ts +0 -0
  913. /package/dist/{esm/src/project-schema → project-schema}/v3.47.0.js +0 -0
  914. /package/dist/{types/src/project-schema → project-schema}/v3.48.0.d.ts +0 -0
  915. /package/dist/{esm/src/project-schema → project-schema}/v3.48.0.js +0 -0
  916. /package/dist/{types/src/project-schema → project-schema}/v3.49.0.d.ts +0 -0
  917. /package/dist/{esm/src/project-schema → project-schema}/v3.49.0.js +0 -0
  918. /package/dist/{types/src/project-schema → project-schema}/v3.5.0.d.ts +0 -0
  919. /package/dist/{esm/src/project-schema → project-schema}/v3.5.0.js +0 -0
  920. /package/dist/{types/src/project-schema → project-schema}/v3.5.1.d.ts +0 -0
  921. /package/dist/{esm/src/project-schema → project-schema}/v3.5.1.js +0 -0
  922. /package/dist/{types/src/project-schema → project-schema}/v3.50.0.d.ts +0 -0
  923. /package/dist/{esm/src/project-schema → project-schema}/v3.50.0.js +0 -0
  924. /package/dist/{types/src/project-schema → project-schema}/v3.51.0.d.ts +0 -0
  925. /package/dist/{esm/src/project-schema → project-schema}/v3.51.0.js +0 -0
  926. /package/dist/{types/src/project-schema → project-schema}/v3.6.0.d.ts +0 -0
  927. /package/dist/{esm/src/project-schema → project-schema}/v3.6.0.js +0 -0
  928. /package/dist/{types/src/project-schema → project-schema}/v3.7.0.d.ts +0 -0
  929. /package/dist/{esm/src/project-schema → project-schema}/v3.7.0.js +0 -0
  930. /package/dist/{types/src/project-schema → project-schema}/v3.8.0.d.ts +0 -0
  931. /package/dist/{esm/src/project-schema → project-schema}/v3.8.0.js +0 -0
  932. /package/dist/{types/src/project-schema → project-schema}/v3.9.0.d.ts +0 -0
  933. /package/dist/{esm/src/project-schema → project-schema}/v3.9.0.js +0 -0
  934. /package/dist/{types/src/project-schema → project-schema}/v4.0.0.d.ts +0 -0
  935. /package/dist/{esm/src/project-schema → project-schema}/v4.0.0.js +0 -0
  936. /package/dist/{types/src/scalars.d.ts → scalars.d.ts} +0 -0
  937. /package/dist/{esm/src/scalars.js → scalars.js} +0 -0
  938. /package/dist/{types/src/schemas → schemas}/index.d.ts +0 -0
  939. /package/dist/{cjs/src/schemas → schemas}/project-schema/experimental.json +0 -0
  940. /package/dist/{cjs/src/schemas → schemas}/project-schema/latest.json +0 -0
  941. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v1.0.0.json +0 -0
  942. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.0.0.json +0 -0
  943. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.1.0.json +0 -0
  944. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.2.0.json +0 -0
  945. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.3.0.json +0 -0
  946. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.4.0.json +0 -0
  947. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.5.0.json +0 -0
  948. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.5.1.json +0 -0
  949. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.6.0.json +0 -0
  950. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.7.0.json +0 -0
  951. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.8.0.json +0 -0
  952. /package/dist/{cjs/src/schemas → schemas}/project-schema/meta-schema-v3.9.0.json +0 -0
  953. /package/dist/{cjs/src/schemas → schemas}/project-schema/v1.0.0.json +0 -0
  954. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.0.0.json +0 -0
  955. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.1.0.json +0 -0
  956. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.10.0.json +0 -0
  957. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.11.0.json +0 -0
  958. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.12.0.json +0 -0
  959. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.12.1.json +0 -0
  960. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.12.2.json +0 -0
  961. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.12.3.json +0 -0
  962. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.13.0.json +0 -0
  963. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.14.0.json +0 -0
  964. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.15.0.json +0 -0
  965. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.16.0.json +0 -0
  966. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.17.0.json +0 -0
  967. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.17.1.json +0 -0
  968. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.18.0.json +0 -0
  969. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.18.1.json +0 -0
  970. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.18.2.json +0 -0
  971. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.19.0.json +0 -0
  972. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.2.0.json +0 -0
  973. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.20.0.json +0 -0
  974. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.21.0.json +0 -0
  975. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.22.0.json +0 -0
  976. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.23.0.json +0 -0
  977. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.24.0.json +0 -0
  978. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.25.0.json +0 -0
  979. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.26.0.json +0 -0
  980. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.27.0.json +0 -0
  981. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.28.0.json +0 -0
  982. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.29.0.json +0 -0
  983. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.3.0.json +0 -0
  984. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.30.0.json +0 -0
  985. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.31.0.json +0 -0
  986. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.32.0.json +0 -0
  987. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.33.0.json +0 -0
  988. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.34.0.json +0 -0
  989. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.35.0.json +0 -0
  990. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.36.0.json +0 -0
  991. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.37.0.json +0 -0
  992. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.38.0.json +0 -0
  993. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.39.0.json +0 -0
  994. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.4.0.json +0 -0
  995. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.40.0.json +0 -0
  996. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.41.0.json +0 -0
  997. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.42.0.json +0 -0
  998. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.43.0.json +0 -0
  999. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.44.0.json +0 -0
  1000. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.45.0.json +0 -0
  1001. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.46.0.json +0 -0
  1002. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.47.0.json +0 -0
  1003. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.48.0.json +0 -0
  1004. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.49.0.json +0 -0
  1005. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.5.0.json +0 -0
  1006. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.5.1.json +0 -0
  1007. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.50.0.json +0 -0
  1008. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.51.0.json +0 -0
  1009. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.6.0.json +0 -0
  1010. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.7.0.json +0 -0
  1011. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.8.0.json +0 -0
  1012. /package/dist/{cjs/src/schemas → schemas}/project-schema/v3.9.0.json +0 -0
  1013. /package/dist/{cjs/src/schemas → schemas}/project-schema/v4.0.0.json +0 -0
  1014. /package/dist/{cjs/src/schemas → schemas}/project-schema.json +0 -0
  1015. /package/dist/{types/src/services → services}/types.d.ts +0 -0
  1016. /package/dist/{esm/src/services → services}/util.js +0 -0
  1017. /package/dist/{esm/src/template-shapes → template-shapes}/index.js +0 -0
  1018. /package/dist/{esm/src/template-shapes → template-shapes}/names.js +0 -0
  1019. /package/dist/{esm/src/template-shapes → template-shapes}/types.js +0 -0
  1020. /package/dist/{esm/src/types → types}/types.js +0 -0
  1021. /package/dist/{esm/src/util → util}/ai-tools.js +0 -0
  1022. /package/dist/{esm/src/util → util}/find-shape-at-path.js +0 -0
  1023. /package/dist/{esm/src/util → util}/patch-schema.js +0 -0
  1024. /package/dist/{esm/src/util → util}/shapes.js +0 -0
@@ -1,2656 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://schema.takeshape.io/project-schema/v3.30.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
- "items": {
105
- "type": "string"
106
- },
107
- "minItems": 1
108
- }
109
- },
110
- "additionalProperties": false,
111
- "required": ["enum"]
112
- },
113
- "objectSchema": {
114
- "title": "Object Schema",
115
- "type": "object",
116
- "allOf": [
117
- {
118
- "$ref": "#/definitions/propertySchema"
119
- },
120
- {
121
- "properties": {
122
- "type": {
123
- "type": "string",
124
- "const": "object"
125
- },
126
- "properties": {
127
- "type": "object",
128
- "additionalProperties": {
129
- "$ref": "#/definitions/propertySchema"
130
- }
131
- }
132
- },
133
- "required": ["type", "properties"]
134
- }
135
- ]
136
- },
137
- "returnShapeArraySchema": {
138
- "title": "Return Shape Array Schema",
139
- "type": "object",
140
- "allOf": [
141
- {
142
- "$ref": "#/definitions/propertySchema"
143
- },
144
- {
145
- "properties": {
146
- "type": {
147
- "type": "string",
148
- "const": "array"
149
- },
150
- "items": {
151
- "oneOf": [
152
- {
153
- "$ref": "#/definitions/refSchema"
154
- },
155
- {
156
- "type": "object",
157
- "properties": {
158
- "type": {
159
- "enum": ["boolean", "integer", "number", "string", "object"]
160
- }
161
- },
162
- "required": ["type"]
163
- }
164
- ]
165
- }
166
- },
167
- "required": ["type", "items"]
168
- }
169
- ]
170
- },
171
- "objectOrRefArray": {
172
- "title": "ObjectOrRefArray",
173
- "type": "array",
174
- "items": {
175
- "oneOf": [
176
- {
177
- "$ref": "#/definitions/refSchema"
178
- },
179
- {
180
- "$ref": "#/definitions/refSchemaLegacy"
181
- },
182
- {
183
- "$ref": "#/definitions/objectSchema"
184
- }
185
- ],
186
- "unevaluatedProperties": true
187
- }
188
- },
189
- "shapeSchemaAllOf": {
190
- "title": "Shape Schema All Of",
191
- "type": "object",
192
- "properties": {
193
- "allOf": {
194
- "$ref": "#/definitions/objectOrRefArray"
195
- }
196
- },
197
- "required": ["allOf"],
198
- "additionalProperties": false
199
- },
200
- "allOfSchema": {
201
- "title": "AllOfSchema",
202
- "allOf": [
203
- {
204
- "$ref": "#/definitions/propertySchema"
205
- },
206
- {
207
- "type": "object",
208
- "properties": {
209
- "allOf": {
210
- "$ref": "#/definitions/objectOrRefArray"
211
- }
212
- },
213
- "required": ["allOf"]
214
- }
215
- ]
216
- },
217
- "shapeSchemaExtends": {
218
- "title": "ShapeSchemaExtends",
219
- "type": "object",
220
- "properties": {
221
- "extends": {
222
- "$ref": "#/definitions/objectOrRefArray"
223
- }
224
- },
225
- "required": ["extends"],
226
- "additionalProperties": false
227
- },
228
- "extendsSchema": {
229
- "title": "ExtendsSchema",
230
- "allOf": [
231
- {
232
- "$ref": "#/definitions/propertySchema"
233
- },
234
- {
235
- "type": "object",
236
- "properties": {
237
- "extends": {
238
- "$ref": "#/definitions/objectOrRefArray"
239
- }
240
- },
241
- "required": ["extends"]
242
- }
243
- ]
244
- },
245
- "shapeSchemaOneOf": {
246
- "title": "Shape Schema One Of",
247
- "type": "object",
248
- "properties": {
249
- "oneOf": {
250
- "$ref": "#/definitions/objectOrRefArray"
251
- }
252
- },
253
- "required": ["oneOf"],
254
- "additionalProperties": false
255
- },
256
- "oneOfSchema": {
257
- "title": "OneOfSchema",
258
- "allOf": [
259
- {
260
- "$ref": "#/definitions/propertySchema"
261
- },
262
- {
263
- "type": "object",
264
- "properties": {
265
- "oneOf": {
266
- "$ref": "#/definitions/objectOrRefArray"
267
- }
268
- },
269
- "required": ["oneOf"],
270
- "additionalProperties": false
271
- }
272
- ]
273
- },
274
- "shapeSchema": {
275
- "title": "Shape Schema",
276
- "type": "object",
277
- "oneOf": [
278
- {
279
- "$ref": "#/definitions/shapeSchemaAllOf"
280
- },
281
- {
282
- "$ref": "#/definitions/shapeSchemaExtends"
283
- },
284
- {
285
- "$ref": "#/definitions/shapeSchemaOneOf"
286
- },
287
- {
288
- "$ref": "#/definitions/shapeSchemaEnum"
289
- },
290
- {
291
- "$ref": "#/definitions/objectSchema"
292
- }
293
- ]
294
- },
295
- "queryMap": {
296
- "title": "Query Map",
297
- "type": "object",
298
- "patternProperties": {
299
- "^[0-9A-Za-z_]+$": {
300
- "$ref": "#/definitions/query"
301
- }
302
- },
303
- "additionalProperties": false
304
- },
305
- "args": {
306
- "title": "Args",
307
- "oneOf": [
308
- {
309
- "type": "string"
310
- },
311
- {
312
- "$ref": "#/definitions/objectSchema"
313
- }
314
- ]
315
- },
316
- "returnShape": {
317
- "title": "Return Shape",
318
- "oneOf": [
319
- {
320
- "type": "string"
321
- },
322
- {
323
- "$ref": "#/definitions/returnShapeArraySchema"
324
- }
325
- ]
326
- },
327
- "directiveConfigItem": {
328
- "title": "Directive Config Item",
329
- "description": "A tuple with a string directive name, and options to pass to the directive",
330
- "type": "array",
331
- "items": [
332
- {
333
- "title": "Directive Name",
334
- "type": "string"
335
- },
336
- {
337
- "title": "Directive Options",
338
- "type": "object",
339
- "propertyNames": {
340
- "pattern": "[0-9A-Za-z_-]+"
341
- }
342
- }
343
- ]
344
- },
345
- "parameterSerializeStyleOptions": {
346
- "title": "Parameter Serialize Style Options",
347
- "description": "All possible options for the more specific ParameterSerializeStyleOptions types.",
348
- "type": "object",
349
- "properties": {
350
- "style": {
351
- "type": "string",
352
- "enum": ["simple", "label", "matrix", "form", "spaceDelimited", "pipeDelimited", "deepObject", "none"]
353
- },
354
- "explode": {
355
- "type": "boolean"
356
- },
357
- "allowEmptyValue": {
358
- "type": "boolean"
359
- },
360
- "allowReserved": {
361
- "description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
362
- "type": "boolean"
363
- },
364
- "skipEncoding": {
365
- "type": "boolean"
366
- }
367
- },
368
- "required": ["style"],
369
- "additionalProperties": false
370
- },
371
- "parameterSerializeStyleOptionsForPathParams": {
372
- "title": "Parameter Serialize Style Options For Path Params",
373
- "description": "Options to be passed to the serialization routine.",
374
- "type": "object",
375
- "properties": {
376
- "style": {
377
- "type": "string",
378
- "enum": ["simple", "label", "matrix", "none"]
379
- },
380
- "explode": {
381
- "type": "boolean"
382
- },
383
- "allowEmptyValue": {
384
- "type": "boolean"
385
- },
386
- "allowReserved": {
387
- "description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
388
- "type": "boolean"
389
- },
390
- "skipEncoding": {
391
- "type": "boolean"
392
- }
393
- },
394
- "required": ["style"],
395
- "additionalProperties": false
396
- },
397
- "parameterSerializeStyleOptionsForSearchParams": {
398
- "title": "Parameter Serialize Style Options For Search Params",
399
- "description": "Options to be passed to the serialization routine.",
400
- "type": "object",
401
- "properties": {
402
- "style": {
403
- "type": "string",
404
- "enum": ["form", "spaceDelimited", "pipeDelimited", "deepObject", "none"]
405
- },
406
- "explode": {
407
- "type": "boolean"
408
- },
409
- "allowEmptyValue": {
410
- "type": "boolean"
411
- },
412
- "allowReserved": {
413
- "description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
414
- "type": "boolean"
415
- },
416
- "skipEncoding": {
417
- "type": "boolean"
418
- }
419
- },
420
- "required": ["style"],
421
- "additionalProperties": false
422
- },
423
- "parameterSerializeStyleOptionsForHeaders": {
424
- "title": "Parameter Serialize Style Options For Headers",
425
- "description": "Options to be passed to the serialization routine.",
426
- "type": "object",
427
- "properties": {
428
- "style": {
429
- "type": "string",
430
- "enum": ["simple", "none"]
431
- },
432
- "explode": {
433
- "type": "boolean"
434
- }
435
- },
436
- "required": ["style"],
437
- "additionalProperties": false
438
- },
439
- "parameterSerializeContentOptions": {
440
- "title": "Parameter Serialize Content Options",
441
- "description": "Options to be passed to the serialization routine.",
442
- "type": "object",
443
- "properties": {
444
- "contentType": {
445
- "type": "string"
446
- },
447
- "allowReserved": {
448
- "description": "The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.",
449
- "type": "boolean"
450
- },
451
- "skipEncoding": {
452
- "type": "boolean"
453
- },
454
- "options": {
455
- "description": "Options to be passed directly to the content serializer library. Valid options depend upon your contentType.",
456
- "type": "object"
457
- }
458
- },
459
- "required": ["contentType"],
460
- "additionalProperties": false
461
- },
462
- "parameterSerializeOptions": {
463
- "title": "Parameter Serialize Options",
464
- "description": "Options to be passed to the serialization routine.",
465
- "type": "object",
466
- "oneOf": [
467
- {
468
- "$ref": "#/definitions/parameterSerializeStyleOptions"
469
- },
470
- {
471
- "$ref": "#/definitions/parameterSerializeContentOptions"
472
- }
473
- ]
474
- },
475
- "parameterSerializeConfig": {
476
- "title": "Parameter Serialize Config",
477
- "description": "All possible options for the more specific ParameterSerializeConfig types.",
478
- "type": "object",
479
- "properties": {
480
- "content": {
481
- "$ref": "#/definitions/parameterSerializeContentOptions"
482
- },
483
- "defaults": {
484
- "$ref": "#/definitions/parameterSerializeOptions"
485
- },
486
- "paths": {
487
- "type": "object",
488
- "patternProperties": {
489
- "^[^\\n\\r]*$": {
490
- "$ref": "#/definitions/parameterSerializeOptions"
491
- }
492
- }
493
- }
494
- },
495
- "additionalProperties": false
496
- },
497
- "parameterSerializeConfigForBody": {
498
- "title": "Parameter Serialize Config For Body",
499
- "description": "Top-level paths to use serialization options for.",
500
- "type": "object",
501
- "properties": {
502
- "content": {
503
- "$ref": "#/definitions/parameterSerializeContentOptions"
504
- }
505
- },
506
- "additionalProperties": false
507
- },
508
- "parameterSerializeConfigForPathParams": {
509
- "title": "Parameter Serialize Config For Path Params",
510
- "description": "Top-level paths to use path params serialization options for.",
511
- "type": "object",
512
- "properties": {
513
- "template": {
514
- "description": "For generating the path using tokens frpm the ParameterOps, e.g., '/products/{productId}'",
515
- "type": "string"
516
- },
517
- "defaults": {
518
- "oneOf": [
519
- {
520
- "$ref": "#/definitions/parameterSerializeStyleOptionsForPathParams"
521
- },
522
- {
523
- "$ref": "#/definitions/parameterSerializeContentOptions"
524
- }
525
- ]
526
- },
527
- "paths": {
528
- "type": "object",
529
- "patternProperties": {
530
- "^[^\\n\\r]*$": {
531
- "oneOf": [
532
- {
533
- "$ref": "#/definitions/parameterSerializeStyleOptionsForPathParams"
534
- },
535
- {
536
- "$ref": "#/definitions/parameterSerializeContentOptions"
537
- }
538
- ]
539
- }
540
- }
541
- }
542
- },
543
- "required": ["template"],
544
- "additionalProperties": false
545
- },
546
- "parameterSerializeConfigForSearchParams": {
547
- "title": "Parameter Serialize Config For Search Params",
548
- "description": "Top-level paths to use search params serialization options for.",
549
- "type": "object",
550
- "properties": {
551
- "defaults": {
552
- "oneOf": [
553
- {
554
- "$ref": "#/definitions/parameterSerializeStyleOptionsForSearchParams"
555
- },
556
- {
557
- "$ref": "#/definitions/parameterSerializeContentOptions"
558
- }
559
- ]
560
- },
561
- "paths": {
562
- "type": "object",
563
- "patternProperties": {
564
- "^[^\\n\\r]*$": {
565
- "oneOf": [
566
- {
567
- "$ref": "#/definitions/parameterSerializeStyleOptionsForSearchParams"
568
- },
569
- {
570
- "$ref": "#/definitions/parameterSerializeContentOptions"
571
- }
572
- ]
573
- }
574
- }
575
- }
576
- },
577
- "additionalProperties": false
578
- },
579
- "parameterSerializeConfigForHeaders": {
580
- "title": "Parameter Serialize Config For Headers",
581
- "description": "Top-level paths to use headers serialization options for.",
582
- "type": "object",
583
- "properties": {
584
- "defaults": {
585
- "oneOf": [
586
- {
587
- "$ref": "#/definitions/parameterSerializeStyleOptionsForHeaders"
588
- },
589
- {
590
- "$ref": "#/definitions/parameterSerializeContentOptions"
591
- }
592
- ]
593
- },
594
- "paths": {
595
- "type": "object",
596
- "patternProperties": {
597
- "^[^\\n\\r]*$": {
598
- "oneOf": [
599
- {
600
- "$ref": "#/definitions/parameterSerializeStyleOptionsForHeaders"
601
- },
602
- {
603
- "$ref": "#/definitions/parameterSerializeContentOptions"
604
- }
605
- ]
606
- }
607
- }
608
- }
609
- },
610
- "additionalProperties": false
611
- },
612
- "parameterOpNested": {
613
- "title": "Parameter Op Nested",
614
- "description": "An object describing an operation to generate a parameter, using a nested OpList.",
615
- "type": "object",
616
- "properties": {
617
- "path": {
618
- "description": "A path to the parameter for this operation.",
619
- "type": "string",
620
- "minLength": 1,
621
- "pattern": "^[^\\n\\r]*$"
622
- },
623
- "op": {
624
- "description": "A mode for this parameter's operation.",
625
- "type": "string",
626
- "enum": ["set", "concat", "extend", "remove"]
627
- },
628
- "ops": {
629
- "description": "A nested op list.",
630
- "$ref": "#/definitions/parameterOpList"
631
- }
632
- },
633
- "required": ["path", "ops"],
634
- "additionalProperties": false
635
- },
636
- "parameterOpValue": {
637
- "title": "Parameter Op Value",
638
- "description": "An object describing an operation to generate a parameter using a value.",
639
- "type": "object",
640
- "properties": {
641
- "path": {
642
- "description": "A path to the parameter for this operation.",
643
- "type": "string",
644
- "minLength": 1,
645
- "pattern": "^[^\\n\\r]*$"
646
- },
647
- "op": {
648
- "description": "A mode for this parameter's operation.",
649
- "type": "string",
650
- "enum": ["set", "concat", "extend", "remove"]
651
- },
652
- "value": {
653
- "description": "A value to set directly at this path.",
654
- "type": ["number", "string", "boolean", "object", "array", "null"]
655
- }
656
- },
657
- "required": ["path", "value"],
658
- "additionalProperties": false
659
- },
660
- "parameterOpMapping": {
661
- "title": "Parameter Op Mapping",
662
- "description": "An object describing an operation to generate a parameter using a mapping.",
663
- "type": "object",
664
- "properties": {
665
- "path": {
666
- "description": "A path to the parameter for this operation.",
667
- "type": "string",
668
- "minLength": 1,
669
- "pattern": "^[^\\n\\r]*$"
670
- },
671
- "op": {
672
- "description": "A mode for this parameter's operation.",
673
- "type": "string",
674
- "enum": ["set", "concat", "extend", "remove"]
675
- },
676
- "mapping": {
677
- "description": "Either a valid JSONPath or a directive pipeline to evaluate against the query context.",
678
- "oneOf": [
679
- {
680
- "type": "string",
681
- "minLength": 1
682
- },
683
- {
684
- "$ref": "#/definitions/directiveConfig"
685
- }
686
- ]
687
- }
688
- },
689
- "required": ["path", "mapping"],
690
- "additionalProperties": false
691
- },
692
- "parameterOpOp": {
693
- "title": "Parameter Op Op",
694
- "description": "An object describing an operation to generate a parameter using a mapping.",
695
- "type": "object",
696
- "properties": {
697
- "path": {
698
- "description": "A path to the parameter for this operation.",
699
- "type": "string",
700
- "minLength": 1,
701
- "pattern": "^[^\\n\\r]*$"
702
- },
703
- "op": {
704
- "description": "A mode for this parameter's operation.",
705
- "type": "string",
706
- "enum": ["set", "concat", "extend", "remove"]
707
- }
708
- },
709
- "required": ["path", "op"],
710
- "additionalProperties": false
711
- },
712
- "parameterOp": {
713
- "title": "Parameter Op",
714
- "description": "An object describing an operation to generate a parameter.",
715
- "oneOf": [
716
- {
717
- "$ref": "#/definitions/parameterOpNested"
718
- },
719
- {
720
- "$ref": "#/definitions/parameterOpValue"
721
- },
722
- {
723
- "$ref": "#/definitions/parameterOpMapping"
724
- },
725
- {
726
- "$ref": "#/definitions/parameterOpOp"
727
- }
728
- ]
729
- },
730
- "parameterOpList": {
731
- "title": "Parameter Op List",
732
- "type": "array",
733
- "items": {
734
- "$ref": "#/definitions/parameterOp"
735
- },
736
- "minItems": 1
737
- },
738
- "parameterConfig": {
739
- "title": "Parameter Config",
740
- "description": "All possible options for the more specific ParameterConfig types.",
741
- "type": "object",
742
- "properties": {
743
- "ops": {
744
- "$ref": "#/definitions/parameterOpList"
745
- },
746
- "serialize": {
747
- "$ref": "#/definitions/parameterSerializeConfig"
748
- }
749
- },
750
- "required": ["ops"],
751
- "additionalProperties": false
752
- },
753
- "parameterConfigForBody": {
754
- "title": "Parameter Config For Body",
755
- "type": "object",
756
- "properties": {
757
- "ops": {
758
- "$ref": "#/definitions/parameterOpList"
759
- },
760
- "serialize": {
761
- "$ref": "#/definitions/parameterSerializeConfigForBody"
762
- }
763
- },
764
- "required": ["ops"],
765
- "additionalProperties": false
766
- },
767
- "parameterConfigForPathParams": {
768
- "title": "Parameter Config For Path Params",
769
- "type": "object",
770
- "properties": {
771
- "ops": {
772
- "$ref": "#/definitions/parameterOpList"
773
- },
774
- "serialize": {
775
- "$ref": "#/definitions/parameterSerializeConfigForPathParams"
776
- }
777
- },
778
- "required": ["ops", "serialize"],
779
- "additionalProperties": false
780
- },
781
- "parameterConfigForAwsLambda": {
782
- "title": "ParameterConfigForAwsLambda",
783
- "type": "object",
784
- "properties": {
785
- "ops": {
786
- "$ref": "#/definitions/parameterOpList"
787
- },
788
- "serialize": {
789
- "$ref": "#/definitions/parameterSerializeConfigForPathParams"
790
- }
791
- },
792
- "required": ["ops", "serialize"],
793
- "additionalProperties": false
794
- },
795
- "parameterConfigForSearchParams": {
796
- "title": "Parameter Config For Search Params",
797
- "type": "object",
798
- "properties": {
799
- "ops": {
800
- "$ref": "#/definitions/parameterOpList"
801
- },
802
- "serialize": {
803
- "$ref": "#/definitions/parameterSerializeConfigForSearchParams"
804
- }
805
- },
806
- "required": ["ops"],
807
- "additionalProperties": false
808
- },
809
- "parameterConfigForHeaders": {
810
- "title": "Parameter Config For Headers",
811
- "type": "object",
812
- "properties": {
813
- "ops": {
814
- "$ref": "#/definitions/parameterOpList"
815
- },
816
- "serialize": {
817
- "$ref": "#/definitions/parameterSerializeConfigForHeaders"
818
- }
819
- },
820
- "required": ["ops"],
821
- "additionalProperties": false
822
- },
823
- "parameterConfigForJson": {
824
- "title": "Parameter Config For Json",
825
- "type": "object",
826
- "properties": {
827
- "ops": {
828
- "$ref": "#/definitions/parameterOpList"
829
- }
830
- },
831
- "required": ["ops"],
832
- "additionalProperties": false
833
- },
834
- "directiveConfig": {
835
- "title": "Directive Config",
836
- "description": "An array of individual directive config items to process in order",
837
- "type": "array",
838
- "items": {
839
- "$ref": "#/definitions/directiveConfigItem"
840
- },
841
- "minItems": 1
842
- },
843
- "directiveMappingMap": {
844
- "title": "Directive Mapping Map",
845
- "description": "An map of object keys / key paths to directive configs",
846
- "type": "object",
847
- "patternProperties": {
848
- "[0-9A-Za-z_-]+": {
849
- "$ref": "#/definitions/directiveConfig"
850
- }
851
- }
852
- },
853
- "directiveMappingArrayItem": {
854
- "title": "Directive Mapping Array Item",
855
- "description": "A tuple with a string key and a directive config to evaluate",
856
- "type": "array",
857
- "items": [
858
- {
859
- "type": "string"
860
- },
861
- {
862
- "$ref": "#/definitions/directiveConfig"
863
- }
864
- ]
865
- },
866
- "directiveMappingArray": {
867
- "title": "Directive Mapping Array",
868
- "description": "An array of key / value or directive config tuples",
869
- "type": "array",
870
- "items": {
871
- "$ref": "#/definitions/directiveMappingArrayItem"
872
- }
873
- },
874
- "basicResolver": {
875
- "title": "BasicResolver",
876
- "description": "A single resolver, can be composed with the ComposeResolver.",
877
- "discriminator": {
878
- "propertyName": "name"
879
- },
880
- "oneOf": [
881
- {
882
- "$ref": "#/definitions/utilResolver"
883
- },
884
- {
885
- "$ref": "#/definitions/delegateResolver"
886
- },
887
- {
888
- "$ref": "#/definitions/takeshapeResolver"
889
- },
890
- {
891
- "$ref": "#/definitions/internalTakeshapeResolver"
892
- },
893
- {
894
- "$ref": "#/definitions/graphqlResolver"
895
- },
896
- {
897
- "$ref": "#/definitions/restResolver"
898
- },
899
- {
900
- "$ref": "#/definitions/awsLambdaResolver"
901
- },
902
- {
903
- "$ref": "#/definitions/salsifyResolver"
904
- }
905
- ]
906
- },
907
- "serviceResolver": {
908
- "title": "ServiceResolver",
909
- "description": "A resolver which references a specific service",
910
- "discriminator": {
911
- "propertyName": "name"
912
- },
913
- "oneOf": [
914
- {
915
- "$ref": "#/definitions/utilResolver"
916
- },
917
- {
918
- "$ref": "#/definitions/takeshapeResolver"
919
- },
920
- {
921
- "$ref": "#/definitions/internalTakeshapeResolver"
922
- },
923
- {
924
- "$ref": "#/definitions/graphqlResolver"
925
- },
926
- {
927
- "$ref": "#/definitions/restResolver"
928
- },
929
- {
930
- "$ref": "#/definitions/awsLambdaResolver"
931
- }
932
- ]
933
- },
934
- "argsMapping": {
935
- "title": "ArgsMapping",
936
- "description": "Maps a query's input args to the input expected by the service's endpoint.",
937
- "oneOf": [
938
- {
939
- "$ref": "#/definitions/directiveMappingMap"
940
- },
941
- {
942
- "$ref": "#/definitions/directiveConfig"
943
- }
944
- ]
945
- },
946
- "searchParamsMapping": {
947
- "title": "SearchParamsMapping",
948
- "description": "Set or evaluate directives to generate searchParams for the service endpoint.",
949
- "$ref": "#/definitions/directiveMappingArray"
950
- },
951
- "resultsMapping": {
952
- "title": "ResultsMapping",
953
- "description": "Maps a service endpoint's response results to the expected shape of the query's response.",
954
- "oneOf": [
955
- {
956
- "$ref": "#/definitions/directiveMappingMap"
957
- },
958
- {
959
- "$ref": "#/definitions/directiveConfig"
960
- }
961
- ]
962
- },
963
- "utilResolver": {
964
- "title": "UtilResolver",
965
- "type": "object",
966
- "properties": {
967
- "if": {
968
- "type": "string"
969
- },
970
- "id": {
971
- "type": "string",
972
- "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
973
- },
974
- "name": {
975
- "title": "UtilResolverName",
976
- "type": "string",
977
- "description": "Name of the resolver function.",
978
- "enum": ["debug:noop", "util:wrap"]
979
- },
980
- "service": {
981
- "type": "string",
982
- "description": "Configuration for a service to use with this resolver."
983
- },
984
- "options": {
985
- "title": "UtilResolverOptions",
986
- "type": "object",
987
- "additionalProperties": true
988
- },
989
- "args": {
990
- "description": "Mapping and serialization configuration for args.",
991
- "$ref": "#/definitions/parameterConfigForJson"
992
- },
993
- "results": {
994
- "description": "Mapping configuration for the results of this resolver step.",
995
- "$ref": "#/definitions/parameterConfigForJson"
996
- },
997
- "argsMapping": {
998
- "$ref": "#/definitions/argsMapping"
999
- },
1000
- "resultsMapping": {
1001
- "$ref": "#/definitions/resultsMapping"
1002
- }
1003
- },
1004
- "required": ["name", "service"],
1005
- "additionalProperties": false
1006
- },
1007
- "delegateResolver": {
1008
- "title": "DelegateResolver",
1009
- "type": "object",
1010
- "properties": {
1011
- "if": {
1012
- "type": "string"
1013
- },
1014
- "id": {
1015
- "type": "string",
1016
- "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1017
- },
1018
- "name": {
1019
- "title": "Delegate Resolver Name",
1020
- "type": "string",
1021
- "description": "Name of the resolver function.",
1022
- "enum": ["delegate"]
1023
- },
1024
- "options": {
1025
- "title": "DelegateResolverOptions",
1026
- "type": "object",
1027
- "additionalProperties": true
1028
- },
1029
- "argsMapping": {
1030
- "$ref": "#/definitions/argsMapping"
1031
- },
1032
- "resultsMapping": {
1033
- "$ref": "#/definitions/resultsMapping"
1034
- },
1035
- "to": {
1036
- "description": "A ref to a query/mutation/property to delegate to.",
1037
- "type": "string",
1038
- "minLength": 1
1039
- },
1040
- "args": {
1041
- "description": "Mapping and serialization configuration for args.",
1042
- "$ref": "#/definitions/parameterConfigForJson"
1043
- },
1044
- "results": {
1045
- "description": "Mapping configuration for the results of this resolver step.",
1046
- "$ref": "#/definitions/parameterConfigForJson"
1047
- }
1048
- },
1049
- "required": ["name", "to"],
1050
- "additionalProperties": false
1051
- },
1052
- "salsifyResolver": {
1053
- "title": "SalsifyResolver",
1054
- "type": "object",
1055
- "properties": {
1056
- "if": {
1057
- "type": "string"
1058
- },
1059
- "id": {
1060
- "type": "string",
1061
- "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1062
- },
1063
- "name": {
1064
- "title": "Salsify Resolver Name",
1065
- "type": "string",
1066
- "description": "Name of the resolver function.",
1067
- "enum": ["salsify:listChannelProducts"]
1068
- },
1069
- "service": {
1070
- "type": "string",
1071
- "description": "Configuration for a service to use with this resolver."
1072
- },
1073
- "options": {
1074
- "title": "SalsifyResolverOptions",
1075
- "type": "object",
1076
- "additionalProperties": true
1077
- },
1078
- "args": {
1079
- "description": "Mapping and serialization configuration for args.",
1080
- "$ref": "#/definitions/parameterConfigForJson"
1081
- },
1082
- "results": {
1083
- "description": "Mapping configuration for the results of this resolver step.",
1084
- "$ref": "#/definitions/parameterConfigForJson"
1085
- },
1086
- "argsMapping": {
1087
- "$ref": "#/definitions/argsMapping"
1088
- },
1089
- "resultsMapping": {
1090
- "$ref": "#/definitions/resultsMapping"
1091
- }
1092
- },
1093
- "required": ["name", "service"],
1094
- "additionalProperties": false
1095
- },
1096
- "takeshapeResolver": {
1097
- "title": "TakeshapeResolver",
1098
- "type": "object",
1099
- "properties": {
1100
- "if": {
1101
- "type": "string"
1102
- },
1103
- "id": {
1104
- "type": "string",
1105
- "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1106
- },
1107
- "name": {
1108
- "title": "TakeshapeResolverName",
1109
- "type": "string",
1110
- "description": "Name of the resolver function.",
1111
- "enum": [
1112
- "takeshape:get",
1113
- "takeshape:create",
1114
- "takeshape:update",
1115
- "takeshape:delete",
1116
- "takeshape:duplicate",
1117
- "takeshape:find",
1118
- "takeshape:queryApiIndex"
1119
- ]
1120
- },
1121
- "service": {
1122
- "type": "string",
1123
- "description": "Internal service identifier.",
1124
- "enum": ["takeshape:local"]
1125
- },
1126
- "options": {
1127
- "title": "TakeshapeResolverOptions",
1128
- "type": "object",
1129
- "additionalProperties": true
1130
- },
1131
- "argsMapping": {
1132
- "$ref": "#/definitions/argsMapping"
1133
- },
1134
- "resultsMapping": {
1135
- "$ref": "#/definitions/resultsMapping"
1136
- },
1137
- "shapeName": {
1138
- "description": "A Shape name for the resolver to use.",
1139
- "type": "string",
1140
- "minLength": 1
1141
- },
1142
- "args": {
1143
- "description": "Mapping and serialization configuration for args.",
1144
- "$ref": "#/definitions/parameterConfigForJson"
1145
- },
1146
- "results": {
1147
- "description": "Mapping configuration for the results of this resolver step.",
1148
- "$ref": "#/definitions/parameterConfigForJson"
1149
- }
1150
- },
1151
- "required": ["name", "service", "shapeName"],
1152
- "additionalProperties": false
1153
- },
1154
- "internalTakeshapeResolver": {
1155
- "title": "InternalTakeshapeResolver",
1156
- "type": "object",
1157
- "properties": {
1158
- "if": {
1159
- "type": "string"
1160
- },
1161
- "id": {
1162
- "type": "string",
1163
- "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1164
- },
1165
- "name": {
1166
- "title": "InternalTakeshapeResolverName",
1167
- "type": "string",
1168
- "description": "Name of the resolver function.",
1169
- "enum": [
1170
- "takeshape:getRelated",
1171
- "takeshape:getUser",
1172
- "takeshape:taxonomySuggest",
1173
- "takeshape:list",
1174
- "takeshape:search"
1175
- ]
1176
- },
1177
- "service": {
1178
- "type": "string",
1179
- "description": "Internal service identifier.",
1180
- "enum": ["takeshape:local"]
1181
- },
1182
- "options": {
1183
- "title": "TakeshapeResolverOptions",
1184
- "type": "object",
1185
- "additionalProperties": true
1186
- },
1187
- "shapeName": {
1188
- "description": "An optional Shape name for the resolver.",
1189
- "type": "string",
1190
- "minLength": 1
1191
- },
1192
- "args": {
1193
- "description": "Mapping and serialization configuration for args.",
1194
- "$ref": "#/definitions/parameterConfigForJson"
1195
- },
1196
- "results": {
1197
- "description": "Mapping configuration for the results of this resolver step.",
1198
- "$ref": "#/definitions/parameterConfigForJson"
1199
- },
1200
- "argsMapping": {
1201
- "$ref": "#/definitions/argsMapping"
1202
- },
1203
- "resultsMapping": {
1204
- "$ref": "#/definitions/resultsMapping"
1205
- }
1206
- },
1207
- "required": ["name", "service"],
1208
- "additionalProperties": false
1209
- },
1210
- "graphqlResolver": {
1211
- "title": "GraphqlResolver",
1212
- "type": "object",
1213
- "properties": {
1214
- "if": {
1215
- "type": "string"
1216
- },
1217
- "id": {
1218
- "type": "string",
1219
- "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1220
- },
1221
- "name": {
1222
- "title": "GraphqlResolverName",
1223
- "type": "string",
1224
- "description": "Name of the resolver function.",
1225
- "enum": ["graphql:query", "graphql:mutation", "shopify:bulkQuery"]
1226
- },
1227
- "service": {
1228
- "type": "string",
1229
- "description": "Configuration for a service to use with this resolver."
1230
- },
1231
- "argsMapping": {
1232
- "$ref": "#/definitions/argsMapping"
1233
- },
1234
- "resultsMapping": {
1235
- "$ref": "#/definitions/resultsMapping"
1236
- },
1237
- "options": {
1238
- "title": "GraphqlResolverOptions",
1239
- "type": "object",
1240
- "properties": {
1241
- "selectionSet": {
1242
- "type": "string"
1243
- },
1244
- "unboxParentSelectionSet": {
1245
- "type": "boolean"
1246
- },
1247
- "ignoreErrors": {
1248
- "type": "boolean"
1249
- },
1250
- "skipWhenMissingArgs": {
1251
- "type": "boolean"
1252
- },
1253
- "ttl": {
1254
- "type": "number"
1255
- },
1256
- "timeout": {
1257
- "type": "number"
1258
- },
1259
- "retry": {
1260
- "oneOf": [
1261
- {
1262
- "type": "number"
1263
- },
1264
- {
1265
- "type": "object"
1266
- }
1267
- ]
1268
- }
1269
- },
1270
- "additionalProperties": true
1271
- },
1272
- "fieldName": {
1273
- "description": "A fieldname to use in queries.",
1274
- "type": "string"
1275
- },
1276
- "headers": {
1277
- "description": "Mapping and serialization configuration for headers.",
1278
- "$ref": "#/definitions/parameterConfigForHeaders"
1279
- },
1280
- "searchParams": {
1281
- "description": "Mapping and serialization configuration for searchParams.",
1282
- "$ref": "#/definitions/parameterConfigForSearchParams"
1283
- },
1284
- "args": {
1285
- "description": "Mapping and serialization configuration for args.",
1286
- "$ref": "#/definitions/parameterConfigForJson"
1287
- },
1288
- "results": {
1289
- "description": "Mapping configuration for the results of this resolver step.",
1290
- "$ref": "#/definitions/parameterConfigForJson"
1291
- }
1292
- },
1293
- "required": ["name", "service", "fieldName"],
1294
- "additionalProperties": false
1295
- },
1296
- "restResolver": {
1297
- "title": "RestResolver",
1298
- "type": "object",
1299
- "properties": {
1300
- "if": {
1301
- "type": "string"
1302
- },
1303
- "id": {
1304
- "type": "string",
1305
- "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1306
- },
1307
- "name": {
1308
- "title": "RestResolverName",
1309
- "type": "string",
1310
- "description": "Name of the resolver function.",
1311
- "enum": ["rest:get", "rest:head", "rest:post", "rest:put", "rest:patch", "rest:delete"]
1312
- },
1313
- "service": {
1314
- "type": "string",
1315
- "description": "Configuration for a service to use with this resolver."
1316
- },
1317
- "argsMapping": {
1318
- "$ref": "#/definitions/argsMapping"
1319
- },
1320
- "searchParamsMapping": {
1321
- "$ref": "#/definitions/searchParamsMapping"
1322
- },
1323
- "resultsMapping": {
1324
- "$ref": "#/definitions/resultsMapping"
1325
- },
1326
- "options": {
1327
- "title": "RestResolverOptions",
1328
- "type": "object",
1329
- "properties": {
1330
- "trailingSlash": {
1331
- "type": "boolean"
1332
- },
1333
- "ttl": {
1334
- "type": "number"
1335
- },
1336
- "timeout": {
1337
- "type": "number"
1338
- },
1339
- "retry": {
1340
- "oneOf": [
1341
- {
1342
- "type": "number"
1343
- },
1344
- {
1345
- "type": "object"
1346
- }
1347
- ]
1348
- }
1349
- },
1350
- "additionalProperties": true
1351
- },
1352
- "body": {
1353
- "description": "Mapping and serialization configuration for a request body.",
1354
- "$ref": "#/definitions/parameterConfigForBody"
1355
- },
1356
- "form": {
1357
- "description": "Mapping and serialization configuration for form data.",
1358
- "$ref": "#/definitions/parameterConfigForSearchParams"
1359
- },
1360
- "headers": {
1361
- "description": "Mapping and serialization configuration for headers.",
1362
- "$ref": "#/definitions/parameterConfigForHeaders"
1363
- },
1364
- "json": {
1365
- "description": "Mapping and serialization configuration for a json request body.",
1366
- "$ref": "#/definitions/parameterConfigForJson"
1367
- },
1368
- "path": {
1369
- "description": "Mapping and serialization configuration for the path, or a simple string.",
1370
- "oneOf": [
1371
- {
1372
- "$ref": "#/definitions/parameterConfigForPathParams"
1373
- },
1374
- {
1375
- "type": "string"
1376
- }
1377
- ]
1378
- },
1379
- "searchParams": {
1380
- "description": "Mapping and serialization configuration for searchParams.",
1381
- "$ref": "#/definitions/parameterConfigForSearchParams"
1382
- },
1383
- "args": {
1384
- "description": "Mapping and serialization configuration for args.",
1385
- "$ref": "#/definitions/parameterConfigForJson"
1386
- },
1387
- "results": {
1388
- "description": "Mapping configuration for the results of this resolver step.",
1389
- "$ref": "#/definitions/parameterConfigForJson"
1390
- }
1391
- },
1392
- "required": ["name", "service", "path"],
1393
- "additionalProperties": false
1394
- },
1395
- "awsLambdaResolver": {
1396
- "title": "AwsLambdaResolver",
1397
- "type": "object",
1398
- "properties": {
1399
- "if": {
1400
- "type": "string"
1401
- },
1402
- "id": {
1403
- "type": "string",
1404
- "pattern": "^(?=[a-zA-Z])[-_a-zA-Z0-9]+$"
1405
- },
1406
- "name": {
1407
- "title": "AwsLambdaResolverName",
1408
- "type": "string",
1409
- "description": "Name of the resolver function.",
1410
- "enum": ["awsLambda:invoke"]
1411
- },
1412
- "service": {
1413
- "type": "string",
1414
- "description": "Configuration for a service to use with this resolver."
1415
- },
1416
- "options": {
1417
- "title": "AwsLambdaResolverOptions",
1418
- "type": "object",
1419
- "additionalProperties": true
1420
- },
1421
- "payload": {
1422
- "description": "Mapping configuration the Payload.",
1423
- "$ref": "#/definitions/parameterConfigForJson"
1424
- },
1425
- "functionName": {
1426
- "description": "Mapping configuration for the FunctionName.",
1427
- "oneOf": [
1428
- {
1429
- "type": "string"
1430
- },
1431
- {
1432
- "$ref": "#/definitions/parameterConfigForAwsLambda"
1433
- }
1434
- ]
1435
- },
1436
- "clientContext": {
1437
- "description": "Mapping configuration for the ClientContext.",
1438
- "$ref": "#/definitions/parameterConfigForJson"
1439
- },
1440
- "args": {
1441
- "description": "Mapping and serialization configuration for args.",
1442
- "$ref": "#/definitions/parameterConfigForJson"
1443
- },
1444
- "results": {
1445
- "description": "Mapping configuration for the results of this resolver step.",
1446
- "$ref": "#/definitions/parameterConfigForJson"
1447
- },
1448
- "argsMapping": {
1449
- "$ref": "#/definitions/argsMapping"
1450
- },
1451
- "searchParamsMapping": {
1452
- "description": "Set or evaluate directives to generate searchParams for the service endpoint.",
1453
- "$ref": "#/definitions/searchParamsMapping"
1454
- },
1455
- "resultsMapping": {
1456
- "$ref": "#/definitions/resultsMapping"
1457
- }
1458
- },
1459
- "required": ["name", "service", "functionName"],
1460
- "additionalProperties": false
1461
- },
1462
- "composeResolver": {
1463
- "title": "ComposeResolver",
1464
- "type": "object",
1465
- "properties": {
1466
- "compose": {
1467
- "type": "array",
1468
- "items": {
1469
- "$ref": "#/definitions/basicResolver"
1470
- }
1471
- },
1472
- "resultsMapping": {
1473
- "oneOf": [
1474
- {
1475
- "$ref": "#/definitions/directiveMappingMap"
1476
- },
1477
- {
1478
- "$ref": "#/definitions/directiveConfig"
1479
- }
1480
- ]
1481
- },
1482
- "results": {
1483
- "description": "Mapping configuration for final query results.",
1484
- "$ref": "#/definitions/parameterConfigForJson"
1485
- }
1486
- },
1487
- "required": ["compose"],
1488
- "additionalProperties": false
1489
- },
1490
- "resolver": {
1491
- "title": "Resolver",
1492
- "oneOf": [
1493
- {
1494
- "$ref": "#/definitions/basicResolver"
1495
- },
1496
- {
1497
- "$ref": "#/definitions/composeResolver"
1498
- }
1499
- ]
1500
- },
1501
- "ref": {
1502
- "title": "Ref",
1503
- "type": "string"
1504
- },
1505
- "indexed": {
1506
- "title": "Indexed",
1507
- "type": "object",
1508
- "properties": {
1509
- "nested": {
1510
- "type": "boolean"
1511
- }
1512
- }
1513
- },
1514
- "query": {
1515
- "title": "Query JSON",
1516
- "type": "object",
1517
- "properties": {
1518
- "args": {
1519
- "description": "The args field specifies the name of a Shape for the input arguments required by your resolver.",
1520
- "$ref": "#/definitions/args"
1521
- },
1522
- "resolver": {
1523
- "description": "Configures the resolver for your query or mutation.",
1524
- "$ref": "#/definitions/resolver"
1525
- },
1526
- "shape": {
1527
- "$ref": "#/definitions/returnShape",
1528
- "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."
1529
- },
1530
- "description": {
1531
- "type": "string",
1532
- "description": "Provides more detail about what the query or mutation is for. This will be displayed in the automatically-generated GraphQL API docs."
1533
- }
1534
- },
1535
- "required": ["resolver", "shape"],
1536
- "additionalProperties": false
1537
- },
1538
- "propertySchema": {
1539
- "title": "PropertySchema",
1540
- "type": "object",
1541
- "properties": {
1542
- "$ref": {
1543
- "type": "string",
1544
- "format": "uri-reference"
1545
- },
1546
- "title": {
1547
- "type": "string"
1548
- },
1549
- "description": {
1550
- "type": "string"
1551
- },
1552
- "default": {},
1553
- "readOnly": {
1554
- "type": "boolean",
1555
- "default": false
1556
- },
1557
- "multipleOf": {
1558
- "type": "number",
1559
- "exclusiveMinimum": 0
1560
- },
1561
- "maximum": {
1562
- "type": "number"
1563
- },
1564
- "exclusiveMaximum": {
1565
- "type": "number"
1566
- },
1567
- "minimum": {
1568
- "type": "number"
1569
- },
1570
- "exclusiveMinimum": {
1571
- "type": "number"
1572
- },
1573
- "maxLength": {
1574
- "$ref": "#/definitions/nonNegativeInteger"
1575
- },
1576
- "minLength": {
1577
- "$ref": "#/definitions/nonNegativeIntegerDefault0"
1578
- },
1579
- "pattern": {
1580
- "type": "string",
1581
- "format": "regex"
1582
- },
1583
- "additionalItems": {
1584
- "$ref": "#/definitions/propertySchema"
1585
- },
1586
- "items": {
1587
- "$ref": "#/definitions/propertySchema"
1588
- },
1589
- "maxItems": {
1590
- "$ref": "#/definitions/nonNegativeInteger"
1591
- },
1592
- "minItems": {
1593
- "$ref": "#/definitions/nonNegativeIntegerDefault0"
1594
- },
1595
- "uniqueItems": {
1596
- "type": "boolean",
1597
- "default": false
1598
- },
1599
- "contains": {
1600
- "$ref": "#/definitions/propertySchema"
1601
- },
1602
- "maxProperties": {
1603
- "$ref": "#/definitions/nonNegativeInteger"
1604
- },
1605
- "minProperties": {
1606
- "$ref": "#/definitions/nonNegativeIntegerDefault0"
1607
- },
1608
- "required": {
1609
- "$ref": "#/definitions/stringArray"
1610
- },
1611
- "additionalProperties": {
1612
- "oneOf": [
1613
- {
1614
- "$ref": "#/definitions/propertySchema"
1615
- },
1616
- {
1617
- "enum": [false]
1618
- }
1619
- ]
1620
- },
1621
- "definitions": {
1622
- "type": "object",
1623
- "additionalProperties": {
1624
- "$ref": "#/definitions/propertySchema"
1625
- },
1626
- "default": {}
1627
- },
1628
- "properties": {
1629
- "type": "object",
1630
- "additionalProperties": {
1631
- "$ref": "#/definitions/propertySchema"
1632
- },
1633
- "default": {}
1634
- },
1635
- "const": {},
1636
- "enum": {
1637
- "type": "array",
1638
- "minItems": 1,
1639
- "uniqueItems": true
1640
- },
1641
- "type": {
1642
- "anyOf": [
1643
- {
1644
- "$ref": "#/definitions/simpleTypes"
1645
- },
1646
- {
1647
- "type": "array",
1648
- "items": {
1649
- "$ref": "#/definitions/simpleTypes"
1650
- },
1651
- "minItems": 1,
1652
- "uniqueItems": true
1653
- }
1654
- ]
1655
- },
1656
- "format": {
1657
- "type": "string"
1658
- },
1659
- "contentMediaType": {
1660
- "type": "string"
1661
- },
1662
- "contentEncoding": {
1663
- "type": "string"
1664
- },
1665
- "allOf": {
1666
- "$ref": "#/definitions/schemaArray"
1667
- },
1668
- "discriminator": {
1669
- "type": "object",
1670
- "properties": {
1671
- "propertyName": {
1672
- "type": "string"
1673
- }
1674
- }
1675
- },
1676
- "oneOf": {
1677
- "$ref": "#/definitions/schemaArray"
1678
- },
1679
- "extends": {
1680
- "$ref": "#/definitions/objectOrRefArray"
1681
- },
1682
- "@backreference": {
1683
- "$ref": "#/definitions/backreference"
1684
- },
1685
- "@input": {
1686
- "description": "A PropertySchema providing an alternative shape for a GraphQL input type.",
1687
- "$ref": "#/definitions/propertySchema"
1688
- },
1689
- "@output": {
1690
- "description": "A PropertySchema which is original output.",
1691
- "$ref": "#/definitions/propertySchema"
1692
- },
1693
- "@syncLocaleStructure": {
1694
- "type": "boolean"
1695
- },
1696
- "@sensitive": {
1697
- "type": "boolean"
1698
- },
1699
- "@draftjs": {
1700
- "type": "boolean"
1701
- },
1702
- "@l10n": {
1703
- "type": "boolean"
1704
- },
1705
- "@key": {
1706
- "type": "string",
1707
- "pattern": "^[-_a-zA-Z0-9]+$"
1708
- },
1709
- "@workflow": {
1710
- "type": "string"
1711
- },
1712
- "@mapping": {
1713
- "$ref": "#/definitions/fieldMapping"
1714
- },
1715
- "@tag": {
1716
- "type": "string"
1717
- },
1718
- "@tags": {
1719
- "type": "array",
1720
- "items": {
1721
- "type": "string"
1722
- }
1723
- },
1724
- "@deprecationReason": {
1725
- "type": "string"
1726
- },
1727
- "@args": {
1728
- "$ref": "#/definitions/args"
1729
- },
1730
- "@resolver": {
1731
- "$ref": "#/definitions/resolver"
1732
- },
1733
- "@ref": {
1734
- "$ref": "#/definitions/ref"
1735
- },
1736
- "@derivedFrom": {
1737
- "type": "string"
1738
- },
1739
- "@indexed": {
1740
- "$ref": "#/definitions/indexed"
1741
- }
1742
- },
1743
- "additionalProperties": false
1744
- },
1745
- "shape": {
1746
- "title": "Shape JSON",
1747
- "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",
1748
- "type": "object",
1749
- "properties": {
1750
- "name": {
1751
- "type": "string",
1752
- "pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
1753
- "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"
1754
- },
1755
- "id": {
1756
- "type": "string",
1757
- "pattern": "[0-9A-Za-z_-]+",
1758
- "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."
1759
- },
1760
- "title": {
1761
- "type": "string",
1762
- "description": "The human-readable name for a Shape for use in a UI."
1763
- },
1764
- "description": {
1765
- "type": "string"
1766
- },
1767
- "type": {
1768
- "enum": ["interface", "input", "output"]
1769
- },
1770
- "interfaces": {
1771
- "type": "array",
1772
- "items": {
1773
- "type": "string"
1774
- }
1775
- },
1776
- "model": {
1777
- "description": "Specifying a model type allows Shape data to be stored in TakeShape's built-in database",
1778
- "type": "object",
1779
- "properties": {
1780
- "type": {
1781
- "title": "Model Type",
1782
- "type": "string",
1783
- "enum": ["single", "multiple", "taxonomy"]
1784
- }
1785
- },
1786
- "required": ["type"],
1787
- "additionalProperties": false
1788
- },
1789
- "workflow": {
1790
- "type": "string"
1791
- },
1792
- "schema": {
1793
- "$ref": "#/definitions/shapeSchema"
1794
- }
1795
- },
1796
- "required": ["name", "title", "id", "schema"],
1797
- "additionalProperties": false
1798
- },
1799
- "shapeWithObjectSchema": {
1800
- "title": "Shape With Object Schema",
1801
- "type": "object",
1802
- "allOf": [
1803
- {
1804
- "$ref": "#/definitions/shape"
1805
- },
1806
- {
1807
- "type": "object",
1808
- "properties": {
1809
- "schema": {
1810
- "$ref": "#/definitions/objectSchema"
1811
- }
1812
- },
1813
- "required": ["schema"],
1814
- "additionalProperties": false
1815
- }
1816
- ]
1817
- },
1818
- "shapeMap": {
1819
- "title": "Shape Map",
1820
- "type": "object",
1821
- "patternProperties": {
1822
- "^[0-9A-Za-z_]+$": {
1823
- "$ref": "#/definitions/shape"
1824
- }
1825
- },
1826
- "additionalProperties": false
1827
- },
1828
- "formMap": {
1829
- "title": "Form Map",
1830
- "type": "object",
1831
- "patternProperties": {
1832
- "[0-9A-Za-z_-]+": {
1833
- "$ref": "#/definitions/formsConfig"
1834
- }
1835
- }
1836
- },
1837
- "indexedShapeMap": {
1838
- "title": "Indexed Shape Map",
1839
- "type": "object",
1840
- "patternProperties": {
1841
- "[0-9A-Za-z_-]+": {
1842
- "$ref": "#/definitions/indexedShapeConfig"
1843
- }
1844
- }
1845
- },
1846
- "indexedShapeConfig": {
1847
- "title": "Indexed Shape Config",
1848
- "type": "object",
1849
- "properties": {
1850
- "idField": {
1851
- "type": "string"
1852
- },
1853
- "searchSummaryField": {
1854
- "type": "string"
1855
- },
1856
- "query": {
1857
- "$ref": "#/definitions/indexedShapeQueryConfig"
1858
- },
1859
- "queries": {
1860
- "$ref": "#/definitions/indexedShapeQueriesConfig"
1861
- },
1862
- "triggers": {
1863
- "type": "array",
1864
- "items": {
1865
- "$ref": "#/definitions/indexedShapeTriggersConfig"
1866
- }
1867
- }
1868
- },
1869
- "additionalProperties": false,
1870
- "required": ["queries", "triggers"]
1871
- },
1872
- "indexedShapeQueriesConfig": {
1873
- "title": "Indexed Shape Queries Config",
1874
- "type": "object",
1875
- "properties": {
1876
- "list": {
1877
- "oneOf": [
1878
- { "$ref": "#/definitions/storedIndexedShapeListQueryConfig" },
1879
- {
1880
- "type": "array",
1881
- "items": {
1882
- "$ref": "#/definitions/storedIndexedShapeListQueryConfig"
1883
- }
1884
- }
1885
- ]
1886
- },
1887
- "get": {
1888
- "$ref": "#/definitions/indexedShapeGetQueryConfig"
1889
- }
1890
- },
1891
- "additionalProperties": false
1892
- },
1893
- "indexedShapeQueryConfig": {
1894
- "title": "Indexed Shape Query Config",
1895
- "type": "object",
1896
- "properties": {
1897
- "ignoreFields": {
1898
- "type": "array",
1899
- "items": {
1900
- "type": "string"
1901
- }
1902
- },
1903
- "maxDepth": {
1904
- "type": "number"
1905
- },
1906
- "selectionSet": {
1907
- "type": "string"
1908
- }
1909
- },
1910
- "additionalProperties": false
1911
- },
1912
- "indexedShapeListQueryConfig": {
1913
- "title": "Indexed Shape List Query Config",
1914
- "type": "object",
1915
- "properties": {
1916
- "name": {
1917
- "type": "string"
1918
- },
1919
- "args": {
1920
- "type": "object",
1921
- "additionalProperties": true
1922
- },
1923
- "pagination": {
1924
- "$ref": "#/definitions/paginationConfig"
1925
- }
1926
- },
1927
- "additionalProperties": false,
1928
- "required": ["name"]
1929
- },
1930
- "storedIndexedShapeListQueryConfig": {
1931
- "title": "Stored Indexed Shape List Query Config",
1932
- "type": "object",
1933
- "properties": {
1934
- "name": {
1935
- "type": "string"
1936
- },
1937
- "args": {
1938
- "oneOf": [
1939
- {
1940
- "type": "object",
1941
- "additionalProperties": true
1942
- },
1943
- {
1944
- "type": "array",
1945
- "items": {
1946
- "type": "object",
1947
- "additionalProperties": true
1948
- }
1949
- }
1950
- ]
1951
- },
1952
- "pagination": {
1953
- "$ref": "#/definitions/paginationConfig"
1954
- }
1955
- },
1956
- "additionalProperties": false,
1957
- "required": ["name"]
1958
- },
1959
- "indexedShapeGetQueryConfig": {
1960
- "title": "Indexed Shape Get Query Config",
1961
- "type": "object",
1962
- "properties": {
1963
- "name": {
1964
- "type": "string"
1965
- },
1966
- "args": {
1967
- "type": "object",
1968
- "additionalProperties": true
1969
- },
1970
- "idArg": {
1971
- "type": "string"
1972
- }
1973
- },
1974
- "additionalProperties": false,
1975
- "required": ["name"]
1976
- },
1977
- "paginationConfig": {
1978
- "title": "Pagination Config",
1979
- "oneOf": [
1980
- {
1981
- "$ref": "#/definitions/paginationCursorConfig"
1982
- },
1983
- {
1984
- "$ref": "#/definitions/paginationPageConfig"
1985
- },
1986
- {
1987
- "$ref": "#/definitions/paginationOffsetConfig"
1988
- }
1989
- ]
1990
- },
1991
- "paginationCursorConfig": {
1992
- "title": "Pagination Cursor Config",
1993
- "type": "object",
1994
- "properties": {
1995
- "type": {
1996
- "type": "string",
1997
- "enum": ["cursor"]
1998
- },
1999
- "cursorArg": {
2000
- "type": "string"
2001
- },
2002
- "cursorPath": {
2003
- "type": "string"
2004
- },
2005
- "pageSize": {
2006
- "type": "number"
2007
- },
2008
- "pageSizeArg": {
2009
- "type": "string"
2010
- },
2011
- "hasMorePath": {
2012
- "type": "string"
2013
- },
2014
- "itemsToIndexPath": {
2015
- "type": "string"
2016
- }
2017
- },
2018
- "additionalProperties": false,
2019
- "required": ["type", "cursorArg", "cursorPath", "pageSizeArg", "hasMorePath", "itemsToIndexPath"]
2020
- },
2021
- "paginationPageConfig": {
2022
- "title": "Pagination Page Config",
2023
- "type": "object",
2024
- "properties": {
2025
- "type": {
2026
- "type": "string",
2027
- "enum": ["page"]
2028
- },
2029
- "pageArg": {
2030
- "type": "string"
2031
- },
2032
- "pageSize": {
2033
- "type": "number"
2034
- },
2035
- "pageSizeArg": {
2036
- "type": "string"
2037
- },
2038
- "itemsToIndexPath": {
2039
- "type": "string"
2040
- },
2041
- "pageTotalPath": {
2042
- "type": "string"
2043
- }
2044
- },
2045
- "additionalProperties": false,
2046
- "required": ["type", "pageArg", "itemsToIndexPath", "pageTotalPath"]
2047
- },
2048
- "paginationOffsetConfig": {
2049
- "title": "Pagination Offset Config",
2050
- "type": "object",
2051
- "properties": {
2052
- "type": {
2053
- "type": "string",
2054
- "enum": ["offset"]
2055
- },
2056
- "offsetArg": {
2057
- "type": "string"
2058
- },
2059
- "pageSize": {
2060
- "type": "number"
2061
- },
2062
- "pageSizeArg": {
2063
- "type": "string"
2064
- },
2065
- "itemsToIndexPath": {
2066
- "type": "string"
2067
- },
2068
- "itemTotalPath": {
2069
- "type": "string"
2070
- }
2071
- },
2072
- "additionalProperties": false,
2073
- "required": ["type", "offsetArg", "itemsToIndexPath", "itemTotalPath"]
2074
- },
2075
- "indexedShapeTriggersConfig": {
2076
- "title": "Indexed Shape Triggers Config",
2077
- "oneOf": [
2078
- {
2079
- "$ref": "#/definitions/indexedShapeScheduleTriggerConfig"
2080
- },
2081
- {
2082
- "$ref": "#/definitions/indexedShapeWebhookTriggerConfig"
2083
- }
2084
- ]
2085
- },
2086
- "indexedShapeScheduleTriggerConfig": {
2087
- "title": "Indexed Shape Schedule Trigger Config",
2088
- "type": "object",
2089
- "properties": {
2090
- "type": {
2091
- "type": "string",
2092
- "enum": ["schedule"]
2093
- },
2094
- "query": {
2095
- "enum": ["get", "list"]
2096
- },
2097
- "interval": {
2098
- "type": "number"
2099
- }
2100
- },
2101
- "additionalProperties": false,
2102
- "required": ["type", "query", "interval"]
2103
- },
2104
- "indexedShapeWebhookTriggerConfig": {
2105
- "title": "Indexed Shape Webhook Trigger Config",
2106
- "type": "object",
2107
- "properties": {
2108
- "type": {
2109
- "type": "string",
2110
- "enum": ["webhook"]
2111
- },
2112
- "query": {
2113
- "enum": ["get", "list"]
2114
- },
2115
- "service": {
2116
- "type": "string"
2117
- },
2118
- "events": {
2119
- "type": "array",
2120
- "items": {
2121
- "type": "string"
2122
- }
2123
- }
2124
- },
2125
- "additionalProperties": false,
2126
- "required": ["type", "query", "service", "events"]
2127
- },
2128
- "formScalarConfig": {
2129
- "title": "Form Scalar Config",
2130
- "type": "object",
2131
- "properties": {
2132
- "widget": {
2133
- "type": "string"
2134
- }
2135
- },
2136
- "additionalProperties": false,
2137
- "required": ["widget"]
2138
- },
2139
- "formObjectConfig": {
2140
- "title": "Form Object Config",
2141
- "type": "object",
2142
- "properties": {
2143
- "widget": {
2144
- "type": "string"
2145
- },
2146
- "order": {
2147
- "type": "array",
2148
- "items": {
2149
- "type": "string"
2150
- }
2151
- },
2152
- "properties": {
2153
- "patternProperties": {
2154
- "[0-9A-Za-z_-]+": {
2155
- "$ref": "#/definitions/formConfig"
2156
- }
2157
- }
2158
- }
2159
- },
2160
- "additionalProperties": false
2161
- },
2162
- "formArrayConfig": {
2163
- "title": "Form Array Config",
2164
- "type": "object",
2165
- "properties": {
2166
- "widget": {
2167
- "type": "string"
2168
- },
2169
- "items": {
2170
- "$ref": "#/definitions/formConfig"
2171
- }
2172
- },
2173
- "additionalProperties": false,
2174
- "required": ["widget", "items"]
2175
- },
2176
- "customAuthentication": {
2177
- "title": "Custom Authentication",
2178
- "description": "For use with a custom auth handler on a service provider.",
2179
- "type": "object",
2180
- "properties": {
2181
- "type": {
2182
- "type": "string",
2183
- "enum": ["custom"]
2184
- }
2185
- },
2186
- "additionalProperties": true,
2187
- "required": ["type"]
2188
- },
2189
- "searchParamsAuthentication": {
2190
- "title": "Search Params Authentication",
2191
- "type": "object",
2192
- "properties": {
2193
- "type": {
2194
- "type": "string",
2195
- "enum": ["searchParams"]
2196
- },
2197
- "params": {
2198
- "type": "array",
2199
- "items": {
2200
- "properties": {
2201
- "name": {
2202
- "type": "string"
2203
- },
2204
- "value": {
2205
- "type": "string"
2206
- }
2207
- },
2208
- "required": ["name", "value"],
2209
- "additionalProperties": false
2210
- }
2211
- }
2212
- },
2213
- "additionalProperties": false,
2214
- "required": ["type", "params"]
2215
- },
2216
- "bearerAuthentication": {
2217
- "title": "Bearer Authentication",
2218
- "type": "object",
2219
- "properties": {
2220
- "type": {
2221
- "type": "string",
2222
- "enum": ["bearer"]
2223
- },
2224
- "token": {
2225
- "type": "string"
2226
- },
2227
- "prefix": {
2228
- "type": "string"
2229
- },
2230
- "header": {
2231
- "type": "string"
2232
- }
2233
- },
2234
- "additionalProperties": false,
2235
- "required": ["type", "token"]
2236
- },
2237
- "oauth2BearerAuthentication": {
2238
- "title": "OAuth 2 Bearer Authentication",
2239
- "type": "object",
2240
- "properties": {
2241
- "type": {
2242
- "type": "string",
2243
- "enum": ["oauth2Bearer"]
2244
- },
2245
- "token": {
2246
- "type": "string"
2247
- },
2248
- "prefix": {
2249
- "type": "string"
2250
- },
2251
- "header": {
2252
- "type": "string"
2253
- },
2254
- "scope": {
2255
- "type": "string"
2256
- },
2257
- "expiresAt": {
2258
- "type": "string"
2259
- }
2260
- },
2261
- "additionalProperties": false,
2262
- "required": ["type", "token"]
2263
- },
2264
- "basicAuthentication": {
2265
- "title": "Basic Authentication",
2266
- "type": "object",
2267
- "properties": {
2268
- "type": {
2269
- "type": "string",
2270
- "enum": ["basic"]
2271
- },
2272
- "username": {
2273
- "type": "string"
2274
- },
2275
- "password": {
2276
- "type": "string"
2277
- },
2278
- "useIso8859": {
2279
- "type": "boolean"
2280
- }
2281
- },
2282
- "additionalProperties": false,
2283
- "required": ["type", "username", "password"]
2284
- },
2285
- "oauth2Authentication": {
2286
- "title": "OAuth 2 Authentication",
2287
- "type": "object",
2288
- "properties": {
2289
- "type": {
2290
- "type": "string",
2291
- "enum": ["oauth2"]
2292
- },
2293
- "grantType": {
2294
- "type": "string",
2295
- "enum": ["authorizationCode", "clientCredentials"]
2296
- },
2297
- "authorizationUrl": {
2298
- "type": "string"
2299
- },
2300
- "accessTokenUrl": {
2301
- "type": "string"
2302
- },
2303
- "clientId": {
2304
- "type": "string"
2305
- },
2306
- "clientSecret": {
2307
- "type": "string"
2308
- },
2309
- "scope": {
2310
- "type": "string"
2311
- },
2312
- "usePkce": {
2313
- "type": "boolean"
2314
- },
2315
- "redirectUrl": {
2316
- "type": "string"
2317
- },
2318
- "headerPrefix": {
2319
- "type": "string"
2320
- },
2321
- "audience": {
2322
- "type": "string"
2323
- },
2324
- "resource": {
2325
- "type": "string"
2326
- }
2327
- },
2328
- "additionalProperties": false,
2329
- "required": ["type", "grantType", "clientId"]
2330
- },
2331
- "awsAuthentication": {
2332
- "title": "AWS Authentication",
2333
- "type": "object",
2334
- "properties": {
2335
- "type": {
2336
- "type": "string",
2337
- "enum": ["aws"]
2338
- },
2339
- "awsAccessKeyId": {
2340
- "type": "string"
2341
- },
2342
- "awsSecretAccessKey": {
2343
- "type": "string"
2344
- }
2345
- },
2346
- "additionalProperties": false,
2347
- "required": ["type", "awsAccessKeyId", "awsSecretAccessKey"]
2348
- },
2349
- "serviceAuthentication": {
2350
- "title": "Service Authentication",
2351
- "oneOf": [
2352
- {
2353
- "$ref": "#/definitions/oauth2Authentication"
2354
- },
2355
- {
2356
- "$ref": "#/definitions/oauth2BearerAuthentication"
2357
- },
2358
- {
2359
- "$ref": "#/definitions/bearerAuthentication"
2360
- },
2361
- {
2362
- "$ref": "#/definitions/basicAuthentication"
2363
- },
2364
- {
2365
- "$ref": "#/definitions/searchParamsAuthentication"
2366
- },
2367
- {
2368
- "$ref": "#/definitions/awsAuthentication"
2369
- },
2370
- {
2371
- "$ref": "#/definitions/customAuthentication"
2372
- }
2373
- ]
2374
- },
2375
- "serviceType": {
2376
- "title": "Service Type",
2377
- "description": "The general type of this service, specifying how and where it will be utilized.",
2378
- "type": "string",
2379
- "enum": ["deployment", "authentication", "takeshape", "rest", "graphql", "openapi", "aws", "unknown"]
2380
- },
2381
- "serviceConfig": {
2382
- "title": "Service Config",
2383
- "type": "object",
2384
- "properties": {
2385
- "id": {
2386
- "type": "string",
2387
- "description": "Machine-readable identifier, should typically be the same as the property name on the services object."
2388
- },
2389
- "title": {
2390
- "type": "string",
2391
- "description": "Human-readable name for this service."
2392
- },
2393
- "provider": {
2394
- "description": "The service provider id.",
2395
- "type": "string"
2396
- },
2397
- "namespace": {
2398
- "type": "string",
2399
- "description": "A namespace to use for the imported types tied to this service."
2400
- },
2401
- "serviceType": {
2402
- "$ref": "#/definitions/serviceType"
2403
- },
2404
- "authenticationType": {
2405
- "type": "string",
2406
- "enum": ["oauth2", "basic", "bearer", "searchParams", "oauth2Bearer", "custom", "aws", "none", "unknown"]
2407
- },
2408
- "authentication": {
2409
- "$ref": "#/definitions/serviceAuthentication"
2410
- },
2411
- "webhookId": {
2412
- "type": "string"
2413
- },
2414
- "options": {
2415
- "type": "object",
2416
- "description": "Configuration options passed to and handled by the provider."
2417
- }
2418
- },
2419
- "required": ["id", "title", "provider", "serviceType", "authenticationType"],
2420
- "additionalProperties": false
2421
- },
2422
- "storedServiceConfig": {
2423
- "title": "Service Config JSON",
2424
- "type": "object",
2425
- "properties": {
2426
- "id": {
2427
- "type": "string",
2428
- "description": "Machine-readable identifier, should typically be the same as the property name on the services object."
2429
- },
2430
- "title": {
2431
- "type": "string",
2432
- "description": "Human-readable name for this service."
2433
- },
2434
- "provider": {
2435
- "type": "string",
2436
- "description": "The service provider id."
2437
- },
2438
- "namespace": {
2439
- "type": "string",
2440
- "description": "A namespace to use for the imported types tied to this service."
2441
- },
2442
- "serviceType": {
2443
- "$ref": "#/definitions/serviceType"
2444
- },
2445
- "authenticationType": {
2446
- "type": "string",
2447
- "enum": ["oauth2", "basic", "bearer", "searchParams", "oauth2Bearer", "custom", "aws", "none", "unknown"]
2448
- },
2449
- "authentication": {
2450
- "type": "string"
2451
- },
2452
- "webhookId": {
2453
- "type": "string"
2454
- },
2455
- "options": {
2456
- "type": "object",
2457
- "description": "Configuration options passed to and handled by the provider."
2458
- }
2459
- },
2460
- "required": ["id", "title", "provider", "serviceType", "authenticationType"],
2461
- "additionalProperties": false
2462
- },
2463
- "anyServiceConfig": {
2464
- "title": "Any Service Config",
2465
- "oneOf": [
2466
- {
2467
- "$ref": "#/definitions/storedServiceConfig"
2468
- },
2469
- {
2470
- "$ref": "#/definitions/serviceConfig"
2471
- }
2472
- ]
2473
- },
2474
- "storedServiceMap": {
2475
- "title": "Service Map JSON",
2476
- "type": "object",
2477
- "patternProperties": {
2478
- "[0-9A-Za-z_-]+": {
2479
- "$ref": "#/definitions/storedServiceConfig"
2480
- }
2481
- }
2482
- },
2483
- "workflowStep": {
2484
- "title": "Workflow Step",
2485
- "type": "object",
2486
- "properties": {
2487
- "name": {
2488
- "type": "string",
2489
- "title": "Name",
2490
- "pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
2491
- "description": "machine-readable slug"
2492
- },
2493
- "title": {
2494
- "title": "Title",
2495
- "type": "string",
2496
- "description": "Human-readable id for use in the UI"
2497
- },
2498
- "description": {
2499
- "title": "Description",
2500
- "type": "string"
2501
- },
2502
- "color": {
2503
- "title": "Color",
2504
- "type": "string",
2505
- "description": "Hex color code"
2506
- },
2507
- "live": {
2508
- "title": "Live",
2509
- "type": "boolean",
2510
- "description": "Value to indicate whether items in the state should be returned in list queries"
2511
- },
2512
- "key": {
2513
- "title": "Key",
2514
- "type": "string",
2515
- "description": "machine-readable id"
2516
- }
2517
- },
2518
- "required": ["name", "title", "color", "live", "key"],
2519
- "additionalProperties": false
2520
- },
2521
- "workflow": {
2522
- "title": "Workflow",
2523
- "type": "object",
2524
- "properties": {
2525
- "name": {
2526
- "type": "string",
2527
- "pattern": "^[_a-zA-Z][_a-zA-Z0-9]*$",
2528
- "description": "machine-readable id"
2529
- },
2530
- "title": {
2531
- "type": "string",
2532
- "title": "Workflow Name",
2533
- "minLength": 1,
2534
- "description": "Human-readable id for use in the UI"
2535
- },
2536
- "steps": {
2537
- "type": "array",
2538
- "title": "Steps",
2539
- "items": {
2540
- "$ref": "#/definitions/workflowStep"
2541
- },
2542
- "minItems": 1
2543
- }
2544
- },
2545
- "required": ["name", "title", "steps"]
2546
- },
2547
- "workflowMap": {
2548
- "title": "Workflow Map",
2549
- "type": "object",
2550
- "patternProperties": {
2551
- "[0-9A-Za-z_-]+": {
2552
- "$ref": "#/definitions/workflow"
2553
- }
2554
- }
2555
- },
2556
- "formConfig": {
2557
- "title": "Form Config",
2558
- "type": "object"
2559
- },
2560
- "formsConfig": {
2561
- "title": "Forms Config",
2562
- "type": "object",
2563
- "properties": {
2564
- "default": {
2565
- "$ref": "#/definitions/formConfig"
2566
- }
2567
- },
2568
- "patternProperties": {
2569
- "[0-9A-Za-z_-]+": {
2570
- "$ref": "#/definitions/formConfig"
2571
- }
2572
- },
2573
- "required": ["default"]
2574
- }
2575
- },
2576
- "properties": {
2577
- "$schema": {
2578
- "type": "string"
2579
- },
2580
- "apiVersion": {
2581
- "type": "string",
2582
- "description": "The version of the TakeShape API your project is using. We increase the version as we make breaking changes to the API endpoints."
2583
- },
2584
- "schemaVersion": {
2585
- "type": "string",
2586
- "enum": ["3.30.0"],
2587
- "description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
2588
- },
2589
- "projectId": {
2590
- "type": "string",
2591
- "description": "The ID of the TakeShape project this schema belongs to."
2592
- },
2593
- "author": {
2594
- "type": "string",
2595
- "description": "The ID of the TakeShape user who created the schema."
2596
- },
2597
- "deactivated": {
2598
- "type": "number"
2599
- },
2600
- "defaultLocale": {
2601
- "type": "string",
2602
- "minLength": 1,
2603
- "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{2,3})?$",
2604
- "description": "The locale that should be preferred when creating new Shape items. This must be an entry in the locales array."
2605
- },
2606
- "locales": {
2607
- "type": "array",
2608
- "minItems": 1,
2609
- "items": {
2610
- "type": "string",
2611
- "minLength": 1,
2612
- "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{2,3})?$"
2613
- }
2614
- },
2615
- "queries": {
2616
- "$ref": "#/definitions/queryMap",
2617
- "description": "Queries map directly to queries your project's GraphQL API"
2618
- },
2619
- "mutations": {
2620
- "$ref": "#/definitions/queryMap",
2621
- "description": "Mutations map directly to mutations your project's GraphQL API"
2622
- },
2623
- "shapes": {
2624
- "$ref": "#/definitions/shapeMap",
2625
- "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."
2626
- },
2627
- "indexedShapes": {
2628
- "$ref": "#/definitions/indexedShapeMap",
2629
- "description": "Experimental shape indexing configuration if you are curious about learning more message @asprouse in the TakeShape Slack"
2630
- },
2631
- "forms": {
2632
- "$ref": "#/definitions/formMap",
2633
- "description": "Forms define a visual interface for editing Shapes in the TakeShape UI."
2634
- },
2635
- "workflows": {
2636
- "$ref": "#/definitions/workflowMap",
2637
- "description": "Workflows describe the status of a shape item. Every schema starts with a default workflow with two steps, Disabled and Enabled"
2638
- },
2639
- "services": {
2640
- "$ref": "#/definitions/storedServiceMap",
2641
- "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."
2642
- }
2643
- },
2644
- "additionalProperties": false,
2645
- "required": [
2646
- "projectId",
2647
- "apiVersion",
2648
- "schemaVersion",
2649
- "defaultLocale",
2650
- "locales",
2651
- "shapes",
2652
- "queries",
2653
- "mutations",
2654
- "workflows"
2655
- ]
2656
- }