@sudobility/screenwriter_types 0.1.2 → 0.1.3

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.
@@ -14,8 +14,16 @@ export interface TemplateSummary {
14
14
  latestVersion: number;
15
15
  /** A first-page thumbnail was rendered (`template.thumbnail` job). Built-ins use static assets, so this is false for them. */
16
16
  hasThumbnail: boolean;
17
+ /**
18
+ * BCP-47 (writing_core's `TemplateJSON.locale`), set only for `scope: 'builtin'` — the catalogue's language
19
+ * variants (screenplay-standard, tv-one-hour, ...) each carry one. `user`/`workspace` templates have no locale
20
+ * concept (they're the caller's own authored content, not language variants of a catalog) and never set this.
21
+ */
22
+ locale?: string;
17
23
  }
18
- /** `GET /templates` query: user templates always; `workspaceId` adds that workspace's; `scope` narrows. */
24
+ /** `GET /templates` query: user templates always; `workspaceId` adds that workspace's; `scope` narrows.
25
+ * `locale` filters built-ins to one BCP-47 language (e.g. the app's current UI language); user/workspace templates
26
+ * are never filtered by it, since they have no locale of their own. */
19
27
  export declare const templateListQuerySchema: z.ZodObject<{
20
28
  category: z.ZodOptional<z.ZodString>;
21
29
  workspaceId: z.ZodOptional<z.ZodString>;
@@ -24,6 +32,7 @@ export declare const templateListQuerySchema: z.ZodObject<{
24
32
  builtin: "builtin";
25
33
  user: "user";
26
34
  }>>;
35
+ locale: z.ZodOptional<z.ZodString>;
27
36
  }, z.core.$strip>;
28
37
  export type TemplateListQuery = z.infer<typeof templateListQuerySchema>;
29
38
  /** `GET /templates/:tid?version=`: an older version of a user/workspace template (immutable). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudobility/screenwriter_types",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Shared TypeScript types and Zod schemas for the Fadewright frontend and backend",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",