@getlatedev/node 0.1.35 → 0.1.36

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
@@ -2460,6 +2460,10 @@ type GetDailyMetricsData = {
2460
2460
  * Filter by profile ID. Omit for all profiles.
2461
2461
  */
2462
2462
  profileId?: string;
2463
+ /**
2464
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2465
+ */
2466
+ source?: 'all' | 'late' | 'external';
2463
2467
  /**
2464
2468
  * Inclusive end date (ISO 8601). Defaults to now.
2465
2469
  */
@@ -2513,6 +2517,10 @@ type GetBestTimeToPostData = {
2513
2517
  * Filter by profile ID. Omit for all profiles.
2514
2518
  */
2515
2519
  profileId?: string;
2520
+ /**
2521
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2522
+ */
2523
+ source?: 'all' | 'late' | 'external';
2516
2524
  };
2517
2525
  };
2518
2526
  type GetBestTimeToPostResponse = ({
@@ -2551,6 +2559,10 @@ type GetContentDecayData = {
2551
2559
  * Filter by profile ID. Omit for all profiles.
2552
2560
  */
2553
2561
  profileId?: string;
2562
+ /**
2563
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2564
+ */
2565
+ source?: 'all' | 'late' | 'external';
2554
2566
  };
2555
2567
  };
2556
2568
  type GetContentDecayResponse = ({
@@ -2589,6 +2601,10 @@ type GetPostingFrequencyData = {
2589
2601
  * Filter by profile ID. Omit for all profiles.
2590
2602
  */
2591
2603
  profileId?: string;
2604
+ /**
2605
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2606
+ */
2607
+ source?: 'all' | 'late' | 'external';
2592
2608
  };
2593
2609
  };
2594
2610
  type GetPostingFrequencyResponse = ({
@@ -2778,6 +2794,14 @@ type ListPostsData = {
2778
2794
  page?: number;
2779
2795
  platform?: string;
2780
2796
  profileId?: string;
2797
+ /**
2798
+ * Search posts by text content.
2799
+ */
2800
+ search?: string;
2801
+ /**
2802
+ * Sort order for results.
2803
+ */
2804
+ sortBy?: 'scheduled-desc' | 'scheduled-asc' | 'created-desc' | 'created-asc' | 'status' | 'platform';
2781
2805
  status?: 'draft' | 'scheduled' | 'published' | 'failed';
2782
2806
  };
2783
2807
  };
@@ -3060,6 +3084,10 @@ type ListAccountsData = {
3060
3084
  * When true, includes accounts from over-limit profiles.
3061
3085
  */
3062
3086
  includeOverLimit?: boolean;
3087
+ /**
3088
+ * Filter accounts by platform (e.g. "instagram", "twitter").
3089
+ */
3090
+ platform?: string;
3063
3091
  /**
3064
3092
  * Filter accounts by profile ID
3065
3093
  */
@@ -3345,6 +3373,10 @@ type GetConnectUrlData = {
3345
3373
  platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'reddit' | 'pinterest' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
3346
3374
  };
3347
3375
  query: {
3376
+ /**
3377
+ * When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Late's default account selection UI. Use this to build a custom connect experience.
3378
+ */
3379
+ headless?: boolean;
3348
3380
  /**
3349
3381
  * Your Late profile ID (get from /v1/profiles)
3350
3382
  */
@@ -5004,6 +5036,10 @@ type PreviewQueueData = {
5004
5036
  query: {
5005
5037
  count?: number;
5006
5038
  profileId: string;
5039
+ /**
5040
+ * Filter by specific queue ID. Omit to use the default queue.
5041
+ */
5042
+ queueId?: string;
5007
5043
  };
5008
5044
  };
5009
5045
  type PreviewQueueResponse = ({
@@ -5199,6 +5235,10 @@ type ListPostsLogsData = {
5199
5235
  * Filter by platform
5200
5236
  */
5201
5237
  platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
5238
+ /**
5239
+ * Search through log entries by text content.
5240
+ */
5241
+ search?: string;
5202
5242
  /**
5203
5243
  * Number of logs to skip (for pagination)
5204
5244
  */
package/dist/index.d.ts CHANGED
@@ -2460,6 +2460,10 @@ type GetDailyMetricsData = {
2460
2460
  * Filter by profile ID. Omit for all profiles.
2461
2461
  */
2462
2462
  profileId?: string;
2463
+ /**
2464
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2465
+ */
2466
+ source?: 'all' | 'late' | 'external';
2463
2467
  /**
2464
2468
  * Inclusive end date (ISO 8601). Defaults to now.
2465
2469
  */
@@ -2513,6 +2517,10 @@ type GetBestTimeToPostData = {
2513
2517
  * Filter by profile ID. Omit for all profiles.
2514
2518
  */
2515
2519
  profileId?: string;
2520
+ /**
2521
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2522
+ */
2523
+ source?: 'all' | 'late' | 'external';
2516
2524
  };
2517
2525
  };
2518
2526
  type GetBestTimeToPostResponse = ({
@@ -2551,6 +2559,10 @@ type GetContentDecayData = {
2551
2559
  * Filter by profile ID. Omit for all profiles.
2552
2560
  */
2553
2561
  profileId?: string;
2562
+ /**
2563
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2564
+ */
2565
+ source?: 'all' | 'late' | 'external';
2554
2566
  };
2555
2567
  };
2556
2568
  type GetContentDecayResponse = ({
@@ -2589,6 +2601,10 @@ type GetPostingFrequencyData = {
2589
2601
  * Filter by profile ID. Omit for all profiles.
2590
2602
  */
2591
2603
  profileId?: string;
2604
+ /**
2605
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2606
+ */
2607
+ source?: 'all' | 'late' | 'external';
2592
2608
  };
2593
2609
  };
2594
2610
  type GetPostingFrequencyResponse = ({
@@ -2778,6 +2794,14 @@ type ListPostsData = {
2778
2794
  page?: number;
2779
2795
  platform?: string;
2780
2796
  profileId?: string;
2797
+ /**
2798
+ * Search posts by text content.
2799
+ */
2800
+ search?: string;
2801
+ /**
2802
+ * Sort order for results.
2803
+ */
2804
+ sortBy?: 'scheduled-desc' | 'scheduled-asc' | 'created-desc' | 'created-asc' | 'status' | 'platform';
2781
2805
  status?: 'draft' | 'scheduled' | 'published' | 'failed';
2782
2806
  };
2783
2807
  };
@@ -3060,6 +3084,10 @@ type ListAccountsData = {
3060
3084
  * When true, includes accounts from over-limit profiles.
3061
3085
  */
3062
3086
  includeOverLimit?: boolean;
3087
+ /**
3088
+ * Filter accounts by platform (e.g. "instagram", "twitter").
3089
+ */
3090
+ platform?: string;
3063
3091
  /**
3064
3092
  * Filter accounts by profile ID
3065
3093
  */
@@ -3345,6 +3373,10 @@ type GetConnectUrlData = {
3345
3373
  platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'reddit' | 'pinterest' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
3346
3374
  };
3347
3375
  query: {
3376
+ /**
3377
+ * When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Late's default account selection UI. Use this to build a custom connect experience.
3378
+ */
3379
+ headless?: boolean;
3348
3380
  /**
3349
3381
  * Your Late profile ID (get from /v1/profiles)
3350
3382
  */
@@ -5004,6 +5036,10 @@ type PreviewQueueData = {
5004
5036
  query: {
5005
5037
  count?: number;
5006
5038
  profileId: string;
5039
+ /**
5040
+ * Filter by specific queue ID. Omit to use the default queue.
5041
+ */
5042
+ queueId?: string;
5007
5043
  };
5008
5044
  };
5009
5045
  type PreviewQueueResponse = ({
@@ -5199,6 +5235,10 @@ type ListPostsLogsData = {
5199
5235
  * Filter by platform
5200
5236
  */
5201
5237
  platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
5238
+ /**
5239
+ * Search through log entries by text content.
5240
+ */
5241
+ search?: string;
5202
5242
  /**
5203
5243
  * Number of logs to skip (for pagination)
5204
5244
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "The official Node.js library for the Late API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -2221,6 +2221,10 @@ export type GetDailyMetricsData = {
2221
2221
  * Filter by profile ID. Omit for all profiles.
2222
2222
  */
2223
2223
  profileId?: string;
2224
+ /**
2225
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2226
+ */
2227
+ source?: 'all' | 'late' | 'external';
2224
2228
  /**
2225
2229
  * Inclusive end date (ISO 8601). Defaults to now.
2226
2230
  */
@@ -2277,6 +2281,10 @@ export type GetBestTimeToPostData = {
2277
2281
  * Filter by profile ID. Omit for all profiles.
2278
2282
  */
2279
2283
  profileId?: string;
2284
+ /**
2285
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2286
+ */
2287
+ source?: 'all' | 'late' | 'external';
2280
2288
  };
2281
2289
  };
2282
2290
 
@@ -2318,6 +2326,10 @@ export type GetContentDecayData = {
2318
2326
  * Filter by profile ID. Omit for all profiles.
2319
2327
  */
2320
2328
  profileId?: string;
2329
+ /**
2330
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2331
+ */
2332
+ source?: 'all' | 'late' | 'external';
2321
2333
  };
2322
2334
  };
2323
2335
 
@@ -2359,6 +2371,10 @@ export type GetPostingFrequencyData = {
2359
2371
  * Filter by profile ID. Omit for all profiles.
2360
2372
  */
2361
2373
  profileId?: string;
2374
+ /**
2375
+ * Filter by post origin. "late" for posts published via Late, "external" for posts imported from platforms.
2376
+ */
2377
+ source?: 'all' | 'late' | 'external';
2362
2378
  };
2363
2379
  };
2364
2380
 
@@ -2573,6 +2589,14 @@ export type ListPostsData = {
2573
2589
  page?: number;
2574
2590
  platform?: string;
2575
2591
  profileId?: string;
2592
+ /**
2593
+ * Search posts by text content.
2594
+ */
2595
+ search?: string;
2596
+ /**
2597
+ * Sort order for results.
2598
+ */
2599
+ sortBy?: 'scheduled-desc' | 'scheduled-asc' | 'created-desc' | 'created-asc' | 'status' | 'platform';
2576
2600
  status?: 'draft' | 'scheduled' | 'published' | 'failed';
2577
2601
  };
2578
2602
  };
@@ -2899,6 +2923,10 @@ export type ListAccountsData = {
2899
2923
  * When true, includes accounts from over-limit profiles.
2900
2924
  */
2901
2925
  includeOverLimit?: boolean;
2926
+ /**
2927
+ * Filter accounts by platform (e.g. "instagram", "twitter").
2928
+ */
2929
+ platform?: string;
2902
2930
  /**
2903
2931
  * Filter accounts by profile ID
2904
2932
  */
@@ -3213,6 +3241,10 @@ export type GetConnectUrlData = {
3213
3241
  platform: 'facebook' | 'instagram' | 'linkedin' | 'twitter' | 'tiktok' | 'youtube' | 'threads' | 'reddit' | 'pinterest' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat';
3214
3242
  };
3215
3243
  query: {
3244
+ /**
3245
+ * When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Late's default account selection UI. Use this to build a custom connect experience.
3246
+ */
3247
+ headless?: boolean;
3216
3248
  /**
3217
3249
  * Your Late profile ID (get from /v1/profiles)
3218
3250
  */
@@ -5016,6 +5048,10 @@ export type PreviewQueueData = {
5016
5048
  query: {
5017
5049
  count?: number;
5018
5050
  profileId: string;
5051
+ /**
5052
+ * Filter by specific queue ID. Omit to use the default queue.
5053
+ */
5054
+ queueId?: string;
5019
5055
  };
5020
5056
  };
5021
5057
 
@@ -5234,6 +5270,10 @@ export type ListPostsLogsData = {
5234
5270
  * Filter by platform
5235
5271
  */
5236
5272
  platform?: 'tiktok' | 'instagram' | 'facebook' | 'youtube' | 'linkedin' | 'twitter' | 'threads' | 'pinterest' | 'reddit' | 'bluesky' | 'googlebusiness' | 'telegram' | 'snapchat' | 'all';
5273
+ /**
5274
+ * Search through log entries by text content.
5275
+ */
5276
+ search?: string;
5237
5277
  /**
5238
5278
  * Number of logs to skip (for pagination)
5239
5279
  */