@angular/core 22.0.0-next.10 → 22.0.0-next.11

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 (83) hide show
  1. package/fesm2022/_attribute-chunk.mjs +1 -1
  2. package/fesm2022/_attribute-chunk.mjs.map +1 -1
  3. package/fesm2022/_debug_node-chunk.mjs +55 -113
  4. package/fesm2022/_debug_node-chunk.mjs.map +1 -1
  5. package/fesm2022/_effect-chunk.mjs +1 -1
  6. package/fesm2022/_effect-chunk.mjs.map +1 -1
  7. package/fesm2022/_not_found-chunk.mjs +1 -1
  8. package/fesm2022/_not_found-chunk.mjs.map +1 -1
  9. package/fesm2022/_pending_tasks-chunk.mjs +101 -3
  10. package/fesm2022/_pending_tasks-chunk.mjs.map +1 -1
  11. package/fesm2022/_resource-chunk.mjs +56 -18
  12. package/fesm2022/_resource-chunk.mjs.map +1 -1
  13. package/fesm2022/_untracked-chunk.mjs +1 -1
  14. package/fesm2022/_untracked-chunk.mjs.map +1 -1
  15. package/fesm2022/_weak_ref-chunk.mjs +1 -1
  16. package/fesm2022/_weak_ref-chunk.mjs.map +1 -1
  17. package/fesm2022/core.mjs +65 -37
  18. package/fesm2022/core.mjs.map +1 -1
  19. package/fesm2022/primitives-di.mjs +1 -1
  20. package/fesm2022/primitives-di.mjs.map +1 -1
  21. package/fesm2022/primitives-event-dispatch.mjs +1 -1
  22. package/fesm2022/primitives-event-dispatch.mjs.map +1 -1
  23. package/fesm2022/primitives-signals.mjs +1 -1
  24. package/fesm2022/primitives-signals.mjs.map +1 -1
  25. package/fesm2022/rxjs-interop.mjs +1 -1
  26. package/fesm2022/rxjs-interop.mjs.map +1 -1
  27. package/fesm2022/testing.mjs +1 -1
  28. package/fesm2022/testing.mjs.map +1 -1
  29. package/package.json +7 -3
  30. package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
  31. package/schematics/bundles/can-match-snapshot-required.cjs +1 -1
  32. package/schematics/bundles/change-detection-eager.cjs +1 -1
  33. package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
  34. package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
  35. package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
  36. package/schematics/bundles/control-flow-migration.cjs +1 -1
  37. package/schematics/bundles/http-xhr-backend.cjs +1 -1
  38. package/schematics/bundles/imports-CKV-ITqD.cjs +1 -1
  39. package/schematics/bundles/incremental-hydration.cjs +10 -7
  40. package/schematics/bundles/{index-DADA7AvC.cjs → index-DcezkXLN.cjs} +4 -1
  41. package/schematics/bundles/inject-migration.cjs +1 -1
  42. package/schematics/bundles/json-file-Drblb4E1.cjs +1 -1
  43. package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
  44. package/schematics/bundles/{migrate_ts_type_references-CdaIOlGY.cjs → migrate_ts_type_references-xRTTASnu.cjs} +2 -2
  45. package/schematics/bundles/model-output.cjs +1 -1
  46. package/schematics/bundles/ng_component_template-DPAF1aEA.cjs +1 -1
  47. package/schematics/bundles/ng_decorators-IVztR9rk.cjs +1 -1
  48. package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
  49. package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
  50. package/schematics/bundles/nodes-ZSQ7WZRB.cjs +1 -1
  51. package/schematics/bundles/output-migration.cjs +2 -2
  52. package/schematics/bundles/parse_html-C8eKA9px.cjs +1 -1
  53. package/schematics/bundles/project_paths-D2V-Uh2L.cjs +1 -1
  54. package/schematics/bundles/project_tsconfig_paths-DkkMibv-.cjs +1 -1
  55. package/schematics/bundles/property_name-BCpALNpZ.cjs +1 -1
  56. package/schematics/bundles/route-lazy-loading.cjs +1 -1
  57. package/schematics/bundles/router-testing-module-migration.cjs +1 -1
  58. package/schematics/bundles/safe-optional-chaining.cjs +571 -0
  59. package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
  60. package/schematics/bundles/signal-input-migration.cjs +3 -3
  61. package/schematics/bundles/signal-queries-migration.cjs +3 -3
  62. package/schematics/bundles/signals.cjs +3 -3
  63. package/schematics/bundles/standalone-migration.cjs +1 -1
  64. package/schematics/bundles/strict-safe-navigation-narrow.cjs +1 -1
  65. package/schematics/bundles/strict-templates-default.cjs +1 -1
  66. package/schematics/migrations.json +5 -0
  67. package/third_party/@mcp-b/webmcp-types/LICENSE +21 -0
  68. package/third_party/@mcp-b/webmcp-types/dist/common.d.ts +297 -0
  69. package/third_party/@mcp-b/webmcp-types/dist/json-schema.d.ts +196 -0
  70. package/third_party/@mcp-b/webmcp-types/index.d.ts +9 -0
  71. package/types/_api-chunk.d.ts +23 -14
  72. package/types/_chrome_dev_tools_performance-chunk.d.ts +1 -1
  73. package/types/_debug_node-chunk.d.ts +1 -1
  74. package/types/_effect-chunk.d.ts +1 -1
  75. package/types/_event_dispatcher-chunk.d.ts +1 -1
  76. package/types/_formatter-chunk.d.ts +1 -1
  77. package/types/_weak_ref-chunk.d.ts +1 -1
  78. package/types/core.d.ts +2880 -2735
  79. package/types/primitives-di.d.ts +1 -1
  80. package/types/primitives-event-dispatch.d.ts +1 -1
  81. package/types/primitives-signals.d.ts +1 -1
  82. package/types/rxjs-interop.d.ts +4 -4
  83. package/types/testing.d.ts +1 -1
@@ -34,6 +34,11 @@
34
34
  "version": "22.0.0",
35
35
  "description": "Migrate broken duplicate outputs",
36
36
  "factory": "./bundles/model-output.cjs#migrate"
37
+ },
38
+ "safe-optional-chaining": {
39
+ "version": "22.0.0",
40
+ "description": "Wraps optional chaining expressions in $safeNavigationMigration().",
41
+ "factory": "./bundles/safe-optional-chaining.cjs#migrate"
37
42
  }
38
43
  }
39
44
  }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 mcp-b contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,297 @@
1
+ /**
2
+ * Primitive JSON value.
3
+ */
4
+ export type JsonPrimitive = string | number | boolean | null;
5
+ /**
6
+ * Object-shaped JSON value.
7
+ */
8
+ export interface JsonObject {
9
+ [key: string]: JsonValue;
10
+ }
11
+ /**
12
+ * Any valid JSON value.
13
+ */
14
+ export type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
15
+ /**
16
+ * JSON Schema property definition.
17
+ *
18
+ * @see {@link https://json-schema.org/}
19
+ */
20
+ export interface InputSchemaProperty {
21
+ /**
22
+ * JSON Schema type for this property.
23
+ */
24
+ type?: string;
25
+ /**
26
+ * Human-readable description of the property.
27
+ */
28
+ description?: string;
29
+ /**
30
+ * Additional JSON Schema keywords.
31
+ */
32
+ [key: string]: unknown;
33
+ }
34
+ /**
35
+ * JSON Schema definition for tool input parameters.
36
+ *
37
+ * @see {@link https://json-schema.org/}
38
+ */
39
+ export interface InputSchema {
40
+ /**
41
+ * JSON Schema type for the root value (usually `'object'` for tool args).
42
+ */
43
+ type?: string;
44
+ /**
45
+ * Property definitions for object schemas.
46
+ */
47
+ properties?: Record<string, InputSchemaProperty>;
48
+ /**
49
+ * List of required property names.
50
+ */
51
+ required?: readonly string[];
52
+ /**
53
+ * Additional JSON Schema keywords.
54
+ */
55
+ [key: string]: unknown;
56
+ }
57
+ /**
58
+ * Plain text content.
59
+ */
60
+ export interface TextContent {
61
+ /**
62
+ * Discriminator for text content.
63
+ */
64
+ type: 'text';
65
+ /**
66
+ * UTF-8 text value.
67
+ */
68
+ text: string;
69
+ }
70
+ /**
71
+ * Base64-encoded image content.
72
+ */
73
+ export interface ImageContent {
74
+ /**
75
+ * Discriminator for image content.
76
+ */
77
+ type: 'image';
78
+ /**
79
+ * Base64 payload.
80
+ */
81
+ data: string;
82
+ /**
83
+ * MIME type for the encoded image.
84
+ */
85
+ mimeType: string;
86
+ }
87
+ /**
88
+ * Base64-encoded audio content.
89
+ */
90
+ export interface AudioContent {
91
+ /**
92
+ * Discriminator for audio content.
93
+ */
94
+ type: 'audio';
95
+ /**
96
+ * Base64 payload.
97
+ */
98
+ data: string;
99
+ /**
100
+ * MIME type for the encoded audio.
101
+ */
102
+ mimeType: string;
103
+ }
104
+ /**
105
+ * Text resource contents.
106
+ */
107
+ export interface TextResourceContents {
108
+ /**
109
+ * Canonical resource URI.
110
+ */
111
+ uri: string;
112
+ /**
113
+ * Optional MIME type.
114
+ */
115
+ mimeType?: string;
116
+ /**
117
+ * UTF-8 resource payload.
118
+ */
119
+ text: string;
120
+ }
121
+ /**
122
+ * Binary resource contents encoded as base64.
123
+ */
124
+ export interface BlobResourceContents {
125
+ /**
126
+ * Canonical resource URI.
127
+ */
128
+ uri: string;
129
+ /**
130
+ * Optional MIME type.
131
+ */
132
+ mimeType?: string;
133
+ /**
134
+ * Base64-encoded binary payload.
135
+ */
136
+ blob: string;
137
+ }
138
+ /**
139
+ * Resource contents returned by resource reads.
140
+ */
141
+ export type ResourceContents = TextResourceContents | BlobResourceContents;
142
+ /**
143
+ * Embedded resource content block.
144
+ */
145
+ export interface EmbeddedResource {
146
+ /**
147
+ * Discriminator for embedded resources.
148
+ */
149
+ type: 'resource';
150
+ /**
151
+ * Inlined resource contents.
152
+ */
153
+ resource: ResourceContents;
154
+ }
155
+ /**
156
+ * Link to an externally retrievable resource.
157
+ */
158
+ export interface ResourceLink {
159
+ /**
160
+ * Discriminator for resource links.
161
+ */
162
+ type: 'resource_link';
163
+ /**
164
+ * Resource URI.
165
+ */
166
+ uri: string;
167
+ /**
168
+ * Optional display name.
169
+ */
170
+ name?: string;
171
+ /**
172
+ * Optional human-readable description.
173
+ */
174
+ description?: string;
175
+ /**
176
+ * Optional MIME type hint.
177
+ */
178
+ mimeType?: string;
179
+ }
180
+ /**
181
+ * Any content block allowed in tool responses.
182
+ */
183
+ export type ContentBlock = TextContent | ImageContent | AudioContent | ResourceLink | EmbeddedResource;
184
+ /**
185
+ * Looser content block shape accepted by many MCP tool implementations.
186
+ *
187
+ * This keeps tool return typing practical while preserving strict content
188
+ * unions via {@link ContentBlock} for consumers that want discriminated checks.
189
+ */
190
+ export type LooseContentBlock = Record<string, unknown> & {
191
+ type?: string;
192
+ };
193
+ /**
194
+ * The result returned from tool execution.
195
+ *
196
+ * @see {@link https://spec.modelcontextprotocol.io/specification/server/tools/}
197
+ */
198
+ export interface CallToolResult {
199
+ /**
200
+ * Ordered content blocks to return to the model.
201
+ */
202
+ content: Array<ContentBlock | LooseContentBlock>;
203
+ /**
204
+ * Optional machine-readable payload.
205
+ */
206
+ structuredContent?: JsonObject;
207
+ /**
208
+ * Marks the result as an error response.
209
+ */
210
+ isError?: boolean;
211
+ }
212
+ /**
213
+ * Alias for {@link CallToolResult} for API consistency.
214
+ */
215
+ export type ToolResponse = CallToolResult;
216
+ /**
217
+ * Form-based elicitation request parameters.
218
+ */
219
+ export interface ElicitationFormParams {
220
+ /**
221
+ * Elicitation mode. Omit or set to `'form'` for form input.
222
+ */
223
+ mode?: 'form';
224
+ /**
225
+ * User-facing message.
226
+ */
227
+ message: string;
228
+ /**
229
+ * Requested form schema.
230
+ */
231
+ requestedSchema: {
232
+ /**
233
+ * Root schema type.
234
+ */
235
+ type: 'object';
236
+ /**
237
+ * Field definitions.
238
+ */
239
+ properties: Record<string, InputSchema>;
240
+ /**
241
+ * Required field names.
242
+ */
243
+ required?: readonly string[];
244
+ /**
245
+ * Additional schema keywords.
246
+ */
247
+ [key: string]: unknown;
248
+ };
249
+ }
250
+ /**
251
+ * URL-based elicitation request parameters.
252
+ */
253
+ export interface ElicitationUrlParams {
254
+ /**
255
+ * Elicitation mode.
256
+ */
257
+ mode: 'url';
258
+ /**
259
+ * User-facing message.
260
+ */
261
+ message: string;
262
+ /**
263
+ * Unique elicitation identifier.
264
+ */
265
+ elicitationId: string;
266
+ /**
267
+ * URL to open.
268
+ */
269
+ url: string;
270
+ }
271
+ /**
272
+ * Elicitation request parameters.
273
+ */
274
+ export type ElicitationParams = ElicitationFormParams | ElicitationUrlParams;
275
+ /**
276
+ * Result returned by an elicitation request.
277
+ */
278
+ export interface ElicitationResult {
279
+ /**
280
+ * User decision.
281
+ */
282
+ action: 'accept' | 'decline' | 'cancel';
283
+ /**
284
+ * Submitted values when `action` is `'accept'`.
285
+ */
286
+ content?: Record<string, string | number | boolean | string[]>;
287
+ }
288
+ /**
289
+ * Registration handle returned by registration methods.
290
+ */
291
+ export interface RegistrationHandle {
292
+ /**
293
+ * Unregisters the associated item.
294
+ */
295
+ unregister: () => void;
296
+ }
297
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1,196 @@
1
+ import type { JsonPrimitive, JsonValue } from './common.js';
2
+ /**
3
+ * Primitive JSON Schema `type` values supported by the MVP inference layer.
4
+ */
5
+ export type JsonSchemaPrimitiveType = 'string' | 'number' | 'integer' | 'boolean' | 'null';
6
+ /**
7
+ * JSON Schema `type` values supported by the MVP inference layer.
8
+ */
9
+ export type JsonSchemaType = JsonSchemaPrimitiveType | 'object' | 'array';
10
+ /**
11
+ * JSON Schema multi-type tuple (for example `["string", "null"]`).
12
+ */
13
+ export type JsonSchemaTypeArray = readonly [JsonSchemaType, ...JsonSchemaType[]];
14
+ /**
15
+ * Literal values supported in JSON Schema `enum`/`const`.
16
+ */
17
+ export type JsonSchemaEnumValue = JsonPrimitive | JsonValue;
18
+ /**
19
+ * Extra JSON Schema keywords tolerated by the inference layer.
20
+ *
21
+ * These keys are intentionally accepted as opaque metadata. Inference only uses
22
+ * the core MVP keywords and ignores these fields.
23
+ */
24
+ interface SupplementalJsonSchemaKeywords {
25
+ $defs?: unknown;
26
+ $ref?: unknown;
27
+ additionalItems?: unknown;
28
+ allOf?: unknown;
29
+ anyOf?: unknown;
30
+ contains?: unknown;
31
+ definitions?: unknown;
32
+ dependentRequired?: unknown;
33
+ dependentSchemas?: unknown;
34
+ format?: unknown;
35
+ if?: unknown;
36
+ maxContains?: unknown;
37
+ minContains?: unknown;
38
+ not?: unknown;
39
+ oneOf?: unknown;
40
+ patternProperties?: unknown;
41
+ prefixItems?: unknown;
42
+ propertyNames?: unknown;
43
+ then?: unknown;
44
+ unevaluatedItems?: unknown;
45
+ unevaluatedProperties?: unknown;
46
+ }
47
+ /**
48
+ * Non-validation metadata accepted by the MVP inference subset.
49
+ */
50
+ interface JsonSchemaMetadata extends SupplementalJsonSchemaKeywords {
51
+ default?: JsonValue;
52
+ description?: string;
53
+ examples?: readonly JsonValue[];
54
+ /**
55
+ * OpenAPI-compatible nullability marker.
56
+ */
57
+ nullable?: boolean;
58
+ title?: string;
59
+ }
60
+ /**
61
+ * JSON Schema for `type: "string"`.
62
+ */
63
+ export interface JsonSchemaString extends JsonSchemaMetadata {
64
+ const?: string;
65
+ enum?: readonly string[];
66
+ maxLength?: number;
67
+ minLength?: number;
68
+ pattern?: string;
69
+ type: 'string';
70
+ }
71
+ /**
72
+ * JSON Schema for `type: "number"` and `type: "integer"`.
73
+ */
74
+ export interface JsonSchemaNumber extends JsonSchemaMetadata {
75
+ const?: number;
76
+ enum?: readonly number[];
77
+ exclusiveMaximum?: number;
78
+ exclusiveMinimum?: number;
79
+ maximum?: number;
80
+ minimum?: number;
81
+ multipleOf?: number;
82
+ type: 'number' | 'integer';
83
+ }
84
+ /**
85
+ * JSON Schema for `type: "boolean"`.
86
+ */
87
+ export interface JsonSchemaBoolean extends JsonSchemaMetadata {
88
+ const?: boolean;
89
+ enum?: readonly boolean[];
90
+ type: 'boolean';
91
+ }
92
+ /**
93
+ * JSON Schema for `type: "null"`.
94
+ */
95
+ export interface JsonSchemaNull extends JsonSchemaMetadata {
96
+ const?: null;
97
+ enum?: readonly null[];
98
+ type: 'null';
99
+ }
100
+ /**
101
+ * JSON Schema for `type: "array"`.
102
+ */
103
+ export interface JsonSchemaArray extends JsonSchemaMetadata {
104
+ items: JsonSchemaForInference;
105
+ maxItems?: number;
106
+ minItems?: number;
107
+ type: 'array';
108
+ uniqueItems?: boolean;
109
+ }
110
+ /**
111
+ * JSON Schema for `type: "object"`.
112
+ */
113
+ export interface JsonSchemaObject extends JsonSchemaMetadata {
114
+ additionalProperties?: boolean | JsonSchemaForInference;
115
+ maxProperties?: number;
116
+ minProperties?: number;
117
+ properties?: Readonly<Record<string, JsonSchemaForInference>>;
118
+ required?: readonly string[];
119
+ type: 'object';
120
+ }
121
+ /**
122
+ * JSON Schema for multi-type unions via `type: [...]`.
123
+ */
124
+ export interface JsonSchemaMultiType extends JsonSchemaMetadata {
125
+ additionalProperties?: boolean | JsonSchemaForInference;
126
+ const?: JsonSchemaEnumValue;
127
+ enum?: readonly JsonSchemaEnumValue[];
128
+ items?: JsonSchemaForInference;
129
+ properties?: Readonly<Record<string, JsonSchemaForInference>>;
130
+ required?: readonly string[];
131
+ type: JsonSchemaTypeArray;
132
+ }
133
+ /**
134
+ * JSON Schema subset supported by the MVP type inference layer.
135
+ */
136
+ export type JsonSchemaForInference = JsonSchemaArray | JsonSchemaBoolean | JsonSchemaMultiType | JsonSchemaNull | JsonSchemaNumber | JsonSchemaObject | JsonSchemaString;
137
+ type Simplify<T> = {
138
+ [K in keyof T]: T[K];
139
+ } & {};
140
+ type EmptyObject = Record<never, never>;
141
+ type EnumLiteral<TSchema> = TSchema extends {
142
+ enum: infer TEnum extends readonly unknown[];
143
+ } ? Extract<TEnum[number], JsonSchemaEnumValue> : never;
144
+ type ConstLiteral<TSchema> = TSchema extends {
145
+ const: infer TConst;
146
+ } ? Extract<TConst, JsonSchemaEnumValue> : never;
147
+ type PropertiesOf<TSchema> = TSchema extends {
148
+ properties: infer TProperties extends Readonly<Record<string, JsonSchemaForInference>>;
149
+ } ? TProperties : EmptyObject;
150
+ type RequiredKeysOf<TSchema, TProperties extends Record<string, unknown>> = TSchema extends {
151
+ required: readonly (infer TRequired)[];
152
+ } ? string extends TRequired ? never : Extract<TRequired, keyof TProperties & string> : never;
153
+ type RequiredProps<TProperties extends Record<string, JsonSchemaForInference>, TRequiredKeys extends string> = {
154
+ [K in keyof TProperties as K extends TRequiredKeys ? K : never]-?: InferJsonSchema<TProperties[K]>;
155
+ };
156
+ type OptionalProps<TProperties extends Record<string, JsonSchemaForInference>, TRequiredKeys extends string> = {
157
+ [K in keyof TProperties as K extends TRequiredKeys ? never : K]?: InferJsonSchema<TProperties[K]>;
158
+ };
159
+ type PropertyKeysOf<TSchema> = keyof PropertiesOf<TSchema> & string;
160
+ type AdditionalSchemaOf<TSchema> = TSchema extends {
161
+ additionalProperties: infer TAdditional;
162
+ } ? TAdditional : undefined;
163
+ type AdditionalPropsValue<TSchema> = AdditionalSchemaOf<TSchema> extends JsonSchemaForInference ? InferJsonSchema<AdditionalSchemaOf<TSchema>> : unknown;
164
+ type AdditionalPropsOf<TSchema> = TSchema extends {
165
+ additionalProperties: false;
166
+ } ? EmptyObject : AdditionalSchemaOf<TSchema> extends JsonSchemaForInference ? PropertyKeysOf<TSchema> extends never ? Record<string, AdditionalPropsValue<TSchema>> : Record<string, unknown> : Record<string, unknown>;
167
+ type InferObject<TSchema> = Simplify<RequiredProps<PropertiesOf<TSchema>, RequiredKeysOf<TSchema, PropertiesOf<TSchema>>> & OptionalProps<PropertiesOf<TSchema>, RequiredKeysOf<TSchema, PropertiesOf<TSchema>>> & AdditionalPropsOf<TSchema>>;
168
+ type TypeKeywordOf<TSchema> = TSchema extends {
169
+ type?: infer TType;
170
+ } ? 'type' extends keyof TSchema ? TType : undefined : undefined;
171
+ type TypeOptionsOf<TSchema> = [TypeKeywordOf<TSchema>] extends [undefined] ? 'object' : TypeKeywordOf<TSchema> extends readonly unknown[] ? Extract<TypeKeywordOf<TSchema>[number], JsonSchemaType> : Extract<TypeKeywordOf<TSchema>, JsonSchemaType>;
172
+ type InferFromTypeOption<TSchema, TType extends JsonSchemaType> = TType extends 'object' ? InferObject<TSchema> : TType extends 'array' ? TSchema extends {
173
+ items: infer TItems;
174
+ } ? InferJsonSchema<TItems>[] : unknown[] : TType extends 'string' ? string : TType extends 'number' | 'integer' ? number : TType extends 'boolean' ? boolean : TType extends 'null' ? null : unknown;
175
+ type InferFromTypeKeyword<TSchema> = TypeOptionsOf<TSchema> extends never ? unknown : InferFromTypeOption<TSchema, TypeOptionsOf<TSchema>>;
176
+ type ApplyNullable<TSchema, TValue> = TSchema extends {
177
+ nullable: true;
178
+ } ? TValue | null : TValue;
179
+ /**
180
+ * Infers a TypeScript type from the supported JSON Schema subset.
181
+ *
182
+ * `const` and `enum` take precedence when present.
183
+ */
184
+ export type InferJsonSchema<TSchema> = [ConstLiteral<TSchema>] extends [never] ? [EnumLiteral<TSchema>] extends [never] ? ApplyNullable<TSchema, InferFromTypeKeyword<TSchema>> : ApplyNullable<TSchema, EnumLiteral<TSchema>> : ApplyNullable<TSchema, ConstLiteral<TSchema>>;
185
+ type IsWidenedTypeKeyword<TTypeKeyword> = string extends TTypeKeyword ? true : TTypeKeyword extends readonly unknown[] ? string extends TTypeKeyword[number] ? true : false : false;
186
+ type IncludesObjectType<TSchema> = TypeOptionsOf<TSchema> extends never ? false : 'object' extends TypeOptionsOf<TSchema> ? true : false;
187
+ /**
188
+ * Infers tool argument types from a root `InputSchema`.
189
+ *
190
+ * If the schema is not a literal object schema (for example a widened
191
+ * `InputSchema` loaded at runtime), this intentionally falls back to
192
+ * `Record<string, unknown>`.
193
+ */
194
+ export type InferArgsFromInputSchema<TSchema> = IsWidenedTypeKeyword<TypeKeywordOf<TSchema>> extends true ? Record<string, unknown> : IncludesObjectType<TSchema> extends true ? InferObject<TSchema> : Record<string, unknown>;
195
+ export {};
196
+ //# sourceMappingURL=json-schema.d.ts.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+
9
+ export {InferArgsFromInputSchema, JsonSchemaForInference} from './dist/json-schema.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v22.0.0-next.10
2
+ * @license Angular v22.0.0-next.11
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -138,7 +138,7 @@ interface ResourceParamsContext {
138
138
  *
139
139
  * `local` - The resource's value was set locally via `.set()` or `.update()`.
140
140
  *
141
- * @experimental
141
+ * @publicApi 22.0
142
142
  */
143
143
  type ResourceStatus = 'idle' | 'error' | 'loading' | 'reloading' | 'resolved' | 'local';
144
144
  /**
@@ -148,7 +148,7 @@ type ResourceStatus = 'idle' | 'error' | 'loading' | 'reloading' | 'resolved' |
148
148
  * The usual way of creating a `Resource` is through the `resource` function, but various other APIs
149
149
  * may present `Resource` instances to describe their own concepts.
150
150
  *
151
- * @experimental
151
+ * @publicApi 22.0
152
152
  */
153
153
  interface Resource<T> {
154
154
  /**
@@ -185,7 +185,7 @@ interface Resource<T> {
185
185
  *
186
186
  * Overwriting the value of a resource sets it to the 'local' state.
187
187
  *
188
- * @experimental
188
+ * @publicApi 22.0
189
189
  */
190
190
  interface WritableResource<T> extends Resource<T> {
191
191
  readonly value: WritableSignal<T>;
@@ -213,7 +213,7 @@ interface WritableResource<T> extends Resource<T> {
213
213
  /**
214
214
  * A `WritableResource` created through the `resource` function.
215
215
  *
216
- * @experimental
216
+ * @publicApi 22.0
217
217
  */
218
218
  interface ResourceRef<T> extends WritableResource<T> {
219
219
  hasValue(this: T extends undefined ? this : never): this is ResourceRef<Exclude<T, undefined>>;
@@ -227,7 +227,7 @@ interface ResourceRef<T> extends WritableResource<T> {
227
227
  * Parameter to a `ResourceLoader` which gives the request and other options for the current loading
228
228
  * operation.
229
229
  *
230
- * @experimental
230
+ * @publicApi 22.0
231
231
  */
232
232
  interface ResourceLoaderParams<R> {
233
233
  params: NoInfer<Exclude<R, undefined>>;
@@ -239,19 +239,19 @@ interface ResourceLoaderParams<R> {
239
239
  /**
240
240
  * Loading function for a `Resource`.
241
241
  *
242
- * @experimental
242
+ * @publicApi 22.0
243
243
  */
244
244
  type ResourceLoader<T, R> = (param: ResourceLoaderParams<R>) => PromiseLike<T>;
245
245
  /**
246
246
  * Streaming loader for a `Resource`.
247
247
  *
248
- * @experimental
248
+ * @publicApi 22.0
249
249
  */
250
250
  type ResourceStreamingLoader<T, R> = (param: ResourceLoaderParams<R>) => Signal<ResourceStreamItem<T>> | PromiseLike<Signal<ResourceStreamItem<T>>> | undefined;
251
251
  /**
252
252
  * Options to the `resource` function, for creating a resource.
253
253
  *
254
- * @experimental
254
+ * @publicApi 22.0
255
255
  */
256
256
  interface BaseResourceOptions<T, R> {
257
257
  /**
@@ -274,11 +274,16 @@ interface BaseResourceOptions<T, R> {
274
274
  * Overrides the `Injector` used by `resource`.
275
275
  */
276
276
  injector?: Injector;
277
+ /**
278
+ * Identifier used to cache the resource data in the `TransferState` during server-side rendering and to retrieve it on the client side.
279
+ * This value value needs to be identical for both the client and server.
280
+ */
281
+ id?: string;
277
282
  }
278
283
  /**
279
284
  * Options to the `resource` function, for creating a resource.
280
285
  *
281
- * @experimental
286
+ * @publicApi 22.0
282
287
  */
283
288
  interface PromiseResourceOptions<T, R> extends BaseResourceOptions<T, R> {
284
289
  /**
@@ -293,7 +298,7 @@ interface PromiseResourceOptions<T, R> extends BaseResourceOptions<T, R> {
293
298
  /**
294
299
  * Options to the `resource` function, for creating a resource.
295
300
  *
296
- * @experimental
301
+ * @publicApi 22.0
297
302
  */
298
303
  interface StreamingResourceOptions<T, R> extends BaseResourceOptions<T, R> {
299
304
  /**
@@ -307,7 +312,7 @@ interface StreamingResourceOptions<T, R> extends BaseResourceOptions<T, R> {
307
312
  loader?: never;
308
313
  }
309
314
  /**
310
- * @experimental
315
+ * @publicApi 22.0
311
316
  */
312
317
  type ResourceOptions<T, R> = (PromiseResourceOptions<T, R> | StreamingResourceOptions<T, R>) & {
313
318
  /**
@@ -316,7 +321,7 @@ type ResourceOptions<T, R> = (PromiseResourceOptions<T, R> | StreamingResourceOp
316
321
  debugName?: string;
317
322
  };
318
323
  /**
319
- * @experimental
324
+ * @publicApi 22.0
320
325
  */
321
326
  type ResourceStreamItem<T> = {
322
327
  value: T;
@@ -326,7 +331,7 @@ type ResourceStreamItem<T> = {
326
331
  /**
327
332
  * An explicit representation of a resource's state.
328
333
  *
329
- * @experimental
334
+ * @publicApi 22.0
330
335
  * @see [Resource composition with snapshots](guide/signals/resource#resource-composition-with-snapshots)
331
336
  */
332
337
  type ResourceSnapshot<T> = {
@@ -346,6 +351,8 @@ type ResourceSnapshot<T> = {
346
351
  * Options for `debounced`.
347
352
  *
348
353
  * @see [Debouncing signals with `debounced`](guide/signals/debounced)
354
+ *
355
+ * @experimental 22.0
349
356
  */
350
357
  interface DebouncedOptions<T> {
351
358
  /** The `Injector` to use for the debounced resource. */
@@ -358,6 +365,8 @@ interface DebouncedOptions<T> {
358
365
  * Can be a number of milliseconds or a function that returns a Promise.
359
366
  *
360
367
  * @see [Debouncing signals with `debounced`](guide/signals/debounced)
368
+ *
369
+ * @experimental 22.0
361
370
  */
362
371
  type DebounceTimer<T> = number | ((value: T, lastValue: ResourceSnapshot<T>) => Promise<void> | void);
363
372
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v22.0.0-next.10
2
+ * @license Angular v22.0.0-next.11
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v22.0.0-next.10
2
+ * @license Angular v22.0.0-next.11
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */