@bubblelab/bubble-core 0.1.8 → 0.1.10

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 (224) hide show
  1. package/dist/bubble-bundle.d.ts +333 -1438
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +64 -28
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubble-flow/bubble-flow-class.d.ts +17 -1
  6. package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
  7. package/dist/bubble-flow/bubble-flow-class.js +16 -0
  8. package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
  9. package/dist/bubble-flow/sample/data-analyst-flow.d.ts +1 -1
  10. package/dist/bubble-flow/sample/data-analyst-flow.d.ts.map +1 -1
  11. package/dist/bubble-flow/sample/error-ts.d.ts +1 -1
  12. package/dist/bubble-flow/sample/error-ts.d.ts.map +1 -1
  13. package/dist/bubble-flow/sample/sanitytest.d.ts +1 -1
  14. package/dist/bubble-flow/sample/sanitytest.d.ts.map +1 -1
  15. package/dist/bubble-flow/sample/simple-webhook-2.d.ts +1 -1
  16. package/dist/bubble-flow/sample/simple-webhook-2.d.ts.map +1 -1
  17. package/dist/bubble-flow/sample/simple-webhook.d.ts +1 -1
  18. package/dist/bubble-flow/sample/simple-webhook.d.ts.map +1 -1
  19. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts +1 -1
  20. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -1
  21. package/dist/bubble-flow/sample/slack-v0.1.d.ts +1 -1
  22. package/dist/bubble-flow/sample/slack-v0.1.d.ts.map +1 -1
  23. package/dist/bubble-flow/sample/slackagenttest.d.ts +1 -1
  24. package/dist/bubble-flow/sample/slackagenttest.d.ts.map +1 -1
  25. package/dist/bubbles/service-bubble/ai-agent.d.ts +115 -97
  26. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  27. package/dist/bubbles/service-bubble/ai-agent.js +276 -96
  28. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  29. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +805 -0
  30. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts.map +1 -0
  31. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.js +131 -0
  32. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.js.map +1 -0
  33. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +485 -0
  34. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts.map +1 -0
  35. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.js +176 -0
  36. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.js.map +1 -0
  37. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +302 -0
  38. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts.map +1 -0
  39. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.js +138 -0
  40. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.js.map +1 -0
  41. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +642 -0
  42. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts.map +1 -0
  43. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.js +123 -0
  44. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.js.map +1 -0
  45. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +184 -0
  46. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts.map +1 -0
  47. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js +145 -0
  48. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js.map +1 -0
  49. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts +52 -0
  50. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts.map +1 -0
  51. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js +29 -0
  52. package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js.map +1 -0
  53. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +1999 -0
  54. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -0
  55. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +54 -0
  56. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -0
  57. package/dist/bubbles/service-bubble/apify/apify.d.ts +143 -0
  58. package/dist/bubbles/service-bubble/apify/apify.d.ts.map +1 -0
  59. package/dist/bubbles/service-bubble/apify/apify.js +276 -0
  60. package/dist/bubbles/service-bubble/apify/apify.js.map +1 -0
  61. package/dist/bubbles/service-bubble/apify/index.d.ts +6 -0
  62. package/dist/bubbles/service-bubble/apify/index.d.ts.map +1 -0
  63. package/dist/bubbles/service-bubble/apify/index.js +6 -0
  64. package/dist/bubbles/service-bubble/apify/index.js.map +1 -0
  65. package/dist/bubbles/service-bubble/apify/types.d.ts +7 -0
  66. package/dist/bubbles/service-bubble/apify/types.d.ts.map +1 -0
  67. package/dist/bubbles/service-bubble/apify/types.js +5 -0
  68. package/dist/bubbles/service-bubble/apify/types.js.map +1 -0
  69. package/dist/bubbles/service-bubble/gmail.d.ts +626 -132
  70. package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
  71. package/dist/bubbles/service-bubble/gmail.js +435 -7
  72. package/dist/bubbles/service-bubble/gmail.js.map +1 -1
  73. package/dist/bubbles/service-bubble/google-calendar.d.ts +36 -36
  74. package/dist/bubbles/service-bubble/google-drive.d.ts +233 -4
  75. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
  76. package/dist/bubbles/service-bubble/google-drive.js +65 -75
  77. package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
  78. package/dist/bubbles/service-bubble/google-sheets.d.ts +52 -52
  79. package/dist/bubbles/service-bubble/hello-world.js +2 -2
  80. package/dist/bubbles/service-bubble/hello-world.js.map +1 -1
  81. package/dist/bubbles/service-bubble/http.d.ts +6 -6
  82. package/dist/bubbles/service-bubble/postgresql.d.ts +4 -4
  83. package/dist/bubbles/service-bubble/resend.d.ts +5 -5
  84. package/dist/bubbles/service-bubble/resend.d.ts.map +1 -1
  85. package/dist/bubbles/service-bubble/resend.js +16 -5
  86. package/dist/bubbles/service-bubble/resend.js.map +1 -1
  87. package/dist/bubbles/service-bubble/slack.d.ts +18 -18
  88. package/dist/bubbles/service-bubble/storage.d.ts +4 -4
  89. package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
  90. package/dist/bubbles/service-bubble/storage.js +16 -5
  91. package/dist/bubbles/service-bubble/storage.js.map +1 -1
  92. package/dist/bubbles/service-bubble/x-twitter.d.ts +814 -0
  93. package/dist/bubbles/service-bubble/x-twitter.d.ts.map +1 -0
  94. package/dist/bubbles/service-bubble/x-twitter.js +445 -0
  95. package/dist/bubbles/service-bubble/x-twitter.js.map +1 -0
  96. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +20 -20
  97. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +16 -16
  98. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +14 -1
  99. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
  100. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +101 -47
  101. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
  102. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +435 -0
  103. package/dist/bubbles/tool-bubble/instagram-tool.d.ts.map +1 -0
  104. package/dist/bubbles/tool-bubble/instagram-tool.js +474 -0
  105. package/dist/bubbles/tool-bubble/instagram-tool.js.map +1 -0
  106. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +2136 -0
  107. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts.map +1 -0
  108. package/dist/bubbles/tool-bubble/linkedin-tool.js +608 -0
  109. package/dist/bubbles/tool-bubble/linkedin-tool.js.map +1 -0
  110. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +69 -64
  111. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts.map +1 -1
  112. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js +97 -22
  113. package/dist/bubbles/tool-bubble/reddit-scrape-tool.js.map +1 -1
  114. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +6 -6
  115. package/dist/bubbles/tool-bubble/research-agent-tool.js +5 -5
  116. package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
  117. package/dist/bubbles/tool-bubble/tool-template.d.ts +8 -8
  118. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +14 -14
  119. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
  120. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +28 -28
  121. package/dist/bubbles/tool-bubble/web-scrape-tool.js +1 -1
  122. package/dist/bubbles/tool-bubble/web-scrape-tool.js.map +1 -1
  123. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +5 -4
  124. package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
  125. package/dist/bubbles/tool-bubble/web-search-tool.js +6 -2
  126. package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
  127. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +394 -0
  128. package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -0
  129. package/dist/bubbles/tool-bubble/youtube-tool.js +352 -0
  130. package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -0
  131. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +47 -36
  132. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -1
  133. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +96 -65
  134. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -1
  135. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +38 -38
  136. package/dist/bubbles/workflow-bubble/generate-document.workflow.js +1 -1
  137. package/dist/bubbles/workflow-bubble/generate-document.workflow.js.map +1 -1
  138. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +42 -42
  139. package/dist/bubbles/workflow-bubble/parse-document.workflow.js +1 -1
  140. package/dist/bubbles/workflow-bubble/parse-document.workflow.js.map +1 -1
  141. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +22 -22
  142. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
  143. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js +1 -4
  144. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
  145. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +60 -60
  146. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts.map +1 -1
  147. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +2 -2
  148. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -1
  149. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +20 -20
  150. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js +1 -1
  151. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js.map +1 -1
  152. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +66 -66
  153. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js +1 -1
  154. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js.map +1 -1
  155. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +18 -18
  156. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts.map +1 -1
  157. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js +1 -2
  158. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js.map +1 -1
  159. package/dist/bubbles.json +489 -0
  160. package/dist/index.d.ts +16 -3
  161. package/dist/index.d.ts.map +1 -1
  162. package/dist/index.js +8 -1
  163. package/dist/index.js.map +1 -1
  164. package/dist/logging/BubbleLogger.d.ts +11 -0
  165. package/dist/logging/BubbleLogger.d.ts.map +1 -1
  166. package/dist/logging/BubbleLogger.js +87 -33
  167. package/dist/logging/BubbleLogger.js.map +1 -1
  168. package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
  169. package/dist/logging/StreamingBubbleLogger.js +23 -16
  170. package/dist/logging/StreamingBubbleLogger.js.map +1 -1
  171. package/dist/test-gm.d.ts +10 -0
  172. package/dist/test-gm.d.ts.map +1 -0
  173. package/dist/test-gm.js +95 -0
  174. package/dist/test-gm.js.map +1 -0
  175. package/dist/types/available-tools.d.ts +1 -1
  176. package/dist/types/available-tools.d.ts.map +1 -1
  177. package/dist/types/available-tools.js +2 -0
  178. package/dist/types/available-tools.js.map +1 -1
  179. package/dist/types/base-bubble-class.d.ts +6 -1
  180. package/dist/types/base-bubble-class.d.ts.map +1 -1
  181. package/dist/types/base-bubble-class.js +47 -24
  182. package/dist/types/base-bubble-class.js.map +1 -1
  183. package/dist/types/bubble.d.ts +3 -13
  184. package/dist/types/bubble.d.ts.map +1 -1
  185. package/dist/types/bubble.js +1 -1
  186. package/dist/types/bubble.js.map +1 -1
  187. package/dist/types/service-bubble-class.d.ts +5 -5
  188. package/dist/types/service-bubble-class.d.ts.map +1 -1
  189. package/dist/types/service-bubble-class.js +6 -7
  190. package/dist/types/service-bubble-class.js.map +1 -1
  191. package/dist/types/tool-bubble-class.d.ts +1 -1
  192. package/dist/types/tool-bubble-class.d.ts.map +1 -1
  193. package/dist/types/tool-bubble-class.js +9 -3
  194. package/dist/types/tool-bubble-class.js.map +1 -1
  195. package/dist/types/workflow-bubble-class.d.ts +1 -1
  196. package/dist/types/workflow-bubble-class.d.ts.map +1 -1
  197. package/dist/utils/agent-formatter.d.ts +17 -0
  198. package/dist/utils/agent-formatter.d.ts.map +1 -0
  199. package/dist/utils/agent-formatter.js +139 -0
  200. package/dist/utils/agent-formatter.js.map +1 -0
  201. package/dist/utils/bubbleflow-validation.d.ts.map +1 -1
  202. package/dist/utils/bubbleflow-validation.js +89 -32
  203. package/dist/utils/bubbleflow-validation.js.map +1 -1
  204. package/dist/utils/error-sanitizer.d.ts +12 -0
  205. package/dist/utils/error-sanitizer.d.ts.map +1 -0
  206. package/dist/utils/error-sanitizer.js +77 -0
  207. package/dist/utils/error-sanitizer.js.map +1 -0
  208. package/dist/utils/json-parsing.d.ts +1 -0
  209. package/dist/utils/json-parsing.d.ts.map +1 -1
  210. package/dist/utils/json-parsing.js +205 -32
  211. package/dist/utils/json-parsing.js.map +1 -1
  212. package/package.json +6 -5
  213. package/dist/bubble-trigger/index.d.ts +0 -2
  214. package/dist/bubble-trigger/index.d.ts.map +0 -1
  215. package/dist/bubble-trigger/index.js +0 -2
  216. package/dist/bubble-trigger/index.js.map +0 -1
  217. package/dist/bubble-trigger/types.d.ts +0 -87
  218. package/dist/bubble-trigger/types.d.ts.map +0 -1
  219. package/dist/bubble-trigger/types.js +0 -14
  220. package/dist/bubble-trigger/types.js.map +0 -1
  221. package/dist/types/ai-models.d.ts +0 -4
  222. package/dist/types/ai-models.d.ts.map +0 -1
  223. package/dist/types/ai-models.js +0 -16
  224. package/dist/types/ai-models.js.map +0 -1
@@ -0,0 +1,814 @@
1
+ import { z } from 'zod';
2
+ import { ServiceBubble } from '../../types/service-bubble-class.js';
3
+ import type { BubbleContext } from '../../types/bubble.js';
4
+ import { CredentialType } from '@bubblelab/shared-schemas';
5
+ declare const XTwitterParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
6
+ operation: z.ZodLiteral<"post_tweet">;
7
+ text: z.ZodString;
8
+ reply_to_tweet_id: z.ZodOptional<z.ZodString>;
9
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ operation: "post_tweet";
12
+ text: string;
13
+ reply_to_tweet_id?: string | undefined;
14
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
15
+ }, {
16
+ operation: "post_tweet";
17
+ text: string;
18
+ reply_to_tweet_id?: string | undefined;
19
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
20
+ }>, z.ZodObject<{
21
+ operation: z.ZodLiteral<"get_tweet">;
22
+ tweet_id: z.ZodString;
23
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
24
+ }, "strip", z.ZodTypeAny, {
25
+ operation: "get_tweet";
26
+ tweet_id: string;
27
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
28
+ }, {
29
+ operation: "get_tweet";
30
+ tweet_id: string;
31
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
32
+ }>, z.ZodObject<{
33
+ operation: z.ZodLiteral<"get_user_info">;
34
+ username: z.ZodOptional<z.ZodString>;
35
+ user_id: z.ZodOptional<z.ZodString>;
36
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ operation: "get_user_info";
39
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
40
+ username?: string | undefined;
41
+ user_id?: string | undefined;
42
+ }, {
43
+ operation: "get_user_info";
44
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
45
+ username?: string | undefined;
46
+ user_id?: string | undefined;
47
+ }>, z.ZodObject<{
48
+ operation: z.ZodLiteral<"get_user_tweets">;
49
+ username: z.ZodOptional<z.ZodString>;
50
+ user_id: z.ZodOptional<z.ZodString>;
51
+ max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
52
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ operation: "get_user_tweets";
55
+ max_results: number;
56
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
57
+ username?: string | undefined;
58
+ user_id?: string | undefined;
59
+ }, {
60
+ operation: "get_user_tweets";
61
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
62
+ username?: string | undefined;
63
+ user_id?: string | undefined;
64
+ max_results?: number | undefined;
65
+ }>]>;
66
+ declare const XTwitterResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
67
+ operation: z.ZodLiteral<"post_tweet">;
68
+ success: z.ZodBoolean;
69
+ tweet: z.ZodOptional<z.ZodObject<{
70
+ id: z.ZodString;
71
+ text: z.ZodString;
72
+ author_id: z.ZodOptional<z.ZodString>;
73
+ created_at: z.ZodOptional<z.ZodString>;
74
+ public_metrics: z.ZodOptional<z.ZodObject<{
75
+ retweet_count: z.ZodOptional<z.ZodNumber>;
76
+ like_count: z.ZodOptional<z.ZodNumber>;
77
+ reply_count: z.ZodOptional<z.ZodNumber>;
78
+ quote_count: z.ZodOptional<z.ZodNumber>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ retweet_count?: number | undefined;
81
+ like_count?: number | undefined;
82
+ reply_count?: number | undefined;
83
+ quote_count?: number | undefined;
84
+ }, {
85
+ retweet_count?: number | undefined;
86
+ like_count?: number | undefined;
87
+ reply_count?: number | undefined;
88
+ quote_count?: number | undefined;
89
+ }>>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ text: string;
92
+ id: string;
93
+ author_id?: string | undefined;
94
+ created_at?: string | undefined;
95
+ public_metrics?: {
96
+ retweet_count?: number | undefined;
97
+ like_count?: number | undefined;
98
+ reply_count?: number | undefined;
99
+ quote_count?: number | undefined;
100
+ } | undefined;
101
+ }, {
102
+ text: string;
103
+ id: string;
104
+ author_id?: string | undefined;
105
+ created_at?: string | undefined;
106
+ public_metrics?: {
107
+ retweet_count?: number | undefined;
108
+ like_count?: number | undefined;
109
+ reply_count?: number | undefined;
110
+ quote_count?: number | undefined;
111
+ } | undefined;
112
+ }>>;
113
+ error: z.ZodString;
114
+ }, "strip", z.ZodTypeAny, {
115
+ operation: "post_tweet";
116
+ success: boolean;
117
+ error: string;
118
+ tweet?: {
119
+ text: string;
120
+ id: string;
121
+ author_id?: string | undefined;
122
+ created_at?: string | undefined;
123
+ public_metrics?: {
124
+ retweet_count?: number | undefined;
125
+ like_count?: number | undefined;
126
+ reply_count?: number | undefined;
127
+ quote_count?: number | undefined;
128
+ } | undefined;
129
+ } | undefined;
130
+ }, {
131
+ operation: "post_tweet";
132
+ success: boolean;
133
+ error: string;
134
+ tweet?: {
135
+ text: string;
136
+ id: string;
137
+ author_id?: string | undefined;
138
+ created_at?: string | undefined;
139
+ public_metrics?: {
140
+ retweet_count?: number | undefined;
141
+ like_count?: number | undefined;
142
+ reply_count?: number | undefined;
143
+ quote_count?: number | undefined;
144
+ } | undefined;
145
+ } | undefined;
146
+ }>, z.ZodObject<{
147
+ operation: z.ZodLiteral<"get_tweet">;
148
+ success: z.ZodBoolean;
149
+ tweet: z.ZodOptional<z.ZodObject<{
150
+ id: z.ZodString;
151
+ text: z.ZodString;
152
+ author_id: z.ZodOptional<z.ZodString>;
153
+ created_at: z.ZodOptional<z.ZodString>;
154
+ public_metrics: z.ZodOptional<z.ZodObject<{
155
+ retweet_count: z.ZodOptional<z.ZodNumber>;
156
+ like_count: z.ZodOptional<z.ZodNumber>;
157
+ reply_count: z.ZodOptional<z.ZodNumber>;
158
+ quote_count: z.ZodOptional<z.ZodNumber>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ retweet_count?: number | undefined;
161
+ like_count?: number | undefined;
162
+ reply_count?: number | undefined;
163
+ quote_count?: number | undefined;
164
+ }, {
165
+ retweet_count?: number | undefined;
166
+ like_count?: number | undefined;
167
+ reply_count?: number | undefined;
168
+ quote_count?: number | undefined;
169
+ }>>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ text: string;
172
+ id: string;
173
+ author_id?: string | undefined;
174
+ created_at?: string | undefined;
175
+ public_metrics?: {
176
+ retweet_count?: number | undefined;
177
+ like_count?: number | undefined;
178
+ reply_count?: number | undefined;
179
+ quote_count?: number | undefined;
180
+ } | undefined;
181
+ }, {
182
+ text: string;
183
+ id: string;
184
+ author_id?: string | undefined;
185
+ created_at?: string | undefined;
186
+ public_metrics?: {
187
+ retweet_count?: number | undefined;
188
+ like_count?: number | undefined;
189
+ reply_count?: number | undefined;
190
+ quote_count?: number | undefined;
191
+ } | undefined;
192
+ }>>;
193
+ error: z.ZodString;
194
+ }, "strip", z.ZodTypeAny, {
195
+ operation: "get_tweet";
196
+ success: boolean;
197
+ error: string;
198
+ tweet?: {
199
+ text: string;
200
+ id: string;
201
+ author_id?: string | undefined;
202
+ created_at?: string | undefined;
203
+ public_metrics?: {
204
+ retweet_count?: number | undefined;
205
+ like_count?: number | undefined;
206
+ reply_count?: number | undefined;
207
+ quote_count?: number | undefined;
208
+ } | undefined;
209
+ } | undefined;
210
+ }, {
211
+ operation: "get_tweet";
212
+ success: boolean;
213
+ error: string;
214
+ tweet?: {
215
+ text: string;
216
+ id: string;
217
+ author_id?: string | undefined;
218
+ created_at?: string | undefined;
219
+ public_metrics?: {
220
+ retweet_count?: number | undefined;
221
+ like_count?: number | undefined;
222
+ reply_count?: number | undefined;
223
+ quote_count?: number | undefined;
224
+ } | undefined;
225
+ } | undefined;
226
+ }>, z.ZodObject<{
227
+ operation: z.ZodLiteral<"get_user_info">;
228
+ success: z.ZodBoolean;
229
+ user: z.ZodOptional<z.ZodObject<{
230
+ id: z.ZodString;
231
+ name: z.ZodString;
232
+ username: z.ZodString;
233
+ description: z.ZodOptional<z.ZodString>;
234
+ public_metrics: z.ZodOptional<z.ZodObject<{
235
+ followers_count: z.ZodOptional<z.ZodNumber>;
236
+ following_count: z.ZodOptional<z.ZodNumber>;
237
+ tweet_count: z.ZodOptional<z.ZodNumber>;
238
+ listed_count: z.ZodOptional<z.ZodNumber>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ followers_count?: number | undefined;
241
+ following_count?: number | undefined;
242
+ tweet_count?: number | undefined;
243
+ listed_count?: number | undefined;
244
+ }, {
245
+ followers_count?: number | undefined;
246
+ following_count?: number | undefined;
247
+ tweet_count?: number | undefined;
248
+ listed_count?: number | undefined;
249
+ }>>;
250
+ verified: z.ZodOptional<z.ZodBoolean>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ name: string;
253
+ username: string;
254
+ id: string;
255
+ description?: string | undefined;
256
+ public_metrics?: {
257
+ followers_count?: number | undefined;
258
+ following_count?: number | undefined;
259
+ tweet_count?: number | undefined;
260
+ listed_count?: number | undefined;
261
+ } | undefined;
262
+ verified?: boolean | undefined;
263
+ }, {
264
+ name: string;
265
+ username: string;
266
+ id: string;
267
+ description?: string | undefined;
268
+ public_metrics?: {
269
+ followers_count?: number | undefined;
270
+ following_count?: number | undefined;
271
+ tweet_count?: number | undefined;
272
+ listed_count?: number | undefined;
273
+ } | undefined;
274
+ verified?: boolean | undefined;
275
+ }>>;
276
+ error: z.ZodString;
277
+ }, "strip", z.ZodTypeAny, {
278
+ operation: "get_user_info";
279
+ success: boolean;
280
+ error: string;
281
+ user?: {
282
+ name: string;
283
+ username: string;
284
+ id: string;
285
+ description?: string | undefined;
286
+ public_metrics?: {
287
+ followers_count?: number | undefined;
288
+ following_count?: number | undefined;
289
+ tweet_count?: number | undefined;
290
+ listed_count?: number | undefined;
291
+ } | undefined;
292
+ verified?: boolean | undefined;
293
+ } | undefined;
294
+ }, {
295
+ operation: "get_user_info";
296
+ success: boolean;
297
+ error: string;
298
+ user?: {
299
+ name: string;
300
+ username: string;
301
+ id: string;
302
+ description?: string | undefined;
303
+ public_metrics?: {
304
+ followers_count?: number | undefined;
305
+ following_count?: number | undefined;
306
+ tweet_count?: number | undefined;
307
+ listed_count?: number | undefined;
308
+ } | undefined;
309
+ verified?: boolean | undefined;
310
+ } | undefined;
311
+ }>, z.ZodObject<{
312
+ operation: z.ZodLiteral<"get_user_tweets">;
313
+ success: z.ZodBoolean;
314
+ tweets: z.ZodOptional<z.ZodArray<z.ZodObject<{
315
+ id: z.ZodString;
316
+ text: z.ZodString;
317
+ author_id: z.ZodOptional<z.ZodString>;
318
+ created_at: z.ZodOptional<z.ZodString>;
319
+ public_metrics: z.ZodOptional<z.ZodObject<{
320
+ retweet_count: z.ZodOptional<z.ZodNumber>;
321
+ like_count: z.ZodOptional<z.ZodNumber>;
322
+ reply_count: z.ZodOptional<z.ZodNumber>;
323
+ quote_count: z.ZodOptional<z.ZodNumber>;
324
+ }, "strip", z.ZodTypeAny, {
325
+ retweet_count?: number | undefined;
326
+ like_count?: number | undefined;
327
+ reply_count?: number | undefined;
328
+ quote_count?: number | undefined;
329
+ }, {
330
+ retweet_count?: number | undefined;
331
+ like_count?: number | undefined;
332
+ reply_count?: number | undefined;
333
+ quote_count?: number | undefined;
334
+ }>>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ text: string;
337
+ id: string;
338
+ author_id?: string | undefined;
339
+ created_at?: string | undefined;
340
+ public_metrics?: {
341
+ retweet_count?: number | undefined;
342
+ like_count?: number | undefined;
343
+ reply_count?: number | undefined;
344
+ quote_count?: number | undefined;
345
+ } | undefined;
346
+ }, {
347
+ text: string;
348
+ id: string;
349
+ author_id?: string | undefined;
350
+ created_at?: string | undefined;
351
+ public_metrics?: {
352
+ retweet_count?: number | undefined;
353
+ like_count?: number | undefined;
354
+ reply_count?: number | undefined;
355
+ quote_count?: number | undefined;
356
+ } | undefined;
357
+ }>, "many">>;
358
+ total_count: z.ZodOptional<z.ZodNumber>;
359
+ error: z.ZodString;
360
+ }, "strip", z.ZodTypeAny, {
361
+ operation: "get_user_tweets";
362
+ success: boolean;
363
+ error: string;
364
+ tweets?: {
365
+ text: string;
366
+ id: string;
367
+ author_id?: string | undefined;
368
+ created_at?: string | undefined;
369
+ public_metrics?: {
370
+ retweet_count?: number | undefined;
371
+ like_count?: number | undefined;
372
+ reply_count?: number | undefined;
373
+ quote_count?: number | undefined;
374
+ } | undefined;
375
+ }[] | undefined;
376
+ total_count?: number | undefined;
377
+ }, {
378
+ operation: "get_user_tweets";
379
+ success: boolean;
380
+ error: string;
381
+ tweets?: {
382
+ text: string;
383
+ id: string;
384
+ author_id?: string | undefined;
385
+ created_at?: string | undefined;
386
+ public_metrics?: {
387
+ retweet_count?: number | undefined;
388
+ like_count?: number | undefined;
389
+ reply_count?: number | undefined;
390
+ quote_count?: number | undefined;
391
+ } | undefined;
392
+ }[] | undefined;
393
+ total_count?: number | undefined;
394
+ }>]>;
395
+ type XTwitterResult = z.output<typeof XTwitterResultSchema>;
396
+ type XTwitterParams = z.input<typeof XTwitterParamsSchema>;
397
+ export type XTwitterOperationResult<T extends XTwitterParams['operation']> = Extract<XTwitterResult, {
398
+ operation: T;
399
+ }>;
400
+ export type XTwitterParamsInput = z.input<typeof XTwitterParamsSchema>;
401
+ export declare class XTwitterBubble<T extends XTwitterParams = XTwitterParams> extends ServiceBubble<T, Extract<XTwitterResult, {
402
+ operation: T['operation'];
403
+ }>> {
404
+ static readonly type: "service";
405
+ static readonly service = "x-twitter";
406
+ static readonly authType: "oauth";
407
+ static readonly bubbleName = "x-twitter";
408
+ static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
409
+ operation: z.ZodLiteral<"post_tweet">;
410
+ text: z.ZodString;
411
+ reply_to_tweet_id: z.ZodOptional<z.ZodString>;
412
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ operation: "post_tweet";
415
+ text: string;
416
+ reply_to_tweet_id?: string | undefined;
417
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
418
+ }, {
419
+ operation: "post_tweet";
420
+ text: string;
421
+ reply_to_tweet_id?: string | undefined;
422
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
423
+ }>, z.ZodObject<{
424
+ operation: z.ZodLiteral<"get_tweet">;
425
+ tweet_id: z.ZodString;
426
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
427
+ }, "strip", z.ZodTypeAny, {
428
+ operation: "get_tweet";
429
+ tweet_id: string;
430
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
431
+ }, {
432
+ operation: "get_tweet";
433
+ tweet_id: string;
434
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
435
+ }>, z.ZodObject<{
436
+ operation: z.ZodLiteral<"get_user_info">;
437
+ username: z.ZodOptional<z.ZodString>;
438
+ user_id: z.ZodOptional<z.ZodString>;
439
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ operation: "get_user_info";
442
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
443
+ username?: string | undefined;
444
+ user_id?: string | undefined;
445
+ }, {
446
+ operation: "get_user_info";
447
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
448
+ username?: string | undefined;
449
+ user_id?: string | undefined;
450
+ }>, z.ZodObject<{
451
+ operation: z.ZodLiteral<"get_user_tweets">;
452
+ username: z.ZodOptional<z.ZodString>;
453
+ user_id: z.ZodOptional<z.ZodString>;
454
+ max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
455
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ operation: "get_user_tweets";
458
+ max_results: number;
459
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
460
+ username?: string | undefined;
461
+ user_id?: string | undefined;
462
+ }, {
463
+ operation: "get_user_tweets";
464
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
465
+ username?: string | undefined;
466
+ user_id?: string | undefined;
467
+ max_results?: number | undefined;
468
+ }>]>;
469
+ static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
470
+ operation: z.ZodLiteral<"post_tweet">;
471
+ success: z.ZodBoolean;
472
+ tweet: z.ZodOptional<z.ZodObject<{
473
+ id: z.ZodString;
474
+ text: z.ZodString;
475
+ author_id: z.ZodOptional<z.ZodString>;
476
+ created_at: z.ZodOptional<z.ZodString>;
477
+ public_metrics: z.ZodOptional<z.ZodObject<{
478
+ retweet_count: z.ZodOptional<z.ZodNumber>;
479
+ like_count: z.ZodOptional<z.ZodNumber>;
480
+ reply_count: z.ZodOptional<z.ZodNumber>;
481
+ quote_count: z.ZodOptional<z.ZodNumber>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ retweet_count?: number | undefined;
484
+ like_count?: number | undefined;
485
+ reply_count?: number | undefined;
486
+ quote_count?: number | undefined;
487
+ }, {
488
+ retweet_count?: number | undefined;
489
+ like_count?: number | undefined;
490
+ reply_count?: number | undefined;
491
+ quote_count?: number | undefined;
492
+ }>>;
493
+ }, "strip", z.ZodTypeAny, {
494
+ text: string;
495
+ id: string;
496
+ author_id?: string | undefined;
497
+ created_at?: string | undefined;
498
+ public_metrics?: {
499
+ retweet_count?: number | undefined;
500
+ like_count?: number | undefined;
501
+ reply_count?: number | undefined;
502
+ quote_count?: number | undefined;
503
+ } | undefined;
504
+ }, {
505
+ text: string;
506
+ id: string;
507
+ author_id?: string | undefined;
508
+ created_at?: string | undefined;
509
+ public_metrics?: {
510
+ retweet_count?: number | undefined;
511
+ like_count?: number | undefined;
512
+ reply_count?: number | undefined;
513
+ quote_count?: number | undefined;
514
+ } | undefined;
515
+ }>>;
516
+ error: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ operation: "post_tweet";
519
+ success: boolean;
520
+ error: string;
521
+ tweet?: {
522
+ text: string;
523
+ id: string;
524
+ author_id?: string | undefined;
525
+ created_at?: string | undefined;
526
+ public_metrics?: {
527
+ retweet_count?: number | undefined;
528
+ like_count?: number | undefined;
529
+ reply_count?: number | undefined;
530
+ quote_count?: number | undefined;
531
+ } | undefined;
532
+ } | undefined;
533
+ }, {
534
+ operation: "post_tweet";
535
+ success: boolean;
536
+ error: string;
537
+ tweet?: {
538
+ text: string;
539
+ id: string;
540
+ author_id?: string | undefined;
541
+ created_at?: string | undefined;
542
+ public_metrics?: {
543
+ retweet_count?: number | undefined;
544
+ like_count?: number | undefined;
545
+ reply_count?: number | undefined;
546
+ quote_count?: number | undefined;
547
+ } | undefined;
548
+ } | undefined;
549
+ }>, z.ZodObject<{
550
+ operation: z.ZodLiteral<"get_tweet">;
551
+ success: z.ZodBoolean;
552
+ tweet: z.ZodOptional<z.ZodObject<{
553
+ id: z.ZodString;
554
+ text: z.ZodString;
555
+ author_id: z.ZodOptional<z.ZodString>;
556
+ created_at: z.ZodOptional<z.ZodString>;
557
+ public_metrics: z.ZodOptional<z.ZodObject<{
558
+ retweet_count: z.ZodOptional<z.ZodNumber>;
559
+ like_count: z.ZodOptional<z.ZodNumber>;
560
+ reply_count: z.ZodOptional<z.ZodNumber>;
561
+ quote_count: z.ZodOptional<z.ZodNumber>;
562
+ }, "strip", z.ZodTypeAny, {
563
+ retweet_count?: number | undefined;
564
+ like_count?: number | undefined;
565
+ reply_count?: number | undefined;
566
+ quote_count?: number | undefined;
567
+ }, {
568
+ retweet_count?: number | undefined;
569
+ like_count?: number | undefined;
570
+ reply_count?: number | undefined;
571
+ quote_count?: number | undefined;
572
+ }>>;
573
+ }, "strip", z.ZodTypeAny, {
574
+ text: string;
575
+ id: string;
576
+ author_id?: string | undefined;
577
+ created_at?: string | undefined;
578
+ public_metrics?: {
579
+ retweet_count?: number | undefined;
580
+ like_count?: number | undefined;
581
+ reply_count?: number | undefined;
582
+ quote_count?: number | undefined;
583
+ } | undefined;
584
+ }, {
585
+ text: string;
586
+ id: string;
587
+ author_id?: string | undefined;
588
+ created_at?: string | undefined;
589
+ public_metrics?: {
590
+ retweet_count?: number | undefined;
591
+ like_count?: number | undefined;
592
+ reply_count?: number | undefined;
593
+ quote_count?: number | undefined;
594
+ } | undefined;
595
+ }>>;
596
+ error: z.ZodString;
597
+ }, "strip", z.ZodTypeAny, {
598
+ operation: "get_tweet";
599
+ success: boolean;
600
+ error: string;
601
+ tweet?: {
602
+ text: string;
603
+ id: string;
604
+ author_id?: string | undefined;
605
+ created_at?: string | undefined;
606
+ public_metrics?: {
607
+ retweet_count?: number | undefined;
608
+ like_count?: number | undefined;
609
+ reply_count?: number | undefined;
610
+ quote_count?: number | undefined;
611
+ } | undefined;
612
+ } | undefined;
613
+ }, {
614
+ operation: "get_tweet";
615
+ success: boolean;
616
+ error: string;
617
+ tweet?: {
618
+ text: string;
619
+ id: string;
620
+ author_id?: string | undefined;
621
+ created_at?: string | undefined;
622
+ public_metrics?: {
623
+ retweet_count?: number | undefined;
624
+ like_count?: number | undefined;
625
+ reply_count?: number | undefined;
626
+ quote_count?: number | undefined;
627
+ } | undefined;
628
+ } | undefined;
629
+ }>, z.ZodObject<{
630
+ operation: z.ZodLiteral<"get_user_info">;
631
+ success: z.ZodBoolean;
632
+ user: z.ZodOptional<z.ZodObject<{
633
+ id: z.ZodString;
634
+ name: z.ZodString;
635
+ username: z.ZodString;
636
+ description: z.ZodOptional<z.ZodString>;
637
+ public_metrics: z.ZodOptional<z.ZodObject<{
638
+ followers_count: z.ZodOptional<z.ZodNumber>;
639
+ following_count: z.ZodOptional<z.ZodNumber>;
640
+ tweet_count: z.ZodOptional<z.ZodNumber>;
641
+ listed_count: z.ZodOptional<z.ZodNumber>;
642
+ }, "strip", z.ZodTypeAny, {
643
+ followers_count?: number | undefined;
644
+ following_count?: number | undefined;
645
+ tweet_count?: number | undefined;
646
+ listed_count?: number | undefined;
647
+ }, {
648
+ followers_count?: number | undefined;
649
+ following_count?: number | undefined;
650
+ tweet_count?: number | undefined;
651
+ listed_count?: number | undefined;
652
+ }>>;
653
+ verified: z.ZodOptional<z.ZodBoolean>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ name: string;
656
+ username: string;
657
+ id: string;
658
+ description?: string | undefined;
659
+ public_metrics?: {
660
+ followers_count?: number | undefined;
661
+ following_count?: number | undefined;
662
+ tweet_count?: number | undefined;
663
+ listed_count?: number | undefined;
664
+ } | undefined;
665
+ verified?: boolean | undefined;
666
+ }, {
667
+ name: string;
668
+ username: string;
669
+ id: string;
670
+ description?: string | undefined;
671
+ public_metrics?: {
672
+ followers_count?: number | undefined;
673
+ following_count?: number | undefined;
674
+ tweet_count?: number | undefined;
675
+ listed_count?: number | undefined;
676
+ } | undefined;
677
+ verified?: boolean | undefined;
678
+ }>>;
679
+ error: z.ZodString;
680
+ }, "strip", z.ZodTypeAny, {
681
+ operation: "get_user_info";
682
+ success: boolean;
683
+ error: string;
684
+ user?: {
685
+ name: string;
686
+ username: string;
687
+ id: string;
688
+ description?: string | undefined;
689
+ public_metrics?: {
690
+ followers_count?: number | undefined;
691
+ following_count?: number | undefined;
692
+ tweet_count?: number | undefined;
693
+ listed_count?: number | undefined;
694
+ } | undefined;
695
+ verified?: boolean | undefined;
696
+ } | undefined;
697
+ }, {
698
+ operation: "get_user_info";
699
+ success: boolean;
700
+ error: string;
701
+ user?: {
702
+ name: string;
703
+ username: string;
704
+ id: string;
705
+ description?: string | undefined;
706
+ public_metrics?: {
707
+ followers_count?: number | undefined;
708
+ following_count?: number | undefined;
709
+ tweet_count?: number | undefined;
710
+ listed_count?: number | undefined;
711
+ } | undefined;
712
+ verified?: boolean | undefined;
713
+ } | undefined;
714
+ }>, z.ZodObject<{
715
+ operation: z.ZodLiteral<"get_user_tweets">;
716
+ success: z.ZodBoolean;
717
+ tweets: z.ZodOptional<z.ZodArray<z.ZodObject<{
718
+ id: z.ZodString;
719
+ text: z.ZodString;
720
+ author_id: z.ZodOptional<z.ZodString>;
721
+ created_at: z.ZodOptional<z.ZodString>;
722
+ public_metrics: z.ZodOptional<z.ZodObject<{
723
+ retweet_count: z.ZodOptional<z.ZodNumber>;
724
+ like_count: z.ZodOptional<z.ZodNumber>;
725
+ reply_count: z.ZodOptional<z.ZodNumber>;
726
+ quote_count: z.ZodOptional<z.ZodNumber>;
727
+ }, "strip", z.ZodTypeAny, {
728
+ retweet_count?: number | undefined;
729
+ like_count?: number | undefined;
730
+ reply_count?: number | undefined;
731
+ quote_count?: number | undefined;
732
+ }, {
733
+ retweet_count?: number | undefined;
734
+ like_count?: number | undefined;
735
+ reply_count?: number | undefined;
736
+ quote_count?: number | undefined;
737
+ }>>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ text: string;
740
+ id: string;
741
+ author_id?: string | undefined;
742
+ created_at?: string | undefined;
743
+ public_metrics?: {
744
+ retweet_count?: number | undefined;
745
+ like_count?: number | undefined;
746
+ reply_count?: number | undefined;
747
+ quote_count?: number | undefined;
748
+ } | undefined;
749
+ }, {
750
+ text: string;
751
+ id: string;
752
+ author_id?: string | undefined;
753
+ created_at?: string | undefined;
754
+ public_metrics?: {
755
+ retweet_count?: number | undefined;
756
+ like_count?: number | undefined;
757
+ reply_count?: number | undefined;
758
+ quote_count?: number | undefined;
759
+ } | undefined;
760
+ }>, "many">>;
761
+ total_count: z.ZodOptional<z.ZodNumber>;
762
+ error: z.ZodString;
763
+ }, "strip", z.ZodTypeAny, {
764
+ operation: "get_user_tweets";
765
+ success: boolean;
766
+ error: string;
767
+ tweets?: {
768
+ text: string;
769
+ id: string;
770
+ author_id?: string | undefined;
771
+ created_at?: string | undefined;
772
+ public_metrics?: {
773
+ retweet_count?: number | undefined;
774
+ like_count?: number | undefined;
775
+ reply_count?: number | undefined;
776
+ quote_count?: number | undefined;
777
+ } | undefined;
778
+ }[] | undefined;
779
+ total_count?: number | undefined;
780
+ }, {
781
+ operation: "get_user_tweets";
782
+ success: boolean;
783
+ error: string;
784
+ tweets?: {
785
+ text: string;
786
+ id: string;
787
+ author_id?: string | undefined;
788
+ created_at?: string | undefined;
789
+ public_metrics?: {
790
+ retweet_count?: number | undefined;
791
+ like_count?: number | undefined;
792
+ reply_count?: number | undefined;
793
+ quote_count?: number | undefined;
794
+ } | undefined;
795
+ }[] | undefined;
796
+ total_count?: number | undefined;
797
+ }>]>;
798
+ static readonly shortDescription = "X (Twitter) integration for social media";
799
+ static readonly longDescription = "\n X (Twitter) service integration for social media operations.\n Use cases:\n - Post tweets\n - Read tweets by ID\n - Get user information\n - Get user's recent tweets\n \n Security Features:\n - OAuth 2.0 authentication with X (Twitter)\n - Scoped access permissions\n - Secure token handling\n ";
800
+ static readonly alias = "twitter";
801
+ constructor(params?: T, context?: BubbleContext);
802
+ testCredential(): Promise<boolean>;
803
+ private makeTwitterApiRequest;
804
+ protected performAction(context?: BubbleContext): Promise<Extract<XTwitterResult, {
805
+ operation: T['operation'];
806
+ }>>;
807
+ private postTweet;
808
+ private getTweet;
809
+ private getUserInfo;
810
+ private getUserTweets;
811
+ protected chooseCredential(): string | undefined;
812
+ }
813
+ export {};
814
+ //# sourceMappingURL=x-twitter.d.ts.map