-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmod.ts
More file actions
145 lines (131 loc) · 6.3 KB
/
Copy pathmod.ts
File metadata and controls
145 lines (131 loc) · 6.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/**
* @module
*
* Denim - A Deno/TypeScript library for the Threads API.
* Provides complete coverage of all Threads API endpoints including
* posting, retrieval, replies, insights, search, locations, and more.
*/
// ─── Types ───────────────────────────────────────────────────────────────────
import type {
AuthCodeResponse,
CursorPaginationOptions,
DebugTokenInfo,
GifAttachment,
InsightValue,
KeywordSearchOptions,
LocationSearchOptions,
MediaInsight,
MediaInsightsResponse,
MediaType,
MockThreadsAPI,
OEmbedResponse,
PaginationOptions,
PollAttachment,
PollAttachmentInput,
PublicProfile,
PublishingLimit,
QuotaConfig,
ReplyControl,
ResponseMediaType,
TextAttachment,
TextAttachmentInput,
TextEntity,
ThreadsContainer,
ThreadsListResponse,
ThreadsLocation,
ThreadsPost,
ThreadsPostRequest,
ThreadsProfile,
TokenResponse,
UserInsight,
UserInsightsOptions,
UserInsightsResponse,
WebhookDeleteValue,
WebhookMentionValue,
WebhookPayload,
WebhookPublishValue,
WebhookReplyValue,
} from "./src/types.ts";
export type {
AuthCodeResponse,
CursorPaginationOptions,
DebugTokenInfo,
GifAttachment,
InsightValue,
KeywordSearchOptions,
LocationSearchOptions,
MediaInsight,
MediaInsightsResponse,
MediaType,
MockThreadsAPI,
OEmbedResponse,
PaginationOptions,
PollAttachment,
PollAttachmentInput,
PublicProfile,
PublishingLimit,
QuotaConfig,
ReplyControl,
ResponseMediaType,
TextAttachment,
TextAttachmentInput,
TextEntity,
ThreadsContainer,
ThreadsListResponse,
ThreadsLocation,
ThreadsPost,
ThreadsPostRequest,
ThreadsProfile,
TokenResponse,
UserInsight,
UserInsightsOptions,
UserInsightsResponse,
WebhookDeleteValue,
WebhookMentionValue,
WebhookPayload,
WebhookPublishValue,
WebhookReplyValue,
};
// ─── Publishing ──────────────────────────────────────────────────────────────
export { createCarouselItem } from "./src/api/createCarouselItem.ts";
export { createThreadsContainer } from "./src/api/createThreadsContainer.ts";
export { deleteThread } from "./src/api/deleteThread.ts";
export { publishThreadsContainer } from "./src/api/publishThreadsContainer.ts";
export { repost } from "./src/api/repost.ts";
// ─── Retrieval ───────────────────────────────────────────────────────────────
export { getGhostPosts } from "./src/api/getGhostPosts.ts";
export { getSingleThread } from "./src/api/getSingleThread.ts";
export { getThreadsList } from "./src/api/getThreadsList.ts";
// ─── Profiles ────────────────────────────────────────────────────────────────
export { getProfile } from "./src/api/getProfile.ts";
export { getProfilePosts } from "./src/api/getProfilePosts.ts";
export { lookupProfile } from "./src/api/lookupProfile.ts";
// ─── Replies ─────────────────────────────────────────────────────────────────
export { getConversation } from "./src/api/getConversation.ts";
export { getReplies } from "./src/api/getReplies.ts";
export { getUserReplies } from "./src/api/getUserReplies.ts";
export { manageReply } from "./src/api/manageReply.ts";
// ─── Mentions ────────────────────────────────────────────────────────────────
export { getMentions } from "./src/api/getMentions.ts";
// ─── Insights ────────────────────────────────────────────────────────────────
export { getMediaInsights } from "./src/api/getMediaInsights.ts";
export { getUserInsights } from "./src/api/getUserInsights.ts";
// ─── Search ──────────────────────────────────────────────────────────────────
export { getLocation } from "./src/api/getLocation.ts";
export { searchKeyword } from "./src/api/searchKeyword.ts";
export { searchLocations } from "./src/api/searchLocations.ts";
// ─── Tokens ──────────────────────────────────────────────────────────────────
export { debugToken } from "./src/api/debugToken.ts";
export { exchangeCodeForToken } from "./src/api/exchangeCodeForToken.ts";
export { exchangeToken } from "./src/api/exchangeToken.ts";
export { getAppAccessToken } from "./src/api/getAppAccessToken.ts";
export { refreshToken } from "./src/api/refreshToken.ts";
// ─── oEmbed ──────────────────────────────────────────────────────────────────
export { getOEmbed } from "./src/api/getOEmbed.ts";
// ─── Rate Limits ─────────────────────────────────────────────────────────────
export { getPublishingLimit } from "./src/api/getPublishingLimit.ts";
// ─── Utilities ───────────────────────────────────────────────────────────────
export { checkContainerStatus } from "./src/utils/checkContainerStatus.ts";
export { validateRequest } from "./src/utils/validateRequest.ts";
// ─── Testing ─────────────────────────────────────────────────────────────────
export { MockThreadsAPIImpl } from "./src/utils/mock_threads_api.ts";