@jinshuju/mcp 0.2.0 → 0.3.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/README.md +32 -98
- package/dist/analytics.d.ts +23 -3
- package/dist/analytics.js +55 -2
- package/dist/api.js +2 -1
- package/dist/generated/meta.json +3 -2
- package/dist/generated/operations.json +192 -36
- package/dist/generated/schemas.json +1858 -90
- package/dist/generated/tools.json +793 -105
- package/dist/result.d.ts +2 -0
- package/dist/result.js +3 -1
- package/dist/types.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -15,12 +15,14 @@
|
|
|
15
15
|
{
|
|
16
16
|
"name": "filters",
|
|
17
17
|
"in": "query",
|
|
18
|
-
"required": false
|
|
18
|
+
"required": false,
|
|
19
|
+
"json": true
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
"name": "sort",
|
|
22
23
|
"in": "query",
|
|
23
|
-
"required": false
|
|
24
|
+
"required": false,
|
|
25
|
+
"json": true
|
|
24
26
|
},
|
|
25
27
|
{
|
|
26
28
|
"name": "next",
|
|
@@ -81,7 +83,7 @@
|
|
|
81
83
|
"getForm": {
|
|
82
84
|
"operationId": "getForm",
|
|
83
85
|
"summary": "Show a form's structure",
|
|
84
|
-
"description": "Returns the form's name, public
|
|
86
|
+
"description": "Returns the form's name, `kind`, `scene`, public URL (`url`), description, field definitions and settings. Each element of `fields` is a single-key object `{ \"<api_code>\": {...} }`, in field order.\nAlso answers for a table or a quick payment form token; `kind` says which it is.\nThe following are included when the matching parameter is `true`:\n- `include_analytics`: each analysable field's definition carries `analytics`;\n- `include_theme`: carries `theme` (the form theme);\n- `include_field_rules`: carries `field_rules` (field display rules);\n- `include_extended_attributes`: carries `extended_attributes` (source-tracking links);\n- `include_transactions`: carries `transactions` (payment statistics) when the form is bound to a payment account.",
|
|
85
87
|
"tag": "Forms",
|
|
86
88
|
"method": "get",
|
|
87
89
|
"path": "/forms/{form_token}",
|
|
@@ -204,7 +206,8 @@
|
|
|
204
206
|
{
|
|
205
207
|
"name": "checks",
|
|
206
208
|
"in": "query",
|
|
207
|
-
"required": true
|
|
209
|
+
"required": true,
|
|
210
|
+
"json": true
|
|
208
211
|
}
|
|
209
212
|
],
|
|
210
213
|
"paramNames": [
|
|
@@ -233,7 +236,8 @@
|
|
|
233
236
|
{
|
|
234
237
|
"name": "checks",
|
|
235
238
|
"in": "query",
|
|
236
|
-
"required": true
|
|
239
|
+
"required": true,
|
|
240
|
+
"json": true
|
|
237
241
|
}
|
|
238
242
|
],
|
|
239
243
|
"paramNames": [
|
|
@@ -267,7 +271,8 @@
|
|
|
267
271
|
{
|
|
268
272
|
"name": "filters",
|
|
269
273
|
"in": "query",
|
|
270
|
-
"required": false
|
|
274
|
+
"required": false,
|
|
275
|
+
"json": true
|
|
271
276
|
},
|
|
272
277
|
{
|
|
273
278
|
"name": "keyword",
|
|
@@ -277,7 +282,8 @@
|
|
|
277
282
|
{
|
|
278
283
|
"name": "sort",
|
|
279
284
|
"in": "query",
|
|
280
|
-
"required": false
|
|
285
|
+
"required": false,
|
|
286
|
+
"json": true
|
|
281
287
|
},
|
|
282
288
|
{
|
|
283
289
|
"name": "created_at",
|
|
@@ -368,7 +374,8 @@
|
|
|
368
374
|
{
|
|
369
375
|
"name": "filters",
|
|
370
376
|
"in": "query",
|
|
371
|
-
"required": false
|
|
377
|
+
"required": false,
|
|
378
|
+
"json": true
|
|
372
379
|
},
|
|
373
380
|
{
|
|
374
381
|
"name": "keyword",
|
|
@@ -403,12 +410,14 @@
|
|
|
403
410
|
{
|
|
404
411
|
"name": "metrics",
|
|
405
412
|
"in": "query",
|
|
406
|
-
"required": false
|
|
413
|
+
"required": false,
|
|
414
|
+
"json": true
|
|
407
415
|
},
|
|
408
416
|
{
|
|
409
417
|
"name": "dimensions",
|
|
410
418
|
"in": "query",
|
|
411
|
-
"required": false
|
|
419
|
+
"required": false,
|
|
420
|
+
"json": true
|
|
412
421
|
},
|
|
413
422
|
{
|
|
414
423
|
"name": "limit",
|
|
@@ -418,7 +427,8 @@
|
|
|
418
427
|
{
|
|
419
428
|
"name": "filters",
|
|
420
429
|
"in": "query",
|
|
421
|
-
"required": false
|
|
430
|
+
"required": false,
|
|
431
|
+
"json": true
|
|
422
432
|
},
|
|
423
433
|
{
|
|
424
434
|
"name": "keyword",
|
|
@@ -466,7 +476,8 @@
|
|
|
466
476
|
{
|
|
467
477
|
"name": "filters",
|
|
468
478
|
"in": "query",
|
|
469
|
-
"required": false
|
|
479
|
+
"required": false,
|
|
480
|
+
"json": true
|
|
470
481
|
},
|
|
471
482
|
{
|
|
472
483
|
"name": "keyword",
|
|
@@ -508,7 +519,8 @@
|
|
|
508
519
|
{
|
|
509
520
|
"name": "filters",
|
|
510
521
|
"in": "query",
|
|
511
|
-
"required": false
|
|
522
|
+
"required": false,
|
|
523
|
+
"json": true
|
|
512
524
|
},
|
|
513
525
|
{
|
|
514
526
|
"name": "keyword",
|
|
@@ -549,12 +561,14 @@
|
|
|
549
561
|
{
|
|
550
562
|
"name": "metrics",
|
|
551
563
|
"in": "query",
|
|
552
|
-
"required": false
|
|
564
|
+
"required": false,
|
|
565
|
+
"json": true
|
|
553
566
|
},
|
|
554
567
|
{
|
|
555
568
|
"name": "dimensions",
|
|
556
569
|
"in": "query",
|
|
557
|
-
"required": false
|
|
570
|
+
"required": false,
|
|
571
|
+
"json": true
|
|
558
572
|
},
|
|
559
573
|
{
|
|
560
574
|
"name": "limit",
|
|
@@ -564,7 +578,8 @@
|
|
|
564
578
|
{
|
|
565
579
|
"name": "filters",
|
|
566
580
|
"in": "query",
|
|
567
|
-
"required": false
|
|
581
|
+
"required": false,
|
|
582
|
+
"json": true
|
|
568
583
|
},
|
|
569
584
|
{
|
|
570
585
|
"name": "keyword",
|
|
@@ -618,7 +633,8 @@
|
|
|
618
633
|
{
|
|
619
634
|
"name": "filters",
|
|
620
635
|
"in": "query",
|
|
621
|
-
"required": false
|
|
636
|
+
"required": false,
|
|
637
|
+
"json": true
|
|
622
638
|
},
|
|
623
639
|
{
|
|
624
640
|
"name": "keyword",
|
|
@@ -1803,12 +1819,14 @@
|
|
|
1803
1819
|
{
|
|
1804
1820
|
"name": "filters",
|
|
1805
1821
|
"in": "query",
|
|
1806
|
-
"required": false
|
|
1822
|
+
"required": false,
|
|
1823
|
+
"json": true
|
|
1807
1824
|
},
|
|
1808
1825
|
{
|
|
1809
1826
|
"name": "sort",
|
|
1810
1827
|
"in": "query",
|
|
1811
|
-
"required": false
|
|
1828
|
+
"required": false,
|
|
1829
|
+
"json": true
|
|
1812
1830
|
},
|
|
1813
1831
|
{
|
|
1814
1832
|
"name": "next",
|
|
@@ -1955,7 +1973,8 @@
|
|
|
1955
1973
|
{
|
|
1956
1974
|
"name": "checks",
|
|
1957
1975
|
"in": "query",
|
|
1958
|
-
"required": true
|
|
1976
|
+
"required": true,
|
|
1977
|
+
"json": true
|
|
1959
1978
|
}
|
|
1960
1979
|
],
|
|
1961
1980
|
"paramNames": [
|
|
@@ -1984,7 +2003,8 @@
|
|
|
1984
2003
|
{
|
|
1985
2004
|
"name": "checks",
|
|
1986
2005
|
"in": "query",
|
|
1987
|
-
"required": true
|
|
2006
|
+
"required": true,
|
|
2007
|
+
"json": true
|
|
1988
2008
|
}
|
|
1989
2009
|
],
|
|
1990
2010
|
"paramNames": [
|
|
@@ -2018,7 +2038,8 @@
|
|
|
2018
2038
|
{
|
|
2019
2039
|
"name": "filters",
|
|
2020
2040
|
"in": "query",
|
|
2021
|
-
"required": false
|
|
2041
|
+
"required": false,
|
|
2042
|
+
"json": true
|
|
2022
2043
|
},
|
|
2023
2044
|
{
|
|
2024
2045
|
"name": "keyword",
|
|
@@ -2028,7 +2049,8 @@
|
|
|
2028
2049
|
{
|
|
2029
2050
|
"name": "sort",
|
|
2030
2051
|
"in": "query",
|
|
2031
|
-
"required": false
|
|
2052
|
+
"required": false,
|
|
2053
|
+
"json": true
|
|
2032
2054
|
},
|
|
2033
2055
|
{
|
|
2034
2056
|
"name": "created_at",
|
|
@@ -2119,7 +2141,8 @@
|
|
|
2119
2141
|
{
|
|
2120
2142
|
"name": "filters",
|
|
2121
2143
|
"in": "query",
|
|
2122
|
-
"required": false
|
|
2144
|
+
"required": false,
|
|
2145
|
+
"json": true
|
|
2123
2146
|
},
|
|
2124
2147
|
{
|
|
2125
2148
|
"name": "keyword",
|
|
@@ -2154,12 +2177,14 @@
|
|
|
2154
2177
|
{
|
|
2155
2178
|
"name": "metrics",
|
|
2156
2179
|
"in": "query",
|
|
2157
|
-
"required": false
|
|
2180
|
+
"required": false,
|
|
2181
|
+
"json": true
|
|
2158
2182
|
},
|
|
2159
2183
|
{
|
|
2160
2184
|
"name": "dimensions",
|
|
2161
2185
|
"in": "query",
|
|
2162
|
-
"required": false
|
|
2186
|
+
"required": false,
|
|
2187
|
+
"json": true
|
|
2163
2188
|
},
|
|
2164
2189
|
{
|
|
2165
2190
|
"name": "limit",
|
|
@@ -2169,7 +2194,8 @@
|
|
|
2169
2194
|
{
|
|
2170
2195
|
"name": "filters",
|
|
2171
2196
|
"in": "query",
|
|
2172
|
-
"required": false
|
|
2197
|
+
"required": false,
|
|
2198
|
+
"json": true
|
|
2173
2199
|
},
|
|
2174
2200
|
{
|
|
2175
2201
|
"name": "keyword",
|
|
@@ -2217,7 +2243,8 @@
|
|
|
2217
2243
|
{
|
|
2218
2244
|
"name": "filters",
|
|
2219
2245
|
"in": "query",
|
|
2220
|
-
"required": false
|
|
2246
|
+
"required": false,
|
|
2247
|
+
"json": true
|
|
2221
2248
|
},
|
|
2222
2249
|
{
|
|
2223
2250
|
"name": "keyword",
|
|
@@ -2259,7 +2286,8 @@
|
|
|
2259
2286
|
{
|
|
2260
2287
|
"name": "filters",
|
|
2261
2288
|
"in": "query",
|
|
2262
|
-
"required": false
|
|
2289
|
+
"required": false,
|
|
2290
|
+
"json": true
|
|
2263
2291
|
},
|
|
2264
2292
|
{
|
|
2265
2293
|
"name": "keyword",
|
|
@@ -2300,12 +2328,14 @@
|
|
|
2300
2328
|
{
|
|
2301
2329
|
"name": "metrics",
|
|
2302
2330
|
"in": "query",
|
|
2303
|
-
"required": false
|
|
2331
|
+
"required": false,
|
|
2332
|
+
"json": true
|
|
2304
2333
|
},
|
|
2305
2334
|
{
|
|
2306
2335
|
"name": "dimensions",
|
|
2307
2336
|
"in": "query",
|
|
2308
|
-
"required": false
|
|
2337
|
+
"required": false,
|
|
2338
|
+
"json": true
|
|
2309
2339
|
},
|
|
2310
2340
|
{
|
|
2311
2341
|
"name": "limit",
|
|
@@ -2315,7 +2345,8 @@
|
|
|
2315
2345
|
{
|
|
2316
2346
|
"name": "filters",
|
|
2317
2347
|
"in": "query",
|
|
2318
|
-
"required": false
|
|
2348
|
+
"required": false,
|
|
2349
|
+
"json": true
|
|
2319
2350
|
},
|
|
2320
2351
|
{
|
|
2321
2352
|
"name": "keyword",
|
|
@@ -2369,7 +2400,8 @@
|
|
|
2369
2400
|
{
|
|
2370
2401
|
"name": "filters",
|
|
2371
2402
|
"in": "query",
|
|
2372
|
-
"required": false
|
|
2403
|
+
"required": false,
|
|
2404
|
+
"json": true
|
|
2373
2405
|
},
|
|
2374
2406
|
{
|
|
2375
2407
|
"name": "keyword",
|
|
@@ -2885,6 +2917,127 @@
|
|
|
2885
2917
|
],
|
|
2886
2918
|
"responseSchema": "EntryListResponse"
|
|
2887
2919
|
},
|
|
2920
|
+
"listCheckinCampaigns": {
|
|
2921
|
+
"operationId": "listCheckinCampaigns",
|
|
2922
|
+
"summary": "List check-in campaigns",
|
|
2923
|
+
"description": "Lists the check-in campaigns the caller created, newest first. With an account-level credential, returns the ones the account owner created.",
|
|
2924
|
+
"tag": "Plugins",
|
|
2925
|
+
"method": "get",
|
|
2926
|
+
"path": "/plugins/checkin/campaigns",
|
|
2927
|
+
"params": [
|
|
2928
|
+
{
|
|
2929
|
+
"name": "form_token",
|
|
2930
|
+
"in": "query",
|
|
2931
|
+
"required": false
|
|
2932
|
+
},
|
|
2933
|
+
{
|
|
2934
|
+
"name": "limit",
|
|
2935
|
+
"in": "query",
|
|
2936
|
+
"required": false
|
|
2937
|
+
}
|
|
2938
|
+
],
|
|
2939
|
+
"paramNames": [
|
|
2940
|
+
"form_token",
|
|
2941
|
+
"limit"
|
|
2942
|
+
],
|
|
2943
|
+
"successStatus": 200,
|
|
2944
|
+
"scopes": [
|
|
2945
|
+
"form_setting"
|
|
2946
|
+
]
|
|
2947
|
+
},
|
|
2948
|
+
"createCheckinCampaign": {
|
|
2949
|
+
"operationId": "createCheckinCampaign",
|
|
2950
|
+
"summary": "Create a check-in campaign",
|
|
2951
|
+
"description": "Turns check-in on for a form. The caller must be able to reach the form.\n- Same limits as picking a form in the web app: returns 400 when the form has WeChat red envelope, lucky wheel, certificate or confirmation code on, is bound to a plugin that takes over the after-submit redirect (a check-in campaign with a check-in code included), or its after-submit action is not the default message. Turn that off first.\n- Only one check-in campaign is in effect on a form at a time; creating one turns off the one that was in effect.\n- Without `checkin_field_api_code`, the form's first mobile field is used, then its first name field; with neither, returns 400. The check-in field cannot be changed afterwards.\n- The campaign belongs to the caller, or to the account owner with an account-level credential. The caller is also added as a verifier.\n- `enable_checkin_code` (on by default) rewrites the form's after-submit redirect and data push URL to the check-in code page, and overrides any Webhook already on the form (and the other way round).",
|
|
2952
|
+
"tag": "Plugins",
|
|
2953
|
+
"method": "post",
|
|
2954
|
+
"path": "/plugins/checkin/campaigns",
|
|
2955
|
+
"params": [],
|
|
2956
|
+
"paramNames": [],
|
|
2957
|
+
"body": {
|
|
2958
|
+
"contentType": "application/json",
|
|
2959
|
+
"required": true,
|
|
2960
|
+
"flatten": true
|
|
2961
|
+
},
|
|
2962
|
+
"successStatus": 201,
|
|
2963
|
+
"scopes": [
|
|
2964
|
+
"form_setting"
|
|
2965
|
+
],
|
|
2966
|
+
"responseSchema": "CheckinCampaign"
|
|
2967
|
+
},
|
|
2968
|
+
"getCheckinCampaign": {
|
|
2969
|
+
"operationId": "getCheckinCampaign",
|
|
2970
|
+
"summary": "Get a check-in campaign",
|
|
2971
|
+
"description": "Returns the campaign's settings, how many have checked in, and its check-in, verifier invite and management links. Only campaigns the caller created.",
|
|
2972
|
+
"tag": "Plugins",
|
|
2973
|
+
"method": "get",
|
|
2974
|
+
"path": "/plugins/checkin/campaigns/{id}",
|
|
2975
|
+
"params": [
|
|
2976
|
+
{
|
|
2977
|
+
"name": "id",
|
|
2978
|
+
"in": "path",
|
|
2979
|
+
"required": true
|
|
2980
|
+
}
|
|
2981
|
+
],
|
|
2982
|
+
"paramNames": [
|
|
2983
|
+
"id"
|
|
2984
|
+
],
|
|
2985
|
+
"successStatus": 200,
|
|
2986
|
+
"scopes": [
|
|
2987
|
+
"form_setting"
|
|
2988
|
+
],
|
|
2989
|
+
"responseSchema": "CheckinCampaign"
|
|
2990
|
+
},
|
|
2991
|
+
"updateCheckinCampaign": {
|
|
2992
|
+
"operationId": "updateCheckinCampaign",
|
|
2993
|
+
"summary": "Update a check-in campaign",
|
|
2994
|
+
"description": "Updates only the keys present in the body; PUT is accepted too. Only campaigns the caller created.\nTurning it back on with `enabled: true` turns off any other campaign in effect on the form.",
|
|
2995
|
+
"tag": "Plugins",
|
|
2996
|
+
"method": "patch",
|
|
2997
|
+
"path": "/plugins/checkin/campaigns/{id}",
|
|
2998
|
+
"params": [
|
|
2999
|
+
{
|
|
3000
|
+
"name": "id",
|
|
3001
|
+
"in": "path",
|
|
3002
|
+
"required": true
|
|
3003
|
+
}
|
|
3004
|
+
],
|
|
3005
|
+
"paramNames": [
|
|
3006
|
+
"id"
|
|
3007
|
+
],
|
|
3008
|
+
"body": {
|
|
3009
|
+
"contentType": "application/json",
|
|
3010
|
+
"required": true,
|
|
3011
|
+
"flatten": true
|
|
3012
|
+
},
|
|
3013
|
+
"successStatus": 200,
|
|
3014
|
+
"scopes": [
|
|
3015
|
+
"form_setting"
|
|
3016
|
+
],
|
|
3017
|
+
"responseSchema": "CheckinCampaign"
|
|
3018
|
+
},
|
|
3019
|
+
"deleteCheckinCampaign": {
|
|
3020
|
+
"operationId": "deleteCheckinCampaign",
|
|
3021
|
+
"summary": "Delete a check-in campaign",
|
|
3022
|
+
"description": "Deletes the campaign and unbinds it from the form; its check-in records are no longer visible. To pause check-in only, PATCH `enabled: false`.",
|
|
3023
|
+
"tag": "Plugins",
|
|
3024
|
+
"method": "delete",
|
|
3025
|
+
"path": "/plugins/checkin/campaigns/{id}",
|
|
3026
|
+
"params": [
|
|
3027
|
+
{
|
|
3028
|
+
"name": "id",
|
|
3029
|
+
"in": "path",
|
|
3030
|
+
"required": true
|
|
3031
|
+
}
|
|
3032
|
+
],
|
|
3033
|
+
"paramNames": [
|
|
3034
|
+
"id"
|
|
3035
|
+
],
|
|
3036
|
+
"successStatus": 204,
|
|
3037
|
+
"scopes": [
|
|
3038
|
+
"form_setting"
|
|
3039
|
+
]
|
|
3040
|
+
},
|
|
2888
3041
|
"listOpensearchQueries": {
|
|
2889
3042
|
"operationId": "listOpensearchQueries",
|
|
2890
3043
|
"summary": "List public queries",
|
|
@@ -3639,7 +3792,8 @@
|
|
|
3639
3792
|
{
|
|
3640
3793
|
"name": "filters",
|
|
3641
3794
|
"in": "query",
|
|
3642
|
-
"required": false
|
|
3795
|
+
"required": false,
|
|
3796
|
+
"json": true
|
|
3643
3797
|
}
|
|
3644
3798
|
],
|
|
3645
3799
|
"paramNames": [
|
|
@@ -3673,7 +3827,8 @@
|
|
|
3673
3827
|
{
|
|
3674
3828
|
"name": "filters",
|
|
3675
3829
|
"in": "query",
|
|
3676
|
-
"required": false
|
|
3830
|
+
"required": false,
|
|
3831
|
+
"json": true
|
|
3677
3832
|
}
|
|
3678
3833
|
],
|
|
3679
3834
|
"paramNames": [
|
|
@@ -3790,7 +3945,8 @@
|
|
|
3790
3945
|
{
|
|
3791
3946
|
"name": "filters",
|
|
3792
3947
|
"in": "query",
|
|
3793
|
-
"required": false
|
|
3948
|
+
"required": false,
|
|
3949
|
+
"json": true
|
|
3794
3950
|
},
|
|
3795
3951
|
{
|
|
3796
3952
|
"name": "keyword",
|