@plugmatica/semantic-contracts 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,2534 @@
1
+ /**
2
+ * Extension contribution kinds supported by the shared plugin protocol.
3
+ * @category Extension contracts
4
+ */
5
+ declare const EXTENSION_KINDS: readonly ["ui", "operation_hook", "event_handler", "provider"];
6
+ /**
7
+ * Extension surface families supported by the shared plugin protocol.
8
+ * @category Extension contracts
9
+ */
10
+ declare const EXTENSION_SURFACES: readonly ["page", "page_header", "grid", "nav_menu", "form", "field", "card", "tabs", "panel", "dialog", "table", "chart", "metric", "action", "settings_section", "wizard", "slot", "slot_frame", "slot_container", "custom"];
11
+ /**
12
+ * Operation-hook execution phases supported by the shared plugin protocol.
13
+ * @category Extension contracts
14
+ */
15
+ declare const OPERATION_EXTENSION_PHASES: readonly ["before", "after", "error", "finally"];
16
+
17
+ /**
18
+ * Canonical extension kind, surface, and operation-phase constants generated from the shared wire protocol.
19
+ * @category Extension contracts
20
+ */
21
+
22
+ /**
23
+ * Supported extension contribution kinds from the public protocol.
24
+ * @category Extension contracts
25
+ */
26
+ type ExtensionKind = (typeof EXTENSION_KINDS)[number];
27
+ /**
28
+ * Supported extension surface families from the public protocol.
29
+ * @category Extension contracts
30
+ */
31
+ type ExtensionSurface = (typeof EXTENSION_SURFACES)[number];
32
+ /**
33
+ * Execution phases supported by operation-hook extensions.
34
+ * @category Extension contracts
35
+ */
36
+ type OperationExtensionPhase = (typeof OPERATION_EXTENSION_PHASES)[number];
37
+ /**
38
+ * Failure-handling policies available to extension execution.
39
+ * @category Extension contracts
40
+ */
41
+ type ExtensionFailurePolicy = "isolate" | "abort" | "disable_extension";
42
+
43
+ /**
44
+ * Stable public plugin identity.
45
+ *
46
+ * Examples:
47
+ * - plugmatica.home
48
+ * - plugmatica.home.sample
49
+ * @category Identifiers
50
+ */
51
+ type PluginKey = string;
52
+
53
+ /**
54
+ * Reusable protocol identity. It is independent from any mounted instance key.
55
+ * @category Extension contracts
56
+ */
57
+ type ExtensionContractIdentity = {
58
+ /** Stable identifier of the extension contract family. */
59
+ id: string;
60
+ /** Exact version of the extension contract definition. */
61
+ version: string;
62
+ };
63
+ /**
64
+ * Concrete extension contract identity published by a producer.
65
+ * @category Extension contracts
66
+ */
67
+ type ExtensionContractDefinition = ExtensionContractIdentity;
68
+ /**
69
+ * Compatible extension contract requirement declared by a consumer.
70
+ * @category Extension contracts
71
+ */
72
+ type ExtensionContractRequirement = {
73
+ /** Contract identifier required by the consumer. */
74
+ id: string;
75
+ /** Compatible version range required by the consumer. */
76
+ version: string;
77
+ };
78
+ /**
79
+ * Named contribution point exposed by an extension surface.
80
+ * @category Extension contracts
81
+ */
82
+ type PluginExtensionSurfacePoint = {
83
+ /** Stable key of the contribution point within its surface. */
84
+ key: string;
85
+ /** Whether the point accepts more than one contribution. */
86
+ multiple: boolean;
87
+ /** Stable owner item keys that contributors may target with before/after placement. */
88
+ ownerAnchors?: readonly string[];
89
+ /** True only when the compiler can prove the owner-anchor set is exhaustive. */
90
+ ownerAnchorsComplete?: boolean;
91
+ };
92
+ /**
93
+ * A component instance exposed by the declaring plugin.
94
+ *
95
+ * Standard UI-kit surfaces are generated by @plugmatica/plugin-build. Custom
96
+ * surfaces may still be declared explicitly by the plugin author.
97
+ * @category Extension contracts
98
+ */
99
+ type ExtensionSurfaceInstanceIdentity = {
100
+ /** Public identity of this concrete mounted surface instance. */
101
+ key: string;
102
+ /** Semantic surface family implemented by the mounted component. */
103
+ surface: ExtensionSurface;
104
+ };
105
+ /**
106
+ * Extension-aware UI surface exposed by a plugin.
107
+ * @category Extension contracts
108
+ */
109
+ type PluginExtensionSurface = ExtensionSurfaceInstanceIdentity & {
110
+ /** Extension contract associated with this plugin extension surface. */
111
+ contract: ExtensionContractDefinition;
112
+ /** Contribution points exposed by this plugin extension surface. */
113
+ points: PluginExtensionSurfacePoint[];
114
+ /** Operations exposed by this plugin extension surface. */
115
+ operations: string[];
116
+ /** Optional metadata retained for runtime and tooling use. */
117
+ metadata?: Record<string, unknown> | null;
118
+ };
119
+ /**
120
+ * Event contract exposed by a plugin for other plugins to consume.
121
+ * @category Extension contracts
122
+ */
123
+ type PluginExtensionEvent = {
124
+ /** Stable event key within the producing plugin. */
125
+ key: string;
126
+ /** Protocol contract carried by the event. */
127
+ contract: ExtensionContractDefinition;
128
+ /** Whether multiple handlers may contribute to the event target. */
129
+ multiple: boolean;
130
+ /** Optional producer-defined metadata for tooling/runtime inspection. */
131
+ metadata?: Record<string, unknown> | null;
132
+ };
133
+ /**
134
+ * Provider contract exposed by a plugin for other plugins to consume.
135
+ * @category Extension contracts
136
+ */
137
+ type PluginExtensionProvider = {
138
+ /** Stable provider key within the producing plugin. */
139
+ key: string;
140
+ /** Protocol contract carried by the provider. */
141
+ contract: ExtensionContractDefinition;
142
+ /** Whether multiple provider implementations may be contributed. */
143
+ multiple: boolean;
144
+ /** Optional producer-defined metadata for tooling/runtime inspection. */
145
+ metadata?: Record<string, unknown> | null;
146
+ };
147
+ /**
148
+ * Concrete provider or runtime capability selector for an authored extension target.
149
+ * Capability selectors deliberately avoid naming the implementation plugin; the
150
+ * runtime resolves exactly one compatible installed provider.
151
+ * @category Extension contracts
152
+ */
153
+ type PluginExtensionTargetOwner = {
154
+ plugin: PluginKey;
155
+ capability?: never;
156
+ } | {
157
+ capability: {
158
+ required: boolean;
159
+ };
160
+ plugin?: never;
161
+ };
162
+ type PluginExtensionContributionBase = {
163
+ key: string;
164
+ module: string;
165
+ order: number;
166
+ contract: ExtensionContractRequirement;
167
+ label?: string | null;
168
+ labelKey?: string | null;
169
+ requiredScope?: string | null;
170
+ metadata?: Record<string, unknown> | null;
171
+ };
172
+ /**
173
+ * Manifest contribution that renders UI into an exposed extension point.
174
+ * @category Extension contracts
175
+ */
176
+ type PluginUiExtensionContribution = PluginExtensionContributionBase & {
177
+ /** Discriminator describing the kind of plugin ui extension contribution. */
178
+ kind: "ui";
179
+ /** Target contract addressed by this plugin ui extension contribution. */
180
+ target: PluginExtensionTargetOwner & {
181
+ surface: ExtensionSurface;
182
+ key: string;
183
+ point: string;
184
+ };
185
+ };
186
+ /**
187
+ * Manifest contribution that runs around an exposed operation.
188
+ * @category Extension contracts
189
+ */
190
+ type PluginOperationHookContribution = PluginExtensionContributionBase & {
191
+ /** Discriminator describing the kind of plugin operation hook contribution. */
192
+ kind: "operation_hook";
193
+ /** Target contract addressed by this plugin operation hook contribution. */
194
+ target: PluginExtensionTargetOwner & {
195
+ surface: ExtensionSurface;
196
+ key: string;
197
+ operation: string;
198
+ };
199
+ /** Operation phases in which this plugin operation hook contribution executes. */
200
+ phases: OperationExtensionPhase[];
201
+ };
202
+ /**
203
+ * Manifest contribution that handles a published plugin event.
204
+ * @category Extension contracts
205
+ */
206
+ type PluginEventHandlerContribution = PluginExtensionContributionBase & {
207
+ /** Discriminator describing the kind of plugin event handler contribution. */
208
+ kind: "event_handler";
209
+ /** Target contract addressed by this plugin event handler contribution. */
210
+ target: PluginExtensionTargetOwner & {
211
+ event: string;
212
+ };
213
+ };
214
+ /**
215
+ * Manifest contribution that supplies an implementation for a provider target.
216
+ * @category Extension contracts
217
+ */
218
+ type PluginProviderContribution = PluginExtensionContributionBase & {
219
+ /** Discriminator describing the kind of plugin provider contribution. */
220
+ kind: "provider";
221
+ /** Target contract addressed by this plugin provider contribution. */
222
+ target: PluginExtensionTargetOwner & {
223
+ provider: string;
224
+ };
225
+ };
226
+ /**
227
+ * Union of all plugin-authored extension contribution declarations.
228
+ * @category Extension contracts
229
+ */
230
+ type PluginExtensionContribution = PluginUiExtensionContribution | PluginOperationHookContribution | PluginEventHandlerContribution | PluginProviderContribution;
231
+
232
+ /**
233
+ * Public identities are semantic ABI. These brands document intent without
234
+ * changing the wire representation, which remains a string.
235
+ */
236
+ declare const extensionIdentityBrand: unique symbol;
237
+ type BrandedIdentity<TName extends string> = string & {
238
+ readonly [extensionIdentityBrand]: TName;
239
+ };
240
+ /**
241
+ * Runtime-only identifier assigned to a resolved contribution instance.
242
+ * @category Extension identity
243
+ */
244
+ type RuntimeContributionId = BrandedIdentity<"runtime-contribution-id">;
245
+ /**
246
+ * Public key identifying an extension-aware surface.
247
+ * @category Extension identity
248
+ */
249
+ type ExtensionSurfaceKey = BrandedIdentity<"surface-key">;
250
+ /**
251
+ * Public key identifying a contribution authored by a consuming plugin.
252
+ * @category Extension identity
253
+ */
254
+ type ExtensionContributionKey = BrandedIdentity<"contribution-key">;
255
+ /**
256
+ * Public operation name exposed by a surface contract.
257
+ * @category Extension identity
258
+ */
259
+ type ExtensionOperationKey = BrandedIdentity<"operation-key">;
260
+ /**
261
+ * Public point name exposed by a surface contract.
262
+ * @category Extension identity
263
+ */
264
+ type ExtensionPointKey = BrandedIdentity<"point-key">;
265
+ /**
266
+ * Developer-facing static override used by the `extension` escape hatch.
267
+ * @category Extension identity
268
+ */
269
+ type ExplicitExtensionName = BrandedIdentity<"explicit-extension-name">;
270
+ /**
271
+ * Shared shape for future semantic UI-kit components.
272
+ * @category Extension identity
273
+ */
274
+ type ExtensionOverrideProps = {
275
+ /** Optional static developer override for the public extension identity. */
276
+ readonly extension?: string | null;
277
+ };
278
+ /**
279
+ * Accepted input forms for an extension identity scope.
280
+ * @category Extension identity
281
+ */
282
+ type ExtensionScopeInput = string | readonly string[] | null | undefined;
283
+ /**
284
+ * Normalized semantic scope used to compose public extension identities.
285
+ * @category Extension identity
286
+ */
287
+ type ExtensionScope = {
288
+ /** Normalized identity segments that make up the semantic scope. */
289
+ readonly segments: readonly string[];
290
+ };
291
+ /**
292
+ * Static-analysis result for a possible extension identity value.
293
+ * @category Extension identity
294
+ */
295
+ type ExtensionIdentityCandidate = {
296
+ readonly state: "absent";
297
+ } | {
298
+ readonly state: "dynamic";
299
+ readonly expression?: string;
300
+ } | {
301
+ readonly state: "static";
302
+ readonly value: string;
303
+ };
304
+ /**
305
+ * Source that supplied the final public extension identity.
306
+ * @category Extension identity
307
+ */
308
+ type ExtensionIdentitySource = "explicit" | "semantic" | "scope";
309
+ /**
310
+ * Inputs accepted by the stateless public extension identity resolver.
311
+ * @category Extension identity
312
+ */
313
+ type ExtensionIdentityRequest = {
314
+ /** Enclosing semantic scope, for example `customer.detail.form`. */
315
+ readonly scope?: ExtensionScopeInput;
316
+ /** Static developer override from the public `extension` prop. */
317
+ readonly explicit?: ExtensionIdentityCandidate;
318
+ /** Stable semantic identity already present in source, e.g. field name. */
319
+ readonly semantic?: ExtensionIdentityCandidate;
320
+ /**
321
+ * Allows the component to reuse the enclosing scope when that scope already
322
+ * represents the exact public surface. This is deliberately opt-in because
323
+ * silently reusing a parent scope is ambiguous for normal child surfaces.
324
+ */
325
+ readonly allowEnclosingScope?: boolean;
326
+ };
327
+ /**
328
+ * Normalized public identity produced by extension identity derivation.
329
+ * @category Extension identity
330
+ */
331
+ type DerivedExtensionIdentity = {
332
+ /** Final scope-qualified public extension key. */
333
+ readonly key: ExtensionSurfaceKey;
334
+ /** Normalized scope used during derivation. */
335
+ readonly scope: ExtensionScope;
336
+ /** Input source that supplied the local identity. */
337
+ readonly source: ExtensionIdentitySource;
338
+ /** Normalized local identity before scope composition, or null when the enclosing scope is reused. */
339
+ readonly localIdentity: string | null;
340
+ };
341
+ /**
342
+ * Stable error codes emitted by extension identity validation.
343
+ * @category Extension identity
344
+ */
345
+ type ExtensionIdentityErrorCode = "dynamic_explicit_identity" | "dynamic_semantic_identity" | "invalid_identity" | "ambiguous_identity" | "duplicate_identity";
346
+ /**
347
+ * Error raised when a stable public extension identity cannot be derived.
348
+ * @category Extension identity
349
+ */
350
+ declare class ExtensionIdentityError extends Error {
351
+ /** Stable machine-readable reason for the identity failure. */
352
+ readonly code: ExtensionIdentityErrorCode;
353
+ /** Optional offending identity value or expression. */
354
+ readonly value?: string;
355
+ constructor(code: ExtensionIdentityErrorCode, message: string, value?: string);
356
+ }
357
+ /**
358
+ * Diagnostic/source metadata is intentionally separate from public identity.
359
+ * None of these fields may participate in identity derivation.
360
+ * @category Extension identity
361
+ */
362
+ type ExtensionSourceMetadata = {
363
+ /** Source file associated with this diagnostic metadata. */
364
+ readonly file?: string;
365
+ /** One-based source line when available. */
366
+ readonly line?: number;
367
+ /** One-based source column when available. */
368
+ readonly column?: number;
369
+ /** Source offset when available. */
370
+ readonly offset?: number;
371
+ /** Human-readable label displayed for this extension source metadata. */
372
+ readonly label?: string;
373
+ /** Localization key associated with the source element, when available. */
374
+ readonly translationKey?: string;
375
+ };
376
+ /**
377
+ * Current-source contract for one extension-aware surface.
378
+ * @category Extension identity
379
+ */
380
+ type CurrentExtensionSurfaceContract = Pick<PluginExtensionSurface, "surface" | "contract"> & {
381
+ /** Stable key identifying this current extension surface contract. */
382
+ readonly key: ExtensionSurfaceKey;
383
+ /** Contribution points exposed by this current extension surface contract. */
384
+ readonly points: readonly {
385
+ readonly key: ExtensionPointKey;
386
+ readonly multiple: boolean;
387
+ readonly ownerAnchors?: readonly string[];
388
+ readonly ownerAnchorsComplete?: boolean;
389
+ }[];
390
+ /** Operations exposed by this current extension surface contract. */
391
+ readonly operations: readonly ExtensionOperationKey[];
392
+ };
393
+ /**
394
+ * Current-source contract for one extension event.
395
+ * @category Extension identity
396
+ */
397
+ type CurrentExtensionEventContract = Pick<PluginExtensionEvent, "contract" | "multiple"> & {
398
+ /** Stable key identifying this current extension event contract. */
399
+ readonly key: ExtensionSurfaceKey;
400
+ };
401
+ /**
402
+ * Current-source contract for one extension provider.
403
+ * @category Extension identity
404
+ */
405
+ type CurrentExtensionProviderContract = Pick<PluginExtensionProvider, "contract" | "multiple"> & {
406
+ /** Stable key identifying this current extension provider contract. */
407
+ readonly key: ExtensionSurfaceKey;
408
+ };
409
+ /**
410
+ * The deterministic public extension API derived from current source only.
411
+ * Historical baselines are intentionally absent from this type and API.
412
+ * @category Extension identity
413
+ */
414
+ type CurrentExtensionContract = {
415
+ /** Current-source extension surfaces exposed by the plugin. */
416
+ readonly surfaces: readonly CurrentExtensionSurfaceContract[];
417
+ /** Current-source extension events exposed by the plugin. */
418
+ readonly events: readonly CurrentExtensionEventContract[];
419
+ /** Current-source extension providers exposed by the plugin. */
420
+ readonly providers: readonly CurrentExtensionProviderContract[];
421
+ };
422
+ /**
423
+ * Reusable candidate representing the absence of an explicit or semantic extension identity.
424
+ * @category Extension identity
425
+ */
426
+ declare const absentExtensionIdentity: {
427
+ readonly state: "absent";
428
+ };
429
+ /**
430
+ * Represent a statically known extension identity candidate.
431
+ * @category Extension identity
432
+ * @param value Statically known local identity value.
433
+ * @returns A statically resolved identity candidate.
434
+ */
435
+ declare function staticExtensionIdentity(value: string): ExtensionIdentityCandidate;
436
+ /**
437
+ * Represent an extension identity expression that cannot be resolved statically.
438
+ * @category Extension identity
439
+ * @param expression Optional source expression recorded for diagnostics.
440
+ * @returns A dynamic identity candidate for compiler diagnostics.
441
+ */
442
+ declare function dynamicExtensionIdentity(expression?: string): ExtensionIdentityCandidate;
443
+ /**
444
+ * Normalize string or segment input into an extension identity scope.
445
+ * @category Extension identity
446
+ * @param input Scope string, segments, or empty value to normalize.
447
+ * @returns The normalized scope segments.
448
+ */
449
+ declare function createExtensionScope(input: ExtensionScopeInput): ExtensionScope;
450
+ /** Always composes `identity` relative to `scope`. */
451
+ /**
452
+ * @category Extension identity
453
+ * @param scope Enclosing semantic scope for the identity.
454
+ * @param identity Local identity to append to the normalized scope.
455
+ * @returns The normalized, scope-qualified public extension key.
456
+ */
457
+ declare function composeExtensionPublicKey(scope: ExtensionScopeInput, identity: string): ExtensionSurfaceKey;
458
+ /**
459
+ * Compatibility helper for existing explicit `extensionKey`/`actionKey` APIs:
460
+ * a dotted key is treated as already-qualified, while a single segment is
461
+ * scoped. New semantic derivation should use `composeExtensionPublicKey`.
462
+ */
463
+ /**
464
+ * @category Extension identity
465
+ * @param scope Enclosing semantic scope used for unqualified keys.
466
+ * @param key Compatibility extension key to resolve.
467
+ * @returns The normalized public extension key.
468
+ */
469
+ declare function resolveQualifiedExtensionPublicKey(scope: ExtensionScopeInput, key: string): ExtensionSurfaceKey;
470
+ /**
471
+ * Canonical stateless identity resolver.
472
+ *
473
+ * Precedence is explicit override -> semantic identity -> exact enclosing
474
+ * scope -> error. No baseline, registry, filesystem, line number, label or
475
+ * runtime state is accepted by this function.
476
+ */
477
+ /**
478
+ * @category Extension identity
479
+ * @param request Explicit, semantic, and enclosing-scope identity candidates.
480
+ * @returns The derived public key, normalized scope, source, and local identity.
481
+ */
482
+ declare function derivePublicExtensionIdentity(request: ExtensionIdentityRequest): DerivedExtensionIdentity;
483
+ /**
484
+ * Derives a declaration set without ever inventing numeric/hash suffixes.
485
+ * Duplicate public identities are rejected as ambiguous ABI.
486
+ */
487
+ /**
488
+ * @category Extension identity
489
+ * @param requests Identity requests to derive and verify for uniqueness.
490
+ * @returns Derived identities in request order after uniqueness validation.
491
+ */
492
+ declare function deriveUniquePublicExtensionIdentities(requests: readonly ExtensionIdentityRequest[]): readonly DerivedExtensionIdentity[];
493
+ /**
494
+ * Creates the ABI-only Current Extension Contract. Source/diagnostic metadata
495
+ * is intentionally discarded and ordering is canonicalized.
496
+ */
497
+ /**
498
+ * @category Extension identity
499
+ * @param input Current-source surfaces, events, and providers discovered for the plugin.
500
+ * @returns The deterministic current-source extension contract.
501
+ */
502
+ declare function createCurrentExtensionContract(input: {
503
+ readonly surfaces?: readonly PluginExtensionSurface[];
504
+ readonly events?: readonly PluginExtensionEvent[];
505
+ readonly providers?: readonly PluginExtensionProvider[];
506
+ }): CurrentExtensionContract;
507
+ /**
508
+ * Normalize and validate a public extension identity string.
509
+ * @category Extension identity
510
+ * @param value Public identity string to normalize and validate.
511
+ * @returns The normalized public identity.
512
+ */
513
+ declare function normalizePublicIdentity(value: string): string;
514
+ /**
515
+ * Explicit overrides follow a developer-facing lower-kebab naming convention.
516
+ * Dots are allowed to express a relative semantic path; they never escape the
517
+ * enclosing scope.
518
+ */
519
+ /**
520
+ * @category Extension identity
521
+ * @param value Developer-supplied explicit extension name.
522
+ * @returns The normalized explicit extension name.
523
+ */
524
+ declare function normalizeExplicitExtensionName(value: string): string;
525
+
526
+ /**
527
+ * Developer-facing importance levels for standard extension points.
528
+ * @category Standard extension surfaces
529
+ */
530
+ type StandardExtensionPointImportance = "primary" | "advanced";
531
+ /**
532
+ * Runtime-checkable field vocabulary for canonical structured contributions.
533
+ * @category Standard extension surfaces
534
+ */
535
+ type StandardContributionFieldType = "string" | "number" | "boolean" | "function" | "object" | "string[]" | "unknown";
536
+ /**
537
+ * Canonical schema for points resolved through `contribute(context)` rather
538
+ * than a renderable component module. `unknown` means the field must exist but
539
+ * its value is deliberately owned by the consuming semantic component (for
540
+ * example a ReactNode header).
541
+ * @category Standard extension surfaces
542
+ */
543
+ type StandardContributionSchema = {
544
+ /** Discriminator identifying this as a structured contribution schema. */
545
+ readonly kind: "object";
546
+ /** Required contribution fields and their portable types. */
547
+ readonly required: Readonly<Record<string, StandardContributionFieldType>>;
548
+ /** Optional contribution fields and their portable types. */
549
+ readonly optional?: Readonly<Record<string, StandardContributionFieldType>>;
550
+ /** Whether fields absent from the schema are accepted. */
551
+ readonly allowUnknownFields?: boolean;
552
+ };
553
+ /**
554
+ * Human-readable point metadata used by UI-kit, plugin-build and devtools.
555
+ *
556
+ * Only `key` and `multiple` are emitted as first-class manifest point fields.
557
+ * Descriptive fields live in `surface.metadata.pointDefinitions` for runtime
558
+ * tooling such as the developer surface inspector.
559
+ * @category Standard extension surfaces
560
+ */
561
+ type StandardExtensionPointDefinition = PluginExtensionSurfacePoint & {
562
+ /** Human-readable label displayed for this standard extension point definition. */
563
+ label: string;
564
+ /** Optional human-readable description of this standard extension point definition. */
565
+ description: string;
566
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
567
+ group: string;
568
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
569
+ importance: StandardExtensionPointImportance;
570
+ /** Present only for points that consume structured contributions. */
571
+ contributionSchema?: StandardContributionSchema;
572
+ };
573
+ /**
574
+ * Canonical contract definition for one standard Plugmatica extension surface.
575
+ * @category Standard extension surfaces
576
+ */
577
+ type StandardExtensionSurfaceContract = {
578
+ /** Semantic surface family implemented by the contract. */
579
+ surface: Exclude<ExtensionSurface, "custom">;
580
+ /** Canonical UI Kit component associated with the surface. */
581
+ component: string;
582
+ /** Protocol identity for the standard surface. */
583
+ contract: ExtensionContractDefinition;
584
+ /** Canonical contribution points exposed by the surface. */
585
+ points: readonly StandardExtensionPointDefinition[];
586
+ /** Canonical operations exposed by the surface. */
587
+ operations: readonly string[];
588
+ };
589
+ /**
590
+ * Canonical vocabulary for every Plugmatica-owned semantic UI surface.
591
+ *
592
+ * Instance identity is deliberately absent from this catalog. For example,
593
+ * `customer.detail.tabs` is an instance key while `plugmatica.ui.tabs` is the
594
+ * reusable contract identity shared by every standard Tabs instance.
595
+ * @category Standard extension surfaces
596
+ */
597
+ declare const standardExtensionSurfaces: {
598
+ readonly page: {
599
+ readonly surface: "page";
600
+ readonly component: "Page";
601
+ readonly contract: {
602
+ readonly id: "plugmatica.ui.page";
603
+ readonly version: "1.0.0";
604
+ };
605
+ readonly points: readonly [PluginExtensionSurfacePoint & {
606
+ /** Human-readable label displayed for this standard extension point definition. */
607
+ label: string;
608
+ /** Optional human-readable description of this standard extension point definition. */
609
+ description: string;
610
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
611
+ group: string;
612
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
613
+ importance: StandardExtensionPointImportance;
614
+ /** Present only for points that consume structured contributions. */
615
+ contributionSchema?: StandardContributionSchema;
616
+ } & {
617
+ key: "before";
618
+ } & {
619
+ contributionSchema?: undefined;
620
+ }, PluginExtensionSurfacePoint & {
621
+ /** Human-readable label displayed for this standard extension point definition. */
622
+ label: string;
623
+ /** Optional human-readable description of this standard extension point definition. */
624
+ description: string;
625
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
626
+ group: string;
627
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
628
+ importance: StandardExtensionPointImportance;
629
+ /** Present only for points that consume structured contributions. */
630
+ contributionSchema?: StandardContributionSchema;
631
+ } & {
632
+ key: "items";
633
+ } & {
634
+ contributionSchema: {
635
+ readonly kind: "object";
636
+ readonly required: {
637
+ readonly key: "string";
638
+ readonly render: "function";
639
+ };
640
+ readonly optional: {
641
+ readonly order: "number";
642
+ readonly placement: "object";
643
+ };
644
+ };
645
+ }, PluginExtensionSurfacePoint & {
646
+ /** Human-readable label displayed for this standard extension point definition. */
647
+ label: string;
648
+ /** Optional human-readable description of this standard extension point definition. */
649
+ description: string;
650
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
651
+ group: string;
652
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
653
+ importance: StandardExtensionPointImportance;
654
+ /** Present only for points that consume structured contributions. */
655
+ contributionSchema?: StandardContributionSchema;
656
+ } & {
657
+ key: "after";
658
+ } & {
659
+ contributionSchema?: undefined;
660
+ }];
661
+ readonly operations: readonly [];
662
+ };
663
+ readonly page_header: {
664
+ readonly surface: "page_header";
665
+ readonly component: "PageHeader";
666
+ readonly contract: {
667
+ readonly id: "plugmatica.ui.page-header";
668
+ readonly version: "1.0.0";
669
+ };
670
+ readonly points: readonly [PluginExtensionSurfacePoint & {
671
+ /** Human-readable label displayed for this standard extension point definition. */
672
+ label: string;
673
+ /** Optional human-readable description of this standard extension point definition. */
674
+ description: string;
675
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
676
+ group: string;
677
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
678
+ importance: StandardExtensionPointImportance;
679
+ /** Present only for points that consume structured contributions. */
680
+ contributionSchema?: StandardContributionSchema;
681
+ } & {
682
+ key: "title.before";
683
+ } & {
684
+ contributionSchema?: undefined;
685
+ }, PluginExtensionSurfacePoint & {
686
+ /** Human-readable label displayed for this standard extension point definition. */
687
+ label: string;
688
+ /** Optional human-readable description of this standard extension point definition. */
689
+ description: string;
690
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
691
+ group: string;
692
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
693
+ importance: StandardExtensionPointImportance;
694
+ /** Present only for points that consume structured contributions. */
695
+ contributionSchema?: StandardContributionSchema;
696
+ } & {
697
+ key: "title.after";
698
+ } & {
699
+ contributionSchema?: undefined;
700
+ }, PluginExtensionSurfacePoint & {
701
+ /** Human-readable label displayed for this standard extension point definition. */
702
+ label: string;
703
+ /** Optional human-readable description of this standard extension point definition. */
704
+ description: string;
705
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
706
+ group: string;
707
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
708
+ importance: StandardExtensionPointImportance;
709
+ /** Present only for points that consume structured contributions. */
710
+ contributionSchema?: StandardContributionSchema;
711
+ } & {
712
+ key: "actions";
713
+ } & {
714
+ contributionSchema: {
715
+ readonly kind: "object";
716
+ readonly required: {
717
+ readonly key: "string";
718
+ readonly render: "function";
719
+ };
720
+ readonly optional: {
721
+ readonly order: "number";
722
+ readonly placement: "object";
723
+ };
724
+ };
725
+ }];
726
+ readonly operations: readonly [];
727
+ };
728
+ readonly dialog: {
729
+ readonly surface: "dialog";
730
+ readonly component: "Dialog";
731
+ readonly contract: {
732
+ readonly id: "plugmatica.ui.dialog";
733
+ readonly version: "1.0.0";
734
+ };
735
+ readonly points: readonly [PluginExtensionSurfacePoint & {
736
+ /** Human-readable label displayed for this standard extension point definition. */
737
+ label: string;
738
+ /** Optional human-readable description of this standard extension point definition. */
739
+ description: string;
740
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
741
+ group: string;
742
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
743
+ importance: StandardExtensionPointImportance;
744
+ /** Present only for points that consume structured contributions. */
745
+ contributionSchema?: StandardContributionSchema;
746
+ } & {
747
+ key: "actions";
748
+ } & {
749
+ contributionSchema: {
750
+ readonly kind: "object";
751
+ readonly required: {
752
+ readonly key: "string";
753
+ readonly render: "function";
754
+ };
755
+ readonly optional: {
756
+ readonly order: "number";
757
+ readonly placement: "object";
758
+ };
759
+ };
760
+ }];
761
+ readonly operations: readonly [];
762
+ };
763
+ readonly grid: {
764
+ readonly surface: "grid";
765
+ readonly component: "Grid";
766
+ readonly contract: {
767
+ readonly id: "plugmatica.ui.grid";
768
+ readonly version: "1.0.0";
769
+ };
770
+ readonly points: readonly [PluginExtensionSurfacePoint & {
771
+ /** Human-readable label displayed for this standard extension point definition. */
772
+ label: string;
773
+ /** Optional human-readable description of this standard extension point definition. */
774
+ description: string;
775
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
776
+ group: string;
777
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
778
+ importance: StandardExtensionPointImportance;
779
+ /** Present only for points that consume structured contributions. */
780
+ contributionSchema?: StandardContributionSchema;
781
+ } & {
782
+ key: "items";
783
+ } & {
784
+ contributionSchema: {
785
+ readonly optional: {
786
+ readonly span: "unknown";
787
+ readonly className: "string";
788
+ readonly order: "number";
789
+ readonly placement: "object";
790
+ };
791
+ readonly kind: "object";
792
+ readonly required: {
793
+ readonly key: "string";
794
+ readonly render: "function";
795
+ };
796
+ };
797
+ }];
798
+ readonly operations: readonly [];
799
+ };
800
+ readonly nav_menu: {
801
+ readonly surface: "nav_menu";
802
+ readonly component: "NavMenu";
803
+ readonly contract: {
804
+ readonly id: "plugmatica.ui.nav-menu";
805
+ readonly version: "1.0.0";
806
+ };
807
+ readonly points: readonly [PluginExtensionSurfacePoint & {
808
+ /** Human-readable label displayed for this standard extension point definition. */
809
+ label: string;
810
+ /** Optional human-readable description of this standard extension point definition. */
811
+ description: string;
812
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
813
+ group: string;
814
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
815
+ importance: StandardExtensionPointImportance;
816
+ /** Present only for points that consume structured contributions. */
817
+ contributionSchema?: StandardContributionSchema;
818
+ } & {
819
+ key: "items";
820
+ } & {
821
+ contributionSchema: {
822
+ readonly kind: "object";
823
+ readonly required: {
824
+ readonly key: "string";
825
+ readonly item: "object";
826
+ };
827
+ readonly optional: {
828
+ readonly order: "number";
829
+ readonly placement: "object";
830
+ };
831
+ };
832
+ }, PluginExtensionSurfacePoint & {
833
+ /** Human-readable label displayed for this standard extension point definition. */
834
+ label: string;
835
+ /** Optional human-readable description of this standard extension point definition. */
836
+ description: string;
837
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
838
+ group: string;
839
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
840
+ importance: StandardExtensionPointImportance;
841
+ /** Present only for points that consume structured contributions. */
842
+ contributionSchema?: StandardContributionSchema;
843
+ } & {
844
+ key: "footer.items";
845
+ } & {
846
+ contributionSchema: {
847
+ readonly kind: "object";
848
+ readonly required: {
849
+ readonly key: "string";
850
+ readonly item: "object";
851
+ };
852
+ readonly optional: {
853
+ readonly order: "number";
854
+ readonly placement: "object";
855
+ };
856
+ };
857
+ }];
858
+ readonly operations: readonly ["select"];
859
+ };
860
+ readonly form: {
861
+ readonly surface: "form";
862
+ readonly component: "Form";
863
+ readonly contract: {
864
+ readonly id: "plugmatica.ui.form";
865
+ readonly version: "1.0.0";
866
+ };
867
+ readonly points: readonly [PluginExtensionSurfacePoint & {
868
+ /** Human-readable label displayed for this standard extension point definition. */
869
+ label: string;
870
+ /** Optional human-readable description of this standard extension point definition. */
871
+ description: string;
872
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
873
+ group: string;
874
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
875
+ importance: StandardExtensionPointImportance;
876
+ /** Present only for points that consume structured contributions. */
877
+ contributionSchema?: StandardContributionSchema;
878
+ } & {
879
+ key: "header.before";
880
+ } & {
881
+ contributionSchema?: undefined;
882
+ }, PluginExtensionSurfacePoint & {
883
+ /** Human-readable label displayed for this standard extension point definition. */
884
+ label: string;
885
+ /** Optional human-readable description of this standard extension point definition. */
886
+ description: string;
887
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
888
+ group: string;
889
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
890
+ importance: StandardExtensionPointImportance;
891
+ /** Present only for points that consume structured contributions. */
892
+ contributionSchema?: StandardContributionSchema;
893
+ } & {
894
+ key: "header.after";
895
+ } & {
896
+ contributionSchema?: undefined;
897
+ }, PluginExtensionSurfacePoint & {
898
+ /** Human-readable label displayed for this standard extension point definition. */
899
+ label: string;
900
+ /** Optional human-readable description of this standard extension point definition. */
901
+ description: string;
902
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
903
+ group: string;
904
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
905
+ importance: StandardExtensionPointImportance;
906
+ /** Present only for points that consume structured contributions. */
907
+ contributionSchema?: StandardContributionSchema;
908
+ } & {
909
+ key: "fields.before";
910
+ } & {
911
+ contributionSchema?: undefined;
912
+ }, PluginExtensionSurfacePoint & {
913
+ /** Human-readable label displayed for this standard extension point definition. */
914
+ label: string;
915
+ /** Optional human-readable description of this standard extension point definition. */
916
+ description: string;
917
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
918
+ group: string;
919
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
920
+ importance: StandardExtensionPointImportance;
921
+ /** Present only for points that consume structured contributions. */
922
+ contributionSchema?: StandardContributionSchema;
923
+ } & {
924
+ key: "fields";
925
+ } & {
926
+ contributionSchema: {
927
+ readonly kind: "object";
928
+ readonly required: {
929
+ readonly key: "string";
930
+ readonly render: "function";
931
+ };
932
+ readonly optional: {
933
+ readonly order: "number";
934
+ readonly placement: "object";
935
+ };
936
+ };
937
+ }, PluginExtensionSurfacePoint & {
938
+ /** Human-readable label displayed for this standard extension point definition. */
939
+ label: string;
940
+ /** Optional human-readable description of this standard extension point definition. */
941
+ description: string;
942
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
943
+ group: string;
944
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
945
+ importance: StandardExtensionPointImportance;
946
+ /** Present only for points that consume structured contributions. */
947
+ contributionSchema?: StandardContributionSchema;
948
+ } & {
949
+ key: "fields.after";
950
+ } & {
951
+ contributionSchema?: undefined;
952
+ }, PluginExtensionSurfacePoint & {
953
+ /** Human-readable label displayed for this standard extension point definition. */
954
+ label: string;
955
+ /** Optional human-readable description of this standard extension point definition. */
956
+ description: string;
957
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
958
+ group: string;
959
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
960
+ importance: StandardExtensionPointImportance;
961
+ /** Present only for points that consume structured contributions. */
962
+ contributionSchema?: StandardContributionSchema;
963
+ } & {
964
+ key: "actions.before";
965
+ } & {
966
+ contributionSchema?: undefined;
967
+ }, PluginExtensionSurfacePoint & {
968
+ /** Human-readable label displayed for this standard extension point definition. */
969
+ label: string;
970
+ /** Optional human-readable description of this standard extension point definition. */
971
+ description: string;
972
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
973
+ group: string;
974
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
975
+ importance: StandardExtensionPointImportance;
976
+ /** Present only for points that consume structured contributions. */
977
+ contributionSchema?: StandardContributionSchema;
978
+ } & {
979
+ key: "actions";
980
+ } & {
981
+ contributionSchema: {
982
+ readonly kind: "object";
983
+ readonly required: {
984
+ readonly key: "string";
985
+ readonly render: "function";
986
+ };
987
+ readonly optional: {
988
+ readonly order: "number";
989
+ readonly placement: "object";
990
+ };
991
+ };
992
+ }, PluginExtensionSurfacePoint & {
993
+ /** Human-readable label displayed for this standard extension point definition. */
994
+ label: string;
995
+ /** Optional human-readable description of this standard extension point definition. */
996
+ description: string;
997
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
998
+ group: string;
999
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1000
+ importance: StandardExtensionPointImportance;
1001
+ /** Present only for points that consume structured contributions. */
1002
+ contributionSchema?: StandardContributionSchema;
1003
+ } & {
1004
+ key: "actions.after";
1005
+ } & {
1006
+ contributionSchema?: undefined;
1007
+ }, PluginExtensionSurfacePoint & {
1008
+ /** Human-readable label displayed for this standard extension point definition. */
1009
+ label: string;
1010
+ /** Optional human-readable description of this standard extension point definition. */
1011
+ description: string;
1012
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1013
+ group: string;
1014
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1015
+ importance: StandardExtensionPointImportance;
1016
+ /** Present only for points that consume structured contributions. */
1017
+ contributionSchema?: StandardContributionSchema;
1018
+ } & {
1019
+ key: "footer.before";
1020
+ } & {
1021
+ contributionSchema?: undefined;
1022
+ }, PluginExtensionSurfacePoint & {
1023
+ /** Human-readable label displayed for this standard extension point definition. */
1024
+ label: string;
1025
+ /** Optional human-readable description of this standard extension point definition. */
1026
+ description: string;
1027
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1028
+ group: string;
1029
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1030
+ importance: StandardExtensionPointImportance;
1031
+ /** Present only for points that consume structured contributions. */
1032
+ contributionSchema?: StandardContributionSchema;
1033
+ } & {
1034
+ key: "footer.after";
1035
+ } & {
1036
+ contributionSchema?: undefined;
1037
+ }];
1038
+ readonly operations: readonly ["submit", "reset"];
1039
+ };
1040
+ readonly field: {
1041
+ readonly surface: "field";
1042
+ readonly component: "FormField";
1043
+ readonly contract: {
1044
+ readonly id: "plugmatica.ui.form-field";
1045
+ readonly version: "1.0.0";
1046
+ };
1047
+ readonly points: readonly [PluginExtensionSurfacePoint & {
1048
+ /** Human-readable label displayed for this standard extension point definition. */
1049
+ label: string;
1050
+ /** Optional human-readable description of this standard extension point definition. */
1051
+ description: string;
1052
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1053
+ group: string;
1054
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1055
+ importance: StandardExtensionPointImportance;
1056
+ /** Present only for points that consume structured contributions. */
1057
+ contributionSchema?: StandardContributionSchema;
1058
+ } & {
1059
+ key: "label.before";
1060
+ } & {
1061
+ contributionSchema?: undefined;
1062
+ }, PluginExtensionSurfacePoint & {
1063
+ /** Human-readable label displayed for this standard extension point definition. */
1064
+ label: string;
1065
+ /** Optional human-readable description of this standard extension point definition. */
1066
+ description: string;
1067
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1068
+ group: string;
1069
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1070
+ importance: StandardExtensionPointImportance;
1071
+ /** Present only for points that consume structured contributions. */
1072
+ contributionSchema?: StandardContributionSchema;
1073
+ } & {
1074
+ key: "label.after";
1075
+ } & {
1076
+ contributionSchema?: undefined;
1077
+ }, PluginExtensionSurfacePoint & {
1078
+ /** Human-readable label displayed for this standard extension point definition. */
1079
+ label: string;
1080
+ /** Optional human-readable description of this standard extension point definition. */
1081
+ description: string;
1082
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1083
+ group: string;
1084
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1085
+ importance: StandardExtensionPointImportance;
1086
+ /** Present only for points that consume structured contributions. */
1087
+ contributionSchema?: StandardContributionSchema;
1088
+ } & {
1089
+ key: "control.before";
1090
+ } & {
1091
+ contributionSchema?: undefined;
1092
+ }, PluginExtensionSurfacePoint & {
1093
+ /** Human-readable label displayed for this standard extension point definition. */
1094
+ label: string;
1095
+ /** Optional human-readable description of this standard extension point definition. */
1096
+ description: string;
1097
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1098
+ group: string;
1099
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1100
+ importance: StandardExtensionPointImportance;
1101
+ /** Present only for points that consume structured contributions. */
1102
+ contributionSchema?: StandardContributionSchema;
1103
+ } & {
1104
+ key: "control.after";
1105
+ } & {
1106
+ contributionSchema?: undefined;
1107
+ }, PluginExtensionSurfacePoint & {
1108
+ /** Human-readable label displayed for this standard extension point definition. */
1109
+ label: string;
1110
+ /** Optional human-readable description of this standard extension point definition. */
1111
+ description: string;
1112
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1113
+ group: string;
1114
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1115
+ importance: StandardExtensionPointImportance;
1116
+ /** Present only for points that consume structured contributions. */
1117
+ contributionSchema?: StandardContributionSchema;
1118
+ } & {
1119
+ key: "description.before";
1120
+ } & {
1121
+ contributionSchema?: undefined;
1122
+ }, PluginExtensionSurfacePoint & {
1123
+ /** Human-readable label displayed for this standard extension point definition. */
1124
+ label: string;
1125
+ /** Optional human-readable description of this standard extension point definition. */
1126
+ description: string;
1127
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1128
+ group: string;
1129
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1130
+ importance: StandardExtensionPointImportance;
1131
+ /** Present only for points that consume structured contributions. */
1132
+ contributionSchema?: StandardContributionSchema;
1133
+ } & {
1134
+ key: "description.after";
1135
+ } & {
1136
+ contributionSchema?: undefined;
1137
+ }, PluginExtensionSurfacePoint & {
1138
+ /** Human-readable label displayed for this standard extension point definition. */
1139
+ label: string;
1140
+ /** Optional human-readable description of this standard extension point definition. */
1141
+ description: string;
1142
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1143
+ group: string;
1144
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1145
+ importance: StandardExtensionPointImportance;
1146
+ /** Present only for points that consume structured contributions. */
1147
+ contributionSchema?: StandardContributionSchema;
1148
+ } & {
1149
+ key: "message.before";
1150
+ } & {
1151
+ contributionSchema?: undefined;
1152
+ }, PluginExtensionSurfacePoint & {
1153
+ /** Human-readable label displayed for this standard extension point definition. */
1154
+ label: string;
1155
+ /** Optional human-readable description of this standard extension point definition. */
1156
+ description: string;
1157
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1158
+ group: string;
1159
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1160
+ importance: StandardExtensionPointImportance;
1161
+ /** Present only for points that consume structured contributions. */
1162
+ contributionSchema?: StandardContributionSchema;
1163
+ } & {
1164
+ key: "message.after";
1165
+ } & {
1166
+ contributionSchema?: undefined;
1167
+ }];
1168
+ readonly operations: readonly ["change", "blur"];
1169
+ };
1170
+ readonly card: {
1171
+ readonly surface: "card";
1172
+ readonly component: "Card";
1173
+ readonly contract: {
1174
+ readonly id: "plugmatica.ui.card";
1175
+ readonly version: "1.0.0";
1176
+ };
1177
+ readonly points: readonly [PluginExtensionSurfacePoint & {
1178
+ /** Human-readable label displayed for this standard extension point definition. */
1179
+ label: string;
1180
+ /** Optional human-readable description of this standard extension point definition. */
1181
+ description: string;
1182
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1183
+ group: string;
1184
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1185
+ importance: StandardExtensionPointImportance;
1186
+ /** Present only for points that consume structured contributions. */
1187
+ contributionSchema?: StandardContributionSchema;
1188
+ } & {
1189
+ key: "top.left";
1190
+ } & {
1191
+ contributionSchema?: undefined;
1192
+ }, PluginExtensionSurfacePoint & {
1193
+ /** Human-readable label displayed for this standard extension point definition. */
1194
+ label: string;
1195
+ /** Optional human-readable description of this standard extension point definition. */
1196
+ description: string;
1197
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1198
+ group: string;
1199
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1200
+ importance: StandardExtensionPointImportance;
1201
+ /** Present only for points that consume structured contributions. */
1202
+ contributionSchema?: StandardContributionSchema;
1203
+ } & {
1204
+ key: "top.center";
1205
+ } & {
1206
+ contributionSchema?: undefined;
1207
+ }, PluginExtensionSurfacePoint & {
1208
+ /** Human-readable label displayed for this standard extension point definition. */
1209
+ label: string;
1210
+ /** Optional human-readable description of this standard extension point definition. */
1211
+ description: string;
1212
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1213
+ group: string;
1214
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1215
+ importance: StandardExtensionPointImportance;
1216
+ /** Present only for points that consume structured contributions. */
1217
+ contributionSchema?: StandardContributionSchema;
1218
+ } & {
1219
+ key: "top.right";
1220
+ } & {
1221
+ contributionSchema?: undefined;
1222
+ }, PluginExtensionSurfacePoint & {
1223
+ /** Human-readable label displayed for this standard extension point definition. */
1224
+ label: string;
1225
+ /** Optional human-readable description of this standard extension point definition. */
1226
+ description: string;
1227
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1228
+ group: string;
1229
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1230
+ importance: StandardExtensionPointImportance;
1231
+ /** Present only for points that consume structured contributions. */
1232
+ contributionSchema?: StandardContributionSchema;
1233
+ } & {
1234
+ key: "middle.left";
1235
+ } & {
1236
+ contributionSchema?: undefined;
1237
+ }, PluginExtensionSurfacePoint & {
1238
+ /** Human-readable label displayed for this standard extension point definition. */
1239
+ label: string;
1240
+ /** Optional human-readable description of this standard extension point definition. */
1241
+ description: string;
1242
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1243
+ group: string;
1244
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1245
+ importance: StandardExtensionPointImportance;
1246
+ /** Present only for points that consume structured contributions. */
1247
+ contributionSchema?: StandardContributionSchema;
1248
+ } & {
1249
+ key: "middle.center";
1250
+ } & {
1251
+ contributionSchema?: undefined;
1252
+ }, PluginExtensionSurfacePoint & {
1253
+ /** Human-readable label displayed for this standard extension point definition. */
1254
+ label: string;
1255
+ /** Optional human-readable description of this standard extension point definition. */
1256
+ description: string;
1257
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1258
+ group: string;
1259
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1260
+ importance: StandardExtensionPointImportance;
1261
+ /** Present only for points that consume structured contributions. */
1262
+ contributionSchema?: StandardContributionSchema;
1263
+ } & {
1264
+ key: "middle.right";
1265
+ } & {
1266
+ contributionSchema?: undefined;
1267
+ }, PluginExtensionSurfacePoint & {
1268
+ /** Human-readable label displayed for this standard extension point definition. */
1269
+ label: string;
1270
+ /** Optional human-readable description of this standard extension point definition. */
1271
+ description: string;
1272
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1273
+ group: string;
1274
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1275
+ importance: StandardExtensionPointImportance;
1276
+ /** Present only for points that consume structured contributions. */
1277
+ contributionSchema?: StandardContributionSchema;
1278
+ } & {
1279
+ key: "bottom.left";
1280
+ } & {
1281
+ contributionSchema?: undefined;
1282
+ }, PluginExtensionSurfacePoint & {
1283
+ /** Human-readable label displayed for this standard extension point definition. */
1284
+ label: string;
1285
+ /** Optional human-readable description of this standard extension point definition. */
1286
+ description: string;
1287
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1288
+ group: string;
1289
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1290
+ importance: StandardExtensionPointImportance;
1291
+ /** Present only for points that consume structured contributions. */
1292
+ contributionSchema?: StandardContributionSchema;
1293
+ } & {
1294
+ key: "bottom.center";
1295
+ } & {
1296
+ contributionSchema?: undefined;
1297
+ }, PluginExtensionSurfacePoint & {
1298
+ /** Human-readable label displayed for this standard extension point definition. */
1299
+ label: string;
1300
+ /** Optional human-readable description of this standard extension point definition. */
1301
+ description: string;
1302
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1303
+ group: string;
1304
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1305
+ importance: StandardExtensionPointImportance;
1306
+ /** Present only for points that consume structured contributions. */
1307
+ contributionSchema?: StandardContributionSchema;
1308
+ } & {
1309
+ key: "bottom.right";
1310
+ } & {
1311
+ contributionSchema?: undefined;
1312
+ }];
1313
+ readonly operations: readonly [];
1314
+ };
1315
+ readonly action: {
1316
+ readonly surface: "action";
1317
+ readonly component: "Button";
1318
+ readonly contract: {
1319
+ readonly id: "plugmatica.ui.action";
1320
+ readonly version: "1.0.0";
1321
+ };
1322
+ readonly points: readonly [PluginExtensionSurfacePoint & {
1323
+ /** Human-readable label displayed for this standard extension point definition. */
1324
+ label: string;
1325
+ /** Optional human-readable description of this standard extension point definition. */
1326
+ description: string;
1327
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1328
+ group: string;
1329
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1330
+ importance: StandardExtensionPointImportance;
1331
+ /** Present only for points that consume structured contributions. */
1332
+ contributionSchema?: StandardContributionSchema;
1333
+ } & {
1334
+ key: "content.before";
1335
+ } & {
1336
+ contributionSchema?: undefined;
1337
+ }, PluginExtensionSurfacePoint & {
1338
+ /** Human-readable label displayed for this standard extension point definition. */
1339
+ label: string;
1340
+ /** Optional human-readable description of this standard extension point definition. */
1341
+ description: string;
1342
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1343
+ group: string;
1344
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1345
+ importance: StandardExtensionPointImportance;
1346
+ /** Present only for points that consume structured contributions. */
1347
+ contributionSchema?: StandardContributionSchema;
1348
+ } & {
1349
+ key: "content.after";
1350
+ } & {
1351
+ contributionSchema?: undefined;
1352
+ }];
1353
+ readonly operations: readonly ["click"];
1354
+ };
1355
+ readonly table: {
1356
+ readonly surface: "table";
1357
+ readonly component: "DataTable";
1358
+ readonly contract: {
1359
+ readonly id: "plugmatica.ui.table";
1360
+ readonly version: "1.0.0";
1361
+ };
1362
+ readonly points: readonly [PluginExtensionSurfacePoint & {
1363
+ /** Human-readable label displayed for this standard extension point definition. */
1364
+ label: string;
1365
+ /** Optional human-readable description of this standard extension point definition. */
1366
+ description: string;
1367
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1368
+ group: string;
1369
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1370
+ importance: StandardExtensionPointImportance;
1371
+ /** Present only for points that consume structured contributions. */
1372
+ contributionSchema?: StandardContributionSchema;
1373
+ } & {
1374
+ key: "toolbar.before";
1375
+ } & {
1376
+ contributionSchema?: undefined;
1377
+ }, PluginExtensionSurfacePoint & {
1378
+ /** Human-readable label displayed for this standard extension point definition. */
1379
+ label: string;
1380
+ /** Optional human-readable description of this standard extension point definition. */
1381
+ description: string;
1382
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1383
+ group: string;
1384
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1385
+ importance: StandardExtensionPointImportance;
1386
+ /** Present only for points that consume structured contributions. */
1387
+ contributionSchema?: StandardContributionSchema;
1388
+ } & {
1389
+ key: "toolbar.actions";
1390
+ } & {
1391
+ contributionSchema?: undefined;
1392
+ }, PluginExtensionSurfacePoint & {
1393
+ /** Human-readable label displayed for this standard extension point definition. */
1394
+ label: string;
1395
+ /** Optional human-readable description of this standard extension point definition. */
1396
+ description: string;
1397
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1398
+ group: string;
1399
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1400
+ importance: StandardExtensionPointImportance;
1401
+ /** Present only for points that consume structured contributions. */
1402
+ contributionSchema?: StandardContributionSchema;
1403
+ } & {
1404
+ key: "toolbar.after";
1405
+ } & {
1406
+ contributionSchema?: undefined;
1407
+ }, PluginExtensionSurfacePoint & {
1408
+ /** Human-readable label displayed for this standard extension point definition. */
1409
+ label: string;
1410
+ /** Optional human-readable description of this standard extension point definition. */
1411
+ description: string;
1412
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1413
+ group: string;
1414
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1415
+ importance: StandardExtensionPointImportance;
1416
+ /** Present only for points that consume structured contributions. */
1417
+ contributionSchema?: StandardContributionSchema;
1418
+ } & {
1419
+ key: "columns";
1420
+ } & {
1421
+ contributionSchema: {
1422
+ readonly kind: "object";
1423
+ readonly required: {
1424
+ readonly key: "string";
1425
+ readonly header: "unknown";
1426
+ readonly renderCell: "function";
1427
+ };
1428
+ readonly optional: {
1429
+ readonly order: "number";
1430
+ readonly placement: "object";
1431
+ };
1432
+ };
1433
+ }, PluginExtensionSurfacePoint & {
1434
+ /** Human-readable label displayed for this standard extension point definition. */
1435
+ label: string;
1436
+ /** Optional human-readable description of this standard extension point definition. */
1437
+ description: string;
1438
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1439
+ group: string;
1440
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1441
+ importance: StandardExtensionPointImportance;
1442
+ /** Present only for points that consume structured contributions. */
1443
+ contributionSchema?: StandardContributionSchema;
1444
+ } & {
1445
+ key: "row.actions";
1446
+ } & {
1447
+ contributionSchema?: undefined;
1448
+ }, PluginExtensionSurfacePoint & {
1449
+ /** Human-readable label displayed for this standard extension point definition. */
1450
+ label: string;
1451
+ /** Optional human-readable description of this standard extension point definition. */
1452
+ description: string;
1453
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1454
+ group: string;
1455
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1456
+ importance: StandardExtensionPointImportance;
1457
+ /** Present only for points that consume structured contributions. */
1458
+ contributionSchema?: StandardContributionSchema;
1459
+ } & {
1460
+ key: "selection.actions";
1461
+ } & {
1462
+ contributionSchema?: undefined;
1463
+ }, PluginExtensionSurfacePoint & {
1464
+ /** Human-readable label displayed for this standard extension point definition. */
1465
+ label: string;
1466
+ /** Optional human-readable description of this standard extension point definition. */
1467
+ description: string;
1468
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1469
+ group: string;
1470
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1471
+ importance: StandardExtensionPointImportance;
1472
+ /** Present only for points that consume structured contributions. */
1473
+ contributionSchema?: StandardContributionSchema;
1474
+ } & {
1475
+ key: "empty.before";
1476
+ } & {
1477
+ contributionSchema?: undefined;
1478
+ }, PluginExtensionSurfacePoint & {
1479
+ /** Human-readable label displayed for this standard extension point definition. */
1480
+ label: string;
1481
+ /** Optional human-readable description of this standard extension point definition. */
1482
+ description: string;
1483
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1484
+ group: string;
1485
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1486
+ importance: StandardExtensionPointImportance;
1487
+ /** Present only for points that consume structured contributions. */
1488
+ contributionSchema?: StandardContributionSchema;
1489
+ } & {
1490
+ key: "empty.after";
1491
+ } & {
1492
+ contributionSchema?: undefined;
1493
+ }, PluginExtensionSurfacePoint & {
1494
+ /** Human-readable label displayed for this standard extension point definition. */
1495
+ label: string;
1496
+ /** Optional human-readable description of this standard extension point definition. */
1497
+ description: string;
1498
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1499
+ group: string;
1500
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1501
+ importance: StandardExtensionPointImportance;
1502
+ /** Present only for points that consume structured contributions. */
1503
+ contributionSchema?: StandardContributionSchema;
1504
+ } & {
1505
+ key: "footer.before";
1506
+ } & {
1507
+ contributionSchema?: undefined;
1508
+ }, PluginExtensionSurfacePoint & {
1509
+ /** Human-readable label displayed for this standard extension point definition. */
1510
+ label: string;
1511
+ /** Optional human-readable description of this standard extension point definition. */
1512
+ description: string;
1513
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1514
+ group: string;
1515
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1516
+ importance: StandardExtensionPointImportance;
1517
+ /** Present only for points that consume structured contributions. */
1518
+ contributionSchema?: StandardContributionSchema;
1519
+ } & {
1520
+ key: "footer.after";
1521
+ } & {
1522
+ contributionSchema?: undefined;
1523
+ }];
1524
+ readonly operations: readonly ["refresh", "export", "row.select", "sort.change", "filter.change", "pagination.change"];
1525
+ };
1526
+ readonly chart: {
1527
+ readonly surface: "chart";
1528
+ readonly component: "Chart";
1529
+ readonly contract: {
1530
+ readonly id: "plugmatica.ui.chart";
1531
+ readonly version: "1.0.0";
1532
+ };
1533
+ readonly points: readonly [PluginExtensionSurfacePoint & {
1534
+ /** Human-readable label displayed for this standard extension point definition. */
1535
+ label: string;
1536
+ /** Optional human-readable description of this standard extension point definition. */
1537
+ description: string;
1538
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1539
+ group: string;
1540
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1541
+ importance: StandardExtensionPointImportance;
1542
+ /** Present only for points that consume structured contributions. */
1543
+ contributionSchema?: StandardContributionSchema;
1544
+ } & {
1545
+ key: "before";
1546
+ } & {
1547
+ contributionSchema?: undefined;
1548
+ }, PluginExtensionSurfacePoint & {
1549
+ /** Human-readable label displayed for this standard extension point definition. */
1550
+ label: string;
1551
+ /** Optional human-readable description of this standard extension point definition. */
1552
+ description: string;
1553
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1554
+ group: string;
1555
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1556
+ importance: StandardExtensionPointImportance;
1557
+ /** Present only for points that consume structured contributions. */
1558
+ contributionSchema?: StandardContributionSchema;
1559
+ } & {
1560
+ key: "after";
1561
+ } & {
1562
+ contributionSchema?: undefined;
1563
+ }];
1564
+ readonly operations: readonly [];
1565
+ };
1566
+ readonly metric: {
1567
+ readonly surface: "metric";
1568
+ readonly component: "Stat";
1569
+ readonly contract: {
1570
+ readonly id: "plugmatica.ui.metric";
1571
+ readonly version: "1.0.0";
1572
+ };
1573
+ readonly points: readonly [PluginExtensionSurfacePoint & {
1574
+ /** Human-readable label displayed for this standard extension point definition. */
1575
+ label: string;
1576
+ /** Optional human-readable description of this standard extension point definition. */
1577
+ description: string;
1578
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1579
+ group: string;
1580
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1581
+ importance: StandardExtensionPointImportance;
1582
+ /** Present only for points that consume structured contributions. */
1583
+ contributionSchema?: StandardContributionSchema;
1584
+ } & {
1585
+ key: "before";
1586
+ } & {
1587
+ contributionSchema?: undefined;
1588
+ }, PluginExtensionSurfacePoint & {
1589
+ /** Human-readable label displayed for this standard extension point definition. */
1590
+ label: string;
1591
+ /** Optional human-readable description of this standard extension point definition. */
1592
+ description: string;
1593
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1594
+ group: string;
1595
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1596
+ importance: StandardExtensionPointImportance;
1597
+ /** Present only for points that consume structured contributions. */
1598
+ contributionSchema?: StandardContributionSchema;
1599
+ } & {
1600
+ key: "after";
1601
+ } & {
1602
+ contributionSchema?: undefined;
1603
+ }];
1604
+ readonly operations: readonly [];
1605
+ };
1606
+ readonly tabs: {
1607
+ readonly surface: "tabs";
1608
+ readonly component: "Tabs";
1609
+ readonly contract: {
1610
+ readonly id: "plugmatica.ui.tabs";
1611
+ readonly version: "1.0.0";
1612
+ };
1613
+ readonly points: readonly [PluginExtensionSurfacePoint & {
1614
+ /** Human-readable label displayed for this standard extension point definition. */
1615
+ label: string;
1616
+ /** Optional human-readable description of this standard extension point definition. */
1617
+ description: string;
1618
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1619
+ group: string;
1620
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1621
+ importance: StandardExtensionPointImportance;
1622
+ /** Present only for points that consume structured contributions. */
1623
+ contributionSchema?: StandardContributionSchema;
1624
+ } & {
1625
+ key: "items";
1626
+ } & {
1627
+ contributionSchema: {
1628
+ readonly optional: {
1629
+ readonly label: "unknown";
1630
+ readonly disabled: "boolean";
1631
+ readonly order: "number";
1632
+ readonly placement: "object";
1633
+ };
1634
+ readonly kind: "object";
1635
+ readonly required: {
1636
+ readonly key: "string";
1637
+ readonly render: "function";
1638
+ };
1639
+ };
1640
+ }, PluginExtensionSurfacePoint & {
1641
+ /** Human-readable label displayed for this standard extension point definition. */
1642
+ label: string;
1643
+ /** Optional human-readable description of this standard extension point definition. */
1644
+ description: string;
1645
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1646
+ group: string;
1647
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1648
+ importance: StandardExtensionPointImportance;
1649
+ /** Present only for points that consume structured contributions. */
1650
+ contributionSchema?: StandardContributionSchema;
1651
+ } & {
1652
+ key: "content.before";
1653
+ } & {
1654
+ contributionSchema?: undefined;
1655
+ }, PluginExtensionSurfacePoint & {
1656
+ /** Human-readable label displayed for this standard extension point definition. */
1657
+ label: string;
1658
+ /** Optional human-readable description of this standard extension point definition. */
1659
+ description: string;
1660
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1661
+ group: string;
1662
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1663
+ importance: StandardExtensionPointImportance;
1664
+ /** Present only for points that consume structured contributions. */
1665
+ contributionSchema?: StandardContributionSchema;
1666
+ } & {
1667
+ key: "content.after";
1668
+ } & {
1669
+ contributionSchema?: undefined;
1670
+ }, PluginExtensionSurfacePoint & {
1671
+ /** Human-readable label displayed for this standard extension point definition. */
1672
+ label: string;
1673
+ /** Optional human-readable description of this standard extension point definition. */
1674
+ description: string;
1675
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1676
+ group: string;
1677
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1678
+ importance: StandardExtensionPointImportance;
1679
+ /** Present only for points that consume structured contributions. */
1680
+ contributionSchema?: StandardContributionSchema;
1681
+ } & {
1682
+ key: "actions";
1683
+ } & {
1684
+ contributionSchema?: undefined;
1685
+ }];
1686
+ readonly operations: readonly ["change"];
1687
+ };
1688
+ readonly panel: {
1689
+ readonly surface: "panel";
1690
+ readonly component: "Panel";
1691
+ readonly contract: {
1692
+ readonly id: "plugmatica.ui.panel";
1693
+ readonly version: "1.0.0";
1694
+ };
1695
+ readonly points: readonly [PluginExtensionSurfacePoint & {
1696
+ /** Human-readable label displayed for this standard extension point definition. */
1697
+ label: string;
1698
+ /** Optional human-readable description of this standard extension point definition. */
1699
+ description: string;
1700
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1701
+ group: string;
1702
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1703
+ importance: StandardExtensionPointImportance;
1704
+ /** Present only for points that consume structured contributions. */
1705
+ contributionSchema?: StandardContributionSchema;
1706
+ } & {
1707
+ key: "top.left";
1708
+ } & {
1709
+ contributionSchema?: undefined;
1710
+ }, PluginExtensionSurfacePoint & {
1711
+ /** Human-readable label displayed for this standard extension point definition. */
1712
+ label: string;
1713
+ /** Optional human-readable description of this standard extension point definition. */
1714
+ description: string;
1715
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1716
+ group: string;
1717
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1718
+ importance: StandardExtensionPointImportance;
1719
+ /** Present only for points that consume structured contributions. */
1720
+ contributionSchema?: StandardContributionSchema;
1721
+ } & {
1722
+ key: "top.center";
1723
+ } & {
1724
+ contributionSchema?: undefined;
1725
+ }, PluginExtensionSurfacePoint & {
1726
+ /** Human-readable label displayed for this standard extension point definition. */
1727
+ label: string;
1728
+ /** Optional human-readable description of this standard extension point definition. */
1729
+ description: string;
1730
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1731
+ group: string;
1732
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1733
+ importance: StandardExtensionPointImportance;
1734
+ /** Present only for points that consume structured contributions. */
1735
+ contributionSchema?: StandardContributionSchema;
1736
+ } & {
1737
+ key: "top.right";
1738
+ } & {
1739
+ contributionSchema?: undefined;
1740
+ }, PluginExtensionSurfacePoint & {
1741
+ /** Human-readable label displayed for this standard extension point definition. */
1742
+ label: string;
1743
+ /** Optional human-readable description of this standard extension point definition. */
1744
+ description: string;
1745
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1746
+ group: string;
1747
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1748
+ importance: StandardExtensionPointImportance;
1749
+ /** Present only for points that consume structured contributions. */
1750
+ contributionSchema?: StandardContributionSchema;
1751
+ } & {
1752
+ key: "middle.left";
1753
+ } & {
1754
+ contributionSchema?: undefined;
1755
+ }, PluginExtensionSurfacePoint & {
1756
+ /** Human-readable label displayed for this standard extension point definition. */
1757
+ label: string;
1758
+ /** Optional human-readable description of this standard extension point definition. */
1759
+ description: string;
1760
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1761
+ group: string;
1762
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1763
+ importance: StandardExtensionPointImportance;
1764
+ /** Present only for points that consume structured contributions. */
1765
+ contributionSchema?: StandardContributionSchema;
1766
+ } & {
1767
+ key: "middle.center";
1768
+ } & {
1769
+ contributionSchema?: undefined;
1770
+ }, PluginExtensionSurfacePoint & {
1771
+ /** Human-readable label displayed for this standard extension point definition. */
1772
+ label: string;
1773
+ /** Optional human-readable description of this standard extension point definition. */
1774
+ description: string;
1775
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1776
+ group: string;
1777
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1778
+ importance: StandardExtensionPointImportance;
1779
+ /** Present only for points that consume structured contributions. */
1780
+ contributionSchema?: StandardContributionSchema;
1781
+ } & {
1782
+ key: "middle.right";
1783
+ } & {
1784
+ contributionSchema?: undefined;
1785
+ }, PluginExtensionSurfacePoint & {
1786
+ /** Human-readable label displayed for this standard extension point definition. */
1787
+ label: string;
1788
+ /** Optional human-readable description of this standard extension point definition. */
1789
+ description: string;
1790
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1791
+ group: string;
1792
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1793
+ importance: StandardExtensionPointImportance;
1794
+ /** Present only for points that consume structured contributions. */
1795
+ contributionSchema?: StandardContributionSchema;
1796
+ } & {
1797
+ key: "bottom.left";
1798
+ } & {
1799
+ contributionSchema?: undefined;
1800
+ }, PluginExtensionSurfacePoint & {
1801
+ /** Human-readable label displayed for this standard extension point definition. */
1802
+ label: string;
1803
+ /** Optional human-readable description of this standard extension point definition. */
1804
+ description: string;
1805
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1806
+ group: string;
1807
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1808
+ importance: StandardExtensionPointImportance;
1809
+ /** Present only for points that consume structured contributions. */
1810
+ contributionSchema?: StandardContributionSchema;
1811
+ } & {
1812
+ key: "bottom.center";
1813
+ } & {
1814
+ contributionSchema?: undefined;
1815
+ }, PluginExtensionSurfacePoint & {
1816
+ /** Human-readable label displayed for this standard extension point definition. */
1817
+ label: string;
1818
+ /** Optional human-readable description of this standard extension point definition. */
1819
+ description: string;
1820
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1821
+ group: string;
1822
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1823
+ importance: StandardExtensionPointImportance;
1824
+ /** Present only for points that consume structured contributions. */
1825
+ contributionSchema?: StandardContributionSchema;
1826
+ } & {
1827
+ key: "bottom.right";
1828
+ } & {
1829
+ contributionSchema?: undefined;
1830
+ }];
1831
+ readonly operations: readonly ["open", "close"];
1832
+ };
1833
+ readonly settings_section: {
1834
+ readonly surface: "settings_section";
1835
+ readonly component: "SettingsSection";
1836
+ readonly contract: {
1837
+ readonly id: "plugmatica.ui.settings-section";
1838
+ readonly version: "1.0.0";
1839
+ };
1840
+ readonly points: readonly [PluginExtensionSurfacePoint & {
1841
+ /** Human-readable label displayed for this standard extension point definition. */
1842
+ label: string;
1843
+ /** Optional human-readable description of this standard extension point definition. */
1844
+ description: string;
1845
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1846
+ group: string;
1847
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1848
+ importance: StandardExtensionPointImportance;
1849
+ /** Present only for points that consume structured contributions. */
1850
+ contributionSchema?: StandardContributionSchema;
1851
+ } & {
1852
+ key: "items.before";
1853
+ } & {
1854
+ contributionSchema?: undefined;
1855
+ }, PluginExtensionSurfacePoint & {
1856
+ /** Human-readable label displayed for this standard extension point definition. */
1857
+ label: string;
1858
+ /** Optional human-readable description of this standard extension point definition. */
1859
+ description: string;
1860
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1861
+ group: string;
1862
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1863
+ importance: StandardExtensionPointImportance;
1864
+ /** Present only for points that consume structured contributions. */
1865
+ contributionSchema?: StandardContributionSchema;
1866
+ } & {
1867
+ key: "items";
1868
+ } & {
1869
+ contributionSchema?: undefined;
1870
+ }, PluginExtensionSurfacePoint & {
1871
+ /** Human-readable label displayed for this standard extension point definition. */
1872
+ label: string;
1873
+ /** Optional human-readable description of this standard extension point definition. */
1874
+ description: string;
1875
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1876
+ group: string;
1877
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1878
+ importance: StandardExtensionPointImportance;
1879
+ /** Present only for points that consume structured contributions. */
1880
+ contributionSchema?: StandardContributionSchema;
1881
+ } & {
1882
+ key: "items.after";
1883
+ } & {
1884
+ contributionSchema?: undefined;
1885
+ }, PluginExtensionSurfacePoint & {
1886
+ /** Human-readable label displayed for this standard extension point definition. */
1887
+ label: string;
1888
+ /** Optional human-readable description of this standard extension point definition. */
1889
+ description: string;
1890
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1891
+ group: string;
1892
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1893
+ importance: StandardExtensionPointImportance;
1894
+ /** Present only for points that consume structured contributions. */
1895
+ contributionSchema?: StandardContributionSchema;
1896
+ } & {
1897
+ key: "actions";
1898
+ } & {
1899
+ contributionSchema?: undefined;
1900
+ }];
1901
+ readonly operations: readonly ["save", "reset"];
1902
+ };
1903
+ readonly wizard: {
1904
+ readonly surface: "wizard";
1905
+ readonly component: "Wizard";
1906
+ readonly contract: {
1907
+ readonly id: "plugmatica.ui.wizard";
1908
+ readonly version: "1.0.0";
1909
+ };
1910
+ readonly points: readonly [PluginExtensionSurfacePoint & {
1911
+ /** Human-readable label displayed for this standard extension point definition. */
1912
+ label: string;
1913
+ /** Optional human-readable description of this standard extension point definition. */
1914
+ description: string;
1915
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1916
+ group: string;
1917
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1918
+ importance: StandardExtensionPointImportance;
1919
+ /** Present only for points that consume structured contributions. */
1920
+ contributionSchema?: StandardContributionSchema;
1921
+ } & {
1922
+ key: "steps";
1923
+ } & {
1924
+ contributionSchema: {
1925
+ readonly required: {
1926
+ readonly title: "string";
1927
+ readonly key: "string";
1928
+ readonly render: "function";
1929
+ };
1930
+ readonly optional: {
1931
+ readonly validationFields: "string[]";
1932
+ readonly order: "number";
1933
+ readonly placement: "object";
1934
+ };
1935
+ readonly kind: "object";
1936
+ };
1937
+ }, PluginExtensionSurfacePoint & {
1938
+ /** Human-readable label displayed for this standard extension point definition. */
1939
+ label: string;
1940
+ /** Optional human-readable description of this standard extension point definition. */
1941
+ description: string;
1942
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1943
+ group: string;
1944
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1945
+ importance: StandardExtensionPointImportance;
1946
+ /** Present only for points that consume structured contributions. */
1947
+ contributionSchema?: StandardContributionSchema;
1948
+ } & {
1949
+ key: "header.before";
1950
+ } & {
1951
+ contributionSchema?: undefined;
1952
+ }, PluginExtensionSurfacePoint & {
1953
+ /** Human-readable label displayed for this standard extension point definition. */
1954
+ label: string;
1955
+ /** Optional human-readable description of this standard extension point definition. */
1956
+ description: string;
1957
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1958
+ group: string;
1959
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1960
+ importance: StandardExtensionPointImportance;
1961
+ /** Present only for points that consume structured contributions. */
1962
+ contributionSchema?: StandardContributionSchema;
1963
+ } & {
1964
+ key: "content.before";
1965
+ } & {
1966
+ contributionSchema?: undefined;
1967
+ }, PluginExtensionSurfacePoint & {
1968
+ /** Human-readable label displayed for this standard extension point definition. */
1969
+ label: string;
1970
+ /** Optional human-readable description of this standard extension point definition. */
1971
+ description: string;
1972
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1973
+ group: string;
1974
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1975
+ importance: StandardExtensionPointImportance;
1976
+ /** Present only for points that consume structured contributions. */
1977
+ contributionSchema?: StandardContributionSchema;
1978
+ } & {
1979
+ key: "content.after";
1980
+ } & {
1981
+ contributionSchema?: undefined;
1982
+ }, PluginExtensionSurfacePoint & {
1983
+ /** Human-readable label displayed for this standard extension point definition. */
1984
+ label: string;
1985
+ /** Optional human-readable description of this standard extension point definition. */
1986
+ description: string;
1987
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
1988
+ group: string;
1989
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
1990
+ importance: StandardExtensionPointImportance;
1991
+ /** Present only for points that consume structured contributions. */
1992
+ contributionSchema?: StandardContributionSchema;
1993
+ } & {
1994
+ key: "footer.before";
1995
+ } & {
1996
+ contributionSchema?: undefined;
1997
+ }, PluginExtensionSurfacePoint & {
1998
+ /** Human-readable label displayed for this standard extension point definition. */
1999
+ label: string;
2000
+ /** Optional human-readable description of this standard extension point definition. */
2001
+ description: string;
2002
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2003
+ group: string;
2004
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2005
+ importance: StandardExtensionPointImportance;
2006
+ /** Present only for points that consume structured contributions. */
2007
+ contributionSchema?: StandardContributionSchema;
2008
+ } & {
2009
+ key: "footer.actions";
2010
+ } & {
2011
+ contributionSchema?: undefined;
2012
+ }, PluginExtensionSurfacePoint & {
2013
+ /** Human-readable label displayed for this standard extension point definition. */
2014
+ label: string;
2015
+ /** Optional human-readable description of this standard extension point definition. */
2016
+ description: string;
2017
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2018
+ group: string;
2019
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2020
+ importance: StandardExtensionPointImportance;
2021
+ /** Present only for points that consume structured contributions. */
2022
+ contributionSchema?: StandardContributionSchema;
2023
+ } & {
2024
+ key: "footer.after";
2025
+ } & {
2026
+ contributionSchema?: undefined;
2027
+ }];
2028
+ readonly operations: readonly ["next", "previous", "finish", "cancel"];
2029
+ };
2030
+ readonly slot: {
2031
+ readonly surface: "slot";
2032
+ readonly component: "ExtensionSlot";
2033
+ readonly contract: {
2034
+ readonly id: "plugmatica.ui.slot";
2035
+ readonly version: "1.0.0";
2036
+ };
2037
+ readonly points: readonly [PluginExtensionSurfacePoint & {
2038
+ /** Human-readable label displayed for this standard extension point definition. */
2039
+ label: string;
2040
+ /** Optional human-readable description of this standard extension point definition. */
2041
+ description: string;
2042
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2043
+ group: string;
2044
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2045
+ importance: StandardExtensionPointImportance;
2046
+ /** Present only for points that consume structured contributions. */
2047
+ contributionSchema?: StandardContributionSchema;
2048
+ } & {
2049
+ key: "content";
2050
+ } & {
2051
+ contributionSchema?: undefined;
2052
+ }];
2053
+ readonly operations: readonly [];
2054
+ };
2055
+ readonly slot_frame: {
2056
+ readonly surface: "slot_frame";
2057
+ readonly component: "SlotFrame";
2058
+ readonly contract: {
2059
+ readonly id: "plugmatica.ui.slot-frame";
2060
+ readonly version: "1.0.0";
2061
+ };
2062
+ readonly points: readonly [PluginExtensionSurfacePoint & {
2063
+ /** Human-readable label displayed for this standard extension point definition. */
2064
+ label: string;
2065
+ /** Optional human-readable description of this standard extension point definition. */
2066
+ description: string;
2067
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2068
+ group: string;
2069
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2070
+ importance: StandardExtensionPointImportance;
2071
+ /** Present only for points that consume structured contributions. */
2072
+ contributionSchema?: StandardContributionSchema;
2073
+ } & {
2074
+ key: "header.before";
2075
+ } & {
2076
+ contributionSchema?: undefined;
2077
+ }, PluginExtensionSurfacePoint & {
2078
+ /** Human-readable label displayed for this standard extension point definition. */
2079
+ label: string;
2080
+ /** Optional human-readable description of this standard extension point definition. */
2081
+ description: string;
2082
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2083
+ group: string;
2084
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2085
+ importance: StandardExtensionPointImportance;
2086
+ /** Present only for points that consume structured contributions. */
2087
+ contributionSchema?: StandardContributionSchema;
2088
+ } & {
2089
+ key: "header.actions";
2090
+ } & {
2091
+ contributionSchema?: undefined;
2092
+ }, PluginExtensionSurfacePoint & {
2093
+ /** Human-readable label displayed for this standard extension point definition. */
2094
+ label: string;
2095
+ /** Optional human-readable description of this standard extension point definition. */
2096
+ description: string;
2097
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2098
+ group: string;
2099
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2100
+ importance: StandardExtensionPointImportance;
2101
+ /** Present only for points that consume structured contributions. */
2102
+ contributionSchema?: StandardContributionSchema;
2103
+ } & {
2104
+ key: "content.before";
2105
+ } & {
2106
+ contributionSchema?: undefined;
2107
+ }, PluginExtensionSurfacePoint & {
2108
+ /** Human-readable label displayed for this standard extension point definition. */
2109
+ label: string;
2110
+ /** Optional human-readable description of this standard extension point definition. */
2111
+ description: string;
2112
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2113
+ group: string;
2114
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2115
+ importance: StandardExtensionPointImportance;
2116
+ /** Present only for points that consume structured contributions. */
2117
+ contributionSchema?: StandardContributionSchema;
2118
+ } & {
2119
+ key: "content";
2120
+ } & {
2121
+ contributionSchema?: undefined;
2122
+ }, PluginExtensionSurfacePoint & {
2123
+ /** Human-readable label displayed for this standard extension point definition. */
2124
+ label: string;
2125
+ /** Optional human-readable description of this standard extension point definition. */
2126
+ description: string;
2127
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2128
+ group: string;
2129
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2130
+ importance: StandardExtensionPointImportance;
2131
+ /** Present only for points that consume structured contributions. */
2132
+ contributionSchema?: StandardContributionSchema;
2133
+ } & {
2134
+ key: "content.after";
2135
+ } & {
2136
+ contributionSchema?: undefined;
2137
+ }, PluginExtensionSurfacePoint & {
2138
+ /** Human-readable label displayed for this standard extension point definition. */
2139
+ label: string;
2140
+ /** Optional human-readable description of this standard extension point definition. */
2141
+ description: string;
2142
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2143
+ group: string;
2144
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2145
+ importance: StandardExtensionPointImportance;
2146
+ /** Present only for points that consume structured contributions. */
2147
+ contributionSchema?: StandardContributionSchema;
2148
+ } & {
2149
+ key: "footer.before";
2150
+ } & {
2151
+ contributionSchema?: undefined;
2152
+ }, PluginExtensionSurfacePoint & {
2153
+ /** Human-readable label displayed for this standard extension point definition. */
2154
+ label: string;
2155
+ /** Optional human-readable description of this standard extension point definition. */
2156
+ description: string;
2157
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2158
+ group: string;
2159
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2160
+ importance: StandardExtensionPointImportance;
2161
+ /** Present only for points that consume structured contributions. */
2162
+ contributionSchema?: StandardContributionSchema;
2163
+ } & {
2164
+ key: "footer.actions";
2165
+ } & {
2166
+ contributionSchema?: undefined;
2167
+ }, PluginExtensionSurfacePoint & {
2168
+ /** Human-readable label displayed for this standard extension point definition. */
2169
+ label: string;
2170
+ /** Optional human-readable description of this standard extension point definition. */
2171
+ description: string;
2172
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2173
+ group: string;
2174
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2175
+ importance: StandardExtensionPointImportance;
2176
+ /** Present only for points that consume structured contributions. */
2177
+ contributionSchema?: StandardContributionSchema;
2178
+ } & {
2179
+ key: "footer.after";
2180
+ } & {
2181
+ contributionSchema?: undefined;
2182
+ }];
2183
+ readonly operations: readonly [];
2184
+ };
2185
+ readonly slot_container: {
2186
+ readonly surface: "slot_container";
2187
+ readonly component: "ExtensionSlotContainer";
2188
+ readonly contract: {
2189
+ readonly id: "plugmatica.ui.slot-container";
2190
+ readonly version: "1.0.0";
2191
+ };
2192
+ readonly points: readonly [PluginExtensionSurfacePoint & {
2193
+ /** Human-readable label displayed for this standard extension point definition. */
2194
+ label: string;
2195
+ /** Optional human-readable description of this standard extension point definition. */
2196
+ description: string;
2197
+ /** Optional documentation group used to organize this contribution point in developer tooling. */
2198
+ group: string;
2199
+ /** Whether the contribution point belongs to the primary or advanced developer surface. */
2200
+ importance: StandardExtensionPointImportance;
2201
+ /** Present only for points that consume structured contributions. */
2202
+ contributionSchema?: StandardContributionSchema;
2203
+ } & {
2204
+ key: "content";
2205
+ } & {
2206
+ contributionSchema?: undefined;
2207
+ }];
2208
+ readonly operations: readonly [];
2209
+ };
2210
+ };
2211
+ /**
2212
+ * Names of all canonical Plugmatica extension surfaces.
2213
+ * @category Standard extension surfaces
2214
+ */
2215
+ type StandardExtensionSurfaceName = keyof typeof standardExtensionSurfaces;
2216
+ /**
2217
+ * Contract identifiers published by canonical standard extension surfaces.
2218
+ * @category Standard extension surfaces
2219
+ */
2220
+ type StandardExtensionContractId = (typeof standardExtensionSurfaces)[StandardExtensionSurfaceName]["contract"]["id"];
2221
+ /**
2222
+ * Contribution-point keys exposed by a selected standard extension surface.
2223
+ * @category Standard extension surfaces
2224
+ */
2225
+ type StandardExtensionPointKey<TSurface extends StandardExtensionSurfaceName> = (typeof standardExtensionSurfaces)[TSurface]["points"][number]["key"];
2226
+ /**
2227
+ * Operation keys exposed by a selected standard extension surface.
2228
+ * @category Standard extension surfaces
2229
+ */
2230
+ type StandardExtensionOperationKey<TSurface extends StandardExtensionSurfaceName> = (typeof standardExtensionSurfaces)[TSurface]["operations"][number];
2231
+ /**
2232
+ * Validation issue found while checking a standard surface declaration.
2233
+ * @category Standard extension surfaces
2234
+ */
2235
+ type StandardSurfaceValidationIssue = {
2236
+ /** Surface declaration field that failed validation. */
2237
+ field: "surface" | "contract" | "points" | "operations";
2238
+ /** Human-readable explanation of the validation failure. */
2239
+ message: string;
2240
+ };
2241
+ /**
2242
+ * Return the canonical contract definition for a standard extension surface.
2243
+ * @category Standard extension surfaces
2244
+ * @param surface Canonical standard surface whose contract is required.
2245
+ * @returns The canonical contract definition for the surface.
2246
+ */
2247
+ declare function standardSurfaceContract<TSurface extends StandardExtensionSurfaceName>(surface: TSurface): (typeof standardExtensionSurfaces)[TSurface]["contract"];
2248
+ /**
2249
+ * Canonical requirement for targeting a standard surface from another plugin.
2250
+ * This lets authors/tooling depend on the standard family without copying its
2251
+ * contract id into plugin-specific code or manifests.
2252
+ */
2253
+ /**
2254
+ * @category Standard extension surfaces
2255
+ * @param surface Canonical standard surface to target.
2256
+ * @returns The compatible contract requirement for consumers.
2257
+ */
2258
+ declare function standardSurfaceContractRequirement(surface: StandardExtensionSurfaceName): ExtensionContractRequirement;
2259
+ /**
2260
+ * Create a manifest surface declaration from the canonical standard-surface catalog.
2261
+ * @category Standard extension surfaces
2262
+ * @param surface Canonical standard surface to declare.
2263
+ * @param key Public identity of the concrete surface instance.
2264
+ * @param metadata Additional manifest metadata to merge into the generated declaration.
2265
+ * @returns A plugin extension-surface declaration using the canonical contract.
2266
+ */
2267
+ declare function standardSurfaceDefinition(surface: StandardExtensionSurfaceName, key: string, metadata?: Record<string, unknown>): PluginExtensionSurface;
2268
+ type StandardContributionFieldValue<TField extends StandardContributionFieldType> = TField extends "string" ? string : TField extends "number" ? number : TField extends "boolean" ? boolean : TField extends "function" ? (...args: any[]) => unknown : TField extends "object" ? Record<string, unknown> : TField extends "string[]" ? readonly string[] : unknown;
2269
+ type StandardContributionFromSchema<TSchema extends StandardContributionSchema> = {
2270
+ [K in keyof TSchema["required"]]: StandardContributionFieldValue<TSchema["required"][K]>;
2271
+ } & (TSchema["optional"] extends Readonly<Record<string, StandardContributionFieldType>> ? {
2272
+ [K in keyof TSchema["optional"]]?: StandardContributionFieldValue<TSchema["optional"][K]>;
2273
+ } : Record<never, never>);
2274
+ type StandardPointDefinitionFor<TSurface extends StandardExtensionSurfaceName, TPoint extends string> = Extract<(typeof standardExtensionSurfaces)[TSurface]["points"][number], {
2275
+ readonly key: TPoint;
2276
+ }>;
2277
+ /**
2278
+ * Structured contribution type projected directly from the canonical standard
2279
+ * surface schema. Points without a structured schema intentionally resolve to
2280
+ * `unknown`, because they are renderable-module points instead.
2281
+ * @category Standard extension surfaces
2282
+ */
2283
+ type StandardContributionFor<TSurface extends StandardExtensionSurfaceName, TPoint extends string> = StandardPointDefinitionFor<TSurface, TPoint> extends {
2284
+ readonly contributionSchema: infer TSchema extends StandardContributionSchema;
2285
+ } ? StandardContributionFromSchema<TSchema> : unknown;
2286
+ /**
2287
+ * Return the structured contribution schema for a standard surface point when one exists.
2288
+ * @category Standard extension surfaces
2289
+ * @param surface Canonical surface containing the contribution point.
2290
+ * @param pointKey Contribution point key to inspect.
2291
+ * @returns The structured schema, or null for renderable/unstructured points.
2292
+ */
2293
+ declare function standardContributionSchema(surface: StandardExtensionSurfaceName, pointKey: string): StandardContributionSchema | null;
2294
+ /**
2295
+ * Validate a structured standard-surface contribution at the runtime boundary.
2296
+ * Renderable points intentionally return no issue because their contract is a
2297
+ * React component module rather than a `contribute()` payload.
2298
+ */
2299
+ /**
2300
+ * @category Standard extension surfaces
2301
+ * @param surface Canonical surface containing the contribution point.
2302
+ * @param pointKey Contribution point key to validate against.
2303
+ * @param value Contribution payload to validate.
2304
+ * @returns Validation messages; an empty array means the payload is valid or the point is unstructured.
2305
+ */
2306
+ declare function validateStandardContribution(surface: StandardExtensionSurfaceName, pointKey: string, value: unknown): string[];
2307
+ /**
2308
+ * Check whether a string names a canonical standard extension surface.
2309
+ * @category Standard extension surfaces
2310
+ * @param value Surface name to test.
2311
+ * @returns True when the value is a canonical standard surface name.
2312
+ */
2313
+ declare function isStandardExtensionSurface(value: string): value is StandardExtensionSurfaceName;
2314
+ /**
2315
+ * Check whether a contract id belongs to a canonical standard extension surface.
2316
+ * @category Standard extension surfaces
2317
+ * @param value Contract id to test.
2318
+ * @returns True when the value is a canonical standard-surface contract id.
2319
+ */
2320
+ declare function isStandardExtensionContractId(value: string): value is StandardExtensionContractId;
2321
+ /**
2322
+ * Resolve a canonical standard surface from its contract identifier.
2323
+ * @category Standard extension surfaces
2324
+ * @param contractId Canonical contract identifier to resolve.
2325
+ * @returns The matching standard surface name, or null when the id is not canonical.
2326
+ */
2327
+ declare function standardSurfaceForContractId(contractId: string): StandardExtensionSurfaceName | null;
2328
+ /**
2329
+ * Validate a manifest/runtime declaration against the canonical standard
2330
+ * contract. Custom protocols are allowed, but canonical Plugmatica UI contract
2331
+ * identifiers are reserved for their matching standard surface families.
2332
+ */
2333
+ /**
2334
+ * @category Standard extension surfaces
2335
+ * @param candidate Surface declaration to compare with the canonical catalog.
2336
+ * @returns Validation issues; an empty array means the declaration is valid.
2337
+ */
2338
+ declare function validateStandardSurfaceDefinition(candidate: Pick<PluginExtensionSurface, "surface" | "contract" | "points" | "operations">): StandardSurfaceValidationIssue[];
2339
+ /**
2340
+ * Assert that a surface declaration matches its canonical standard-surface contract.
2341
+ * @category Standard extension surfaces
2342
+ * @param candidate Surface declaration to validate and assert.
2343
+ */
2344
+ declare function assertStandardSurfaceDefinition(candidate: Pick<PluginExtensionSurface, "surface" | "contract" | "points" | "operations">): void;
2345
+
2346
+ /**
2347
+ * Format version for generated extension-target reference files.
2348
+ * @category Extension targets
2349
+ */
2350
+ declare const EXTENSION_TARGET_REFERENCE_VERSION: 1;
2351
+ /**
2352
+ * Package export subpath containing generated extension target tokens.
2353
+ * @category Extension targets
2354
+ */
2355
+ declare const EXTENSION_TARGET_PACKAGE_SUBPATH: "./extensions";
2356
+ /**
2357
+ * Kinds of generated extension targets that a contribution can address.
2358
+ * @category Extension targets
2359
+ */
2360
+ type ExtensionTargetKind = "ui" | "operation" | "event" | "provider";
2361
+ /**
2362
+ * Shared producer, version, and contract metadata carried by every generated extension target.
2363
+ * @category Extension targets
2364
+ */
2365
+ type ExtensionTargetTokenBase<TKind extends ExtensionTargetKind, TPlugin extends PluginKey = PluginKey, TPluginVersion extends string = string, TContract extends ExtensionContractRequirement = ExtensionContractRequirement> = {
2366
+ /** Stable discriminator used by generated target modules and compiler tooling. */
2367
+ readonly __pmTarget: TKind;
2368
+ /** Compatible protocol range required by the consuming contribution. */
2369
+ readonly contract: TContract;
2370
+ } & ({
2371
+ /** Direct target generated by a concrete provider package. */
2372
+ readonly resolution?: "plugin";
2373
+ /** Plugin that owns the public extension contract. */
2374
+ readonly plugin: TPlugin;
2375
+ /** Exact producer package version that emitted this token. */
2376
+ readonly pluginVersion: TPluginVersion;
2377
+ readonly required?: never;
2378
+ } | {
2379
+ /** Resolve the target by compatible installed capability at runtime. */
2380
+ readonly resolution: "capability";
2381
+ /** Whether absence of a compatible installed provider blocks activation. */
2382
+ readonly required: boolean;
2383
+ readonly plugin?: never;
2384
+ readonly pluginVersion?: never;
2385
+ });
2386
+ type UiExtensionTargetTokenBase<TPlugin extends PluginKey, TPluginVersion extends string, TSurface extends ExtensionSurface, TKey extends string, TPoint extends string, TContract extends ExtensionContractRequirement> = ExtensionTargetTokenBase<"ui", TPlugin, TPluginVersion, TContract> & {
2387
+ readonly surface: TSurface;
2388
+ readonly key: TKey;
2389
+ readonly point: TPoint;
2390
+ /** Statically known owner anchors for this ordered collection point. */
2391
+ readonly ownerAnchors?: readonly string[];
2392
+ /** True only when ownerAnchors is a complete static set. */
2393
+ readonly ownerAnchorsComplete?: boolean;
2394
+ };
2395
+ /**
2396
+ * UI target backed by one of Plugmatica's canonical semantic surfaces.
2397
+ *
2398
+ * Standard targets can carry the type-only contribution schema projected from
2399
+ * the canonical standard-surface catalog.
2400
+ * @category Extension targets
2401
+ */
2402
+ type StandardUiExtensionTargetToken<TPlugin extends PluginKey = PluginKey, TPluginVersion extends string = string, TSurface extends StandardExtensionSurfaceName = StandardExtensionSurfaceName, TKey extends string = string, TPoint extends string = string, TContract extends ExtensionContractRequirement = ExtensionContractRequirement> = UiExtensionTargetTokenBase<TPlugin, TPluginVersion, TSurface, TKey, TPoint, TContract> & {
2403
+ /**
2404
+ * Type-only carrier emitted by generated target declarations for structured
2405
+ * standard points. Runtime target objects never contain this property.
2406
+ */
2407
+ readonly __contribution?: StandardContributionFor<TSurface, TPoint>;
2408
+ };
2409
+ /**
2410
+ * UI target backed by a plugin-defined domain contract.
2411
+ *
2412
+ * Custom targets intentionally do not use StandardContributionFor because
2413
+ * their contribution protocol is defined by the owning plugin rather than the
2414
+ * canonical standard-surface catalog.
2415
+ * @category Extension targets
2416
+ */
2417
+ type CustomUiExtensionTargetToken<TPlugin extends PluginKey = PluginKey, TPluginVersion extends string = string, TKey extends string = string, TPoint extends string = string, TContract extends ExtensionContractRequirement = ExtensionContractRequirement> = UiExtensionTargetTokenBase<TPlugin, TPluginVersion, "custom", TKey, TPoint, TContract>;
2418
+ /**
2419
+ * Public UI extension-target token.
2420
+ *
2421
+ * Preserve the generic surface parameter while making standard and custom
2422
+ * targets distinct at the type level:
2423
+ *
2424
+ * - standard semantic surface -> canonical StandardContributionFor carrier
2425
+ * - custom surface -> plugin-defined domain contract, no carrier
2426
+ * @category Extension targets
2427
+ */
2428
+ type UiExtensionTargetToken<TPlugin extends PluginKey = PluginKey, TPluginVersion extends string = string, TSurface extends ExtensionSurface = ExtensionSurface, TKey extends string = string, TPoint extends string = string, TContract extends ExtensionContractRequirement = ExtensionContractRequirement> = TSurface extends StandardExtensionSurfaceName ? StandardUiExtensionTargetToken<TPlugin, TPluginVersion, TSurface, TKey, TPoint, TContract> : TSurface extends "custom" ? CustomUiExtensionTargetToken<TPlugin, TPluginVersion, TKey, TPoint, TContract> : never;
2429
+ /**
2430
+ * Generated token identifying one operation exposed by a target surface.
2431
+ * @category Extension targets
2432
+ */
2433
+ type OperationExtensionTargetToken<TPlugin extends PluginKey = PluginKey, TPluginVersion extends string = string, TSurface extends ExtensionSurface = ExtensionSurface, TKey extends string = string, TOperation extends string = string, TContract extends ExtensionContractRequirement = ExtensionContractRequirement> = ExtensionTargetTokenBase<"operation", TPlugin, TPluginVersion, TContract> & {
2434
+ /** Extension surface family associated with this operation extension target token. */
2435
+ readonly surface: TSurface;
2436
+ /** Stable key identifying this operation extension target token. */
2437
+ readonly key: TKey;
2438
+ /** Operation key exposed by the target surface. */
2439
+ readonly operation: TOperation;
2440
+ };
2441
+ /**
2442
+ * Generated token identifying an event exposed by a plugin.
2443
+ * @category Extension targets
2444
+ */
2445
+ type EventExtensionTargetToken<TPayload = unknown, TPlugin extends PluginKey = PluginKey, TPluginVersion extends string = string, TEvent extends string = string, TContract extends ExtensionContractRequirement = ExtensionContractRequirement> = ExtensionTargetTokenBase<"event", TPlugin, TPluginVersion, TContract> & {
2446
+ /** Event key addressed by this event extension target token. */
2447
+ readonly event: TEvent;
2448
+ /** Type-only payload carrier; omitted from generated runtime values. */
2449
+ readonly __payload?: TPayload;
2450
+ };
2451
+ /**
2452
+ * Generated token identifying a provider contract exposed by a plugin.
2453
+ * @category Extension targets
2454
+ */
2455
+ type ProviderExtensionTargetToken<TRequest = unknown, TValue = unknown, TPlugin extends PluginKey = PluginKey, TPluginVersion extends string = string, TProvider extends string = string, TContract extends ExtensionContractRequirement = ExtensionContractRequirement> = ExtensionTargetTokenBase<"provider", TPlugin, TPluginVersion, TContract> & {
2456
+ /** Provider key addressed by this provider extension target token. */
2457
+ readonly provider: TProvider;
2458
+ /** Type-only request/value carriers; omitted from generated runtime values. */
2459
+ readonly __request?: TRequest;
2460
+ /** Type-only marker carrying the provider value type without affecting the runtime token shape. */
2461
+ readonly __value?: TValue;
2462
+ };
2463
+ /**
2464
+ * Union of all generated extension target token kinds.
2465
+ * @category Extension targets
2466
+ */
2467
+ type ExtensionTargetToken = UiExtensionTargetToken | OperationExtensionTargetToken | EventExtensionTargetToken | ProviderExtensionTargetToken;
2468
+ /**
2469
+ * Generated, serializable reference to all extension targets exposed by a plugin package.
2470
+ * @category Extension targets
2471
+ */
2472
+ type ExtensionTargetReference = {
2473
+ /** Version of the generated target-reference file format. */
2474
+ readonly formatVersion: typeof EXTENSION_TARGET_REFERENCE_VERSION;
2475
+ /** Producer plugin identity and version for the reference. */
2476
+ readonly plugin: {
2477
+ readonly key: PluginKey;
2478
+ readonly version: string;
2479
+ };
2480
+ /**
2481
+ * Source-of-truth marker: targets are projected from the Current Extension
2482
+ * Contract.
2483
+ */
2484
+ readonly generatedFrom: "current-extension-contract";
2485
+ /** Canonical package subpath used to publish generated target namespaces. */
2486
+ readonly packageSubpath: typeof EXTENSION_TARGET_PACKAGE_SUBPATH;
2487
+ /** Generated target tokens exported by the producer plugin. */
2488
+ readonly targets: {
2489
+ readonly ui: readonly UiExtensionTargetToken[];
2490
+ readonly operations: readonly OperationExtensionTargetToken[];
2491
+ readonly events: readonly EventExtensionTargetToken[];
2492
+ readonly providers: readonly ProviderExtensionTargetToken[];
2493
+ };
2494
+ };
2495
+ /**
2496
+ * Convert an exact provided contract into the compatible requirement stored in
2497
+ * a generated target token.
2498
+ *
2499
+ * Standard surfaces use the canonical catalog range.
2500
+ * Custom/event/provider contracts use a caret range over the provided version.
2501
+ */
2502
+ /**
2503
+ * @category Extension targets
2504
+ * @param contract Producer contract definition whose compatibility range is required.
2505
+ * @param surface Surface family used when evaluating the compatible requirement.
2506
+ * @returns A compatible contract requirement for the consumer.
2507
+ */
2508
+ declare function compatibleExtensionContractRequirement(contract: ExtensionContractDefinition, surface?: ExtensionSurface): ExtensionContractRequirement;
2509
+ /**
2510
+ * Check whether an unknown value has the shape of a generated extension target token.
2511
+ * @category Extension targets
2512
+ * @param value Unknown value to test.
2513
+ * @returns True when the value is a supported generated extension target token.
2514
+ */
2515
+ /**
2516
+ * Check whether a target token is resolved by runtime capability rather than a concrete provider.
2517
+ * @category Extension targets
2518
+ */
2519
+ declare function isCapabilityResolvedExtensionTargetToken(value: ExtensionTargetToken): value is ExtensionTargetToken & {
2520
+ readonly resolution: "capability";
2521
+ readonly required: boolean;
2522
+ };
2523
+ /**
2524
+ * Check whether a target token is bound to one concrete provider package.
2525
+ * @category Extension targets
2526
+ */
2527
+ declare function isDirectExtensionTargetToken(value: ExtensionTargetToken): value is ExtensionTargetToken & {
2528
+ readonly plugin: PluginKey;
2529
+ readonly pluginVersion: string;
2530
+ };
2531
+ declare function isExtensionTargetToken(value: unknown): value is ExtensionTargetToken;
2532
+
2533
+ export { EXTENSION_KINDS, EXTENSION_SURFACES, EXTENSION_TARGET_PACKAGE_SUBPATH, EXTENSION_TARGET_REFERENCE_VERSION, ExtensionIdentityError, OPERATION_EXTENSION_PHASES, absentExtensionIdentity, assertStandardSurfaceDefinition, compatibleExtensionContractRequirement, composeExtensionPublicKey, createCurrentExtensionContract, createExtensionScope, derivePublicExtensionIdentity, deriveUniquePublicExtensionIdentities, dynamicExtensionIdentity, isCapabilityResolvedExtensionTargetToken, isDirectExtensionTargetToken, isExtensionTargetToken, isStandardExtensionContractId, isStandardExtensionSurface, normalizeExplicitExtensionName, normalizePublicIdentity, resolveQualifiedExtensionPublicKey, standardContributionSchema, standardExtensionSurfaces, standardSurfaceContract, standardSurfaceContractRequirement, standardSurfaceDefinition, standardSurfaceForContractId, staticExtensionIdentity, validateStandardContribution, validateStandardSurfaceDefinition };
2534
+ export type { CurrentExtensionContract, CurrentExtensionEventContract, CurrentExtensionProviderContract, CurrentExtensionSurfaceContract, CustomUiExtensionTargetToken, DerivedExtensionIdentity, EventExtensionTargetToken, ExplicitExtensionName, ExtensionContractDefinition, ExtensionContractIdentity, ExtensionContractRequirement, ExtensionContributionKey, ExtensionFailurePolicy, ExtensionIdentityCandidate, ExtensionIdentityErrorCode, ExtensionIdentityRequest, ExtensionIdentitySource, ExtensionKind, ExtensionOperationKey, ExtensionOverrideProps, ExtensionPointKey, ExtensionScope, ExtensionScopeInput, ExtensionSourceMetadata, ExtensionSurface, ExtensionSurfaceInstanceIdentity, ExtensionSurfaceKey, ExtensionTargetKind, ExtensionTargetReference, ExtensionTargetToken, ExtensionTargetTokenBase, OperationExtensionPhase, OperationExtensionTargetToken, PluginEventHandlerContribution, PluginExtensionContribution, PluginExtensionEvent, PluginExtensionProvider, PluginExtensionSurface, PluginExtensionSurfacePoint, PluginExtensionTargetOwner, PluginKey, PluginOperationHookContribution, PluginProviderContribution, PluginUiExtensionContribution, ProviderExtensionTargetToken, RuntimeContributionId, StandardContributionFieldType, StandardContributionFor, StandardContributionSchema, StandardExtensionContractId, StandardExtensionOperationKey, StandardExtensionPointDefinition, StandardExtensionPointImportance, StandardExtensionPointKey, StandardExtensionSurfaceContract, StandardExtensionSurfaceName, StandardSurfaceValidationIssue, StandardUiExtensionTargetToken, UiExtensionTargetToken };