@authup/i18n 1.0.0-beta.45
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/LICENSE +201 -0
- package/dist/catalogs/de/action.d.ts +4 -0
- package/dist/catalogs/de/action.d.ts.map +1 -0
- package/dist/catalogs/de/app.d.ts +4 -0
- package/dist/catalogs/de/app.d.ts.map +1 -0
- package/dist/catalogs/de/client.d.ts +4 -0
- package/dist/catalogs/de/client.d.ts.map +1 -0
- package/dist/catalogs/de/common.d.ts +4 -0
- package/dist/catalogs/de/common.d.ts.map +1 -0
- package/dist/catalogs/de/entity.d.ts +4 -0
- package/dist/catalogs/de/entity.d.ts.map +1 -0
- package/dist/catalogs/de/error.d.ts +4 -0
- package/dist/catalogs/de/error.d.ts.map +1 -0
- package/dist/catalogs/de/field.d.ts +4 -0
- package/dist/catalogs/de/field.d.ts.map +1 -0
- package/dist/catalogs/de/index.d.ts +9 -0
- package/dist/catalogs/de/index.d.ts.map +1 -0
- package/dist/catalogs/de/vuecs.d.ts +4 -0
- package/dist/catalogs/de/vuecs.d.ts.map +1 -0
- package/dist/catalogs/en/action.d.ts +4 -0
- package/dist/catalogs/en/action.d.ts.map +1 -0
- package/dist/catalogs/en/app.d.ts +4 -0
- package/dist/catalogs/en/app.d.ts.map +1 -0
- package/dist/catalogs/en/client.d.ts +4 -0
- package/dist/catalogs/en/client.d.ts.map +1 -0
- package/dist/catalogs/en/common.d.ts +4 -0
- package/dist/catalogs/en/common.d.ts.map +1 -0
- package/dist/catalogs/en/entity.d.ts +4 -0
- package/dist/catalogs/en/entity.d.ts.map +1 -0
- package/dist/catalogs/en/error.d.ts +4 -0
- package/dist/catalogs/en/error.d.ts.map +1 -0
- package/dist/catalogs/en/field.d.ts +4 -0
- package/dist/catalogs/en/field.d.ts.map +1 -0
- package/dist/catalogs/en/index.d.ts +9 -0
- package/dist/catalogs/en/index.d.ts.map +1 -0
- package/dist/catalogs/en/vuecs.d.ts +4 -0
- package/dist/catalogs/en/vuecs.d.ts.map +1 -0
- package/dist/catalogs/es/action.d.ts +4 -0
- package/dist/catalogs/es/action.d.ts.map +1 -0
- package/dist/catalogs/es/app.d.ts +4 -0
- package/dist/catalogs/es/app.d.ts.map +1 -0
- package/dist/catalogs/es/client.d.ts +4 -0
- package/dist/catalogs/es/client.d.ts.map +1 -0
- package/dist/catalogs/es/common.d.ts +4 -0
- package/dist/catalogs/es/common.d.ts.map +1 -0
- package/dist/catalogs/es/entity.d.ts +4 -0
- package/dist/catalogs/es/entity.d.ts.map +1 -0
- package/dist/catalogs/es/error.d.ts +4 -0
- package/dist/catalogs/es/error.d.ts.map +1 -0
- package/dist/catalogs/es/field.d.ts +4 -0
- package/dist/catalogs/es/field.d.ts.map +1 -0
- package/dist/catalogs/es/index.d.ts +9 -0
- package/dist/catalogs/es/index.d.ts.map +1 -0
- package/dist/catalogs/es/vuecs.d.ts +4 -0
- package/dist/catalogs/es/vuecs.d.ts.map +1 -0
- package/dist/catalogs/fr/action.d.ts +4 -0
- package/dist/catalogs/fr/action.d.ts.map +1 -0
- package/dist/catalogs/fr/app.d.ts +4 -0
- package/dist/catalogs/fr/app.d.ts.map +1 -0
- package/dist/catalogs/fr/client.d.ts +4 -0
- package/dist/catalogs/fr/client.d.ts.map +1 -0
- package/dist/catalogs/fr/common.d.ts +4 -0
- package/dist/catalogs/fr/common.d.ts.map +1 -0
- package/dist/catalogs/fr/entity.d.ts +4 -0
- package/dist/catalogs/fr/entity.d.ts.map +1 -0
- package/dist/catalogs/fr/error.d.ts +4 -0
- package/dist/catalogs/fr/error.d.ts.map +1 -0
- package/dist/catalogs/fr/field.d.ts +4 -0
- package/dist/catalogs/fr/field.d.ts.map +1 -0
- package/dist/catalogs/fr/index.d.ts +9 -0
- package/dist/catalogs/fr/index.d.ts.map +1 -0
- package/dist/catalogs/fr/vuecs.d.ts +4 -0
- package/dist/catalogs/fr/vuecs.d.ts.map +1 -0
- package/dist/catalogs/index.d.ts +20 -0
- package/dist/catalogs/index.d.ts.map +1 -0
- package/dist/constants.d.ts +145 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/error.d.ts +64 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/index.d.mts +381 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +970 -0
- package/dist/index.mjs.map +1 -0
- package/dist/locales.d.ts +37 -0
- package/dist/locales.d.ts.map +1 -0
- package/dist/types.d.ts +14 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/catalogs/index.ts"],"names":[],"mappings":"AAqEA,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AACrB,cAAc,MAAM,CAAC;AAuCrB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,8BAyCnB,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Catalog namespace names. Mirrors ilingo 6's catalog terminology —
|
|
3
|
+
* namespaces are the dotted root paths under each locale.
|
|
4
|
+
*
|
|
5
|
+
* The `validup` namespace (validation-message catalogs for `IssueCode`
|
|
6
|
+
* keys) is registered automatically by `@ilingo/validup-vue`'s install
|
|
7
|
+
* and is **not** part of this enum. The `ERROR` namespace below holds
|
|
8
|
+
* authup's own domain error-code messages (keyed by `@authup/errors`'
|
|
9
|
+
* `ErrorCode`), resolved client-side from a server error's code + data.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum TranslatorTranslationNamespace {
|
|
12
|
+
ENTITY = "authupEntity",
|
|
13
|
+
FIELD = "authupField",
|
|
14
|
+
ACTION = "authupAction",
|
|
15
|
+
COMMON = "authupCommon",
|
|
16
|
+
CLIENT = "authupClient",
|
|
17
|
+
VUECS = "vuecs",
|
|
18
|
+
ERROR = "authupError",
|
|
19
|
+
APP = "authupApp"
|
|
20
|
+
}
|
|
21
|
+
export declare enum TranslatorTranslationVuecsKey {
|
|
22
|
+
NO_MORE = "noMore"
|
|
23
|
+
}
|
|
24
|
+
export declare enum TranslatorTranslationClientKey {
|
|
25
|
+
NAME_HINT = "nameHint",
|
|
26
|
+
DESCRIPTION_HINT = "descriptionHint",
|
|
27
|
+
REDIRECT_URI_HINT = "redirectURIHint",
|
|
28
|
+
IS_CONFIDENTIAL = "isConfidential",
|
|
29
|
+
IS_ACTIVE = "isActive",
|
|
30
|
+
HASH_SECRET = "hashSecret",
|
|
31
|
+
LOGIN_FAILED = "loginFailed",
|
|
32
|
+
SCOPE_GRANT_INTRO = "scopeGrantIntro",
|
|
33
|
+
ONCE_AUTHORIZED_REDIRECT = "onceAuthorizedRedirect",
|
|
34
|
+
GOVERNED_BY = "governedBy",
|
|
35
|
+
ACTIVE_SINCE = "activeSince",
|
|
36
|
+
VIEW_POLICY_DETAILS = "viewPolicyDetails"
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* App-only chrome: navigation labels, page-title decoration
|
|
40
|
+
* (management/details), the sidebar session countdown, header
|
|
41
|
+
* accessibility labels, and the parameterized success toasts. These live
|
|
42
|
+
* apart from the shared entity/field/action/common namespaces because
|
|
43
|
+
* they are consumed exclusively by `apps/client-web`, never by the
|
|
44
|
+
* reusable `@authup/client-web-kit` components.
|
|
45
|
+
*/
|
|
46
|
+
export declare enum TranslatorTranslationAppKey {
|
|
47
|
+
HOME = "home",
|
|
48
|
+
RESOURCES = "resources",
|
|
49
|
+
GENERAL = "general",
|
|
50
|
+
OTHER = "other",
|
|
51
|
+
SETTINGS = "settings",
|
|
52
|
+
LOGOUT = "logout",
|
|
53
|
+
ACCOUNT = "account",
|
|
54
|
+
SECURITY = "security",
|
|
55
|
+
MANAGEMENT = "management",
|
|
56
|
+
DETAILS = "details",
|
|
57
|
+
API_DOCS = "apiDocs",
|
|
58
|
+
MADE_WITH = "madeWith",
|
|
59
|
+
URL_GENERATOR = "urlGenerator",
|
|
60
|
+
URL_GENERATOR_HINT = "urlGeneratorHint",
|
|
61
|
+
REDIRECT_URL = "redirectUrl",
|
|
62
|
+
GENERATED_URL = "generatedUrl",
|
|
63
|
+
TOGGLE_NAVIGATION = "toggleNavigation",
|
|
64
|
+
SWITCH_TO_LIGHT_MODE = "switchToLightMode",
|
|
65
|
+
SWITCH_TO_DARK_MODE = "switchToDarkMode",
|
|
66
|
+
SESSION_RENEW = "sessionRenew",
|
|
67
|
+
MINUTES = "minutes",
|
|
68
|
+
SECONDS = "seconds",
|
|
69
|
+
ENTITY_CREATED = "entityCreated",
|
|
70
|
+
ENTITY_UPDATED = "entityUpdated",
|
|
71
|
+
ENTITY_DELETED = "entityDeleted",
|
|
72
|
+
ACCOUNT_UPDATED = "accountUpdated"
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Entity-type nouns. Each key resolves to an ilingo plural node, so the
|
|
76
|
+
* singular vs. plural form is selected by the `count` passed at the call
|
|
77
|
+
* site (`count: 1` → singular, any other → plural) rather than by a
|
|
78
|
+
* separate `*S` key. Registered under the `authupEntity` namespace.
|
|
79
|
+
*/
|
|
80
|
+
export declare enum TranslatorTranslationEntityKey {
|
|
81
|
+
CLIENT = "client",
|
|
82
|
+
IDENTITY_PROVIDER = "identityProvider",
|
|
83
|
+
PERMISSION = "permission",
|
|
84
|
+
POLICY = "policy",
|
|
85
|
+
REALM = "realm",
|
|
86
|
+
ROBOT = "robot",
|
|
87
|
+
ROLE = "role",
|
|
88
|
+
SCOPE = "scope",
|
|
89
|
+
USER = "user"
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Entity attribute / form-field labels. Registered under the
|
|
93
|
+
* `authupField` namespace.
|
|
94
|
+
*/
|
|
95
|
+
export declare enum TranslatorTranslationFieldKey {
|
|
96
|
+
NAME = "name",
|
|
97
|
+
DISPLAY_NAME = "displayName",
|
|
98
|
+
EMAIL = "email",
|
|
99
|
+
EXTERNAL_ID = "externalId",
|
|
100
|
+
DESCRIPTION = "description",
|
|
101
|
+
SECRET = "secret",
|
|
102
|
+
REDIRECT_URIS = "redirectUris",
|
|
103
|
+
PASSWORD = "password",
|
|
104
|
+
DECISION_STRATEGY = "decisionStrategy",
|
|
105
|
+
HASHED = "hashed",
|
|
106
|
+
URL = "url",
|
|
107
|
+
CLIENT_SCOPES = "clientScopes",
|
|
108
|
+
START = "start",
|
|
109
|
+
END = "end",
|
|
110
|
+
INTERVAL = "interval",
|
|
111
|
+
DAY_OF_WEEK = "dayOfWeek",
|
|
112
|
+
DAY_OF_MONTH = "dayOfMonth",
|
|
113
|
+
DAY_OF_YEAR = "dayOfYear",
|
|
114
|
+
VALUE_IS_REGEX = "valueIsRegex"
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Action verbs / button labels. Registered under the `authupAction`
|
|
118
|
+
* namespace.
|
|
119
|
+
*/
|
|
120
|
+
export declare enum TranslatorTranslationActionKey {
|
|
121
|
+
ADD = "add",
|
|
122
|
+
CREATE = "create",
|
|
123
|
+
DELETE = "delete",
|
|
124
|
+
GENERATE = "generate",
|
|
125
|
+
UPDATE = "update",
|
|
126
|
+
AUTHORIZE = "authorize",
|
|
127
|
+
ABORT = "abort",
|
|
128
|
+
LOGIN = "login"
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Generic UI vocabulary that is neither an entity noun, a field label,
|
|
132
|
+
* nor an action: page-section labels, status terms, and misc. Registered
|
|
133
|
+
* under the `authupCommon` namespace.
|
|
134
|
+
*/
|
|
135
|
+
export declare enum TranslatorTranslationCommonKey {
|
|
136
|
+
GENERAL = "general",
|
|
137
|
+
OVERVIEW = "overview",
|
|
138
|
+
LOADING = "loading",
|
|
139
|
+
ACTIVE = "active",
|
|
140
|
+
INACTIVE = "inactive",
|
|
141
|
+
LOCKED = "locked",
|
|
142
|
+
NOT_LOCKED = "notLocked",
|
|
143
|
+
APPLICATION = "application"
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAOA;;;;;;;;;GASG;AACH,oBAAY,8BAA8B;IACtC,MAAM,iBAAiB;IAEvB,KAAK,gBAAgB;IAErB,MAAM,iBAAiB;IAEvB,MAAM,iBAAiB;IAEvB,MAAM,iBAAiB;IAEvB,KAAK,UAAU;IAEf,KAAK,gBAAgB;IAErB,GAAG,cAAc;CACpB;AAED,oBAAY,6BAA6B;IACrC,OAAO,WAAW;CACrB;AAED,oBAAY,8BAA8B;IACtC,SAAS,aAAa;IACtB,gBAAgB,oBAAoB;IACpC,iBAAiB,oBAAoB;IACrC,eAAe,mBAAmB;IAClC,SAAS,aAAa;IACtB,WAAW,eAAe;IAE1B,YAAY,gBAAgB;IAC5B,iBAAiB,oBAAoB;IACrC,wBAAwB,2BAA2B;IACnD,WAAW,eAAe;IAC1B,YAAY,gBAAgB;IAC5B,mBAAmB,sBAAsB;CAC5C;AAED;;;;;;;GAOG;AACH,oBAAY,2BAA2B;IACnC,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,QAAQ,aAAa;IAErB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,QAAQ,YAAY;IACpB,SAAS,aAAa;IAEtB,aAAa,iBAAiB;IAC9B,kBAAkB,qBAAqB;IACvC,YAAY,gBAAgB;IAC5B,aAAa,iBAAiB;IAE9B,iBAAiB,qBAAqB;IACtC,oBAAoB,sBAAsB;IAC1C,mBAAmB,qBAAqB;IAExC,aAAa,iBAAiB;IAC9B,OAAO,YAAY;IACnB,OAAO,YAAY;IAEnB,cAAc,kBAAkB;IAChC,cAAc,kBAAkB;IAChC,cAAc,kBAAkB;IAChC,eAAe,mBAAmB;CACrC;AAED;;;;;GAKG;AACH,oBAAY,8BAA8B;IACtC,MAAM,WAAW;IACjB,iBAAiB,qBAAqB;IACtC,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,IAAI,SAAS;CAChB;AAED;;;GAGG;AACH,oBAAY,6BAA6B;IACrC,IAAI,SAAS;IACb,YAAY,gBAAgB;IAC5B,KAAK,UAAU;IACf,WAAW,eAAe;IAC1B,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,aAAa,iBAAiB;IAC9B,QAAQ,aAAa;IACrB,iBAAiB,qBAAqB;IACtC,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,aAAa,iBAAiB;IAC9B,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,WAAW,cAAc;IACzB,YAAY,eAAe;IAC3B,WAAW,cAAc;IACzB,cAAc,iBAAiB;CAClC;AAED;;;GAGG;AACH,oBAAY,8BAA8B;IACtC,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED;;;;GAIG;AACH,oBAAY,8BAA8B;IACtC,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,cAAc;IACxB,WAAW,gBAAgB;CAC9B"}
|
package/dist/error.d.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* B1 — authup domain errors are represented as validup-style issues so
|
|
3
|
+
* the client can reuse the issue → message machinery (structured `code`
|
|
4
|
+
* + `data`, `{{param}}` interpolation) instead of a bespoke pipeline.
|
|
5
|
+
*
|
|
6
|
+
* The messages live under their own ilingo namespace
|
|
7
|
+
* (`TranslatorTranslationNamespace.ERROR`, value `authupError`) — a
|
|
8
|
+
* *sibling* of validup's own `validup` namespace rather than merged into
|
|
9
|
+
* it, so `@ilingo/validup-vue`'s install can't overwrite authup codes
|
|
10
|
+
* (and vice versa). `translateError()` (in `@authup/client-web-kit`,
|
|
11
|
+
* wired in a later phase) resolves a server error's `code` + `data`
|
|
12
|
+
* against this namespace.
|
|
13
|
+
*
|
|
14
|
+
* The catalog is keyed by `@authup/errors`' `ErrorCode` values. The
|
|
15
|
+
* `AuthupErrorData` map below is the typed *producer* contract — the
|
|
16
|
+
* structured data each code may carry on the wire — and the
|
|
17
|
+
* `declare module 'validup'` block augments validup's `IssueDataByCode`
|
|
18
|
+
* wherever this package is imported. Today that is the client only
|
|
19
|
+
* (`@authup/client-web-kit` re-exports this module, so `translateError()`
|
|
20
|
+
* and any client-side issue construction get the typed `data`). It does
|
|
21
|
+
* **not** reach server-side producers: `apps/server-core` does not depend
|
|
22
|
+
* on `@authup/i18n`. If typed `defineIssueItem` / `createValidupError`
|
|
23
|
+
* on the server is wanted, the augmentation must move to `@authup/errors`
|
|
24
|
+
* (which the server already depends on). Codes absent from the map carry
|
|
25
|
+
* no data and are used as bare string codes (`IssueItem.code` is widened
|
|
26
|
+
* to `string & {}`).
|
|
27
|
+
*
|
|
28
|
+
* The shipped catalog messages are intentionally *generic* (no
|
|
29
|
+
* `{{param}}`), not because the data is unavailable but because ilingo's
|
|
30
|
+
* `template()` leaves an unknown data key in place verbatim — a message
|
|
31
|
+
* like `'The {{entity}} ...'` would render the literal `{{entity}}`
|
|
32
|
+
* whenever a producer omits it. Interpolating these params is therefore
|
|
33
|
+
* deferred to the (later-phase) `translateError()` resolver, which will
|
|
34
|
+
* merge per-code defaults before calling `get()` so a missing param can
|
|
35
|
+
* never leak. Until then the data rides along untranslated, ready for
|
|
36
|
+
* logging / richer UI, while the human-readable string stays safe.
|
|
37
|
+
*/
|
|
38
|
+
/**
|
|
39
|
+
* Interpolation params per parameterized `ErrorCode`. Keys are the
|
|
40
|
+
* literal `ErrorCode` values (kept in sync with `@authup/errors`).
|
|
41
|
+
*/
|
|
42
|
+
export type AuthupErrorData = {
|
|
43
|
+
entity_not_found: {
|
|
44
|
+
entity?: string;
|
|
45
|
+
};
|
|
46
|
+
entity_conflict: {
|
|
47
|
+
entity?: string;
|
|
48
|
+
};
|
|
49
|
+
invalid_scope: {
|
|
50
|
+
scope?: string;
|
|
51
|
+
};
|
|
52
|
+
insufficient_scope: {
|
|
53
|
+
scope?: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
declare module 'validup' {
|
|
57
|
+
interface IssueDataByCode {
|
|
58
|
+
entity_not_found: AuthupErrorData['entity_not_found'];
|
|
59
|
+
entity_conflict: AuthupErrorData['entity_conflict'];
|
|
60
|
+
invalid_scope: AuthupErrorData['invalid_scope'];
|
|
61
|
+
insufficient_scope: AuthupErrorData['insufficient_scope'];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC1B,gBAAgB,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC,eAAe,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACrC,aAAa,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,kBAAkB,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1C,CAAC;AAEF,OAAO,QAAQ,SAAS,CAAC;IACrB,UAAU,eAAe;QACrB,gBAAgB,EAAE,eAAe,CAAC,kBAAkB,CAAC,CAAC;QACtD,eAAe,EAAE,eAAe,CAAC,iBAAiB,CAAC,CAAC;QACpD,aAAa,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;QAChD,kBAAkB,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAC;KAC7D;CACJ"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { PluralNode } from "ilingo";
|
|
2
|
+
import { ErrorCode } from "@authup/errors";
|
|
3
|
+
|
|
4
|
+
//#region src/constants.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Catalog namespace names. Mirrors ilingo 6's catalog terminology —
|
|
7
|
+
* namespaces are the dotted root paths under each locale.
|
|
8
|
+
*
|
|
9
|
+
* The `validup` namespace (validation-message catalogs for `IssueCode`
|
|
10
|
+
* keys) is registered automatically by `@ilingo/validup-vue`'s install
|
|
11
|
+
* and is **not** part of this enum. The `ERROR` namespace below holds
|
|
12
|
+
* authup's own domain error-code messages (keyed by `@authup/errors`'
|
|
13
|
+
* `ErrorCode`), resolved client-side from a server error's code + data.
|
|
14
|
+
*/
|
|
15
|
+
declare enum TranslatorTranslationNamespace {
|
|
16
|
+
ENTITY = "authupEntity",
|
|
17
|
+
FIELD = "authupField",
|
|
18
|
+
ACTION = "authupAction",
|
|
19
|
+
COMMON = "authupCommon",
|
|
20
|
+
CLIENT = "authupClient",
|
|
21
|
+
VUECS = "vuecs",
|
|
22
|
+
ERROR = "authupError",
|
|
23
|
+
APP = "authupApp"
|
|
24
|
+
}
|
|
25
|
+
declare enum TranslatorTranslationVuecsKey {
|
|
26
|
+
NO_MORE = "noMore"
|
|
27
|
+
}
|
|
28
|
+
declare enum TranslatorTranslationClientKey {
|
|
29
|
+
NAME_HINT = "nameHint",
|
|
30
|
+
DESCRIPTION_HINT = "descriptionHint",
|
|
31
|
+
REDIRECT_URI_HINT = "redirectURIHint",
|
|
32
|
+
IS_CONFIDENTIAL = "isConfidential",
|
|
33
|
+
IS_ACTIVE = "isActive",
|
|
34
|
+
HASH_SECRET = "hashSecret",
|
|
35
|
+
LOGIN_FAILED = "loginFailed",
|
|
36
|
+
SCOPE_GRANT_INTRO = "scopeGrantIntro",
|
|
37
|
+
ONCE_AUTHORIZED_REDIRECT = "onceAuthorizedRedirect",
|
|
38
|
+
GOVERNED_BY = "governedBy",
|
|
39
|
+
ACTIVE_SINCE = "activeSince",
|
|
40
|
+
VIEW_POLICY_DETAILS = "viewPolicyDetails"
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* App-only chrome: navigation labels, page-title decoration
|
|
44
|
+
* (management/details), the sidebar session countdown, header
|
|
45
|
+
* accessibility labels, and the parameterized success toasts. These live
|
|
46
|
+
* apart from the shared entity/field/action/common namespaces because
|
|
47
|
+
* they are consumed exclusively by `apps/client-web`, never by the
|
|
48
|
+
* reusable `@authup/client-web-kit` components.
|
|
49
|
+
*/
|
|
50
|
+
declare enum TranslatorTranslationAppKey {
|
|
51
|
+
HOME = "home",
|
|
52
|
+
RESOURCES = "resources",
|
|
53
|
+
GENERAL = "general",
|
|
54
|
+
OTHER = "other",
|
|
55
|
+
SETTINGS = "settings",
|
|
56
|
+
LOGOUT = "logout",
|
|
57
|
+
ACCOUNT = "account",
|
|
58
|
+
SECURITY = "security",
|
|
59
|
+
MANAGEMENT = "management",
|
|
60
|
+
DETAILS = "details",
|
|
61
|
+
API_DOCS = "apiDocs",
|
|
62
|
+
MADE_WITH = "madeWith",
|
|
63
|
+
URL_GENERATOR = "urlGenerator",
|
|
64
|
+
URL_GENERATOR_HINT = "urlGeneratorHint",
|
|
65
|
+
REDIRECT_URL = "redirectUrl",
|
|
66
|
+
GENERATED_URL = "generatedUrl",
|
|
67
|
+
TOGGLE_NAVIGATION = "toggleNavigation",
|
|
68
|
+
SWITCH_TO_LIGHT_MODE = "switchToLightMode",
|
|
69
|
+
SWITCH_TO_DARK_MODE = "switchToDarkMode",
|
|
70
|
+
SESSION_RENEW = "sessionRenew",
|
|
71
|
+
MINUTES = "minutes",
|
|
72
|
+
SECONDS = "seconds",
|
|
73
|
+
ENTITY_CREATED = "entityCreated",
|
|
74
|
+
ENTITY_UPDATED = "entityUpdated",
|
|
75
|
+
ENTITY_DELETED = "entityDeleted",
|
|
76
|
+
ACCOUNT_UPDATED = "accountUpdated"
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Entity-type nouns. Each key resolves to an ilingo plural node, so the
|
|
80
|
+
* singular vs. plural form is selected by the `count` passed at the call
|
|
81
|
+
* site (`count: 1` → singular, any other → plural) rather than by a
|
|
82
|
+
* separate `*S` key. Registered under the `authupEntity` namespace.
|
|
83
|
+
*/
|
|
84
|
+
declare enum TranslatorTranslationEntityKey {
|
|
85
|
+
CLIENT = "client",
|
|
86
|
+
IDENTITY_PROVIDER = "identityProvider",
|
|
87
|
+
PERMISSION = "permission",
|
|
88
|
+
POLICY = "policy",
|
|
89
|
+
REALM = "realm",
|
|
90
|
+
ROBOT = "robot",
|
|
91
|
+
ROLE = "role",
|
|
92
|
+
SCOPE = "scope",
|
|
93
|
+
USER = "user"
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Entity attribute / form-field labels. Registered under the
|
|
97
|
+
* `authupField` namespace.
|
|
98
|
+
*/
|
|
99
|
+
declare enum TranslatorTranslationFieldKey {
|
|
100
|
+
NAME = "name",
|
|
101
|
+
DISPLAY_NAME = "displayName",
|
|
102
|
+
EMAIL = "email",
|
|
103
|
+
EXTERNAL_ID = "externalId",
|
|
104
|
+
DESCRIPTION = "description",
|
|
105
|
+
SECRET = "secret",
|
|
106
|
+
REDIRECT_URIS = "redirectUris",
|
|
107
|
+
PASSWORD = "password",
|
|
108
|
+
DECISION_STRATEGY = "decisionStrategy",
|
|
109
|
+
HASHED = "hashed",
|
|
110
|
+
URL = "url",
|
|
111
|
+
CLIENT_SCOPES = "clientScopes",
|
|
112
|
+
START = "start",
|
|
113
|
+
END = "end",
|
|
114
|
+
INTERVAL = "interval",
|
|
115
|
+
DAY_OF_WEEK = "dayOfWeek",
|
|
116
|
+
DAY_OF_MONTH = "dayOfMonth",
|
|
117
|
+
DAY_OF_YEAR = "dayOfYear",
|
|
118
|
+
VALUE_IS_REGEX = "valueIsRegex"
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Action verbs / button labels. Registered under the `authupAction`
|
|
122
|
+
* namespace.
|
|
123
|
+
*/
|
|
124
|
+
declare enum TranslatorTranslationActionKey {
|
|
125
|
+
ADD = "add",
|
|
126
|
+
CREATE = "create",
|
|
127
|
+
DELETE = "delete",
|
|
128
|
+
GENERATE = "generate",
|
|
129
|
+
UPDATE = "update",
|
|
130
|
+
AUTHORIZE = "authorize",
|
|
131
|
+
ABORT = "abort",
|
|
132
|
+
LOGIN = "login"
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Generic UI vocabulary that is neither an entity noun, a field label,
|
|
136
|
+
* nor an action: page-section labels, status terms, and misc. Registered
|
|
137
|
+
* under the `authupCommon` namespace.
|
|
138
|
+
*/
|
|
139
|
+
declare enum TranslatorTranslationCommonKey {
|
|
140
|
+
GENERAL = "general",
|
|
141
|
+
OVERVIEW = "overview",
|
|
142
|
+
LOADING = "loading",
|
|
143
|
+
ACTIVE = "active",
|
|
144
|
+
INACTIVE = "inactive",
|
|
145
|
+
LOCKED = "locked",
|
|
146
|
+
NOT_LOCKED = "notLocked",
|
|
147
|
+
APPLICATION = "application"
|
|
148
|
+
}
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region src/types.d.ts
|
|
151
|
+
type LocaleDescriptor = {
|
|
152
|
+
code: string;
|
|
153
|
+
nativeName: string;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* A namespace's translation map, keyed exhaustively by the namespace's
|
|
157
|
+
* key union `K`. Every key must be present (a missing key is a compile
|
|
158
|
+
* error) and no extra keys are allowed — this is the compile-time half
|
|
159
|
+
* of the locale-parity guarantee. Leaves are plain strings or ilingo
|
|
160
|
+
* plural nodes, so plural messages stay expressible.
|
|
161
|
+
*/
|
|
162
|
+
type NamespaceTranslations<K extends string> = Record<K, string | PluralNode>;
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/catalogs/en/action.d.ts
|
|
165
|
+
declare const TranslatorTranslationActionEnglish: NamespaceTranslations<`${TranslatorTranslationActionKey}`>;
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region src/catalogs/en/app.d.ts
|
|
168
|
+
declare const TranslatorTranslationAppEnglish: NamespaceTranslations<`${TranslatorTranslationAppKey}`>;
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/catalogs/en/client.d.ts
|
|
171
|
+
declare const TranslatorTranslationClientEnglish: NamespaceTranslations<`${TranslatorTranslationClientKey}`>;
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/catalogs/en/common.d.ts
|
|
174
|
+
declare const TranslatorTranslationCommonEnglish: NamespaceTranslations<`${TranslatorTranslationCommonKey}`>;
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/catalogs/en/entity.d.ts
|
|
177
|
+
declare const TranslatorTranslationEntityEnglish: NamespaceTranslations<`${TranslatorTranslationEntityKey}`>;
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region src/catalogs/en/error.d.ts
|
|
180
|
+
declare const TranslatorTranslationErrorEnglish: NamespaceTranslations<`${ErrorCode}`>;
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/catalogs/en/field.d.ts
|
|
183
|
+
declare const TranslatorTranslationFieldEnglish: NamespaceTranslations<`${TranslatorTranslationFieldKey}`>;
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/catalogs/en/vuecs.d.ts
|
|
186
|
+
declare const TranslatorTranslationVuecsEnglish: NamespaceTranslations<`${TranslatorTranslationVuecsKey}`>;
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region src/catalogs/de/action.d.ts
|
|
189
|
+
declare const TranslatorTranslationActionGerman: NamespaceTranslations<`${TranslatorTranslationActionKey}`>;
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/catalogs/de/app.d.ts
|
|
192
|
+
declare const TranslatorTranslationAppGerman: NamespaceTranslations<`${TranslatorTranslationAppKey}`>;
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region src/catalogs/de/client.d.ts
|
|
195
|
+
declare const TranslatorTranslationClientGerman: NamespaceTranslations<`${TranslatorTranslationClientKey}`>;
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region src/catalogs/de/common.d.ts
|
|
198
|
+
declare const TranslatorTranslationCommonGerman: NamespaceTranslations<`${TranslatorTranslationCommonKey}`>;
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region src/catalogs/de/entity.d.ts
|
|
201
|
+
declare const TranslatorTranslationEntityGerman: NamespaceTranslations<`${TranslatorTranslationEntityKey}`>;
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/catalogs/de/error.d.ts
|
|
204
|
+
declare const TranslatorTranslationErrorGerman: NamespaceTranslations<`${ErrorCode}`>;
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/catalogs/de/field.d.ts
|
|
207
|
+
declare const TranslatorTranslationFieldGerman: NamespaceTranslations<`${TranslatorTranslationFieldKey}`>;
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/catalogs/de/vuecs.d.ts
|
|
210
|
+
declare const TranslatorTranslationVuecsGerman: NamespaceTranslations<`${TranslatorTranslationVuecsKey}`>;
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/catalogs/fr/action.d.ts
|
|
213
|
+
declare const TranslatorTranslationActionFrench: NamespaceTranslations<`${TranslatorTranslationActionKey}`>;
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/catalogs/fr/app.d.ts
|
|
216
|
+
declare const TranslatorTranslationAppFrench: NamespaceTranslations<`${TranslatorTranslationAppKey}`>;
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/catalogs/fr/client.d.ts
|
|
219
|
+
declare const TranslatorTranslationClientFrench: NamespaceTranslations<`${TranslatorTranslationClientKey}`>;
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/catalogs/fr/common.d.ts
|
|
222
|
+
declare const TranslatorTranslationCommonFrench: NamespaceTranslations<`${TranslatorTranslationCommonKey}`>;
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/catalogs/fr/entity.d.ts
|
|
225
|
+
declare const TranslatorTranslationEntityFrench: NamespaceTranslations<`${TranslatorTranslationEntityKey}`>;
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/catalogs/fr/error.d.ts
|
|
228
|
+
declare const TranslatorTranslationErrorFrench: NamespaceTranslations<`${ErrorCode}`>;
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region src/catalogs/fr/field.d.ts
|
|
231
|
+
declare const TranslatorTranslationFieldFrench: NamespaceTranslations<`${TranslatorTranslationFieldKey}`>;
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/catalogs/fr/vuecs.d.ts
|
|
234
|
+
declare const TranslatorTranslationVuecsFrench: NamespaceTranslations<`${TranslatorTranslationVuecsKey}`>;
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region src/catalogs/es/action.d.ts
|
|
237
|
+
declare const TranslatorTranslationActionSpanish: NamespaceTranslations<`${TranslatorTranslationActionKey}`>;
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region src/catalogs/es/app.d.ts
|
|
240
|
+
declare const TranslatorTranslationAppSpanish: NamespaceTranslations<`${TranslatorTranslationAppKey}`>;
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region src/catalogs/es/client.d.ts
|
|
243
|
+
declare const TranslatorTranslationClientSpanish: NamespaceTranslations<`${TranslatorTranslationClientKey}`>;
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/catalogs/es/common.d.ts
|
|
246
|
+
declare const TranslatorTranslationCommonSpanish: NamespaceTranslations<`${TranslatorTranslationCommonKey}`>;
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region src/catalogs/es/entity.d.ts
|
|
249
|
+
declare const TranslatorTranslationEntitySpanish: NamespaceTranslations<`${TranslatorTranslationEntityKey}`>;
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region src/catalogs/es/error.d.ts
|
|
252
|
+
declare const TranslatorTranslationErrorSpanish: NamespaceTranslations<`${ErrorCode}`>;
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/catalogs/es/field.d.ts
|
|
255
|
+
declare const TranslatorTranslationFieldSpanish: NamespaceTranslations<`${TranslatorTranslationFieldKey}`>;
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region src/catalogs/es/vuecs.d.ts
|
|
258
|
+
declare const TranslatorTranslationVuecsSpanish: NamespaceTranslations<`${TranslatorTranslationVuecsKey}`>;
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region src/catalogs/index.d.ts
|
|
261
|
+
/**
|
|
262
|
+
* Authored catalogs as an ilingo `CatalogNode` — the canonical ingestion
|
|
263
|
+
* format consumed directly by `MemoryStore({ data })`. Built via ilingo's
|
|
264
|
+
* own `define*` helpers so the descriptor shape (and namespace names) are
|
|
265
|
+
* validated by ilingo's types rather than reconstructed by each consumer.
|
|
266
|
+
*
|
|
267
|
+
* All locales declared in `LOCALES` (`en`, `de`, `fr`, `es`) are authored
|
|
268
|
+
* here. The locale-parity test walks this node tree to enforce that every
|
|
269
|
+
* authored locale provides exactly the canonical key set per namespace.
|
|
270
|
+
*
|
|
271
|
+
* Eager today; a later phase converts the per-locale values to a
|
|
272
|
+
* `LoaderStore` with dynamic `import()` loaders so non-default locales
|
|
273
|
+
* code-split out of the default bundle.
|
|
274
|
+
*/
|
|
275
|
+
declare const CATALOGS: import("ilingo").CatalogNode;
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region src/error.d.ts
|
|
278
|
+
/**
|
|
279
|
+
* B1 — authup domain errors are represented as validup-style issues so
|
|
280
|
+
* the client can reuse the issue → message machinery (structured `code`
|
|
281
|
+
* + `data`, `{{param}}` interpolation) instead of a bespoke pipeline.
|
|
282
|
+
*
|
|
283
|
+
* The messages live under their own ilingo namespace
|
|
284
|
+
* (`TranslatorTranslationNamespace.ERROR`, value `authupError`) — a
|
|
285
|
+
* *sibling* of validup's own `validup` namespace rather than merged into
|
|
286
|
+
* it, so `@ilingo/validup-vue`'s install can't overwrite authup codes
|
|
287
|
+
* (and vice versa). `translateError()` (in `@authup/client-web-kit`,
|
|
288
|
+
* wired in a later phase) resolves a server error's `code` + `data`
|
|
289
|
+
* against this namespace.
|
|
290
|
+
*
|
|
291
|
+
* The catalog is keyed by `@authup/errors`' `ErrorCode` values. The
|
|
292
|
+
* `AuthupErrorData` map below is the typed *producer* contract — the
|
|
293
|
+
* structured data each code may carry on the wire — and the
|
|
294
|
+
* `declare module 'validup'` block augments validup's `IssueDataByCode`
|
|
295
|
+
* wherever this package is imported. Today that is the client only
|
|
296
|
+
* (`@authup/client-web-kit` re-exports this module, so `translateError()`
|
|
297
|
+
* and any client-side issue construction get the typed `data`). It does
|
|
298
|
+
* **not** reach server-side producers: `apps/server-core` does not depend
|
|
299
|
+
* on `@authup/i18n`. If typed `defineIssueItem` / `createValidupError`
|
|
300
|
+
* on the server is wanted, the augmentation must move to `@authup/errors`
|
|
301
|
+
* (which the server already depends on). Codes absent from the map carry
|
|
302
|
+
* no data and are used as bare string codes (`IssueItem.code` is widened
|
|
303
|
+
* to `string & {}`).
|
|
304
|
+
*
|
|
305
|
+
* The shipped catalog messages are intentionally *generic* (no
|
|
306
|
+
* `{{param}}`), not because the data is unavailable but because ilingo's
|
|
307
|
+
* `template()` leaves an unknown data key in place verbatim — a message
|
|
308
|
+
* like `'The {{entity}} ...'` would render the literal `{{entity}}`
|
|
309
|
+
* whenever a producer omits it. Interpolating these params is therefore
|
|
310
|
+
* deferred to the (later-phase) `translateError()` resolver, which will
|
|
311
|
+
* merge per-code defaults before calling `get()` so a missing param can
|
|
312
|
+
* never leak. Until then the data rides along untranslated, ready for
|
|
313
|
+
* logging / richer UI, while the human-readable string stays safe.
|
|
314
|
+
*/
|
|
315
|
+
/**
|
|
316
|
+
* Interpolation params per parameterized `ErrorCode`. Keys are the
|
|
317
|
+
* literal `ErrorCode` values (kept in sync with `@authup/errors`).
|
|
318
|
+
*/
|
|
319
|
+
type AuthupErrorData = {
|
|
320
|
+
entity_not_found: {
|
|
321
|
+
entity?: string;
|
|
322
|
+
};
|
|
323
|
+
entity_conflict: {
|
|
324
|
+
entity?: string;
|
|
325
|
+
};
|
|
326
|
+
invalid_scope: {
|
|
327
|
+
scope?: string;
|
|
328
|
+
};
|
|
329
|
+
insufficient_scope: {
|
|
330
|
+
scope?: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
declare module 'validup' {
|
|
334
|
+
interface IssueDataByCode {
|
|
335
|
+
entity_not_found: AuthupErrorData['entity_not_found'];
|
|
336
|
+
entity_conflict: AuthupErrorData['entity_conflict'];
|
|
337
|
+
invalid_scope: AuthupErrorData['invalid_scope'];
|
|
338
|
+
insufficient_scope: AuthupErrorData['insufficient_scope'];
|
|
339
|
+
}
|
|
340
|
+
} //# sourceMappingURL=error.d.ts.map
|
|
341
|
+
//#endregion
|
|
342
|
+
//#region src/locales.d.ts
|
|
343
|
+
/**
|
|
344
|
+
* Locales authup ships translations for. `nativeName` is the language
|
|
345
|
+
* name in its own language — what the language switcher should display.
|
|
346
|
+
* Order is the display order in the switcher.
|
|
347
|
+
*
|
|
348
|
+
* All four (`en`, `de`, `fr`, `es`) are authored fully in `CATALOGS`;
|
|
349
|
+
* the locale-parity test enforces that each provides exactly the
|
|
350
|
+
* canonical key set per namespace. BCP-47 narrowing (`de-AT` → `de`)
|
|
351
|
+
* plus the `DEFAULT_LOCALE` fallback still resolves any unauthored
|
|
352
|
+
* variant to a supported base locale.
|
|
353
|
+
*/
|
|
354
|
+
declare const LOCALES: readonly [{
|
|
355
|
+
readonly code: "en";
|
|
356
|
+
readonly nativeName: "English";
|
|
357
|
+
}, {
|
|
358
|
+
readonly code: "de";
|
|
359
|
+
readonly nativeName: "Deutsch";
|
|
360
|
+
}, {
|
|
361
|
+
readonly code: "fr";
|
|
362
|
+
readonly nativeName: "Français";
|
|
363
|
+
}, {
|
|
364
|
+
readonly code: "es";
|
|
365
|
+
readonly nativeName: "Español";
|
|
366
|
+
}];
|
|
367
|
+
/**
|
|
368
|
+
* Union of supported locale codes, derived from `LOCALES` so it can
|
|
369
|
+
* never drift from the registry.
|
|
370
|
+
*/
|
|
371
|
+
type LocaleCode = typeof LOCALES[number]['code'];
|
|
372
|
+
/**
|
|
373
|
+
* Ultimate fallback locale. BCP-47 narrowing (`de-AT` → `de`) plus this
|
|
374
|
+
* fallback (`→ en`) is handled by ilingo's resolver.
|
|
375
|
+
*/
|
|
376
|
+
declare const DEFAULT_LOCALE: LocaleCode;
|
|
377
|
+
declare const LOCALE_CODES: readonly LocaleCode[];
|
|
378
|
+
declare function isLocale(input: unknown): input is LocaleCode;
|
|
379
|
+
//#endregion
|
|
380
|
+
export { AuthupErrorData, CATALOGS, DEFAULT_LOCALE, LOCALES, LOCALE_CODES, LocaleCode, LocaleDescriptor, NamespaceTranslations, TranslatorTranslationActionEnglish, TranslatorTranslationActionFrench, TranslatorTranslationActionGerman, TranslatorTranslationActionKey, TranslatorTranslationActionSpanish, TranslatorTranslationAppEnglish, TranslatorTranslationAppFrench, TranslatorTranslationAppGerman, TranslatorTranslationAppKey, TranslatorTranslationAppSpanish, TranslatorTranslationClientEnglish, TranslatorTranslationClientFrench, TranslatorTranslationClientGerman, TranslatorTranslationClientKey, TranslatorTranslationClientSpanish, TranslatorTranslationCommonEnglish, TranslatorTranslationCommonFrench, TranslatorTranslationCommonGerman, TranslatorTranslationCommonKey, TranslatorTranslationCommonSpanish, TranslatorTranslationEntityEnglish, TranslatorTranslationEntityFrench, TranslatorTranslationEntityGerman, TranslatorTranslationEntityKey, TranslatorTranslationEntitySpanish, TranslatorTranslationErrorEnglish, TranslatorTranslationErrorFrench, TranslatorTranslationErrorGerman, TranslatorTranslationErrorSpanish, TranslatorTranslationFieldEnglish, TranslatorTranslationFieldFrench, TranslatorTranslationFieldGerman, TranslatorTranslationFieldKey, TranslatorTranslationFieldSpanish, TranslatorTranslationNamespace, TranslatorTranslationVuecsEnglish, TranslatorTranslationVuecsFrench, TranslatorTranslationVuecsGerman, TranslatorTranslationVuecsKey, TranslatorTranslationVuecsSpanish, isLocale };
|
|
381
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/constants.ts","../src/types.ts","../src/catalogs/en/action.ts","../src/catalogs/en/app.ts","../src/catalogs/en/client.ts","../src/catalogs/en/common.ts","../src/catalogs/en/entity.ts","../src/catalogs/en/error.ts","../src/catalogs/en/field.ts","../src/catalogs/en/vuecs.ts","../src/catalogs/de/action.ts","../src/catalogs/de/app.ts","../src/catalogs/de/client.ts","../src/catalogs/de/common.ts","../src/catalogs/de/entity.ts","../src/catalogs/de/error.ts","../src/catalogs/de/field.ts","../src/catalogs/de/vuecs.ts","../src/catalogs/fr/action.ts","../src/catalogs/fr/app.ts","../src/catalogs/fr/client.ts","../src/catalogs/fr/common.ts","../src/catalogs/fr/entity.ts","../src/catalogs/fr/error.ts","../src/catalogs/fr/field.ts","../src/catalogs/fr/vuecs.ts","../src/catalogs/es/action.ts","../src/catalogs/es/app.ts","../src/catalogs/es/client.ts","../src/catalogs/es/common.ts","../src/catalogs/es/entity.ts","../src/catalogs/es/error.ts","../src/catalogs/es/field.ts","../src/catalogs/es/vuecs.ts","../src/catalogs/index.ts","../src/error.ts","../src/locales.ts"],"mappings":";;;;;;;;AAiBA;;;;;;aAAY,8BAAA;EACR,MAAA;EAEA,KAAA;EAEA,MAAA;EAEA,MAAA;EAEA,MAAA;EAEA,KAAA;EAEA,KAAA;EAEA,GAAA;AAAA;AAAA,aAGQ,6BAAA;EACR,OAAO;AAAA;AAAA,aAGC,8BAAA;EACR,SAAA;EACA,gBAAA;EACA,iBAAA;EACA,eAAA;EACA,SAAA;EACA,WAAA;EAEA,YAAA;EACA,iBAAA;EACA,wBAAA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