glitch-javascript-sdk 3.8.4 → 3.8.5
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/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Scheduler.d.ts +9 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +9 -1
- package/package.json +1 -1
- package/src/api/Scheduler.ts +10 -1
|
@@ -64,8 +64,11 @@ export interface DiscordMediaImportGroup {
|
|
|
64
64
|
message_id: string;
|
|
65
65
|
attachment_ids: string[];
|
|
66
66
|
}
|
|
67
|
+
export type DiscordTitleUpdateMode = 'grouped' | 'separate';
|
|
67
68
|
export interface DiscordMediaImportRequest {
|
|
68
69
|
groups: DiscordMediaImportGroup[];
|
|
70
|
+
/** Group files by Discord message or create one pending Library item per file. */
|
|
71
|
+
title_update_mode?: DiscordTitleUpdateMode;
|
|
69
72
|
}
|
|
70
73
|
export interface DiscordMediaImportAttachmentResult {
|
|
71
74
|
status: 'imported' | 'duplicate' | 'failed';
|
|
@@ -96,6 +99,8 @@ export interface DiscordUserCommandStatus {
|
|
|
96
99
|
destination_scheduler_id?: string | null;
|
|
97
100
|
destination_scheduler_name?: string | null;
|
|
98
101
|
installed_at?: string | null;
|
|
102
|
+
destination_count?: number;
|
|
103
|
+
linked_account_count?: number;
|
|
99
104
|
pending_count: number;
|
|
100
105
|
command_name: string;
|
|
101
106
|
setup_path: string;
|
|
@@ -156,6 +161,8 @@ export interface DiscordMediaCaptureListResponse {
|
|
|
156
161
|
export interface DiscordMediaCaptureImportRequest {
|
|
157
162
|
capture_id: string;
|
|
158
163
|
attachment_ids: string[];
|
|
164
|
+
/** Group selected files together or create one pending Library item per file. */
|
|
165
|
+
title_update_mode?: DiscordTitleUpdateMode;
|
|
159
166
|
}
|
|
160
167
|
declare class Scheduler {
|
|
161
168
|
/**
|
|
@@ -475,7 +482,8 @@ declare class Scheduler {
|
|
|
475
482
|
static searchDiscordMedia<T = DiscordMediaSearchResponse>(scheduler_id: string, params?: DiscordMediaSearchParams): AxiosPromise<Response<T>>;
|
|
476
483
|
/**
|
|
477
484
|
* Import explicitly selected Discord attachments as pending, unscheduled
|
|
478
|
-
* Library updates.
|
|
485
|
+
* Library updates. Callers can group files by message or create one item
|
|
486
|
+
* per file through title_update_mode.
|
|
479
487
|
*/
|
|
480
488
|
static importDiscordMedia<T = DiscordMediaImportResponse>(scheduler_id: string, data: DiscordMediaImportRequest, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
481
489
|
/** Get the current user's personal Save to Glitch command setup state. */
|
package/dist/esm/index.js
CHANGED
|
@@ -16786,7 +16786,8 @@ var Scheduler = /** @class */ (function () {
|
|
|
16786
16786
|
};
|
|
16787
16787
|
/**
|
|
16788
16788
|
* Import explicitly selected Discord attachments as pending, unscheduled
|
|
16789
|
-
* Library updates.
|
|
16789
|
+
* Library updates. Callers can group files by message or create one item
|
|
16790
|
+
* per file through title_update_mode.
|
|
16790
16791
|
*/
|
|
16791
16792
|
Scheduler.importDiscordMedia = function (scheduler_id, data, params) {
|
|
16792
16793
|
return Requests.processRoute(SchedulerRoute.routes.importDiscordMedia, data, { scheduler_id: scheduler_id }, params);
|