@kuafucloud/data 0.0.0-stage → 0.1.1-alpha.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/admin/admin/extension.zip +0 -0
- package/dist/admin/index.d.ts +2 -0
- package/dist/admin/index.js +2 -0
- package/dist/admin/meta/admin.json +74 -0
- package/dist/admin/meta/extension-manifest.json +298 -0
- package/dist/facade/index.d.ts +272 -0
- package/dist/facade/index.js +11 -0
- package/dist/public/index.js +78 -0
- package/dist/public/runtime-services/core/index.js +334 -0
- package/dist/runtime-services/app/index.js +341 -0
- package/dist/runtime-services/app/service-module.config.json +16 -0
- package/dist/runtime-services/app-simulator/index.js +341 -0
- package/dist/runtime-services/app-simulator/service-module.config.json +12 -0
- package/dist/runtime-services/mini-program/index.js +341 -0
- package/dist/runtime-services/mini-program/service-module.config.json +12 -0
- package/dist/runtime-services/mini-program-simulator/index.js +341 -0
- package/dist/runtime-services/mini-program-simulator/service-module.config.json +12 -0
- package/dist/runtime-services/site/index.js +341 -0
- package/dist/runtime-services/site/service-module.config.json +12 -0
- package/dist/simulation/artifact/meta/database.json +72 -0
- package/dist/simulation/artifact/meta/manifest.json +286 -0
- package/dist/simulation/artifact/meta/permissions.json +86 -0
- package/dist/simulation/artifact/meta/runtime-meta.json +29 -0
- package/dist/simulation/artifact/meta/schema.json +70 -0
- package/dist/simulation/artifact/server/worker/index.js +39 -0
- package/dist/simulation/artifact/server/worker/monitoring-contract.json +7 -0
- package/dist/simulation/index.d.ts +1 -0
- package/dist/simulation/index.js +1 -0
- package/dist/types/client/index.d.ts +87 -0
- package/dist/types/runtime-services/app/index.d.ts +2 -0
- package/dist/types/runtime-services/app-simulator/index.d.ts +2 -0
- package/dist/types/runtime-services/core/index.d.ts +73 -0
- package/dist/types/runtime-services/mini-program/index.d.ts +2 -0
- package/dist/types/runtime-services/mini-program-simulator/index.d.ts +2 -0
- package/dist/types/runtime-services/site/index.d.ts +2 -0
- package/extension-manifest.json +265 -0
- package/package.json +99 -4
- package/README.md +0 -3
|
Binary file
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 3,
|
|
3
|
+
"extensionId": "data",
|
|
4
|
+
"availableLocales": [
|
|
5
|
+
"zh-CN",
|
|
6
|
+
"en-US",
|
|
7
|
+
"ja-JP",
|
|
8
|
+
"fr-FR"
|
|
9
|
+
],
|
|
10
|
+
"menu": [
|
|
11
|
+
{
|
|
12
|
+
"kind": "page",
|
|
13
|
+
"key": "/overview",
|
|
14
|
+
"label": {
|
|
15
|
+
"id": "admin.pages.overview.name",
|
|
16
|
+
"defaultMessage": "概览"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"kind": "page",
|
|
21
|
+
"key": "/insights",
|
|
22
|
+
"label": {
|
|
23
|
+
"id": "admin.pages.insights.name",
|
|
24
|
+
"defaultMessage": "分析"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"kind": "page",
|
|
29
|
+
"key": "/events",
|
|
30
|
+
"label": {
|
|
31
|
+
"id": "admin.pages.events.name",
|
|
32
|
+
"defaultMessage": "事件"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"kind": "page",
|
|
37
|
+
"key": "/experiments",
|
|
38
|
+
"label": {
|
|
39
|
+
"id": "admin.pages.experiments.name",
|
|
40
|
+
"defaultMessage": "实验"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"pages": [
|
|
45
|
+
{
|
|
46
|
+
"key": "/events",
|
|
47
|
+
"title": {
|
|
48
|
+
"id": "admin.pages.events.name",
|
|
49
|
+
"defaultMessage": "事件"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"key": "/experiments",
|
|
54
|
+
"title": {
|
|
55
|
+
"id": "admin.pages.experiments.name",
|
|
56
|
+
"defaultMessage": "实验"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"key": "/overview",
|
|
61
|
+
"title": {
|
|
62
|
+
"id": "admin.pages.overview.name",
|
|
63
|
+
"defaultMessage": "概览"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"key": "/insights",
|
|
68
|
+
"title": {
|
|
69
|
+
"id": "admin.pages.insights.name",
|
|
70
|
+
"defaultMessage": "分析"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"manifest": {
|
|
4
|
+
"extensionId": "data",
|
|
5
|
+
"version": "0.1.1-alpha.1",
|
|
6
|
+
"compatibility": {
|
|
7
|
+
"consoleHostSchemaVersion": 48
|
|
8
|
+
},
|
|
9
|
+
"archive": {
|
|
10
|
+
"path": "extension.zip",
|
|
11
|
+
"sha256": "cfe39933cdda8ce7c3dd9f3815ac56d30fae31acbe1aeb7d210e025f24f5c773",
|
|
12
|
+
"size": 288626,
|
|
13
|
+
"format": "zip32-deflate"
|
|
14
|
+
},
|
|
15
|
+
"navigation": {
|
|
16
|
+
"displayName": "数据分析",
|
|
17
|
+
"icon": "IconApps",
|
|
18
|
+
"menu": [
|
|
19
|
+
{
|
|
20
|
+
"kind": "page",
|
|
21
|
+
"key": "/overview",
|
|
22
|
+
"label": {
|
|
23
|
+
"id": "admin.pages.overview.name",
|
|
24
|
+
"defaultMessage": "概览"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"kind": "page",
|
|
29
|
+
"key": "/insights",
|
|
30
|
+
"label": {
|
|
31
|
+
"id": "admin.pages.insights.name",
|
|
32
|
+
"defaultMessage": "分析"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"kind": "page",
|
|
37
|
+
"key": "/events",
|
|
38
|
+
"label": {
|
|
39
|
+
"id": "admin.pages.events.name",
|
|
40
|
+
"defaultMessage": "事件"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "page",
|
|
45
|
+
"key": "/experiments",
|
|
46
|
+
"label": {
|
|
47
|
+
"id": "admin.pages.experiments.name",
|
|
48
|
+
"defaultMessage": "实验"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"updatePolicy": {
|
|
54
|
+
"mode": "optional"
|
|
55
|
+
},
|
|
56
|
+
"adminOperations": [
|
|
57
|
+
{
|
|
58
|
+
"operationId": "op.data.admin.analysis.query.32d44cf1bf8a2eed",
|
|
59
|
+
"targetExtensionId": "data",
|
|
60
|
+
"method": "POST",
|
|
61
|
+
"pathTemplate": "/admin/analysis/query",
|
|
62
|
+
"authScope": "admin",
|
|
63
|
+
"kind": "mutation",
|
|
64
|
+
"requestSchema": "op.data.admin.analysis.query.32d44cf1bf8a2eed.request.v1",
|
|
65
|
+
"responseSchema": "op.data.admin.analysis.query.32d44cf1bf8a2eed.response.v1",
|
|
66
|
+
"retryPolicy": "never",
|
|
67
|
+
"allowedCallerExtensions": [
|
|
68
|
+
"*"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"operationId": "op.data.admin.fields.query.07873f761b0a5d2a",
|
|
73
|
+
"targetExtensionId": "data",
|
|
74
|
+
"method": "GET",
|
|
75
|
+
"pathTemplate": "/admin/fields/query",
|
|
76
|
+
"authScope": "admin",
|
|
77
|
+
"kind": "query",
|
|
78
|
+
"requestSchema": "op.data.admin.fields.query.07873f761b0a5d2a.request.v1",
|
|
79
|
+
"responseSchema": "op.data.admin.fields.query.07873f761b0a5d2a.response.v1",
|
|
80
|
+
"retryPolicy": "safe-read-once",
|
|
81
|
+
"allowedCallerExtensions": [
|
|
82
|
+
"*"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"operationId": "op.data.admin.boards.delete.130bfaf96d09ccbd",
|
|
87
|
+
"targetExtensionId": "data",
|
|
88
|
+
"method": "POST",
|
|
89
|
+
"pathTemplate": "/admin/boards/delete",
|
|
90
|
+
"authScope": "admin",
|
|
91
|
+
"kind": "mutation",
|
|
92
|
+
"requestSchema": "op.data.admin.boards.delete.130bfaf96d09ccbd.request.v1",
|
|
93
|
+
"responseSchema": "op.data.admin.boards.delete.130bfaf96d09ccbd.response.v1",
|
|
94
|
+
"retryPolicy": "never",
|
|
95
|
+
"allowedCallerExtensions": [
|
|
96
|
+
"*"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"operationId": "op.data.admin.boards.save.298db85833f5c534",
|
|
101
|
+
"targetExtensionId": "data",
|
|
102
|
+
"method": "PUT",
|
|
103
|
+
"pathTemplate": "/admin/boards/save",
|
|
104
|
+
"authScope": "admin",
|
|
105
|
+
"kind": "mutation",
|
|
106
|
+
"requestSchema": "op.data.admin.boards.save.298db85833f5c534.request.v1",
|
|
107
|
+
"responseSchema": "op.data.admin.boards.save.298db85833f5c534.response.v1",
|
|
108
|
+
"retryPolicy": "never",
|
|
109
|
+
"allowedCallerExtensions": [
|
|
110
|
+
"*"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"operationId": "op.data.admin.boards.get.41a97e72681cc81e",
|
|
115
|
+
"targetExtensionId": "data",
|
|
116
|
+
"method": "GET",
|
|
117
|
+
"pathTemplate": "/admin/boards/get",
|
|
118
|
+
"authScope": "admin",
|
|
119
|
+
"kind": "query",
|
|
120
|
+
"requestSchema": "op.data.admin.boards.get.41a97e72681cc81e.request.v1",
|
|
121
|
+
"responseSchema": "op.data.admin.boards.get.41a97e72681cc81e.response.v1",
|
|
122
|
+
"retryPolicy": "safe-read-once",
|
|
123
|
+
"allowedCallerExtensions": [
|
|
124
|
+
"*"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"operationId": "op.data.admin.boards.list.5ce85722213496de",
|
|
129
|
+
"targetExtensionId": "data",
|
|
130
|
+
"method": "GET",
|
|
131
|
+
"pathTemplate": "/admin/boards/list",
|
|
132
|
+
"authScope": "admin",
|
|
133
|
+
"kind": "query",
|
|
134
|
+
"requestSchema": "op.data.admin.boards.list.5ce85722213496de.request.v1",
|
|
135
|
+
"responseSchema": "op.data.admin.boards.list.5ce85722213496de.response.v1",
|
|
136
|
+
"retryPolicy": "safe-read-once",
|
|
137
|
+
"allowedCallerExtensions": [
|
|
138
|
+
"*"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"operationId": "op.data.admin.definitions.query.91aad1459c60b539",
|
|
143
|
+
"targetExtensionId": "data",
|
|
144
|
+
"method": "GET",
|
|
145
|
+
"pathTemplate": "/admin/definitions/query",
|
|
146
|
+
"authScope": "admin",
|
|
147
|
+
"kind": "query",
|
|
148
|
+
"requestSchema": "op.data.admin.definitions.query.91aad1459c60b539.request.v1",
|
|
149
|
+
"responseSchema": "op.data.admin.definitions.query.91aad1459c60b539.response.v1",
|
|
150
|
+
"retryPolicy": "safe-read-once",
|
|
151
|
+
"allowedCallerExtensions": [
|
|
152
|
+
"*"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"operationId": "op.data.admin.lake.status.0c61a6322510c276",
|
|
157
|
+
"targetExtensionId": "data",
|
|
158
|
+
"method": "GET",
|
|
159
|
+
"pathTemplate": "/admin/lake/status",
|
|
160
|
+
"authScope": "admin",
|
|
161
|
+
"kind": "query",
|
|
162
|
+
"requestSchema": "op.data.admin.lake.status.0c61a6322510c276.request.v1",
|
|
163
|
+
"responseSchema": "op.data.admin.lake.status.0c61a6322510c276.response.v1",
|
|
164
|
+
"retryPolicy": "safe-read-once",
|
|
165
|
+
"allowedCallerExtensions": [
|
|
166
|
+
"*"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"operationId": "op.data.admin.settings.22400359515d1955",
|
|
171
|
+
"targetExtensionId": "data",
|
|
172
|
+
"method": "GET",
|
|
173
|
+
"pathTemplate": "/admin/settings",
|
|
174
|
+
"authScope": "admin",
|
|
175
|
+
"kind": "query",
|
|
176
|
+
"requestSchema": "op.data.admin.settings.22400359515d1955.request.v1",
|
|
177
|
+
"responseSchema": "op.data.admin.settings.22400359515d1955.response.v1",
|
|
178
|
+
"retryPolicy": "safe-read-once",
|
|
179
|
+
"allowedCallerExtensions": [
|
|
180
|
+
"*"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"operationId": "op.data.admin.products.4b4430485755ee8c",
|
|
185
|
+
"targetExtensionId": "data",
|
|
186
|
+
"method": "GET",
|
|
187
|
+
"pathTemplate": "/admin/products",
|
|
188
|
+
"authScope": "admin",
|
|
189
|
+
"kind": "query",
|
|
190
|
+
"requestSchema": "op.data.admin.products.4b4430485755ee8c.request.v1",
|
|
191
|
+
"responseSchema": "op.data.admin.products.4b4430485755ee8c.response.v1",
|
|
192
|
+
"retryPolicy": "safe-read-once",
|
|
193
|
+
"allowedCallerExtensions": [
|
|
194
|
+
"*"
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"operationId": "op.data.admin.sampling.update.aad3e50c92f642b0",
|
|
199
|
+
"targetExtensionId": "data",
|
|
200
|
+
"method": "PUT",
|
|
201
|
+
"pathTemplate": "/admin/sampling/update",
|
|
202
|
+
"authScope": "admin",
|
|
203
|
+
"kind": "mutation",
|
|
204
|
+
"requestSchema": "op.data.admin.sampling.update.aad3e50c92f642b0.request.v1",
|
|
205
|
+
"responseSchema": "op.data.admin.sampling.update.aad3e50c92f642b0.response.v1",
|
|
206
|
+
"retryPolicy": "never",
|
|
207
|
+
"allowedCallerExtensions": [
|
|
208
|
+
"*"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"operationId": "op.data.admin.overview.55c22cd7e993452b",
|
|
213
|
+
"targetExtensionId": "data",
|
|
214
|
+
"method": "GET",
|
|
215
|
+
"pathTemplate": "/admin/overview",
|
|
216
|
+
"authScope": "admin",
|
|
217
|
+
"kind": "query",
|
|
218
|
+
"requestSchema": "op.data.admin.overview.55c22cd7e993452b.request.v1",
|
|
219
|
+
"responseSchema": "op.data.admin.overview.55c22cd7e993452b.response.v1",
|
|
220
|
+
"retryPolicy": "safe-read-once",
|
|
221
|
+
"allowedCallerExtensions": [
|
|
222
|
+
"*"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"operationId": "op.data.admin.query.e68b10582fb17e84",
|
|
227
|
+
"targetExtensionId": "data",
|
|
228
|
+
"method": "POST",
|
|
229
|
+
"pathTemplate": "/admin/query",
|
|
230
|
+
"authScope": "admin",
|
|
231
|
+
"kind": "mutation",
|
|
232
|
+
"requestSchema": "op.data.admin.query.e68b10582fb17e84.request.v1",
|
|
233
|
+
"responseSchema": "op.data.admin.query.e68b10582fb17e84.response.v1",
|
|
234
|
+
"retryPolicy": "never",
|
|
235
|
+
"allowedCallerExtensions": [
|
|
236
|
+
"*"
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"operationId": "op.data.admin.health.dfe71282d4cc7306",
|
|
241
|
+
"targetExtensionId": "data",
|
|
242
|
+
"method": "GET",
|
|
243
|
+
"pathTemplate": "/admin/health",
|
|
244
|
+
"authScope": "admin",
|
|
245
|
+
"kind": "query",
|
|
246
|
+
"requestSchema": "op.data.admin.health.dfe71282d4cc7306.request.v1",
|
|
247
|
+
"responseSchema": "op.data.admin.health.dfe71282d4cc7306.response.v1",
|
|
248
|
+
"retryPolicy": "safe-read-once",
|
|
249
|
+
"allowedCallerExtensions": [
|
|
250
|
+
"*"
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"operationId": "op.data.admin.definitions.list.7e2d2927b704769b",
|
|
255
|
+
"targetExtensionId": "data",
|
|
256
|
+
"method": "GET",
|
|
257
|
+
"pathTemplate": "/admin/definitions/list",
|
|
258
|
+
"authScope": "admin",
|
|
259
|
+
"kind": "query",
|
|
260
|
+
"requestSchema": "op.data.admin.definitions.list.7e2d2927b704769b.request.v1",
|
|
261
|
+
"responseSchema": "op.data.admin.definitions.list.7e2d2927b704769b.response.v1",
|
|
262
|
+
"retryPolicy": "safe-read-once",
|
|
263
|
+
"allowedCallerExtensions": [
|
|
264
|
+
"*"
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"operationId": "op.data.admin.events.get.3d5fd9e2850e522e",
|
|
269
|
+
"targetExtensionId": "data",
|
|
270
|
+
"method": "GET",
|
|
271
|
+
"pathTemplate": "/admin/events/get",
|
|
272
|
+
"authScope": "admin",
|
|
273
|
+
"kind": "query",
|
|
274
|
+
"requestSchema": "op.data.admin.events.get.3d5fd9e2850e522e.request.v1",
|
|
275
|
+
"responseSchema": "op.data.admin.events.get.3d5fd9e2850e522e.response.v1",
|
|
276
|
+
"retryPolicy": "safe-read-once",
|
|
277
|
+
"allowedCallerExtensions": [
|
|
278
|
+
"*"
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"operationId": "op.data.admin.events.list.2a8011d2d1ba042e",
|
|
283
|
+
"targetExtensionId": "data",
|
|
284
|
+
"method": "GET",
|
|
285
|
+
"pathTemplate": "/admin/events/list",
|
|
286
|
+
"authScope": "admin",
|
|
287
|
+
"kind": "query",
|
|
288
|
+
"requestSchema": "op.data.admin.events.list.2a8011d2d1ba042e.request.v1",
|
|
289
|
+
"responseSchema": "op.data.admin.events.list.2a8011d2d1ba042e.response.v1",
|
|
290
|
+
"retryPolicy": "safe-read-once",
|
|
291
|
+
"allowedCallerExtensions": [
|
|
292
|
+
"*"
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"manifestDigest": "sha256:cff6a8a031d67e04f906ff24d904199aa91a91af921d0883257bec9681f5f5f5"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 此文件由 `./agent-tool generate extension-facades` 自动生成,请勿手改。
|
|
3
|
+
*/
|
|
4
|
+
export type paths = {
|
|
5
|
+
readonly "/events": {
|
|
6
|
+
parameters: {};
|
|
7
|
+
post: {
|
|
8
|
+
parameters: {};
|
|
9
|
+
requestBody?: {
|
|
10
|
+
content: {
|
|
11
|
+
"application/json": {
|
|
12
|
+
contexts: Array<{
|
|
13
|
+
ctxId: string;
|
|
14
|
+
device: {
|
|
15
|
+
category?: "desktop" | "phone" | "tablet" | "unknown" | undefined;
|
|
16
|
+
locale?: string | undefined;
|
|
17
|
+
model?: string | undefined;
|
|
18
|
+
osName?: string | undefined;
|
|
19
|
+
osVersion?: string | undefined;
|
|
20
|
+
platform?: "android" | "desktop" | "harmony" | "ios" | "web" | undefined;
|
|
21
|
+
timezone?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
identity: {
|
|
24
|
+
did: string;
|
|
25
|
+
sessionId: string;
|
|
26
|
+
uid: null | string;
|
|
27
|
+
};
|
|
28
|
+
product: {
|
|
29
|
+
release?: string | undefined;
|
|
30
|
+
runtimeVariant?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
deliveryId: string;
|
|
34
|
+
events: Array<{
|
|
35
|
+
ctxId: string;
|
|
36
|
+
eventId: string;
|
|
37
|
+
eventKey: string;
|
|
38
|
+
occurredAt: string;
|
|
39
|
+
properties: {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
};
|
|
42
|
+
sampling: {
|
|
43
|
+
effectiveRate: number;
|
|
44
|
+
settingRevision: null | number;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
47
|
+
memberEventIds: Array<string>;
|
|
48
|
+
source: {
|
|
49
|
+
deploymentSurface: "app-hot-update" | "desktop-preview" | "mini-program-release" | "site-web";
|
|
50
|
+
productId: string;
|
|
51
|
+
productRelease: string;
|
|
52
|
+
runtimeVariant: "app-simulator/web" | "app/android" | "app/harmony" | "app/ios" | "desktop-simulator/web" | "mini-program-simulator/web" | "mini-program/wechat" | "site/web";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
} | undefined;
|
|
57
|
+
responses: {
|
|
58
|
+
readonly 202: {
|
|
59
|
+
content: {
|
|
60
|
+
"application/json": {
|
|
61
|
+
data: {
|
|
62
|
+
deliveryId: string;
|
|
63
|
+
eventCount: number;
|
|
64
|
+
receivedAt: string;
|
|
65
|
+
status: "accepted" | "duplicate";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
headers: {
|
|
70
|
+
[key: string]: unknown;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
readonly 410: {
|
|
74
|
+
content: {
|
|
75
|
+
"application/json": {
|
|
76
|
+
code: string;
|
|
77
|
+
message: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
headers: {
|
|
81
|
+
[key: string]: unknown;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly 413: {
|
|
85
|
+
content: {
|
|
86
|
+
"application/json": {
|
|
87
|
+
code: string;
|
|
88
|
+
message: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
headers: {
|
|
92
|
+
[key: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly 422: {
|
|
96
|
+
content: {
|
|
97
|
+
"application/json": {
|
|
98
|
+
code: string;
|
|
99
|
+
message: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
headers: {
|
|
103
|
+
[key: string]: unknown;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
readonly 503: {
|
|
107
|
+
content: {
|
|
108
|
+
"application/json": {
|
|
109
|
+
code: string;
|
|
110
|
+
message: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
headers: {
|
|
114
|
+
[key: string]: unknown;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly 504: {
|
|
118
|
+
content: {
|
|
119
|
+
"application/json": {
|
|
120
|
+
code: string;
|
|
121
|
+
message: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
headers: {
|
|
125
|
+
[key: string]: unknown;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
export type operations = {
|
|
133
|
+
readonly "post /events": {
|
|
134
|
+
parameters: {};
|
|
135
|
+
requestBody?: {
|
|
136
|
+
content: {
|
|
137
|
+
"application/json": {
|
|
138
|
+
contexts: Array<{
|
|
139
|
+
ctxId: string;
|
|
140
|
+
device: {
|
|
141
|
+
category?: "desktop" | "phone" | "tablet" | "unknown" | undefined;
|
|
142
|
+
locale?: string | undefined;
|
|
143
|
+
model?: string | undefined;
|
|
144
|
+
osName?: string | undefined;
|
|
145
|
+
osVersion?: string | undefined;
|
|
146
|
+
platform?: "android" | "desktop" | "harmony" | "ios" | "web" | undefined;
|
|
147
|
+
timezone?: string | undefined;
|
|
148
|
+
};
|
|
149
|
+
identity: {
|
|
150
|
+
did: string;
|
|
151
|
+
sessionId: string;
|
|
152
|
+
uid: null | string;
|
|
153
|
+
};
|
|
154
|
+
product: {
|
|
155
|
+
release?: string | undefined;
|
|
156
|
+
runtimeVariant?: string | undefined;
|
|
157
|
+
};
|
|
158
|
+
}>;
|
|
159
|
+
deliveryId: string;
|
|
160
|
+
events: Array<{
|
|
161
|
+
ctxId: string;
|
|
162
|
+
eventId: string;
|
|
163
|
+
eventKey: string;
|
|
164
|
+
occurredAt: string;
|
|
165
|
+
properties: {
|
|
166
|
+
[key: string]: unknown;
|
|
167
|
+
};
|
|
168
|
+
sampling: {
|
|
169
|
+
effectiveRate: number;
|
|
170
|
+
settingRevision: null | number;
|
|
171
|
+
};
|
|
172
|
+
}>;
|
|
173
|
+
memberEventIds: Array<string>;
|
|
174
|
+
source: {
|
|
175
|
+
deploymentSurface: "app-hot-update" | "desktop-preview" | "mini-program-release" | "site-web";
|
|
176
|
+
productId: string;
|
|
177
|
+
productRelease: string;
|
|
178
|
+
runtimeVariant: "app-simulator/web" | "app/android" | "app/harmony" | "app/ios" | "desktop-simulator/web" | "mini-program-simulator/web" | "mini-program/wechat" | "site/web";
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
} | undefined;
|
|
183
|
+
responses: {
|
|
184
|
+
readonly 202: {
|
|
185
|
+
content: {
|
|
186
|
+
"application/json": {
|
|
187
|
+
data: {
|
|
188
|
+
deliveryId: string;
|
|
189
|
+
eventCount: number;
|
|
190
|
+
receivedAt: string;
|
|
191
|
+
status: "accepted" | "duplicate";
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
headers: {
|
|
196
|
+
[key: string]: unknown;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
readonly 410: {
|
|
200
|
+
content: {
|
|
201
|
+
"application/json": {
|
|
202
|
+
code: string;
|
|
203
|
+
message: string;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
headers: {
|
|
207
|
+
[key: string]: unknown;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
readonly 413: {
|
|
211
|
+
content: {
|
|
212
|
+
"application/json": {
|
|
213
|
+
code: string;
|
|
214
|
+
message: string;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
headers: {
|
|
218
|
+
[key: string]: unknown;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly 422: {
|
|
222
|
+
content: {
|
|
223
|
+
"application/json": {
|
|
224
|
+
code: string;
|
|
225
|
+
message: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
headers: {
|
|
229
|
+
[key: string]: unknown;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
readonly 503: {
|
|
233
|
+
content: {
|
|
234
|
+
"application/json": {
|
|
235
|
+
code: string;
|
|
236
|
+
message: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
headers: {
|
|
240
|
+
[key: string]: unknown;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
readonly 504: {
|
|
244
|
+
content: {
|
|
245
|
+
"application/json": {
|
|
246
|
+
code: string;
|
|
247
|
+
message: string;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
headers: {
|
|
251
|
+
[key: string]: unknown;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
export declare const extensionId: "data";
|
|
258
|
+
export declare const extension: Readonly<{
|
|
259
|
+
extensionId: typeof extensionId;
|
|
260
|
+
source: "npm";
|
|
261
|
+
sourceVersion: "0.1.1-alpha.1";
|
|
262
|
+
sourceDigest: "sha256:e3892bc08bfd815dc6fe7951083bbf9cc1625bd3f518800259e43254d21d1c65";
|
|
263
|
+
operations: readonly Readonly<{
|
|
264
|
+
operationId: string;
|
|
265
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD";
|
|
266
|
+
path: `/${string}`;
|
|
267
|
+
clientAudience: "product" | "runtime";
|
|
268
|
+
authScope?: "admin" | "account";
|
|
269
|
+
}>[];
|
|
270
|
+
readonly __paths: paths;
|
|
271
|
+
readonly __operations: operations;
|
|
272
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 此文件由 `./agent-tool generate extension-facades` 自动生成,请勿手改。
|
|
3
|
+
*/
|
|
4
|
+
export const extensionId = "data";
|
|
5
|
+
export const extension = Object.freeze({
|
|
6
|
+
extensionId,
|
|
7
|
+
source: "npm",
|
|
8
|
+
sourceVersion: "0.1.1-alpha.1",
|
|
9
|
+
sourceDigest: "sha256:e3892bc08bfd815dc6fe7951083bbf9cc1625bd3f518800259e43254d21d1c65",
|
|
10
|
+
operations: Object.freeze([{"operationId":"op.data.events.72e5357d9174f8e9","method":"POST","path":"/events","clientAudience":"runtime"}]),
|
|
11
|
+
});
|