@stina/extension-api 1.16.0 → 1.17.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/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/runtime.d.cts +2 -2
- package/dist/runtime.d.ts +2 -2
- package/dist/schemas/index.cjs +5 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +15 -0
- package/dist/schemas/index.d.ts +15 -0
- package/dist/schemas/index.js +5 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/{types.tools-CK0As7KV.d.cts → types.tools-DswDxtun.d.cts} +26 -1
- package/dist/{types.tools-CK0As7KV.d.ts → types.tools-DswDxtun.d.ts} +26 -1
- package/package.json +1 -1
- package/schema/extension-manifest.schema.json +4 -0
- package/src/index.ts +2 -0
- package/src/schemas/contributions.schema.ts +8 -0
- package/src/types.contributions.ts +32 -0
- package/src/types.ts +2 -0
package/dist/schemas/index.d.cts
CHANGED
|
@@ -70,6 +70,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
70
70
|
id: z.ZodString;
|
|
71
71
|
title: z.ZodString;
|
|
72
72
|
description: z.ZodOptional<z.ZodString>;
|
|
73
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
73
74
|
view: z.ZodUnion<[z.ZodObject<{
|
|
74
75
|
kind: z.ZodLiteral<"list">;
|
|
75
76
|
listToolId: z.ZodString;
|
|
@@ -294,6 +295,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
294
295
|
}> | undefined;
|
|
295
296
|
};
|
|
296
297
|
description?: string | undefined;
|
|
298
|
+
topic?: string | undefined;
|
|
297
299
|
}, {
|
|
298
300
|
title: string;
|
|
299
301
|
id: string;
|
|
@@ -341,6 +343,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
341
343
|
}> | undefined;
|
|
342
344
|
};
|
|
343
345
|
description?: string | undefined;
|
|
346
|
+
topic?: string | undefined;
|
|
344
347
|
}>, "many">>;
|
|
345
348
|
panels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
346
349
|
id: z.ZodString;
|
|
@@ -730,6 +733,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
730
733
|
}> | undefined;
|
|
731
734
|
};
|
|
732
735
|
description?: string | undefined;
|
|
736
|
+
topic?: string | undefined;
|
|
733
737
|
}[] | undefined;
|
|
734
738
|
panels?: {
|
|
735
739
|
title: string;
|
|
@@ -863,6 +867,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
863
867
|
}> | undefined;
|
|
864
868
|
};
|
|
865
869
|
description?: string | undefined;
|
|
870
|
+
topic?: string | undefined;
|
|
866
871
|
}[] | undefined;
|
|
867
872
|
panels?: {
|
|
868
873
|
title: string;
|
|
@@ -1015,6 +1020,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
1015
1020
|
}> | undefined;
|
|
1016
1021
|
};
|
|
1017
1022
|
description?: string | undefined;
|
|
1023
|
+
topic?: string | undefined;
|
|
1018
1024
|
}[] | undefined;
|
|
1019
1025
|
panels?: {
|
|
1020
1026
|
title: string;
|
|
@@ -1167,6 +1173,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
1167
1173
|
}> | undefined;
|
|
1168
1174
|
};
|
|
1169
1175
|
description?: string | undefined;
|
|
1176
|
+
topic?: string | undefined;
|
|
1170
1177
|
}[] | undefined;
|
|
1171
1178
|
panels?: {
|
|
1172
1179
|
title: string;
|
|
@@ -1741,6 +1748,7 @@ declare const ToolSettingsViewDefinitionSchema: z.ZodObject<{
|
|
|
1741
1748
|
id: z.ZodString;
|
|
1742
1749
|
title: z.ZodString;
|
|
1743
1750
|
description: z.ZodOptional<z.ZodString>;
|
|
1751
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
1744
1752
|
view: z.ZodUnion<[z.ZodObject<{
|
|
1745
1753
|
kind: z.ZodLiteral<"list">;
|
|
1746
1754
|
listToolId: z.ZodString;
|
|
@@ -1965,6 +1973,7 @@ declare const ToolSettingsViewDefinitionSchema: z.ZodObject<{
|
|
|
1965
1973
|
}> | undefined;
|
|
1966
1974
|
};
|
|
1967
1975
|
description?: string | undefined;
|
|
1976
|
+
topic?: string | undefined;
|
|
1968
1977
|
}, {
|
|
1969
1978
|
title: string;
|
|
1970
1979
|
id: string;
|
|
@@ -2012,6 +2021,7 @@ declare const ToolSettingsViewDefinitionSchema: z.ZodObject<{
|
|
|
2012
2021
|
}> | undefined;
|
|
2013
2022
|
};
|
|
2014
2023
|
description?: string | undefined;
|
|
2024
|
+
topic?: string | undefined;
|
|
2015
2025
|
}>;
|
|
2016
2026
|
/**
|
|
2017
2027
|
* Action-based data source for panels
|
|
@@ -2541,6 +2551,7 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2541
2551
|
id: z.ZodString;
|
|
2542
2552
|
title: z.ZodString;
|
|
2543
2553
|
description: z.ZodOptional<z.ZodString>;
|
|
2554
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
2544
2555
|
view: z.ZodUnion<[z.ZodObject<{
|
|
2545
2556
|
kind: z.ZodLiteral<"list">;
|
|
2546
2557
|
listToolId: z.ZodString;
|
|
@@ -2765,6 +2776,7 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2765
2776
|
}> | undefined;
|
|
2766
2777
|
};
|
|
2767
2778
|
description?: string | undefined;
|
|
2779
|
+
topic?: string | undefined;
|
|
2768
2780
|
}, {
|
|
2769
2781
|
title: string;
|
|
2770
2782
|
id: string;
|
|
@@ -2812,6 +2824,7 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2812
2824
|
}> | undefined;
|
|
2813
2825
|
};
|
|
2814
2826
|
description?: string | undefined;
|
|
2827
|
+
topic?: string | undefined;
|
|
2815
2828
|
}>, "many">>;
|
|
2816
2829
|
panels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2817
2830
|
id: z.ZodString;
|
|
@@ -3201,6 +3214,7 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
3201
3214
|
}> | undefined;
|
|
3202
3215
|
};
|
|
3203
3216
|
description?: string | undefined;
|
|
3217
|
+
topic?: string | undefined;
|
|
3204
3218
|
}[] | undefined;
|
|
3205
3219
|
panels?: {
|
|
3206
3220
|
title: string;
|
|
@@ -3334,6 +3348,7 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
3334
3348
|
}> | undefined;
|
|
3335
3349
|
};
|
|
3336
3350
|
description?: string | undefined;
|
|
3351
|
+
topic?: string | undefined;
|
|
3337
3352
|
}[] | undefined;
|
|
3338
3353
|
panels?: {
|
|
3339
3354
|
title: string;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
70
70
|
id: z.ZodString;
|
|
71
71
|
title: z.ZodString;
|
|
72
72
|
description: z.ZodOptional<z.ZodString>;
|
|
73
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
73
74
|
view: z.ZodUnion<[z.ZodObject<{
|
|
74
75
|
kind: z.ZodLiteral<"list">;
|
|
75
76
|
listToolId: z.ZodString;
|
|
@@ -294,6 +295,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
294
295
|
}> | undefined;
|
|
295
296
|
};
|
|
296
297
|
description?: string | undefined;
|
|
298
|
+
topic?: string | undefined;
|
|
297
299
|
}, {
|
|
298
300
|
title: string;
|
|
299
301
|
id: string;
|
|
@@ -341,6 +343,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
341
343
|
}> | undefined;
|
|
342
344
|
};
|
|
343
345
|
description?: string | undefined;
|
|
346
|
+
topic?: string | undefined;
|
|
344
347
|
}>, "many">>;
|
|
345
348
|
panels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
346
349
|
id: z.ZodString;
|
|
@@ -730,6 +733,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
730
733
|
}> | undefined;
|
|
731
734
|
};
|
|
732
735
|
description?: string | undefined;
|
|
736
|
+
topic?: string | undefined;
|
|
733
737
|
}[] | undefined;
|
|
734
738
|
panels?: {
|
|
735
739
|
title: string;
|
|
@@ -863,6 +867,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
863
867
|
}> | undefined;
|
|
864
868
|
};
|
|
865
869
|
description?: string | undefined;
|
|
870
|
+
topic?: string | undefined;
|
|
866
871
|
}[] | undefined;
|
|
867
872
|
panels?: {
|
|
868
873
|
title: string;
|
|
@@ -1015,6 +1020,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
1015
1020
|
}> | undefined;
|
|
1016
1021
|
};
|
|
1017
1022
|
description?: string | undefined;
|
|
1023
|
+
topic?: string | undefined;
|
|
1018
1024
|
}[] | undefined;
|
|
1019
1025
|
panels?: {
|
|
1020
1026
|
title: string;
|
|
@@ -1167,6 +1173,7 @@ declare const ExtensionManifestSchema: z.ZodObject<{
|
|
|
1167
1173
|
}> | undefined;
|
|
1168
1174
|
};
|
|
1169
1175
|
description?: string | undefined;
|
|
1176
|
+
topic?: string | undefined;
|
|
1170
1177
|
}[] | undefined;
|
|
1171
1178
|
panels?: {
|
|
1172
1179
|
title: string;
|
|
@@ -1741,6 +1748,7 @@ declare const ToolSettingsViewDefinitionSchema: z.ZodObject<{
|
|
|
1741
1748
|
id: z.ZodString;
|
|
1742
1749
|
title: z.ZodString;
|
|
1743
1750
|
description: z.ZodOptional<z.ZodString>;
|
|
1751
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
1744
1752
|
view: z.ZodUnion<[z.ZodObject<{
|
|
1745
1753
|
kind: z.ZodLiteral<"list">;
|
|
1746
1754
|
listToolId: z.ZodString;
|
|
@@ -1965,6 +1973,7 @@ declare const ToolSettingsViewDefinitionSchema: z.ZodObject<{
|
|
|
1965
1973
|
}> | undefined;
|
|
1966
1974
|
};
|
|
1967
1975
|
description?: string | undefined;
|
|
1976
|
+
topic?: string | undefined;
|
|
1968
1977
|
}, {
|
|
1969
1978
|
title: string;
|
|
1970
1979
|
id: string;
|
|
@@ -2012,6 +2021,7 @@ declare const ToolSettingsViewDefinitionSchema: z.ZodObject<{
|
|
|
2012
2021
|
}> | undefined;
|
|
2013
2022
|
};
|
|
2014
2023
|
description?: string | undefined;
|
|
2024
|
+
topic?: string | undefined;
|
|
2015
2025
|
}>;
|
|
2016
2026
|
/**
|
|
2017
2027
|
* Action-based data source for panels
|
|
@@ -2541,6 +2551,7 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2541
2551
|
id: z.ZodString;
|
|
2542
2552
|
title: z.ZodString;
|
|
2543
2553
|
description: z.ZodOptional<z.ZodString>;
|
|
2554
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
2544
2555
|
view: z.ZodUnion<[z.ZodObject<{
|
|
2545
2556
|
kind: z.ZodLiteral<"list">;
|
|
2546
2557
|
listToolId: z.ZodString;
|
|
@@ -2765,6 +2776,7 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2765
2776
|
}> | undefined;
|
|
2766
2777
|
};
|
|
2767
2778
|
description?: string | undefined;
|
|
2779
|
+
topic?: string | undefined;
|
|
2768
2780
|
}, {
|
|
2769
2781
|
title: string;
|
|
2770
2782
|
id: string;
|
|
@@ -2812,6 +2824,7 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
2812
2824
|
}> | undefined;
|
|
2813
2825
|
};
|
|
2814
2826
|
description?: string | undefined;
|
|
2827
|
+
topic?: string | undefined;
|
|
2815
2828
|
}>, "many">>;
|
|
2816
2829
|
panels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2817
2830
|
id: z.ZodString;
|
|
@@ -3201,6 +3214,7 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
3201
3214
|
}> | undefined;
|
|
3202
3215
|
};
|
|
3203
3216
|
description?: string | undefined;
|
|
3217
|
+
topic?: string | undefined;
|
|
3204
3218
|
}[] | undefined;
|
|
3205
3219
|
panels?: {
|
|
3206
3220
|
title: string;
|
|
@@ -3334,6 +3348,7 @@ declare const ExtensionContributionsSchema: z.ZodObject<{
|
|
|
3334
3348
|
}> | undefined;
|
|
3335
3349
|
};
|
|
3336
3350
|
description?: string | undefined;
|
|
3351
|
+
topic?: string | undefined;
|
|
3337
3352
|
}[] | undefined;
|
|
3338
3353
|
panels?: {
|
|
3339
3354
|
title: string;
|
package/dist/schemas/index.js
CHANGED
|
@@ -638,6 +638,11 @@ var ToolSettingsViewDefinitionSchema = z3.object({
|
|
|
638
638
|
id: z3.string().describe("Unique view ID within the extension"),
|
|
639
639
|
title: z3.string().describe("Display title"),
|
|
640
640
|
description: z3.string().optional().describe("Help text"),
|
|
641
|
+
// A string rather than the known topics: one this host does not know yet must not stop
|
|
642
|
+
// the extension installing, it only lands on the extension's own page.
|
|
643
|
+
topic: z3.string().optional().describe(
|
|
644
|
+
"What the view is about, which decides where Stina shows it: accounts, notifications, personal or tracking. Without one, or with one Stina does not know, the view is shown on the extension's own page."
|
|
645
|
+
),
|
|
641
646
|
view: ToolSettingsViewSchema.describe("View configuration")
|
|
642
647
|
}).describe("Tool settings view definition");
|
|
643
648
|
var PanelActionDataSourceSchema = z3.object({
|