@hyprcart/app-manifest 1.0.0 → 1.0.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.
- package/dist/index.d.ts +390 -4
- package/dist/index.js +559 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,95 @@
|
|
|
1
|
-
declare const supportedSurfaces: readonly ["storefront_block", "admin_surface", "checkout_ui", "checkout_function", "pixel", "event", "flow", "mcp"];
|
|
1
|
+
declare const supportedSurfaces: readonly ["storefront_block", "admin_surface", "checkout_ui", "deterministic_function", "checkout_function", "pixel", "event_subscription", "background_job", "event", "flow", "mcp"];
|
|
2
2
|
type AppSurfaceKind = (typeof supportedSurfaces)[number];
|
|
3
|
+
declare const storefrontBlockRenderTiers: readonly ["static", "edge_render", "edge_stream"];
|
|
4
|
+
type StorefrontBlockRenderTier = (typeof storefrontBlockRenderTiers)[number];
|
|
5
|
+
declare const legacyStorefrontBlockRenderTiers: readonly ["edge-function", "edge-stream"];
|
|
6
|
+
type LegacyStorefrontBlockRenderTier = (typeof legacyStorefrontBlockRenderTiers)[number];
|
|
7
|
+
declare const hydrationTriggers: readonly ["load", "visible", "interaction", "idle", "manual"];
|
|
8
|
+
type HydrationTrigger = (typeof hydrationTriggers)[number];
|
|
3
9
|
type LocaleMessages = Record<string, string>;
|
|
10
|
+
interface AppSurfaceSetting {
|
|
11
|
+
name: string;
|
|
12
|
+
type: "string" | "number" | "boolean" | "select" | "color" | "text" | "rich_text";
|
|
13
|
+
label?: Record<string, string> | string;
|
|
14
|
+
default?: unknown;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
options?: Array<{
|
|
17
|
+
label: Record<string, string> | string;
|
|
18
|
+
value: string;
|
|
19
|
+
}>;
|
|
20
|
+
min?: number;
|
|
21
|
+
max?: number;
|
|
22
|
+
}
|
|
23
|
+
interface StorefrontBlockPlaceholder {
|
|
24
|
+
width: string;
|
|
25
|
+
height: string;
|
|
26
|
+
skeleton: "list" | "card" | "text" | "custom";
|
|
27
|
+
timeoutMs?: number;
|
|
28
|
+
}
|
|
29
|
+
interface StorefrontBlockClientIsland {
|
|
30
|
+
artifactId: string;
|
|
31
|
+
bundleUrl?: string;
|
|
32
|
+
compressedSizeBytes: number;
|
|
33
|
+
hydrationTrigger: HydrationTrigger;
|
|
34
|
+
domBoundarySelector: string;
|
|
35
|
+
consentCategory?: string;
|
|
36
|
+
exceptionId?: string;
|
|
37
|
+
}
|
|
4
38
|
interface AppManifestSurface {
|
|
5
39
|
id: string;
|
|
6
40
|
type: AppSurfaceKind;
|
|
7
41
|
entry: string;
|
|
8
42
|
label: Record<string, string>;
|
|
9
|
-
|
|
43
|
+
adminSurfaceType?: "app_home" | "settings_page" | "dashboard_widget" | "resource_panel" | "resource_action" | "bulk_action" | "command_palette_action" | "global_search_contribution" | "notification_task_contribution" | "modal_action" | "admin_ui_block";
|
|
44
|
+
settings?: AppSurfaceSetting[];
|
|
10
45
|
scopes?: string[];
|
|
46
|
+
roles?: string[];
|
|
11
47
|
deployable?: boolean;
|
|
48
|
+
renderTier?: StorefrontBlockRenderTier | LegacyStorefrontBlockRenderTier;
|
|
49
|
+
tier?: StorefrontBlockRenderTier | LegacyStorefrontBlockRenderTier;
|
|
50
|
+
category?: string;
|
|
51
|
+
compatiblePageTypes?: string[];
|
|
52
|
+
compatibleSlots?: string[];
|
|
53
|
+
requiredContexts?: string[];
|
|
54
|
+
cache?: {
|
|
55
|
+
maxAgeSeconds?: number;
|
|
56
|
+
staleWhileRevalidateSeconds?: number;
|
|
57
|
+
tags?: string[];
|
|
58
|
+
vary?: string[];
|
|
59
|
+
};
|
|
60
|
+
placeholder?: StorefrontBlockPlaceholder;
|
|
61
|
+
fallbackPolicy?: "omit_block" | "static_placeholder" | "previous_healthy" | "none";
|
|
62
|
+
clientIslands?: StorefrontBlockClientIsland[];
|
|
63
|
+
placement?: string | string[];
|
|
64
|
+
inputSchema?: Record<string, unknown>;
|
|
65
|
+
outputSchema?: Record<string, unknown>;
|
|
66
|
+
sandboxPolicy?: Record<string, unknown>;
|
|
67
|
+
componentKit?: {
|
|
68
|
+
minVersion: string;
|
|
69
|
+
components: string[];
|
|
70
|
+
};
|
|
71
|
+
removalBehavior?: string[];
|
|
72
|
+
dimensions?: Record<string, unknown>;
|
|
73
|
+
dataRequirements?: Record<string, unknown>;
|
|
74
|
+
consent?: {
|
|
75
|
+
category?: string;
|
|
76
|
+
events?: string[];
|
|
77
|
+
destinations?: string[];
|
|
78
|
+
retentionDays?: number;
|
|
79
|
+
regions?: string[];
|
|
80
|
+
fields?: string[];
|
|
81
|
+
bypass?: boolean;
|
|
82
|
+
};
|
|
83
|
+
determinism?: {
|
|
84
|
+
networkAccess?: boolean;
|
|
85
|
+
mutationSideEffects?: boolean;
|
|
86
|
+
operations?: string[];
|
|
87
|
+
};
|
|
88
|
+
schedule?: Record<string, unknown>;
|
|
89
|
+
retryPolicy?: Record<string, unknown>;
|
|
90
|
+
overlapPolicy?: string;
|
|
91
|
+
checkpointPolicy?: Record<string, unknown>;
|
|
92
|
+
quotaClass?: string;
|
|
12
93
|
}
|
|
13
94
|
interface AppManifest {
|
|
14
95
|
id?: string;
|
|
@@ -20,6 +101,10 @@ interface AppManifest {
|
|
|
20
101
|
surfaces: AppManifestSurface[];
|
|
21
102
|
scopes: string[];
|
|
22
103
|
translations: Record<string, LocaleMessages>;
|
|
104
|
+
launch?: LaunchReadinessDeclaration;
|
|
105
|
+
fixedSlots?: FixedSlotManifestDeclaration[];
|
|
106
|
+
storefrontTranslations?: StorefrontTranslationManifestDeclaration;
|
|
107
|
+
certification?: AppCertificationManifestDeclaration;
|
|
23
108
|
egress?: string[];
|
|
24
109
|
resources?: {
|
|
25
110
|
bundleSizeBytes?: number;
|
|
@@ -27,8 +112,163 @@ interface AppManifest {
|
|
|
27
112
|
memoryMb?: number;
|
|
28
113
|
};
|
|
29
114
|
}
|
|
115
|
+
interface LaunchReadinessDeclaration {
|
|
116
|
+
adminApi?: LaunchAdminApiDeclaration;
|
|
117
|
+
appData?: LaunchAppDataDeclaration[];
|
|
118
|
+
environments?: LaunchEnvironmentDeclaration[];
|
|
119
|
+
secrets?: LaunchSecretDeclaration[];
|
|
120
|
+
settings?: LaunchMerchantSettingDeclaration[];
|
|
121
|
+
consent?: LaunchConsentMetadataDeclaration;
|
|
122
|
+
lifecycleCallbacks?: LaunchLifecycleCallbackDeclaration[];
|
|
123
|
+
assets?: LaunchAssetDeclaration[];
|
|
124
|
+
sandbox?: LaunchSandboxFixtureDeclaration;
|
|
125
|
+
evidence?: LaunchEvidenceDeclaration;
|
|
126
|
+
compatibility?: LaunchCompatibilityDeclaration;
|
|
127
|
+
}
|
|
128
|
+
interface LaunchAdminApiDeclaration {
|
|
129
|
+
minApiVersion: string;
|
|
130
|
+
operations: Array<{
|
|
131
|
+
operationName: string;
|
|
132
|
+
mode: "offline_app_token" | "online_app_user_token";
|
|
133
|
+
requiredScopes: string[];
|
|
134
|
+
idempotencyKeyRequired?: boolean;
|
|
135
|
+
expectedCostClass?: string;
|
|
136
|
+
examples?: string[];
|
|
137
|
+
}>;
|
|
138
|
+
}
|
|
139
|
+
interface LaunchAppDataDeclaration {
|
|
140
|
+
namespace: string;
|
|
141
|
+
labelKey: string;
|
|
142
|
+
purposeKey: string;
|
|
143
|
+
visibility: "private" | "merchant_visible" | "storefront_public";
|
|
144
|
+
retentionPolicyKey: string;
|
|
145
|
+
storefrontMaterialization?: {
|
|
146
|
+
enabled: boolean;
|
|
147
|
+
fields: string[];
|
|
148
|
+
cacheTags: string[];
|
|
149
|
+
varyBy: string[];
|
|
150
|
+
maxAgeSeconds?: number;
|
|
151
|
+
};
|
|
152
|
+
migrations?: Array<{
|
|
153
|
+
key: string;
|
|
154
|
+
idempotent: boolean;
|
|
155
|
+
rollbackPolicy?: Record<string, unknown>;
|
|
156
|
+
}>;
|
|
157
|
+
}
|
|
158
|
+
interface LaunchEnvironmentDeclaration {
|
|
159
|
+
key: "development" | "staging" | "production";
|
|
160
|
+
labelKey: string;
|
|
161
|
+
runtimeChannel: "preview" | "private" | "production";
|
|
162
|
+
promotionRequiresCertification: boolean;
|
|
163
|
+
requiredSecrets: string[];
|
|
164
|
+
optionalSecrets?: string[];
|
|
165
|
+
allowedInstallModes: Array<"sandbox" | "private_install">;
|
|
166
|
+
}
|
|
167
|
+
interface LaunchSecretDeclaration {
|
|
168
|
+
key: string;
|
|
169
|
+
labelKey: string;
|
|
170
|
+
purposeKey: string;
|
|
171
|
+
required: boolean;
|
|
172
|
+
scope: "app_environment" | "installation" | "storefront" | "market" | "locale";
|
|
173
|
+
runtimeExposure: "runtime_only" | "server_callback_only" | "not_exposed";
|
|
174
|
+
rotation?: {
|
|
175
|
+
overlapSeconds?: number;
|
|
176
|
+
requiredBeforePromotion?: boolean;
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
interface LaunchMerchantSettingDeclaration {
|
|
180
|
+
key: string;
|
|
181
|
+
label: Record<string, string>;
|
|
182
|
+
helpText?: Record<string, string>;
|
|
183
|
+
scope: Array<"organization" | "storefront" | "market" | "locale" | "role" | "resource">;
|
|
184
|
+
fields: AppSurfaceSetting[];
|
|
185
|
+
}
|
|
186
|
+
interface LaunchConsentMetadataDeclaration {
|
|
187
|
+
appIcon: string;
|
|
188
|
+
screenshots: string[];
|
|
189
|
+
developerName: string;
|
|
190
|
+
supportUrl: string;
|
|
191
|
+
supportEmail?: string;
|
|
192
|
+
privacyPolicyUrl: string;
|
|
193
|
+
termsUrl: string;
|
|
194
|
+
dataProcessingUrl?: string;
|
|
195
|
+
dataCategories: string[];
|
|
196
|
+
egressDestinations: string[];
|
|
197
|
+
reviewerInstructions: string;
|
|
198
|
+
}
|
|
199
|
+
interface LaunchLifecycleCallbackDeclaration {
|
|
200
|
+
event: "install" | "update" | "uninstall" | "disable" | "enable" | "scope_change" | "secret_rotation" | "settings_change" | "data_export" | "data_delete" | "version_promotion";
|
|
201
|
+
endpoint: string;
|
|
202
|
+
signingSecretRef: string;
|
|
203
|
+
idempotencyWindowSeconds: number;
|
|
204
|
+
}
|
|
205
|
+
interface LaunchAssetDeclaration {
|
|
206
|
+
key: string;
|
|
207
|
+
kind: "icon" | "screenshot" | "admin_media" | "storefront_asset" | "email_media" | "reviewer_instruction_media";
|
|
208
|
+
source: string;
|
|
209
|
+
locale?: string;
|
|
210
|
+
cacheMaxAgeSeconds?: number;
|
|
211
|
+
}
|
|
212
|
+
interface LaunchSandboxFixtureDeclaration {
|
|
213
|
+
fixturePackId: string;
|
|
214
|
+
seedVersion: string;
|
|
215
|
+
anonymizationRequired: boolean;
|
|
216
|
+
testModeIntegrations: string[];
|
|
217
|
+
}
|
|
218
|
+
interface LaunchEvidenceDeclaration {
|
|
219
|
+
repositoryUrl?: string;
|
|
220
|
+
testCommand: string;
|
|
221
|
+
buildCommand: string;
|
|
222
|
+
playwrightCoverage: string[];
|
|
223
|
+
}
|
|
224
|
+
interface LaunchCompatibilityDeclaration {
|
|
225
|
+
adminApiVersion: string;
|
|
226
|
+
appDataApiVersion: string;
|
|
227
|
+
runtimeVersion: string;
|
|
228
|
+
sdkVersion: string;
|
|
229
|
+
componentKitVersion: string;
|
|
230
|
+
}
|
|
231
|
+
interface FixedSlotManifestDeclaration {
|
|
232
|
+
pageType: "product" | "collection" | "cart" | "checkout" | "customer_profile" | "customer_account" | "order_detail" | "app_landing";
|
|
233
|
+
slotKey: string;
|
|
234
|
+
blockIds: string[];
|
|
235
|
+
settingsSchema: AppSurfaceSetting[];
|
|
236
|
+
cachePolicy: {
|
|
237
|
+
privateData: "never_shared_html" | "not_applicable";
|
|
238
|
+
tags: string[];
|
|
239
|
+
varyBy: string[];
|
|
240
|
+
};
|
|
241
|
+
previewMode: "safe_sample_buyer" | "public_only";
|
|
242
|
+
}
|
|
243
|
+
interface StorefrontTranslationManifestDeclaration {
|
|
244
|
+
defaultLocale: string;
|
|
245
|
+
requiredLocales: string[];
|
|
246
|
+
keys: Array<{
|
|
247
|
+
key: string;
|
|
248
|
+
description: string;
|
|
249
|
+
defaults: Record<string, string>;
|
|
250
|
+
}>;
|
|
251
|
+
fallback: {
|
|
252
|
+
mode: "locale_then_default" | "default_only";
|
|
253
|
+
missingKeyBehavior: "block_release" | "use_key";
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
interface AppCertificationManifestDeclaration {
|
|
257
|
+
requiredEvidence: string[];
|
|
258
|
+
playwrightCoverage: string[];
|
|
259
|
+
performanceBudgets: {
|
|
260
|
+
storefrontP95Ms: number;
|
|
261
|
+
checkoutP95Ms: number;
|
|
262
|
+
cacheHitRatio: number;
|
|
263
|
+
};
|
|
264
|
+
gapPolicy: {
|
|
265
|
+
blockOnOpenRequiredGaps: boolean;
|
|
266
|
+
requireNonLoyaltyEvidence: boolean;
|
|
267
|
+
};
|
|
268
|
+
}
|
|
30
269
|
declare const defaultRequiredLocales: readonly ["en", "de"];
|
|
31
270
|
declare function isSupportedSurface(value: string): value is AppSurfaceKind;
|
|
271
|
+
declare function normalizeStorefrontBlockRenderTier(value: string | undefined): StorefrontBlockRenderTier;
|
|
32
272
|
|
|
33
273
|
type ValidationSeverity = "info" | "warning" | "error" | "blocker";
|
|
34
274
|
interface ValidationIssue {
|
|
@@ -71,6 +311,25 @@ interface ValidationOptions {
|
|
|
71
311
|
declare function validateManifest(manifest: AppManifest, options?: ValidationOptions): ValidationResult;
|
|
72
312
|
declare function getTranslationStatus(manifest: AppManifest, requiredLocales: string[]): TranslationStatus;
|
|
73
313
|
|
|
314
|
+
type SurfaceContractStatus = "active" | "preview" | "deferred" | "unsupported" | "rejected";
|
|
315
|
+
type SurfaceContractSeverity = "info" | "warning" | "error" | "blocking";
|
|
316
|
+
interface SurfaceContractDiagnostic {
|
|
317
|
+
code: string;
|
|
318
|
+
severity: SurfaceContractSeverity;
|
|
319
|
+
path: string;
|
|
320
|
+
message: string;
|
|
321
|
+
docsUrl?: string;
|
|
322
|
+
}
|
|
323
|
+
interface SurfaceContractResult {
|
|
324
|
+
surfaceId: string;
|
|
325
|
+
surfaceType: AppSurfaceKind;
|
|
326
|
+
status: SurfaceContractStatus;
|
|
327
|
+
runtimeOwner: "049c" | "049e" | "075a" | "deferred";
|
|
328
|
+
diagnostics: SurfaceContractDiagnostic[];
|
|
329
|
+
}
|
|
330
|
+
declare function validateExtensionSurfaceDeclarations(manifest: AppManifest): SurfaceContractResult[];
|
|
331
|
+
declare function validateExtensionSurface(surface: AppManifestSurface, basePath?: string): SurfaceContractResult;
|
|
332
|
+
|
|
74
333
|
interface GeneratedContractFile {
|
|
75
334
|
path: string;
|
|
76
335
|
content: string;
|
|
@@ -80,6 +339,7 @@ interface ContractGenerationResult {
|
|
|
80
339
|
manifestHash: string;
|
|
81
340
|
schemaVersion: string;
|
|
82
341
|
sdkVersion: string;
|
|
342
|
+
surfaces: SurfaceContractResult[];
|
|
83
343
|
files: GeneratedContractFile[];
|
|
84
344
|
}
|
|
85
345
|
declare function generateContracts(manifest: AppManifest, schemaVersion?: string): ContractGenerationResult;
|
|
@@ -101,7 +361,7 @@ declare function generateIdeMetadata(manifest: AppManifest): {
|
|
|
101
361
|
schemaVersion: string;
|
|
102
362
|
platformVersion: string;
|
|
103
363
|
surfaceContracts: {
|
|
104
|
-
surface: "storefront_block" | "admin_surface" | "checkout_ui" | "checkout_function" | "pixel" | "event" | "flow" | "mcp";
|
|
364
|
+
surface: "storefront_block" | "admin_surface" | "checkout_ui" | "deterministic_function" | "checkout_function" | "pixel" | "event_subscription" | "background_job" | "event" | "flow" | "mcp";
|
|
105
365
|
inputTypeName: string;
|
|
106
366
|
outputTypeName: string;
|
|
107
367
|
fixtureTypeName: string;
|
|
@@ -132,4 +392,130 @@ declare const developerToolingOperationMetadata: readonly [{
|
|
|
132
392
|
readonly stability: "preview";
|
|
133
393
|
}];
|
|
134
394
|
|
|
135
|
-
|
|
395
|
+
declare const supportedAdminComponentKitComponents: ("Page" | "Section" | "Stack" | "InlineStack" | "Grid" | "ResourcePanel" | "AdminBlock" | "Modal" | "Sheet" | "Text" | "Heading" | "Badge" | "Status" | "DescriptionList" | "DataTable" | "Timeline" | "Metric" | "EmptyState" | "Skeleton" | "Form" | "TextField" | "NumberField" | "Select" | "Combobox" | "Checkbox" | "RadioGroup" | "DatePicker" | "FilePicker" | "ResourcePicker" | "ValidationMessage" | "Button" | "IconButton" | "Banner" | "Toast" | "InlineError" | "Progress" | "Spinner" | "Tooltip" | "ConfirmDialog" | "TitleBar" | "Breadcrumbs" | "Tabs" | "ActionList" | "ContextualSaveBar" | "CommandAction" | "SearchResult")[];
|
|
396
|
+
interface AdminComponentKitManifestValidationInput {
|
|
397
|
+
minVersion?: string;
|
|
398
|
+
components?: string[];
|
|
399
|
+
tokens?: Record<string, unknown>;
|
|
400
|
+
css?: string;
|
|
401
|
+
supportedComponents?: readonly string[];
|
|
402
|
+
}
|
|
403
|
+
interface AdminComponentKitManifestValidationResult {
|
|
404
|
+
valid: boolean;
|
|
405
|
+
diagnostics: Array<{
|
|
406
|
+
code: string;
|
|
407
|
+
path: string;
|
|
408
|
+
message: string;
|
|
409
|
+
}>;
|
|
410
|
+
}
|
|
411
|
+
declare function validateAdminComponentKitManifest(input: AdminComponentKitManifestValidationInput): AdminComponentKitManifestValidationResult;
|
|
412
|
+
|
|
413
|
+
declare const appGovernanceCapabilityTypes: readonly ["api_operation", "storefront_block", "admin_surface", "checkout_surface", "pixel", "event_subscription", "mcp_tool", "mcp_resource", "mcp_resource_template", "mcp_prompt", "background_job"];
|
|
414
|
+
type AppGovernanceCapabilityType = (typeof appGovernanceCapabilityTypes)[number];
|
|
415
|
+
declare const appGovernanceDataClasses: readonly ["public", "merchant_operational", "restricted_customer", "payment_adjacent", "auth_sensitive", "security", "operator_only"];
|
|
416
|
+
type AppGovernanceDataClass = (typeof appGovernanceDataClasses)[number];
|
|
417
|
+
declare const appGovernanceRiskClasses: readonly ["low", "medium", "high", "critical"];
|
|
418
|
+
type AppGovernanceRiskClass = (typeof appGovernanceRiskClasses)[number];
|
|
419
|
+
declare const appGovernanceCostClasses: readonly ["free", "low", "medium", "high", "operator"];
|
|
420
|
+
type AppGovernanceCostClass = (typeof appGovernanceCostClasses)[number];
|
|
421
|
+
declare const appGovernanceApprovalPolicies: readonly ["required", "optional", "operator_only", "automation_policy_required", "not_approvable"];
|
|
422
|
+
type AppGovernanceApprovalPolicy = (typeof appGovernanceApprovalPolicies)[number];
|
|
423
|
+
interface AppCapabilityDeclaration {
|
|
424
|
+
key: string;
|
|
425
|
+
type: AppGovernanceCapabilityType;
|
|
426
|
+
surface: string;
|
|
427
|
+
requiredScopes: string[];
|
|
428
|
+
optionalScopes?: string[];
|
|
429
|
+
dataClass: AppGovernanceDataClass;
|
|
430
|
+
riskClass: AppGovernanceRiskClass;
|
|
431
|
+
costClass: AppGovernanceCostClass;
|
|
432
|
+
approvalPolicy: AppGovernanceApprovalPolicy;
|
|
433
|
+
buyerVisible: boolean;
|
|
434
|
+
aiExposed?: boolean;
|
|
435
|
+
mutating?: boolean;
|
|
436
|
+
}
|
|
437
|
+
interface AppEgressDeclaration {
|
|
438
|
+
key: string;
|
|
439
|
+
hosts: string[];
|
|
440
|
+
class: string;
|
|
441
|
+
requiredForCapabilities: string[];
|
|
442
|
+
defaultAction: "allow" | "block" | "broker" | "log_only";
|
|
443
|
+
}
|
|
444
|
+
interface AppRetentionDeclaration {
|
|
445
|
+
key: string;
|
|
446
|
+
appliesTo: string[];
|
|
447
|
+
retentionMode: string;
|
|
448
|
+
uninstallAction: string;
|
|
449
|
+
merchantVisible: boolean;
|
|
450
|
+
}
|
|
451
|
+
interface CapabilityValidationIssue {
|
|
452
|
+
code: string;
|
|
453
|
+
path: string;
|
|
454
|
+
message: string;
|
|
455
|
+
}
|
|
456
|
+
interface CapabilityValidationResult {
|
|
457
|
+
valid: boolean;
|
|
458
|
+
issues: CapabilityValidationIssue[];
|
|
459
|
+
}
|
|
460
|
+
declare function validateAppCapabilityDeclarations(input: {
|
|
461
|
+
capabilities?: AppCapabilityDeclaration[];
|
|
462
|
+
egress?: AppEgressDeclaration[];
|
|
463
|
+
dataRetention?: AppRetentionDeclaration[];
|
|
464
|
+
}): CapabilityValidationResult;
|
|
465
|
+
declare function isNormalizedHostPattern(host: string): boolean;
|
|
466
|
+
|
|
467
|
+
declare const aiMcpDescriptorTypes: readonly ["tool", "resource", "resource_template", "prompt"];
|
|
468
|
+
type AiMcpDescriptorType = (typeof aiMcpDescriptorTypes)[number];
|
|
469
|
+
declare const aiMcpHumanApprovalPolicies: readonly ["not_required", "required", "required_for_mutation", "automation_policy_allowed"];
|
|
470
|
+
type AiMcpHumanApprovalPolicy = (typeof aiMcpHumanApprovalPolicies)[number];
|
|
471
|
+
interface AiMcpDescriptorDeclaration {
|
|
472
|
+
name: string;
|
|
473
|
+
descriptorType: AiMcpDescriptorType;
|
|
474
|
+
capabilityKey: string;
|
|
475
|
+
requiredScopes: string[];
|
|
476
|
+
dataClass: string;
|
|
477
|
+
riskClass: string;
|
|
478
|
+
mutating: boolean;
|
|
479
|
+
humanApprovalPolicy: AiMcpHumanApprovalPolicy;
|
|
480
|
+
description?: string;
|
|
481
|
+
promptTemplate?: string;
|
|
482
|
+
resourceUriTemplate?: string;
|
|
483
|
+
}
|
|
484
|
+
interface AiMcpMetadataValidationIssue {
|
|
485
|
+
code: string;
|
|
486
|
+
path: string;
|
|
487
|
+
message: string;
|
|
488
|
+
}
|
|
489
|
+
interface AiMcpMetadataValidationResult {
|
|
490
|
+
valid: boolean;
|
|
491
|
+
issues: AiMcpMetadataValidationIssue[];
|
|
492
|
+
}
|
|
493
|
+
declare function validateAiMcpDescriptorMetadata(descriptors: AiMcpDescriptorDeclaration[]): AiMcpMetadataValidationResult;
|
|
494
|
+
declare function classifyAiMcpMetadataAuthority(text: string): "safe_descriptor" | "untrusted_authority_claim";
|
|
495
|
+
|
|
496
|
+
interface LaunchManifestValidationIssue {
|
|
497
|
+
code: string;
|
|
498
|
+
path: string;
|
|
499
|
+
message: string;
|
|
500
|
+
}
|
|
501
|
+
interface LaunchManifestValidationResult {
|
|
502
|
+
valid: boolean;
|
|
503
|
+
issues: LaunchManifestValidationIssue[];
|
|
504
|
+
}
|
|
505
|
+
declare function validateLaunchReadinessManifest(manifest: AppManifest): LaunchManifestValidationResult;
|
|
506
|
+
declare function assertLaunchReadinessManifest(manifest: AppManifest): asserts manifest is AppManifest & {
|
|
507
|
+
launch: LaunchReadinessDeclaration;
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
interface NoDeployPreviewValidationResult {
|
|
511
|
+
readonly status: "valid" | "invalid";
|
|
512
|
+
readonly createdProductionState: false;
|
|
513
|
+
readonly diagnostics: readonly {
|
|
514
|
+
readonly code: string;
|
|
515
|
+
readonly message: string;
|
|
516
|
+
readonly path?: string;
|
|
517
|
+
}[];
|
|
518
|
+
}
|
|
519
|
+
declare function validateNoDeployPreviewManifest(manifest: AppManifest): NoDeployPreviewValidationResult;
|
|
520
|
+
|
|
521
|
+
export { type AdminComponentKitManifestValidationInput, type AdminComponentKitManifestValidationResult, type AiMcpDescriptorDeclaration, type AiMcpDescriptorType, type AiMcpHumanApprovalPolicy, type AiMcpMetadataValidationIssue, type AiMcpMetadataValidationResult, type AppCapabilityDeclaration, type AppCertificationManifestDeclaration, type AppEgressDeclaration, type AppGovernanceApprovalPolicy, type AppGovernanceCapabilityType, type AppGovernanceCostClass, type AppGovernanceDataClass, type AppGovernanceRiskClass, type AppManifest, type AppManifestSurface, type AppRetentionDeclaration, type AppSurfaceKind, type AppSurfaceSetting, type CapabilityValidationIssue, type CapabilityValidationResult, type CompatibilityResult, type ContractGenerationResult, type FixedSlotManifestDeclaration, type GeneratedContractFile, type HydrationTrigger, type LaunchAdminApiDeclaration, type LaunchAppDataDeclaration, type LaunchAssetDeclaration, type LaunchCompatibilityDeclaration, type LaunchConsentMetadataDeclaration, type LaunchEnvironmentDeclaration, type LaunchEvidenceDeclaration, type LaunchLifecycleCallbackDeclaration, type LaunchManifestValidationIssue, type LaunchManifestValidationResult, type LaunchMerchantSettingDeclaration, type LaunchReadinessDeclaration, type LaunchSandboxFixtureDeclaration, type LaunchSecretDeclaration, type LegacyStorefrontBlockRenderTier, type LocaleMessages, type NoDeployPreviewValidationResult, type ScopeImpact, type StorefrontBlockClientIsland, type StorefrontBlockPlaceholder, type StorefrontBlockRenderTier, type StorefrontTranslationManifestDeclaration, type SurfaceContractDiagnostic, type SurfaceContractResult, type SurfaceContractSeverity, type SurfaceContractStatus, type TranslationGap, type TranslationStatus, type ValidationIssue, type ValidationOptions, type ValidationResult, type ValidationSeverity, aiMcpDescriptorTypes, aiMcpHumanApprovalPolicies, appGovernanceApprovalPolicies, appGovernanceCapabilityTypes, appGovernanceCostClasses, appGovernanceDataClasses, appGovernanceRiskClasses, assertLaunchReadinessManifest, checkCompatibility, classifyAiMcpMetadataAuthority, defaultRequiredLocales, developerToolingOperationMetadata, generateContracts, generateIdeMetadata, getTranslationStatus, hydrationTriggers, isNormalizedHostPattern, isSupportedSurface, legacyStorefrontBlockRenderTiers, normalizeStorefrontBlockRenderTier, storefrontBlockRenderTiers, supportedAdminComponentKitComponents, supportedSurfaces, validateAdminComponentKitManifest, validateAiMcpDescriptorMetadata, validateAppCapabilityDeclarations, validateExtensionSurface, validateExtensionSurfaceDeclarations, validateLaunchReadinessManifest, validateManifest, validateNoDeployPreviewManifest };
|