@zuplo/cli 6.70.57 → 6.70.60

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 (404) hide show
  1. package/node_modules/@fastify/reply-from/node_modules/undici/lib/global.js +10 -1
  2. package/node_modules/@fastify/reply-from/node_modules/undici/package.json +1 -1
  3. package/node_modules/@zuplo/core/package.json +1 -1
  4. package/node_modules/@zuplo/graphql/package.json +1 -1
  5. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  6. package/node_modules/@zuplo/otel/package.json +1 -1
  7. package/node_modules/@zuplo/runtime/out/esm/chunk-6WKYPMAI.js +322 -0
  8. package/node_modules/@zuplo/runtime/out/esm/chunk-6WKYPMAI.js.map +1 -0
  9. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  10. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +12 -12
  11. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
  12. package/node_modules/@zuplo/runtime/out/types/index.d.ts +3 -1
  13. package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +28 -0
  14. package/node_modules/@zuplo/runtime/package.json +1 -1
  15. package/node_modules/graphql/error/GraphQLError.d.ts +151 -15
  16. package/node_modules/graphql/error/GraphQLError.js +143 -12
  17. package/node_modules/graphql/error/GraphQLError.mjs +143 -12
  18. package/node_modules/graphql/error/index.d.ts +6 -0
  19. package/node_modules/graphql/error/index.mjs +6 -0
  20. package/node_modules/graphql/error/locatedError.d.ts +20 -0
  21. package/node_modules/graphql/error/locatedError.js +21 -0
  22. package/node_modules/graphql/error/locatedError.mjs +20 -0
  23. package/node_modules/graphql/error/syntaxError.d.ts +15 -0
  24. package/node_modules/graphql/error/syntaxError.js +16 -0
  25. package/node_modules/graphql/error/syntaxError.mjs +15 -0
  26. package/node_modules/graphql/execution/collectFields.js +6 -0
  27. package/node_modules/graphql/execution/collectFields.mjs +6 -0
  28. package/node_modules/graphql/execution/execute.d.ts +211 -12
  29. package/node_modules/graphql/execution/execute.js +214 -23
  30. package/node_modules/graphql/execution/execute.mjs +213 -23
  31. package/node_modules/graphql/execution/index.d.ts +6 -0
  32. package/node_modules/graphql/execution/index.mjs +6 -0
  33. package/node_modules/graphql/execution/mapAsyncIterator.d.ts +2 -0
  34. package/node_modules/graphql/execution/mapAsyncIterator.js +2 -0
  35. package/node_modules/graphql/execution/mapAsyncIterator.mjs +2 -0
  36. package/node_modules/graphql/execution/subscribe.d.ts +195 -5
  37. package/node_modules/graphql/execution/subscribe.js +154 -11
  38. package/node_modules/graphql/execution/subscribe.mjs +153 -11
  39. package/node_modules/graphql/execution/values.d.ts +167 -10
  40. package/node_modules/graphql/execution/values.js +149 -5
  41. package/node_modules/graphql/execution/values.mjs +148 -5
  42. package/node_modules/graphql/graphql.d.ts +163 -41
  43. package/node_modules/graphql/graphql.js +126 -4
  44. package/node_modules/graphql/graphql.mjs +131 -41
  45. package/node_modules/graphql/index.d.ts +11 -17
  46. package/node_modules/graphql/index.mjs +13 -19
  47. package/node_modules/graphql/jsutils/Maybe.d.ts +5 -1
  48. package/node_modules/graphql/jsutils/ObjMap.d.ts +4 -0
  49. package/node_modules/graphql/jsutils/Path.d.ts +30 -0
  50. package/node_modules/graphql/jsutils/Path.js +29 -0
  51. package/node_modules/graphql/jsutils/Path.mjs +29 -0
  52. package/node_modules/graphql/jsutils/PromiseOrValue.d.ts +1 -0
  53. package/node_modules/graphql/jsutils/devAssert.d.ts +1 -0
  54. package/node_modules/graphql/jsutils/devAssert.js +1 -0
  55. package/node_modules/graphql/jsutils/devAssert.mjs +1 -0
  56. package/node_modules/graphql/jsutils/didYouMean.d.ts +4 -1
  57. package/node_modules/graphql/jsutils/didYouMean.js +4 -1
  58. package/node_modules/graphql/jsutils/didYouMean.mjs +4 -1
  59. package/node_modules/graphql/jsutils/groupBy.d.ts +2 -0
  60. package/node_modules/graphql/jsutils/groupBy.js +2 -0
  61. package/node_modules/graphql/jsutils/groupBy.mjs +2 -0
  62. package/node_modules/graphql/jsutils/identityFunc.d.ts +2 -0
  63. package/node_modules/graphql/jsutils/identityFunc.js +2 -0
  64. package/node_modules/graphql/jsutils/identityFunc.mjs +2 -0
  65. package/node_modules/graphql/jsutils/inspect.d.ts +2 -0
  66. package/node_modules/graphql/jsutils/inspect.js +2 -0
  67. package/node_modules/graphql/jsutils/inspect.mjs +2 -0
  68. package/node_modules/graphql/jsutils/instanceOf.d.ts +2 -0
  69. package/node_modules/graphql/jsutils/instanceOf.js +2 -0
  70. package/node_modules/graphql/jsutils/instanceOf.mjs +2 -0
  71. package/node_modules/graphql/jsutils/invariant.d.ts +1 -0
  72. package/node_modules/graphql/jsutils/invariant.js +1 -0
  73. package/node_modules/graphql/jsutils/invariant.mjs +1 -0
  74. package/node_modules/graphql/jsutils/isAsyncIterable.d.ts +2 -0
  75. package/node_modules/graphql/jsutils/isAsyncIterable.js +2 -0
  76. package/node_modules/graphql/jsutils/isAsyncIterable.mjs +2 -0
  77. package/node_modules/graphql/jsutils/isIterableObject.d.ts +6 -5
  78. package/node_modules/graphql/jsutils/isIterableObject.js +6 -5
  79. package/node_modules/graphql/jsutils/isIterableObject.mjs +6 -5
  80. package/node_modules/graphql/jsutils/isObjectLike.d.ts +2 -0
  81. package/node_modules/graphql/jsutils/isObjectLike.js +2 -0
  82. package/node_modules/graphql/jsutils/isObjectLike.mjs +2 -0
  83. package/node_modules/graphql/jsutils/isPromise.d.ts +2 -0
  84. package/node_modules/graphql/jsutils/isPromise.js +2 -0
  85. package/node_modules/graphql/jsutils/isPromise.mjs +2 -0
  86. package/node_modules/graphql/jsutils/keyMap.d.ts +7 -14
  87. package/node_modules/graphql/jsutils/keyMap.js +7 -14
  88. package/node_modules/graphql/jsutils/keyMap.mjs +7 -14
  89. package/node_modules/graphql/jsutils/keyValMap.d.ts +9 -6
  90. package/node_modules/graphql/jsutils/keyValMap.js +9 -6
  91. package/node_modules/graphql/jsutils/keyValMap.mjs +9 -6
  92. package/node_modules/graphql/jsutils/mapValue.d.ts +2 -0
  93. package/node_modules/graphql/jsutils/mapValue.js +2 -0
  94. package/node_modules/graphql/jsutils/mapValue.mjs +2 -0
  95. package/node_modules/graphql/jsutils/memoize3.d.ts +2 -0
  96. package/node_modules/graphql/jsutils/memoize3.js +2 -0
  97. package/node_modules/graphql/jsutils/memoize3.mjs +2 -0
  98. package/node_modules/graphql/jsutils/naturalCompare.d.ts +2 -0
  99. package/node_modules/graphql/jsutils/naturalCompare.js +2 -0
  100. package/node_modules/graphql/jsutils/naturalCompare.mjs +2 -0
  101. package/node_modules/graphql/jsutils/printPathArray.d.ts +2 -0
  102. package/node_modules/graphql/jsutils/printPathArray.js +2 -0
  103. package/node_modules/graphql/jsutils/printPathArray.mjs +2 -0
  104. package/node_modules/graphql/jsutils/promiseForObject.d.ts +2 -0
  105. package/node_modules/graphql/jsutils/promiseForObject.js +2 -0
  106. package/node_modules/graphql/jsutils/promiseForObject.mjs +2 -0
  107. package/node_modules/graphql/jsutils/promiseReduce.d.ts +2 -0
  108. package/node_modules/graphql/jsutils/promiseReduce.js +2 -0
  109. package/node_modules/graphql/jsutils/promiseReduce.mjs +2 -0
  110. package/node_modules/graphql/jsutils/suggestionList.d.ts +2 -0
  111. package/node_modules/graphql/jsutils/suggestionList.js +4 -0
  112. package/node_modules/graphql/jsutils/suggestionList.mjs +4 -0
  113. package/node_modules/graphql/jsutils/toError.d.ts +2 -0
  114. package/node_modules/graphql/jsutils/toError.js +2 -0
  115. package/node_modules/graphql/jsutils/toError.mjs +2 -0
  116. package/node_modules/graphql/jsutils/toObjMap.d.ts +1 -0
  117. package/node_modules/graphql/jsutils/toObjMap.js +1 -0
  118. package/node_modules/graphql/jsutils/toObjMap.mjs +1 -0
  119. package/node_modules/graphql/language/ast.d.ts +412 -54
  120. package/node_modules/graphql/language/ast.js +95 -38
  121. package/node_modules/graphql/language/ast.mjs +95 -38
  122. package/node_modules/graphql/language/blockString.d.ts +1 -3
  123. package/node_modules/graphql/language/blockString.js +1 -3
  124. package/node_modules/graphql/language/blockString.mjs +1 -3
  125. package/node_modules/graphql/language/directiveLocation.d.ts +28 -8
  126. package/node_modules/graphql/language/directiveLocation.js +9 -6
  127. package/node_modules/graphql/language/directiveLocation.mjs +9 -6
  128. package/node_modules/graphql/language/index.d.ts +6 -0
  129. package/node_modules/graphql/language/index.mjs +6 -0
  130. package/node_modules/graphql/language/kinds.d.ts +57 -18
  131. package/node_modules/graphql/language/kinds.js +9 -6
  132. package/node_modules/graphql/language/kinds.mjs +9 -6
  133. package/node_modules/graphql/language/lexer.d.ts +47 -14
  134. package/node_modules/graphql/language/lexer.js +71 -13
  135. package/node_modules/graphql/language/lexer.mjs +70 -13
  136. package/node_modules/graphql/language/location.d.ts +16 -3
  137. package/node_modules/graphql/language/location.js +14 -3
  138. package/node_modules/graphql/language/location.mjs +14 -3
  139. package/node_modules/graphql/language/parser.d.ts +236 -13
  140. package/node_modules/graphql/language/parser.js +224 -0
  141. package/node_modules/graphql/language/parser.mjs +224 -3
  142. package/node_modules/graphql/language/predicates.d.ts +169 -0
  143. package/node_modules/graphql/language/predicates.js +170 -0
  144. package/node_modules/graphql/language/predicates.mjs +180 -0
  145. package/node_modules/graphql/language/printLocation.d.ts +28 -0
  146. package/node_modules/graphql/language/printLocation.js +29 -0
  147. package/node_modules/graphql/language/printLocation.mjs +28 -0
  148. package/node_modules/graphql/language/printString.d.ts +2 -0
  149. package/node_modules/graphql/language/printString.js +5 -1
  150. package/node_modules/graphql/language/printString.mjs +5 -1
  151. package/node_modules/graphql/language/printer.d.ts +12 -0
  152. package/node_modules/graphql/language/printer.js +19 -0
  153. package/node_modules/graphql/language/printer.mjs +18 -0
  154. package/node_modules/graphql/language/schemaCoordinateLexer.d.ts +8 -6
  155. package/node_modules/graphql/language/schemaCoordinateLexer.js +10 -6
  156. package/node_modules/graphql/language/schemaCoordinateLexer.mjs +10 -6
  157. package/node_modules/graphql/language/source.d.ts +28 -0
  158. package/node_modules/graphql/language/source.js +32 -0
  159. package/node_modules/graphql/language/source.mjs +31 -0
  160. package/node_modules/graphql/language/tokenKind.d.ts +30 -3
  161. package/node_modules/graphql/language/tokenKind.js +8 -3
  162. package/node_modules/graphql/language/tokenKind.mjs +8 -3
  163. package/node_modules/graphql/language/visitor.d.ts +200 -72
  164. package/node_modules/graphql/language/visitor.js +122 -50
  165. package/node_modules/graphql/language/visitor.mjs +122 -54
  166. package/node_modules/graphql/package.json +1 -1
  167. package/node_modules/graphql/subscription/index.d.ts +9 -3
  168. package/node_modules/graphql/subscription/index.mjs +9 -3
  169. package/node_modules/graphql/type/assertName.d.ts +18 -1
  170. package/node_modules/graphql/type/assertName.js +19 -1
  171. package/node_modules/graphql/type/assertName.mjs +18 -1
  172. package/node_modules/graphql/type/definition.d.ts +2540 -79
  173. package/node_modules/graphql/type/definition.js +2214 -61
  174. package/node_modules/graphql/type/definition.mjs +2241 -60
  175. package/node_modules/graphql/type/directives.d.ts +193 -18
  176. package/node_modules/graphql/type/directives.js +196 -19
  177. package/node_modules/graphql/type/directives.mjs +196 -19
  178. package/node_modules/graphql/type/index.d.ts +6 -0
  179. package/node_modules/graphql/type/index.mjs +6 -0
  180. package/node_modules/graphql/type/introspection.d.ts +36 -0
  181. package/node_modules/graphql/type/introspection.js +33 -0
  182. package/node_modules/graphql/type/introspection.mjs +41 -0
  183. package/node_modules/graphql/type/scalars.d.ts +29 -2
  184. package/node_modules/graphql/type/scalars.js +37 -2
  185. package/node_modules/graphql/type/scalars.mjs +36 -2
  186. package/node_modules/graphql/type/schema.d.ts +490 -28
  187. package/node_modules/graphql/type/schema.js +484 -26
  188. package/node_modules/graphql/type/schema.mjs +484 -26
  189. package/node_modules/graphql/type/validate.d.ts +31 -0
  190. package/node_modules/graphql/type/validate.js +32 -0
  191. package/node_modules/graphql/type/validate.mjs +31 -0
  192. package/node_modules/graphql/utilities/TypeInfo.d.ts +441 -1
  193. package/node_modules/graphql/utilities/TypeInfo.js +444 -1
  194. package/node_modules/graphql/utilities/TypeInfo.mjs +443 -1
  195. package/node_modules/graphql/utilities/assertValidName.d.ts +27 -2
  196. package/node_modules/graphql/utilities/assertValidName.js +28 -2
  197. package/node_modules/graphql/utilities/assertValidName.mjs +27 -2
  198. package/node_modules/graphql/utilities/astFromValue.d.ts +33 -3
  199. package/node_modules/graphql/utilities/astFromValue.js +36 -3
  200. package/node_modules/graphql/utilities/astFromValue.mjs +35 -3
  201. package/node_modules/graphql/utilities/buildASTSchema.d.ts +65 -6
  202. package/node_modules/graphql/utilities/buildASTSchema.js +65 -6
  203. package/node_modules/graphql/utilities/buildASTSchema.mjs +65 -6
  204. package/node_modules/graphql/utilities/buildClientSchema.d.ts +15 -0
  205. package/node_modules/graphql/utilities/buildClientSchema.js +16 -0
  206. package/node_modules/graphql/utilities/buildClientSchema.mjs +15 -0
  207. package/node_modules/graphql/utilities/coerceInputValue.d.ts +46 -0
  208. package/node_modules/graphql/utilities/coerceInputValue.js +47 -0
  209. package/node_modules/graphql/utilities/coerceInputValue.mjs +46 -0
  210. package/node_modules/graphql/utilities/concatAST.d.ts +12 -0
  211. package/node_modules/graphql/utilities/concatAST.js +13 -0
  212. package/node_modules/graphql/utilities/concatAST.mjs +12 -0
  213. package/node_modules/graphql/utilities/extendSchema.d.ts +56 -3
  214. package/node_modules/graphql/utilities/extendSchema.js +63 -3
  215. package/node_modules/graphql/utilities/extendSchema.mjs +62 -3
  216. package/node_modules/graphql/utilities/findBreakingChanges.d.ts +95 -0
  217. package/node_modules/graphql/utilities/findBreakingChanges.js +68 -0
  218. package/node_modules/graphql/utilities/findBreakingChanges.mjs +70 -0
  219. package/node_modules/graphql/utilities/getIntrospectionQuery.d.ts +132 -0
  220. package/node_modules/graphql/utilities/getIntrospectionQuery.js +41 -0
  221. package/node_modules/graphql/utilities/getIntrospectionQuery.mjs +41 -0
  222. package/node_modules/graphql/utilities/getOperationAST.d.ts +15 -0
  223. package/node_modules/graphql/utilities/getOperationAST.js +16 -0
  224. package/node_modules/graphql/utilities/getOperationAST.mjs +15 -0
  225. package/node_modules/graphql/utilities/getOperationRootType.d.ts +18 -1
  226. package/node_modules/graphql/utilities/getOperationRootType.js +19 -1
  227. package/node_modules/graphql/utilities/getOperationRootType.mjs +18 -1
  228. package/node_modules/graphql/utilities/index.d.ts +7 -0
  229. package/node_modules/graphql/utilities/index.mjs +7 -0
  230. package/node_modules/graphql/utilities/introspectionFromSchema.d.ts +54 -0
  231. package/node_modules/graphql/utilities/introspectionFromSchema.js +55 -0
  232. package/node_modules/graphql/utilities/introspectionFromSchema.mjs +54 -0
  233. package/node_modules/graphql/utilities/lexicographicSortSchema.d.ts +35 -0
  234. package/node_modules/graphql/utilities/lexicographicSortSchema.js +36 -0
  235. package/node_modules/graphql/utilities/lexicographicSortSchema.mjs +35 -0
  236. package/node_modules/graphql/utilities/printSchema.d.ts +63 -0
  237. package/node_modules/graphql/utilities/printSchema.js +66 -0
  238. package/node_modules/graphql/utilities/printSchema.mjs +67 -0
  239. package/node_modules/graphql/utilities/resolveSchemaCoordinate.d.ts +62 -0
  240. package/node_modules/graphql/utilities/resolveSchemaCoordinate.js +64 -0
  241. package/node_modules/graphql/utilities/resolveSchemaCoordinate.mjs +63 -0
  242. package/node_modules/graphql/utilities/separateOperations.d.ts +30 -0
  243. package/node_modules/graphql/utilities/separateOperations.js +31 -0
  244. package/node_modules/graphql/utilities/separateOperations.mjs +30 -0
  245. package/node_modules/graphql/utilities/stripIgnoredCharacters.d.ts +13 -6
  246. package/node_modules/graphql/utilities/stripIgnoredCharacters.js +16 -6
  247. package/node_modules/graphql/utilities/stripIgnoredCharacters.mjs +15 -6
  248. package/node_modules/graphql/utilities/typeComparators.d.ts +84 -0
  249. package/node_modules/graphql/utilities/typeComparators.js +85 -0
  250. package/node_modules/graphql/utilities/typeComparators.mjs +84 -0
  251. package/node_modules/graphql/utilities/typeFromAST.d.ts +86 -0
  252. package/node_modules/graphql/utilities/typeFromAST.js +3 -0
  253. package/node_modules/graphql/utilities/typeFromAST.mjs +3 -0
  254. package/node_modules/graphql/utilities/typedQueryDocumentNode.d.ts +4 -0
  255. package/node_modules/graphql/utilities/valueFromAST.d.ts +38 -0
  256. package/node_modules/graphql/utilities/valueFromAST.js +39 -0
  257. package/node_modules/graphql/utilities/valueFromAST.mjs +38 -0
  258. package/node_modules/graphql/utilities/valueFromASTUntyped.d.ts +15 -2
  259. package/node_modules/graphql/utilities/valueFromASTUntyped.js +16 -2
  260. package/node_modules/graphql/utilities/valueFromASTUntyped.mjs +15 -2
  261. package/node_modules/graphql/validation/ValidationContext.d.ts +399 -0
  262. package/node_modules/graphql/validation/ValidationContext.js +400 -0
  263. package/node_modules/graphql/validation/ValidationContext.mjs +401 -0
  264. package/node_modules/graphql/validation/index.d.ts +6 -0
  265. package/node_modules/graphql/validation/index.mjs +6 -0
  266. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.d.ts +28 -0
  267. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +29 -0
  268. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs +28 -0
  269. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.d.ts +28 -0
  270. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +33 -0
  271. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs +32 -0
  272. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.d.ts +28 -0
  273. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +29 -0
  274. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs +28 -0
  275. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.d.ts +29 -3
  276. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +30 -3
  277. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs +29 -3
  278. package/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts +28 -0
  279. package/node_modules/graphql/validation/rules/KnownDirectivesRule.js +29 -0
  280. package/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs +28 -0
  281. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts +28 -0
  282. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +29 -0
  283. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs +28 -0
  284. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.d.ts +28 -0
  285. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +29 -0
  286. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs +28 -0
  287. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.d.ts +28 -0
  288. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +29 -0
  289. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs +28 -0
  290. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.d.ts +21 -0
  291. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +22 -0
  292. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs +21 -0
  293. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.d.ts +31 -0
  294. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +33 -0
  295. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.mjs +34 -0
  296. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.d.ts +28 -0
  297. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +29 -0
  298. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs +28 -0
  299. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.d.ts +28 -0
  300. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +29 -0
  301. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs +28 -0
  302. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts +28 -0
  303. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +29 -0
  304. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs +28 -0
  305. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts +29 -0
  306. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +30 -0
  307. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs +29 -0
  308. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +33 -0
  309. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +45 -6
  310. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +45 -6
  311. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.d.ts +36 -0
  312. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +37 -0
  313. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs +36 -0
  314. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.d.ts +21 -0
  315. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +22 -0
  316. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs +21 -0
  317. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.d.ts +29 -3
  318. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +30 -3
  319. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs +29 -3
  320. package/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts +28 -0
  321. package/node_modules/graphql/validation/rules/ScalarLeafsRule.js +29 -0
  322. package/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs +28 -0
  323. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts +33 -0
  324. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +34 -0
  325. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs +33 -0
  326. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +21 -0
  327. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +22 -0
  328. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs +21 -0
  329. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.d.ts +28 -0
  330. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +29 -0
  331. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs +28 -0
  332. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.d.ts +21 -0
  333. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +22 -0
  334. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs +21 -0
  335. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts +28 -0
  336. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +29 -0
  337. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs +28 -0
  338. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.d.ts +21 -0
  339. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +22 -0
  340. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs +21 -0
  341. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +21 -0
  342. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +22 -0
  343. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs +21 -0
  344. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.d.ts +28 -0
  345. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +29 -0
  346. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs +28 -0
  347. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.d.ts +32 -0
  348. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +33 -0
  349. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs +32 -0
  350. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.d.ts +28 -0
  351. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +29 -0
  352. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs +28 -0
  353. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.d.ts +21 -0
  354. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +22 -0
  355. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs +21 -0
  356. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.d.ts +21 -0
  357. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +22 -0
  358. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs +21 -0
  359. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.d.ts +28 -0
  360. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +29 -0
  361. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs +28 -0
  362. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.d.ts +28 -0
  363. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +31 -0
  364. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs +30 -0
  365. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.d.ts +32 -0
  366. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +33 -0
  367. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs +32 -0
  368. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.d.ts +28 -0
  369. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +35 -1
  370. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs +34 -1
  371. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.d.ts +41 -0
  372. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js +42 -0
  373. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs +41 -0
  374. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +28 -0
  375. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +29 -0
  376. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +28 -0
  377. package/node_modules/graphql/validation/specifiedRules.d.ts +2 -3
  378. package/node_modules/graphql/validation/specifiedRules.js +2 -3
  379. package/node_modules/graphql/validation/specifiedRules.mjs +2 -3
  380. package/node_modules/graphql/validation/validate.d.ts +70 -9
  381. package/node_modules/graphql/validation/validate.js +63 -7
  382. package/node_modules/graphql/validation/validate.mjs +63 -7
  383. package/node_modules/graphql/version.d.ts +3 -6
  384. package/node_modules/graphql/version.js +6 -8
  385. package/node_modules/graphql/version.mjs +5 -8
  386. package/node_modules/protobufjs/dist/light/protobuf.js +7 -5
  387. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
  388. package/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
  389. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
  390. package/node_modules/protobufjs/dist/minimal/protobuf.js +3 -3
  391. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
  392. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
  393. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
  394. package/node_modules/protobufjs/dist/protobuf.js +7 -5
  395. package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
  396. package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
  397. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
  398. package/node_modules/protobufjs/package.json +1 -1
  399. package/node_modules/protobufjs/src/converter.js +4 -2
  400. package/node_modules/protobufjs/src/roots.js +1 -1
  401. package/package.json +6 -6
  402. package/node_modules/@zuplo/runtime/out/esm/chunk-XAW2AYUG.js +0 -322
  403. package/node_modules/@zuplo/runtime/out/esm/chunk-XAW2AYUG.js.map +0 -1
  404. /package/node_modules/@zuplo/runtime/out/esm/{chunk-XAW2AYUG.js.LEGAL.txt → chunk-6WKYPMAI.js.LEGAL.txt} +0 -0
@@ -7115,8 +7115,10 @@ export declare interface MTLSAuthMetadata {
7115
7115
  notAfter: string;
7116
7116
  /**
7117
7117
  * Certificate SHA-256 fingerprint formatted as uppercase colon-separated hex.
7118
+ * Omitted when the upstream proxy did not provide the fingerprint and the
7119
+ * full certificate body is unavailable.
7118
7120
  */
7119
- sha256Fingerprint: string;
7121
+ sha256Fingerprint?: string;
7120
7122
  }
7121
7123
 
7122
7124
  declare interface MultiRequests {
@@ -1382,6 +1382,8 @@ export declare interface McpEntraOAuthInboundPolicyOptions {
1382
1382
  * ```
1383
1383
  */
1384
1384
  export declare class McpGatewayPlugin extends SystemRuntimePlugin {
1385
+ #private;
1386
+ constructor(options?: McpGatewayPluginOptions);
1385
1387
  registerRoutes(options: {
1386
1388
  router: Router;
1387
1389
  runtimeSettings: RuntimeSettings;
@@ -1389,6 +1391,32 @@ export declare class McpGatewayPlugin extends SystemRuntimePlugin {
1389
1391
  }): void;
1390
1392
  }
1391
1393
 
1394
+ /**
1395
+ * Options for the {@link McpGatewayPlugin}.
1396
+ *
1397
+ * @beta
1398
+ */
1399
+ export declare interface McpGatewayPluginOptions {
1400
+ /**
1401
+ * Base path under which the gateway mounts its internal OAuth and
1402
+ * upstream-connection action routes (e.g. `/oauth/token`,
1403
+ * `/auth/connections/{id}/connect`). Namespacing these routes keeps them out
1404
+ * of your API's route namespace so a route such as `/oauth/token` in
1405
+ * `routes.oas.json` does not collide with the gateway's own endpoints.
1406
+ *
1407
+ * The OAuth discovery documents
1408
+ * (`/.well-known/oauth-authorization-server` and
1409
+ * `/.well-known/oauth-protected-resource/...`) always remain at the origin
1410
+ * root, because RFC 8414 / RFC 9728 locate them relative to the gateway
1411
+ * issuer; only the action routes move under `basePath`.
1412
+ *
1413
+ * Pass `"/"` to mount the action routes at the origin root.
1414
+ *
1415
+ * @default "/__zuplo"
1416
+ */
1417
+ basePath?: string;
1418
+ }
1419
+
1392
1420
  /**
1393
1421
  * Authenticate MCP gateway requests using a gateway-issued OAuth access token,
1394
1422
  * with browser login delegated to Google.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.70.57",
4
+ "version": "6.70.60",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {
@@ -1,10 +1,10 @@
1
+ /** @category Errors */
1
2
  import type { Maybe } from '../jsutils/Maybe';
2
3
  import type { ASTNode } from '../language/ast';
3
4
  import type { SourceLocation } from '../language/location';
4
5
  import type { Source } from '../language/source';
5
6
  /**
6
7
  * Custom extensions
7
- *
8
8
  * @remarks
9
9
  * Use a unique identifier name for your extension, for example the name of
10
10
  * your library or project. Do not use a shortened identifier as this increases
@@ -16,7 +16,6 @@ export interface GraphQLErrorExtensions {
16
16
  }
17
17
  /**
18
18
  * Custom formatted extensions
19
- *
20
19
  * @remarks
21
20
  * Use a unique identifier name for your extension, for example the name of
22
21
  * your library or project. Do not use a shortened identifier as this increases
@@ -26,16 +25,24 @@ export interface GraphQLErrorExtensions {
26
25
  export interface GraphQLFormattedErrorExtensions {
27
26
  [attributeName: string]: unknown;
28
27
  }
28
+ /** Options used to construct a GraphQLError. */
29
29
  export interface GraphQLErrorOptions {
30
+ /** AST node or nodes associated with this error. */
30
31
  nodes?: ReadonlyArray<ASTNode> | ASTNode | null;
32
+ /** Source document used to derive error locations. */
31
33
  source?: Maybe<Source>;
34
+ /** Character offsets in the source document associated with this error. */
32
35
  positions?: Maybe<ReadonlyArray<number>>;
36
+ /** Response path where this error occurred during execution. */
33
37
  path?: Maybe<ReadonlyArray<string | number>>;
38
+ /** Original error that caused this GraphQLError, if one exists. */
34
39
  originalError?: Maybe<
35
40
  Error & {
41
+ /** Extension fields associated with this value. */
36
42
  readonly extensions?: unknown;
37
43
  }
38
44
  >;
45
+ /** Extension fields to include in the formatted result. */
39
46
  extensions?: Maybe<GraphQLErrorExtensions>;
40
47
  }
41
48
  /**
@@ -63,9 +70,7 @@ export declare class GraphQLError extends Error {
63
70
  * Enumerable, and appears in the result of JSON.stringify().
64
71
  */
65
72
  readonly path: ReadonlyArray<string | number> | undefined;
66
- /**
67
- * An array of GraphQL AST Nodes corresponding to this error.
68
- */
73
+ /** An array of GraphQL AST Nodes corresponding to this error. */
69
74
  readonly nodes: ReadonlyArray<ASTNode> | undefined;
70
75
  /**
71
76
  * The source GraphQL document for the first location of this error.
@@ -79,16 +84,92 @@ export declare class GraphQLError extends Error {
79
84
  * which correspond to this error.
80
85
  */
81
86
  readonly positions: ReadonlyArray<number> | undefined;
82
- /**
83
- * The original error thrown from a field resolver during execution.
84
- */
87
+ /** Original error that caused this GraphQLError, if one exists. */
85
88
  readonly originalError: Error | undefined;
89
+ /** Extension fields to add to the formatted error. */
90
+ readonly extensions: GraphQLErrorExtensions;
86
91
  /**
87
- * Extension fields to add to the formatted error.
92
+ * Creates a GraphQLError instance.
93
+ * @param message - Human-readable error message.
94
+ * @param options - Error metadata such as source locations, response path, original error, and extensions.
95
+ * This positional-arguments constructor overload is deprecated. Use the
96
+ * `GraphQLError(message, options)` overload instead.
97
+ * @example
98
+ * ```ts
99
+ * // Create an error from AST nodes and response metadata.
100
+ * import { parse } from 'graphql/language';
101
+ * import { GraphQLError } from 'graphql/error';
102
+ *
103
+ * const document = parse('{ greeting }');
104
+ * const fieldNode = document.definitions[0].selectionSet.selections[0];
105
+ * const error = new GraphQLError('Cannot query this field.', {
106
+ * nodes: fieldNode,
107
+ * path: ['greeting'],
108
+ * extensions: { code: 'FORBIDDEN' },
109
+ * });
110
+ *
111
+ * error.message; // => 'Cannot query this field.'
112
+ * error.locations; // => [{ line: 1, column: 3 }]
113
+ * error.path; // => ['greeting']
114
+ * error.extensions; // => { code: 'FORBIDDEN' }
115
+ * ```
116
+ * @example
117
+ * ```ts
118
+ * // This variant derives locations from source positions and preserves the original error.
119
+ * import { Source } from 'graphql/language';
120
+ * import { GraphQLError } from 'graphql/error';
121
+ *
122
+ * const source = new Source('{ greeting }');
123
+ * const originalError = new Error('Database unavailable.');
124
+ * const error = new GraphQLError('Resolver failed.', {
125
+ * source,
126
+ * positions: [2],
127
+ * path: ['greeting'],
128
+ * originalError,
129
+ * });
130
+ *
131
+ * error.locations; // => [{ line: 1, column: 3 }]
132
+ * error.path; // => ['greeting']
133
+ * error.originalError; // => originalError
134
+ * ```
88
135
  */
89
- readonly extensions: GraphQLErrorExtensions;
90
136
  constructor(message: string, options?: GraphQLErrorOptions);
91
137
  /**
138
+ * Creates a GraphQLError instance using the legacy positional constructor.
139
+ * This deprecated overload will be removed in v17. Prefer the
140
+ * `GraphQLErrorOptions` object overload, which keeps optional error metadata
141
+ * in a single options bag.
142
+ * @param message - Human-readable error message.
143
+ * @param nodes - AST node or nodes associated with this error.
144
+ * @param source - Source document used to derive error locations.
145
+ * @param positions - Character offsets in the source document associated with
146
+ * this error.
147
+ * @param path - Response path where this error occurred during execution.
148
+ * @param originalError - Original error that caused this GraphQLError, if one
149
+ * exists.
150
+ * @param extensions - Extension fields to include in the formatted error.
151
+ * @example
152
+ * ```ts
153
+ * import { Source } from 'graphql/language';
154
+ * import { GraphQLError } from 'graphql/error';
155
+ *
156
+ * const source = new Source('{ greeting }');
157
+ * const originalError = new Error('Database unavailable.');
158
+ * const error = new GraphQLError(
159
+ * 'Resolver failed.',
160
+ * undefined,
161
+ * source,
162
+ * [2],
163
+ * ['greeting'],
164
+ * originalError,
165
+ * { code: 'INTERNAL' },
166
+ * );
167
+ *
168
+ * error.locations; // => [{ line: 1, column: 3 }]
169
+ * error.path; // => ['greeting']
170
+ * error.originalError; // => originalError
171
+ * error.extensions; // => { code: 'INTERNAL' }
172
+ * ```
92
173
  * @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.
93
174
  */
94
175
  constructor(
@@ -104,13 +185,46 @@ export declare class GraphQLError extends Error {
104
185
  >,
105
186
  extensions?: Maybe<GraphQLErrorExtensions>,
106
187
  );
188
+ /**
189
+ * Returns the value used by `Object.prototype.toString`.
190
+ * @returns The built-in string tag for this object.
191
+ */
107
192
  get [Symbol.toStringTag](): string;
193
+ /**
194
+ * Returns this error as a human-readable message with source locations.
195
+ * @returns The formatted error string.
196
+ * @example
197
+ * ```ts
198
+ * import { Source } from 'graphql/language';
199
+ * import { GraphQLError } from 'graphql/error';
200
+ *
201
+ * const error = new GraphQLError('Cannot query field "name".', {
202
+ * source: new Source('{ name }'),
203
+ * positions: [2],
204
+ * });
205
+ *
206
+ * error.toString(); // => 'Cannot query field "name".\n\nGraphQL request:1:3\n1 | { name }\n | ^'
207
+ * ```
208
+ */
108
209
  toString(): string;
210
+ /**
211
+ * Returns the JSON representation used when this object is serialized.
212
+ * @returns The JSON-serializable representation.
213
+ * @example
214
+ * ```ts
215
+ * import { GraphQLError } from 'graphql/error';
216
+ *
217
+ * const error = new GraphQLError('Resolver failed.', {
218
+ * path: ['viewer', 'name'],
219
+ * extensions: { code: 'INTERNAL' },
220
+ * });
221
+ *
222
+ * error.toJSON(); // => { message: 'Resolver failed.', path: ['viewer', 'name'], extensions: { code: 'INTERNAL' } }
223
+ * ```
224
+ */
109
225
  toJSON(): GraphQLFormattedError;
110
226
  }
111
- /**
112
- * See: https://spec.graphql.org/draft/#sec-Errors
113
- */
227
+ /** See: https://spec.graphql.org/draft/#sec-Errors */
114
228
  export interface GraphQLFormattedError {
115
229
  /**
116
230
  * A short, human-readable summary of the problem that **SHOULD NOT** change
@@ -138,15 +252,37 @@ export interface GraphQLFormattedError {
138
252
  }
139
253
  /**
140
254
  * Prints a GraphQLError to a string, representing useful location information
141
- * about the error's position in the source.
255
+ * about the error's position in the source. This deprecated helper is retained
256
+ * for backwards compatibility; call `error.toString()` instead because
257
+ * printError will be removed in v17.
258
+ * @param error - The error to format.
259
+ * @returns The printed string representation.
260
+ * @example
261
+ * ```ts
262
+ * import { GraphQLError, printError } from 'graphql/error';
263
+ *
264
+ * const message = printError(new GraphQLError('Example error'));
142
265
  *
266
+ * message; // => 'Example error'
267
+ * ```
143
268
  * @deprecated Please use `error.toString` instead. Will be removed in v17
144
269
  */
145
270
  export declare function printError(error: GraphQLError): string;
146
271
  /**
147
272
  * Given a GraphQLError, format it according to the rules described by the
148
- * Response Format, Errors section of the GraphQL Specification.
273
+ * Response Format, Errors section of the GraphQL Specification. This deprecated
274
+ * helper is retained for backwards compatibility; call `error.toJSON()`
275
+ * instead because formatError will be removed in v17.
276
+ * @param error - The error to format.
277
+ * @returns The JSON-serializable formatted error.
278
+ * @example
279
+ * ```ts
280
+ * import { GraphQLError, formatError } from 'graphql/error';
281
+ *
282
+ * const formatted = formatError(new GraphQLError('Example error'));
149
283
  *
284
+ * formatted; // => { message: 'Example error' }
285
+ * ```
150
286
  * @deprecated Please use `error.toJSON` instead. Will be removed in v17
151
287
  */
152
288
  export declare function formatError(error: GraphQLError): GraphQLFormattedError;
@@ -13,6 +13,7 @@ var _location = require('../language/location.js');
13
13
 
14
14
  var _printLocation = require('../language/printLocation.js');
15
15
 
16
+ /** @category Errors */
16
17
  function toNormalizedOptions(args) {
17
18
  const firstArg = args[0];
18
19
 
@@ -55,9 +56,7 @@ class GraphQLError extends Error {
55
56
  * Enumerable, and appears in the result of JSON.stringify().
56
57
  */
57
58
 
58
- /**
59
- * An array of GraphQL AST Nodes corresponding to this error.
60
- */
59
+ /** An array of GraphQL AST Nodes corresponding to this error. */
61
60
 
62
61
  /**
63
62
  * The source GraphQL document for the first location of this error.
@@ -71,15 +70,92 @@ class GraphQLError extends Error {
71
70
  * which correspond to this error.
72
71
  */
73
72
 
74
- /**
75
- * The original error thrown from a field resolver during execution.
76
- */
73
+ /** Original error that caused this GraphQLError, if one exists. */
74
+
75
+ /** Extension fields to add to the formatted error. */
77
76
 
78
77
  /**
79
- * Extension fields to add to the formatted error.
78
+ * Creates a GraphQLError instance.
79
+ * @param message - Human-readable error message.
80
+ * @param options - Error metadata such as source locations, response path, original error, and extensions.
81
+ * This positional-arguments constructor overload is deprecated. Use the
82
+ * `GraphQLError(message, options)` overload instead.
83
+ * @example
84
+ * ```ts
85
+ * // Create an error from AST nodes and response metadata.
86
+ * import { parse } from 'graphql/language';
87
+ * import { GraphQLError } from 'graphql/error';
88
+ *
89
+ * const document = parse('{ greeting }');
90
+ * const fieldNode = document.definitions[0].selectionSet.selections[0];
91
+ * const error = new GraphQLError('Cannot query this field.', {
92
+ * nodes: fieldNode,
93
+ * path: ['greeting'],
94
+ * extensions: { code: 'FORBIDDEN' },
95
+ * });
96
+ *
97
+ * error.message; // => 'Cannot query this field.'
98
+ * error.locations; // => [{ line: 1, column: 3 }]
99
+ * error.path; // => ['greeting']
100
+ * error.extensions; // => { code: 'FORBIDDEN' }
101
+ * ```
102
+ * @example
103
+ * ```ts
104
+ * // This variant derives locations from source positions and preserves the original error.
105
+ * import { Source } from 'graphql/language';
106
+ * import { GraphQLError } from 'graphql/error';
107
+ *
108
+ * const source = new Source('{ greeting }');
109
+ * const originalError = new Error('Database unavailable.');
110
+ * const error = new GraphQLError('Resolver failed.', {
111
+ * source,
112
+ * positions: [2],
113
+ * path: ['greeting'],
114
+ * originalError,
115
+ * });
116
+ *
117
+ * error.locations; // => [{ line: 1, column: 3 }]
118
+ * error.path; // => ['greeting']
119
+ * error.originalError; // => originalError
120
+ * ```
80
121
  */
81
122
 
82
123
  /**
124
+ * Creates a GraphQLError instance using the legacy positional constructor.
125
+ * This deprecated overload will be removed in v17. Prefer the
126
+ * `GraphQLErrorOptions` object overload, which keeps optional error metadata
127
+ * in a single options bag.
128
+ * @param message - Human-readable error message.
129
+ * @param nodes - AST node or nodes associated with this error.
130
+ * @param source - Source document used to derive error locations.
131
+ * @param positions - Character offsets in the source document associated with
132
+ * this error.
133
+ * @param path - Response path where this error occurred during execution.
134
+ * @param originalError - Original error that caused this GraphQLError, if one
135
+ * exists.
136
+ * @param extensions - Extension fields to include in the formatted error.
137
+ * @example
138
+ * ```ts
139
+ * import { Source } from 'graphql/language';
140
+ * import { GraphQLError } from 'graphql/error';
141
+ *
142
+ * const source = new Source('{ greeting }');
143
+ * const originalError = new Error('Database unavailable.');
144
+ * const error = new GraphQLError(
145
+ * 'Resolver failed.',
146
+ * undefined,
147
+ * source,
148
+ * [2],
149
+ * ['greeting'],
150
+ * originalError,
151
+ * { code: 'INTERNAL' },
152
+ * );
153
+ *
154
+ * error.locations; // => [{ line: 1, column: 3 }]
155
+ * error.path; // => ['greeting']
156
+ * error.originalError; // => originalError
157
+ * error.extensions; // => { code: 'INTERNAL' }
158
+ * ```
83
159
  * @deprecated Please use the `GraphQLErrorOptions` constructor overload instead.
84
160
  */
85
161
  constructor(message, ...rawArgs) {
@@ -191,10 +267,30 @@ class GraphQLError extends Error {
191
267
  }
192
268
  /* c8 ignore stop */
193
269
  }
270
+ /**
271
+ * Returns the value used by `Object.prototype.toString`.
272
+ * @returns The built-in string tag for this object.
273
+ */
194
274
 
195
275
  get [Symbol.toStringTag]() {
196
276
  return 'GraphQLError';
197
277
  }
278
+ /**
279
+ * Returns this error as a human-readable message with source locations.
280
+ * @returns The formatted error string.
281
+ * @example
282
+ * ```ts
283
+ * import { Source } from 'graphql/language';
284
+ * import { GraphQLError } from 'graphql/error';
285
+ *
286
+ * const error = new GraphQLError('Cannot query field "name".', {
287
+ * source: new Source('{ name }'),
288
+ * positions: [2],
289
+ * });
290
+ *
291
+ * error.toString(); // => 'Cannot query field "name".\n\nGraphQL request:1:3\n1 | { name }\n | ^'
292
+ * ```
293
+ */
198
294
 
199
295
  toString() {
200
296
  let output = this.message;
@@ -215,6 +311,21 @@ class GraphQLError extends Error {
215
311
 
216
312
  return output;
217
313
  }
314
+ /**
315
+ * Returns the JSON representation used when this object is serialized.
316
+ * @returns The JSON-serializable representation.
317
+ * @example
318
+ * ```ts
319
+ * import { GraphQLError } from 'graphql/error';
320
+ *
321
+ * const error = new GraphQLError('Resolver failed.', {
322
+ * path: ['viewer', 'name'],
323
+ * extensions: { code: 'INTERNAL' },
324
+ * });
325
+ *
326
+ * error.toJSON(); // => { message: 'Resolver failed.', path: ['viewer', 'name'], extensions: { code: 'INTERNAL' } }
327
+ * ```
328
+ */
218
329
 
219
330
  toJSON() {
220
331
  const formattedError = {
@@ -242,14 +353,23 @@ exports.GraphQLError = GraphQLError;
242
353
  function undefinedIfEmpty(array) {
243
354
  return array === undefined || array.length === 0 ? undefined : array;
244
355
  }
245
- /**
246
- * See: https://spec.graphql.org/draft/#sec-Errors
247
- */
356
+ /** See: https://spec.graphql.org/draft/#sec-Errors */
248
357
 
249
358
  /**
250
359
  * Prints a GraphQLError to a string, representing useful location information
251
- * about the error's position in the source.
360
+ * about the error's position in the source. This deprecated helper is retained
361
+ * for backwards compatibility; call `error.toString()` instead because
362
+ * printError will be removed in v17.
363
+ * @param error - The error to format.
364
+ * @returns The printed string representation.
365
+ * @example
366
+ * ```ts
367
+ * import { GraphQLError, printError } from 'graphql/error';
368
+ *
369
+ * const message = printError(new GraphQLError('Example error'));
252
370
  *
371
+ * message; // => 'Example error'
372
+ * ```
253
373
  * @deprecated Please use `error.toString` instead. Will be removed in v17
254
374
  */
255
375
  function printError(error) {
@@ -257,8 +377,19 @@ function printError(error) {
257
377
  }
258
378
  /**
259
379
  * Given a GraphQLError, format it according to the rules described by the
260
- * Response Format, Errors section of the GraphQL Specification.
380
+ * Response Format, Errors section of the GraphQL Specification. This deprecated
381
+ * helper is retained for backwards compatibility; call `error.toJSON()`
382
+ * instead because formatError will be removed in v17.
383
+ * @param error - The error to format.
384
+ * @returns The JSON-serializable formatted error.
385
+ * @example
386
+ * ```ts
387
+ * import { GraphQLError, formatError } from 'graphql/error';
388
+ *
389
+ * const formatted = formatError(new GraphQLError('Example error'));
261
390
  *
391
+ * formatted; // => { message: 'Example error' }
392
+ * ```
262
393
  * @deprecated Please use `error.toJSON` instead. Will be removed in v17
263
394
  */
264
395