x-twitter-scraper 0.6.1 → 0.7.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/package.json +1 -1
  3. package/resources/compose.d.mts +23 -4
  4. package/resources/compose.d.mts.map +1 -1
  5. package/resources/compose.d.ts +23 -4
  6. package/resources/compose.d.ts.map +1 -1
  7. package/resources/compose.js +4 -4
  8. package/resources/compose.mjs +4 -4
  9. package/resources/radar.d.mts +72 -5
  10. package/resources/radar.d.mts.map +1 -1
  11. package/resources/radar.d.ts +72 -5
  12. package/resources/radar.d.ts.map +1 -1
  13. package/resources/x/account-connection-attempts.d.mts +70 -0
  14. package/resources/x/account-connection-attempts.d.mts.map +1 -0
  15. package/resources/x/account-connection-attempts.d.ts +70 -0
  16. package/resources/x/account-connection-attempts.d.ts.map +1 -0
  17. package/resources/x/account-connection-attempts.js +27 -0
  18. package/resources/x/account-connection-attempts.js.map +1 -0
  19. package/resources/x/account-connection-attempts.mjs +23 -0
  20. package/resources/x/account-connection-attempts.mjs.map +1 -0
  21. package/resources/x/accounts.d.mts +12 -22
  22. package/resources/x/accounts.d.mts.map +1 -1
  23. package/resources/x/accounts.d.ts +12 -22
  24. package/resources/x/accounts.d.ts.map +1 -1
  25. package/resources/x/accounts.js +1 -1
  26. package/resources/x/accounts.mjs +1 -1
  27. package/resources/x/index.d.mts +1 -0
  28. package/resources/x/index.d.mts.map +1 -1
  29. package/resources/x/index.d.ts +1 -0
  30. package/resources/x/index.d.ts.map +1 -1
  31. package/resources/x/index.js +3 -1
  32. package/resources/x/index.js.map +1 -1
  33. package/resources/x/index.mjs +1 -0
  34. package/resources/x/index.mjs.map +1 -1
  35. package/resources/x/x.d.mts +4 -0
  36. package/resources/x/x.d.mts.map +1 -1
  37. package/resources/x/x.d.ts +4 -0
  38. package/resources/x/x.d.ts.map +1 -1
  39. package/resources/x/x.js +4 -0
  40. package/resources/x/x.js.map +1 -1
  41. package/resources/x/x.mjs +4 -0
  42. package/resources/x/x.mjs.map +1 -1
  43. package/src/resources/compose.ts +28 -4
  44. package/src/resources/radar.ts +83 -3
  45. package/src/resources/x/account-connection-attempts.ts +100 -0
  46. package/src/resources/x/accounts.ts +12 -27
  47. package/src/resources/x/index.ts +4 -0
  48. package/src/resources/x/x.ts +13 -0
  49. package/src/version.ts +1 -1
  50. package/version.d.mts +1 -1
  51. package/version.d.ts +1 -1
  52. package/version.js +1 -1
  53. package/version.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0 (2026-07-29)
4
+
5
+ Full Changelog: [v0.6.2...v0.7.0](https://github.com/Xquik-dev/x-twitter-scraper-typescript/compare/v0.6.2...v0.7.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([88d6bd0](https://github.com/Xquik-dev/x-twitter-scraper-typescript/commit/88d6bd0144e12dbe9137181104795e0cd26cb44e))
10
+ * **api:** api update ([8dd7565](https://github.com/Xquik-dev/x-twitter-scraper-typescript/commit/8dd7565b670085b6ad7c09fc6dbcae0352aba9b7))
11
+
12
+ ## 0.6.2 (2026-07-24)
13
+
14
+ Full Changelog: [v0.6.1...v0.6.2](https://github.com/Xquik-dev/x-twitter-scraper-typescript/compare/v0.6.1...v0.6.2)
15
+
3
16
  ## 0.6.1 (2026-07-24)
4
17
 
5
18
  Full Changelog: [v0.6.0...v0.6.1](https://github.com/Xquik-dev/x-twitter-scraper-typescript/compare/v0.6.0...v0.6.1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-twitter-scraper",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "Xquik TypeScript SDK & agent Skills for X/Twitter data, automation, MCP & webhooks. Not affiliated with X Corp.",
5
5
  "author": "Xquik <support@xquik.com>",
6
6
  "types": "./index.d.ts",
@@ -6,10 +6,10 @@ import { RequestOptions } from "../internal/request-options.mjs";
6
6
  */
7
7
  export declare class Compose extends APIResource {
8
8
  /**
9
- * Run one step of Xquik's three-step writing workflow. Compose returns questions
10
- * and editorial rules. Refine returns goal-specific guidance. Score applies
11
- * deterministic text checks. It does not predict reach or expose X ranking
12
- * weights.
9
+ * Run one step of Xquik's three-step writing workflow. Compose returns questions,
10
+ * editorial rules, and source-specific Radar recommendations. Refine returns
11
+ * goal-specific guidance. Score applies deterministic text checks. It does not
12
+ * predict reach or expose X ranking weights.
13
13
  *
14
14
  * @example
15
15
  * ```ts
@@ -43,6 +43,10 @@ export declare namespace ComposeCreateResponse {
43
43
  */
44
44
  intentUrl: string;
45
45
  nextStep: string;
46
+ /**
47
+ * Sources and guidance for researching a fresh post angle.
48
+ */
49
+ radarRecommendations: Array<ComposePrepareResult.RadarRecommendation>;
46
50
  /**
47
51
  * Published signal names with unpublished weights as null.
48
52
  */
@@ -79,6 +83,21 @@ export declare namespace ComposeCreateResponse {
79
83
  action: string;
80
84
  multiplier: 'Production weight not published by X';
81
85
  }
86
+ interface RadarRecommendation {
87
+ /**
88
+ * Radar endpoint for this source.
89
+ */
90
+ endpoint: string;
91
+ /**
92
+ * Source-specific drafting guidance.
93
+ */
94
+ guidance: string;
95
+ source: 'reddit' | 'github' | 'trustmrr' | 'hacker_news' | 'google_trends' | 'wikipedia' | 'polymarket';
96
+ /**
97
+ * Current-topic research this source supports.
98
+ */
99
+ useFor: string;
100
+ }
82
101
  interface ScorerWeight {
83
102
  /**
84
103
  * Signal direction and publication limit.
@@ -1 +1 @@
1
- {"version":3,"file":"compose.d.mts","sourceRoot":"","sources":["../src/resources/compose.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CA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B;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -6,10 +6,10 @@ import { RequestOptions } from "../internal/request-options.js";
6
6
  */
7
7
  export declare class Compose extends APIResource {
8
8
  /**
9
- * Run one step of Xquik's three-step writing workflow. Compose returns questions
10
- * and editorial rules. Refine returns goal-specific guidance. Score applies
11
- * deterministic text checks. It does not predict reach or expose X ranking
12
- * weights.
9
+ * Run one step of Xquik's three-step writing workflow. Compose returns questions,
10
+ * editorial rules, and source-specific Radar recommendations. Refine returns
11
+ * goal-specific guidance. Score applies deterministic text checks. It does not
12
+ * predict reach or expose X ranking weights.
13
13
  *
14
14
  * @example
15
15
  * ```ts
@@ -43,6 +43,10 @@ export declare namespace ComposeCreateResponse {
43
43
  */
44
44
  intentUrl: string;
45
45
  nextStep: string;
46
+ /**
47
+ * Sources and guidance for researching a fresh post angle.
48
+ */
49
+ radarRecommendations: Array<ComposePrepareResult.RadarRecommendation>;
46
50
  /**
47
51
  * Published signal names with unpublished weights as null.
48
52
  */
@@ -79,6 +83,21 @@ export declare namespace ComposeCreateResponse {
79
83
  action: string;
80
84
  multiplier: 'Production weight not published by X';
81
85
  }
86
+ interface RadarRecommendation {
87
+ /**
88
+ * Radar endpoint for this source.
89
+ */
90
+ endpoint: string;
91
+ /**
92
+ * Source-specific drafting guidance.
93
+ */
94
+ guidance: string;
95
+ source: 'reddit' | 'github' | 'trustmrr' | 'hacker_news' | 'google_trends' | 'wikipedia' | 'polymarket';
96
+ /**
97
+ * Current-topic research this source supports.
98
+ */
99
+ useFor: string;
100
+ }
82
101
  interface ScorerWeight {
83
102
  /**
84
103
  * Signal direction and publication limit.
@@ -1 +1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CAAC;QAEtB;;WAEG;QACH,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;QAEvC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;IAED,UAAiB,mBAAmB;QAClC;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;QAEnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -11,10 +11,10 @@ const resource_1 = require("../core/resource.js");
11
11
  */
12
12
  class Compose extends resource_1.APIResource {
13
13
  /**
14
- * Run one step of Xquik's three-step writing workflow. Compose returns questions
15
- * and editorial rules. Refine returns goal-specific guidance. Score applies
16
- * deterministic text checks. It does not predict reach or expose X ranking
17
- * weights.
14
+ * Run one step of Xquik's three-step writing workflow. Compose returns questions,
15
+ * editorial rules, and source-specific Radar recommendations. Refine returns
16
+ * goal-specific guidance. Score applies deterministic text checks. It does not
17
+ * predict reach or expose X ranking weights.
18
18
  *
19
19
  * @example
20
20
  * ```ts
@@ -8,10 +8,10 @@ import { APIResource } from "../core/resource.mjs";
8
8
  */
9
9
  export class Compose extends APIResource {
10
10
  /**
11
- * Run one step of Xquik's three-step writing workflow. Compose returns questions
12
- * and editorial rules. Refine returns goal-specific guidance. Score applies
13
- * deterministic text checks. It does not predict reach or expose X ranking
14
- * weights.
11
+ * Run one step of Xquik's three-step writing workflow. Compose returns questions,
12
+ * editorial rules, and source-specific Radar recommendations. Refine returns
13
+ * goal-specific guidance. Score applies deterministic text checks. It does not
14
+ * predict reach or expose X ranking weights.
15
15
  *
16
16
  * @example
17
17
  * ```ts
@@ -21,11 +21,25 @@ export interface RadarItem {
21
21
  id: string;
22
22
  category: 'general' | 'tech' | 'dev' | 'science' | 'culture' | 'politics' | 'business' | 'entertainment';
23
23
  createdAt: string;
24
+ /**
25
+ * BCP-47 language code. und means the source did not identify a language.
26
+ */
24
27
  language: string;
25
28
  /**
26
29
  * Source-specific fields. Shape varies per source:
27
30
  *
28
- * - reddit: { subreddit: string, author: string }
31
+ * - reddit: { author, authorId?, subreddit, subredditId?, subredditSubscribers?,
32
+ * sourceFormat, score?, upvoteRatio?, estimatedUpvotes?, estimatedDownvotes?,
33
+ * numberComments?, numberCrossposts?, selftext?, contentUrl?, domain?,
34
+ * postHint?, linkFlairText?, distinguished?, totalAwardsReceived?, viewCount?,
35
+ * editedAt?, galleryImageUrls?, redditVideo?, archived?, contestMode?,
36
+ * isCrosspostable?, isMeta?, isNsfw?, isOriginalContent?, isRobotIndexable?,
37
+ * isSelf?, isSpoiler?, isVideo?, locked?, stickied? }. `score` is Reddit's
38
+ * public net score. Exact public upvote and downvote counts are not available.
39
+ * Estimated counts derive from the public score and upvote ratio, which Reddit
40
+ * may fuzz. Comment bodies are not included. Current items combine public
41
+ * listing discovery with server-rendered post data and use `sourceFormat: html`;
42
+ * `json` and `rss` remain for legacy rows.
29
43
  * - github: { starsToday: number }
30
44
  * - hacker_news: { points: number, numberComments: number }
31
45
  * - google_trends: { approxTraffic: number }
@@ -33,11 +47,14 @@ export interface RadarItem {
33
47
  * - wikipedia: { views: number }
34
48
  * - trustmrr: { mrr, growthPercent, last30Days, total, customers,
35
49
  * activeSubscriptions, onSale, xHandle?, category?, askingPrice?, country?,
36
- * growthMrrPercent?, multiple?, paymentProvider?, rank? }
50
+ * foundedDate?, googleSearchImpressionsLast30Days?, growthMrrPercent?,
51
+ * multiple?, paymentProvider?, profitMarginLast30Days?, rank?,
52
+ * revenuePerVisitor?, targetAudience?, visitorsLast30Days? } For the startup
53
+ * growth source, xHandle is the founder's X username without @. The rank field
54
+ * is the source's revenue rank. Result order represents reported 30-day
55
+ * revenue-growth rank.
37
56
  */
38
- metadata: {
39
- [key: string]: unknown;
40
- };
57
+ metadata: RadarItem.Metadata;
41
58
  publishedAt: string;
42
59
  region: string;
43
60
  score: number;
@@ -48,9 +65,59 @@ export interface RadarItem {
48
65
  sourceId: string;
49
66
  title: string;
50
67
  description?: string;
68
+ /**
69
+ * Source image. Startup growth items return the logo here.
70
+ */
51
71
  imageUrl?: string;
52
72
  url?: string;
53
73
  }
74
+ export declare namespace RadarItem {
75
+ /**
76
+ * Source-specific fields. Shape varies per source:
77
+ *
78
+ * - reddit: { author, authorId?, subreddit, subredditId?, subredditSubscribers?,
79
+ * sourceFormat, score?, upvoteRatio?, estimatedUpvotes?, estimatedDownvotes?,
80
+ * numberComments?, numberCrossposts?, selftext?, contentUrl?, domain?,
81
+ * postHint?, linkFlairText?, distinguished?, totalAwardsReceived?, viewCount?,
82
+ * editedAt?, galleryImageUrls?, redditVideo?, archived?, contestMode?,
83
+ * isCrosspostable?, isMeta?, isNsfw?, isOriginalContent?, isRobotIndexable?,
84
+ * isSelf?, isSpoiler?, isVideo?, locked?, stickied? }. `score` is Reddit's
85
+ * public net score. Exact public upvote and downvote counts are not available.
86
+ * Estimated counts derive from the public score and upvote ratio, which Reddit
87
+ * may fuzz. Comment bodies are not included. Current items combine public
88
+ * listing discovery with server-rendered post data and use `sourceFormat: html`;
89
+ * `json` and `rss` remain for legacy rows.
90
+ * - github: { starsToday: number }
91
+ * - hacker_news: { points: number, numberComments: number }
92
+ * - google_trends: { approxTraffic: number }
93
+ * - polymarket: { volume24hr: number }
94
+ * - wikipedia: { views: number }
95
+ * - trustmrr: { mrr, growthPercent, last30Days, total, customers,
96
+ * activeSubscriptions, onSale, xHandle?, category?, askingPrice?, country?,
97
+ * foundedDate?, googleSearchImpressionsLast30Days?, growthMrrPercent?,
98
+ * multiple?, paymentProvider?, profitMarginLast30Days?, rank?,
99
+ * revenuePerVisitor?, targetAudience?, visitorsLast30Days? } For the startup
100
+ * growth source, xHandle is the founder's X username without @. The rank field
101
+ * is the source's revenue rank. Result order represents reported 30-day
102
+ * revenue-growth rank.
103
+ */
104
+ interface Metadata {
105
+ author?: string;
106
+ contentUrl?: string;
107
+ estimatedDownvotes?: number;
108
+ estimatedUpvotes?: number;
109
+ numberComments?: number;
110
+ score?: number;
111
+ selftext?: string;
112
+ /**
113
+ * Current items use html. json and rss are retained for legacy rows.
114
+ */
115
+ sourceFormat?: 'html' | 'json' | 'rss';
116
+ subreddit?: string;
117
+ upvoteRatio?: number;
118
+ [k: string]: unknown;
119
+ }
120
+ }
54
121
  export interface RadarRetrieveTrendingTopicsResponse {
55
122
  hasMore: boolean;
56
123
  items: Array<RadarItem>;
@@ -1 +1 @@
1
- {"version":3,"file":"radar.d.mts","sourceRoot":"","sources":["../src/resources/radar.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,sBAAsB,CACpB,KAAK,GAAE,iCAAiC,GAAG,IAAI,GAAG,SAAc,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;CAGnD;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,eAAe,CAAC;IAEzG,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;;;;;;;OAYG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEr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GAC5E,CAAC;CACH"}
@@ -21,11 +21,25 @@ export interface RadarItem {
21
21
  id: string;
22
22
  category: 'general' | 'tech' | 'dev' | 'science' | 'culture' | 'politics' | 'business' | 'entertainment';
23
23
  createdAt: string;
24
+ /**
25
+ * BCP-47 language code. und means the source did not identify a language.
26
+ */
24
27
  language: string;
25
28
  /**
26
29
  * Source-specific fields. Shape varies per source:
27
30
  *
28
- * - reddit: { subreddit: string, author: string }
31
+ * - reddit: { author, authorId?, subreddit, subredditId?, subredditSubscribers?,
32
+ * sourceFormat, score?, upvoteRatio?, estimatedUpvotes?, estimatedDownvotes?,
33
+ * numberComments?, numberCrossposts?, selftext?, contentUrl?, domain?,
34
+ * postHint?, linkFlairText?, distinguished?, totalAwardsReceived?, viewCount?,
35
+ * editedAt?, galleryImageUrls?, redditVideo?, archived?, contestMode?,
36
+ * isCrosspostable?, isMeta?, isNsfw?, isOriginalContent?, isRobotIndexable?,
37
+ * isSelf?, isSpoiler?, isVideo?, locked?, stickied? }. `score` is Reddit's
38
+ * public net score. Exact public upvote and downvote counts are not available.
39
+ * Estimated counts derive from the public score and upvote ratio, which Reddit
40
+ * may fuzz. Comment bodies are not included. Current items combine public
41
+ * listing discovery with server-rendered post data and use `sourceFormat: html`;
42
+ * `json` and `rss` remain for legacy rows.
29
43
  * - github: { starsToday: number }
30
44
  * - hacker_news: { points: number, numberComments: number }
31
45
  * - google_trends: { approxTraffic: number }
@@ -33,11 +47,14 @@ export interface RadarItem {
33
47
  * - wikipedia: { views: number }
34
48
  * - trustmrr: { mrr, growthPercent, last30Days, total, customers,
35
49
  * activeSubscriptions, onSale, xHandle?, category?, askingPrice?, country?,
36
- * growthMrrPercent?, multiple?, paymentProvider?, rank? }
50
+ * foundedDate?, googleSearchImpressionsLast30Days?, growthMrrPercent?,
51
+ * multiple?, paymentProvider?, profitMarginLast30Days?, rank?,
52
+ * revenuePerVisitor?, targetAudience?, visitorsLast30Days? } For the startup
53
+ * growth source, xHandle is the founder's X username without @. The rank field
54
+ * is the source's revenue rank. Result order represents reported 30-day
55
+ * revenue-growth rank.
37
56
  */
38
- metadata: {
39
- [key: string]: unknown;
40
- };
57
+ metadata: RadarItem.Metadata;
41
58
  publishedAt: string;
42
59
  region: string;
43
60
  score: number;
@@ -48,9 +65,59 @@ export interface RadarItem {
48
65
  sourceId: string;
49
66
  title: string;
50
67
  description?: string;
68
+ /**
69
+ * Source image. Startup growth items return the logo here.
70
+ */
51
71
  imageUrl?: string;
52
72
  url?: string;
53
73
  }
74
+ export declare namespace RadarItem {
75
+ /**
76
+ * Source-specific fields. Shape varies per source:
77
+ *
78
+ * - reddit: { author, authorId?, subreddit, subredditId?, subredditSubscribers?,
79
+ * sourceFormat, score?, upvoteRatio?, estimatedUpvotes?, estimatedDownvotes?,
80
+ * numberComments?, numberCrossposts?, selftext?, contentUrl?, domain?,
81
+ * postHint?, linkFlairText?, distinguished?, totalAwardsReceived?, viewCount?,
82
+ * editedAt?, galleryImageUrls?, redditVideo?, archived?, contestMode?,
83
+ * isCrosspostable?, isMeta?, isNsfw?, isOriginalContent?, isRobotIndexable?,
84
+ * isSelf?, isSpoiler?, isVideo?, locked?, stickied? }. `score` is Reddit's
85
+ * public net score. Exact public upvote and downvote counts are not available.
86
+ * Estimated counts derive from the public score and upvote ratio, which Reddit
87
+ * may fuzz. Comment bodies are not included. Current items combine public
88
+ * listing discovery with server-rendered post data and use `sourceFormat: html`;
89
+ * `json` and `rss` remain for legacy rows.
90
+ * - github: { starsToday: number }
91
+ * - hacker_news: { points: number, numberComments: number }
92
+ * - google_trends: { approxTraffic: number }
93
+ * - polymarket: { volume24hr: number }
94
+ * - wikipedia: { views: number }
95
+ * - trustmrr: { mrr, growthPercent, last30Days, total, customers,
96
+ * activeSubscriptions, onSale, xHandle?, category?, askingPrice?, country?,
97
+ * foundedDate?, googleSearchImpressionsLast30Days?, growthMrrPercent?,
98
+ * multiple?, paymentProvider?, profitMarginLast30Days?, rank?,
99
+ * revenuePerVisitor?, targetAudience?, visitorsLast30Days? } For the startup
100
+ * growth source, xHandle is the founder's X username without @. The rank field
101
+ * is the source's revenue rank. Result order represents reported 30-day
102
+ * revenue-growth rank.
103
+ */
104
+ interface Metadata {
105
+ author?: string;
106
+ contentUrl?: string;
107
+ estimatedDownvotes?: number;
108
+ estimatedUpvotes?: number;
109
+ numberComments?: number;
110
+ score?: number;
111
+ selftext?: string;
112
+ /**
113
+ * Current items use html. json and rss are retained for legacy rows.
114
+ */
115
+ sourceFormat?: 'html' | 'json' | 'rss';
116
+ subreddit?: string;
117
+ upvoteRatio?: number;
118
+ [k: string]: unknown;
119
+ }
120
+ }
54
121
  export interface RadarRetrieveTrendingTopicsResponse {
55
122
  hasMore: boolean;
56
123
  items: Array<RadarItem>;
@@ -1 +1 @@
1
- {"version":3,"file":"radar.d.ts","sourceRoot":"","sources":["../src/resources/radar.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,sBAAsB,CACpB,KAAK,GAAE,iCAAiC,GAAG,IAAI,GAAG,SAAc,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;CAGnD;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,eAAe,CAAC;IAEzG,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;;;;;;;OAYG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAErC,WAAW,EA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C;CACH"}
@@ -0,0 +1,70 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * Connected X account management
6
+ */
7
+ export declare class AccountConnectionAttempts extends APIResource {
8
+ /**
9
+ * Get X account connection status
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const accountConnectionAttempt =
14
+ * await client.x.accountConnectionAttempts.retrieve(
15
+ * 'xatt_0123456789abcdef0123456789abcdef',
16
+ * );
17
+ * ```
18
+ */
19
+ retrieve(id: string, options?: RequestOptions): APIPromise<AccountConnectionAttemptRetrieveResponse>;
20
+ }
21
+ /**
22
+ * The connection is still in progress.
23
+ */
24
+ export type AccountConnectionAttemptRetrieveResponse = AccountConnectionAttemptRetrieveResponse.XAccountConnectionAttemptPending | AccountConnectionAttemptRetrieveResponse.XAccountConnectionAttemptSuccess | AccountConnectionAttemptRetrieveResponse.XAccountConnectionAttemptFailed | AccountConnectionAttemptRetrieveResponse.XAccountConnectionChallenge;
25
+ export declare namespace AccountConnectionAttemptRetrieveResponse {
26
+ /**
27
+ * The connection is still in progress.
28
+ */
29
+ interface XAccountConnectionAttemptPending {
30
+ id: string;
31
+ object: 'x_account_connection_attempt';
32
+ pollAfterMs: number;
33
+ status: 'pending';
34
+ }
35
+ /**
36
+ * The account connected successfully.
37
+ */
38
+ interface XAccountConnectionAttemptSuccess {
39
+ id: string;
40
+ object: 'x_account_connection_attempt';
41
+ status: 'success';
42
+ }
43
+ /**
44
+ * The connection reached a final failure.
45
+ */
46
+ interface XAccountConnectionAttemptFailed {
47
+ id: string;
48
+ error: string;
49
+ object: 'x_account_connection_attempt';
50
+ retryable: boolean;
51
+ status: 'failed';
52
+ reason?: string;
53
+ }
54
+ /**
55
+ * Resumable account connection challenge. Submit the email code to finish the same
56
+ * connection attempt.
57
+ */
58
+ interface XAccountConnectionChallenge {
59
+ id: string;
60
+ expiresAt: string;
61
+ message: string;
62
+ object: 'x_account_connection_challenge';
63
+ status: 'requires_email_code';
64
+ username: string;
65
+ }
66
+ }
67
+ export declare namespace AccountConnectionAttempts {
68
+ export { type AccountConnectionAttemptRetrieveResponse as AccountConnectionAttemptRetrieveResponse };
69
+ }
70
+ //# sourceMappingURL=account-connection-attempts.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-connection-attempts.d.mts","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wCAAwC,CAAC;CAGrG;AAED;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAChD,wCAAwC,CAAC,gCAAgC,GACzE,wCAAwC,CAAC,gCAAgC,GACzE,wCAAwC,CAAC,+BAA+B,GACxE,wCAAwC,CAAC,2BAA2B,CAAC;AAEzE,yBAAiB,wCAAwC,CAAC;IACxD;;OAEG;IACH,UAAiB,gCAAgC;QAC/C,EAAE,EAAE,MAAM,CAAC;QAEX,MAAM,EAAE,8BAA8B,CAAC;QAEvC,WAAW,EAAE,MAAM,CAAC;QAEpB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,gCAAgC;QAC/C,EAAE,EAAE,MAAM,CAAC;QAEX,MAAM,EAAE,8BAA8B,CAAC;QAEvC,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,+BAA+B;QAC9C,EAAE,EAAE,MAAM,CAAC;QAEX,KAAK,EAAE,MAAM,CAAC;QAEd,MAAM,EAAE,8BAA8B,CAAC;QAEvC,SAAS,EAAE,OAAO,CAAC;QAEnB,MAAM,EAAE,QAAQ,CAAC;QAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;IAED;;;OAGG;IACH,UAAiB,2BAA2B;QAC1C,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,gCAAgC,CAAC;QAEzC,MAAM,EAAE,qBAAqB,CAAC;QAE9B,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,yBAAyB,CAAC;IACjD,OAAO,EAAE,KAAK,wCAAwC,IAAI,wCAAwC,EAAE,CAAC;CACtG"}
@@ -0,0 +1,70 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * Connected X account management
6
+ */
7
+ export declare class AccountConnectionAttempts extends APIResource {
8
+ /**
9
+ * Get X account connection status
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const accountConnectionAttempt =
14
+ * await client.x.accountConnectionAttempts.retrieve(
15
+ * 'xatt_0123456789abcdef0123456789abcdef',
16
+ * );
17
+ * ```
18
+ */
19
+ retrieve(id: string, options?: RequestOptions): APIPromise<AccountConnectionAttemptRetrieveResponse>;
20
+ }
21
+ /**
22
+ * The connection is still in progress.
23
+ */
24
+ export type AccountConnectionAttemptRetrieveResponse = AccountConnectionAttemptRetrieveResponse.XAccountConnectionAttemptPending | AccountConnectionAttemptRetrieveResponse.XAccountConnectionAttemptSuccess | AccountConnectionAttemptRetrieveResponse.XAccountConnectionAttemptFailed | AccountConnectionAttemptRetrieveResponse.XAccountConnectionChallenge;
25
+ export declare namespace AccountConnectionAttemptRetrieveResponse {
26
+ /**
27
+ * The connection is still in progress.
28
+ */
29
+ interface XAccountConnectionAttemptPending {
30
+ id: string;
31
+ object: 'x_account_connection_attempt';
32
+ pollAfterMs: number;
33
+ status: 'pending';
34
+ }
35
+ /**
36
+ * The account connected successfully.
37
+ */
38
+ interface XAccountConnectionAttemptSuccess {
39
+ id: string;
40
+ object: 'x_account_connection_attempt';
41
+ status: 'success';
42
+ }
43
+ /**
44
+ * The connection reached a final failure.
45
+ */
46
+ interface XAccountConnectionAttemptFailed {
47
+ id: string;
48
+ error: string;
49
+ object: 'x_account_connection_attempt';
50
+ retryable: boolean;
51
+ status: 'failed';
52
+ reason?: string;
53
+ }
54
+ /**
55
+ * Resumable account connection challenge. Submit the email code to finish the same
56
+ * connection attempt.
57
+ */
58
+ interface XAccountConnectionChallenge {
59
+ id: string;
60
+ expiresAt: string;
61
+ message: string;
62
+ object: 'x_account_connection_challenge';
63
+ status: 'requires_email_code';
64
+ username: string;
65
+ }
66
+ }
67
+ export declare namespace AccountConnectionAttempts {
68
+ export { type AccountConnectionAttemptRetrieveResponse as AccountConnectionAttemptRetrieveResponse };
69
+ }
70
+ //# sourceMappingURL=account-connection-attempts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-connection-attempts.d.ts","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wCAAwC,CAAC;CAGrG;AAED;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAChD,wCAAwC,CAAC,gCAAgC,GACzE,wCAAwC,CAAC,gCAAgC,GACzE,wCAAwC,CAAC,+BAA+B,GACxE,wCAAwC,CAAC,2BAA2B,CAAC;AAEzE,yBAAiB,wCAAwC,CAAC;IACxD;;OAEG;IACH,UAAiB,gCAAgC;QAC/C,EAAE,EAAE,MAAM,CAAC;QAEX,MAAM,EAAE,8BAA8B,CAAC;QAEvC,WAAW,EAAE,MAAM,CAAC;QAEpB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,gCAAgC;QAC/C,EAAE,EAAE,MAAM,CAAC;QAEX,MAAM,EAAE,8BAA8B,CAAC;QAEvC,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,+BAA+B;QAC9C,EAAE,EAAE,MAAM,CAAC;QAEX,KAAK,EAAE,MAAM,CAAC;QAEd,MAAM,EAAE,8BAA8B,CAAC;QAEvC,SAAS,EAAE,OAAO,CAAC;QAEnB,MAAM,EAAE,QAAQ,CAAC;QAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;IAED;;;OAGG;IACH,UAAiB,2BAA2B;QAC1C,EAAE,EAAE,MAAM,CAAC;QAEX,SAAS,EAAE,MAAM,CAAC;QAElB,OAAO,EAAE,MAAM,CAAC;QAEhB,MAAM,EAAE,gCAAgC,CAAC;QAEzC,MAAM,EAAE,qBAAqB,CAAC;QAE9B,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,yBAAyB,CAAC;IACjD,OAAO,EAAE,KAAK,wCAAwC,IAAI,wCAAwC,EAAE,CAAC;CACtG"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AccountConnectionAttempts = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ /**
8
+ * Connected X account management
9
+ */
10
+ class AccountConnectionAttempts extends resource_1.APIResource {
11
+ /**
12
+ * Get X account connection status
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const accountConnectionAttempt =
17
+ * await client.x.accountConnectionAttempts.retrieve(
18
+ * 'xatt_0123456789abcdef0123456789abcdef',
19
+ * );
20
+ * ```
21
+ */
22
+ retrieve(id, options) {
23
+ return this._client.get((0, path_1.path) `/x/account-connection-attempts/${id}`, options);
24
+ }
25
+ }
26
+ exports.AccountConnectionAttempts = AccountConnectionAttempts;
27
+ //# sourceMappingURL=account-connection-attempts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-connection-attempts.js","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,yBAA0B,SAAQ,sBAAW;IACxD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAfD,8DAeC"}
@@ -0,0 +1,23 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ /**
5
+ * Connected X account management
6
+ */
7
+ export class AccountConnectionAttempts extends APIResource {
8
+ /**
9
+ * Get X account connection status
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const accountConnectionAttempt =
14
+ * await client.x.accountConnectionAttempts.retrieve(
15
+ * 'xatt_0123456789abcdef0123456789abcdef',
16
+ * );
17
+ * ```
18
+ */
19
+ retrieve(id, options) {
20
+ return this._client.get(path `/x/account-connection-attempts/${id}`, options);
21
+ }
22
+ }
23
+ //# sourceMappingURL=account-connection-attempts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-connection-attempts.mjs","sourceRoot":"","sources":["../../src/resources/x/account-connection-attempts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF"}