@smartlyqofficial/node 0.1.9 → 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 +33 -9
- package/dist/index.d.ts +33 -9
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -392,9 +392,9 @@ type SocialPostCreateRequest = {
|
|
|
392
392
|
*/
|
|
393
393
|
content: string;
|
|
394
394
|
/**
|
|
395
|
-
* Target platforms. Use `twitter` for X and `gmb` for Google Business.
|
|
395
|
+
* Target platforms. Use `twitter` for X and `gmb` for Google Business. `telegram` posts via the workspace's connected bot (created with @BotFather); `discord` posts via the connected server webhook. Both are connected in the dashboard's Social Accounts page.
|
|
396
396
|
*/
|
|
397
|
-
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr'>;
|
|
397
|
+
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
398
398
|
/**
|
|
399
399
|
* IDs of connected social accounts to post to
|
|
400
400
|
*/
|
|
@@ -427,9 +427,9 @@ type SocialPostScheduleRequest = {
|
|
|
427
427
|
*/
|
|
428
428
|
content: string;
|
|
429
429
|
/**
|
|
430
|
-
* Target platforms. Use `twitter` for X and `gmb` for Google Business.
|
|
430
|
+
* Target platforms. Use `twitter` for X and `gmb` for Google Business. `telegram` posts via the workspace's connected bot (created with @BotFather); `discord` posts via the connected server webhook. Both are connected in the dashboard's Social Accounts page.
|
|
431
431
|
*/
|
|
432
|
-
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr'>;
|
|
432
|
+
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
433
433
|
/**
|
|
434
434
|
* IDs of connected social accounts
|
|
435
435
|
*/
|
|
@@ -488,9 +488,9 @@ type SocialPostScheduleRequest = {
|
|
|
488
488
|
type SocialPostUpdateRequest = {
|
|
489
489
|
content?: string;
|
|
490
490
|
/**
|
|
491
|
-
* Target platforms. Use `twitter` for X and `gmb` for Google Business.
|
|
491
|
+
* Target platforms. Use `twitter` for X and `gmb` for Google Business. `telegram` posts via the workspace's connected bot (created with @BotFather); `discord` posts via the connected server webhook. Both are connected in the dashboard's Social Accounts page.
|
|
492
492
|
*/
|
|
493
|
-
platforms?: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr'>;
|
|
493
|
+
platforms?: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
494
494
|
account_ids?: Array<number>;
|
|
495
495
|
scheduled_time?: string;
|
|
496
496
|
media_urls?: Array<string>;
|
|
@@ -504,6 +504,22 @@ type SocialPost = {
|
|
|
504
504
|
scheduled_time?: string;
|
|
505
505
|
published_at?: string;
|
|
506
506
|
created_at?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Live progress inside a publish run: validating (pre-publish checks), processing_media (auto-transcode inspecting/converting media), publishing (dispatching to platforms). null when the post is idle or has reached a final status.
|
|
509
|
+
*/
|
|
510
|
+
publish_stage?: 'validating' | 'processing_media' | 'publishing';
|
|
511
|
+
/**
|
|
512
|
+
* Per-platform permalinks of the published posts, keyed by platform (arrays of URLs). Two reserved keys: _errors holds per-platform failure reasons (plus _post for a whole-post failure), and _transcodes lists what auto-transcode fixed per platform (e.g. 'Frame rate was 15fps (below the 23fps minimum); raised to 30fps.').
|
|
513
|
+
*/
|
|
514
|
+
post_urls?: {
|
|
515
|
+
[key: string]: unknown;
|
|
516
|
+
};
|
|
517
|
+
/**
|
|
518
|
+
* Per-platform remote post IDs assigned by each platform, keyed by platform.
|
|
519
|
+
*/
|
|
520
|
+
post_ids?: {
|
|
521
|
+
[key: string]: unknown;
|
|
522
|
+
};
|
|
507
523
|
};
|
|
508
524
|
type SocialPostResponse = {
|
|
509
525
|
success?: true;
|
|
@@ -5234,6 +5250,14 @@ type ConnectSocialAccountData = {
|
|
|
5234
5250
|
* Optional URL to redirect the user to after they finish authorizing.
|
|
5235
5251
|
*/
|
|
5236
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;
|
|
5237
5261
|
};
|
|
5238
5262
|
headers?: {
|
|
5239
5263
|
/**
|
|
@@ -5243,9 +5267,9 @@ type ConnectSocialAccountData = {
|
|
|
5243
5267
|
};
|
|
5244
5268
|
path: {
|
|
5245
5269
|
/**
|
|
5246
|
-
* Platform to connect. All
|
|
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.
|
|
5247
5271
|
*/
|
|
5248
|
-
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';
|
|
5249
5273
|
};
|
|
5250
5274
|
query?: never;
|
|
5251
5275
|
url: '/social/connect/{platform}';
|
|
@@ -5275,7 +5299,7 @@ type ConnectSocialAccountErrors = {
|
|
|
5275
5299
|
type ConnectSocialAccountError = ConnectSocialAccountErrors[keyof ConnectSocialAccountErrors];
|
|
5276
5300
|
type ConnectSocialAccountResponses = {
|
|
5277
5301
|
/**
|
|
5278
|
-
* 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}`.
|
|
5279
5303
|
*/
|
|
5280
5304
|
201: {
|
|
5281
5305
|
success?: true;
|
package/dist/index.d.ts
CHANGED
|
@@ -392,9 +392,9 @@ type SocialPostCreateRequest = {
|
|
|
392
392
|
*/
|
|
393
393
|
content: string;
|
|
394
394
|
/**
|
|
395
|
-
* Target platforms. Use `twitter` for X and `gmb` for Google Business.
|
|
395
|
+
* Target platforms. Use `twitter` for X and `gmb` for Google Business. `telegram` posts via the workspace's connected bot (created with @BotFather); `discord` posts via the connected server webhook. Both are connected in the dashboard's Social Accounts page.
|
|
396
396
|
*/
|
|
397
|
-
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr'>;
|
|
397
|
+
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
398
398
|
/**
|
|
399
399
|
* IDs of connected social accounts to post to
|
|
400
400
|
*/
|
|
@@ -427,9 +427,9 @@ type SocialPostScheduleRequest = {
|
|
|
427
427
|
*/
|
|
428
428
|
content: string;
|
|
429
429
|
/**
|
|
430
|
-
* Target platforms. Use `twitter` for X and `gmb` for Google Business.
|
|
430
|
+
* Target platforms. Use `twitter` for X and `gmb` for Google Business. `telegram` posts via the workspace's connected bot (created with @BotFather); `discord` posts via the connected server webhook. Both are connected in the dashboard's Social Accounts page.
|
|
431
431
|
*/
|
|
432
|
-
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr'>;
|
|
432
|
+
platforms: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
433
433
|
/**
|
|
434
434
|
* IDs of connected social accounts
|
|
435
435
|
*/
|
|
@@ -488,9 +488,9 @@ type SocialPostScheduleRequest = {
|
|
|
488
488
|
type SocialPostUpdateRequest = {
|
|
489
489
|
content?: string;
|
|
490
490
|
/**
|
|
491
|
-
* Target platforms. Use `twitter` for X and `gmb` for Google Business.
|
|
491
|
+
* Target platforms. Use `twitter` for X and `gmb` for Google Business. `telegram` posts via the workspace's connected bot (created with @BotFather); `discord` posts via the connected server webhook. Both are connected in the dashboard's Social Accounts page.
|
|
492
492
|
*/
|
|
493
|
-
platforms?: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr'>;
|
|
493
|
+
platforms?: Array<'facebook' | 'instagram' | 'twitter' | 'linkedin' | 'youtube' | 'tiktok' | 'gmb' | 'threads' | 'bluesky' | 'tumblr' | 'telegram' | 'discord'>;
|
|
494
494
|
account_ids?: Array<number>;
|
|
495
495
|
scheduled_time?: string;
|
|
496
496
|
media_urls?: Array<string>;
|
|
@@ -504,6 +504,22 @@ type SocialPost = {
|
|
|
504
504
|
scheduled_time?: string;
|
|
505
505
|
published_at?: string;
|
|
506
506
|
created_at?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Live progress inside a publish run: validating (pre-publish checks), processing_media (auto-transcode inspecting/converting media), publishing (dispatching to platforms). null when the post is idle or has reached a final status.
|
|
509
|
+
*/
|
|
510
|
+
publish_stage?: 'validating' | 'processing_media' | 'publishing';
|
|
511
|
+
/**
|
|
512
|
+
* Per-platform permalinks of the published posts, keyed by platform (arrays of URLs). Two reserved keys: _errors holds per-platform failure reasons (plus _post for a whole-post failure), and _transcodes lists what auto-transcode fixed per platform (e.g. 'Frame rate was 15fps (below the 23fps minimum); raised to 30fps.').
|
|
513
|
+
*/
|
|
514
|
+
post_urls?: {
|
|
515
|
+
[key: string]: unknown;
|
|
516
|
+
};
|
|
517
|
+
/**
|
|
518
|
+
* Per-platform remote post IDs assigned by each platform, keyed by platform.
|
|
519
|
+
*/
|
|
520
|
+
post_ids?: {
|
|
521
|
+
[key: string]: unknown;
|
|
522
|
+
};
|
|
507
523
|
};
|
|
508
524
|
type SocialPostResponse = {
|
|
509
525
|
success?: true;
|
|
@@ -5234,6 +5250,14 @@ type ConnectSocialAccountData = {
|
|
|
5234
5250
|
* Optional URL to redirect the user to after they finish authorizing.
|
|
5235
5251
|
*/
|
|
5236
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;
|
|
5237
5261
|
};
|
|
5238
5262
|
headers?: {
|
|
5239
5263
|
/**
|
|
@@ -5243,9 +5267,9 @@ type ConnectSocialAccountData = {
|
|
|
5243
5267
|
};
|
|
5244
5268
|
path: {
|
|
5245
5269
|
/**
|
|
5246
|
-
* Platform to connect. All
|
|
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.
|
|
5247
5271
|
*/
|
|
5248
|
-
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';
|
|
5249
5273
|
};
|
|
5250
5274
|
query?: never;
|
|
5251
5275
|
url: '/social/connect/{platform}';
|
|
@@ -5275,7 +5299,7 @@ type ConnectSocialAccountErrors = {
|
|
|
5275
5299
|
type ConnectSocialAccountError = ConnectSocialAccountErrors[keyof ConnectSocialAccountErrors];
|
|
5276
5300
|
type ConnectSocialAccountResponses = {
|
|
5277
5301
|
/**
|
|
5278
|
-
* 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}`.
|
|
5279
5303
|
*/
|
|
5280
5304
|
201: {
|
|
5281
5305
|
success?: true;
|