@ampcode/plugin 0.0.0-20260723002940-g7ff29e6 → 0.0.0-20260725003042-g22b3fc6
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/index.d.ts +15 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -360,6 +360,12 @@ declare module '@ampcode/plugin' {
|
|
|
360
360
|
parentThreadID?: ThreadID
|
|
361
361
|
/** Show the created thread and make it active in the client when supported. */
|
|
362
362
|
show?: boolean
|
|
363
|
+
/**
|
|
364
|
+
* Serving speed for the new thread. When omitted, the thread inherits the
|
|
365
|
+
* creating thread's speed. Fast mode uses faster serving for supported
|
|
366
|
+
* models and is billed at a premium.
|
|
367
|
+
*/
|
|
368
|
+
speed?: 'standard' | 'fast'
|
|
363
369
|
/**
|
|
364
370
|
* Enable multiplayer for this many seconds. Multiplayer threads must run in an
|
|
365
371
|
* Orb and belong to a workspace. Valid values range from 5 minutes to 7 days.
|
|
@@ -1019,6 +1025,12 @@ declare module '@ampcode/plugin' {
|
|
|
1019
1025
|
/** Dialog title */
|
|
1020
1026
|
title: string
|
|
1021
1027
|
|
|
1028
|
+
/**
|
|
1029
|
+
* Append a final inline text field with "Other" as its placeholder.
|
|
1030
|
+
* A non-empty entered value is trimmed and returned like any other selected value.
|
|
1031
|
+
*/
|
|
1032
|
+
allowOther?: boolean
|
|
1033
|
+
|
|
1022
1034
|
/** Message body shown below the title */
|
|
1023
1035
|
message?: string
|
|
1024
1036
|
|
|
@@ -1048,8 +1060,9 @@ declare module '@ampcode/plugin' {
|
|
|
1048
1060
|
confirm(options: PluginConfirmOptions): Promise<boolean>
|
|
1049
1061
|
|
|
1050
1062
|
/**
|
|
1051
|
-
* Show a select dialog with user
|
|
1052
|
-
*
|
|
1063
|
+
* Show a select dialog with user-provided options and, when enabled, a final
|
|
1064
|
+
* inline text field for another value.
|
|
1065
|
+
* @returns The selected or entered value, or undefined if the user cancelled.
|
|
1053
1066
|
*/
|
|
1054
1067
|
select(options: PluginSelectOptions): Promise<string | undefined>
|
|
1055
1068
|
}
|