@takeshape/schema 11.45.5 → 11.47.1

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 (465) hide show
  1. package/dist/cjs/src/agents.js +6 -6
  2. package/dist/cjs/src/api-version.js +1 -1
  3. package/dist/cjs/src/content-schema-transform.js +12 -12
  4. package/dist/cjs/src/create-input-schema.js +1 -1
  5. package/dist/cjs/src/enum.js +1 -1
  6. package/dist/cjs/src/flatten-templates.js +4 -4
  7. package/dist/cjs/src/get-is-leaf.js +1 -1
  8. package/dist/cjs/src/interfaces.js +11 -9
  9. package/dist/cjs/src/layers/layers.js +11 -5
  10. package/dist/cjs/src/layers/refs.js +3 -3
  11. package/dist/cjs/src/layers/type-utils.js +1 -1
  12. package/dist/cjs/src/migration/index.js +3 -1
  13. package/dist/cjs/src/migration/to/v3.0.0.js +20 -8
  14. package/dist/cjs/src/migration/to/v3.1.0.js +6 -4
  15. package/dist/cjs/src/migration/to/v3.10.0.js +1 -1
  16. package/dist/cjs/src/migration/to/v3.13.0.js +1 -1
  17. package/dist/cjs/src/migration/to/v3.17.0.js +1 -1
  18. package/dist/cjs/src/migration/to/v3.18.0.js +4 -4
  19. package/dist/cjs/src/migration/to/v3.18.1.js +1 -1
  20. package/dist/cjs/src/migration/to/v3.18.2.js +1 -1
  21. package/dist/cjs/src/migration/to/v3.20.0.js +5 -2
  22. package/dist/cjs/src/migration/to/v3.22.0.js +1 -1
  23. package/dist/cjs/src/migration/to/v3.31.0.js +2 -2
  24. package/dist/cjs/src/migration/to/v3.32.0.js +3 -1
  25. package/dist/cjs/src/migration/to/v3.34.0.js +6 -9
  26. package/dist/cjs/src/migration/to/v3.36.0.js +1 -1
  27. package/dist/cjs/src/migration/to/v3.39.0.js +8 -8
  28. package/dist/cjs/src/migration/to/v3.40.0.js +1 -1
  29. package/dist/cjs/src/migration/to/v3.46.0.js +1 -1
  30. package/dist/cjs/src/migration/to/v3.51.0.js +12 -0
  31. package/dist/cjs/src/migration/to/v3.9.0.js +3 -3
  32. package/dist/cjs/src/models/project-schema.js +4 -4
  33. package/dist/cjs/src/models/shape.js +2 -2
  34. package/dist/cjs/src/project-schema/index.js +4 -2
  35. package/dist/cjs/src/project-schema/migrate.js +3 -1
  36. package/dist/cjs/src/project-schema/v3.51.0.js +8 -0
  37. package/dist/cjs/src/refs.js +28 -18
  38. package/dist/cjs/src/relationships.js +25 -20
  39. package/dist/cjs/src/runtime-schema.js +16 -9
  40. package/dist/cjs/src/schema-transform.js +3 -3
  41. package/dist/cjs/src/schema-util.js +38 -30
  42. package/dist/cjs/src/schemas/auth-schemas.json +18 -78
  43. package/dist/cjs/src/schemas/index.js +7 -5
  44. package/dist/cjs/src/schemas/project-schema/experimental.json +7 -20
  45. package/dist/cjs/src/schemas/project-schema/latest.json +166 -566
  46. package/dist/cjs/src/schemas/project-schema/meta-schema-v1.0.0.json +3 -17
  47. package/dist/cjs/src/schemas/project-schema/meta-schema-v3.0.0.json +4 -4
  48. package/dist/cjs/src/schemas/project-schema/meta-schema-v3.1.0.json +4 -4
  49. package/dist/cjs/src/schemas/project-schema/meta-schema-v3.2.0.json +5 -5
  50. package/dist/cjs/src/schemas/project-schema/meta-schema-v3.3.0.json +5 -5
  51. package/dist/cjs/src/schemas/project-schema/meta-schema-v3.4.0.json +11 -43
  52. package/dist/cjs/src/schemas/project-schema/meta-schema-v3.5.0.json +7 -7
  53. package/dist/cjs/src/schemas/project-schema/meta-schema-v3.5.1.json +8 -11
  54. package/dist/cjs/src/schemas/project-schema/meta-schema-v3.6.0.json +8 -11
  55. package/dist/cjs/src/schemas/project-schema/meta-schema-v3.7.0.json +11 -9
  56. package/dist/cjs/src/schemas/project-schema/meta-schema-v3.8.0.json +11 -9
  57. package/dist/cjs/src/schemas/project-schema/meta-schema-v3.9.0.json +24 -22
  58. package/dist/cjs/src/schemas/project-schema/v1.0.0.json +3 -3
  59. package/dist/cjs/src/schemas/project-schema/v3.0.0.json +1 -1
  60. package/dist/cjs/src/schemas/project-schema/v3.1.0.json +2 -2
  61. package/dist/cjs/src/schemas/project-schema/v3.10.0.json +32 -30
  62. package/dist/cjs/src/schemas/project-schema/v3.11.0.json +32 -30
  63. package/dist/cjs/src/schemas/project-schema/v3.12.0.json +33 -36
  64. package/dist/cjs/src/schemas/project-schema/v3.12.1.json +33 -36
  65. package/dist/cjs/src/schemas/project-schema/v3.12.2.json +2122 -2125
  66. package/dist/cjs/src/schemas/project-schema/v3.12.3.json +2175 -2178
  67. package/dist/cjs/src/schemas/project-schema/v3.13.0.json +32 -30
  68. package/dist/cjs/src/schemas/project-schema/v3.14.0.json +32 -30
  69. package/dist/cjs/src/schemas/project-schema/v3.15.0.json +40 -38
  70. package/dist/cjs/src/schemas/project-schema/v3.16.0.json +40 -38
  71. package/dist/cjs/src/schemas/project-schema/v3.17.0.json +47 -39
  72. package/dist/cjs/src/schemas/project-schema/v3.17.1.json +2204 -2196
  73. package/dist/cjs/src/schemas/project-schema/v3.18.0.json +40 -38
  74. package/dist/cjs/src/schemas/project-schema/v3.18.1.json +40 -38
  75. package/dist/cjs/src/schemas/project-schema/v3.18.2.json +40 -38
  76. package/dist/cjs/src/schemas/project-schema/v3.19.0.json +40 -38
  77. package/dist/cjs/src/schemas/project-schema/v3.2.0.json +1 -1
  78. package/dist/cjs/src/schemas/project-schema/v3.20.0.json +40 -38
  79. package/dist/cjs/src/schemas/project-schema/v3.21.0.json +41 -39
  80. package/dist/cjs/src/schemas/project-schema/v3.22.0.json +41 -39
  81. package/dist/cjs/src/schemas/project-schema/v3.23.0.json +43 -43
  82. package/dist/cjs/src/schemas/project-schema/v3.24.0.json +105 -458
  83. package/dist/cjs/src/schemas/project-schema/v3.25.0.json +105 -458
  84. package/dist/cjs/src/schemas/project-schema/v3.26.0.json +107 -466
  85. package/dist/cjs/src/schemas/project-schema/v3.27.0.json +107 -466
  86. package/dist/cjs/src/schemas/project-schema/v3.28.0.json +112 -471
  87. package/dist/cjs/src/schemas/project-schema/v3.29.0.json +112 -471
  88. package/dist/cjs/src/schemas/project-schema/v3.3.0.json +1 -1
  89. package/dist/cjs/src/schemas/project-schema/v3.30.0.json +112 -472
  90. package/dist/cjs/src/schemas/project-schema/v3.31.0.json +112 -486
  91. package/dist/cjs/src/schemas/project-schema/v3.32.0.json +113 -488
  92. package/dist/cjs/src/schemas/project-schema/v3.33.0.json +113 -488
  93. package/dist/cjs/src/schemas/project-schema/v3.34.0.json +113 -488
  94. package/dist/cjs/src/schemas/project-schema/v3.35.0.json +114 -491
  95. package/dist/cjs/src/schemas/project-schema/v3.36.0.json +114 -491
  96. package/dist/cjs/src/schemas/project-schema/v3.37.0.json +118 -511
  97. package/dist/cjs/src/schemas/project-schema/v3.38.0.json +118 -511
  98. package/dist/cjs/src/schemas/project-schema/v3.39.0.json +118 -511
  99. package/dist/cjs/src/schemas/project-schema/v3.4.0.json +1 -1
  100. package/dist/cjs/src/schemas/project-schema/v3.40.0.json +118 -512
  101. package/dist/cjs/src/schemas/project-schema/v3.41.0.json +118 -512
  102. package/dist/cjs/src/schemas/project-schema/v3.42.0.json +118 -512
  103. package/dist/cjs/src/schemas/project-schema/v3.43.0.json +118 -512
  104. package/dist/cjs/src/schemas/project-schema/v3.44.0.json +125 -540
  105. package/dist/cjs/src/schemas/project-schema/v3.45.0.json +128 -554
  106. package/dist/cjs/src/schemas/project-schema/v3.46.0.json +129 -560
  107. package/dist/cjs/src/schemas/project-schema/v3.47.0.json +131 -568
  108. package/dist/cjs/src/schemas/project-schema/v3.48.0.json +132 -572
  109. package/dist/cjs/src/schemas/project-schema/v3.49.0.json +132 -558
  110. package/dist/cjs/src/schemas/project-schema/v3.5.0.json +1 -1
  111. package/dist/cjs/src/schemas/project-schema/v3.5.1.json +1 -1
  112. package/dist/cjs/src/schemas/project-schema/v3.50.0.json +165 -565
  113. package/dist/cjs/src/schemas/project-schema/v3.51.0.json +3320 -0
  114. package/dist/cjs/src/schemas/project-schema/v3.6.0.json +1 -1
  115. package/dist/cjs/src/schemas/project-schema/v3.7.0.json +1 -1
  116. package/dist/cjs/src/schemas/project-schema/v3.8.0.json +1 -1
  117. package/dist/cjs/src/schemas/project-schema/v3.9.0.json +1 -1
  118. package/dist/cjs/src/schemas/project-schema/v4.0.0.json +31 -29
  119. package/dist/cjs/src/schemas/project-schema.json +3 -0
  120. package/dist/cjs/src/schemas/user-schema.json +2 -9
  121. package/dist/cjs/src/service-dependencies.js +15 -9
  122. package/dist/cjs/src/services/services.js +12 -11
  123. package/dist/cjs/src/services/util.js +4 -4
  124. package/dist/cjs/src/template-shapes/templates.js +18 -12
  125. package/dist/cjs/src/template-shapes/where.js +23 -14
  126. package/dist/cjs/src/types/utils.js +3 -3
  127. package/dist/cjs/src/unions.js +6 -8
  128. package/dist/cjs/src/util/api-indexing.js +4 -4
  129. package/dist/cjs/src/util/detect-cycles.js +2 -2
  130. package/dist/cjs/src/util/find-shape-at-path.js +1 -1
  131. package/dist/cjs/src/util/form-config.js +0 -1
  132. package/dist/cjs/src/util/get-conflicting-properties.js +1 -1
  133. package/dist/cjs/src/util/merge.js +22 -13
  134. package/dist/cjs/src/util/patch-schema.js +2 -2
  135. package/dist/cjs/src/util/shapes.js +2 -2
  136. package/dist/cjs/src/validate.js +64 -47
  137. package/dist/cjs/src/workflows.js +4 -4
  138. package/dist/esm/src/agents.js +6 -6
  139. package/dist/esm/src/api-version.js +1 -1
  140. package/dist/esm/src/content-schema-transform.js +12 -12
  141. package/dist/esm/src/create-input-schema.js +1 -1
  142. package/dist/esm/src/enum.js +1 -1
  143. package/dist/esm/src/flatten-templates.js +4 -4
  144. package/dist/esm/src/get-is-leaf.js +1 -1
  145. package/dist/esm/src/interfaces.js +12 -10
  146. package/dist/esm/src/layers/layers.js +12 -6
  147. package/dist/esm/src/layers/refs.js +3 -3
  148. package/dist/esm/src/layers/type-utils.js +1 -1
  149. package/dist/esm/src/migration/index.js +3 -1
  150. package/dist/esm/src/migration/to/v3.0.0.js +20 -8
  151. package/dist/esm/src/migration/to/v3.1.0.js +6 -4
  152. package/dist/esm/src/migration/to/v3.10.0.js +1 -1
  153. package/dist/esm/src/migration/to/v3.13.0.js +1 -1
  154. package/dist/esm/src/migration/to/v3.17.0.js +1 -1
  155. package/dist/esm/src/migration/to/v3.18.0.js +4 -4
  156. package/dist/esm/src/migration/to/v3.18.1.js +1 -1
  157. package/dist/esm/src/migration/to/v3.18.2.js +1 -1
  158. package/dist/esm/src/migration/to/v3.20.0.js +5 -2
  159. package/dist/esm/src/migration/to/v3.22.0.js +1 -1
  160. package/dist/esm/src/migration/to/v3.31.0.js +2 -2
  161. package/dist/esm/src/migration/to/v3.32.0.js +3 -1
  162. package/dist/esm/src/migration/to/v3.34.0.js +6 -9
  163. package/dist/esm/src/migration/to/v3.36.0.js +1 -1
  164. package/dist/esm/src/migration/to/v3.39.0.js +8 -8
  165. package/dist/esm/src/migration/to/v3.40.0.js +1 -1
  166. package/dist/esm/src/migration/to/v3.46.0.js +1 -1
  167. package/dist/esm/src/migration/to/v3.51.0.js +10 -0
  168. package/dist/esm/src/migration/to/v3.9.0.js +3 -3
  169. package/dist/esm/src/mocks.js +1 -1
  170. package/dist/esm/src/models/project-schema.js +4 -4
  171. package/dist/esm/src/models/shape.js +2 -2
  172. package/dist/esm/src/project-schema/index.js +3 -1
  173. package/dist/esm/src/project-schema/migrate.js +4 -2
  174. package/dist/esm/src/project-schema/v3.51.0.js +7 -0
  175. package/dist/esm/src/refs.js +29 -19
  176. package/dist/esm/src/relationships.js +26 -21
  177. package/dist/esm/src/runtime-schema.js +16 -9
  178. package/dist/esm/src/schema-transform.js +3 -3
  179. package/dist/esm/src/schema-util.js +40 -32
  180. package/dist/esm/src/schemas/auth-schemas.json +18 -78
  181. package/dist/esm/src/schemas/index.js +4 -2
  182. package/dist/esm/src/schemas/project-schema/experimental.json +7 -20
  183. package/dist/esm/src/schemas/project-schema/latest.json +166 -566
  184. package/dist/esm/src/schemas/project-schema/meta-schema-v1.0.0.json +3 -17
  185. package/dist/esm/src/schemas/project-schema/meta-schema-v3.0.0.json +4 -4
  186. package/dist/esm/src/schemas/project-schema/meta-schema-v3.1.0.json +4 -4
  187. package/dist/esm/src/schemas/project-schema/meta-schema-v3.2.0.json +5 -5
  188. package/dist/esm/src/schemas/project-schema/meta-schema-v3.3.0.json +5 -5
  189. package/dist/esm/src/schemas/project-schema/meta-schema-v3.4.0.json +11 -43
  190. package/dist/esm/src/schemas/project-schema/meta-schema-v3.5.0.json +7 -7
  191. package/dist/esm/src/schemas/project-schema/meta-schema-v3.5.1.json +8 -11
  192. package/dist/esm/src/schemas/project-schema/meta-schema-v3.6.0.json +8 -11
  193. package/dist/esm/src/schemas/project-schema/meta-schema-v3.7.0.json +11 -9
  194. package/dist/esm/src/schemas/project-schema/meta-schema-v3.8.0.json +11 -9
  195. package/dist/esm/src/schemas/project-schema/meta-schema-v3.9.0.json +24 -22
  196. package/dist/esm/src/schemas/project-schema/v1.0.0.json +3 -3
  197. package/dist/esm/src/schemas/project-schema/v3.0.0.json +1 -1
  198. package/dist/esm/src/schemas/project-schema/v3.1.0.json +2 -2
  199. package/dist/esm/src/schemas/project-schema/v3.10.0.json +32 -30
  200. package/dist/esm/src/schemas/project-schema/v3.11.0.json +32 -30
  201. package/dist/esm/src/schemas/project-schema/v3.12.0.json +33 -36
  202. package/dist/esm/src/schemas/project-schema/v3.12.1.json +33 -36
  203. package/dist/esm/src/schemas/project-schema/v3.12.2.json +2122 -2125
  204. package/dist/esm/src/schemas/project-schema/v3.12.3.json +2175 -2178
  205. package/dist/esm/src/schemas/project-schema/v3.13.0.json +32 -30
  206. package/dist/esm/src/schemas/project-schema/v3.14.0.json +32 -30
  207. package/dist/esm/src/schemas/project-schema/v3.15.0.json +40 -38
  208. package/dist/esm/src/schemas/project-schema/v3.16.0.json +40 -38
  209. package/dist/esm/src/schemas/project-schema/v3.17.0.json +47 -39
  210. package/dist/esm/src/schemas/project-schema/v3.17.1.json +2204 -2196
  211. package/dist/esm/src/schemas/project-schema/v3.18.0.json +40 -38
  212. package/dist/esm/src/schemas/project-schema/v3.18.1.json +40 -38
  213. package/dist/esm/src/schemas/project-schema/v3.18.2.json +40 -38
  214. package/dist/esm/src/schemas/project-schema/v3.19.0.json +40 -38
  215. package/dist/esm/src/schemas/project-schema/v3.2.0.json +1 -1
  216. package/dist/esm/src/schemas/project-schema/v3.20.0.json +40 -38
  217. package/dist/esm/src/schemas/project-schema/v3.21.0.json +41 -39
  218. package/dist/esm/src/schemas/project-schema/v3.22.0.json +41 -39
  219. package/dist/esm/src/schemas/project-schema/v3.23.0.json +43 -43
  220. package/dist/esm/src/schemas/project-schema/v3.24.0.json +105 -458
  221. package/dist/esm/src/schemas/project-schema/v3.25.0.json +105 -458
  222. package/dist/esm/src/schemas/project-schema/v3.26.0.json +107 -466
  223. package/dist/esm/src/schemas/project-schema/v3.27.0.json +107 -466
  224. package/dist/esm/src/schemas/project-schema/v3.28.0.json +112 -471
  225. package/dist/esm/src/schemas/project-schema/v3.29.0.json +112 -471
  226. package/dist/esm/src/schemas/project-schema/v3.3.0.json +1 -1
  227. package/dist/esm/src/schemas/project-schema/v3.30.0.json +112 -472
  228. package/dist/esm/src/schemas/project-schema/v3.31.0.json +112 -486
  229. package/dist/esm/src/schemas/project-schema/v3.32.0.json +113 -488
  230. package/dist/esm/src/schemas/project-schema/v3.33.0.json +113 -488
  231. package/dist/esm/src/schemas/project-schema/v3.34.0.json +113 -488
  232. package/dist/esm/src/schemas/project-schema/v3.35.0.json +114 -491
  233. package/dist/esm/src/schemas/project-schema/v3.36.0.json +114 -491
  234. package/dist/esm/src/schemas/project-schema/v3.37.0.json +118 -511
  235. package/dist/esm/src/schemas/project-schema/v3.38.0.json +118 -511
  236. package/dist/esm/src/schemas/project-schema/v3.39.0.json +118 -511
  237. package/dist/esm/src/schemas/project-schema/v3.4.0.json +1 -1
  238. package/dist/esm/src/schemas/project-schema/v3.40.0.json +118 -512
  239. package/dist/esm/src/schemas/project-schema/v3.41.0.json +118 -512
  240. package/dist/esm/src/schemas/project-schema/v3.42.0.json +118 -512
  241. package/dist/esm/src/schemas/project-schema/v3.43.0.json +118 -512
  242. package/dist/esm/src/schemas/project-schema/v3.44.0.json +125 -540
  243. package/dist/esm/src/schemas/project-schema/v3.45.0.json +128 -554
  244. package/dist/esm/src/schemas/project-schema/v3.46.0.json +129 -560
  245. package/dist/esm/src/schemas/project-schema/v3.47.0.json +131 -568
  246. package/dist/esm/src/schemas/project-schema/v3.48.0.json +132 -572
  247. package/dist/esm/src/schemas/project-schema/v3.49.0.json +132 -558
  248. package/dist/esm/src/schemas/project-schema/v3.5.0.json +1 -1
  249. package/dist/esm/src/schemas/project-schema/v3.5.1.json +1 -1
  250. package/dist/esm/src/schemas/project-schema/v3.50.0.json +165 -565
  251. package/dist/esm/src/schemas/project-schema/v3.51.0.json +3320 -0
  252. package/dist/esm/src/schemas/project-schema/v3.6.0.json +1 -1
  253. package/dist/esm/src/schemas/project-schema/v3.7.0.json +1 -1
  254. package/dist/esm/src/schemas/project-schema/v3.8.0.json +1 -1
  255. package/dist/esm/src/schemas/project-schema/v3.9.0.json +1 -1
  256. package/dist/esm/src/schemas/project-schema/v4.0.0.json +31 -29
  257. package/dist/esm/src/schemas/project-schema.json +3 -0
  258. package/dist/esm/src/schemas/user-schema.json +2 -9
  259. package/dist/esm/src/service-dependencies.js +17 -11
  260. package/dist/esm/src/services/services.js +12 -11
  261. package/dist/esm/src/services/util.js +4 -4
  262. package/dist/esm/src/template-shapes/templates.js +18 -12
  263. package/dist/esm/src/template-shapes/where.js +24 -15
  264. package/dist/esm/src/types/utils.js +3 -3
  265. package/dist/esm/src/unions.js +6 -8
  266. package/dist/esm/src/util/api-indexing.js +4 -4
  267. package/dist/esm/src/util/detect-cycles.js +2 -2
  268. package/dist/esm/src/util/find-shape-at-path.js +1 -1
  269. package/dist/esm/src/util/form-config.js +0 -1
  270. package/dist/esm/src/util/get-conflicting-properties.js +1 -1
  271. package/dist/esm/src/util/merge.js +23 -14
  272. package/dist/esm/src/util/patch-schema.js +2 -2
  273. package/dist/esm/src/util/shapes.js +2 -2
  274. package/dist/esm/src/validate.js +64 -47
  275. package/dist/esm/src/workflows.js +4 -4
  276. package/dist/types/src/agents.d.ts +1 -1
  277. package/dist/types/src/builtin-schema.d.ts +2 -2
  278. package/dist/types/src/content-schema-transform.d.ts +1 -1
  279. package/dist/types/src/create-input-schema.d.ts +1 -1
  280. package/dist/types/src/enum.d.ts +1 -1
  281. package/dist/types/src/flatten-templates.d.ts +1 -1
  282. package/dist/types/src/layers/layers.d.ts +1 -1
  283. package/dist/types/src/layers/refs.d.ts +1 -1
  284. package/dist/types/src/layers/type-utils.d.ts +1 -1
  285. package/dist/types/src/layers/visitor.d.ts +2 -2
  286. package/dist/types/src/migration/index.d.ts +1 -0
  287. package/dist/types/src/migration/to/v3.17.1.d.ts +1 -1
  288. package/dist/types/src/migration/to/v3.19.0.d.ts +1 -1
  289. package/dist/types/src/migration/to/v3.21.0.d.ts +1 -1
  290. package/dist/types/src/migration/to/v3.22.0.d.ts +1 -1
  291. package/dist/types/src/migration/to/v3.23.0.d.ts +1 -1
  292. package/dist/types/src/migration/to/v3.24.0.d.ts +1 -1
  293. package/dist/types/src/migration/to/v3.25.0.d.ts +1 -1
  294. package/dist/types/src/migration/to/v3.26.0.d.ts +1 -1
  295. package/dist/types/src/migration/to/v3.27.0.d.ts +1 -1
  296. package/dist/types/src/migration/to/v3.28.0.d.ts +1 -1
  297. package/dist/types/src/migration/to/v3.29.0.d.ts +1 -1
  298. package/dist/types/src/migration/to/v3.30.0.d.ts +1 -1
  299. package/dist/types/src/migration/to/v3.31.0.d.ts +1 -1
  300. package/dist/types/src/migration/to/v3.32.0.d.ts +1 -1
  301. package/dist/types/src/migration/to/v3.33.0.d.ts +1 -1
  302. package/dist/types/src/migration/to/v3.34.0.d.ts +1 -1
  303. package/dist/types/src/migration/to/v3.35.0.d.ts +1 -1
  304. package/dist/types/src/migration/to/v3.36.0.d.ts +1 -1
  305. package/dist/types/src/migration/to/v3.37.0.d.ts +1 -1
  306. package/dist/types/src/migration/to/v3.38.0.d.ts +1 -1
  307. package/dist/types/src/migration/to/v3.39.0.d.ts +1 -1
  308. package/dist/types/src/migration/to/v3.40.0.d.ts +1 -1
  309. package/dist/types/src/migration/to/v3.41.0.d.ts +1 -1
  310. package/dist/types/src/migration/to/v3.42.0.d.ts +1 -1
  311. package/dist/types/src/migration/to/v3.43.0.d.ts +1 -1
  312. package/dist/types/src/migration/to/v3.44.0.d.ts +1 -1
  313. package/dist/types/src/migration/to/v3.45.0.d.ts +1 -1
  314. package/dist/types/src/migration/to/v3.46.0.d.ts +1 -1
  315. package/dist/types/src/migration/to/v3.47.0.d.ts +1 -1
  316. package/dist/types/src/migration/to/v3.48.0.d.ts +1 -1
  317. package/dist/types/src/migration/to/v3.49.0.d.ts +1 -1
  318. package/dist/types/src/migration/to/v3.50.0.d.ts +1 -1
  319. package/dist/types/src/migration/to/v3.51.0.d.ts +4 -0
  320. package/dist/types/src/migration/types.d.ts +1 -1
  321. package/dist/types/src/mocks.d.ts +1 -1
  322. package/dist/types/src/models/project-schema.d.ts +3 -3
  323. package/dist/types/src/models/query.d.ts +2 -2
  324. package/dist/types/src/models/service.d.ts +2 -2
  325. package/dist/types/src/models/shape.d.ts +2 -2
  326. package/dist/types/src/project-schema/index.d.ts +4 -1
  327. package/dist/types/src/project-schema/latest.d.ts +28 -10
  328. package/dist/types/src/project-schema/v3.50.0.d.ts +27 -9
  329. package/dist/types/src/project-schema/v3.51.0.d.ts +2189 -0
  330. package/dist/types/src/refs.d.ts +1 -1
  331. package/dist/types/src/relationships.d.ts +2 -2
  332. package/dist/types/src/runtime-schema.d.ts +1 -1
  333. package/dist/types/src/schema-transform.d.ts +1 -1
  334. package/dist/types/src/schema-util.d.ts +2 -2
  335. package/dist/types/src/schemas/index.d.ts +2 -2
  336. package/dist/types/src/service-dependencies.d.ts +2 -2
  337. package/dist/types/src/services/services.d.ts +3 -3
  338. package/dist/types/src/services/util.d.ts +2 -2
  339. package/dist/types/src/template-shapes/index.d.ts +2 -2
  340. package/dist/types/src/template-shapes/names.d.ts +1 -1
  341. package/dist/types/src/template-shapes/types.d.ts +2 -2
  342. package/dist/types/src/template-shapes/where.d.ts +1 -1
  343. package/dist/types/src/types/transforms.d.ts +1 -1
  344. package/dist/types/src/types/types.d.ts +4 -4
  345. package/dist/types/src/types/utils.d.ts +2 -2
  346. package/dist/types/src/unions.d.ts +2 -2
  347. package/dist/types/src/util/ai-tools.d.ts +1 -1
  348. package/dist/types/src/util/api-indexing.d.ts +1 -1
  349. package/dist/types/src/util/detect-cycles.d.ts +1 -1
  350. package/dist/types/src/util/find-shape-at-path.d.ts +1 -1
  351. package/dist/types/src/util/form-config.d.ts +1 -1
  352. package/dist/types/src/util/get-conflicting-properties.d.ts +1 -1
  353. package/dist/types/src/util/get-return-shape.d.ts +1 -1
  354. package/dist/types/src/util/has-arg.d.ts +2 -2
  355. package/dist/types/src/util/merge.d.ts +1 -1
  356. package/dist/types/src/util/patch-schema.d.ts +2 -2
  357. package/dist/types/src/util/shapes.d.ts +1 -1
  358. package/dist/types/src/validate.d.ts +4 -4
  359. package/dist/types/src/workflows.d.ts +1 -1
  360. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  361. package/examples/latest/agent-schema.json +5 -13
  362. package/examples/latest/all-fields-shapes-inline.json +19 -53
  363. package/examples/latest/all-fields-shapes.json +27 -77
  364. package/examples/latest/betzino.json +903 -3140
  365. package/examples/latest/blog-schema.json +9 -29
  366. package/examples/latest/brewery-schema.json +8 -26
  367. package/examples/latest/clear-cache-schema.json +4 -8
  368. package/examples/latest/complex-project-schema.json +99 -360
  369. package/examples/latest/complex-schema.json +487 -1754
  370. package/examples/latest/edit-schema.json +5 -12
  371. package/examples/latest/fabric-ecommerce.json +188 -839
  372. package/examples/latest/frank-and-fred-schema.json +489 -1756
  373. package/examples/latest/klirr-schema.json +683 -2412
  374. package/examples/latest/layers/rick-and-morty-layer.json +12 -33
  375. package/examples/latest/layers/shopify-layer-2023-01.json +2207 -8638
  376. package/examples/latest/layers/shopify-storefront-2023-04.json +403 -1713
  377. package/examples/latest/layers/wordpress-2024-01.json +689 -2744
  378. package/examples/latest/massive-schema.json +132 -585
  379. package/examples/latest/mill-components-schema.json +30 -126
  380. package/examples/latest/nested-shape-arrays.json +8 -20
  381. package/examples/latest/one-earth.json +237 -1114
  382. package/examples/latest/pet-oneof-array.json +8 -23
  383. package/examples/latest/post-schema.json +7 -21
  384. package/examples/latest/pruned-shopify-product-schema.json +186 -831
  385. package/examples/latest/rag-example.json +6 -16
  386. package/examples/latest/real-world-schema.json +15 -57
  387. package/examples/latest/recursive-repeater-schema.json +5 -12
  388. package/examples/latest/recursive-schema.json +5 -12
  389. package/examples/latest/rick-and-morty-ast.json +46 -175
  390. package/examples/latest/rick-and-morty-graphql.json +26 -101
  391. package/examples/latest/rick-and-morty-rest.json +4 -8
  392. package/examples/latest/rick-and-morty-with-indexing.json +6 -14
  393. package/examples/latest/schema-where-filter.json +12 -41
  394. package/examples/latest/schema-with-repeater-draftjs.json +4 -9
  395. package/examples/latest/schema-with-rick-and-morty.json +3 -5
  396. package/examples/latest/shape-books-v3_2_0.json +18 -72
  397. package/examples/latest/shape-books.json +18 -72
  398. package/examples/latest/shape-editor-schema-edited.json +24 -70
  399. package/examples/latest/shape-editor-schema-initial.json +11 -29
  400. package/examples/latest/shapedb-crud-every-prop-type.json +9 -23
  401. package/examples/latest/shopify-lookbook.json +6 -20
  402. package/examples/latest/shopify-product-2022-07.json +727 -3218
  403. package/examples/latest/shopify-product-2023-04.json +1013 -4497
  404. package/examples/latest/shopify-store-with-widget.json +214 -943
  405. package/examples/latest/stripe-product-runtime-schema.json +82 -278
  406. package/examples/latest/stripe-starter-resolved.json +477 -1954
  407. package/examples/latest/user-schema-no-required.json +4 -14
  408. package/examples/latest/user-schema-with-defaults.json +6 -28
  409. package/examples/latest/valvoline-ai-demo.json +18 -70
  410. package/examples/latest/vector-search-schema.json +9 -25
  411. package/examples/source/agent-schema.json +29 -16
  412. package/examples/source/all-fields-shapes-inline.json +21 -30
  413. package/examples/source/all-fields-shapes.json +26 -76
  414. package/examples/source/betzino.json +1501 -4960
  415. package/examples/source/blog-schema.json +1 -1
  416. package/examples/source/brewery-schema.json +1 -1
  417. package/examples/source/clear-cache-schema.json +4 -4
  418. package/examples/source/complex-project-schema.json +196 -688
  419. package/examples/source/edit-schema.json +3 -3
  420. package/examples/source/fabric-ecommerce.json +186 -837
  421. package/examples/source/frank-and-fred-schema.json +1136 -3929
  422. package/examples/source/layers/rick-and-morty-layer.json +10 -31
  423. package/examples/source/layers/shopify-layer-2023-01.json +2205 -8636
  424. package/examples/source/layers/shopify-storefront-2023-04.json +401 -1711
  425. package/examples/source/layers/wordpress-2024-01.json +689 -2743
  426. package/examples/source/massive-schema.json +386 -1455
  427. package/examples/source/nested-shape-arrays.json +12 -12
  428. package/examples/source/pet-oneof-array.json +31 -29
  429. package/examples/source/post-schema.json +1 -1
  430. package/examples/source/pruned-shopify-product-schema.json +184 -829
  431. package/examples/source/rag-example.json +5 -15
  432. package/examples/source/real-world-schema.json +32 -119
  433. package/examples/source/recursive-repeater-schema.json +3 -8
  434. package/examples/source/recursive-schema.json +1 -1
  435. package/examples/source/rick-and-morty-ast.json +66 -251
  436. package/examples/source/rick-and-morty-graphql.json +41 -162
  437. package/examples/source/rick-and-morty-rest.json +24 -6
  438. package/examples/source/rick-and-morty-with-indexing.json +25 -25
  439. package/examples/source/schema-where-filter.json +29 -50
  440. package/examples/source/schema-with-repeater-draftjs.json +9 -31
  441. package/examples/source/schema-with-rick-and-morty.json +4 -4
  442. package/examples/source/shape-books.json +49 -181
  443. package/examples/source/shape-editor-schema-edited.json +22 -68
  444. package/examples/source/shape-editor-schema-initial.json +9 -27
  445. package/examples/source/shapedb-crud-every-prop-type.json +20 -29
  446. package/examples/source/shopify-product-2022-07.json +736 -3261
  447. package/examples/source/shopify-product-2023-04.json +1022 -4540
  448. package/examples/source/shopify-store-with-widget.json +212 -941
  449. package/examples/source/stripe-product-runtime-schema.json +91 -321
  450. package/examples/source/stripe-starter-resolved.json +475 -1952
  451. package/examples/source/user-schema-with-defaults.json +1 -9
  452. package/examples/source/valvoline-ai-demo.json +175 -219
  453. package/examples/source/vector-search-schema.json +37 -38
  454. package/examples/v4_0_0/rick-and-morty-notes/flattened-schema.json +15 -49
  455. package/examples/v4_0_0/rick-and-morty-notes/layers/character-notes.json +8 -8
  456. package/examples/v4_0_0/rick-and-morty-notes/layers/takeshape-builtins.json +1 -3
  457. package/examples/v4_0_0/rick-and-morty-notes/layers/takeshape-static-sites.json +19 -79
  458. package/examples/v4_0_0/rick-and-morty-notes/schema.json +8 -5
  459. package/examples/v4_0_0/shopify-lookbook/flattened-schema.json +190 -851
  460. package/examples/v4_0_0/shopify-lookbook/layers/andrews-store.json +1103 -4431
  461. package/examples/v4_0_0/shopify-lookbook/layers/lookbook.json +64 -56
  462. package/examples/v4_0_0/shopify-lookbook/layers/takeshape-assets.json +1 -4
  463. package/examples/v4_0_0/shopify-lookbook/layers/takeshape-builtins.json +1 -3
  464. package/examples/v4_0_0/shopify-lookbook/schema.json +3 -10
  465. package/package.json +12 -9
@@ -0,0 +1,2189 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ /**
7
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
8
+ * via the `definition` "args".
9
+ */
10
+ export type ArgsV3_51_0 = string | ObjectSchemaV3_51_0;
11
+ /**
12
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
13
+ * via the `definition` "objectSchema".
14
+ */
15
+ export type ObjectSchemaV3_51_0 = PropertySchemaV3_51_0 & {
16
+ type: 'object';
17
+ properties: {
18
+ [k: string]: PropertySchemaV3_51_0;
19
+ };
20
+ };
21
+ /**
22
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
23
+ * via the `definition` "nonNegativeInteger".
24
+ */
25
+ export type NonNegativeIntegerV3_51_0 = number;
26
+ /**
27
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
28
+ * via the `definition` "nonNegativeIntegerDefault0".
29
+ */
30
+ export type NonNegativeIntegerDefault0V3_51_0 = NonNegativeIntegerV3_51_0;
31
+ /**
32
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
33
+ * via the `definition` "stringArray".
34
+ */
35
+ export type StringArrayV3_51_0 = string[];
36
+ /**
37
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
38
+ * via the `definition` "simpleTypes".
39
+ */
40
+ export type SimpleTypesV3_51_0 = 'array' | 'boolean' | 'integer' | 'null' | 'number' | 'object' | 'string';
41
+ /**
42
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
43
+ * via the `definition` "schemaArray".
44
+ */
45
+ export type SchemaArrayV3_51_0 = PropertySchemaV3_51_0[];
46
+ /**
47
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
48
+ * via the `definition` "ref".
49
+ */
50
+ export type RefV3_51_0 = string;
51
+ /**
52
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
53
+ * via the `definition` "objectOrRefArray".
54
+ */
55
+ export type ObjectOrRefArrayV3_51_0 = (RefSchemaV3_51_0 | RefSchemaLegacyV3_51_0 | ObjectSchemaV3_51_0)[];
56
+ /**
57
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
58
+ * via the `definition` "fieldMapping".
59
+ */
60
+ export type FieldMappingV3_51_0 = MappingStringV3_51_0 | MappingStringV3_51_0[];
61
+ /**
62
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
63
+ * via the `definition` "mappingString".
64
+ */
65
+ export type MappingStringV3_51_0 = string;
66
+ /**
67
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
68
+ * via the `definition` "resolver".
69
+ */
70
+ export type ResolverV3_51_0 = BasicResolverV3_51_0 | ComposeResolverV3_51_0;
71
+ /**
72
+ * A single resolver, can be composed with the ComposeResolver.
73
+ *
74
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
75
+ * via the `definition` "basicResolver".
76
+ */
77
+ export type BasicResolverV3_51_0 = UtilResolverV3_51_0 | DelegateResolverV3_51_0 | TakeshapeResolverV3_51_0 | ShapedbResolverV3_51_0 | ShapedbResolverShapeNameNotRequiredV3_51_0 | GraphqlResolverV3_51_0 | RestResolverV3_51_0 | AwsLambdaResolverV3_51_0 | SalsifyResolverV3_51_0 | SyndigoResolverV3_51_0 | FunctionResolverV3_51_0 | AIGenerateTextResolverV3_51_0 | AIGeneratePropertyResolverV3_51_0 | AIEmbeddingResolverV3_51_0 | AIParseFileResolverV3_51_0 | AIRunAgentResolverV3_51_0 | AIInspectAgentResolverV3_51_0;
78
+ /**
79
+ * Name of the resolver function.
80
+ */
81
+ export type UtilResolverNameV3_51_0 = 'util:noop' | 'util:wrap';
82
+ /**
83
+ * An object describing an operation to generate a parameter.
84
+ *
85
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
86
+ * via the `definition` "parameterOp".
87
+ */
88
+ export type ParameterOpV3_51_0 = ParameterOpNestedV3_51_0 | ParameterOpValueV3_51_0 | ParameterOpMappingV3_51_0 | ParameterOpOpV3_51_0;
89
+ /**
90
+ * A tuple with a string directive name, and options to pass to the directive
91
+ *
92
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
93
+ * via the `definition` "directiveConfigItem".
94
+ */
95
+ export type DirectiveConfigItemV3_51_0 = [DirectiveNameV3_51_0, DirectiveOptionsV3_51_0];
96
+ export type DirectiveNameV3_51_0 = string;
97
+ /**
98
+ * An array of individual directive config items to process in order
99
+ *
100
+ * This interface was referenced by `DirectiveMappingMapV3_51_0`'s JSON-Schema definition
101
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
102
+ *
103
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
104
+ * via the `definition` "directiveConfig".
105
+ */
106
+ export type DirectiveConfigV3_51_0 = DirectiveConfigItemV3_51_0[];
107
+ /**
108
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
109
+ * via the `definition` "parameterOpList".
110
+ */
111
+ export type ParameterOpListV3_51_0 = ParameterOpV3_51_0[];
112
+ /**
113
+ * Maps a query's input args to the input expected by the service's endpoint.
114
+ *
115
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
116
+ * via the `definition` "argsMapping".
117
+ */
118
+ export type ArgsMappingV3_51_0 = DirectiveMappingMapV3_51_0 | DirectiveConfigV3_51_0;
119
+ /**
120
+ * Maps a service endpoint's response results to the expected shape of the query's response.
121
+ *
122
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
123
+ * via the `definition` "resultsMapping".
124
+ */
125
+ export type ResultsMappingV3_51_0 = DirectiveMappingMapV3_51_0 | DirectiveConfigV3_51_0;
126
+ /**
127
+ * Name of the resolver function.
128
+ */
129
+ export type DelegateResolverNameV3_51_0 = 'delegate';
130
+ /**
131
+ * Name of the resolver function.
132
+ */
133
+ export type TakeshapeResolverNameV3_51_0 = 'takeshape:getUser' | 'takeshape:search' | 'takeshape:vectorSearch' | 'takeshape:queryApiIndex';
134
+ /**
135
+ * Name of the resolver function.
136
+ */
137
+ export type ShapedbResolverNameV3_51_0 = 'shapedb:get' | 'shapedb:create' | 'shapedb:update' | 'shapedb:delete' | 'shapedb:duplicate' | 'shapedb:find';
138
+ /**
139
+ * Name of the resolver function.
140
+ */
141
+ export type ShapedbResolverShapeNameNotRequiredNameV3_51_0 = 'shapedb:list' | 'shapedb:taxonomySuggest' | 'shapedb:getRelated';
142
+ /**
143
+ * Name of the resolver function.
144
+ */
145
+ export type GraphqlResolverNameV3_51_0 = 'graphql:query' | 'graphql:mutation' | 'shopify:bulkQuery';
146
+ /**
147
+ * Name of the resolver function.
148
+ */
149
+ export type RestResolverNameV3_51_0 = 'rest:get' | 'rest:head' | 'rest:post' | 'rest:put' | 'rest:patch' | 'rest:delete';
150
+ /**
151
+ * A tuple with a string key and a directive config to evaluate
152
+ *
153
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
154
+ * via the `definition` "directiveMappingArrayItem".
155
+ */
156
+ export type DirectiveMappingArrayItemV3_51_0 = [string, DirectiveConfigV3_51_0];
157
+ /**
158
+ * An array of key / value or directive config tuples
159
+ */
160
+ export type SearchParamsMappingV3_51_0 = DirectiveMappingArrayItemV3_51_0[];
161
+ /**
162
+ * Name of the resolver function.
163
+ */
164
+ export type AwsLambdaResolverNameV3_51_0 = 'awsLambda:invoke';
165
+ /**
166
+ * Name of the resolver function.
167
+ */
168
+ export type SalsifyResolverNameV3_51_0 = 'salsify:listChannelProducts';
169
+ /**
170
+ * Name of the resolver function.
171
+ */
172
+ export type SyndigoResolverNameV3_51_0 = 'syndigo:searchProducts';
173
+ /**
174
+ * Name of the resolver function.
175
+ */
176
+ export type FunctionResolverNameV3_51_0 = 'function:run';
177
+ export type FunctionResolverJavascriptV3_51_0 = string;
178
+ /**
179
+ * Name of the resolver function.
180
+ */
181
+ export type AIResolverNameV3_51_0 = 'ai:generateText' | 'ai:chat';
182
+ export type HistoryV3_51_0 = boolean;
183
+ /**
184
+ * Maximum number of tokens to generate.
185
+ */
186
+ export type MaximumTokensV3_51_0 = number;
187
+ /**
188
+ * This is a number between 0 (almost no randomness) and 1 (very random). It is recommended to set either `temperature` or `topP`, but not both. Defaults to 0
189
+ */
190
+ export type TemperatureV3_51_0 = number;
191
+ /**
192
+ * Nucleus sampling. This is a number between 0 and 1. E.g. 0.1 would mean that only tokens with the top 10% probability mass are considered. It is recommended to set either `temperature` or `topP`, but not both.
193
+ */
194
+ export type TopPV3_51_0 = number;
195
+ /**
196
+ * Only sample from the top K options for each subsequent token. Used to remove "long tail" low probability responses. Recommended for advanced use cases only. You usually only need to use temperature.
197
+ */
198
+ export type TopKV3_51_0 = number;
199
+ /**
200
+ * It affects the likelihood of the model to repeat information that is already in the prompt. The presence penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.
201
+ */
202
+ export type PresencePenaltySettingV3_51_0 = number;
203
+ /**
204
+ * It affects the likelihood of the model to repeatedly use the same words or phrases. The frequency penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.
205
+ */
206
+ export type FrequencyPenaltySettingV3_51_0 = number;
207
+ /**
208
+ * If set, the model will stop generating text when one of the stop sequences is generated.
209
+ */
210
+ export type StopSequencesV3_51_0 = string[];
211
+ /**
212
+ * The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results.
213
+ */
214
+ export type SeedV3_51_0 = number;
215
+ /**
216
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
217
+ * via the `definition` "aiGuardrail".
218
+ */
219
+ export type AIGuardrailV3_51_0 = AISimilarityGuardrailV3_51_0;
220
+ /**
221
+ * Name of the resolver function.
222
+ */
223
+ export type AIResolverNameV3_51_01 = 'ai:generateProperty';
224
+ /**
225
+ * Name of the resolver function.
226
+ */
227
+ export type AIResolverNameV3_51_02 = 'ai:createEmbedding';
228
+ /**
229
+ * Name of the resolver function.
230
+ */
231
+ export type AIResolverNameV3_51_03 = 'ai:parseFile';
232
+ /**
233
+ * Name of the resolver function.
234
+ */
235
+ export type AIResolverNameV3_51_04 = 'ai:runAgent';
236
+ /**
237
+ * Name of the resolver function.
238
+ */
239
+ export type AIResolverNameV3_51_05 = 'ai:inspectAgentSession';
240
+ /**
241
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
242
+ * via the `definition` "dependencies".
243
+ */
244
+ export type DependenciesV3_51_0 = string;
245
+ /**
246
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
247
+ * via the `definition` "returnShape".
248
+ */
249
+ export type ReturnShapeV3_51_0 = string | ReturnShapeArraySchemaV3_51_0;
250
+ /**
251
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
252
+ * via the `definition` "returnShapeArraySchema".
253
+ */
254
+ export type ReturnShapeArraySchemaV3_51_0 = PropertySchemaV3_51_0 & {
255
+ type: 'array';
256
+ items: RefSchemaV3_51_0 | {
257
+ type: 'boolean' | 'integer' | 'number' | 'string' | 'object';
258
+ [k: string]: any;
259
+ };
260
+ };
261
+ export type ModelTypeV3_51_0 = 'single' | 'multiple' | 'taxonomy';
262
+ /**
263
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
264
+ * via the `definition` "paginationConfig".
265
+ */
266
+ export type PaginationConfigV3_51_0 = PaginationCursorConfigV3_51_0 | PaginationPageConfigV3_51_0 | PaginationOffsetConfigV3_51_0;
267
+ /**
268
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
269
+ * via the `definition` "cacheTriggerConfig".
270
+ */
271
+ export type CacheTriggerConfigV3_51_0 = CacheScheduleTriggerConfigV3_51_0 | CacheWebhookTriggerConfigV3_51_0;
272
+ /**
273
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
274
+ * via the `definition` "shapeSchema".
275
+ */
276
+ export type ShapeSchemaV3_51_0 = ShapeSchemaAllOfV3_51_0 | ShapeSchemaExtendsV3_51_0 | ShapeSchemaOneOfV3_51_0 | ShapeSchemaEnumV3_51_0 | ObjectSchemaV3_51_0 | ShapeSchemaAnyV3_51_0;
277
+ export type AgentAPIV3_51_0 = AgentAPIChatV3_51_0 | AgentAPIGenerateV3_51_0;
278
+ /**
279
+ * These steps are evaluated in order until a destination is found.
280
+ */
281
+ export type AgentStateTransitionV3_51_0 = AgentTransitionStepV3_51_0[];
282
+ export type AgentVariableStepV3_51_0 = AgentVariableStepGraphQLArgV3_51_0 | AgentVariableStepStateOutputV3_51_0 | AgentVariableStepPreviousStateOutputV3_51_0 | AgentVariableStepStaticValueV3_51_0;
283
+ export type AgentVariableStepConditionV3_51_0 = AgentVariableStepConditionNoneV3_51_0 | AgentVariableStepConditionSourceStateV3_51_0;
284
+ export type VariablesV3_51_0 = AgentVariableV3_51_0[];
285
+ export type AgentExecutionV3_51_0 = AgentExecutionGraphQLV3_51_0 | AgentExecutionGenerateV3_51_0 | AgentExecutionChatV3_51_0;
286
+ export type AgentAIStateInputV3_51_0 = AgentAIStateInputArgumentV3_51_0 | AgentAIStateInputTemplateV3_51_0;
287
+ export type AgentGuardrailV3_51_0 = AgentSimilarityGuardrailV3_51_0;
288
+ export type HistoryV3_51_01 = boolean;
289
+ /**
290
+ * Maximum number of tokens to generate.
291
+ */
292
+ export type MaximumTokensV3_51_01 = number;
293
+ /**
294
+ * This is a number between 0 (almost no randomness) and 1 (very random). It is recommended to set either `temperature` or `topP`, but not both. Defaults to 0
295
+ */
296
+ export type TemperatureV3_51_01 = number;
297
+ /**
298
+ * Nucleus sampling. This is a number between 0 and 1. E.g. 0.1 would mean that only tokens with the top 10% probability mass are considered. It is recommended to set either `temperature` or `topP`, but not both.
299
+ */
300
+ export type TopPV3_51_01 = number;
301
+ /**
302
+ * Only sample from the top K options for each subsequent token. Used to remove "long tail" low probability responses. Recommended for advanced use cases only. You usually only need to use temperature.
303
+ */
304
+ export type TopKV3_51_01 = number;
305
+ /**
306
+ * It affects the likelihood of the model to repeat information that is already in the prompt. The presence penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.
307
+ */
308
+ export type PresencePenaltySettingV3_51_01 = number;
309
+ /**
310
+ * It affects the likelihood of the model to repeatedly use the same words or phrases. The frequency penalty is a number between -1 (increase repetition) and 1 (maximum penalty, decrease repetition). 0 means no penalty.
311
+ */
312
+ export type FrequencyPenaltySettingV3_51_01 = number;
313
+ /**
314
+ * If set, the model will stop generating text when one of the stop sequences is generated.
315
+ */
316
+ export type StopSequencesV3_51_01 = string[];
317
+ /**
318
+ * The seed (integer) to use for random sampling. If set and supported by the model, calls will generate deterministic results.
319
+ */
320
+ export type SeedV3_51_01 = number;
321
+ export type AgentGuardListV3_51_0 = AgentGuardV3_51_0[];
322
+ /**
323
+ * The human-readable name of the Guard.
324
+ */
325
+ export type NameV3_51_0 = string;
326
+ /**
327
+ * A description of the Guard.
328
+ */
329
+ export type DescriptionV3_51_0 = string;
330
+ /**
331
+ * A message to return when the input message is blocked by the Guard.
332
+ */
333
+ export type BlockedInputMessagingV3_51_0 = string;
334
+ /**
335
+ * A message to return when the output message is blocked by the Guard.
336
+ */
337
+ export type BlockedOutputsMessagingV3_51_0 = string;
338
+ export type GuardrailFilterStrengthV3_51_0 = 'NONE' | 'HIGH' | 'LOW' | 'MEDIUM';
339
+ export type GuardrailModalityV3_51_0 = 'TEXT' | 'IMAGE';
340
+ export type GuardrailSensitiveInformationActionV3_51_0 = 'ANONYMIZE' | 'BLOCK';
341
+ /**
342
+ * The type of filter.
343
+ */
344
+ export type TypeV3_51_0 = 'GROUNDING' | 'RELEVANCE';
345
+ /**
346
+ * The threshold for the filter as a floating point value between 0.0 - 1.0.
347
+ */
348
+ export type ThresholdV3_51_0 = number;
349
+ /**
350
+ * Human-readable id for use in the UI
351
+ */
352
+ export type WorkflowNameV3_51_0 = string;
353
+ /**
354
+ * machine-readable slug
355
+ */
356
+ export type NameV3_51_01 = string;
357
+ /**
358
+ * Human-readable id for use in the UI
359
+ */
360
+ export type TitleV3_51_0 = string;
361
+ export type DescriptionV3_51_01 = string;
362
+ /**
363
+ * Hex color code
364
+ */
365
+ export type ColorV3_51_0 = string;
366
+ /**
367
+ * Value to indicate whether items in the state should be returned in list queries
368
+ */
369
+ export type LiveV3_51_0 = boolean;
370
+ /**
371
+ * machine-readable id
372
+ */
373
+ export type KeyV3_51_0 = string;
374
+ export type StepsV3_51_0 = WorkflowStepV3_51_0[];
375
+ /**
376
+ * The general type of this service, specifying how and where it will be utilized.
377
+ *
378
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
379
+ * via the `definition` "serviceType".
380
+ */
381
+ export type ServiceTypeV3_51_0 = 'deployment' | 'authentication' | 'takeshape' | 'rest' | 'graphql' | 'openapi' | 'aws' | 'unknown';
382
+ /**
383
+ * The name of a health check to run
384
+ */
385
+ export type CheckNameV3_51_0 = 'graphqlIntrospection' | 'ping' | 'none';
386
+ /**
387
+ * The endpoint to use when checking the service health.
388
+ */
389
+ export type EndpointV3_51_0 = string;
390
+ /**
391
+ * A custom method to use for the health check request.
392
+ */
393
+ export type RequestMethodV3_51_0 = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
394
+ /**
395
+ * A custom body to send along with the ping request.
396
+ */
397
+ export type RequestBodyV3_51_0 = string;
398
+ /**
399
+ * A custom body to send along with the ping request.
400
+ */
401
+ export type RequestBodyFormatV3_51_0 = 'string' | 'form' | 'json' | 'form-data';
402
+ /**
403
+ * The amount of time to wait when receiving a response from the health check, in seconds.
404
+ */
405
+ export type RequestTimeoutV3_51_0 = number;
406
+ /**
407
+ * The response status code that qualifies as healthy.
408
+ */
409
+ export type HealthyResponseStatusCodeV3_51_0 = number;
410
+ /**
411
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
412
+ * via the `definition` "serviceHealthCheckTrigger".
413
+ */
414
+ export type ServiceHealthCheckTriggerV3_51_0 = 'manual' | 'schedule';
415
+ /**
416
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
417
+ * via the `definition` "allOfSchema".
418
+ */
419
+ export type AllOfSchemaV3_51_0 = PropertySchemaV3_51_0 & {
420
+ allOf: ObjectOrRefArrayV3_51_0;
421
+ };
422
+ /**
423
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
424
+ * via the `definition` "extendsSchema".
425
+ */
426
+ export type ExtendsSchemaV3_51_0 = PropertySchemaV3_51_0 & {
427
+ extends: ObjectOrRefArrayV3_51_0;
428
+ };
429
+ /**
430
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
431
+ * via the `definition` "oneOfSchema".
432
+ */
433
+ export type OneOfSchemaV3_51_0 = PropertySchemaV3_51_0 & {
434
+ oneOf: ObjectOrRefArrayV3_51_0;
435
+ };
436
+ /**
437
+ * Options to be passed to the serialization routine.
438
+ *
439
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
440
+ * via the `definition` "parameterSerializeOptions".
441
+ *
442
+ * This interface was referenced by `undefined`'s JSON-Schema definition
443
+ * via the `patternProperty` "^[^\n\r]*$".
444
+ */
445
+ export type ParameterSerializeOptionsV3_51_0 = ParameterSerializeStyleOptionsV3_51_0 | ParameterSerializeContentOptionsV3_51_0;
446
+ /**
447
+ * An array of key / value or directive config tuples
448
+ *
449
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
450
+ * via the `definition` "directiveMappingArray".
451
+ */
452
+ export type DirectiveMappingArrayV3_51_0 = DirectiveMappingArrayItemV3_51_0[];
453
+ /**
454
+ * A resolver which references a specific service
455
+ *
456
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
457
+ * via the `definition` "serviceResolver".
458
+ */
459
+ export type ServiceResolverV3_51_0 = TakeshapeResolverV3_51_0 | ShapedbResolverShapeNameNotRequiredV3_51_0 | ShapedbResolverV3_51_0 | GraphqlResolverV3_51_0 | RestResolverV3_51_0 | AwsLambdaResolverV3_51_0;
460
+ /**
461
+ * An array of key / value or directive config tuples
462
+ *
463
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
464
+ * via the `definition` "searchParamsMapping".
465
+ */
466
+ export type SearchParamsMappingV3_51_01 = DirectiveMappingArrayItemV3_51_0[];
467
+ /**
468
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
469
+ * via the `definition` "shapeWithObjectSchema".
470
+ */
471
+ export type ShapeWithObjectSchemaV3_51_0 = ShapeJSONV3_51_0 & {
472
+ schema: ObjectSchemaV3_51_0;
473
+ };
474
+ /**
475
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
476
+ * via the `definition` "serviceAuthentication".
477
+ */
478
+ export type ServiceAuthenticationV3_51_0 = OAuth2AuthenticationV3_51_0 | OAuth2BearerAuthenticationV3_51_0 | BearerAuthenticationV3_51_0 | BasicAuthenticationV3_51_0 | SearchParamsAuthenticationV3_51_0 | AWSAuthenticationV3_51_0 | GoogleAuthenticationV3_51_0 | CustomAuthenticationV3_51_0;
479
+ /**
480
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
481
+ * via the `definition` "anyServiceConfig".
482
+ */
483
+ export type AnyServiceConfigV3_51_0 = ServiceConfigJSONV3_51_0 | ServiceConfigV3_51_0;
484
+ export interface ProjectSchemaJSONV3_51_0 {
485
+ $schema?: string;
486
+ /**
487
+ * The version of the TakeShape API your project is using. We increase the version as we make breaking changes to the API endpoints.
488
+ */
489
+ apiVersion: string;
490
+ /**
491
+ * The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format.
492
+ */
493
+ schemaVersion: '3.51.0';
494
+ /**
495
+ * The ID of the TakeShape project this schema belongs to.
496
+ */
497
+ projectId: string;
498
+ /**
499
+ * The ID of the TakeShape user who created the schema.
500
+ */
501
+ author?: string;
502
+ deactivated?: number;
503
+ /**
504
+ * The locale that should be preferred when creating new Shape items. This must be an entry in the locales array.
505
+ */
506
+ defaultLocale: string;
507
+ locales: string[];
508
+ queries: QueryMapV3_51_0;
509
+ mutations: QueryMapV3_51_0;
510
+ shapes: ShapeMapV3_51_0;
511
+ 'ai-experimental'?: AIExperimentalV3_51_0;
512
+ forms?: FormMapV3_51_0;
513
+ workflows: WorkflowMapV3_51_0;
514
+ services?: ServiceMapJSONV3_51_0;
515
+ }
516
+ /**
517
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
518
+ * via the `definition` "queryMap".
519
+ */
520
+ export interface QueryMapV3_51_0 {
521
+ [k: string]: QueryJSONV3_51_0;
522
+ }
523
+ /**
524
+ * This interface was referenced by `QueryMapV3_51_0`'s JSON-Schema definition
525
+ * via the `patternProperty` "^[0-9A-Za-z_]+$".
526
+ *
527
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
528
+ * via the `definition` "query".
529
+ */
530
+ export interface QueryJSONV3_51_0 {
531
+ args?: ArgsV3_51_0;
532
+ resolver: ResolverV3_51_0;
533
+ shape: ReturnShapeV3_51_0;
534
+ /**
535
+ * Provides more detail about what the query or mutation is for. This will be displayed in the automatically-generated GraphQL API docs.
536
+ */
537
+ description?: string;
538
+ }
539
+ /**
540
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
541
+ * via the `definition` "propertySchema".
542
+ */
543
+ export interface PropertySchemaV3_51_0 {
544
+ $ref?: string;
545
+ title?: string;
546
+ description?: string;
547
+ default?: any;
548
+ readOnly?: boolean;
549
+ multipleOf?: number;
550
+ maximum?: number;
551
+ exclusiveMaximum?: number;
552
+ minimum?: number;
553
+ exclusiveMinimum?: number;
554
+ maxLength?: NonNegativeIntegerV3_51_0;
555
+ minLength?: NonNegativeIntegerDefault0V3_51_0;
556
+ pattern?: string;
557
+ additionalItems?: PropertySchemaV3_51_0;
558
+ items?: PropertySchemaV3_51_0;
559
+ maxItems?: NonNegativeIntegerV3_51_0;
560
+ minItems?: NonNegativeIntegerDefault0V3_51_0;
561
+ uniqueItems?: boolean;
562
+ contains?: PropertySchemaV3_51_0;
563
+ maxProperties?: NonNegativeIntegerV3_51_0;
564
+ minProperties?: NonNegativeIntegerDefault0V3_51_0;
565
+ required?: StringArrayV3_51_0;
566
+ additionalProperties?: PropertySchemaV3_51_0 | false;
567
+ definitions?: {
568
+ [k: string]: PropertySchemaV3_51_0;
569
+ };
570
+ properties?: {
571
+ [k: string]: PropertySchemaV3_51_0;
572
+ };
573
+ const?: any;
574
+ enum?: any[];
575
+ type?: SimpleTypesV3_51_0 | SimpleTypesV3_51_0[];
576
+ format?: string;
577
+ contentMediaType?: string;
578
+ contentEncoding?: string;
579
+ allOf?: SchemaArrayV3_51_0;
580
+ discriminator?: {
581
+ propertyName?: string;
582
+ [k: string]: any;
583
+ };
584
+ oneOf?: SchemaArrayV3_51_0;
585
+ extends?: ObjectOrRefArrayV3_51_0;
586
+ '@backreference'?: BackReferenceV3_51_0;
587
+ '@input'?: PropertySchemaV3_51_0;
588
+ '@output'?: PropertySchemaV3_51_0;
589
+ '@syncLocaleStructure'?: boolean;
590
+ '@sensitive'?: boolean;
591
+ '@draftjs'?: boolean;
592
+ '@l10n'?: boolean;
593
+ '@key'?: string;
594
+ '@workflow'?: string;
595
+ '@mapping'?: FieldMappingV3_51_0;
596
+ '@tag'?: string;
597
+ '@tags'?: string[];
598
+ '@deprecationReason'?: string;
599
+ '@args'?: ArgsV3_51_0;
600
+ '@resolver'?: ResolverV3_51_0;
601
+ '@dependencies'?: DependenciesV3_51_0;
602
+ '@ref'?: RefV3_51_0;
603
+ '@derivedFrom'?: string;
604
+ '@indexed'?: IndexedV3_51_0;
605
+ '@graphql'?: GraphQLConfigV3_51_0;
606
+ }
607
+ /**
608
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
609
+ * via the `definition` "refSchema".
610
+ */
611
+ export interface RefSchemaV3_51_0 {
612
+ '@ref': RefV3_51_0;
613
+ [k: string]: any;
614
+ }
615
+ /**
616
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
617
+ * via the `definition` "refSchemaLegacy".
618
+ */
619
+ export interface RefSchemaLegacyV3_51_0 {
620
+ $ref: RefV3_51_0;
621
+ [k: string]: any;
622
+ }
623
+ /**
624
+ * A configuration object for a reverse reference in a relationship.
625
+ *
626
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
627
+ * via the `definition` "backreference".
628
+ */
629
+ export interface BackReferenceV3_51_0 {
630
+ enabled: boolean;
631
+ name?: string;
632
+ }
633
+ /**
634
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
635
+ * via the `definition` "utilResolver".
636
+ */
637
+ export interface UtilResolverV3_51_0 {
638
+ if?: string;
639
+ id?: string;
640
+ name: UtilResolverNameV3_51_0;
641
+ options?: UtilResolverOptionsV3_51_0;
642
+ /**
643
+ * Optional value to return from the noop resolver.
644
+ */
645
+ value?: number | string | boolean | {
646
+ [k: string]: any;
647
+ } | any[] | null;
648
+ args?: ParameterConfigForJsonV3_51_0;
649
+ results?: ParameterConfigForJsonV3_51_0;
650
+ argsMapping?: ArgsMappingV3_51_0;
651
+ resultsMapping?: ResultsMappingV3_51_0;
652
+ }
653
+ export interface UtilResolverOptionsV3_51_0 {
654
+ [k: string]: any;
655
+ }
656
+ /**
657
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
658
+ * via the `definition` "parameterConfigForJson".
659
+ */
660
+ export interface ParameterConfigForJsonV3_51_0 {
661
+ ops: ParameterOpListV3_51_0;
662
+ }
663
+ /**
664
+ * An object describing an operation to generate a parameter, using a nested OpList.
665
+ *
666
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
667
+ * via the `definition` "parameterOpNested".
668
+ */
669
+ export interface ParameterOpNestedV3_51_0 {
670
+ /**
671
+ * A path to the parameter for this operation.
672
+ */
673
+ path: string;
674
+ /**
675
+ * A mode for this parameter's operation.
676
+ */
677
+ op?: 'set' | 'concat' | 'extend' | 'remove';
678
+ ops: ParameterOpListV3_51_0;
679
+ }
680
+ /**
681
+ * An object describing an operation to generate a parameter using a value.
682
+ *
683
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
684
+ * via the `definition` "parameterOpValue".
685
+ */
686
+ export interface ParameterOpValueV3_51_0 {
687
+ /**
688
+ * A path to the parameter for this operation.
689
+ */
690
+ path: string;
691
+ /**
692
+ * A mode for this parameter's operation.
693
+ */
694
+ op?: 'set' | 'concat' | 'extend' | 'remove';
695
+ /**
696
+ * A value to set directly at this path.
697
+ */
698
+ value: number | string | boolean | {
699
+ [k: string]: any;
700
+ } | any[] | null;
701
+ }
702
+ /**
703
+ * An object describing an operation to generate a parameter using a mapping.
704
+ *
705
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
706
+ * via the `definition` "parameterOpMapping".
707
+ */
708
+ export interface ParameterOpMappingV3_51_0 {
709
+ /**
710
+ * A path to the parameter for this operation.
711
+ */
712
+ path: string;
713
+ /**
714
+ * A mode for this parameter's operation.
715
+ */
716
+ op?: 'set' | 'concat' | 'extend' | 'remove';
717
+ /**
718
+ * Either a valid JSONPath or a directive pipeline to evaluate against the query context.
719
+ */
720
+ mapping: string | DirectiveConfigV3_51_0;
721
+ }
722
+ export interface DirectiveOptionsV3_51_0 {
723
+ [k: string]: any;
724
+ }
725
+ /**
726
+ * An object describing an operation to generate a parameter using a mapping.
727
+ *
728
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
729
+ * via the `definition` "parameterOpOp".
730
+ */
731
+ export interface ParameterOpOpV3_51_0 {
732
+ /**
733
+ * A path to the parameter for this operation.
734
+ */
735
+ path: string;
736
+ /**
737
+ * A mode for this parameter's operation.
738
+ */
739
+ op: 'set' | 'concat' | 'extend' | 'remove';
740
+ }
741
+ /**
742
+ * An map of object keys / key paths to directive configs
743
+ *
744
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
745
+ * via the `definition` "directiveMappingMap".
746
+ */
747
+ export interface DirectiveMappingMapV3_51_0 {
748
+ [k: string]: DirectiveConfigV3_51_0;
749
+ }
750
+ /**
751
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
752
+ * via the `definition` "delegateResolver".
753
+ */
754
+ export interface DelegateResolverV3_51_0 {
755
+ if?: string;
756
+ id?: string;
757
+ name: DelegateResolverNameV3_51_0;
758
+ options?: DelegateResolverOptionsV3_51_0;
759
+ argsMapping?: ArgsMappingV3_51_0;
760
+ resultsMapping?: ResultsMappingV3_51_0;
761
+ /**
762
+ * A ref to a query/mutation/property to delegate to.
763
+ */
764
+ to: string;
765
+ args?: ParameterConfigForJsonV3_51_0;
766
+ results?: ParameterConfigForJsonV3_51_0;
767
+ }
768
+ export interface DelegateResolverOptionsV3_51_0 {
769
+ [k: string]: any;
770
+ }
771
+ /**
772
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
773
+ * via the `definition` "takeshapeResolver".
774
+ */
775
+ export interface TakeshapeResolverV3_51_0 {
776
+ if?: string;
777
+ id?: string;
778
+ name: TakeshapeResolverNameV3_51_0;
779
+ /**
780
+ * Internal service identifier.
781
+ */
782
+ service: 'takeshape';
783
+ options?: TakeshapeResolverOptionsV3_51_0;
784
+ /**
785
+ * An optional Shape name for the resolver.
786
+ */
787
+ shapeName?: string;
788
+ args?: ParameterConfigForJsonV3_51_0;
789
+ results?: ParameterConfigForJsonV3_51_0;
790
+ argsMapping?: ArgsMappingV3_51_0;
791
+ resultsMapping?: ResultsMappingV3_51_0;
792
+ }
793
+ export interface TakeshapeResolverOptionsV3_51_0 {
794
+ [k: string]: any;
795
+ }
796
+ /**
797
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
798
+ * via the `definition` "shapedbResolver".
799
+ */
800
+ export interface ShapedbResolverV3_51_0 {
801
+ if?: string;
802
+ id?: string;
803
+ name: ShapedbResolverNameV3_51_0;
804
+ /**
805
+ * Internal service identifier.
806
+ */
807
+ service: 'shapedb';
808
+ options?: ShapedbResolverOptionsV3_51_0;
809
+ argsMapping?: ArgsMappingV3_51_0;
810
+ resultsMapping?: ResultsMappingV3_51_0;
811
+ /**
812
+ * A Shape name for the resolver to use.
813
+ */
814
+ shapeName: string;
815
+ args?: ParameterConfigForJsonV3_51_0;
816
+ results?: ParameterConfigForJsonV3_51_0;
817
+ }
818
+ export interface ShapedbResolverOptionsV3_51_0 {
819
+ [k: string]: any;
820
+ }
821
+ /**
822
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
823
+ * via the `definition` "shapedbResolverShapeNameNotRequired".
824
+ */
825
+ export interface ShapedbResolverShapeNameNotRequiredV3_51_0 {
826
+ if?: string;
827
+ id?: string;
828
+ name: ShapedbResolverShapeNameNotRequiredNameV3_51_0;
829
+ /**
830
+ * Internal service identifier.
831
+ */
832
+ service: 'shapedb';
833
+ options?: ShapedbResolverShapeNameNotRequiredOptionsV3_51_0;
834
+ /**
835
+ * An optional Shape name for the resolver.
836
+ */
837
+ shapeName?: string;
838
+ args?: ParameterConfigForJsonV3_51_0;
839
+ results?: ParameterConfigForJsonV3_51_0;
840
+ argsMapping?: ArgsMappingV3_51_0;
841
+ resultsMapping?: ResultsMappingV3_51_0;
842
+ }
843
+ export interface ShapedbResolverShapeNameNotRequiredOptionsV3_51_0 {
844
+ [k: string]: any;
845
+ }
846
+ /**
847
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
848
+ * via the `definition` "graphqlResolver".
849
+ */
850
+ export interface GraphqlResolverV3_51_0 {
851
+ if?: string;
852
+ id?: string;
853
+ name: GraphqlResolverNameV3_51_0;
854
+ /**
855
+ * Configuration for a service to use with this resolver.
856
+ */
857
+ service: string;
858
+ argsMapping?: ArgsMappingV3_51_0;
859
+ resultsMapping?: ResultsMappingV3_51_0;
860
+ options?: GraphqlResolverOptionsV3_51_0;
861
+ /**
862
+ * A fieldname to use in queries.
863
+ */
864
+ fieldName: string;
865
+ headers?: ParameterConfigForHeadersV3_51_0;
866
+ searchParams?: ParameterConfigForSearchParamsV3_51_0;
867
+ args?: ParameterConfigForJsonV3_51_0;
868
+ results?: ParameterConfigForJsonV3_51_0;
869
+ }
870
+ export interface GraphqlResolverOptionsV3_51_0 {
871
+ selectionSet?: string;
872
+ unboxParentSelectionSet?: boolean;
873
+ ignoreErrors?: boolean;
874
+ skipWhenMissingArgs?: boolean;
875
+ ttl?: number;
876
+ timeout?: number;
877
+ allowStream?: boolean;
878
+ retry?: number | {
879
+ [k: string]: any;
880
+ };
881
+ [k: string]: any;
882
+ }
883
+ /**
884
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
885
+ * via the `definition` "parameterConfigForHeaders".
886
+ */
887
+ export interface ParameterConfigForHeadersV3_51_0 {
888
+ ops: ParameterOpListV3_51_0;
889
+ serialize?: ParameterSerializeConfigForHeadersV3_51_0;
890
+ }
891
+ /**
892
+ * Top-level paths to use headers serialization options for.
893
+ *
894
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
895
+ * via the `definition` "parameterSerializeConfigForHeaders".
896
+ */
897
+ export interface ParameterSerializeConfigForHeadersV3_51_0 {
898
+ defaults?: ParameterSerializeStyleOptionsForHeadersV3_51_0 | ParameterSerializeContentOptionsV3_51_0;
899
+ paths?: {
900
+ /**
901
+ * This interface was referenced by `undefined`'s JSON-Schema definition
902
+ * via the `patternProperty` "^[^\n\r]*$".
903
+ */
904
+ [k: string]: ParameterSerializeStyleOptionsForHeadersV3_51_0 | ParameterSerializeContentOptionsV3_51_0;
905
+ };
906
+ }
907
+ /**
908
+ * Options to be passed to the serialization routine.
909
+ *
910
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
911
+ * via the `definition` "parameterSerializeStyleOptionsForHeaders".
912
+ */
913
+ export interface ParameterSerializeStyleOptionsForHeadersV3_51_0 {
914
+ style: 'simple' | 'none';
915
+ explode?: boolean;
916
+ }
917
+ /**
918
+ * Options to be passed to the serialization routine.
919
+ *
920
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
921
+ * via the `definition` "parameterSerializeContentOptions".
922
+ */
923
+ export interface ParameterSerializeContentOptionsV3_51_0 {
924
+ contentType: string;
925
+ /**
926
+ * The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.
927
+ */
928
+ allowReserved?: boolean;
929
+ skipEncoding?: boolean;
930
+ /**
931
+ * Options to be passed directly to the content serializer library. Valid options depend upon your contentType.
932
+ */
933
+ options?: {
934
+ [k: string]: any;
935
+ };
936
+ }
937
+ /**
938
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
939
+ * via the `definition` "parameterConfigForSearchParams".
940
+ */
941
+ export interface ParameterConfigForSearchParamsV3_51_0 {
942
+ ops: ParameterOpListV3_51_0;
943
+ serialize?: ParameterSerializeConfigForSearchParamsV3_51_0;
944
+ }
945
+ /**
946
+ * Top-level paths to use search params serialization options for.
947
+ *
948
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
949
+ * via the `definition` "parameterSerializeConfigForSearchParams".
950
+ */
951
+ export interface ParameterSerializeConfigForSearchParamsV3_51_0 {
952
+ defaults?: ParameterSerializeStyleOptionsForSearchParamsV3_51_0 | ParameterSerializeContentOptionsV3_51_0;
953
+ paths?: {
954
+ /**
955
+ * This interface was referenced by `undefined`'s JSON-Schema definition
956
+ * via the `patternProperty` "^[^\n\r]*$".
957
+ */
958
+ [k: string]: ParameterSerializeStyleOptionsForSearchParamsV3_51_0 | ParameterSerializeContentOptionsV3_51_0;
959
+ };
960
+ }
961
+ /**
962
+ * Options to be passed to the serialization routine.
963
+ *
964
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
965
+ * via the `definition` "parameterSerializeStyleOptionsForSearchParams".
966
+ */
967
+ export interface ParameterSerializeStyleOptionsForSearchParamsV3_51_0 {
968
+ style: 'form' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject' | 'none';
969
+ explode?: boolean;
970
+ allowEmptyValue?: boolean;
971
+ /**
972
+ * The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.
973
+ */
974
+ allowReserved?: boolean;
975
+ skipEncoding?: boolean;
976
+ }
977
+ /**
978
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
979
+ * via the `definition` "restResolver".
980
+ */
981
+ export interface RestResolverV3_51_0 {
982
+ if?: string;
983
+ id?: string;
984
+ name: RestResolverNameV3_51_0;
985
+ /**
986
+ * Configuration for a service to use with this resolver.
987
+ */
988
+ service: string;
989
+ argsMapping?: ArgsMappingV3_51_0;
990
+ searchParamsMapping?: SearchParamsMappingV3_51_0;
991
+ resultsMapping?: ResultsMappingV3_51_0;
992
+ options?: RestResolverOptionsV3_51_0;
993
+ body?: ParameterConfigForBodyV3_51_0;
994
+ form?: ParameterConfigForSearchParamsV3_51_0;
995
+ headers?: ParameterConfigForHeadersV3_51_0;
996
+ json?: ParameterConfigForJsonV3_51_0;
997
+ /**
998
+ * Mapping and serialization configuration for the path, or a simple string.
999
+ */
1000
+ path: ParameterConfigForPathParamsV3_51_0 | string;
1001
+ searchParams?: ParameterConfigForSearchParamsV3_51_0;
1002
+ args?: ParameterConfigForJsonV3_51_0;
1003
+ results?: ParameterConfigForJsonV3_51_0;
1004
+ }
1005
+ export interface RestResolverOptionsV3_51_0 {
1006
+ trailingSlash?: boolean;
1007
+ allowStream?: boolean;
1008
+ ttl?: number;
1009
+ timeout?: number;
1010
+ retry?: number | {
1011
+ [k: string]: any;
1012
+ };
1013
+ [k: string]: any;
1014
+ }
1015
+ /**
1016
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1017
+ * via the `definition` "parameterConfigForBody".
1018
+ */
1019
+ export interface ParameterConfigForBodyV3_51_0 {
1020
+ ops: ParameterOpListV3_51_0;
1021
+ serialize?: ParameterSerializeConfigForBodyV3_51_0;
1022
+ }
1023
+ /**
1024
+ * Top-level paths to use serialization options for.
1025
+ *
1026
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1027
+ * via the `definition` "parameterSerializeConfigForBody".
1028
+ */
1029
+ export interface ParameterSerializeConfigForBodyV3_51_0 {
1030
+ content?: ParameterSerializeContentOptionsV3_51_0;
1031
+ }
1032
+ /**
1033
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1034
+ * via the `definition` "parameterConfigForPathParams".
1035
+ */
1036
+ export interface ParameterConfigForPathParamsV3_51_0 {
1037
+ ops: ParameterOpListV3_51_0;
1038
+ serialize: ParameterSerializeConfigForPathParamsV3_51_0;
1039
+ }
1040
+ /**
1041
+ * Top-level paths to use path params serialization options for.
1042
+ *
1043
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1044
+ * via the `definition` "parameterSerializeConfigForPathParams".
1045
+ */
1046
+ export interface ParameterSerializeConfigForPathParamsV3_51_0 {
1047
+ /**
1048
+ * For generating the path using tokens frpm the ParameterOps, e.g., '/products/{productId}'
1049
+ */
1050
+ template: string;
1051
+ defaults?: ParameterSerializeStyleOptionsForPathParamsV3_51_0 | ParameterSerializeContentOptionsV3_51_0;
1052
+ paths?: {
1053
+ /**
1054
+ * This interface was referenced by `undefined`'s JSON-Schema definition
1055
+ * via the `patternProperty` "^[^\n\r]*$".
1056
+ */
1057
+ [k: string]: ParameterSerializeStyleOptionsForPathParamsV3_51_0 | ParameterSerializeContentOptionsV3_51_0;
1058
+ };
1059
+ }
1060
+ /**
1061
+ * Options to be passed to the serialization routine.
1062
+ *
1063
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1064
+ * via the `definition` "parameterSerializeStyleOptionsForPathParams".
1065
+ */
1066
+ export interface ParameterSerializeStyleOptionsForPathParamsV3_51_0 {
1067
+ style: 'simple' | 'label' | 'matrix' | 'none';
1068
+ explode?: boolean;
1069
+ allowEmptyValue?: boolean;
1070
+ /**
1071
+ * The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.
1072
+ */
1073
+ allowReserved?: boolean;
1074
+ skipEncoding?: boolean;
1075
+ }
1076
+ /**
1077
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1078
+ * via the `definition` "awsLambdaResolver".
1079
+ */
1080
+ export interface AwsLambdaResolverV3_51_0 {
1081
+ if?: string;
1082
+ id?: string;
1083
+ name: AwsLambdaResolverNameV3_51_0;
1084
+ /**
1085
+ * Configuration for a service to use with this resolver.
1086
+ */
1087
+ service: string;
1088
+ options?: AwsLambdaResolverOptionsV3_51_0;
1089
+ payload?: ParameterConfigForJsonV3_51_0;
1090
+ /**
1091
+ * Mapping configuration for the FunctionName.
1092
+ */
1093
+ functionName: string | ParameterConfigForAwsLambdaV3_51_0;
1094
+ clientContext?: ParameterConfigForJsonV3_51_0;
1095
+ args?: ParameterConfigForJsonV3_51_0;
1096
+ results?: ParameterConfigForJsonV3_51_0;
1097
+ argsMapping?: ArgsMappingV3_51_0;
1098
+ searchParamsMapping?: SearchParamsMappingV3_51_0;
1099
+ resultsMapping?: ResultsMappingV3_51_0;
1100
+ }
1101
+ export interface AwsLambdaResolverOptionsV3_51_0 {
1102
+ [k: string]: any;
1103
+ }
1104
+ /**
1105
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1106
+ * via the `definition` "parameterConfigForAwsLambda".
1107
+ */
1108
+ export interface ParameterConfigForAwsLambdaV3_51_0 {
1109
+ ops: ParameterOpListV3_51_0;
1110
+ serialize: ParameterSerializeConfigForPathParamsV3_51_0;
1111
+ }
1112
+ /**
1113
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1114
+ * via the `definition` "salsifyResolver".
1115
+ */
1116
+ export interface SalsifyResolverV3_51_0 {
1117
+ if?: string;
1118
+ id?: string;
1119
+ name: SalsifyResolverNameV3_51_0;
1120
+ /**
1121
+ * Configuration for a service to use with this resolver.
1122
+ */
1123
+ service: string;
1124
+ options?: SalsifyResolverOptionsV3_51_0;
1125
+ args?: ParameterConfigForJsonV3_51_0;
1126
+ results?: ParameterConfigForJsonV3_51_0;
1127
+ argsMapping?: ArgsMappingV3_51_0;
1128
+ resultsMapping?: ResultsMappingV3_51_0;
1129
+ }
1130
+ export interface SalsifyResolverOptionsV3_51_0 {
1131
+ [k: string]: any;
1132
+ }
1133
+ /**
1134
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1135
+ * via the `definition` "syndigoResolver".
1136
+ */
1137
+ export interface SyndigoResolverV3_51_0 {
1138
+ if?: string;
1139
+ id?: string;
1140
+ name: SyndigoResolverNameV3_51_0;
1141
+ /**
1142
+ * Configuration for a service to use with this resolver.
1143
+ */
1144
+ service: string;
1145
+ options?: SyndigoResolverOptionsV3_51_0;
1146
+ args?: ParameterConfigForJsonV3_51_0;
1147
+ results?: ParameterConfigForJsonV3_51_0;
1148
+ argsMapping?: ArgsMappingV3_51_0;
1149
+ resultsMapping?: ResultsMappingV3_51_0;
1150
+ }
1151
+ export interface SyndigoResolverOptionsV3_51_0 {
1152
+ [k: string]: any;
1153
+ }
1154
+ /**
1155
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1156
+ * via the `definition` "functionResolver".
1157
+ */
1158
+ export interface FunctionResolverV3_51_0 {
1159
+ if?: string;
1160
+ id?: string;
1161
+ name: FunctionResolverNameV3_51_0;
1162
+ options?: FunctionResolverOptionsV3_51_0;
1163
+ args?: ParameterConfigForJsonV3_51_0;
1164
+ results?: ParameterConfigForJsonV3_51_0;
1165
+ argsMapping?: ArgsMappingV3_51_0;
1166
+ resultsMapping?: ResultsMappingV3_51_0;
1167
+ javascript?: FunctionResolverJavascriptV3_51_0;
1168
+ }
1169
+ export interface FunctionResolverOptionsV3_51_0 {
1170
+ [k: string]: any;
1171
+ }
1172
+ /**
1173
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1174
+ * via the `definition` "aiGenerateTextResolver".
1175
+ */
1176
+ export interface AIGenerateTextResolverV3_51_0 {
1177
+ if?: string;
1178
+ id?: string;
1179
+ name: AIResolverNameV3_51_0;
1180
+ /**
1181
+ * Configuration for a service to use with this resolver.
1182
+ */
1183
+ service: string;
1184
+ options?: AIGenerateTextResolverOptionsV3_51_0;
1185
+ systemPrompt: string;
1186
+ inputTemplate?: string;
1187
+ model: string;
1188
+ tools?: (string | AIToolConfigV3_51_0)[];
1189
+ guardrails?: AIGuardrailV3_51_0[];
1190
+ context?: ParameterConfigForJsonV3_51_0;
1191
+ results?: ParameterConfigForJsonV3_51_0;
1192
+ }
1193
+ /**
1194
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1195
+ * via the `definition` "aiGenerateTextResolverOptions".
1196
+ */
1197
+ export interface AIGenerateTextResolverOptionsV3_51_0 {
1198
+ history?: HistoryV3_51_0;
1199
+ maxTokens?: MaximumTokensV3_51_0;
1200
+ temperature?: TemperatureV3_51_0;
1201
+ topP?: TopPV3_51_0;
1202
+ topK?: TopKV3_51_0;
1203
+ presencePenalty?: PresencePenaltySettingV3_51_0;
1204
+ frequencyPenalty?: FrequencyPenaltySettingV3_51_0;
1205
+ stopSequences?: StopSequencesV3_51_0;
1206
+ seed?: SeedV3_51_0;
1207
+ /**
1208
+ * Maximum number of retries. Set to 0 to disable retries. Defaults to 2
1209
+ */
1210
+ maxRetries?: number;
1211
+ /**
1212
+ * The tool choice strategy. Default: 'auto'
1213
+ */
1214
+ toolChoice?: (('auto' | 'none' | 'required') | string) & string;
1215
+ /**
1216
+ * Maximal number of automatic roundtrips for tool calls.
1217
+ */
1218
+ maxToolRoundtrips?: number;
1219
+ [k: string]: any;
1220
+ }
1221
+ /**
1222
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1223
+ * via the `definition` "aiToolConfig".
1224
+ */
1225
+ export interface AIToolConfigV3_51_0 {
1226
+ ref: string;
1227
+ selectionSet?: string;
1228
+ }
1229
+ /**
1230
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1231
+ * via the `definition` "aiSimilarityGuardrail".
1232
+ */
1233
+ export interface AISimilarityGuardrailV3_51_0 {
1234
+ name: 'similarity';
1235
+ shape: string;
1236
+ defaultResponse: string;
1237
+ threshold?: number;
1238
+ }
1239
+ /**
1240
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1241
+ * via the `definition` "aiGeneratePropertyResolver".
1242
+ */
1243
+ export interface AIGeneratePropertyResolverV3_51_0 {
1244
+ id?: string;
1245
+ name: AIResolverNameV3_51_01;
1246
+ /**
1247
+ * Configuration for a service to use with this resolver.
1248
+ */
1249
+ service: string;
1250
+ model: string;
1251
+ systemPrompt?: string;
1252
+ }
1253
+ /**
1254
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1255
+ * via the `definition` "aiEmbeddingResolver".
1256
+ */
1257
+ export interface AIEmbeddingResolverV3_51_0 {
1258
+ if?: string;
1259
+ id?: string;
1260
+ name: AIResolverNameV3_51_02;
1261
+ /**
1262
+ * Configuration for a service to use with this resolver.
1263
+ */
1264
+ service: string;
1265
+ options?: AIEmbeddingResolverOptionsV3_51_0;
1266
+ model: string;
1267
+ args?: ParameterConfigForJsonV3_51_0;
1268
+ results?: ParameterConfigForJsonV3_51_0;
1269
+ }
1270
+ /**
1271
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1272
+ * via the `definition` "aiEmbeddingResolverOptions".
1273
+ */
1274
+ export interface AIEmbeddingResolverOptionsV3_51_0 {
1275
+ useDependencies?: boolean;
1276
+ [k: string]: any;
1277
+ }
1278
+ /**
1279
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1280
+ * via the `definition` "aiParseFileResolver".
1281
+ */
1282
+ export interface AIParseFileResolverV3_51_0 {
1283
+ if?: string;
1284
+ id?: string;
1285
+ name: AIResolverNameV3_51_03;
1286
+ /**
1287
+ * Configuration for a service to use with this resolver.
1288
+ */
1289
+ service: string;
1290
+ options?: AIEmbeddingResolverOptionsV3_51_0;
1291
+ args?: ParameterConfigForJsonV3_51_0;
1292
+ results?: ParameterConfigForJsonV3_51_0;
1293
+ }
1294
+ export interface AIRunAgentResolverV3_51_0 {
1295
+ id?: string;
1296
+ name: AIResolverNameV3_51_04;
1297
+ agentName: string;
1298
+ }
1299
+ export interface AIInspectAgentResolverV3_51_0 {
1300
+ id?: string;
1301
+ name: AIResolverNameV3_51_05;
1302
+ agentName: string;
1303
+ }
1304
+ /**
1305
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1306
+ * via the `definition` "composeResolver".
1307
+ */
1308
+ export interface ComposeResolverV3_51_0 {
1309
+ compose: BasicResolverV3_51_0[];
1310
+ resultsMapping?: DirectiveMappingMapV3_51_0 | DirectiveConfigV3_51_0;
1311
+ results?: ParameterConfigForJsonV3_51_0;
1312
+ }
1313
+ /**
1314
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1315
+ * via the `definition` "indexed".
1316
+ */
1317
+ export interface IndexedV3_51_0 {
1318
+ nested?: boolean;
1319
+ }
1320
+ /**
1321
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1322
+ * via the `definition` "graphql".
1323
+ */
1324
+ export interface GraphQLConfigV3_51_0 {
1325
+ json?: boolean;
1326
+ }
1327
+ /**
1328
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1329
+ * via the `definition` "shapeMap".
1330
+ */
1331
+ export interface ShapeMapV3_51_0 {
1332
+ [k: string]: ShapeJSONV3_51_0;
1333
+ }
1334
+ /**
1335
+ * A Shape is a schema object for structuring and storing data from one or more sources, including the TakeShape data store and connected services
1336
+ *
1337
+ * This interface was referenced by `ShapeMapV3_51_0`'s JSON-Schema definition
1338
+ * via the `patternProperty` "^[0-9A-Za-z_]+$".
1339
+ *
1340
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1341
+ * via the `definition` "shape".
1342
+ */
1343
+ export interface ShapeJSONV3_51_0 {
1344
+ /**
1345
+ * 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
1346
+ */
1347
+ name: string;
1348
+ /**
1349
+ * 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.
1350
+ */
1351
+ id: string;
1352
+ /**
1353
+ * The human-readable name for a Shape for use in a UI.
1354
+ */
1355
+ title: string;
1356
+ description?: string;
1357
+ type?: 'interface' | 'input' | 'output';
1358
+ interfaces?: string[];
1359
+ /**
1360
+ * Specifying a model type allows Shape data to be stored in TakeShape's built-in database
1361
+ */
1362
+ model?: {
1363
+ type: ModelTypeV3_51_0;
1364
+ };
1365
+ workflow?: string;
1366
+ loaders?: ShapeLoadersV3_51_0;
1367
+ joins?: ShapeJoinsV3_51_0;
1368
+ cache?: ShapeCacheConfigV3_51_0;
1369
+ schema: ShapeSchemaV3_51_0;
1370
+ }
1371
+ /**
1372
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1373
+ * via the `definition` "shapeLoaders".
1374
+ */
1375
+ export interface ShapeLoadersV3_51_0 {
1376
+ list: StoredListQueryLoaderConfigV3_51_0 | StoredListQueryLoaderConfigV3_51_0[];
1377
+ get?: GetQueryLoaderConfigV3_51_0;
1378
+ }
1379
+ /**
1380
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1381
+ * via the `definition` "storedListQueryLoaderConfig".
1382
+ */
1383
+ export interface StoredListQueryLoaderConfigV3_51_0 {
1384
+ query: string;
1385
+ args?: {
1386
+ [k: string]: any;
1387
+ } | {
1388
+ [k: string]: any;
1389
+ }[];
1390
+ pagination?: PaginationConfigV3_51_0;
1391
+ }
1392
+ /**
1393
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1394
+ * via the `definition` "paginationCursorConfig".
1395
+ */
1396
+ export interface PaginationCursorConfigV3_51_0 {
1397
+ type: 'cursor';
1398
+ cursorArg: string;
1399
+ cursorPath: string;
1400
+ pageSize?: number;
1401
+ pageSizeArg: string;
1402
+ hasMorePath: string;
1403
+ itemsPath: string;
1404
+ }
1405
+ /**
1406
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1407
+ * via the `definition` "paginationPageConfig".
1408
+ */
1409
+ export interface PaginationPageConfigV3_51_0 {
1410
+ type: 'page';
1411
+ pageArg: string;
1412
+ pageSize?: number;
1413
+ pageSizeArg?: string;
1414
+ itemsPath: string;
1415
+ pageTotalPath: string;
1416
+ }
1417
+ /**
1418
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1419
+ * via the `definition` "paginationOffsetConfig".
1420
+ */
1421
+ export interface PaginationOffsetConfigV3_51_0 {
1422
+ type: 'offset';
1423
+ offsetArg: string;
1424
+ pageSize?: number;
1425
+ pageSizeArg?: string;
1426
+ itemsPath: string;
1427
+ itemTotalPath: string;
1428
+ }
1429
+ /**
1430
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1431
+ * via the `definition` "getQueryLoaderConfig".
1432
+ */
1433
+ export interface GetQueryLoaderConfigV3_51_0 {
1434
+ query: string;
1435
+ args?: {
1436
+ [k: string]: any;
1437
+ };
1438
+ idArg?: string;
1439
+ }
1440
+ /**
1441
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1442
+ * via the `definition` "shapeJoins".
1443
+ */
1444
+ export interface ShapeJoinsV3_51_0 {
1445
+ [k: string]: ShapeJoinV3_51_0;
1446
+ }
1447
+ /**
1448
+ * This interface was referenced by `ShapeJoinsV3_51_0`'s JSON-Schema definition
1449
+ * via the `patternProperty` "[:0-9A-Za-z_-]+".
1450
+ *
1451
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1452
+ * via the `definition` "shapeJoin".
1453
+ */
1454
+ export interface ShapeJoinV3_51_0 {
1455
+ resolver: DelegateResolverV3_51_0 | ShapedbResolverV3_51_0;
1456
+ dependencies?: string;
1457
+ }
1458
+ /**
1459
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1460
+ * via the `definition` "shapeCacheConfig".
1461
+ */
1462
+ export interface ShapeCacheConfigV3_51_0 {
1463
+ enabled: boolean;
1464
+ idField?: string;
1465
+ searchSummaryField?: string;
1466
+ fragment?: CachedFragmentConfigV3_51_0;
1467
+ triggers?: CacheTriggerConfigV3_51_0[];
1468
+ /**
1469
+ * Number of seconds this Shape should be cached. Default 0.
1470
+ */
1471
+ maxAge?: number;
1472
+ }
1473
+ /**
1474
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1475
+ * via the `definition` "cachedFragmentConfig".
1476
+ */
1477
+ export interface CachedFragmentConfigV3_51_0 {
1478
+ ignoreFields?: string[];
1479
+ maxDepth?: number;
1480
+ selectionSet?: string;
1481
+ includeDeprecated?: boolean;
1482
+ }
1483
+ /**
1484
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1485
+ * via the `definition` "cacheScheduleTriggerConfig".
1486
+ */
1487
+ export interface CacheScheduleTriggerConfigV3_51_0 {
1488
+ type: 'schedule';
1489
+ loader: 'get' | 'list';
1490
+ interval: number;
1491
+ }
1492
+ /**
1493
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1494
+ * via the `definition` "cacheWebhookTriggerConfig".
1495
+ */
1496
+ export interface CacheWebhookTriggerConfigV3_51_0 {
1497
+ type: 'webhook';
1498
+ loader: 'get' | 'list';
1499
+ service: string;
1500
+ events: string[];
1501
+ }
1502
+ /**
1503
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1504
+ * via the `definition` "shapeSchemaAllOf".
1505
+ */
1506
+ export interface ShapeSchemaAllOfV3_51_0 {
1507
+ allOf: ObjectOrRefArrayV3_51_0;
1508
+ }
1509
+ /**
1510
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1511
+ * via the `definition` "shapeSchemaExtends".
1512
+ */
1513
+ export interface ShapeSchemaExtendsV3_51_0 {
1514
+ extends: ObjectOrRefArrayV3_51_0;
1515
+ }
1516
+ /**
1517
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1518
+ * via the `definition` "shapeSchemaOneOf".
1519
+ */
1520
+ export interface ShapeSchemaOneOfV3_51_0 {
1521
+ oneOf: ObjectOrRefArrayV3_51_0;
1522
+ }
1523
+ /**
1524
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1525
+ * via the `definition` "shapeSchemaEnum".
1526
+ */
1527
+ export interface ShapeSchemaEnumV3_51_0 {
1528
+ enum: any[];
1529
+ }
1530
+ /**
1531
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1532
+ * via the `definition` "shapeSchemaAny".
1533
+ */
1534
+ export interface ShapeSchemaAnyV3_51_0 {
1535
+ }
1536
+ export interface AIExperimentalV3_51_0 {
1537
+ agents?: AgentMapV3_51_0;
1538
+ guards?: GuardMapV3_51_0;
1539
+ }
1540
+ export interface AgentMapV3_51_0 {
1541
+ [k: string]: AgentJSONV3_51_0;
1542
+ }
1543
+ /**
1544
+ * An Agent is a configuration for an AI service such as a chat bot or a search engine.
1545
+ *
1546
+ * This interface was referenced by `AgentMapV3_51_0`'s JSON-Schema definition
1547
+ * via the `patternProperty` "^[0-9A-Za-z_]+$".
1548
+ */
1549
+ export interface AgentJSONV3_51_0 {
1550
+ description?: string;
1551
+ systemPrompt?: string;
1552
+ api: AgentAPIV3_51_0;
1553
+ start: AgentStartV3_51_0;
1554
+ states: AgentStatesV3_51_0;
1555
+ guards?: AgentGuardListV3_51_0;
1556
+ }
1557
+ export interface AgentAPIChatV3_51_0 {
1558
+ type: 'chat';
1559
+ arguments?: AgentAPIArgumentV3_51_0[];
1560
+ }
1561
+ export interface AgentAPIArgumentV3_51_0 {
1562
+ argName: string;
1563
+ argType: 'boolean' | 'integer' | 'number' | 'string' | 'sessionId';
1564
+ required?: boolean;
1565
+ }
1566
+ export interface AgentAPIGenerateV3_51_0 {
1567
+ type: 'generate';
1568
+ arguments?: AgentAPIArgumentV3_51_0[];
1569
+ }
1570
+ /**
1571
+ * Configuration for the start of an agent's execution
1572
+ */
1573
+ export interface AgentStartV3_51_0 {
1574
+ transition: AgentStateTransitionV3_51_0;
1575
+ }
1576
+ export interface AgentTransitionStepV3_51_0 {
1577
+ destination: string;
1578
+ suspend?: boolean;
1579
+ condition: AgentTransitionStepConditionNoneV3_51_0 | AgentTransitionStepConditionArtifactV3_51_0 | AgentTransitionStepConditionStateOutputV3_51_0 | AgentTransitionStepConditionStringContainsV3_51_0 | AgentTransitionStepConditionArgumentV3_51_0;
1580
+ limit?: number;
1581
+ }
1582
+ export interface AgentTransitionStepConditionNoneV3_51_0 {
1583
+ type: 'none';
1584
+ }
1585
+ export interface AgentTransitionStepConditionArtifactV3_51_0 {
1586
+ type: 'artifact';
1587
+ path?: string;
1588
+ negated?: boolean;
1589
+ }
1590
+ export interface AgentTransitionStepConditionStateOutputV3_51_0 {
1591
+ type: 'stateOutput';
1592
+ stateId: string;
1593
+ path?: string;
1594
+ negated?: boolean;
1595
+ }
1596
+ export interface AgentTransitionStepConditionStringContainsV3_51_0 {
1597
+ type: 'stringContains';
1598
+ path?: string;
1599
+ string: string;
1600
+ negated?: boolean;
1601
+ }
1602
+ export interface AgentTransitionStepConditionArgumentV3_51_0 {
1603
+ type: 'argument';
1604
+ argument: string;
1605
+ negated?: boolean;
1606
+ }
1607
+ /**
1608
+ * States that are traversed during the execution of an agent.
1609
+ */
1610
+ export interface AgentStatesV3_51_0 {
1611
+ [k: string]: AgentStateV3_51_0;
1612
+ }
1613
+ /**
1614
+ * One step of an agent's execution.
1615
+ *
1616
+ * This interface was referenced by `AgentStatesV3_51_0`'s JSON-Schema definition
1617
+ * via the `patternProperty` "^[0-9A-Za-z_]+$".
1618
+ */
1619
+ export interface AgentStateV3_51_0 {
1620
+ name: string;
1621
+ variables?: VariablesV3_51_0;
1622
+ execution: AgentExecutionV3_51_0;
1623
+ transition?: AgentStateTransitionV3_51_0;
1624
+ }
1625
+ export interface AgentVariableV3_51_0 {
1626
+ name: string;
1627
+ /**
1628
+ * These are evaluated in order until a value is found.
1629
+ */
1630
+ steps: AgentVariableStepV3_51_0[];
1631
+ }
1632
+ /**
1633
+ * An Agent Variable that defines a GraphQL argument and makes its value available to templates.
1634
+ */
1635
+ export interface AgentVariableStepGraphQLArgV3_51_0 {
1636
+ type: 'graphqlArg';
1637
+ argName: string;
1638
+ }
1639
+ /**
1640
+ * An Agent Variable that provides the output of any previous state's execution.
1641
+ */
1642
+ export interface AgentVariableStepStateOutputV3_51_0 {
1643
+ type: 'stateOutput';
1644
+ stateId: string;
1645
+ path?: string;
1646
+ }
1647
+ /**
1648
+ * An Agent Variable that provides the output of the previous state's execution.
1649
+ */
1650
+ export interface AgentVariableStepPreviousStateOutputV3_51_0 {
1651
+ type: 'previousStateOutput';
1652
+ path?: string;
1653
+ }
1654
+ /**
1655
+ * An Agent Variable that has a static value.
1656
+ */
1657
+ export interface AgentVariableStepStaticValueV3_51_0 {
1658
+ type: 'staticValue';
1659
+ condition?: AgentVariableStepConditionV3_51_0;
1660
+ value: string;
1661
+ }
1662
+ export interface AgentVariableStepConditionNoneV3_51_0 {
1663
+ type: 'none';
1664
+ }
1665
+ export interface AgentVariableStepConditionSourceStateV3_51_0 {
1666
+ type: 'sourceState';
1667
+ stateId: string;
1668
+ negated?: boolean;
1669
+ }
1670
+ export interface AgentExecutionGraphQLV3_51_0 {
1671
+ type: 'graphql';
1672
+ query: string;
1673
+ path?: string;
1674
+ }
1675
+ export interface AgentExecutionGenerateV3_51_0 {
1676
+ type: 'generate';
1677
+ service: string;
1678
+ model: string;
1679
+ systemPrompt?: string;
1680
+ input: AgentAIStateInputV3_51_0;
1681
+ outputShape?: string;
1682
+ tools?: AgentToolConfigV3_51_0[];
1683
+ guardrails?: AgentGuardrailV3_51_0[];
1684
+ options?: AgentGenerateOptionsV3_51_0;
1685
+ }
1686
+ export interface AgentAIStateInputArgumentV3_51_0 {
1687
+ type: 'arg';
1688
+ }
1689
+ export interface AgentAIStateInputTemplateV3_51_0 {
1690
+ type: 'template';
1691
+ inputTemplate: string;
1692
+ }
1693
+ export interface AgentToolConfigV3_51_0 {
1694
+ ref: string;
1695
+ selectionSet?: string;
1696
+ }
1697
+ export interface AgentSimilarityGuardrailV3_51_0 {
1698
+ name: 'similarity';
1699
+ shape: string;
1700
+ defaultResponse: string;
1701
+ threshold?: number;
1702
+ }
1703
+ export interface AgentGenerateOptionsV3_51_0 {
1704
+ history?: HistoryV3_51_01;
1705
+ maxTokens?: MaximumTokensV3_51_01;
1706
+ temperature?: TemperatureV3_51_01;
1707
+ topP?: TopPV3_51_01;
1708
+ topK?: TopKV3_51_01;
1709
+ presencePenalty?: PresencePenaltySettingV3_51_01;
1710
+ frequencyPenalty?: FrequencyPenaltySettingV3_51_01;
1711
+ stopSequences?: StopSequencesV3_51_01;
1712
+ seed?: SeedV3_51_01;
1713
+ /**
1714
+ * Maximum number of retries. Set to 0 to disable retries. Defaults to 2
1715
+ */
1716
+ maxRetries?: number;
1717
+ /**
1718
+ * The tool choice strategy. Default: 'auto'
1719
+ */
1720
+ toolChoice?: (('auto' | 'none' | 'required') | string) & string;
1721
+ /**
1722
+ * Maximal number of automatic roundtrips for tool calls.
1723
+ */
1724
+ maxToolRoundtrips?: number;
1725
+ }
1726
+ export interface AgentExecutionChatV3_51_0 {
1727
+ type: 'chat';
1728
+ service: string;
1729
+ model: string;
1730
+ systemPrompt?: string;
1731
+ input: AgentAIStateInputV3_51_0;
1732
+ artifact?: string;
1733
+ tools?: AgentToolConfigV3_51_0[];
1734
+ guardrails?: AgentGuardrailV3_51_0[];
1735
+ options?: AgentGenerateOptionsV3_51_0;
1736
+ }
1737
+ export interface AgentGuardV3_51_0 {
1738
+ guardId: string;
1739
+ }
1740
+ export interface GuardMapV3_51_0 {
1741
+ [k: string]: GuardJSONV3_51_0;
1742
+ }
1743
+ /**
1744
+ * A Guard is a configuration for an AI guardrail that can check inputs and outputs and provide safety and compliance.
1745
+ *
1746
+ * This interface was referenced by `GuardMapV3_51_0`'s JSON-Schema definition
1747
+ * via the `patternProperty` "^[0-9A-Za-z_]+$".
1748
+ */
1749
+ export interface GuardJSONV3_51_0 {
1750
+ name: NameV3_51_0;
1751
+ description?: DescriptionV3_51_0;
1752
+ blockedInputMessaging?: BlockedInputMessagingV3_51_0;
1753
+ blockedOutputsMessaging?: BlockedOutputsMessagingV3_51_0;
1754
+ topicPolicyConfig?: TopicPolicyV3_51_0;
1755
+ contentPolicyConfig?: ContentPolicyV3_51_0;
1756
+ wordPolicyConfig?: WordPolicyV3_51_0;
1757
+ sensitiveInformationPolicyConfig?: SensitiveInformationPolicyV3_51_0;
1758
+ contextualGroundingPolicyConfig?: ContextualGroundingPolicyV3_51_0;
1759
+ }
1760
+ /**
1761
+ * Topics to identify and block.
1762
+ */
1763
+ export interface TopicPolicyV3_51_0 {
1764
+ topicsConfig?: TopicV3_51_0[];
1765
+ }
1766
+ /**
1767
+ * A topic to block.
1768
+ */
1769
+ export interface TopicV3_51_0 {
1770
+ name?: string;
1771
+ definition?: string;
1772
+ examples?: string[];
1773
+ type?: 'DENY';
1774
+ }
1775
+ /**
1776
+ * Types of content to filter and strength configuration.
1777
+ */
1778
+ export interface ContentPolicyV3_51_0 {
1779
+ filtersConfig?: FilterV3_51_0[];
1780
+ }
1781
+ /**
1782
+ * Types of content to filter.
1783
+ */
1784
+ export interface FilterV3_51_0 {
1785
+ type?: 'HATE' | 'INSULTS' | 'MICONDUCT' | 'PROMPT_ATTACK' | 'SEXUAL' | 'VIOLENCE';
1786
+ inputStrength?: GuardrailFilterStrengthV3_51_0;
1787
+ outputStrength?: GuardrailFilterStrengthV3_51_0;
1788
+ inputModalities?: GuardrailModalityV3_51_0[];
1789
+ outputModalities?: GuardrailModalityV3_51_0[];
1790
+ }
1791
+ /**
1792
+ * Specific words to identify and block. The managedWordListsConfig is solely used for blocking profanity.
1793
+ */
1794
+ export interface WordPolicyV3_51_0 {
1795
+ wordsConfig?: WordListV3_51_0[];
1796
+ managedWordListsConfig?: ManagedWordsV3_51_0[];
1797
+ }
1798
+ /**
1799
+ * Specific words to block.
1800
+ */
1801
+ export interface WordListV3_51_0 {
1802
+ text?: string;
1803
+ }
1804
+ /**
1805
+ * Managed word list to block. This is solely used for blocking profanity.
1806
+ */
1807
+ export interface ManagedWordsV3_51_0 {
1808
+ type?: 'PROFANITY';
1809
+ }
1810
+ /**
1811
+ * Filter out and block or obscure sensitive information. Matching text will be handled per the policy.
1812
+ */
1813
+ export interface SensitiveInformationPolicyV3_51_0 {
1814
+ piiEntitiesConfig?: PIIEntityV3_51_0[];
1815
+ regexesConfig?: RegularExpressionV3_51_0[];
1816
+ }
1817
+ /**
1818
+ * PII entity to infer from the text.
1819
+ */
1820
+ export interface PIIEntityV3_51_0 {
1821
+ type?: 'ADDRESS' | 'AGE' | 'AWS_ACCESS_KEY' | 'AWS_SECRET_KEY' | 'CA_HEALTH_NUMBER' | 'CA_SOCIAL_INSURANCE_NUMBER' | 'CREDIT_DEBIT_CARD_CVV' | 'CREDIT_DEBIT_CARD_EXPIRY' | 'CREDIT_DEBIT_CARD_NUMBER' | 'DRIVER_ID' | 'EMAIL' | 'INTERNATIONAL_BANK_ACCOUNT_NUMBER' | 'IP_ADDRESS' | 'LICENSE_PLATE' | 'MAC_ADDRESS' | 'NAME' | 'PASSWORD' | 'PHONE' | 'PIN' | 'SWIFT_CODE' | 'UK_NATIONAL_HEALTH_SERVICE_NUMBER' | 'UK_NATIONAL_INSURANCE_NUMBER' | 'UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER' | 'URL' | 'USERNAME' | 'US_BANK_ACCOUNT_NUMBER' | 'US_BANK_ROUTING_NUMBER' | 'US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER' | 'US_PASSPORT_NUMBER' | 'US_SOCIAL_SECURITY_NUMBER' | 'VEHICLE_IDENTIFICATION_NUMBER';
1822
+ action?: GuardrailSensitiveInformationActionV3_51_0;
1823
+ }
1824
+ /**
1825
+ * A regular expression to match sensitive information.
1826
+ */
1827
+ export interface RegularExpressionV3_51_0 {
1828
+ name?: string;
1829
+ description?: string;
1830
+ pattern?: string;
1831
+ action?: GuardrailSensitiveInformationActionV3_51_0;
1832
+ }
1833
+ /**
1834
+ * Provides evaluations based on grounding text supplied by your in-context agent variables. Off-topic conversations can then be blocked.
1835
+ */
1836
+ export interface ContextualGroundingPolicyV3_51_0 {
1837
+ filtersConfig?: FilterV3_51_01[];
1838
+ }
1839
+ /**
1840
+ * Filter to evaluate grounding text.
1841
+ */
1842
+ export interface FilterV3_51_01 {
1843
+ type?: TypeV3_51_0;
1844
+ threshold?: ThresholdV3_51_0;
1845
+ }
1846
+ /**
1847
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1848
+ * via the `definition` "formMap".
1849
+ */
1850
+ export interface FormMapV3_51_0 {
1851
+ [k: string]: FormsConfigV3_51_0;
1852
+ }
1853
+ /**
1854
+ * This interface was referenced by `FormMapV3_51_0`'s JSON-Schema definition
1855
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
1856
+ *
1857
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1858
+ * via the `definition` "formsConfig".
1859
+ */
1860
+ export interface FormsConfigV3_51_0 {
1861
+ default: FormConfigV3_51_0;
1862
+ [k: string]: FormConfigV3_51_0;
1863
+ }
1864
+ /**
1865
+ * This interface was referenced by `FormsConfigV3_51_0`'s JSON-Schema definition
1866
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
1867
+ *
1868
+ * This interface was referenced by `undefined`'s JSON-Schema definition
1869
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
1870
+ *
1871
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1872
+ * via the `definition` "formConfig".
1873
+ */
1874
+ export interface FormConfigV3_51_0 {
1875
+ [k: string]: any;
1876
+ }
1877
+ /**
1878
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1879
+ * via the `definition` "workflowMap".
1880
+ */
1881
+ export interface WorkflowMapV3_51_0 {
1882
+ [k: string]: WorkflowV3_51_0;
1883
+ }
1884
+ /**
1885
+ * This interface was referenced by `WorkflowMapV3_51_0`'s JSON-Schema definition
1886
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
1887
+ *
1888
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1889
+ * via the `definition` "workflow".
1890
+ */
1891
+ export interface WorkflowV3_51_0 {
1892
+ /**
1893
+ * machine-readable id
1894
+ */
1895
+ name: string;
1896
+ title: WorkflowNameV3_51_0;
1897
+ steps: StepsV3_51_0;
1898
+ [k: string]: any;
1899
+ }
1900
+ /**
1901
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1902
+ * via the `definition` "workflowStep".
1903
+ */
1904
+ export interface WorkflowStepV3_51_0 {
1905
+ name: NameV3_51_01;
1906
+ title: TitleV3_51_0;
1907
+ description?: DescriptionV3_51_01;
1908
+ color: ColorV3_51_0;
1909
+ live: LiveV3_51_0;
1910
+ key: KeyV3_51_0;
1911
+ }
1912
+ /**
1913
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1914
+ * via the `definition` "storedServiceMap".
1915
+ */
1916
+ export interface ServiceMapJSONV3_51_0 {
1917
+ [k: string]: ServiceConfigJSONV3_51_0;
1918
+ }
1919
+ /**
1920
+ * This interface was referenced by `ServiceMapJSONV3_51_0`'s JSON-Schema definition
1921
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
1922
+ *
1923
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1924
+ * via the `definition` "storedServiceConfig".
1925
+ */
1926
+ export interface ServiceConfigJSONV3_51_0 {
1927
+ /**
1928
+ * Machine-readable identifier, should typically be the same as the property name on the services object.
1929
+ */
1930
+ id: string;
1931
+ /**
1932
+ * Human-readable name for this service.
1933
+ */
1934
+ title: string;
1935
+ /**
1936
+ * The service provider id.
1937
+ */
1938
+ provider: string;
1939
+ /**
1940
+ * A namespace to use for the imported types tied to this service.
1941
+ */
1942
+ namespace?: string;
1943
+ serviceType: ServiceTypeV3_51_0;
1944
+ authenticationType: 'oauth2' | 'basic' | 'bearer' | 'searchParams' | 'oauth2Bearer' | 'custom' | 'aws' | 'google' | 'none' | 'unknown';
1945
+ authentication?: string;
1946
+ healthCheck?: ServiceHealthCheckV3_51_0;
1947
+ webhookId?: string;
1948
+ /**
1949
+ * Configuration options passed to and handled by the provider.
1950
+ */
1951
+ options?: {
1952
+ [k: string]: any;
1953
+ };
1954
+ }
1955
+ /**
1956
+ * Configuration for ping health checks.
1957
+ *
1958
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1959
+ * via the `definition` "serviceHealthCheck".
1960
+ */
1961
+ export interface ServiceHealthCheckV3_51_0 {
1962
+ checkName: CheckNameV3_51_0;
1963
+ endpoint?: EndpointV3_51_0;
1964
+ requestMethod?: RequestMethodV3_51_0;
1965
+ requestHeaders?: RequestHeadersV3_51_0;
1966
+ requestSearchParams?: RequestSearchParamsV3_51_0;
1967
+ requestBody?: RequestBodyV3_51_0;
1968
+ requestBodyFormat?: RequestBodyFormatV3_51_0;
1969
+ requestTimeout?: RequestTimeoutV3_51_0;
1970
+ healthyResponseStatusCode?: HealthyResponseStatusCodeV3_51_0;
1971
+ triggers?: ServiceHealthCheckTriggerV3_51_0[];
1972
+ }
1973
+ /**
1974
+ * Any custom headers to set with the health check request.
1975
+ */
1976
+ export interface RequestHeadersV3_51_0 {
1977
+ [k: string]: any;
1978
+ }
1979
+ /**
1980
+ * Any custom search params to set with the health check request.
1981
+ */
1982
+ export interface RequestSearchParamsV3_51_0 {
1983
+ [k: string]: any;
1984
+ }
1985
+ /**
1986
+ * All possible options for the more specific ParameterSerializeStyleOptions types.
1987
+ *
1988
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
1989
+ * via the `definition` "parameterSerializeStyleOptions".
1990
+ */
1991
+ export interface ParameterSerializeStyleOptionsV3_51_0 {
1992
+ style: 'simple' | 'label' | 'matrix' | 'form' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject' | 'none';
1993
+ explode?: boolean;
1994
+ allowEmptyValue?: boolean;
1995
+ /**
1996
+ * The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.
1997
+ */
1998
+ allowReserved?: boolean;
1999
+ skipEncoding?: boolean;
2000
+ }
2001
+ /**
2002
+ * All possible options for the more specific ParameterSerializeConfig types.
2003
+ *
2004
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2005
+ * via the `definition` "parameterSerializeConfig".
2006
+ */
2007
+ export interface ParameterSerializeConfigV3_51_0 {
2008
+ content?: ParameterSerializeContentOptionsV3_51_0;
2009
+ defaults?: ParameterSerializeOptionsV3_51_0;
2010
+ paths?: {
2011
+ [k: string]: ParameterSerializeOptionsV3_51_0;
2012
+ };
2013
+ }
2014
+ /**
2015
+ * All possible options for the more specific ParameterConfig types.
2016
+ *
2017
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2018
+ * via the `definition` "parameterConfig".
2019
+ */
2020
+ export interface ParameterConfigV3_51_0 {
2021
+ ops: ParameterOpListV3_51_0;
2022
+ serialize?: ParameterSerializeConfigV3_51_0;
2023
+ }
2024
+ /**
2025
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2026
+ * via the `definition` "aiParseFileResolverOptions".
2027
+ */
2028
+ export interface AIParseFileResolverOptionsV3_51_0 {
2029
+ [k: string]: any;
2030
+ }
2031
+ /**
2032
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2033
+ * via the `definition` "listQueryLoaderConfig".
2034
+ */
2035
+ export interface ListQueryLoaderConfigV3_51_0 {
2036
+ query: string;
2037
+ args?: {
2038
+ [k: string]: any;
2039
+ };
2040
+ pagination?: PaginationConfigV3_51_0;
2041
+ }
2042
+ /**
2043
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2044
+ * via the `definition` "formScalarConfig".
2045
+ */
2046
+ export interface FormScalarConfigV3_51_0 {
2047
+ widget: string;
2048
+ }
2049
+ /**
2050
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2051
+ * via the `definition` "formObjectConfig".
2052
+ */
2053
+ export interface FormObjectConfigV3_51_0 {
2054
+ widget?: string;
2055
+ order?: string[];
2056
+ properties?: {
2057
+ [k: string]: FormConfigV3_51_0;
2058
+ };
2059
+ }
2060
+ /**
2061
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2062
+ * via the `definition` "formArrayConfig".
2063
+ */
2064
+ export interface FormArrayConfigV3_51_0 {
2065
+ widget: string;
2066
+ items: FormConfigV3_51_0;
2067
+ }
2068
+ /**
2069
+ * For use with a custom auth handler on a service provider.
2070
+ *
2071
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2072
+ * via the `definition` "customAuthentication".
2073
+ */
2074
+ export interface CustomAuthenticationV3_51_0 {
2075
+ type: 'custom';
2076
+ [k: string]: any;
2077
+ }
2078
+ /**
2079
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2080
+ * via the `definition` "searchParamsAuthentication".
2081
+ */
2082
+ export interface SearchParamsAuthenticationV3_51_0 {
2083
+ type: 'searchParams';
2084
+ params: {
2085
+ name: string;
2086
+ value: string;
2087
+ }[];
2088
+ }
2089
+ /**
2090
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2091
+ * via the `definition` "bearerAuthentication".
2092
+ */
2093
+ export interface BearerAuthenticationV3_51_0 {
2094
+ type: 'bearer';
2095
+ token: string;
2096
+ prefix?: string;
2097
+ header?: string;
2098
+ }
2099
+ /**
2100
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2101
+ * via the `definition` "oauth2BearerAuthentication".
2102
+ */
2103
+ export interface OAuth2BearerAuthenticationV3_51_0 {
2104
+ type: 'oauth2Bearer';
2105
+ token: string;
2106
+ prefix?: string;
2107
+ header?: string;
2108
+ scope?: string;
2109
+ expiresAt?: string;
2110
+ }
2111
+ /**
2112
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2113
+ * via the `definition` "basicAuthentication".
2114
+ */
2115
+ export interface BasicAuthenticationV3_51_0 {
2116
+ type: 'basic';
2117
+ username: string;
2118
+ password: string;
2119
+ useIso8859?: boolean;
2120
+ }
2121
+ /**
2122
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2123
+ * via the `definition` "oauth2Authentication".
2124
+ */
2125
+ export interface OAuth2AuthenticationV3_51_0 {
2126
+ type: 'oauth2';
2127
+ grantType: 'authorizationCode' | 'clientCredentials';
2128
+ authorizationUrl?: string;
2129
+ accessTokenUrl?: string;
2130
+ clientId: string;
2131
+ clientSecret?: string;
2132
+ scope?: string;
2133
+ usePkce?: boolean;
2134
+ redirectUrl?: string;
2135
+ headerPrefix?: string;
2136
+ audience?: string;
2137
+ resource?: string;
2138
+ }
2139
+ /**
2140
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2141
+ * via the `definition` "awsAuthentication".
2142
+ */
2143
+ export interface AWSAuthenticationV3_51_0 {
2144
+ type: 'aws';
2145
+ awsAccessKeyId: string;
2146
+ awsSecretAccessKey: string;
2147
+ }
2148
+ /**
2149
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2150
+ * via the `definition` "googleAuthentication".
2151
+ */
2152
+ export interface GoogleAuthenticationV3_51_0 {
2153
+ type: 'google';
2154
+ clientEmail: string;
2155
+ privateKey: string;
2156
+ }
2157
+ /**
2158
+ * This interface was referenced by `ProjectSchemaJSONV3_51_0`'s JSON-Schema
2159
+ * via the `definition` "serviceConfig".
2160
+ */
2161
+ export interface ServiceConfigV3_51_0 {
2162
+ /**
2163
+ * Machine-readable identifier, should typically be the same as the property name on the services object.
2164
+ */
2165
+ id: string;
2166
+ /**
2167
+ * Human-readable name for this service.
2168
+ */
2169
+ title: string;
2170
+ /**
2171
+ * The service provider id.
2172
+ */
2173
+ provider: string;
2174
+ /**
2175
+ * A namespace to use for the imported types tied to this service.
2176
+ */
2177
+ namespace?: string;
2178
+ serviceType: ServiceTypeV3_51_0;
2179
+ authenticationType: 'oauth2' | 'basic' | 'bearer' | 'searchParams' | 'oauth2Bearer' | 'custom' | 'aws' | 'google' | 'none' | 'unknown';
2180
+ authentication?: ServiceAuthenticationV3_51_0;
2181
+ healthCheck?: ServiceHealthCheckV3_51_0;
2182
+ webhookId?: string;
2183
+ /**
2184
+ * Configuration options passed to and handled by the provider.
2185
+ */
2186
+ options?: {
2187
+ [k: string]: any;
2188
+ };
2189
+ }