@localness/contract 0.4.3 → 0.4.4
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.d.mts +17 -1
- package/dist/index.mjs +14 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -442,4 +442,20 @@ export declare const keyNameSuggestionSchema: z.ZodObject<{
|
|
|
442
442
|
sameSourceText: z.ZodBoolean;
|
|
443
443
|
}, z.core.$strip>>;
|
|
444
444
|
}, z.core.$strip>;
|
|
445
|
-
export type KeyNameSuggestion = z.infer<typeof keyNameSuggestionSchema>;
|
|
445
|
+
export type KeyNameSuggestion = z.infer<typeof keyNameSuggestionSchema>;
|
|
446
|
+
/**
|
|
447
|
+
* `GET /api/v1/key-convention` — the project's key naming rules, so a client
|
|
448
|
+
* can name keys itself instead of calling `suggest-name` once per text.
|
|
449
|
+
* `prefix` is without its trailing separator; `''` means no prefix.
|
|
450
|
+
*/
|
|
451
|
+
export declare const keyConventionSchema: z.ZodObject<{
|
|
452
|
+
prefix: z.ZodString;
|
|
453
|
+
separator: z.ZodString;
|
|
454
|
+
style: z.ZodEnum<{
|
|
455
|
+
snake_case: "snake_case";
|
|
456
|
+
camelCase: "camelCase";
|
|
457
|
+
}>;
|
|
458
|
+
maxDepth: z.ZodNumber;
|
|
459
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
460
|
+
}, z.core.$strip>;
|
|
461
|
+
export type KeyConventionInfo = z.infer<typeof keyConventionSchema>;
|
package/dist/index.mjs
CHANGED
|
@@ -314,4 +314,17 @@ const keyNameSuggestionSchema = z.object({
|
|
|
314
314
|
sameSourceText: z.boolean()
|
|
315
315
|
}))
|
|
316
316
|
});
|
|
317
|
-
|
|
317
|
+
/**
|
|
318
|
+
* `GET /api/v1/key-convention` — the project's key naming rules, so a client
|
|
319
|
+
* can name keys itself instead of calling `suggest-name` once per text.
|
|
320
|
+
* `prefix` is without its trailing separator; `''` means no prefix.
|
|
321
|
+
*/
|
|
322
|
+
const keyConventionSchema = z.object({
|
|
323
|
+
prefix: z.string(),
|
|
324
|
+
separator: z.string(),
|
|
325
|
+
style: z.enum(["snake_case", "camelCase"]),
|
|
326
|
+
maxDepth: z.number(),
|
|
327
|
+
/** The project's naming guidance for the AI, or null when unset. */
|
|
328
|
+
prompt: z.string().nullable()
|
|
329
|
+
});
|
|
330
|
+
export { captureKeyHitSchema, captureKeySearchSchema, captureMatchSchema, capturePageSchema, captureTagSchema, createPageResultSchema, deleteTagsResultSchema, deliveryBundleSchema, deliveryKeyStateSchema, deliveryKeyStatesSchema, deliveryKeysSchema, deliveryLocaleSchema, deliveryLocaleStateNameSchema, deliveryMetaSchema, deliveryOutdatedSchema, deliveryProjectRefSchema, deliveryProjectsSchema, i18nKeyNamespaceCountsSchema, idSchema, importPageResultSchema, importPageTagsSchema, importedTagSchema, keyConventionSchema, keyDraftConflictSchema, keyNameSuggestionSchema, keyNamespaceSchema, keyViolationSchema, keyWriteResultSchema, projectReleaseSchema, releaseMembershipResultSchema, uploadResultSchema };
|
package/package.json
CHANGED