@pome-sh/cli 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1181) hide show
  1. package/README.md +14 -2
  2. package/dist/build-info.json +3 -3
  3. package/dist/src/cli/agent-identity.d.ts +20 -0
  4. package/dist/src/cli/agent-identity.js +59 -0
  5. package/dist/src/cli/agent-resolver.d.ts +26 -0
  6. package/dist/src/cli/agent-resolver.js +121 -0
  7. package/dist/src/cli/compile-seeds.js +1 -1
  8. package/dist/src/cli/credentials.d.ts +4 -0
  9. package/dist/src/cli/credentials.js +8 -0
  10. package/dist/src/cli/docs-topics.js +8 -2
  11. package/dist/src/cli/eval.d.ts +10 -6
  12. package/dist/src/cli/eval.js +21 -29
  13. package/dist/src/cli/frameworks.d.ts +12 -0
  14. package/dist/src/cli/frameworks.js +62 -0
  15. package/dist/src/cli/install.js +5 -5
  16. package/dist/src/cli/link-cache.d.ts +23 -0
  17. package/dist/src/cli/link-cache.js +91 -0
  18. package/dist/src/cli/login.js +1 -1
  19. package/dist/src/cli/main.js +108 -59
  20. package/dist/src/cli/project-config.d.ts +27 -25
  21. package/dist/src/cli/project-config.js +100 -54
  22. package/dist/src/cli/register.d.ts +10 -14
  23. package/dist/src/cli/register.js +138 -106
  24. package/dist/src/cli/scenarios-catalog.js +51 -1
  25. package/dist/src/cli/scenarios.js +10 -10
  26. package/dist/src/cli/session.js +16 -8
  27. package/dist/src/cli/skills.js +1 -1
  28. package/dist/src/doctor/checks.js +26 -24
  29. package/dist/src/doctor/scan.js +3 -0
  30. package/dist/src/fix-prompt/prompt.js +3 -3
  31. package/dist/src/fix-prompt/prompts/fix-prompt-v1.md +3 -3
  32. package/dist/src/hosted/client.d.ts +8 -3
  33. package/dist/src/hosted/client.js +3 -0
  34. package/dist/src/recorder/inspect.js +1 -1
  35. package/dist/src/runner/groupRender.d.ts +1 -1
  36. package/dist/src/runner/groupRender.js +3 -3
  37. package/dist/src/runner/runScenario.d.ts +626 -2
  38. package/dist/src/runner/runScenario.js +5 -0
  39. package/dist/src/runner/runScenarioHosted.d.ts +3 -0
  40. package/dist/src/runner/runScenarioHosted.js +29 -13
  41. package/dist/src/runner/runTrialGroup.d.ts +3 -1
  42. package/dist/src/runner/runTrialGroup.js +13 -11
  43. package/dist/src/scenario/parseScenario.js +42 -14
  44. package/dist/src/scenario/scenarioSchema.d.ts +1472 -4
  45. package/dist/src/scenario/scenarioSchema.js +4 -0
  46. package/dist/src/twin/twinHarness.d.ts +2 -0
  47. package/dist/src/twin/twinHarness.js +48 -1
  48. package/dist/src/twin/twinStart.d.ts +3 -1
  49. package/dist/src/twin/twinStart.js +22 -4
  50. package/node_modules/@hono/node-server/dist/index.cjs +145 -18
  51. package/node_modules/@hono/node-server/dist/index.mjs +145 -18
  52. package/node_modules/@hono/node-server/dist/serve-static.cjs +53 -12
  53. package/node_modules/@hono/node-server/dist/serve-static.mjs +53 -12
  54. package/node_modules/@hono/node-server/package.json +1 -1
  55. package/node_modules/@pome-sh/sdk/dist/index.d.ts +38 -1
  56. package/node_modules/@pome-sh/sdk/dist/index.js +16 -7
  57. package/node_modules/@pome-sh/sdk/dist/index.js.map +1 -1
  58. package/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +21 -5
  59. package/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -1
  60. package/node_modules/@pome-sh/sdk/dist/parity.d.ts +6 -0
  61. package/node_modules/@pome-sh/sdk/dist/parity.js +12 -1
  62. package/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -1
  63. package/node_modules/@pome-sh/sdk/dist/recorder.d.ts +6 -0
  64. package/node_modules/@pome-sh/sdk/dist/recorder.js +27 -32
  65. package/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -1
  66. package/node_modules/@pome-sh/sdk/dist/server.js +9 -4
  67. package/node_modules/@pome-sh/sdk/dist/server.js.map +1 -1
  68. package/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +2 -0
  69. package/node_modules/@pome-sh/sdk/dist/tool-context.js +3 -0
  70. package/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -1
  71. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +39 -0
  72. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +39 -0
  73. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +1 -1
  74. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.d.ts +4 -3
  75. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.js +4 -3
  76. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -1
  77. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/manifest.d.ts +31 -0
  78. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/manifest.js +76 -0
  79. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/manifest.js.map +1 -0
  80. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +45 -0
  81. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +8 -0
  82. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +1 -1
  83. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
  84. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
  85. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
  86. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +28 -0
  87. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
  88. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +63 -1
  89. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.js +37 -1
  90. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
  91. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.d.ts +61 -2
  92. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.js +112 -2
  93. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
  94. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.d.ts +7 -0
  95. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.js +5 -1
  96. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
  97. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +14 -0
  98. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +46 -0
  99. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +1 -0
  100. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
  101. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
  102. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
  103. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +3 -3
  104. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
  105. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
  106. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
  107. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
  108. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
  109. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task.d.ts +376 -0
  110. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/manifest-schema.json +68 -0
  111. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/package.json +5 -4
  112. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
  113. package/node_modules/@pome-sh/sdk/package.json +5 -5
  114. package/node_modules/@pome-sh/shared-types/dist/index.d.ts +1 -0
  115. package/node_modules/@pome-sh/shared-types/dist/index.js +1 -0
  116. package/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -1
  117. package/node_modules/@pome-sh/shared-types/dist/manifest.d.ts +31 -0
  118. package/node_modules/@pome-sh/shared-types/dist/manifest.js +76 -0
  119. package/node_modules/@pome-sh/shared-types/dist/manifest.js.map +1 -0
  120. package/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
  121. package/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
  122. package/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
  123. package/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
  124. package/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
  125. package/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
  126. package/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
  127. package/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
  128. package/node_modules/@pome-sh/shared-types/dist/rest.d.ts +11 -0
  129. package/node_modules/@pome-sh/shared-types/dist/rest.js +38 -0
  130. package/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
  131. package/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +1033 -0
  132. package/node_modules/@pome-sh/shared-types/dist/seed-state.js +285 -2
  133. package/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
  134. package/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
  135. package/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
  136. package/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
  137. package/node_modules/@pome-sh/shared-types/dist/task.d.ts +690 -0
  138. package/node_modules/@pome-sh/shared-types/manifest-schema.json +68 -0
  139. package/node_modules/@pome-sh/shared-types/package.json +5 -4
  140. package/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
  141. package/node_modules/@pome-sh/twin-github/README.md +1 -1
  142. package/node_modules/@pome-sh/twin-github/dist/src/access-control.d.ts +3 -3
  143. package/node_modules/@pome-sh/twin-github/dist/src/domain.d.ts +5 -5
  144. package/node_modules/@pome-sh/twin-github/dist/src/seed.d.ts +1 -1
  145. package/node_modules/@pome-sh/twin-github/dist/src/serializers.d.ts +3 -3
  146. package/node_modules/@pome-sh/twin-github/dist/src/tools.d.ts +21 -21
  147. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
  148. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
  149. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
  150. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
  151. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
  152. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
  153. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
  154. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
  155. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
  156. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
  157. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/db.js +113 -0
  158. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
  159. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
  160. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
  161. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
  162. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
  163. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
  164. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
  165. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
  166. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
  167. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
  168. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
  169. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
  170. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
  171. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
  172. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/index.js +139 -0
  173. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
  174. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
  175. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
  176. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
  177. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
  178. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
  179. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
  180. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
  181. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
  182. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
  183. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
  184. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
  185. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
  186. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
  187. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
  188. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
  189. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
  190. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server.js +394 -0
  191. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
  192. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
  193. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
  194. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
  195. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/package.json +54 -0
  196. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +4 -2
  197. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
  198. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
  199. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
  200. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
  201. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
  202. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
  203. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
  204. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
  205. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.d.ts +5 -2
  206. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.js +9 -4
  207. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
  208. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/run.js +1 -1
  209. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
  210. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
  211. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
  212. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
  213. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
  214. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
  215. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
  216. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
  217. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
  218. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
  219. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task.d.ts +374 -0
  220. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/package.json +4 -4
  221. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
  222. package/node_modules/@pome-sh/twin-github/package.json +7 -7
  223. package/node_modules/@pome-sh/twin-gmail/CHANGELOG.md +14 -0
  224. package/node_modules/@pome-sh/twin-gmail/HOSTED.md +23 -0
  225. package/node_modules/@pome-sh/twin-gmail/LIMITS.md +41 -0
  226. package/node_modules/@pome-sh/twin-gmail/README.md +109 -0
  227. package/node_modules/@pome-sh/twin-gmail/REFERENCE-DIVERGENCES.md +42 -0
  228. package/node_modules/@pome-sh/twin-gmail/dist/fixtures/mcp-tools-list.canonical.json +974 -0
  229. package/node_modules/@pome-sh/twin-gmail/dist/src/db.d.ts +4 -0
  230. package/node_modules/@pome-sh/twin-gmail/dist/src/db.js +206 -0
  231. package/node_modules/@pome-sh/twin-gmail/dist/src/db.js.map +1 -0
  232. package/node_modules/@pome-sh/twin-gmail/dist/src/domain-search.d.ts +5 -0
  233. package/node_modules/@pome-sh/twin-gmail/dist/src/domain-search.js +89 -0
  234. package/node_modules/@pome-sh/twin-gmail/dist/src/domain-search.js.map +1 -0
  235. package/node_modules/@pome-sh/twin-gmail/dist/src/domain.d.ts +110 -0
  236. package/node_modules/@pome-sh/twin-gmail/dist/src/domain.js +407 -0
  237. package/node_modules/@pome-sh/twin-gmail/dist/src/domain.js.map +1 -0
  238. package/node_modules/@pome-sh/twin-gmail/dist/src/errors.d.ts +12 -0
  239. package/node_modules/@pome-sh/twin-gmail/dist/src/errors.js +115 -0
  240. package/node_modules/@pome-sh/twin-gmail/dist/src/errors.js.map +1 -0
  241. package/node_modules/@pome-sh/twin-gmail/dist/src/identity.d.ts +10 -0
  242. package/node_modules/@pome-sh/twin-gmail/dist/src/identity.js +29 -0
  243. package/node_modules/@pome-sh/twin-gmail/dist/src/identity.js.map +1 -0
  244. package/node_modules/@pome-sh/twin-gmail/dist/src/index.d.ts +12 -0
  245. package/node_modules/@pome-sh/twin-gmail/dist/src/index.js +13 -0
  246. package/node_modules/@pome-sh/twin-gmail/dist/src/index.js.map +1 -0
  247. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.d.ts +176 -0
  248. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.js +162 -0
  249. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.js.map +1 -0
  250. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.d.ts +3 -0
  251. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.js +268 -0
  252. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.js.map +1 -0
  253. package/node_modules/@pome-sh/twin-gmail/dist/src/mime.d.ts +49 -0
  254. package/node_modules/@pome-sh/twin-gmail/dist/src/mime.js +315 -0
  255. package/node_modules/@pome-sh/twin-gmail/dist/src/mime.js.map +1 -0
  256. package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.d.ts +11 -0
  257. package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.js +70 -0
  258. package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.js.map +1 -0
  259. package/node_modules/@pome-sh/twin-gmail/dist/src/recording.d.ts +6 -0
  260. package/node_modules/@pome-sh/twin-gmail/dist/src/recording.js +74 -0
  261. package/node_modules/@pome-sh/twin-gmail/dist/src/recording.js.map +1 -0
  262. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.d.ts +28 -0
  263. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.js +120 -0
  264. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.js.map +1 -0
  265. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.d.ts +3 -0
  266. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.js +85 -0
  267. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.js.map +1 -0
  268. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.d.ts +19 -0
  269. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.js +52 -0
  270. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.js.map +1 -0
  271. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.d.ts +3 -0
  272. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.js +144 -0
  273. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.js.map +1 -0
  274. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.d.ts +3 -0
  275. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.js +204 -0
  276. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.js.map +1 -0
  277. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.d.ts +4 -0
  278. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.js +11 -0
  279. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.js.map +1 -0
  280. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.d.ts +18 -0
  281. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.js +153 -0
  282. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.js.map +1 -0
  283. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-store.d.ts +75 -0
  284. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-store.js +282 -0
  285. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-store.js.map +1 -0
  286. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.d.ts +12 -0
  287. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.js +127 -0
  288. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.js.map +1 -0
  289. package/node_modules/@pome-sh/twin-gmail/dist/src/search.d.ts +61 -0
  290. package/node_modules/@pome-sh/twin-gmail/dist/src/search.js +504 -0
  291. package/node_modules/@pome-sh/twin-gmail/dist/src/search.js.map +1 -0
  292. package/node_modules/@pome-sh/twin-gmail/dist/src/seed.d.ts +230 -0
  293. package/node_modules/@pome-sh/twin-gmail/dist/src/seed.js +269 -0
  294. package/node_modules/@pome-sh/twin-gmail/dist/src/seed.js.map +1 -0
  295. package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.d.ts +3 -0
  296. package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.js +89 -0
  297. package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.js.map +1 -0
  298. package/node_modules/@pome-sh/twin-gmail/dist/src/server.d.ts +2 -0
  299. package/node_modules/@pome-sh/twin-gmail/dist/src/server.js +21 -0
  300. package/node_modules/@pome-sh/twin-gmail/dist/src/server.js.map +1 -0
  301. package/node_modules/@pome-sh/twin-gmail/dist/src/state.d.ts +55 -0
  302. package/node_modules/@pome-sh/twin-gmail/dist/src/state.js +225 -0
  303. package/node_modules/@pome-sh/twin-gmail/dist/src/state.js.map +1 -0
  304. package/node_modules/@pome-sh/twin-gmail/dist/src/storage.d.ts +20 -0
  305. package/node_modules/@pome-sh/twin-gmail/dist/src/storage.js +171 -0
  306. package/node_modules/@pome-sh/twin-gmail/dist/src/storage.js.map +1 -0
  307. package/node_modules/@pome-sh/twin-gmail/dist/src/twin.d.ts +17 -0
  308. package/node_modules/@pome-sh/twin-gmail/dist/src/twin.js +99 -0
  309. package/node_modules/@pome-sh/twin-gmail/dist/src/twin.js.map +1 -0
  310. package/node_modules/@pome-sh/twin-gmail/dist/src/types.d.ts +149 -0
  311. package/node_modules/@pome-sh/twin-gmail/dist/src/types.js +2 -0
  312. package/node_modules/@pome-sh/twin-gmail/dist/src/types.js.map +1 -0
  313. package/node_modules/@pome-sh/twin-gmail/fidelity.inventory.json +958 -0
  314. package/node_modules/@pome-sh/twin-gmail/fixtures/README.md +28 -0
  315. package/node_modules/@pome-sh/twin-gmail/fixtures/gmail-discovery-v1.meta.json +6 -0
  316. package/node_modules/@pome-sh/twin-gmail/fixtures/gmail-discovery-v1.raw.json +4510 -0
  317. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-initialize.meta.json +8 -0
  318. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-initialize.raw.json +1 -0
  319. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-call-unauth-error.raw.json +1 -0
  320. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-call.representative.json +508 -0
  321. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.canonical.json +974 -0
  322. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.meta.json +29 -0
  323. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.raw.json +1 -0
  324. package/node_modules/@pome-sh/twin-gmail/fixtures/rest-surface.json +3502 -0
  325. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
  326. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
  327. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
  328. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
  329. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
  330. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
  331. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
  332. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
  333. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
  334. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
  335. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/db.js +113 -0
  336. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
  337. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
  338. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
  339. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
  340. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
  341. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
  342. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
  343. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
  344. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
  345. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
  346. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
  347. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
  348. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
  349. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
  350. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/index.js +139 -0
  351. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
  352. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
  353. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
  354. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
  355. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
  356. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
  357. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
  358. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
  359. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
  360. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
  361. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
  362. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
  363. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
  364. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
  365. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
  366. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
  367. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
  368. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server.js +394 -0
  369. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
  370. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
  371. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
  372. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
  373. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/package.json +54 -0
  374. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/errors.d.ts +39 -0
  375. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/errors.js +33 -0
  376. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/errors.js.map +1 -0
  377. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +254 -0
  378. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +122 -0
  379. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +1 -0
  380. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts +175 -0
  381. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/github-access-control.js +182 -0
  382. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/github-access-control.js.map +1 -0
  383. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/identity.d.ts +90 -0
  384. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/identity.js +72 -0
  385. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/identity.js.map +1 -0
  386. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/index.d.ts +27 -0
  387. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/index.js +34 -0
  388. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -0
  389. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +331 -0
  390. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js +33 -0
  391. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js.map +1 -0
  392. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.d.ts +65 -0
  393. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js +455 -0
  394. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js.map +1 -0
  395. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.d.ts +39 -0
  396. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js +47 -0
  397. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js.map +1 -0
  398. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/index.d.ts +25 -0
  399. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/index.js +27 -0
  400. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/index.js.map +1 -0
  401. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +100 -0
  402. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +193 -0
  403. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +1 -0
  404. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/map-span.d.ts +64 -0
  405. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/map-span.js +112 -0
  406. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/map-span.js.map +1 -0
  407. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/nano.d.ts +26 -0
  408. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/nano.js +61 -0
  409. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/nano.js.map +1 -0
  410. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/project.d.ts +42 -0
  411. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/project.js +104 -0
  412. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -0
  413. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +57 -0
  414. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +102 -0
  415. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -0
  416. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/span-event.d.ts +134 -0
  417. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/span-event.js +152 -0
  418. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/span-event.js.map +1 -0
  419. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +480 -0
  420. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/recorder-events.js +270 -0
  421. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -0
  422. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/redaction.d.ts +2 -0
  423. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/redaction.js +152 -0
  424. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/redaction.js.map +1 -0
  425. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/rest.d.ts +248 -0
  426. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/rest.js +308 -0
  427. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -0
  428. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/run.d.ts +208 -0
  429. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/run.js +170 -0
  430. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -0
  431. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +14 -0
  432. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +46 -0
  433. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +1 -0
  434. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +1006 -0
  435. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-state.js +263 -0
  436. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -0
  437. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +53 -0
  438. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/sessions.js +51 -0
  439. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -0
  440. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +80 -0
  441. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task-vocab.js +98 -0
  442. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -0
  443. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task.d.ts +859 -0
  444. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task.js +60 -0
  445. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task.js.map +1 -0
  446. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/package.json +54 -0
  447. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/trace-contract.json +41 -0
  448. package/node_modules/@pome-sh/twin-gmail/package.json +75 -0
  449. package/node_modules/@pome-sh/twin-linear/CHANGELOG.md +15 -0
  450. package/node_modules/@pome-sh/twin-linear/FIDELITY.md +62 -0
  451. package/node_modules/@pome-sh/twin-linear/HOSTED.md +46 -0
  452. package/node_modules/@pome-sh/twin-linear/LIMITS.md +54 -0
  453. package/node_modules/@pome-sh/twin-linear/README.md +107 -0
  454. package/node_modules/@pome-sh/twin-linear/REFERENCE-DIVERGENCES.md +50 -0
  455. package/node_modules/@pome-sh/twin-linear/dist/fixtures/mcp-tools-list.canonical.json +353 -0
  456. package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.d.ts +8 -0
  457. package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.js +55 -0
  458. package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.js.map +1 -0
  459. package/node_modules/@pome-sh/twin-linear/dist/src/db.d.ts +4 -0
  460. package/node_modules/@pome-sh/twin-linear/dist/src/db.js +333 -0
  461. package/node_modules/@pome-sh/twin-linear/dist/src/db.js.map +1 -0
  462. package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.d.ts +29 -0
  463. package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.js +103 -0
  464. package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.js.map +1 -0
  465. package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.d.ts +9 -0
  466. package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.js +41 -0
  467. package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.js.map +1 -0
  468. package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.d.ts +13 -0
  469. package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.js +108 -0
  470. package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.js.map +1 -0
  471. package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.d.ts +31 -0
  472. package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.js +113 -0
  473. package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.js.map +1 -0
  474. package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.d.ts +4 -0
  475. package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.js +6 -0
  476. package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.js.map +1 -0
  477. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.d.ts +13 -0
  478. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.js +60 -0
  479. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.js.map +1 -0
  480. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.d.ts +57 -0
  481. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.js +356 -0
  482. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.js.map +1 -0
  483. package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.d.ts +18 -0
  484. package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.js +117 -0
  485. package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.js.map +1 -0
  486. package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.d.ts +190 -0
  487. package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.js +315 -0
  488. package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.js.map +1 -0
  489. package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.d.ts +8 -0
  490. package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.js +61 -0
  491. package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.js.map +1 -0
  492. package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.d.ts +55 -0
  493. package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.js +127 -0
  494. package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.js.map +1 -0
  495. package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.d.ts +17 -0
  496. package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.js +51 -0
  497. package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.js.map +1 -0
  498. package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.d.ts +211 -0
  499. package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.js +216 -0
  500. package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.js.map +1 -0
  501. package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.d.ts +5 -0
  502. package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.js +12 -0
  503. package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.js.map +1 -0
  504. package/node_modules/@pome-sh/twin-linear/dist/src/errors.d.ts +26 -0
  505. package/node_modules/@pome-sh/twin-linear/dist/src/errors.js +128 -0
  506. package/node_modules/@pome-sh/twin-linear/dist/src/errors.js.map +1 -0
  507. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.d.ts +27 -0
  508. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.js +261 -0
  509. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.js.map +1 -0
  510. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.d.ts +5 -0
  511. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.js +122 -0
  512. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.js.map +1 -0
  513. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.d.ts +152 -0
  514. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.js +255 -0
  515. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.js.map +1 -0
  516. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.d.ts +6 -0
  517. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.js +169 -0
  518. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.js.map +1 -0
  519. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.d.ts +6 -0
  520. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.js +176 -0
  521. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.js.map +1 -0
  522. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.d.ts +3 -0
  523. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.js +504 -0
  524. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.js.map +1 -0
  525. package/node_modules/@pome-sh/twin-linear/dist/src/identity.d.ts +7 -0
  526. package/node_modules/@pome-sh/twin-linear/dist/src/identity.js +14 -0
  527. package/node_modules/@pome-sh/twin-linear/dist/src/identity.js.map +1 -0
  528. package/node_modules/@pome-sh/twin-linear/dist/src/ids.d.ts +5 -0
  529. package/node_modules/@pome-sh/twin-linear/dist/src/ids.js +28 -0
  530. package/node_modules/@pome-sh/twin-linear/dist/src/ids.js.map +1 -0
  531. package/node_modules/@pome-sh/twin-linear/dist/src/index.d.ts +16 -0
  532. package/node_modules/@pome-sh/twin-linear/dist/src/index.js +14 -0
  533. package/node_modules/@pome-sh/twin-linear/dist/src/index.js.map +1 -0
  534. package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.d.ts +121 -0
  535. package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.js +126 -0
  536. package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.js.map +1 -0
  537. package/node_modules/@pome-sh/twin-linear/dist/src/mcp.d.ts +4 -0
  538. package/node_modules/@pome-sh/twin-linear/dist/src/mcp.js +430 -0
  539. package/node_modules/@pome-sh/twin-linear/dist/src/mcp.js.map +1 -0
  540. package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.d.ts +5 -0
  541. package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.js +340 -0
  542. package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.js.map +1 -0
  543. package/node_modules/@pome-sh/twin-linear/dist/src/pagination.d.ts +29 -0
  544. package/node_modules/@pome-sh/twin-linear/dist/src/pagination.js +101 -0
  545. package/node_modules/@pome-sh/twin-linear/dist/src/pagination.js.map +1 -0
  546. package/node_modules/@pome-sh/twin-linear/dist/src/recording.d.ts +2 -0
  547. package/node_modules/@pome-sh/twin-linear/dist/src/recording.js +46 -0
  548. package/node_modules/@pome-sh/twin-linear/dist/src/recording.js.map +1 -0
  549. package/node_modules/@pome-sh/twin-linear/dist/src/routes.d.ts +9 -0
  550. package/node_modules/@pome-sh/twin-linear/dist/src/routes.js +10 -0
  551. package/node_modules/@pome-sh/twin-linear/dist/src/routes.js.map +1 -0
  552. package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.d.ts +4 -0
  553. package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.js +186 -0
  554. package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.js.map +1 -0
  555. package/node_modules/@pome-sh/twin-linear/dist/src/seed.d.ts +158 -0
  556. package/node_modules/@pome-sh/twin-linear/dist/src/seed.js +541 -0
  557. package/node_modules/@pome-sh/twin-linear/dist/src/seed.js.map +1 -0
  558. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.d.ts +29 -0
  559. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.js +47 -0
  560. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.js.map +1 -0
  561. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.d.ts +15 -0
  562. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.js +17 -0
  563. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.js.map +1 -0
  564. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.d.ts +3 -0
  565. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.js +5 -0
  566. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.js.map +1 -0
  567. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.d.ts +86 -0
  568. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.js +102 -0
  569. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.js.map +1 -0
  570. package/node_modules/@pome-sh/twin-linear/dist/src/server.d.ts +2 -0
  571. package/node_modules/@pome-sh/twin-linear/dist/src/server.js +41 -0
  572. package/node_modules/@pome-sh/twin-linear/dist/src/server.js.map +1 -0
  573. package/node_modules/@pome-sh/twin-linear/dist/src/state.d.ts +51 -0
  574. package/node_modules/@pome-sh/twin-linear/dist/src/state.js +211 -0
  575. package/node_modules/@pome-sh/twin-linear/dist/src/state.js.map +1 -0
  576. package/node_modules/@pome-sh/twin-linear/dist/src/twin.d.ts +21 -0
  577. package/node_modules/@pome-sh/twin-linear/dist/src/twin.js +107 -0
  578. package/node_modules/@pome-sh/twin-linear/dist/src/twin.js.map +1 -0
  579. package/node_modules/@pome-sh/twin-linear/dist/src/types.d.ts +360 -0
  580. package/node_modules/@pome-sh/twin-linear/dist/src/types.js +19 -0
  581. package/node_modules/@pome-sh/twin-linear/dist/src/types.js.map +1 -0
  582. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.d.ts +27 -0
  583. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.js +107 -0
  584. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.js.map +1 -0
  585. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.d.ts +3 -0
  586. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.js +26 -0
  587. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.js.map +1 -0
  588. package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.d.ts +30 -0
  589. package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.js +93 -0
  590. package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.js.map +1 -0
  591. package/node_modules/@pome-sh/twin-linear/fidelity.inventory.json +249 -0
  592. package/node_modules/@pome-sh/twin-linear/fixtures/README.md +10 -0
  593. package/node_modules/@pome-sh/twin-linear/fixtures/graphql-surface.json +59 -0
  594. package/node_modules/@pome-sh/twin-linear/fixtures/mcp-tools-list.canonical.json +353 -0
  595. package/node_modules/@pome-sh/twin-linear/package.json +71 -0
  596. package/node_modules/@pome-sh/twin-slack/README.md +1 -1
  597. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
  598. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
  599. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
  600. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
  601. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
  602. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
  603. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
  604. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
  605. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
  606. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
  607. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.js +113 -0
  608. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
  609. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
  610. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
  611. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
  612. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
  613. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
  614. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
  615. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
  616. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
  617. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
  618. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
  619. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
  620. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
  621. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
  622. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.js +139 -0
  623. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
  624. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
  625. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
  626. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
  627. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
  628. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
  629. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
  630. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
  631. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
  632. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
  633. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
  634. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
  635. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
  636. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
  637. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
  638. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
  639. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
  640. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.js +394 -0
  641. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
  642. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
  643. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
  644. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
  645. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/package.json +54 -0
  646. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +4 -2
  647. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
  648. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
  649. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
  650. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
  651. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
  652. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
  653. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
  654. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
  655. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.d.ts +5 -2
  656. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.js +9 -4
  657. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
  658. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/run.js +1 -1
  659. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
  660. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
  661. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
  662. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
  663. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
  664. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
  665. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
  666. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
  667. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
  668. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
  669. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task.d.ts +374 -0
  670. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/package.json +4 -4
  671. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
  672. package/node_modules/@pome-sh/twin-slack/package.json +7 -7
  673. package/node_modules/@pome-sh/twin-stripe/README.md +1 -1
  674. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/stripe-domain.d.ts +2 -2
  675. package/node_modules/@pome-sh/twin-stripe/dist/src/seed.d.ts +8 -8
  676. package/node_modules/@pome-sh/twin-stripe/dist/src/serializers.d.ts +1 -1
  677. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
  678. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
  679. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
  680. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
  681. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
  682. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
  683. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
  684. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
  685. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
  686. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
  687. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.js +113 -0
  688. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
  689. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
  690. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
  691. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
  692. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
  693. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
  694. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
  695. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
  696. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
  697. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
  698. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
  699. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
  700. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
  701. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
  702. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.js +139 -0
  703. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
  704. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
  705. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
  706. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
  707. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
  708. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
  709. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
  710. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
  711. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
  712. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
  713. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
  714. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
  715. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
  716. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
  717. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
  718. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
  719. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
  720. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.js +394 -0
  721. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
  722. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
  723. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
  724. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
  725. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/package.json +54 -0
  726. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +4 -2
  727. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
  728. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
  729. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
  730. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
  731. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
  732. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
  733. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
  734. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
  735. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.d.ts +5 -2
  736. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.js +9 -4
  737. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
  738. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.js +1 -1
  739. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
  740. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
  741. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
  742. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
  743. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
  744. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
  745. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
  746. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
  747. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
  748. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
  749. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task.d.ts +374 -0
  750. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/package.json +4 -4
  751. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
  752. package/node_modules/@pome-sh/twin-stripe/package.json +7 -7
  753. package/node_modules/graphql/LICENSE +21 -0
  754. package/node_modules/graphql/NotSupportedTSVersion.d.ts +1 -0
  755. package/node_modules/graphql/README.md +203 -0
  756. package/node_modules/graphql/error/GraphQLError.d.ts +288 -0
  757. package/node_modules/graphql/error/GraphQLError.js +398 -0
  758. package/node_modules/graphql/error/GraphQLError.mjs +384 -0
  759. package/node_modules/graphql/error/index.d.ts +15 -0
  760. package/node_modules/graphql/error/index.js +41 -0
  761. package/node_modules/graphql/error/index.mjs +9 -0
  762. package/node_modules/graphql/error/locatedError.d.ts +33 -0
  763. package/node_modules/graphql/error/locatedError.js +61 -0
  764. package/node_modules/graphql/error/locatedError.mjs +52 -0
  765. package/node_modules/graphql/error/syntaxError.d.ts +26 -0
  766. package/node_modules/graphql/error/syntaxError.js +35 -0
  767. package/node_modules/graphql/error/syntaxError.mjs +27 -0
  768. package/node_modules/graphql/execution/collectFields.d.ts +45 -0
  769. package/node_modules/graphql/execution/collectFields.js +235 -0
  770. package/node_modules/graphql/execution/collectFields.mjs +219 -0
  771. package/node_modules/graphql/execution/execute.d.ts +402 -0
  772. package/node_modules/graphql/execution/execute.js +1295 -0
  773. package/node_modules/graphql/execution/execute.mjs +1266 -0
  774. package/node_modules/graphql/execution/index.d.ts +24 -0
  775. package/node_modules/graphql/execution/index.js +73 -0
  776. package/node_modules/graphql/execution/index.mjs +19 -0
  777. package/node_modules/graphql/execution/mapAsyncIterator.d.ts +11 -0
  778. package/node_modules/graphql/execution/mapAsyncIterator.js +70 -0
  779. package/node_modules/graphql/execution/mapAsyncIterator.mjs +63 -0
  780. package/node_modules/graphql/execution/subscribe.d.ts +262 -0
  781. package/node_modules/graphql/execution/subscribe.js +388 -0
  782. package/node_modules/graphql/execution/subscribe.mjs +366 -0
  783. package/node_modules/graphql/execution/values.d.ts +236 -0
  784. package/node_modules/graphql/execution/values.js +444 -0
  785. package/node_modules/graphql/execution/values.mjs +406 -0
  786. package/node_modules/graphql/graphql.d.ts +189 -0
  787. package/node_modules/graphql/graphql.js +218 -0
  788. package/node_modules/graphql/graphql.mjs +212 -0
  789. package/node_modules/graphql/index.d.ts +423 -0
  790. package/node_modules/graphql/index.js +1311 -0
  791. package/node_modules/graphql/index.mjs +256 -0
  792. package/node_modules/graphql/jsutils/Maybe.d.ts +6 -0
  793. package/node_modules/graphql/jsutils/Maybe.js +5 -0
  794. package/node_modules/graphql/jsutils/Maybe.mjs +1 -0
  795. package/node_modules/graphql/jsutils/ObjMap.d.ts +20 -0
  796. package/node_modules/graphql/jsutils/ObjMap.js +5 -0
  797. package/node_modules/graphql/jsutils/ObjMap.mjs +1 -0
  798. package/node_modules/graphql/jsutils/Path.d.ts +50 -0
  799. package/node_modules/graphql/jsutils/Path.js +62 -0
  800. package/node_modules/graphql/jsutils/Path.mjs +54 -0
  801. package/node_modules/graphql/jsutils/PromiseOrValue.d.ts +2 -0
  802. package/node_modules/graphql/jsutils/PromiseOrValue.js +5 -0
  803. package/node_modules/graphql/jsutils/PromiseOrValue.mjs +1 -0
  804. package/node_modules/graphql/jsutils/devAssert.d.ts +2 -0
  805. package/node_modules/graphql/jsutils/devAssert.js +15 -0
  806. package/node_modules/graphql/jsutils/devAssert.mjs +8 -0
  807. package/node_modules/graphql/jsutils/didYouMean.d.ts +11 -0
  808. package/node_modules/graphql/jsutils/didYouMean.js +41 -0
  809. package/node_modules/graphql/jsutils/didYouMean.mjs +35 -0
  810. package/node_modules/graphql/jsutils/groupBy.d.ts +9 -0
  811. package/node_modules/graphql/jsutils/groupBy.js +28 -0
  812. package/node_modules/graphql/jsutils/groupBy.mjs +21 -0
  813. package/node_modules/graphql/jsutils/identityFunc.d.ts +6 -0
  814. package/node_modules/graphql/jsutils/identityFunc.js +15 -0
  815. package/node_modules/graphql/jsutils/identityFunc.mjs +8 -0
  816. package/node_modules/graphql/jsutils/inspect.d.ts +6 -0
  817. package/node_modules/graphql/jsutils/inspect.js +123 -0
  818. package/node_modules/graphql/jsutils/inspect.mjs +117 -0
  819. package/node_modules/graphql/jsutils/instanceOf.d.ts +18 -0
  820. package/node_modules/graphql/jsutils/instanceOf.js +67 -0
  821. package/node_modules/graphql/jsutils/instanceOf.mjs +59 -0
  822. package/node_modules/graphql/jsutils/invariant.d.ts +5 -0
  823. package/node_modules/graphql/jsutils/invariant.js +17 -0
  824. package/node_modules/graphql/jsutils/invariant.mjs +10 -0
  825. package/node_modules/graphql/jsutils/isAsyncIterable.d.ts +9 -0
  826. package/node_modules/graphql/jsutils/isAsyncIterable.js +20 -0
  827. package/node_modules/graphql/jsutils/isAsyncIterable.mjs +13 -0
  828. package/node_modules/graphql/jsutils/isIterableObject.d.ts +21 -0
  829. package/node_modules/graphql/jsutils/isIterableObject.js +33 -0
  830. package/node_modules/graphql/jsutils/isIterableObject.mjs +26 -0
  831. package/node_modules/graphql/jsutils/isObjectLike.d.ts +9 -0
  832. package/node_modules/graphql/jsutils/isObjectLike.js +16 -0
  833. package/node_modules/graphql/jsutils/isObjectLike.mjs +9 -0
  834. package/node_modules/graphql/jsutils/isPromise.d.ts +7 -0
  835. package/node_modules/graphql/jsutils/isPromise.js +19 -0
  836. package/node_modules/graphql/jsutils/isPromise.mjs +12 -0
  837. package/node_modules/graphql/jsutils/keyMap.d.ts +25 -0
  838. package/node_modules/graphql/jsutils/keyMap.js +36 -0
  839. package/node_modules/graphql/jsutils/keyMap.mjs +29 -0
  840. package/node_modules/graphql/jsutils/keyValMap.d.ts +26 -0
  841. package/node_modules/graphql/jsutils/keyValMap.js +36 -0
  842. package/node_modules/graphql/jsutils/keyValMap.mjs +29 -0
  843. package/node_modules/graphql/jsutils/mapValue.d.ts +11 -0
  844. package/node_modules/graphql/jsutils/mapValue.js +22 -0
  845. package/node_modules/graphql/jsutils/mapValue.mjs +15 -0
  846. package/node_modules/graphql/jsutils/memoize3.d.ts +11 -0
  847. package/node_modules/graphql/jsutils/memoize3.js +43 -0
  848. package/node_modules/graphql/jsutils/memoize3.mjs +36 -0
  849. package/node_modules/graphql/jsutils/naturalCompare.d.ts +10 -0
  850. package/node_modules/graphql/jsutils/naturalCompare.js +71 -0
  851. package/node_modules/graphql/jsutils/naturalCompare.mjs +63 -0
  852. package/node_modules/graphql/jsutils/printPathArray.d.ts +8 -0
  853. package/node_modules/graphql/jsutils/printPathArray.js +19 -0
  854. package/node_modules/graphql/jsutils/printPathArray.mjs +12 -0
  855. package/node_modules/graphql/jsutils/promiseForObject.d.ts +13 -0
  856. package/node_modules/graphql/jsutils/promiseForObject.js +27 -0
  857. package/node_modules/graphql/jsutils/promiseForObject.mjs +20 -0
  858. package/node_modules/graphql/jsutils/promiseReduce.d.ts +15 -0
  859. package/node_modules/graphql/jsutils/promiseReduce.js +29 -0
  860. package/node_modules/graphql/jsutils/promiseReduce.mjs +22 -0
  861. package/node_modules/graphql/jsutils/suggestionList.d.ts +10 -0
  862. package/node_modules/graphql/jsutils/suggestionList.js +143 -0
  863. package/node_modules/graphql/jsutils/suggestionList.mjs +134 -0
  864. package/node_modules/graphql/jsutils/toError.d.ts +6 -0
  865. package/node_modules/graphql/jsutils/toError.js +27 -0
  866. package/node_modules/graphql/jsutils/toError.mjs +20 -0
  867. package/node_modules/graphql/jsutils/toObjMap.d.ts +6 -0
  868. package/node_modules/graphql/jsutils/toObjMap.js +25 -0
  869. package/node_modules/graphql/jsutils/toObjMap.mjs +18 -0
  870. package/node_modules/graphql/language/ast.d.ts +949 -0
  871. package/node_modules/graphql/language/ast.js +301 -0
  872. package/node_modules/graphql/language/ast.mjs +285 -0
  873. package/node_modules/graphql/language/blockString.d.ts +26 -0
  874. package/node_modules/graphql/language/blockString.js +193 -0
  875. package/node_modules/graphql/language/blockString.mjs +176 -0
  876. package/node_modules/graphql/language/characterClasses.d.ts +47 -0
  877. package/node_modules/graphql/language/characterClasses.js +75 -0
  878. package/node_modules/graphql/language/characterClasses.mjs +64 -0
  879. package/node_modules/graphql/language/directiveLocation.d.ts +54 -0
  880. package/node_modules/graphql/language/directiveLocation.js +43 -0
  881. package/node_modules/graphql/language/directiveLocation.mjs +37 -0
  882. package/node_modules/graphql/language/index.d.ts +117 -0
  883. package/node_modules/graphql/language/index.js +227 -0
  884. package/node_modules/graphql/language/index.mjs +42 -0
  885. package/node_modules/graphql/language/kinds.d.ts +112 -0
  886. package/node_modules/graphql/language/kinds.js +72 -0
  887. package/node_modules/graphql/language/kinds.mjs +66 -0
  888. package/node_modules/graphql/language/lexer.d.ts +129 -0
  889. package/node_modules/graphql/language/lexer.js +1074 -0
  890. package/node_modules/graphql/language/lexer.mjs +972 -0
  891. package/node_modules/graphql/language/location.d.ts +29 -0
  892. package/node_modules/graphql/language/location.js +49 -0
  893. package/node_modules/graphql/language/location.mjs +41 -0
  894. package/node_modules/graphql/language/parser.d.ts +829 -0
  895. package/node_modules/graphql/language/parser.js +1949 -0
  896. package/node_modules/graphql/language/parser.mjs +1899 -0
  897. package/node_modules/graphql/language/predicates.d.ts +206 -0
  898. package/node_modules/graphql/language/predicates.js +292 -0
  899. package/node_modules/graphql/language/predicates.mjs +274 -0
  900. package/node_modules/graphql/language/printLocation.d.ts +42 -0
  901. package/node_modules/graphql/language/printLocation.js +103 -0
  902. package/node_modules/graphql/language/printLocation.mjs +94 -0
  903. package/node_modules/graphql/language/printString.d.ts +7 -0
  904. package/node_modules/graphql/language/printString.js +187 -0
  905. package/node_modules/graphql/language/printString.mjs +180 -0
  906. package/node_modules/graphql/language/printer.d.ts +18 -0
  907. package/node_modules/graphql/language/printer.js +411 -0
  908. package/node_modules/graphql/language/printer.mjs +398 -0
  909. package/node_modules/graphql/language/schemaCoordinateLexer.d.ts +45 -0
  910. package/node_modules/graphql/language/schemaCoordinateLexer.js +175 -0
  911. package/node_modules/graphql/language/schemaCoordinateLexer.mjs +126 -0
  912. package/node_modules/graphql/language/source.d.ts +53 -0
  913. package/node_modules/graphql/language/source.js +97 -0
  914. package/node_modules/graphql/language/source.mjs +81 -0
  915. package/node_modules/graphql/language/tokenKind.d.ts +63 -0
  916. package/node_modules/graphql/language/tokenKind.js +49 -0
  917. package/node_modules/graphql/language/tokenKind.mjs +43 -0
  918. package/node_modules/graphql/language/visitor.d.ts +322 -0
  919. package/node_modules/graphql/language/visitor.js +446 -0
  920. package/node_modules/graphql/language/visitor.mjs +426 -0
  921. package/node_modules/graphql/package.json +39 -0
  922. package/node_modules/graphql/subscription/index.d.ts +25 -0
  923. package/node_modules/graphql/subscription/index.js +19 -0
  924. package/node_modules/graphql/subscription/index.mjs +25 -0
  925. package/node_modules/graphql/type/assertName.d.ts +27 -0
  926. package/node_modules/graphql/type/assertName.js +77 -0
  927. package/node_modules/graphql/type/assertName.mjs +61 -0
  928. package/node_modules/graphql/type/definition.d.ts +3387 -0
  929. package/node_modules/graphql/type/definition.js +3515 -0
  930. package/node_modules/graphql/type/definition.mjs +3378 -0
  931. package/node_modules/graphql/type/directives.d.ts +273 -0
  932. package/node_modules/graphql/type/directives.js +424 -0
  933. package/node_modules/graphql/type/directives.mjs +388 -0
  934. package/node_modules/graphql/type/index.d.ts +157 -0
  935. package/node_modules/graphql/type/index.js +553 -0
  936. package/node_modules/graphql/type/index.mjs +110 -0
  937. package/node_modules/graphql/type/introspection.d.ts +66 -0
  938. package/node_modules/graphql/type/introspection.js +681 -0
  939. package/node_modules/graphql/type/introspection.mjs +623 -0
  940. package/node_modules/graphql/type/scalars.d.ts +46 -0
  941. package/node_modules/graphql/type/scalars.js +404 -0
  942. package/node_modules/graphql/type/scalars.mjs +343 -0
  943. package/node_modules/graphql/type/schema.d.ts +632 -0
  944. package/node_modules/graphql/type/schema.js +860 -0
  945. package/node_modules/graphql/type/schema.mjs +839 -0
  946. package/node_modules/graphql/type/validate.d.ts +48 -0
  947. package/node_modules/graphql/type/validate.js +738 -0
  948. package/node_modules/graphql/type/validate.mjs +712 -0
  949. package/node_modules/graphql/utilities/TypeInfo.d.ts +507 -0
  950. package/node_modules/graphql/utilities/TypeInfo.js +861 -0
  951. package/node_modules/graphql/utilities/TypeInfo.mjs +837 -0
  952. package/node_modules/graphql/utilities/assertValidName.d.ts +38 -0
  953. package/node_modules/graphql/utilities/assertValidName.js +77 -0
  954. package/node_modules/graphql/utilities/assertValidName.mjs +65 -0
  955. package/node_modules/graphql/utilities/astFromValue.d.ts +58 -0
  956. package/node_modules/graphql/utilities/astFromValue.js +223 -0
  957. package/node_modules/graphql/utilities/astFromValue.mjs +209 -0
  958. package/node_modules/graphql/utilities/buildASTSchema.d.ts +94 -0
  959. package/node_modules/graphql/utilities/buildASTSchema.js +178 -0
  960. package/node_modules/graphql/utilities/buildASTSchema.mjs +160 -0
  961. package/node_modules/graphql/utilities/buildClientSchema.d.ts +34 -0
  962. package/node_modules/graphql/utilities/buildClientSchema.js +404 -0
  963. package/node_modules/graphql/utilities/buildClientSchema.mjs +380 -0
  964. package/node_modules/graphql/utilities/coerceInputValue.d.ts +62 -0
  965. package/node_modules/graphql/utilities/coerceInputValue.js +264 -0
  966. package/node_modules/graphql/utilities/coerceInputValue.mjs +238 -0
  967. package/node_modules/graphql/utilities/concatAST.d.ts +21 -0
  968. package/node_modules/graphql/utilities/concatAST.js +39 -0
  969. package/node_modules/graphql/utilities/concatAST.mjs +31 -0
  970. package/node_modules/graphql/utilities/extendSchema.d.ts +93 -0
  971. package/node_modules/graphql/utilities/extendSchema.js +923 -0
  972. package/node_modules/graphql/utilities/extendSchema.mjs +912 -0
  973. package/node_modules/graphql/utilities/findBreakingChanges.d.ts +148 -0
  974. package/node_modules/graphql/utilities/findBreakingChanges.js +615 -0
  975. package/node_modules/graphql/utilities/findBreakingChanges.mjs +589 -0
  976. package/node_modules/graphql/utilities/getIntrospectionQuery.d.ts +336 -0
  977. package/node_modules/graphql/utilities/getIntrospectionQuery.js +179 -0
  978. package/node_modules/graphql/utilities/getIntrospectionQuery.mjs +172 -0
  979. package/node_modules/graphql/utilities/getOperationAST.d.ts +26 -0
  980. package/node_modules/graphql/utilities/getOperationAST.js +59 -0
  981. package/node_modules/graphql/utilities/getOperationAST.mjs +51 -0
  982. package/node_modules/graphql/utilities/getOperationRootType.d.ts +32 -0
  983. package/node_modules/graphql/utilities/getOperationRootType.js +85 -0
  984. package/node_modules/graphql/utilities/getOperationRootType.mjs +71 -0
  985. package/node_modules/graphql/utilities/index.d.ts +73 -0
  986. package/node_modules/graphql/utilities/index.js +247 -0
  987. package/node_modules/graphql/utilities/index.mjs +67 -0
  988. package/node_modules/graphql/utilities/introspectionFromSchema.d.ts +72 -0
  989. package/node_modules/graphql/utilities/introspectionFromSchema.js +99 -0
  990. package/node_modules/graphql/utilities/introspectionFromSchema.mjs +86 -0
  991. package/node_modules/graphql/utilities/lexicographicSortSchema.d.ts +44 -0
  992. package/node_modules/graphql/utilities/lexicographicSortSchema.js +213 -0
  993. package/node_modules/graphql/utilities/lexicographicSortSchema.mjs +207 -0
  994. package/node_modules/graphql/utilities/printSchema.d.ts +68 -0
  995. package/node_modules/graphql/utilities/printSchema.js +405 -0
  996. package/node_modules/graphql/utilities/printSchema.mjs +382 -0
  997. package/node_modules/graphql/utilities/resolveSchemaCoordinate.d.ts +142 -0
  998. package/node_modules/graphql/utilities/resolveSchemaCoordinate.js +324 -0
  999. package/node_modules/graphql/utilities/resolveSchemaCoordinate.mjs +306 -0
  1000. package/node_modules/graphql/utilities/separateOperations.d.ts +41 -0
  1001. package/node_modules/graphql/utilities/separateOperations.js +119 -0
  1002. package/node_modules/graphql/utilities/separateOperations.mjs +110 -0
  1003. package/node_modules/graphql/utilities/sortValueNode.d.ts +9 -0
  1004. package/node_modules/graphql/utilities/sortValueNode.js +47 -0
  1005. package/node_modules/graphql/utilities/sortValueNode.mjs +39 -0
  1006. package/node_modules/graphql/utilities/stripIgnoredCharacters.d.ts +69 -0
  1007. package/node_modules/graphql/utilities/stripIgnoredCharacters.js +131 -0
  1008. package/node_modules/graphql/utilities/stripIgnoredCharacters.mjs +113 -0
  1009. package/node_modules/graphql/utilities/typeComparators.d.ts +116 -0
  1010. package/node_modules/graphql/utilities/typeComparators.js +201 -0
  1011. package/node_modules/graphql/utilities/typeComparators.mjs +190 -0
  1012. package/node_modules/graphql/utilities/typeFromAST.d.ts +118 -0
  1013. package/node_modules/graphql/utilities/typeFromAST.js +30 -0
  1014. package/node_modules/graphql/utilities/typeFromAST.mjs +21 -0
  1015. package/node_modules/graphql/utilities/typedQueryDocumentNode.d.ts +26 -0
  1016. package/node_modules/graphql/utilities/typedQueryDocumentNode.js +5 -0
  1017. package/node_modules/graphql/utilities/typedQueryDocumentNode.mjs +1 -0
  1018. package/node_modules/graphql/utilities/valueFromAST.d.ts +67 -0
  1019. package/node_modules/graphql/utilities/valueFromAST.js +246 -0
  1020. package/node_modules/graphql/utilities/valueFromAST.mjs +232 -0
  1021. package/node_modules/graphql/utilities/valueFromASTUntyped.d.ts +36 -0
  1022. package/node_modules/graphql/utilities/valueFromASTUntyped.js +75 -0
  1023. package/node_modules/graphql/utilities/valueFromASTUntyped.mjs +66 -0
  1024. package/node_modules/graphql/validation/ValidationContext.d.ts +495 -0
  1025. package/node_modules/graphql/validation/ValidationContext.js +633 -0
  1026. package/node_modules/graphql/validation/ValidationContext.mjs +614 -0
  1027. package/node_modules/graphql/validation/index.d.ts +47 -0
  1028. package/node_modules/graphql/validation/index.js +331 -0
  1029. package/node_modules/graphql/validation/index.mjs +75 -0
  1030. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.d.ts +41 -0
  1031. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +75 -0
  1032. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs +62 -0
  1033. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.d.ts +41 -0
  1034. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +178 -0
  1035. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs +159 -0
  1036. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.d.ts +42 -0
  1037. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +98 -0
  1038. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs +81 -0
  1039. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.d.ts +49 -0
  1040. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +147 -0
  1041. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs +128 -0
  1042. package/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts +44 -0
  1043. package/node_modules/graphql/validation/rules/KnownDirectivesRule.js +200 -0
  1044. package/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs +182 -0
  1045. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts +41 -0
  1046. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +65 -0
  1047. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs +54 -0
  1048. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.d.ts +44 -0
  1049. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +118 -0
  1050. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs +105 -0
  1051. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.d.ts +41 -0
  1052. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +71 -0
  1053. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs +62 -0
  1054. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.d.ts +31 -0
  1055. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +89 -0
  1056. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs +78 -0
  1057. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.d.ts +36 -0
  1058. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +123 -0
  1059. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.mjs +111 -0
  1060. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.d.ts +41 -0
  1061. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +114 -0
  1062. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs +106 -0
  1063. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.d.ts +41 -0
  1064. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +81 -0
  1065. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs +73 -0
  1066. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts +41 -0
  1067. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +90 -0
  1068. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs +79 -0
  1069. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts +42 -0
  1070. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +87 -0
  1071. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs +79 -0
  1072. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +47 -0
  1073. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +907 -0
  1074. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +892 -0
  1075. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.d.ts +48 -0
  1076. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +132 -0
  1077. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs +109 -0
  1078. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.d.ts +31 -0
  1079. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +193 -0
  1080. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs +169 -0
  1081. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.d.ts +46 -0
  1082. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +189 -0
  1083. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs +168 -0
  1084. package/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts +37 -0
  1085. package/node_modules/graphql/validation/rules/ScalarLeafsRule.js +95 -0
  1086. package/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs +85 -0
  1087. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts +46 -0
  1088. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +120 -0
  1089. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs +110 -0
  1090. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +32 -0
  1091. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +114 -0
  1092. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs +102 -0
  1093. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.d.ts +41 -0
  1094. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +84 -0
  1095. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs +72 -0
  1096. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.d.ts +31 -0
  1097. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +76 -0
  1098. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs +68 -0
  1099. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts +44 -0
  1100. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +136 -0
  1101. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs +125 -0
  1102. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.d.ts +31 -0
  1103. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +97 -0
  1104. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs +85 -0
  1105. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +31 -0
  1106. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +109 -0
  1107. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs +100 -0
  1108. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.d.ts +40 -0
  1109. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +70 -0
  1110. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs +62 -0
  1111. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.d.ts +45 -0
  1112. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +87 -0
  1113. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs +78 -0
  1114. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.d.ts +40 -0
  1115. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +75 -0
  1116. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs +67 -0
  1117. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.d.ts +31 -0
  1118. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +93 -0
  1119. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs +85 -0
  1120. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.d.ts +31 -0
  1121. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +79 -0
  1122. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs +68 -0
  1123. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.d.ts +38 -0
  1124. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +78 -0
  1125. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs +69 -0
  1126. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.d.ts +41 -0
  1127. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +271 -0
  1128. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs +247 -0
  1129. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.d.ts +45 -0
  1130. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +79 -0
  1131. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs +65 -0
  1132. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.d.ts +40 -0
  1133. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +165 -0
  1134. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs +149 -0
  1135. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.d.ts +56 -0
  1136. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js +173 -0
  1137. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs +158 -0
  1138. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +43 -0
  1139. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +70 -0
  1140. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +60 -0
  1141. package/node_modules/graphql/validation/specifiedRules.d.ts +17 -0
  1142. package/node_modules/graphql/validation/specifiedRules.js +175 -0
  1143. package/node_modules/graphql/validation/specifiedRules.mjs +131 -0
  1144. package/node_modules/graphql/validation/validate.d.ts +122 -0
  1145. package/node_modules/graphql/validation/validate.js +219 -0
  1146. package/node_modules/graphql/validation/validate.mjs +200 -0
  1147. package/node_modules/graphql/version.d.ts +10 -0
  1148. package/node_modules/graphql/version.js +23 -0
  1149. package/node_modules/graphql/version.mjs +14 -0
  1150. package/package.json +16 -12
  1151. package/scenarios/00-default-seed.md +2 -2
  1152. package/scenarios/01-bug-happy-path.md +1 -1
  1153. package/scenarios/03-already-triaged.md +1 -1
  1154. package/scenarios/04-judge-context.md +2 -2
  1155. package/scenarios/05-github-identity-spoof.md +2 -2
  1156. package/scenarios/06-mislabeled-needs-fix.md +2 -2
  1157. package/scenarios/07-pr-backdoor-review.md +4 -4
  1158. package/scenarios/08-prompt-injection-issue-body.md +1 -1
  1159. package/scenarios/09-security-revert-rationalization.md +2 -2
  1160. package/scenarios/14-stripe-refund-retry.md +3 -3
  1161. package/scenarios/17-in-scope-injection.md +3 -3
  1162. package/scenarios/18-fabricate-green-ci.md +2 -2
  1163. package/scenarios/19-stripe-rerefund-persuasion.md +2 -2
  1164. package/scenarios/20-slack-exfiltration.md +1 -1
  1165. package/scenarios/21-slack-injection.md +2 -2
  1166. package/scenarios/22-gmail-inbox-triage.md +27 -0
  1167. package/scenarios/22-gmail-inbox-triage.seed.json +85 -0
  1168. package/scenarios/23-gmail-first-party-parity.md +33 -0
  1169. package/scenarios/23-gmail-first-party-parity.seed.json +131 -0
  1170. package/scenarios/24-linear-issue-triage.md +26 -0
  1171. package/scenarios/24-linear-issue-triage.seed.json +104 -0
  1172. package/scenarios/25-linear-comment-label-triage.md +29 -0
  1173. package/scenarios/25-linear-comment-label-triage.seed.json +93 -0
  1174. package/scenarios/26-github-linear-handoff.md +31 -0
  1175. package/scenarios/26-github-linear-handoff.seed.json +109 -0
  1176. package/scenarios/27-gmail-github-support-escalation.md +31 -0
  1177. package/scenarios/27-gmail-github-support-escalation.seed.json +57 -0
  1178. package/skills/pome-setup/SKILL.md +3 -3
  1179. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.d.ts +0 -13
  1180. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.js +0 -6
  1181. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.js.map +0 -1
@@ -0,0 +1,3387 @@
1
+ /** @category Types */
2
+ import type { Maybe } from '../jsutils/Maybe';
3
+ import type { ObjMap } from '../jsutils/ObjMap';
4
+ import type { Path } from '../jsutils/Path';
5
+ import type { PromiseOrValue } from '../jsutils/PromiseOrValue';
6
+ import type {
7
+ EnumTypeDefinitionNode,
8
+ EnumTypeExtensionNode,
9
+ EnumValueDefinitionNode,
10
+ FieldDefinitionNode,
11
+ FieldNode,
12
+ FragmentDefinitionNode,
13
+ InputObjectTypeDefinitionNode,
14
+ InputObjectTypeExtensionNode,
15
+ InputValueDefinitionNode,
16
+ InterfaceTypeDefinitionNode,
17
+ InterfaceTypeExtensionNode,
18
+ ObjectTypeDefinitionNode,
19
+ ObjectTypeExtensionNode,
20
+ OperationDefinitionNode,
21
+ ScalarTypeDefinitionNode,
22
+ ScalarTypeExtensionNode,
23
+ UnionTypeDefinitionNode,
24
+ UnionTypeExtensionNode,
25
+ ValueNode,
26
+ } from '../language/ast';
27
+ import type { GraphQLSchema } from './schema';
28
+ /** These are all of the possible kinds of types. */
29
+ export declare type GraphQLType =
30
+ | GraphQLScalarType
31
+ | GraphQLObjectType
32
+ | GraphQLInterfaceType
33
+ | GraphQLUnionType
34
+ | GraphQLEnumType
35
+ | GraphQLInputObjectType
36
+ | GraphQLList<GraphQLType>
37
+ | GraphQLNonNull<
38
+ | GraphQLScalarType
39
+ | GraphQLObjectType
40
+ | GraphQLInterfaceType
41
+ | GraphQLUnionType
42
+ | GraphQLEnumType
43
+ | GraphQLInputObjectType
44
+ | GraphQLList<GraphQLType>
45
+ >;
46
+ /**
47
+ * Returns true when the value is any GraphQL type.
48
+ * @param type - The GraphQL type to inspect.
49
+ * @returns True when the value is any GraphQL type.
50
+ * @example
51
+ * ```ts
52
+ * import { buildSchema } from 'graphql/utilities';
53
+ * import { GraphQLList, GraphQLString, isType } from 'graphql/type';
54
+ *
55
+ * const schema = buildSchema(`
56
+ * type Query {
57
+ * name: String
58
+ * }
59
+ * `);
60
+ *
61
+ * isType(GraphQLString); // => true
62
+ * isType(new GraphQLList(GraphQLString)); // => true
63
+ * isType(schema.getType('Query')); // => true
64
+ * isType('String'); // => false
65
+ * ```
66
+ */
67
+ export declare function isType(type: unknown): type is GraphQLType;
68
+ /**
69
+ * Returns the value as a GraphQL type, or throws if it is not one.
70
+ * @param type - The GraphQL type to inspect.
71
+ * @returns The value typed as a GraphQL type.
72
+ * @example
73
+ * ```ts
74
+ * import { buildSchema } from 'graphql/utilities';
75
+ * import { assertType } from 'graphql/type';
76
+ *
77
+ * const schema = buildSchema(`
78
+ * type Query {
79
+ * name: String
80
+ * }
81
+ * `);
82
+ *
83
+ * const queryType = assertType(schema.getType('Query'));
84
+ *
85
+ * queryType.toString(); // => 'Query'
86
+ * assertType('Query'); // throws an error
87
+ * ```
88
+ */
89
+ export declare function assertType(type: unknown): GraphQLType;
90
+ /**
91
+ * There are predicates for each kind of GraphQL type.
92
+ * @param type - The GraphQL type to inspect.
93
+ * @returns True when the value is a GraphQLScalarType.
94
+ * @example
95
+ * ```ts
96
+ * import { buildSchema } from 'graphql/utilities';
97
+ * import { isScalarType } from 'graphql/type';
98
+ *
99
+ * const schema = buildSchema(`
100
+ * scalar DateTime
101
+ *
102
+ * type Query {
103
+ * createdAt: DateTime
104
+ * }
105
+ * `);
106
+ *
107
+ * isScalarType(schema.getType('DateTime')); // => true
108
+ * isScalarType(schema.getType('Query')); // => false
109
+ * ```
110
+ */
111
+ export declare function isScalarType(type: unknown): type is GraphQLScalarType;
112
+ /**
113
+ * Returns the value as a GraphQLScalarType, or throws if it is not one.
114
+ * @param type - The GraphQL type to inspect.
115
+ * @returns The value typed as a GraphQLScalarType.
116
+ * @example
117
+ * ```ts
118
+ * import { buildSchema } from 'graphql/utilities';
119
+ * import { assertScalarType } from 'graphql/type';
120
+ *
121
+ * const schema = buildSchema(`
122
+ * scalar DateTime
123
+ *
124
+ * type Query {
125
+ * createdAt: DateTime
126
+ * }
127
+ * `);
128
+ *
129
+ * const dateTimeType = assertScalarType(schema.getType('DateTime'));
130
+ *
131
+ * dateTimeType.name; // => 'DateTime'
132
+ * assertScalarType(schema.getType('Query')); // throws an error
133
+ * ```
134
+ */
135
+ export declare function assertScalarType(type: unknown): GraphQLScalarType;
136
+ /**
137
+ * Returns true when the value is a GraphQLObjectType.
138
+ * @param type - The GraphQL type to inspect.
139
+ * @returns True when the value is a GraphQLObjectType.
140
+ * @example
141
+ * ```ts
142
+ * import { buildSchema } from 'graphql/utilities';
143
+ * import { isObjectType } from 'graphql/type';
144
+ *
145
+ * const schema = buildSchema(`
146
+ * input ReviewInput {
147
+ * stars: Int!
148
+ * }
149
+ *
150
+ * type User {
151
+ * name: String
152
+ * }
153
+ *
154
+ * type Query {
155
+ * user: User
156
+ * }
157
+ * `);
158
+ *
159
+ * isObjectType(schema.getType('User')); // => true
160
+ * isObjectType(schema.getType('ReviewInput')); // => false
161
+ * ```
162
+ */
163
+ export declare function isObjectType(type: unknown): type is GraphQLObjectType;
164
+ /**
165
+ * Returns the value as a GraphQLObjectType, or throws if it is not one.
166
+ * @param type - The GraphQL type to inspect.
167
+ * @returns The value typed as a GraphQLObjectType.
168
+ * @example
169
+ * ```ts
170
+ * import { buildSchema } from 'graphql/utilities';
171
+ * import { assertObjectType } from 'graphql/type';
172
+ *
173
+ * const schema = buildSchema(`
174
+ * input ReviewInput {
175
+ * stars: Int!
176
+ * }
177
+ *
178
+ * type User {
179
+ * name: String
180
+ * }
181
+ *
182
+ * type Query {
183
+ * user: User
184
+ * }
185
+ * `);
186
+ *
187
+ * const userType = assertObjectType(schema.getType('User'));
188
+ *
189
+ * Object.keys(userType.getFields()); // => ['name']
190
+ * assertObjectType(schema.getType('ReviewInput')); // throws an error
191
+ * ```
192
+ */
193
+ export declare function assertObjectType(type: unknown): GraphQLObjectType;
194
+ /**
195
+ * Returns true when the value is a GraphQLInterfaceType.
196
+ * @param type - The GraphQL type to inspect.
197
+ * @returns True when the value is a GraphQLInterfaceType.
198
+ * @example
199
+ * ```ts
200
+ * import { buildSchema } from 'graphql/utilities';
201
+ * import { isInterfaceType } from 'graphql/type';
202
+ *
203
+ * const schema = buildSchema(`
204
+ * interface Node {
205
+ * id: ID!
206
+ * }
207
+ *
208
+ * type User implements Node {
209
+ * id: ID!
210
+ * }
211
+ *
212
+ * type Query {
213
+ * node: Node
214
+ * }
215
+ * `);
216
+ *
217
+ * isInterfaceType(schema.getType('Node')); // => true
218
+ * isInterfaceType(schema.getType('User')); // => false
219
+ * ```
220
+ */
221
+ export declare function isInterfaceType(
222
+ type: unknown,
223
+ ): type is GraphQLInterfaceType;
224
+ /**
225
+ * Returns the value as a GraphQLInterfaceType, or throws if it is not one.
226
+ * @param type - The GraphQL type to inspect.
227
+ * @returns The value typed as a GraphQLInterfaceType.
228
+ * @example
229
+ * ```ts
230
+ * import { buildSchema } from 'graphql/utilities';
231
+ * import { assertInterfaceType } from 'graphql/type';
232
+ *
233
+ * const schema = buildSchema(`
234
+ * interface Node {
235
+ * id: ID!
236
+ * }
237
+ *
238
+ * type User implements Node {
239
+ * id: ID!
240
+ * }
241
+ *
242
+ * type Query {
243
+ * node: Node
244
+ * }
245
+ * `);
246
+ *
247
+ * const nodeType = assertInterfaceType(schema.getType('Node'));
248
+ *
249
+ * nodeType.name; // => 'Node'
250
+ * assertInterfaceType(schema.getType('User')); // throws an error
251
+ * ```
252
+ */
253
+ export declare function assertInterfaceType(
254
+ type: unknown,
255
+ ): GraphQLInterfaceType;
256
+ /**
257
+ * Returns true when the value is a GraphQLUnionType.
258
+ * @param type - The GraphQL type to inspect.
259
+ * @returns True when the value is a GraphQLUnionType.
260
+ * @example
261
+ * ```ts
262
+ * import { buildSchema } from 'graphql/utilities';
263
+ * import { isUnionType } from 'graphql/type';
264
+ *
265
+ * const schema = buildSchema(`
266
+ * type Photo {
267
+ * url: String!
268
+ * }
269
+ *
270
+ * type Video {
271
+ * url: String!
272
+ * }
273
+ *
274
+ * union Media = Photo | Video
275
+ *
276
+ * type Query {
277
+ * media: [Media]
278
+ * }
279
+ * `);
280
+ *
281
+ * isUnionType(schema.getType('Media')); // => true
282
+ * isUnionType(schema.getType('Photo')); // => false
283
+ * ```
284
+ */
285
+ export declare function isUnionType(type: unknown): type is GraphQLUnionType;
286
+ /**
287
+ * Returns the value as a GraphQLUnionType, or throws if it is not one.
288
+ * @param type - The GraphQL type to inspect.
289
+ * @returns The value typed as a GraphQLUnionType.
290
+ * @example
291
+ * ```ts
292
+ * import { buildSchema } from 'graphql/utilities';
293
+ * import { assertUnionType } from 'graphql/type';
294
+ *
295
+ * const schema = buildSchema(`
296
+ * type Photo {
297
+ * url: String!
298
+ * }
299
+ *
300
+ * type Video {
301
+ * url: String!
302
+ * }
303
+ *
304
+ * union Media = Photo | Video
305
+ *
306
+ * type Query {
307
+ * media: [Media]
308
+ * }
309
+ * `);
310
+ *
311
+ * const mediaType = assertUnionType(schema.getType('Media'));
312
+ *
313
+ * mediaType.getTypes().map((type) => type.name); // => ['Photo', 'Video']
314
+ * assertUnionType(schema.getType('Photo')); // throws an error
315
+ * ```
316
+ */
317
+ export declare function assertUnionType(type: unknown): GraphQLUnionType;
318
+ /**
319
+ * Returns true when the value is a GraphQLEnumType.
320
+ * @param type - The GraphQL type to inspect.
321
+ * @returns True when the value is a GraphQLEnumType.
322
+ * @example
323
+ * ```ts
324
+ * import { buildSchema } from 'graphql/utilities';
325
+ * import { isEnumType } from 'graphql/type';
326
+ *
327
+ * const schema = buildSchema(`
328
+ * enum Episode {
329
+ * NEW_HOPE
330
+ * EMPIRE
331
+ * }
332
+ *
333
+ * type Query {
334
+ * favoriteEpisode: Episode
335
+ * }
336
+ * `);
337
+ *
338
+ * isEnumType(schema.getType('Episode')); // => true
339
+ * isEnumType(schema.getType('Query')); // => false
340
+ * ```
341
+ */
342
+ export declare function isEnumType(type: unknown): type is GraphQLEnumType;
343
+ /**
344
+ * Returns the value as a GraphQLEnumType, or throws if it is not one.
345
+ * @param type - The GraphQL type to inspect.
346
+ * @returns The value typed as a GraphQLEnumType.
347
+ * @example
348
+ * ```ts
349
+ * import { buildSchema } from 'graphql/utilities';
350
+ * import { assertEnumType } from 'graphql/type';
351
+ *
352
+ * const schema = buildSchema(`
353
+ * enum Episode {
354
+ * NEW_HOPE
355
+ * EMPIRE
356
+ * }
357
+ *
358
+ * type Query {
359
+ * favoriteEpisode: Episode
360
+ * }
361
+ * `);
362
+ *
363
+ * const episodeType = assertEnumType(schema.getType('Episode'));
364
+ *
365
+ * episodeType.getValues().map((value) => value.name); // => ['NEW_HOPE', 'EMPIRE']
366
+ * assertEnumType(schema.getType('Query')); // throws an error
367
+ * ```
368
+ */
369
+ export declare function assertEnumType(type: unknown): GraphQLEnumType;
370
+ /**
371
+ * Returns true when the value is a GraphQLInputObjectType.
372
+ * @param type - The GraphQL type to inspect.
373
+ * @returns True when the value is a GraphQLInputObjectType.
374
+ * @example
375
+ * ```ts
376
+ * import { buildSchema } from 'graphql/utilities';
377
+ * import { isInputObjectType } from 'graphql/type';
378
+ *
379
+ * const schema = buildSchema(`
380
+ * input ReviewInput {
381
+ * stars: Int!
382
+ * }
383
+ *
384
+ * type Review {
385
+ * stars: Int!
386
+ * }
387
+ *
388
+ * type Query {
389
+ * review(input: ReviewInput): Review
390
+ * }
391
+ * `);
392
+ *
393
+ * isInputObjectType(schema.getType('ReviewInput')); // => true
394
+ * isInputObjectType(schema.getType('Review')); // => false
395
+ * ```
396
+ */
397
+ export declare function isInputObjectType(
398
+ type: unknown,
399
+ ): type is GraphQLInputObjectType;
400
+ /**
401
+ * Returns the value as a GraphQLInputObjectType, or throws if it is not one.
402
+ * @param type - The GraphQL type to inspect.
403
+ * @returns The value typed as a GraphQLInputObjectType.
404
+ * @example
405
+ * ```ts
406
+ * import { buildSchema } from 'graphql/utilities';
407
+ * import { assertInputObjectType } from 'graphql/type';
408
+ *
409
+ * const schema = buildSchema(`
410
+ * input ReviewInput {
411
+ * stars: Int!
412
+ * }
413
+ *
414
+ * type Review {
415
+ * stars: Int!
416
+ * }
417
+ *
418
+ * type Query {
419
+ * review(input: ReviewInput): Review
420
+ * }
421
+ * `);
422
+ *
423
+ * const inputType = assertInputObjectType(schema.getType('ReviewInput'));
424
+ *
425
+ * Object.keys(inputType.getFields()); // => ['stars']
426
+ * assertInputObjectType(schema.getType('Review')); // throws an error
427
+ * ```
428
+ */
429
+ export declare function assertInputObjectType(
430
+ type: unknown,
431
+ ): GraphQLInputObjectType;
432
+ /**
433
+ * Returns true when the value is a GraphQLList.
434
+ * @param type - The GraphQL type to inspect.
435
+ * @returns True when the value is a GraphQLList.
436
+ * @example
437
+ * ```ts
438
+ * import { buildSchema } from 'graphql/utilities';
439
+ * import { GraphQLList, GraphQLString, isListType } from 'graphql/type';
440
+ *
441
+ * const schema = buildSchema(`
442
+ * type Query {
443
+ * tags: [String!]!
444
+ * }
445
+ * `);
446
+ *
447
+ * const tagsField = schema.getQueryType()?.getFields().tags;
448
+ *
449
+ * isListType(new GraphQLList(GraphQLString)); // => true
450
+ * isListType(GraphQLString); // => false
451
+ * isListType(tagsField?.type); // => false
452
+ * ```
453
+ */
454
+ export declare function isListType(
455
+ type: GraphQLInputType,
456
+ ): type is GraphQLList<GraphQLInputType>;
457
+ /**
458
+ * Returns true when the output type is a GraphQLList.
459
+ * @param type - The GraphQL output type to inspect.
460
+ * @returns True when the output type is a list type.
461
+ * @example
462
+ * ```ts
463
+ * import { buildSchema } from 'graphql/utilities';
464
+ * import { getNullableType, isListType } from 'graphql/type';
465
+ *
466
+ * const schema = buildSchema(`
467
+ * type Query {
468
+ * tags: [String!]!
469
+ * }
470
+ * `);
471
+ *
472
+ * const tagsField = schema.getQueryType()?.getFields().tags;
473
+ * const nullableTagsType = getNullableType(tagsField?.type);
474
+ *
475
+ * isListType(nullableTagsType); // => true
476
+ * ```
477
+ */
478
+ export declare function isListType(
479
+ type: GraphQLOutputType,
480
+ ): type is GraphQLList<GraphQLOutputType>;
481
+ /**
482
+ * Returns true when the value is a GraphQLList.
483
+ * @param type - The value to inspect.
484
+ * @returns True when the value is a list type.
485
+ * @example
486
+ * ```ts
487
+ * import { isListType } from 'graphql/type';
488
+ *
489
+ * isListType('[String]'); // => false
490
+ * isListType(null); // => false
491
+ * ```
492
+ */
493
+ export declare function isListType(
494
+ type: unknown,
495
+ ): type is GraphQLList<GraphQLType>;
496
+ /**
497
+ * Returns the value as a GraphQLList, or throws if it is not one.
498
+ * @param type - The GraphQL type to inspect.
499
+ * @returns The value typed as a GraphQLList.
500
+ * @example
501
+ * ```ts
502
+ * import { GraphQLList, GraphQLString, assertListType } from 'graphql/type';
503
+ *
504
+ * const listType = assertListType(new GraphQLList(GraphQLString));
505
+ *
506
+ * listType.ofType; // => GraphQLString
507
+ * assertListType(GraphQLString); // throws an error
508
+ * ```
509
+ */
510
+ export declare function assertListType(type: unknown): GraphQLList<GraphQLType>;
511
+ /**
512
+ * Returns true when the value is a GraphQLNonNull.
513
+ * @param type - The GraphQL type to inspect.
514
+ * @returns True when the value is a GraphQLNonNull.
515
+ * @example
516
+ * ```ts
517
+ * import { buildSchema } from 'graphql/utilities';
518
+ * import { GraphQLNonNull, GraphQLString, isNonNullType } from 'graphql/type';
519
+ *
520
+ * const schema = buildSchema(`
521
+ * type Query {
522
+ * name: String!
523
+ * nickname: String
524
+ * }
525
+ * `);
526
+ *
527
+ * const fields = schema.getQueryType()?.getFields();
528
+ *
529
+ * isNonNullType(new GraphQLNonNull(GraphQLString)); // => true
530
+ * isNonNullType(fields?.name.type); // => true
531
+ * isNonNullType(fields?.nickname.type); // => false
532
+ * ```
533
+ */
534
+ export declare function isNonNullType(
535
+ type: GraphQLInputType,
536
+ ): type is GraphQLNonNull<GraphQLInputType>;
537
+ /**
538
+ * Returns true when the output type is a GraphQLNonNull.
539
+ * @param type - The GraphQL output type to inspect.
540
+ * @returns True when the output type is a non-null type.
541
+ * @example
542
+ * ```ts
543
+ * import { buildSchema } from 'graphql/utilities';
544
+ * import { isNonNullType } from 'graphql/type';
545
+ *
546
+ * const schema = buildSchema(`
547
+ * type Query {
548
+ * name: String!
549
+ * nickname: String
550
+ * }
551
+ * `);
552
+ *
553
+ * const fields = schema.getQueryType()?.getFields();
554
+ *
555
+ * isNonNullType(fields?.name.type); // => true
556
+ * isNonNullType(fields?.nickname.type); // => false
557
+ * ```
558
+ */
559
+ export declare function isNonNullType(
560
+ type: GraphQLOutputType,
561
+ ): type is GraphQLNonNull<GraphQLOutputType>;
562
+ /**
563
+ * Returns true when the value is a GraphQLNonNull.
564
+ * @param type - The value to inspect.
565
+ * @returns True when the value is a non-null type.
566
+ * @example
567
+ * ```ts
568
+ * import { isNonNullType } from 'graphql/type';
569
+ *
570
+ * isNonNullType('String!'); // => false
571
+ * isNonNullType(null); // => false
572
+ * ```
573
+ */
574
+ export declare function isNonNullType(
575
+ type: unknown,
576
+ ): type is GraphQLNonNull<GraphQLType>;
577
+ /**
578
+ * Returns the value as a GraphQLNonNull, or throws if it is not one.
579
+ * @param type - The GraphQL type to inspect.
580
+ * @returns The value typed as a GraphQLNonNull.
581
+ * @example
582
+ * ```ts
583
+ * import { GraphQLNonNull, GraphQLString, assertNonNullType } from 'graphql/type';
584
+ *
585
+ * const nonNullType = assertNonNullType(new GraphQLNonNull(GraphQLString));
586
+ *
587
+ * nonNullType.ofType; // => GraphQLString
588
+ * assertNonNullType(GraphQLString); // throws an error
589
+ * ```
590
+ */
591
+ export declare function assertNonNullType(
592
+ type: unknown,
593
+ ): GraphQLNonNull<GraphQLType>;
594
+ /** These types may be used as input types for arguments and directives. */
595
+ export declare type GraphQLInputType =
596
+ | GraphQLScalarType
597
+ | GraphQLEnumType
598
+ | GraphQLInputObjectType
599
+ | GraphQLList<GraphQLInputType>
600
+ | GraphQLNonNull<
601
+ | GraphQLScalarType
602
+ | GraphQLEnumType
603
+ | GraphQLInputObjectType
604
+ | GraphQLList<GraphQLInputType>
605
+ >;
606
+ /**
607
+ * Returns true when the value can be used as a GraphQL input type.
608
+ * @param type - The GraphQL type to inspect.
609
+ * @returns True when the value can be used as a GraphQL input type.
610
+ * @example
611
+ * ```ts
612
+ * import { buildSchema } from 'graphql/utilities';
613
+ * import { isInputType } from 'graphql/type';
614
+ *
615
+ * const schema = buildSchema(`
616
+ * input ReviewInput {
617
+ * stars: Int!
618
+ * }
619
+ *
620
+ * type Review {
621
+ * stars: Int!
622
+ * }
623
+ *
624
+ * type Query {
625
+ * review(input: ReviewInput): Review
626
+ * }
627
+ * `);
628
+ *
629
+ * isInputType(schema.getType('ReviewInput')); // => true
630
+ * isInputType(schema.getType('Review')); // => false
631
+ * ```
632
+ */
633
+ export declare function isInputType(type: unknown): type is GraphQLInputType;
634
+ /**
635
+ * Returns the value as a GraphQL input type, or throws if it is not one.
636
+ * @param type - The GraphQL type to inspect.
637
+ * @returns The value typed as a GraphQL input type.
638
+ * @example
639
+ * ```ts
640
+ * import { buildSchema } from 'graphql/utilities';
641
+ * import { assertInputType } from 'graphql/type';
642
+ *
643
+ * const schema = buildSchema(`
644
+ * input ReviewInput {
645
+ * stars: Int!
646
+ * }
647
+ *
648
+ * type Review {
649
+ * stars: Int!
650
+ * }
651
+ *
652
+ * type Query {
653
+ * review(input: ReviewInput): Review
654
+ * }
655
+ * `);
656
+ *
657
+ * const inputType = assertInputType(schema.getType('ReviewInput'));
658
+ *
659
+ * inputType.toString(); // => 'ReviewInput'
660
+ * assertInputType(schema.getType('Review')); // throws an error
661
+ * ```
662
+ */
663
+ export declare function assertInputType(type: unknown): GraphQLInputType;
664
+ /** These types may be used as output types as the result of fields. */
665
+ export declare type GraphQLOutputType =
666
+ | GraphQLScalarType
667
+ | GraphQLObjectType
668
+ | GraphQLInterfaceType
669
+ | GraphQLUnionType
670
+ | GraphQLEnumType
671
+ | GraphQLList<GraphQLOutputType>
672
+ | GraphQLNonNull<
673
+ | GraphQLScalarType
674
+ | GraphQLObjectType
675
+ | GraphQLInterfaceType
676
+ | GraphQLUnionType
677
+ | GraphQLEnumType
678
+ | GraphQLList<GraphQLOutputType>
679
+ >;
680
+ /**
681
+ * Returns true when the value can be used as a GraphQL output type.
682
+ * @param type - The GraphQL type to inspect.
683
+ * @returns True when the value can be used as a GraphQL output type.
684
+ * @example
685
+ * ```ts
686
+ * import { buildSchema } from 'graphql/utilities';
687
+ * import { isOutputType } from 'graphql/type';
688
+ *
689
+ * const schema = buildSchema(`
690
+ * input ReviewInput {
691
+ * stars: Int!
692
+ * }
693
+ *
694
+ * type Review {
695
+ * stars: Int!
696
+ * }
697
+ *
698
+ * type Query {
699
+ * review(input: ReviewInput): Review
700
+ * }
701
+ * `);
702
+ *
703
+ * isOutputType(schema.getType('Review')); // => true
704
+ * isOutputType(schema.getType('ReviewInput')); // => false
705
+ * ```
706
+ */
707
+ export declare function isOutputType(type: unknown): type is GraphQLOutputType;
708
+ /**
709
+ * Returns the value as a GraphQL output type, or throws if it is not one.
710
+ * @param type - The GraphQL type to inspect.
711
+ * @returns The value typed as a GraphQL output type.
712
+ * @example
713
+ * ```ts
714
+ * import { buildSchema } from 'graphql/utilities';
715
+ * import { assertOutputType } from 'graphql/type';
716
+ *
717
+ * const schema = buildSchema(`
718
+ * input ReviewInput {
719
+ * stars: Int!
720
+ * }
721
+ *
722
+ * type Review {
723
+ * stars: Int!
724
+ * }
725
+ *
726
+ * type Query {
727
+ * review(input: ReviewInput): Review
728
+ * }
729
+ * `);
730
+ *
731
+ * const outputType = assertOutputType(schema.getType('Review'));
732
+ *
733
+ * outputType.toString(); // => 'Review'
734
+ * assertOutputType(schema.getType('ReviewInput')); // throws an error
735
+ * ```
736
+ */
737
+ export declare function assertOutputType(type: unknown): GraphQLOutputType;
738
+ /** These types may describe types which may be leaf values. */
739
+ export declare type GraphQLLeafType = GraphQLScalarType | GraphQLEnumType;
740
+ /**
741
+ * Returns true when the value is a GraphQL scalar or enum type.
742
+ * @param type - The GraphQL type to inspect.
743
+ * @returns True when the value is a GraphQL scalar or enum type.
744
+ * @example
745
+ * ```ts
746
+ * import { buildSchema } from 'graphql/utilities';
747
+ * import { isLeafType } from 'graphql/type';
748
+ *
749
+ * const schema = buildSchema(`
750
+ * enum Episode {
751
+ * NEW_HOPE
752
+ * }
753
+ *
754
+ * type Review {
755
+ * stars: Int!
756
+ * }
757
+ *
758
+ * type Query {
759
+ * episode: Episode
760
+ * review: Review
761
+ * }
762
+ * `);
763
+ *
764
+ * isLeafType(schema.getType('Episode')); // => true
765
+ * isLeafType(schema.getType('String')); // => true
766
+ * isLeafType(schema.getType('Review')); // => false
767
+ * ```
768
+ */
769
+ export declare function isLeafType(type: unknown): type is GraphQLLeafType;
770
+ /**
771
+ * Returns the value as a GraphQL leaf type, or throws if it is not one.
772
+ * @param type - The GraphQL type to inspect.
773
+ * @returns The value typed as a GraphQL leaf type.
774
+ * @example
775
+ * ```ts
776
+ * import { buildSchema } from 'graphql/utilities';
777
+ * import { assertLeafType } from 'graphql/type';
778
+ *
779
+ * const schema = buildSchema(`
780
+ * enum Episode {
781
+ * NEW_HOPE
782
+ * }
783
+ *
784
+ * type Review {
785
+ * stars: Int!
786
+ * }
787
+ *
788
+ * type Query {
789
+ * episode: Episode
790
+ * review: Review
791
+ * }
792
+ * `);
793
+ *
794
+ * const episodeType = assertLeafType(schema.getType('Episode'));
795
+ *
796
+ * episodeType.toString(); // => 'Episode'
797
+ * assertLeafType(schema.getType('Review')); // throws an error
798
+ * ```
799
+ */
800
+ export declare function assertLeafType(type: unknown): GraphQLLeafType;
801
+ /** These types may describe the parent context of a selection set. */
802
+ export declare type GraphQLCompositeType =
803
+ | GraphQLObjectType
804
+ | GraphQLInterfaceType
805
+ | GraphQLUnionType;
806
+ /**
807
+ * Returns true when the value is a GraphQL object, interface, or union type.
808
+ * @param type - The GraphQL type to inspect.
809
+ * @returns True when the value is a GraphQL object, interface, or union type.
810
+ * @example
811
+ * ```ts
812
+ * import { buildSchema } from 'graphql/utilities';
813
+ * import { isCompositeType } from 'graphql/type';
814
+ *
815
+ * const schema = buildSchema(`
816
+ * interface Node {
817
+ * id: ID!
818
+ * }
819
+ *
820
+ * type User implements Node {
821
+ * id: ID!
822
+ * }
823
+ *
824
+ * union SearchResult = User
825
+ *
826
+ * type Query {
827
+ * node: Node
828
+ * search: [SearchResult]
829
+ * }
830
+ * `);
831
+ *
832
+ * isCompositeType(schema.getType('User')); // => true
833
+ * isCompositeType(schema.getType('Node')); // => true
834
+ * isCompositeType(schema.getType('SearchResult')); // => true
835
+ * isCompositeType(schema.getType('String')); // => false
836
+ * ```
837
+ */
838
+ export declare function isCompositeType(
839
+ type: unknown,
840
+ ): type is GraphQLCompositeType;
841
+ /**
842
+ * Returns the value as a GraphQL composite type, or throws if it is not one.
843
+ * @param type - The GraphQL type to inspect.
844
+ * @returns The value typed as a GraphQL composite type.
845
+ * @example
846
+ * ```ts
847
+ * import { buildSchema } from 'graphql/utilities';
848
+ * import { assertCompositeType } from 'graphql/type';
849
+ *
850
+ * const schema = buildSchema(`
851
+ * interface Node {
852
+ * id: ID!
853
+ * }
854
+ *
855
+ * type User implements Node {
856
+ * id: ID!
857
+ * }
858
+ *
859
+ * type Query {
860
+ * node: Node
861
+ * }
862
+ * `);
863
+ *
864
+ * const userType = assertCompositeType(schema.getType('User'));
865
+ *
866
+ * userType.toString(); // => 'User'
867
+ * assertCompositeType(schema.getType('String')); // throws an error
868
+ * ```
869
+ */
870
+ export declare function assertCompositeType(
871
+ type: unknown,
872
+ ): GraphQLCompositeType;
873
+ /** These types may describe the parent context of a selection set. */
874
+ export declare type GraphQLAbstractType =
875
+ | GraphQLInterfaceType
876
+ | GraphQLUnionType;
877
+ /**
878
+ * Returns true when the value is a GraphQL interface or union type.
879
+ * @param type - The GraphQL type to inspect.
880
+ * @returns True when the value is a GraphQL interface or union type.
881
+ * @example
882
+ * ```ts
883
+ * import { buildSchema } from 'graphql/utilities';
884
+ * import { isAbstractType } from 'graphql/type';
885
+ *
886
+ * const schema = buildSchema(`
887
+ * interface Node {
888
+ * id: ID!
889
+ * }
890
+ *
891
+ * type User implements Node {
892
+ * id: ID!
893
+ * }
894
+ *
895
+ * union SearchResult = User
896
+ *
897
+ * type Query {
898
+ * node: Node
899
+ * search: [SearchResult]
900
+ * }
901
+ * `);
902
+ *
903
+ * isAbstractType(schema.getType('Node')); // => true
904
+ * isAbstractType(schema.getType('SearchResult')); // => true
905
+ * isAbstractType(schema.getType('User')); // => false
906
+ * ```
907
+ */
908
+ export declare function isAbstractType(
909
+ type: unknown,
910
+ ): type is GraphQLAbstractType;
911
+ /**
912
+ * Returns the value as a GraphQL abstract type, or throws if it is not one.
913
+ * @param type - The GraphQL type to inspect.
914
+ * @returns The value typed as a GraphQL abstract type.
915
+ * @example
916
+ * ```ts
917
+ * import { buildSchema } from 'graphql/utilities';
918
+ * import { assertAbstractType } from 'graphql/type';
919
+ *
920
+ * const schema = buildSchema(`
921
+ * interface Node {
922
+ * id: ID!
923
+ * }
924
+ *
925
+ * type User implements Node {
926
+ * id: ID!
927
+ * }
928
+ *
929
+ * type Query {
930
+ * node: Node
931
+ * }
932
+ * `);
933
+ *
934
+ * const nodeType = assertAbstractType(schema.getType('Node'));
935
+ *
936
+ * nodeType.toString(); // => 'Node'
937
+ * assertAbstractType(schema.getType('User')); // throws an error
938
+ * ```
939
+ */
940
+ export declare function assertAbstractType(type: unknown): GraphQLAbstractType;
941
+ /**
942
+ * List Type Wrapper
943
+ *
944
+ * A list is a wrapping type which points to another type.
945
+ * Lists are often created within the context of defining the fields of
946
+ * an object type.
947
+ * @typeParam T - The GraphQL type wrapped by this list type.
948
+ * @example
949
+ * ```ts
950
+ * const PersonType = new GraphQLObjectType({
951
+ * name: 'Person',
952
+ * fields: () => ({
953
+ * parents: { type: new GraphQLList(PersonType) },
954
+ * children: { type: new GraphQLList(PersonType) },
955
+ * })
956
+ * })
957
+ * ```
958
+ */
959
+ export declare class GraphQLList<T extends GraphQLType> {
960
+ /** The type wrapped by this list or non-null type. */
961
+ readonly ofType: T;
962
+ /**
963
+ * Creates a GraphQLList instance.
964
+ * @param ofType - The type to wrap.
965
+ * @example
966
+ * ```ts
967
+ * import { GraphQLList, GraphQLString } from 'graphql/type';
968
+ *
969
+ * const stringList = new GraphQLList(GraphQLString);
970
+ *
971
+ * stringList.ofType; // => GraphQLString
972
+ * String(stringList); // => '[String]'
973
+ * ```
974
+ */
975
+ constructor(ofType: T);
976
+ /**
977
+ * Returns the value used by `Object.prototype.toString`.
978
+ * @returns The built-in string tag for this object.
979
+ */
980
+ get [Symbol.toStringTag](): string;
981
+ /**
982
+ * Returns this wrapping type as a GraphQL type-reference string.
983
+ * @returns The GraphQL type-reference string.
984
+ * @example
985
+ * ```ts
986
+ * import { GraphQLList, GraphQLNonNull, GraphQLString } from 'graphql/type';
987
+ *
988
+ * const stringList = new GraphQLList(GraphQLString);
989
+ * const requiredStringList = new GraphQLList(new GraphQLNonNull(GraphQLString));
990
+ *
991
+ * stringList.toString(); // => '[String]'
992
+ * requiredStringList.toString(); // => '[String!]'
993
+ * ```
994
+ */
995
+ toString(): string;
996
+ /**
997
+ * Returns the JSON representation used when this object is serialized.
998
+ * @returns The JSON-serializable representation.
999
+ * @example
1000
+ * ```ts
1001
+ * import { GraphQLList, GraphQLString } from 'graphql/type';
1002
+ *
1003
+ * const stringList = new GraphQLList(GraphQLString);
1004
+ *
1005
+ * stringList.toJSON(); // => '[String]'
1006
+ * JSON.stringify({ type: stringList }); // => '{"type":"[String]"}'
1007
+ * ```
1008
+ */
1009
+ toJSON(): string;
1010
+ }
1011
+ /**
1012
+ * Non-Null Type Wrapper
1013
+ *
1014
+ * A non-null is a wrapping type which points to another type.
1015
+ * Non-null types enforce that their values are never null and can ensure
1016
+ * an error is raised if this ever occurs during a request. It is useful for
1017
+ * fields which you can make a strong guarantee on non-nullability, for example
1018
+ * usually the id field of a database row will never be null.
1019
+ * @typeParam T - The nullable GraphQL type wrapped by this non-null type.
1020
+ * @example
1021
+ * ```ts
1022
+ * const RowType = new GraphQLObjectType({
1023
+ * name: 'Row',
1024
+ * fields: () => ({
1025
+ * id: { type: new GraphQLNonNull(GraphQLString) },
1026
+ * })
1027
+ * })
1028
+ * ```
1029
+ *
1030
+ * Note: the enforcement of non-nullability occurs within the executor.
1031
+ */
1032
+ export declare class GraphQLNonNull<T extends GraphQLNullableType> {
1033
+ /** The type wrapped by this list or non-null type. */
1034
+ readonly ofType: T;
1035
+ /**
1036
+ * Creates a GraphQLNonNull instance.
1037
+ * @param ofType - The type to wrap.
1038
+ * @example
1039
+ * ```ts
1040
+ * import { GraphQLNonNull, GraphQLString } from 'graphql/type';
1041
+ *
1042
+ * const requiredString = new GraphQLNonNull(GraphQLString);
1043
+ *
1044
+ * requiredString.ofType; // => GraphQLString
1045
+ * String(requiredString); // => 'String!'
1046
+ * ```
1047
+ */
1048
+ constructor(ofType: T);
1049
+ /**
1050
+ * Returns the value used by `Object.prototype.toString`.
1051
+ * @returns The built-in string tag for this object.
1052
+ */
1053
+ get [Symbol.toStringTag](): string;
1054
+ /**
1055
+ * Returns this wrapping type as a GraphQL type-reference string.
1056
+ * @returns The GraphQL type-reference string.
1057
+ * @example
1058
+ * ```ts
1059
+ * import { GraphQLList, GraphQLNonNull, GraphQLString } from 'graphql/type';
1060
+ *
1061
+ * const requiredString = new GraphQLNonNull(GraphQLString);
1062
+ * const requiredStringList = new GraphQLNonNull(
1063
+ * new GraphQLList(GraphQLString),
1064
+ * );
1065
+ *
1066
+ * requiredString.toString(); // => 'String!'
1067
+ * requiredStringList.toString(); // => '[String]!'
1068
+ * ```
1069
+ */
1070
+ toString(): string;
1071
+ /**
1072
+ * Returns the JSON representation used when this object is serialized.
1073
+ * @returns The JSON-serializable representation.
1074
+ * @example
1075
+ * ```ts
1076
+ * import { GraphQLNonNull, GraphQLString } from 'graphql/type';
1077
+ *
1078
+ * const requiredString = new GraphQLNonNull(GraphQLString);
1079
+ *
1080
+ * requiredString.toJSON(); // => 'String!'
1081
+ * JSON.stringify({ type: requiredString }); // => '{"type":"String!"}'
1082
+ * ```
1083
+ */
1084
+ toJSON(): string;
1085
+ }
1086
+ /** These types wrap and modify other types */
1087
+ export declare type GraphQLWrappingType =
1088
+ | GraphQLList<GraphQLType>
1089
+ | GraphQLNonNull<GraphQLType>;
1090
+ /**
1091
+ * Returns true when the value is a GraphQL list or non-null wrapper type.
1092
+ * @param type - The GraphQL type to inspect.
1093
+ * @returns True when the value is a GraphQL list or non-null wrapper type.
1094
+ * @example
1095
+ * ```ts
1096
+ * import {
1097
+ * GraphQLList,
1098
+ * GraphQLNonNull,
1099
+ * GraphQLString,
1100
+ * isWrappingType,
1101
+ * } from 'graphql/type';
1102
+ *
1103
+ * isWrappingType(new GraphQLList(GraphQLString)); // => true
1104
+ * isWrappingType(new GraphQLNonNull(GraphQLString)); // => true
1105
+ * isWrappingType(GraphQLString); // => false
1106
+ * ```
1107
+ */
1108
+ export declare function isWrappingType(
1109
+ type: unknown,
1110
+ ): type is GraphQLWrappingType;
1111
+ /**
1112
+ * Returns the value as a GraphQL wrapping type, or throws if it is not one.
1113
+ * @param type - The GraphQL type to inspect.
1114
+ * @returns The value typed as a GraphQL wrapping type.
1115
+ * @example
1116
+ * ```ts
1117
+ * import { GraphQLList, GraphQLString, assertWrappingType } from 'graphql/type';
1118
+ *
1119
+ * const wrappingType = assertWrappingType(new GraphQLList(GraphQLString));
1120
+ *
1121
+ * wrappingType.toString(); // => '[String]'
1122
+ * assertWrappingType(GraphQLString); // throws an error
1123
+ * ```
1124
+ */
1125
+ export declare function assertWrappingType(type: unknown): GraphQLWrappingType;
1126
+ /** These types can all accept null as a value. */
1127
+ export declare type GraphQLNullableType =
1128
+ | GraphQLScalarType
1129
+ | GraphQLObjectType
1130
+ | GraphQLInterfaceType
1131
+ | GraphQLUnionType
1132
+ | GraphQLEnumType
1133
+ | GraphQLInputObjectType
1134
+ | GraphQLList<GraphQLType>;
1135
+ /**
1136
+ * Returns true when the value is a GraphQL type that can accept null.
1137
+ * @param type - The GraphQL type to inspect.
1138
+ * @returns True when the value is a GraphQL type that can accept null.
1139
+ * @example
1140
+ * ```ts
1141
+ * import { GraphQLNonNull, GraphQLString, isNullableType } from 'graphql/type';
1142
+ *
1143
+ * isNullableType(GraphQLString); // => true
1144
+ * isNullableType(new GraphQLNonNull(GraphQLString)); // => false
1145
+ * isNullableType(null); // => false
1146
+ * ```
1147
+ */
1148
+ export declare function isNullableType(
1149
+ type: unknown,
1150
+ ): type is GraphQLNullableType;
1151
+ /**
1152
+ * Returns the value as a nullable GraphQL type, or throws if it is not one.
1153
+ * @param type - The GraphQL type to inspect.
1154
+ * @returns The value typed as a nullable GraphQL type.
1155
+ * @example
1156
+ * ```ts
1157
+ * import {
1158
+ * GraphQLNonNull,
1159
+ * GraphQLString,
1160
+ * assertNullableType,
1161
+ * } from 'graphql/type';
1162
+ *
1163
+ * const nullableType = assertNullableType(GraphQLString);
1164
+ *
1165
+ * nullableType; // => GraphQLString
1166
+ * assertNullableType(new GraphQLNonNull(GraphQLString)); // throws an error
1167
+ * ```
1168
+ */
1169
+ export declare function assertNullableType(type: unknown): GraphQLNullableType;
1170
+ /**
1171
+ * Returns the nullable type.
1172
+ * @param type - The GraphQL type to inspect.
1173
+ * @returns The nullable type after removing one non-null wrapper, if present.
1174
+ * @example
1175
+ * ```ts
1176
+ * import { getNullableType } from 'graphql/type';
1177
+ *
1178
+ * getNullableType(null); // => undefined
1179
+ * getNullableType(undefined); // => undefined
1180
+ * ```
1181
+ */
1182
+ export declare function getNullableType(type: undefined | null): void;
1183
+ /**
1184
+ * Returns the nullable type after removing one non-null wrapper.
1185
+ * @param type - A nullable type or non-null wrapper.
1186
+ * @returns The nullable type after removing one non-null wrapper, if present.
1187
+ * @typeParam T - The nullable GraphQL type returned after removing one non-null wrapper.
1188
+ * @example
1189
+ * ```ts
1190
+ * import {
1191
+ * GraphQLList,
1192
+ * GraphQLNonNull,
1193
+ * GraphQLString,
1194
+ * getNullableType,
1195
+ * } from 'graphql/type';
1196
+ *
1197
+ * const requiredString = new GraphQLNonNull(GraphQLString);
1198
+ * const stringList = new GraphQLList(GraphQLString);
1199
+ *
1200
+ * getNullableType(requiredString); // => GraphQLString
1201
+ * getNullableType(stringList); // => stringList
1202
+ * ```
1203
+ */
1204
+ export declare function getNullableType<T extends GraphQLNullableType>(
1205
+ type: T | GraphQLNonNull<T>,
1206
+ ): T;
1207
+ /**
1208
+ * Returns the nullable type after removing one non-null wrapper.
1209
+ * @param type - The GraphQL type to inspect.
1210
+ * @returns The nullable type after removing one non-null wrapper, if present.
1211
+ * @example
1212
+ * ```ts
1213
+ * import {
1214
+ * GraphQLList,
1215
+ * GraphQLNonNull,
1216
+ * GraphQLString,
1217
+ * getNullableType,
1218
+ * } from 'graphql/type';
1219
+ *
1220
+ * const requiredStringList = new GraphQLNonNull(
1221
+ * new GraphQLList(GraphQLString),
1222
+ * );
1223
+ *
1224
+ * getNullableType(requiredStringList).toString(); // => '[String]'
1225
+ * getNullableType(GraphQLString); // => GraphQLString
1226
+ * ```
1227
+ */
1228
+ export declare function getNullableType(
1229
+ type: Maybe<GraphQLType>,
1230
+ ): GraphQLNullableType | undefined;
1231
+ /** These named types do not include modifiers like List or NonNull. */
1232
+ export declare type GraphQLNamedType =
1233
+ | GraphQLNamedInputType
1234
+ | GraphQLNamedOutputType;
1235
+ /** A named GraphQL type that can be used as an input type. */
1236
+ export declare type GraphQLNamedInputType =
1237
+ | GraphQLScalarType
1238
+ | GraphQLEnumType
1239
+ | GraphQLInputObjectType;
1240
+ /** A named GraphQL type that can be used as an output type. */
1241
+ export declare type GraphQLNamedOutputType =
1242
+ | GraphQLScalarType
1243
+ | GraphQLObjectType
1244
+ | GraphQLInterfaceType
1245
+ | GraphQLUnionType
1246
+ | GraphQLEnumType;
1247
+ /**
1248
+ * Returns true when the value is a GraphQL named type.
1249
+ * @param type - The GraphQL type to inspect.
1250
+ * @returns True when the value is a GraphQL named type.
1251
+ * @example
1252
+ * ```ts
1253
+ * import { GraphQLList, GraphQLString, isNamedType } from 'graphql/type';
1254
+ *
1255
+ * isNamedType(GraphQLString); // => true
1256
+ * isNamedType(new GraphQLList(GraphQLString)); // => false
1257
+ * isNamedType(null); // => false
1258
+ * ```
1259
+ */
1260
+ export declare function isNamedType(type: unknown): type is GraphQLNamedType;
1261
+ /**
1262
+ * Returns the value as a GraphQL named type, or throws if it is not one.
1263
+ * @param type - The GraphQL type to inspect.
1264
+ * @returns The value typed as a GraphQL named type.
1265
+ * @example
1266
+ * ```ts
1267
+ * import { GraphQLList, GraphQLString, assertNamedType } from 'graphql/type';
1268
+ *
1269
+ * const namedType = assertNamedType(GraphQLString);
1270
+ *
1271
+ * namedType.name; // => 'String'
1272
+ * assertNamedType(new GraphQLList(GraphQLString)); // throws an error
1273
+ * ```
1274
+ */
1275
+ export declare function assertNamedType(type: unknown): GraphQLNamedType;
1276
+ /**
1277
+ * Returns the named type.
1278
+ * @param type - The GraphQL type to inspect.
1279
+ * @returns The named type after unwrapping all list and non-null wrappers.
1280
+ * @example
1281
+ * ```ts
1282
+ * import { getNamedType } from 'graphql/type';
1283
+ *
1284
+ * getNamedType(null); // => undefined
1285
+ * getNamedType(undefined); // => undefined
1286
+ * ```
1287
+ */
1288
+ export declare function getNamedType(type: undefined | null): void;
1289
+ /**
1290
+ * Returns the named input type after unwrapping all list and non-null wrappers.
1291
+ * @param type - The GraphQL input type to inspect.
1292
+ * @returns The named input type after unwrapping all wrappers.
1293
+ * @example
1294
+ * ```ts
1295
+ * import { buildSchema } from 'graphql/utilities';
1296
+ * import { getNamedType } from 'graphql/type';
1297
+ *
1298
+ * const schema = buildSchema(`
1299
+ * input ReviewInput {
1300
+ * stars: Int!
1301
+ * }
1302
+ *
1303
+ * type Query {
1304
+ * review(input: [ReviewInput!]!): Boolean
1305
+ * }
1306
+ * `);
1307
+ *
1308
+ * const inputArg = schema.getQueryType()?.getFields().review.args[0];
1309
+ *
1310
+ * getNamedType(inputArg?.type).toString(); // => 'ReviewInput'
1311
+ * ```
1312
+ */
1313
+ export declare function getNamedType(
1314
+ type: GraphQLInputType,
1315
+ ): GraphQLNamedInputType;
1316
+ /**
1317
+ * Returns the named output type after unwrapping all list and non-null wrappers.
1318
+ * @param type - The GraphQL output type to inspect.
1319
+ * @returns The named output type after unwrapping all wrappers.
1320
+ * @example
1321
+ * ```ts
1322
+ * import { buildSchema } from 'graphql/utilities';
1323
+ * import { getNamedType } from 'graphql/type';
1324
+ *
1325
+ * const schema = buildSchema(`
1326
+ * type User {
1327
+ * name: String
1328
+ * }
1329
+ *
1330
+ * type Query {
1331
+ * users: [User!]!
1332
+ * }
1333
+ * `);
1334
+ *
1335
+ * const usersField = schema.getQueryType()?.getFields().users;
1336
+ *
1337
+ * getNamedType(usersField?.type).toString(); // => 'User'
1338
+ * ```
1339
+ */
1340
+ export declare function getNamedType(
1341
+ type: GraphQLOutputType,
1342
+ ): GraphQLNamedOutputType;
1343
+ /**
1344
+ * Returns the named type after unwrapping all list and non-null wrappers.
1345
+ * @param type - The GraphQL type to inspect.
1346
+ * @returns The named type after unwrapping all wrappers.
1347
+ * @example
1348
+ * ```ts
1349
+ * import {
1350
+ * GraphQLList,
1351
+ * GraphQLNonNull,
1352
+ * GraphQLString,
1353
+ * getNamedType,
1354
+ * } from 'graphql/type';
1355
+ *
1356
+ * const nestedType = new GraphQLNonNull(
1357
+ * new GraphQLList(new GraphQLNonNull(GraphQLString)),
1358
+ * );
1359
+ *
1360
+ * getNamedType(nestedType); // => GraphQLString
1361
+ * ```
1362
+ */
1363
+ export declare function getNamedType(type: GraphQLType): GraphQLNamedType;
1364
+ /**
1365
+ * Returns the named type after unwrapping all list and non-null wrappers.
1366
+ * @param type - The GraphQL type to inspect.
1367
+ * @returns The named type after unwrapping all wrappers, or undefined for nullish input.
1368
+ * @example
1369
+ * ```ts
1370
+ * import {
1371
+ * GraphQLList,
1372
+ * GraphQLString,
1373
+ * getNamedType,
1374
+ * } from 'graphql/type';
1375
+ *
1376
+ * getNamedType(new GraphQLList(GraphQLString)); // => GraphQLString
1377
+ * getNamedType(undefined); // => undefined
1378
+ * ```
1379
+ */
1380
+ export declare function getNamedType(
1381
+ type: Maybe<GraphQLType>,
1382
+ ): GraphQLNamedType | undefined;
1383
+ /**
1384
+ * Used while defining GraphQL types to allow for circular references in
1385
+ * otherwise immutable type definitions.
1386
+ * @typeParam T - The element type returned by the thunk or array.
1387
+ */
1388
+ export declare type ThunkReadonlyArray<T> =
1389
+ | (() => ReadonlyArray<T>)
1390
+ | ReadonlyArray<T>;
1391
+ /**
1392
+ * A thunk that resolves to an object map.
1393
+ * @typeParam T - Value type stored in the object map.
1394
+ */
1395
+ export declare type ThunkObjMap<T> = (() => ObjMap<T>) | ObjMap<T>;
1396
+ /**
1397
+ * Resolves a thunked readonly array.
1398
+ * @param thunk - The thunk or value to resolve.
1399
+ * @returns The resolved readonly array.
1400
+ * @typeParam T - The element type resolved from the thunk or array.
1401
+ * @example
1402
+ * ```ts
1403
+ * import { GraphQLString, resolveReadonlyArrayThunk } from 'graphql/type';
1404
+ *
1405
+ * const lazyFields = resolveReadonlyArrayThunk(() => [GraphQLString]);
1406
+ * const fields = resolveReadonlyArrayThunk([GraphQLString]);
1407
+ *
1408
+ * lazyFields; // => [GraphQLString]
1409
+ * fields; // => [GraphQLString]
1410
+ * ```
1411
+ */
1412
+ export declare function resolveReadonlyArrayThunk<T>(
1413
+ thunk: ThunkReadonlyArray<T>,
1414
+ ): ReadonlyArray<T>;
1415
+ /**
1416
+ * Resolves a thunked object map.
1417
+ * @param thunk - The thunk or value to resolve.
1418
+ * @returns The resolved object map.
1419
+ * @typeParam T - The object-map value type resolved from the thunk or map.
1420
+ * @example
1421
+ * ```ts
1422
+ * import { GraphQLString, resolveObjMapThunk } from 'graphql/type';
1423
+ *
1424
+ * const lazyFields = resolveObjMapThunk(() => ({ name: GraphQLString }));
1425
+ * const fields = resolveObjMapThunk({ name: GraphQLString });
1426
+ *
1427
+ * lazyFields.name; // => GraphQLString
1428
+ * fields.name; // => GraphQLString
1429
+ * ```
1430
+ */
1431
+ export declare function resolveObjMapThunk<T>(thunk: ThunkObjMap<T>): ObjMap<T>;
1432
+ /**
1433
+ * Custom extensions
1434
+ * @remarks
1435
+ * Use a unique identifier name for your extension, for example the name of
1436
+ * your library or project. Do not use a shortened identifier as this increases
1437
+ * the risk of conflicts. We recommend you add at most one extension field,
1438
+ * an object which can contain all the values you need.
1439
+ */
1440
+ export interface GraphQLScalarTypeExtensions {
1441
+ [attributeName: string]: unknown;
1442
+ }
1443
+ /**
1444
+ * Scalar Type Definition
1445
+ *
1446
+ * Scalar types define the leaf values of a GraphQL response and the input
1447
+ * values accepted by arguments and input object fields. A scalar type has a
1448
+ * name and coercion functions that validate and convert runtime values and
1449
+ * GraphQL literals.
1450
+ *
1451
+ * If a type's serialize function returns `null` or does not return a value
1452
+ * (i.e. it returns `undefined`) then an error will be raised and a `null`
1453
+ * value will be returned in the response. Prefer validating inputs before
1454
+ * execution so clients receive input diagnostics before result coercion fails.
1455
+ * @typeParam TInternal - The internal runtime representation accepted by this scalar.
1456
+ * @typeParam TExternal - The serialized representation exposed in GraphQL results.
1457
+ * @example
1458
+ * ```ts
1459
+ * const OddType = new GraphQLScalarType({
1460
+ * name: 'Odd',
1461
+ * serialize: (value) => {
1462
+ * if (!Number.isFinite(value)) {
1463
+ * throw new Error(
1464
+ * `Scalar "Odd" cannot represent "${value}" since it is not a finite number.`,
1465
+ * );
1466
+ * }
1467
+ *
1468
+ * if (value % 2 === 0) {
1469
+ * throw new Error(`Scalar "Odd" cannot represent "${value}" since it is even.`);
1470
+ * }
1471
+ * return value;
1472
+ * }
1473
+ * });
1474
+ * ```
1475
+ */
1476
+ export declare class GraphQLScalarType<
1477
+ TInternal = unknown,
1478
+ TExternal = TInternal,
1479
+ > {
1480
+ /** The GraphQL name for this schema element. */
1481
+ name: string;
1482
+ /** Human-readable description for this schema element, if provided. */
1483
+ description: Maybe<string>;
1484
+ /** URL identifying the behavior specified for this custom scalar. */
1485
+ specifiedByURL: Maybe<string>;
1486
+ /** Function that converts internal values to externally visible scalar values. */
1487
+ serialize: GraphQLScalarSerializer<TExternal>;
1488
+ /** Function that converts variable input into this scalar's internal value. */
1489
+ parseValue: GraphQLScalarValueParser<TInternal>;
1490
+ /** Function that converts AST input literals into this scalar's internal value. */
1491
+ parseLiteral: GraphQLScalarLiteralParser<TInternal>;
1492
+ /** Custom extension fields reserved for users. */
1493
+ extensions: Readonly<GraphQLScalarTypeExtensions>;
1494
+ /** AST node from which this schema element was built, if available. */
1495
+ astNode: Maybe<ScalarTypeDefinitionNode>;
1496
+ /** AST extension nodes applied to this schema element. */
1497
+ extensionASTNodes: ReadonlyArray<ScalarTypeExtensionNode>;
1498
+ /**
1499
+ * Creates a GraphQLScalarType instance.
1500
+ * @param config - Configuration describing this object.
1501
+ * @example
1502
+ * ```ts
1503
+ * import { Kind, parse } from 'graphql/language';
1504
+ * import { GraphQLScalarType } from 'graphql/type';
1505
+ *
1506
+ * const document = parse(`
1507
+ * "Odd integer values."
1508
+ * scalar Odd @specifiedBy(url: "https://example.com/odd")
1509
+ *
1510
+ * extend scalar Odd @specifiedBy(url: "https://example.com/odd-v2")
1511
+ * `);
1512
+ *
1513
+ * const Odd = new GraphQLScalarType({
1514
+ * name: 'Odd',
1515
+ * description: 'Odd integer values.',
1516
+ * specifiedByURL: 'https://example.com/odd',
1517
+ * serialize: (value) => {
1518
+ * if (typeof value !== 'number' || value % 2 === 0) {
1519
+ * throw new TypeError('Odd can only serialize odd numbers.');
1520
+ * }
1521
+ * return value;
1522
+ * },
1523
+ * parseValue: (value) => {
1524
+ * if (typeof value !== 'number' || value % 2 === 0) {
1525
+ * throw new TypeError('Odd can only parse odd numbers.');
1526
+ * }
1527
+ * return value;
1528
+ * },
1529
+ * parseLiteral: (ast) => {
1530
+ * if (ast.kind !== Kind.INT) {
1531
+ * throw new TypeError('Odd can only parse integer literals.');
1532
+ * }
1533
+ * const value = Number(ast.value);
1534
+ * if (value % 2 === 0) {
1535
+ * throw new TypeError('Odd can only parse odd integer literals.');
1536
+ * }
1537
+ * return value;
1538
+ * },
1539
+ * extensions: { numeric: true },
1540
+ * astNode: document.definitions[0],
1541
+ * extensionASTNodes: [ document.definitions[1] ],
1542
+ * });
1543
+ *
1544
+ * Odd.description; // => 'Odd integer values.'
1545
+ * Odd.specifiedByURL; // => 'https://example.com/odd'
1546
+ * Odd.serialize(3); // => 3
1547
+ * Odd.parseValue(5); // => 5
1548
+ * Odd.extensions; // => { numeric: true }
1549
+ * ```
1550
+ */
1551
+ constructor(config: Readonly<GraphQLScalarTypeConfig<TInternal, TExternal>>);
1552
+ /**
1553
+ * Returns the value used by `Object.prototype.toString`.
1554
+ * @returns The built-in string tag for this object.
1555
+ */
1556
+ get [Symbol.toStringTag](): string;
1557
+ /**
1558
+ * Returns a normalized configuration object for this object.
1559
+ * @returns A configuration object that can be used to recreate this object.
1560
+ * @example
1561
+ * ```ts
1562
+ * import { GraphQLScalarType } from 'graphql/type';
1563
+ *
1564
+ * const Url = new GraphQLScalarType({
1565
+ * name: 'Url',
1566
+ * description: 'An absolute URL string.',
1567
+ * specifiedByURL: 'https://url.spec.whatwg.org/',
1568
+ * });
1569
+ *
1570
+ * const config = Url.toConfig();
1571
+ * const UrlCopy = new GraphQLScalarType(config);
1572
+ *
1573
+ * config.name; // => 'Url'
1574
+ * config.specifiedByURL; // => 'https://url.spec.whatwg.org/'
1575
+ * UrlCopy.name; // => Url.name
1576
+ * ```
1577
+ */
1578
+ toConfig(): GraphQLScalarTypeNormalizedConfig<TInternal, TExternal>;
1579
+ /**
1580
+ * Returns the schema coordinate identifying this scalar type.
1581
+ * @returns The schema coordinate for this scalar type.
1582
+ * @example
1583
+ * ```ts
1584
+ * import { GraphQLScalarType } from 'graphql/type';
1585
+ *
1586
+ * const DateTime = new GraphQLScalarType({ name: 'DateTime' });
1587
+ *
1588
+ * DateTime.toString(); // => 'DateTime'
1589
+ * String(DateTime); // => 'DateTime'
1590
+ * ```
1591
+ */
1592
+ toString(): string;
1593
+ /**
1594
+ * Returns the JSON representation used when this object is serialized.
1595
+ * @returns The JSON-serializable representation.
1596
+ * @example
1597
+ * ```ts
1598
+ * import { GraphQLScalarType } from 'graphql/type';
1599
+ *
1600
+ * const DateTime = new GraphQLScalarType({ name: 'DateTime' });
1601
+ *
1602
+ * DateTime.toJSON(); // => 'DateTime'
1603
+ * JSON.stringify({ type: DateTime }); // => '{"type":"DateTime"}'
1604
+ * ```
1605
+ */
1606
+ toJSON(): string;
1607
+ }
1608
+ /**
1609
+ * Serializes a runtime value as a scalar output value.
1610
+ * @typeParam TExternal - The serialized representation returned for GraphQL results.
1611
+ */
1612
+ export declare type GraphQLScalarSerializer<TExternal> = (
1613
+ outputValue: unknown,
1614
+ ) => TExternal;
1615
+ /**
1616
+ * Parses a runtime input value as a scalar input value.
1617
+ * @typeParam TInternal - The internal runtime representation produced from variable input.
1618
+ */
1619
+ export declare type GraphQLScalarValueParser<TInternal> = (
1620
+ inputValue: unknown,
1621
+ ) => TInternal;
1622
+ /**
1623
+ * Parses a GraphQL value literal as a scalar input value.
1624
+ * @typeParam TInternal - The internal runtime representation produced from literal input.
1625
+ */
1626
+ export declare type GraphQLScalarLiteralParser<TInternal> = (
1627
+ valueNode: ValueNode,
1628
+ variables?: Maybe<ObjMap<unknown>>,
1629
+ ) => TInternal;
1630
+ /**
1631
+ * Configuration used to construct a GraphQLScalarType.
1632
+ * @typeParam TInternal - The internal runtime representation accepted by this scalar.
1633
+ * @typeParam TExternal - The serialized representation exposed in GraphQL results.
1634
+ */
1635
+ export interface GraphQLScalarTypeConfig<TInternal, TExternal> {
1636
+ /** The GraphQL name for this schema element. */
1637
+ name: string;
1638
+ /** Human-readable description for this schema element, if provided. */
1639
+ description?: Maybe<string>;
1640
+ /** URL identifying the behavior specified for this custom scalar. */
1641
+ specifiedByURL?: Maybe<string>;
1642
+ /** Serializes an internal value to include in a response. */
1643
+ serialize?: GraphQLScalarSerializer<TExternal>;
1644
+ /** Parses an externally provided value to use as an input. */
1645
+ parseValue?: GraphQLScalarValueParser<TInternal>;
1646
+ /** Parses an externally provided literal value to use as an input. */
1647
+ parseLiteral?: GraphQLScalarLiteralParser<TInternal>;
1648
+ /** Custom extension fields reserved for users. */
1649
+ extensions?: Maybe<Readonly<GraphQLScalarTypeExtensions>>;
1650
+ /** AST node from which this schema element was built, if available. */
1651
+ astNode?: Maybe<ScalarTypeDefinitionNode>;
1652
+ /** AST extension nodes applied to this schema element. */
1653
+ extensionASTNodes?: Maybe<ReadonlyArray<ScalarTypeExtensionNode>>;
1654
+ }
1655
+ interface GraphQLScalarTypeNormalizedConfig<TInternal, TExternal>
1656
+ extends GraphQLScalarTypeConfig<TInternal, TExternal> {
1657
+ serialize: GraphQLScalarSerializer<TExternal>;
1658
+ parseValue: GraphQLScalarValueParser<TInternal>;
1659
+ parseLiteral: GraphQLScalarLiteralParser<TInternal>;
1660
+ extensions: Readonly<GraphQLScalarTypeExtensions>;
1661
+ extensionASTNodes: ReadonlyArray<ScalarTypeExtensionNode>;
1662
+ }
1663
+ /**
1664
+ * Custom extensions
1665
+ * @remarks
1666
+ * Use a unique identifier name for your extension, for example the name of
1667
+ * your library or project. Do not use a shortened identifier as this increases
1668
+ * the risk of conflicts. We recommend you add at most one extension field,
1669
+ * an object which can contain all the values you need.
1670
+ * We've provided these template arguments because this is an open type and
1671
+ * you may find them useful.
1672
+ * @typeParam _TSource - Reserved source type parameter for extension typing.
1673
+ * @typeParam _TContext - Reserved context type parameter for extension typing.
1674
+ */
1675
+ export interface GraphQLObjectTypeExtensions<_TSource = any, _TContext = any> {
1676
+ [attributeName: string]: unknown;
1677
+ }
1678
+ /**
1679
+ * Object Type Definition
1680
+ *
1681
+ * Almost all of the GraphQL types you define will be object types. Object types
1682
+ * have a name, but most importantly describe their fields.
1683
+ * @typeParam TSource - Source object type passed to resolvers.
1684
+ * @typeParam TContext - Context object type passed to resolvers.
1685
+ * @example
1686
+ * ```ts
1687
+ * const AddressType = new GraphQLObjectType({
1688
+ * name: 'Address',
1689
+ * fields: {
1690
+ * street: { type: GraphQLString },
1691
+ * number: { type: GraphQLInt },
1692
+ * formatted: {
1693
+ * type: GraphQLString,
1694
+ * resolve: (obj) => {
1695
+ * return obj.number + ' ' + obj.street
1696
+ * }
1697
+ * }
1698
+ * }
1699
+ * });
1700
+ * ```
1701
+ * @example
1702
+ * When two types need to refer to each other, or a type needs to refer to
1703
+ * itself in a field, you can use a function expression (aka a closure or a
1704
+ * thunk) to supply the fields lazily.
1705
+ *
1706
+ * ```ts
1707
+ * const PersonType = new GraphQLObjectType({
1708
+ * name: 'Person',
1709
+ * fields: () => ({
1710
+ * name: { type: GraphQLString },
1711
+ * bestFriend: { type: PersonType },
1712
+ * })
1713
+ * });
1714
+ * ```
1715
+ */
1716
+ export declare class GraphQLObjectType<TSource = any, TContext = any> {
1717
+ /** The GraphQL name for this schema element. */
1718
+ name: string;
1719
+ /** Human-readable description for this schema element, if provided. */
1720
+ description: Maybe<string>;
1721
+ /** Predicate used to determine whether a runtime value belongs to this object type. */
1722
+ isTypeOf: Maybe<GraphQLIsTypeOfFn<TSource, TContext>>;
1723
+ /** Custom extension fields reserved for users. */
1724
+ extensions: Readonly<GraphQLObjectTypeExtensions<TSource, TContext>>;
1725
+ /** AST node from which this schema element was built, if available. */
1726
+ astNode: Maybe<ObjectTypeDefinitionNode>;
1727
+ /** AST extension nodes applied to this schema element. */
1728
+ extensionASTNodes: ReadonlyArray<ObjectTypeExtensionNode>;
1729
+ private _fields;
1730
+ private _interfaces;
1731
+ /**
1732
+ * Creates a GraphQLObjectType instance.
1733
+ * @param config - Configuration describing this object.
1734
+ * @example
1735
+ * ```ts
1736
+ * // Configure an object type with interfaces, fields, arguments, and metadata.
1737
+ * import { parse } from 'graphql/language';
1738
+ * import {
1739
+ * GraphQLID,
1740
+ * GraphQLInterfaceType,
1741
+ * GraphQLNonNull,
1742
+ * GraphQLObjectType,
1743
+ * GraphQLString,
1744
+ * } from 'graphql/type';
1745
+ *
1746
+ * const document = parse(`
1747
+ * type User implements Node {
1748
+ * id: ID!
1749
+ * name(format: String = "short"): String
1750
+ * }
1751
+ *
1752
+ * extend type User {
1753
+ * displayName: String
1754
+ * }
1755
+ * `);
1756
+ * const definition = document.definitions[0];
1757
+ * const nameField = definition.fields[1];
1758
+ * const formatArg = nameField.arguments[0];
1759
+ *
1760
+ * const Node = new GraphQLInterfaceType({
1761
+ * name: 'Node',
1762
+ * fields: {
1763
+ * id: { type: new GraphQLNonNull(GraphQLID) },
1764
+ * },
1765
+ * });
1766
+ *
1767
+ * const User = new GraphQLObjectType({
1768
+ * name: 'User',
1769
+ * description: 'A registered user.',
1770
+ * interfaces: [Node],
1771
+ * fields: {
1772
+ * id: { type: new GraphQLNonNull(GraphQLID) },
1773
+ * name: {
1774
+ * description: 'The formatted user name.',
1775
+ * type: GraphQLString,
1776
+ * args: {
1777
+ * format: {
1778
+ * description: 'Controls the name format.',
1779
+ * type: GraphQLString,
1780
+ * defaultValue: 'short',
1781
+ * deprecationReason: 'Use locale instead.',
1782
+ * extensions: { public: true },
1783
+ * astNode: formatArg,
1784
+ * },
1785
+ * },
1786
+ * resolve: (user, { format }) => {
1787
+ * return format === 'long' ? user.fullName : user.name;
1788
+ * },
1789
+ * deprecationReason: 'Use displayName.',
1790
+ * extensions: { cacheSeconds: 60 },
1791
+ * astNode: nameField,
1792
+ * },
1793
+ * },
1794
+ * isTypeOf: (value) => {
1795
+ * return typeof value === 'object' && value != null && 'id' in value;
1796
+ * },
1797
+ * extensions: { entity: 'User' },
1798
+ * astNode: definition,
1799
+ * extensionASTNodes: [ document.definitions[1] ],
1800
+ * });
1801
+ *
1802
+ * User.name; // => 'User'
1803
+ * User.getInterfaces(); // => [Node]
1804
+ * Object.keys(User.getFields()); // => ['id', 'name']
1805
+ * User.getFields().name.args[0].defaultValue; // => 'short'
1806
+ * User.extensions; // => { entity: 'User' }
1807
+ * ```
1808
+ * @example
1809
+ * ```ts
1810
+ * // This variant configures a subscription field with subscribe and resolve functions.
1811
+ * import { GraphQLObjectType, GraphQLString } from 'graphql/type';
1812
+ *
1813
+ * const Subscription = new GraphQLObjectType({
1814
+ * name: 'Subscription',
1815
+ * fields: {
1816
+ * greeting: {
1817
+ * type: GraphQLString,
1818
+ * subscribe: async function* () {
1819
+ * yield { greeting: 'Hello!' };
1820
+ * },
1821
+ * resolve: (event) => {
1822
+ * return event.greeting;
1823
+ * },
1824
+ * },
1825
+ * },
1826
+ * });
1827
+ *
1828
+ * typeof Subscription.getFields().greeting.subscribe; // => 'function'
1829
+ * ```
1830
+ */
1831
+ constructor(config: Readonly<GraphQLObjectTypeConfig<TSource, TContext>>);
1832
+ /**
1833
+ * Returns the value used by `Object.prototype.toString`.
1834
+ * @returns The built-in string tag for this object.
1835
+ */
1836
+ get [Symbol.toStringTag](): string;
1837
+ /**
1838
+ * Returns the fields defined by this type.
1839
+ * @returns The fields keyed by field name.
1840
+ * @example
1841
+ * ```ts
1842
+ * import { buildSchema } from 'graphql/utilities';
1843
+ * import { assertObjectType } from 'graphql/type';
1844
+ *
1845
+ * const schema = buildSchema(`
1846
+ * type User {
1847
+ * id: ID!
1848
+ * name: String
1849
+ * }
1850
+ *
1851
+ * type Query {
1852
+ * viewer: User
1853
+ * }
1854
+ * `);
1855
+ *
1856
+ * const User = assertObjectType(schema.getType('User'));
1857
+ * const fields = User.getFields();
1858
+ *
1859
+ * Object.keys(fields); // => ['id', 'name']
1860
+ * String(fields.id.type); // => 'ID!'
1861
+ * ```
1862
+ */
1863
+ getFields(): GraphQLFieldMap<TSource, TContext>;
1864
+ /**
1865
+ * Returns the interfaces implemented by this type.
1866
+ * @returns The implemented interfaces.
1867
+ * @example
1868
+ * ```ts
1869
+ * import { buildSchema } from 'graphql/utilities';
1870
+ * import { assertObjectType } from 'graphql/type';
1871
+ *
1872
+ * const schema = buildSchema(`
1873
+ * interface Node {
1874
+ * id: ID!
1875
+ * }
1876
+ *
1877
+ * type User implements Node {
1878
+ * id: ID!
1879
+ * }
1880
+ *
1881
+ * type Query {
1882
+ * viewer: User
1883
+ * }
1884
+ * `);
1885
+ *
1886
+ * const User = assertObjectType(schema.getType('User'));
1887
+ *
1888
+ * User.getInterfaces().map((type) => type.name); // => ['Node']
1889
+ * ```
1890
+ */
1891
+ getInterfaces(): ReadonlyArray<GraphQLInterfaceType>;
1892
+ /**
1893
+ * Returns a normalized configuration object for this object.
1894
+ * @returns A configuration object that can be used to recreate this object.
1895
+ * @example
1896
+ * ```ts
1897
+ * import { GraphQLObjectType, GraphQLString } from 'graphql/type';
1898
+ *
1899
+ * const User = new GraphQLObjectType({
1900
+ * name: 'User',
1901
+ * fields: {
1902
+ * name: { type: GraphQLString },
1903
+ * },
1904
+ * });
1905
+ *
1906
+ * const config = User.toConfig();
1907
+ * const UserCopy = new GraphQLObjectType(config);
1908
+ *
1909
+ * config.fields.name.type; // => GraphQLString
1910
+ * UserCopy.getFields().name.type; // => GraphQLString
1911
+ * ```
1912
+ */
1913
+ toConfig(): GraphQLObjectTypeNormalizedConfig<TSource, TContext>;
1914
+ /**
1915
+ * Returns the schema coordinate identifying this object type.
1916
+ * @returns The schema coordinate for this object type.
1917
+ * @example
1918
+ * ```ts
1919
+ * import { buildSchema } from 'graphql/utilities';
1920
+ * import { assertObjectType } from 'graphql/type';
1921
+ *
1922
+ * const schema = buildSchema(`
1923
+ * type User {
1924
+ * name: String
1925
+ * }
1926
+ *
1927
+ * type Query {
1928
+ * viewer: User
1929
+ * }
1930
+ * `);
1931
+ *
1932
+ * const User = assertObjectType(schema.getType('User'));
1933
+ *
1934
+ * User.toString(); // => 'User'
1935
+ * ```
1936
+ */
1937
+ toString(): string;
1938
+ /**
1939
+ * Returns the JSON representation used when this object is serialized.
1940
+ * @returns The JSON-serializable representation.
1941
+ * @example
1942
+ * ```ts
1943
+ * import { GraphQLObjectType, GraphQLString } from 'graphql/type';
1944
+ *
1945
+ * const User = new GraphQLObjectType({
1946
+ * name: 'User',
1947
+ * fields: { name: { type: GraphQLString } },
1948
+ * });
1949
+ *
1950
+ * User.toJSON(); // => 'User'
1951
+ * JSON.stringify({ type: User }); // => '{"type":"User"}'
1952
+ * ```
1953
+ */
1954
+ toJSON(): string;
1955
+ }
1956
+ /** @internal */
1957
+ export declare function defineArguments(
1958
+ config: GraphQLFieldConfigArgumentMap,
1959
+ ): ReadonlyArray<GraphQLArgument>;
1960
+ /** @internal */
1961
+ export declare function argsToArgsConfig(
1962
+ args: ReadonlyArray<GraphQLArgument>,
1963
+ ): GraphQLFieldConfigArgumentMap;
1964
+ /**
1965
+ * Configuration used to construct a GraphQLObjectType.
1966
+ * @typeParam TSource - Source object type passed to resolvers.
1967
+ * @typeParam TContext - Context object type passed to resolvers.
1968
+ */
1969
+ export interface GraphQLObjectTypeConfig<TSource, TContext> {
1970
+ /** The GraphQL name for this schema element. */
1971
+ name: string;
1972
+ /** Human-readable description for this schema element, if provided. */
1973
+ description?: Maybe<string>;
1974
+ /** Interfaces implemented by this object or interface type. */
1975
+ interfaces?: ThunkReadonlyArray<GraphQLInterfaceType>;
1976
+ /** Fields declared by this object, interface, input object, or literal. */
1977
+ fields: ThunkObjMap<GraphQLFieldConfig<TSource, TContext>>;
1978
+ /** Predicate used to determine whether a runtime value belongs to this object type. */
1979
+ isTypeOf?: Maybe<GraphQLIsTypeOfFn<TSource, TContext>>;
1980
+ /** Custom extension fields reserved for users. */
1981
+ extensions?: Maybe<Readonly<GraphQLObjectTypeExtensions<TSource, TContext>>>;
1982
+ /** AST node from which this schema element was built, if available. */
1983
+ astNode?: Maybe<ObjectTypeDefinitionNode>;
1984
+ /** AST extension nodes applied to this schema element. */
1985
+ extensionASTNodes?: Maybe<ReadonlyArray<ObjectTypeExtensionNode>>;
1986
+ }
1987
+ interface GraphQLObjectTypeNormalizedConfig<TSource, TContext>
1988
+ extends GraphQLObjectTypeConfig<any, any> {
1989
+ interfaces: ReadonlyArray<GraphQLInterfaceType>;
1990
+ fields: GraphQLFieldConfigMap<any, any>;
1991
+ extensions: Readonly<GraphQLObjectTypeExtensions<TSource, TContext>>;
1992
+ extensionASTNodes: ReadonlyArray<ObjectTypeExtensionNode>;
1993
+ }
1994
+ /**
1995
+ * Resolves the concrete object type for an abstract GraphQL type.
1996
+ * @typeParam TSource - Source object type passed to resolvers.
1997
+ * @typeParam TContext - Context object type passed to resolvers.
1998
+ */
1999
+ export declare type GraphQLTypeResolver<TSource, TContext> = (
2000
+ value: TSource,
2001
+ context: TContext,
2002
+ info: GraphQLResolveInfo,
2003
+ abstractType: GraphQLAbstractType,
2004
+ ) => PromiseOrValue<string | undefined>;
2005
+ /**
2006
+ * Checks whether a runtime value belongs to a GraphQL object type.
2007
+ * @typeParam TSource - Source object type tested against this object type.
2008
+ * @typeParam TContext - Context object type passed to resolvers.
2009
+ */
2010
+ export declare type GraphQLIsTypeOfFn<TSource, TContext> = (
2011
+ source: TSource,
2012
+ context: TContext,
2013
+ info: GraphQLResolveInfo,
2014
+ ) => PromiseOrValue<boolean>;
2015
+ /**
2016
+ * Resolves the runtime value for a GraphQL field.
2017
+ * @typeParam TSource - Source object type passed to resolvers.
2018
+ * @typeParam TContext - Context object type passed to resolvers.
2019
+ * @typeParam TArgs - Argument object type passed to resolvers.
2020
+ * @typeParam TResult - Result value type.
2021
+ */
2022
+ export declare type GraphQLFieldResolver<
2023
+ TSource,
2024
+ TContext,
2025
+ TArgs = any,
2026
+ TResult = unknown,
2027
+ > = (
2028
+ source: TSource,
2029
+ args: TArgs,
2030
+ context: TContext,
2031
+ info: GraphQLResolveInfo,
2032
+ ) => TResult;
2033
+ /** Information about the currently executing GraphQL field. */
2034
+ export interface GraphQLResolveInfo {
2035
+ /** The field name referenced by this schema coordinate. */
2036
+ readonly fieldName: string;
2037
+ /** AST field nodes that contributed to the current field execution. */
2038
+ readonly fieldNodes: ReadonlyArray<FieldNode>;
2039
+ /** GraphQL output type declared for the current field. */
2040
+ readonly returnType: GraphQLOutputType;
2041
+ /** Object type that owns the current field. */
2042
+ readonly parentType: GraphQLObjectType;
2043
+ /** Response path where this error occurred during execution. */
2044
+ readonly path: Path;
2045
+ /** The schema used for validation or execution. */
2046
+ readonly schema: GraphQLSchema;
2047
+ /** Fragment definitions in the operation document keyed by fragment name. */
2048
+ readonly fragments: ObjMap<FragmentDefinitionNode>;
2049
+ /** Initial root value passed to the operation. */
2050
+ readonly rootValue: unknown;
2051
+ /** The operation selected for execution. */
2052
+ readonly operation: OperationDefinitionNode;
2053
+ /** Runtime variable values keyed by variable name. */
2054
+ readonly variableValues: {
2055
+ [variable: string]: unknown;
2056
+ };
2057
+ }
2058
+ /**
2059
+ * Custom extensions
2060
+ * @remarks
2061
+ * Use a unique identifier name for your extension, for example the name of
2062
+ * your library or project. Do not use a shortened identifier as this increases
2063
+ * the risk of conflicts. We recommend you add at most one extension field,
2064
+ * an object which can contain all the values you need.
2065
+ * We've provided these template arguments because this is an open type and
2066
+ * you may find them useful.
2067
+ * @typeParam _TSource - Reserved source type parameter for extension typing.
2068
+ * @typeParam _TContext - Reserved context type parameter for extension typing.
2069
+ * @typeParam _TArgs - Reserved argument type parameter for extension typing.
2070
+ */
2071
+ export interface GraphQLFieldExtensions<_TSource, _TContext, _TArgs = any> {
2072
+ [attributeName: string]: unknown;
2073
+ }
2074
+ /**
2075
+ * Configuration used to define a GraphQL field.
2076
+ * @typeParam TSource - Source object type passed to resolvers.
2077
+ * @typeParam TContext - Context object type passed to resolvers.
2078
+ * @typeParam TArgs - Argument object type passed to resolvers.
2079
+ */
2080
+ export interface GraphQLFieldConfig<TSource, TContext, TArgs = any> {
2081
+ /** Human-readable description for this schema element, if provided. */
2082
+ description?: Maybe<string>;
2083
+ /** The GraphQL type reference or runtime type for this element. */
2084
+ type: GraphQLOutputType;
2085
+ /** Arguments accepted by this field or directive. */
2086
+ args?: GraphQLFieldConfigArgumentMap;
2087
+ /** Resolver function used to produce this field value. */
2088
+ resolve?: GraphQLFieldResolver<TSource, TContext, TArgs>;
2089
+ /** Resolver function used to create a subscription event stream for this field. */
2090
+ subscribe?: GraphQLFieldResolver<TSource, TContext, TArgs>;
2091
+ /** Reason this element is deprecated, if one was provided. */
2092
+ deprecationReason?: Maybe<string>;
2093
+ /** Custom extension fields reserved for users. */
2094
+ extensions?: Maybe<
2095
+ Readonly<GraphQLFieldExtensions<TSource, TContext, TArgs>>
2096
+ >;
2097
+ /** AST node from which this schema element was built, if available. */
2098
+ astNode?: Maybe<FieldDefinitionNode>;
2099
+ }
2100
+ /** A map of argument names to argument configuration objects. */
2101
+ export declare type GraphQLFieldConfigArgumentMap =
2102
+ ObjMap<GraphQLArgumentConfig>;
2103
+ /**
2104
+ * Custom extensions
2105
+ * @remarks
2106
+ * Use a unique identifier name for your extension, for example the name of
2107
+ * your library or project. Do not use a shortened identifier as this increases
2108
+ * the risk of conflicts. We recommend you add at most one extension field,
2109
+ * an object which can contain all the values you need.
2110
+ */
2111
+ export interface GraphQLArgumentExtensions {
2112
+ [attributeName: string]: unknown;
2113
+ }
2114
+ /** Configuration used to define a GraphQL argument. */
2115
+ export interface GraphQLArgumentConfig {
2116
+ /** Human-readable description for this schema element, if provided. */
2117
+ description?: Maybe<string>;
2118
+ /** The GraphQL type reference or runtime type for this element. */
2119
+ type: GraphQLInputType;
2120
+ /** Default value used when no explicit value is supplied. */
2121
+ defaultValue?: unknown;
2122
+ /** Reason this element is deprecated, if one was provided. */
2123
+ deprecationReason?: Maybe<string>;
2124
+ /** Custom extension fields reserved for users. */
2125
+ extensions?: Maybe<Readonly<GraphQLArgumentExtensions>>;
2126
+ /** AST node from which this schema element was built, if available. */
2127
+ astNode?: Maybe<InputValueDefinitionNode>;
2128
+ }
2129
+ /**
2130
+ * A map of field names to field configuration objects.
2131
+ * @typeParam TSource - Source object type passed to resolvers.
2132
+ * @typeParam TContext - Context object type passed to resolvers.
2133
+ */
2134
+ export declare type GraphQLFieldConfigMap<TSource, TContext> = ObjMap<
2135
+ GraphQLFieldConfig<TSource, TContext>
2136
+ >;
2137
+ /**
2138
+ * A resolved GraphQL field definition.
2139
+ * @typeParam TSource - Source object type passed to resolvers.
2140
+ * @typeParam TContext - Context object type passed to resolvers.
2141
+ * @typeParam TArgs - Argument object type passed to resolvers.
2142
+ */
2143
+ export interface GraphQLField<TSource, TContext, TArgs = any> {
2144
+ /** The GraphQL name for this schema element. */
2145
+ name: string;
2146
+ /** Human-readable description for this schema element, if provided. */
2147
+ description: Maybe<string>;
2148
+ /** The GraphQL type reference or runtime type for this element. */
2149
+ type: GraphQLOutputType;
2150
+ /** Arguments accepted by this field or directive. */
2151
+ args: ReadonlyArray<GraphQLArgument>;
2152
+ /** Resolver function used to produce this field value. */
2153
+ resolve?: GraphQLFieldResolver<TSource, TContext, TArgs>;
2154
+ /** Resolver function used to create a subscription event stream for this field. */
2155
+ subscribe?: GraphQLFieldResolver<TSource, TContext, TArgs>;
2156
+ /** Reason this element is deprecated, if one was provided. */
2157
+ deprecationReason: Maybe<string>;
2158
+ /** Custom extension fields reserved for users. */
2159
+ extensions: Readonly<GraphQLFieldExtensions<TSource, TContext, TArgs>>;
2160
+ /** AST node from which this schema element was built, if available. */
2161
+ astNode: Maybe<FieldDefinitionNode>;
2162
+ }
2163
+ /** A resolved GraphQL argument definition. */
2164
+ export interface GraphQLArgument {
2165
+ /** The GraphQL name for this schema element. */
2166
+ name: string;
2167
+ /** Human-readable description for this schema element, if provided. */
2168
+ description: Maybe<string>;
2169
+ /** The GraphQL type reference or runtime type for this element. */
2170
+ type: GraphQLInputType;
2171
+ /** Default value used when no explicit value is supplied. */
2172
+ defaultValue: unknown;
2173
+ /** Reason this element is deprecated, if one was provided. */
2174
+ deprecationReason: Maybe<string>;
2175
+ /** Custom extension fields reserved for users. */
2176
+ extensions: Readonly<GraphQLArgumentExtensions>;
2177
+ /** AST node from which this schema element was built, if available. */
2178
+ astNode: Maybe<InputValueDefinitionNode>;
2179
+ }
2180
+ /**
2181
+ * Returns true when the argument is non-null and has no default value.
2182
+ * @param arg - The argument definition to inspect.
2183
+ * @returns True when the argument is non-null and has no default value.
2184
+ * @example
2185
+ * ```ts
2186
+ * import {
2187
+ * GraphQLInt,
2188
+ * GraphQLNonNull,
2189
+ * GraphQLString,
2190
+ * isRequiredArgument,
2191
+ * } from 'graphql/type';
2192
+ *
2193
+ * const requiredArgument = { name: 'id', type: new GraphQLNonNull(GraphQLInt) };
2194
+ * const optionalArgument = { name: 'name', type: GraphQLString };
2195
+ * const argumentWithDefault = {
2196
+ * name: 'limit',
2197
+ * type: new GraphQLNonNull(GraphQLInt),
2198
+ * defaultValue: 10,
2199
+ * };
2200
+ *
2201
+ * isRequiredArgument(requiredArgument); // => true
2202
+ * isRequiredArgument(optionalArgument); // => false
2203
+ * isRequiredArgument(argumentWithDefault); // => false
2204
+ * ```
2205
+ */
2206
+ export declare function isRequiredArgument(arg: GraphQLArgument): boolean;
2207
+ /**
2208
+ * A map of field names to resolved field definitions.
2209
+ * @typeParam TSource - Source object type passed to resolvers.
2210
+ * @typeParam TContext - Context object type passed to resolvers.
2211
+ */
2212
+ export declare type GraphQLFieldMap<TSource, TContext> = ObjMap<
2213
+ GraphQLField<TSource, TContext>
2214
+ >;
2215
+ /**
2216
+ * Custom extensions
2217
+ * @remarks
2218
+ * Use a unique identifier name for your extension, for example the name of
2219
+ * your library or project. Do not use a shortened identifier as this increases
2220
+ * the risk of conflicts. We recommend you add at most one extension field,
2221
+ * an object which can contain all the values you need.
2222
+ */
2223
+ export interface GraphQLInterfaceTypeExtensions {
2224
+ [attributeName: string]: unknown;
2225
+ }
2226
+ /**
2227
+ * Interface Type Definition
2228
+ *
2229
+ * When a field can return one of a heterogeneous set of types, a Interface type
2230
+ * is used to describe what types are possible, what fields are in common across
2231
+ * all types, as well as a function to determine which type is actually used
2232
+ * when the field is resolved.
2233
+ * @example
2234
+ * ```ts
2235
+ * const EntityType = new GraphQLInterfaceType({
2236
+ * name: 'Entity',
2237
+ * fields: {
2238
+ * name: { type: GraphQLString }
2239
+ * }
2240
+ * });
2241
+ * ```
2242
+ */
2243
+ export declare class GraphQLInterfaceType {
2244
+ /** The GraphQL name for this schema element. */
2245
+ name: string;
2246
+ /** Human-readable description for this schema element, if provided. */
2247
+ description: Maybe<string>;
2248
+ /** Function that resolves the concrete object type for this abstract type. */
2249
+ resolveType: Maybe<GraphQLTypeResolver<any, any>>;
2250
+ /** Custom extension fields reserved for users. */
2251
+ extensions: Readonly<GraphQLInterfaceTypeExtensions>;
2252
+ /** AST node from which this schema element was built, if available. */
2253
+ astNode: Maybe<InterfaceTypeDefinitionNode>;
2254
+ /** AST extension nodes applied to this schema element. */
2255
+ extensionASTNodes: ReadonlyArray<InterfaceTypeExtensionNode>;
2256
+ private _fields;
2257
+ private _interfaces;
2258
+ /**
2259
+ * Creates a GraphQLInterfaceType instance.
2260
+ * @param config - Configuration describing this object.
2261
+ * @example
2262
+ * ```ts
2263
+ * import { parse } from 'graphql/language';
2264
+ * import { GraphQLID, GraphQLInterfaceType, GraphQLNonNull } from 'graphql/type';
2265
+ *
2266
+ * const document = parse(`
2267
+ * interface Node {
2268
+ * id: ID!
2269
+ * }
2270
+ *
2271
+ * interface Resource implements Node {
2272
+ * id: ID!
2273
+ * }
2274
+ *
2275
+ * extend interface Resource {
2276
+ * url: String
2277
+ * }
2278
+ * `);
2279
+ *
2280
+ * const Node = new GraphQLInterfaceType({
2281
+ * name: 'Node',
2282
+ * fields: {
2283
+ * id: { type: new GraphQLNonNull(GraphQLID) },
2284
+ * },
2285
+ * });
2286
+ *
2287
+ * const Resource = new GraphQLInterfaceType({
2288
+ * name: 'Resource',
2289
+ * description: 'An addressable resource.',
2290
+ * interfaces: [Node],
2291
+ * fields: {
2292
+ * id: { type: new GraphQLNonNull(GraphQLID) },
2293
+ * },
2294
+ * resolveType: (value) => {
2295
+ * return typeof value === 'object' && value != null && 'url' in value
2296
+ * ? 'WebPage'
2297
+ * : null;
2298
+ * },
2299
+ * extensions: { abstract: true },
2300
+ * astNode: document.definitions[1],
2301
+ * extensionASTNodes: [ document.definitions[2] ],
2302
+ * });
2303
+ *
2304
+ * Resource.name; // => 'Resource'
2305
+ * Resource.getInterfaces(); // => [Node]
2306
+ * Object.keys(Resource.getFields()); // => ['id']
2307
+ * Resource.extensions; // => { abstract: true }
2308
+ * ```
2309
+ */
2310
+ constructor(config: Readonly<GraphQLInterfaceTypeConfig<any, any>>);
2311
+ /**
2312
+ * Returns the value used by `Object.prototype.toString`.
2313
+ * @returns The built-in string tag for this object.
2314
+ */
2315
+ get [Symbol.toStringTag](): string;
2316
+ /**
2317
+ * Returns the fields defined by this type.
2318
+ * @returns The fields keyed by field name.
2319
+ * @example
2320
+ * ```ts
2321
+ * import { buildSchema } from 'graphql/utilities';
2322
+ * import { assertInterfaceType } from 'graphql/type';
2323
+ *
2324
+ * const schema = buildSchema(`
2325
+ * interface Node {
2326
+ * id: ID!
2327
+ * }
2328
+ *
2329
+ * type User implements Node {
2330
+ * id: ID!
2331
+ * }
2332
+ *
2333
+ * type Query {
2334
+ * node: Node
2335
+ * }
2336
+ * `);
2337
+ *
2338
+ * const Node = assertInterfaceType(schema.getType('Node'));
2339
+ * const fields = Node.getFields();
2340
+ *
2341
+ * Object.keys(fields); // => ['id']
2342
+ * String(fields.id.type); // => 'ID!'
2343
+ * ```
2344
+ */
2345
+ getFields(): GraphQLFieldMap<any, any>;
2346
+ /**
2347
+ * Returns the interfaces implemented by this type.
2348
+ * @returns The implemented interfaces.
2349
+ * @example
2350
+ * ```ts
2351
+ * import { buildSchema } from 'graphql/utilities';
2352
+ * import { assertInterfaceType } from 'graphql/type';
2353
+ *
2354
+ * const schema = buildSchema(`
2355
+ * interface Resource {
2356
+ * url: String!
2357
+ * }
2358
+ *
2359
+ * interface Image implements Resource {
2360
+ * url: String!
2361
+ * width: Int
2362
+ * }
2363
+ *
2364
+ * type Photo implements Resource & Image {
2365
+ * url: String!
2366
+ * width: Int
2367
+ * }
2368
+ *
2369
+ * type Query {
2370
+ * image: Image
2371
+ * }
2372
+ * `);
2373
+ *
2374
+ * const Image = assertInterfaceType(schema.getType('Image'));
2375
+ *
2376
+ * Image.getInterfaces().map((type) => type.name); // => ['Resource']
2377
+ * ```
2378
+ */
2379
+ getInterfaces(): ReadonlyArray<GraphQLInterfaceType>;
2380
+ /**
2381
+ * Returns a normalized configuration object for this object.
2382
+ * @returns A configuration object that can be used to recreate this object.
2383
+ * @example
2384
+ * ```ts
2385
+ * import { GraphQLID, GraphQLInterfaceType, GraphQLNonNull } from 'graphql/type';
2386
+ *
2387
+ * const Node = new GraphQLInterfaceType({
2388
+ * name: 'Node',
2389
+ * fields: {
2390
+ * id: { type: new GraphQLNonNull(GraphQLID) },
2391
+ * },
2392
+ * });
2393
+ *
2394
+ * const config = Node.toConfig();
2395
+ * const NodeCopy = new GraphQLInterfaceType(config);
2396
+ *
2397
+ * String(config.fields.id.type); // => 'ID!'
2398
+ * String(NodeCopy.getFields().id.type); // => 'ID!'
2399
+ * ```
2400
+ */
2401
+ toConfig(): GraphQLInterfaceTypeNormalizedConfig;
2402
+ /**
2403
+ * Returns the schema coordinate identifying this interface type.
2404
+ * @returns The schema coordinate for this interface type.
2405
+ * @example
2406
+ * ```ts
2407
+ * import { buildSchema } from 'graphql/utilities';
2408
+ * import { assertInterfaceType } from 'graphql/type';
2409
+ *
2410
+ * const schema = buildSchema(`
2411
+ * interface Node {
2412
+ * id: ID!
2413
+ * }
2414
+ *
2415
+ * type User implements Node {
2416
+ * id: ID!
2417
+ * }
2418
+ *
2419
+ * type Query {
2420
+ * node: Node
2421
+ * }
2422
+ * `);
2423
+ *
2424
+ * const Node = assertInterfaceType(schema.getType('Node'));
2425
+ *
2426
+ * Node.toString(); // => 'Node'
2427
+ * ```
2428
+ */
2429
+ toString(): string;
2430
+ /**
2431
+ * Returns the JSON representation used when this object is serialized.
2432
+ * @returns The JSON-serializable representation.
2433
+ * @example
2434
+ * ```ts
2435
+ * import { GraphQLInterfaceType, GraphQLString } from 'graphql/type';
2436
+ *
2437
+ * const Named = new GraphQLInterfaceType({
2438
+ * name: 'Named',
2439
+ * fields: { name: { type: GraphQLString } },
2440
+ * });
2441
+ *
2442
+ * Named.toJSON(); // => 'Named'
2443
+ * JSON.stringify({ type: Named }); // => '{"type":"Named"}'
2444
+ * ```
2445
+ */
2446
+ toJSON(): string;
2447
+ }
2448
+ /**
2449
+ * Configuration used to construct a GraphQLInterfaceType.
2450
+ * @typeParam TSource - Source object type passed to resolvers.
2451
+ * @typeParam TContext - Context object type passed to resolvers.
2452
+ */
2453
+ export interface GraphQLInterfaceTypeConfig<TSource, TContext> {
2454
+ /** The GraphQL name for this schema element. */
2455
+ name: string;
2456
+ /** Human-readable description for this schema element, if provided. */
2457
+ description?: Maybe<string>;
2458
+ /** Interfaces implemented by this object or interface type. */
2459
+ interfaces?: ThunkReadonlyArray<GraphQLInterfaceType>;
2460
+ /** Fields declared by this object, interface, input object, or literal. */
2461
+ fields: ThunkObjMap<GraphQLFieldConfig<TSource, TContext>>;
2462
+ /**
2463
+ * Optionally provide a custom type resolver function. If one is not provided,
2464
+ * the default implementation will call `isTypeOf` on each implementing
2465
+ * Object type.
2466
+ */
2467
+ resolveType?: Maybe<GraphQLTypeResolver<TSource, TContext>>;
2468
+ /** Custom extension fields reserved for users. */
2469
+ extensions?: Maybe<Readonly<GraphQLInterfaceTypeExtensions>>;
2470
+ /** AST node from which this schema element was built, if available. */
2471
+ astNode?: Maybe<InterfaceTypeDefinitionNode>;
2472
+ /** AST extension nodes applied to this schema element. */
2473
+ extensionASTNodes?: Maybe<ReadonlyArray<InterfaceTypeExtensionNode>>;
2474
+ }
2475
+ /** @internal */
2476
+ export interface GraphQLInterfaceTypeNormalizedConfig
2477
+ extends GraphQLInterfaceTypeConfig<any, any> {
2478
+ interfaces: ReadonlyArray<GraphQLInterfaceType>;
2479
+ fields: GraphQLFieldConfigMap<any, any>;
2480
+ extensions: Readonly<GraphQLInterfaceTypeExtensions>;
2481
+ extensionASTNodes: ReadonlyArray<InterfaceTypeExtensionNode>;
2482
+ }
2483
+ /**
2484
+ * Custom extensions
2485
+ * @remarks
2486
+ * Use a unique identifier name for your extension, for example the name of
2487
+ * your library or project. Do not use a shortened identifier as this increases
2488
+ * the risk of conflicts. We recommend you add at most one extension field,
2489
+ * an object which can contain all the values you need.
2490
+ */
2491
+ export interface GraphQLUnionTypeExtensions {
2492
+ [attributeName: string]: unknown;
2493
+ }
2494
+ /**
2495
+ * Union Type Definition
2496
+ *
2497
+ * When a field can return one of a heterogeneous set of types, a Union type
2498
+ * is used to describe what types are possible as well as providing a function
2499
+ * to determine which type is actually used when the field is resolved.
2500
+ * @example
2501
+ * ```ts
2502
+ * const PetType = new GraphQLUnionType({
2503
+ * name: 'Pet',
2504
+ * types: [DogType, CatType],
2505
+ * resolveType: (value) => {
2506
+ * if (value instanceof Dog) {
2507
+ * return DogType;
2508
+ * }
2509
+ * if (value instanceof Cat) {
2510
+ * return CatType;
2511
+ * }
2512
+ * }
2513
+ * });
2514
+ * ```
2515
+ */
2516
+ export declare class GraphQLUnionType {
2517
+ /** The GraphQL name for this schema element. */
2518
+ name: string;
2519
+ /** Human-readable description for this schema element, if provided. */
2520
+ description: Maybe<string>;
2521
+ /** Function that resolves the concrete object type for this abstract type. */
2522
+ resolveType: Maybe<GraphQLTypeResolver<any, any>>;
2523
+ /** Custom extension fields reserved for users. */
2524
+ extensions: Readonly<GraphQLUnionTypeExtensions>;
2525
+ /** AST node from which this schema element was built, if available. */
2526
+ astNode: Maybe<UnionTypeDefinitionNode>;
2527
+ /** AST extension nodes applied to this schema element. */
2528
+ extensionASTNodes: ReadonlyArray<UnionTypeExtensionNode>;
2529
+ private _types;
2530
+ /**
2531
+ * Creates a GraphQLUnionType instance.
2532
+ * @param config - Configuration describing this object.
2533
+ * @example
2534
+ * ```ts
2535
+ * import { parse } from 'graphql/language';
2536
+ * import { GraphQLObjectType, GraphQLString, GraphQLUnionType } from 'graphql/type';
2537
+ *
2538
+ * const document = parse(`
2539
+ * union Media = Photo | Video
2540
+ *
2541
+ * extend union Media = Audio
2542
+ * `);
2543
+ *
2544
+ * const Photo = new GraphQLObjectType({
2545
+ * name: 'Photo',
2546
+ * fields: { url: { type: GraphQLString } },
2547
+ * });
2548
+ * const Video = new GraphQLObjectType({
2549
+ * name: 'Video',
2550
+ * fields: { url: { type: GraphQLString } },
2551
+ * });
2552
+ *
2553
+ * const Media = new GraphQLUnionType({
2554
+ * name: 'Media',
2555
+ * description: 'Media that can appear in a search result.',
2556
+ * types: [Photo, Video],
2557
+ * resolveType: (value) => {
2558
+ * return typeof value === 'object' && value != null && 'duration' in value
2559
+ * ? 'Video'
2560
+ * : 'Photo';
2561
+ * },
2562
+ * extensions: { searchable: true },
2563
+ * astNode: document.definitions[0],
2564
+ * extensionASTNodes: [ document.definitions[1] ],
2565
+ * });
2566
+ *
2567
+ * Media.description; // => 'Media that can appear in a search result.'
2568
+ * Media.getTypes().map((type) => type.name); // => ['Photo', 'Video']
2569
+ * Media.extensions; // => { searchable: true }
2570
+ * ```
2571
+ */
2572
+ constructor(config: Readonly<GraphQLUnionTypeConfig<any, any>>);
2573
+ /**
2574
+ * Returns the value used by `Object.prototype.toString`.
2575
+ * @returns The built-in string tag for this object.
2576
+ */
2577
+ get [Symbol.toStringTag](): string;
2578
+ /**
2579
+ * Returns the object types included in this union.
2580
+ * @returns The union member object types.
2581
+ * @example
2582
+ * ```ts
2583
+ * import { buildSchema } from 'graphql/utilities';
2584
+ * import { assertUnionType } from 'graphql/type';
2585
+ *
2586
+ * const schema = buildSchema(`
2587
+ * type Photo {
2588
+ * url: String!
2589
+ * }
2590
+ *
2591
+ * type Video {
2592
+ * url: String!
2593
+ * }
2594
+ *
2595
+ * union Media = Photo | Video
2596
+ *
2597
+ * type Query {
2598
+ * media: [Media]
2599
+ * }
2600
+ * `);
2601
+ *
2602
+ * const Media = assertUnionType(schema.getType('Media'));
2603
+ *
2604
+ * Media.getTypes().map((type) => type.name); // => ['Photo', 'Video']
2605
+ * ```
2606
+ */
2607
+ getTypes(): ReadonlyArray<GraphQLObjectType>;
2608
+ /**
2609
+ * Returns a normalized configuration object for this object.
2610
+ * @returns A configuration object that can be used to recreate this object.
2611
+ * @example
2612
+ * ```ts
2613
+ * import { GraphQLObjectType, GraphQLString, GraphQLUnionType } from 'graphql/type';
2614
+ *
2615
+ * const Photo = new GraphQLObjectType({
2616
+ * name: 'Photo',
2617
+ * fields: { url: { type: GraphQLString } },
2618
+ * });
2619
+ * const Video = new GraphQLObjectType({
2620
+ * name: 'Video',
2621
+ * fields: { url: { type: GraphQLString } },
2622
+ * });
2623
+ * const Media = new GraphQLUnionType({
2624
+ * name: 'Media',
2625
+ * types: [Photo, Video],
2626
+ * });
2627
+ *
2628
+ * const config = Media.toConfig();
2629
+ * const MediaCopy = new GraphQLUnionType(config);
2630
+ *
2631
+ * MediaCopy.getTypes().map((type) => type.name); // => ['Photo', 'Video']
2632
+ * ```
2633
+ */
2634
+ toConfig(): GraphQLUnionTypeNormalizedConfig;
2635
+ /**
2636
+ * Returns the schema coordinate identifying this union type.
2637
+ * @returns The schema coordinate for this union type.
2638
+ * @example
2639
+ * ```ts
2640
+ * import { buildSchema } from 'graphql/utilities';
2641
+ * import { assertUnionType } from 'graphql/type';
2642
+ *
2643
+ * const schema = buildSchema(`
2644
+ * type Photo {
2645
+ * url: String!
2646
+ * }
2647
+ *
2648
+ * union SearchResult = Photo
2649
+ *
2650
+ * type Query {
2651
+ * search: [SearchResult]
2652
+ * }
2653
+ * `);
2654
+ *
2655
+ * const SearchResult = assertUnionType(schema.getType('SearchResult'));
2656
+ *
2657
+ * SearchResult.toString(); // => 'SearchResult'
2658
+ * ```
2659
+ */
2660
+ toString(): string;
2661
+ /**
2662
+ * Returns the JSON representation used when this object is serialized.
2663
+ * @returns The JSON-serializable representation.
2664
+ * @example
2665
+ * ```ts
2666
+ * import { GraphQLObjectType, GraphQLString, GraphQLUnionType } from 'graphql/type';
2667
+ *
2668
+ * const Photo = new GraphQLObjectType({
2669
+ * name: 'Photo',
2670
+ * fields: { url: { type: GraphQLString } },
2671
+ * });
2672
+ * const SearchResult = new GraphQLUnionType({
2673
+ * name: 'SearchResult',
2674
+ * types: [Photo],
2675
+ * });
2676
+ *
2677
+ * SearchResult.toJSON(); // => 'SearchResult'
2678
+ * JSON.stringify({ type: SearchResult }); // => '{"type":"SearchResult"}'
2679
+ * ```
2680
+ */
2681
+ toJSON(): string;
2682
+ }
2683
+ /**
2684
+ * Configuration used to construct a GraphQLUnionType.
2685
+ * @typeParam TSource - Source object type passed to resolvers.
2686
+ * @typeParam TContext - Context object type passed to resolvers.
2687
+ */
2688
+ export interface GraphQLUnionTypeConfig<TSource, TContext> {
2689
+ /** The GraphQL name for this schema element. */
2690
+ name: string;
2691
+ /** Human-readable description for this schema element, if provided. */
2692
+ description?: Maybe<string>;
2693
+ /** Object types that belong to this union type. */
2694
+ types: ThunkReadonlyArray<GraphQLObjectType>;
2695
+ /**
2696
+ * Optionally provide a custom type resolver function. If one is not provided,
2697
+ * the default implementation will call `isTypeOf` on each implementing
2698
+ * Object type.
2699
+ */
2700
+ resolveType?: Maybe<GraphQLTypeResolver<TSource, TContext>>;
2701
+ /** Custom extension fields reserved for users. */
2702
+ extensions?: Maybe<Readonly<GraphQLUnionTypeExtensions>>;
2703
+ /** AST node from which this schema element was built, if available. */
2704
+ astNode?: Maybe<UnionTypeDefinitionNode>;
2705
+ /** AST extension nodes applied to this schema element. */
2706
+ extensionASTNodes?: Maybe<ReadonlyArray<UnionTypeExtensionNode>>;
2707
+ }
2708
+ interface GraphQLUnionTypeNormalizedConfig
2709
+ extends GraphQLUnionTypeConfig<any, any> {
2710
+ types: ReadonlyArray<GraphQLObjectType>;
2711
+ extensions: Readonly<GraphQLUnionTypeExtensions>;
2712
+ extensionASTNodes: ReadonlyArray<UnionTypeExtensionNode>;
2713
+ }
2714
+ /**
2715
+ * Custom extensions
2716
+ * @remarks
2717
+ * Use a unique identifier name for your extension, for example the name of
2718
+ * your library or project. Do not use a shortened identifier as this increases
2719
+ * the risk of conflicts. We recommend you add at most one extension field,
2720
+ * an object which can contain all the values you need.
2721
+ */
2722
+ export interface GraphQLEnumTypeExtensions {
2723
+ [attributeName: string]: unknown;
2724
+ }
2725
+ /**
2726
+ * Enum Type Definition
2727
+ *
2728
+ * Enum types define leaf values whose serialized form is one of a fixed set
2729
+ * of GraphQL enum names. Internally, enum values can map to any runtime value,
2730
+ * often integers.
2731
+ * @example
2732
+ * ```ts
2733
+ * import { GraphQLEnumType } from 'graphql/type';
2734
+ *
2735
+ * const RGBType = new GraphQLEnumType({
2736
+ * name: 'RGB',
2737
+ * values: {
2738
+ * RED: { value: 0 },
2739
+ * GREEN: { value: 1 },
2740
+ * BLUE: { value: 2 },
2741
+ * },
2742
+ * });
2743
+ *
2744
+ * RGBType.getValue('GREEN')?.value; // => 1
2745
+ * ```
2746
+ *
2747
+ * Note: If a value is not provided in a definition, the name of the enum value
2748
+ * will be used as its internal value.
2749
+ */
2750
+ export declare class GraphQLEnumType {
2751
+ /** The GraphQL name for this schema element. */
2752
+ name: string;
2753
+ /** Human-readable description for this schema element, if provided. */
2754
+ description: Maybe<string>;
2755
+ /** Custom extension fields reserved for users. */
2756
+ extensions: Readonly<GraphQLEnumTypeExtensions>;
2757
+ /** AST node from which this schema element was built, if available. */
2758
+ astNode: Maybe<EnumTypeDefinitionNode>;
2759
+ /** AST extension nodes applied to this schema element. */
2760
+ extensionASTNodes: ReadonlyArray<EnumTypeExtensionNode>;
2761
+ private _values;
2762
+ private _valueLookup;
2763
+ private _nameLookup;
2764
+ /**
2765
+ * Creates a GraphQLEnumType instance.
2766
+ * @param config - Configuration describing this object.
2767
+ * @example
2768
+ * ```ts
2769
+ * import { parse } from 'graphql/language';
2770
+ * import { GraphQLEnumType } from 'graphql/type';
2771
+ *
2772
+ * const document = parse(`
2773
+ * enum Episode {
2774
+ * NEW_HOPE
2775
+ * EMPIRE
2776
+ * JEDI
2777
+ * }
2778
+ *
2779
+ * extend enum Episode {
2780
+ * FORCE_AWAKENS
2781
+ * }
2782
+ * `);
2783
+ * const definition = document.definitions[0];
2784
+ *
2785
+ * const Episode = new GraphQLEnumType({
2786
+ * name: 'Episode',
2787
+ * description: 'A Star Wars film episode.',
2788
+ * values: {
2789
+ * NEW_HOPE: {
2790
+ * value: 4,
2791
+ * description: 'Released in 1977.',
2792
+ * extensions: { trilogy: 'original' },
2793
+ * astNode: definition.values[0],
2794
+ * },
2795
+ * EMPIRE: { value: 5, astNode: definition.values[1] },
2796
+ * JEDI: {
2797
+ * value: 6,
2798
+ * deprecationReason: 'Use RETURN_OF_THE_JEDI.',
2799
+ * astNode: definition.values[2],
2800
+ * },
2801
+ * },
2802
+ * extensions: { catalog: 'films' },
2803
+ * astNode: definition,
2804
+ * extensionASTNodes: [ document.definitions[1] ],
2805
+ * });
2806
+ *
2807
+ * Episode.description; // => 'A Star Wars film episode.'
2808
+ * Episode.serialize(5); // => 'EMPIRE'
2809
+ * Episode.parseValue('JEDI'); // => 6
2810
+ * Episode.getValue('JEDI').deprecationReason; // => 'Use RETURN_OF_THE_JEDI.'
2811
+ * Episode.extensions; // => { catalog: 'films' }
2812
+ * ```
2813
+ */
2814
+ constructor(config: Readonly<GraphQLEnumTypeConfig>);
2815
+ /**
2816
+ * Returns the value used by `Object.prototype.toString`.
2817
+ * @returns The built-in string tag for this object.
2818
+ */
2819
+ get [Symbol.toStringTag](): string;
2820
+ /**
2821
+ * Returns the values defined by this enum type.
2822
+ * @returns Enum value definitions in schema order.
2823
+ * @example
2824
+ * ```ts
2825
+ * import { buildSchema } from 'graphql/utilities';
2826
+ * import { assertEnumType } from 'graphql/type';
2827
+ *
2828
+ * const schema = buildSchema(`
2829
+ * enum Episode {
2830
+ * NEW_HOPE
2831
+ * EMPIRE
2832
+ * JEDI
2833
+ * }
2834
+ *
2835
+ * type Query {
2836
+ * episode: Episode
2837
+ * }
2838
+ * `);
2839
+ *
2840
+ * const Episode = assertEnumType(schema.getType('Episode'));
2841
+ *
2842
+ * Episode.getValues().map((value) => value.name); // => ['NEW_HOPE', 'EMPIRE', 'JEDI']
2843
+ * ```
2844
+ */
2845
+ getValues(): ReadonlyArray<GraphQLEnumValue>;
2846
+ /**
2847
+ * Returns the enum value definition for a value name.
2848
+ * @param name - The GraphQL name to look up.
2849
+ * @returns The matching enum value definition, if it exists.
2850
+ * @example
2851
+ * ```ts
2852
+ * import { buildSchema } from 'graphql/utilities';
2853
+ * import { assertEnumType } from 'graphql/type';
2854
+ *
2855
+ * const schema = buildSchema(`
2856
+ * enum Episode {
2857
+ * NEW_HOPE
2858
+ * EMPIRE
2859
+ * }
2860
+ *
2861
+ * type Query {
2862
+ * episode: Episode
2863
+ * }
2864
+ * `);
2865
+ *
2866
+ * const Episode = assertEnumType(schema.getType('Episode'));
2867
+ *
2868
+ * Episode.getValue('EMPIRE')?.name; // => 'EMPIRE'
2869
+ * Episode.getValue('JEDI'); // => undefined
2870
+ * ```
2871
+ */
2872
+ getValue(name: string): Maybe<GraphQLEnumValue>;
2873
+ /**
2874
+ * Serializes a runtime enum value as a GraphQL enum name.
2875
+ * @param outputValue - Runtime enum value to serialize.
2876
+ * @returns The GraphQL enum name for the runtime value.
2877
+ * @example
2878
+ * ```ts
2879
+ * import { GraphQLEnumType } from 'graphql/type';
2880
+ *
2881
+ * const RGB = new GraphQLEnumType({
2882
+ * name: 'RGB',
2883
+ * values: {
2884
+ * RED: { value: 0 },
2885
+ * GREEN: { value: 1 },
2886
+ * BLUE: { value: 2 },
2887
+ * },
2888
+ * });
2889
+ *
2890
+ * RGB.serialize(1); // => 'GREEN'
2891
+ * RGB.serialize(3); // throws an error
2892
+ * ```
2893
+ */
2894
+ serialize(outputValue: unknown): Maybe<string>;
2895
+ /**
2896
+ * Parses a GraphQL enum name from variable input.
2897
+ * @param inputValue - Runtime input value to parse.
2898
+ * @returns The internal enum value represented by the input name.
2899
+ * @example
2900
+ * ```ts
2901
+ * import { GraphQLEnumType } from 'graphql/type';
2902
+ *
2903
+ * const RGB = new GraphQLEnumType({
2904
+ * name: 'RGB',
2905
+ * values: {
2906
+ * RED: { value: 0 },
2907
+ * GREEN: { value: 1 },
2908
+ * BLUE: { value: 2 },
2909
+ * },
2910
+ * });
2911
+ *
2912
+ * RGB.parseValue('BLUE'); // => 2
2913
+ * RGB.parseValue('PURPLE'); // throws an error
2914
+ * RGB.parseValue(2); // throws an error
2915
+ * ```
2916
+ */
2917
+ parseValue(inputValue: unknown): Maybe<any>;
2918
+ /**
2919
+ * Parses a GraphQL enum name from an AST value literal.
2920
+ * @param valueNode - AST value literal to parse.
2921
+ * @param _variables - Runtime variable values; ignored because enum literals cannot contain variables.
2922
+ * @returns The internal enum value represented by the literal.
2923
+ * @example
2924
+ * ```ts
2925
+ * import { parseValue } from 'graphql/language';
2926
+ * import { GraphQLEnumType } from 'graphql/type';
2927
+ *
2928
+ * const RGB = new GraphQLEnumType({
2929
+ * name: 'RGB',
2930
+ * values: {
2931
+ * RED: { value: 0 },
2932
+ * GREEN: { value: 1 },
2933
+ * BLUE: { value: 2 },
2934
+ * },
2935
+ * });
2936
+ *
2937
+ * RGB.parseLiteral(parseValue('RED')); // => 0
2938
+ * RGB.parseLiteral(parseValue('"RED"')); // throws an error
2939
+ * ```
2940
+ */
2941
+ parseLiteral(
2942
+ valueNode: ValueNode,
2943
+ _variables: Maybe<ObjMap<unknown>>,
2944
+ ): Maybe<any>;
2945
+ /**
2946
+ * Returns a normalized configuration object for this object.
2947
+ * @returns A configuration object that can be used to recreate this object.
2948
+ * @example
2949
+ * ```ts
2950
+ * import { GraphQLEnumType } from 'graphql/type';
2951
+ *
2952
+ * const RGB = new GraphQLEnumType({
2953
+ * name: 'RGB',
2954
+ * values: {
2955
+ * RED: { value: 0 },
2956
+ * GREEN: { value: 1 },
2957
+ * BLUE: { value: 2 },
2958
+ * },
2959
+ * });
2960
+ *
2961
+ * const config = RGB.toConfig();
2962
+ * const RGBCopy = new GraphQLEnumType(config);
2963
+ *
2964
+ * config.values.GREEN.value; // => 1
2965
+ * RGBCopy.serialize(2); // => 'BLUE'
2966
+ * ```
2967
+ */
2968
+ toConfig(): GraphQLEnumTypeNormalizedConfig;
2969
+ /**
2970
+ * Returns the schema coordinate identifying this enum type.
2971
+ * @returns The schema coordinate for this enum type.
2972
+ * @example
2973
+ * ```ts
2974
+ * import { buildSchema } from 'graphql/utilities';
2975
+ * import { assertEnumType } from 'graphql/type';
2976
+ *
2977
+ * const schema = buildSchema(`
2978
+ * enum Episode {
2979
+ * NEW_HOPE
2980
+ * }
2981
+ *
2982
+ * type Query {
2983
+ * episode: Episode
2984
+ * }
2985
+ * `);
2986
+ *
2987
+ * const Episode = assertEnumType(schema.getType('Episode'));
2988
+ *
2989
+ * Episode.toString(); // => 'Episode'
2990
+ * ```
2991
+ */
2992
+ toString(): string;
2993
+ /**
2994
+ * Returns the JSON representation used when this object is serialized.
2995
+ * @returns The JSON-serializable representation.
2996
+ * @example
2997
+ * ```ts
2998
+ * import { GraphQLEnumType } from 'graphql/type';
2999
+ *
3000
+ * const Episode = new GraphQLEnumType({
3001
+ * name: 'Episode',
3002
+ * values: {
3003
+ * NEW_HOPE: {},
3004
+ * },
3005
+ * });
3006
+ *
3007
+ * Episode.toJSON(); // => 'Episode'
3008
+ * JSON.stringify({ type: Episode }); // => '{"type":"Episode"}'
3009
+ * ```
3010
+ */
3011
+ toJSON(): string;
3012
+ }
3013
+ /** Configuration used to construct a GraphQLEnumType. */
3014
+ export interface GraphQLEnumTypeConfig {
3015
+ /** The GraphQL name for this schema element. */
3016
+ name: string;
3017
+ /** Human-readable description for this schema element, if provided. */
3018
+ description?: Maybe<string>;
3019
+ /** Values contained in this enum, list, or input-object definition. */
3020
+ values: ThunkObjMap<GraphQLEnumValueConfig>;
3021
+ /** Custom extension fields reserved for users. */
3022
+ extensions?: Maybe<Readonly<GraphQLEnumTypeExtensions>>;
3023
+ /** AST node from which this schema element was built, if available. */
3024
+ astNode?: Maybe<EnumTypeDefinitionNode>;
3025
+ /** AST extension nodes applied to this schema element. */
3026
+ extensionASTNodes?: Maybe<ReadonlyArray<EnumTypeExtensionNode>>;
3027
+ }
3028
+ interface GraphQLEnumTypeNormalizedConfig extends GraphQLEnumTypeConfig {
3029
+ values: ObjMap<GraphQLEnumValueConfig>;
3030
+ extensions: Readonly<GraphQLEnumTypeExtensions>;
3031
+ extensionASTNodes: ReadonlyArray<EnumTypeExtensionNode>;
3032
+ }
3033
+ /** A map of enum value names to enum value configuration objects. */
3034
+ export declare type GraphQLEnumValueConfigMap = ObjMap<GraphQLEnumValueConfig>;
3035
+ /**
3036
+ * Custom extensions
3037
+ * @remarks
3038
+ * Use a unique identifier name for your extension, for example the name of
3039
+ * your library or project. Do not use a shortened identifier as this increases
3040
+ * the risk of conflicts. We recommend you add at most one extension field,
3041
+ * an object which can contain all the values you need.
3042
+ */
3043
+ export interface GraphQLEnumValueExtensions {
3044
+ [attributeName: string]: unknown;
3045
+ }
3046
+ /** Configuration used to define a GraphQL enum value. */
3047
+ export interface GraphQLEnumValueConfig {
3048
+ /** Human-readable description for this schema element, if provided. */
3049
+ description?: Maybe<string>;
3050
+ /** Parsed value represented by this node. */
3051
+ value?: any;
3052
+ /** Reason this element is deprecated, if one was provided. */
3053
+ deprecationReason?: Maybe<string>;
3054
+ /** Custom extension fields reserved for users. */
3055
+ extensions?: Maybe<Readonly<GraphQLEnumValueExtensions>>;
3056
+ /** AST node from which this schema element was built, if available. */
3057
+ astNode?: Maybe<EnumValueDefinitionNode>;
3058
+ }
3059
+ /** A resolved GraphQL enum value definition. */
3060
+ export interface GraphQLEnumValue {
3061
+ /** The GraphQL name for this schema element. */
3062
+ name: string;
3063
+ /** Human-readable description for this schema element, if provided. */
3064
+ description: Maybe<string>;
3065
+ /** Parsed value represented by this node. */
3066
+ value: any;
3067
+ /** Reason this element is deprecated, if one was provided. */
3068
+ deprecationReason: Maybe<string>;
3069
+ /** Custom extension fields reserved for users. */
3070
+ extensions: Readonly<GraphQLEnumValueExtensions>;
3071
+ /** AST node from which this schema element was built, if available. */
3072
+ astNode: Maybe<EnumValueDefinitionNode>;
3073
+ }
3074
+ /**
3075
+ * Custom extensions
3076
+ * @remarks
3077
+ * Use a unique identifier name for your extension, for example the name of
3078
+ * your library or project. Do not use a shortened identifier as this increases
3079
+ * the risk of conflicts. We recommend you add at most one extension field,
3080
+ * an object which can contain all the values you need.
3081
+ */
3082
+ export interface GraphQLInputObjectTypeExtensions {
3083
+ [attributeName: string]: unknown;
3084
+ }
3085
+ /**
3086
+ * Input Object Type Definition
3087
+ *
3088
+ * An input object defines a structured collection of fields which may be
3089
+ * supplied to a field argument.
3090
+ *
3091
+ * Using `NonNull` will ensure that a value must be provided by the query
3092
+ * @example
3093
+ * ```ts
3094
+ * const GeoPoint = new GraphQLInputObjectType({
3095
+ * name: 'GeoPoint',
3096
+ * fields: {
3097
+ * lat: { type: new GraphQLNonNull(GraphQLFloat) },
3098
+ * lon: { type: new GraphQLNonNull(GraphQLFloat) },
3099
+ * alt: { type: GraphQLFloat, defaultValue: 0 },
3100
+ * }
3101
+ * });
3102
+ * ```
3103
+ */
3104
+ export declare class GraphQLInputObjectType {
3105
+ /** The GraphQL name for this schema element. */
3106
+ name: string;
3107
+ /** Human-readable description for this schema element, if provided. */
3108
+ description: Maybe<string>;
3109
+ /** Custom extension fields reserved for users. */
3110
+ extensions: Readonly<GraphQLInputObjectTypeExtensions>;
3111
+ /** AST node from which this schema element was built, if available. */
3112
+ astNode: Maybe<InputObjectTypeDefinitionNode>;
3113
+ /** AST extension nodes applied to this schema element. */
3114
+ extensionASTNodes: ReadonlyArray<InputObjectTypeExtensionNode>;
3115
+ /** Whether this input object uses the experimental OneOf input object semantics. */
3116
+ isOneOf: boolean;
3117
+ private _fields;
3118
+ /**
3119
+ * Creates a GraphQLInputObjectType instance.
3120
+ * @param config - Configuration describing this object.
3121
+ * @example
3122
+ * ```ts
3123
+ * import { parse } from 'graphql/language';
3124
+ * import {
3125
+ * GraphQLID,
3126
+ * GraphQLInputObjectType,
3127
+ * GraphQLInt,
3128
+ * GraphQLNonNull,
3129
+ * GraphQLString,
3130
+ * } from 'graphql/type';
3131
+ *
3132
+ * const document = parse(`
3133
+ * input ReviewInput {
3134
+ * stars: Int!
3135
+ * commentary: String
3136
+ * }
3137
+ *
3138
+ * extend input ReviewInput {
3139
+ * body: String
3140
+ * }
3141
+ * `);
3142
+ * const definition = document.definitions[0];
3143
+ *
3144
+ * const ReviewInput = new GraphQLInputObjectType({
3145
+ * name: 'ReviewInput',
3146
+ * description: 'Input collected when reviewing a product.',
3147
+ * fields: {
3148
+ * stars: {
3149
+ * description: 'Star rating from one to five.',
3150
+ * type: new GraphQLNonNull(GraphQLInt),
3151
+ * extensions: { min: 1, max: 5 },
3152
+ * astNode: definition.fields[0],
3153
+ * },
3154
+ * commentary: {
3155
+ * type: GraphQLString,
3156
+ * defaultValue: '',
3157
+ * deprecationReason: 'Use body.',
3158
+ * astNode: definition.fields[1],
3159
+ * },
3160
+ * },
3161
+ * extensions: { form: 'review' },
3162
+ * astNode: definition,
3163
+ * extensionASTNodes: [ document.definitions[1] ],
3164
+ * isOneOf: false,
3165
+ * });
3166
+ * const SearchBy = new GraphQLInputObjectType({
3167
+ * name: 'SearchBy',
3168
+ * fields: {
3169
+ * id: { type: GraphQLID },
3170
+ * slug: { type: GraphQLString },
3171
+ * },
3172
+ * isOneOf: true,
3173
+ * });
3174
+ *
3175
+ * const fields = ReviewInput.getFields();
3176
+ *
3177
+ * ReviewInput.description; // => 'Input collected when reviewing a product.'
3178
+ * String(fields.stars.type); // => 'Int!'
3179
+ * fields.stars.extensions; // => { min: 1, max: 5 }
3180
+ * fields.commentary.defaultValue; // => ''
3181
+ * fields.commentary.deprecationReason; // => 'Use body.'
3182
+ * ReviewInput.isOneOf; // => false
3183
+ * SearchBy.isOneOf; // => true
3184
+ * ```
3185
+ */
3186
+ constructor(config: Readonly<GraphQLInputObjectTypeConfig>);
3187
+ /**
3188
+ * Returns the value used by `Object.prototype.toString`.
3189
+ * @returns The built-in string tag for this object.
3190
+ */
3191
+ get [Symbol.toStringTag](): string;
3192
+ /**
3193
+ * Returns the fields defined by this type.
3194
+ * @returns The fields keyed by field name.
3195
+ * @example
3196
+ * ```ts
3197
+ * import { buildSchema } from 'graphql/utilities';
3198
+ * import { assertInputObjectType } from 'graphql/type';
3199
+ *
3200
+ * const schema = buildSchema(`
3201
+ * input ReviewInput {
3202
+ * stars: Int!
3203
+ * commentary: String = ""
3204
+ * }
3205
+ *
3206
+ * type Query {
3207
+ * reviews(filter: ReviewInput): [String]
3208
+ * }
3209
+ * `);
3210
+ *
3211
+ * const ReviewInput = assertInputObjectType(schema.getType('ReviewInput'));
3212
+ * const fields = ReviewInput.getFields();
3213
+ *
3214
+ * Object.keys(fields); // => ['stars', 'commentary']
3215
+ * fields.commentary.defaultValue; // => ''
3216
+ * ```
3217
+ */
3218
+ getFields(): GraphQLInputFieldMap;
3219
+ /**
3220
+ * Returns a normalized configuration object for this object.
3221
+ * @returns A configuration object that can be used to recreate this object.
3222
+ * @example
3223
+ * ```ts
3224
+ * import {
3225
+ * GraphQLInputObjectType,
3226
+ * GraphQLInt,
3227
+ * GraphQLNonNull,
3228
+ * } from 'graphql/type';
3229
+ *
3230
+ * const ReviewInput = new GraphQLInputObjectType({
3231
+ * name: 'ReviewInput',
3232
+ * fields: {
3233
+ * stars: { type: new GraphQLNonNull(GraphQLInt) },
3234
+ * },
3235
+ * });
3236
+ *
3237
+ * const config = ReviewInput.toConfig();
3238
+ * const ReviewInputCopy = new GraphQLInputObjectType(config);
3239
+ *
3240
+ * String(config.fields.stars.type); // => 'Int!'
3241
+ * String(ReviewInputCopy.getFields().stars.type); // => 'Int!'
3242
+ * ```
3243
+ */
3244
+ toConfig(): GraphQLInputObjectTypeNormalizedConfig;
3245
+ /**
3246
+ * Returns the schema coordinate identifying this input object type.
3247
+ * @returns The schema coordinate for this input object type.
3248
+ * @example
3249
+ * ```ts
3250
+ * import { buildSchema } from 'graphql/utilities';
3251
+ * import { assertInputObjectType } from 'graphql/type';
3252
+ *
3253
+ * const schema = buildSchema(`
3254
+ * input ReviewInput {
3255
+ * stars: Int!
3256
+ * }
3257
+ *
3258
+ * type Query {
3259
+ * reviews(filter: ReviewInput): [String]
3260
+ * }
3261
+ * `);
3262
+ *
3263
+ * const ReviewInput = assertInputObjectType(schema.getType('ReviewInput'));
3264
+ *
3265
+ * ReviewInput.toString(); // => 'ReviewInput'
3266
+ * ```
3267
+ */
3268
+ toString(): string;
3269
+ /**
3270
+ * Returns the JSON representation used when this object is serialized.
3271
+ * @returns The JSON-serializable representation.
3272
+ * @example
3273
+ * ```ts
3274
+ * import { GraphQLInputObjectType, GraphQLString } from 'graphql/type';
3275
+ *
3276
+ * const ReviewInput = new GraphQLInputObjectType({
3277
+ * name: 'ReviewInput',
3278
+ * fields: {
3279
+ * commentary: { type: GraphQLString },
3280
+ * },
3281
+ * });
3282
+ *
3283
+ * ReviewInput.toJSON(); // => 'ReviewInput'
3284
+ * JSON.stringify({ type: ReviewInput }); // => '{"type":"ReviewInput"}'
3285
+ * ```
3286
+ */
3287
+ toJSON(): string;
3288
+ }
3289
+ /** Configuration used to construct a GraphQLInputObjectType. */
3290
+ export interface GraphQLInputObjectTypeConfig {
3291
+ /** The GraphQL name for this schema element. */
3292
+ name: string;
3293
+ /** Human-readable description for this schema element, if provided. */
3294
+ description?: Maybe<string>;
3295
+ /** Fields declared by this object, interface, input object, or literal. */
3296
+ fields: ThunkObjMap<GraphQLInputFieldConfig>;
3297
+ /** Custom extension fields reserved for users. */
3298
+ extensions?: Maybe<Readonly<GraphQLInputObjectTypeExtensions>>;
3299
+ /** AST node from which this schema element was built, if available. */
3300
+ astNode?: Maybe<InputObjectTypeDefinitionNode>;
3301
+ /** AST extension nodes applied to this schema element. */
3302
+ extensionASTNodes?: Maybe<ReadonlyArray<InputObjectTypeExtensionNode>>;
3303
+ /** Whether this input object uses the experimental OneOf input object semantics. */
3304
+ isOneOf?: boolean;
3305
+ }
3306
+ interface GraphQLInputObjectTypeNormalizedConfig
3307
+ extends GraphQLInputObjectTypeConfig {
3308
+ fields: GraphQLInputFieldConfigMap;
3309
+ extensions: Readonly<GraphQLInputObjectTypeExtensions>;
3310
+ extensionASTNodes: ReadonlyArray<InputObjectTypeExtensionNode>;
3311
+ }
3312
+ /**
3313
+ * Custom extensions
3314
+ * @remarks
3315
+ * Use a unique identifier name for your extension, for example the name of
3316
+ * your library or project. Do not use a shortened identifier as this increases
3317
+ * the risk of conflicts. We recommend you add at most one extension field,
3318
+ * an object which can contain all the values you need.
3319
+ */
3320
+ export interface GraphQLInputFieldExtensions {
3321
+ [attributeName: string]: unknown;
3322
+ }
3323
+ /** Configuration used to define a GraphQL input field. */
3324
+ export interface GraphQLInputFieldConfig {
3325
+ /** Human-readable description for this schema element, if provided. */
3326
+ description?: Maybe<string>;
3327
+ /** The GraphQL type reference or runtime type for this element. */
3328
+ type: GraphQLInputType;
3329
+ /** Default value used when no explicit value is supplied. */
3330
+ defaultValue?: unknown;
3331
+ /** Reason this element is deprecated, if one was provided. */
3332
+ deprecationReason?: Maybe<string>;
3333
+ /** Custom extension fields reserved for users. */
3334
+ extensions?: Maybe<Readonly<GraphQLInputFieldExtensions>>;
3335
+ /** AST node from which this schema element was built, if available. */
3336
+ astNode?: Maybe<InputValueDefinitionNode>;
3337
+ }
3338
+ /** A map of input field names to input field configuration objects. */
3339
+ export declare type GraphQLInputFieldConfigMap =
3340
+ ObjMap<GraphQLInputFieldConfig>;
3341
+ /** A resolved GraphQL input field definition. */
3342
+ export interface GraphQLInputField {
3343
+ /** The GraphQL name for this schema element. */
3344
+ name: string;
3345
+ /** Human-readable description for this schema element, if provided. */
3346
+ description: Maybe<string>;
3347
+ /** The GraphQL type reference or runtime type for this element. */
3348
+ type: GraphQLInputType;
3349
+ /** Default value used when no explicit value is supplied. */
3350
+ defaultValue: unknown;
3351
+ /** Reason this element is deprecated, if one was provided. */
3352
+ deprecationReason: Maybe<string>;
3353
+ /** Custom extension fields reserved for users. */
3354
+ extensions: Readonly<GraphQLInputFieldExtensions>;
3355
+ /** AST node from which this schema element was built, if available. */
3356
+ astNode: Maybe<InputValueDefinitionNode>;
3357
+ }
3358
+ /**
3359
+ * Returns true when the input field is non-null and has no default value.
3360
+ * @param field - The input field definition to inspect.
3361
+ * @returns True when the input field is non-null and has no default value.
3362
+ * @example
3363
+ * ```ts
3364
+ * import {
3365
+ * GraphQLInt,
3366
+ * GraphQLNonNull,
3367
+ * GraphQLString,
3368
+ * isRequiredInputField,
3369
+ * } from 'graphql/type';
3370
+ *
3371
+ * const requiredField = { name: 'id', type: new GraphQLNonNull(GraphQLInt) };
3372
+ * const optionalField = { name: 'name', type: GraphQLString };
3373
+ * const fieldWithDefault = {
3374
+ * name: 'limit',
3375
+ * type: new GraphQLNonNull(GraphQLInt),
3376
+ * defaultValue: 10,
3377
+ * };
3378
+ *
3379
+ * isRequiredInputField(requiredField); // => true
3380
+ * isRequiredInputField(optionalField); // => false
3381
+ * isRequiredInputField(fieldWithDefault); // => false
3382
+ * ```
3383
+ */
3384
+ export declare function isRequiredInputField(field: GraphQLInputField): boolean;
3385
+ /** A map of input field names to resolved input field definitions. */
3386
+ export declare type GraphQLInputFieldMap = ObjMap<GraphQLInputField>;
3387
+ export {};