@autobusal/providers 1.31.1 → 1.33.0
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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/types/settings.ts +31 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.33.0
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **`LabelSettings.ai`** and **`LabelData.is_main`** - a label's per-provider AI configuration (`{providers: {openai: {status, api_key?, models?, default_model?, labels_allowed?}, ...}, default_provider}`) and whether this label IS the platform's main one, both needed by the new admin-label AI tab to know which fields to show.
|
|
8
|
+
|
|
9
|
+
## 1.32.0
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **`LabelSettings.theme`** — a label's chosen theme preset (`{preset, overrides}`), matching obtapi's new `labels_settings.theme` column. Optional/nullable: absent means the label still reads its colors straight out of settings.json, exactly as before this existed.
|
|
14
|
+
|
|
3
15
|
## 1.31.1
|
|
4
16
|
|
|
5
17
|
### Fixed
|
package/package.json
CHANGED
package/types/settings.ts
CHANGED
|
@@ -127,6 +127,7 @@ export interface LabelData {
|
|
|
127
127
|
id: number
|
|
128
128
|
name: string
|
|
129
129
|
internal: string
|
|
130
|
+
is_main: boolean
|
|
130
131
|
settings: LabelSettings
|
|
131
132
|
payments: LabelPayments
|
|
132
133
|
}
|
|
@@ -302,6 +303,36 @@ export interface LabelSettings {
|
|
|
302
303
|
auto_publish?: boolean
|
|
303
304
|
threshold?: number
|
|
304
305
|
}
|
|
306
|
+
|
|
307
|
+
// Edited: Ferjolt Ozuni - Date: 2026-08-08
|
|
308
|
+
// The label's chosen theme preset, or null/absent to keep reading colors
|
|
309
|
+
// straight out of settings.json exactly as before this existed - see
|
|
310
|
+
// obtapi's Settings\ViewController::applyThemePreset(). `overrides`
|
|
311
|
+
// mirrors the SAME shape as a themes.tokens row (colors.light/dark +
|
|
312
|
+
// theme), deep-merged on top of the preset - only the keys actually
|
|
313
|
+
// overridden need to be present.
|
|
314
|
+
theme?: {
|
|
315
|
+
preset: string
|
|
316
|
+
overrides: Record<string, any>
|
|
317
|
+
} | null
|
|
318
|
+
|
|
319
|
+
// Edited: Ferjolt Ozuni - Date: 2026-08-08
|
|
320
|
+
// Per-provider AI configuration - see obtapi's Labels\AdminController::
|
|
321
|
+
// ai() and Libraries\AI\Resolver. 'main' status is only ever meaningful
|
|
322
|
+
// on a non-main label (borrow the platform's key for that provider);
|
|
323
|
+
// labels_allowed is only ever meaningful on the main label (whether
|
|
324
|
+
// other labels may borrow THIS key). api_key/models/default_model are
|
|
325
|
+
// only present once status is 'dedicated'.
|
|
326
|
+
ai?: {
|
|
327
|
+
providers: Record<string, {
|
|
328
|
+
status: 'disabled' | 'dedicated' | 'main'
|
|
329
|
+
api_key?: string
|
|
330
|
+
models?: string[]
|
|
331
|
+
default_model?: string
|
|
332
|
+
labels_allowed?: boolean
|
|
333
|
+
}>
|
|
334
|
+
default_provider?: string
|
|
335
|
+
}
|
|
305
336
|
}
|
|
306
337
|
|
|
307
338
|
// Edited: Ferjolt Ozuni - Date: 2026-07-18
|