@chirpie/sdk 1.0.5 → 1.0.6

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";
2
2
  interface ApiPost {
3
3
  id: string;
4
4
  platform: Platform;
@@ -61,6 +61,12 @@ 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
+ }
64
70
  interface ApiKeyInfo {
65
71
  id: string;
66
72
  name: string;
@@ -121,7 +127,13 @@ declare class ChirpieClient {
121
127
  connectMastodonAccount(input: ConnectMastodonInput): Promise<{
122
128
  authorization_url: string;
123
129
  }>;
124
- /** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), or connectMastodonAccount() instead */
130
+ connectInstagramAccount(): Promise<{
131
+ authorization_url: string;
132
+ }>;
133
+ connectFacebookAccount(): Promise<{
134
+ authorization_url: string;
135
+ }>;
136
+ /** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), connectMastodonAccount(), connectInstagramAccount(), or connectFacebookAccount() instead */
125
137
  connectAccount(): Promise<{
126
138
  authorization_url: string;
127
139
  }>;
@@ -168,4 +180,4 @@ declare function deleteConfig(): boolean;
168
180
  */
169
181
  declare function requireConfig(): ChirpieConfig;
170
182
 
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 };
183
+ export { type ApiAccount, type ApiAnalytics, type ApiKeyInfo, type ApiPost, type ApiThread, ChirpieApiError, ChirpieClient, type ChirpieClientOptions, type ChirpieConfig, ChirpieError, type ConnectBlueskyInput, type ConnectFacebookInput, type ConnectInstagramInput, 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" | "threads" | "mastodon";
1
+ type Platform = "x" | "bluesky" | "linkedin" | "threads" | "mastodon" | "instagram" | "facebook";
2
2
  interface ApiPost {
3
3
  id: string;
4
4
  platform: Platform;
@@ -61,6 +61,12 @@ 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
+ }
64
70
  interface ApiKeyInfo {
65
71
  id: string;
66
72
  name: string;
@@ -121,7 +127,13 @@ declare class ChirpieClient {
121
127
  connectMastodonAccount(input: ConnectMastodonInput): Promise<{
122
128
  authorization_url: string;
123
129
  }>;
124
- /** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), or connectMastodonAccount() instead */
130
+ connectInstagramAccount(): Promise<{
131
+ authorization_url: string;
132
+ }>;
133
+ connectFacebookAccount(): Promise<{
134
+ authorization_url: string;
135
+ }>;
136
+ /** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), connectMastodonAccount(), connectInstagramAccount(), or connectFacebookAccount() instead */
125
137
  connectAccount(): Promise<{
126
138
  authorization_url: string;
127
139
  }>;
@@ -168,4 +180,4 @@ declare function deleteConfig(): boolean;
168
180
  */
169
181
  declare function requireConfig(): ChirpieConfig;
170
182
 
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 };
183
+ export { type ApiAccount, type ApiAnalytics, type ApiKeyInfo, type ApiPost, type ApiThread, ChirpieApiError, ChirpieClient, type ChirpieClientOptions, type ChirpieConfig, ChirpieError, type ConnectBlueskyInput, type ConnectFacebookInput, type ConnectInstagramInput, type ConnectLinkedInInput, type ConnectMastodonInput, type ConnectThreadsInput, type CreatePostInput, type CreateThreadInput, type ListPostsOptions, deleteConfig, getConfig, requireConfig, saveConfig };
package/dist/index.js CHANGED
@@ -123,7 +123,17 @@ 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
+ /** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), connectMastodonAccount(), connectInstagramAccount(), or connectFacebookAccount() instead */
127
137
  async connectAccount() {
128
138
  return this.connectXAccount();
129
139
  }
package/dist/index.mjs CHANGED
@@ -91,7 +91,17 @@ 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
+ /** @deprecated Use connectXAccount(), connectBlueskyAccount(), connectLinkedInAccount(), connectThreadsAccount(), connectMastodonAccount(), connectInstagramAccount(), or connectFacebookAccount() instead */
95
105
  async connectAccount() {
96
106
  return this.connectXAccount();
97
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chirpie/sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Chirpie SDK — TypeScript client for the Chirpie social media API",
5
5
  "repository": {
6
6
  "type": "git",