@chirpie/sdk 1.0.5 → 1.0.7

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 CHANGED
@@ -1,4 +1,4 @@
1
- type Platform = "x" | "bluesky" | "linkedin" | "threads" | "mastodon";
1
+ type Platform = "x" | "bluesky" | "linkedin" | "threads" | "mastodon" | "instagram" | "facebook" | "telegram" | "reddit" | "pinterest" | "tiktok" | "youtube" | "google_business" | "snapchat";
2
2
  interface ApiPost {
3
3
  id: string;
4
4
  platform: Platform;
@@ -61,6 +61,35 @@ interface ConnectLinkedInInput {
61
61
  interface ConnectThreadsInput {
62
62
  platform: "threads";
63
63
  }
64
+ interface ConnectInstagramInput {
65
+ platform: "instagram";
66
+ }
67
+ interface ConnectFacebookInput {
68
+ platform: "facebook";
69
+ }
70
+ interface ConnectTelegramInput {
71
+ platform: "telegram";
72
+ bot_token: string;
73
+ chat_id: string;
74
+ }
75
+ interface ConnectRedditInput {
76
+ platform: "reddit";
77
+ }
78
+ interface ConnectPinterestInput {
79
+ platform: "pinterest";
80
+ }
81
+ interface ConnectTikTokInput {
82
+ platform: "tiktok";
83
+ }
84
+ interface ConnectYouTubeInput {
85
+ platform: "youtube";
86
+ }
87
+ interface ConnectGBPInput {
88
+ platform: "google_business";
89
+ }
90
+ interface ConnectSnapchatInput {
91
+ platform: "snapchat";
92
+ }
64
93
  interface ApiKeyInfo {
65
94
  id: string;
66
95
  name: string;
@@ -121,7 +150,32 @@ declare class ChirpieClient {
121
150
  connectMastodonAccount(input: ConnectMastodonInput): Promise<{
122
151
  authorization_url: string;
123
152
  }>;
124
- /** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), or connectMastodonAccount() instead */
153
+ connectInstagramAccount(): Promise<{
154
+ authorization_url: string;
155
+ }>;
156
+ connectFacebookAccount(): Promise<{
157
+ authorization_url: string;
158
+ }>;
159
+ connectTelegramAccount(input: ConnectTelegramInput): Promise<ApiAccount>;
160
+ connectRedditAccount(): Promise<{
161
+ authorization_url: string;
162
+ }>;
163
+ connectPinterestAccount(): Promise<{
164
+ authorization_url: string;
165
+ }>;
166
+ connectTikTokAccount(): Promise<{
167
+ authorization_url: string;
168
+ }>;
169
+ connectYouTubeAccount(): Promise<{
170
+ authorization_url: string;
171
+ }>;
172
+ connectGBPAccount(): Promise<{
173
+ authorization_url: string;
174
+ }>;
175
+ connectSnapchatAccount(): Promise<{
176
+ authorization_url: string;
177
+ }>;
178
+ /** @deprecated Use platform-specific connect methods instead */
125
179
  connectAccount(): Promise<{
126
180
  authorization_url: string;
127
181
  }>;
@@ -168,4 +222,4 @@ declare function deleteConfig(): boolean;
168
222
  */
169
223
  declare function requireConfig(): ChirpieConfig;
170
224
 
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 };
225
+ export { type ApiAccount, type ApiAnalytics, type ApiKeyInfo, type ApiPost, type ApiThread, ChirpieApiError, ChirpieClient, type ChirpieClientOptions, type ChirpieConfig, ChirpieError, type ConnectBlueskyInput, type ConnectFacebookInput, type ConnectGBPInput, type ConnectInstagramInput, type ConnectLinkedInInput, type ConnectMastodonInput, type ConnectPinterestInput, type ConnectRedditInput, type ConnectSnapchatInput, type ConnectTelegramInput, type ConnectThreadsInput, type ConnectTikTokInput, type ConnectYouTubeInput, 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" | "threads" | "mastodon";
1
+ type Platform = "x" | "bluesky" | "linkedin" | "threads" | "mastodon" | "instagram" | "facebook" | "telegram" | "reddit" | "pinterest" | "tiktok" | "youtube" | "google_business" | "snapchat";
2
2
  interface ApiPost {
3
3
  id: string;
4
4
  platform: Platform;
@@ -61,6 +61,35 @@ interface ConnectLinkedInInput {
61
61
  interface ConnectThreadsInput {
62
62
  platform: "threads";
63
63
  }
64
+ interface ConnectInstagramInput {
65
+ platform: "instagram";
66
+ }
67
+ interface ConnectFacebookInput {
68
+ platform: "facebook";
69
+ }
70
+ interface ConnectTelegramInput {
71
+ platform: "telegram";
72
+ bot_token: string;
73
+ chat_id: string;
74
+ }
75
+ interface ConnectRedditInput {
76
+ platform: "reddit";
77
+ }
78
+ interface ConnectPinterestInput {
79
+ platform: "pinterest";
80
+ }
81
+ interface ConnectTikTokInput {
82
+ platform: "tiktok";
83
+ }
84
+ interface ConnectYouTubeInput {
85
+ platform: "youtube";
86
+ }
87
+ interface ConnectGBPInput {
88
+ platform: "google_business";
89
+ }
90
+ interface ConnectSnapchatInput {
91
+ platform: "snapchat";
92
+ }
64
93
  interface ApiKeyInfo {
65
94
  id: string;
66
95
  name: string;
@@ -121,7 +150,32 @@ declare class ChirpieClient {
121
150
  connectMastodonAccount(input: ConnectMastodonInput): Promise<{
122
151
  authorization_url: string;
123
152
  }>;
124
- /** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), or connectMastodonAccount() instead */
153
+ connectInstagramAccount(): Promise<{
154
+ authorization_url: string;
155
+ }>;
156
+ connectFacebookAccount(): Promise<{
157
+ authorization_url: string;
158
+ }>;
159
+ connectTelegramAccount(input: ConnectTelegramInput): Promise<ApiAccount>;
160
+ connectRedditAccount(): Promise<{
161
+ authorization_url: string;
162
+ }>;
163
+ connectPinterestAccount(): Promise<{
164
+ authorization_url: string;
165
+ }>;
166
+ connectTikTokAccount(): Promise<{
167
+ authorization_url: string;
168
+ }>;
169
+ connectYouTubeAccount(): Promise<{
170
+ authorization_url: string;
171
+ }>;
172
+ connectGBPAccount(): Promise<{
173
+ authorization_url: string;
174
+ }>;
175
+ connectSnapchatAccount(): Promise<{
176
+ authorization_url: string;
177
+ }>;
178
+ /** @deprecated Use platform-specific connect methods instead */
125
179
  connectAccount(): Promise<{
126
180
  authorization_url: string;
127
181
  }>;
@@ -168,4 +222,4 @@ declare function deleteConfig(): boolean;
168
222
  */
169
223
  declare function requireConfig(): ChirpieConfig;
170
224
 
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 };
225
+ export { type ApiAccount, type ApiAnalytics, type ApiKeyInfo, type ApiPost, type ApiThread, ChirpieApiError, ChirpieClient, type ChirpieClientOptions, type ChirpieConfig, ChirpieError, type ConnectBlueskyInput, type ConnectFacebookInput, type ConnectGBPInput, type ConnectInstagramInput, type ConnectLinkedInInput, type ConnectMastodonInput, type ConnectPinterestInput, type ConnectRedditInput, type ConnectSnapchatInput, type ConnectTelegramInput, type ConnectThreadsInput, type ConnectTikTokInput, type ConnectYouTubeInput, type CreatePostInput, type CreateThreadInput, type ListPostsOptions, deleteConfig, getConfig, requireConfig, saveConfig };
package/dist/index.js CHANGED
@@ -123,7 +123,50 @@ var ChirpieClient = class {
123
123
  async connectMastodonAccount(input) {
124
124
  return this.request("POST", "/accounts", input);
125
125
  }
126
- /** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), or connectMastodonAccount() instead */
126
+ async connectInstagramAccount() {
127
+ return this.request("POST", "/accounts", {
128
+ platform: "instagram"
129
+ });
130
+ }
131
+ async connectFacebookAccount() {
132
+ return this.request("POST", "/accounts", {
133
+ platform: "facebook"
134
+ });
135
+ }
136
+ async connectTelegramAccount(input) {
137
+ return this.request("POST", "/accounts", input);
138
+ }
139
+ async connectRedditAccount() {
140
+ return this.request("POST", "/accounts", {
141
+ platform: "reddit"
142
+ });
143
+ }
144
+ async connectPinterestAccount() {
145
+ return this.request("POST", "/accounts", {
146
+ platform: "pinterest"
147
+ });
148
+ }
149
+ async connectTikTokAccount() {
150
+ return this.request("POST", "/accounts", {
151
+ platform: "tiktok"
152
+ });
153
+ }
154
+ async connectYouTubeAccount() {
155
+ return this.request("POST", "/accounts", {
156
+ platform: "youtube"
157
+ });
158
+ }
159
+ async connectGBPAccount() {
160
+ return this.request("POST", "/accounts", {
161
+ platform: "google_business"
162
+ });
163
+ }
164
+ async connectSnapchatAccount() {
165
+ return this.request("POST", "/accounts", {
166
+ platform: "snapchat"
167
+ });
168
+ }
169
+ /** @deprecated Use platform-specific connect methods instead */
127
170
  async connectAccount() {
128
171
  return this.connectXAccount();
129
172
  }
package/dist/index.mjs CHANGED
@@ -91,7 +91,50 @@ var ChirpieClient = class {
91
91
  async connectMastodonAccount(input) {
92
92
  return this.request("POST", "/accounts", input);
93
93
  }
94
- /** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), or connectMastodonAccount() instead */
94
+ async connectInstagramAccount() {
95
+ return this.request("POST", "/accounts", {
96
+ platform: "instagram"
97
+ });
98
+ }
99
+ async connectFacebookAccount() {
100
+ return this.request("POST", "/accounts", {
101
+ platform: "facebook"
102
+ });
103
+ }
104
+ async connectTelegramAccount(input) {
105
+ return this.request("POST", "/accounts", input);
106
+ }
107
+ async connectRedditAccount() {
108
+ return this.request("POST", "/accounts", {
109
+ platform: "reddit"
110
+ });
111
+ }
112
+ async connectPinterestAccount() {
113
+ return this.request("POST", "/accounts", {
114
+ platform: "pinterest"
115
+ });
116
+ }
117
+ async connectTikTokAccount() {
118
+ return this.request("POST", "/accounts", {
119
+ platform: "tiktok"
120
+ });
121
+ }
122
+ async connectYouTubeAccount() {
123
+ return this.request("POST", "/accounts", {
124
+ platform: "youtube"
125
+ });
126
+ }
127
+ async connectGBPAccount() {
128
+ return this.request("POST", "/accounts", {
129
+ platform: "google_business"
130
+ });
131
+ }
132
+ async connectSnapchatAccount() {
133
+ return this.request("POST", "/accounts", {
134
+ platform: "snapchat"
135
+ });
136
+ }
137
+ /** @deprecated Use platform-specific connect methods instead */
95
138
  async connectAccount() {
96
139
  return this.connectXAccount();
97
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chirpie/sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Chirpie SDK — TypeScript client for the Chirpie social media API",
5
5
  "repository": {
6
6
  "type": "git",