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
package/dist/index.d.ts
CHANGED
|
@@ -7046,8 +7046,11 @@ interface DiscordMediaImportGroup {
|
|
|
7046
7046
|
message_id: string;
|
|
7047
7047
|
attachment_ids: string[];
|
|
7048
7048
|
}
|
|
7049
|
+
type DiscordTitleUpdateMode = 'grouped' | 'separate';
|
|
7049
7050
|
interface DiscordMediaImportRequest {
|
|
7050
7051
|
groups: DiscordMediaImportGroup[];
|
|
7052
|
+
/** Group files by Discord message or create one pending Library item per file. */
|
|
7053
|
+
title_update_mode?: DiscordTitleUpdateMode;
|
|
7051
7054
|
}
|
|
7052
7055
|
interface DiscordMediaImportAttachmentResult {
|
|
7053
7056
|
status: 'imported' | 'duplicate' | 'failed';
|
|
@@ -7078,6 +7081,8 @@ interface DiscordUserCommandStatus {
|
|
|
7078
7081
|
destination_scheduler_id?: string | null;
|
|
7079
7082
|
destination_scheduler_name?: string | null;
|
|
7080
7083
|
installed_at?: string | null;
|
|
7084
|
+
destination_count?: number;
|
|
7085
|
+
linked_account_count?: number;
|
|
7081
7086
|
pending_count: number;
|
|
7082
7087
|
command_name: string;
|
|
7083
7088
|
setup_path: string;
|
|
@@ -7138,6 +7143,8 @@ interface DiscordMediaCaptureListResponse {
|
|
|
7138
7143
|
interface DiscordMediaCaptureImportRequest {
|
|
7139
7144
|
capture_id: string;
|
|
7140
7145
|
attachment_ids: string[];
|
|
7146
|
+
/** Group selected files together or create one pending Library item per file. */
|
|
7147
|
+
title_update_mode?: DiscordTitleUpdateMode;
|
|
7141
7148
|
}
|
|
7142
7149
|
declare class Scheduler {
|
|
7143
7150
|
/**
|
|
@@ -7457,7 +7464,8 @@ declare class Scheduler {
|
|
|
7457
7464
|
static searchDiscordMedia<T = DiscordMediaSearchResponse>(scheduler_id: string, params?: DiscordMediaSearchParams): AxiosPromise<Response<T>>;
|
|
7458
7465
|
/**
|
|
7459
7466
|
* Import explicitly selected Discord attachments as pending, unscheduled
|
|
7460
|
-
* Library updates.
|
|
7467
|
+
* Library updates. Callers can group files by message or create one item
|
|
7468
|
+
* per file through title_update_mode.
|
|
7461
7469
|
*/
|
|
7462
7470
|
static importDiscordMedia<T = DiscordMediaImportResponse>(scheduler_id: string, data: DiscordMediaImportRequest, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
7463
7471
|
/** Get the current user's personal Save to Glitch command setup state. */
|
package/package.json
CHANGED
package/src/api/Scheduler.ts
CHANGED
|
@@ -73,8 +73,12 @@ export interface DiscordMediaImportGroup {
|
|
|
73
73
|
attachment_ids: string[];
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
export type DiscordTitleUpdateMode = 'grouped' | 'separate';
|
|
77
|
+
|
|
76
78
|
export interface DiscordMediaImportRequest {
|
|
77
79
|
groups: DiscordMediaImportGroup[];
|
|
80
|
+
/** Group files by Discord message or create one pending Library item per file. */
|
|
81
|
+
title_update_mode?: DiscordTitleUpdateMode;
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
export interface DiscordMediaImportAttachmentResult {
|
|
@@ -108,6 +112,8 @@ export interface DiscordUserCommandStatus {
|
|
|
108
112
|
destination_scheduler_id?: string | null;
|
|
109
113
|
destination_scheduler_name?: string | null;
|
|
110
114
|
installed_at?: string | null;
|
|
115
|
+
destination_count?: number;
|
|
116
|
+
linked_account_count?: number;
|
|
111
117
|
pending_count: number;
|
|
112
118
|
command_name: string;
|
|
113
119
|
setup_path: string;
|
|
@@ -174,6 +180,8 @@ export interface DiscordMediaCaptureListResponse {
|
|
|
174
180
|
export interface DiscordMediaCaptureImportRequest {
|
|
175
181
|
capture_id: string;
|
|
176
182
|
attachment_ids: string[];
|
|
183
|
+
/** Group selected files together or create one pending Library item per file. */
|
|
184
|
+
title_update_mode?: DiscordTitleUpdateMode;
|
|
177
185
|
}
|
|
178
186
|
|
|
179
187
|
class Scheduler {
|
|
@@ -618,7 +626,8 @@ class Scheduler {
|
|
|
618
626
|
|
|
619
627
|
/**
|
|
620
628
|
* Import explicitly selected Discord attachments as pending, unscheduled
|
|
621
|
-
* Library updates.
|
|
629
|
+
* Library updates. Callers can group files by message or create one item
|
|
630
|
+
* per file through title_update_mode.
|
|
622
631
|
*/
|
|
623
632
|
public static importDiscordMedia<T = DiscordMediaImportResponse>(
|
|
624
633
|
scheduler_id: string,
|