@plasius/mcp-admin-contracts 0.6.7 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { FEEDBACK_REVIEW_WORKFLOW_CONTRACT_VERSION, FeedbackReviewAction } from '@plasius/schema';
1
2
  import { MODEL_RESOLUTION_CONTRACT_VERSION } from '@plasius/asset-contracts';
2
3
  import { MODEL_MCP_CONTRACT_VERSION, ASSET_MCP_PACKAGE, MODEL_MCP_UNIFIED_FEATURE_FLAG_ID, MODEL_MCP_PVOX_FEATURE_FLAG_ID, MODEL_MCP_EXTERNAL_HARVEST_FEATURE_FLAG_ID, MODEL_MCP_GENERATION_FEATURE_FLAG_ID, ModelMcpToolName, ModelMcpToolDefinition, ModelMcpResourceTemplate } from '@plasius/asset-mcp';
3
4
 
@@ -33,6 +34,11 @@ declare const mcpAdminContractsEnGbTranslations: {
33
34
  readonly "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.";
34
35
  readonly "mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.";
35
36
  readonly "mcpAdminContracts.action.getFeedbackGameReconstruction.description": "Read one clearly labelled safe in-game reconstruction manifest without captured pixels, narrative, reporter identity, or storage references.";
37
+ readonly "mcpAdminContracts.action.listFeedbackReviewQueue.description": "List a bounded actor-free review queue with effective filters and freshness. This does not change any item.";
38
+ readonly "mcpAdminContracts.action.getFeedbackReviewItem.description": "Read the actor-free workflow state and bounded transition history for one identified packet.";
39
+ readonly "mcpAdminContracts.action.markFeedbackReviewed.description": "Mark an unreviewed packet reviewed only on an explicit user request for that packet.";
40
+ readonly "mcpAdminContracts.action.processFeedback.description": "Record a closed outcome for a reviewed packet only on an explicit user request naming the packet and outcome.";
41
+ readonly "mcpAdminContracts.action.reopenFeedback.description": "Return a processed packet to reviewed, keeping history, only on an explicit user request to reopen that packet.";
36
42
  readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
37
43
  readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
38
44
  readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
@@ -103,6 +109,11 @@ declare const mcpAdminContractDescriptionKeys: {
103
109
  readonly actionGetFeedbackFreshness: "mcpAdminContracts.action.getFeedbackFreshness.description";
104
110
  readonly actionListFeedbackStructuredEntries: "mcpAdminContracts.action.listFeedbackStructuredEntries.description";
105
111
  readonly actionGetFeedbackGameReconstruction: "mcpAdminContracts.action.getFeedbackGameReconstruction.description";
112
+ readonly actionListFeedbackReviewQueue: "mcpAdminContracts.action.listFeedbackReviewQueue.description";
113
+ readonly actionGetFeedbackReviewItem: "mcpAdminContracts.action.getFeedbackReviewItem.description";
114
+ readonly actionMarkFeedbackReviewed: "mcpAdminContracts.action.markFeedbackReviewed.description";
115
+ readonly actionProcessFeedback: "mcpAdminContracts.action.processFeedback.description";
116
+ readonly actionReopenFeedback: "mcpAdminContracts.action.reopenFeedback.description";
106
117
  readonly actionSearchAssetCatalog: "mcpAdminContracts.action.searchAssetCatalog.description";
107
118
  readonly actionGetAssetManifest: "mcpAdminContracts.action.getAssetManifest.description";
108
119
  readonly actionRequestAsset: "mcpAdminContracts.action.requestAsset.description";
@@ -175,6 +186,11 @@ declare const mcpAdminContractsTranslations: {
175
186
  readonly "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.";
176
187
  readonly "mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.";
177
188
  readonly "mcpAdminContracts.action.getFeedbackGameReconstruction.description": "Read one clearly labelled safe in-game reconstruction manifest without captured pixels, narrative, reporter identity, or storage references.";
189
+ readonly "mcpAdminContracts.action.listFeedbackReviewQueue.description": "List a bounded actor-free review queue with effective filters and freshness. This does not change any item.";
190
+ readonly "mcpAdminContracts.action.getFeedbackReviewItem.description": "Read the actor-free workflow state and bounded transition history for one identified packet.";
191
+ readonly "mcpAdminContracts.action.markFeedbackReviewed.description": "Mark an unreviewed packet reviewed only on an explicit user request for that packet.";
192
+ readonly "mcpAdminContracts.action.processFeedback.description": "Record a closed outcome for a reviewed packet only on an explicit user request naming the packet and outcome.";
193
+ readonly "mcpAdminContracts.action.reopenFeedback.description": "Return a processed packet to reviewed, keeping history, only on an explicit user request to reopen that packet.";
178
194
  readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
179
195
  readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
180
196
  readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
@@ -545,6 +561,43 @@ declare const MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS: readonly ["last-24-hours", "last
545
561
  declare const MCP_ADMIN_FEEDBACK_ALERT_WINDOWS: readonly ["last-24-hours", "last-7-days"];
546
562
  declare const MCP_ADMIN_FEEDBACK_PRIVACY_METADATA: McpFeedbackPrivacyMetadata;
547
563
  declare const MCP_ADMIN_FEEDBACK_ACTIONS: readonly McpActionDescriptor[];
564
+ /** Both MCP hosts must opt in after enforcing the complete action access tuple. */
565
+ declare const MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID = "feedback.review-workflow.enabled";
566
+ declare const MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID = "feedback.processing.enabled";
567
+ declare const MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY = "admin.feedback.manage";
568
+ declare const MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE = "admin.feedback.manage";
569
+ declare const MCP_ADMIN_FEEDBACK_REVIEW_HOST_DEFAULT_ENABLED = false;
570
+ declare const MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION = "1.0.0";
571
+ type WorkflowSchemaName = "FeedbackReviewQueueQuerySchema" | "FeedbackReviewQueuePageSchema" | "FeedbackReviewItemDetailSchema" | "FeedbackReviewTransitionRequestSchema" | "FeedbackReviewWorkflowStateSchema";
572
+ interface McpFeedbackReviewActionDescriptor extends Omit<McpActionDescriptor, "privacy" | "schemaSource" | "rolloutFlag"> {
573
+ access: McpActionAccessRequirements;
574
+ schemaSource: {
575
+ packageName: typeof MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE;
576
+ contractVersion: typeof FEEDBACK_REVIEW_WORKFLOW_CONTRACT_VERSION;
577
+ schemaNames: readonly WorkflowSchemaName[];
578
+ };
579
+ inputAdditionalProperties: false;
580
+ outputAdditionalProperties: false;
581
+ annotations: {
582
+ readOnlyHint: boolean;
583
+ destructiveHint: false;
584
+ idempotentHint: true;
585
+ openWorldHint: false;
586
+ };
587
+ /** Host must require explicit user direction for this named packet mutation. */
588
+ requiresExplicitUserIntent: boolean;
589
+ /** Host supplies this literal; never accept an action selected by input arguments. */
590
+ transitionAction?: FeedbackReviewAction;
591
+ }
592
+ /** Static contracts only. Existing feedback discovery and the default OAuth manifest do not include these tools. */
593
+ declare const MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS: {
594
+ listFeedbackReviewQueue: McpFeedbackReviewActionDescriptor;
595
+ getFeedbackReviewItem: McpFeedbackReviewActionDescriptor;
596
+ markFeedbackReviewed: McpFeedbackReviewActionDescriptor;
597
+ processFeedback: McpFeedbackReviewActionDescriptor;
598
+ reopenFeedback: McpFeedbackReviewActionDescriptor;
599
+ };
600
+ type McpFeedbackReviewToolName = keyof typeof MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS;
548
601
  declare const MCP_ADMIN_ACTIONS: readonly McpActionDescriptor[];
549
602
  declare function listMcpModelToolSummaries(): McpModelToolSummary[];
550
603
  declare function listMcpModelResourceTemplates(): readonly ModelMcpResourceTemplate[];
@@ -563,4 +616,4 @@ declare function buildMcpDiscoveryResponse(): McpDiscoveryResponse;
563
616
  declare function buildMcpSchemaResponse(): McpSchemaResponse;
564
617
  declare function buildMcpContextResponse(options: BuildMcpContextResponseOptions): McpContextResponse;
565
618
 
566
- export { type AiPluginManifest, type BuildMcpContextResponseOptions, ECONOMY_ADMIN_HISTORY_FLAG_ID, ECONOMY_FINANCE_OPERATIONS_VIEW_CAPABILITY, ECONOMY_OWNER_ADJUSTMENTS_FLAG_ID, MCP_ACCESS_SCOPE, MCP_ADMIN_ACTIONS, MCP_ADMIN_ANALYTICS_DIMENSIONS, MCP_ADMIN_ANALYTICS_FLAG_ID, MCP_ADMIN_ANALYTICS_METRICS, MCP_ADMIN_ANALYTICS_PRESETS, MCP_ADMIN_BASE_OAUTH_SCOPE, MCP_ADMIN_CONTEXT_SHAPE, MCP_ADMIN_CONTRACT_VERSION, MCP_ADMIN_ECONOMY_ADJUSTMENTS_FLAG_ID, MCP_ADMIN_ECONOMY_HISTORY_FLAG_ID, MCP_ADMIN_ECONOMY_READ_CAPABILITY, MCP_ADMIN_EXTENSION_RULES, MCP_ADMIN_FEEDBACK_ACTIONS, MCP_ADMIN_FEEDBACK_ALERT_WINDOWS, MCP_ADMIN_FEEDBACK_BUG_HEALTH_WINDOWS, MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS, MCP_ADMIN_FEEDBACK_FLAG_ID, MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED, MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH, MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE, MCP_ADMIN_FEEDBACK_PACKET_TYPES, MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS, MCP_ADMIN_FEEDBACK_PRIVACY_METADATA, MCP_ADMIN_FEEDBACK_PROCESSORS, MCP_ADMIN_FEEDBACK_READ_CAPABILITY, MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE, MCP_ADMIN_FEEDBACK_REPORT_TYPES, MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES, MCP_ADMIN_FEEDBACK_SATISFACTION_WINDOWS, MCP_ADMIN_FEEDBACK_SCHEMA_CONTRACT_VERSION, MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE, MCP_ADMIN_FEEDBACK_WINDOWS, MCP_ADMIN_FOUNDATION_DISABLED_CODE, MCP_ADMIN_FOUNDATION_ENV_VAR, MCP_ADMIN_FOUNDATION_FLAG_ID, MCP_ADMIN_LIVEOPS_FLAG_ID, MCP_ADMIN_MODEL_CAPABILITIES, MCP_ADMIN_MODEL_OAUTH_SCOPES, MCP_ADMIN_MODEL_REGISTRY_SOURCE, MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION, MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION, MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR, MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID, MCP_ADMIN_REGISTRY_SOURCE, MCP_ADMIN_TOKEN_ACTIVITY_SORTS, MCP_ADMIN_TOKEN_ACTIVITY_SOURCES, MCP_ADMIN_TOKEN_ACTIVITY_STATUSES, MCP_ADMIN_TOKEN_ACTIVITY_TYPES, MCP_ADMIN_TOKEN_WALLET_COMPONENTS, MCP_ADMIN_TOKEN_WALLET_SORTS, MCP_ADMIN_TOKEN_WALLET_STATUSES, MCP_ADMIN_USER_AGGREGATION_DIMENSIONS, MCP_ADMIN_USER_AGGREGATION_METRICS, MCP_ADMIN_USER_AGGREGATION_PRESETS, MCP_ASSET_CATALOG_CONFIRM_CAPABILITY, MCP_ASSET_CATALOG_REQUEST_CAPABILITY, MCP_ASSET_CATALOG_REVIEW_CAPABILITY, MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID, MCP_ASSET_PIPELINE_FLAG_ID, MCP_ASSET_PIPELINE_MANAGE_CAPABILITY, MCP_ASSET_PROCESSING_OPERATIONS, MCP_ASSET_PVOX_FLAG_ID, MCP_ASSET_REVIEW_KINDS, MCP_ASSET_SOURCE_ADAPTERS, MCP_ASSET_SOURCE_MANAGE_CAPABILITY, MCP_ASSET_SOURCE_TIERS, MCP_ECONOMY_FINANCE_ADJUST_CAPABILITY, MCP_ECONOMY_FINANCE_APPROVE_CAPABILITY, MCP_ECONOMY_FINANCE_VIEW_CAPABILITY, type McpActionAccessRequirements, type McpActionDescriptor, type McpActionDomain, type McpActionExecution, type McpActionFamilyDomain, type McpActionSummary, type McpActionVerification, type McpAdminContractDescriptionKey, type McpAuthenticatedUserContext, type McpCanonicalSchemaSource, type McpContextResponse, type McpDiscoveryResponse, type McpFeedbackPrivacyExclusion, type McpFeedbackPrivacyMetadata, type McpFieldShape, type McpModelResolutionContext, type McpModelToolExecution, type McpModelToolSchemaDescriptor, type McpModelToolSummary, type McpRolloutContext, type McpSchemaResponse, type McpSurfaceUrls, buildAiPluginManifest, buildMcpContextResponse, buildMcpDiscoveryResponse, buildMcpSchemaResponse, buildMcpSurfaceUrls, getMcpAdminContractDefaultTranslation, listMcpActionSummaries, listMcpModelResourceTemplates, listMcpModelToolSummaries, mcpAdminContractDescriptionKeys, mcpAdminContractsEnGbTranslations, mcpAdminContractsTranslations };
619
+ export { type AiPluginManifest, type BuildMcpContextResponseOptions, ECONOMY_ADMIN_HISTORY_FLAG_ID, ECONOMY_FINANCE_OPERATIONS_VIEW_CAPABILITY, ECONOMY_OWNER_ADJUSTMENTS_FLAG_ID, MCP_ACCESS_SCOPE, MCP_ADMIN_ACTIONS, MCP_ADMIN_ANALYTICS_DIMENSIONS, MCP_ADMIN_ANALYTICS_FLAG_ID, MCP_ADMIN_ANALYTICS_METRICS, MCP_ADMIN_ANALYTICS_PRESETS, MCP_ADMIN_BASE_OAUTH_SCOPE, MCP_ADMIN_CONTEXT_SHAPE, MCP_ADMIN_CONTRACT_VERSION, MCP_ADMIN_ECONOMY_ADJUSTMENTS_FLAG_ID, MCP_ADMIN_ECONOMY_HISTORY_FLAG_ID, MCP_ADMIN_ECONOMY_READ_CAPABILITY, MCP_ADMIN_EXTENSION_RULES, MCP_ADMIN_FEEDBACK_ACTIONS, MCP_ADMIN_FEEDBACK_ALERT_WINDOWS, MCP_ADMIN_FEEDBACK_BUG_HEALTH_WINDOWS, MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS, MCP_ADMIN_FEEDBACK_FLAG_ID, MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED, MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY, MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE, MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH, MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE, MCP_ADMIN_FEEDBACK_PACKET_TYPES, MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS, MCP_ADMIN_FEEDBACK_PRIVACY_METADATA, MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID, MCP_ADMIN_FEEDBACK_PROCESSORS, MCP_ADMIN_FEEDBACK_READ_CAPABILITY, MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE, MCP_ADMIN_FEEDBACK_REPORT_TYPES, MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES, MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS, MCP_ADMIN_FEEDBACK_REVIEW_HOST_DEFAULT_ENABLED, MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION, MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID, MCP_ADMIN_FEEDBACK_SATISFACTION_WINDOWS, MCP_ADMIN_FEEDBACK_SCHEMA_CONTRACT_VERSION, MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE, MCP_ADMIN_FEEDBACK_WINDOWS, MCP_ADMIN_FOUNDATION_DISABLED_CODE, MCP_ADMIN_FOUNDATION_ENV_VAR, MCP_ADMIN_FOUNDATION_FLAG_ID, MCP_ADMIN_LIVEOPS_FLAG_ID, MCP_ADMIN_MODEL_CAPABILITIES, MCP_ADMIN_MODEL_OAUTH_SCOPES, MCP_ADMIN_MODEL_REGISTRY_SOURCE, MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION, MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION, MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR, MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID, MCP_ADMIN_REGISTRY_SOURCE, MCP_ADMIN_TOKEN_ACTIVITY_SORTS, MCP_ADMIN_TOKEN_ACTIVITY_SOURCES, MCP_ADMIN_TOKEN_ACTIVITY_STATUSES, MCP_ADMIN_TOKEN_ACTIVITY_TYPES, MCP_ADMIN_TOKEN_WALLET_COMPONENTS, MCP_ADMIN_TOKEN_WALLET_SORTS, MCP_ADMIN_TOKEN_WALLET_STATUSES, MCP_ADMIN_USER_AGGREGATION_DIMENSIONS, MCP_ADMIN_USER_AGGREGATION_METRICS, MCP_ADMIN_USER_AGGREGATION_PRESETS, MCP_ASSET_CATALOG_CONFIRM_CAPABILITY, MCP_ASSET_CATALOG_REQUEST_CAPABILITY, MCP_ASSET_CATALOG_REVIEW_CAPABILITY, MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID, MCP_ASSET_PIPELINE_FLAG_ID, MCP_ASSET_PIPELINE_MANAGE_CAPABILITY, MCP_ASSET_PROCESSING_OPERATIONS, MCP_ASSET_PVOX_FLAG_ID, MCP_ASSET_REVIEW_KINDS, MCP_ASSET_SOURCE_ADAPTERS, MCP_ASSET_SOURCE_MANAGE_CAPABILITY, MCP_ASSET_SOURCE_TIERS, MCP_ECONOMY_FINANCE_ADJUST_CAPABILITY, MCP_ECONOMY_FINANCE_APPROVE_CAPABILITY, MCP_ECONOMY_FINANCE_VIEW_CAPABILITY, type McpActionAccessRequirements, type McpActionDescriptor, type McpActionDomain, type McpActionExecution, type McpActionFamilyDomain, type McpActionSummary, type McpActionVerification, type McpAdminContractDescriptionKey, type McpAuthenticatedUserContext, type McpCanonicalSchemaSource, type McpContextResponse, type McpDiscoveryResponse, type McpFeedbackPrivacyExclusion, type McpFeedbackPrivacyMetadata, type McpFeedbackReviewActionDescriptor, type McpFeedbackReviewToolName, type McpFieldShape, type McpModelResolutionContext, type McpModelToolExecution, type McpModelToolSchemaDescriptor, type McpModelToolSummary, type McpRolloutContext, type McpSchemaResponse, type McpSurfaceUrls, buildAiPluginManifest, buildMcpContextResponse, buildMcpDiscoveryResponse, buildMcpSchemaResponse, buildMcpSurfaceUrls, getMcpAdminContractDefaultTranslation, listMcpActionSummaries, listMcpModelResourceTemplates, listMcpModelToolSummaries, mcpAdminContractDescriptionKeys, mcpAdminContractsEnGbTranslations, mcpAdminContractsTranslations };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { FEEDBACK_REVIEW_WORKFLOW_CONTRACT_VERSION, FeedbackReviewAction } from '@plasius/schema';
1
2
  import { MODEL_RESOLUTION_CONTRACT_VERSION } from '@plasius/asset-contracts';
2
3
  import { MODEL_MCP_CONTRACT_VERSION, ASSET_MCP_PACKAGE, MODEL_MCP_UNIFIED_FEATURE_FLAG_ID, MODEL_MCP_PVOX_FEATURE_FLAG_ID, MODEL_MCP_EXTERNAL_HARVEST_FEATURE_FLAG_ID, MODEL_MCP_GENERATION_FEATURE_FLAG_ID, ModelMcpToolName, ModelMcpToolDefinition, ModelMcpResourceTemplate } from '@plasius/asset-mcp';
3
4
 
@@ -33,6 +34,11 @@ declare const mcpAdminContractsEnGbTranslations: {
33
34
  readonly "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.";
34
35
  readonly "mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.";
35
36
  readonly "mcpAdminContracts.action.getFeedbackGameReconstruction.description": "Read one clearly labelled safe in-game reconstruction manifest without captured pixels, narrative, reporter identity, or storage references.";
37
+ readonly "mcpAdminContracts.action.listFeedbackReviewQueue.description": "List a bounded actor-free review queue with effective filters and freshness. This does not change any item.";
38
+ readonly "mcpAdminContracts.action.getFeedbackReviewItem.description": "Read the actor-free workflow state and bounded transition history for one identified packet.";
39
+ readonly "mcpAdminContracts.action.markFeedbackReviewed.description": "Mark an unreviewed packet reviewed only on an explicit user request for that packet.";
40
+ readonly "mcpAdminContracts.action.processFeedback.description": "Record a closed outcome for a reviewed packet only on an explicit user request naming the packet and outcome.";
41
+ readonly "mcpAdminContracts.action.reopenFeedback.description": "Return a processed packet to reviewed, keeping history, only on an explicit user request to reopen that packet.";
36
42
  readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
37
43
  readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
38
44
  readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
@@ -103,6 +109,11 @@ declare const mcpAdminContractDescriptionKeys: {
103
109
  readonly actionGetFeedbackFreshness: "mcpAdminContracts.action.getFeedbackFreshness.description";
104
110
  readonly actionListFeedbackStructuredEntries: "mcpAdminContracts.action.listFeedbackStructuredEntries.description";
105
111
  readonly actionGetFeedbackGameReconstruction: "mcpAdminContracts.action.getFeedbackGameReconstruction.description";
112
+ readonly actionListFeedbackReviewQueue: "mcpAdminContracts.action.listFeedbackReviewQueue.description";
113
+ readonly actionGetFeedbackReviewItem: "mcpAdminContracts.action.getFeedbackReviewItem.description";
114
+ readonly actionMarkFeedbackReviewed: "mcpAdminContracts.action.markFeedbackReviewed.description";
115
+ readonly actionProcessFeedback: "mcpAdminContracts.action.processFeedback.description";
116
+ readonly actionReopenFeedback: "mcpAdminContracts.action.reopenFeedback.description";
106
117
  readonly actionSearchAssetCatalog: "mcpAdminContracts.action.searchAssetCatalog.description";
107
118
  readonly actionGetAssetManifest: "mcpAdminContracts.action.getAssetManifest.description";
108
119
  readonly actionRequestAsset: "mcpAdminContracts.action.requestAsset.description";
@@ -175,6 +186,11 @@ declare const mcpAdminContractsTranslations: {
175
186
  readonly "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.";
176
187
  readonly "mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.";
177
188
  readonly "mcpAdminContracts.action.getFeedbackGameReconstruction.description": "Read one clearly labelled safe in-game reconstruction manifest without captured pixels, narrative, reporter identity, or storage references.";
189
+ readonly "mcpAdminContracts.action.listFeedbackReviewQueue.description": "List a bounded actor-free review queue with effective filters and freshness. This does not change any item.";
190
+ readonly "mcpAdminContracts.action.getFeedbackReviewItem.description": "Read the actor-free workflow state and bounded transition history for one identified packet.";
191
+ readonly "mcpAdminContracts.action.markFeedbackReviewed.description": "Mark an unreviewed packet reviewed only on an explicit user request for that packet.";
192
+ readonly "mcpAdminContracts.action.processFeedback.description": "Record a closed outcome for a reviewed packet only on an explicit user request naming the packet and outcome.";
193
+ readonly "mcpAdminContracts.action.reopenFeedback.description": "Return a processed packet to reviewed, keeping history, only on an explicit user request to reopen that packet.";
178
194
  readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
179
195
  readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
180
196
  readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
@@ -545,6 +561,43 @@ declare const MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS: readonly ["last-24-hours", "last
545
561
  declare const MCP_ADMIN_FEEDBACK_ALERT_WINDOWS: readonly ["last-24-hours", "last-7-days"];
546
562
  declare const MCP_ADMIN_FEEDBACK_PRIVACY_METADATA: McpFeedbackPrivacyMetadata;
547
563
  declare const MCP_ADMIN_FEEDBACK_ACTIONS: readonly McpActionDescriptor[];
564
+ /** Both MCP hosts must opt in after enforcing the complete action access tuple. */
565
+ declare const MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID = "feedback.review-workflow.enabled";
566
+ declare const MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID = "feedback.processing.enabled";
567
+ declare const MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY = "admin.feedback.manage";
568
+ declare const MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE = "admin.feedback.manage";
569
+ declare const MCP_ADMIN_FEEDBACK_REVIEW_HOST_DEFAULT_ENABLED = false;
570
+ declare const MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION = "1.0.0";
571
+ type WorkflowSchemaName = "FeedbackReviewQueueQuerySchema" | "FeedbackReviewQueuePageSchema" | "FeedbackReviewItemDetailSchema" | "FeedbackReviewTransitionRequestSchema" | "FeedbackReviewWorkflowStateSchema";
572
+ interface McpFeedbackReviewActionDescriptor extends Omit<McpActionDescriptor, "privacy" | "schemaSource" | "rolloutFlag"> {
573
+ access: McpActionAccessRequirements;
574
+ schemaSource: {
575
+ packageName: typeof MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE;
576
+ contractVersion: typeof FEEDBACK_REVIEW_WORKFLOW_CONTRACT_VERSION;
577
+ schemaNames: readonly WorkflowSchemaName[];
578
+ };
579
+ inputAdditionalProperties: false;
580
+ outputAdditionalProperties: false;
581
+ annotations: {
582
+ readOnlyHint: boolean;
583
+ destructiveHint: false;
584
+ idempotentHint: true;
585
+ openWorldHint: false;
586
+ };
587
+ /** Host must require explicit user direction for this named packet mutation. */
588
+ requiresExplicitUserIntent: boolean;
589
+ /** Host supplies this literal; never accept an action selected by input arguments. */
590
+ transitionAction?: FeedbackReviewAction;
591
+ }
592
+ /** Static contracts only. Existing feedback discovery and the default OAuth manifest do not include these tools. */
593
+ declare const MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS: {
594
+ listFeedbackReviewQueue: McpFeedbackReviewActionDescriptor;
595
+ getFeedbackReviewItem: McpFeedbackReviewActionDescriptor;
596
+ markFeedbackReviewed: McpFeedbackReviewActionDescriptor;
597
+ processFeedback: McpFeedbackReviewActionDescriptor;
598
+ reopenFeedback: McpFeedbackReviewActionDescriptor;
599
+ };
600
+ type McpFeedbackReviewToolName = keyof typeof MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS;
548
601
  declare const MCP_ADMIN_ACTIONS: readonly McpActionDescriptor[];
549
602
  declare function listMcpModelToolSummaries(): McpModelToolSummary[];
550
603
  declare function listMcpModelResourceTemplates(): readonly ModelMcpResourceTemplate[];
@@ -563,4 +616,4 @@ declare function buildMcpDiscoveryResponse(): McpDiscoveryResponse;
563
616
  declare function buildMcpSchemaResponse(): McpSchemaResponse;
564
617
  declare function buildMcpContextResponse(options: BuildMcpContextResponseOptions): McpContextResponse;
565
618
 
566
- export { type AiPluginManifest, type BuildMcpContextResponseOptions, ECONOMY_ADMIN_HISTORY_FLAG_ID, ECONOMY_FINANCE_OPERATIONS_VIEW_CAPABILITY, ECONOMY_OWNER_ADJUSTMENTS_FLAG_ID, MCP_ACCESS_SCOPE, MCP_ADMIN_ACTIONS, MCP_ADMIN_ANALYTICS_DIMENSIONS, MCP_ADMIN_ANALYTICS_FLAG_ID, MCP_ADMIN_ANALYTICS_METRICS, MCP_ADMIN_ANALYTICS_PRESETS, MCP_ADMIN_BASE_OAUTH_SCOPE, MCP_ADMIN_CONTEXT_SHAPE, MCP_ADMIN_CONTRACT_VERSION, MCP_ADMIN_ECONOMY_ADJUSTMENTS_FLAG_ID, MCP_ADMIN_ECONOMY_HISTORY_FLAG_ID, MCP_ADMIN_ECONOMY_READ_CAPABILITY, MCP_ADMIN_EXTENSION_RULES, MCP_ADMIN_FEEDBACK_ACTIONS, MCP_ADMIN_FEEDBACK_ALERT_WINDOWS, MCP_ADMIN_FEEDBACK_BUG_HEALTH_WINDOWS, MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS, MCP_ADMIN_FEEDBACK_FLAG_ID, MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED, MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH, MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE, MCP_ADMIN_FEEDBACK_PACKET_TYPES, MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS, MCP_ADMIN_FEEDBACK_PRIVACY_METADATA, MCP_ADMIN_FEEDBACK_PROCESSORS, MCP_ADMIN_FEEDBACK_READ_CAPABILITY, MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE, MCP_ADMIN_FEEDBACK_REPORT_TYPES, MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES, MCP_ADMIN_FEEDBACK_SATISFACTION_WINDOWS, MCP_ADMIN_FEEDBACK_SCHEMA_CONTRACT_VERSION, MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE, MCP_ADMIN_FEEDBACK_WINDOWS, MCP_ADMIN_FOUNDATION_DISABLED_CODE, MCP_ADMIN_FOUNDATION_ENV_VAR, MCP_ADMIN_FOUNDATION_FLAG_ID, MCP_ADMIN_LIVEOPS_FLAG_ID, MCP_ADMIN_MODEL_CAPABILITIES, MCP_ADMIN_MODEL_OAUTH_SCOPES, MCP_ADMIN_MODEL_REGISTRY_SOURCE, MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION, MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION, MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR, MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID, MCP_ADMIN_REGISTRY_SOURCE, MCP_ADMIN_TOKEN_ACTIVITY_SORTS, MCP_ADMIN_TOKEN_ACTIVITY_SOURCES, MCP_ADMIN_TOKEN_ACTIVITY_STATUSES, MCP_ADMIN_TOKEN_ACTIVITY_TYPES, MCP_ADMIN_TOKEN_WALLET_COMPONENTS, MCP_ADMIN_TOKEN_WALLET_SORTS, MCP_ADMIN_TOKEN_WALLET_STATUSES, MCP_ADMIN_USER_AGGREGATION_DIMENSIONS, MCP_ADMIN_USER_AGGREGATION_METRICS, MCP_ADMIN_USER_AGGREGATION_PRESETS, MCP_ASSET_CATALOG_CONFIRM_CAPABILITY, MCP_ASSET_CATALOG_REQUEST_CAPABILITY, MCP_ASSET_CATALOG_REVIEW_CAPABILITY, MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID, MCP_ASSET_PIPELINE_FLAG_ID, MCP_ASSET_PIPELINE_MANAGE_CAPABILITY, MCP_ASSET_PROCESSING_OPERATIONS, MCP_ASSET_PVOX_FLAG_ID, MCP_ASSET_REVIEW_KINDS, MCP_ASSET_SOURCE_ADAPTERS, MCP_ASSET_SOURCE_MANAGE_CAPABILITY, MCP_ASSET_SOURCE_TIERS, MCP_ECONOMY_FINANCE_ADJUST_CAPABILITY, MCP_ECONOMY_FINANCE_APPROVE_CAPABILITY, MCP_ECONOMY_FINANCE_VIEW_CAPABILITY, type McpActionAccessRequirements, type McpActionDescriptor, type McpActionDomain, type McpActionExecution, type McpActionFamilyDomain, type McpActionSummary, type McpActionVerification, type McpAdminContractDescriptionKey, type McpAuthenticatedUserContext, type McpCanonicalSchemaSource, type McpContextResponse, type McpDiscoveryResponse, type McpFeedbackPrivacyExclusion, type McpFeedbackPrivacyMetadata, type McpFieldShape, type McpModelResolutionContext, type McpModelToolExecution, type McpModelToolSchemaDescriptor, type McpModelToolSummary, type McpRolloutContext, type McpSchemaResponse, type McpSurfaceUrls, buildAiPluginManifest, buildMcpContextResponse, buildMcpDiscoveryResponse, buildMcpSchemaResponse, buildMcpSurfaceUrls, getMcpAdminContractDefaultTranslation, listMcpActionSummaries, listMcpModelResourceTemplates, listMcpModelToolSummaries, mcpAdminContractDescriptionKeys, mcpAdminContractsEnGbTranslations, mcpAdminContractsTranslations };
619
+ export { type AiPluginManifest, type BuildMcpContextResponseOptions, ECONOMY_ADMIN_HISTORY_FLAG_ID, ECONOMY_FINANCE_OPERATIONS_VIEW_CAPABILITY, ECONOMY_OWNER_ADJUSTMENTS_FLAG_ID, MCP_ACCESS_SCOPE, MCP_ADMIN_ACTIONS, MCP_ADMIN_ANALYTICS_DIMENSIONS, MCP_ADMIN_ANALYTICS_FLAG_ID, MCP_ADMIN_ANALYTICS_METRICS, MCP_ADMIN_ANALYTICS_PRESETS, MCP_ADMIN_BASE_OAUTH_SCOPE, MCP_ADMIN_CONTEXT_SHAPE, MCP_ADMIN_CONTRACT_VERSION, MCP_ADMIN_ECONOMY_ADJUSTMENTS_FLAG_ID, MCP_ADMIN_ECONOMY_HISTORY_FLAG_ID, MCP_ADMIN_ECONOMY_READ_CAPABILITY, MCP_ADMIN_EXTENSION_RULES, MCP_ADMIN_FEEDBACK_ACTIONS, MCP_ADMIN_FEEDBACK_ALERT_WINDOWS, MCP_ADMIN_FEEDBACK_BUG_HEALTH_WINDOWS, MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS, MCP_ADMIN_FEEDBACK_FLAG_ID, MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED, MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY, MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE, MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH, MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE, MCP_ADMIN_FEEDBACK_PACKET_TYPES, MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS, MCP_ADMIN_FEEDBACK_PRIVACY_METADATA, MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID, MCP_ADMIN_FEEDBACK_PROCESSORS, MCP_ADMIN_FEEDBACK_READ_CAPABILITY, MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE, MCP_ADMIN_FEEDBACK_REPORT_TYPES, MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES, MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS, MCP_ADMIN_FEEDBACK_REVIEW_HOST_DEFAULT_ENABLED, MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION, MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID, MCP_ADMIN_FEEDBACK_SATISFACTION_WINDOWS, MCP_ADMIN_FEEDBACK_SCHEMA_CONTRACT_VERSION, MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE, MCP_ADMIN_FEEDBACK_WINDOWS, MCP_ADMIN_FOUNDATION_DISABLED_CODE, MCP_ADMIN_FOUNDATION_ENV_VAR, MCP_ADMIN_FOUNDATION_FLAG_ID, MCP_ADMIN_LIVEOPS_FLAG_ID, MCP_ADMIN_MODEL_CAPABILITIES, MCP_ADMIN_MODEL_OAUTH_SCOPES, MCP_ADMIN_MODEL_REGISTRY_SOURCE, MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION, MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION, MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR, MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID, MCP_ADMIN_REGISTRY_SOURCE, MCP_ADMIN_TOKEN_ACTIVITY_SORTS, MCP_ADMIN_TOKEN_ACTIVITY_SOURCES, MCP_ADMIN_TOKEN_ACTIVITY_STATUSES, MCP_ADMIN_TOKEN_ACTIVITY_TYPES, MCP_ADMIN_TOKEN_WALLET_COMPONENTS, MCP_ADMIN_TOKEN_WALLET_SORTS, MCP_ADMIN_TOKEN_WALLET_STATUSES, MCP_ADMIN_USER_AGGREGATION_DIMENSIONS, MCP_ADMIN_USER_AGGREGATION_METRICS, MCP_ADMIN_USER_AGGREGATION_PRESETS, MCP_ASSET_CATALOG_CONFIRM_CAPABILITY, MCP_ASSET_CATALOG_REQUEST_CAPABILITY, MCP_ASSET_CATALOG_REVIEW_CAPABILITY, MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID, MCP_ASSET_PIPELINE_FLAG_ID, MCP_ASSET_PIPELINE_MANAGE_CAPABILITY, MCP_ASSET_PROCESSING_OPERATIONS, MCP_ASSET_PVOX_FLAG_ID, MCP_ASSET_REVIEW_KINDS, MCP_ASSET_SOURCE_ADAPTERS, MCP_ASSET_SOURCE_MANAGE_CAPABILITY, MCP_ASSET_SOURCE_TIERS, MCP_ECONOMY_FINANCE_ADJUST_CAPABILITY, MCP_ECONOMY_FINANCE_APPROVE_CAPABILITY, MCP_ECONOMY_FINANCE_VIEW_CAPABILITY, type McpActionAccessRequirements, type McpActionDescriptor, type McpActionDomain, type McpActionExecution, type McpActionFamilyDomain, type McpActionSummary, type McpActionVerification, type McpAdminContractDescriptionKey, type McpAuthenticatedUserContext, type McpCanonicalSchemaSource, type McpContextResponse, type McpDiscoveryResponse, type McpFeedbackPrivacyExclusion, type McpFeedbackPrivacyMetadata, type McpFeedbackReviewActionDescriptor, type McpFeedbackReviewToolName, type McpFieldShape, type McpModelResolutionContext, type McpModelToolExecution, type McpModelToolSchemaDescriptor, type McpModelToolSummary, type McpRolloutContext, type McpSchemaResponse, type McpSurfaceUrls, buildAiPluginManifest, buildMcpContextResponse, buildMcpDiscoveryResponse, buildMcpSchemaResponse, buildMcpSurfaceUrls, getMcpAdminContractDefaultTranslation, listMcpActionSummaries, listMcpModelResourceTemplates, listMcpModelToolSummaries, mcpAdminContractDescriptionKeys, mcpAdminContractsEnGbTranslations, mcpAdminContractsTranslations };
package/dist/index.js CHANGED
@@ -9,6 +9,11 @@ import {
9
9
  FEEDBACK_GAME_FEATURE_IDS,
10
10
  FEEDBACK_INTENT_IDS,
11
11
  FEEDBACK_PERSISTABLE_ISSUE_TYPES,
12
+ FEEDBACK_REVIEW_ACTIONS,
13
+ FEEDBACK_REVIEW_KINDS,
14
+ FEEDBACK_REVIEW_OUTCOMES,
15
+ FEEDBACK_REVIEW_STATUSES,
16
+ FEEDBACK_REVIEW_WORKFLOW_CONTRACT_VERSION,
12
17
  FEEDBACK_RENDERER_BUCKETS,
13
18
  FEEDBACK_SENTIMENT_BUCKETS,
14
19
  FEEDBACK_SURFACE_IDS,
@@ -72,6 +77,11 @@ var mcpAdminContractsEnGbTranslations = {
72
77
  "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.",
73
78
  "mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.",
74
79
  "mcpAdminContracts.action.getFeedbackGameReconstruction.description": "Read one clearly labelled safe in-game reconstruction manifest without captured pixels, narrative, reporter identity, or storage references.",
80
+ "mcpAdminContracts.action.listFeedbackReviewQueue.description": "List a bounded actor-free review queue with effective filters and freshness. This does not change any item.",
81
+ "mcpAdminContracts.action.getFeedbackReviewItem.description": "Read the actor-free workflow state and bounded transition history for one identified packet.",
82
+ "mcpAdminContracts.action.markFeedbackReviewed.description": "Mark an unreviewed packet reviewed only on an explicit user request for that packet.",
83
+ "mcpAdminContracts.action.processFeedback.description": "Record a closed outcome for a reviewed packet only on an explicit user request naming the packet and outcome.",
84
+ "mcpAdminContracts.action.reopenFeedback.description": "Return a processed packet to reviewed, keeping history, only on an explicit user request to reopen that packet.",
75
85
  "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.",
76
86
  "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.",
77
87
  "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.",
@@ -143,6 +153,11 @@ var mcpAdminContractDescriptionKeys = {
143
153
  actionGetFeedbackFreshness: "mcpAdminContracts.action.getFeedbackFreshness.description",
144
154
  actionListFeedbackStructuredEntries: "mcpAdminContracts.action.listFeedbackStructuredEntries.description",
145
155
  actionGetFeedbackGameReconstruction: "mcpAdminContracts.action.getFeedbackGameReconstruction.description",
156
+ actionListFeedbackReviewQueue: "mcpAdminContracts.action.listFeedbackReviewQueue.description",
157
+ actionGetFeedbackReviewItem: "mcpAdminContracts.action.getFeedbackReviewItem.description",
158
+ actionMarkFeedbackReviewed: "mcpAdminContracts.action.markFeedbackReviewed.description",
159
+ actionProcessFeedback: "mcpAdminContracts.action.processFeedback.description",
160
+ actionReopenFeedback: "mcpAdminContracts.action.reopenFeedback.description",
146
161
  actionSearchAssetCatalog: "mcpAdminContracts.action.searchAssetCatalog.description",
147
162
  actionGetAssetManifest: "mcpAdminContracts.action.getAssetManifest.description",
148
163
  actionRequestAsset: "mcpAdminContracts.action.requestAsset.description",
@@ -1851,6 +1866,205 @@ var MCP_ADMIN_FEEDBACK_ACTIONS = deepFreeze([
1851
1866
  }
1852
1867
  }
1853
1868
  ]);
1869
+ var MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID = "feedback.review-workflow.enabled";
1870
+ var MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID = "feedback.processing.enabled";
1871
+ var MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY = "admin.feedback.manage";
1872
+ var MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE = MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY;
1873
+ var MCP_ADMIN_FEEDBACK_REVIEW_HOST_DEFAULT_ENABLED = false;
1874
+ var MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION = FEEDBACK_REVIEW_WORKFLOW_CONTRACT_VERSION;
1875
+ var reviewReadFlags = [MCP_ADMIN_FEEDBACK_FLAG_ID, MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID];
1876
+ var reviewMutationAccess = {
1877
+ oauthScopes: [...MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES, MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE],
1878
+ capabilities: [MCP_ADMIN_FEEDBACK_READ_CAPABILITY, MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY],
1879
+ rolloutFlags: [...reviewReadFlags, MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID],
1880
+ mode: "mutation",
1881
+ identityResolution: "not-available"
1882
+ };
1883
+ var reviewKind = stringField("Feedback packet kind.", { enum: FEEDBACK_REVIEW_KINDS, required: true });
1884
+ var reviewStatus = stringField("Workflow status.", { enum: FEEDBACK_REVIEW_STATUSES });
1885
+ var reviewOutcome = stringField("Closed processing outcome.", { enum: FEEDBACK_REVIEW_OUTCOMES, required: false });
1886
+ var reviewPacketId = canonicalUuidV4Field("Exact opaque feedback packet UUIDv4.");
1887
+ var reviewTimestamp = (description) => ({
1888
+ ...canonicalDateTimeField(description),
1889
+ pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1890
+ });
1891
+ var reviewCursor = stringField("Opaque, filter-bound cursor issued by the service.", {
1892
+ required: false,
1893
+ minLength: 1,
1894
+ maxLength: 4096,
1895
+ pattern: "^[A-Za-z0-9_-]+$"
1896
+ });
1897
+ var reviewRevision = integerField("Current persisted workflow revision.", { minimum: 1, maximum: Number.MAX_SAFE_INTEGER });
1898
+ var reviewFilters = {
1899
+ surfaceId: stringField("Closed bug surface.", { enum: FEEDBACK_SURFACE_IDS, required: false }),
1900
+ issueType: stringField("Closed persisted bug category.", { enum: FEEDBACK_PERSISTABLE_ISSUE_TYPES, required: false }),
1901
+ severity: integerField("Bug severity; bugs only.", { minimum: 1, maximum: 5, required: false }),
1902
+ satisfaction: integerField("Satisfaction rating; reviews only.", { minimum: 1, maximum: 5, required: false })
1903
+ };
1904
+ var reviewQueueFields = {
1905
+ kind: reviewKind,
1906
+ status: { ...reviewStatus, required: false },
1907
+ outcome: reviewOutcome,
1908
+ from: reviewTimestamp("Inclusive canonical UTC lower bound."),
1909
+ to: reviewTimestamp("Exclusive canonical UTC upper bound."),
1910
+ limit: integerField("Maximum page size.", { minimum: 1, maximum: 100 }),
1911
+ ...reviewFilters,
1912
+ cursor: reviewCursor
1913
+ };
1914
+ var reviewStateField = feedbackClosedObjectField("Actor-free workflow state projection.", {
1915
+ packetId: reviewPacketId,
1916
+ kind: reviewKind,
1917
+ acceptedAt: reviewTimestamp("Original server acceptance time."),
1918
+ expiresAt: reviewTimestamp("Original packet expiry."),
1919
+ updatedAt: reviewTimestamp("Server time of the latest transition or initial acceptance."),
1920
+ revision: reviewRevision,
1921
+ status: reviewStatus,
1922
+ outcome: reviewOutcome,
1923
+ ...reviewFilters
1924
+ });
1925
+ var reviewEventField = feedbackClosedObjectField("Actor-free immutable history event.", {
1926
+ packetId: reviewPacketId,
1927
+ kind: reviewKind,
1928
+ acceptedAt: reviewTimestamp("Original server acceptance time."),
1929
+ expiresAt: reviewTimestamp("Original packet expiry."),
1930
+ occurredAt: reviewTimestamp("Server time of the transition."),
1931
+ revision: { ...reviewRevision, minimum: 2 },
1932
+ action: stringField("Explicit transition action.", { enum: FEEDBACK_REVIEW_ACTIONS }),
1933
+ fromStatus: reviewStatus,
1934
+ toStatus: reviewStatus,
1935
+ outcome: reviewOutcome
1936
+ });
1937
+ var reviewTarget = {
1938
+ kind: reviewKind,
1939
+ packetId: { ...reviewPacketId, required: true }
1940
+ };
1941
+ function reviewAction(name, descriptionKey, input, output, execution, schemaNames, transitionAction) {
1942
+ const readOnly = transitionAction === void 0;
1943
+ const access = readOnly ? { ...feedbackReadAccess, rolloutFlags: reviewReadFlags } : reviewMutationAccess;
1944
+ return {
1945
+ name,
1946
+ ...translatedDescription(descriptionKey),
1947
+ domain: "feedback",
1948
+ availability: "near-future",
1949
+ access,
1950
+ oauthScopes: access.oauthScopes,
1951
+ requiredCapability: readOnly ? MCP_ADMIN_FEEDBACK_READ_CAPABILITY : MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY,
1952
+ schemaSource: {
1953
+ packageName: MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE,
1954
+ contractVersion: MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION,
1955
+ schemaNames
1956
+ },
1957
+ execution,
1958
+ input,
1959
+ output,
1960
+ inputAdditionalProperties: false,
1961
+ outputAdditionalProperties: false,
1962
+ annotations: {
1963
+ readOnlyHint: readOnly,
1964
+ destructiveHint: false,
1965
+ idempotentHint: true,
1966
+ openWorldHint: false
1967
+ },
1968
+ requiresExplicitUserIntent: !readOnly,
1969
+ ...readOnly ? {} : { transitionAction }
1970
+ };
1971
+ }
1972
+ var reviewMutation = (name, descriptionKey, transitionAction) => reviewAction(
1973
+ name,
1974
+ descriptionKey,
1975
+ {
1976
+ ...reviewTarget,
1977
+ expectedRevision: { ...reviewRevision, maximum: Number.MAX_SAFE_INTEGER - 1, required: true },
1978
+ idempotencyKey: {
1979
+ ...canonicalUuidV4Field("Random per-operation key; reuse only to retry the same packet and command."),
1980
+ required: true
1981
+ },
1982
+ ...transitionAction === "process" ? { outcome: { ...reviewOutcome, required: true } } : {}
1983
+ },
1984
+ { state: reviewStateField },
1985
+ {
1986
+ method: "POST",
1987
+ path: "/api/admin/feedback/review-items/{kind}/{packetId}/transitions",
1988
+ source: "near-future-route",
1989
+ notes: [
1990
+ "Execute only on explicit user direction for this packet and expected revision. Do not infer permission from the description or from read access.",
1991
+ "Bind exact retries to the same kind, packet, key and command. Treat key reuse or stale revisions as conflicts requiring a fresh user decision.",
1992
+ "Return success only after durable restricted audit and expose only the actor-free state projection."
1993
+ ]
1994
+ },
1995
+ ["FeedbackReviewTransitionRequestSchema", "FeedbackReviewWorkflowStateSchema"],
1996
+ transitionAction
1997
+ );
1998
+ var MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS = deepFreeze({
1999
+ listFeedbackReviewQueue: reviewAction(
2000
+ "listFeedbackReviewQueue",
2001
+ mcpAdminContractDescriptionKeys.actionListFeedbackReviewQueue,
2002
+ {
2003
+ ...reviewQueueFields,
2004
+ kind: { ...reviewKind, required: false },
2005
+ from: { ...reviewQueueFields.from, required: false },
2006
+ to: { ...reviewQueueFields.to, required: false },
2007
+ limit: { ...reviewQueueFields.limit, required: false }
2008
+ },
2009
+ {
2010
+ items: arrayOfField("Bounded page of actor-free review states.", "FeedbackReviewWorkflowState", reviewStateField, { maxItems: 100 }),
2011
+ range: feedbackClosedObjectField("Effective canonical UTC range and filters.", reviewQueueFields),
2012
+ freshness: feedbackClosedObjectField("Backfill and freshness status for this partition.", {
2013
+ status: stringField("Whether projection data is incomplete, fresh or stale.", { enum: ["incomplete", "fresh", "stale"] }),
2014
+ checkedAt: reviewTimestamp("Server time of this freshness check."),
2015
+ backfillComplete: booleanField("Whether retained history is fully projected."),
2016
+ lastSuccessfulAt: { ...reviewTimestamp("Most recent successful projection."), required: false }
2017
+ }),
2018
+ nextCursor: reviewCursor
2019
+ },
2020
+ {
2021
+ method: "GET",
2022
+ path: "/api/admin/feedback/review-queue",
2023
+ source: "near-future-route",
2024
+ notes: [
2025
+ "Default to unreviewed bugs in the previous 30 days; if either explicit timestamp is supplied require both. Validate the effective query against the canonical schema.",
2026
+ "Require a sealed cursor bound to the effective filters. Surface incomplete and stale data explicitly; reads never transition items."
2027
+ ]
2028
+ },
2029
+ ["FeedbackReviewQueueQuerySchema", "FeedbackReviewQueuePageSchema"]
2030
+ ),
2031
+ getFeedbackReviewItem: reviewAction(
2032
+ "getFeedbackReviewItem",
2033
+ mcpAdminContractDescriptionKeys.actionGetFeedbackReviewItem,
2034
+ { ...reviewTarget, historyCursor: reviewCursor },
2035
+ {
2036
+ state: reviewStateField,
2037
+ history: feedbackClosedObjectField("Bounded actor-free transition history for this packet.", {
2038
+ packetId: reviewPacketId,
2039
+ kind: reviewKind,
2040
+ events: arrayOfField("Ascending immutable history events.", "FeedbackReviewTransitionEvent", reviewEventField, { maxItems: 25 }),
2041
+ nextCursor: reviewCursor
2042
+ })
2043
+ },
2044
+ {
2045
+ method: "GET",
2046
+ path: "/api/admin/feedback/review-items/{kind}/{packetId}",
2047
+ source: "near-future-route",
2048
+ notes: ["Use an opaque packet UUID and a sealed history cursor bound to the packet. Never return audit or storage metadata."]
2049
+ },
2050
+ ["FeedbackReviewItemDetailSchema"]
2051
+ ),
2052
+ markFeedbackReviewed: reviewMutation(
2053
+ "markFeedbackReviewed",
2054
+ mcpAdminContractDescriptionKeys.actionMarkFeedbackReviewed,
2055
+ "mark-reviewed"
2056
+ ),
2057
+ processFeedback: reviewMutation(
2058
+ "processFeedback",
2059
+ mcpAdminContractDescriptionKeys.actionProcessFeedback,
2060
+ "process"
2061
+ ),
2062
+ reopenFeedback: reviewMutation(
2063
+ "reopenFeedback",
2064
+ mcpAdminContractDescriptionKeys.actionReopenFeedback,
2065
+ "reopen"
2066
+ )
2067
+ });
1854
2068
  var MCP_ADMIN_ACTIONS = [
1855
2069
  {
1856
2070
  name: "listFeatureFlags",
@@ -3938,16 +4152,23 @@ export {
3938
4152
  MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS,
3939
4153
  MCP_ADMIN_FEEDBACK_FLAG_ID,
3940
4154
  MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED,
4155
+ MCP_ADMIN_FEEDBACK_MANAGE_CAPABILITY,
4156
+ MCP_ADMIN_FEEDBACK_MANAGE_OAUTH_SCOPE,
3941
4157
  MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH,
3942
4158
  MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE,
3943
4159
  MCP_ADMIN_FEEDBACK_PACKET_TYPES,
3944
4160
  MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS,
3945
4161
  MCP_ADMIN_FEEDBACK_PRIVACY_METADATA,
4162
+ MCP_ADMIN_FEEDBACK_PROCESSING_FLAG_ID,
3946
4163
  MCP_ADMIN_FEEDBACK_PROCESSORS,
3947
4164
  MCP_ADMIN_FEEDBACK_READ_CAPABILITY,
3948
4165
  MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE,
3949
4166
  MCP_ADMIN_FEEDBACK_REPORT_TYPES,
3950
4167
  MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES,
4168
+ MCP_ADMIN_FEEDBACK_REVIEW_ACTIONS,
4169
+ MCP_ADMIN_FEEDBACK_REVIEW_HOST_DEFAULT_ENABLED,
4170
+ MCP_ADMIN_FEEDBACK_REVIEW_SCHEMA_CONTRACT_VERSION,
4171
+ MCP_ADMIN_FEEDBACK_REVIEW_WORKFLOW_FLAG_ID,
3951
4172
  MCP_ADMIN_FEEDBACK_SATISFACTION_WINDOWS,
3952
4173
  MCP_ADMIN_FEEDBACK_SCHEMA_CONTRACT_VERSION,
3953
4174
  MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE,