@longdotxyz/shared 0.0.136 → 0.0.137
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.
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TierEnum = exports.XUserSchema = exports.XActivityResponseSchema = exports.GitHubActivityResponseSchema = exports.activityContract = void 0;
|
|
6
|
+
exports.TierEnum = exports.XTweetResponseSchema = exports.XTweetSchema = exports.XUserSchema = exports.XActivityResponseSchema = exports.GitHubActivityResponseSchema = exports.activityContract = void 0;
|
|
7
7
|
const contract_1 = require("@orpc/contract");
|
|
8
8
|
const zod_1 = __importDefault(require("zod"));
|
|
9
9
|
const TierEnum = zod_1.default.enum(["inactive", "casual", "active", "builder", "elite"]);
|
|
@@ -71,6 +71,75 @@ const x = contract_1.oc
|
|
|
71
71
|
})
|
|
72
72
|
.input(zod_1.default.object({ username: zod_1.default.string() }))
|
|
73
73
|
.output(XActivityResponseSchema);
|
|
74
|
-
const
|
|
74
|
+
const XTweetSchema = zod_1.default.object({
|
|
75
|
+
id: zod_1.default.string(),
|
|
76
|
+
text: zod_1.default.string(),
|
|
77
|
+
created_at: zod_1.default.string().optional(),
|
|
78
|
+
author_id: zod_1.default.string().optional(),
|
|
79
|
+
conversation_id: zod_1.default.string().optional(),
|
|
80
|
+
lang: zod_1.default.string().optional(),
|
|
81
|
+
possibly_sensitive: zod_1.default.boolean().optional(),
|
|
82
|
+
reply_settings: zod_1.default.string().optional(),
|
|
83
|
+
source: zod_1.default.string().optional(),
|
|
84
|
+
public_metrics: zod_1.default
|
|
85
|
+
.object({
|
|
86
|
+
retweet_count: zod_1.default.number(),
|
|
87
|
+
reply_count: zod_1.default.number(),
|
|
88
|
+
like_count: zod_1.default.number(),
|
|
89
|
+
quote_count: zod_1.default.number(),
|
|
90
|
+
impression_count: zod_1.default.number(),
|
|
91
|
+
bookmark_count: zod_1.default.number().optional(),
|
|
92
|
+
})
|
|
93
|
+
.optional(),
|
|
94
|
+
referenced_tweets: zod_1.default
|
|
95
|
+
.array(zod_1.default.object({
|
|
96
|
+
type: zod_1.default.enum(["retweeted", "quoted", "replied_to"]),
|
|
97
|
+
id: zod_1.default.string(),
|
|
98
|
+
}))
|
|
99
|
+
.optional(),
|
|
100
|
+
entities: zod_1.default
|
|
101
|
+
.object({
|
|
102
|
+
urls: zod_1.default
|
|
103
|
+
.array(zod_1.default.object({
|
|
104
|
+
start: zod_1.default.number(),
|
|
105
|
+
end: zod_1.default.number(),
|
|
106
|
+
url: zod_1.default.string(),
|
|
107
|
+
expanded_url: zod_1.default.string().optional(),
|
|
108
|
+
display_url: zod_1.default.string().optional(),
|
|
109
|
+
}))
|
|
110
|
+
.optional(),
|
|
111
|
+
hashtags: zod_1.default
|
|
112
|
+
.array(zod_1.default.object({
|
|
113
|
+
start: zod_1.default.number(),
|
|
114
|
+
end: zod_1.default.number(),
|
|
115
|
+
tag: zod_1.default.string(),
|
|
116
|
+
}))
|
|
117
|
+
.optional(),
|
|
118
|
+
mentions: zod_1.default
|
|
119
|
+
.array(zod_1.default.object({
|
|
120
|
+
start: zod_1.default.number(),
|
|
121
|
+
end: zod_1.default.number(),
|
|
122
|
+
username: zod_1.default.string(),
|
|
123
|
+
}))
|
|
124
|
+
.optional(),
|
|
125
|
+
})
|
|
126
|
+
.optional(),
|
|
127
|
+
author: XUserSchema.optional(),
|
|
128
|
+
});
|
|
129
|
+
exports.XTweetSchema = XTweetSchema;
|
|
130
|
+
const XTweetResponseSchema = zod_1.default.object({
|
|
131
|
+
result: XTweetSchema,
|
|
132
|
+
});
|
|
133
|
+
exports.XTweetResponseSchema = XTweetResponseSchema;
|
|
134
|
+
const xTweet = contract_1.oc
|
|
135
|
+
.route({
|
|
136
|
+
method: "GET",
|
|
137
|
+
path: "/activity/x-tweet/{id}",
|
|
138
|
+
description: "Get public information for an X (Twitter) tweet",
|
|
139
|
+
tags: ["activity"],
|
|
140
|
+
})
|
|
141
|
+
.input(zod_1.default.object({ id: zod_1.default.string() }))
|
|
142
|
+
.output(XTweetResponseSchema);
|
|
143
|
+
const activityContract = { github, x, xTweet };
|
|
75
144
|
exports.activityContract = activityContract;
|
|
76
145
|
//# sourceMappingURL=activity.contract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.contract.js","sourceRoot":"","sources":["../../src/contracts/activity.contract.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAoC;AACpC,8CAAoB;AAEpB,MAAM,QAAQ,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"activity.contract.js","sourceRoot":"","sources":["../../src/contracts/activity.contract.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAoC;AACpC,8CAAoB;AAEpB,MAAM,QAAQ,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAoJqD,4BAAQ;AAlJ3I,MAAM,oBAAoB,GAAG,aAAC,CAAC,MAAM,CAAC;IAClC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,aAAC,CAAC,MAAM,CAAC,aAAC,CAAC,MAAM,EAAE,EAAE,aAAC,CAAC,GAAG,EAAE,CAAC;CACzC,CAAC,CAAC;AAEH,MAAM,4BAA4B,GAAG,aAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,aAAC,CAAC,MAAM,CAAC;QACb,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;QACpB,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;QACjB,IAAI,EAAE,QAAQ;QACd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AAK,EAAE,aAAC,CAAC,MAAM,EAAE;YACjB,GAAG,EAAE,aAAC,CAAC,MAAM,EAAE;YACf,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE;SACvB,CAAC,CACL;aACA,QAAQ,EAAE;KAClB,CAAC;SACD,QAAQ,EAAE;IACf,MAAM,EAAE,WAAW,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAkB4F,oCAAY;AAhB3G,MAAM,oBAAoB,GAAG,aAAC,CAAC,MAAM,CAAC;IAClC,MAAM,EAAE,YAAY;CACvB,CAAC,CAAC;AAc0G,oDAAoB;AAZjI,MAAM,MAAM,GAAG,aAAE;KACZ,KAAK,CAAC;IACH,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,iDAAiD;IAC9D,IAAI,EAAE,CAAC,UAAU,CAAC;CACrB,CAAC;KACD,KAAK,CAAC,aAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,aAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KACnC,MAAM,CAAC,oBAAoB,CAAC,CAAC;AAElC,MAAM,gBAAgB,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;AAEtC,4CAAgB"}
|
|
@@ -4530,6 +4530,437 @@ export declare const rootContract: {
|
|
|
4530
4530
|
} | undefined;
|
|
4531
4531
|
};
|
|
4532
4532
|
}>, Record<never, never>, Record<never, never>>;
|
|
4533
|
+
xTweet: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
4534
|
+
id: import("zod").ZodString;
|
|
4535
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4536
|
+
id: string;
|
|
4537
|
+
}, {
|
|
4538
|
+
id: string;
|
|
4539
|
+
}>, import("zod").ZodObject<{
|
|
4540
|
+
result: import("zod").ZodObject<{
|
|
4541
|
+
id: import("zod").ZodString;
|
|
4542
|
+
text: import("zod").ZodString;
|
|
4543
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4544
|
+
author_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4545
|
+
conversation_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4546
|
+
lang: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4547
|
+
possibly_sensitive: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4548
|
+
reply_settings: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4549
|
+
source: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4550
|
+
public_metrics: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4551
|
+
retweet_count: import("zod").ZodNumber;
|
|
4552
|
+
reply_count: import("zod").ZodNumber;
|
|
4553
|
+
like_count: import("zod").ZodNumber;
|
|
4554
|
+
quote_count: import("zod").ZodNumber;
|
|
4555
|
+
impression_count: import("zod").ZodNumber;
|
|
4556
|
+
bookmark_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4557
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4558
|
+
like_count: number;
|
|
4559
|
+
retweet_count: number;
|
|
4560
|
+
reply_count: number;
|
|
4561
|
+
quote_count: number;
|
|
4562
|
+
impression_count: number;
|
|
4563
|
+
bookmark_count?: number | undefined;
|
|
4564
|
+
}, {
|
|
4565
|
+
like_count: number;
|
|
4566
|
+
retweet_count: number;
|
|
4567
|
+
reply_count: number;
|
|
4568
|
+
quote_count: number;
|
|
4569
|
+
impression_count: number;
|
|
4570
|
+
bookmark_count?: number | undefined;
|
|
4571
|
+
}>>;
|
|
4572
|
+
referenced_tweets: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
4573
|
+
type: import("zod").ZodEnum<["retweeted", "quoted", "replied_to"]>;
|
|
4574
|
+
id: import("zod").ZodString;
|
|
4575
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4576
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
4577
|
+
id: string;
|
|
4578
|
+
}, {
|
|
4579
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
4580
|
+
id: string;
|
|
4581
|
+
}>, "many">>;
|
|
4582
|
+
entities: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4583
|
+
urls: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
4584
|
+
start: import("zod").ZodNumber;
|
|
4585
|
+
end: import("zod").ZodNumber;
|
|
4586
|
+
url: import("zod").ZodString;
|
|
4587
|
+
expanded_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4588
|
+
display_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4589
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4590
|
+
url: string;
|
|
4591
|
+
start: number;
|
|
4592
|
+
end: number;
|
|
4593
|
+
expanded_url?: string | undefined;
|
|
4594
|
+
display_url?: string | undefined;
|
|
4595
|
+
}, {
|
|
4596
|
+
url: string;
|
|
4597
|
+
start: number;
|
|
4598
|
+
end: number;
|
|
4599
|
+
expanded_url?: string | undefined;
|
|
4600
|
+
display_url?: string | undefined;
|
|
4601
|
+
}>, "many">>;
|
|
4602
|
+
hashtags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
4603
|
+
start: import("zod").ZodNumber;
|
|
4604
|
+
end: import("zod").ZodNumber;
|
|
4605
|
+
tag: import("zod").ZodString;
|
|
4606
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4607
|
+
start: number;
|
|
4608
|
+
end: number;
|
|
4609
|
+
tag: string;
|
|
4610
|
+
}, {
|
|
4611
|
+
start: number;
|
|
4612
|
+
end: number;
|
|
4613
|
+
tag: string;
|
|
4614
|
+
}>, "many">>;
|
|
4615
|
+
mentions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
4616
|
+
start: import("zod").ZodNumber;
|
|
4617
|
+
end: import("zod").ZodNumber;
|
|
4618
|
+
username: import("zod").ZodString;
|
|
4619
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4620
|
+
username: string;
|
|
4621
|
+
start: number;
|
|
4622
|
+
end: number;
|
|
4623
|
+
}, {
|
|
4624
|
+
username: string;
|
|
4625
|
+
start: number;
|
|
4626
|
+
end: number;
|
|
4627
|
+
}>, "many">>;
|
|
4628
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4629
|
+
urls?: {
|
|
4630
|
+
url: string;
|
|
4631
|
+
start: number;
|
|
4632
|
+
end: number;
|
|
4633
|
+
expanded_url?: string | undefined;
|
|
4634
|
+
display_url?: string | undefined;
|
|
4635
|
+
}[] | undefined;
|
|
4636
|
+
hashtags?: {
|
|
4637
|
+
start: number;
|
|
4638
|
+
end: number;
|
|
4639
|
+
tag: string;
|
|
4640
|
+
}[] | undefined;
|
|
4641
|
+
mentions?: {
|
|
4642
|
+
username: string;
|
|
4643
|
+
start: number;
|
|
4644
|
+
end: number;
|
|
4645
|
+
}[] | undefined;
|
|
4646
|
+
}, {
|
|
4647
|
+
urls?: {
|
|
4648
|
+
url: string;
|
|
4649
|
+
start: number;
|
|
4650
|
+
end: number;
|
|
4651
|
+
expanded_url?: string | undefined;
|
|
4652
|
+
display_url?: string | undefined;
|
|
4653
|
+
}[] | undefined;
|
|
4654
|
+
hashtags?: {
|
|
4655
|
+
start: number;
|
|
4656
|
+
end: number;
|
|
4657
|
+
tag: string;
|
|
4658
|
+
}[] | undefined;
|
|
4659
|
+
mentions?: {
|
|
4660
|
+
username: string;
|
|
4661
|
+
start: number;
|
|
4662
|
+
end: number;
|
|
4663
|
+
}[] | undefined;
|
|
4664
|
+
}>>;
|
|
4665
|
+
author: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4666
|
+
id: import("zod").ZodString;
|
|
4667
|
+
username: import("zod").ZodString;
|
|
4668
|
+
name: import("zod").ZodString;
|
|
4669
|
+
verified: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4670
|
+
verified_type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4671
|
+
created_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4672
|
+
protected: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
4673
|
+
profile_image_url: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4674
|
+
public_metrics: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
4675
|
+
followers_count: import("zod").ZodNumber;
|
|
4676
|
+
following_count: import("zod").ZodNumber;
|
|
4677
|
+
tweet_count: import("zod").ZodNumber;
|
|
4678
|
+
listed_count: import("zod").ZodNumber;
|
|
4679
|
+
like_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
4680
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4681
|
+
followers_count: number;
|
|
4682
|
+
following_count: number;
|
|
4683
|
+
tweet_count: number;
|
|
4684
|
+
listed_count: number;
|
|
4685
|
+
like_count?: number | undefined;
|
|
4686
|
+
}, {
|
|
4687
|
+
followers_count: number;
|
|
4688
|
+
following_count: number;
|
|
4689
|
+
tweet_count: number;
|
|
4690
|
+
listed_count: number;
|
|
4691
|
+
like_count?: number | undefined;
|
|
4692
|
+
}>>;
|
|
4693
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4694
|
+
name: string;
|
|
4695
|
+
id: string;
|
|
4696
|
+
username: string;
|
|
4697
|
+
verified?: boolean | undefined;
|
|
4698
|
+
verified_type?: string | undefined;
|
|
4699
|
+
created_at?: string | undefined;
|
|
4700
|
+
protected?: boolean | undefined;
|
|
4701
|
+
profile_image_url?: string | undefined;
|
|
4702
|
+
public_metrics?: {
|
|
4703
|
+
followers_count: number;
|
|
4704
|
+
following_count: number;
|
|
4705
|
+
tweet_count: number;
|
|
4706
|
+
listed_count: number;
|
|
4707
|
+
like_count?: number | undefined;
|
|
4708
|
+
} | undefined;
|
|
4709
|
+
}, {
|
|
4710
|
+
name: string;
|
|
4711
|
+
id: string;
|
|
4712
|
+
username: string;
|
|
4713
|
+
verified?: boolean | undefined;
|
|
4714
|
+
verified_type?: string | undefined;
|
|
4715
|
+
created_at?: string | undefined;
|
|
4716
|
+
protected?: boolean | undefined;
|
|
4717
|
+
profile_image_url?: string | undefined;
|
|
4718
|
+
public_metrics?: {
|
|
4719
|
+
followers_count: number;
|
|
4720
|
+
following_count: number;
|
|
4721
|
+
tweet_count: number;
|
|
4722
|
+
listed_count: number;
|
|
4723
|
+
like_count?: number | undefined;
|
|
4724
|
+
} | undefined;
|
|
4725
|
+
}>>;
|
|
4726
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4727
|
+
id: string;
|
|
4728
|
+
text: string;
|
|
4729
|
+
created_at?: string | undefined;
|
|
4730
|
+
public_metrics?: {
|
|
4731
|
+
like_count: number;
|
|
4732
|
+
retweet_count: number;
|
|
4733
|
+
reply_count: number;
|
|
4734
|
+
quote_count: number;
|
|
4735
|
+
impression_count: number;
|
|
4736
|
+
bookmark_count?: number | undefined;
|
|
4737
|
+
} | undefined;
|
|
4738
|
+
author_id?: string | undefined;
|
|
4739
|
+
conversation_id?: string | undefined;
|
|
4740
|
+
lang?: string | undefined;
|
|
4741
|
+
possibly_sensitive?: boolean | undefined;
|
|
4742
|
+
reply_settings?: string | undefined;
|
|
4743
|
+
source?: string | undefined;
|
|
4744
|
+
referenced_tweets?: {
|
|
4745
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
4746
|
+
id: string;
|
|
4747
|
+
}[] | undefined;
|
|
4748
|
+
entities?: {
|
|
4749
|
+
urls?: {
|
|
4750
|
+
url: string;
|
|
4751
|
+
start: number;
|
|
4752
|
+
end: number;
|
|
4753
|
+
expanded_url?: string | undefined;
|
|
4754
|
+
display_url?: string | undefined;
|
|
4755
|
+
}[] | undefined;
|
|
4756
|
+
hashtags?: {
|
|
4757
|
+
start: number;
|
|
4758
|
+
end: number;
|
|
4759
|
+
tag: string;
|
|
4760
|
+
}[] | undefined;
|
|
4761
|
+
mentions?: {
|
|
4762
|
+
username: string;
|
|
4763
|
+
start: number;
|
|
4764
|
+
end: number;
|
|
4765
|
+
}[] | undefined;
|
|
4766
|
+
} | undefined;
|
|
4767
|
+
author?: {
|
|
4768
|
+
name: string;
|
|
4769
|
+
id: string;
|
|
4770
|
+
username: string;
|
|
4771
|
+
verified?: boolean | undefined;
|
|
4772
|
+
verified_type?: string | undefined;
|
|
4773
|
+
created_at?: string | undefined;
|
|
4774
|
+
protected?: boolean | undefined;
|
|
4775
|
+
profile_image_url?: string | undefined;
|
|
4776
|
+
public_metrics?: {
|
|
4777
|
+
followers_count: number;
|
|
4778
|
+
following_count: number;
|
|
4779
|
+
tweet_count: number;
|
|
4780
|
+
listed_count: number;
|
|
4781
|
+
like_count?: number | undefined;
|
|
4782
|
+
} | undefined;
|
|
4783
|
+
} | undefined;
|
|
4784
|
+
}, {
|
|
4785
|
+
id: string;
|
|
4786
|
+
text: string;
|
|
4787
|
+
created_at?: string | undefined;
|
|
4788
|
+
public_metrics?: {
|
|
4789
|
+
like_count: number;
|
|
4790
|
+
retweet_count: number;
|
|
4791
|
+
reply_count: number;
|
|
4792
|
+
quote_count: number;
|
|
4793
|
+
impression_count: number;
|
|
4794
|
+
bookmark_count?: number | undefined;
|
|
4795
|
+
} | undefined;
|
|
4796
|
+
author_id?: string | undefined;
|
|
4797
|
+
conversation_id?: string | undefined;
|
|
4798
|
+
lang?: string | undefined;
|
|
4799
|
+
possibly_sensitive?: boolean | undefined;
|
|
4800
|
+
reply_settings?: string | undefined;
|
|
4801
|
+
source?: string | undefined;
|
|
4802
|
+
referenced_tweets?: {
|
|
4803
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
4804
|
+
id: string;
|
|
4805
|
+
}[] | undefined;
|
|
4806
|
+
entities?: {
|
|
4807
|
+
urls?: {
|
|
4808
|
+
url: string;
|
|
4809
|
+
start: number;
|
|
4810
|
+
end: number;
|
|
4811
|
+
expanded_url?: string | undefined;
|
|
4812
|
+
display_url?: string | undefined;
|
|
4813
|
+
}[] | undefined;
|
|
4814
|
+
hashtags?: {
|
|
4815
|
+
start: number;
|
|
4816
|
+
end: number;
|
|
4817
|
+
tag: string;
|
|
4818
|
+
}[] | undefined;
|
|
4819
|
+
mentions?: {
|
|
4820
|
+
username: string;
|
|
4821
|
+
start: number;
|
|
4822
|
+
end: number;
|
|
4823
|
+
}[] | undefined;
|
|
4824
|
+
} | undefined;
|
|
4825
|
+
author?: {
|
|
4826
|
+
name: string;
|
|
4827
|
+
id: string;
|
|
4828
|
+
username: string;
|
|
4829
|
+
verified?: boolean | undefined;
|
|
4830
|
+
verified_type?: string | undefined;
|
|
4831
|
+
created_at?: string | undefined;
|
|
4832
|
+
protected?: boolean | undefined;
|
|
4833
|
+
profile_image_url?: string | undefined;
|
|
4834
|
+
public_metrics?: {
|
|
4835
|
+
followers_count: number;
|
|
4836
|
+
following_count: number;
|
|
4837
|
+
tweet_count: number;
|
|
4838
|
+
listed_count: number;
|
|
4839
|
+
like_count?: number | undefined;
|
|
4840
|
+
} | undefined;
|
|
4841
|
+
} | undefined;
|
|
4842
|
+
}>;
|
|
4843
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
4844
|
+
result: {
|
|
4845
|
+
id: string;
|
|
4846
|
+
text: string;
|
|
4847
|
+
created_at?: string | undefined;
|
|
4848
|
+
public_metrics?: {
|
|
4849
|
+
like_count: number;
|
|
4850
|
+
retweet_count: number;
|
|
4851
|
+
reply_count: number;
|
|
4852
|
+
quote_count: number;
|
|
4853
|
+
impression_count: number;
|
|
4854
|
+
bookmark_count?: number | undefined;
|
|
4855
|
+
} | undefined;
|
|
4856
|
+
author_id?: string | undefined;
|
|
4857
|
+
conversation_id?: string | undefined;
|
|
4858
|
+
lang?: string | undefined;
|
|
4859
|
+
possibly_sensitive?: boolean | undefined;
|
|
4860
|
+
reply_settings?: string | undefined;
|
|
4861
|
+
source?: string | undefined;
|
|
4862
|
+
referenced_tweets?: {
|
|
4863
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
4864
|
+
id: string;
|
|
4865
|
+
}[] | undefined;
|
|
4866
|
+
entities?: {
|
|
4867
|
+
urls?: {
|
|
4868
|
+
url: string;
|
|
4869
|
+
start: number;
|
|
4870
|
+
end: number;
|
|
4871
|
+
expanded_url?: string | undefined;
|
|
4872
|
+
display_url?: string | undefined;
|
|
4873
|
+
}[] | undefined;
|
|
4874
|
+
hashtags?: {
|
|
4875
|
+
start: number;
|
|
4876
|
+
end: number;
|
|
4877
|
+
tag: string;
|
|
4878
|
+
}[] | undefined;
|
|
4879
|
+
mentions?: {
|
|
4880
|
+
username: string;
|
|
4881
|
+
start: number;
|
|
4882
|
+
end: number;
|
|
4883
|
+
}[] | undefined;
|
|
4884
|
+
} | undefined;
|
|
4885
|
+
author?: {
|
|
4886
|
+
name: string;
|
|
4887
|
+
id: string;
|
|
4888
|
+
username: string;
|
|
4889
|
+
verified?: boolean | undefined;
|
|
4890
|
+
verified_type?: string | undefined;
|
|
4891
|
+
created_at?: string | undefined;
|
|
4892
|
+
protected?: boolean | undefined;
|
|
4893
|
+
profile_image_url?: string | undefined;
|
|
4894
|
+
public_metrics?: {
|
|
4895
|
+
followers_count: number;
|
|
4896
|
+
following_count: number;
|
|
4897
|
+
tweet_count: number;
|
|
4898
|
+
listed_count: number;
|
|
4899
|
+
like_count?: number | undefined;
|
|
4900
|
+
} | undefined;
|
|
4901
|
+
} | undefined;
|
|
4902
|
+
};
|
|
4903
|
+
}, {
|
|
4904
|
+
result: {
|
|
4905
|
+
id: string;
|
|
4906
|
+
text: string;
|
|
4907
|
+
created_at?: string | undefined;
|
|
4908
|
+
public_metrics?: {
|
|
4909
|
+
like_count: number;
|
|
4910
|
+
retweet_count: number;
|
|
4911
|
+
reply_count: number;
|
|
4912
|
+
quote_count: number;
|
|
4913
|
+
impression_count: number;
|
|
4914
|
+
bookmark_count?: number | undefined;
|
|
4915
|
+
} | undefined;
|
|
4916
|
+
author_id?: string | undefined;
|
|
4917
|
+
conversation_id?: string | undefined;
|
|
4918
|
+
lang?: string | undefined;
|
|
4919
|
+
possibly_sensitive?: boolean | undefined;
|
|
4920
|
+
reply_settings?: string | undefined;
|
|
4921
|
+
source?: string | undefined;
|
|
4922
|
+
referenced_tweets?: {
|
|
4923
|
+
type: "retweeted" | "quoted" | "replied_to";
|
|
4924
|
+
id: string;
|
|
4925
|
+
}[] | undefined;
|
|
4926
|
+
entities?: {
|
|
4927
|
+
urls?: {
|
|
4928
|
+
url: string;
|
|
4929
|
+
start: number;
|
|
4930
|
+
end: number;
|
|
4931
|
+
expanded_url?: string | undefined;
|
|
4932
|
+
display_url?: string | undefined;
|
|
4933
|
+
}[] | undefined;
|
|
4934
|
+
hashtags?: {
|
|
4935
|
+
start: number;
|
|
4936
|
+
end: number;
|
|
4937
|
+
tag: string;
|
|
4938
|
+
}[] | undefined;
|
|
4939
|
+
mentions?: {
|
|
4940
|
+
username: string;
|
|
4941
|
+
start: number;
|
|
4942
|
+
end: number;
|
|
4943
|
+
}[] | undefined;
|
|
4944
|
+
} | undefined;
|
|
4945
|
+
author?: {
|
|
4946
|
+
name: string;
|
|
4947
|
+
id: string;
|
|
4948
|
+
username: string;
|
|
4949
|
+
verified?: boolean | undefined;
|
|
4950
|
+
verified_type?: string | undefined;
|
|
4951
|
+
created_at?: string | undefined;
|
|
4952
|
+
protected?: boolean | undefined;
|
|
4953
|
+
profile_image_url?: string | undefined;
|
|
4954
|
+
public_metrics?: {
|
|
4955
|
+
followers_count: number;
|
|
4956
|
+
following_count: number;
|
|
4957
|
+
tweet_count: number;
|
|
4958
|
+
listed_count: number;
|
|
4959
|
+
like_count?: number | undefined;
|
|
4960
|
+
} | undefined;
|
|
4961
|
+
} | undefined;
|
|
4962
|
+
};
|
|
4963
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
4533
4964
|
};
|
|
4534
4965
|
ipfs: {
|
|
4535
4966
|
uploadImage: import("@orpc/contract", { with: { "resolution-mode": "import" } }).ContractProcedureBuilderWithInputOutput<import("zod").ZodAny, import("zod").ZodObject<{
|