@bubblelab/bubble-core 0.1.9 → 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.
- package/dist/bubble-bundle.d.ts +252 -1686
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +51 -19
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubble-flow/bubble-flow-class.d.ts +17 -1
- package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
- package/dist/bubble-flow/bubble-flow-class.js +16 -0
- package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
- package/dist/bubble-flow/sample/data-analyst-flow.d.ts +1 -1
- package/dist/bubble-flow/sample/data-analyst-flow.d.ts.map +1 -1
- package/dist/bubble-flow/sample/error-ts.d.ts +1 -1
- package/dist/bubble-flow/sample/error-ts.d.ts.map +1 -1
- package/dist/bubble-flow/sample/sanitytest.d.ts +1 -1
- package/dist/bubble-flow/sample/sanitytest.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simple-webhook-2.d.ts +1 -1
- package/dist/bubble-flow/sample/simple-webhook-2.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simple-webhook.d.ts +1 -1
- package/dist/bubble-flow/sample/simple-webhook.d.ts.map +1 -1
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts +1 -1
- package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -1
- package/dist/bubble-flow/sample/slack-v0.1.d.ts +1 -1
- package/dist/bubble-flow/sample/slack-v0.1.d.ts.map +1 -1
- package/dist/bubble-flow/sample/slackagenttest.d.ts +1 -1
- package/dist/bubble-flow/sample/slackagenttest.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.d.ts +30 -30
- package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/ai-agent.js +3 -1
- package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +34 -34
- package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +42 -42
- package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +21 -21
- package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +6 -6
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +184 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js +145 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts +52 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js +29 -0
- package/dist/bubbles/service-bubble/apify/actors/youtube-transcript-scraper.js.map +1 -0
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +338 -109
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +16 -0
- package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/apify.d.ts +10 -10
- package/dist/bubbles/service-bubble/apify/index.d.ts +2 -0
- package/dist/bubbles/service-bubble/apify/index.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/apify/index.js +3 -0
- package/dist/bubbles/service-bubble/apify/index.js.map +1 -1
- package/dist/bubbles/service-bubble/apify/types.js +1 -2
- package/dist/bubbles/service-bubble/apify/types.js.map +1 -1
- package/dist/bubbles/service-bubble/gmail.d.ts +678 -184
- package/dist/bubbles/service-bubble/gmail.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/gmail.js +435 -7
- package/dist/bubbles/service-bubble/gmail.js.map +1 -1
- package/dist/bubbles/service-bubble/google-calendar.d.ts +60 -60
- package/dist/bubbles/service-bubble/google-drive.d.ts +301 -72
- package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/google-drive.js +65 -75
- package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
- package/dist/bubbles/service-bubble/google-sheets.d.ts +76 -76
- package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
- package/dist/bubbles/service-bubble/hello-world.js +2 -2
- package/dist/bubbles/service-bubble/hello-world.js.map +1 -1
- package/dist/bubbles/service-bubble/http.d.ts +10 -10
- package/dist/bubbles/service-bubble/postgresql.d.ts +12 -12
- package/dist/bubbles/service-bubble/resend.d.ts +16 -16
- package/dist/bubbles/service-bubble/slack.d.ts +469 -469
- package/dist/bubbles/service-bubble/storage.d.ts +36 -36
- package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/storage.js +16 -5
- package/dist/bubbles/service-bubble/storage.js.map +1 -1
- package/dist/bubbles/service-bubble/x-twitter.d.ts +814 -0
- package/dist/bubbles/service-bubble/x-twitter.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/x-twitter.js +445 -0
- package/dist/bubbles/service-bubble/x-twitter.js.map +1 -0
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +20 -20
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +17 -9
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +86 -86
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +134 -134
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +69 -64
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.js +97 -22
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +6 -6
- package/dist/bubbles/tool-bubble/research-agent-tool.js +4 -4
- package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/tool-template.d.ts +8 -8
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +10 -10
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +11 -10
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
- package/dist/bubbles/tool-bubble/web-search-tool.js +5 -1
- package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +394 -0
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -0
- package/dist/bubbles/tool-bubble/youtube-tool.js +352 -0
- package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -0
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +47 -36
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +91 -65
- package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +70 -70
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +66 -66
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +56 -56
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +44 -44
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts.map +1 -1
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +1 -1
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js.map +1 -1
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +32 -32
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +58 -58
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +18 -18
- package/dist/bubbles.json +69 -54
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/logging/BubbleLogger.d.ts.map +1 -1
- package/dist/logging/BubbleLogger.js +20 -13
- package/dist/logging/BubbleLogger.js.map +1 -1
- package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
- package/dist/logging/StreamingBubbleLogger.js +5 -5
- package/dist/logging/StreamingBubbleLogger.js.map +1 -1
- package/dist/test-gm.d.ts +10 -0
- package/dist/test-gm.d.ts.map +1 -0
- package/dist/test-gm.js +95 -0
- package/dist/test-gm.js.map +1 -0
- package/dist/types/base-bubble-class.d.ts +1 -1
- package/dist/types/base-bubble-class.d.ts.map +1 -1
- package/dist/types/base-bubble-class.js +29 -21
- package/dist/types/base-bubble-class.js.map +1 -1
- package/dist/types/bubble.d.ts +1 -10
- package/dist/types/bubble.d.ts.map +1 -1
- package/dist/types/bubble.js +1 -1
- package/dist/types/bubble.js.map +1 -1
- package/dist/types/service-bubble-class.d.ts +1 -1
- package/dist/types/service-bubble-class.d.ts.map +1 -1
- package/dist/types/tool-bubble-class.d.ts +1 -1
- package/dist/types/tool-bubble-class.d.ts.map +1 -1
- package/dist/types/tool-bubble-class.js +0 -2
- package/dist/types/tool-bubble-class.js.map +1 -1
- package/dist/types/workflow-bubble-class.d.ts +1 -1
- package/dist/types/workflow-bubble-class.d.ts.map +1 -1
- package/dist/utils/agent-formatter.d.ts.map +1 -1
- package/dist/utils/agent-formatter.js +2 -2
- package/dist/utils/agent-formatter.js.map +1 -1
- package/dist/utils/bubbleflow-validation.d.ts.map +1 -1
- package/dist/utils/bubbleflow-validation.js +89 -32
- package/dist/utils/bubbleflow-validation.js.map +1 -1
- package/dist/utils/error-sanitizer.d.ts +12 -0
- package/dist/utils/error-sanitizer.d.ts.map +1 -0
- package/dist/utils/error-sanitizer.js +77 -0
- package/dist/utils/error-sanitizer.js.map +1 -0
- package/package.json +4 -4
- package/dist/bubble-trigger/index.d.ts +0 -2
- package/dist/bubble-trigger/index.d.ts.map +0 -1
- package/dist/bubble-trigger/index.js +0 -2
- package/dist/bubble-trigger/index.js.map +0 -1
- package/dist/bubble-trigger/types.d.ts +0 -87
- package/dist/bubble-trigger/types.d.ts.map +0 -1
- package/dist/bubble-trigger/types.js +0 -14
- package/dist/bubble-trigger/types.js.map +0 -1
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts +0 -370
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.d.ts.map +0 -1
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.js +0 -14
- package/dist/bubbles/service-bubble/apify/api-scraper.schema.js.map +0 -1
- package/dist/bubbles/service-bubble/apify.d.ts +0 -136
- package/dist/bubbles/service-bubble/apify.d.ts.map +0 -1
- package/dist/bubbles/service-bubble/apify.js +0 -282
- package/dist/bubbles/service-bubble/apify.js.map +0 -1
- package/dist/types/ai-models.d.ts +0 -4
- package/dist/types/ai-models.d.ts.map +0 -1
- package/dist/types/ai-models.js +0 -20
- package/dist/types/ai-models.js.map +0 -1
- package/dist/types/api-scraper.schema.d.ts +0 -453
- package/dist/types/api-scraper.schema.d.ts.map +0 -1
- package/dist/types/api-scraper.schema.js +0 -160
- package/dist/types/api-scraper.schema.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
|