@jini-ai/core 0.6.22 → 0.7.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/approval.d.ts +49 -3
  3. package/dist/approval.js +47 -10
  4. package/dist/batch-tool-inputs.d.ts +13 -0
  5. package/dist/batch-tool-inputs.js +37 -6
  6. package/dist/contracts/cards.d.ts +382 -0
  7. package/dist/contracts/cards.js +2 -0
  8. package/dist/contracts/content-types.d.ts +32 -0
  9. package/dist/contracts/content-types.js +3 -0
  10. package/dist/contracts/credentials.d.ts +402 -0
  11. package/dist/contracts/credentials.js +2 -0
  12. package/dist/contracts/hosted-mcp/config.d.ts +253 -0
  13. package/dist/contracts/hosted-mcp/config.js +2 -0
  14. package/dist/contracts/hosted-mcp/record.d.ts +198 -0
  15. package/dist/contracts/hosted-mcp/record.js +2 -0
  16. package/dist/contracts/hosted-mcp/vocabulary.d.ts +14 -0
  17. package/dist/contracts/hosted-mcp/vocabulary.js +2 -0
  18. package/dist/contracts/hosted-mcp.d.ts +5 -0
  19. package/dist/contracts/hosted-mcp.js +2 -0
  20. package/dist/contracts/mail/adapter-module.d.ts +31 -0
  21. package/dist/contracts/mail/adapter-module.js +2 -0
  22. package/dist/contracts/mail/engine-contracts.d.ts +130 -0
  23. package/dist/contracts/mail/engine-contracts.js +2 -0
  24. package/dist/contracts/mail/ports.d.ts +93 -0
  25. package/dist/contracts/mail/ports.js +3 -0
  26. package/dist/contracts/mail/provider.d.ts +84 -0
  27. package/dist/contracts/mail/provider.js +2 -0
  28. package/dist/contracts/mail.d.ts +128 -0
  29. package/dist/contracts/mail.js +3 -0
  30. package/dist/contracts/oauth/details.d.ts +46 -0
  31. package/dist/contracts/oauth/details.js +2 -0
  32. package/dist/contracts/oauth/flow.d.ts +253 -0
  33. package/dist/contracts/oauth/flow.js +2 -0
  34. package/dist/contracts/oauth.d.ts +139 -0
  35. package/dist/contracts/oauth.js +2 -0
  36. package/dist/contracts/vault/ports.d.ts +34 -0
  37. package/dist/contracts/vault/ports.js +2 -0
  38. package/dist/contracts/vault/records.d.ts +149 -0
  39. package/dist/contracts/vault/records.js +2 -0
  40. package/dist/contracts/vault/vendor-credential-sets.d.ts +75 -0
  41. package/dist/contracts/vault/vendor-credential-sets.js +7 -0
  42. package/dist/contracts/vault.d.ts +14 -0
  43. package/dist/contracts/vault.js +2 -0
  44. package/dist/index.d.ts +2 -0
  45. package/dist/index.js +1 -0
  46. package/dist/primitives/http.d.ts +2 -0
  47. package/dist/settings/agent-value-write-tools.d.ts +3 -1
  48. package/dist/settings/agent-value-write-tools.js +11 -4
  49. package/dist/settings/tool-registrations.js +1 -1
  50. package/dist/surface-cards.d.ts +2 -0
  51. package/dist/surface-cards.js +2 -0
  52. package/dist/teardown.d.ts +30 -0
  53. package/dist/teardown.js +43 -0
  54. package/dist/text/descriptor-i18n.d.ts +24 -0
  55. package/dist/text/descriptor-i18n.js +65 -0
  56. package/dist/text/index.d.ts +2 -0
  57. package/dist/text/index.js +1 -0
  58. package/dist/tool-metadata-types.d.ts +6 -0
  59. package/dist/user-facing-error.d.ts +28 -1
  60. package/dist/user-facing-error.js +87 -4
  61. package/package.json +44 -2
@@ -0,0 +1,382 @@
1
+ /** @agent-note Types only. The runtime parts come from the host; this area usually from `@jini-ai/ui`. */
2
+ /**
3
+ * The card builders a tool needs to ask a human for input, described as types only.
4
+ *
5
+ * The builders themselves render HTML and stay in the UI package; a domain package that needs a
6
+ * card cannot import that package, so it declares this port and the host passes the builders in.
7
+ * The resource a builder returns is a type parameter: callers hand it back unread, never inspect it.
8
+ */
9
+ import type { SurfaceAskThenReport, SurfaceExchangeStore } from '../surface-exchanges.js';
10
+ import type { ToolExecutionContext, ToolExecutionOptions } from '../tool-registry.js';
11
+ export type SurfaceCardUri = `ui://${string}`;
12
+ export type SurfaceCardApp = BridgeScriptSpec;
13
+ export type SurfaceCardDetail = SurfaceDetail;
14
+ export type SurfaceCardChoice = SelectOption;
15
+ export type SurfaceCardStringField = StringField;
16
+ export type SurfaceCardEnumField = EnumField;
17
+ export type SurfaceCardMultiEnumField = MultiEnumField;
18
+ export type SurfaceCardField = SurfaceField;
19
+ /** A secret field never carries a value. `allowBlank` keeps a stored value or permits a public client. */
20
+ export type SurfaceCardSecretField = SecretCardField;
21
+ export type SurfaceCardSecretForm = SecretCardForm;
22
+ export interface SurfaceCardFormSpec extends FormSurfaceSpec {
23
+ readonly uri: SurfaceCardUri;
24
+ }
25
+ export type SurfaceCardOutcome = SurfaceOutcomeSpec;
26
+ export type SurfaceCardSecretRun<Saved> = {
27
+ readonly status: 'saved';
28
+ readonly saved: Saved;
29
+ } | {
30
+ readonly status: 'cancelled';
31
+ } | {
32
+ readonly status: 'expired';
33
+ } | {
34
+ readonly status: 'abandoned';
35
+ } | {
36
+ readonly status: 'blank';
37
+ } | {
38
+ readonly status: 'failed';
39
+ readonly safeMessage: string;
40
+ };
41
+ /** Authorization and target resolution happen in `prepare`, persistence in `save`.
42
+ * @agent-note `save` receives the exact submitted bytes and must keep them in the host's sealed
43
+ * store; it returns only a safe summary. `outcome` and `result` never see submitted values. */
44
+ export interface SurfaceCardSecretSpec<Prep, Saved, Result> {
45
+ readonly toolId: string;
46
+ prepare(required: {
47
+ ctx: ToolExecutionContext;
48
+ }): Promise<Prep>;
49
+ form(required: {
50
+ prep: Prep;
51
+ }): SurfaceCardSecretForm;
52
+ save(required: {
53
+ values: Readonly<Record<string, unknown>>;
54
+ prep: Prep;
55
+ signal: AbortSignal;
56
+ }): Promise<Saved>;
57
+ outcome(required: {
58
+ prep: Prep;
59
+ run: SurfaceCardSecretRun<Saved>;
60
+ }): SurfaceCardOutcome | undefined;
61
+ result(required: {
62
+ prep: Prep;
63
+ run: SurfaceCardSecretRun<Saved>;
64
+ }): Result;
65
+ }
66
+ export interface SurfaceCardSecretOptions {
67
+ readonly safeError?: (error: unknown) => string | undefined;
68
+ readonly text?: {
69
+ readonly noEmitter?: string;
70
+ readonly saveFailure?: string;
71
+ readonly cancelLabel?: string;
72
+ };
73
+ readonly frameSize?: readonly [string, string];
74
+ readonly uriHost?: string;
75
+ readonly logFailure?: (metadata: {
76
+ toolId: string;
77
+ exchangeId: string;
78
+ saved: false;
79
+ }) => void;
80
+ }
81
+ /** @agent-note Both members come from the daemon the tool runs in: `surfaceExchanges` is the same
82
+ * store instance the host's answer route delivers into (a second store never receives the answer),
83
+ * and `askThenReport` is the daemon's helper from its surface-exchanges entry. */
84
+ export interface SurfaceCardSecretDeps {
85
+ readonly surfaceExchanges: Pick<SurfaceExchangeStore, 'open'>;
86
+ readonly askThenReport: SurfaceAskThenReport;
87
+ }
88
+ export interface SurfaceCardSecretTool<Prep, Result> {
89
+ readonly toolId: string;
90
+ secretFieldNames(prep: Prep): string[];
91
+ handler(deps: SurfaceCardSecretDeps): (required: ToolExecutionContext, optional?: ToolExecutionOptions) => Promise<Result>;
92
+ }
93
+ export type SurfaceCardSignInState = {
94
+ state: 'waiting';
95
+ signInUrl: string;
96
+ exchangeId?: string;
97
+ } | {
98
+ state: 'connected' | 'skipped';
99
+ };
100
+ export interface SurfaceCardSignInSpec {
101
+ uri: SurfaceCardUri;
102
+ toolId: string;
103
+ app: SurfaceCardApp;
104
+ waiting: {
105
+ title: string;
106
+ description: string;
107
+ message: string;
108
+ openLinkLabel: string;
109
+ cancelLabel: string;
110
+ };
111
+ connected: {
112
+ title: string;
113
+ message: string;
114
+ };
115
+ skipped: {
116
+ title: string;
117
+ message: string;
118
+ };
119
+ }
120
+ /** @agent-note `card` must render every state under one URI: the last emission replaces the
121
+ * waiting card. `connect` must honor its `signal`; Skip aborts only this wait, never the run. */
122
+ export interface SurfaceCardSignInWait<Resource, Result> {
123
+ surfaceExchanges: Pick<SurfaceExchangeStore, 'open'>;
124
+ ctx: ToolExecutionContext;
125
+ toolId: string;
126
+ card: (state: SurfaceCardSignInState) => Resource;
127
+ missingEmitterMessage: string;
128
+ skippedResult: () => Result;
129
+ connect: (input: {
130
+ signal: AbortSignal;
131
+ showSignIn: (input: {
132
+ signInUrl: string;
133
+ }) => Promise<void>;
134
+ }) => Promise<Result>;
135
+ }
136
+ /**
137
+ * The five card builders, with the signatures the UI package exports.
138
+ * @agent-note Fulfilled by `mcpUiCards` from `@jini-ai/ui/mcp-ui/cards`, which the UI package pins
139
+ * with `satisfies SurfaceCardsPort<UIResource>`; the host passes it in one line. A consumer that
140
+ * calls `waitAtSignInCard` is generic in `Resource` (the type flows back through `card`); one that
141
+ * only builds may take `Omit<SurfaceCardsPort, 'waitAtSignInCard'>`. Never key a form `uri` by a
142
+ * confirmation token.
143
+ */
144
+ export interface SurfaceCardsPort<Resource = unknown> {
145
+ readonly defineSecretCardTool: <Prep, Saved, Result>(required: SurfaceCardSecretSpec<Prep, Saved, Result>, options?: SurfaceCardSecretOptions) => SurfaceCardSecretTool<Prep, Result>;
146
+ readonly buildSignInCard: (required: SurfaceCardSignInSpec & SurfaceCardSignInState, optional?: Record<string, never>) => Resource;
147
+ readonly waitAtSignInCard: <Result extends {
148
+ status: string;
149
+ }>(required: SurfaceCardSignInWait<Resource, Result>, optional?: ToolExecutionOptions) => Promise<Result>;
150
+ readonly buildFormSurface: (spec: SurfaceCardFormSpec) => Resource;
151
+ readonly buildOutcomeSurface: (spec: SurfaceCardOutcome & {
152
+ readonly uri: SurfaceCardUri;
153
+ }) => Resource;
154
+ }
155
+ /** One fact. Values and previous snapshots must be JSON-serializable; strings remain supported. */
156
+ export interface SurfaceDetail {
157
+ readonly label: string;
158
+ readonly value: unknown;
159
+ /** Presence enables a diff, including an explicitly absent previous override. */
160
+ readonly previous?: unknown;
161
+ /** Explicit, optionally translated labels keyed by dotted object path. */
162
+ readonly labels?: Readonly<Record<string, string>>;
163
+ /** Optional secondary context beneath the label, using the shared muted hint style. */
164
+ readonly description?: string;
165
+ /**
166
+ * `code` discloses a monospace `<pre>` that keeps line breaks and scrolls inside its own box
167
+ * past a fixed height, so long SQL or JSON remains readable without stretching the dialog past
168
+ * its frame. `status` reserves one line for a short outcome value. Omitted (or `text`) permits
169
+ * value-sensitive presentation, preserving plain inline strings for short prose.
170
+ */
171
+ readonly format?: 'text' | 'code' | 'status';
172
+ }
173
+ interface SurfaceFieldBase {
174
+ /** HTML `name`, DOM `id` suffix, and the params key the value is posted under. */
175
+ readonly name: string;
176
+ readonly label: string;
177
+ /** Help text, wired up with `aria-describedby`. */
178
+ readonly hint?: string;
179
+ readonly required?: boolean;
180
+ /** Waive on an exact choice or an alternative control; headerNames restricts entered headers. Kept secrets are validated by the host. */
181
+ readonly requiredUnless?: {
182
+ readonly field: string;
183
+ readonly equals: string;
184
+ readonly orPresent?: string;
185
+ readonly headerNames?: readonly string[];
186
+ };
187
+ /** Require only while the controlling public field matches one of these choices. */
188
+ readonly requiredWhen?: {
189
+ readonly field: string;
190
+ readonly in: readonly string[];
191
+ };
192
+ readonly disabled?: boolean;
193
+ }
194
+ export interface StringField extends SurfaceFieldBase {
195
+ readonly kind: 'string';
196
+ /** A sealed saved value satisfies validation while the requirement remains visible. */
197
+ readonly hasSavedValue?: boolean;
198
+ readonly value?: string;
199
+ readonly placeholder?: string;
200
+ readonly multiline?: boolean;
201
+ readonly rows?: number;
202
+ /** Renders as a masked input or multiline textarea; pre-filled values are forbidden.
203
+ * See {@link TextInputProps.secret}. */
204
+ readonly secret?: boolean;
205
+ }
206
+ export interface NumberField extends SurfaceFieldBase {
207
+ readonly kind: 'number';
208
+ readonly value?: number;
209
+ readonly placeholder?: string;
210
+ readonly min?: number;
211
+ readonly max?: number;
212
+ readonly step?: number;
213
+ }
214
+ export interface BooleanField extends SurfaceFieldBase {
215
+ readonly kind: 'boolean';
216
+ readonly value?: boolean;
217
+ }
218
+ export interface EnumField extends SurfaceFieldBase {
219
+ readonly kind: 'enum';
220
+ readonly value?: string;
221
+ readonly options: readonly SelectOption[];
222
+ readonly placeholder?: string;
223
+ /**
224
+ * How the same one-of-N value is drawn. `select` (the default) hides the options until opened —
225
+ * right for a long list; `radio` shows them all at once — right for a short one the human is
226
+ * meant to compare before choosing. Presentation only: both post one string under `name`, and
227
+ * both read back through the same `control.value` path, so `kind` stays `'enum'` either way.
228
+ */
229
+ readonly presentation?: 'select' | 'radio';
230
+ }
231
+ /**
232
+ * A pick-any-number-of-N field.
233
+ *
234
+ * Its own kind rather than a flag on {@link EnumField}, because it is the only field whose value is
235
+ * an **array** — `form.ts`'s `readField` and `isBlank` both branch on that, and no `presentation`
236
+ * discriminator would have told them to.
237
+ */
238
+ export interface MultiEnumField extends SurfaceFieldBase {
239
+ readonly kind: 'multi-enum';
240
+ /** Pre-checked values. Unknown entries check nothing rather than erroring. */
241
+ readonly value?: readonly string[];
242
+ readonly options: readonly SelectOption[];
243
+ }
244
+ export type SurfaceField = StringField | NumberField | BooleanField | EnumField | MultiEnumField;
245
+ export interface FormSurfaceSpec {
246
+ readonly title: string;
247
+ /** Resource framing carried through host form projections; ignored by HTML rendering. */
248
+ readonly preferredFrameSize?: readonly [string, string];
249
+ readonly description?: string;
250
+ /** Read-only context shown above the fields — what the input is *about*. */
251
+ readonly details?: readonly SurfaceDetail[];
252
+ readonly fields: readonly SurfaceField[];
253
+ /** Callout above the buttons. */
254
+ readonly warning?: string;
255
+ /** Styles the submit button as destructive. */
256
+ readonly danger?: boolean;
257
+ readonly submitLabel: string;
258
+ /** Alternative submit buttons collect the same fields, with explicit action params. */
259
+ readonly additionalSubmitActions?: readonly {
260
+ readonly id: string;
261
+ readonly label: string;
262
+ readonly params: Readonly<Record<string, unknown>>;
263
+ }[];
264
+ /** The tool the collected values are sent to. */
265
+ readonly toolName: string;
266
+ /**
267
+ * Merged UNDER the collected field values, so a field can never be shadowed by a base param it
268
+ * shares a name with. Where a confirmation token belongs when the form is a confirmation.
269
+ */
270
+ readonly baseParams?: Readonly<Record<string, unknown>>;
271
+ /** Omit for a form with no cancel button. Give it a tool name to notify the server of the dismissal. */
272
+ readonly cancel?: {
273
+ readonly label: string;
274
+ readonly toolName?: string;
275
+ readonly params?: Readonly<Record<string, unknown>>;
276
+ };
277
+ readonly text?: Partial<SurfaceStatusText & SecretInputText>;
278
+ readonly app?: BridgeScriptSpec;
279
+ readonly lang?: string;
280
+ readonly tokens?: Partial<Record<SurfaceTokenName, string>>;
281
+ }
282
+ export interface SurfaceOutcomeSpec {
283
+ readonly title: string;
284
+ /** Resource framing carried through host outcome projections; ignored by HTML rendering. */
285
+ readonly preferredFrameSize?: readonly [string, string];
286
+ readonly description?: string;
287
+ /** The facts of what actually happened — same shape as a confirmation's own `details`, but
288
+ * reporting the RESULT (e.g. the real URL, the real status) rather than what was proposed. */
289
+ readonly details?: readonly SurfaceDetail[];
290
+ /**
291
+ * Styles the status line and, when {@link openLinkUrl} is also present, the open-link button.
292
+ * THREE states, not a boolean — matching this package's own callers, which distinguish a genuine
293
+ * partial outcome (e.g. a downstream product's static-publish "uploaded, but not yet confirmed reachable") from
294
+ * both a plain success and a plain failure specifically so neither is misreported: folding
295
+ * `'partial'` into `'success'` would claim something is live when it may not be reachable yet;
296
+ * folding it into `'failure'` would hide that the operation itself did NOT fail (nothing needs
297
+ * retrying, only a separate follow-up step). See `document.ts`'s own `[data-state="partial"]` rule
298
+ * for why this needs a third visual state as well as a third value here, not merely a third string
299
+ * that renders identically to one of the other two.
300
+ */
301
+ readonly state: 'success' | 'partial' | 'failure';
302
+ /** The one human-facing sentence explaining the outcome — the actionable message on failure, or a
303
+ * short confirmation on success. Never a raw credential or provider response body; that boundary
304
+ * is the CALLER's responsibility (this builder only renders what it is given). */
305
+ readonly message: string;
306
+ /** When present, renders one button ("Open site" by default) that calls the bridge's `openLink`.
307
+ * Only meaningful alongside `state: 'success'` — a caller should not supply this for a failure. */
308
+ readonly openLinkUrl?: string;
309
+ readonly openLinkLabel?: string;
310
+ /** A pending external action may be skipped through its existing surface exchange. */
311
+ readonly cancel?: ConfirmationToolAction;
312
+ /** Identity reported to the Host in `ui/initialize`. Defaults to a generic one. */
313
+ readonly app?: BridgeScriptSpec;
314
+ readonly lang?: string;
315
+ readonly tokens?: Partial<Record<SurfaceTokenName, string>>;
316
+ }
317
+ export interface SelectOption {
318
+ /** The value posted back. */
319
+ readonly value: string;
320
+ /** What the human reads. Defaults to `value`. */
321
+ readonly label?: string;
322
+ readonly disabled?: boolean;
323
+ }
324
+ export interface BridgeScriptSpec {
325
+ /** Reported to the Host as `appInfo.name` in `ui/initialize`. */
326
+ readonly appName: string;
327
+ /** Reported to the Host as `appInfo.version`. */
328
+ readonly appVersion: string;
329
+ /** Defaults to {@link MCP_UI_PROTOCOL_VERSION}. */
330
+ readonly protocolVersion?: string;
331
+ }
332
+ /** Verbs the host can translate for a secret's reveal toggle; the field label is appended. */
333
+ export interface SecretInputText {
334
+ readonly showSecret: string;
335
+ readonly hideSecret: string;
336
+ }
337
+ /**
338
+ * Every user-visible string a surface's script writes at runtime.
339
+ *
340
+ * Surfaces are HTML strings built outside React, so `features/i18n`'s `useT` cannot reach them — a
341
+ * translated surface is one whose builder was handed translated text. These are the defaults for a
342
+ * caller that has none.
343
+ */
344
+ export interface SurfaceStatusText {
345
+ /** Shown while a tool call is in flight. */
346
+ readonly working: string;
347
+ /** Shown when the call resolves. */
348
+ readonly done: string;
349
+ /** Prefixed to the Host's own error message when the call rejects. */
350
+ readonly failedPrefix: string;
351
+ /** Shown when the human dismisses a surface that has no cancel tool to call. */
352
+ readonly dismissed: string;
353
+ /** Prefixed to the comma-joined labels of unfilled required fields. */
354
+ readonly missingPrefix: string;
355
+ /** Shown when the Host says the dialog is no longer pending; the buttons stay disabled. */
356
+ readonly expired: string;
357
+ }
358
+ /** A button that calls a tool when clicked. */
359
+ export interface ConfirmationToolAction {
360
+ readonly label: string;
361
+ readonly toolName: string;
362
+ /** Passed verbatim as the tool's `arguments`. The only safe home for a confirmation token. */
363
+ readonly params: Readonly<Record<string, unknown>>;
364
+ }
365
+ /** The token names a caller may override. */
366
+ export type SurfaceTokenName = "--jini-mcpui-bg" | "--jini-mcpui-panel" | "--jini-mcpui-border" | "--jini-mcpui-border-strong" | "--jini-mcpui-text" | "--jini-mcpui-text-strong" | "--jini-mcpui-text-muted" | "--jini-mcpui-text-soft" | "--jini-mcpui-text-faint" | "--jini-mcpui-accent" | "--jini-mcpui-accent-strong" | "--jini-mcpui-accent-ink" | "--jini-mcpui-danger" | "--jini-mcpui-radius-xs" | "--jini-mcpui-radius-sm" | "--jini-mcpui-radius-md" | "--jini-mcpui-radius-lg" | "--jini-mcpui-radius-xl" | "--jini-mcpui-radius-pill" | "--jini-mcpui-font" | "--jini-mcpui-font-mono";
367
+ /** Secret fields cannot carry a value, even through a previously declared variable.
368
+ * `allowBlank` permits an empty string for stored-value preservation or public-client auth. */
369
+ export type SecretCardField = (SurfaceField & {
370
+ readonly secret?: false;
371
+ }) | (Omit<StringField, 'value' | 'secret'> & {
372
+ readonly secret: true;
373
+ readonly value?: never;
374
+ readonly allowBlank?: boolean;
375
+ });
376
+ /** The host controls copy, field construction and display; routing/dismissal belong to the engine. */
377
+ export type SecretCardForm = Omit<FormSurfaceSpec, 'fields' | 'toolName' | 'baseParams' | 'cancel'> & {
378
+ readonly fields: readonly SecretCardField[];
379
+ readonly cancelLabel?: string;
380
+ };
381
+ export {};
382
+ //# sourceMappingURL=cards.d.ts.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=cards.js.map
@@ -0,0 +1,32 @@
1
+ /** @agent-note Types only. The runtime parts come from the host; this area usually from `@jini-ai/cms`. */
2
+ export type IndexableFieldKind = "text" | "integer" | "real" | "boolean" | "datetime" | "relation";
3
+ export type ContentTypeFieldKind = "text" | "integer" | "real" | "boolean" | "datetime" | "relation" | "json";
4
+ export interface ContentTypeFieldDef {
5
+ name: string;
6
+ kind: ContentTypeFieldKind;
7
+ required: boolean;
8
+ queryable: boolean;
9
+ }
10
+ export type ContentTypeStatus = "active" | "deprecated" | "tombstone";
11
+ /** Sample schema, expressed as the package's in-memory record shape (repo-agnostic). */
12
+ export interface ContentTypeRecord {
13
+ workspaceId: string;
14
+ key: string;
15
+ label: string;
16
+ fields: ContentTypeFieldDef[];
17
+ status: ContentTypeStatus;
18
+ version: number;
19
+ tombstonedAt?: string | null;
20
+ /**
21
+ * The `fieldsJson.ext.<owner>` namespace every entry of this type is stored under. Absent means
22
+ * `"site"`, so every type registered before this property existed keeps its envelope unchanged.
23
+ * It belongs to the TYPE, not to whoever writes an entry: `entries/write-service.ts` reads it off
24
+ * the owning type, so no caller can validate a payload under the wrong namespace and mint a row
25
+ * the type's real reader can never parse (found 2026-09-19: the generic entries route passed no
26
+ * owner and wrote `ext.site` rows into a widget-owned type). Set only by code that registers its
27
+ * own type (`registerContentType`'s optional `owner`); the agent tool and HTTP surfaces never
28
+ * pass it.
29
+ */
30
+ owner?: string;
31
+ }
32
+ //# sourceMappingURL=content-types.d.ts.map
@@ -0,0 +1,3 @@
1
+ /** @agent-note Types only. The runtime parts come from the host; this area usually from `@jini-ai/cms`. */
2
+ export {};
3
+ //# sourceMappingURL=content-types.js.map