@chirpie/sdk 1.0.11 → 1.0.12

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
@@ -145,6 +145,8 @@ declare class ChirpieClient {
145
145
  * @returns The created post.
146
146
  * @throws {ChirpieError} On network/transport failure.
147
147
  * @throws {ChirpieApiError} On non-2xx responses (auth, validation, plan limit, platform error) or invalid JSON.
148
+ * X posts whose text contains a link are billed at $0.25 each on paid plans, and are
149
+ * rejected on the Free plan with code `x_link_posts_require_paid_plan` (HTTP 402).
148
150
  */
149
151
  createPost(input: CreatePostInput): Promise<ApiPost>;
150
152
  listPosts(options?: ListPostsOptions): Promise<ApiPost[]>;
@@ -163,6 +165,8 @@ declare class ChirpieClient {
163
165
  * @returns The created thread, including each post's id and status.
164
166
  * @throws {ChirpieError} On network/transport failure.
165
167
  * @throws {ChirpieApiError} On non-2xx responses (auth, validation, plan limit, platform error) or invalid JSON.
168
+ * X posts whose text contains a link are billed at $0.25 each on paid plans, and are
169
+ * rejected on the Free plan with code `x_link_posts_require_paid_plan` (HTTP 402).
166
170
  */
167
171
  createThread(input: CreateThreadInput): Promise<ApiThread>;
168
172
  listAccounts(): Promise<ApiAccount[]>;
package/dist/index.d.ts CHANGED
@@ -145,6 +145,8 @@ declare class ChirpieClient {
145
145
  * @returns The created post.
146
146
  * @throws {ChirpieError} On network/transport failure.
147
147
  * @throws {ChirpieApiError} On non-2xx responses (auth, validation, plan limit, platform error) or invalid JSON.
148
+ * X posts whose text contains a link are billed at $0.25 each on paid plans, and are
149
+ * rejected on the Free plan with code `x_link_posts_require_paid_plan` (HTTP 402).
148
150
  */
149
151
  createPost(input: CreatePostInput): Promise<ApiPost>;
150
152
  listPosts(options?: ListPostsOptions): Promise<ApiPost[]>;
@@ -163,6 +165,8 @@ declare class ChirpieClient {
163
165
  * @returns The created thread, including each post's id and status.
164
166
  * @throws {ChirpieError} On network/transport failure.
165
167
  * @throws {ChirpieApiError} On non-2xx responses (auth, validation, plan limit, platform error) or invalid JSON.
168
+ * X posts whose text contains a link are billed at $0.25 each on paid plans, and are
169
+ * rejected on the Free plan with code `x_link_posts_require_paid_plan` (HTTP 402).
166
170
  */
167
171
  createThread(input: CreateThreadInput): Promise<ApiThread>;
168
172
  listAccounts(): Promise<ApiAccount[]>;
package/dist/index.js CHANGED
@@ -99,6 +99,8 @@ var ChirpieClient = class {
99
99
  * @returns The created post.
100
100
  * @throws {ChirpieError} On network/transport failure.
101
101
  * @throws {ChirpieApiError} On non-2xx responses (auth, validation, plan limit, platform error) or invalid JSON.
102
+ * X posts whose text contains a link are billed at $0.25 each on paid plans, and are
103
+ * rejected on the Free plan with code `x_link_posts_require_paid_plan` (HTTP 402).
102
104
  */
103
105
  async createPost(input) {
104
106
  return this.request("POST", "/posts", input);
@@ -129,6 +131,8 @@ var ChirpieClient = class {
129
131
  * @returns The created thread, including each post's id and status.
130
132
  * @throws {ChirpieError} On network/transport failure.
131
133
  * @throws {ChirpieApiError} On non-2xx responses (auth, validation, plan limit, platform error) or invalid JSON.
134
+ * X posts whose text contains a link are billed at $0.25 each on paid plans, and are
135
+ * rejected on the Free plan with code `x_link_posts_require_paid_plan` (HTTP 402).
132
136
  */
133
137
  async createThread(input) {
134
138
  return this.request("POST", "/threads", input);
package/dist/index.mjs CHANGED
@@ -67,6 +67,8 @@ var ChirpieClient = class {
67
67
  * @returns The created post.
68
68
  * @throws {ChirpieError} On network/transport failure.
69
69
  * @throws {ChirpieApiError} On non-2xx responses (auth, validation, plan limit, platform error) or invalid JSON.
70
+ * X posts whose text contains a link are billed at $0.25 each on paid plans, and are
71
+ * rejected on the Free plan with code `x_link_posts_require_paid_plan` (HTTP 402).
70
72
  */
71
73
  async createPost(input) {
72
74
  return this.request("POST", "/posts", input);
@@ -97,6 +99,8 @@ var ChirpieClient = class {
97
99
  * @returns The created thread, including each post's id and status.
98
100
  * @throws {ChirpieError} On network/transport failure.
99
101
  * @throws {ChirpieApiError} On non-2xx responses (auth, validation, plan limit, platform error) or invalid JSON.
102
+ * X posts whose text contains a link are billed at $0.25 each on paid plans, and are
103
+ * rejected on the Free plan with code `x_link_posts_require_paid_plan` (HTTP 402).
100
104
  */
101
105
  async createThread(input) {
102
106
  return this.request("POST", "/threads", input);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chirpie/sdk",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Chirpie SDK — TypeScript client for the Chirpie social media API",
5
5
  "repository": {
6
6
  "type": "git",