@went.tf/discord-bot-framework 2.0.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 (271) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +550 -0
  3. package/build/.tsbuildinfo +1 -0
  4. package/build/api-client/api-client.d.ts +13 -0
  5. package/build/api-client/api-client.d.ts.map +1 -0
  6. package/build/api-client/api-client.js +147 -0
  7. package/build/api-client/api-client.js.map +1 -0
  8. package/build/api-client/api-http-exception.d.ts +7 -0
  9. package/build/api-client/api-http-exception.d.ts.map +1 -0
  10. package/build/api-client/api-http-exception.js +12 -0
  11. package/build/api-client/api-http-exception.js.map +1 -0
  12. package/build/api-client/index.d.ts +4 -0
  13. package/build/api-client/index.d.ts.map +1 -0
  14. package/build/api-client/index.js +4 -0
  15. package/build/api-client/index.js.map +1 -0
  16. package/build/api-client/types.d.ts +105 -0
  17. package/build/api-client/types.d.ts.map +1 -0
  18. package/build/api-client/types.js +8 -0
  19. package/build/api-client/types.js.map +1 -0
  20. package/build/client/create-bot-client.d.ts +14 -0
  21. package/build/client/create-bot-client.d.ts.map +1 -0
  22. package/build/client/create-bot-client.js +19 -0
  23. package/build/client/create-bot-client.js.map +1 -0
  24. package/build/client/create-shard-manager.d.ts +17 -0
  25. package/build/client/create-shard-manager.d.ts.map +1 -0
  26. package/build/client/create-shard-manager.js +26 -0
  27. package/build/client/create-shard-manager.js.map +1 -0
  28. package/build/client/index.d.ts +3 -0
  29. package/build/client/index.d.ts.map +1 -0
  30. package/build/client/index.js +3 -0
  31. package/build/client/index.js.map +1 -0
  32. package/build/commands/build-application-commands-body.d.ts +39 -0
  33. package/build/commands/build-application-commands-body.d.ts.map +1 -0
  34. package/build/commands/build-application-commands-body.js +127 -0
  35. package/build/commands/build-application-commands-body.js.map +1 -0
  36. package/build/commands/fixed-reply-command-factory.d.ts +10 -0
  37. package/build/commands/fixed-reply-command-factory.d.ts.map +1 -0
  38. package/build/commands/fixed-reply-command-factory.js +19 -0
  39. package/build/commands/fixed-reply-command-factory.js.map +1 -0
  40. package/build/commands/index.d.ts +4 -0
  41. package/build/commands/index.d.ts.map +1 -0
  42. package/build/commands/index.js +4 -0
  43. package/build/commands/index.js.map +1 -0
  44. package/build/commands/registration.d.ts +24 -0
  45. package/build/commands/registration.d.ts.map +1 -0
  46. package/build/commands/registration.js +69 -0
  47. package/build/commands/registration.js.map +1 -0
  48. package/build/commands/schema/application-command-leaf-option.schema.d.ts +230 -0
  49. package/build/commands/schema/application-command-leaf-option.schema.d.ts.map +1 -0
  50. package/build/commands/schema/application-command-leaf-option.schema.js +129 -0
  51. package/build/commands/schema/application-command-leaf-option.schema.js.map +1 -0
  52. package/build/commands/schema/application-command-leaf-option.schema.json +258 -0
  53. package/build/commands/schema/application-command-option-choice.schema.d.ts +18 -0
  54. package/build/commands/schema/application-command-option-choice.schema.d.ts.map +1 -0
  55. package/build/commands/schema/application-command-option-choice.schema.js +12 -0
  56. package/build/commands/schema/application-command-option-choice.schema.js.map +1 -0
  57. package/build/commands/schema/application-command-option-choice.schema.json +23 -0
  58. package/build/commands/schema/application-command-option.schema.d.ts +12 -0
  59. package/build/commands/schema/application-command-option.schema.d.ts.map +1 -0
  60. package/build/commands/schema/application-command-option.schema.js +13 -0
  61. package/build/commands/schema/application-command-option.schema.js.map +1 -0
  62. package/build/commands/schema/application-command-option.schema.json +14 -0
  63. package/build/commands/schema/application-command-subcommand-group.schema.d.ts +28 -0
  64. package/build/commands/schema/application-command-subcommand-group.schema.d.ts.map +1 -0
  65. package/build/commands/schema/application-command-subcommand-group.schema.js +22 -0
  66. package/build/commands/schema/application-command-subcommand-group.schema.js.map +1 -0
  67. package/build/commands/schema/application-command-subcommand-group.schema.json +26 -0
  68. package/build/commands/schema/application-command-subcommand.schema.d.ts +29 -0
  69. package/build/commands/schema/application-command-subcommand.schema.d.ts.map +1 -0
  70. package/build/commands/schema/application-command-subcommand.schema.js +23 -0
  71. package/build/commands/schema/application-command-subcommand.schema.js.map +1 -0
  72. package/build/commands/schema/application-command-subcommand.schema.json +26 -0
  73. package/build/commands/schema/application-command-type.schema.d.ts +6 -0
  74. package/build/commands/schema/application-command-type.schema.d.ts.map +1 -0
  75. package/build/commands/schema/application-command-type.schema.js +6 -0
  76. package/build/commands/schema/application-command-type.schema.js.map +1 -0
  77. package/build/commands/schema/application-command-type.schema.json +9 -0
  78. package/build/commands/schema/application-integration-type.schema.d.ts +6 -0
  79. package/build/commands/schema/application-integration-type.schema.d.ts.map +1 -0
  80. package/build/commands/schema/application-integration-type.schema.js +6 -0
  81. package/build/commands/schema/application-integration-type.schema.js.map +1 -0
  82. package/build/commands/schema/application-integration-type.schema.json +8 -0
  83. package/build/commands/schema/channel-type.schema.d.ts +6 -0
  84. package/build/commands/schema/channel-type.schema.d.ts.map +1 -0
  85. package/build/commands/schema/channel-type.schema.js +6 -0
  86. package/build/commands/schema/channel-type.schema.js.map +1 -0
  87. package/build/commands/schema/channel-type.schema.json +16 -0
  88. package/build/commands/schema/chat-input-command.schema.d.ts +45 -0
  89. package/build/commands/schema/chat-input-command.schema.d.ts.map +1 -0
  90. package/build/commands/schema/chat-input-command.schema.js +34 -0
  91. package/build/commands/schema/chat-input-command.schema.js.map +1 -0
  92. package/build/commands/schema/chat-input-command.schema.json +46 -0
  93. package/build/commands/schema/commands-file.schema.d.ts +18 -0
  94. package/build/commands/schema/commands-file.schema.d.ts.map +1 -0
  95. package/build/commands/schema/commands-file.schema.js +16 -0
  96. package/build/commands/schema/commands-file.schema.js.map +1 -0
  97. package/build/commands/schema/commands-file.schema.json +14 -0
  98. package/build/commands/schema/context-menu-command.schema.d.ts +40 -0
  99. package/build/commands/schema/context-menu-command.schema.d.ts.map +1 -0
  100. package/build/commands/schema/context-menu-command.schema.js +32 -0
  101. package/build/commands/schema/context-menu-command.schema.js.map +1 -0
  102. package/build/commands/schema/context-menu-command.schema.json +40 -0
  103. package/build/commands/schema/context-menu-name.schema.d.ts +7 -0
  104. package/build/commands/schema/context-menu-name.schema.d.ts.map +1 -0
  105. package/build/commands/schema/context-menu-name.schema.js +7 -0
  106. package/build/commands/schema/context-menu-name.schema.js.map +1 -0
  107. package/build/commands/schema/context-menu-name.schema.json +6 -0
  108. package/build/commands/schema/default-member-permissions.schema.d.ts +7 -0
  109. package/build/commands/schema/default-member-permissions.schema.d.ts.map +1 -0
  110. package/build/commands/schema/default-member-permissions.schema.js +7 -0
  111. package/build/commands/schema/default-member-permissions.schema.js.map +1 -0
  112. package/build/commands/schema/default-member-permissions.schema.json +6 -0
  113. package/build/commands/schema/index.d.ts +77 -0
  114. package/build/commands/schema/index.d.ts.map +1 -0
  115. package/build/commands/schema/index.js +48 -0
  116. package/build/commands/schema/index.js.map +1 -0
  117. package/build/commands/schema/interaction-context-type.schema.d.ts +6 -0
  118. package/build/commands/schema/interaction-context-type.schema.d.ts.map +1 -0
  119. package/build/commands/schema/interaction-context-type.schema.js +6 -0
  120. package/build/commands/schema/interaction-context-type.schema.js.map +1 -0
  121. package/build/commands/schema/interaction-context-type.schema.json +9 -0
  122. package/build/commands/schema/option-name.schema.d.ts +7 -0
  123. package/build/commands/schema/option-name.schema.d.ts.map +1 -0
  124. package/build/commands/schema/option-name.schema.js +7 -0
  125. package/build/commands/schema/option-name.schema.js.map +1 -0
  126. package/build/commands/schema/option-name.schema.json +6 -0
  127. package/build/commands/schema/parse-commands-file.d.ts +19 -0
  128. package/build/commands/schema/parse-commands-file.d.ts.map +1 -0
  129. package/build/commands/schema/parse-commands-file.js +19 -0
  130. package/build/commands/schema/parse-commands-file.js.map +1 -0
  131. package/build/db/create-postgres-prisma-db.d.ts +20 -0
  132. package/build/db/create-postgres-prisma-db.d.ts.map +1 -0
  133. package/build/db/create-postgres-prisma-db.js +17 -0
  134. package/build/db/create-postgres-prisma-db.js.map +1 -0
  135. package/build/db/index.d.ts +2 -0
  136. package/build/db/index.d.ts.map +1 -0
  137. package/build/db/index.js +2 -0
  138. package/build/db/index.js.map +1 -0
  139. package/build/dev/create-handler-watcher.d.ts +23 -0
  140. package/build/dev/create-handler-watcher.d.ts.map +1 -0
  141. package/build/dev/create-handler-watcher.js +55 -0
  142. package/build/dev/create-handler-watcher.js.map +1 -0
  143. package/build/dev/create-source-reloader.d.ts +37 -0
  144. package/build/dev/create-source-reloader.d.ts.map +1 -0
  145. package/build/dev/create-source-reloader.js +42 -0
  146. package/build/dev/create-source-reloader.js.map +1 -0
  147. package/build/dev/index.d.ts +3 -0
  148. package/build/dev/index.d.ts.map +1 -0
  149. package/build/dev/index.js +3 -0
  150. package/build/dev/index.js.map +1 -0
  151. package/build/dev/reload-loader.d.ts +11 -0
  152. package/build/dev/reload-loader.d.ts.map +1 -0
  153. package/build/dev/reload-loader.js +28 -0
  154. package/build/dev/reload-loader.js.map +1 -0
  155. package/build/env/define-env.d.ts +25 -0
  156. package/build/env/define-env.d.ts.map +1 -0
  157. package/build/env/define-env.js +24 -0
  158. package/build/env/define-env.js.map +1 -0
  159. package/build/env/helpers.d.ts +9 -0
  160. package/build/env/helpers.d.ts.map +1 -0
  161. package/build/env/helpers.js +9 -0
  162. package/build/env/helpers.js.map +1 -0
  163. package/build/env/index.d.ts +3 -0
  164. package/build/env/index.d.ts.map +1 -0
  165. package/build/env/index.js +3 -0
  166. package/build/env/index.js.map +1 -0
  167. package/build/i18n/create-command-localizer.d.ts +27 -0
  168. package/build/i18n/create-command-localizer.d.ts.map +1 -0
  169. package/build/i18n/create-command-localizer.js +40 -0
  170. package/build/i18n/create-command-localizer.js.map +1 -0
  171. package/build/i18n/create-i18n-initializer.d.ts +18 -0
  172. package/build/i18n/create-i18n-initializer.d.ts.map +1 -0
  173. package/build/i18n/create-i18n-initializer.js +34 -0
  174. package/build/i18n/create-i18n-initializer.js.map +1 -0
  175. package/build/i18n/index.d.ts +3 -0
  176. package/build/i18n/index.d.ts.map +1 -0
  177. package/build/i18n/index.js +3 -0
  178. package/build/i18n/index.js.map +1 -0
  179. package/build/index.d.ts +8 -0
  180. package/build/index.d.ts.map +1 -0
  181. package/build/index.js +12 -0
  182. package/build/index.js.map +1 -0
  183. package/build/interactions/custom-id.d.ts +9 -0
  184. package/build/interactions/custom-id.d.ts.map +1 -0
  185. package/build/interactions/custom-id.js +15 -0
  186. package/build/interactions/custom-id.js.map +1 -0
  187. package/build/interactions/dispatch.d.ts +35 -0
  188. package/build/interactions/dispatch.d.ts.map +1 -0
  189. package/build/interactions/dispatch.js +87 -0
  190. package/build/interactions/dispatch.js.map +1 -0
  191. package/build/interactions/handle-interaction-error.d.ts +22 -0
  192. package/build/interactions/handle-interaction-error.d.ts.map +1 -0
  193. package/build/interactions/handle-interaction-error.js +65 -0
  194. package/build/interactions/handle-interaction-error.js.map +1 -0
  195. package/build/interactions/index.d.ts +7 -0
  196. package/build/interactions/index.d.ts.map +1 -0
  197. package/build/interactions/index.js +7 -0
  198. package/build/interactions/index.js.map +1 -0
  199. package/build/interactions/registry.d.ts +32 -0
  200. package/build/interactions/registry.d.ts.map +1 -0
  201. package/build/interactions/registry.js +49 -0
  202. package/build/interactions/registry.js.map +1 -0
  203. package/build/interactions/router.d.ts +28 -0
  204. package/build/interactions/router.d.ts.map +1 -0
  205. package/build/interactions/router.js +48 -0
  206. package/build/interactions/router.js.map +1 -0
  207. package/build/interactions/types.d.ts +37 -0
  208. package/build/interactions/types.d.ts.map +1 -0
  209. package/build/interactions/types.js +2 -0
  210. package/build/interactions/types.js.map +1 -0
  211. package/build/logger/create-logger.d.ts +27 -0
  212. package/build/logger/create-logger.d.ts.map +1 -0
  213. package/build/logger/create-logger.js +36 -0
  214. package/build/logger/create-logger.js.map +1 -0
  215. package/build/logger/dev-null-logger.d.ts +11 -0
  216. package/build/logger/dev-null-logger.d.ts.map +1 -0
  217. package/build/logger/dev-null-logger.js +19 -0
  218. package/build/logger/dev-null-logger.js.map +1 -0
  219. package/build/logger/discord-webhook-batcher.d.ts +38 -0
  220. package/build/logger/discord-webhook-batcher.d.ts.map +1 -0
  221. package/build/logger/discord-webhook-batcher.js +87 -0
  222. package/build/logger/discord-webhook-batcher.js.map +1 -0
  223. package/build/logger/discord-webhook-transport.d.ts +9 -0
  224. package/build/logger/discord-webhook-transport.d.ts.map +1 -0
  225. package/build/logger/discord-webhook-transport.js +20 -0
  226. package/build/logger/discord-webhook-transport.js.map +1 -0
  227. package/build/logger/index.d.ts +5 -0
  228. package/build/logger/index.d.ts.map +1 -0
  229. package/build/logger/index.js +5 -0
  230. package/build/logger/index.js.map +1 -0
  231. package/build/logger/logger.d.ts +30 -0
  232. package/build/logger/logger.d.ts.map +1 -0
  233. package/build/logger/logger.js +84 -0
  234. package/build/logger/logger.js.map +1 -0
  235. package/build/logger/pino-pretty-options.d.ts +12 -0
  236. package/build/logger/pino-pretty-options.d.ts.map +1 -0
  237. package/build/logger/pino-pretty-options.js +17 -0
  238. package/build/logger/pino-pretty-options.js.map +1 -0
  239. package/build/logger/types.d.ts +6 -0
  240. package/build/logger/types.d.ts.map +1 -0
  241. package/build/logger/types.js +2 -0
  242. package/build/logger/types.js.map +1 -0
  243. package/build/utils/discord-lookups.d.ts +16 -0
  244. package/build/utils/discord-lookups.d.ts.map +1 -0
  245. package/build/utils/discord-lookups.js +39 -0
  246. package/build/utils/discord-lookups.js.map +1 -0
  247. package/build/utils/get-git-data.d.ts +8 -0
  248. package/build/utils/get-git-data.d.ts.map +1 -0
  249. package/build/utils/get-git-data.js +18 -0
  250. package/build/utils/get-git-data.js.map +1 -0
  251. package/build/utils/index.d.ts +7 -0
  252. package/build/utils/index.d.ts.map +1 -0
  253. package/build/utils/index.js +7 -0
  254. package/build/utils/index.js.map +1 -0
  255. package/build/utils/messaging.d.ts +15 -0
  256. package/build/utils/messaging.d.ts.map +1 -0
  257. package/build/utils/messaging.js +71 -0
  258. package/build/utils/messaging.js.map +1 -0
  259. package/build/utils/promises.d.ts +6 -0
  260. package/build/utils/promises.d.ts.map +1 -0
  261. package/build/utils/promises.js +13 -0
  262. package/build/utils/promises.js.map +1 -0
  263. package/build/utils/run-attempts.d.ts +6 -0
  264. package/build/utils/run-attempts.d.ts.map +1 -0
  265. package/build/utils/run-attempts.js +16 -0
  266. package/build/utils/run-attempts.js.map +1 -0
  267. package/build/utils/strings.d.ts +7 -0
  268. package/build/utils/strings.d.ts.map +1 -0
  269. package/build/utils/strings.js +39 -0
  270. package/build/utils/strings.js.map +1 -0
  271. package/package.json +146 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registration.js","sourceRoot":"","sources":["../../src/commands/registration.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,MAAM,GACP,MAAM,uBAAuB,CAAC;AAkB/B;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAA2B;IACzG,OAAO;QACL,KAAK,CAAC,oBAAoB;YACxB,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;YACvD,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;YAC1C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,CAAsC,CAAC;YACxF,MAAM,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,MAAM,qBAAqB,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;YACxF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACzC,CAAC;QAED,KAAK,CAAC,mBAAmB,CAAC,OAAO,EAAE,IAAI;YACrC,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,qBAAqB,EAAE,SAAS,OAAO,EAAE,CAAC,CAAC,CAAC;YAC5E,IAAI,CAAC;gBACH,MAAM,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;gBAC/C,MAAM,MAAM,GA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EAAE,IAAI,EAAE,CAC8B,CAAC;gBACzC,MAAM,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;gBACzD,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,CAAC,KAAK,CAAC,uCAAuC,EAAE,KAAK,CAAC,CAAC;gBAC7D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;QACH,CAAC;QAED,KAAK,CAAC,mBAAmB;YACvB,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;YACtD,IAAI,CAAC;gBACH,MAAM,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;gBACpD,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,mBAAmB,CAAC,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;gBACxE,MAAM,CAAC,GAAG,CAAC,2CAA2C,CAAC,CAAC;YAC1D,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,CAAC,KAAK,CAAC,sCAAsC,EAAE,KAAK,CAAC,CAAC;gBAC5D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,230 @@
1
+ /**
2
+ * A non-nesting ApplicationCommandOption (every type except Subcommand/SubcommandGroup).
3
+ * Modeled as flat oneOf branches (not allOf-composed with a shared base) because
4
+ * additionalProperties:false inside an allOf branch only evaluates that branch's own
5
+ * declared properties, rejecting fields declared on sibling allOf members (e.g. a
6
+ * shared `name`) as "additional" and collapsing json-schema-to-ts's derived type to
7
+ * `never` - confirmed via spike.
8
+ */
9
+ export declare const applicationCommandLeafOptionSchema: {
10
+ readonly $id: "https://schema.went.tf/discord-bot-framework/application-command-leaf-option.json";
11
+ readonly oneOf: readonly [{
12
+ readonly type: "object";
13
+ readonly properties: {
14
+ readonly name: {
15
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/option-name.json";
16
+ };
17
+ readonly description: {
18
+ readonly type: "string";
19
+ };
20
+ readonly type: {
21
+ readonly const: 3;
22
+ };
23
+ readonly required: {
24
+ readonly type: "boolean";
25
+ };
26
+ readonly autocomplete: {
27
+ readonly type: "boolean";
28
+ };
29
+ readonly choices: {
30
+ readonly type: "array";
31
+ readonly items: {
32
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/application-command-option-choice.json";
33
+ };
34
+ };
35
+ readonly min_length: {
36
+ readonly type: "integer";
37
+ readonly minimum: 0;
38
+ readonly maximum: 6000;
39
+ };
40
+ readonly max_length: {
41
+ readonly type: "integer";
42
+ readonly minimum: 1;
43
+ readonly maximum: 6000;
44
+ };
45
+ };
46
+ readonly required: readonly ["name", "type"];
47
+ readonly additionalProperties: false;
48
+ }, {
49
+ readonly type: "object";
50
+ readonly properties: {
51
+ readonly name: {
52
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/option-name.json";
53
+ };
54
+ readonly description: {
55
+ readonly type: "string";
56
+ };
57
+ readonly type: {
58
+ readonly const: 4;
59
+ };
60
+ readonly required: {
61
+ readonly type: "boolean";
62
+ };
63
+ readonly autocomplete: {
64
+ readonly type: "boolean";
65
+ };
66
+ readonly choices: {
67
+ readonly type: "array";
68
+ readonly items: {
69
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/application-command-option-choice.json";
70
+ };
71
+ };
72
+ readonly min_value: {
73
+ readonly type: "integer";
74
+ };
75
+ readonly max_value: {
76
+ readonly type: "integer";
77
+ };
78
+ };
79
+ readonly required: readonly ["name", "type"];
80
+ readonly additionalProperties: false;
81
+ }, {
82
+ readonly type: "object";
83
+ readonly properties: {
84
+ readonly name: {
85
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/option-name.json";
86
+ };
87
+ readonly description: {
88
+ readonly type: "string";
89
+ };
90
+ readonly type: {
91
+ readonly const: 5;
92
+ };
93
+ readonly required: {
94
+ readonly type: "boolean";
95
+ };
96
+ };
97
+ readonly required: readonly ["name", "type"];
98
+ readonly additionalProperties: false;
99
+ }, {
100
+ readonly type: "object";
101
+ readonly properties: {
102
+ readonly name: {
103
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/option-name.json";
104
+ };
105
+ readonly description: {
106
+ readonly type: "string";
107
+ };
108
+ readonly type: {
109
+ readonly const: 6;
110
+ };
111
+ readonly required: {
112
+ readonly type: "boolean";
113
+ };
114
+ };
115
+ readonly required: readonly ["name", "type"];
116
+ readonly additionalProperties: false;
117
+ }, {
118
+ readonly type: "object";
119
+ readonly properties: {
120
+ readonly name: {
121
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/option-name.json";
122
+ };
123
+ readonly description: {
124
+ readonly type: "string";
125
+ };
126
+ readonly type: {
127
+ readonly const: 7;
128
+ };
129
+ readonly required: {
130
+ readonly type: "boolean";
131
+ };
132
+ readonly channel_types: {
133
+ readonly type: "array";
134
+ readonly items: {
135
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/channel-type.json";
136
+ };
137
+ };
138
+ };
139
+ readonly required: readonly ["name", "type"];
140
+ readonly additionalProperties: false;
141
+ }, {
142
+ readonly type: "object";
143
+ readonly properties: {
144
+ readonly name: {
145
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/option-name.json";
146
+ };
147
+ readonly description: {
148
+ readonly type: "string";
149
+ };
150
+ readonly type: {
151
+ readonly const: 8;
152
+ };
153
+ readonly required: {
154
+ readonly type: "boolean";
155
+ };
156
+ };
157
+ readonly required: readonly ["name", "type"];
158
+ readonly additionalProperties: false;
159
+ }, {
160
+ readonly type: "object";
161
+ readonly properties: {
162
+ readonly name: {
163
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/option-name.json";
164
+ };
165
+ readonly description: {
166
+ readonly type: "string";
167
+ };
168
+ readonly type: {
169
+ readonly const: 9;
170
+ };
171
+ readonly required: {
172
+ readonly type: "boolean";
173
+ };
174
+ };
175
+ readonly required: readonly ["name", "type"];
176
+ readonly additionalProperties: false;
177
+ }, {
178
+ readonly type: "object";
179
+ readonly properties: {
180
+ readonly name: {
181
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/option-name.json";
182
+ };
183
+ readonly description: {
184
+ readonly type: "string";
185
+ };
186
+ readonly type: {
187
+ readonly const: 10;
188
+ };
189
+ readonly required: {
190
+ readonly type: "boolean";
191
+ };
192
+ readonly autocomplete: {
193
+ readonly type: "boolean";
194
+ };
195
+ readonly choices: {
196
+ readonly type: "array";
197
+ readonly items: {
198
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/application-command-option-choice.json";
199
+ };
200
+ };
201
+ readonly min_value: {
202
+ readonly type: "number";
203
+ };
204
+ readonly max_value: {
205
+ readonly type: "number";
206
+ };
207
+ };
208
+ readonly required: readonly ["name", "type"];
209
+ readonly additionalProperties: false;
210
+ }, {
211
+ readonly type: "object";
212
+ readonly properties: {
213
+ readonly name: {
214
+ readonly $ref: "https://schema.went.tf/discord-bot-framework/option-name.json";
215
+ };
216
+ readonly description: {
217
+ readonly type: "string";
218
+ };
219
+ readonly type: {
220
+ readonly const: 11;
221
+ };
222
+ readonly required: {
223
+ readonly type: "boolean";
224
+ };
225
+ };
226
+ readonly required: readonly ["name", "type"];
227
+ readonly additionalProperties: false;
228
+ }];
229
+ };
230
+ //# sourceMappingURL=application-command-leaf-option.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-command-leaf-option.schema.d.ts","sourceRoot":"","sources":["../../../src/commands/schema/application-command-leaf-option.schema.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHrC,CAAC"}
@@ -0,0 +1,129 @@
1
+ import { applicationCommandOptionChoiceSchema } from './application-command-option-choice.schema.js';
2
+ import { channelTypeSchema } from './channel-type.schema.js';
3
+ import { optionNameSchema } from './option-name.schema.js';
4
+ /**
5
+ * A non-nesting ApplicationCommandOption (every type except Subcommand/SubcommandGroup).
6
+ * Modeled as flat oneOf branches (not allOf-composed with a shared base) because
7
+ * additionalProperties:false inside an allOf branch only evaluates that branch's own
8
+ * declared properties, rejecting fields declared on sibling allOf members (e.g. a
9
+ * shared `name`) as "additional" and collapsing json-schema-to-ts's derived type to
10
+ * `never` - confirmed via spike.
11
+ */
12
+ export const applicationCommandLeafOptionSchema = {
13
+ $id: 'https://schema.went.tf/discord-bot-framework/application-command-leaf-option.json',
14
+ oneOf: [
15
+ {
16
+ type: 'object',
17
+ properties: {
18
+ name: { $ref: optionNameSchema.$id },
19
+ description: { type: 'string' },
20
+ type: { const: 3 },
21
+ required: { type: 'boolean' },
22
+ autocomplete: { type: 'boolean' },
23
+ choices: { type: 'array', items: { $ref: applicationCommandOptionChoiceSchema.$id } },
24
+ min_length: { type: 'integer', minimum: 0, maximum: 6000 },
25
+ max_length: { type: 'integer', minimum: 1, maximum: 6000 },
26
+ },
27
+ required: ['name', 'type'],
28
+ additionalProperties: false,
29
+ },
30
+ {
31
+ type: 'object',
32
+ properties: {
33
+ name: { $ref: optionNameSchema.$id },
34
+ description: { type: 'string' },
35
+ type: { const: 4 },
36
+ required: { type: 'boolean' },
37
+ autocomplete: { type: 'boolean' },
38
+ choices: { type: 'array', items: { $ref: applicationCommandOptionChoiceSchema.$id } },
39
+ min_value: { type: 'integer' },
40
+ max_value: { type: 'integer' },
41
+ },
42
+ required: ['name', 'type'],
43
+ additionalProperties: false,
44
+ },
45
+ {
46
+ type: 'object',
47
+ properties: {
48
+ name: { $ref: optionNameSchema.$id },
49
+ description: { type: 'string' },
50
+ type: { const: 5 },
51
+ required: { type: 'boolean' },
52
+ },
53
+ required: ['name', 'type'],
54
+ additionalProperties: false,
55
+ },
56
+ {
57
+ type: 'object',
58
+ properties: {
59
+ name: { $ref: optionNameSchema.$id },
60
+ description: { type: 'string' },
61
+ type: { const: 6 },
62
+ required: { type: 'boolean' },
63
+ },
64
+ required: ['name', 'type'],
65
+ additionalProperties: false,
66
+ },
67
+ {
68
+ type: 'object',
69
+ properties: {
70
+ name: { $ref: optionNameSchema.$id },
71
+ description: { type: 'string' },
72
+ type: { const: 7 },
73
+ required: { type: 'boolean' },
74
+ channel_types: { type: 'array', items: { $ref: channelTypeSchema.$id } },
75
+ },
76
+ required: ['name', 'type'],
77
+ additionalProperties: false,
78
+ },
79
+ {
80
+ type: 'object',
81
+ properties: {
82
+ name: { $ref: optionNameSchema.$id },
83
+ description: { type: 'string' },
84
+ type: { const: 8 },
85
+ required: { type: 'boolean' },
86
+ },
87
+ required: ['name', 'type'],
88
+ additionalProperties: false,
89
+ },
90
+ {
91
+ type: 'object',
92
+ properties: {
93
+ name: { $ref: optionNameSchema.$id },
94
+ description: { type: 'string' },
95
+ type: { const: 9 },
96
+ required: { type: 'boolean' },
97
+ },
98
+ required: ['name', 'type'],
99
+ additionalProperties: false,
100
+ },
101
+ {
102
+ type: 'object',
103
+ properties: {
104
+ name: { $ref: optionNameSchema.$id },
105
+ description: { type: 'string' },
106
+ type: { const: 10 },
107
+ required: { type: 'boolean' },
108
+ autocomplete: { type: 'boolean' },
109
+ choices: { type: 'array', items: { $ref: applicationCommandOptionChoiceSchema.$id } },
110
+ min_value: { type: 'number' },
111
+ max_value: { type: 'number' },
112
+ },
113
+ required: ['name', 'type'],
114
+ additionalProperties: false,
115
+ },
116
+ {
117
+ type: 'object',
118
+ properties: {
119
+ name: { $ref: optionNameSchema.$id },
120
+ description: { type: 'string' },
121
+ type: { const: 11 },
122
+ required: { type: 'boolean' },
123
+ },
124
+ required: ['name', 'type'],
125
+ additionalProperties: false,
126
+ },
127
+ ],
128
+ };
129
+ //# sourceMappingURL=application-command-leaf-option.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-command-leaf-option.schema.js","sourceRoot":"","sources":["../../../src/commands/schema/application-command-leaf-option.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,+CAA+C,CAAC;AACrG,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,GAAG,EAAE,mFAAmF;IACxF,KAAK,EAAE;QACL;YACE,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,CAAC,GAAG,EAAE;gBACpC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC/B,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;gBAClB,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC7B,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBACjC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,oCAAoC,CAAC,GAAG,EAAE,EAAE;gBACrF,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;gBAC1D,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;aAC3D;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;YAC1B,oBAAoB,EAAE,KAAK;SAC5B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,CAAC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AAgB,CAAC,GAAG,EAAE;gBACpC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC/B,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;gBACnB,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC7B,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;gBACjC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,oCAAoC,CAAC,GAAG,EAAE,EAAE;gBACrF,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC7B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aAC9B;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;YAC1B,oBAAoB,EAAE,KAAK;SAC5B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,CAAC,GAAG,EAAE;gBACpC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC/B,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;gBACnB,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC9B;YACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;YAC1B,oBAAoB,EAAE,KAAK;SAC5B;KACF;CACO,CAAC"}
@@ -0,0 +1,258 @@
1
+ {
2
+ "$id": "https://schema.went.tf/discord-bot-framework/application-command-leaf-option.json",
3
+ "oneOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "$ref": "https://schema.went.tf/discord-bot-framework/option-name.json"
9
+ },
10
+ "description": {
11
+ "type": "string"
12
+ },
13
+ "type": {
14
+ "const": 3
15
+ },
16
+ "required": {
17
+ "type": "boolean"
18
+ },
19
+ "autocomplete": {
20
+ "type": "boolean"
21
+ },
22
+ "choices": {
23
+ "type": "array",
24
+ "items": {
25
+ "$ref": "https://schema.went.tf/discord-bot-framework/application-command-option-choice.json"
26
+ }
27
+ },
28
+ "min_length": {
29
+ "type": "integer",
30
+ "minimum": 0,
31
+ "maximum": 6000
32
+ },
33
+ "max_length": {
34
+ "type": "integer",
35
+ "minimum": 1,
36
+ "maximum": 6000
37
+ }
38
+ },
39
+ "required": [
40
+ "name",
41
+ "type"
42
+ ],
43
+ "additionalProperties": false
44
+ },
45
+ {
46
+ "type": "object",
47
+ "properties": {
48
+ "name": {
49
+ "$ref": "https://schema.went.tf/discord-bot-framework/option-name.json"
50
+ },
51
+ "description": {
52
+ "type": "string"
53
+ },
54
+ "type": {
55
+ "const": 4
56
+ },
57
+ "required": {
58
+ "type": "boolean"
59
+ },
60
+ "autocomplete": {
61
+ "type": "boolean"
62
+ },
63
+ "choices": {
64
+ "type": "array",
65
+ "items": {
66
+ "$ref": "https://schema.went.tf/discord-bot-framework/application-command-option-choice.json"
67
+ }
68
+ },
69
+ "min_value": {
70
+ "type": "integer"
71
+ },
72
+ "max_value": {
73
+ "type": "integer"
74
+ }
75
+ },
76
+ "required": [
77
+ "name",
78
+ "type"
79
+ ],
80
+ "additionalProperties": false
81
+ },
82
+ {
83
+ "type": "object",
84
+ "properties": {
85
+ "name": {
86
+ "$ref": "https://schema.went.tf/discord-bot-framework/option-name.json"
87
+ },
88
+ "description": {
89
+ "type": "string"
90
+ },
91
+ "type": {
92
+ "const": 5
93
+ },
94
+ "required": {
95
+ "type": "boolean"
96
+ }
97
+ },
98
+ "required": [
99
+ "name",
100
+ "type"
101
+ ],
102
+ "additionalProperties": false
103
+ },
104
+ {
105
+ "type": "object",
106
+ "properties": {
107
+ "name": {
108
+ "$ref": "https://schema.went.tf/discord-bot-framework/option-name.json"
109
+ },
110
+ "description": {
111
+ "type": "string"
112
+ },
113
+ "type": {
114
+ "const": 6
115
+ },
116
+ "required": {
117
+ "type": "boolean"
118
+ }
119
+ },
120
+ "required": [
121
+ "name",
122
+ "type"
123
+ ],
124
+ "additionalProperties": false
125
+ },
126
+ {
127
+ "type": "object",
128
+ "properties": {
129
+ "name": {
130
+ "$ref": "https://schema.went.tf/discord-bot-framework/option-name.json"
131
+ },
132
+ "description": {
133
+ "type": "string"
134
+ },
135
+ "type": {
136
+ "const": 7
137
+ },
138
+ "required": {
139
+ "type": "boolean"
140
+ },
141
+ "channel_types": {
142
+ "type": "array",
143
+ "items": {
144
+ "$ref": "https://schema.went.tf/discord-bot-framework/channel-type.json"
145
+ }
146
+ }
147
+ },
148
+ "required": [
149
+ "name",
150
+ "type"
151
+ ],
152
+ "additionalProperties": false
153
+ },
154
+ {
155
+ "type": "object",
156
+ "properties": {
157
+ "name": {
158
+ "$ref": "https://schema.went.tf/discord-bot-framework/option-name.json"
159
+ },
160
+ "description": {
161
+ "type": "string"
162
+ },
163
+ "type": {
164
+ "const": 8
165
+ },
166
+ "required": {
167
+ "type": "boolean"
168
+ }
169
+ },
170
+ "required": [
171
+ "name",
172
+ "type"
173
+ ],
174
+ "additionalProperties": false
175
+ },
176
+ {
177
+ "type": "object",
178
+ "properties": {
179
+ "name": {
180
+ "$ref": "https://schema.went.tf/discord-bot-framework/option-name.json"
181
+ },
182
+ "description": {
183
+ "type": "string"
184
+ },
185
+ "type": {
186
+ "const": 9
187
+ },
188
+ "required": {
189
+ "type": "boolean"
190
+ }
191
+ },
192
+ "required": [
193
+ "name",
194
+ "type"
195
+ ],
196
+ "additionalProperties": false
197
+ },
198
+ {
199
+ "type": "object",
200
+ "properties": {
201
+ "name": {
202
+ "$ref": "https://schema.went.tf/discord-bot-framework/option-name.json"
203
+ },
204
+ "description": {
205
+ "type": "string"
206
+ },
207
+ "type": {
208
+ "const": 10
209
+ },
210
+ "required": {
211
+ "type": "boolean"
212
+ },
213
+ "autocomplete": {
214
+ "type": "boolean"
215
+ },
216
+ "choices": {
217
+ "type": "array",
218
+ "items": {
219
+ "$ref": "https://schema.went.tf/discord-bot-framework/application-command-option-choice.json"
220
+ }
221
+ },
222
+ "min_value": {
223
+ "type": "number"
224
+ },
225
+ "max_value": {
226
+ "type": "number"
227
+ }
228
+ },
229
+ "required": [
230
+ "name",
231
+ "type"
232
+ ],
233
+ "additionalProperties": false
234
+ },
235
+ {
236
+ "type": "object",
237
+ "properties": {
238
+ "name": {
239
+ "$ref": "https://schema.went.tf/discord-bot-framework/option-name.json"
240
+ },
241
+ "description": {
242
+ "type": "string"
243
+ },
244
+ "type": {
245
+ "const": 11
246
+ },
247
+ "required": {
248
+ "type": "boolean"
249
+ }
250
+ },
251
+ "required": [
252
+ "name",
253
+ "type"
254
+ ],
255
+ "additionalProperties": false
256
+ }
257
+ ]
258
+ }
@@ -0,0 +1,18 @@
1
+ export declare const applicationCommandOptionChoiceSchema: {
2
+ readonly $id: "https://schema.went.tf/discord-bot-framework/application-command-option-choice.json";
3
+ readonly description: "APIApplicationCommandOptionChoice (discord-api-types), English-authored only - no name_localizations here (localization is layered on separately at submission time, not authored by hand).";
4
+ readonly type: "object";
5
+ readonly properties: {
6
+ readonly name: {
7
+ readonly type: "string";
8
+ readonly minLength: 1;
9
+ readonly maxLength: 100;
10
+ };
11
+ readonly value: {
12
+ readonly type: readonly ["string", "number"];
13
+ };
14
+ };
15
+ readonly required: readonly ["name", "value"];
16
+ readonly additionalProperties: false;
17
+ };
18
+ //# sourceMappingURL=application-command-option-choice.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-command-option-choice.schema.d.ts","sourceRoot":"","sources":["../../../src/commands/schema/application-command-option-choice.schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;CAWvC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export const applicationCommandOptionChoiceSchema = {
2
+ $id: 'https://schema.went.tf/discord-bot-framework/application-command-option-choice.json',
3
+ description: 'APIApplicationCommandOptionChoice (discord-api-types), English-authored only - no name_localizations here (localization is layered on separately at submission time, not authored by hand).',
4
+ type: 'object',
5
+ properties: {
6
+ name: { type: 'string', minLength: 1, maxLength: 100 },
7
+ value: { type: ['string', 'number'] },
8
+ },
9
+ required: ['name', 'value'],
10
+ additionalProperties: false,
11
+ };
12
+ //# sourceMappingURL=application-command-option-choice.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-command-option-choice.schema.js","sourceRoot":"","sources":["../../../src/commands/schema/application-command-option-choice.schema.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,GAAG,EAAE,qFAAqF;IAC1F,WAAW,EACT,6LAA6L;IAC/L,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE;QACtD,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;KACtC;IACD,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3B,oBAAoB,EAAE,KAAK;CACnB,CAAC"}