@opencoredev/social-sdk 0.2.0 → 0.3.0
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/cli.d.ts +0 -1
- package/dist/cli.js +0 -1
- package/dist/cloud/common.d.ts +0 -1
- package/dist/cloud/common.js +0 -1
- package/dist/cloud/lifecycle.d.ts +0 -1
- package/dist/cloud/lifecycle.js +0 -1
- package/dist/cloud/media.d.ts +0 -1
- package/dist/cloud/media.js +0 -1
- package/dist/cloud/outcomes.d.ts +0 -1
- package/dist/cloud/outcomes.js +0 -1
- package/dist/cloud/post-for-me.d.ts +0 -1
- package/dist/cloud/post-for-me.js +0 -1
- package/dist/cloud/zernio.d.ts +0 -1
- package/dist/cloud/zernio.js +0 -1
- package/dist/core/adapter.d.ts +0 -1
- package/dist/core/adapter.js +0 -1
- package/dist/core/client.d.ts +0 -1
- package/dist/core/client.js +0 -1
- package/dist/core/concurrency.d.ts +0 -1
- package/dist/core/concurrency.js +0 -1
- package/dist/core/errors.d.ts +0 -1
- package/dist/core/errors.js +0 -1
- package/dist/core/idempotency.d.ts +0 -1
- package/dist/core/idempotency.js +0 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.js +0 -1
- package/dist/core/pagination.d.ts +0 -1
- package/dist/core/pagination.js +0 -1
- package/dist/core/types.d.ts +0 -1
- package/dist/core/types.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/platforms/bluesky.d.ts +0 -1
- package/dist/platforms/bluesky.js +0 -1
- package/dist/platforms/instagram.d.ts +0 -1
- package/dist/platforms/instagram.js +0 -1
- package/dist/platforms/linkedin.d.ts +0 -1
- package/dist/platforms/linkedin.js +0 -1
- package/dist/platforms/threads.d.ts +0 -1
- package/dist/platforms/threads.js +0 -1
- package/dist/platforms/tiktok.d.ts +0 -1
- package/dist/platforms/tiktok.js +0 -1
- package/dist/platforms/x-engagement.d.ts +0 -1
- package/dist/platforms/x-engagement.js +0 -1
- package/dist/platforms/x-text.d.ts +2 -0
- package/dist/platforms/x-text.js +123 -0
- package/dist/platforms/x-tlds.d.ts +1 -0
- package/dist/platforms/x-tlds.js +2 -0
- package/dist/platforms/x.d.ts +15 -1
- package/dist/platforms/x.js +339 -21
- package/dist/platforms/youtube-upload.d.ts +0 -1
- package/dist/platforms/youtube-upload.js +0 -1
- package/dist/platforms/youtube.d.ts +0 -1
- package/dist/platforms/youtube.js +0 -1
- package/dist/server/connections.d.ts +0 -1
- package/dist/server/connections.js +0 -1
- package/dist/server/credentials.d.ts +0 -1
- package/dist/server/credentials.js +0 -1
- package/dist/server/index.d.ts +0 -1
- package/dist/server/index.js +0 -1
- package/dist/server/oauth.d.ts +0 -1
- package/dist/server/oauth.js +0 -1
- package/dist/server/webhooks.d.ts +0 -1
- package/dist/server/webhooks.js +0 -1
- package/dist/testing/index.d.ts +0 -1
- package/dist/testing/index.js +0 -1
- package/dist/testing.d.ts +0 -1
- package/dist/testing.js +0 -1
- package/dist/transport/binary.d.ts +0 -1
- package/dist/transport/binary.js +0 -1
- package/dist/transport/budget.d.ts +0 -1
- package/dist/transport/budget.js +0 -1
- package/dist/transport/http.d.ts +0 -1
- package/dist/transport/http.js +0 -1
- package/dist/transport/json.d.ts +0 -1
- package/dist/transport/json.js +0 -1
- package/dist/transport/upload.d.ts +0 -1
- package/dist/transport/upload.js +0 -1
- package/dist/transport/validation.d.ts +0 -1
- package/dist/transport/validation.js +0 -1
- package/package.json +1 -7
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/cloud/common.d.ts.map +0 -1
- package/dist/cloud/common.js.map +0 -1
- package/dist/cloud/lifecycle.d.ts.map +0 -1
- package/dist/cloud/lifecycle.js.map +0 -1
- package/dist/cloud/media.d.ts.map +0 -1
- package/dist/cloud/media.js.map +0 -1
- package/dist/cloud/outcomes.d.ts.map +0 -1
- package/dist/cloud/outcomes.js.map +0 -1
- package/dist/cloud/post-for-me.d.ts.map +0 -1
- package/dist/cloud/post-for-me.js.map +0 -1
- package/dist/cloud/zernio.d.ts.map +0 -1
- package/dist/cloud/zernio.js.map +0 -1
- package/dist/core/adapter.d.ts.map +0 -1
- package/dist/core/adapter.js.map +0 -1
- package/dist/core/client.d.ts.map +0 -1
- package/dist/core/client.js.map +0 -1
- package/dist/core/concurrency.d.ts.map +0 -1
- package/dist/core/concurrency.js.map +0 -1
- package/dist/core/errors.d.ts.map +0 -1
- package/dist/core/errors.js.map +0 -1
- package/dist/core/idempotency.d.ts.map +0 -1
- package/dist/core/idempotency.js.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/core/pagination.d.ts.map +0 -1
- package/dist/core/pagination.js.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/platforms/bluesky.d.ts.map +0 -1
- package/dist/platforms/bluesky.js.map +0 -1
- package/dist/platforms/instagram.d.ts.map +0 -1
- package/dist/platforms/instagram.js.map +0 -1
- package/dist/platforms/linkedin.d.ts.map +0 -1
- package/dist/platforms/linkedin.js.map +0 -1
- package/dist/platforms/threads.d.ts.map +0 -1
- package/dist/platforms/threads.js.map +0 -1
- package/dist/platforms/tiktok.d.ts.map +0 -1
- package/dist/platforms/tiktok.js.map +0 -1
- package/dist/platforms/x-engagement.d.ts.map +0 -1
- package/dist/platforms/x-engagement.js.map +0 -1
- package/dist/platforms/x.d.ts.map +0 -1
- package/dist/platforms/x.js.map +0 -1
- package/dist/platforms/youtube-upload.d.ts.map +0 -1
- package/dist/platforms/youtube-upload.js.map +0 -1
- package/dist/platforms/youtube.d.ts.map +0 -1
- package/dist/platforms/youtube.js.map +0 -1
- package/dist/server/connections.d.ts.map +0 -1
- package/dist/server/connections.js.map +0 -1
- package/dist/server/credentials.d.ts.map +0 -1
- package/dist/server/credentials.js.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js.map +0 -1
- package/dist/server/oauth.d.ts.map +0 -1
- package/dist/server/oauth.js.map +0 -1
- package/dist/server/webhooks.d.ts.map +0 -1
- package/dist/server/webhooks.js.map +0 -1
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js.map +0 -1
- package/dist/testing.d.ts.map +0 -1
- package/dist/testing.js.map +0 -1
- package/dist/transport/binary.d.ts.map +0 -1
- package/dist/transport/binary.js.map +0 -1
- package/dist/transport/budget.d.ts.map +0 -1
- package/dist/transport/budget.js.map +0 -1
- package/dist/transport/http.d.ts.map +0 -1
- package/dist/transport/http.js.map +0 -1
- package/dist/transport/json.d.ts.map +0 -1
- package/dist/transport/json.js.map +0 -1
- package/dist/transport/upload.d.ts.map +0 -1
- package/dist/transport/upload.js.map +0 -1
- package/dist/transport/validation.d.ts.map +0 -1
- package/dist/transport/validation.js.map +0 -1
package/dist/cli.d.ts
CHANGED
package/dist/cli.js
CHANGED
package/dist/cloud/common.d.ts
CHANGED
|
@@ -23,4 +23,3 @@ export declare function uploadManagedMedia(item: MediaAttachment, presign: (body
|
|
|
23
23
|
}): Promise<string>;
|
|
24
24
|
export declare function accountMatches(ref: Pick<ConnectedAccountRef, "backend" | "platform" | "accountId">, context: AdapterOperationContext): void;
|
|
25
25
|
export declare function publicFields(value: unknown, fields: readonly string[]): JsonObject;
|
|
26
|
-
//# sourceMappingURL=common.d.ts.map
|
package/dist/cloud/common.js
CHANGED
package/dist/cloud/lifecycle.js
CHANGED
package/dist/cloud/media.d.ts
CHANGED
|
@@ -21,4 +21,3 @@ export declare function managedMedia(provider: "zernio" | "post-for-me", options
|
|
|
21
21
|
resolve: (item: MediaAttachment, account: ConnectedAccountRef, context: AdapterOperationContext) => Promise<string>;
|
|
22
22
|
upload(item: MediaAttachment, account: ConnectedAccountRef, context: AdapterOperationContext): Promise<MediaRef>;
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=media.d.ts.map
|
package/dist/cloud/media.js
CHANGED
package/dist/cloud/outcomes.d.ts
CHANGED
|
@@ -7,4 +7,3 @@ export interface OutcomeContext {
|
|
|
7
7
|
/** Never infer destination success from the aggregate HTTP/parent status. */
|
|
8
8
|
export declare function zernioOutcome(value: unknown, context: OutcomeContext): DeliveryOutcome;
|
|
9
9
|
export declare function postForMeOutcome(parentValue: unknown, resultsValue: unknown | undefined, context: OutcomeContext): DeliveryOutcome;
|
|
10
|
-
//# sourceMappingURL=outcomes.d.ts.map
|
package/dist/cloud/outcomes.js
CHANGED
package/dist/cloud/zernio.d.ts
CHANGED
package/dist/cloud/zernio.js
CHANGED
package/dist/core/adapter.d.ts
CHANGED
package/dist/core/adapter.js
CHANGED
package/dist/core/client.d.ts
CHANGED
|
@@ -139,4 +139,3 @@ export declare function createSocial<A extends SocialAdapter<unknown>>(config: S
|
|
|
139
139
|
readonly default: A;
|
|
140
140
|
}>;
|
|
141
141
|
export declare function createSocial<const B extends BackendRegistry>(config: MultiBackendConfig<B>): SocialClient<B>;
|
|
142
|
-
//# sourceMappingURL=client.d.ts.map
|
package/dist/core/client.js
CHANGED
|
@@ -7,4 +7,3 @@ type Work<T> = () => Promise<T>;
|
|
|
7
7
|
/** A client-owned FIFO budget for one backend instance. */
|
|
8
8
|
export declare function createConcurrencyLimiter(options: ConcurrencyLimiterOptions): <T>(signal: AbortSignal | undefined, operation: string, work: Work<T>) => Promise<T>;
|
|
9
9
|
export {};
|
|
10
|
-
//# sourceMappingURL=concurrency.d.ts.map
|
package/dist/core/concurrency.js
CHANGED
package/dist/core/errors.d.ts
CHANGED
package/dist/core/errors.js
CHANGED
package/dist/core/idempotency.js
CHANGED
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.js
CHANGED
|
@@ -9,4 +9,3 @@ export declare function iterateItems<T>(read: (cursor?: string) => Promise<Page<
|
|
|
9
9
|
/** Cursors bind navigation to its query scope; they are never authorization grants. */
|
|
10
10
|
export declare function encodeCursor(scope: string, value: string): string;
|
|
11
11
|
export declare function decodeCursor(scope: string, cursor: string): string;
|
|
12
|
-
//# sourceMappingURL=pagination.d.ts.map
|
package/dist/core/pagination.js
CHANGED
package/dist/core/types.d.ts
CHANGED
|
@@ -394,4 +394,3 @@ export interface AdapterOperationContext extends OperationContext {
|
|
|
394
394
|
}
|
|
395
395
|
export type OperationName = "posts.publish" | "accounts.read" | "profiles.read" | "graph.read" | "graph.follow" | "graph.unfollow" | "graph.block" | "graph.unblock" | "graph.mute" | "graph.unmute" | "posts.read" | "search.posts" | "analytics.read" | "analytics.account.read" | "analytics.report.read" | "comments.read" | "comments.write" | "messages.read" | "messages.write" | "notifications.read" | "notifications.seen" | "posts.cancelScheduled" | "posts.deleteBackendRecord" | "posts.removeFromPlatform" | "webhooks.verify" | "native";
|
|
396
396
|
export {};
|
|
397
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/core/types.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/platforms/tiktok.js
CHANGED
|
@@ -14,4 +14,3 @@ export interface XEngagementResult {
|
|
|
14
14
|
export declare function xLike(tweetId: string, account: ConnectedAccountRef, options: XEngagementOptions, context: AdapterOperationContext): Promise<XEngagementResult>;
|
|
15
15
|
/** Deletes only the authenticated user's like; it does not delete the target post. */
|
|
16
16
|
export declare function xUnlike(tweetId: string, account: ConnectedAccountRef, options: XEngagementOptions, context: AdapterOperationContext): Promise<XEngagementResult>;
|
|
17
|
-
//# sourceMappingURL=x-engagement.d.ts.map
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { xTopLevelDomains } from "./x-tlds.js";
|
|
2
|
+
// X counts post length with weighted characters, following the v3 rules published in twitter-text:
|
|
3
|
+
// most Latin-range code points weigh 1, everything else weighs 2, each emoji weighs 2 and each URL
|
|
4
|
+
// weighs 23. Everything is scaled by 100 so the arithmetic stays in integers like the reference config.
|
|
5
|
+
const maxWeightedLength = 280 * 100;
|
|
6
|
+
const defaultWeight = 200;
|
|
7
|
+
const urlWeight = 23 * 100;
|
|
8
|
+
// X leaves links longer than this, counting the protocol twice as twitter-text does, as plain text.
|
|
9
|
+
const maxUrlLength = 4096;
|
|
10
|
+
const maxShortLinkSlug = 40;
|
|
11
|
+
const lightRanges = [
|
|
12
|
+
[0, 4351],
|
|
13
|
+
[8192, 8205],
|
|
14
|
+
[8208, 8223],
|
|
15
|
+
[8242, 8247],
|
|
16
|
+
];
|
|
17
|
+
const invalidCharacters = /[\uFFFE\uFEFF\uFFFF]/u;
|
|
18
|
+
const emoji = /\p{Emoji_Presentation}|\p{Extended_Pictographic}\uFE0F|\p{Emoji_Modifier}|\p{Regional_Indicator}{2}|[#*0-9]\uFE0F?\u20E3/u;
|
|
19
|
+
const latinAccents = "\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u00FF\\u0100-\\u024F\\u0253\\u0254\\u0256\\u0257\\u0259\\u025B\\u0263\\u0268\\u026F\\u0272\\u0289\\u028B\\u02BB\\u0300-\\u036F\\u1E00-\\u1EFF";
|
|
20
|
+
const cyrillic = "\\u0400-\\u04FF";
|
|
21
|
+
// Hosts may use any character except ASCII punctuation, spaces, invalid characters, and directional markers.
|
|
22
|
+
const domainCharacter = "[^\\s!\"#$%&'()*+,\\-./:;<=>?@\\[\\\\\\]^_`{|}~\\uFFFE\\uFEFF\\uFFFF\\u202A-\\u202E\\u061C\\u200E\\u200F\\u2066-\\u2069]";
|
|
23
|
+
// Path characters, with up to two levels of balanced parentheses as in Wikipedia links.
|
|
24
|
+
const pathCharacter = `[a-z0-9!*';:=+,.$/%#\\[\\]\\-\\u2013_~@|&${latinAccents}${cyrillic}]`;
|
|
25
|
+
const url = new RegExp(
|
|
26
|
+
// A link without a protocol starts at the beginning of a host, which also keeps matching linear.
|
|
27
|
+
`(?:(?<![a-z0-9@\\uFF20$#\\uFF03])(https?://)|(?<![a-z0-9@\\uFF20$#\\uFF03._/-]|${domainCharacter}))` +
|
|
28
|
+
`((?:${domainCharacter}(?:[_-]|${domainCharacter})*\\.)*` +
|
|
29
|
+
`(?:${domainCharacter}(?:-|${domainCharacter})*)?${domainCharacter}\\.` +
|
|
30
|
+
`(?:${xTopLevelDomains.replaceAll(" ", "|")}|xn--[a-z0-9-]+)(?![a-z0-9@+-]))` +
|
|
31
|
+
"(?::[0-9]+)?" +
|
|
32
|
+
`(/(?:${pathCharacter}|\\((?:${pathCharacter}|\\(${pathCharacter}*\\))*\\))*)?` +
|
|
33
|
+
"(\\?[a-z0-9!?*'@();:&=+$/%#\\[\\]\\-_.,~|]*)?", "giu");
|
|
34
|
+
const pathEnding = new RegExp(`[+\\-a-z0-9=_#/)${latinAccents}${cyrillic}]$`, "iu");
|
|
35
|
+
const queryEnding = /[a-z0-9\-_&=#/]$/iu;
|
|
36
|
+
// Links without a protocol only cover the ASCII and Latin part of the host.
|
|
37
|
+
const bareHostCharacter = new RegExp(`[a-z0-9.\\-${latinAccents}]`, "iu");
|
|
38
|
+
const bareHost = new RegExp(`^[a-z0-9\\-${latinAccents}]+\\.`, "iu");
|
|
39
|
+
let graphemes;
|
|
40
|
+
function weighText(text) {
|
|
41
|
+
graphemes ??= new Intl.Segmenter(undefined, { granularity: "grapheme" });
|
|
42
|
+
let weight = 0;
|
|
43
|
+
for (const { segment } of graphemes.segment(text)) {
|
|
44
|
+
if (emoji.test(segment)) {
|
|
45
|
+
weight += defaultWeight;
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
for (const character of segment) {
|
|
49
|
+
const codePoint = character.codePointAt(0) ?? 0;
|
|
50
|
+
weight += lightRanges.some(([start, end]) => codePoint >= start && codePoint <= end)
|
|
51
|
+
? 100
|
|
52
|
+
: defaultWeight;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return weight;
|
|
56
|
+
}
|
|
57
|
+
// Drops the characters X leaves out of a link tail, such as a closing period.
|
|
58
|
+
function trimTail(tail, ending) {
|
|
59
|
+
let trimmed = tail;
|
|
60
|
+
while (trimmed.length > 1 && !ending.test(trimmed))
|
|
61
|
+
trimmed = trimmed.slice(0, -1);
|
|
62
|
+
return ending.test(trimmed) ? trimmed : "";
|
|
63
|
+
}
|
|
64
|
+
function linkLength(match) {
|
|
65
|
+
const [whole, , , path, query] = match;
|
|
66
|
+
// X shortens t.co links to their slug, so a longer path is ordinary text.
|
|
67
|
+
const shortLink = /^https?:\/\/t\.co\/([a-z0-9]+)/iu.exec(whole);
|
|
68
|
+
// X leaves t.co links with slugs longer than 40 characters as plain text.
|
|
69
|
+
if (shortLink !== null && (shortLink[1] ?? "").length > maxShortLinkSlug)
|
|
70
|
+
return 0;
|
|
71
|
+
if (shortLink !== null && query === undefined)
|
|
72
|
+
return shortLink[0].length;
|
|
73
|
+
if (query !== undefined)
|
|
74
|
+
return whole.length - query.length + trimTail(query, queryEnding).length;
|
|
75
|
+
if (path !== undefined)
|
|
76
|
+
return whole.length - path.length + trimTail(path, pathEnding).length;
|
|
77
|
+
return whole.length;
|
|
78
|
+
}
|
|
79
|
+
// Returns the host in ASCII form, or undefined when it is not a valid internationalized name.
|
|
80
|
+
function asciiHost(host) {
|
|
81
|
+
try {
|
|
82
|
+
return new URL(`https://${host}`).hostname;
|
|
83
|
+
}
|
|
84
|
+
catch {
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function weightedLength(text) {
|
|
89
|
+
let weight = 0;
|
|
90
|
+
let offset = 0;
|
|
91
|
+
for (const match of text.matchAll(url)) {
|
|
92
|
+
const protocol = match[1];
|
|
93
|
+
const host = match[2] ?? "";
|
|
94
|
+
const length = linkLength(match);
|
|
95
|
+
const ascii = asciiHost(host);
|
|
96
|
+
if (length === 0 || ascii === undefined)
|
|
97
|
+
continue;
|
|
98
|
+
if ((protocol ?? "https://").length + length + ascii.length - host.length > maxUrlLength)
|
|
99
|
+
continue;
|
|
100
|
+
let start = match.index;
|
|
101
|
+
if (protocol === undefined) {
|
|
102
|
+
// Links without a protocol must not continue a word, path, or file name.
|
|
103
|
+
if (/[-_./]$/u.test(text.slice(0, start)))
|
|
104
|
+
continue;
|
|
105
|
+
let cut = host.length;
|
|
106
|
+
while (cut > 0 && bareHostCharacter.test(host[cut - 1] ?? ""))
|
|
107
|
+
cut -= 1;
|
|
108
|
+
if (!bareHost.test(host.slice(cut)))
|
|
109
|
+
continue;
|
|
110
|
+
start += cut;
|
|
111
|
+
}
|
|
112
|
+
weight += weighText(text.slice(offset, start)) + urlWeight;
|
|
113
|
+
offset = match.index + length;
|
|
114
|
+
}
|
|
115
|
+
return weight + weighText(text.slice(offset));
|
|
116
|
+
}
|
|
117
|
+
/** Returns whether X would accept the text as a post body by weighted length and characters. */
|
|
118
|
+
export function isValidXText(input) {
|
|
119
|
+
const text = input.normalize("NFC");
|
|
120
|
+
if (text === "" || invalidCharacters.test(text))
|
|
121
|
+
return false;
|
|
122
|
+
return weightedLength(text) <= maxWeightedLength;
|
|
123
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const xTopLevelDomains = "\uC0BC\uC131 \uB2F7\uCEF4 \uB2F7\uB137 \u9999\u683C\u91CC\u62C9 \u9910\u5385 \u98DF\u54C1 \u98DE\u5229\u6D66 \u96FB\u8A0A\u76C8\u79D1 \u96C6\u56E2 \u901A\u8CA9 \u8D2D\u7269 \u8C37\u6B4C \u8BFA\u57FA\u4E9A \u8054\u901A \u7F51\u7EDC \u7F51\u7AD9 \u7F51\u5E97 \u7F51\u5740 \u7EC4\u7EC7\u673A\u6784 \u79FB\u52A8 \u73E0\u5B9D \u70B9\u770B \u6E38\u620F \u6DE1\u9A6C\u9521 \u673A\u6784 \u66F8\u7C4D \u65F6\u5C1A \u65B0\u95FB \u653F\u5E9C \u653F\u52A1 \u62DB\u8058 \u624B\u8868 \u624B\u673A \u6211\u7231\u4F60 \u6148\u5584 \u5FAE\u535A \u5E7F\u4E1C \u5DE5\u884C \u5BB6\u96FB \u5A31\u4E50 \u5929\u4E3B\u6559 \u5927\u62FF \u5927\u4F17\u6C7D\u8F66 \u5728\u7EBF \u5609\u91CC\u5927\u9152\u5E97 \u5609\u91CC \u5546\u6807 \u5546\u5E97 \u5546\u57CE \u516C\u76CA \u516C\u53F8 \u516B\u5366 \u5065\u5EB7 \u4FE1\u606F \u4F5B\u5C71 \u4F01\u4E1A \u4E2D\u6587\u7F51 \u4E2D\u4FE1 \u4E16\u754C \u30DD\u30A4\u30F3\u30C8 \u30D5\u30A1\u30C3\u30B7\u30E7\u30F3 \u30BB\u30FC\u30EB \u30B9\u30C8\u30A2 \u30B3\u30E0 \u30B0\u30FC\u30B0\u30EB \u30AF\u30E9\u30A6\u30C9 \u307F\u3093\u306A \u0E04\u0E2D\u0E21 \u0938\u0902\u0917\u0920\u0928 \u0928\u0947\u091F \u0915\u0949\u092E \u0647\u0645\u0631\u0627\u0647 \u0645\u0648\u0642\u0639 \u0645\u0648\u0628\u0627\u064A\u0644\u064A \u0643\u0648\u0645 \u0643\u0627\u062B\u0648\u0644\u064A\u0643 \u0639\u0631\u0628 \u0634\u0628\u0643\u0629 \u0628\u064A\u062A\u0643 \u0628\u0627\u0632\u0627\u0631 \u0627\u0644\u0639\u0644\u064A\u0627\u0646 \u0627\u0631\u0627\u0645\u0643\u0648 \u0627\u062A\u0635\u0627\u0644\u0627\u062A \u0627\u0628\u0648\u0638\u0628\u064A \u05E7\u05D5\u05DD \u0441\u0430\u0439\u0442 \u0440\u0443\u0441 \u043E\u0440\u0433 \u043E\u043D\u043B\u0430\u0439\u043D \u043C\u043E\u0441\u043A\u0432\u0430 \u043A\u043E\u043C \u043A\u0430\u0442\u043E\u043B\u0438\u043A \u0434\u0435\u0442\u0438 zuerich zone zippo zip zero zara zappos yun youtube you yokohama yoga yodobashi yandex yamaxun yahoo yachts xyz xxx xperia xin xihuan xfinity xerox xbox wtf wtc wow world works work woodside wolterskluwer wme winners wine windows win williamhill wiki wien whoswho weir weibo wedding wed website weber webcam weatherchannel weather watches watch warman wanggou wang walter walmart wales vuelos voyage voto voting vote volvo volkswagen vodka vlaanderen vivo viva vistaprint vista vision visa virgin vip vin villas viking vig video viajes vet versicherung verm\u00F6gensberatung verm\u00F6gensberater verisign ventures vegas vanguard vana vacations ups uol uno university unicom uconnect ubs ubank tvs tushu tunes tui tube trv trust travelersinsurance travelers travelchannel travel training trading trade toys toyota town tours total toshiba toray top tools tokyo today tmall tkmaxx tjx tjmaxx tirol tires tips tiffany tienda tickets tiaa theatre theater thd teva tennis temasek telefonica telecity tel technology tech team tdk tci taxi tax tattoo tatar tatamotors target taobao talk taipei tab systems symantec sydney swiss swiftcover swatch suzuki surgery surf support supply supplies sucks style study studio stream store storage stockholm stcgroup stc statoil statefarm statebank starhub star staples stada srt srl spreadbetting spot sport spiegel space soy sony song solutions solar sohu software softbank social soccer sncf smile smart sling skype sky skin ski site singles sina silk shriram showtime show shouji shopping shop shoes shiksha shia shell shaw sharp shangrila sfr sexy sex sew seven ses services sener select seek security secure seat search scot scor scjohnson science schwarz schule school scholarships schmidt schaeffler scb sca sbs sbi saxo save sas sarl sapo sap sanofi sandvikcoromant sandvik samsung samsclub salon sale sakura safety safe saarland ryukyu rwe run ruhr rugby rsvp room rogers rodeo rocks rocher rmit rip rio ril rightathome ricoh richardli rich rexroth reviews review restaurant rest republican report repair rentals rent ren reliance reit reisen reise rehab redumbrella redstone red recipes realty realtor realestate read raid radio racing qvc quest quebec qpon pwc pub prudential pru protection property properties promo progressive prof productions prod pro prime press praxi pramerica post porn politie poker pohl pnc plus plumbing playstation play place pizza pioneer pink ping pin pid pictures pictet pics piaget physio photos photography photo phone philips phd pharmacy pfizer pet pccw pay passagens party parts partners pars paris panerai panasonic pamperedchef page ovh ott otsuka osaka origins orientexpress organic org orange oracle open ooo onyourside online onl ong one omega ollo oldnavy olayangroup olayan okinawa office off observer obi nyc ntt nrw nra nowtv nowruz now norton northwesternmutual nokia nissay nissan ninja nikon nike nico nhk ngo nfl nexus nextdirect next news newholland new neustar network netflix netbank net nec nba navy natura nationwide name nagoya nadex nab mutuelle mutual museum mtr mtpc mtn msd movistar movie mov motorcycles moto moscow mortgage mormon mopar montblanc monster money monash mom moi moe moda mobily mobile mobi mma mls mlb mitsubishi mit mint mini mil microsoft miami metlife merckmsd meo menu men memorial meme melbourne meet media med mckinsey mcdonalds mcd mba mattel maserati marshalls marriott markets marketing market map mango management man makeup maison maif madrid macys luxury luxe lupin lundbeck ltda ltd lplfinancial lpl love lotto lotte london lol loft locus locker loans loan llp llc lixil living live lipsy link linde lincoln limo limited lilly like lighting lifestyle lifeinsurance life lidl liaison lgbt lexus lego legal lefrak leclerc lease lds lawyer law latrobe latino lat lasalle lanxess landrover land lancome lancia lancaster lamer lamborghini ladbrokes lacaixa kyoto kuokgroup kred krd kpn kpmg kosher komatsu koeln kiwi kitchen kindle kinder kim kia kfh kerryproperties kerrylogistics kerryhotels kddi kaufen juniper juegos jprs jpmorgan joy jot joburg jobs jnj jmp jll jlc jio jewelry jetzt jeep jcp jcb java jaguar iwc iveco itv itau istanbul ist ismaili iselect irish ipiranga investments intuit international intel int insure insurance institute ink ing info infiniti industries inc immobilien immo imdb imamat ikano iinet ifm ieee icu ice icbc ibm hyundai hyatt hughes htc hsbc how house hotmail hotels hoteles hot hosting host hospital horse honeywell honda homesense homes homegoods homedepot holiday holdings hockey hkt hiv hitachi hisamitsu hiphop hgtv hermes here helsinki help healthcare health hdfcbank hdfc hbo haus hangout hamburg hair guru guitars guide guge gucci guardian group grocery gripe green gratis graphics grainger gov got gop google goog goodyear goodhands goo golf goldpoint gold godaddy gmx gmo gmbh gmail globo global gle glass glade giving gives gifts gift ggee george genting gent gea gdn gbiz gay garden gap games game gallup gallo gallery gal fyi futbol furniture fund fun fujixerox fujitsu ftr frontier frontdoor frogans frl fresenius free fox foundation forum forsale forex ford football foodnetwork food foo fly flsmidth flowers florist flir flights flickr fitness fit fishing fish firmdale firestone fire financial finance final film fido fidelity fiat ferrero ferrari feedback fedex fast fashion farmers farm fans fan family faith fairwinds fail fage extraspace express exposed expert exchange everbank events eus eurovision etisalat esurance estate esq erni ericsson equipment epson epost enterprises engineering engineer energy emerck email education edu edeka eco eat earth dvr dvag durban dupont duns dunlop duck dubai dtv drive download dot doosan domains doha dog dodge doctor docs dnp diy dish discover discount directory direct digital diet diamonds dhl dev design desi dentist dental democrat delta deloitte dell delivery degree deals dealer deal dds dclk day datsun dating date data dance dad dabur cyou cymru cuisinella csc cruises cruise crs crown cricket creditunion creditcard credit cpa courses coupons coupon country corsica coop cool cookingchannel cooking contractors contact consulting construction condos comsec computer compare company community commbank comcast com cologne college coffee codes coach clubmed club cloud clothing clinique clinic click cleaning claims cityeats city citic citi citadel cisco circle cipriani church chrysler chrome christmas chloe chintai cheap chat chase charity channel chanel cfd cfa cern ceo center ceb cbs cbre cbn cba catholic catering cat casino cash caseih case casa cartier cars careers career care cards caravan car capitalone capital capetown canon cancerresearch camp camera cam calvinklein call cal cafe cab bzh buzz buy business builders build bugatti budapest brussels brother broker broadway bridgestone bradesco box boutique bot boston bostik bosch boots booking book boo bond bom bofa boehringer boats bnpparibas bnl bmw bms blue bloomberg blog blockbuster blanco blackfriday black biz bio bingo bing bike bid bible bharti bet bestbuy best berlin bentley beer beauty beats bcn bcg bbva bbt bbc bayern bauhaus basketball baseball bargains barefoot barclays barclaycard barcelona bar bank band bananarepublic banamex baidu baby azure axa aws avianca autos auto author auspost audio audible audi auction attorney athleta associates asia asda arte art arpa army archi aramco arab aquarelle apple app apartments aol anz anquan android analytics amsterdam amica amfam amex americanfamily americanexpress alstom alsace ally allstate allfinanz alipay alibaba alfaromeo akdn airtel airforce airbus aigo aig agency agakhan africa afl afamilycompany aetna aero aeg adult ads adac actor active aco accountants accountant accenture academy abudhabi abogado able abc abbvie abbott abb abarth aarp aaa onion \uD55C\uAD6D \u9999\u6E2F \u6FB3\u9580 \u65B0\u52A0\u5761 \u53F0\u7063 \u53F0\u6E7E \u4E2D\u570B \u4E2D\u56FD \u10D2\u10D4 \u0EA5\u0EB2\u0EA7 \u0E44\u0E17\u0E22 \u0DBD\u0D82\u0D9A\u0DCF \u0D2D\u0D3E\u0D30\u0D24\u0D02 \u0CAD\u0CBE\u0CB0\u0CA4 \u0C2D\u0C3E\u0C30\u0C24\u0C4D \u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE \u0B2D\u0B3E\u0B30\u0B24 \u0AAD\u0ABE\u0AB0\u0AA4 \u0A2D\u0A3E\u0A30\u0A24 \u09AD\u09BE\u09F0\u09A4 \u09AD\u09BE\u09B0\u09A4 \u09AC\u09BE\u0982\u09B2\u09BE \u092D\u093E\u0930\u094B\u0924 \u092D\u093E\u0930\u0924\u092E\u094D \u092D\u093E\u0930\u0924 \u0680\u0627\u0631\u062A \u067E\u0627\u06A9\u0633\u062A\u0627\u0646 \u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627 \u0645\u0644\u064A\u0633\u064A\u0627 \u0645\u0635\u0631 \u0642\u0637\u0631 \u0641\u0644\u0633\u0637\u064A\u0646 \u0639\u0645\u0627\u0646 \u0639\u0631\u0627\u0642 \u0633\u0648\u0631\u064A\u0629 \u0633\u0648\u062F\u0627\u0646 \u062A\u0648\u0646\u0633 \u0628\u06BE\u0627\u0631\u062A \u0628\u0627\u0631\u062A \u0627\u06CC\u0631\u0627\u0646 \u0627\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0645\u063A\u0631\u0628 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629 \u0627\u0644\u062C\u0632\u0627\u0626\u0631 \u0627\u0644\u0628\u062D\u0631\u064A\u0646 \u0627\u0644\u0627\u0631\u062F\u0646 \u0570\u0561\u0575 \u049B\u0430\u0437 \u0443\u043A\u0440 \u0441\u0440\u0431 \u0440\u0444 \u043C\u043E\u043D \u043C\u043A\u0434 \u0435\u044E \u0431\u0435\u043B \u0431\u0433 \u03B5\u03C5 \u03B5\u03BB zw zm za yt ye ws wf vu vn vi vg ve vc va uz uy us um uk ug ua tz tw tv tt tr tp to tn tm tl tk tj th tg tf td tc sz sy sx sv su st ss sr so sn sm sl sk sj si sh sg se sd sc sb sa rw ru rs ro re qa py pw pt ps pr pn pm pl pk ph pg pf pe pa om nz nu nr np no nl ni ng nf ne nc na mz my mx mw mv mu mt ms mr mq mp mo mn mm ml mk mh mg mf me md mc ma ly lv lu lt ls lr lk li lc lb la kz ky kw kr kp kn km ki kh kg ke jp jo jm je it is ir iq io in im il ie id hu ht hr hn hm hk gy gw gu gt gs gr gq gp gn gm gl gi gh gg gf ge gd gb ga fr fo fm fk fj fi eu et es er eh eg ee ec dz do dm dk dj de cz cy cx cw cv cu cr co cn cm cl ck ci ch cg cf cd cc ca bz by bw bv bt bs br bq bo bn bm bl bj bi bh bg bf be bd bb ba az ax aw au at as ar aq ao an am al ai ag af ae ad ac";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// Top-level domains that X links, from the lists bundled in twitter-text v3.1.0.
|
|
2
|
+
export const xTopLevelDomains = "삼성 닷컴 닷넷 香格里拉 餐厅 食品 飞利浦 電訊盈科 集团 通販 购物 谷歌 诺基亚 联通 网络 网站 网店 网址 组织机构 移动 珠宝 点看 游戏 淡马锡 机构 書籍 时尚 新闻 政府 政务 招聘 手表 手机 我爱你 慈善 微博 广东 工行 家電 娱乐 天主教 大拿 大众汽车 在线 嘉里大酒店 嘉里 商标 商店 商城 公益 公司 八卦 健康 信息 佛山 企业 中文网 中信 世界 ポイント ファッション セール ストア コム グーグル クラウド みんな คอม संगठन नेट कॉम همراه موقع موبايلي كوم كاثوليك عرب شبكة بيتك بازار العليان ارامكو اتصالات ابوظبي קום сайт рус орг онлайн москва ком католик дети zuerich zone zippo zip zero zara zappos yun youtube you yokohama yoga yodobashi yandex yamaxun yahoo yachts xyz xxx xperia xin xihuan xfinity xerox xbox wtf wtc wow world works work woodside wolterskluwer wme winners wine windows win williamhill wiki wien whoswho weir weibo wedding wed website weber webcam weatherchannel weather watches watch warman wanggou wang walter walmart wales vuelos voyage voto voting vote volvo volkswagen vodka vlaanderen vivo viva vistaprint vista vision visa virgin vip vin villas viking vig video viajes vet versicherung vermögensberatung vermögensberater verisign ventures vegas vanguard vana vacations ups uol uno university unicom uconnect ubs ubank tvs tushu tunes tui tube trv trust travelersinsurance travelers travelchannel travel training trading trade toys toyota town tours total toshiba toray top tools tokyo today tmall tkmaxx tjx tjmaxx tirol tires tips tiffany tienda tickets tiaa theatre theater thd teva tennis temasek telefonica telecity tel technology tech team tdk tci taxi tax tattoo tatar tatamotors target taobao talk taipei tab systems symantec sydney swiss swiftcover swatch suzuki surgery surf support supply supplies sucks style study studio stream store storage stockholm stcgroup stc statoil statefarm statebank starhub star staples stada srt srl spreadbetting spot sport spiegel space soy sony song solutions solar sohu software softbank social soccer sncf smile smart sling skype sky skin ski site singles sina silk shriram showtime show shouji shopping shop shoes shiksha shia shell shaw sharp shangrila sfr sexy sex sew seven ses services sener select seek security secure seat search scot scor scjohnson science schwarz schule school scholarships schmidt schaeffler scb sca sbs sbi saxo save sas sarl sapo sap sanofi sandvikcoromant sandvik samsung samsclub salon sale sakura safety safe saarland ryukyu rwe run ruhr rugby rsvp room rogers rodeo rocks rocher rmit rip rio ril rightathome ricoh richardli rich rexroth reviews review restaurant rest republican report repair rentals rent ren reliance reit reisen reise rehab redumbrella redstone red recipes realty realtor realestate read raid radio racing qvc quest quebec qpon pwc pub prudential pru protection property properties promo progressive prof productions prod pro prime press praxi pramerica post porn politie poker pohl pnc plus plumbing playstation play place pizza pioneer pink ping pin pid pictures pictet pics piaget physio photos photography photo phone philips phd pharmacy pfizer pet pccw pay passagens party parts partners pars paris panerai panasonic pamperedchef page ovh ott otsuka osaka origins orientexpress organic org orange oracle open ooo onyourside online onl ong one omega ollo oldnavy olayangroup olayan okinawa office off observer obi nyc ntt nrw nra nowtv nowruz now norton northwesternmutual nokia nissay nissan ninja nikon nike nico nhk ngo nfl nexus nextdirect next news newholland new neustar network netflix netbank net nec nba navy natura nationwide name nagoya nadex nab mutuelle mutual museum mtr mtpc mtn msd movistar movie mov motorcycles moto moscow mortgage mormon mopar montblanc monster money monash mom moi moe moda mobily mobile mobi mma mls mlb mitsubishi mit mint mini mil microsoft miami metlife merckmsd meo menu men memorial meme melbourne meet media med mckinsey mcdonalds mcd mba mattel maserati marshalls marriott markets marketing market map mango management man makeup maison maif madrid macys luxury luxe lupin lundbeck ltda ltd lplfinancial lpl love lotto lotte london lol loft locus locker loans loan llp llc lixil living live lipsy link linde lincoln limo limited lilly like lighting lifestyle lifeinsurance life lidl liaison lgbt lexus lego legal lefrak leclerc lease lds lawyer law latrobe latino lat lasalle lanxess landrover land lancome lancia lancaster lamer lamborghini ladbrokes lacaixa kyoto kuokgroup kred krd kpn kpmg kosher komatsu koeln kiwi kitchen kindle kinder kim kia kfh kerryproperties kerrylogistics kerryhotels kddi kaufen juniper juegos jprs jpmorgan joy jot joburg jobs jnj jmp jll jlc jio jewelry jetzt jeep jcp jcb java jaguar iwc iveco itv itau istanbul ist ismaili iselect irish ipiranga investments intuit international intel int insure insurance institute ink ing info infiniti industries inc immobilien immo imdb imamat ikano iinet ifm ieee icu ice icbc ibm hyundai hyatt hughes htc hsbc how house hotmail hotels hoteles hot hosting host hospital horse honeywell honda homesense homes homegoods homedepot holiday holdings hockey hkt hiv hitachi hisamitsu hiphop hgtv hermes here helsinki help healthcare health hdfcbank hdfc hbo haus hangout hamburg hair guru guitars guide guge gucci guardian group grocery gripe green gratis graphics grainger gov got gop google goog goodyear goodhands goo golf goldpoint gold godaddy gmx gmo gmbh gmail globo global gle glass glade giving gives gifts gift ggee george genting gent gea gdn gbiz gay garden gap games game gallup gallo gallery gal fyi futbol furniture fund fun fujixerox fujitsu ftr frontier frontdoor frogans frl fresenius free fox foundation forum forsale forex ford football foodnetwork food foo fly flsmidth flowers florist flir flights flickr fitness fit fishing fish firmdale firestone fire financial finance final film fido fidelity fiat ferrero ferrari feedback fedex fast fashion farmers farm fans fan family faith fairwinds fail fage extraspace express exposed expert exchange everbank events eus eurovision etisalat esurance estate esq erni ericsson equipment epson epost enterprises engineering engineer energy emerck email education edu edeka eco eat earth dvr dvag durban dupont duns dunlop duck dubai dtv drive download dot doosan domains doha dog dodge doctor docs dnp diy dish discover discount directory direct digital diet diamonds dhl dev design desi dentist dental democrat delta deloitte dell delivery degree deals dealer deal dds dclk day datsun dating date data dance dad dabur cyou cymru cuisinella csc cruises cruise crs crown cricket creditunion creditcard credit cpa courses coupons coupon country corsica coop cool cookingchannel cooking contractors contact consulting construction condos comsec computer compare company community commbank comcast com cologne college coffee codes coach clubmed club cloud clothing clinique clinic click cleaning claims cityeats city citic citi citadel cisco circle cipriani church chrysler chrome christmas chloe chintai cheap chat chase charity channel chanel cfd cfa cern ceo center ceb cbs cbre cbn cba catholic catering cat casino cash caseih case casa cartier cars careers career care cards caravan car capitalone capital capetown canon cancerresearch camp camera cam calvinklein call cal cafe cab bzh buzz buy business builders build bugatti budapest brussels brother broker broadway bridgestone bradesco box boutique bot boston bostik bosch boots booking book boo bond bom bofa boehringer boats bnpparibas bnl bmw bms blue bloomberg blog blockbuster blanco blackfriday black biz bio bingo bing bike bid bible bharti bet bestbuy best berlin bentley beer beauty beats bcn bcg bbva bbt bbc bayern bauhaus basketball baseball bargains barefoot barclays barclaycard barcelona bar bank band bananarepublic banamex baidu baby azure axa aws avianca autos auto author auspost audio audible audi auction attorney athleta associates asia asda arte art arpa army archi aramco arab aquarelle apple app apartments aol anz anquan android analytics amsterdam amica amfam amex americanfamily americanexpress alstom alsace ally allstate allfinanz alipay alibaba alfaromeo akdn airtel airforce airbus aigo aig agency agakhan africa afl afamilycompany aetna aero aeg adult ads adac actor active aco accountants accountant accenture academy abudhabi abogado able abc abbvie abbott abb abarth aarp aaa onion 한국 香港 澳門 新加坡 台灣 台湾 中國 中国 გე ລາວ ไทย ලංකා ഭാരതം ಭಾರತ భారత్ சிங்கப்பூர் இலங்கை இந்தியா ଭାରତ ભારત ਭਾਰਤ ভাৰত ভারত বাংলা भारोत भारतम् भारत ڀارت پاکستان موريتانيا مليسيا مصر قطر فلسطين عمان عراق سورية سودان تونس بھارت بارت ایران امارات المغرب السعودية الجزائر البحرين الاردن հայ қаз укр срб рф мон мкд ею бел бг ευ ελ zw zm za yt ye ws wf vu vn vi vg ve vc va uz uy us um uk ug ua tz tw tv tt tr tp to tn tm tl tk tj th tg tf td tc sz sy sx sv su st ss sr so sn sm sl sk sj si sh sg se sd sc sb sa rw ru rs ro re qa py pw pt ps pr pn pm pl pk ph pg pf pe pa om nz nu nr np no nl ni ng nf ne nc na mz my mx mw mv mu mt ms mr mq mp mo mn mm ml mk mh mg mf me md mc ma ly lv lu lt ls lr lk li lc lb la kz ky kw kr kp kn km ki kh kg ke jp jo jm je it is ir iq io in im il ie id hu ht hr hn hm hk gy gw gu gt gs gr gq gp gn gm gl gi gh gg gf ge gd gb ga fr fo fm fk fj fi eu et es er eh eg ee ec dz do dm dk dj de cz cy cx cw cv cu cr co cn cm cl ck ci ch cg cf cd cc ca bz by bw bv bt bs br bq bo bn bm bl bj bi bh bg bf be bd bb ba az ax aw au at as ar aq ao an am al ai ag af ae ad ac";
|
package/dist/platforms/x.d.ts
CHANGED
|
@@ -23,6 +23,9 @@ export interface XSearchInput extends SearchPostsInput {
|
|
|
23
23
|
readonly userFields?: readonly XUserField[];
|
|
24
24
|
readonly mediaFields?: readonly XMediaField[];
|
|
25
25
|
}
|
|
26
|
+
export interface XUploadedMedia {
|
|
27
|
+
readonly mediaId: string;
|
|
28
|
+
}
|
|
26
29
|
export interface XNative {
|
|
27
30
|
readonly searchRecentPosts: (input: {
|
|
28
31
|
readonly account: ConnectedAccountRef;
|
|
@@ -51,6 +54,18 @@ export interface XNative {
|
|
|
51
54
|
readonly postId: string;
|
|
52
55
|
readonly context: AdapterOperationContext;
|
|
53
56
|
}) => Promise<void>;
|
|
57
|
+
/** Uploads one MP4 Blob (up to 512 MiB) and waits for processing. Returns an attachable media ID. */
|
|
58
|
+
readonly uploadVideo: (input: {
|
|
59
|
+
readonly account: ConnectedAccountRef;
|
|
60
|
+
readonly video: Blob;
|
|
61
|
+
readonly context: AdapterOperationContext;
|
|
62
|
+
}) => Promise<XUploadedMedia>;
|
|
63
|
+
/** Uploads one GIF Blob (up to 15 MiB) and waits for processing. Returns an attachable media ID. */
|
|
64
|
+
readonly uploadGif: (input: {
|
|
65
|
+
readonly account: ConnectedAccountRef;
|
|
66
|
+
readonly gif: Blob;
|
|
67
|
+
readonly context: AdapterOperationContext;
|
|
68
|
+
}) => Promise<XUploadedMedia>;
|
|
54
69
|
readonly createPoll: (input: {
|
|
55
70
|
readonly account: ConnectedAccountRef;
|
|
56
71
|
readonly text: string;
|
|
@@ -297,4 +312,3 @@ export interface XNative {
|
|
|
297
312
|
}) => Promise<void>;
|
|
298
313
|
}
|
|
299
314
|
export declare function x(options: XOptions): import("../core/adapter.js").SocialAdapter<XNative>;
|
|
300
|
-
//# sourceMappingURL=x.d.ts.map
|