@deffa5556/bail 1.0.6 → 1.0.7

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 (314) hide show
  1. package/cjs/WAProto/index.cjs +106053 -0
  2. package/cjs/deffa/config.cjs +14 -0
  3. package/cjs/deffa/plugins/ai/deepseekr1.cjs +35 -0
  4. package/cjs/deffa/plugins/ai/gita.cjs +26 -0
  5. package/cjs/deffa/plugins/ai/glm47flash.cjs +35 -0
  6. package/cjs/deffa/plugins/ai/gptoss120b.cjs +35 -0
  7. package/cjs/deffa/plugins/ai/qwq32b.cjs +35 -0
  8. package/cjs/deffa/plugins/berita/antara.cjs +25 -0
  9. package/cjs/deffa/plugins/berita/cnbcindonesia.cjs +25 -0
  10. package/cjs/deffa/plugins/berita/cnn.cjs +25 -0
  11. package/cjs/deffa/plugins/berita/kompas.cjs +25 -0
  12. package/cjs/deffa/plugins/berita/liputan6.cjs +25 -0
  13. package/cjs/deffa/plugins/berita/merdeka.cjs +25 -0
  14. package/cjs/deffa/plugins/berita/sindonews.cjs +25 -0
  15. package/cjs/deffa/plugins/berita/tribunnews.cjs +25 -0
  16. package/cjs/deffa/plugins/downloader/douyin.cjs +30 -0
  17. package/cjs/deffa/plugins/downloader/facebook.cjs +30 -0
  18. package/cjs/deffa/plugins/downloader/github.cjs +35 -0
  19. package/cjs/deffa/plugins/downloader/lahelu.cjs +30 -0
  20. package/cjs/deffa/plugins/downloader/snackvideo.cjs +30 -0
  21. package/cjs/deffa/plugins/downloader/soundcloud.cjs +30 -0
  22. package/cjs/deffa/plugins/downloader/tiktok.cjs +30 -0
  23. package/cjs/deffa/plugins/downloader/tiktokhd.cjs +30 -0
  24. package/cjs/deffa/plugins/downloader/twitter.cjs +30 -0
  25. package/cjs/deffa/plugins/downloader/ummy.cjs +36 -0
  26. package/cjs/deffa/plugins/index.cjs +213 -0
  27. package/cjs/deffa/plugins/info/bmkg.cjs +34 -0
  28. package/cjs/deffa/plugins/info/cuaca.cjs +31 -0
  29. package/cjs/deffa/plugins/info/jadwaltv.cjs +29 -0
  30. package/cjs/deffa/plugins/maker/brat.cjs +45 -0
  31. package/cjs/deffa/plugins/maker/bratvid.cjs +52 -0
  32. package/cjs/deffa/plugins/search/8font.cjs +28 -0
  33. package/cjs/deffa/plugins/search/applemusic.cjs +28 -0
  34. package/cjs/deffa/plugins/search/bimg.cjs +30 -0
  35. package/cjs/deffa/plugins/search/brave.cjs +34 -0
  36. package/cjs/deffa/plugins/search/duckduckgo.cjs +28 -0
  37. package/cjs/deffa/plugins/search/lahelu.cjs +28 -0
  38. package/cjs/deffa/plugins/search/mangatoon.cjs +28 -0
  39. package/cjs/deffa/plugins/search/mcpedl.cjs +28 -0
  40. package/cjs/deffa/plugins/search/myinstants.cjs +28 -0
  41. package/cjs/deffa/plugins/search/otakotaku.cjs +28 -0
  42. package/cjs/deffa/plugins/search/pinterest.cjs +30 -0
  43. package/cjs/deffa/plugins/search/resep.cjs +28 -0
  44. package/cjs/deffa/plugins/search/seegore.cjs +30 -0
  45. package/cjs/deffa/plugins/search/soundcloud.cjs +28 -0
  46. package/cjs/deffa/plugins/search/youtube.cjs +28 -0
  47. package/cjs/deffa/plugins/stalk/github.cjs +38 -0
  48. package/cjs/deffa/plugins/stalk/pinterest.cjs +37 -0
  49. package/cjs/deffa/plugins/stalk/threads.cjs +34 -0
  50. package/cjs/deffa/plugins/stalk/tiktok.cjs +37 -0
  51. package/cjs/deffa/plugins/stalk/twitter.cjs +37 -0
  52. package/cjs/deffa/plugins/stalk/youtube.cjs +37 -0
  53. package/cjs/lib/Defaults/index.cjs +158 -0
  54. package/cjs/lib/Discord/Client.cjs +263 -0
  55. package/cjs/lib/Discord/Constants.cjs +1842 -0
  56. package/cjs/lib/Discord/connect-dc.cjs +11 -0
  57. package/cjs/lib/Discord/esm-bridge.cjs +136 -0
  58. package/cjs/lib/Discord/gateway/Dispatcher.cjs +93 -0
  59. package/cjs/lib/Discord/gateway/Shard.cjs +695 -0
  60. package/cjs/lib/Discord/gateway/ShardManager.cjs +344 -0
  61. package/cjs/lib/Discord/gateway/compression/base.cjs +13 -0
  62. package/cjs/lib/Discord/gateway/compression/config.cjs +47 -0
  63. package/cjs/lib/Discord/gateway/compression/pako.cjs +44 -0
  64. package/cjs/lib/Discord/gateway/compression/zlib-native.cjs +47 -0
  65. package/cjs/lib/Discord/gateway/compression/zlib-sync.cjs +31 -0
  66. package/cjs/lib/Discord/gateway/compression/zstd-napi.cjs +80 -0
  67. package/cjs/lib/Discord/gateway/compression/zstd-native.cjs +46 -0
  68. package/cjs/lib/Discord/gateway/events.cjs +956 -0
  69. package/cjs/lib/Discord/index.cjs +238 -0
  70. package/cjs/lib/Discord/rest/Bucket.cjs +69 -0
  71. package/cjs/lib/Discord/rest/DiscordHTTPError.cjs +63 -0
  72. package/cjs/lib/Discord/rest/DiscordRESTError.cjs +84 -0
  73. package/cjs/lib/Discord/rest/OAuthHelper.cjs +226 -0
  74. package/cjs/lib/Discord/rest/RESTManager.cjs +116 -0
  75. package/cjs/lib/Discord/rest/RequestHandler.cjs +320 -0
  76. package/cjs/lib/Discord/rest/SequentialBucket.cjs +69 -0
  77. package/cjs/lib/Discord/routes/Applications.cjs +625 -0
  78. package/cjs/lib/Discord/routes/Channels.cjs +1199 -0
  79. package/cjs/lib/Discord/routes/Guilds.cjs +1792 -0
  80. package/cjs/lib/Discord/routes/Interactions.cjs +212 -0
  81. package/cjs/lib/Discord/routes/Lobbies.cjs +197 -0
  82. package/cjs/lib/Discord/routes/Miscellaneous.cjs +120 -0
  83. package/cjs/lib/Discord/routes/OAuth.cjs +350 -0
  84. package/cjs/lib/Discord/routes/Users.cjs +107 -0
  85. package/cjs/lib/Discord/routes/Webhooks.cjs +308 -0
  86. package/cjs/lib/Discord/structures/AnnouncementChannel.cjs +46 -0
  87. package/cjs/lib/Discord/structures/AnnouncementThreadChannel.cjs +28 -0
  88. package/cjs/lib/Discord/structures/Application.cjs +345 -0
  89. package/cjs/lib/Discord/structures/ApplicationCommand.cjs +109 -0
  90. package/cjs/lib/Discord/structures/Attachment.cjs +46 -0
  91. package/cjs/lib/Discord/structures/AuditLogEntry.cjs +41 -0
  92. package/cjs/lib/Discord/structures/AutoModerationRule.cjs +117 -0
  93. package/cjs/lib/Discord/structures/AutocompleteInteraction.cjs +90 -0
  94. package/cjs/lib/Discord/structures/Base.cjs +56 -0
  95. package/cjs/lib/Discord/structures/BaseEntitlement.cjs +40 -0
  96. package/cjs/lib/Discord/structures/CategoryChannel.cjs +102 -0
  97. package/cjs/lib/Discord/structures/Channel.cjs +89 -0
  98. package/cjs/lib/Discord/structures/ClientApplication.cjs +269 -0
  99. package/cjs/lib/Discord/structures/CommandInteraction.cjs +294 -0
  100. package/cjs/lib/Discord/structures/ComponentInteraction.cjs +306 -0
  101. package/cjs/lib/Discord/structures/Entitlement.cjs +24 -0
  102. package/cjs/lib/Discord/structures/ExtendedUser.cjs +48 -0
  103. package/cjs/lib/Discord/structures/ForumChannel.cjs +20 -0
  104. package/cjs/lib/Discord/structures/GroupChannel.cjs +160 -0
  105. package/cjs/lib/Discord/structures/Guild.cjs +1289 -0
  106. package/cjs/lib/Discord/structures/GuildChannel.cjs +82 -0
  107. package/cjs/lib/Discord/structures/GuildPreview.cjs +141 -0
  108. package/cjs/lib/Discord/structures/GuildScheduledEvent.cjs +166 -0
  109. package/cjs/lib/Discord/structures/GuildTemplate.cjs +96 -0
  110. package/cjs/lib/Discord/structures/Integration.cjs +123 -0
  111. package/cjs/lib/Discord/structures/Interaction.cjs +78 -0
  112. package/cjs/lib/Discord/structures/InteractionResolvedChannel.cjs +36 -0
  113. package/cjs/lib/Discord/structures/Invite.cjs +196 -0
  114. package/cjs/lib/Discord/structures/InviteGuild.cjs +117 -0
  115. package/cjs/lib/Discord/structures/InviteRole.cjs +88 -0
  116. package/cjs/lib/Discord/structures/Lobby.cjs +84 -0
  117. package/cjs/lib/Discord/structures/LobbyMember.cjs +30 -0
  118. package/cjs/lib/Discord/structures/MediaChannel.cjs +20 -0
  119. package/cjs/lib/Discord/structures/Member.cjs +300 -0
  120. package/cjs/lib/Discord/structures/Message.cjs +553 -0
  121. package/cjs/lib/Discord/structures/ModalSubmitInteraction.cjs +263 -0
  122. package/cjs/lib/Discord/structures/OAuthApplication.cjs +203 -0
  123. package/cjs/lib/Discord/structures/OAuthGuild.cjs +98 -0
  124. package/cjs/lib/Discord/structures/PartialApplication.cjs +97 -0
  125. package/cjs/lib/Discord/structures/Permission.cjs +61 -0
  126. package/cjs/lib/Discord/structures/PermissionOverwrite.cjs +46 -0
  127. package/cjs/lib/Discord/structures/PingInteraction.cjs +27 -0
  128. package/cjs/lib/Discord/structures/Poll.cjs +69 -0
  129. package/cjs/lib/Discord/structures/PrimaryGuild.cjs +93 -0
  130. package/cjs/lib/Discord/structures/PrivateChannel.cjs +131 -0
  131. package/cjs/lib/Discord/structures/PrivateThreadChannel.cjs +28 -0
  132. package/cjs/lib/Discord/structures/PublicThreadChannel.cjs +36 -0
  133. package/cjs/lib/Discord/structures/Role.cjs +126 -0
  134. package/cjs/lib/Discord/structures/SKU.cjs +58 -0
  135. package/cjs/lib/Discord/structures/Soundboard.cjs +58 -0
  136. package/cjs/lib/Discord/structures/StageChannel.cjs +45 -0
  137. package/cjs/lib/Discord/structures/StageInstance.cjs +80 -0
  138. package/cjs/lib/Discord/structures/Subscription.cjs +21 -0
  139. package/cjs/lib/Discord/structures/Team.cjs +70 -0
  140. package/cjs/lib/Discord/structures/TestEntitlement.cjs +22 -0
  141. package/cjs/lib/Discord/structures/TextChannel.cjs +48 -0
  142. package/cjs/lib/Discord/structures/TextableChannel.cjs +265 -0
  143. package/cjs/lib/Discord/structures/TextableVoiceChannel.cjs +70 -0
  144. package/cjs/lib/Discord/structures/ThreadChannel.cjs +276 -0
  145. package/cjs/lib/Discord/structures/ThreadOnlyChannel.cjs +205 -0
  146. package/cjs/lib/Discord/structures/ThreadableChannel.cjs +57 -0
  147. package/cjs/lib/Discord/structures/UnavailableGuild.cjs +21 -0
  148. package/cjs/lib/Discord/structures/User.cjs +223 -0
  149. package/cjs/lib/Discord/structures/VoiceChannel.cjs +34 -0
  150. package/cjs/lib/Discord/structures/VoiceState.cjs +113 -0
  151. package/cjs/lib/Discord/structures/Webhook.cjs +224 -0
  152. package/cjs/lib/Discord/util/Collection.cjs +77 -0
  153. package/cjs/lib/Discord/util/Errors.cjs +81 -0
  154. package/cjs/lib/Discord/util/QueryBuilder.cjs +20 -0
  155. package/cjs/lib/Discord/util/Routes.cjs +293 -0
  156. package/cjs/lib/Discord/util/SimpleCollection.cjs +78 -0
  157. package/cjs/lib/Discord/util/Time.cjs +92 -0
  158. package/cjs/lib/Discord/util/TypedCollection.cjs +78 -0
  159. package/cjs/lib/Discord/util/TypedEmitter.cjs +20 -0
  160. package/cjs/lib/Discord/util/Util.cjs +906 -0
  161. package/cjs/lib/Discord/util/interactions/InteractionOptionsWrapper.cjs +207 -0
  162. package/cjs/lib/Discord/util/interactions/MessageInteractionResponse.cjs +26 -0
  163. package/cjs/lib/Discord/util/interactions/ModalSubmitInteractionComponentsWrapper.cjs +98 -0
  164. package/cjs/lib/Discord/util/interactions/SelectMenuValuesWrapper.cjs +77 -0
  165. package/cjs/lib/Discord/util/interactions/shared.cjs +20 -0
  166. package/cjs/lib/Discord/util/warning.cjs +34 -0
  167. package/cjs/lib/Signal/Group/ciphertext-message.cjs +16 -0
  168. package/cjs/lib/Signal/Group/group-session-builder.cjs +67 -0
  169. package/cjs/lib/Signal/Group/group_cipher.cjs +86 -0
  170. package/cjs/lib/Signal/Group/index.cjs +58 -0
  171. package/cjs/lib/Signal/Group/keyhelper.cjs +56 -0
  172. package/cjs/lib/Signal/Group/sender-chain-key.cjs +30 -0
  173. package/cjs/lib/Signal/Group/sender-key-distribution-message.cjs +67 -0
  174. package/cjs/lib/Signal/Group/sender-key-message.cjs +70 -0
  175. package/cjs/lib/Signal/Group/sender-key-name.cjs +52 -0
  176. package/cjs/lib/Signal/Group/sender-key-record.cjs +45 -0
  177. package/cjs/lib/Signal/Group/sender-key-state.cjs +88 -0
  178. package/cjs/lib/Signal/Group/sender-message-key.cjs +30 -0
  179. package/cjs/lib/Signal/libsignal.cjs +467 -0
  180. package/cjs/lib/Signal/lid-mapping.cjs +281 -0
  181. package/cjs/lib/Socket/Client/index.cjs +19 -0
  182. package/cjs/lib/Socket/Client/types.cjs +15 -0
  183. package/cjs/lib/Socket/Client/websocket.cjs +61 -0
  184. package/cjs/lib/Socket/business.cjs +384 -0
  185. package/cjs/lib/Socket/chats.cjs +1221 -0
  186. package/cjs/lib/Socket/communities.cjs +440 -0
  187. package/cjs/lib/Socket/groups.cjs +353 -0
  188. package/cjs/lib/Socket/index.cjs +14 -0
  189. package/cjs/lib/Socket/messages-recv.cjs +1772 -0
  190. package/cjs/lib/Socket/messages-send.cjs +1376 -0
  191. package/cjs/lib/Socket/mex.cjs +46 -0
  192. package/cjs/lib/Socket/newsletter.cjs +230 -0
  193. package/cjs/lib/Socket/socket.cjs +976 -0
  194. package/cjs/lib/Store/index.cjs +20 -0
  195. package/cjs/lib/Store/make-in-memory-store.cjs +470 -0
  196. package/cjs/lib/Store/make-ordered-dictionary.cjs +82 -0
  197. package/cjs/lib/Store/object-repository.cjs +28 -0
  198. package/cjs/lib/Telegram/button.cjs +147 -0
  199. package/cjs/lib/Telegram/composer.cjs +582 -0
  200. package/cjs/lib/Telegram/context.cjs +853 -0
  201. package/cjs/lib/Telegram/core/helpers/args.cjs +57 -0
  202. package/cjs/lib/Telegram/core/helpers/check.cjs +55 -0
  203. package/cjs/lib/Telegram/core/helpers/compact.cjs +16 -0
  204. package/cjs/lib/Telegram/core/helpers/deunionize.cjs +12 -0
  205. package/cjs/lib/Telegram/core/helpers/formatting.cjs +91 -0
  206. package/cjs/lib/Telegram/core/helpers/util.cjs +50 -0
  207. package/cjs/lib/Telegram/core/network/client.cjs +338 -0
  208. package/cjs/lib/Telegram/core/network/error.cjs +21 -0
  209. package/cjs/lib/Telegram/core/network/multipart-stream.cjs +79 -0
  210. package/cjs/lib/Telegram/core/network/polling.cjs +87 -0
  211. package/cjs/lib/Telegram/core/network/webhook.cjs +54 -0
  212. package/cjs/lib/Telegram/core/types/typegram.cjs +31 -0
  213. package/cjs/lib/Telegram/deffa-telegraf.cjs +264 -0
  214. package/cjs/lib/Telegram/esm-bridge.cjs +20 -0
  215. package/cjs/lib/Telegram/filters.cjs +69 -0
  216. package/cjs/lib/Telegram/format.cjs +58 -0
  217. package/cjs/lib/Telegram/future.cjs +140 -0
  218. package/cjs/lib/Telegram/index.cjs +67 -0
  219. package/cjs/lib/Telegram/input.cjs +61 -0
  220. package/cjs/lib/Telegram/markup.cjs +129 -0
  221. package/cjs/lib/Telegram/middleware.cjs +2 -0
  222. package/cjs/lib/Telegram/reactions.cjs +84 -0
  223. package/cjs/lib/Telegram/router.cjs +46 -0
  224. package/cjs/lib/Telegram/scenes/base.cjs +39 -0
  225. package/cjs/lib/Telegram/scenes/context.cjs +104 -0
  226. package/cjs/lib/Telegram/scenes/index.cjs +21 -0
  227. package/cjs/lib/Telegram/scenes/stage.cjs +49 -0
  228. package/cjs/lib/Telegram/scenes/wizard/context.cjs +31 -0
  229. package/cjs/lib/Telegram/scenes/wizard/index.cjs +45 -0
  230. package/cjs/lib/Telegram/scenes.cjs +21 -0
  231. package/cjs/lib/Telegram/session.cjs +166 -0
  232. package/cjs/lib/Telegram/telegram-types.cjs +6 -0
  233. package/cjs/lib/Telegram/telegram.cjs +945 -0
  234. package/cjs/lib/Telegram/types.cjs +2 -0
  235. package/cjs/lib/Telegram/utils.cjs +5 -0
  236. package/cjs/lib/Types/Auth.cjs +3 -0
  237. package/cjs/lib/Types/Bussines.cjs +3 -0
  238. package/cjs/lib/Types/Call.cjs +3 -0
  239. package/cjs/lib/Types/Chat.cjs +11 -0
  240. package/cjs/lib/Types/Contact.cjs +3 -0
  241. package/cjs/lib/Types/Events.cjs +4 -0
  242. package/cjs/lib/Types/GroupMetadata.cjs +3 -0
  243. package/cjs/lib/Types/Label.cjs +26 -0
  244. package/cjs/lib/Types/LabelAssociation.cjs +8 -0
  245. package/cjs/lib/Types/Message.cjs +19 -0
  246. package/cjs/lib/Types/Mex.cjs +40 -0
  247. package/cjs/lib/Types/Product.cjs +3 -0
  248. package/cjs/lib/Types/RichType.cjs +24 -0
  249. package/cjs/lib/Types/Signal.cjs +4 -0
  250. package/cjs/lib/Types/Socket.cjs +4 -0
  251. package/cjs/lib/Types/State.cjs +54 -0
  252. package/cjs/lib/Types/USync.cjs +4 -0
  253. package/cjs/lib/Types/index.cjs +42 -0
  254. package/cjs/lib/Utils/auth-utils.cjs +312 -0
  255. package/cjs/lib/Utils/browser-utils.cjs +39 -0
  256. package/cjs/lib/Utils/business.cjs +241 -0
  257. package/cjs/lib/Utils/chat-utils.cjs +890 -0
  258. package/cjs/lib/Utils/companion-reg-client-utils.cjs +51 -0
  259. package/cjs/lib/Utils/crypto.cjs +170 -0
  260. package/cjs/lib/Utils/decode-wa-message.cjs +330 -0
  261. package/cjs/lib/Utils/event-buffer.cjs +629 -0
  262. package/cjs/lib/Utils/generics.cjs +427 -0
  263. package/cjs/lib/Utils/history.cjs +141 -0
  264. package/cjs/lib/Utils/identity-change-handler.cjs +56 -0
  265. package/cjs/lib/Utils/index.cjs +43 -0
  266. package/cjs/lib/Utils/link-preview.cjs +122 -0
  267. package/cjs/lib/Utils/logger.cjs +8 -0
  268. package/cjs/lib/Utils/lt-hash.cjs +11 -0
  269. package/cjs/lib/Utils/make-mutex.cjs +38 -0
  270. package/cjs/lib/Utils/message-retry-manager.cjs +267 -0
  271. package/cjs/lib/Utils/messages-media.cjs +906 -0
  272. package/cjs/lib/Utils/messages.cjs +1909 -0
  273. package/cjs/lib/Utils/noise-handler.cjs +205 -0
  274. package/cjs/lib/Utils/offline-node-processor.cjs +43 -0
  275. package/cjs/lib/Utils/pre-key-manager.cjs +113 -0
  276. package/cjs/lib/Utils/process-message.cjs +755 -0
  277. package/cjs/lib/Utils/reporting-utils.cjs +263 -0
  278. package/cjs/lib/Utils/rich-message-utils.cjs +434 -0
  279. package/cjs/lib/Utils/session-guard.cjs +163 -0
  280. package/cjs/lib/Utils/signal.cjs +214 -0
  281. package/cjs/lib/Utils/stanza-ack.cjs +41 -0
  282. package/cjs/lib/Utils/sync-action-utils.cjs +54 -0
  283. package/cjs/lib/Utils/tc-token-utils.cjs +174 -0
  284. package/cjs/lib/Utils/text-sticker.cjs +174 -0
  285. package/cjs/lib/Utils/use-multi-file-auth-state.cjs +125 -0
  286. package/cjs/lib/Utils/use-single-file-auth-state.cjs +113 -0
  287. package/cjs/lib/Utils/use-sqlite-auth-state.cjs +145 -0
  288. package/cjs/lib/Utils/validate-connection.cjs +210 -0
  289. package/cjs/lib/WABinary/constants.cjs +1470 -0
  290. package/cjs/lib/WABinary/decode.cjs +301 -0
  291. package/cjs/lib/WABinary/encode.cjs +257 -0
  292. package/cjs/lib/WABinary/generic-utils.cjs +240 -0
  293. package/cjs/lib/WABinary/index.cjs +22 -0
  294. package/cjs/lib/WABinary/jid-utils.cjs +114 -0
  295. package/cjs/lib/WABinary/types.cjs +37 -0
  296. package/cjs/lib/WAM/BinaryInfo.cjs +14 -0
  297. package/cjs/lib/WAM/constants.cjs +22856 -0
  298. package/cjs/lib/WAM/encode.cjs +154 -0
  299. package/cjs/lib/WAM/index.cjs +20 -0
  300. package/cjs/lib/WAUSync/Protocols/USyncContactProtocol.cjs +56 -0
  301. package/cjs/lib/WAUSync/Protocols/USyncDeviceProtocol.cjs +58 -0
  302. package/cjs/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.cjs +31 -0
  303. package/cjs/lib/WAUSync/Protocols/USyncStatusProtocol.cjs +42 -0
  304. package/cjs/lib/WAUSync/Protocols/USyncUsernameProtocol.cjs +29 -0
  305. package/cjs/lib/WAUSync/Protocols/UsyncBotProfileProtocol.cjs +55 -0
  306. package/cjs/lib/WAUSync/Protocols/UsyncLIDProtocol.cjs +33 -0
  307. package/cjs/lib/WAUSync/Protocols/index.cjs +22 -0
  308. package/cjs/lib/WAUSync/USyncQuery.cjs +102 -0
  309. package/cjs/lib/WAUSync/USyncUser.cjs +35 -0
  310. package/cjs/lib/WAUSync/index.cjs +20 -0
  311. package/cjs/lib/index.cjs +372 -0
  312. package/cjs/lib/plugins/loader.cjs +117 -0
  313. package/lib/Defaults/index.js +1 -1
  314. package/package.json +11 -6
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ exports.default = {
8
+ id: 'dl-tiktokhd', name: 'TikTok Downloader HD', category: 'Downloader',
9
+ path: '/api/d/tiktok/v2', method: 'GET',
10
+ description: 'Download video TikTok HD tanpa watermark',
11
+ params: [{ name: 'url', required: true, example: 'https://vt.tiktok.com/xxx/', description: 'URL TikTok' }],
12
+ handler: async (req, getInput) => {
13
+ const url = getInput(req, 'url');
14
+ if (!url)
15
+ return { ok: false, status: 400, message: "Parameter 'url' wajib diisi." };
16
+ try {
17
+ const { data } = await axios_1.default.get('https://api.siputzx.my.id/api/d/tiktok/v2', { params: { url }, timeout: 25000 });
18
+ if (!data?.status)
19
+ return { ok: false, status: 502, message: 'Gagal mengunduh.' };
20
+ const videoUrl = data.data?.play || data.data?.hdplay;
21
+ const caption = data.data?.title || data.data?.desc || 'TikTok HD';
22
+ if (!videoUrl)
23
+ return { ok: false, status: 502, message: 'URL video tidak ditemukan.' };
24
+ return { ok: true, type: 'video', url: videoUrl, caption };
25
+ }
26
+ catch (err) {
27
+ return { ok: false, status: 500, message: err.message };
28
+ }
29
+ },
30
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ exports.default = {
8
+ id: 'dl-twitter', name: 'Twitter/X Downloader', category: 'Downloader',
9
+ path: '/api/d/twitter', method: 'GET',
10
+ description: 'Download video Twitter/X',
11
+ params: [{ name: 'url', required: true, example: 'https://twitter.com/user/status/123', description: 'URL tweet' }],
12
+ handler: async (req, getInput) => {
13
+ const url = getInput(req, 'url');
14
+ if (!url)
15
+ return { ok: false, status: 400, message: "Parameter 'url' wajib diisi." };
16
+ try {
17
+ const { data } = await axios_1.default.get('https://api.siputzx.my.id/api/d/twitter', { params: { url }, timeout: 20000 });
18
+ if (!data?.status)
19
+ return { ok: false, status: 502, message: 'Gagal mengunduh.' };
20
+ const videoUrl = data.data?.url || (Array.isArray(data.data?.media) && data.data.media[0]?.url);
21
+ const caption = data.data?.title || data.data?.text || 'Twitter/X Video';
22
+ if (!videoUrl)
23
+ return { ok: false, status: 502, message: 'URL video tidak ditemukan.' };
24
+ return { ok: true, type: 'video', url: videoUrl, caption };
25
+ }
26
+ catch (err) {
27
+ return { ok: false, status: 500, message: err.message };
28
+ }
29
+ },
30
+ };
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ exports.default = {
8
+ id: 'dl-ummy', name: 'Instagram Downloader (Ummy)', category: 'Downloader',
9
+ path: '/api/d/ummy', method: 'GET',
10
+ description: 'Download profil/konten Instagram via ummy',
11
+ params: [{ name: 'url', required: true, example: 'nasaartemis', description: 'Username Instagram' }],
12
+ handler: async (req, getInput) => {
13
+ const url = getInput(req, 'url');
14
+ if (!url)
15
+ return { ok: false, status: 400, message: "Parameter 'url' wajib diisi." };
16
+ try {
17
+ const { data } = await axios_1.default.get('https://api.siputzx.my.id/api/d/ummy', { params: { url }, timeout: 20000 });
18
+ if (!data?.status)
19
+ return { ok: false, status: 502, message: 'Gagal mengambil data.' };
20
+ const d = data.data || {};
21
+ const text = [
22
+ d.fullName ? `👤 *${d.fullName}*` : '',
23
+ d.username ? `🔖 @${d.username}` : '',
24
+ d.bio ? `📝 ${d.bio}` : '',
25
+ d.followers != null ? `👥 Followers: ${d.followers}` : '',
26
+ d.following != null ? `➡️ Following: ${d.following}` : '',
27
+ d.posts != null ? `📸 Posts: ${d.posts}` : '',
28
+ d.profilePicUrl ? `🖼️ ${d.profilePicUrl}` : '',
29
+ ].filter(Boolean).join('\n');
30
+ return { ok: true, type: 'text', result: text || JSON.stringify(d, null, 2) };
31
+ }
32
+ catch (err) {
33
+ return { ok: false, status: 500, message: err.message };
34
+ }
35
+ },
36
+ };
@@ -0,0 +1,213 @@
1
+ "use strict";
2
+ /**
3
+ * DEFFA PLUGINS INDEX
4
+ * ====================
5
+ * Semua plugin tersedia dengan nama pendek & mudah diingat.
6
+ *
7
+ * IMPORT:
8
+ * import plugins from 'baileys-deffa/deffa'
9
+ * const { tiktok, cnbc, ai, yt } = plugins
10
+ *
11
+ * // atau manual:
12
+ * import { tiktok } from 'baileys-deffa/deffa'
13
+ */
14
+ var __importDefault = (this && this.__importDefault) || function (mod) {
15
+ return (mod && mod.__esModule) ? mod : { "default": mod };
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.stalkthreads = exports.stalkpin = exports.stalkgithub = exports.stalkyt = exports.stalktiktok = exports.stalktwitter = exports.scsearch = exports.myinstants = exports.sfont = exports.seegore = exports.github = exports.bratvid = exports.brat = exports.jadwaltv = exports.bmkg = exports.cuaca = exports.apple = exports.otaku = exports.manga = exports.mcpedl = exports.resep = exports.pin = exports.bimg = exports.ddg = exports.brave = exports.yt = exports.lahelu = exports.ummy = exports.soundcloud = exports.snack = exports.douyin = exports.fb = exports.twitter = exports.tiktokhd = exports.tiktok = exports.tribun = exports.sindo = exports.merdeka = exports.liputan6 = exports.antara = exports.kompas = exports.cnn = exports.cnbc = exports.gita = exports.gpt = exports.glm = exports.qwq = exports.deepseek = exports.ai = exports.commands = void 0;
19
+ // ── AI ─────────────────────────────────────────────────────────────
20
+ const deepseekr1_js_1 = __importDefault(require("./ai/deepseekr1.cjs"));
21
+ const qwq32b_js_1 = __importDefault(require("./ai/qwq32b.cjs"));
22
+ const glm47flash_js_1 = __importDefault(require("./ai/glm47flash.cjs"));
23
+ const gptoss120b_js_1 = __importDefault(require("./ai/gptoss120b.cjs"));
24
+ const gita_js_1 = __importDefault(require("./ai/gita.cjs"));
25
+ // ── BERITA ─────────────────────────────────────────────────────────
26
+ const cnbcindonesia_js_1 = __importDefault(require("./berita/cnbcindonesia.cjs"));
27
+ const cnn_js_1 = __importDefault(require("./berita/cnn.cjs"));
28
+ const kompas_js_1 = __importDefault(require("./berita/kompas.cjs"));
29
+ const antara_js_1 = __importDefault(require("./berita/antara.cjs"));
30
+ const liputan6_js_1 = __importDefault(require("./berita/liputan6.cjs"));
31
+ const merdeka_js_1 = __importDefault(require("./berita/merdeka.cjs"));
32
+ const sindonews_js_1 = __importDefault(require("./berita/sindonews.cjs"));
33
+ const tribunnews_js_1 = __importDefault(require("./berita/tribunnews.cjs"));
34
+ // ── DOWNLOADER ─────────────────────────────────────────────────────
35
+ const tiktok_js_1 = __importDefault(require("./downloader/tiktok.cjs"));
36
+ const tiktokhd_js_1 = __importDefault(require("./downloader/tiktokhd.cjs"));
37
+ const twitter_js_1 = __importDefault(require("./downloader/twitter.cjs"));
38
+ const facebook_js_1 = __importDefault(require("./downloader/facebook.cjs"));
39
+ const douyin_js_1 = __importDefault(require("./downloader/douyin.cjs"));
40
+ const snackvideo_js_1 = __importDefault(require("./downloader/snackvideo.cjs"));
41
+ const soundcloud_js_1 = __importDefault(require("./downloader/soundcloud.cjs"));
42
+ const ummy_js_1 = __importDefault(require("./downloader/ummy.cjs"));
43
+ const lahelu_js_1 = __importDefault(require("./downloader/lahelu.cjs"));
44
+ const github_js_1 = __importDefault(require("./downloader/github.cjs"));
45
+ // ── SEARCH ─────────────────────────────────────────────────────────
46
+ const youtube_js_1 = __importDefault(require("./search/youtube.cjs"));
47
+ const brave_js_1 = __importDefault(require("./search/brave.cjs"));
48
+ const duckduckgo_js_1 = __importDefault(require("./search/duckduckgo.cjs"));
49
+ const bimg_js_1 = __importDefault(require("./search/bimg.cjs"));
50
+ const pinterest_js_1 = __importDefault(require("./search/pinterest.cjs"));
51
+ const soundcloud_js_2 = __importDefault(require("./search/soundcloud.cjs"));
52
+ const resep_js_1 = __importDefault(require("./search/resep.cjs"));
53
+ const mcpedl_js_1 = __importDefault(require("./search/mcpedl.cjs"));
54
+ const lahelu_js_2 = __importDefault(require("./search/lahelu.cjs"));
55
+ const mangatoon_js_1 = __importDefault(require("./search/mangatoon.cjs"));
56
+ const otakotaku_js_1 = __importDefault(require("./search/otakotaku.cjs"));
57
+ const _8font_js_1 = __importDefault(require("./search/8font.cjs"));
58
+ const myinstants_js_1 = __importDefault(require("./search/myinstants.cjs"));
59
+ const applemusic_js_1 = __importDefault(require("./search/applemusic.cjs"));
60
+ const seegore_js_1 = __importDefault(require("./search/seegore.cjs"));
61
+ // ── STALK ──────────────────────────────────────────────────────────
62
+ const twitter_js_2 = __importDefault(require("./stalk/twitter.cjs"));
63
+ const tiktok_js_2 = __importDefault(require("./stalk/tiktok.cjs"));
64
+ const youtube_js_2 = __importDefault(require("./stalk/youtube.cjs"));
65
+ const github_js_2 = __importDefault(require("./stalk/github.cjs"));
66
+ const pinterest_js_2 = __importDefault(require("./stalk/pinterest.cjs"));
67
+ const threads_js_1 = __importDefault(require("./stalk/threads.cjs"));
68
+ // ── INFO ───────────────────────────────────────────────────────────
69
+ const cuaca_js_1 = __importDefault(require("./info/cuaca.cjs"));
70
+ const bmkg_js_1 = __importDefault(require("./info/bmkg.cjs"));
71
+ const jadwaltv_js_1 = __importDefault(require("./info/jadwaltv.cjs"));
72
+ // ── MAKER ──────────────────────────────────────────────────────────
73
+ const brat_js_1 = __importDefault(require("./maker/brat.cjs"));
74
+ const bratvid_js_1 = __importDefault(require("./maker/bratvid.cjs"));
75
+ // ═══════════════════════════════════════════════════════════════════
76
+ // COMMAND MAP — semua alias pendek yang bisa dipake di bot
77
+ // Format: 'alias': pluginObject
78
+ // ═══════════════════════════════════════════════════════════════════
79
+ exports.commands = {
80
+ // AI
81
+ 'ai': deepseekr1_js_1.default,
82
+ 'deepseek': deepseekr1_js_1.default,
83
+ 'deepseekr1': deepseekr1_js_1.default,
84
+ 'qwq': qwq32b_js_1.default,
85
+ 'qwq32b': qwq32b_js_1.default,
86
+ 'glm': glm47flash_js_1.default,
87
+ 'glm4': glm47flash_js_1.default,
88
+ 'gpt': gptoss120b_js_1.default,
89
+ 'gita': gita_js_1.default,
90
+ // BERITA
91
+ 'cnbc': cnbcindonesia_js_1.default,
92
+ 'cnn': cnn_js_1.default,
93
+ 'kompas': kompas_js_1.default,
94
+ 'antara': antara_js_1.default,
95
+ 'liputan6': liputan6_js_1.default,
96
+ 'liputan': liputan6_js_1.default,
97
+ 'merdeka': merdeka_js_1.default,
98
+ 'sindo': sindonews_js_1.default,
99
+ 'sindonews': sindonews_js_1.default,
100
+ 'tribun': tribunnews_js_1.default,
101
+ 'tribunnews': tribunnews_js_1.default,
102
+ // DOWNLOADER
103
+ 'tiktok': tiktok_js_1.default,
104
+ 'tt': tiktok_js_1.default,
105
+ 'tth': tiktokhd_js_1.default,
106
+ 'tiktokhd': tiktokhd_js_1.default,
107
+ 'twitter': twitter_js_1.default,
108
+ 'twdl': twitter_js_1.default,
109
+ 'xdl': twitter_js_1.default,
110
+ 'fb': facebook_js_1.default,
111
+ 'facebook': facebook_js_1.default,
112
+ 'douyin': douyin_js_1.default,
113
+ 'dy': douyin_js_1.default,
114
+ 'snack': snackvideo_js_1.default,
115
+ 'sc': soundcloud_js_1.default,
116
+ 'soundcloud': soundcloud_js_1.default,
117
+ 'ummy': ummy_js_1.default,
118
+ 'lahelu': lahelu_js_1.default,
119
+ 'gitdl': github_js_1.default,
120
+ // SEARCH
121
+ 'yt': youtube_js_1.default,
122
+ 'youtube': youtube_js_1.default,
123
+ 'brave': brave_js_1.default,
124
+ 'ddg': duckduckgo_js_1.default,
125
+ 'duckduckgo': duckduckgo_js_1.default,
126
+ 'bimg': bimg_js_1.default,
127
+ 'pin': pinterest_js_1.default,
128
+ 'pinterest': pinterest_js_1.default,
129
+ 'scsearch': soundcloud_js_2.default,
130
+ 'resep': resep_js_1.default,
131
+ 'mcpe': mcpedl_js_1.default,
132
+ 'mcpedl': mcpedl_js_1.default,
133
+ 'lahelu2': lahelu_js_2.default,
134
+ 'manga': mangatoon_js_1.default,
135
+ 'otaku': otakotaku_js_1.default,
136
+ '8font': _8font_js_1.default,
137
+ 'sfont': _8font_js_1.default,
138
+ 'myinstants': myinstants_js_1.default,
139
+ 'apple': applemusic_js_1.default,
140
+ 'applemusic': applemusic_js_1.default,
141
+ 'gore': seegore_js_1.default,
142
+ 'seegore': seegore_js_1.default,
143
+ // STALK
144
+ 'stalktwitter': twitter_js_2.default,
145
+ 'stalkx': twitter_js_2.default,
146
+ 'stalktiktok': tiktok_js_2.default,
147
+ 'stalkyt': youtube_js_2.default,
148
+ 'stalkyoutube': youtube_js_2.default,
149
+ 'stalkgithub': github_js_2.default,
150
+ 'stalkpin': pinterest_js_2.default,
151
+ 'stalkpinterest': pinterest_js_2.default,
152
+ 'stalkthreads': threads_js_1.default,
153
+ 'threads': threads_js_1.default,
154
+ // INFO
155
+ 'cuaca': cuaca_js_1.default,
156
+ 'bmkg': bmkg_js_1.default,
157
+ 'jadwaltv': jadwaltv_js_1.default,
158
+ 'tv': jadwaltv_js_1.default,
159
+ // MAKER
160
+ 'brat': brat_js_1.default,
161
+ 'bratvid': bratvid_js_1.default,
162
+ };
163
+ // Named exports untuk import manual
164
+ exports.ai = deepseekr1_js_1.default;
165
+ exports.deepseek = deepseekr1_js_1.default;
166
+ exports.qwq = qwq32b_js_1.default;
167
+ exports.glm = glm47flash_js_1.default;
168
+ exports.gpt = gptoss120b_js_1.default;
169
+ exports.gita = gita_js_1.default;
170
+ exports.cnbc = cnbcindonesia_js_1.default;
171
+ exports.cnn = cnn_js_1.default;
172
+ exports.kompas = kompas_js_1.default;
173
+ exports.antara = antara_js_1.default;
174
+ exports.liputan6 = liputan6_js_1.default;
175
+ exports.merdeka = merdeka_js_1.default;
176
+ exports.sindo = sindonews_js_1.default;
177
+ exports.tribun = tribunnews_js_1.default;
178
+ exports.tiktok = tiktok_js_1.default;
179
+ exports.tiktokhd = tiktokhd_js_1.default;
180
+ exports.twitter = twitter_js_1.default;
181
+ exports.fb = facebook_js_1.default;
182
+ exports.douyin = douyin_js_1.default;
183
+ exports.snack = snackvideo_js_1.default;
184
+ exports.soundcloud = soundcloud_js_1.default;
185
+ exports.ummy = ummy_js_1.default;
186
+ exports.lahelu = lahelu_js_1.default;
187
+ exports.yt = youtube_js_1.default;
188
+ exports.brave = brave_js_1.default;
189
+ exports.ddg = duckduckgo_js_1.default;
190
+ exports.bimg = bimg_js_1.default;
191
+ exports.pin = pinterest_js_1.default;
192
+ exports.resep = resep_js_1.default;
193
+ exports.mcpedl = mcpedl_js_1.default;
194
+ exports.manga = mangatoon_js_1.default;
195
+ exports.otaku = otakotaku_js_1.default;
196
+ exports.apple = applemusic_js_1.default;
197
+ exports.cuaca = cuaca_js_1.default;
198
+ exports.bmkg = bmkg_js_1.default;
199
+ exports.jadwaltv = jadwaltv_js_1.default;
200
+ exports.brat = brat_js_1.default;
201
+ exports.bratvid = bratvid_js_1.default;
202
+ exports.github = github_js_1.default;
203
+ exports.seegore = seegore_js_1.default;
204
+ exports.sfont = _8font_js_1.default;
205
+ exports.myinstants = myinstants_js_1.default;
206
+ exports.scsearch = soundcloud_js_2.default;
207
+ exports.stalktwitter = twitter_js_2.default;
208
+ exports.stalktiktok = tiktok_js_2.default;
209
+ exports.stalkyt = youtube_js_2.default;
210
+ exports.stalkgithub = github_js_2.default;
211
+ exports.stalkpin = pinterest_js_2.default;
212
+ exports.stalkthreads = threads_js_1.default;
213
+ exports.default = exports.commands;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ exports.default = {
8
+ id: 'info-bmkg', name: 'Gempa BMKG', category: 'Info',
9
+ path: '/api/info/bmkg', method: 'GET',
10
+ description: 'Info gempa terbaru dari BMKG',
11
+ params: [],
12
+ handler: async () => {
13
+ try {
14
+ const { data } = await axios_1.default.get('https://api.siputzx.my.id/api/info/bmkg', { timeout: 15000 });
15
+ if (!data?.status)
16
+ return { ok: false, status: 502, message: 'Gagal mengambil data BMKG.' };
17
+ const d = data.data || {};
18
+ const text = [
19
+ `🌍 *Gempa Terbaru BMKG*`,
20
+ d.Tanggal || d.tanggal ? `📅 Tanggal: ${d.Tanggal || d.tanggal}` : '',
21
+ d.Jam || d.jam ? `⏰ Jam: ${d.Jam || d.jam} WIB` : '',
22
+ d.Magnitude || d.magnitude ? `📊 Magnitudo: ${d.Magnitude || d.magnitude} SR` : '',
23
+ d.Kedalaman || d.kedalaman ? `⬇️ Kedalaman: ${d.Kedalaman || d.kedalaman}` : '',
24
+ d.Wilayah || d.wilayah ? `📍 Wilayah: ${d.Wilayah || d.wilayah}` : '',
25
+ d.Potensi || d.potensi ? `⚠️ Potensi: ${d.Potensi || d.potensi}` : '',
26
+ d.Dirasakan || d.dirasakan ? `🏠 Dirasakan: ${d.Dirasakan || d.dirasakan}` : '',
27
+ ].filter(Boolean).join('\n');
28
+ return { ok: true, type: 'text', result: text || JSON.stringify(d, null, 2) };
29
+ }
30
+ catch (err) {
31
+ return { ok: false, status: 500, message: err.message };
32
+ }
33
+ },
34
+ };
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ exports.default = {
8
+ id: 'info-cuaca', name: 'Cuaca BMKG', category: 'Info',
9
+ path: '/api/info/cuaca', method: 'GET',
10
+ description: 'Prakiraan cuaca per wilayah dari BMKG',
11
+ params: [{ name: 'q', required: true, example: 'jakarta', description: 'Nama wilayah' }],
12
+ handler: async (req, getInput) => {
13
+ const q = getInput(req, 'q');
14
+ if (!q)
15
+ return { ok: false, status: 400, message: "Parameter 'q' wajib diisi." };
16
+ try {
17
+ const { data } = await axios_1.default.get('https://api.siputzx.my.id/api/info/cuaca', { params: { q }, timeout: 15000 });
18
+ if (!data?.status)
19
+ return { ok: false, status: 502, message: 'Gagal mengambil data cuaca.' };
20
+ const d = data.data || {};
21
+ const lokasi = d.lokasi || d.wilayah || d.area || q;
22
+ const list = Array.isArray(d.prakiraan || d.cuaca || d.data) ? (d.prakiraan || d.cuaca || d.data) : [];
23
+ const rows = list.slice(0, 5).map(x => `⏰ ${x.waktu || x.time || ''} — ${x.cuaca || x.kondisi || x.weather || ''} | 🌡️ ${x.suhu || x.temp || ''}°C | 💧 ${x.kelembaban || x.humidity || ''}%`).join('\n');
24
+ const text = `🌤️ *Cuaca ${lokasi}*\n\n${rows || JSON.stringify(d, null, 2)}`;
25
+ return { ok: true, type: 'text', result: text };
26
+ }
27
+ catch (err) {
28
+ return { ok: false, status: 500, message: err.message };
29
+ }
30
+ },
31
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ exports.default = {
8
+ id: 'info-jadwaltv', name: 'Jadwal TV', category: 'Info',
9
+ path: '/api/info/jadwaltv', method: 'GET',
10
+ description: 'Jadwal acara TV hari ini',
11
+ params: [{ name: 'channel', required: true, example: 'sctv', description: 'Nama channel TV (sctv, rcti, trans7, dll)' }],
12
+ handler: async (req, getInput) => {
13
+ const channel = getInput(req, 'channel');
14
+ if (!channel)
15
+ return { ok: false, status: 400, message: "Parameter 'channel' wajib diisi." };
16
+ try {
17
+ const { data } = await axios_1.default.get('https://api.siputzx.my.id/api/info/jadwaltv', { params: { channel }, timeout: 15000 });
18
+ if (!data?.status)
19
+ return { ok: false, status: 502, message: 'Gagal mengambil jadwal TV.' };
20
+ const arr = Array.isArray(data.data) ? data.data : [];
21
+ const rows = arr.slice(0, 8).map(x => `⏰ ${x.waktu || x.time || ''} — *${x.acara || x.judul || x.title || '-'}*`).join('\n');
22
+ const text = `📺 *Jadwal TV ${channel.toUpperCase()}*\n\n${rows || 'Tidak ada jadwal.'}`;
23
+ return { ok: true, type: 'text', result: text };
24
+ }
25
+ catch (err) {
26
+ return { ok: false, status: 500, message: err.message };
27
+ }
28
+ },
29
+ };
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // File: plugins/maker/brat.js
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const axios_1 = __importDefault(require("axios"));
8
+ exports.default = {
9
+ id: 'maker-brat',
10
+ name: 'Brat',
11
+ category: 'Maker',
12
+ path: '/api/maker/brat',
13
+ method: 'GET',
14
+ description: 'Text-to-image brat meme (auto sticker)',
15
+ asSticker: true,
16
+ params: [
17
+ {
18
+ name: 'text',
19
+ required: true,
20
+ example: 'ayo scroll fesnuk 😜',
21
+ description: 'Input text',
22
+ }
23
+ ],
24
+ handler: async (req, getInput, res) => {
25
+ const text = getInput(req, 'text');
26
+ if (!text)
27
+ return { ok: false, status: 400, message: "Parameter 'text' wajib diisi." };
28
+ try {
29
+ const response = await axios_1.default.get('https://api.siputzx.my.id/api/m/brat', {
30
+ params: { text },
31
+ timeout: 20000,
32
+ responseType: 'arraybuffer',
33
+ headers: { 'User-Agent': 'Deffa/1.0' },
34
+ });
35
+ const buffer = Buffer.from(response.data);
36
+ if (!buffer || buffer.length < 100) {
37
+ return { ok: false, status: 502, message: 'Upstream tidak mengembalikan gambar.' };
38
+ }
39
+ return { ok: true, type: 'sticker', buffer };
40
+ }
41
+ catch (err) {
42
+ return { ok: false, status: 500, message: err.message || 'Internal server error.' };
43
+ }
44
+ },
45
+ };
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ // File: plugins/maker/bratvid.js
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const axios_1 = __importDefault(require("axios"));
8
+ exports.default = {
9
+ id: 'maker-bratvid',
10
+ name: 'Bratvid',
11
+ category: 'Maker',
12
+ path: '/api/maker/bratvid',
13
+ method: 'GET',
14
+ description: 'Brat meme animated (auto sticker video)',
15
+ asSticker: true,
16
+ params: [
17
+ {
18
+ name: 'text',
19
+ required: true,
20
+ example: 'ayo scroll fesnuk 😜',
21
+ description: 'Input text',
22
+ },
23
+ {
24
+ name: 'delay',
25
+ required: false,
26
+ example: '500',
27
+ description: 'Delay antar frame animasi (ms), default 500',
28
+ }
29
+ ],
30
+ handler: async (req, getInput, res) => {
31
+ const text = getInput(req, 'text');
32
+ const delay = getInput(req, 'delay') || '500';
33
+ if (!text)
34
+ return { ok: false, status: 400, message: "Parameter 'text' wajib diisi." };
35
+ try {
36
+ const response = await axios_1.default.get('https://api.siputzx.my.id/api/m/brat', {
37
+ params: { text, isAnimated: 'true', delay },
38
+ timeout: 30000,
39
+ responseType: 'arraybuffer',
40
+ headers: { 'User-Agent': 'Deffa/1.0' },
41
+ });
42
+ const buffer = Buffer.from(response.data);
43
+ if (!buffer || buffer.length < 100) {
44
+ return { ok: false, status: 502, message: 'Upstream tidak mengembalikan video.' };
45
+ }
46
+ return { ok: true, type: 'sticker', isVideo: true, buffer };
47
+ }
48
+ catch (err) {
49
+ return { ok: false, status: 500, message: err.message || 'Internal server error.' };
50
+ }
51
+ },
52
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ exports.default = {
8
+ id: 'search-8font', name: 'Search 8font', category: 'Search',
9
+ path: '/api/s/8font', method: 'GET',
10
+ description: 'Cari konten di 8font',
11
+ params: [{ name: 'query', required: true, example: 'cartoon', description: 'Kata kunci pencarian' }],
12
+ handler: async (req, getInput) => {
13
+ const q = getInput(req, 'query');
14
+ if (!q)
15
+ return { ok: false, status: 400, message: "Parameter 'query' wajib diisi." };
16
+ try {
17
+ const { data } = await axios_1.default.get('https://api.siputzx.my.id/api/s/8font', { params: { query: q }, timeout: 15000 });
18
+ if (!data?.status)
19
+ return { ok: false, status: 502, message: 'Gagal mencari.' };
20
+ const arr = Array.isArray(data.data) ? data.data : (data.data ? [data.data] : []);
21
+ const text = arr.slice(0, 8).map((x, i) => `${i + 1}. ${x.text || x.name || String(x)}`).join('\n');
22
+ return { ok: true, type: 'text', result: text || 'Tidak ada hasil.' };
23
+ }
24
+ catch (err) {
25
+ return { ok: false, status: 500, message: err.message };
26
+ }
27
+ },
28
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ exports.default = {
8
+ id: 'search-applemusic', name: 'Search applemusic', category: 'Search',
9
+ path: '/api/s/applemusic', method: 'GET',
10
+ description: 'Cari konten di applemusic',
11
+ params: [{ name: 'query', required: true, example: 'duka', description: 'Kata kunci pencarian' }],
12
+ handler: async (req, getInput) => {
13
+ const q = getInput(req, 'query');
14
+ if (!q)
15
+ return { ok: false, status: 400, message: "Parameter 'query' wajib diisi." };
16
+ try {
17
+ const { data } = await axios_1.default.get('https://api.siputzx.my.id/api/s/applemusic', { params: { query: q }, timeout: 15000 });
18
+ if (!data?.status)
19
+ return { ok: false, status: 502, message: 'Gagal mencari.' };
20
+ const arr = Array.isArray(data.data) ? data.data : (data.data ? [data.data] : []);
21
+ const text = arr.slice(0, 5).map((x, i) => `${i + 1}. *${x.title || x.name || '-'}*\n ${x.url || x.link || ''}`).join('\n\n');
22
+ return { ok: true, type: 'text', result: text || 'Tidak ada hasil.' };
23
+ }
24
+ catch (err) {
25
+ return { ok: false, status: 500, message: err.message };
26
+ }
27
+ },
28
+ };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ exports.default = {
8
+ id: 'search-bimg', name: 'Search bimg', category: 'Search',
9
+ path: '/api/s/bimg', method: 'GET',
10
+ description: 'Cari konten di bimg',
11
+ params: [{ name: 'query', required: true, example: 'kucing', description: 'Kata kunci pencarian' }],
12
+ handler: async (req, getInput) => {
13
+ const q = getInput(req, 'query');
14
+ if (!q)
15
+ return { ok: false, status: 400, message: "Parameter 'query' wajib diisi." };
16
+ try {
17
+ const { data } = await axios_1.default.get('https://api.siputzx.my.id/api/s/bimg', { params: { query: q }, timeout: 15000 });
18
+ if (!data?.status)
19
+ return { ok: false, status: 502, message: 'Gagal mencari.' };
20
+ const imgUrl = Array.isArray(data.data) ? data.data[0]?.thumbnail || data.data[0]?.url || data.data[0] : data.data?.url;
21
+ if (!imgUrl)
22
+ return { ok: false, status: 502, message: 'Gambar tidak ditemukan.' };
23
+ const caption = Array.isArray(data.data) ? data.data.slice(0, 5).map((x, i) => `${i + 1}. ${x.link || x.url || ''}`).join('\n') : '';
24
+ return { ok: true, type: 'image', url: String(imgUrl), caption };
25
+ }
26
+ catch (err) {
27
+ return { ok: false, status: 500, message: err.message };
28
+ }
29
+ },
30
+ };
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ exports.default = {
8
+ id: 'search-brave', name: 'Search Brave', category: 'Search',
9
+ path: '/api/s/brave', method: 'GET',
10
+ description: 'Web search via Brave',
11
+ params: [
12
+ { name: 'query', required: true, example: 'apa itu nodejs', description: 'Kata kunci pencarian' },
13
+ { name: 'kl', required: false, example: 'id-id', description: 'Region (id-id, us-en, dll)' },
14
+ { name: 'df', required: false, example: 'w', description: 'Filter waktu (d=hari, w=minggu, m=bulan)' },
15
+ ],
16
+ handler: async (req, getInput) => {
17
+ const query = getInput(req, 'query');
18
+ if (!query)
19
+ return { ok: false, status: 400, message: "Parameter 'query' wajib diisi." };
20
+ try {
21
+ const { data } = await axios_1.default.get('https://api.siputzx.my.id/api/s/brave', {
22
+ params: { query, kl: getInput(req, 'kl'), df: getInput(req, 'df') }, timeout: 15000,
23
+ });
24
+ if (!data?.status)
25
+ return { ok: false, status: 502, message: 'Gagal mencari.' };
26
+ const arr = Array.isArray(data.data) ? data.data : (data.data ? [data.data] : []);
27
+ const text = arr.slice(0, 5).map((x, i) => `${i + 1}. *${x.title || '-'}*\n ${x.url || x.link || ''}\n ${x.description || ''}`).join('\n\n');
28
+ return { ok: true, type: 'text', result: text || 'Tidak ada hasil.' };
29
+ }
30
+ catch (err) {
31
+ return { ok: false, status: 500, message: err.message };
32
+ }
33
+ },
34
+ };