-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.definition.json
More file actions
209 lines (209 loc) · 6.41 KB
/
Copy pathmodule.definition.json
File metadata and controls
209 lines (209 loc) · 6.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
{
"contract_version": "1.0.0",
"module_key": "mfe-internal-operations",
"provider": "mfe",
"component_type": "mfe.internal.operations",
"module_version": "0.1.0",
"kind": "mfe",
"display_name": "Internal Operations MFE",
"name": "Internal Operations MFE",
"description": "Internal Operations MFE for module registry and auth-gateway app management.",
"targets": [
"web"
],
"execution": {
"mode": "inline",
"preload": "lazy",
"entry": {
"web_package": "dist/example-mfe.js",
"export_name": "createModule"
}
},
"io": {
"slots_in": [
"main"
],
"slots_out": [],
"props_schema": {
"type": "object",
"title": "Internal Operations Module Props",
"description": "Runtime configuration for module registry browsing and publish/promotion workflows.",
"additionalProperties": false,
"properties": {
"moduleRegistry": {
"type": "object",
"title": "Module Registry Connection",
"description": "Configuration for the module-registry service that this MFE talks to.",
"additionalProperties": false,
"properties": {
"baseUrl": {
"type": "string",
"title": "Registry Base URL",
"format": "uri",
"description": "Base URL for the module registry service."
},
"defaultChannel": {
"type": "string",
"title": "Default Channel Filter",
"description": "Default channel filter used when browsing modules.",
"enum": [
"all",
"preview",
"prod"
],
"default": "all"
},
"moduleListPath": {
"type": "string",
"title": "List Modules Path",
"description": "Path used to list modules. It receives query params such as `q`, `channel`, and `limit`.",
"default": "/api/modules"
},
"moduleDetailsPath": {
"type": "string",
"title": "Module Details Path",
"description": "Template path for module detail lookup; replace `{moduleKey}` with an encoded module key.",
"default": "/api/modules/{moduleKey}"
},
"publishPath": {
"type": "string",
"title": "Publish Endpoint Path",
"description": "Endpoint for POSTing new module versions.",
"default": "/v1/modules/publish"
},
"promotePath": {
"type": "string",
"title": "Promote Endpoint Path",
"description": "Endpoint for POSTing module promotion requests.",
"default": "/v1/modules/promote"
},
"requestTimeoutMs": {
"type": "integer",
"title": "Request Timeout (ms)",
"description": "Timeout for registry network requests.",
"minimum": 1000,
"maximum": 120000,
"default": 30000
},
"moduleListLimit": {
"type": "integer",
"title": "Module List Limit",
"description": "Default limit used when loading module catalog pages.",
"minimum": 1,
"maximum": 1000,
"default": 250
},
"authAppListLimit": {
"type": "integer",
"title": "Auth App List Limit",
"description": "Default limit used when loading auth app catalog pages.",
"minimum": 1,
"maximum": 1000,
"default": 500
}
},
"required": [
"baseUrl",
"defaultChannel",
"moduleListPath",
"moduleDetailsPath",
"publishPath",
"promotePath"
]
},
"authGateway": {
"type": "object",
"title": "Auth Gateway Service",
"description": "Configuration for the separate auth-gateway backend used by this MFE.",
"additionalProperties": false,
"properties": {
"baseUrl": {
"type": "string",
"title": "Auth Gateway Base URL",
"format": "uri",
"description": "Base URL for the auth-gateway service."
},
"appsPath": {
"type": "string",
"title": "Auth Gateway Apps Path",
"description": "Path used to list and inspect auth-gateway apps.",
"default": "/api/auth/apps"
},
"appPath": {
"type": "string",
"title": "Auth App Details Path",
"description": "Template path for loading a single auth app by slug.",
"default": "/api/auth/apps/{slug}"
},
"upsertPath": {
"type": "string",
"title": "Auth App Upsert Path",
"description": "Endpoint used to create or update auth-gateway app records.",
"default": "/v1/auth/apps/upsert"
}
}
}
},
"required": [
"moduleRegistry"
]
},
"events_out": [],
"commands_in": []
},
"async": {
"enabled": false,
"mode": "none",
"request": {
"supported": false,
"default_timeout_ms": 30000,
"retry": {
"max_attempts": 2,
"initial_backoff_ms": 250,
"max_backoff_ms": 2000,
"jitter": true
}
},
"stream": {
"supported": false,
"transport": "none",
"endpoint_ref": "GRAPHQL_STREAM_ENDPOINT",
"auth_mode": "inherit",
"reconnect": {
"max_attempts": 10,
"initial_backoff_ms": 500,
"max_backoff_ms": 10000,
"jitter": true
}
},
"queue": {
"supported": false,
"max_inflight": 64,
"drop_policy": "backpressure",
"ordering_key": "instance_id"
}
},
"capabilities": {
"network": true,
"storage": false,
"navigation": false,
"sensors": false,
"notifications": false,
"background_tasks": false
},
"lifecycle": {
"hooks": [
"init",
"mount",
"update",
"handleCommand",
"unmount"
],
"supports_hydration": true,
"supports_suspend": false
},
"compatibility": {
"min_host_contract_version": "1.0.0",
"breaking_change_policy": "semver-major"
}
}