@takeshape/schema 11.144.1 → 11.154.2

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