@smartlyqofficial/node 0.1.10 → 0.1.11

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.cts CHANGED
@@ -5250,6 +5250,14 @@ type ConnectSocialAccountData = {
5250
5250
  * Optional URL to redirect the user to after they finish authorizing.
5251
5251
  */
5252
5252
  return_url?: string;
5253
+ /**
5254
+ * Telegram only (required for it): your bot's token from @BotFather (e.g. `123456:AA...`). Verified against Telegram (getMe/getChat/getChatMember - the bot must have posting rights in the chat) and stored encrypted.
5255
+ */
5256
+ bot_token?: string;
5257
+ /**
5258
+ * Telegram only (required for it): the target channel/group as `@channelusername` or a numeric chat id. Private chats are rejected.
5259
+ */
5260
+ chat?: string;
5253
5261
  };
5254
5262
  headers?: {
5255
5263
  /**
@@ -5259,9 +5267,9 @@ type ConnectSocialAccountData = {
5259
5267
  };
5260
5268
  path: {
5261
5269
  /**
5262
- * Platform to connect. All 13 platforms are supported (use `twitter` for X, `gmb` for Google Business).
5270
+ * Platform to connect. All 15 platforms are supported (use `twitter` for X, `gmb` for Google Business). 14 are OAuth flows returning a `connect_url` (`discord` runs the server-webhook authorize flow). `telegram` is a CREDENTIAL connect instead: pass `bot_token` + `chat` in the body and the account connects immediately - no URL to open.
5263
5271
  */
5264
- platform: 'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'threads' | 'bluesky' | 'pinterest' | 'reddit' | 'snapchat' | 'tumblr' | 'gmb';
5272
+ platform: 'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'threads' | 'bluesky' | 'pinterest' | 'reddit' | 'snapchat' | 'tumblr' | 'gmb' | 'discord' | 'telegram';
5265
5273
  };
5266
5274
  query?: never;
5267
5275
  url: '/social/connect/{platform}';
@@ -5291,7 +5299,7 @@ type ConnectSocialAccountErrors = {
5291
5299
  type ConnectSocialAccountError = ConnectSocialAccountErrors[keyof ConnectSocialAccountErrors];
5292
5300
  type ConnectSocialAccountResponses = {
5293
5301
  /**
5294
- * Connection link created
5302
+ * Connection link created. For `telegram` the response has no `connect_url` - the account is connected immediately and returned as `{platform, account}`.
5295
5303
  */
5296
5304
  201: {
5297
5305
  success?: true;
package/dist/index.d.ts CHANGED
@@ -5250,6 +5250,14 @@ type ConnectSocialAccountData = {
5250
5250
  * Optional URL to redirect the user to after they finish authorizing.
5251
5251
  */
5252
5252
  return_url?: string;
5253
+ /**
5254
+ * Telegram only (required for it): your bot's token from @BotFather (e.g. `123456:AA...`). Verified against Telegram (getMe/getChat/getChatMember - the bot must have posting rights in the chat) and stored encrypted.
5255
+ */
5256
+ bot_token?: string;
5257
+ /**
5258
+ * Telegram only (required for it): the target channel/group as `@channelusername` or a numeric chat id. Private chats are rejected.
5259
+ */
5260
+ chat?: string;
5253
5261
  };
5254
5262
  headers?: {
5255
5263
  /**
@@ -5259,9 +5267,9 @@ type ConnectSocialAccountData = {
5259
5267
  };
5260
5268
  path: {
5261
5269
  /**
5262
- * Platform to connect. All 13 platforms are supported (use `twitter` for X, `gmb` for Google Business).
5270
+ * Platform to connect. All 15 platforms are supported (use `twitter` for X, `gmb` for Google Business). 14 are OAuth flows returning a `connect_url` (`discord` runs the server-webhook authorize flow). `telegram` is a CREDENTIAL connect instead: pass `bot_token` + `chat` in the body and the account connects immediately - no URL to open.
5263
5271
  */
5264
- platform: 'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'threads' | 'bluesky' | 'pinterest' | 'reddit' | 'snapchat' | 'tumblr' | 'gmb';
5272
+ platform: 'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'threads' | 'bluesky' | 'pinterest' | 'reddit' | 'snapchat' | 'tumblr' | 'gmb' | 'discord' | 'telegram';
5265
5273
  };
5266
5274
  query?: never;
5267
5275
  url: '/social/connect/{platform}';
@@ -5291,7 +5299,7 @@ type ConnectSocialAccountErrors = {
5291
5299
  type ConnectSocialAccountError = ConnectSocialAccountErrors[keyof ConnectSocialAccountErrors];
5292
5300
  type ConnectSocialAccountResponses = {
5293
5301
  /**
5294
- * Connection link created
5302
+ * Connection link created. For `telegram` the response has no `connect_url` - the account is connected immediately and returned as `{platform, account}`.
5295
5303
  */
5296
5304
  201: {
5297
5305
  success?: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartlyqofficial/node",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Official Node.js SDK for the SmartlyQ API - social posting, AI content generation, SEO, CRM, and more.",
5
5
  "keywords": [
6
6
  "smartlyq",