@takeshape/schema 11.143.2 → 11.154.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 (537) hide show
  1. package/examples/latest/all-fields-shapes-inline.json +1 -1
  2. package/examples/latest/all-fields-shapes.json +1 -1
  3. package/examples/latest/betzino.json +1 -1
  4. package/examples/latest/blog-schema.json +1 -1
  5. package/examples/latest/brewery-schema.json +1 -1
  6. package/examples/latest/chat-agent-schema.json +1 -1
  7. package/examples/latest/clear-cache-schema.json +1 -1
  8. package/examples/latest/complex-project-schema.json +1 -1
  9. package/examples/latest/complex-schema.json +1 -1
  10. package/examples/latest/edit-schema.json +1 -1
  11. package/examples/latest/frank-and-fred-schema.json +1 -1
  12. package/examples/latest/generate-agent-schema.json +1 -1
  13. package/examples/latest/klirr-schema.json +1 -1
  14. package/examples/latest/layers/rick-and-morty-layer.json +1 -1
  15. package/examples/latest/layers/shopify-layer-2023-01.json +1 -1
  16. package/examples/latest/layers/shopify-storefront-2023-04.json +1 -1
  17. package/examples/latest/layers/wordpress-2024-01.json +1 -1
  18. package/examples/latest/massive-schema.json +1 -1
  19. package/examples/latest/mill-components-schema.json +1 -1
  20. package/examples/latest/nested-shape-arrays.json +1 -1
  21. package/examples/latest/one-earth.json +1 -1
  22. package/examples/latest/pet-oneof-array.json +1 -1
  23. package/examples/latest/post-schema.json +1 -1
  24. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  25. package/examples/latest/rag-example.json +1 -1
  26. package/examples/latest/real-world-schema.json +1 -1
  27. package/examples/latest/recursive-repeater-schema.json +1 -1
  28. package/examples/latest/recursive-schema.json +1 -1
  29. package/examples/latest/rick-and-morty-ast.json +1 -1
  30. package/examples/latest/rick-and-morty-graphql.json +1 -1
  31. package/examples/latest/rick-and-morty-rest.json +1 -1
  32. package/examples/latest/rick-and-morty-user-schema.json +1 -1
  33. package/examples/latest/rick-and-morty-with-indexing.json +1 -1
  34. package/examples/latest/schema-where-filter.json +1 -1
  35. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  36. package/examples/latest/schema-with-rick-and-morty.json +1 -1
  37. package/examples/latest/shape-books-v3_2_0.json +1 -1
  38. package/examples/latest/shape-books.json +1 -1
  39. package/examples/latest/shape-editor-schema-edited.json +1 -1
  40. package/examples/latest/shape-editor-schema-initial.json +1 -1
  41. package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
  42. package/examples/latest/shopify-lookbook.json +1 -1
  43. package/examples/latest/shopify-product-2022-07.json +1 -1
  44. package/examples/latest/shopify-product-2023-04.json +1 -1
  45. package/examples/latest/shopify-store-with-widget.json +1 -1
  46. package/examples/latest/stripe-product-runtime-schema.json +1 -1
  47. package/examples/latest/stripe-starter-resolved.json +1 -1
  48. package/examples/latest/user-schema-no-required.json +1 -1
  49. package/examples/latest/user-schema-with-defaults.json +1 -1
  50. package/examples/latest/valvoline-ai-demo.json +1461 -1421
  51. package/examples/latest/vector-search-schema.json +1 -1
  52. package/package.json +10 -9
  53. package/dist/agents.d.ts +0 -62
  54. package/dist/agents.js +0 -338
  55. package/dist/api-version.d.ts +0 -5
  56. package/dist/api-version.js +0 -17
  57. package/dist/auth-schemas.d.ts +0 -128
  58. package/dist/auth-schemas.js +0 -7
  59. package/dist/auth-utils.d.ts +0 -5
  60. package/dist/auth-utils.js +0 -6
  61. package/dist/builtin-schema.d.ts +0 -18
  62. package/dist/builtin-schema.js +0 -683
  63. package/dist/constants.d.ts +0 -1
  64. package/dist/constants.js +0 -1
  65. package/dist/content-schema-transform.d.ts +0 -35
  66. package/dist/content-schema-transform.js +0 -162
  67. package/dist/create-input-schema.d.ts +0 -9
  68. package/dist/create-input-schema.js +0 -68
  69. package/dist/enum.d.ts +0 -2
  70. package/dist/enum.js +0 -9
  71. package/dist/flatten-templates.d.ts +0 -2
  72. package/dist/flatten-templates.js +0 -20
  73. package/dist/get-is-leaf.d.ts +0 -3
  74. package/dist/get-is-leaf.js +0 -56
  75. package/dist/index.d.ts +0 -62
  76. package/dist/index.js +0 -59
  77. package/dist/interfaces.d.ts +0 -14
  78. package/dist/interfaces.js +0 -86
  79. package/dist/layers/layers.d.ts +0 -26
  80. package/dist/layers/layers.js +0 -301
  81. package/dist/layers/refs.d.ts +0 -102
  82. package/dist/layers/refs.js +0 -220
  83. package/dist/layers/type-utils.d.ts +0 -59
  84. package/dist/layers/type-utils.js +0 -118
  85. package/dist/layers/visitor.d.ts +0 -5
  86. package/dist/layers/visitor.js +0 -38
  87. package/dist/migration/index.d.ts +0 -73
  88. package/dist/migration/index.js +0 -103
  89. package/dist/migration/to/v3.0.0.d.ts +0 -4
  90. package/dist/migration/to/v3.0.0.js +0 -212
  91. package/dist/migration/to/v3.1.0.d.ts +0 -4
  92. package/dist/migration/to/v3.1.0.js +0 -194
  93. package/dist/migration/to/v3.10.0.d.ts +0 -4
  94. package/dist/migration/to/v3.10.0.js +0 -67
  95. package/dist/migration/to/v3.11.0.d.ts +0 -4
  96. package/dist/migration/to/v3.11.0.js +0 -85
  97. package/dist/migration/to/v3.12.3.d.ts +0 -4
  98. package/dist/migration/to/v3.12.3.js +0 -87
  99. package/dist/migration/to/v3.13.0.d.ts +0 -4
  100. package/dist/migration/to/v3.13.0.js +0 -17
  101. package/dist/migration/to/v3.17.0.d.ts +0 -4
  102. package/dist/migration/to/v3.17.0.js +0 -22
  103. package/dist/migration/to/v3.18.0.d.ts +0 -4
  104. package/dist/migration/to/v3.18.0.js +0 -64
  105. package/dist/migration/to/v3.18.1.d.ts +0 -4
  106. package/dist/migration/to/v3.18.1.js +0 -12
  107. package/dist/migration/to/v3.18.2.d.ts +0 -4
  108. package/dist/migration/to/v3.18.2.js +0 -19
  109. package/dist/migration/to/v3.20.0.d.ts +0 -4
  110. package/dist/migration/to/v3.20.0.js +0 -24
  111. package/dist/migration/to/v3.22.0.d.ts +0 -4
  112. package/dist/migration/to/v3.22.0.js +0 -25
  113. package/dist/migration/to/v3.24.0.d.ts +0 -4
  114. package/dist/migration/to/v3.24.0.js +0 -11
  115. package/dist/migration/to/v3.25.0.d.ts +0 -4
  116. package/dist/migration/to/v3.25.0.js +0 -11
  117. package/dist/migration/to/v3.3.0.d.ts +0 -4
  118. package/dist/migration/to/v3.3.0.js +0 -13
  119. package/dist/migration/to/v3.31.0.d.ts +0 -4
  120. package/dist/migration/to/v3.31.0.js +0 -38
  121. package/dist/migration/to/v3.32.0.d.ts +0 -4
  122. package/dist/migration/to/v3.32.0.js +0 -59
  123. package/dist/migration/to/v3.34.0.d.ts +0 -6
  124. package/dist/migration/to/v3.34.0.js +0 -111
  125. package/dist/migration/to/v3.36.0.d.ts +0 -4
  126. package/dist/migration/to/v3.36.0.js +0 -22
  127. package/dist/migration/to/v3.39.0.d.ts +0 -4
  128. package/dist/migration/to/v3.39.0.js +0 -45
  129. package/dist/migration/to/v3.40.0.d.ts +0 -4
  130. package/dist/migration/to/v3.40.0.js +0 -26
  131. package/dist/migration/to/v3.46.0.d.ts +0 -4
  132. package/dist/migration/to/v3.46.0.js +0 -35
  133. package/dist/migration/to/v3.57.0.d.ts +0 -4
  134. package/dist/migration/to/v3.57.0.js +0 -18
  135. package/dist/migration/to/v3.9.0.d.ts +0 -4
  136. package/dist/migration/to/v3.9.0.js +0 -79
  137. package/dist/migration/types.d.ts +0 -26
  138. package/dist/migration/types.js +0 -3
  139. package/dist/migration/utils.d.ts +0 -2
  140. package/dist/migration/utils.js +0 -6
  141. package/dist/mocks.d.ts +0 -14
  142. package/dist/mocks.js +0 -58
  143. package/dist/models/agent.d.ts +0 -3
  144. package/dist/models/agent.js +0 -29
  145. package/dist/models/project-schema.d.ts +0 -18
  146. package/dist/models/project-schema.js +0 -119
  147. package/dist/models/query.d.ts +0 -3
  148. package/dist/models/query.js +0 -38
  149. package/dist/models/runtime-schema.d.ts +0 -9
  150. package/dist/models/runtime-schema.js +0 -20
  151. package/dist/models/shape.d.ts +0 -4
  152. package/dist/models/shape.js +0 -36
  153. package/dist/models/types.d.ts +0 -36
  154. package/dist/models/types.js +0 -1
  155. package/dist/models/user-schema.d.ts +0 -7
  156. package/dist/models/user-schema.js +0 -9
  157. package/dist/patterns.d.ts +0 -12
  158. package/dist/patterns.js +0 -1
  159. package/dist/project-schema/index.d.ts +0 -211
  160. package/dist/project-schema/index.js +0 -83
  161. package/dist/project-schema/latest.d.ts +0 -2619
  162. package/dist/project-schema/latest.js +0 -7
  163. package/dist/project-schema/migrate.d.ts +0 -4
  164. package/dist/project-schema/migrate.js +0 -218
  165. package/dist/project-schema/v1.0.0.d.ts +0 -299
  166. package/dist/project-schema/v1.0.0.js +0 -7
  167. package/dist/project-schema/v3.0.0.d.ts +0 -478
  168. package/dist/project-schema/v3.0.0.js +0 -7
  169. package/dist/project-schema/v3.1.0.d.ts +0 -621
  170. package/dist/project-schema/v3.1.0.js +0 -7
  171. package/dist/project-schema/v3.10.0.d.ts +0 -1201
  172. package/dist/project-schema/v3.10.0.js +0 -7
  173. package/dist/project-schema/v3.11.0.d.ts +0 -1210
  174. package/dist/project-schema/v3.11.0.js +0 -7
  175. package/dist/project-schema/v3.12.0.d.ts +0 -1214
  176. package/dist/project-schema/v3.12.0.js +0 -7
  177. package/dist/project-schema/v3.12.1.d.ts +0 -1273
  178. package/dist/project-schema/v3.12.1.js +0 -7
  179. package/dist/project-schema/v3.12.2.d.ts +0 -1283
  180. package/dist/project-schema/v3.12.2.js +0 -7
  181. package/dist/project-schema/v3.12.3.d.ts +0 -1306
  182. package/dist/project-schema/v3.12.3.js +0 -7
  183. package/dist/project-schema/v3.13.0.d.ts +0 -1317
  184. package/dist/project-schema/v3.13.0.js +0 -7
  185. package/dist/project-schema/v3.13.1.d.ts +0 -1412
  186. package/dist/project-schema/v3.13.1.js +0 -7
  187. package/dist/project-schema/v3.14.0.d.ts +0 -1436
  188. package/dist/project-schema/v3.14.0.js +0 -7
  189. package/dist/project-schema/v3.15.0.d.ts +0 -1458
  190. package/dist/project-schema/v3.15.0.js +0 -7
  191. package/dist/project-schema/v3.16.0.d.ts +0 -1470
  192. package/dist/project-schema/v3.16.0.js +0 -7
  193. package/dist/project-schema/v3.17.0.d.ts +0 -1467
  194. package/dist/project-schema/v3.17.0.js +0 -7
  195. package/dist/project-schema/v3.17.1.d.ts +0 -1468
  196. package/dist/project-schema/v3.17.1.js +0 -7
  197. package/dist/project-schema/v3.18.0.d.ts +0 -1333
  198. package/dist/project-schema/v3.18.0.js +0 -7
  199. package/dist/project-schema/v3.18.1.d.ts +0 -1332
  200. package/dist/project-schema/v3.18.1.js +0 -7
  201. package/dist/project-schema/v3.18.2.d.ts +0 -1332
  202. package/dist/project-schema/v3.18.2.js +0 -7
  203. package/dist/project-schema/v3.19.0.d.ts +0 -1336
  204. package/dist/project-schema/v3.19.0.js +0 -7
  205. package/dist/project-schema/v3.2.0.d.ts +0 -632
  206. package/dist/project-schema/v3.2.0.js +0 -7
  207. package/dist/project-schema/v3.20.0.d.ts +0 -1336
  208. package/dist/project-schema/v3.20.0.js +0 -7
  209. package/dist/project-schema/v3.21.0.d.ts +0 -1338
  210. package/dist/project-schema/v3.21.0.js +0 -7
  211. package/dist/project-schema/v3.22.0.d.ts +0 -1344
  212. package/dist/project-schema/v3.22.0.js +0 -7
  213. package/dist/project-schema/v3.23.0.d.ts +0 -1376
  214. package/dist/project-schema/v3.23.0.js +0 -7
  215. package/dist/project-schema/v3.24.0.d.ts +0 -1364
  216. package/dist/project-schema/v3.24.0.js +0 -7
  217. package/dist/project-schema/v3.25.0.d.ts +0 -1363
  218. package/dist/project-schema/v3.25.0.js +0 -7
  219. package/dist/project-schema/v3.26.0.d.ts +0 -1388
  220. package/dist/project-schema/v3.26.0.js +0 -7
  221. package/dist/project-schema/v3.27.0.d.ts +0 -1397
  222. package/dist/project-schema/v3.27.0.js +0 -7
  223. package/dist/project-schema/v3.28.0.d.ts +0 -1416
  224. package/dist/project-schema/v3.28.0.js +0 -7
  225. package/dist/project-schema/v3.29.0.d.ts +0 -1423
  226. package/dist/project-schema/v3.29.0.js +0 -7
  227. package/dist/project-schema/v3.3.0.d.ts +0 -632
  228. package/dist/project-schema/v3.3.0.js +0 -7
  229. package/dist/project-schema/v3.30.0.d.ts +0 -1416
  230. package/dist/project-schema/v3.30.0.js +0 -7
  231. package/dist/project-schema/v3.31.0.d.ts +0 -1448
  232. package/dist/project-schema/v3.31.0.js +0 -7
  233. package/dist/project-schema/v3.32.0.d.ts +0 -1439
  234. package/dist/project-schema/v3.32.0.js +0 -7
  235. package/dist/project-schema/v3.33.0.d.ts +0 -1445
  236. package/dist/project-schema/v3.33.0.js +0 -7
  237. package/dist/project-schema/v3.34.0.d.ts +0 -1445
  238. package/dist/project-schema/v3.34.0.js +0 -7
  239. package/dist/project-schema/v3.35.0.d.ts +0 -1464
  240. package/dist/project-schema/v3.35.0.js +0 -7
  241. package/dist/project-schema/v3.36.0.d.ts +0 -1470
  242. package/dist/project-schema/v3.36.0.js +0 -7
  243. package/dist/project-schema/v3.37.0.d.ts +0 -1522
  244. package/dist/project-schema/v3.37.0.js +0 -7
  245. package/dist/project-schema/v3.38.0.d.ts +0 -1522
  246. package/dist/project-schema/v3.38.0.js +0 -7
  247. package/dist/project-schema/v3.39.0.d.ts +0 -1529
  248. package/dist/project-schema/v3.39.0.js +0 -7
  249. package/dist/project-schema/v3.4.0.d.ts +0 -624
  250. package/dist/project-schema/v3.4.0.js +0 -7
  251. package/dist/project-schema/v3.40.0.d.ts +0 -1530
  252. package/dist/project-schema/v3.40.0.js +0 -7
  253. package/dist/project-schema/v3.41.0.d.ts +0 -1530
  254. package/dist/project-schema/v3.41.0.js +0 -7
  255. package/dist/project-schema/v3.42.0.d.ts +0 -1534
  256. package/dist/project-schema/v3.42.0.js +0 -7
  257. package/dist/project-schema/v3.43.0.d.ts +0 -1536
  258. package/dist/project-schema/v3.43.0.js +0 -7
  259. package/dist/project-schema/v3.44.0.d.ts +0 -1621
  260. package/dist/project-schema/v3.44.0.js +0 -7
  261. package/dist/project-schema/v3.45.0.d.ts +0 -1650
  262. package/dist/project-schema/v3.45.0.js +0 -7
  263. package/dist/project-schema/v3.46.0.d.ts +0 -1703
  264. package/dist/project-schema/v3.46.0.js +0 -7
  265. package/dist/project-schema/v3.47.0.d.ts +0 -1736
  266. package/dist/project-schema/v3.47.0.js +0 -7
  267. package/dist/project-schema/v3.48.0.d.ts +0 -2208
  268. package/dist/project-schema/v3.48.0.js +0 -7
  269. package/dist/project-schema/v3.49.0.d.ts +0 -2217
  270. package/dist/project-schema/v3.49.0.js +0 -7
  271. package/dist/project-schema/v3.5.0.d.ts +0 -649
  272. package/dist/project-schema/v3.5.0.js +0 -7
  273. package/dist/project-schema/v3.5.1.d.ts +0 -649
  274. package/dist/project-schema/v3.5.1.js +0 -7
  275. package/dist/project-schema/v3.50.0.d.ts +0 -2269
  276. package/dist/project-schema/v3.50.0.js +0 -7
  277. package/dist/project-schema/v3.51.0.d.ts +0 -2269
  278. package/dist/project-schema/v3.51.0.js +0 -7
  279. package/dist/project-schema/v3.52.0.d.ts +0 -2269
  280. package/dist/project-schema/v3.52.0.js +0 -7
  281. package/dist/project-schema/v3.53.0.d.ts +0 -2350
  282. package/dist/project-schema/v3.53.0.js +0 -7
  283. package/dist/project-schema/v3.54.0.d.ts +0 -2369
  284. package/dist/project-schema/v3.54.0.js +0 -7
  285. package/dist/project-schema/v3.55.0.d.ts +0 -2369
  286. package/dist/project-schema/v3.55.0.js +0 -7
  287. package/dist/project-schema/v3.56.0.d.ts +0 -2405
  288. package/dist/project-schema/v3.56.0.js +0 -7
  289. package/dist/project-schema/v3.57.0.d.ts +0 -2601
  290. package/dist/project-schema/v3.57.0.js +0 -7
  291. package/dist/project-schema/v3.58.0.d.ts +0 -2601
  292. package/dist/project-schema/v3.58.0.js +0 -7
  293. package/dist/project-schema/v3.59.0.d.ts +0 -2619
  294. package/dist/project-schema/v3.59.0.js +0 -7
  295. package/dist/project-schema/v3.6.0.d.ts +0 -658
  296. package/dist/project-schema/v3.6.0.js +0 -7
  297. package/dist/project-schema/v3.7.0.d.ts +0 -961
  298. package/dist/project-schema/v3.7.0.js +0 -7
  299. package/dist/project-schema/v3.8.0.d.ts +0 -979
  300. package/dist/project-schema/v3.8.0.js +0 -7
  301. package/dist/project-schema/v3.9.0.d.ts +0 -1178
  302. package/dist/project-schema/v3.9.0.js +0 -7
  303. package/dist/project-schema/v4.0.0.d.ts +0 -1328
  304. package/dist/project-schema/v4.0.0.js +0 -7
  305. package/dist/refs.d.ts +0 -218
  306. package/dist/refs.js +0 -616
  307. package/dist/relationships.d.ts +0 -40
  308. package/dist/relationships.js +0 -302
  309. package/dist/resolvers/ai/abort-agent-message-args.d.ts +0 -16
  310. package/dist/resolvers/ai/abort-agent-message-args.js +0 -13
  311. package/dist/resolvers/ai/abort-agent-message-response.d.ts +0 -39
  312. package/dist/resolvers/ai/abort-agent-message-response.js +0 -19
  313. package/dist/resolvers/ai/agent-chat-args.d.ts +0 -17
  314. package/dist/resolvers/ai/agent-chat-args.js +0 -14
  315. package/dist/resolvers/ai/agent-chat-payload.d.ts +0 -35
  316. package/dist/resolvers/ai/agent-chat-payload.js +0 -26
  317. package/dist/resolvers/ai/agent-chat-response.d.ts +0 -289
  318. package/dist/resolvers/ai/agent-chat-response.js +0 -21
  319. package/dist/resolvers/ai/agent-generate-args.d.ts +0 -17
  320. package/dist/resolvers/ai/agent-generate-args.js +0 -14
  321. package/dist/resolvers/ai/agent-message-input.d.ts +0 -73
  322. package/dist/resolvers/ai/agent-message-input.js +0 -39
  323. package/dist/resolvers/ai/agent-message-output.d.ts +0 -169
  324. package/dist/resolvers/ai/agent-message-output.js +0 -77
  325. package/dist/resolvers/ai/agent-message-payload.d.ts +0 -507
  326. package/dist/resolvers/ai/agent-message-payload.js +0 -156
  327. package/dist/resolvers/ai/agent-run-mode.d.ts +0 -7
  328. package/dist/resolvers/ai/agent-run-mode.js +0 -9
  329. package/dist/resolvers/ai/agent-session-payload.d.ts +0 -515
  330. package/dist/resolvers/ai/agent-session-payload.js +0 -175
  331. package/dist/resolvers/ai/create-agent-session-response.d.ts +0 -199
  332. package/dist/resolvers/ai/create-agent-session-response.js +0 -9
  333. package/dist/resolvers/ai/embedding-search.d.ts +0 -54
  334. package/dist/resolvers/ai/embedding-search.js +0 -46
  335. package/dist/resolvers/ai/get-agent-message-args.d.ts +0 -16
  336. package/dist/resolvers/ai/get-agent-message-args.js +0 -13
  337. package/dist/resolvers/ai/get-agent-message-response.d.ts +0 -805
  338. package/dist/resolvers/ai/get-agent-message-response.js +0 -63
  339. package/dist/resolvers/ai/inspect-agent-args.d.ts +0 -16
  340. package/dist/resolvers/ai/inspect-agent-args.js +0 -13
  341. package/dist/resolvers/ai/inspect-agent-response.d.ts +0 -504
  342. package/dist/resolvers/ai/inspect-agent-response.js +0 -48
  343. package/dist/resolvers/ai/send-agent-feedback-args.d.ts +0 -52
  344. package/dist/resolvers/ai/send-agent-feedback-args.js +0 -16
  345. package/dist/resolvers/ai/send-agent-message-args.d.ts +0 -48
  346. package/dist/resolvers/ai/send-agent-message-args.js +0 -36
  347. package/dist/resolvers/ai/send-agent-message-response.d.ts +0 -353
  348. package/dist/resolvers/ai/send-agent-message-response.js +0 -51
  349. package/dist/resolvers/ai/types.d.ts +0 -6
  350. package/dist/resolvers/ai/types.js +0 -1
  351. package/dist/resolvers/takeshape/assets/asset-image-meta.d.ts +0 -79
  352. package/dist/resolvers/takeshape/assets/asset-image-meta.js +0 -98
  353. package/dist/resolvers/takeshape/assets/asset-image-params.d.ts +0 -901
  354. package/dist/resolvers/takeshape/assets/asset-image-params.js +0 -726
  355. package/dist/resolvers/takeshape/assets/asset-image.d.ts +0 -17
  356. package/dist/resolvers/takeshape/assets/asset-image.js +0 -15
  357. package/dist/resolvers/takeshape/assets/asset.d.ts +0 -125
  358. package/dist/resolvers/takeshape/assets/asset.js +0 -107
  359. package/dist/resolvers/takeshape/assets/constants.d.ts +0 -11
  360. package/dist/resolvers/takeshape/assets/constants.js +0 -11
  361. package/dist/resolvers/takeshape/builtins/constants.d.ts +0 -1
  362. package/dist/resolvers/takeshape/builtins/constants.js +0 -1
  363. package/dist/runtime-schema.d.ts +0 -6
  364. package/dist/runtime-schema.js +0 -85
  365. package/dist/scalars.d.ts +0 -2
  366. package/dist/scalars.js +0 -4
  367. package/dist/schema-transform.d.ts +0 -19
  368. package/dist/schema-transform.js +0 -74
  369. package/dist/schema-util.d.ts +0 -266
  370. package/dist/schema-util.js +0 -1127
  371. package/dist/schemas/auth-schemas.json +0 -374
  372. package/dist/schemas/index.d.ts +0 -4
  373. package/dist/schemas/index.js +0 -170
  374. package/dist/schemas/project-schema/experimental-2025-07.json +0 -1297
  375. package/dist/schemas/project-schema/latest.d.ts +0 -180
  376. package/dist/schemas/project-schema/latest.js +0 -11
  377. package/dist/schemas/project-schema/latest.json +0 -4846
  378. package/dist/schemas/project-schema/meta-schema-v1.0.0.json +0 -193
  379. package/dist/schemas/project-schema/meta-schema-v3.0.0.json +0 -608
  380. package/dist/schemas/project-schema/meta-schema-v3.1.0.json +0 -608
  381. package/dist/schemas/project-schema/meta-schema-v3.2.0.json +0 -612
  382. package/dist/schemas/project-schema/meta-schema-v3.3.0.json +0 -612
  383. package/dist/schemas/project-schema/meta-schema-v3.4.0.json +0 -637
  384. package/dist/schemas/project-schema/meta-schema-v3.5.0.json +0 -626
  385. package/dist/schemas/project-schema/meta-schema-v3.5.1.json +0 -626
  386. package/dist/schemas/project-schema/meta-schema-v3.6.0.json +0 -629
  387. package/dist/schemas/project-schema/meta-schema-v3.7.0.json +0 -1137
  388. package/dist/schemas/project-schema/meta-schema-v3.8.0.json +0 -1137
  389. package/dist/schemas/project-schema/meta-schema-v3.9.0.json +0 -1477
  390. package/dist/schemas/project-schema/v1.0.0.json +0 -321
  391. package/dist/schemas/project-schema/v3.0.0.json +0 -414
  392. package/dist/schemas/project-schema/v3.1.0.json +0 -572
  393. package/dist/schemas/project-schema/v3.10.0.json +0 -2097
  394. package/dist/schemas/project-schema/v3.11.0.json +0 -2141
  395. package/dist/schemas/project-schema/v3.12.0.json +0 -2144
  396. package/dist/schemas/project-schema/v3.12.1.json +0 -2282
  397. package/dist/schemas/project-schema/v3.12.2.json +0 -2304
  398. package/dist/schemas/project-schema/v3.12.3.json +0 -2357
  399. package/dist/schemas/project-schema/v3.13.0.json +0 -2377
  400. package/dist/schemas/project-schema/v3.14.0.json +0 -2385
  401. package/dist/schemas/project-schema/v3.15.0.json +0 -2365
  402. package/dist/schemas/project-schema/v3.16.0.json +0 -2373
  403. package/dist/schemas/project-schema/v3.17.0.json +0 -2378
  404. package/dist/schemas/project-schema/v3.17.1.json +0 -2380
  405. package/dist/schemas/project-schema/v3.18.0.json +0 -2356
  406. package/dist/schemas/project-schema/v3.18.1.json +0 -2357
  407. package/dist/schemas/project-schema/v3.18.2.json +0 -2357
  408. package/dist/schemas/project-schema/v3.19.0.json +0 -2369
  409. package/dist/schemas/project-schema/v3.2.0.json +0 -580
  410. package/dist/schemas/project-schema/v3.20.0.json +0 -2369
  411. package/dist/schemas/project-schema/v3.21.0.json +0 -2376
  412. package/dist/schemas/project-schema/v3.22.0.json +0 -2381
  413. package/dist/schemas/project-schema/v3.23.0.json +0 -2456
  414. package/dist/schemas/project-schema/v3.24.0.json +0 -2556
  415. package/dist/schemas/project-schema/v3.25.0.json +0 -2552
  416. package/dist/schemas/project-schema/v3.26.0.json +0 -2599
  417. package/dist/schemas/project-schema/v3.27.0.json +0 -2611
  418. package/dist/schemas/project-schema/v3.28.0.json +0 -2656
  419. package/dist/schemas/project-schema/v3.29.0.json +0 -2670
  420. package/dist/schemas/project-schema/v3.3.0.json +0 -581
  421. package/dist/schemas/project-schema/v3.30.0.json +0 -2656
  422. package/dist/schemas/project-schema/v3.31.0.json +0 -2714
  423. package/dist/schemas/project-schema/v3.32.0.json +0 -2708
  424. package/dist/schemas/project-schema/v3.33.0.json +0 -2715
  425. package/dist/schemas/project-schema/v3.34.0.json +0 -2715
  426. package/dist/schemas/project-schema/v3.35.0.json +0 -2748
  427. package/dist/schemas/project-schema/v3.36.0.json +0 -2756
  428. package/dist/schemas/project-schema/v3.37.0.json +0 -2821
  429. package/dist/schemas/project-schema/v3.38.0.json +0 -2819
  430. package/dist/schemas/project-schema/v3.39.0.json +0 -2827
  431. package/dist/schemas/project-schema/v3.4.0.json +0 -571
  432. package/dist/schemas/project-schema/v3.40.0.json +0 -2830
  433. package/dist/schemas/project-schema/v3.41.0.json +0 -2830
  434. package/dist/schemas/project-schema/v3.42.0.json +0 -2835
  435. package/dist/schemas/project-schema/v3.43.0.json +0 -2841
  436. package/dist/schemas/project-schema/v3.44.0.json +0 -3013
  437. package/dist/schemas/project-schema/v3.45.0.json +0 -3064
  438. package/dist/schemas/project-schema/v3.46.0.json +0 -3136
  439. package/dist/schemas/project-schema/v3.47.0.json +0 -3189
  440. package/dist/schemas/project-schema/v3.48.0.json +0 -3196
  441. package/dist/schemas/project-schema/v3.49.0.json +0 -3239
  442. package/dist/schemas/project-schema/v3.5.0.json +0 -571
  443. package/dist/schemas/project-schema/v3.5.1.json +0 -571
  444. package/dist/schemas/project-schema/v3.50.0.json +0 -3320
  445. package/dist/schemas/project-schema/v3.51.0.json +0 -3326
  446. package/dist/schemas/project-schema/v3.52.0.json +0 -3326
  447. package/dist/schemas/project-schema/v3.53.0.json +0 -3476
  448. package/dist/schemas/project-schema/v3.54.0.json +0 -3512
  449. package/dist/schemas/project-schema/v3.55.0.json +0 -3515
  450. package/dist/schemas/project-schema/v3.56.0.json +0 -3530
  451. package/dist/schemas/project-schema/v3.57.0.json +0 -4815
  452. package/dist/schemas/project-schema/v3.58.0.json +0 -4815
  453. package/dist/schemas/project-schema/v3.59.0.json +0 -4846
  454. package/dist/schemas/project-schema/v3.6.0.json +0 -587
  455. package/dist/schemas/project-schema/v3.7.0.json +0 -587
  456. package/dist/schemas/project-schema/v3.8.0.json +0 -604
  457. package/dist/schemas/project-schema/v3.9.0.json +0 -604
  458. package/dist/schemas/project-schema/v4.0.0.json +0 -2316
  459. package/dist/schemas/project-schema.json +0 -214
  460. package/dist/service-dependencies.d.ts +0 -13
  461. package/dist/service-dependencies.js +0 -165
  462. package/dist/services/services.d.ts +0 -31
  463. package/dist/services/services.js +0 -145
  464. package/dist/services/types.d.ts +0 -11
  465. package/dist/services/types.js +0 -1
  466. package/dist/services/util.d.ts +0 -16
  467. package/dist/services/util.js +0 -36
  468. package/dist/shape-paths.d.ts +0 -7
  469. package/dist/shape-paths.js +0 -28
  470. package/dist/taxonomies.d.ts +0 -15
  471. package/dist/taxonomies.js +0 -24
  472. package/dist/template-shapes/index.d.ts +0 -7
  473. package/dist/template-shapes/index.js +0 -33
  474. package/dist/template-shapes/names.d.ts +0 -10
  475. package/dist/template-shapes/names.js +0 -21
  476. package/dist/template-shapes/templates.d.ts +0 -32
  477. package/dist/template-shapes/templates.js +0 -316
  478. package/dist/template-shapes/types.d.ts +0 -15
  479. package/dist/template-shapes/types.js +0 -7
  480. package/dist/template-shapes/where.d.ts +0 -37
  481. package/dist/template-shapes/where.js +0 -400
  482. package/dist/types/index.d.ts +0 -3
  483. package/dist/types/index.js +0 -2
  484. package/dist/types/transforms.d.ts +0 -15
  485. package/dist/types/transforms.js +0 -1
  486. package/dist/types/types.d.ts +0 -200
  487. package/dist/types/types.js +0 -10
  488. package/dist/types/utils.d.ts +0 -112
  489. package/dist/types/utils.js +0 -269
  490. package/dist/unions.d.ts +0 -14
  491. package/dist/unions.js +0 -77
  492. package/dist/util/ai-tools.d.ts +0 -2
  493. package/dist/util/ai-tools.js +0 -14
  494. package/dist/util/api-indexing.d.ts +0 -9
  495. package/dist/util/api-indexing.js +0 -57
  496. package/dist/util/coerce-value.d.ts +0 -9
  497. package/dist/util/coerce-value.js +0 -32
  498. package/dist/util/detect-cycles.d.ts +0 -7
  499. package/dist/util/detect-cycles.js +0 -45
  500. package/dist/util/expressions.d.ts +0 -34
  501. package/dist/util/expressions.js +0 -350
  502. package/dist/util/find-shape-at-path.d.ts +0 -21
  503. package/dist/util/find-shape-at-path.js +0 -53
  504. package/dist/util/form-config.d.ts +0 -11
  505. package/dist/util/form-config.js +0 -62
  506. package/dist/util/get-conflicting-properties.d.ts +0 -6
  507. package/dist/util/get-conflicting-properties.js +0 -55
  508. package/dist/util/get-return-shape.d.ts +0 -4
  509. package/dist/util/get-return-shape.js +0 -30
  510. package/dist/util/has-arg.d.ts +0 -6
  511. package/dist/util/has-arg.js +0 -25
  512. package/dist/util/is-asset-property.d.ts +0 -3
  513. package/dist/util/is-asset-property.js +0 -11
  514. package/dist/util/mcp.d.ts +0 -8
  515. package/dist/util/mcp.js +0 -21
  516. package/dist/util/merge.d.ts +0 -15
  517. package/dist/util/merge.js +0 -254
  518. package/dist/util/patch-schema.d.ts +0 -8
  519. package/dist/util/patch-schema.js +0 -51
  520. package/dist/util/query-field-path.d.ts +0 -9
  521. package/dist/util/query-field-path.js +0 -23
  522. package/dist/util/shapes.d.ts +0 -5
  523. package/dist/util/shapes.js +0 -22
  524. package/dist/validate/ai.d.ts +0 -6
  525. package/dist/validate/ai.js +0 -183
  526. package/dist/validate/errors.d.ts +0 -3
  527. package/dist/validate/errors.js +0 -20
  528. package/dist/validate/types.d.ts +0 -1
  529. package/dist/validate/types.js +0 -1
  530. package/dist/validate/util.d.ts +0 -3
  531. package/dist/validate/util.js +0 -28
  532. package/dist/validate/validate.d.ts +0 -80
  533. package/dist/validate/validate.js +0 -1058
  534. package/dist/versions.d.ts +0 -4
  535. package/dist/versions.js +0 -4
  536. package/dist/workflows.d.ts +0 -14
  537. package/dist/workflows.js +0 -66
@@ -4,1632 +4,1672 @@
4
4
  "locales": [
5
5
  "en-us"
6
6
  ],
7
- "queries": {
8
- "getIndexedProductList": {
9
- "shape": "PaginatedList<Salsify_Product>",
10
- "resolver": {
11
- "shapeName": "Salsify_Product",
12
- "name": "takeshape:queryApiIndex",
13
- "service": "takeshape",
14
- "options": {
15
- "indexedShape": "Salsify_Product"
16
- }
17
- },
18
- "description": "Fetch Salsify_Product data from the API Index.",
19
- "args": "TSListArgs<Salsify_Product>"
20
- },
21
- "listProducts": {
22
- "shape": "PaginatedList<Salsify_Product>",
23
- "resolver": {
24
- "compose": [
25
- {
26
- "id": "embedding",
27
- "if": "$args.description",
28
- "name": "ai:createEmbedding",
29
- "service": "openai",
30
- "model": "text-embedding-3-small",
31
- "args": {
32
- "ops": [
33
- {
34
- "path": "input",
35
- "mapping": "$args.description"
36
- }
37
- ]
38
- }
7
+ "workflows": {},
8
+ "forms": {
9
+ "Engine": {
10
+ "default": {
11
+ "properties": {
12
+ "id": {
13
+ "widget": "singleLineText"
39
14
  },
40
- {
41
- "shapeName": "Salsify_Product",
42
- "name": "takeshape:vectorSearch",
43
- "service": "takeshape",
44
- "options": {
45
- "indexedShape": "Salsify_Product"
46
- },
47
- "args": {
48
- "ops": [
49
- {
50
- "path": "where.part.buyersguide.startYear.lte",
51
- "mapping": "$args.year"
52
- },
53
- {
54
- "path": "where.part.buyersguide.endYear.gte",
55
- "mapping": "$args.year"
56
- },
57
- {
58
- "path": "where.part.buyersguide.make.eq",
59
- "mapping": "$args.make"
60
- },
61
- {
62
- "path": "where.part.buyersguide.model.eq",
63
- "mapping": "$args.model"
64
- },
65
- {
66
- "path": "where.part.buyersguide.engine.in",
67
- "mapping": [
68
- [
69
- "expressionEval",
70
- {
71
- "expression": "['All', $args.engine]"
72
- }
73
- ]
74
- ]
75
- },
76
- {
77
- "path": "vector.name",
78
- "value": "vector"
79
- },
80
- {
81
- "path": "vector.value",
82
- "mapping": "$resolvers.embedding"
83
- }
84
- ]
85
- }
15
+ "data": {
16
+ "widget": "singleLineText"
17
+ },
18
+ "normalizedId": {
19
+ "widget": "singleLineText"
86
20
  }
21
+ },
22
+ "order": [
23
+ "id",
24
+ "data",
25
+ "normalizedId"
87
26
  ]
88
- },
89
- "description": "Given make, model and year get a list of the compatible products",
90
- "args": {
91
- "type": "object",
27
+ }
28
+ },
29
+ "App": {
30
+ "default": {
92
31
  "properties": {
32
+ "engine": {
33
+ "widget": "singleLineText"
34
+ },
93
35
  "make": {
94
- "type": "string",
95
- "description": "The name of the make in uppercase"
36
+ "widget": "singleLineText"
96
37
  },
97
38
  "model": {
98
- "type": "string",
99
- "description": "The name of the model in uppercase"
39
+ "widget": "singleLineText"
100
40
  },
101
41
  "year": {
102
- "type": "number",
103
- "description": "Four digit year as a number"
42
+ "widget": "singleLineText"
104
43
  },
105
- "size": {
106
- "type": "number",
107
- "description": "The number of results to return"
44
+ "startYear": {
45
+ "widget": "number"
108
46
  },
109
- "engine": {
110
- "type": "string",
111
- "description": "The normalizedId of the engine"
47
+ "endYear": {
48
+ "widget": "number"
112
49
  },
113
- "description": {
114
- "type": "string",
115
- "description": "A short description of the part you are looking for to be used for semantic search."
50
+ "apptype": {
51
+ "widget": "singleLineText"
52
+ },
53
+ "qty": {
54
+ "widget": "number"
116
55
  }
117
56
  },
118
- "required": [
57
+ "order": [
58
+ "engine",
119
59
  "make",
120
60
  "model",
121
61
  "year",
122
- "engine",
123
- "description"
62
+ "startYear",
63
+ "endYear",
64
+ "apptype",
65
+ "qty"
124
66
  ]
125
67
  }
126
68
  },
127
- "getPart": {
128
- "shape": "Part",
129
- "args": {
130
- "type": "object",
69
+ "MockRelatedProduct": {
70
+ "default": {
131
71
  "properties": {
132
- "partNo": {
133
- "type": "string"
72
+ "name": {
73
+ "widget": "singleLineText"
134
74
  }
135
- }
136
- },
137
- "resolver": {
138
- "service": "parts",
139
- "name": "rest:get",
140
- "path": "/bin/ShowMeConnect.exe",
141
- "searchParams": {
142
- "ops": [
143
- {
144
- "path": "$.lookup",
145
- "value": "partdetailfull"
146
- },
147
- {
148
- "path": "$.udf",
149
- "mapping": "$args.partNo"
150
- },
151
- {
152
- "path": "$.id",
153
- "value": "69876V2_WEBeCOM"
154
- },
155
- {
156
- "path": "$.bust",
157
- "value": "2"
158
- }
159
- ]
160
75
  },
161
- "results": {
162
- "ops": [
163
- {
164
- "path": "$",
165
- "mapping": "$finalResolver.ShowMeTheParts_PartDetails"
166
- },
167
- {
168
- "path": "$.buyersguide",
169
- "mapping": [
170
- [
171
- "get",
172
- {
173
- "path": "$finalResolver.ShowMeTheParts_PartDetails.buyersguide[1].app"
174
- }
175
- ],
176
- [
177
- "array",
178
- {
179
- "shouldNest": false
180
- }
181
- ]
182
- ]
183
- },
184
- {
185
- "path": "$.buyersguide[*].startYear",
186
- "mapping": [
187
- [
188
- "get",
189
- {
190
- "path": "$loop.item.year"
191
- }
192
- ],
193
- [
194
- "cast",
195
- {
196
- "to": "string"
197
- }
198
- ],
199
- [
200
- "yearRange",
201
- {
202
- "select": "last"
203
- }
204
- ],
205
- [
206
- "cast",
207
- {
208
- "to": "integer"
209
- }
210
- ]
211
- ]
212
- },
213
- {
214
- "path": "$.buyersguide[*].endYear",
215
- "mapping": [
216
- [
217
- "get",
218
- {
219
- "path": "$loop.item.year"
220
- }
221
- ],
222
- [
223
- "cast",
224
- {
225
- "to": "string"
226
- }
227
- ],
228
- [
229
- "yearRange",
230
- {
231
- "select": "first"
232
- }
233
- ],
234
- [
235
- "cast",
236
- {
237
- "to": "integer"
238
- }
239
- ]
240
- ]
241
- }
242
- ]
243
- },
244
- "options": {
245
- "ttl": 172800,
246
- "timeout": 29000
247
- }
76
+ "order": [
77
+ "name"
78
+ ]
248
79
  }
249
80
  },
250
- "getYears": {
251
- "shape": {
252
- "type": "array",
253
- "items": {
254
- "type": "string"
255
- }
256
- },
257
- "resolver": {
258
- "service": "parts",
259
- "name": "rest:get",
260
- "path": "/bin/ShowMeConnect.exe",
261
- "options": {
262
- "timeout": 10000,
263
- "ttl": 604800
264
- },
265
- "searchParams": {
266
- "ops": [
267
- {
268
- "path": "$.lookup",
269
- "value": "year"
270
- },
271
- {
272
- "path": "$.id",
273
- "value": "69876V2_WEBeCOM"
274
- }
275
- ]
81
+ "DangerousPrompt": {
82
+ "default": {
83
+ "properties": {
84
+ "prompt": {
85
+ "widget": "singleLineText"
86
+ },
87
+ "promptVector": {}
276
88
  },
277
- "results": {
278
- "ops": [
279
- {
280
- "path": "$",
281
- "mapping": [
282
- [
283
- "jsonPath",
284
- {
285
- "path": "$finalResolver.ShowMeTheParts_Year.year[*].id"
286
- }
287
- ]
288
- ]
289
- }
290
- ]
291
- }
89
+ "order": [
90
+ "prompt",
91
+ "promptVector"
92
+ ]
292
93
  }
293
- },
294
- "getMakes": {
295
- "description": "Given a four digit year string list the valid makes for that year",
296
- "shape": {
297
- "type": "array",
298
- "items": {
299
- "@ref": "local:Make"
300
- }
94
+ }
95
+ },
96
+ "services": {
97
+ "parts": {
98
+ "id": "parts",
99
+ "title": "Parts",
100
+ "namespace": "Parts",
101
+ "provider": "rest",
102
+ "serviceType": "rest",
103
+ "authenticationType": "none",
104
+ "options": {
105
+ "endpoint": "https://www.showmethepartsdb3.com/"
301
106
  },
302
- "args": {
107
+ "healthCheck": {
108
+ "checkName": "ping",
109
+ "endpoint": "https://www.showmethepartsdb3.com/bin/ShowMeConnect.exe?lookup=make&id=69876V2_WEBeCOM"
110
+ }
111
+ },
112
+ "salsify": {
113
+ "id": "salsify",
114
+ "provider": "salsify",
115
+ "title": "Salsify",
116
+ "namespace": "Salsify",
117
+ "serviceType": "rest",
118
+ "authenticationType": "bearer",
119
+ "options": {
120
+ "organizationId": "s-327cdfb7-40fb-46bc-8d4e-7009b39774f0",
121
+ "channelId": "404027",
122
+ "endpoint": "https://app.salsify.com/api/orgs/s-327cdfb7-40fb-46bc-8d4e-7009b39774f0",
123
+ "introspectedAt": "2023-05-01T20:35:14.201Z"
124
+ }
125
+ },
126
+ "shopify": {
127
+ "id": "shopify",
128
+ "provider": "shopify",
129
+ "title": "Shopify",
130
+ "namespace": "Shopify",
131
+ "serviceType": "graphql",
132
+ "authenticationType": "custom",
133
+ "options": {
134
+ "shop": "valvolineglobal",
135
+ "endpoint": "https://valvolineglobal.myshopify.com/admin/api/2022-07/graphql.json"
136
+ }
137
+ },
138
+ "openai": {
139
+ "id": "openai",
140
+ "title": "OpenAI",
141
+ "namespace": "OpenAI",
142
+ "provider": "openai",
143
+ "serviceType": "openapi",
144
+ "authenticationType": "bearer",
145
+ "options": {
146
+ "endpoint": "https://api.openai.com/v1/",
147
+ "spec": "https://raw.githubusercontent.com/takeshape/openapi-specs/813784d8fcac5b3fd4e468ce6f715b89c9fcb73f/specs/openai/v2.yml",
148
+ "transformVersion": "2.0.0",
149
+ "introspectedAt": "2024-06-26T19:12:52.473Z"
150
+ }
151
+ },
152
+ "anthropic": {
153
+ "id": "anthropic",
154
+ "title": "Anthropic",
155
+ "namespace": "Anthropic",
156
+ "provider": "anthropic",
157
+ "serviceType": "openapi",
158
+ "authenticationType": "custom",
159
+ "options": {
160
+ "endpoint": "https://api.anthropic.com/v1",
161
+ "spec": "https://raw.githubusercontent.com/takeshape/openapi-specs/d1219888103fdd900138589e4e03c0b216c0a5d1/specs/anthropic/2023-06-01.yml",
162
+ "headers": {
163
+ "anthropic-version": "2023-06-01"
164
+ },
165
+ "transformVersion": "2.0.0",
166
+ "introspectedAt": "2024-08-21T16:55:43.579Z"
167
+ }
168
+ }
169
+ },
170
+ "schemaVersion": "3.60.0",
171
+ "apiVersion": "2",
172
+ "shapes": {
173
+ "ChatArgs": {
174
+ "id": "ChatArgs",
175
+ "name": "ChatArgs",
176
+ "title": "Chat Args",
177
+ "schema": {
303
178
  "type": "object",
304
179
  "properties": {
305
- "year": {
306
- "type": "string",
307
- "description": "A four digit year string"
180
+ "input": {
181
+ "type": "string"
182
+ },
183
+ "sessionId": {
184
+ "type": "string"
308
185
  }
309
186
  },
310
187
  "required": [
311
- "year"
188
+ "input"
312
189
  ]
313
- },
314
- "resolver": {
315
- "service": "parts",
316
- "name": "rest:get",
317
- "path": "/bin/ShowMeConnect.exe",
318
- "options": {
319
- "timeout": 10000,
320
- "ttl": 604800
321
- },
322
- "searchParams": {
323
- "ops": [
324
- {
325
- "path": "$.lookup",
326
- "value": "make"
327
- },
328
- {
329
- "path": "$.year",
330
- "mapping": "$args.year"
331
- },
332
- {
333
- "path": "$.id",
334
- "value": "69876V2_WEBeCOM"
335
- }
336
- ]
337
- },
338
- "results": {
339
- "ops": [
340
- {
341
- "path": "$",
342
- "mapping": [
343
- [
344
- "get",
345
- {
346
- "path": "$finalResolver.ShowMeTheParts_Make.make"
347
- }
348
- ],
349
- [
350
- "cast",
351
- {
352
- "to": "array"
353
- }
354
- ]
355
- ]
356
- }
357
- ]
190
+ }
191
+ },
192
+ "ChatResponse": {
193
+ "id": "ChatResponse",
194
+ "name": "ChatResponse",
195
+ "title": "ChatResponse",
196
+ "schema": {
197
+ "type": "object",
198
+ "properties": {
199
+ "content": {
200
+ "type": "string"
201
+ },
202
+ "sessionId": {
203
+ "type": "string"
204
+ }
358
205
  }
359
206
  }
360
207
  },
361
- "getAllMakes": {
362
- "shape": {
363
- "type": "array",
364
- "items": {
365
- "@ref": "local:Make"
366
- }
367
- },
368
- "resolver": {
369
- "service": "parts",
370
- "name": "rest:get",
371
- "path": "/bin/ShowMeConnect.exe",
372
- "options": {
373
- "timeout": 10000,
374
- "ttl": 604800
375
- },
376
- "searchParams": {
377
- "ops": [
378
- {
379
- "path": "$.lookup",
380
- "value": "make"
381
- },
382
- {
383
- "path": "$.id",
384
- "value": "69876V2_WEBeCOM"
385
- }
386
- ]
387
- },
388
- "results": {
389
- "ops": [
390
- {
391
- "path": "$",
392
- "mapping": [
393
- [
394
- "get",
395
- {
396
- "path": "$finalResolver.ShowMeTheParts_Make.make"
397
- }
398
- ],
399
- [
400
- "cast",
401
- {
402
- "to": "array"
403
- }
404
- ]
405
- ]
406
- }
407
- ]
208
+ "Model": {
209
+ "id": "Model",
210
+ "name": "Model",
211
+ "title": "Model",
212
+ "schema": {
213
+ "type": "object",
214
+ "properties": {
215
+ "id": {
216
+ "type": "string"
217
+ },
218
+ "data": {
219
+ "type": "string"
220
+ }
408
221
  }
409
222
  }
410
223
  },
411
- "getModels": {
412
- "description": "Given a year and make id get a list of the valid models",
413
- "shape": {
414
- "type": "array",
415
- "items": {
416
- "@ref": "local:Model"
417
- }
418
- },
419
- "args": {
224
+ "Make": {
225
+ "id": "Make",
226
+ "name": "Make",
227
+ "title": "Make",
228
+ "schema": {
420
229
  "type": "object",
421
230
  "properties": {
422
- "year": {
423
- "type": "string",
424
- "description": "A four digit year string"
231
+ "id": {
232
+ "type": "string"
425
233
  },
426
- "make": {
427
- "type": "string",
428
- "description": "The make id as numerical string"
234
+ "data": {
235
+ "type": "string"
429
236
  }
430
- },
431
- "required": [
432
- "year",
433
- "make"
434
- ]
435
- },
436
- "resolver": {
437
- "service": "parts",
438
- "name": "rest:get",
439
- "path": "/bin/ShowMeConnect.exe",
440
- "options": {
441
- "timeout": 10000,
442
- "ttl": 604800
443
- },
444
- "searchParams": {
445
- "ops": [
446
- {
447
- "path": "$.lookup",
448
- "value": "model"
449
- },
450
- {
451
- "path": "$.year",
452
- "mapping": "$args.year"
453
- },
454
- {
455
- "path": "$.make",
456
- "mapping": [
457
- [
458
- "expressionEval",
459
- {
460
- "expression": "toString($args.make).padStart(4, '0')"
461
- }
462
- ]
463
- ]
464
- },
465
- {
466
- "path": "$.id",
467
- "value": "69876V2_WEBeCOM"
468
- }
469
- ]
470
- },
471
- "results": {
472
- "ops": [
473
- {
474
- "path": "$",
475
- "mapping": [
476
- [
477
- "get",
478
- {
479
- "path": "$finalResolver.ShowMeTheParts_Model.model"
480
- }
481
- ],
482
- [
483
- "cast",
484
- {
485
- "to": "array"
486
- }
487
- ]
488
- ]
489
- }
490
- ]
491
237
  }
492
238
  }
493
239
  },
494
- "getEngines": {
495
- "shape": {
496
- "type": "array",
497
- "items": {
498
- "@ref": "local:Engine"
499
- }
500
- },
501
- "args": {
240
+ "Engine": {
241
+ "id": "Engine",
242
+ "name": "Engine",
243
+ "title": "Engine",
244
+ "schema": {
502
245
  "type": "object",
503
246
  "properties": {
504
- "year": {
247
+ "id": {
505
248
  "type": "string",
506
- "description": "A four digit year string"
249
+ "@mapping": "shapedb:Engine.id"
507
250
  },
508
- "make": {
251
+ "data": {
509
252
  "type": "string",
510
- "description": "The make id a numerical string"
253
+ "@mapping": "shapedb:Engine.data"
511
254
  },
512
- "model": {
255
+ "normalizedId": {
513
256
  "type": "string",
514
- "description": "The model id a numerical string"
257
+ "@mapping": "shapedb:Engine.normalizedId"
515
258
  }
516
- },
517
- "required": [
518
- "year",
519
- "make",
520
- "model"
521
- ]
522
- },
523
- "resolver": {
524
- "service": "parts",
525
- "name": "rest:get",
526
- "path": "/bin/ShowMeConnect.exe",
527
- "options": {
528
- "timeout": 10000,
529
- "ttl": 604800
530
- },
531
- "searchParams": {
532
- "ops": [
533
- {
534
- "path": "$.lookup",
535
- "value": "engine"
536
- },
537
- {
538
- "path": "$.year",
539
- "mapping": "$args.year"
540
- },
541
- {
542
- "path": "$.make",
543
- "mapping": [
544
- [
545
- "expressionEval",
546
- {
547
- "expression": "toString($args.make).padStart(4, '0')"
548
- }
549
- ]
550
- ]
551
- },
552
- {
553
- "path": "$.model",
554
- "mapping": [
555
- [
556
- "expressionEval",
557
- {
558
- "expression": "toString($args.model).padStart(4, '0')"
559
- }
560
- ]
561
- ]
562
- },
563
- {
564
- "path": "$.id",
565
- "value": "69876V2_WEBeCOM"
566
- }
567
- ]
568
- },
569
- "results": {
570
- "ops": [
571
- {
572
- "path": "$",
573
- "mapping": [
574
- [
575
- "get",
576
- {
577
- "path": "$finalResolver.ShowMeTheParts_Engine.engine"
578
- }
579
- ],
580
- [
581
- "cast",
582
- {
583
- "to": "array"
584
- }
585
- ]
586
- ]
587
- },
588
- {
589
- "path": "$.[*].normalizedId",
590
- "mapping": [
591
- [
592
- "expressionEval",
593
- {
594
- "expression": "$loop.item.id.split('~').slice(0,2).join('-')"
595
- }
596
- ]
597
- ]
598
- }
599
- ]
600
259
  }
601
260
  }
602
261
  },
603
- "getPartsDetails": {
604
- "shape": {
605
- "type": "array",
606
- "items": {
607
- "@ref": "local:PartDetail"
608
- }
609
- },
610
- "args": {
262
+ "PartDetail": {
263
+ "id": "PartDetail",
264
+ "name": "PartDetail",
265
+ "title": "PartDetail",
266
+ "schema": {
611
267
  "type": "object",
612
268
  "properties": {
613
- "engine": {
269
+ "supplier": {
614
270
  "type": "string"
615
271
  },
616
- "year": {
272
+ "app_no": {
273
+ "type": "integer"
274
+ },
275
+ "location": {
617
276
  "type": "string"
618
277
  },
619
- "make": {
278
+ "brand": {
620
279
  "type": "string"
621
280
  },
622
- "model": {
281
+ "part_no": {
623
282
  "type": "string"
624
- }
625
- },
626
- "required": [
627
- "engine",
628
- "year",
629
- "make",
630
- "model"
631
- ]
632
- },
633
- "resolver": {
634
- "service": "parts",
635
- "name": "rest:get",
636
- "path": "/bin/ShowMeConnect.exe",
637
- "options": {
638
- "timeout": 10000,
639
- "ttl": 172800
640
- },
641
- "searchParams": {
642
- "ops": [
643
- {
644
- "path": "$.lookup",
645
- "value": "parts"
646
- },
647
- {
648
- "path": "$.year",
649
- "mapping": "$args.year"
650
- },
651
- {
652
- "path": "$.make",
653
- "mapping": [
654
- [
655
- "expressionEval",
656
- {
657
- "expression": "toString($args.make).padStart(4, '0')"
658
- }
659
- ]
660
- ]
661
- },
662
- {
663
- "path": "$.model",
664
- "mapping": [
665
- [
666
- "expressionEval",
667
- {
668
- "expression": "toString($args.model).padStart(4, '0')"
669
- }
670
- ]
671
- ]
672
- },
673
- {
674
- "path": "$.engine",
675
- "mapping": "$args.engine"
283
+ },
284
+ "part_type": {
285
+ "type": "string"
286
+ },
287
+ "alt_part_type": {
288
+ "type": "string"
289
+ },
290
+ "part_key": {
291
+ "type": "integer"
292
+ },
293
+ "comment": {
294
+ "type": "string"
295
+ },
296
+ "application": {
297
+ "type": "string"
298
+ },
299
+ "qty": {
300
+ "type": "integer"
301
+ },
302
+ "case_qty": {
303
+ "type": "string"
304
+ },
305
+ "price": {
306
+ "type": "number"
307
+ },
308
+ "storelocator": {
309
+ "type": "integer"
310
+ },
311
+ "doc": {
312
+ "type": "string"
313
+ },
314
+ "udf2": {
315
+ "type": "string"
316
+ },
317
+ "udf1": {
318
+ "type": "integer"
319
+ },
320
+ "displayorder": {
321
+ "type": "integer"
322
+ },
323
+ "supplierid": {
324
+ "type": "integer"
325
+ },
326
+ "image": {
327
+ "type": "string"
328
+ },
329
+ "height": {
330
+ "type": "integer"
331
+ },
332
+ "width": {
333
+ "type": "integer"
334
+ },
335
+ "smtp_brandid": {
336
+ "type": "string"
337
+ },
338
+ "bodystyle": {
339
+ "type": "string"
340
+ },
341
+ "gcommercehostid": {
342
+ "type": "string"
343
+ },
344
+ "aaiabrandid": {
345
+ "type": "string"
346
+ },
347
+ "warehouses": {
348
+ "type": "string"
349
+ },
350
+ "id": {
351
+ "type": "integer"
352
+ },
353
+ "buylinkcnt": {
354
+ "type": "string"
355
+ }
356
+ }
357
+ }
358
+ },
359
+ "App": {
360
+ "id": "App",
361
+ "name": "App",
362
+ "title": "App",
363
+ "schema": {
364
+ "type": "object",
365
+ "properties": {
366
+ "engine": {
367
+ "type": "string",
368
+ "@mapping": "shapedb:App.engine"
369
+ },
370
+ "make": {
371
+ "type": "string",
372
+ "@mapping": "shapedb:App.make"
373
+ },
374
+ "model": {
375
+ "type": "string",
376
+ "@mapping": "shapedb:App.model"
377
+ },
378
+ "year": {
379
+ "type": "string",
380
+ "@mapping": "shapedb:App.year"
381
+ },
382
+ "startYear": {
383
+ "type": "integer",
384
+ "@mapping": "shapedb:App.startYear"
385
+ },
386
+ "endYear": {
387
+ "type": "integer",
388
+ "@mapping": "shapedb:App.endYear"
389
+ },
390
+ "apptype": {
391
+ "type": "string",
392
+ "@mapping": "shapedb:App.apptype"
393
+ },
394
+ "qty": {
395
+ "type": "integer",
396
+ "@mapping": "shapedb:App.qty"
397
+ }
398
+ }
399
+ }
400
+ },
401
+ "Part": {
402
+ "id": "Part",
403
+ "name": "Part",
404
+ "schema": {
405
+ "properties": {
406
+ "buyersguide": {
407
+ "@indexed": {
408
+ "nested": true
676
409
  },
677
- {
678
- "path": "$.id",
679
- "value": "69876V2_WEBeCOM"
410
+ "type": "array",
411
+ "items": {
412
+ "@ref": "local:App"
680
413
  }
681
- ]
414
+ },
415
+ "part_key": {
416
+ "type": "string"
417
+ },
418
+ "part_no": {
419
+ "type": "string"
420
+ },
421
+ "part_type": {
422
+ "type": "string"
423
+ },
424
+ "udf1": {
425
+ "type": "string"
426
+ }
682
427
  },
683
- "results": {
684
- "ops": [
685
- {
686
- "path": "$",
687
- "mapping": [
688
- [
689
- "get",
690
- {
691
- "path": "$finalResolver.ShowMeThePartsDetail.partsdata"
428
+ "type": "object"
429
+ },
430
+ "title": "Part"
431
+ },
432
+ "Salsify_Product": {
433
+ "id": "Salsify_Product",
434
+ "name": "Salsify_Product",
435
+ "title": "Salsify_Product",
436
+ "cache": {
437
+ "enabled": true,
438
+ "triggers": [
439
+ {
440
+ "type": "schedule",
441
+ "loader": "list",
442
+ "interval": 1440
443
+ }
444
+ ],
445
+ "fragment": {
446
+ "maxDepth": 2,
447
+ "selectionSet": "{shopifyProductVariant{availableForSale barcode compareAtPrice createdAt defaultCursor displayName harmonizedSystemCode id image{altText height id originalSrc src transformedSrc url width}inventoryItem{countryCodeOfOrigin createdAt duplicateSkuCount harmonizedSystemCode id inventoryHistoryUrl legacyResourceId locationsCount provinceCodeOfOrigin requiresShipping sku tracked updatedAt}product{tags productType title}inventoryManagement inventoryPolicy inventoryQuantity legacyResourceId position price requiresShipping selectedOptions{name value}sellableOnlineQuantity sellingPlanGroupCount sku storefrontId taxCode taxable title updatedAt weight weightUnit}part{buyersguide{endYear engine make model startYear year apptype qty}part_key part_no part_type udf1}}"
448
+ }
449
+ },
450
+ "loaders": {
451
+ "list": {
452
+ "query": "salsify:Query.listChannelProducts"
453
+ }
454
+ },
455
+ "schema": {
456
+ "extends": [
457
+ {
458
+ "@ref": "salsify:Product"
459
+ },
460
+ {
461
+ "type": "object",
462
+ "properties": {
463
+ "part": {
464
+ "@resolver": {
465
+ "name": "delegate",
466
+ "to": "local:Query.getPart",
467
+ "args": {
468
+ "ops": [
469
+ {
470
+ "path": "$.partNo",
471
+ "mapping": "$source.mpn"
472
+ }
473
+ ]
692
474
  }
693
- ],
694
- [
695
- "cast",
696
- {
697
- "to": "array"
475
+ },
476
+ "@ref": "local:Part",
477
+ "title": ""
478
+ },
479
+ "shopifyProductVariant": {
480
+ "@resolver": {
481
+ "name": "graphql:query",
482
+ "service": "shopify",
483
+ "fieldName": "productVariants",
484
+ "options": {
485
+ "selectionSet": "{nodes {..._parentFragment}}",
486
+ "ttl": 172800
487
+ },
488
+ "args": {
489
+ "ops": [
490
+ {
491
+ "path": "first",
492
+ "value": "1"
493
+ },
494
+ {
495
+ "path": "query",
496
+ "mapping": [
497
+ [
498
+ "get",
499
+ {
500
+ "path": [
501
+ "$source.mpn"
502
+ ]
503
+ }
504
+ ],
505
+ [
506
+ "format",
507
+ {
508
+ "template": "sku:%s"
509
+ }
510
+ ]
511
+ ]
512
+ }
513
+ ]
514
+ },
515
+ "results": {
516
+ "ops": [
517
+ {
518
+ "path": "$",
519
+ "mapping": "$finalResolver[0]"
520
+ }
521
+ ]
698
522
  }
699
- ]
700
- ]
701
- },
702
- {
703
- "path": "$.[*].normalizedId",
704
- "mapping": [
705
- [
706
- "expressionEval",
707
- {
708
- "expression": "$loop.item.id.split('~').slice(0,2).join('-')"
523
+ },
524
+ "@ref": "shopify:ProductVariant",
525
+ "title": ""
526
+ },
527
+ "vector": {
528
+ "type": "array",
529
+ "@dependencies": "{shopifyProductName diyMarketingCopy}",
530
+ "@resolver": {
531
+ "name": "ai:createEmbedding",
532
+ "service": "openai",
533
+ "model": "text-embedding-3-small",
534
+ "options": {
535
+ "useDependencies": true
709
536
  }
710
- ]
711
- ]
537
+ },
538
+ "items": {
539
+ "type": "number"
540
+ },
541
+ "title": "Vector",
542
+ "@tag": "vector"
543
+ }
712
544
  }
713
- ]
714
- }
545
+ }
546
+ ]
715
547
  }
716
548
  },
717
- "Salsify_listChannelProducts": {
718
- "shape": "PaginatedList<salsify:Product>",
719
- "args": {
549
+ "MockRelatedProduct": {
550
+ "id": "cWMNa7fp5",
551
+ "name": "MockRelatedProduct",
552
+ "title": "Mock Related Product List",
553
+ "model": {
554
+ "type": "multiple"
555
+ },
556
+ "schema": {
720
557
  "type": "object",
721
558
  "properties": {
722
- "from": {
723
- "type": "integer",
724
- "default": 0
725
- },
726
- "size": {
727
- "type": "integer",
728
- "default": 10
559
+ "name": {
560
+ "@mapping": "shapedb:MockRelatedProduct.7nsXMIclo",
561
+ "type": "string",
562
+ "title": "Name"
729
563
  }
730
564
  }
731
- },
732
- "resolver": {
733
- "name": "salsify:listChannelProducts",
734
- "service": "salsify",
735
- "results": {
736
- "ops": [
737
- {
738
- "path": "$.items",
739
- "mapping": [
740
- [
741
- "expressionEval",
742
- {
743
- "expression": "$finalResolver.slice($args.from, $args.from + $args.size)"
744
- }
745
- ]
746
- ]
747
- },
748
- {
749
- "path": "$.total",
750
- "mapping": [
751
- [
752
- "expressionEval",
753
- {
754
- "expression": "$finalResolver.length"
755
- }
756
- ]
757
- ]
758
- }
759
- ]
760
- }
761
565
  }
762
566
  },
763
- "Shopify_collection": {
764
- "resolver": {
765
- "name": "graphql:query",
766
- "service": "shopify",
767
- "fieldName": "collection"
567
+ "DangerousPrompt": {
568
+ "id": "rQTVfBrXi",
569
+ "name": "DangerousPrompt",
570
+ "title": "Dangerous Prompt",
571
+ "model": {
572
+ "type": "multiple"
768
573
  },
769
- "args": {
574
+ "schema": {
770
575
  "type": "object",
771
576
  "properties": {
772
- "id": {
577
+ "prompt": {
578
+ "@mapping": "shapedb:DangerousPrompt.JBSfBEWUP",
773
579
  "type": "string",
774
- "@tag": "id",
775
- "description": "The ID of the Collection to return."
580
+ "title": "Prompt"
581
+ },
582
+ "promptVector": {
583
+ "type": "array",
584
+ "items": {
585
+ "type": "number"
586
+ },
587
+ "title": "Prompt Vector",
588
+ "@tag": "vector",
589
+ "@dependencies": "{prompt}",
590
+ "@resolver": {
591
+ "name": "ai:createEmbedding",
592
+ "service": "openai",
593
+ "model": "text-embedding-3-small",
594
+ "options": {
595
+ "useDependencies": true
596
+ }
597
+ }
776
598
  }
777
599
  },
778
600
  "required": [
779
- "id"
601
+ "prompt"
780
602
  ]
603
+ }
604
+ }
605
+ },
606
+ "queries": {
607
+ "getIndexedProductList": {
608
+ "shape": "PaginatedList<Salsify_Product>",
609
+ "resolver": {
610
+ "shapeName": "Salsify_Product",
611
+ "name": "takeshape:queryApiIndex",
612
+ "service": "takeshape",
613
+ "options": {
614
+ "indexedShape": "Salsify_Product"
615
+ }
781
616
  },
782
- "shape": "Shopify_Collection"
617
+ "description": "Fetch Salsify_Product data from the API Index.",
618
+ "args": "TSListArgs<Salsify_Product>"
783
619
  },
784
- "Shopify_collectionByHandle": {
620
+ "listProducts": {
621
+ "shape": "PaginatedList<Salsify_Product>",
785
622
  "resolver": {
786
- "name": "graphql:query",
787
- "service": "shopify",
788
- "fieldName": "collectionByHandle"
789
- },
790
- "args": {
791
- "type": "object",
792
- "properties": {
793
- "handle": {
794
- "type": "string",
795
- "description": "The handle of the collection."
623
+ "compose": [
624
+ {
625
+ "id": "embedding",
626
+ "if": "$args.description",
627
+ "name": "ai:createEmbedding",
628
+ "service": "openai",
629
+ "model": "text-embedding-3-small",
630
+ "args": {
631
+ "ops": [
632
+ {
633
+ "path": "input",
634
+ "mapping": "$args.description"
635
+ }
636
+ ]
637
+ }
638
+ },
639
+ {
640
+ "shapeName": "Salsify_Product",
641
+ "name": "takeshape:vectorSearch",
642
+ "service": "takeshape",
643
+ "options": {
644
+ "indexedShape": "Salsify_Product"
645
+ },
646
+ "args": {
647
+ "ops": [
648
+ {
649
+ "path": "where.part.buyersguide.startYear.lte",
650
+ "mapping": "$args.year"
651
+ },
652
+ {
653
+ "path": "where.part.buyersguide.endYear.gte",
654
+ "mapping": "$args.year"
655
+ },
656
+ {
657
+ "path": "where.part.buyersguide.make.eq",
658
+ "mapping": "$args.make"
659
+ },
660
+ {
661
+ "path": "where.part.buyersguide.model.eq",
662
+ "mapping": "$args.model"
663
+ },
664
+ {
665
+ "path": "where.part.buyersguide.engine.in",
666
+ "mapping": [
667
+ [
668
+ "expressionEval",
669
+ {
670
+ "expression": "['All', $args.engine]"
671
+ }
672
+ ]
673
+ ]
674
+ },
675
+ {
676
+ "path": "vector.name",
677
+ "value": "vector"
678
+ },
679
+ {
680
+ "path": "vector.value",
681
+ "mapping": "$resolvers.embedding"
682
+ }
683
+ ]
684
+ }
796
685
  }
797
- },
798
- "required": [
799
- "handle"
800
686
  ]
801
687
  },
802
- "shape": "Shopify_Collection"
803
- },
804
- "Shopify_collections": {
805
- "resolver": {
806
- "name": "graphql:query",
807
- "service": "shopify",
808
- "fieldName": "collections"
809
- },
688
+ "description": "Given make, model and year get a list of the compatible products",
810
689
  "args": {
811
690
  "type": "object",
812
691
  "properties": {
813
- "first": {
814
- "type": "integer",
815
- "description": "Returns up to the first `n` elements from the list."
816
- },
817
- "after": {
692
+ "make": {
818
693
  "type": "string",
819
- "description": "Returns the elements that come after the specified cursor."
820
- },
821
- "last": {
822
- "type": "integer",
823
- "description": "Returns up to the last `n` elements from the list."
694
+ "description": "The name of the make in uppercase"
824
695
  },
825
- "before": {
696
+ "model": {
826
697
  "type": "string",
827
- "description": "Returns the elements that come before the specified cursor."
698
+ "description": "The name of the model in uppercase"
828
699
  },
829
- "reverse": {
830
- "type": "boolean",
831
- "description": "Reverse the order of the underlying list.",
832
- "default": false
700
+ "year": {
701
+ "type": "number",
702
+ "description": "Four digit year as a number"
833
703
  },
834
- "sortKey": {
835
- "@ref": "shopify:CollectionSortKeys",
836
- "description": "Sort the underlying list by the given key.",
837
- "default": "ID"
704
+ "size": {
705
+ "type": "number",
706
+ "description": "The number of results to return"
838
707
  },
839
- "query": {
708
+ "engine": {
840
709
  "type": "string",
841
- "description": "Supported filter parameters:\n - `collection_type`\n - `publishable_status`\n - `published_status`\n - `title`\n - `updated_at`\n\nSee the detailed [search syntax](https://shopify.dev/api/usage/search-syntax)\nfor more information about using filters."
710
+ "description": "The normalizedId of the engine"
842
711
  },
843
- "savedSearchId": {
712
+ "description": {
844
713
  "type": "string",
845
- "@tag": "id",
846
- "description": "The ID of an existing saved search.\nThe search’s query string is used as the query argument.\nRefer to [SavedSearch](https://shopify.dev/api/admin-graphql/latest/objects/savedsearch)."
714
+ "description": "A short description of the part you are looking for to be used for semantic search."
847
715
  }
848
- }
849
- },
850
- "shape": "Shopify_CollectionConnection"
716
+ },
717
+ "required": [
718
+ "make",
719
+ "model",
720
+ "year",
721
+ "engine",
722
+ "description"
723
+ ]
724
+ }
851
725
  },
852
- "Shopify_product": {
853
- "resolver": {
854
- "name": "graphql:query",
855
- "service": "shopify",
856
- "fieldName": "product"
857
- },
726
+ "getPart": {
727
+ "shape": "Part",
858
728
  "args": {
859
729
  "type": "object",
860
730
  "properties": {
861
- "id": {
862
- "type": "string",
863
- "@tag": "id",
864
- "description": "The ID of the Product to return."
731
+ "partNo": {
732
+ "type": "string"
865
733
  }
866
- },
867
- "required": [
868
- "id"
869
- ]
870
- },
871
- "shape": "Shopify_Product"
872
- },
873
- "getMockRelatedProduct": {
874
- "shape": "MockRelatedProduct",
875
- "resolver": {
876
- "name": "shapedb:get",
877
- "service": "shapedb",
878
- "shapeName": "MockRelatedProduct"
879
- },
880
- "description": "Get a MockRelatedProduct by ID",
881
- "args": "TSGetArgs<MockRelatedProduct>"
882
- },
883
- "getMockRelatedProductList": {
884
- "shape": "PaginatedList<MockRelatedProduct>",
885
- "resolver": {
886
- "name": "shapedb:list",
887
- "service": "shapedb",
888
- "shapeName": "MockRelatedProduct"
889
- },
890
- "description": "Returns a list MockRelatedProduct in natural order.",
891
- "args": "TSListArgs<MockRelatedProduct>"
892
- },
893
- "getIndexedSalsifyProductList": {
894
- "shape": "PaginatedList<Salsify_Product>",
895
- "resolver": {
896
- "shapeName": "Salsify_Product",
897
- "name": "takeshape:queryApiIndex",
898
- "service": "takeshape",
899
- "options": {
900
- "indexedShape": "Salsify_Product"
901
734
  }
902
735
  },
903
- "description": "Fetch Salsify_Product data from the API Index.",
904
- "args": "TSListArgs<Salsify_Product>"
905
- },
906
- "getDangerousPrompt": {
907
- "shape": "DangerousPrompt",
908
- "resolver": {
909
- "name": "shapedb:get",
910
- "service": "shapedb",
911
- "shapeName": "DangerousPrompt"
912
- },
913
- "description": "Get a DangerousPrompt by ID",
914
- "args": "TSGetArgs<DangerousPrompt>"
915
- },
916
- "getDangerousPromptList": {
917
- "shape": "PaginatedList<DangerousPrompt>",
918
- "resolver": {
919
- "name": "shapedb:list",
920
- "service": "shapedb",
921
- "shapeName": "DangerousPrompt"
922
- },
923
- "description": "Returns a list DangerousPrompt in natural order.",
924
- "args": "TSListArgs<DangerousPrompt>"
925
- }
926
- },
927
- "mutations": {
928
- "chat": {
929
- "description": "Fetch Salsify_Product data from the API Index.",
930
- "shape": "ChatResponse",
931
- "args": "ChatArgs",
932
- "resolver": {
933
- "name": "ai:chat",
934
- "service": "openai",
935
- "model": "gpt-4o",
936
- "systemPrompt": "You are a very helpful assistant. \n\nFirst you must verify the user's car's \"fitment data\" which is defined as the year, make, model and engine. The year must be between 1918 and 2025. The make must be validated by the getMakes tool. The model must be validated with the getModels tool. The engine must be validated with the getEngines tool. Do not assume any fitment data always present the options available from the appropriate tool call. \n\nAfter verifying the \"fitment data\" you should suggest up to five compatible products using the listProducts tool. Please include product IDs from Shopify only, where appropriate, on their own line, with 2 line breaks before and after, with no markdown or styling, in the format: `gid://shopify/Product/8133116887317`",
937
- "tools": [
938
- "getMakes",
939
- "getModels",
940
- "getEngines",
941
- {
942
- "ref": "listProducts",
943
- "selectionSet": "{items {shopifyProductName shopifyProductId diyMarketingCopy}}"
944
- }
945
- ],
946
- "guardrails": [
947
- {
948
- "name": "similarity",
949
- "shape": "DangerousPrompt",
950
- "defaultResponse": "Sorry let's talk about Valvoline"
951
- }
952
- ]
953
- }
954
- },
955
- "updateMockRelatedProduct": {
956
- "shape": "UpdateResult<MockRelatedProduct>",
957
- "resolver": {
958
- "name": "shapedb:update",
959
- "service": "shapedb",
960
- "shapeName": "MockRelatedProduct"
961
- },
962
- "description": "Update MockRelatedProduct",
963
- "args": "UpdateArgs<MockRelatedProduct>"
964
- },
965
- "createMockRelatedProduct": {
966
- "shape": "CreateResult<MockRelatedProduct>",
967
- "resolver": {
968
- "name": "shapedb:create",
969
- "service": "shapedb",
970
- "shapeName": "MockRelatedProduct"
971
- },
972
- "description": "Create MockRelatedProduct",
973
- "args": "CreateArgs<MockRelatedProduct>"
974
- },
975
- "duplicateMockRelatedProduct": {
976
- "shape": "DuplicateResult<MockRelatedProduct>",
977
- "resolver": {
978
- "name": "shapedb:duplicate",
979
- "service": "shapedb",
980
- "shapeName": "MockRelatedProduct"
981
- },
982
- "description": "Duplicate MockRelatedProduct",
983
- "args": "DuplicateArgs<MockRelatedProduct>"
984
- },
985
- "deleteMockRelatedProduct": {
986
- "shape": "DeleteResult<MockRelatedProduct>",
987
- "resolver": {
988
- "name": "shapedb:delete",
989
- "service": "shapedb",
990
- "shapeName": "MockRelatedProduct"
991
- },
992
- "description": "Delete MockRelatedProduct",
993
- "args": "DeleteArgs<MockRelatedProduct>"
994
- },
995
- "updateDangerousPrompt": {
996
- "shape": "UpdateResult<DangerousPrompt>",
997
736
  "resolver": {
998
- "name": "shapedb:update",
999
- "service": "shapedb",
1000
- "shapeName": "DangerousPrompt"
1001
- },
1002
- "description": "Update DangerousPrompt",
1003
- "args": "UpdateArgs<DangerousPrompt>"
737
+ "service": "parts",
738
+ "name": "rest:get",
739
+ "path": "/bin/ShowMeConnect.exe",
740
+ "searchParams": {
741
+ "ops": [
742
+ {
743
+ "path": "$.lookup",
744
+ "value": "partdetailfull"
745
+ },
746
+ {
747
+ "path": "$.udf",
748
+ "mapping": "$args.partNo"
749
+ },
750
+ {
751
+ "path": "$.id",
752
+ "value": "69876V2_WEBeCOM"
753
+ },
754
+ {
755
+ "path": "$.bust",
756
+ "value": "2"
757
+ }
758
+ ]
759
+ },
760
+ "results": {
761
+ "ops": [
762
+ {
763
+ "path": "$",
764
+ "mapping": "$finalResolver.ShowMeTheParts_PartDetails"
765
+ },
766
+ {
767
+ "path": "$.buyersguide",
768
+ "mapping": [
769
+ [
770
+ "get",
771
+ {
772
+ "path": "$finalResolver.ShowMeTheParts_PartDetails.buyersguide[1].app"
773
+ }
774
+ ],
775
+ [
776
+ "array",
777
+ {
778
+ "shouldNest": false
779
+ }
780
+ ]
781
+ ]
782
+ },
783
+ {
784
+ "path": "$.buyersguide[*].startYear",
785
+ "mapping": [
786
+ [
787
+ "get",
788
+ {
789
+ "path": "$loop.item.year"
790
+ }
791
+ ],
792
+ [
793
+ "cast",
794
+ {
795
+ "to": "string"
796
+ }
797
+ ],
798
+ [
799
+ "yearRange",
800
+ {
801
+ "select": "last"
802
+ }
803
+ ],
804
+ [
805
+ "cast",
806
+ {
807
+ "to": "integer"
808
+ }
809
+ ]
810
+ ]
811
+ },
812
+ {
813
+ "path": "$.buyersguide[*].endYear",
814
+ "mapping": [
815
+ [
816
+ "get",
817
+ {
818
+ "path": "$loop.item.year"
819
+ }
820
+ ],
821
+ [
822
+ "cast",
823
+ {
824
+ "to": "string"
825
+ }
826
+ ],
827
+ [
828
+ "yearRange",
829
+ {
830
+ "select": "first"
831
+ }
832
+ ],
833
+ [
834
+ "cast",
835
+ {
836
+ "to": "integer"
837
+ }
838
+ ]
839
+ ]
840
+ }
841
+ ]
842
+ },
843
+ "options": {
844
+ "ttl": 172800,
845
+ "timeout": 29000
846
+ }
847
+ }
1004
848
  },
1005
- "createDangerousPrompt": {
1006
- "shape": "CreateResult<DangerousPrompt>",
1007
- "resolver": {
1008
- "name": "shapedb:create",
1009
- "service": "shapedb",
1010
- "shapeName": "DangerousPrompt"
849
+ "getYears": {
850
+ "shape": {
851
+ "type": "array",
852
+ "items": {
853
+ "type": "string"
854
+ }
1011
855
  },
1012
- "description": "Create DangerousPrompt",
1013
- "args": "CreateArgs<DangerousPrompt>"
1014
- },
1015
- "duplicateDangerousPrompt": {
1016
- "shape": "DuplicateResult<DangerousPrompt>",
1017
856
  "resolver": {
1018
- "name": "shapedb:duplicate",
1019
- "service": "shapedb",
1020
- "shapeName": "DangerousPrompt"
1021
- },
1022
- "description": "Duplicate DangerousPrompt",
1023
- "args": "DuplicateArgs<DangerousPrompt>"
857
+ "service": "parts",
858
+ "name": "rest:get",
859
+ "path": "/bin/ShowMeConnect.exe",
860
+ "options": {
861
+ "timeout": 10000,
862
+ "ttl": 604800
863
+ },
864
+ "searchParams": {
865
+ "ops": [
866
+ {
867
+ "path": "$.lookup",
868
+ "value": "year"
869
+ },
870
+ {
871
+ "path": "$.id",
872
+ "value": "69876V2_WEBeCOM"
873
+ }
874
+ ]
875
+ },
876
+ "results": {
877
+ "ops": [
878
+ {
879
+ "path": "$",
880
+ "mapping": [
881
+ [
882
+ "jsonPath",
883
+ {
884
+ "path": "$finalResolver.ShowMeTheParts_Year.year[*].id"
885
+ }
886
+ ]
887
+ ]
888
+ }
889
+ ]
890
+ }
891
+ }
1024
892
  },
1025
- "deleteDangerousPrompt": {
1026
- "shape": "DeleteResult<DangerousPrompt>",
1027
- "resolver": {
1028
- "name": "shapedb:delete",
1029
- "service": "shapedb",
1030
- "shapeName": "DangerousPrompt"
893
+ "getMakes": {
894
+ "description": "Given a four digit year string list the valid makes for that year",
895
+ "shape": {
896
+ "type": "array",
897
+ "items": {
898
+ "@ref": "local:Make"
899
+ }
1031
900
  },
1032
- "description": "Delete DangerousPrompt",
1033
- "args": "DeleteArgs<DangerousPrompt>"
1034
- }
1035
- },
1036
- "shapes": {
1037
- "ChatArgs": {
1038
- "id": "ChatArgs",
1039
- "name": "ChatArgs",
1040
- "title": "Chat Args",
1041
- "schema": {
901
+ "args": {
1042
902
  "type": "object",
1043
903
  "properties": {
1044
- "input": {
1045
- "type": "string"
1046
- },
1047
- "sessionId": {
1048
- "type": "string"
904
+ "year": {
905
+ "type": "string",
906
+ "description": "A four digit year string"
1049
907
  }
1050
908
  },
1051
909
  "required": [
1052
- "input"
910
+ "year"
1053
911
  ]
1054
- }
1055
- },
1056
- "ChatResponse": {
1057
- "id": "ChatResponse",
1058
- "name": "ChatResponse",
1059
- "title": "ChatResponse",
1060
- "schema": {
1061
- "type": "object",
1062
- "properties": {
1063
- "content": {
1064
- "type": "string"
1065
- },
1066
- "sessionId": {
1067
- "type": "string"
1068
- }
912
+ },
913
+ "resolver": {
914
+ "service": "parts",
915
+ "name": "rest:get",
916
+ "path": "/bin/ShowMeConnect.exe",
917
+ "options": {
918
+ "timeout": 10000,
919
+ "ttl": 604800
920
+ },
921
+ "searchParams": {
922
+ "ops": [
923
+ {
924
+ "path": "$.lookup",
925
+ "value": "make"
926
+ },
927
+ {
928
+ "path": "$.year",
929
+ "mapping": "$args.year"
930
+ },
931
+ {
932
+ "path": "$.id",
933
+ "value": "69876V2_WEBeCOM"
934
+ }
935
+ ]
936
+ },
937
+ "results": {
938
+ "ops": [
939
+ {
940
+ "path": "$",
941
+ "mapping": [
942
+ [
943
+ "get",
944
+ {
945
+ "path": "$finalResolver.ShowMeTheParts_Make.make"
946
+ }
947
+ ],
948
+ [
949
+ "cast",
950
+ {
951
+ "to": "array"
952
+ }
953
+ ]
954
+ ]
955
+ }
956
+ ]
1069
957
  }
1070
958
  }
1071
959
  },
1072
- "Model": {
1073
- "id": "Model",
1074
- "name": "Model",
1075
- "title": "Model",
1076
- "schema": {
1077
- "type": "object",
1078
- "properties": {
1079
- "id": {
1080
- "type": "string"
1081
- },
1082
- "data": {
1083
- "type": "string"
1084
- }
960
+ "getAllMakes": {
961
+ "shape": {
962
+ "type": "array",
963
+ "items": {
964
+ "@ref": "local:Make"
965
+ }
966
+ },
967
+ "resolver": {
968
+ "service": "parts",
969
+ "name": "rest:get",
970
+ "path": "/bin/ShowMeConnect.exe",
971
+ "options": {
972
+ "timeout": 10000,
973
+ "ttl": 604800
974
+ },
975
+ "searchParams": {
976
+ "ops": [
977
+ {
978
+ "path": "$.lookup",
979
+ "value": "make"
980
+ },
981
+ {
982
+ "path": "$.id",
983
+ "value": "69876V2_WEBeCOM"
984
+ }
985
+ ]
986
+ },
987
+ "results": {
988
+ "ops": [
989
+ {
990
+ "path": "$",
991
+ "mapping": [
992
+ [
993
+ "get",
994
+ {
995
+ "path": "$finalResolver.ShowMeTheParts_Make.make"
996
+ }
997
+ ],
998
+ [
999
+ "cast",
1000
+ {
1001
+ "to": "array"
1002
+ }
1003
+ ]
1004
+ ]
1005
+ }
1006
+ ]
1085
1007
  }
1086
1008
  }
1087
1009
  },
1088
- "Make": {
1089
- "id": "Make",
1090
- "name": "Make",
1091
- "title": "Make",
1092
- "schema": {
1093
- "type": "object",
1094
- "properties": {
1095
- "id": {
1096
- "type": "string"
1097
- },
1098
- "data": {
1099
- "type": "string"
1100
- }
1010
+ "getModels": {
1011
+ "description": "Given a year and make id get a list of the valid models",
1012
+ "shape": {
1013
+ "type": "array",
1014
+ "items": {
1015
+ "@ref": "local:Model"
1101
1016
  }
1102
- }
1103
- },
1104
- "Engine": {
1105
- "id": "Engine",
1106
- "name": "Engine",
1107
- "title": "Engine",
1108
- "schema": {
1017
+ },
1018
+ "args": {
1109
1019
  "type": "object",
1110
1020
  "properties": {
1111
- "id": {
1112
- "type": "string",
1113
- "@mapping": "shapedb:Engine.id"
1114
- },
1115
- "data": {
1021
+ "year": {
1116
1022
  "type": "string",
1117
- "@mapping": "shapedb:Engine.data"
1023
+ "description": "A four digit year string"
1118
1024
  },
1119
- "normalizedId": {
1025
+ "make": {
1120
1026
  "type": "string",
1121
- "@mapping": "shapedb:Engine.normalizedId"
1027
+ "description": "The make id as numerical string"
1122
1028
  }
1029
+ },
1030
+ "required": [
1031
+ "year",
1032
+ "make"
1033
+ ]
1034
+ },
1035
+ "resolver": {
1036
+ "service": "parts",
1037
+ "name": "rest:get",
1038
+ "path": "/bin/ShowMeConnect.exe",
1039
+ "options": {
1040
+ "timeout": 10000,
1041
+ "ttl": 604800
1042
+ },
1043
+ "searchParams": {
1044
+ "ops": [
1045
+ {
1046
+ "path": "$.lookup",
1047
+ "value": "model"
1048
+ },
1049
+ {
1050
+ "path": "$.year",
1051
+ "mapping": "$args.year"
1052
+ },
1053
+ {
1054
+ "path": "$.make",
1055
+ "mapping": [
1056
+ [
1057
+ "expressionEval",
1058
+ {
1059
+ "expression": "toString($args.make).padStart(4, '0')"
1060
+ }
1061
+ ]
1062
+ ]
1063
+ },
1064
+ {
1065
+ "path": "$.id",
1066
+ "value": "69876V2_WEBeCOM"
1067
+ }
1068
+ ]
1069
+ },
1070
+ "results": {
1071
+ "ops": [
1072
+ {
1073
+ "path": "$",
1074
+ "mapping": [
1075
+ [
1076
+ "get",
1077
+ {
1078
+ "path": "$finalResolver.ShowMeTheParts_Model.model"
1079
+ }
1080
+ ],
1081
+ [
1082
+ "cast",
1083
+ {
1084
+ "to": "array"
1085
+ }
1086
+ ]
1087
+ ]
1088
+ }
1089
+ ]
1123
1090
  }
1124
1091
  }
1125
1092
  },
1126
- "PartDetail": {
1127
- "id": "PartDetail",
1128
- "name": "PartDetail",
1129
- "title": "PartDetail",
1130
- "schema": {
1093
+ "getEngines": {
1094
+ "shape": {
1095
+ "type": "array",
1096
+ "items": {
1097
+ "@ref": "local:Engine"
1098
+ }
1099
+ },
1100
+ "args": {
1131
1101
  "type": "object",
1132
1102
  "properties": {
1133
- "supplier": {
1134
- "type": "string"
1135
- },
1136
- "app_no": {
1137
- "type": "integer"
1138
- },
1139
- "location": {
1140
- "type": "string"
1141
- },
1142
- "brand": {
1143
- "type": "string"
1144
- },
1145
- "part_no": {
1146
- "type": "string"
1147
- },
1148
- "part_type": {
1149
- "type": "string"
1150
- },
1151
- "alt_part_type": {
1152
- "type": "string"
1153
- },
1154
- "part_key": {
1155
- "type": "integer"
1156
- },
1157
- "comment": {
1158
- "type": "string"
1159
- },
1160
- "application": {
1161
- "type": "string"
1162
- },
1163
- "qty": {
1164
- "type": "integer"
1165
- },
1166
- "case_qty": {
1167
- "type": "string"
1168
- },
1169
- "price": {
1170
- "type": "number"
1171
- },
1172
- "storelocator": {
1173
- "type": "integer"
1174
- },
1175
- "doc": {
1176
- "type": "string"
1177
- },
1178
- "udf2": {
1179
- "type": "string"
1180
- },
1181
- "udf1": {
1182
- "type": "integer"
1183
- },
1184
- "displayorder": {
1185
- "type": "integer"
1186
- },
1187
- "supplierid": {
1188
- "type": "integer"
1189
- },
1190
- "image": {
1191
- "type": "string"
1192
- },
1193
- "height": {
1194
- "type": "integer"
1195
- },
1196
- "width": {
1197
- "type": "integer"
1198
- },
1199
- "smtp_brandid": {
1200
- "type": "string"
1201
- },
1202
- "bodystyle": {
1203
- "type": "string"
1204
- },
1205
- "gcommercehostid": {
1206
- "type": "string"
1207
- },
1208
- "aaiabrandid": {
1209
- "type": "string"
1210
- },
1211
- "warehouses": {
1212
- "type": "string"
1103
+ "year": {
1104
+ "type": "string",
1105
+ "description": "A four digit year string"
1213
1106
  },
1214
- "id": {
1215
- "type": "integer"
1107
+ "make": {
1108
+ "type": "string",
1109
+ "description": "The make id a numerical string"
1216
1110
  },
1217
- "buylinkcnt": {
1218
- "type": "string"
1111
+ "model": {
1112
+ "type": "string",
1113
+ "description": "The model id a numerical string"
1219
1114
  }
1115
+ },
1116
+ "required": [
1117
+ "year",
1118
+ "make",
1119
+ "model"
1120
+ ]
1121
+ },
1122
+ "resolver": {
1123
+ "service": "parts",
1124
+ "name": "rest:get",
1125
+ "path": "/bin/ShowMeConnect.exe",
1126
+ "options": {
1127
+ "timeout": 10000,
1128
+ "ttl": 604800
1129
+ },
1130
+ "searchParams": {
1131
+ "ops": [
1132
+ {
1133
+ "path": "$.lookup",
1134
+ "value": "engine"
1135
+ },
1136
+ {
1137
+ "path": "$.year",
1138
+ "mapping": "$args.year"
1139
+ },
1140
+ {
1141
+ "path": "$.make",
1142
+ "mapping": [
1143
+ [
1144
+ "expressionEval",
1145
+ {
1146
+ "expression": "toString($args.make).padStart(4, '0')"
1147
+ }
1148
+ ]
1149
+ ]
1150
+ },
1151
+ {
1152
+ "path": "$.model",
1153
+ "mapping": [
1154
+ [
1155
+ "expressionEval",
1156
+ {
1157
+ "expression": "toString($args.model).padStart(4, '0')"
1158
+ }
1159
+ ]
1160
+ ]
1161
+ },
1162
+ {
1163
+ "path": "$.id",
1164
+ "value": "69876V2_WEBeCOM"
1165
+ }
1166
+ ]
1167
+ },
1168
+ "results": {
1169
+ "ops": [
1170
+ {
1171
+ "path": "$",
1172
+ "mapping": [
1173
+ [
1174
+ "get",
1175
+ {
1176
+ "path": "$finalResolver.ShowMeTheParts_Engine.engine"
1177
+ }
1178
+ ],
1179
+ [
1180
+ "cast",
1181
+ {
1182
+ "to": "array"
1183
+ }
1184
+ ]
1185
+ ]
1186
+ },
1187
+ {
1188
+ "path": "$.[*].normalizedId",
1189
+ "mapping": [
1190
+ [
1191
+ "expressionEval",
1192
+ {
1193
+ "expression": "$loop.item.id.split('~').slice(0,2).join('-')"
1194
+ }
1195
+ ]
1196
+ ]
1197
+ }
1198
+ ]
1220
1199
  }
1221
1200
  }
1222
1201
  },
1223
- "App": {
1224
- "id": "App",
1225
- "name": "App",
1226
- "title": "App",
1227
- "schema": {
1202
+ "getPartsDetails": {
1203
+ "shape": {
1204
+ "type": "array",
1205
+ "items": {
1206
+ "@ref": "local:PartDetail"
1207
+ }
1208
+ },
1209
+ "args": {
1228
1210
  "type": "object",
1229
1211
  "properties": {
1230
1212
  "engine": {
1231
- "type": "string",
1232
- "@mapping": "shapedb:App.engine"
1233
- },
1234
- "make": {
1235
- "type": "string",
1236
- "@mapping": "shapedb:App.make"
1237
- },
1238
- "model": {
1239
- "type": "string",
1240
- "@mapping": "shapedb:App.model"
1241
- },
1242
- "year": {
1243
- "type": "string",
1244
- "@mapping": "shapedb:App.year"
1245
- },
1246
- "startYear": {
1247
- "type": "integer",
1248
- "@mapping": "shapedb:App.startYear"
1249
- },
1250
- "endYear": {
1251
- "type": "integer",
1252
- "@mapping": "shapedb:App.endYear"
1253
- },
1254
- "apptype": {
1255
- "type": "string",
1256
- "@mapping": "shapedb:App.apptype"
1257
- },
1258
- "qty": {
1259
- "type": "integer",
1260
- "@mapping": "shapedb:App.qty"
1261
- }
1262
- }
1263
- }
1264
- },
1265
- "Part": {
1266
- "id": "Part",
1267
- "name": "Part",
1268
- "schema": {
1269
- "properties": {
1270
- "buyersguide": {
1271
- "@indexed": {
1272
- "nested": true
1273
- },
1274
- "type": "array",
1275
- "items": {
1276
- "@ref": "local:App"
1277
- }
1278
- },
1279
- "part_key": {
1280
1213
  "type": "string"
1281
1214
  },
1282
- "part_no": {
1215
+ "year": {
1283
1216
  "type": "string"
1284
1217
  },
1285
- "part_type": {
1218
+ "make": {
1286
1219
  "type": "string"
1287
1220
  },
1288
- "udf1": {
1221
+ "model": {
1289
1222
  "type": "string"
1290
1223
  }
1291
1224
  },
1292
- "type": "object"
1293
- },
1294
- "title": "Part"
1295
- },
1296
- "Salsify_Product": {
1297
- "id": "Salsify_Product",
1298
- "name": "Salsify_Product",
1299
- "title": "Salsify_Product",
1300
- "cache": {
1301
- "enabled": true,
1302
- "triggers": [
1303
- {
1304
- "type": "schedule",
1305
- "loader": "list",
1306
- "interval": 1440
1307
- }
1308
- ],
1309
- "fragment": {
1310
- "maxDepth": 2,
1311
- "selectionSet": "{shopifyProductVariant{availableForSale barcode compareAtPrice createdAt defaultCursor displayName harmonizedSystemCode id image{altText height id originalSrc src transformedSrc url width}inventoryItem{countryCodeOfOrigin createdAt duplicateSkuCount harmonizedSystemCode id inventoryHistoryUrl legacyResourceId locationsCount provinceCodeOfOrigin requiresShipping sku tracked updatedAt}product{tags productType title}inventoryManagement inventoryPolicy inventoryQuantity legacyResourceId position price requiresShipping selectedOptions{name value}sellableOnlineQuantity sellingPlanGroupCount sku storefrontId taxCode taxable title updatedAt weight weightUnit}part{buyersguide{endYear engine make model startYear year apptype qty}part_key part_no part_type udf1}}"
1312
- }
1313
- },
1314
- "loaders": {
1315
- "list": {
1316
- "query": "salsify:Query.listChannelProducts"
1317
- }
1225
+ "required": [
1226
+ "engine",
1227
+ "year",
1228
+ "make",
1229
+ "model"
1230
+ ]
1318
1231
  },
1319
- "schema": {
1320
- "extends": [
1321
- {
1322
- "@ref": "salsify:Product"
1323
- },
1324
- {
1325
- "type": "object",
1326
- "properties": {
1327
- "part": {
1328
- "@resolver": {
1329
- "name": "delegate",
1330
- "to": "local:Query.getPart",
1331
- "args": {
1332
- "ops": [
1333
- {
1334
- "path": "$.partNo",
1335
- "mapping": "$source.mpn"
1336
- }
1337
- ]
1232
+ "resolver": {
1233
+ "service": "parts",
1234
+ "name": "rest:get",
1235
+ "path": "/bin/ShowMeConnect.exe",
1236
+ "options": {
1237
+ "timeout": 10000,
1238
+ "ttl": 172800
1239
+ },
1240
+ "searchParams": {
1241
+ "ops": [
1242
+ {
1243
+ "path": "$.lookup",
1244
+ "value": "parts"
1245
+ },
1246
+ {
1247
+ "path": "$.year",
1248
+ "mapping": "$args.year"
1249
+ },
1250
+ {
1251
+ "path": "$.make",
1252
+ "mapping": [
1253
+ [
1254
+ "expressionEval",
1255
+ {
1256
+ "expression": "toString($args.make).padStart(4, '0')"
1338
1257
  }
1339
- },
1340
- "@ref": "local:Part",
1341
- "title": ""
1342
- },
1343
- "shopifyProductVariant": {
1344
- "@resolver": {
1345
- "name": "graphql:query",
1346
- "service": "shopify",
1347
- "fieldName": "productVariants",
1348
- "options": {
1349
- "selectionSet": "{nodes {..._parentFragment}}",
1350
- "ttl": 172800
1351
- },
1352
- "args": {
1353
- "ops": [
1354
- {
1355
- "path": "first",
1356
- "value": "1"
1357
- },
1358
- {
1359
- "path": "query",
1360
- "mapping": [
1361
- [
1362
- "get",
1363
- {
1364
- "path": [
1365
- "$source.mpn"
1366
- ]
1367
- }
1368
- ],
1369
- [
1370
- "format",
1371
- {
1372
- "template": "sku:%s"
1373
- }
1374
- ]
1375
- ]
1376
- }
1377
- ]
1378
- },
1379
- "results": {
1380
- "ops": [
1381
- {
1382
- "path": "$",
1383
- "mapping": "$finalResolver[0]"
1384
- }
1385
- ]
1258
+ ]
1259
+ ]
1260
+ },
1261
+ {
1262
+ "path": "$.model",
1263
+ "mapping": [
1264
+ [
1265
+ "expressionEval",
1266
+ {
1267
+ "expression": "toString($args.model).padStart(4, '0')"
1268
+ }
1269
+ ]
1270
+ ]
1271
+ },
1272
+ {
1273
+ "path": "$.engine",
1274
+ "mapping": "$args.engine"
1275
+ },
1276
+ {
1277
+ "path": "$.id",
1278
+ "value": "69876V2_WEBeCOM"
1279
+ }
1280
+ ]
1281
+ },
1282
+ "results": {
1283
+ "ops": [
1284
+ {
1285
+ "path": "$",
1286
+ "mapping": [
1287
+ [
1288
+ "get",
1289
+ {
1290
+ "path": "$finalResolver.ShowMeThePartsDetail.partsdata"
1291
+ }
1292
+ ],
1293
+ [
1294
+ "cast",
1295
+ {
1296
+ "to": "array"
1297
+ }
1298
+ ]
1299
+ ]
1300
+ },
1301
+ {
1302
+ "path": "$.[*].normalizedId",
1303
+ "mapping": [
1304
+ [
1305
+ "expressionEval",
1306
+ {
1307
+ "expression": "$loop.item.id.split('~').slice(0,2).join('-')"
1386
1308
  }
1387
- },
1388
- "@ref": "shopify:ProductVariant",
1389
- "title": ""
1390
- },
1391
- "vector": {
1392
- "type": "array",
1393
- "@dependencies": "{shopifyProductName diyMarketingCopy}",
1394
- "@resolver": {
1395
- "name": "ai:createEmbedding",
1396
- "service": "openai",
1397
- "model": "text-embedding-3-small",
1398
- "options": {
1399
- "useDependencies": true
1309
+ ]
1310
+ ]
1311
+ }
1312
+ ]
1313
+ }
1314
+ }
1315
+ },
1316
+ "Salsify_listChannelProducts": {
1317
+ "shape": "PaginatedList<salsify:Product>",
1318
+ "args": {
1319
+ "type": "object",
1320
+ "properties": {
1321
+ "from": {
1322
+ "type": "integer",
1323
+ "default": 0
1324
+ },
1325
+ "size": {
1326
+ "type": "integer",
1327
+ "default": 10
1328
+ }
1329
+ }
1330
+ },
1331
+ "resolver": {
1332
+ "name": "salsify:listChannelProducts",
1333
+ "service": "salsify",
1334
+ "results": {
1335
+ "ops": [
1336
+ {
1337
+ "path": "$.items",
1338
+ "mapping": [
1339
+ [
1340
+ "expressionEval",
1341
+ {
1342
+ "expression": "$finalResolver.slice($args.from, $args.from + $args.size)"
1400
1343
  }
1401
- },
1402
- "items": {
1403
- "type": "number"
1404
- },
1405
- "title": "Vector",
1406
- "@tag": "vector"
1407
- }
1344
+ ]
1345
+ ]
1346
+ },
1347
+ {
1348
+ "path": "$.total",
1349
+ "mapping": [
1350
+ [
1351
+ "expressionEval",
1352
+ {
1353
+ "expression": "$finalResolver.length"
1354
+ }
1355
+ ]
1356
+ ]
1408
1357
  }
1358
+ ]
1359
+ }
1360
+ }
1361
+ },
1362
+ "Shopify_collection": {
1363
+ "resolver": {
1364
+ "name": "graphql:query",
1365
+ "service": "shopify",
1366
+ "fieldName": "collection"
1367
+ },
1368
+ "args": {
1369
+ "type": "object",
1370
+ "properties": {
1371
+ "id": {
1372
+ "type": "string",
1373
+ "@tag": "id",
1374
+ "description": "The ID of the Collection to return."
1409
1375
  }
1376
+ },
1377
+ "required": [
1378
+ "id"
1410
1379
  ]
1411
- }
1380
+ },
1381
+ "shape": "Shopify_Collection"
1412
1382
  },
1413
- "MockRelatedProduct": {
1414
- "id": "cWMNa7fp5",
1415
- "name": "MockRelatedProduct",
1416
- "title": "Mock Related Product List",
1417
- "model": {
1418
- "type": "multiple"
1383
+ "Shopify_collectionByHandle": {
1384
+ "resolver": {
1385
+ "name": "graphql:query",
1386
+ "service": "shopify",
1387
+ "fieldName": "collectionByHandle"
1419
1388
  },
1420
- "schema": {
1389
+ "args": {
1421
1390
  "type": "object",
1422
1391
  "properties": {
1423
- "name": {
1424
- "@mapping": "shapedb:MockRelatedProduct.7nsXMIclo",
1392
+ "handle": {
1425
1393
  "type": "string",
1426
- "title": "Name"
1394
+ "description": "The handle of the collection."
1427
1395
  }
1428
- }
1429
- }
1396
+ },
1397
+ "required": [
1398
+ "handle"
1399
+ ]
1400
+ },
1401
+ "shape": "Shopify_Collection"
1430
1402
  },
1431
- "DangerousPrompt": {
1432
- "id": "rQTVfBrXi",
1433
- "name": "DangerousPrompt",
1434
- "title": "Dangerous Prompt",
1435
- "model": {
1436
- "type": "multiple"
1403
+ "Shopify_collections": {
1404
+ "resolver": {
1405
+ "name": "graphql:query",
1406
+ "service": "shopify",
1407
+ "fieldName": "collections"
1437
1408
  },
1438
- "schema": {
1409
+ "args": {
1439
1410
  "type": "object",
1440
1411
  "properties": {
1441
- "prompt": {
1442
- "@mapping": "shapedb:DangerousPrompt.JBSfBEWUP",
1412
+ "first": {
1413
+ "type": "integer",
1414
+ "description": "Returns up to the first `n` elements from the list."
1415
+ },
1416
+ "after": {
1443
1417
  "type": "string",
1444
- "title": "Prompt"
1418
+ "description": "Returns the elements that come after the specified cursor."
1445
1419
  },
1446
- "promptVector": {
1447
- "type": "array",
1448
- "items": {
1449
- "type": "number"
1450
- },
1451
- "title": "Prompt Vector",
1452
- "@tag": "vector",
1453
- "@dependencies": "{prompt}",
1454
- "@resolver": {
1455
- "name": "ai:createEmbedding",
1456
- "service": "openai",
1457
- "model": "text-embedding-3-small",
1458
- "options": {
1459
- "useDependencies": true
1460
- }
1461
- }
1420
+ "last": {
1421
+ "type": "integer",
1422
+ "description": "Returns up to the last `n` elements from the list."
1423
+ },
1424
+ "before": {
1425
+ "type": "string",
1426
+ "description": "Returns the elements that come before the specified cursor."
1427
+ },
1428
+ "reverse": {
1429
+ "type": "boolean",
1430
+ "description": "Reverse the order of the underlying list.",
1431
+ "default": false
1432
+ },
1433
+ "sortKey": {
1434
+ "@ref": "shopify:CollectionSortKeys",
1435
+ "description": "Sort the underlying list by the given key.",
1436
+ "default": "ID"
1437
+ },
1438
+ "query": {
1439
+ "type": "string",
1440
+ "description": "Supported filter parameters:\n - `collection_type`\n - `publishable_status`\n - `published_status`\n - `title`\n - `updated_at`\n\nSee the detailed [search syntax](https://shopify.dev/api/usage/search-syntax)\nfor more information about using filters."
1441
+ },
1442
+ "savedSearchId": {
1443
+ "type": "string",
1444
+ "@tag": "id",
1445
+ "description": "The ID of an existing saved search.\nThe search’s query string is used as the query argument.\nRefer to [SavedSearch](https://shopify.dev/api/admin-graphql/latest/objects/savedsearch)."
1446
+ }
1447
+ }
1448
+ },
1449
+ "shape": "Shopify_CollectionConnection"
1450
+ },
1451
+ "Shopify_product": {
1452
+ "resolver": {
1453
+ "name": "graphql:query",
1454
+ "service": "shopify",
1455
+ "fieldName": "product"
1456
+ },
1457
+ "args": {
1458
+ "type": "object",
1459
+ "properties": {
1460
+ "id": {
1461
+ "type": "string",
1462
+ "@tag": "id",
1463
+ "description": "The ID of the Product to return."
1462
1464
  }
1463
1465
  },
1464
1466
  "required": [
1465
- "prompt"
1467
+ "id"
1466
1468
  ]
1467
- }
1469
+ },
1470
+ "shape": "Shopify_Product"
1471
+ },
1472
+ "getMockRelatedProduct": {
1473
+ "shape": "MockRelatedProduct",
1474
+ "resolver": {
1475
+ "name": "shapedb:get",
1476
+ "service": "shapedb",
1477
+ "shapeName": "MockRelatedProduct"
1478
+ },
1479
+ "description": "Get a MockRelatedProduct by ID",
1480
+ "args": "TSGetArgs<MockRelatedProduct>"
1481
+ },
1482
+ "getMockRelatedProductList": {
1483
+ "shape": "PaginatedList<MockRelatedProduct>",
1484
+ "resolver": {
1485
+ "name": "shapedb:list",
1486
+ "service": "shapedb",
1487
+ "shapeName": "MockRelatedProduct"
1488
+ },
1489
+ "description": "Returns a list MockRelatedProduct in natural order.",
1490
+ "args": "TSListArgs<MockRelatedProduct>"
1491
+ },
1492
+ "getIndexedSalsifyProductList": {
1493
+ "shape": "PaginatedList<Salsify_Product>",
1494
+ "resolver": {
1495
+ "shapeName": "Salsify_Product",
1496
+ "name": "takeshape:queryApiIndex",
1497
+ "service": "takeshape",
1498
+ "options": {
1499
+ "indexedShape": "Salsify_Product"
1500
+ }
1501
+ },
1502
+ "description": "Fetch Salsify_Product data from the API Index.",
1503
+ "args": "TSListArgs<Salsify_Product>"
1504
+ },
1505
+ "getDangerousPrompt": {
1506
+ "shape": "DangerousPrompt",
1507
+ "resolver": {
1508
+ "name": "shapedb:get",
1509
+ "service": "shapedb",
1510
+ "shapeName": "DangerousPrompt"
1511
+ },
1512
+ "description": "Get a DangerousPrompt by ID",
1513
+ "args": "TSGetArgs<DangerousPrompt>"
1514
+ },
1515
+ "getDangerousPromptList": {
1516
+ "shape": "PaginatedList<DangerousPrompt>",
1517
+ "resolver": {
1518
+ "name": "shapedb:list",
1519
+ "service": "shapedb",
1520
+ "shapeName": "DangerousPrompt"
1521
+ },
1522
+ "description": "Returns a list DangerousPrompt in natural order.",
1523
+ "args": "TSListArgs<DangerousPrompt>"
1468
1524
  }
1469
1525
  },
1470
- "workflows": {},
1471
- "forms": {
1472
- "Engine": {
1473
- "default": {
1474
- "properties": {
1475
- "id": {
1476
- "widget": "singleLineText"
1477
- },
1478
- "data": {
1479
- "widget": "singleLineText"
1480
- },
1481
- "normalizedId": {
1482
- "widget": "singleLineText"
1483
- }
1484
- },
1485
- "order": [
1486
- "id",
1487
- "data",
1488
- "normalizedId"
1489
- ]
1490
- }
1491
- },
1492
- "App": {
1493
- "default": {
1494
- "properties": {
1495
- "engine": {
1496
- "widget": "singleLineText"
1497
- },
1498
- "make": {
1499
- "widget": "singleLineText"
1500
- },
1501
- "model": {
1502
- "widget": "singleLineText"
1503
- },
1504
- "year": {
1505
- "widget": "singleLineText"
1506
- },
1507
- "startYear": {
1508
- "widget": "number"
1526
+ "mutations": {
1527
+ "chat": {
1528
+ "description": "Fetch Salsify_Product data from the API Index.",
1529
+ "shape": "ChatResponse",
1530
+ "args": "ChatArgs",
1531
+ "resolver": {
1532
+ "name": "ai:chat",
1533
+ "service": "openai",
1534
+ "model": "gpt-4o",
1535
+ "systemPrompt": "You are a very helpful assistant. \n\nFirst you must verify the user's car's \"fitment data\" which is defined as the year, make, model and engine. The year must be between 1918 and 2025. The make must be validated by the getMakes tool. The model must be validated with the getModels tool. The engine must be validated with the getEngines tool. Do not assume any fitment data always present the options available from the appropriate tool call. \n\nAfter verifying the \"fitment data\" you should suggest up to five compatible products using the listProducts tool. Please include product IDs from Shopify only, where appropriate, on their own line, with 2 line breaks before and after, with no markdown or styling, in the format: `gid://shopify/Product/8133116887317`",
1536
+ "tools": [
1537
+ {
1538
+ "tool": "Tool.getMakes"
1509
1539
  },
1510
- "endYear": {
1511
- "widget": "number"
1540
+ {
1541
+ "tool": "Tool.getModels"
1512
1542
  },
1513
- "apptype": {
1514
- "widget": "singleLineText"
1543
+ {
1544
+ "tool": "Tool.getEngines"
1515
1545
  },
1516
- "qty": {
1517
- "widget": "number"
1546
+ {
1547
+ "tool": "Tool.listProducts"
1518
1548
  }
1519
- },
1520
- "order": [
1521
- "engine",
1522
- "make",
1523
- "model",
1524
- "year",
1525
- "startYear",
1526
- "endYear",
1527
- "apptype",
1528
- "qty"
1529
- ]
1530
- }
1531
- },
1532
- "MockRelatedProduct": {
1533
- "default": {
1534
- "properties": {
1535
- "name": {
1536
- "widget": "singleLineText"
1549
+ ],
1550
+ "guardrails": [
1551
+ {
1552
+ "name": "similarity",
1553
+ "shape": "DangerousPrompt",
1554
+ "defaultResponse": "Sorry let's talk about Valvoline"
1537
1555
  }
1538
- },
1539
- "order": [
1540
- "name"
1541
1556
  ]
1542
1557
  }
1543
1558
  },
1544
- "DangerousPrompt": {
1545
- "default": {
1546
- "properties": {
1547
- "prompt": {
1548
- "widget": "singleLineText"
1549
- },
1550
- "promptVector": {}
1551
- },
1552
- "order": [
1553
- "prompt",
1554
- "promptVector"
1555
- ]
1556
- }
1557
- }
1558
- },
1559
- "services": {
1560
- "parts": {
1561
- "id": "parts",
1562
- "title": "Parts",
1563
- "namespace": "Parts",
1564
- "provider": "rest",
1565
- "serviceType": "rest",
1566
- "authenticationType": "none",
1567
- "options": {
1568
- "endpoint": "https://www.showmethepartsdb3.com/"
1559
+ "updateMockRelatedProduct": {
1560
+ "shape": "UpdateResult<MockRelatedProduct>",
1561
+ "resolver": {
1562
+ "name": "shapedb:update",
1563
+ "service": "shapedb",
1564
+ "shapeName": "MockRelatedProduct"
1569
1565
  },
1570
- "healthCheck": {
1571
- "checkName": "ping",
1572
- "endpoint": "https://www.showmethepartsdb3.com/bin/ShowMeConnect.exe?lookup=make&id=69876V2_WEBeCOM"
1573
- }
1566
+ "description": "Update MockRelatedProduct",
1567
+ "args": "UpdateArgs<MockRelatedProduct>"
1574
1568
  },
1575
- "salsify": {
1576
- "id": "salsify",
1577
- "provider": "salsify",
1578
- "title": "Salsify",
1579
- "namespace": "Salsify",
1580
- "serviceType": "rest",
1581
- "authenticationType": "bearer",
1582
- "options": {
1583
- "organizationId": "s-327cdfb7-40fb-46bc-8d4e-7009b39774f0",
1584
- "channelId": "404027",
1585
- "endpoint": "https://app.salsify.com/api/orgs/s-327cdfb7-40fb-46bc-8d4e-7009b39774f0",
1586
- "introspectedAt": "2023-05-01T20:35:14.201Z"
1569
+ "createMockRelatedProduct": {
1570
+ "shape": "CreateResult<MockRelatedProduct>",
1571
+ "resolver": {
1572
+ "name": "shapedb:create",
1573
+ "service": "shapedb",
1574
+ "shapeName": "MockRelatedProduct"
1575
+ },
1576
+ "description": "Create MockRelatedProduct",
1577
+ "args": "CreateArgs<MockRelatedProduct>"
1578
+ },
1579
+ "duplicateMockRelatedProduct": {
1580
+ "shape": "DuplicateResult<MockRelatedProduct>",
1581
+ "resolver": {
1582
+ "name": "shapedb:duplicate",
1583
+ "service": "shapedb",
1584
+ "shapeName": "MockRelatedProduct"
1585
+ },
1586
+ "description": "Duplicate MockRelatedProduct",
1587
+ "args": "DuplicateArgs<MockRelatedProduct>"
1588
+ },
1589
+ "deleteMockRelatedProduct": {
1590
+ "shape": "DeleteResult<MockRelatedProduct>",
1591
+ "resolver": {
1592
+ "name": "shapedb:delete",
1593
+ "service": "shapedb",
1594
+ "shapeName": "MockRelatedProduct"
1595
+ },
1596
+ "description": "Delete MockRelatedProduct",
1597
+ "args": "DeleteArgs<MockRelatedProduct>"
1598
+ },
1599
+ "updateDangerousPrompt": {
1600
+ "shape": "UpdateResult<DangerousPrompt>",
1601
+ "resolver": {
1602
+ "name": "shapedb:update",
1603
+ "service": "shapedb",
1604
+ "shapeName": "DangerousPrompt"
1605
+ },
1606
+ "description": "Update DangerousPrompt",
1607
+ "args": "UpdateArgs<DangerousPrompt>"
1608
+ },
1609
+ "createDangerousPrompt": {
1610
+ "shape": "CreateResult<DangerousPrompt>",
1611
+ "resolver": {
1612
+ "name": "shapedb:create",
1613
+ "service": "shapedb",
1614
+ "shapeName": "DangerousPrompt"
1615
+ },
1616
+ "description": "Create DangerousPrompt",
1617
+ "args": "CreateArgs<DangerousPrompt>"
1618
+ },
1619
+ "duplicateDangerousPrompt": {
1620
+ "shape": "DuplicateResult<DangerousPrompt>",
1621
+ "resolver": {
1622
+ "name": "shapedb:duplicate",
1623
+ "service": "shapedb",
1624
+ "shapeName": "DangerousPrompt"
1625
+ },
1626
+ "description": "Duplicate DangerousPrompt",
1627
+ "args": "DuplicateArgs<DangerousPrompt>"
1628
+ },
1629
+ "deleteDangerousPrompt": {
1630
+ "shape": "DeleteResult<DangerousPrompt>",
1631
+ "resolver": {
1632
+ "name": "shapedb:delete",
1633
+ "service": "shapedb",
1634
+ "shapeName": "DangerousPrompt"
1635
+ },
1636
+ "description": "Delete DangerousPrompt",
1637
+ "args": "DeleteArgs<DangerousPrompt>"
1638
+ }
1639
+ },
1640
+ "tools": {
1641
+ "getMakes": {
1642
+ "execution": {
1643
+ "type": "graphql",
1644
+ "query": {
1645
+ "ref": "getMakes"
1646
+ }
1587
1647
  }
1588
1648
  },
1589
- "shopify": {
1590
- "id": "shopify",
1591
- "provider": "shopify",
1592
- "title": "Shopify",
1593
- "namespace": "Shopify",
1594
- "serviceType": "graphql",
1595
- "authenticationType": "custom",
1596
- "options": {
1597
- "shop": "valvolineglobal",
1598
- "endpoint": "https://valvolineglobal.myshopify.com/admin/api/2022-07/graphql.json"
1649
+ "getModels": {
1650
+ "execution": {
1651
+ "type": "graphql",
1652
+ "query": {
1653
+ "ref": "getModels"
1654
+ }
1599
1655
  }
1600
1656
  },
1601
- "openai": {
1602
- "id": "openai",
1603
- "title": "OpenAI",
1604
- "namespace": "OpenAI",
1605
- "provider": "openai",
1606
- "serviceType": "openapi",
1607
- "authenticationType": "bearer",
1608
- "options": {
1609
- "endpoint": "https://api.openai.com/v1/",
1610
- "spec": "https://raw.githubusercontent.com/takeshape/openapi-specs/813784d8fcac5b3fd4e468ce6f715b89c9fcb73f/specs/openai/v2.yml",
1611
- "transformVersion": "2.0.0",
1612
- "introspectedAt": "2024-06-26T19:12:52.473Z"
1657
+ "getEngines": {
1658
+ "execution": {
1659
+ "type": "graphql",
1660
+ "query": {
1661
+ "ref": "getEngines"
1662
+ }
1613
1663
  }
1614
1664
  },
1615
- "anthropic": {
1616
- "id": "anthropic",
1617
- "title": "Anthropic",
1618
- "namespace": "Anthropic",
1619
- "provider": "anthropic",
1620
- "serviceType": "openapi",
1621
- "authenticationType": "custom",
1622
- "options": {
1623
- "endpoint": "https://api.anthropic.com/v1",
1624
- "spec": "https://raw.githubusercontent.com/takeshape/openapi-specs/d1219888103fdd900138589e4e03c0b216c0a5d1/specs/anthropic/2023-06-01.yml",
1625
- "headers": {
1626
- "anthropic-version": "2023-06-01"
1627
- },
1628
- "transformVersion": "2.0.0",
1629
- "introspectedAt": "2024-08-21T16:55:43.579Z"
1665
+ "listProducts": {
1666
+ "execution": {
1667
+ "type": "graphql",
1668
+ "query": {
1669
+ "ref": "listProducts",
1670
+ "selectionSet": "{items {shopifyProductName shopifyProductId diyMarketingCopy}}"
1671
+ }
1630
1672
  }
1631
1673
  }
1632
- },
1633
- "schemaVersion": "3.59.0",
1634
- "apiVersion": "2"
1674
+ }
1635
1675
  }