@chirpie/sdk 1.0.3 → 1.0.5
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/index.d.mts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +9 -1
- package/dist/index.mjs +9 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Platform = "x" | "bluesky" | "linkedin";
|
|
1
|
+
type Platform = "x" | "bluesky" | "linkedin" | "threads" | "mastodon";
|
|
2
2
|
interface ApiPost {
|
|
3
3
|
id: string;
|
|
4
4
|
platform: Platform;
|
|
@@ -51,6 +51,16 @@ interface ConnectBlueskyInput {
|
|
|
51
51
|
identifier: string;
|
|
52
52
|
app_password: string;
|
|
53
53
|
}
|
|
54
|
+
interface ConnectMastodonInput {
|
|
55
|
+
platform: "mastodon";
|
|
56
|
+
instance_url: string;
|
|
57
|
+
}
|
|
58
|
+
interface ConnectLinkedInInput {
|
|
59
|
+
platform: "linkedin";
|
|
60
|
+
}
|
|
61
|
+
interface ConnectThreadsInput {
|
|
62
|
+
platform: "threads";
|
|
63
|
+
}
|
|
54
64
|
interface ApiKeyInfo {
|
|
55
65
|
id: string;
|
|
56
66
|
name: string;
|
|
@@ -105,7 +115,13 @@ declare class ChirpieClient {
|
|
|
105
115
|
connectLinkedInAccount(): Promise<{
|
|
106
116
|
authorization_url: string;
|
|
107
117
|
}>;
|
|
108
|
-
|
|
118
|
+
connectThreadsAccount(): Promise<{
|
|
119
|
+
authorization_url: string;
|
|
120
|
+
}>;
|
|
121
|
+
connectMastodonAccount(input: ConnectMastodonInput): Promise<{
|
|
122
|
+
authorization_url: string;
|
|
123
|
+
}>;
|
|
124
|
+
/** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), or connectMastodonAccount() instead */
|
|
109
125
|
connectAccount(): Promise<{
|
|
110
126
|
authorization_url: string;
|
|
111
127
|
}>;
|
|
@@ -152,4 +168,4 @@ declare function deleteConfig(): boolean;
|
|
|
152
168
|
*/
|
|
153
169
|
declare function requireConfig(): ChirpieConfig;
|
|
154
170
|
|
|
155
|
-
export { type ApiAccount, type ApiAnalytics, type ApiKeyInfo, type ApiPost, type ApiThread, ChirpieApiError, ChirpieClient, type ChirpieClientOptions, type ChirpieConfig, ChirpieError, type CreatePostInput, type CreateThreadInput, type ListPostsOptions, deleteConfig, getConfig, requireConfig, saveConfig };
|
|
171
|
+
export { type ApiAccount, type ApiAnalytics, type ApiKeyInfo, type ApiPost, type ApiThread, ChirpieApiError, ChirpieClient, type ChirpieClientOptions, type ChirpieConfig, ChirpieError, type ConnectBlueskyInput, type ConnectLinkedInInput, type ConnectMastodonInput, type ConnectThreadsInput, type CreatePostInput, type CreateThreadInput, type ListPostsOptions, deleteConfig, getConfig, requireConfig, saveConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Platform = "x" | "bluesky" | "linkedin";
|
|
1
|
+
type Platform = "x" | "bluesky" | "linkedin" | "threads" | "mastodon";
|
|
2
2
|
interface ApiPost {
|
|
3
3
|
id: string;
|
|
4
4
|
platform: Platform;
|
|
@@ -51,6 +51,16 @@ interface ConnectBlueskyInput {
|
|
|
51
51
|
identifier: string;
|
|
52
52
|
app_password: string;
|
|
53
53
|
}
|
|
54
|
+
interface ConnectMastodonInput {
|
|
55
|
+
platform: "mastodon";
|
|
56
|
+
instance_url: string;
|
|
57
|
+
}
|
|
58
|
+
interface ConnectLinkedInInput {
|
|
59
|
+
platform: "linkedin";
|
|
60
|
+
}
|
|
61
|
+
interface ConnectThreadsInput {
|
|
62
|
+
platform: "threads";
|
|
63
|
+
}
|
|
54
64
|
interface ApiKeyInfo {
|
|
55
65
|
id: string;
|
|
56
66
|
name: string;
|
|
@@ -105,7 +115,13 @@ declare class ChirpieClient {
|
|
|
105
115
|
connectLinkedInAccount(): Promise<{
|
|
106
116
|
authorization_url: string;
|
|
107
117
|
}>;
|
|
108
|
-
|
|
118
|
+
connectThreadsAccount(): Promise<{
|
|
119
|
+
authorization_url: string;
|
|
120
|
+
}>;
|
|
121
|
+
connectMastodonAccount(input: ConnectMastodonInput): Promise<{
|
|
122
|
+
authorization_url: string;
|
|
123
|
+
}>;
|
|
124
|
+
/** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), or connectMastodonAccount() instead */
|
|
109
125
|
connectAccount(): Promise<{
|
|
110
126
|
authorization_url: string;
|
|
111
127
|
}>;
|
|
@@ -152,4 +168,4 @@ declare function deleteConfig(): boolean;
|
|
|
152
168
|
*/
|
|
153
169
|
declare function requireConfig(): ChirpieConfig;
|
|
154
170
|
|
|
155
|
-
export { type ApiAccount, type ApiAnalytics, type ApiKeyInfo, type ApiPost, type ApiThread, ChirpieApiError, ChirpieClient, type ChirpieClientOptions, type ChirpieConfig, ChirpieError, type CreatePostInput, type CreateThreadInput, type ListPostsOptions, deleteConfig, getConfig, requireConfig, saveConfig };
|
|
171
|
+
export { type ApiAccount, type ApiAnalytics, type ApiKeyInfo, type ApiPost, type ApiThread, ChirpieApiError, ChirpieClient, type ChirpieClientOptions, type ChirpieConfig, ChirpieError, type ConnectBlueskyInput, type ConnectLinkedInInput, type ConnectMastodonInput, type ConnectThreadsInput, type CreatePostInput, type CreateThreadInput, type ListPostsOptions, deleteConfig, getConfig, requireConfig, saveConfig };
|
package/dist/index.js
CHANGED
|
@@ -115,7 +115,15 @@ var ChirpieClient = class {
|
|
|
115
115
|
platform: "linkedin"
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
async connectThreadsAccount() {
|
|
119
|
+
return this.request("POST", "/accounts", {
|
|
120
|
+
platform: "threads"
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
async connectMastodonAccount(input) {
|
|
124
|
+
return this.request("POST", "/accounts", input);
|
|
125
|
+
}
|
|
126
|
+
/** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), or connectMastodonAccount() instead */
|
|
119
127
|
async connectAccount() {
|
|
120
128
|
return this.connectXAccount();
|
|
121
129
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -83,7 +83,15 @@ var ChirpieClient = class {
|
|
|
83
83
|
platform: "linkedin"
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
async connectThreadsAccount() {
|
|
87
|
+
return this.request("POST", "/accounts", {
|
|
88
|
+
platform: "threads"
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
async connectMastodonAccount(input) {
|
|
92
|
+
return this.request("POST", "/accounts", input);
|
|
93
|
+
}
|
|
94
|
+
/** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), or connectMastodonAccount() instead */
|
|
87
95
|
async connectAccount() {
|
|
88
96
|
return this.connectXAccount();
|
|
89
97
|
}
|