@chirpie/sdk 1.0.2 → 1.0.3
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 +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Platform = "x" | "bluesky";
|
|
1
|
+
type Platform = "x" | "bluesky" | "linkedin";
|
|
2
2
|
interface ApiPost {
|
|
3
3
|
id: string;
|
|
4
4
|
platform: Platform;
|
|
@@ -102,7 +102,10 @@ declare class ChirpieClient {
|
|
|
102
102
|
authorization_url: string;
|
|
103
103
|
}>;
|
|
104
104
|
connectBlueskyAccount(input: ConnectBlueskyInput): Promise<ApiAccount>;
|
|
105
|
-
|
|
105
|
+
connectLinkedInAccount(): Promise<{
|
|
106
|
+
authorization_url: string;
|
|
107
|
+
}>;
|
|
108
|
+
/** @deprecated Use connectXAccount(), connectBlueskyAccount(), or connectLinkedInAccount() instead */
|
|
106
109
|
connectAccount(): Promise<{
|
|
107
110
|
authorization_url: string;
|
|
108
111
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Platform = "x" | "bluesky";
|
|
1
|
+
type Platform = "x" | "bluesky" | "linkedin";
|
|
2
2
|
interface ApiPost {
|
|
3
3
|
id: string;
|
|
4
4
|
platform: Platform;
|
|
@@ -102,7 +102,10 @@ declare class ChirpieClient {
|
|
|
102
102
|
authorization_url: string;
|
|
103
103
|
}>;
|
|
104
104
|
connectBlueskyAccount(input: ConnectBlueskyInput): Promise<ApiAccount>;
|
|
105
|
-
|
|
105
|
+
connectLinkedInAccount(): Promise<{
|
|
106
|
+
authorization_url: string;
|
|
107
|
+
}>;
|
|
108
|
+
/** @deprecated Use connectXAccount(), connectBlueskyAccount(), or connectLinkedInAccount() instead */
|
|
106
109
|
connectAccount(): Promise<{
|
|
107
110
|
authorization_url: string;
|
|
108
111
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -110,7 +110,12 @@ var ChirpieClient = class {
|
|
|
110
110
|
async connectBlueskyAccount(input) {
|
|
111
111
|
return this.request("POST", "/accounts", input);
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
async connectLinkedInAccount() {
|
|
114
|
+
return this.request("POST", "/accounts", {
|
|
115
|
+
platform: "linkedin"
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/** @deprecated Use connectXAccount(), connectBlueskyAccount(), or connectLinkedInAccount() instead */
|
|
114
119
|
async connectAccount() {
|
|
115
120
|
return this.connectXAccount();
|
|
116
121
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -78,7 +78,12 @@ var ChirpieClient = class {
|
|
|
78
78
|
async connectBlueskyAccount(input) {
|
|
79
79
|
return this.request("POST", "/accounts", input);
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
async connectLinkedInAccount() {
|
|
82
|
+
return this.request("POST", "/accounts", {
|
|
83
|
+
platform: "linkedin"
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/** @deprecated Use connectXAccount(), connectBlueskyAccount(), or connectLinkedInAccount() instead */
|
|
82
87
|
async connectAccount() {
|
|
83
88
|
return this.connectXAccount();
|
|
84
89
|
}
|