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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
|
<?php return [
'version' => '1.0',
'info' => ['style' => 'ROA', 'product' => 'pds', 'version' => '2022-03-01'],
'directories' => [
[
'children' => ['UpdateDomain', 'ListDomains', 'GetDomain', 'DeleteDomain', 'CreateDomain', 'SearchDomains'],
'type' => 'directory',
'title' => 'Domain管理',
'id' => 97668,
],
[
'children' => ['Authorize', 'Token'],
'type' => 'directory',
'title' => '认证与授权',
'id' => 97647,
],
[
'children' => ['GetLinkInfoByUserId', 'LinkAccount', 'GetLinkInfo', 'UnLinkAccount'],
'type' => 'directory',
'title' => '账号管理',
'id' => 97556,
],
[
'children' => ['UpdateGroup', 'GetGroup', 'DeleteGroup', 'CreateGroup', 'GroupUpdateName', 'ListGroup', 'AddGroupMember', 'RemoveGroupMember', 'ListGroupMember'],
'type' => 'directory',
'title' => '群组管理',
'id' => 97638,
],
[
'children' => ['GetUser', 'CreateUser', 'ImportUser', 'UpdateUser', 'DeleteUser', 'ListUser', 'SearchUser'],
'type' => 'directory',
'title' => '用户管理',
'id' => 97579,
],
[
'children' => ['DeleteDrive', 'CreateDrive', 'UpdateDrive', 'GetDrive', 'ListDrive', 'GetDefaultDrive', 'ListMyDrives', 'SearchDrive'],
'type' => 'directory',
'title' => '空间管理',
'id' => 97587,
],
[
'children' => ['ListFile', 'CreateFile', 'DeleteFile', 'UpdateFile', 'SearchFile', 'GetFile', 'DownloadFile', 'GetUploadUrl', 'ListUploadedParts', 'CompleteFile', 'MoveFile', 'CopyFile', 'GetDownloadUrl', 'FilePutUserTags', 'FileDeleteUserTags', 'VideoDRMLicense'],
'type' => 'directory',
'title' => '文件管理',
'id' => 97596,
],
[
'children' => ['DeleteRevision', 'UpdateRevision', 'RestoreRevision', 'ListRevision', 'GetRevision'],
'type' => 'directory',
'title' => '文件多版本管理',
'id' => 97657,
],
[
'children' => ['ScanFile', 'ListDelta', 'DeltaGetLastCursor'],
'type' => 'directory',
'title' => '增量处理',
'id' => 97650,
],
[
'children' => ['ListReceivedFile', 'ListMyGroupDrive', 'FileRemovePermission', 'FileAddPermission', 'FileListPermission', 'ListAssignment', 'AssignRole', 'CancelAssignRole'],
'type' => 'directory',
'title' => '权限管理',
'id' => 97613,
],
[
'children' => ['CreateShareLink', 'UpdateShareLink', 'SearchShareLink', 'CancelShareLink', 'ListShareLink', 'GetShareLink', 'GetShareLinkByAnonymous', 'GetShareLinkToken'],
'type' => 'directory',
'title' => '分享管理',
'id' => 97622,
],
[
'children' => ['TrashFile', 'ClearRecyclebin', 'ListRecyclebin', 'RestoreFile'],
'type' => 'directory',
'title' => '回收站管理',
'id' => 97631,
],
[
'children' => ['UpdateFacegroup', 'ListTags', 'ListAddressGroups', 'ListFacegroups', 'SearchAddressGroups', 'RemoveFaceGroupFile', 'CreateStory', 'CreateCustomizedStory', 'SearchStories', 'GetStory', 'UpdateStory', 'DeleteStory', 'AddStoryFiles', 'RemoveStoryFiles', 'CreateSimilarImageClusterTask', 'GetTaskStatus', 'SearchSimilarImageClusters'],
'type' => 'directory',
'title' => '图像AI管理',
'id' => 97561,
],
[
'children' => ['GetVideoPreviewPlayMeta', 'GetVideoPreviewPlayInfo'],
'type' => 'directory',
'title' => '在线视频预览',
'id' => 97654,
],
[
'children' => ['CreateIdentityToBenefitPkgMapping', 'UpdateIdentityToBenefitPkgMapping', 'GetIdentityToBenefitPkgMapping', 'ListIdentityToBenefitPkgMapping'],
'type' => 'directory',
'title' => '权益管理',
'id' => 97675,
],
[
'children' => ['PunishFile', 'InvestigateFile', 'CsiGetFileInfo'],
'type' => 'directory',
'title' => '内容安全管理',
'id' => 97680,
],
[
'children' => ['Batch', 'AuditLogExport', 'GetDomainQuota', 'ArchiveFiles', 'GetAsyncTask'],
'type' => 'directory',
'title' => '其他',
'id' => 97663,
],
],
'components' => [
'schemas' => [
'AccountLinkInfo' => [
'title' => 'A short description of struct',
'description' => '用户绑定的账号信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => '域ID', 'description' => '域ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'bj1', 'backendName' => 'domain_id'],
'authentication_type' => ['title' => '账号类型', 'description' => '账号类型'."\n"
."\n"
.'- mobile:手机号'."\n"
."\n"
.'- email:邮箱'."\n"
."\n"
.'- ding:钉钉'."\n"
."\n"
.'- ram:阿里云RAM子账号'."\n"
."\n"
.'- wechat:企业微信'."\n"
."\n"
.'- ldap:LDAP账号'."\n"
."\n"
.'- custom:自定义账号', 'visibility' => 'Public', 'type' => 'string', 'example' => 'mobile', 'backendName' => 'authentication_type'],
'identity' => ['title' => '账号唯一标识', 'description' => '账号唯一标识', 'visibility' => 'Public', 'type' => 'string', 'example' => '136***000', 'backendName' => 'identity'],
'extra' => ['title' => '账号附加信息', 'description' => '账号附加信息,当账号类型为手机号时,此字段表示国家编码,比如中国大陆为86,当前只有手机号才返回此字段', 'visibility' => 'Public', 'type' => 'string', 'example' => '86', 'backendName' => 'extra'],
'user_id' => ['title' => '账号对应的用户ID', 'description' => '账号对应的用户ID', 'visibility' => 'Public', 'type' => 'string', 'example' => '00016a587b62b50003deea299a4f5b50', 'backendName' => 'user_id'],
'created_at' => ['title' => '账号创建时间', 'description' => '账号创建时间,从1970年1月1日0点到现在的毫秒时间戳', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1639762579768', 'backendName' => 'created_at'],
'display_name' => ['title' => '账号显示名', 'description' => '账号显示名,用于界面上展示的名称,比如LDAP账号唯一标识为uid,但是展示给用户看的可以选择工号或其他信息', 'visibility' => 'Public', 'type' => 'string', 'example' => '001', 'backendName' => 'display_name'],
'status' => ['title' => '账号状态', 'description' => '账号状态', 'visibility' => 'Public', 'type' => 'string', 'example' => 'normal'],
'last_login_time' => ['title' => '账号最后一次登录的时间', 'description' => '账号最后一次登录的时间,从1970年1月1日0点到现在的毫秒时间戳', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1639762579769'],
],
],
'Address' => [
'title' => '地点',
'description' => '地点',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'country' => ['title' => '国家或地区', 'description' => '国家或地区', 'visibility' => 'Public', 'type' => 'string', 'example' => '中国'],
'province' => ['title' => '省', 'description' => '省', 'visibility' => 'Public', 'type' => 'string', 'example' => '浙江省'],
'city' => ['title' => '城市', 'description' => '城市', 'visibility' => 'Public', 'type' => 'string', 'example' => '杭州市'],
'district' => ['title' => '区', 'description' => '区', 'visibility' => 'Public', 'type' => 'string', 'example' => '余杭区'],
'township' => ['title' => '街道', 'description' => '街道', 'visibility' => 'Public', 'type' => 'string', 'example' => '文一西路'],
],
'nullable' => true,
],
'AddressGroup' => [
'title' => '地点分组',
'description' => '地点分组',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'name' => ['title' => '地点名称', 'description' => '地点名称', 'visibility' => 'Public', 'type' => 'string'],
'location' => ['title' => '经纬度', 'description' => '经纬度', 'visibility' => 'Public', 'type' => 'string', 'example' => '30.12231,120.1212'],
'count' => ['title' => '地点数量', 'description' => '地点分组内文件数量', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'cover_url' => ['title' => '地点封面图片地址', 'description' => '地点封面图片地址', 'visibility' => 'Public', 'type' => 'string'],
'cover_file_id' => ['title' => '地点封面图片文件ID', 'description' => '地点封面图片文件ID', 'visibility' => 'Public', 'type' => 'string'],
'address_detail' => ['title' => '地点详细信息', 'description' => '地点详细信息', 'visibility' => 'Public', '$ref' => '#/components/schemas/Address'],
],
],
'AddStoryFile' => [
'title' => '向故事中添加文件的相关返回信息',
'description' => '返回添加到故事中的文件及其成功与否',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'file_id' => ['title' => '文件id', 'description' => '文件id', 'visibility' => 'Public', 'type' => 'string', 'example' => '63e5e4340f76cb3ead5f40f68163f0f967c1a7bf'],
'revision_id' => ['title' => '文件版本号', 'description' => '文件版本号', 'visibility' => 'Public', 'type' => 'string', 'example' => '642a88dd06e49d9c0a14411ebae606f70edd9a59'],
'error_code' => ['title' => '添加单文件时的错误码', 'description' => '添加单文件时的错误码', 'visibility' => 'Public', 'type' => 'string'],
'error_message' => ['title' => '添加单文件时的错误信息', 'description' => '添加单文件时的错误信息', 'visibility' => 'Public', 'type' => 'string'],
],
],
'AppAccessStrategy' => [
'title' => 'App访问策略',
'description' => 'App访问策略',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'effect' => [
'title' => 'App 访问策略',
'description' => '全局 App 访问策略'."\n"
.'* allow 表示允许所有 app 来访问该 domain'."\n"
.'* deny 表示拒绝所有 app 来访问该 domain(默认)'."\n"
."\n\n"
.'建议配置:'."\n"
.'1. 全局访问策略 effect 设置为 deny'."\n"
.'2. 允许部分 app ID 来访问,设置 except_app_id_list 为 ["appid1", "appid2"]',
'visibility' => 'Public',
'type' => 'string',
'enumValueTitles' => ['allow' => '允许', 'deny' => '拒绝'],
'example' => 'deny',
],
'except_app_id_list' => [
'title' => '白名单或黑名单AppID列表',
'description' => '例外的 app ID 列表'."\n"
."\n"
.' * 当全局策略 effect 为 allow 时,表示全局允许所有的 app 来访问 domain,但是处于 except_app_id_list 列表的 app 则禁止访问 domain。'."\n"
.' * 当全局策略 effect 为 deny 时,表示全局禁止所有的 app 来访问 domain,但是处于 except_app_id_list 列表的 app 则允许访问 domain。',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => 'appID', 'visibility' => 'Public', 'type' => 'string', 'example' => '8ovxCTRUDdbpVWBP', 'extendType' => 'true'],
],
],
'parseType' => 'struct',
],
'BaseUserResponse' => [
'title' => 'A short description of struct',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => 'Domain ID', 'type' => 'string', 'example' => 'hz999'],
'user_id' => ['title' => '用户 ID', 'type' => 'string', 'example' => 'ccpuserid'],
'avatar' => ['title' => '头像', 'type' => 'string', 'example' => 'http://a.b.c/ccp.jpg'],
'created_at' => ['title' => '用户创建时间', 'type' => 'string', 'example' => '1567407718386'],
'updated_at' => ['title' => '用户修改时间', 'type' => 'string', 'example' => '1567407718386'],
'email' => ['title' => '邮箱', 'type' => 'string', 'example' => '123@ccp.com'],
'nick_name' => ['title' => '昵称', 'type' => 'string', 'example' => 'abc'],
'phone' => ['title' => '电话', 'type' => 'string', 'example' => '13700000000'],
'phone_region' => ['title' => '国家编码', 'type' => 'string'],
'role' => ['title' => '角色', 'type' => 'string', 'example' => 'user'],
'status' => ['title' => '用户状态', 'type' => 'string', 'example' => 'enabled'],
'user_name' => ['title' => '用户名称', 'type' => 'string', 'example' => 'name'],
'description' => ['title' => '用户备注信息', 'type' => 'string', 'example' => 'ccp team user'],
'default_drive_id' => ['title' => '默认 Drive ID', 'type' => 'string', 'example' => '123'],
'deny_change_password_by_self' => ['title' => '禁止用户自行修改密码', 'type' => 'boolean'],
'need_change_password_next_login' => ['title' => '下次登录强制修改密码', 'type' => 'boolean'],
'creator' => ['title' => 'creator', 'type' => 'string', 'example' => 'system'],
'expired_at' => ['title' => '用户过期时间', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'is_sync' => ['title' => 'is_sync', 'type' => 'boolean'],
'default_location' => ['title' => 'default_location', 'type' => 'string'],
'last_login_time' => ['title' => 'last_login_time', 'type' => 'integer', 'format' => 'int64'],
'path_status' => ['title' => 'path 开启状态', 'type' => 'string'],
'last_refresh_token_time' => ['type' => 'integer', 'format' => 'int64'],
'user_data' => [
'title' => '用户自定义数据,格式为json,可用于配置项、少量临时数据等存储,不超过1K',
'type' => 'object',
'additionalProperties' => ['type' => 'any'],
],
'permission' => [
'title' => 'permission',
'type' => 'object',
'additionalProperties' => ['$ref' => '#/components/schemas/IDPermission'],
],
],
],
'BenefitPkgDeliveryInfo' => [
'cloudType' => 'public',
'branchId' => 2776869,
'branchName' => 'master',
'paramExtraInfo' => ['$.components.schemas.BenefitPkgDeliveryInfo.properties.amount.description' => '权益包下发的数量', '$.components.schemas.BenefitPkgDeliveryInfo.properties.created_at.description' => '权益包下发的创建时间', '$.components.schemas.BenefitPkgDeliveryInfo.description' => '权益包下发信息', '$.components.schemas.BenefitPkgDeliveryInfo.properties.is_permanent.description' => '是否永久有效', '$.components.schemas.BenefitPkgDeliveryInfo.properties.expire_time.example' => '2019-08-20T06:51:27.292Z', '$.components.schemas.BenefitPkgDeliveryInfo.properties.amount.example' => '1', '$.components.schemas.BenefitPkgDeliveryInfo.properties.is_permanent.example' => 'false', '$.components.schemas.BenefitPkgDeliveryInfo.properties.expire_time.description' => '权益包下发的超期时间'."\n"
."\n"
.'is_permanent为false时,返回有效值', '$.components.schemas.BenefitPkgDeliveryInfo.properties.created_at.example' => '2019-08-20T06:51:27.292Z'],
'title' => 'A short description of struct',
'description' => '权益包下发信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'amount' => ['title' => '权益包下发的数量', 'description' => '权益包下发的数量', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'is_permanent' => ['title' => '是否永久有效', 'description' => '是否永久有效', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false'],
'expire_time' => ['title' => '权益包下发的超期时间', 'description' => '权益包下发的超期时间'."\n"
."\n"
.'is_permanent为false时,返回有效值', 'visibility' => 'Public', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'created_at' => ['title' => '权益包下发的创建时间', 'description' => '权益包下发的创建时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
],
],
'Domain' => [
'title' => 'domain 信息',
'description' => '基础 domain 信息',
'type' => 'object',
'properties' => [
'parent_domain_id' => ['title' => 'parent_domain_id string 父 domain id,如果存在,表示该 domain为子 domain domain_id string domain id', 'description' => '父 domain ID,如果存在,表示子 domain,否则表示普通 domain', 'type' => 'string', 'example' => 'bj1'],
'domain_id' => ['title' => 'domain id', 'description' => 'domain ID', 'type' => 'string', 'example' => 'bj2'],
'domain_name' => ['title' => '域名称', 'description' => 'domain 名称', 'type' => 'string', 'example' => 'pdsdomain'],
'description' => ['title' => '描述', 'description' => 'domain 描述', 'type' => 'string', 'example' => 'my domain'],
'init_drive_enable' => ['title' => '否开通默认网盘。为true则所有用户在第一次登录后都默认分配一个网盘。默认false', 'description' => '否开通默认网盘。为true则所有用户在第一次登录后都默认分配一个网盘。默认false', 'type' => 'boolean', 'example' => 'true'],
'init_drive_size' => ['title' => 'init_drive_enable==true时必选。 默认网盘的大小, 单位:Bytes。为0则表示不限大小。默认为0', 'description' => 'init\\_drive\\_enable 为true时必选。 创建用户时,默认网盘的大小,单位:Bytes。'."\n"
.'默认为 0,此时创建的 drive 大小为0,不可以上传文件,如果需要初始化 drive, 请设置该值。'."\n"
.'-1则表示不限大小。', 'type' => 'integer', 'format' => 'int64', 'example' => '1073741824'],
'updated_at' => ['title' => '最后修改时间,ISO格式,如: 2019-04-08T07:05:18.825Z', 'description' => '最后修改时间,ISO格式,如: 2019-04-08T07:05:18.825Z', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'created_at' => ['title' => '创建时间,ISO格式, 如:2019-03-28T13:03:29.298Z', 'description' => '创建时间,ISO格式, 如:2019-03-28T13:03:29.298Z', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'size_quota' => ['title' => '容量配额', 'description' => '容量配额,表示 domain 下所有 drive 的总quota 大小,0 表示不限制', 'type' => 'integer', 'format' => 'int64', 'example' => '1099511627776'],
'size_quota_used' => ['title' => '容量配额使用空间', 'description' => '所有 drive 的 quota 容量配额使用空间', 'type' => 'integer', 'format' => 'int64', 'example' => '1099511627776'],
'user_count_quota' => ['title' => '用户数配额', 'description' => '用户数配额', 'type' => 'integer', 'format' => 'int64', 'example' => '50'],
'status' => ['title' => 'domain状态:创建中,正常,已过期', 'description' => 'domain状态:'."\n"
.'1:正常'."\n"
.'2:创建中'."\n"
.'6:已过期', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'used_size' => ['title' => '逻辑空间使用量,单位为字节', 'description' => '逻辑空间使用量,单位为字节', 'type' => 'integer', 'format' => 'int64', 'example' => '1099511627776'],
'published_app_access_strategy' => ['title' => 'App 访问策略', 'description' => 'App 访问策略', '$ref' => '#/components/schemas/AppAccessStrategy'],
'sharable' => ['title' => '是否开启共享', 'description' => '是否开启共享', 'type' => 'boolean'],
'data_hash_name' => ['title' => 'domain hash type', 'description' => '表示计算数据哈希值的方法名称。', 'type' => 'string', 'example' => 'sha1'],
'store_redundancy_type' => ['title' => '存储冗余类型。本地冗余:LRS;同城冗余:ZRS', 'description' => '存储冗余类型', 'type' => 'string', 'example' => 'LRS'],
],
],
'Drive' => [
'title' => 'A short description of struct',
'description' => '空间',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => '域id', 'description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['title' => '空间id', 'description' => '空间id', 'type' => 'string', 'example' => '1'],
'drive_name' => ['title' => '空间名称', 'description' => '空间名称', 'type' => 'string', 'example' => 'drv1'],
'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'vipdrive'],
'owner' => ['title' => '归属者', 'description' => '归属者', 'type' => 'string', 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
'owner_type' => ['title' => '归属者类型', 'description' => '归属者类型', 'type' => 'string', 'example' => 'user'],
'drive_type' => ['title' => '空间类型', 'description' => '空间类型', 'type' => 'string', 'example' => 'normal'],
'status' => ['title' => '状态', 'description' => '状态'."\n"
."\n"
.'1. enabled 表示该空间可使用'."\n"
.'2. disabled 表示该空间不可用', 'type' => 'string', 'example' => 'enabled'],
'used_size' => ['title' => '使用空间大小', 'description' => '使用空间大小,单位为字节', 'type' => 'integer', 'format' => 'int64', 'example' => '20480'],
'total_size' => ['title' => '总空间大小', 'description' => '总空间大小,单位为字节', 'type' => 'integer', 'format' => 'int64', 'example' => '204800'],
'created_at' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
],
],
'FaceGroup' => [
'title' => '人脸分组',
'description' => '人脸分组',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'group_id' => ['title' => '人脸分组ID', 'description' => '人脸分组ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Cluster-ae6e3472-999e-410b-b54e-cd5dba****'],
'group_name' => ['title' => '人脸分组名称', 'description' => '人脸分组名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'name'],
'image_count' => ['title' => '照片数量', 'description' => '人脸分组内照片数量', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'created_at' => ['title' => '人脸分组生成时间。格式 RFC3339', 'description' => '人脸分组生成时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2022-01-14T10:10:52.83948013+08:00'],
'updated_at' => ['title' => '人脸分组修改时间。格式 RFC3339', 'description' => '人脸分组修改时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2022-01-14T10:10:52.83948013+08:00'],
'group_cover_url' => ['title' => '人脸分组封面头像地址', 'description' => '人脸分组封面头像地址', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://xxx'],
'group_cover_file_id' => ['title' => '人脸分组封面文件ID', 'description' => '人脸分组封面文件ID', 'visibility' => 'Public', 'type' => 'string', 'example' => '6549c959640fbd517c9b4d93b3b36aecc45xxxxx'],
'group_cover_width' => ['title' => '人脸分组封面图片宽', 'description' => '人脸分组封面图片宽', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1920'],
'group_cover_height' => ['title' => '人脸分组封面图片高', 'description' => '人脸分组封面图片高', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1080'],
'group_cover_face_boundary' => [
'title' => '人脸分组封面图片边框',
'description' => '人脸分组封面图片边框',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'Width' => ['title' => '宽,单位像素', 'description' => '宽,单位像素', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'Height' => ['title' => '高, 单位像素', 'description' => '高, 单位像素', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '300'],
'Top' => ['title' => '距离照片顶部的距离,单位像素', 'description' => '距离照片顶部的距离,单位像素', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '30'],
'Left' => ['title' => '距离照片左边框的距离,单位像素', 'description' => '距离照片左边框的距离,单位像素', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
],
],
'remarks' => ['title' => '备注', 'description' => '备注', 'visibility' => 'Public', 'type' => 'string'],
'remarks_array' => [
'title' => '备注列表',
'description' => '备注列表',
'visibility' => 'Private',
'type' => 'array',
'items' => ['visibility' => 'Public', 'type' => 'string', 'extendType' => 'true'],
],
],
],
'FaceThumbnail' => [
'title' => '人脸缩略图信息。仅开启增值服务图片处理功能有效。',
'description' => '人脸缩略图信息。仅开启增值服务图片处理功能有效。',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'face_id' => ['title' => '人脸 id。', 'description' => '人脸 id。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'a9a66a86-73dd-4c95-8b79-1d8a49db5226'],
'face_group_id' => ['title' => '人脸所属分组 id。', 'description' => '人脸所属分组 id。'."\n"
."\n"
.'包含如下特定 id:'."\n"
."\n"
.'- figure-cluster-id-independent:该人脸暂无合适的分组,后续在数据集中新增图片后进行人脸聚类操作时,该人脸可能被分入组中。'."\n"
."\n"
.'- figure-cluster-id-unavailable:该人脸暂未进行过聚类操作,即在数据集中新增图片后,未进行人脸聚类。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0'],
'face_thumbnail' => ['title' => '人脸缩略图。', 'description' => '人脸缩略图。', 'visibility' => 'Public', 'type' => 'string', 'deprecated' => true, 'example' => 'https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2', 'sensitive' => true],
],
],
'File' => [
'title' => 'file 详情',
'description' => '文件',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => '域id', 'description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['title' => '空间id', 'description' => '空间id', 'type' => 'string', 'example' => '1'],
'file_id' => ['title' => '文件id', 'description' => '文件id', 'type' => 'string', 'example' => '5d79206586bb5dd69fb34c349282718146c55da7'],
'name' => ['title' => '名称', 'description' => '名称', 'type' => 'string', 'example' => '1.mov'],
'type' => [
'title' => '类型',
'description' => '类型',
'type' => 'string',
'enumValueTitles' => ['file' => '文件', 'folder' => '文件夹'],
'example' => 'file',
],
'content_type' => ['title' => '内容类型', 'description' => '内容类型', 'type' => 'string', 'example' => 'application/json'],
'created_at' => ['title' => '创建时间', 'description' => '创建时间', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'updated_at' => ['title' => '修改时间', 'description' => '修改时间', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'image file'],
'trashed_at' => ['title' => '放入回收站时间', 'description' => '放入回收站时间', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'file_extension' => ['title' => '文件扩展', 'description' => '文件扩展名', 'type' => 'string', 'example' => 'txt'],
'hidden' => ['title' => '是否隐藏', 'description' => '是否隐藏', 'type' => 'boolean', 'example' => 'false'],
'size' => ['title' => '大小', 'description' => '如果是文件,表示文件大小'."\n"
."\n"
.'如果是文件夹,表示文件夹的大小(递归计算所有子孙文件的大小)'."\n"
.'备注:文件夹大小只有在 list file,get file 时设置 fields 包含 dir_size 时才会返回', 'type' => 'integer', 'format' => 'int64', 'example' => '1024'],
'starred' => ['title' => '是否收藏', 'description' => '是否收藏', 'type' => 'boolean', 'example' => 'false'],
'status' => [
'title' => '状态',
'description' => '状态,只有available的文件和目录才是可以被访问的,如果文件处于uploading状态,GetFile会返回文件不存在, ListFile也不会返回uploading状态的文件',
'type' => 'string',
'enumValueTitles' => ['available' => 'available', 'uploading' => 'uploading'],
'example' => 'available',
],
'labels' => [
'title' => '标签',
'description' => '标签',
'type' => 'array',
'items' => ['description' => '标签', 'type' => 'string', 'example' => '["label1:1", "label2:2"]'],
'example' => '["label1:1", "label2:2"]',
],
'upload_id' => ['title' => '上传id', 'description' => '上传id', 'type' => 'string', 'example' => 'C9DCFE5A82644AC7A02DB74C30C934A6'],
'parent_file_id' => ['title' => '父文件夹id', 'description' => '父文件夹id', 'type' => 'string', 'example' => '3d5b846942cf94fa72324c8a4bda34e81da635a'],
'crc64_hash' => ['title' => 'crc64', 'description' => 'crc64', 'type' => 'string', 'example' => '3574582125365864471'],
'content_hash' => ['title' => '内容hash', 'description' => '内容hash', 'type' => 'string', 'example' => 'EA4942AA8761213890A5C386F88E6464D2C31CA3'],
'content_hash_name' => [
'title' => '内容hash算法名',
'description' => '内容hash算法名,当前hash 算法支持sha1',
'type' => 'string',
'enumValueTitles' => ['sha1' => 'sha1'],
'example' => 'sha1',
],
'download_url' => ['title' => '下载链接', 'description' => '下载链接, 下载链接默认有效期是 15 分钟,如果URL过期,可以通过 GetFile 进行获取', 'type' => 'string', 'example' => 'https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx'],
'thumbnail' => ['title' => '缩略图地址', 'description' => '缩略图地址(已废弃,推荐使用thumbnail\\_urls)', 'type' => 'string', 'example' => 'https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx'],
'category' => [
'title' => '分类',
'description' => '分类, pds 会根据文件的后缀名和 mime-type 对文件进行分类,主要分类有 doc, image, audio, video',
'type' => 'string',
'enumValueTitles' => ['image' => 'image', 'doc' => 'doc', 'audio' => 'audio', 'video' => 'video'],
'example' => 'image',
],
'local_created_at' => ['title' => '文件本地创建时间', 'description' => '文件本地创建时间, 本地创建时间是指文件在上传时刻的本地时间,主要帮助客户端识别本地上传时间', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'local_modified_at' => ['title' => '文件本地修改时间', 'description' => '文件本地修改时间,文件本地更新时间, 本地更新时间是指文件在上传时刻的本地时间,主要帮助客户端识别本地更新时间', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'revision_id' => ['title' => '版本id', 'description' => '版本id, 当相同file-id 文件覆盖上传时, 会有新的revision_id 产生', 'type' => 'string', 'example' => '5d5b846942cf94fa72324c14a4bda34e81da635d'],
'thumbnail_urls' => [
'title' => '返回的缩略图信息',
'description' => '返回的缩略图信息,与入参thumbnail\\_processes中传入的key对应。',
'type' => 'object',
'additionalProperties' => ['description' => '返回的缩略图信息,与入参thumbnail\\_processes中传入的key对应。', 'type' => 'string', 'required' => false, 'example' => '"128X128": "https://url1", "800X800": "url2"'],
],
'image_media_metadata' => ['title' => '图片信息。仅开启增值服务图片处理功能有效。', 'description' => '图片信息。仅开启增值服务图片处理功能有效。', '$ref' => '#/components/schemas/ImageMediaMetadata'],
'user_tags' => [
'title' => '用户自定义标签',
'description' => '用户自定义标签',
'type' => 'object',
'additionalProperties' => ['description' => '用户自定义标签', 'type' => 'string', 'example' => '"k1":"v1", "k2","v2"'],
],
'video_media_metadata' => ['title' => '音视频信息', 'description' => '音视频信息', '$ref' => '#/components/schemas/VideoMediaMetadata'],
'id_path' => ['title' => '文件id路径', 'description' => '文件id路径', 'type' => 'string', 'required' => false, 'example' => 'id1/id2'],
'name_path' => ['title' => '文件路径', 'description' => '文件路径', 'type' => 'string', 'example' => 'root/f1/f2'],
'dir_size_info' => [
'title' => '目录计量信息',
'description' => 'list file,get file 时,如果 fields 设置了 dir_size,那么该字段会返回,表示文件夹的统计信息',
'type' => 'object',
'properties' => [
'dir_count' => ['title' => '文件夹数量', 'description' => '该文件夹下所有子孙文件夹数量,递归计算。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'file_count' => ['title' => '文件数量', 'description' => '该文件夹下所有子孙文件数量,递归计算。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
],
],
'action_list' => [
'title' => '权限列表',
'description' => '权限列表',
'type' => 'array',
'items' => ['type' => 'string', 'description' => ''],
],
'auto_delete_left_sec' => ['title' => '回收站文件自动删除剩余时间', 'description' => '回收站文件自动删除剩余时间', 'type' => 'integer', 'format' => 'int64'],
],
],
'FilePermissionMember' => [
'title' => 'A short description of struct',
'description' => 'A short description of struct',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'identity' => ['title' => '授权对象', 'description' => '被授权对象,可以是用户或群组', 'visibility' => 'Public', '$ref' => '#/components/schemas/Identity'],
'role_id' => ['title' => '授予的角色ID', 'description' => '目前支持两种方式设置权限,一种是通过指定角色设置权限,另一种是自定义操作权限,此字段用于指定角色设置权限,与action\\_list互斥,当两个字段同时设置时,以此字段为准'."\n"
."\n"
.'目前支持:'."\n"
."\n"
.'SystemFileOwner(文件协同)'."\n"
."\n"
.'SystemFileDownloader(下载者)'."\n"
."\n"
.'SystemFileEditor(编辑者)'."\n"
."\n"
.'SystemFileEditorWithoutDelete(无删除编辑者)'."\n"
."\n"
.'SystemFileEditorWithoutShareLink(无分享编辑者)'."\n"
."\n"
.'SystemFileMetaViewer(可见列表)'."\n"
."\n"
.'SystemFileUploader(上传者)、SystemFileUploaderAndDownloader(上传/下载者)'."\n"
."\n"
.'SystemFileDownloaderWithShareLink(下载/分享者)'."\n"
."\n"
.'SystemFileUploaderAndDownloaderWithShareLink(上传/下载/分享者)'."\n"
."\n"
.'SystemFileUploaderAndViewer(预览/上传者)'."\n"
."\n"
.'SystemFileUploaderWithShareLink(上传/分享者)'."\n"
."\n"
.'SystemFileViewer(预览者)', 'visibility' => 'Public', 'type' => 'string', 'example' => 'SystemFileDownloader'],
'expire_time' => ['title' => '过期时间', 'description' => '此授权过期的时间, 从1970年1月1日0点到目标时间的毫秒数, 永久有效可以设置为系统预定义的一个值:4775500800000', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1633598085642'],
'disinherit_sub_group' => ['title' => '是否禁用子用户组继承此权限', 'description' => '是否禁用子群组下的用户继承此权限,举个例子,比如有/group1/group2, user1在group1下, user2在group2下。给group1授权时,此字段设置为true,则只有user1有权限,user2没有权限', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false'],
'action_list' => [
'title' => '授予的操作权限列表',
'description' => '目前支持两种方式设置权限,一种是通过指定角色设置权限,另一种是自定义操作权限,此字段用于自定义操作权限,与role\\_id互斥,当两个字段同时设置时,以role\\_id字段为准,设置action\\_list字段时系统会自动生成一个临时role\\_id,取消授权可以通过临时role\\_id来取消',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => "\n"
.'自定义操作权限:'."\n"
.'- FILE.VISIBLE: 可见'."\n"
.'- FILE.PREVIEW: 可预览'."\n"
.'- FILE.MOVE: 可移动'."\n"
.'- FILE.DELETE: 可删除'."\n"
.'- FILE.COPY: 可复制'."\n"
.'- FILE.CREATE: 可创建'."\n"
.'- FILE.DOWNLOAD: 可下载'."\n"
.'- FILE.SHARELINK: 可分享'."\n"
.'- FILE.UPDATE: 可更新'."\n"
.'- FILE.LIST: 可列举', 'visibility' => 'Public', 'type' => 'string', 'example' => 'FILE.CREATE', 'extendType' => 'true'],
'required' => false,
],
],
],
'Group' => [
'title' => 'A short description of struct',
'description' => 'group',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => '域ID', 'description' => '域ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'bj1'],
'group_id' => ['title' => '用户组ID', 'description' => '群组ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'b45c0c0c373c41ec9ebb5c85a025a08f'],
'group_name' => ['title' => '用户组名', 'description' => '群组名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'test group'],
'description' => ['title' => '描述', 'description' => '描述', 'visibility' => 'Public', 'type' => 'string', 'example' => 'created by system'],
'created_at' => ['title' => '创建时间', 'description' => '创建时间,从1970年1月1日0点到当前的毫秒时间戳', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1670573504600'],
'updated_at' => ['title' => '更新时间', 'description' => '更新时间,从1970年1月1日0点到当前的毫秒时间戳', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1670573504600'],
'creator' => ['title' => '创建者', 'description' => '创建者ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
'is_sync' => ['title' => '是否为同步团队', 'description' => '是否为同步团队', 'visibility' => 'Private', 'type' => 'boolean'],
],
],
'Identity' => [
'title' => 'A short description of struct',
'description' => '可授权对象,表示一个用户或者一个群组',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'identity_type' => ['title' => '类型', 'description' => '对象类型'."\n"
.'- IT_User:表示用户类型'."\n"
.'- IT_Group:表示群组类型', 'visibility' => 'Public', 'type' => 'string', 'example' => 'IT_User'],
'identity_id' => ['title' => 'ID', 'description' => '用户ID或者群组ID', 'visibility' => 'Public', 'type' => 'string', 'example' => '16435bdf934248b788b7b3771ee9a3dw'],
],
],
'IdentityToBenefitPkgMapping' => [
'title' => 'A short description of struct',
'description' => '实体的权益包关联信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'identity_type' => ['title' => '实体的类型', 'description' => '实体的类型', 'visibility' => 'Public', 'type' => 'string', 'example' => 'user'],
'identity_id' => ['title' => '实体的唯一标识', 'description' => '实体的标识ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'user123'],
'benefit_pkg_owner_id' => ['title' => '权益包的所有者ID', 'description' => '权益包的所有者ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'bj1'],
'benefit_pkg_id' => ['title' => '权益包的唯一标识', 'description' => '权益包的标识ID', 'visibility' => 'Public', 'type' => 'string', 'example' => '40cb7794c9294'],
'benefit_pkg_type' => ['title' => '权益包的类型', 'description' => '权益包的类型'."\n"
."\n"
.'有效值:'."\n"
."\n"
.'user_identity:用户等级权益包'."\n"
."\n"
.'user_resource:用户资源权益包', 'visibility' => 'Public', 'type' => 'string', 'example' => 'user_identity'],
'benefit_pkg_name' => ['title' => '权益包的名称', 'description' => '权益包的名称', 'visibility' => 'Public', 'type' => 'string', 'example' => '高级会员'],
'benefit_pkg_priority' => ['title' => '权益包的优先级', 'description' => '权益包的优先级'."\n"
."\n"
.'用户等级权益包返回的优先级,数字越小,优先级越高。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'benefit_pkg_computation_rule' => ['title' => '权益包内权益的计算规则', 'description' => '权益包内权益的计算规则'."\n"
."\n"
.'用户等级权益包,返回为空,只根据优先级priority计算生效权益的quota。'."\n"
."\n"
.'用户资源权益包,可以返回空值或非空值。返回非空时,该权益包用于追加计算其它权益包中已存在权益的配额,限于quota型权益。如:一个用户等级权益包中已经包含10G用户存储容量,可以再定义一个或多个用户资源权益包,用于给某些用户增加额外的存储容量。'."\n"
."\n"
.'支持的追加计算规则包括:'."\n"
."\n"
.'sum:多个权益包中有相同权益,进行累加'."\n"
."\n"
.'max:多个权益包中有相同权益,取max值'."\n"
."\n"
.'min:多个权益包中有相同权益,取min值', 'visibility' => 'Public', 'type' => 'string', 'example' => 'sum'],
'delivery_info_list' => [
'title' => '权益包的下发信息',
'description' => '权益包的下发信息列表',
'visibility' => 'Public',
'type' => 'array',
'items' => ['visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/BenefitPkgDeliveryInfo'],
],
'created_at' => ['title' => '实体权益包关联的创建时间', 'description' => '实体和权益包关联的创建时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'updated_at' => ['title' => '实体权益包关联的更新时间', 'description' => '实体和权益包关联的更新时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
],
],
'ImageMediaMetadata' => [
'title' => '图片信息。仅开启增值服务图片处理功能有效。',
'description' => '图片元数据。仅当开启增值服务图片处理功能有效。',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'time' => ['title' => '拍摄时间,RFC3339 格式。', 'description' => '拍摄时间,RFC3339 格式。', 'visibility' => 'Public', 'type' => 'string', 'example' => '2006-01-02T15:04:05.000Z07:00'],
'width' => ['title' => '图片宽度,单位为像素(px)。', 'description' => '宽度,单位为像素。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1024'],
'height' => ['title' => '图片高度,单位为像素(px)。', 'description' => '高度,单位为像素。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1024'],
'location' => ['title' => 'GPS 经纬度信息。', 'description' => '地理经纬度信息。', 'visibility' => 'Public', 'type' => 'string', 'example' => '30.185453,120.218522'],
'country' => [
'title' => '国家或地区。',
'description' => '国家或地区。',
'visibility' => 'Public',
'type' => 'string',
'enumValueTitles' => [],
'example' => 'China',
],
'province' => ['title' => '省。', 'description' => '省。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Zhejiang'],
'city' => ['title' => '城市。', 'description' => '城市。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Hangzhou'],
'district' => ['title' => '区。', 'description' => '区。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Xihu'],
'township' => ['title' => '街道。', 'description' => '街道。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Xihu'],
'address_line' => ['title' => '完整地址。', 'description' => '完整地址。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Zhejiang hangzhou xihu'],
'image_tags' => [
'title' => '图片标签详情列表',
'description' => '图片标签详情列表',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '系统标签(该数据结构将于2025年2月20日起停止透出)', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/SystemTag'],
],
'faces' => ['title' => '图片中包含的人脸列表。', 'description' => '图片中包含的人脸列表。', 'visibility' => 'Private', 'type' => 'string', 'deprecated' => true, 'example' => '[{"FaceId":"a9a66a86-73dd-4c95-8b79-1d8a49db5226","GroupId":"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0","FaceConfidence":0.999,"Age":13,"AgeConfidence":4,"Gender":"female","GenderConfidence":1,"Emotion":"none","EmotionConfidence":0.672,"FaceAttributes":{"Mask":"none","MaskConfidence":0.894,"Beard":"none","BeardConfidence":0.997,"Glasses":"none","GlassesConfidence":0.999,"Mouth":"close","MouthConfidence":0.937,"Hat":"none","HatConfidence":0.998,"HeadPose":{"Pitch":10.684,"Roll":-10.707,"Yaw":-20.094},"FaceBoundary":{"Width":457,"Height":687,"Top":1324,"Left":1356}}}]'],
'faces_thumbnail' => [
'title' => '人脸缩略图列表。',
'description' => '人脸缩略图列表。',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '人脸缩略图', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/FaceThumbnail'],
],
'exif' => ['title' => '图片EXIF信息。', 'description' => '图片EXIF信息。', 'visibility' => 'Public', 'type' => 'string', 'example' => '{"Compression":{"value":"6"},"DateTime":{"value":"2020:08:19 17:11:11"}}'],
'image_quality' => ['title' => '图片评分信息。', 'description' => '图片评分信息。', 'visibility' => 'Public', '$ref' => '#/components/schemas/ImageQuality'],
],
],
'ImageProcess' => [
'title' => 'A short description of struct',
'description' => '图片处理规则',
'type' => 'object',
'properties' => [
'image_thumbnail_process' => ['title' => '图片类型文件的缩略图规则', 'description' => '图片类型文件的缩略图规则,参考OSS的图片处理规则。默认为:image/resize,m\\_fill,h\\_128,w\\_128,limit\\_0', 'type' => 'string', 'example' => 'image/resize,m_fill,h_128,w_128,limit_0'],
'video_thumbnail_process' => ['title' => '视频类型文件的缩略图规则', 'description' => '视频类型文件的缩略图规则,参考OSS的视频截帧处理规则。默认为:video/snapshot,t\\_1000,f\\_jpg,w\\_0,h\\_0,m\\_fast,ar\\_auto', 'type' => 'string', 'example' => 'video/snapshot,t_1000,f_jpg,w_0,h_0,m_fast,ar_auto'],
'office_thumbnail_process' => ['title' => '文档类型文件的缩略图规则', 'description' => '文档类型文件的缩略图规则,文档类型的文件会选择文档中一页的截图作为原图,此参数是基于该截图来做处理。默认为:image/resize,m\\_fill,h\\_128,w\\_128,limit\\_0', 'type' => 'string', 'example' => 'image/resize,m_fill,h_128,w_128,limit_0'],
],
],
'ImageQuality' => [
'title' => '图片评分详情。仅开启增值服务图片处理功能有效。',
'description' => '图片评分详情。仅开启增值服务图片处理功能有效。',
'type' => 'object',
'properties' => [
'overall_score' => ['title' => '图片整体质量评分。该评分为 AI 自动评估,主要以主观美学为准,受到构图、亮度、对比度、色彩、清晰度等多方面因素影响。 范围 0-1,越高则质量越好。', 'description' => '图片整体质量评分。该评分为 AI 自动评估,主要以主观美学为准,受到构图、亮度、对比度、色彩、清晰度等多方面因素影响。 范围 0-1,评分越高则质量越好。', 'type' => 'number', 'format' => 'double', 'example' => '0.736'],
],
],
'ImageTag' => [
'title' => '标签信息',
'description' => '标签信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'name' => ['title' => '名称', 'description' => '名称', 'visibility' => 'Public', 'type' => 'string', 'example' => '动物'],
'count' => ['title' => '数量', 'description' => '分组内文件数量', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'cover_url' => ['title' => '标签封面图片地址', 'description' => '标签封面图片地址', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx'],
'cover_file_id' => ['title' => '封面文件id', 'description' => '封面文件id', 'visibility' => 'Public', 'type' => 'string', 'example' => '5d79206586bb5dd69fb34c349282718146c55da7'],
'cover_file_category' => ['title' => '封面文件分类', 'description' => '封面文件分类', 'visibility' => 'Public', 'type' => 'string', 'example' => 'image'],
'cover_tag_confidence' => ['title' => '封面标签置信度。取值范围为 0(表示置信度最低)~1(表示置信度最高)。', 'description' => '封面标签置信度', 'visibility' => 'Public', 'type' => 'number', 'format' => 'float', 'example' => '1'],
'cover_overall_score' => ['title' => '封面评分。该评分为 AI 自动评估,主要以主观美学为准,受到构图、亮度、对比度、色彩、清晰度等多方面因素影响。 范围 0-1,越高则质量越好。', 'description' => '封面评分', 'visibility' => 'Public', 'type' => 'number', 'format' => 'float', 'example' => '0.736'],
],
],
'InvestigationInfo' => [
'title' => 'A short description of struct',
'description' => 'A short description of struct',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'status' => [
'title' => '审核状态',
'description' => '审核状态',
'visibility' => 'Public',
'type' => 'integer',
'format' => 'int64',
'enumValueTitles' => ['未审核', '不支持审核', '审核失败', '审核中', '审核成功', '被处罚接口调用'],
'example' => '4',
],
'suggestion' => [
'title' => '审核建议执行的操作',
'description' => '审核建议执行的操作',
'visibility' => 'Public',
'type' => 'string',
'enumValueTitles' => ['pass' => '结果正常', 'block' => '结果违规,建议进行限制'],
'example' => 'block',
],
'video_detail' => [
'title' => '视频审核信息',
'description' => '视频审核信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'block_frames' => [
'title' => '违规帧信息',
'description' => '违规帧信息',
'visibility' => 'Public',
'type' => 'array',
'items' => [
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'rate' => ['title' => '置信度', 'description' => '置信度。取值范围0~100。', 'visibility' => 'Public', 'type' => 'number', 'format' => 'double', 'example' => '99.1'],
'offset' => ['title' => '截帧距离片头的时间(秒)', 'description' => '截帧距离片头的时间(秒)', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '3'],
'label' => ['title' => '检测结果分类', 'description' => '检测结果分类', 'visibility' => 'Public', 'type' => 'string', 'example' => 'porn'],
],
'extendType' => 'true',
],
],
],
],
],
],
'KnowledgeFile' => [
'title' => 'A short description of struct',
'type' => 'object',
'properties' => [
'knowledge_base_id' => ['title' => '知识库 ID', 'type' => 'string'],
'knowledge_category_id' => ['title' => '知识分类 ID', 'type' => 'string'],
'drive_id' => ['title' => '云盘 ID', 'type' => 'string'],
'file_id' => ['title' => '文件 ID', 'type' => 'string'],
'revision_id' => ['title' => '文件版本 ID', 'type' => 'string'],
'joined_at' => ['title' => '文件加入知识库/知识分类的毫秒级时间戳', 'type' => 'integer', 'format' => 'int64'],
'creator_id' => ['title' => '文件加入知识库/知识分类的操作者 ID', 'type' => 'string'],
'file_image_time' => ['title' => '图片文件的拍摄时间', 'type' => 'integer', 'format' => 'int64'],
'file_created_at' => ['title' => '文件的毫秒级创建时间戳', 'type' => 'integer', 'format' => 'int64'],
'file_updated_at' => ['title' => '文件的毫秒级更新时间戳', 'type' => 'integer', 'format' => 'int64'],
'file_creator_id' => ['title' => '文件的创建者 ID', 'type' => 'string'],
'file_size' => ['title' => '文件大小', 'type' => 'integer', 'format' => 'int64'],
'file_category' => ['title' => '文件类别', 'type' => 'string'],
'file_name' => ['title' => '文件名', 'type' => 'string'],
'file_name_path' => ['title' => '文件名路径', 'type' => 'string'],
'file_last_modifier_id' => ['title' => '文件最后的修改者 ID', 'type' => 'string'],
'file_last_modifier_type' => ['title' => '文件最后的修改者类型', 'type' => 'string'],
'drive_name' => ['title' => '云盘名称', 'type' => 'string'],
],
],
'Permission' => [
'title' => 'A short description of struct',
'description' => '权限',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'collection' => ['title' => '权限集', 'description' => '权限集,设置全局权限时为 global,其他场景默认为空', 'visibility' => 'Public', 'type' => 'string', 'example' => 'global'],
'resource_type' => ['title' => '资源类型', 'description' => '资源类型,文件类型资源为RT\\_File', 'visibility' => 'Public', 'type' => 'string', 'example' => 'RT_File'],
'resource' => ['title' => '资源', 'description' => '资源ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'fa212***'],
'identity_type' => ['title' => '授予对象类型', 'description' => '授予对象类型,当前支持IT\\_User、IT\\_Group、IT\\_Role', 'visibility' => 'Public', 'type' => 'string', 'example' => 'IT_User'],
'identity_id' => ['title' => '授予对象ID', 'description' => '授予对象ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'af22***'],
'action_list' => [
'title' => '操作列表',
'description' => '操作列表',
'visibility' => 'Public',
'type' => 'array',
'items' => [
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'action' => ['title' => '操作', 'description' => '具体操作,比如FILE.ALL', 'visibility' => 'Public', 'type' => 'string', 'example' => 'FILE.ALL'],
],
'extendType' => 'true',
],
],
'effect' => ['title' => '作用', 'description' => '作用,可填allow、deny', 'visibility' => 'Public', 'type' => 'string', 'example' => 'deny'],
'created_at' => ['title' => '创建时间', 'description' => '创建时间,格式为毫秒时间戳', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1703648502811'],
'updated_at' => ['title' => '修改时间', 'description' => '修改时间,格式为毫秒时间戳', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1703648502811'],
'condition' => ['title' => '条件', 'description' => '条件', 'visibility' => 'Public', '$ref' => '#/components/schemas/PermissionCondition'],
'user_tags' => [
'title' => '自定义标签',
'description' => '自定义标签',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '自定义标签字符串', 'visibility' => 'Public', 'type' => 'string', 'example' => 'user1', 'extendType' => 'true'],
],
],
],
'PermissionCondition' => [
'title' => 'permission condition',
'description' => '条件',
'type' => 'object',
'properties' => [
'ip_equals' => [
'title' => 'ip在里面',
'description' => 'IP地址条件,当IP等于以下列表中其中一个时,此条件成立',
'type' => 'object',
'properties' => [
'client_ip' => [
'title' => 'ip',
'description' => '客户端IP地址',
'type' => 'array',
'items' => ['description' => '具体的IP地址', 'type' => 'string', 'example' => '192.168.1.1'],
],
],
],
'ip_not_equals' => [
'title' => 'ip不在里面',
'description' => 'IP地址条件,当IP不等于以下列表中任意一个时,此条件成立',
'type' => 'object',
'properties' => [
'client_ip' => [
'title' => 'ip',
'description' => '客户端IP地址',
'type' => 'array',
'items' => ['description' => '具体的IP地址', 'type' => 'string', 'example' => '192.168.1.1'],
],
],
],
'string_like' => [
'title' => 'vpc_id在里面',
'description' => '字符串匹配条件,当传入字符串等于以下列表中其中一个时,此条件成立',
'type' => 'object',
'properties' => [
'vpc_id' => [
'title' => 'vpc_id',
'description' => '客户端所在的vpcID作为字符串匹配条件',
'type' => 'array',
'items' => ['description' => '具体VpcID', 'type' => 'string', 'example' => 'vpc-xxx'],
],
],
],
'string_not_like' => [
'title' => 'vpc_id不在里面',
'description' => '字符串匹配条件,当传入字符串不等于以下列表中任意一个时,此条件成立',
'type' => 'object',
'properties' => [
'vpc_id' => [
'title' => 'vpi_id',
'description' => '客户端所在的vpcID作为字符串匹配条件',
'type' => 'array',
'items' => ['description' => '具体VpcID', 'type' => 'string', 'example' => 'vpc-xxx'],
],
],
],
],
],
'Revision' => [
'title' => 'A short description of struct',
'description' => '版本',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => '域id', 'description' => '域id', 'visibility' => 'Public', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['title' => '空间id', 'description' => '空间id', 'visibility' => 'Public', 'type' => 'string', 'example' => '1'],
'file_id' => ['title' => '文件id', 'description' => '文件id', 'visibility' => 'Public', 'type' => 'string', 'example' => '9520943DC264'],
'revision_id' => ['title' => '版本id', 'description' => '版本id', 'visibility' => 'Public', 'type' => 'string', 'example' => '40CB7794C929'],
'revision_name' => ['title' => '版本名', 'description' => '版本名', 'visibility' => 'Public', 'type' => 'string', 'example' => '1.mov'],
'revision_version' => ['title' => '版本号', 'description' => '版本号', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'size' => ['title' => '版本大小', 'description' => '版本大小', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1024'],
'file_extension' => ['title' => '扩展名', 'description' => '扩展名', 'visibility' => 'Public', 'type' => 'string', 'example' => 'mov'],
'created_at' => ['title' => '创建时间', 'description' => '创建时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'updated_at' => ['title' => '修改时间', 'description' => '修改时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'keep_forever' => ['title' => '是否永久保留', 'description' => '是否永久保留', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false'],
'revision_description' => ['title' => '版本描述', 'description' => '版本描述', 'visibility' => 'Public', 'type' => 'string', 'example' => 'aaa'],
'is_latest_version' => ['title' => '是否为最新版本', 'description' => '是否为最新版本', 'visibility' => 'Public', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'crc64_hash' => ['title' => 'crc64', 'description' => 'crc64', 'visibility' => 'Public', 'type' => 'string', 'example' => '3574582125365864471'],
'content_hash' => ['title' => '内容hash', 'description' => '内容hash', 'visibility' => 'Public', 'type' => 'string', 'example' => 'EA4942AA8761213890A5C386F88E6464D2C31CA3'],
'content_hash_name' => ['title' => '内容hash算法名', 'description' => '内容hash算法名', 'visibility' => 'Public', 'type' => 'string', 'example' => 'sha1'],
'thumbnail' => ['title' => '缩略图地址', 'description' => '缩略图地址', 'visibility' => 'Public', 'type' => 'string', 'required' => false, 'example' => 'https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx'."\n"],
'url' => ['title' => '预览地址', 'description' => '预览地址', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx'."\n"],
'download_url' => ['title' => '下载地址', 'description' => '下载地址,ListRevision不返回该字段,GetRevision, UpdateRevision, RestoreRevision返回该字段。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx'."\n"],
'creator_type' => ['title' => '创建者类型', 'description' => '创建者类型', 'visibility' => 'Private', 'type' => 'string'],
'creator_id' => ['title' => '创建者ID', 'description' => '创建者ID', 'visibility' => 'cn', 'type' => 'string'],
'creator_name' => ['title' => '创建者名称', 'description' => '创建者名称', 'visibility' => 'cn', 'type' => 'string'],
],
],
'Role' => [
'title' => '角色',
'description' => '角色',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'role_id' => ['title' => '角色ID', 'description' => '角色ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'f2a***'],
'name' => ['title' => '角色名', 'description' => '角色名', 'visibility' => 'Public', 'type' => 'string', 'example' => '文件预览者'],
'description' => ['title' => '角色描述', 'description' => '角色描述', 'visibility' => 'Public', 'type' => 'string', 'example' => '拥有预览文件权限'],
'manage_resource_type' => ['title' => '管理的资源类型', 'description' => '管理的资源类型,目前支持RT\\_File', 'visibility' => 'Public', 'type' => 'string', 'example' => 'RT_File'],
'creator' => ['title' => '创建者', 'description' => '创建者ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'a23***'],
'created_at' => ['title' => '创建时间', 'description' => '创建时间,格式毫秒时间戳', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1703648502811'],
'updated_at' => ['title' => '上次更新时间', 'description' => '上次更新时间,格式毫秒时间戳', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1703648502811'],
'permissions' => [
'title' => '权限列表',
'description' => '权限列表',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '权限项', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/Permission'],
],
'status' => ['title' => '状态', 'description' => '状态', 'visibility' => 'Public', 'type' => 'string', 'example' => 'enabled'],
],
'parseType' => 'struct',
],
'ShareLink' => [
'title' => '分享',
'description' => '分享',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'share_id' => ['title' => '分享id', 'description' => '分享id', 'visibility' => 'Public', 'type' => 'string', 'example' => '7JQX1FswpQ8'],
'share_pwd' => ['title' => '分享密码', 'description' => '提取码,0-64个字符。长度0表示没有提取码。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'abcF123x'],
'drive_id' => ['title' => '空间id', 'description' => '空间id', 'visibility' => 'Public', 'type' => 'string', 'example' => '1'],
'file_id_list' => [
'title' => '分享父路径文件id列表',
'description' => '分享父路径文件id列表',
'visibility' => 'Public',
'type' => 'array',
'items' => ['visibility' => 'Public', 'type' => 'string', 'example' => '["xx"]', 'extendType' => 'true'],
'example' => '["520b217f13adf4fc24f2191991b1664ce045b393"]',
],
'expiration' => ['title' => '到期时间', 'description' => '失效时间点。'."\n"
.'RFC3339格式,比如:"2020-06-28T11:33:00.000+08:00"。'."\n"
.'永久有效:""', 'visibility' => 'Public', 'type' => 'string', 'example' => '2020-06-28T11:33:00.000+08:00'],
'expired' => ['title' => '是否过期', 'description' => '是否过期', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false'],
'created_at' => ['title' => '创建时间', 'description' => '创建时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'updated_at' => ['title' => '修改时间', 'description' => '修改时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'description' => ['title' => '描述', 'description' => '描述', 'visibility' => 'Public', 'type' => 'string', 'example' => 'videos'],
'share_name' => ['title' => '分享名称', 'description' => '分享名,默认使用第一个文件名', 'visibility' => 'Public', 'type' => 'string', 'example' => 'video-1.MP4'],
'creator' => ['title' => '创建者', 'description' => '创建者', 'visibility' => 'Public', 'type' => 'string', 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
'status' => [
'title' => '状态',
'description' => '状态。'."\n"
.'枚举值如下:'."\n"
.'- disabled(已取消)'."\n"
.'- enabled(有效)',
'visibility' => 'Public',
'type' => 'string',
'enumValueTitles' => ['disabled' => '已取消', 'enabled' => '有效'],
'example' => 'enabled',
],
'preview_count' => ['title' => '预览次数', 'description' => '预览次数', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'save_count' => ['title' => '转存次数', 'description' => '转存次数', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
'download_count' => ['title' => '下载次数', 'description' => '下载次数', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '5'],
'report_count' => ['title' => '被举报次数', 'description' => '被举报次数', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'video_preview_count' => ['title' => '音视频播放次数', 'description' => '音视频播放次数', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
'access_count' => ['title' => '访问次数', 'description' => '访问次数', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '4'],
'disable_preview' => ['title' => '禁止预览分享中的文件', 'description' => '禁止预览分享中的文件', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false'],
'disable_save' => ['title' => '禁止转存分享中的文件', 'description' => '禁止转存分享中的文件', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false'],
'disable_download' => ['title' => '禁止下载分享中的文件', 'description' => '禁止下载分享中的文件', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false'],
'preview_limit' => ['title' => '分享预览次数限制', 'description' => '分享预览次数限制', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'save_limit' => ['title' => '分享转存次数限制', 'description' => '分享转存次数限制', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'download_limit' => ['title' => '分享下载次数限制', 'description' => '分享下载次数限制', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'require_login' => ['title' => '登录后才允许使用分享', 'description' => '登录后才允许使用分享', 'visibility' => 'Private', 'type' => 'boolean', 'example' => 'false'],
'share_all_files' => ['title' => '是否分享整个drive中的文件', 'description' => '是否分享整个drive中的文件', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'true'],
'share_msg' => ['title' => '分享口令', 'description' => '分享口令', 'visibility' => 'Private', 'type' => 'string', 'example' => 'pwd: 123'],
'save_download_limit' => ['title' => '分享转存和下载次数总和限制', 'description' => '分享转存和下载次数总和限制', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'office_editable' => ['title' => '是否允许在线编辑分享的文档', 'description' => '是否允许在线编辑分享的文档', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'true'],
],
],
'Story' => [
'title' => 'A short description of struct',
'description' => '故事',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'story_id' => ['title' => '故事 id', 'description' => '故事 id', 'visibility' => 'Public', 'type' => 'string', 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
'story_type' => ['title' => '故事类型', 'description' => '故事类型。'."\n"
.'由用户创建时指定,见 [CreateStory](~~2367602~~) 和 [CreateCustomizedStory](~~2369338~~)。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'PeopleMemory'],
'story_sub_type' => ['title' => '故事子类型', 'description' => '故事子类型。'."\n"
.'由用户创建时指定,见 [CreateStory](~~2367602~~) 和 [CreateCustomizedStory](~~2369338~~)。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Solo'],
'story_name' => ['title' => '故事名称', 'description' => '故事名称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'test_name'],
'story_start_time' => ['title' => '故事开始时间', 'description' => '故事开始时间。时间格式为 RFC3339。', 'visibility' => 'Public', 'type' => 'string', 'example' => '2021-01-14T10:17:18.102700407+08:00'],
'story_end_time' => ['title' => '故事结束时间', 'description' => '故事结束时间。时间格式为 RFC3339。', 'visibility' => 'Public', 'type' => 'string', 'example' => '2022-01-14T10:17:18.102700407+08:00'],
'created_at' => ['title' => '故事创建时间', 'description' => '故事创建时间。时间格式为 RFC3339。', 'visibility' => 'Public', 'type' => 'string', 'example' => '2022-01-14T10:17:18.102700407+08:00'],
'updated_at' => ['title' => '故事更新时间', 'description' => '故事更新时间。时间格式为 RFC3339。', 'visibility' => 'Public', 'type' => 'string', 'example' => '2022-01-14T10:17:18.102700407+08:00'],
'face_group_ids' => [
'title' => '人脸分组列表',
'description' => '人脸分组列表。'."\n"
.'仅为人物故事类型时有值,其他故事类型或自定义故事无值。',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '人脸分组 id', 'visibility' => 'Public', 'type' => 'string', 'example' => 'Cluster-be377f73-3502-433c-8309-a01e659c128c', 'extendType' => 'true'],
],
'cover_file_id' => ['title' => '故事封面文件 id', 'description' => '故事封面文件 id', 'visibility' => 'Public', 'type' => 'string', 'example' => '63e5e4340f76cb3ead5f40f68163f0f967c1a7bf'],
'cover_file_thumbnail_url' => ['title' => '故事封面文件缩略图', 'description' => '故事封面文件缩略图', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://pds-domain-bucket.oss-cn-hangzhou.aliyuncs.com/Bh1HqdAs%2F1001%2F642a88c26f99cad589904fc8a6b2db6021c6601f%2F642a88c29391c47f221e49e88a21fa9b0a9e5063?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5eGE8nGtYZ59bSnbUODlmsjTttVhpbFpjz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNXD6XXO2qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABVgD3mIAeUoDYKTJrFTPdmAPIrlUUQ1HZstB0ZVHvYByygr3oeitG9FEQ8lcfaZYJOtWRchdgH8tsSwHj2jI1vMeAiLHgbW98SPA3yfN8OR1kLW73uq3LAvekc9Qldz33YTM4JA5MNJzR8x5O6Oe4rY5OMSSVU5F%2Ffr8bJZD%2FXMM%3D&x-oss-access-key-id=STS.NT3XsrXYXBvLoe2rkvBTyiSnD&x-oss-expires=1685966251&x-oss-process=image%2Fresize%2Cw_500&x-oss-signature=XimW6haBxYktKg4cstMfpd%2F2LSoMibj6A%2B7ZqBJcSbQ%3D&x-oss-signature-version=OSS2'],
'story_file_list' => [
'title' => '故事文件列表',
'description' => '故事文件列表',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '文件信息', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/File'],
],
'custom_id' => ['title' => '自定义 id', 'description' => '自定义 id。'."\n"
.'由用户根据自身业务标识。', 'visibility' => 'Private', 'type' => 'string', 'example' => 'test'],
'custom_labels' => [
'title' => '自定义标签',
'description' => '自定义标签。'."\n"
.'用户根据自身业务标记相关的键值对,可用于 FindStories 检索。',
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['description' => '自定义标签', 'visibility' => 'Public', 'type' => 'any', 'example' => 'value'],
],
],
],
'SystemTag' => [
'title' => '标签详细信息。仅开启增值服务图片处理功能有效。',
'description' => '系统AI处理标签。仅当开启增值服务图片处理功能有效。(该数据结构将于2025年2月20日起停止透出)',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'confidence' => ['title' => '标签置信度,取值范围为 0(表示置信度最低)~1(表示置信度最高)。', 'description' => '标签置信度,取值范围为 0(表示置信度最低)~1(表示置信度最高)。', 'visibility' => 'Public', 'type' => 'number', 'format' => 'float', 'example' => '0.98'],
'parent_name' => ['title' => '标签父标签。', 'description' => '标签的父标签名称。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'sport'],
'name' => ['title' => '标签名。', 'description' => '标签名称。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'basketball'],
'tag_level' => ['title' => '标签层级,取之范围大于等于 1。', 'description' => '标签层级,取值范围大于等于 1。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int32', 'example' => '3'],
'source' => ['title' => '解析出标签的来源关键词', 'description' => '解析出标签的来源关键词。', 'visibility' => 'Private', 'type' => 'string', 'example' => 'play basketball'],
'centric_score' => ['title' => '标签的中心值分数,指该标签在图片中是否为主体,取值范围为 0~1。', 'description' => '标签的中心值分数,指该标签在图片中是否为主体,取值范围为 0(主体比重最小)~1(主体比重最大)。', 'visibility' => 'Public', 'type' => 'number', 'format' => 'float', 'example' => '0.877'],
],
],
'Token' => [
'title' => 'A short description of struct',
'description' => '认证成功后返回的对象,包含access_token和refresh_token还有基础用户信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'access_token' => ['title' => '访问凭证', 'description' => '访问凭证', 'visibility' => 'Public', 'type' => 'string', 'example' => 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJjOWI3YTVhYTA0ZDE0YWUzODY3ZmRjODg2ZmEwMWRhNCIsImN1c3RvbUpzb24iOiJ7XCJjbGllbnRJZFwiOlwiMjVkelgzdmJZcWt0Vnh5WFwiLFwiZG9tYWluSWRcIjpcImJqMjlcIixcInNjb3BlXCI6W1wiRFJJVkUuQUxMXCIsXCJTSEFSRS5BTExcIixcIkZJTEUuQUxMXCIsXCJVU0VSLkFMTFwiLFwiVklFVy5BTExcIixcIlNUT1JBR0UuQUxMXCIsXCJTVE9SQUdFRklMRS5MSVNUXCIsXCJCQVRDSFwiLFwiT0FVVEguQUxMXCIsXCJJTUFHRS5BTExcIixcIklOVklURS5BTExcIixcIkFDQ09VTlQuQUxMXCJdLFwicm9sZVwiOlwidXNlclwiLFwicmVmXCI6XCJodHRwczovL3d3dy5hbGl5dW5kcml2ZS5jb20vXCIsXCJkZXZpY2VfaWRcIjpcImIyODIwNWU1YzU5NzRjY2JiODI3MDNiNjhkYjhjNDUxXCJ9IiwiZXhwIjoxNjQ4NjE0NDkzLCJpYXQiOjE2NDg2MDcyMzN9.d3HVLvv_LFw2QhPrhvjH_kICWQJX9sKKt7NjQEqI_xE2JO_b7D8rPsFTZz93PLvZ7MhCmudTjGImUpd-ehFnI4Go-1S7BGaKaHFILvP-sWy18Wpikowjxx9mSbzBM_cO6D1LI-kyYhXKWHgVdADfVIPniTDA7-ffhUpi7cAebEs', 'backendName' => 'access_token'],
'refresh_token' => ['title' => '刷新凭证', 'description' => '刷新凭证', 'visibility' => 'Public', 'type' => 'string', 'example' => '060e78d36afb4879b51e4264e9541c16', 'backendName' => 'refresh_token'],
'expires_in' => ['title' => '凭证有效期', 'description' => '凭证有效期', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '3600', 'backendName' => 'expires_in'],
'token_type' => [
'title' => '凭证类型',
'description' => '凭证类型',
'visibility' => 'Public',
'type' => 'string',
'enumValueTitles' => ['Bearer' => 'Bearer'],
'example' => 'Bearer',
'backendName' => 'token_type',
],
'user_id' => ['title' => '用户ID', 'description' => '用户ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'DING-xxxxx', 'backendName' => 'user_id'],
'user_name' => ['title' => '用户名', 'description' => '用户名', 'visibility' => 'Public', 'type' => 'string', 'example' => 'pdsuser', 'backendName' => 'user_name'],
'avatar' => ['title' => '用户头像', 'description' => '用户头像', 'visibility' => 'Public', 'type' => 'string', 'example' => 'aliyunpds.com/a.jpg', 'backendName' => 'avatar'],
'nick_name' => ['title' => '用户昵称', 'description' => '用户昵称', 'visibility' => 'Public', 'type' => 'string', 'example' => 'pdsuser', 'backendName' => 'nick_name'],
'default_drive_id' => ['title' => '用户默认空间ID', 'description' => '用户默认空间ID', 'visibility' => 'Public', 'type' => 'string', 'example' => '1', 'backendName' => 'default_drive_id'],
'role' => ['title' => '用户角色', 'description' => '用户角色', 'visibility' => 'Public', 'type' => 'string', 'example' => 'admin', 'backendName' => 'role'],
'status' => ['title' => '用户状态', 'description' => '用户状态', 'visibility' => 'Public', 'type' => 'string', 'example' => 'enabled', 'backendName' => 'status'],
'expire_time' => ['title' => '凭证过期时间', 'description' => '凭证过期时间', 'visibility' => 'Public', 'type' => 'string', 'example' => '2019-09-01T06:57:48.813Z', 'backendName' => 'expireTime'],
'is_first_login' => ['title' => '是否首次登录', 'description' => '是否首次登录', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false', 'backendName' => 'isFirstLogin'],
'device_id' => ['title' => '登录设备ID', 'description' => '通过oauth device flow绑定的设备id', 'visibility' => 'Public', 'type' => 'string', 'example' => '8574ecc3d4904dc095cc49202e74db94', 'backendName' => 'deviceId'],
'device_name' => ['title' => '登录设备名称', 'description' => '通过oauth device flow绑定的设备名', 'visibility' => 'Public', 'type' => 'string', 'example' => '4683C25F', 'backendName' => 'deviceName'],
'domain_id' => ['title' => '域ID', 'description' => '域ID', 'visibility' => 'Public', 'type' => 'string', 'example' => 'bj1', 'backendName' => 'domain_id'],
'default_sbox_drive_id' => ['title' => '用户默认保险箱ID', 'description' => '用户默认保险箱ID', 'visibility' => 'Public', 'type' => 'string', 'example' => '1'],
'user_data' => [
'title' => '用户自定义数据,格式为json,可用于配置项、少量临时数据等存储,不超过1K',
'description' => '用户自定义数据',
'visibility' => 'Public',
'type' => 'object',
'additionalProperties' => ['visibility' => 'Public', 'type' => 'string'],
],
'pin_setup' => ['title' => '用户是否设置过保险箱密码', 'description' => '用户是否设置过保险箱密码', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false'],
'need_rp_verify' => ['title' => '用户是否需要进行实人认证', 'description' => '用户是否需要进行实人认证', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false'],
'state' => ['title' => '临时权限,用于登录成功后设置密码', 'description' => '临时权限,用于登录成功后设置密码', 'visibility' => 'Public', 'type' => 'string', 'example' => 'klafhjas-asdasd-asd-as-d-asd-asd-asdasd'],
'exist_link' => [
'title' => '当前用户已存在的登录方式',
'description' => '当前用户已存在的登录方式',
'visibility' => 'Public',
'type' => 'array',
'items' => ['visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/LinkInfo'],
],
'need_link' => ['title' => '是否需要绑定账号', 'description' => '是否需要绑定账号', 'visibility' => 'Public', 'type' => 'boolean', 'example' => 'false'],
],
],
'UncompressedFileInfo' => [
'title' => 'A short description of struct',
'description' => '解压文件信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'drive_id' => ['title' => '网盘id', 'description' => '网盘id', 'visibility' => 'Public', 'type' => 'string', 'example' => '5060'],
'file_id' => ['title' => '文件id', 'description' => '文件id', 'visibility' => 'Public', 'type' => 'string', 'example' => '66972349b2b12fa309a143fb9db29647b2ddabfd'],
'is_folder' => [
'title' => '是否为文件夹',
'description' => '是否为文件夹',
'visibility' => 'Public',
'type' => 'boolean',
'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
'example' => 'true',
],
'name' => ['title' => '文件名', 'description' => '文件名', 'visibility' => 'Public', 'type' => 'string', 'example' => '1.mov'],
'size' => ['title' => '文件大小', 'description' => '文件大小', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '218052'],
'updated_at' => ['title' => '更新时间', 'description' => '更新时间', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1721368014000'],
'items' => [
'title' => '子文件',
'description' => '子文件',
'visibility' => 'Public',
'type' => 'array',
'items' => ['description' => '解压文件信息', 'visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/UncompressedFileInfo'],
],
],
],
'UploadFormInfo' => [
'title' => 'A short description of struct',
'description' => '表单上传信息',
'type' => 'object',
'properties' => [
'endpoint' => ['title' => '数据存储地址', 'type' => 'string'],
'form_data' => [
'title' => '表单上传信息',
'type' => 'object',
'additionalProperties' => ['type' => 'string'],
],
],
],
'UploadPartInfo' => [
'title' => '分段信息',
'description' => '分段信息',
'type' => 'object',
'properties' => [
'part_number' => ['title' => '段编号', 'description' => '段编号', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '1'],
'part_size' => ['title' => '分段大小', 'description' => '此字段已废弃,请勿使用。', 'type' => 'integer', 'format' => 'int64', 'example' => '1024'],
'upload_url' => ['title' => '上传地址', 'description' => '上传地址,默认有效时间15分钟,如果链接超时,需要重新调用GetUploadUrl进行获取'."\n"
.'(开启智能数据域名后,根据请求会自适应返回internal_upload_url值在该字段内)', 'type' => 'string', 'required' => true, 'example' => 'https://data.aliyunpds.com/xxx/xxx?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx&partNumber=1&uploadId=0CC175B9C0F1B6A831C399E269772661'],
'internal_upload_url' => ['title' => '内网上传地址', 'description' => '内网上传地址,用于VPC网络内部访问'."\n"
.'(开启智能数据域名后将不再使用该字段,根据请求该参数会自适应返回在upload_url字段值内,如需使用该字段请联系PDS技术支持)', 'type' => 'string', 'example' => 'https://data-vpc.aliyunpds.com/xxx/xxx?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx&partNumber=1&uploadId=0CC175B9C0F1B6A831C399E269772661'."\n"],
'etag' => ['title' => 'etag', 'description' => '此字段已废弃,请勿使用。', 'type' => 'string', 'example' => '"0CC175B9C0F1B6A831C399E269772661"'],
'parallel_sha1_ctx' => [
'title' => '上一个分段的sha1上下文',
'description' => '上一个分段的sha1上下文,该字段只在多分片并发上传的模式下有效',
'type' => 'object',
'properties' => [
'h' => [
'title' => '上一个数据块SHA1的第1-5个32位变量',
'description' => '上一个数据块SHA1的第1-5个32位变量,该字段只在多分片并发上传的模式下有效',
'type' => 'array',
'items' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
],
'part_offset' => ['title' => '到上一个数据块为止的总长度,字节,需要为64的倍数', 'description' => '到上一个数据块为止的总长度,字节,需要为64的倍数,该字段只在多分片并发上传的模式下有效', 'type' => 'integer', 'format' => 'int64', 'example' => '10240'],
],
],
'upload_form_info' => ['title' => '表单上传信息', 'description' => '表单上传信息', '$ref' => '#/components/schemas/UploadFormInfo'],
'parallel_sha256_ctx' => [
'title' => '上一个分段的sha256上下文',
'description' => '上一个分段的sha256上下文',
'type' => 'object',
'properties' => [
'h' => [
'title' => '上一个数据块SHA256的第1-8个32位变量',
'description' => '上一个数据块SHA256的第1-8个32位变量',
'type' => 'array',
'items' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
],
'part_offset' => ['title' => '到上一个数据块为止的总长度,字节,需要为64的倍数', 'description' => '到上一个数据块为止的总长度,字节,需要为64的倍数', 'type' => 'integer', 'format' => 'int64'],
],
],
],
],
'User' => [
'title' => '用户',
'description' => '用户',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => '域id', 'description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'user_id' => ['title' => '用户id', 'description' => '用户id', 'type' => 'string', 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
'avatar' => ['title' => '头像', 'description' => '头像', 'type' => 'string', 'example' => 'http://aa.com/1.jpg'],
'created_at' => ['title' => '创建时间', 'description' => '创建时间,格林威治时间1970年01月01日00时00分00秒起至现在的毫秒数', 'type' => 'integer', 'format' => 'int64', 'example' => '1639762579768'],
'updated_at' => ['title' => '修改时间', 'description' => '修改时间,格林威治时间1970年01月01日00时00分00秒起至现在的毫秒数', 'type' => 'integer', 'format' => 'int64', 'example' => '1639762579768'],
'email' => ['title' => '邮箱', 'description' => '邮箱', 'type' => 'string', 'example' => 'a@aliyunpds.com'],
'nick_name' => ['title' => '昵称', 'description' => '昵称', 'type' => 'string', 'example' => '001'],
'phone' => ['title' => '手机号', 'description' => '手机号', 'type' => 'string', 'example' => '13900001111'],
'role' => [
'title' => '角色',
'description' => '角色'."\n"
."\n"
.'- superadmin(超级管理员)'."\n"
."\n"
.'- admin(管理员)'."\n"
."\n"
.'- user(普通用户)',
'type' => 'string',
'enumValueTitles' => ['superadmin' => '超级管理员', 'admin' => '管理员', 'user' => '普通用户'],
'example' => 'user',
],
'status' => [
'title' => '状态',
'description' => '状态'."\n"
."\n"
.'- disabled(禁止)'."\n"
."\n"
.'- enabled(使能)',
'type' => 'string',
'enumValueTitles' => ['disabled' => '禁止', 'enabled' => '使能'],
'example' => 'enabled',
],
'user_name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'pds'],
'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'vipuser'],
'default_drive_id' => ['title' => '缺省空间id', 'description' => '缺省空间id', 'type' => 'string', 'example' => '1'],
'creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => 'user1'],
'last_login_time' => ['type' => 'integer', 'format' => 'int64'],
'last_refresh_token_time' => ['type' => 'integer', 'format' => 'int64'],
'user_data' => [
'title' => '用户自定义数据',
'description' => '用户自定义数据',
'type' => 'object',
'additionalProperties' => ['type' => 'string', 'description' => ''],
],
],
],
'UserExtraItem' => [
'title' => 'A short description of struct',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => 'Domain ID', 'type' => 'string', 'example' => 'hz999'],
'user_id' => ['title' => '用户 ID', 'type' => 'string', 'example' => 'ccpuserid'],
'avatar' => ['title' => '头像', 'type' => 'string', 'example' => 'http://a.b.c/ccp.jpg'],
'created_at' => ['title' => '用户创建时间', 'type' => 'string', 'example' => '1567407718386'],
'updated_at' => ['title' => '用户修改时间', 'type' => 'string', 'example' => '1567407718386'],
'email' => ['title' => '邮箱', 'type' => 'string', 'example' => '123@ccp.com'],
'nick_name' => ['title' => '昵称', 'type' => 'string', 'example' => 'abc'],
'phone' => ['title' => '电话', 'type' => 'string', 'example' => '13700000000'],
'phone_region' => ['title' => '国家编码', 'type' => 'string'],
'role' => ['title' => '角色', 'type' => 'string', 'example' => 'user'],
'status' => ['title' => '用户状态', 'type' => 'string', 'example' => 'enabled'],
'user_name' => ['title' => '用户名称', 'type' => 'string', 'example' => 'name'],
'description' => ['title' => '用户备注信息', 'type' => 'string', 'example' => 'ccp team user'],
'default_drive_id' => ['title' => '默认 Drive ID', 'type' => 'string', 'example' => '123'],
'deny_change_password_by_self' => ['title' => '禁止用户自行修改密码', 'type' => 'boolean'],
'need_change_password_next_login' => ['title' => '下次登录强制修改密码', 'type' => 'boolean'],
'creator' => ['title' => 'creator', 'type' => 'string', 'example' => 'system'],
'expired_at' => ['title' => '用户过期时间', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'is_sync' => ['title' => 'is_sync', 'type' => 'boolean'],
'default_location' => ['title' => 'default_location', 'type' => 'string'],
'last_login_time' => ['title' => 'last_login_time', 'type' => 'integer', 'format' => 'int64'],
'path_status' => ['title' => 'path 开启状态', 'type' => 'string'],
'default_drive' => ['$ref' => '#/components/schemas/BaseDriveResponse'],
'last_refresh_token_time' => ['type' => 'integer', 'format' => 'int64'],
'user_data' => [
'title' => '用户自定义数据,格式为json,可用于配置项、少量临时数据等存储,不超过1K',
'type' => 'object',
'additionalProperties' => ['type' => 'any'],
],
'permission' => [
'title' => 'permission',
'type' => 'object',
'additionalProperties' => ['$ref' => '#/components/schemas/IDPermission'],
],
'parent_group' => [
'title' => 'parent_group',
'type' => 'array',
'items' => ['$ref' => '#/components/schemas/BaseDriveResponse'],
],
'account' => [
'title' => 'account',
'type' => 'array',
'items' => ['$ref' => '#/components/schemas/AccountLinkInfo'],
],
],
],
'UserTag' => [
'title' => 'A short description of struct',
'description' => '用户 tag',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'key' => ['title' => 'key', 'description' => 'key,不能为空,不能包含 #。单个元素中的 key 和 value 总长度不能超过 2000 字节', 'visibility' => 'Public', 'type' => 'string', 'required' => true, 'example' => 'topic'],
'value' => ['title' => 'value', 'description' => 'value', 'visibility' => 'Public', 'type' => 'string', 'required' => true],
],
],
'VideoMediaAudioStream' => [
'cloudType' => 'public',
'branchId' => 3105503,
'branchName' => 'master',
'paramExtraInfo' => ['$.components.schemas.VideoMediaAudioStream.properties.code_name.description' => '音频编码模式。', '$.components.schemas.VideoMediaAudioStream.properties.bit_rate.description' => '音频比特率,单位为比特每秒(bps)。', '$.components.schemas.VideoMediaAudioStream.properties.duration.description' => '音频时长,单位为秒(s)。', '$.components.schemas.VideoMediaAudioStream.properties.code_name.example' => 'aac', '$.components.schemas.VideoMediaAudioStream.description' => '音频流信息。仅开启增值服务图片处理功能或视频转码功能有效。', '$.components.schemas.VideoMediaAudioStream.properties.bit_rate.example' => '129280', '$.components.schemas.VideoMediaAudioStream.properties.duration.example' => '7704.573000'],
'title' => '音频流信息。仅开启增值服务图片处理功能或视频转码功能有效。',
'description' => '音频流信息。仅开启增值服务图片处理功能或视频转码功能有效。',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'duration' => ['title' => '音频时长,单位为秒(s)。', 'description' => '音频时长,单位为秒(s)。', 'visibility' => 'Public', 'type' => 'string', 'example' => '7704.573000'],
'bit_rate' => ['title' => '音频比特率,单位为比特每秒(bps)。', 'description' => '音频比特率,单位为比特每秒(bps)。', 'visibility' => 'Public', 'type' => 'string', 'example' => '129280'],
'code_name' => ['title' => '音频编码模式。', 'description' => '音频编码模式。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'aac'],
],
],
'VideoMediaMetadata' => [
'title' => '音视频信息。仅开启增值服务图片处理功能或视频转码功能有效。',
'description' => '视频元数据',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'time' => ['title' => '拍摄时间,RFC3339 格式。', 'description' => '拍摄时间,RFC3339 格式。', 'visibility' => 'Private', 'type' => 'string', 'example' => '2006-01-02T15:04:05.000Z07:00'],
'width' => ['title' => '视频画面宽度,单位为像素(px)。', 'description' => '视频画面宽度,单位为像素(px)。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1920'],
'height' => ['title' => '视频画面高度,单位为像素(px)。', 'description' => '视频画面高度,单位为像素(px)。', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1080'],
'location' => ['title' => 'GPS 经纬度信息。', 'description' => 'GPS 经纬度信息。', 'visibility' => 'Private', 'type' => 'string', 'example' => '30.185453,120.218522'],
'country' => ['title' => '国家或地区。', 'description' => '国家或地区。', 'visibility' => 'Private', 'type' => 'string', 'example' => 'China'],
'province' => ['title' => '省。', 'description' => '省。', 'visibility' => 'Private', 'type' => 'string', 'example' => 'Zhejiang'],
'city' => ['title' => '城市。', 'description' => '城市。', 'visibility' => 'Private', 'type' => 'string', 'example' => 'Hangzhou'],
'district' => ['title' => '区。', 'description' => '区。', 'visibility' => 'Private', 'type' => 'string', 'example' => 'Xihu'],
'township' => ['title' => '街道。', 'description' => '街道。', 'visibility' => 'Private', 'type' => 'string', 'example' => 'Xihu'],
'address_line' => ['title' => '完整地址。', 'description' => '完整地址。', 'visibility' => 'Private', 'type' => 'string', 'example' => 'Zhejiang hangzhou xihu'],
'video_media_video_stream' => [
'title' => '视频流源信息。',
'description' => '视频流源信息。',
'visibility' => 'Public',
'type' => 'array',
'items' => ['visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/VideoMediaVideoStream'],
],
'video_media_audio_stream' => [
'title' => '音频流源信息。',
'description' => '音频流源信息。',
'visibility' => 'Public',
'type' => 'array',
'items' => ['visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/VideoMediaAudioStream'],
],
],
],
'VideoMediaVideoStream' => [
'cloudType' => 'public',
'branchId' => 2824060,
'branchName' => 'master',
'paramExtraInfo' => ['$.components.schemas.VideoMediaVideoStream.properties.duration.example' => '22.88', '$.components.schemas.VideoMediaVideoStream.properties.frame_count.description' => '视频帧数。', '$.components.schemas.VideoMediaVideoStream.properties.bitrate.description' => '视频流比特率,单位为比特率每秒(bps)。', '$.components.schemas.VideoMediaVideoStream.properties.frame_count.example' => '90', '$.components.schemas.VideoMediaVideoStream.properties.duration.description' => '视频流持续时长,单位为秒(s)。', '$.components.schemas.VideoMediaVideoStream.description' => '视频流信息。仅开启增值服务图片处理功能或视频转码功能有效。', '$.components.schemas.VideoMediaVideoStream.properties.code_name.description' => '视频编码模式。', '$.components.schemas.VideoMediaVideoStream.properties.bitrate.example' => '108420', '$.components.schemas.VideoMediaVideoStream.properties.code_name.example' => 'h264'],
'title' => '视频流信息。仅开启增值服务图片处理功能或视频转码功能有效。',
'description' => '视频流信息。仅开启增值服务图片处理功能或视频转码功能有效。',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'duration' => ['title' => '视频流持续时长,单位为秒(s)。', 'description' => '视频流持续时长,单位为秒(s)。', 'visibility' => 'Public', 'type' => 'string', 'example' => '22.88'],
'bitrate' => ['title' => '视频流比特率,单位为比特率每秒(bps)。', 'description' => '视频流比特率,单位为比特率每秒(bps)。', 'visibility' => 'Public', 'type' => 'string', 'example' => '108420'],
'code_name' => ['title' => '视频编码模式。', 'description' => '视频编码模式。', 'visibility' => 'Public', 'type' => 'string', 'example' => 'h264'],
'frame_count' => ['title' => '视频帧数。', 'description' => '视频帧数。', 'visibility' => 'Public', 'type' => 'string', 'example' => '90'],
],
],
'VideoPreviewPlayInfo' => [
'title' => '播放信息',
'description' => '播放信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'category' => ['title' => '所属分类', 'description' => '所属分类', 'visibility' => 'Public', 'type' => 'string', 'example' => 'quick_video'],
'meta' => [
'title' => '视频元信息',
'description' => '视频元信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'duration' => ['title' => '视频长度', 'description' => '视频长度', 'visibility' => 'Public', 'type' => 'number', 'format' => 'double', 'example' => '4.2898'],
'width' => ['title' => '视频宽度', 'description' => '视频宽度', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1920'],
'height' => ['title' => '视频高度', 'description' => '视频高度', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1080'],
],
],
'live_transcoding_task_list' => [
'title' => '播放信息',
'description' => '播放信息',
'visibility' => 'Public',
'type' => 'array',
'items' => [
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'template_id' => ['title' => '模板id', 'description' => '模板id', 'visibility' => 'Public', 'type' => 'string', 'example' => '264_480p'],
'status' => ['title' => '状态', 'description' => '状态。'."\n"
.'枚举值如下:'."\n"
.'- finished, 索引完成,可以获取到url'."\n"
.'- running, 正在索引,请稍等片刻重试'."\n"
.'- failed, 转码失败,请检查是否媒体文件,如果有疑问请联系客服', 'visibility' => 'Public', 'type' => 'string', 'example' => 'finished'],
'url' => ['title' => '播放地址', 'description' => '播放地址', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://example.data.aliyunpds.com/lt/xxx/media.m3u8'],
'keep_original_resolution' => [
'title' => '是否保持原分辨率',
'description' => '是否保持原分辨率',
'visibility' => 'Public',
'type' => 'boolean',
'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
'example' => 'true',
],
'preview_url' => ['title' => '视频片段预览播放地址', 'description' => '视频片段预览播放地址', 'visibility' => 'Private', 'type' => 'string', 'example' => 'https://example.data.aliyunpds.com/lt/xxx/ref_task.m3u8'],
],
'extendType' => 'true',
],
],
'quick_video_list' => [
'title' => '播放信息',
'description' => '播放信息',
'visibility' => 'Public',
'type' => 'array',
'items' => [
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'template_id' => ['title' => '模板id', 'description' => '模板id', 'visibility' => 'Public', 'type' => 'string', 'example' => '264_480p'],
'status' => ['title' => '状态', 'description' => '枚举值如下:'."\n"
.'- finished, 索引完成,可以获取到url'."\n"
.'- running, 正在索引,请稍等片刻重试'."\n"
.'- failed, 转码失败,请检查是否媒体文件,如果有疑问请联系客服', 'visibility' => 'Public', 'type' => 'string', 'example' => 'finished'],
'url' => ['title' => '播放地址', 'description' => '播放地址', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://example.data.aliyunpds.com/qv/xxx/media.m3u8'],
'preview_url' => ['title' => '视频片段预览播放地址', 'description' => '视频片段预览播放地址', 'visibility' => 'Private', 'type' => 'string', 'example' => 'https://example.data.aliyunpds.com/qv/xxx/ref_task.m3u8'],
],
'extendType' => 'true',
],
],
'offline_video_transcoding_list' => [
'title' => '离线转码播放信息',
'description' => '离线转码播放信息',
'visibility' => 'Public',
'type' => 'array',
'items' => [
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'template_id' => ['title' => '模板 ID', 'description' => '模板 ID', 'visibility' => 'Public', 'type' => 'string', 'example' => '264_1080p'],
'status' => ['title' => '任务状态', 'description' => '任务状态', 'visibility' => 'Public', 'type' => 'string', 'example' => 'finished'],
'keep_original_resolution' => [
'title' => '转码视频是否和源视频同分辨率',
'description' => '转码视频是否和源视频同分辨率',
'visibility' => 'Public',
'type' => 'boolean',
'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
'example' => 'true',
],
'url' => ['title' => '播放地址', 'description' => '播放地址', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://example.data.aliyunpds.com/xxx/master.mp4'."\n"],
],
'extendType' => 'true',
],
],
'live_transcoding_subtitle_task_list' => [
'title' => '边转边播字幕信息',
'description' => '边转边播字幕信息',
'visibility' => 'Public',
'type' => 'array',
'items' => ['visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/VideoPreviewSubtitleInfo'],
],
'quick_video_subtitle_list' => [
'title' => '快速转码字幕信息',
'description' => '快速转码字幕信息',
'visibility' => 'Public',
'type' => 'array',
'items' => ['visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/VideoPreviewSubtitleInfo'],
],
'offline_video_transcoding_subtitle_list' => [
'title' => '离线转码字幕信息',
'description' => '离线转码字幕信息',
'visibility' => 'Public',
'type' => 'array',
'items' => ['visibility' => 'Public', 'extendType' => 'true', '$ref' => '#/components/schemas/VideoPreviewSubtitleInfo'],
],
'master_url' => ['title' => 'master m3u8 的播放链接', 'description' => 'master m3u8 的播放链接', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://pds-xxx-valueadd.oss-xxx.aliyuncs.com/qv/xxx/master.m3u8'],
],
],
'VideoPreviewPlayMeta' => [
'title' => '播放元信息',
'description' => '播放元信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'meta' => [
'title' => '视频元信息',
'description' => '视频元信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'duration' => ['title' => '视频长度', 'description' => '视频长度', 'visibility' => 'Public', 'type' => 'number', 'format' => 'double', 'example' => '10'],
'width' => ['title' => '视频宽度', 'description' => '视频宽度', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '1280'],
'height' => ['title' => '视频高度', 'description' => '视频高度', 'visibility' => 'Public', 'type' => 'integer', 'format' => 'int64', 'example' => '720'],
],
],
'live_transcoding_task_list' => [
'title' => '边转边播任务状态',
'description' => '边转边播任务状态',
'visibility' => 'Public',
'type' => 'array',
'items' => [
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'template_id' => ['title' => '模板id', 'description' => '模板id', 'visibility' => 'Public', 'type' => 'string', 'example' => '264_720p'],
'status' => [
'title' => '状态。 枚举值如下: finished, 索引完成,可以获取到url running, 正在索引,请稍等片刻重试 failed, 转码失败,请检查是否媒体文件,如果有疑问请联系客服',
'description' => '状态。'."\n"
.'枚举值如下:'."\n"
.'- finished, 索引完成,可以获取到url'."\n"
.'- running, 正在索引,请稍等片刻重试'."\n"
.'- failed, 转码失败,请检查是否媒体文件,如果有疑问请联系客服',
'visibility' => 'Public',
'type' => 'string',
'enumValueTitles' => ['running' => 'running', 'finished' => 'finished', 'failed' => 'failed'],
'example' => 'finished',
],
'keep_original_resolution' => [
'title' => '是否保持原分辨率',
'description' => '是否保持原分辨率',
'visibility' => 'Public',
'type' => 'boolean',
'enumValueTitles' => ['true' => 'true', 'false' => 'false'],
'example' => 'true',
],
],
'extendType' => 'true',
],
],
'category' => ['title' => '所属分类', 'description' => '所属分类', 'visibility' => 'Public', 'type' => 'string', 'example' => 'live_transcoding'],
'quick_video_list' => [
'title' => '快速转码任务状态',
'description' => '快速转码任务状态',
'visibility' => 'Public',
'type' => 'array',
'items' => [
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'template_id' => ['title' => '模板id', 'description' => '模板id', 'visibility' => 'Public', 'type' => 'string', 'example' => '264_720p'],
'status' => ['title' => '状态。 枚举值如下: finished, 索引完成,可以获取到url running, 正在索引,请稍等片刻重试 failed, 转码失败,请检查是否媒体文件,如果有疑问请联系客服', 'description' => '状态。 枚举值如下: finished, 索引完成,可以获取到url running, 正在索引,请稍等片刻重试 failed, 转码失败,请检查是否媒体文件,如果有疑问请联系客服', 'visibility' => 'Public', 'type' => 'string', 'example' => 'finished'],
],
'extendType' => 'true',
],
],
'offline_video_transcoding_list' => [
'title' => '离线转码任务状态',
'description' => '离线转码任务状态',
'visibility' => 'Public',
'type' => 'array',
'items' => [
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'template_id' => ['title' => '模板id', 'description' => '模板id', 'visibility' => 'Public', 'type' => 'string', 'example' => '264_720p'],
'status' => ['title' => '状态。 枚举值如下: finished, 索引完成,可以获取到url running, 正在索引,请稍等片刻重试 failed, 转码失败,请检查是否媒体文件,如果有疑问请联系客服', 'description' => '状态。 枚举值如下: finished, 索引完成,可以获取到url running, 正在索引,请稍等片刻重试 failed, 转码失败,请检查是否媒体文件,如果有疑问请联系客服', 'visibility' => 'Public', 'type' => 'string', 'example' => 'finished'],
'keep_original_resolution' => ['title' => '是否保持原分辨率', 'description' => '是否保持原分辨率', 'visibility' => 'Public', 'type' => 'string', 'example' => 'true'],
],
'extendType' => 'true',
],
],
],
],
'VideoPreviewSubtitleInfo' => [
'title' => '字幕任务信息',
'description' => '字幕任务信息',
'visibility' => 'Public',
'type' => 'object',
'properties' => [
'language' => ['title' => '字幕语言', 'description' => '字幕语言', 'visibility' => 'Public', 'type' => 'string', 'example' => 'en'],
'status' => [
'title' => '字幕任务状态',
'description' => '字幕任务状态',
'visibility' => 'Public',
'type' => 'string',
'enumValueTitles' => ['finished' => 'finished', 'failed' => 'failed'],
'example' => 'finished',
],
'url' => ['title' => '字幕 URL', 'description' => '字幕 URL', 'visibility' => 'Public', 'type' => 'string', 'example' => 'https://example.data.aliyunpds.com/lt/A05EF408DAB5D3F57C94F67658C99C406EFCA7DD/subtitle/subtitle_0.vtt'],
],
],
],
],
'apis' => [
'AddGroupMember' => [
'summary' => '添加成员到群组。',
'path' => '/v2/group/add_member',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'group_id' => ['description' => '目标群组ID,表示将成员添加到目标群组下', 'type' => 'string', 'required' => true, 'example' => '3e5***2c2'],
'member_type' => ['description' => '成员类型,当前只能添加用户,群组可以在创建时直接选择加入的父群组'."\n"
."\n"
.'- user(用户)'."\n"
."\n\n"
.'注意:群组只能作为一个群组的成员,不能同时成为多个群组的成员。 用户可以同时成为多个群组的成员', 'type' => 'string', 'required' => true, 'example' => 'user'],
'member_id' => ['description' => '成员ID, 当member\\_type为user时,此字段填对应的userID。 ', 'type' => 'string', 'required' => true, 'example' => '2e4***1b1'],
],
'required' => false,
],
],
],
'responses' => [
204 => [
'headers' => [],
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [],
],
],
],
'title' => '添加群组成员',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'AddStoryFiles' => [
'summary' => '给指定故事添加文件。',
'path' => '/v2/image/add_story_files',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'story_id' => ['description' => '故事 id', 'type' => 'string', 'required' => true, 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
'files' => [
'description' => '文件列表',
'type' => 'array',
'items' => [
'description' => '文件信息',
'type' => 'object',
'properties' => [
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '63e5e4340f76cb3ead5f40f68163f0f967c1a7bf'],
'revision_id' => ['description' => '版本 id', 'type' => 'string', 'required' => false, 'example' => '642a88dd06e49d9c0a14411ebae606f70edd9a59'],
],
'required' => false,
],
'required' => false,
'maxItems' => 100,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'example' => '1'],
'story_id' => ['description' => '故事 id', 'type' => 'string', 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
'files' => [
'description' => '文件列表',
'type' => 'array',
'items' => ['description' => '添加到故事中的文件信息', '$ref' => '#/components/schemas/AddStoryFile'],
],
'request_id' => ['type' => 'string', 'description' => ''],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '故事中添加文件',
'description' => '**请确保在使用该接口前,已充分了解 PDS 的收费方式和[价格](~~425220~~)**。'."\n"
."\n"
.'使用此功能须开通增值服务图片处理功能。'."\n"
."\n"
.'用户在创建故事后,可以手动给指定故事添加想要的文件。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"drive_id\\": \\"1\\",\\n \\"story_id\\": \\"9132e0d8-fe92-4e56-86c3-f5f112308003\\",\\n \\"files\\": [\\n {\\n \\"file_id\\": \\"63e5e4340f76cb3ead5f40f68163f0f967c1a7bf\\",\\n \\"revision_id\\": \\"642a88dd06e49d9c0a14411ebae606f70edd9a59\\",\\n \\"error_code\\": \\"\\",\\n \\"error_message\\": \\"\\"\\n }\\n ],\\n \\"request_id\\": \\"\\"\\n}","type":"json"}]',
],
'ArchiveFiles' => [
'summary' => '文件打包下载。',
'path' => '/v2/file/archive_files',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'paid'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => '域 id。', 'description' => '域id', 'type' => 'string', 'required' => true, 'example' => 'bj1'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'title' => '请求体参数。',
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'share_id' => ['title' => '分享 id,当打包分享链接的文件时必填。', 'description' => '分享 id,当打包分享链接的文件时必填。', 'type' => 'string', 'required' => false, 'example' => '7JQX1FswpQ8'],
'drive_id' => ['title' => '文件所属空间 id ,与分享 id 至少存在一个。', 'description' => '文件所属空间 id ,与分享 id 至少存在一个。', 'type' => 'string', 'required' => false, 'example' => '1'],
'file_ids' => [
'title' => '待打包文件列表',
'description' => '待打包文件列表',
'type' => 'array',
'items' => ['title' => '待打包文件/文件夹 id。', 'description' => '待打包文件/文件夹 id。', 'type' => 'string', 'required' => true, 'example' => '63e5e4340f76cb3ead5f40f68163f0f967c1a7bf'],
'required' => true,
],
'name' => ['title' => '打包生成的文件名称,按照 utf8 编码。', 'description' => '打包生成的文件名称,按照 utf8 编码。', 'type' => 'string', 'required' => true, 'example' => 'test_archive_files.zip'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => '',
'description' => '',
'type' => 'object',
'properties' => [
'async_task_id' => ['title' => '异步任务 id。', 'description' => '异步任务 id。', 'type' => 'string', 'required' => true, 'example' => '000e89fb-cf8f-11e9-8ab4-b6e980803a3b'],
],
],
],
],
'title' => '文件打包下载',
'description' => '文件打包下载接口, 返回异步任务 id, 需要使用 GetAsyncTask 方法获取任务执行状态。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"async_task_id\\": \\"000e89fb-cf8f-11e9-8ab4-b6e980803a3b\\"\\n}","type":"json"}]',
],
'AssignRole' => [
'summary' => '当前支持将用户设置为团队管理员角色。',
'path' => '/v2/role/assign',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => false],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'type' => 'object',
'properties' => [
'identity' => ['description' => '唯一身份标识,当前仅支持设置某个用户作为团队管理员', 'required' => true, '$ref' => '#/components/schemas/Identity'],
'role_id' => ['description' => '给用户分配的角色ID,当前仅支持填:SystemGroupAdmin(团队管理员)', 'type' => 'string', 'required' => true, 'example' => 'SystemGroupAdmin'],
'manage_resource_type' => ['description' => '管理的资源类型,当前仅支持:RT_Group(团队)', 'type' => 'string', 'required' => true, 'example' => 'RT_Group'],
'manage_resource_id' => ['description' => '管理的资源ID,当前仅支持填Group ID。', 'type' => 'string', 'required' => true, 'example' => '105***b82'],
],
'required' => false,
'description' => '',
],
],
],
'responses' => [
204 => [
'schema' => [
'type' => 'object',
'properties' => [],
'description' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '分配角色',
'description' => '当前支持将用户设置为团队管理员角色。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'AuditLogExport' => [
'summary' => '导出审计日志。',
'path' => '/v2/audit_log/export',
'methods' => ['post'],
'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => false],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'query' => ['description' => '支持根据以下字段组合查询:'."\n"
.'- drive_id(空间ID,string)'."\n"
.'- actor_id(操作者ID,string)'."\n"
.'- acted_at(操作时间,date,格式"2006-01-02T00:00:00",只支持零时区)'."\n"
.'- action_type(操作类型,string)', 'type' => 'string', 'required' => false, 'example' => 'acted_at > \'2025-03-10T16:00:00\' and acted_at < \'2025-03-17T15:59:59\''],
'order_by' => ['description' => '排序字段,支持操作时间(acted_at)排序。默认值:空,按照操作时间逆序排序。支持参数:'."\n"
."\n"
.'- acted_at DESC(按操作时间逆序)'."\n"
.'- acted_at ASC(按操作时间正序)', 'type' => 'string', 'required' => false, 'example' => 'acted_at DESC'],
'file_name' => ['description' => '导出的文件名,长度不超过1024。默认为log.csv', 'type' => 'string', 'required' => false, 'example' => '2024-01-log.csv'],
'language' => ['description' => '导出语言,默认中文。支持参数:'."\n"
."\n"
.'- zh_CN(中文)'."\n"
.'- en_US(英文)', 'type' => 'string', 'required' => false, 'example' => 'zh_CN'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回信息',
'type' => 'object',
'properties' => [
'async_task_id' => ['title' => 'Id of the request', 'description' => '审计日志导出的异步任务 id', 'type' => 'string', 'example' => '4221bf6e6ab43c255edc4463bf3a6f5f5d31****'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '导出审计日志',
'description' => '网盘与相册服务开发版,日志审计属于增值功能,请确保在使用该接口前,已充分了解<props="china">[增值服务计费项](https://help.aliyun.com/zh/pds/drive-and-photo-service-dev/product-overview/billable-items-for-value-added-features)</props><props="intl">[增值服务计费项](https://www.alibabacloud.com/help/document_detail/425220.html)</props>。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"async_task_id\\": \\"4221bf6e6ab43c255edc4463bf3a6f5f5d31****\\"\\n}","type":"json"}]',
],
'Authorize' => [
'summary' => 'OAuth2.0请求授权。',
'path' => '/v2/oauth/authorize',
'methods' => ['get'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'Anonymous' => [],
],
],
'consumes' => ['application/x-www-form-urlencoded'],
'produces' => ['application/octet-stream'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'client_id',
'in' => 'query',
'schema' => ['description' => '创建App时返回的AppID', 'type' => 'string', 'required' => true, 'example' => '47eUHhrzgWBvlLWj'],
],
[
'name' => 'redirect_uri',
'in' => 'query',
'schema' => ['description' => '回调地址(创建App时填写的回调地址)。请使用urlencode对链接进行处理', 'type' => 'string', 'required' => true, 'example' => 'https%3A%2F%2Fwww.aliyunpds.com%2Fsign%2Fcallback'],
],
[
'name' => 'scope',
'in' => 'query',
'style' => 'simple',
'schema' => [
'description' => '申请的权限列表, 默认为所有权限',
'type' => 'array',
'items' => ['description' => '当前仅支持获取App的所有权限,可以传all或者不传此参数', 'type' => 'string', 'required' => false, 'example' => 'all'],
'required' => false,
],
],
[
'name' => 'response_type',
'in' => 'query',
'schema' => ['description' => '返回类型, 只能填写code', 'type' => 'string', 'required' => true, 'example' => 'code'],
],
[
'name' => 'state',
'in' => 'query',
'schema' => ['description' => '用户自定义字段,会在请求授权成功后的callback带回', 'type' => 'string', 'required' => false, 'example' => 'customdata'],
],
[
'name' => 'login_type',
'in' => 'query',
'schema' => ['description' => '认证方式,目前支持以下取值:'."\n"
."\n"
.'- default (PDS提供的默认登录页面,集成了所有登录方式)'."\n"
."\n"
.'- ding (PC钉钉扫码登录)'."\n"
."\n"
.'- ding\\_sns (手机钉钉账号密码登录)'."\n"
."\n"
.'- ram (阿里云子账号登录)'."\n"
."\n"
.'- wechat(企业微信扫码登录)'."\n"
."\n"
.'- wechat\\_app(企业微信内免登)', 'type' => 'string', 'required' => true, 'example' => 'default'],
],
[
'name' => 'hide_consent',
'in' => 'query',
'schema' => ['description' => '是否隐藏同意页面', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
],
'responses' => [
302 => [
'headers' => [
'location' => [
'schema' => ['title' => '重定向的登陆页地址,用户需要在此页面完成认证', 'type' => 'string'],
],
],
],
],
'title' => 'OAuth请求授权',
'description' => '<props="china">详细使用方法参考用户指南:[用户指南链接](https://help.aliyun.com/document_detail/175894.html)。</props>'."\n"
."\n"
.'<props="intl">详细使用方法参考用户指南:[用户指南链接](https://www.alibabacloud.com/help/zh/pds/latest/oauth2-for-web-server-app?spm=a2c63.p38356.0.0.4cce4fccEyosuB)。</props>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'Batch' => [
'summary' => '支持批量调用部分API,提升调用效率。',
'path' => '/v2/batch',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'resource' => [
'description' => '请求的资源,支持的资源类型包括:'."\n"
."\n"
.'- file(文件)'."\n"
.'- drive(个人/团队云盘)'."\n"
.'- user(用户)'."\n"
.'- group(群组)'."\n"
.'- membership(群组成员)'."\n"
.'- share\\_link(分享)'."\n"
.'- async\\_task(异步任务)',
'type' => 'string',
'required' => true,
'enumValueTitles' => ['share_link' => '分享', 'file' => '文件', 'async_task' => '异步任务', 'membership' => '群组成员', 'drive' => '个人/团队云盘', 'user' => '用户', 'group' => '群组'],
'example' => 'file',
],
'requests' => [
'description' => '子请求合集'."\n"
."\n"
.'子请求的数量,有效范围是[1,100]',
'type' => 'array',
'items' => [
'description' => '一个子请求内容',
'type' => 'object',
'properties' => [
'id' => ['description' => '子请求 id,用于request 和 response关联, 不允许重复', 'type' => 'string', 'required' => true, 'example' => '93433894994ad2e1'],
'method' => [
'description' => '子请求的方法,支持:'."\n"
."\n"
.'- POST'."\n"
.'- GET'."\n"
.'- PUT'."\n"
.'- DELETE'."\n"
.'- HEAD'."\n",
'type' => 'string',
'required' => true,
'enumValueTitles' => ['HEAD' => 'HEAD', 'DELETE' => 'DELETE', 'POST' => 'POST', 'GET' => 'GET', 'PUT' => 'PUT'],
'example' => 'POST',
],
'url' => [
'description' => 'url 子请求的api path路径, 支持:'."\n"
."\n"
.'- /file/get(获取文件详情)'."\n"
.'- /file/update(修改文件信息)'."\n"
.'- /file/search(搜索文件)'."\n"
.'- /file/copy(复制文件或文件夹)'."\n"
.'- /file/move(移动文件或文件夹)'."\n"
.'- /file/delete(删除文件或文件夹)'."\n"
.'- /file/get_download_url(获取文件下载地址)'."\n"
.'- /file/get_share_link_download_url(获取分享下载地址)'."\n"
.'- /recyclebin/trash(放入回收站)'."\n"
.'- /recyclebin/restore(恢复文件或文件夹)'."\n"
.'- /file/put_usertags(设置用户标签)'."\n"
.'- /file/delete_usertags(删除用户标签)'."\n"
.'- /drive/get(获取空间信息)'."\n"
.'- /user/get(获取用户信息)'."\n"
.'- /group/get(获取群组信息)'."\n"
.'- /share_link/create(创建分享)'."\n"
.'- /share_link/update(修改分享)'."\n"
.'- /share_link/cancel(取消分享)'."\n"
.'- /share_link/list(列举分享)'."\n"
.'- /share_link/get(获取分享信息)'."\n"
.'- /share_link/get_share_token(获取分享令牌)'."\n"
.'- /async_task/get(获取异步任务信息)',
'type' => 'string',
'required' => true,
'enumValueTitles' => [
'/file/copy' => '复制文件或文件夹', '/file/get_share_link_download_url' => '获取分享下载地址', '/file/move' => '移动文件或文件夹', '/share_link/create' => '创建分享', '/share_link/update' => '修改分享', '/async_task/get' => '获取异步任务信息', '/drive/get' => '获取空间信息', '/group/get' => '获取群组信息', '/share_link/list' => '列举分享', '/file/delete' => '删除文件或文件夹',
'/share_link/get' => '获取分享信息', '/file/get' => '获取文件详情', '/file/get_download_url' => '获取文件下载地址', '/recyclebin/restore' => '恢复文件或文件夹', '/file/update' => '修改文件信息', '/recyclebin/trash' => '放入回收站', '/file/search' => '搜索文件', '/user/get' => '获取用户信息', '/share_link/get_share_token' => '获取分享令牌', '/share_link/cancel' => '取消分享',
],
'example' => '/file/get',
],
'body' => [
'description' => '子请求的请求参数JSON字符串,可参考相应子请求API文档'."\n"
."\n"
.'当指定了body必须传headers:"Content-Type" 对应的类型,目前子请求入参是"application/json"',
'type' => 'object',
'required' => false,
'additionalProperties' => ['type' => 'any', 'description' => '子请求的请求body', 'example' => '{"domain_id":"1","drive_id":"1"}'],
],
'headers' => [
'description' => '子请求的请求头,表示body传入数据的类型',
'type' => 'object',
'required' => false,
'additionalProperties' => ['type' => 'string', 'description' => '子请求的请求headers', 'example' => '{"Content-Type":"application/json"}'],
],
],
'required' => false,
],
'required' => true,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'responses' => [
'description' => '子请求的响应合集',
'type' => 'array',
'items' => [
'description' => '一个子请求响应内容',
'type' => 'object',
'properties' => [
'id' => ['description' => '子请求 id,和request进行关联', 'type' => 'string', 'example' => '93433894994ad2e1'],
'status' => ['description' => '子请求的返回状态码,可参考相应子请求API文档', 'type' => 'integer', 'format' => 'int32', 'example' => '200'],
'body' => [
'description' => '子请求的响应结果,可参考相应子请求API文档',
'type' => 'object',
'additionalProperties' => ['type' => 'any', 'description' => '子请求的响应body', 'example' => '{"domain_id":"1","drive_id":"1","file_id":"9520943DC264"}'],
],
],
],
],
],
],
],
],
'title' => '批量调用API',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"responses\\": [\\n {\\n \\"id\\": \\"93433894994ad2e1\\",\\n \\"status\\": 200,\\n \\"body\\": {\\n \\"key\\": \\"{\\\\\\"domain_id\\\\\\":\\\\\\"1\\\\\\",\\\\\\"drive_id\\\\\\":\\\\\\"1\\\\\\",\\\\\\"file_id\\\\\\":\\\\\\"9520943DC264\\\\\\"}\\"\\n }\\n }\\n ]\\n}","type":"json"}]',
],
'CancelAssignRole' => [
'summary' => '当前仅支持取消团队管理员角色。',
'path' => '/v2/role/cancel_assign',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => false],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'type' => 'object',
'properties' => [
'identity' => ['description' => '唯一身份标识,当前仅支持取消用户的角色', 'required' => true, '$ref' => '#/components/schemas/Identity'],
'role_id' => ['description' => '取消用户已分配的角色ID,当前仅支持填:SystemGroupAdmin(团队管理员)', 'type' => 'string', 'required' => true, 'example' => 'SystemGroupAdmin'],
'manage_resource_type' => ['description' => '被取消角色管理的资源类型,当前仅支持:RT_Group(团队)', 'type' => 'string', 'required' => true, 'example' => 'RT_Group'],
'manage_resource_id' => ['description' => '被取消角色管理的资源ID,当前仅支持填Group ID', 'type' => 'string', 'required' => true, 'example' => '105***b82'],
],
'required' => false,
'description' => '',
],
],
],
'responses' => [
204 => [
'schema' => [
'type' => 'object',
'properties' => [],
'description' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '取消分配的角色',
'description' => '当前仅支持取消团队管理员角色。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'CancelShareLink' => [
'summary' => '删除分享。',
'path' => '/v2/share_link/cancel',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'share_id' => ['description' => '分享id', 'type' => 'string', 'required' => true, 'example' => '7JQX1FswpQ8'],
],
'required' => false,
],
],
],
'responses' => [
204 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'_' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string'],
],
],
],
],
'title' => '取消分享',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'ClearRecyclebin' => [
'path' => '/v2/recyclebin/clear',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'delete'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间ID', 'type' => 'string', 'required' => true, 'example' => '1'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => 'Id of the request', 'description' => '域ID', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['description' => '空间ID', 'type' => 'string', 'example' => '1'],
'async_task_id' => ['description' => '异步任务ID'."\n"
."\n"
.'调用GetAsyncTask,传递异步任务ID,获取任务信息', 'type' => 'string', 'example' => '13ebd3a24dba4166b1527add676ef2866051b4d5dele16'],
],
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '清空回收站',
'summary' => '清空回收站中所有文件和文件夹。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"async_task_id\\": \\"13ebd3a24dba4166b1527add676ef2866051b4d5dele16\\"\\n}","type":"json"}]',
],
'CompleteFile' => [
'summary' => '完成文件上传。',
'path' => '/v2/file/complete',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'upload_id' => ['description' => '上传id', 'type' => 'string', 'required' => true, 'example' => 'C9DCFE5A82644AC7A02DB74C30C934A6'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'crc64_hash' => ['type' => 'string', 'required' => false, 'description' => ''],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '文件信息', '$ref' => '#/components/schemas/File'],
],
],
'title' => '完成文件上传',
'description' => '使用方法参考最佳实践:[文件上传](~~175888~~)。'."\n"
."\n"
.'文件上传过程中,已上传的文件分片会产生存储费用。分片将保留10天,直到文件上传完成或10天后分片过期被清理。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n}","type":"json"}]',
],
'CopyFile' => [
'summary' => '拷贝文件或目录。',
'path' => '/v2/file/copy',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'share_id' => ['description' => '分享id。'."\n"
.'如果通过分享操作文件,请携带`x-share-token` header鉴权并传递此字段,此时`drive_id`无效。否则请使用`aksk`或者`access_token`方式鉴权,并传递`drive_id`字段。'."\n"
.'`share_id`和`drive_id`两者必须有一个字段赋值。', 'type' => 'string', 'required' => false, 'example' => '7JQX1FswpQ8'],
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => false, 'example' => '1'],
'file_id' => ['description' => '文件或文件夹 id', 'type' => 'string', 'required' => true, 'example' => '4221bf6e6ab43c255edc4463bf3a6f5f5d317406'],
'to_drive_id' => ['description' => '拷贝到的空间id。'."\n"
.'默认值同drive_id。', 'type' => 'string', 'required' => false, 'example' => '1'],
'to_parent_file_id' => ['description' => '目的父文件夹 id,当复制进根目录时,填 root', 'type' => 'string', 'required' => true, 'example' => '6520943DC261'],
'auto_rename' => ['description' => '当目标文件夹下存在同名文件时,是否自动重命名,默认为 false', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'domain_id' => ['description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['description' => '空间id', 'type' => 'string', 'example' => '1'],
'file_id' => ['description' => '复制后的新文件或文件夹 id', 'type' => 'string', 'example' => '4221bf6e6ab43a255edc4463bffa6f5f5d317401'],
'async_task_id' => ['description' => '异步任务id。'."\n"
."\n"
.'当复制的是文件时,不返回该字段;当复制的是文件夹时,为后台异步复制,会返回该字段,调用GetAsyncTask,传递异步任务id,获取任务信息。', 'type' => 'string', 'example' => '000e89fb-cf8f-11e9-8ab4-b6e980803a3b'],
],
'description' => '',
],
],
],
'title' => '复制文件或文件夹',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"4221bf6e6ab43a255edc4463bffa6f5f5d317401\\",\\n \\"async_task_id\\": \\"000e89fb-cf8f-11e9-8ab4-b6e980803a3b\\"\\n}","type":"json"}]',
],
'CreateCustomizedStory' => [
'summary' => '创建自定义故事。'."\n"
.'区别于推荐故事,自定义故事下面的文件列表由用户指定。',
'path' => '/v2/image/create_customized_story',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'story_type' => ['description' => '故事类型。由用户自定义。', 'type' => 'string', 'required' => true, 'example' => 'user_created'],
'story_sub_type' => ['description' => '故事子类型。由用户自定义。', 'type' => 'string', 'required' => true, 'example' => 'user_created'],
'story_name' => ['description' => '故事名称。'."\n"
.'长度不能超过 1024 字节。', 'type' => 'string', 'required' => true, 'example' => 'test_name'],
'story_cover' => [
'description' => '故事封面。该封面必须在故事文件列表中。',
'type' => 'object',
'properties' => [
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '63e5e4340f76cb3ead5f40f68163f0f967c1a7bf'],
'revision_id' => ['description' => '文件版本 id', 'type' => 'string', 'required' => false, 'example' => '642a88d4aff041ee68fd4fc89beb80e1119da343'],
],
'required' => true,
],
'story_files' => [
'description' => '故事文件列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '63e5e4340f76cb3ead5f40f68163f0f967c1a7bf'],
'revision_id' => ['description' => '文件版本 id', 'type' => 'string', 'required' => false, 'example' => '642a88d4aff041ee68fd4fc89beb80e1119da343'],
],
'required' => false,
'description' => '',
],
'required' => true,
'minItems' => 1,
],
'custom_labels' => [
'description' => '自定义标签。'."\n"
.'标签数量不能超过 20 个。',
'type' => 'object',
'deprecated' => true,
'required' => false,
'additionalProperties' => ['type' => 'string', 'example' => 'label_value', 'description' => '自定义标签'],
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'example' => '1'],
'story_id' => ['description' => '故事 id', 'type' => 'string', 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '创建自定义故事',
'description' => '**请确保在使用该接口前,已充分了解 PDS 的收费方式和[价格](~~425220~~)**。'."\n"
."\n"
.'使用此功能须开通增值服务图片处理功能。故事相关接口限时免费。'."\n"
."\n"
.'用户通过传入指定文件列表创建自定义故事。其中故事类型和故事子类型用户可自定义,不再有约束。'."\n"
."\n"
.'><notice>通过该接口指定故事封面时,该封面文件必须存在于故事列表中,否则会返回错误。></notice>'."\n"
.'><notice>自定义故事列表中的文件类型只能为图片。></notice>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"drive_id\\": \\"1\\",\\n \\"story_id\\": \\"9132e0d8-fe92-4e56-86c3-f5f112308003\\"\\n}","type":"json"}]',
],
'CreateDomain' => [
'summary' => '创建 domain。',
'path' => '/v2/domain/create',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => ['admin'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'parent_domain_id' => ['description' => '父 domain id'."\n"
.'如果需要创建子 domain,可以设置该值,一般情况下不需要创建。'."\n"
.'如果需要针对 PDS 做二次运营,可以联系 PDS 官网客服进行咨询。', 'type' => 'string', 'required' => false, 'example' => 'bj1'],
'domain_name' => ['description' => 'domain 名称', 'type' => 'string', 'required' => true, 'example' => 'cloud drive'],
'description' => ['description' => 'domain 描述', 'type' => 'string', 'required' => false, 'example' => 'cloud drive dev'],
'init_drive_enable' => ['description' => '是否开通默认网盘。为true则所有用户在第一次登录后都默认分配一个网盘。默认false', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'init_drive_size' => ['description' => 'init\\_drive\\_enable 为true时必选。 创建用户时,默认网盘的大小,单位:Bytes。'."\n"
.'默认为 0,此时创建的 drive 大小为0,不可以上传文件,如果需要初始化 drive, 请设置该值。'."\n"
.'-1则表示不限大小。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1073741824'],
'user_count_quota' => ['description' => '用户数配额,表示该 domain 允许创建的用户数量,为0表示不限制', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '50'],
'size_quota' => ['description' => '容量配额,表示 domain 下所有 drive 的总quota 大小,0 表示不限制', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1099511627776'],
'store_redundancy_type' => [
'description' => '指定存储冗余类型。枚举值: '."\n"
.'+ LRS:本地冗余'."\n"
.'+ ZRS:同城冗余',
'type' => 'string',
'required' => false,
'example' => 'LRS',
'enum' => [],
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '创建的域信息', '$ref' => '#/components/schemas/Domain'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '创建Domain',
'description' => '如果您需要基于 PDS 做二次运营,并想针对您的租户做一些细粒度控制,此时可以使用 PDS 的父子 Domain 功能。'."\n"
.'详情:请联系官方钉钉群进行咨询:23146118',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"parent_domain_id\\": \\"bj1\\",\\n \\"domain_id\\": \\"bj2\\",\\n \\"domain_name\\": \\"pdsdomain\\",\\n \\"description\\": \\"my domain\\",\\n \\"init_drive_enable\\": true,\\n \\"init_drive_size\\": 1073741824,\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"size_quota\\": 1099511627776,\\n \\"size_quota_used\\": 1099511627776,\\n \\"user_count_quota\\": 50,\\n \\"status\\": 1,\\n \\"used_size\\": 1099511627776,\\n \\"published_app_access_strategy\\": {\\n \\"effect\\": \\"deny\\",\\n \\"except_app_id_list\\": [\\n \\"8ovxCTRUDdbpVWBP\\"\\n ]\\n },\\n \\"sharable\\": true,\\n \\"data_hash_name\\": \\"sha1\\",\\n \\"store_redundancy_type\\": \\"LRS\\"\\n}","type":"json"}]',
],
'CreateDrive' => [
'summary' => '创建空间。',
'path' => '/v2/drive/create',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体。',
'type' => 'object',
'properties' => [
'drive_name' => ['description' => '空间名称,最长 128 字符', 'type' => 'string', 'required' => true, 'example' => 'My personal space', 'maxLength' => 1024, 'minLength' => 1],
'owner' => ['description' => '归属者ID', 'type' => 'string', 'required' => true, 'example' => '3b3d7245c159488da17d081ad6c64687'],
'owner_type' => [
'description' => '归属者类型,可选值如下:'."\n"
."\n"
.'user:用户'."\n"
.'group:团队',
'type' => 'string',
'required' => true,
'enumValueTitles' => ['user' => 'user', 'group' => 'group'],
'example' => 'user',
'enum' => ['user', 'group'],
],
'description' => ['description' => '描述信息,最长 1024 字符', 'type' => 'string', 'required' => false, 'example' => 'VIP space', 'maxLength' => 1024],
'drive_type' => [
'description' => '空间类型,当前只支持 normal',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['normal' => 'normal'],
'example' => 'normal',
'default' => 'normal',
'enum' => [],
],
'status' => [
'description' => '状态,可选值如下:'."\n"
."\n"
.'enabled:可用'."\n"
.'disabled:禁用'."\n"
."\n"
.'默认为 enabled',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['disabled' => 'disabled', 'enabled' => 'enabled'],
'example' => 'enabled',
'default' => 'enabled',
'enum' => ['enabled', 'disabled'],
],
'total_size' => ['description' => '总大小,单位为字节,默认不限大小', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1024'],
'default' => ['description' => '是否是默认空间,默认为 false', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'false'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回信息',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => 'Id of the request', 'description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['description' => '空间id', 'type' => 'string', 'example' => '1'],
'drive_name' => ['description' => '空间名称', 'type' => 'string', 'example' => 'My personal space'],
'description' => ['description' => '描述信息', 'type' => 'string', 'example' => 'VIP space'],
'owner' => ['description' => '归属者ID', 'type' => 'string', 'example' => '3b3d7245c159488da17d081ad6c64687'."\n"],
'owner_type' => ['description' => '归属者类型', 'type' => 'string', 'example' => 'user'],
'drive_type' => ['description' => '空间类型', 'type' => 'string', 'example' => 'normal'],
'used_size' => ['description' => '使用空间大小,单位为字节', 'type' => 'integer', 'format' => 'int64', 'example' => '1024'],
'total_size' => ['description' => '总空间大小,单位为字节', 'type' => 'integer', 'format' => 'int64', 'example' => '1024'],
'creator' => ['description' => '创建者ID。', 'type' => 'string', 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
'created_at' => ['description' => '创建时间', 'type' => 'string', 'example' => '2024-08-14T03:14:28.109Z'],
'status' => ['description' => '状态', 'type' => 'string', 'example' => 'enabled'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"drive_name\\": \\"My personal space\\",\\n \\"description\\": \\"VIP space\\",\\n \\"owner\\": \\"3b3d7245c159488da17d081ad6c64687\\\\n\\",\\n \\"owner_type\\": \\"user\\",\\n \\"drive_type\\": \\"normal\\",\\n \\"used_size\\": 1024,\\n \\"total_size\\": 1024,\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"created_at\\": \\"2024-08-14T03:14:28.109Z\\",\\n \\"status\\": \\"enabled\\"\\n}","type":"json"}]',
'title' => '创建空间',
'description' => '创建空间前确保操作对应用户/团队未被分配空间。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'CreateFile' => [
'summary' => '创建文件或文件夹。',
'path' => '/v2/file/create',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'name' => ['title' => '文件或文件夹名称', 'description' => '文件名称,按照 utf8 编码最长 1024 字节,不能包含 /', 'type' => 'string', 'required' => true, 'example' => 'a.txt', 'maxLength' => 1024, 'minLength' => 1],
'type' => [
'title' => '类型',
'description' => '文件类型,可选值如下:'."\n"
."\n"
.'file:文件'."\n"
.'folder:文件夹',
'type' => 'string',
'required' => true,
'example' => 'file',
'enum' => ['file', 'folder'],
],
'parent_file_id' => ['title' => '父文件夹id', 'description' => '父目录id,上传到根目录时填写 root', 'type' => 'string', 'required' => true, 'example' => 'fileid1'],
'drive_id' => ['title' => '用户空间id', 'description' => '空间 id,除通过分享链接上传之外,必填', 'type' => 'string', 'required' => false, 'example' => '1', 'pattern' => '^[0-9]*$'],
'share_id' => ['title' => '共享id', 'description' => '分享 id,当通过分享链接上传时必填', 'type' => 'string', 'required' => false, 'example' => '7JQX1FswpQ8'],
'size' => ['title' => '文件大小', 'description' => '文件大小,单位为 byte。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1024'],
'content_type' => ['title' => '文件类型', 'description' => '文件内容类型,默认值 application/oct-stream<props="china">,常见的 content_type 可以参考 OSS [《如何设置Content-Type(MIME)?》](https://help.aliyun.com/document_detail/39522.htm?spm=a2c4g.11186623.0.0.5a0b7dbb1TPnWF#concept-5041)。</props>', 'type' => 'string', 'required' => false, 'example' => 'application/json'],
'part_info_list' => [
'description' => '分片信息列表,最多 10000 个分片,当不填时,默认返回 1 个分片',
'type' => 'array',
'items' => [
'description' => '分片信息',
'type' => 'object',
'properties' => [
'part_number' => ['description' => '分片序列号,从 1 开始', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'parallel_sha1_ctx' => [
'description' => '该分片前所有数据的SHA1上下文,该字段只在多分片并发上传的模式下有效',
'type' => 'object',
'properties' => [
'h' => [
'description' => '该分片前所有数据的SHA1上下文的第1-5个32位变量,该字段只在多分片并发上传的模式下有效',
'type' => 'array',
'items' => ['description' => '该分片前所有数据的SHA1上下文的第1-5个32位变量', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
'required' => false,
],
'part_offset' => ['description' => '到上一个数据块为止的总长度,字节,需要为64的倍数,该字段只在多分片并发上传的模式下有效', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10240'],
],
'required' => false,
],
'content_md5' => ['description' => '分片的 MD5, 需要在上传分片时校验分片的MD5时填写。', 'type' => 'string', 'deprecated' => false, 'required' => false, 'example' => 'ASKJDJSKDJJSJDJS'],
'content_type' => ['title' => '指定客户端使用 Put 上传分片时需要设置的 Content-Type 值。 如果客户端上传时指定的 Content-Type 和这里不一致,会出现签名错误。 默认为空,客户端 Put 时可以不指定 Content-Type。', 'type' => 'string', 'deprecated' => false, 'example' => 'application/json'],
],
'required' => false,
],
'required' => false,
],
'user_tags' => [
'title' => '用户打标',
'description' => '用户自定义 tag,最多 1000 个 tag',
'type' => 'array',
'items' => ['description' => '用户自定义 tag', 'required' => false, '$ref' => '#/components/schemas/UserTag'],
'required' => false,
],
'hidden' => ['description' => '是否隐藏,默认不隐藏', 'type' => 'boolean', 'required' => false, 'example' => 'false', 'default' => 'false'],
'description' => ['title' => '描述信息', 'description' => '文件描述信息,最长 1024 字符,默认为空', 'type' => 'string', 'required' => false, 'example' => 'Team file', 'maxLength' => 1024],
'content_hash' => ['title' => '内容hash', 'description' => '文件内容 hash 值,需要根据 content_hash_name 指定的算法计算', 'type' => 'string', 'required' => false, 'example' => '7C4A8D09CA3762AF61E59520943DC26494F8941B'],
'content_hash_name' => [
'title' => '内容hash算法名',
'description' => '文件内容hash算法名,当前只支持 sha1',
'type' => 'string',
'required' => false,
'example' => 'sha1',
'enum' => ['sha1'],
],
'pre_hash' => ['description' => '使用预秒传功能时填写,为文件前1KB sha1值,当远端没有匹配上时,客户端无需再计算文件完整 sha1 去尝试秒传。', 'type' => 'string', 'required' => false, 'example' => '7C4A8D09CA3762AF61E59520943DC26494F89411'],
'check_name_mode' => [
'title' => '重命名模式',
'description' => '同名文件处理模式,可选值如下:'."\n"
."\n"
.'ignore:允许同名文件;'."\n"
."\n"
.'auto_rename:当发现同名文件是,云端自动重命名,默认为追加当前时间点,如 xxx _20060102_150405;'."\n"
."\n"
.'refuse:当云端存在同名文件时,拒绝创建新文件,返回客户端已存在同名文件的详细信息。'."\n"
."\n"
.'默认为 ignore',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['refuse' => 'refuse', 'auto_rename' => 'auto_rename', 'ignore' => 'ignore'],
'example' => 'ignore',
'enum' => ['ignore', 'auto_rename', 'refuse'],
],
'file_id' => ['title' => '文件id', 'description' => '文件id,覆盖写时必填', 'type' => 'string', 'required' => false, 'example' => '9520943DC264'],
'local_created_at' => ['title' => '文件本地创建时间', 'description' => '文件本地创建时间,默认为空,格式为:yyyy-MM-ddTHH:mm:ssZ,采用 UTC +0 时区', 'type' => 'string', 'required' => false, 'example' => '2023-10-04T14:30:00Z'],
'local_modified_at' => ['title' => '本地文件修改时间', 'description' => '文件本地修改时间,默认为空,格式为:yyyy-MM-ddTHH:mm:ssZ,采用 UTC +0 时区', 'type' => 'string', 'required' => false, 'example' => '2023-10-04T14:30:00Z'],
'parallel_upload' => ['description' => '是否开启并行上传分片功能', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'default' => 'false'],
'upload_type' => ['title' => '上传类型,支持 multipart,form,默认:multipart', 'type' => 'string', 'example' => 'multipart', 'default' => 'multipart'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回信息',
'type' => 'object',
'properties' => [
'parent_file_id' => ['title' => '父目录文件id', 'description' => '父目录id', 'type' => 'string', 'example' => 'fileid5'],
'part_info_list' => [
'title' => '分段信息',
'description' => '分段信息列表',
'type' => 'array',
'items' => ['description' => '分段信息', '$ref' => '#/components/schemas/UploadPartInfo'],
],
'upload_id' => ['title' => '上传id', 'description' => '上传id', 'type' => 'string', 'example' => 'uploadid1'],
'rapid_upload' => ['title' => '是否已经秒传', 'description' => '是否已经秒传', 'type' => 'boolean', 'example' => 'true'],
'type' => ['description' => '文件类型', 'type' => 'string', 'example' => 'file'],
'file_id' => ['title' => '文件id', 'description' => '文件id', 'type' => 'string', 'example' => 'fileid1'],
'domain_id' => ['title' => '域id', 'description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['title' => '空间id', 'description' => '空间id', 'type' => 'string', 'example' => '1'],
'file_name' => ['title' => '文件名', 'description' => '文件名', 'type' => 'string', 'example' => 'a.txt'],
'status' => ['title' => '文件状态', 'description' => '文件状态', 'type' => 'string', 'example' => 'uploading'],
'exist' => ['title' => '文件是否存在', 'description' => '文件是否存在', 'type' => 'boolean', 'example' => 'false'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"parent_file_id\\": \\"fileid5\\",\\n \\"part_info_list\\": [\\n {\\n \\"part_number\\": 1,\\n \\"part_size\\": 1024,\\n \\"upload_url\\": \\"https://data.aliyunpds.com/xxx/xxx?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx&partNumber=1&uploadId=0CC175B9C0F1B6A831C399E269772661\\",\\n \\"internal_upload_url\\": \\"https://data-vpc.aliyunpds.com/xxx/xxx?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx&partNumber=1&uploadId=0CC175B9C0F1B6A831C399E269772661\\\\n\\",\\n \\"etag\\": \\"\\\\\\"0CC175B9C0F1B6A831C399E269772661\\\\\\"\\",\\n \\"parallel_sha1_ctx\\": {\\n \\"h\\": [\\n 0\\n ],\\n \\"part_offset\\": 10240\\n },\\n \\"upload_form_info\\": {\\n \\"endpoint\\": \\"\\",\\n \\"form_data\\": {\\n \\"key\\": \\"\\"\\n }\\n },\\n \\"parallel_sha256_ctx\\": {\\n \\"h\\": [\\n 0\\n ],\\n \\"part_offset\\": 0\\n }\\n }\\n ],\\n \\"upload_id\\": \\"uploadid1\\",\\n \\"rapid_upload\\": true,\\n \\"type\\": \\"file\\",\\n \\"file_id\\": \\"fileid1\\",\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_name\\": \\"a.txt\\",\\n \\"status\\": \\"uploading\\",\\n \\"exist\\": false\\n}","type":"json"}]',
'title' => '创建文件或文件夹',
'description' => '文件创建使用方法参考最佳实践:[文件上传](~~175888~~)。'."\n"
."\n"
.'文件上传过程中,已上传的文件分片会产生存储费用。分片将保留10天,直到文件上传完成或10天后分片过期被清理。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'CreateGroup' => [
'summary' => '创建群组。',
'path' => '/v2/group/create',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'group_name' => ['description' => '群组名,长度1~128个字符', 'type' => 'string', 'required' => true, 'example' => 'test group'],
'description' => ['description' => '描述信息,长度0~1024个字符', 'type' => 'string', 'required' => false, 'example' => 'test group description'],
'is_root' => ['description' => '是否是根群组,根群组不能加入其他任何群组,一般用于组织架构的顶层组织', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'parent_group_id' => ['description' => '需要加入的父群组ID,传入此字段时,创建完群组后,系统会将此群组自动加入到指定的父群组', 'type' => 'string', 'required' => false, 'example' => '2e43ec8427dd45f19431b7504649a1b3'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '新创建的群组信息', '$ref' => '#/components/schemas/Group'],
],
],
'title' => '创建群组',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"group_id\\": \\"b45c0c0c373c41ec9ebb5c85a025a08f\\",\\n \\"group_name\\": \\"test group\\",\\n \\"description\\": \\"created by system\\",\\n \\"created_at\\": 1670573504600,\\n \\"updated_at\\": 1670573504600,\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"is_sync\\": true\\n}","type":"json"}]',
],
'CreateIdentityToBenefitPkgMapping' => [
'summary' => '创建实体和权益包关联,可用于给用户绑定权益包。',
'path' => '/v2/benefit/identity_to_benefit_pkg_mapping/create',
'methods' => ['post'],
'schemes' => ['https', 'http'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'identity_type' => [
'description' => '实体的类型'."\n"
."\n"
.'管理用户权益时,传user',
'type' => 'string',
'required' => true,
'example' => 'user',
'enum' => ['user'],
],
'identity_id' => ['description' => '实体的唯一标识'."\n"
."\n"
.'管理用户权益时,传user_id', 'type' => 'string', 'required' => true, 'example' => 'user123'],
'benefit_pkg_id' => ['description' => '权益包的唯一标识', 'type' => 'string', 'required' => true, 'example' => '40cb7794c9294'],
'amount' => ['description' => '权益包数量'."\n"
."\n"
.'对资源类权益包生效,非必填参数,默认为1', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
'expire_time' => ['description' => '权益包超期时间的时间戳,格林威治时间1970年01月01日00时00分00秒起至现在的毫秒数'."\n"
."\n"
.'默认永不过期', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1633167071000'],
],
'required' => false,
],
],
],
'responses' => [
200 => [],
],
'title' => '创建实体和权益包关联',
'description' => '如果您需要基于PDS做面向大量用户的二次运营,可以基于权益对用户可使用的功能和配额进行控制。 详情请联系官方钉钉群进行咨询:23146118',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'CreateShareLink' => [
'summary' => '创建分享。',
'path' => '/v2/share_link/create',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'create'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'share_all_files' => ['description' => '是否分享整个drive中的文件', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'file_id_list' => [
'description' => '分享父路径文件id列表。'."\n"
.'父路径文件个数范围[1, 100]。'."\n"
.'如果`share_all_files=true`,那么此字段无效,否则必须要填写',
'type' => 'array',
'items' => ['description' => '分享父路径文件id', 'type' => 'string', 'required' => false, 'example' => '9520943DC264'],
'required' => false,
'example' => '["520b217f13adf4fc24f2191991b1664ce045b393"]',
],
'user_id' => ['description' => '用户id。使用AK方式请求时,必填', 'type' => 'string', 'required' => false, 'example' => 'u123'],
'share_pwd' => ['description' => '提取码。'."\n"
.'提取码长度范围[0, 64]字节'."\n"
.'不设置或者设置为空表示无提取码,在获取分享令牌的时候也不用设置提取码参数。'."\n"
.'要求使用ASCII可见字符。', 'type' => 'string', 'required' => false, 'example' => 'abcF123x'],
'expiration' => ['description' => '失效时间点。'."\n"
.'RFC3339格式,比如:"2020-06-28T11:33:00.000+08:00"。'."\n"
.'当expiration取值""时,表示永久有效', 'type' => 'string', 'required' => false, 'example' => '2020-06-28T11:33:00.000+08:00'],
'description' => ['description' => '分享描述。'."\n"
.'长度范围[0, 1024]字符', 'type' => 'string', 'required' => false, 'example' => 'Lecture collection'],
'share_name' => ['description' => '分享名。'."\n"
.'如果未设置,默认使用file\\_id\\_list中的第一个id对应的文件名。'."\n"
.'长度范围[0, 128]字符', 'type' => 'string', 'required' => false, 'example' => 'LectureRoom-1.MP4'],
'disable_preview' => ['description' => '禁止预览分享中的文件', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'disable_save' => ['description' => '禁止转存分享中的文件', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'disable_download' => ['description' => '禁止下载分享中的文件', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'preview_limit' => ['description' => '分享预览次数限制。'."\n"
.'次数要求>=0。'."\n"
.'次数0表示不限制', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
'save_limit' => ['description' => '分享转存次数限制。'."\n"
.'次数要求>=0。'."\n"
.'次数0表示不限制', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
'download_limit' => ['description' => '分享下载次数限制。'."\n"
.'次数要求>=0。'."\n"
.'次数0表示不限制', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
'require_login' => ['description' => '登录后才允许访问分享', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'office_editable' => ['description' => '允许在线编辑分享的文档', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'creatable' => ['description' => '允许在分享中的文件夹中创建文件;creatable为true时,需要同时传creatable_file_id_list参数', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'creatable_file_id_list' => [
'description' => '允许上传的文件夹file id列表',
'type' => 'array',
'items' => ['description' => '文件夹file id', 'type' => 'string', 'required' => false, 'example' => '9520943DC264'],
'required' => false,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '返回信息', '$ref' => '#/components/schemas/ShareLink'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"share_id\\": \\"7JQX1FswpQ8\\",\\n \\"share_pwd\\": \\"abcF123x\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id_list\\": [\\n \\"[\\\\\\"xx\\\\\\"]\\"\\n ],\\n \\"expiration\\": \\"2020-06-28T11:33:00.000+08:00\\",\\n \\"expired\\": false,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"videos\\",\\n \\"share_name\\": \\"video-1.MP4\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"status\\": \\"enabled\\",\\n \\"preview_count\\": 10,\\n \\"save_count\\": 2,\\n \\"download_count\\": 5,\\n \\"report_count\\": 0,\\n \\"video_preview_count\\": 1,\\n \\"access_count\\": 4,\\n \\"disable_preview\\": false,\\n \\"disable_save\\": false,\\n \\"disable_download\\": false,\\n \\"preview_limit\\": 100,\\n \\"save_limit\\": 100,\\n \\"download_limit\\": 100,\\n \\"require_login\\": false,\\n \\"share_all_files\\": true,\\n \\"share_msg\\": \\"pwd: 123\\",\\n \\"save_download_limit\\": 100,\\n \\"office_editable\\": true\\n}","type":"json"}]',
'title' => '创建分享',
'description' => '分享又称之为文件分享,是一个文件视图容器,通过其可将用户空间中的一个或多个文件暴露给匿名用户访问,匿名用户在分享权限的约束下访问其中的文件。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'CreateSimilarImageClusterTask' => [
'path' => '/v2/image/create_similar_image_cluster_task',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '123'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回参数',
'type' => 'object',
'properties' => [
'task_id' => ['description' => '任务 id', 'type' => 'string', 'example' => 'i:SimilarImageClustering-b67d53e7-2fe8-460f-9b95-1e93636923eb'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '创建相似图片聚类任务',
'summary' => '用户可以发起创建相似图片聚类任务,该任务会将指定 drive 空间下相似的图片聚类在一起。',
'description' => '**请确保在使用该接口前,已充分了解 PDS 的收费方式和[价格](~~425220~~)**。'."\n"
."\n"
.'使用此功能须开通增值服务图片处理功能,此功能目前限时免费。'."\n"
."\n"
.'使用步骤:'."\n"
."\n"
.'- 创建相似图片聚类任务'."\n"
.'- 通过 GetTaskStatus 接口查询相似图片聚类任务是否执行完成'."\n"
.'- 通过 SearchSimilarImageClusters 接口获取相似图片聚类结果'."\n"
."\n"
.'同一 drive 同一时刻只能有一个相似图片聚类任务运行,若上一任务未结束,再次调用相似图片聚类任务会返回失败。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"task_id\\": \\"i:SimilarImageClustering-b67d53e7-2fe8-460f-9b95-1e93636923eb\\"\\n}","type":"json"}]',
],
'CreateStory' => [
'summary' => '创建推荐故事。'."\n"
.'PDS 会根据请求参数中的故事类型和时间范围筛选 drive 空间下的图片和视频,将符合条件的图片、视频加入该故事的文件列表。'."\n"
.'若没有符合条件的图片、视频,则会创建空故事。',
'path' => '/v2/image/create_story',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'story_id' => ['description' => '故事 id。由用户指定。', 'type' => 'string', 'required' => false, 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
'story_type' => [
'description' => '故事类型',
'type' => 'string',
'required' => true,
'enumValueTitles' => ['PeopleMemory' => '人物故事', 'TagMemory' => '标签故事', 'TimeMemory' => '时光故事', 'TravelMemory' => '旅行故事'],
'example' => 'TagMemory',
'enum' => ['TimeMemory', 'PeopleMemory', 'TagMemory', 'TravelMemory'],
],
'story_sub_type' => ['description' => '故事子类型。其值取决于故事类型,详情可见请求参数补充说明。', 'type' => 'string', 'required' => false, 'example' => 'Food'],
'story_name' => ['description' => '故事名称。'."\n"
.'长度不超过 1024 个字节。', 'type' => 'string', 'required' => false, 'example' => 'Food'],
'story_start_time' => ['description' => '创建故事照片或视频的开始时间。RFC3339。', 'type' => 'string', 'required' => false, 'example' => '2016-12-30T16:00:00Z'],
'story_end_time' => ['description' => '创建故事照片或视频的结束时间。RFC3339。', 'type' => 'string', 'required' => false, 'example' => '2022-12-30T16:00:00Z'],
'min_image_count' => ['description' => '创建故事照片或视频文件最小个数。'."\n"
.'须大于 0,小于等于 max\\_image\\_count,空值默认为 1。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'minimum' => '1', 'example' => '1', 'default' => '1'],
'max_image_count' => ['description' => '创建故事照片或视频文件最大个数。'."\n"
.'须小于等于 100,大于等于 min\\_image\\_count,空值默认 30。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '100', 'example' => '30', 'default' => '30'],
'custom_labels' => [
'description' => '自定义标签。'."\n"
.'标签数量不能超过 20 个。',
'type' => 'object',
'deprecated' => true,
'required' => false,
'additionalProperties' => ['type' => 'string', 'example' => 'label_value', 'description' => '自定义标签'],
],
'address' => ['description' => '地址信息', 'required' => false, '$ref' => '#/components/schemas/Address'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'example' => '1'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"drive_id\\": \\"1\\"\\n}","type":"json"}]',
'title' => '创建推荐故事',
'description' => '**请确保在使用该接口前,已充分了解 PDS 的收费方式和[价格](~~425220~~)**。'."\n"
."\n"
.'使用此功能须开通增值服务图片处理功能。故事相关接口限时免费。'."\n"
."\n"
.'用户创建故事时可自己指定故事 id:'."\n"
.'- 若指定故事 id:'."\n"
.' - 若故事 id 不存在,则使用该 id 创建新故事;'."\n"
.' - 若故事 id 存在,则会根据新条件生成故事并覆盖更新该故事;'."\n"
.'- 若不指定 id,则会由 PDS 生成故事 id。'."\n"
."\n\n"
.'> '."\n"
.'> - 该接口为异步接口,用户创建推荐故事后需要等待一定时间生成该故事。用户可以通过 GetStory 接口或者 FindStories 接口去查询创建故事的进度。',
'requestParamsDescription' => '### 故事类型'."\n"
."\n"
.'- TimeMemory:时光故事'."\n"
."\n"
.'- PeopleMemory:人物故事'."\n"
."\n"
.'- TagMemory:标签故事'."\n"
."\n"
.'- TravelMemory:旅行故事'."\n"
."\n"
.'### 故事子类型'."\n"
."\n"
.'TimeMemory:空'."\n"
."\n"
.'PeopleMemory:'."\n"
."\n"
.'- Solo:人物故事,单人故事。搜索数据集里人脸数目最多的人物,根据已做过的人脸聚类的结果生成人物故事,可支持通过时间参数StoryStartTime和StoryEndTime传入时间间隔,即在某段时间间隔内,照片数量最多的人物为候选人物,不会关注是否已有该人物的故事生成'."\n"
."\n"
.'TagMemory:'."\n"
."\n"
.'- Food:美食标签故事'."\n"
."\n"
.'- Pet:宠物标签故事'."\n"
."\n"
.'- PetDog:宠物狗标签故事'."\n"
."\n"
.'- PetCat:宠物猫标签故事'."\n"
."\n"
.'- Scenery:风景标签故事'."\n"
."\n"
.'TravelMemory:空',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'CreateUser' => [
'summary' => '创建用户。',
'path' => '/v2/user/create',
'methods' => ['post'],
'schemes' => ['https', 'http'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'user_id' => ['title' => '用户id', 'description' => '用户id,最长64字符,不能包含字符#', 'type' => 'string', 'required' => true, 'example' => 'pdsuserid1', 'maxLength' => 1024, 'minLength' => 1],
'nick_name' => ['title' => '用户昵称', 'description' => '用户昵称,最长128字符', 'type' => 'string', 'required' => false, 'example' => 'pdsuer', 'maxLength' => 128, 'minLength' => 0],
'status' => [
'title' => '用户状态',
'description' => '用户状态,默认为enabled'."\n"
."\n"
.'- enabled(正常)'."\n"
."\n"
.'- disabled(禁止登录)',
'type' => 'string',
'required' => false,
'example' => 'enabled',
'default' => 'enabled',
'enum' => ['enabled', 'disabled'],
],
'role' => [
'title' => '角色',
'description' => '角色,默认为user'."\n"
."\n"
.'- superadmin(超级管理员)'."\n"
."\n"
.'- admin(管理员)'."\n"
."\n"
.'- user(普通用户)'."\n"
."\n"
.'如果当前domain支持subdomain。还可以支持 "subdomain\\_super_admin", "subdomain\\_admin”。',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['subdomain_super_admin' => 'subdomain超级管理员', 'subdomain_admin' => 'subdomain管理员', 'superadmin' => '超级管理员', 'admin' => '管理员', 'user' => '普通用户'],
'example' => 'user',
'default' => 'user',
'enum' => ['user', 'admin', 'superadmin', 'subdomain_admin', 'subdomain_super_admin'],
],
'avatar' => ['title' => '头像地址', 'description' => '头像地址'."\n"
."\n"
.'http形式时,以http:// 或https:// 作为前缀,参数长度最长4KB'."\n"
."\n"
.'data形式时,以data://作为前缀,base64编码,参数长度最长300KB', 'type' => 'string', 'required' => false, 'example' => 'http://a.b.c/pds.jpg'],
'phone' => ['title' => '电话', 'description' => '电话', 'type' => 'string', 'required' => false, 'example' => '13900001111'],
'email' => ['title' => '邮箱地址', 'description' => '邮箱地址', 'type' => 'string', 'required' => false, 'example' => '123@pds.com'],
'user_data' => [
'description' => '用户自定义数据,最长1024字符',
'type' => 'object',
'required' => false,
'additionalProperties' => ['type' => 'any', 'description' => ''],
'example' => 'md',
],
'group_info_list' => [
'description' => '群组信息',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'group_id' => ['description' => '群组id', 'type' => 'string', 'required' => false, 'example' => 'g123'],
],
'required' => false,
'description' => '',
],
'required' => false,
],
'user_name' => ['title' => '用户名', 'description' => '用户名,最长128字符', 'type' => 'string', 'required' => false, 'example' => 'pdsusername', 'maxLength' => 128, 'minLength' => 0],
'description' => ['title' => '用户描述', 'description' => '用户描述,最长1024字符', 'type' => 'string', 'required' => false, 'example' => 'VIP user', 'maxLength' => 1024, 'minLength' => 0],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回信息',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => '域id', 'description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'user_id' => ['title' => '用户id', 'description' => '用户id', 'type' => 'string', 'example' => 'dingding_abc001'],
'avatar' => ['title' => '头像地址', 'description' => '头像地址', 'type' => 'string', 'example' => 'http://aa.com/1.jpg'],
'created_at' => ['description' => '创建时间,格林威治时间1970年01月01日00时00分00秒起至现在的毫秒数', 'type' => 'integer', 'format' => 'int64', 'example' => '1639762579768'],
'updated_at' => ['description' => '修改时间,格林威治时间1970年01月01日00时00分00秒起至现在的毫秒数', 'type' => 'integer', 'format' => 'int64', 'example' => '1639762579768'],
'nick_name' => ['title' => '昵称', 'description' => '昵称', 'type' => 'string', 'example' => '001'],
'user_name' => ['title' => '用户名', 'description' => '用户名', 'type' => 'string', 'example' => 'pds'],
'phone' => ['title' => '电话', 'description' => '电话', 'type' => 'string', 'example' => '13900001111'],
'email' => ['title' => '邮箱地址', 'description' => '邮箱地址', 'type' => 'string', 'example' => 'a@a.com'],
'role' => [
'title' => '角色',
'description' => '角色'."\n"
."\n"
.'- superadmin(超级管理员)'."\n"
."\n"
.'- admin(管理员)'."\n"
."\n"
.'- user(普通用户)',
'type' => 'string',
'enumValueTitles' => ['superadmin' => '超级管理员', 'admin' => '管理员', 'user' => '普通用户'],
'example' => 'admin',
],
'status' => [
'title' => '状态',
'description' => '状态'."\n"
."\n"
.'- disabled(禁止)'."\n"
."\n"
.'- enabled(使能)',
'type' => 'string',
'enumValueTitles' => ['disabled' => '禁止', 'enabled' => '使能'],
'example' => 'enabled',
],
'description' => ['title' => '描述', 'description' => '描述', 'type' => 'string', 'example' => 'vipuser'],
'default_drive_id' => ['title' => '缺省空间id', 'description' => '缺省空间id', 'type' => 'string', 'example' => '1'],
'user_data' => [
'description' => '用户自定义数据',
'type' => 'object',
'additionalProperties' => ['type' => 'any', 'example' => 'dog', 'description' => '自定义项'],
],
'creator' => ['title' => '创建者', 'description' => '创建者', 'type' => 'string', 'example' => 'user1'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"user_id\\": \\"dingding_abc001\\",\\n \\"avatar\\": \\"http://aa.com/1.jpg\\",\\n \\"created_at\\": 1639762579768,\\n \\"updated_at\\": 1639762579768,\\n \\"nick_name\\": \\"001\\",\\n \\"user_name\\": \\"pds\\",\\n \\"phone\\": \\"13900001111\\",\\n \\"email\\": \\"a@a.com\\",\\n \\"role\\": \\"admin\\",\\n \\"status\\": \\"enabled\\",\\n \\"description\\": \\"vipuser\\",\\n \\"default_drive_id\\": \\"1\\",\\n \\"user_data\\": {\\n \\"key\\": \\"dog\\"\\n },\\n \\"creator\\": \\"user1\\"\\n}","type":"json"}]',
'title' => '创建用户',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'CsiGetFileInfo' => [
'path' => '/v2/csi/get_file_info',
'methods' => ['post'],
'schemes' => ['https', 'http'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'url_expire_sec' => ['description' => '可选填下载链接过期时间,单位为秒,取值范围为:[10,14400] 秒。'."\n"
.'填写此字段时提供下载链接,默认不提供下载链接。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '14400', 'minimum' => '10', 'example' => '100'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'investigation_info' => ['description' => '审核信息', '$ref' => '#/components/schemas/InvestigationInfo'],
'url' => ['description' => '文件下载链接', 'type' => 'string', 'example' => 'https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx'],
],
'description' => '',
],
],
],
'title' => '获取文件内容安全详情',
'summary' => '获取文件的内容安全详情。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"investigation_info\\": {\\n \\"status\\": 4,\\n \\"suggestion\\": \\"block\\",\\n \\"video_detail\\": {\\n \\"block_frames\\": [\\n {\\n \\"rate\\": 99.1,\\n \\"offset\\": 3,\\n \\"label\\": \\"porn\\"\\n }\\n ]\\n }\\n },\\n \\"url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\"\\n}","type":"json"}]',
],
'DeleteDomain' => [
'summary' => ' 删除 domain ',
'path' => '/v2/domain/delete',
'methods' => ['post'],
'schemes' => ['https', 'http'],
'tags' => ['admin'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'domain_id' => ['description' => 'domain id', 'type' => 'string', 'required' => false, 'example' => 'bj1'],
],
'required' => false,
],
],
],
'responses' => [
204 => [],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '删除Domain',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeleteDrive' => [
'summary' => '删除空间。',
'path' => '/v2/drive/delete',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
],
'required' => false,
],
],
],
'responses' => [
204 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [],
],
],
],
'title' => '删除空间',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeleteFile' => [
'summary' => '删除文件或文件夹。',
'path' => '/v2/file/delete',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'high', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['title' => 'drive id 如果要删除drive下的文件时,drive_id时必需的参数', 'description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1', 'pattern' => '^[0-9]*$'],
'file_id' => ['title' => 'file_id是文件的唯一标识,删除文件或者目录时必须指定file_id', 'description' => '文件或文件夹id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'domain_id' => ['description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['description' => '空间id', 'type' => 'string', 'example' => '1'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'example' => '9520943DC264'],
'async_task_id' => ['description' => '异步任务id,只有异步处理的场景才会返回。后续可以调用 [GetAsyncTask](~~440456~~),传递异步任务 id,获取任务信息。', 'type' => 'string', 'example' => '000e89fb-cf8f-11e9-8ab4-b6e980803a3b'],
],
'description' => '',
],
],
],
'title' => '删除文件或文件夹',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"9520943DC264\\",\\n \\"async_task_id\\": \\"000e89fb-cf8f-11e9-8ab4-b6e980803a3b\\"\\n}","type":"json"}]',
],
'DeleteGroup' => [
'summary' => '删除群组接口, 在删除群组前,需保证群组下没有其他群组或用户,否则会导致删除失败。',
'path' => '/v2/group/delete',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'group_id' => ['description' => '待删除的群组ID', 'type' => 'string', 'required' => true, 'example' => 'g123'],
],
'required' => false,
],
],
],
'responses' => [
204 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [],
],
],
],
'title' => '删除群组',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeleteRevision' => [
'summary' => '删除历史版本,不支持删除最新版本。',
'path' => '/v2/file/revision/delete',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'revision_id' => ['description' => '版本 id', 'type' => 'string', 'required' => true, 'example' => '40CB7794C929'],
],
'required' => false,
],
],
],
'responses' => [
204 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [],
],
],
],
'title' => '删除历史版本',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeleteStory' => [
'summary' => '删除指定故事。',
'path' => '/v2/image/delete_story',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求数据',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'story_id' => ['description' => '故事 id', 'type' => 'string', 'required' => true, 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'example' => '1'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '删除故事',
'description' => '**请确保在使用该接口前,已充分了解 PDS 的收费方式和[价格](~~425220~~)**。'."\n"
."\n"
.'使用此功能须开通增值服务图片处理功能。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"drive_id\\": \\"1\\"\\n}","type":"json"}]',
],
'DeleteUser' => [
'path' => '/v2/user/delete',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'user_id' => ['description' => '用户id', 'type' => 'string', 'required' => true, 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
],
'required' => true,
],
],
],
'responses' => [
204 => [
'headers' => [],
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [],
],
],
],
'title' => '删除用户',
'summary' => '删除用户。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'DeltaGetLastCursor' => [
'path' => '/v2/file/get_last_cursor',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['title' => '云端 drive id', 'description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'sync_root_id' => ['title' => '同步目录的对应的云端跟目录', 'description' => '同步文件夹根节点文件id', 'type' => 'string', 'required' => false, 'example' => '622fb09598ae66777c7040109a16f49381f6abe1'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'cursor' => ['title' => '当前增量变化的最新游标', 'description' => '指定drive或者指定同步目录下增量信息的最新游标', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'title' => '获取增量操作游标',
'summary' => '获取增量操作游标。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"cursor\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
],
'DownloadFile' => [
'path' => '/v2/file/download',
'methods' => ['get'],
'schemes' => ['http', 'https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/x-www-form-urlencoded'],
'produces' => ['application/octet-stream'],
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'share_id',
'in' => 'query',
'schema' => ['description' => '分享id。 如果通过分享操作文件,请携带`x-share-token header`鉴权并传递此字段,此时`drive_id`无效。否则请使用`aksk`或者`access_token`方式鉴权,并传递`drive_id`字段。 `share_id`和`drive_id`两者必须有一个字段赋值。', 'type' => 'string', 'required' => false, 'example' => '7JQX1FswpQ8'],
],
[
'name' => 'drive_id',
'in' => 'query',
'schema' => ['description' => '空间id', 'type' => 'string', 'required' => false, 'example' => '1'],
],
[
'name' => 'file_id',
'in' => 'query',
'schema' => ['description' => '文件id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
],
[
'name' => 'image_thumbnail_process',
'in' => 'query',
'schema' => ['description' => '图片处理样式,设置后会跳转至处理后的缩略图地址', 'type' => 'string', 'required' => false, 'example' => 'image/resize,m_fill,h_128,w_128,limit_0'],
],
[
'name' => 'video_thumbnail_process',
'in' => 'query',
'schema' => ['description' => '视频处理样式,设置后会跳转至处理后的缩略图地址', 'type' => 'string', 'required' => false, 'example' => 'video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast'],
],
[
'name' => 'office_thumbnail_process',
'in' => 'query',
'schema' => ['description' => '文档处理样式,设置后会跳转至处理后的缩略图地址', 'type' => 'string', 'required' => false, 'example' => 'image/resize,m_lfit,w_256,limit_0/format,jpg|image/format,webp'],
],
],
'responses' => [
302 => [
'headers' => [
'location' => [
'schema' => ['title' => '下载地址', 'type' => 'string'],
],
],
],
],
'title' => '下载文件',
'summary' => '下载文件。',
'description' => '<props="china">最佳实践可参考:[文件下载](~~175889~~)。</props>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'FileAddPermission' => [
'summary' => '文件夹授权。单Drive下最多可支持1000条授权记录,超出后授权不生效。',
'path' => '/v2/file/add_permission',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件夹id, 当授权整个团队空间时,此字段填root。 个人空间共享不支持填root', 'type' => 'string', 'required' => true, 'example' => '4221bf6e6ab43c255edc4463bf3a6f5f5d317406'],
'member_list' => [
'description' => '被授权的成员列表',
'type' => 'array',
'items' => ['description' => '授权信息', 'required' => false, '$ref' => '#/components/schemas/FilePermissionMember'],
'required' => true,
],
],
'required' => false,
],
],
],
'responses' => [
204 => [
'headers' => [],
],
],
'title' => '文件共享授权给用户或组',
'description' => '单Drive下最多可支持1000条授权记录,超出后授权不生效。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'FileDeleteUserTags' => [
'path' => '/v2/file/delete_usertags',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'key_list' => [
'description' => '待删除的标签列表。'."\n"
.'数组不能为空,且数量上限为 1000。',
'type' => 'array',
'items' => ['description' => '标签名。'."\n"
.'不能带有 # 字符。', 'type' => 'string', 'required' => true, 'example' => 'tag', 'pattern' => '^[^#]+$'],
'required' => true,
'maxItems' => 1000,
'minItems' => 1,
],
],
'required' => false,
],
],
],
'responses' => [
204 => [],
],
'title' => '删除文件自定义标签',
'summary' => '删除文件自定义标签。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'FileListPermission' => [
'summary' => '列举文件的共享或授权记录。',
'path' => '/v2/file/list_permission',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'required' => true, 'example' => '4221bf6e6ab43a255edc4463bffa6f5f5d317401'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '文件权限信息列表',
'type' => 'array',
'items' => ['description' => '文件权限信息', '$ref' => '#/components/schemas/FilePermissionMember'],
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '列举文件的共享或授权记录',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"[\\n {\\n \\"identity\\": {\\n \\"identity_type\\": \\"IT_User\\",\\n \\"identity_id\\": \\"16435bdf934248b788b7b3771ee9a3dw\\"\\n },\\n \\"role_id\\": \\"SystemFileDownloader\\",\\n \\"expire_time\\": 1633598085642,\\n \\"disinherit_sub_group\\": false,\\n \\"action_list\\": [\\n \\"FILE.CREATE\\"\\n ]\\n }\\n]","type":"json"}]',
],
'FilePutUserTags' => [
'path' => '/v2/file/put_usertags',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'user_tags' => [
'description' => '待添加的标签列表。'."\n"
.'数组不能为空,且数量上限为 1000。'."\n"
.'数组中不能存在同名标签。',
'type' => 'array',
'items' => [
'description' => '标签名和标签值的长度之和不能超过 2000 字节。',
'type' => 'object',
'properties' => [
'key' => ['description' => '标签名。'."\n"
.'不能为空,且不能含有 # 字符。', 'type' => 'string', 'required' => true, 'example' => 'tag', 'pattern' => '^[^#]+$'],
'value' => ['description' => '标签值。'."\n"
.'不能含有 # 字符。', 'type' => 'string', 'required' => false, 'example' => 'value', 'pattern' => '^[^#]+$'],
],
'required' => true,
],
'required' => true,
'maxItems' => 1000,
'minItems' => 1,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'file_id' => ['title' => 'Id of the request', 'description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
],
],
],
],
'title' => '添加文件自定义标签',
'summary' => '对文件添加自定义标签。',
'description' => '此接口为增量更新操作:'."\n"
."\n"
.'- 若此次请求中存在同名标签则会覆盖之前的值'."\n"
."\n"
.'- 若标签不存在则新增'."\n"
."\n"
.'- 历史非同名标签不受影响。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"file_id\\": \\"9520943DC264\\"\\n}","type":"json"}]',
],
'FileRemovePermission' => [
'summary' => '取消文件共享授权。',
'path' => '/v2/file/remove_permission',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'required' => true, 'example' => '4221bf6e6ab43c255edc4463bf3a6f5f5d317406'],
'member_list' => [
'description' => '共享的用户对象集合',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'identity' => ['description' => '可授权对象,表示一个用户或者一个群组', 'required' => true, '$ref' => '#/components/schemas/Identity'],
'role_id' => ['description' => '目前支持两种方式设置权限,一种是通过指定角色设置权限,另一种是自定义操作权限,此字段用于指定角色设置权限,与action\\_list互斥,当两个字段同时设置时,以此字段为准'."\n"
."\n"
.'目前支持:'."\n"
."\n"
.'SystemFileOwner(文件协同)'."\n"
."\n"
.'SystemFileDownloader(下载者)'."\n"
."\n"
.'SystemFileEditor(编辑者)'."\n"
."\n"
.'SystemFileEditorWithoutDelete(无删除编辑者)'."\n"
."\n"
.'SystemFileEditorWithoutShareLink(无分享编辑者)'."\n"
."\n"
.'SystemFileMetaViewer(可见列表)'."\n"
."\n"
.'SystemFileUploader(上传者)、SystemFileUploaderAndDownloader(上传/下载者)'."\n"
."\n"
.'SystemFileDownloaderWithShareLink(下载/分享者)'."\n"
."\n"
.'SystemFileUploaderAndDownloaderWithShareLink(上传/下载/分享者)'."\n"
."\n"
.'SystemFileUploaderAndViewer(预览/上传者)'."\n"
."\n"
.'SystemFileUploaderWithShareLink(上传/分享者)'."\n"
."\n"
.'SystemFileViewer(预览者)', 'type' => 'string', 'required' => true, 'example' => 'SystemFileDownloader'],
],
'required' => true,
'description' => '',
],
'required' => true,
],
],
'required' => true,
],
],
],
'responses' => [
204 => [
'headers' => [],
],
],
'title' => '取消文件共享授权',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'GetAsyncTask' => [
'summary' => '获取异步任务信息。',
'path' => '/v2/async_task/get',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体。',
'type' => 'object',
'properties' => [
'async_task_id' => ['description' => '异步任务id', 'type' => 'string', 'required' => true, 'example' => '000e89fb-cf8f-11e9-8ab4-b6e980803a3b'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'async_task_id' => ['title' => 'Id of the request', 'description' => '异步任务id', 'type' => 'string', 'example' => '000e89fb-cf8f-11e9-8ab4-b6e980803a3b'],
'status' => [
'description' => '<warning>已废弃(推荐使用state字段替代)</warning>'."\n"
."\n"
.'任务状态'."\n"
."\n"
.'- Failed(失败)'."\n"
."\n"
.'- Running(运行中)'."\n"
."\n"
.'- PartialSucceed(部分成功)'."\n"
."\n"
.'- Succeed(成功)',
'type' => 'string',
'enumValueTitles' => ['Failed' => '失败', 'Running' => '运行中', 'PartialSucceed' => '部分成功', 'Succeed' => '成功'],
'example' => 'Succeed',
],
'state' => ['description' => '任务状态'."\n"
."\n"
.'- Failed(失败)'."\n"
."\n"
.'- Running(运行中)'."\n"
."\n"
.'- PartialSucceed(部分成功)'."\n"
."\n"
.'- Succeed(成功)', 'type' => 'string', 'example' => 'Succeed'],
'message' => ['description' => '<warning>已废弃(推荐使用error_message字段替代)</warning>'."\n"
.'异步任务错误信息', 'type' => 'string', 'example' => 'The request has been failed due to some unknown error. Please try again later.'],
'err_code' => ['description' => '<warning>已废弃(推荐使用error_code字段替代)</warning>'."\n"
.'异步任务错误码', 'type' => 'integer', 'format' => 'int64', 'example' => '404'],
'total_process' => ['description' => '异步任务需处理总量,如服务端打包下载需打包的文件量', 'type' => 'integer', 'format' => 'int64', 'example' => '1000'],
'consumed_process' => ['description' => '异步任务已处理总量,如服务端打包下载已打包的文件量', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'url' => ['description' => '异步任务生成数据的下载地址,如服务端打包下载任务生成下载地址', 'type' => 'string', 'example' => 'https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx'],
'error_code' => ['description' => '任务错误码', 'type' => 'string', 'example' => 'InternalError'],
'error_message' => ['description' => '任务错误信息', 'type' => 'string', 'example' => 'The request has been failed due to some unknown error. Please try again later.'],
'uncompress_file_list' => [
'description' => '解压文件信息列表',
'type' => 'array',
'items' => ['description' => '解压文件信息', '$ref' => '#/components/schemas/UncompressedFileInfo'],
],
'category' => ['description' => '任务自定义类别', 'type' => 'string', 'example' => 'album'],
'created_at' => ['description' => '任务创建时间,ISO格式, 如:2019-03-28T13:03:29.298Z', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'started_at' => ['description' => '任务开始时间,ISO格式, 如:2019-03-28T13:03:29.298Z', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'finished_at' => ['description' => '任务完成时间,ISO格式, 如:2019-03-28T13:03:29.298Z', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'skipped_process' => ['description' => '异步任务已跳过处理的数量', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'failed_process' => ['description' => '异步任务已处理失败的数量', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'task_type' => ['type' => 'string'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"async_task_id\\": \\"000e89fb-cf8f-11e9-8ab4-b6e980803a3b\\",\\n \\"status\\": \\"Succeed\\",\\n \\"state\\": \\"Succeed\\",\\n \\"message\\": \\"The request has been failed due to some unknown error. Please try again later.\\",\\n \\"err_code\\": 404,\\n \\"total_process\\": 1000,\\n \\"consumed_process\\": 100,\\n \\"url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"error_code\\": \\"InternalError\\",\\n \\"error_message\\": \\"The request has been failed due to some unknown error. Please try again later.\\",\\n \\"uncompress_file_list\\": [\\n {\\n \\"drive_id\\": \\"5060\\",\\n \\"file_id\\": \\"66972349b2b12fa309a143fb9db29647b2ddabfd\\",\\n \\"is_folder\\": true,\\n \\"name\\": \\"1.mov\\",\\n \\"size\\": 218052,\\n \\"updated_at\\": 1721368014000,\\n \\"items\\": [\\n {\\n \\"drive_id\\": \\"5060\\",\\n \\"file_id\\": \\"66972349b2b12fa309a143fb9db29647b2ddabfd\\",\\n \\"is_folder\\": true,\\n \\"name\\": \\"1.mov\\",\\n \\"size\\": 218052,\\n \\"updated_at\\": 1721368014000,\\n \\"items\\": [\\n {\\n \\"drive_id\\": \\"5060\\",\\n \\"file_id\\": \\"66972349b2b12fa309a143fb9db29647b2ddabfd\\",\\n \\"is_folder\\": true,\\n \\"name\\": \\"1.mov\\",\\n \\"size\\": 218052,\\n \\"updated_at\\": 1721368014000,\\n \\"items\\": []\\n }\\n ]\\n }\\n ]\\n }\\n ],\\n \\"category\\": \\"album\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"started_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"finished_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"skipped_process\\": 0,\\n \\"failed_process\\": 0,\\n \\"task_type\\": \\"\\"\\n}","type":"json"}]',
'title' => '获取异步任务信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'GetDefaultDrive' => [
'path' => '/v2/drive/get_default_drive',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'user_id' => ['description' => '用户 id,AK 访问时必填,AccessToken 访问时可选(默认取 AccessToken 关联的用户 id)', 'type' => 'string', 'required' => false, 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'Schema of Response', '$ref' => '#/components/schemas/Drive'],
],
],
'title' => '获取缺省空间',
'summary' => '获取指定用户的缺省空间。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"drive_name\\": \\"drv1\\",\\n \\"description\\": \\"vipdrive\\",\\n \\"owner\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"owner_type\\": \\"user\\",\\n \\"drive_type\\": \\"normal\\",\\n \\"status\\": \\"enabled\\",\\n \\"used_size\\": 20480,\\n \\"total_size\\": 204800,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\"\\n}","type":"json"}]',
],
'GetDomain' => [
'path' => '/v2/domain/get',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => ['admin'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求参数。',
'type' => 'object',
'properties' => [
'domain_id' => ['description' => 'domain id', 'type' => 'string', 'required' => true, 'example' => 'bj1'],
'get_quota_used' => ['description' => '是否需要获取domain的已用quota,默认为false。当domain容量配额size_quota大于0时,传true可获取domain已用容量配额。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'fields' => ['description' => '需要获取的 domain 属性字段,英文逗号分隔,为空代表不获取任何枚举字段', 'type' => 'string', 'required' => false, 'example' => 'file_category'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'domain 信息', '$ref' => '#/components/schemas/Domain'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '获取Domain',
'summary' => '获取Domain信息。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"parent_domain_id\\": \\"bj1\\",\\n \\"domain_id\\": \\"bj2\\",\\n \\"domain_name\\": \\"pdsdomain\\",\\n \\"description\\": \\"my domain\\",\\n \\"init_drive_enable\\": true,\\n \\"init_drive_size\\": 1073741824,\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"size_quota\\": 1099511627776,\\n \\"size_quota_used\\": 1099511627776,\\n \\"user_count_quota\\": 50,\\n \\"status\\": 1,\\n \\"used_size\\": 1099511627776,\\n \\"published_app_access_strategy\\": {\\n \\"effect\\": \\"deny\\",\\n \\"except_app_id_list\\": [\\n \\"8ovxCTRUDdbpVWBP\\"\\n ]\\n },\\n \\"sharable\\": true,\\n \\"data_hash_name\\": \\"sha1\\",\\n \\"store_redundancy_type\\": \\"LRS\\"\\n}","type":"json"}]',
],
'GetDomainQuota' => [
'path' => '/v2/domain/get_quota',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => ['admin'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'size_quota' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
'size_used' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
'user_count_quota' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
'user_count_used' => ['type' => 'integer', 'format' => 'int64', 'description' => ''],
],
'description' => '',
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'summary' => ' 获取domain限额 ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"size_quota\\": 0,\\n \\"size_used\\": 0,\\n \\"user_count_quota\\": 0,\\n \\"user_count_used\\": 0\\n}","type":"json"}]',
],
'GetDownloadUrl' => [
'summary' => '获取文件下载地址。',
'path' => '/v2/file/get_download_url',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'share_id' => ['description' => '分享id。'."\n"
.'如果通过分享操作文件,请携带`x-share-token` header鉴权并传递此字段,此时`drive_id`无效。否则请使用`aksk`或者`access_token`方式鉴权,并传递`drive_id`字段。'."\n"
.'`share_id`和`drive_id`两者必须有一个字段赋值。', 'type' => 'string', 'required' => false, 'example' => '7JQX1FswpQ8'],
'drive_id' => ['description' => '空间 id。', 'type' => 'string', 'required' => false, 'example' => '1'],
'file_id' => ['description' => '文件 id。', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'file_name' => ['description' => '文件名,最长 1024 字符。', 'type' => 'string', 'required' => false, 'example' => '1.txt', 'maxLength' => 1024, 'minLength' => 1],
'expire_sec' => ['description' => '下载地址过期时间,单位为秒,最长115200秒,默认为900秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '115200', 'minimum' => '1', 'example' => '100', 'default' => '900'],
'response_content_type' => ['type' => 'string', 'required' => false, 'example' => 'video/mp4', 'description' => ''],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response。',
'type' => 'object',
'properties' => [
'url' => ['title' => 'Id of the request', 'description' => '公网下载地址'."\n"
.'(开启智能数据域名后,根据客户网络情况选取最优线路,返回对应域名下载地址)。', 'type' => 'string', 'example' => 'https://data.aliyunpds.com/hz22%2F5d79219b0aa9a7c995a94a96993ba3205cd91c5a%2F5d79219bf3261a5d38744da0834ed489b677a27a?Expires=xxxOSSAccessKeyId=xxx&Signature=xxx&response-content-disposition=attachment%3Bfilename%3DtBiZAoJPC2c8b13450eda4292b7f5f8010618e078.txt'],
'internal_url' => ['description' => 'vpc内下载地址'."\n"
.'(开启智能数据域名后将不使用该字段,根据请求该参数会自适应返回在URL字段值内,如需使用该字段请联系PDS技术支持)。', 'type' => 'string', 'example' => 'https://data-vpc.aliyunpds.com/hz22%2F5d79219b0aa9a7c995a94a96993ba3205cd91c5a%2F5d79219bf3261a5d38744da0834ed489b677a27a?Expires=xxxOSSAccessKeyId=xxx&Signature=xxx&response-content-disposition=attachment%3Bfilename%3DtBiZAoJPC2c8b13450eda4292b7f5f8010618e078.txt'],
'cdn_url' => ['description' => 'cdn下载地址'."\n"
.'(开启智能数据域名后不使用该字段,根据请求该参数会自适应返回在URL字段值内,如需使用该字段请联系PDS技术支持)。', 'type' => 'string', 'example' => 'https://data-cdn.aliyunpds.com/hz22%2F5d79219b0aa9a7c995a94a96993ba3205cd91c5a%2F5d79219bf3261a5d38744da0834ed489b677a27a?Expires=xxxOSSAccessKeyId=xxx&Signature=xxx&response-content-disposition=attachment%3Bfilename%3DtBiZAoJPC2c8b13450eda4292b7f5f8010618e078.txt'],
'expiration' => ['description' => '下载链接的过期时间。', 'type' => 'string', 'example' => '2022-01-02T15:04:05.999Z07:00'],
'size' => ['description' => '文件大小,单位:byte。', 'type' => 'integer', 'format' => 'int64', 'example' => '10'],
'crc64_hash' => ['description' => 'crc64值。', 'type' => 'string', 'example' => '5498595269368962671'],
'content_hash' => ['description' => '文件内容hash。', 'type' => 'string', 'example' => 'EA4942AA8761213890A5C386F88E6464D2C31CA1'],
'content_hash_name' => ['description' => '文件内容hash算法名。', 'type' => 'string', 'example' => 'sha1'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"url\\": \\"https://data.aliyunpds.com/hz22%2F5d79219b0aa9a7c995a94a96993ba3205cd91c5a%2F5d79219bf3261a5d38744da0834ed489b677a27a?Expires=xxxOSSAccessKeyId=xxx&Signature=xxx&response-content-disposition=attachment%3Bfilename%3DtBiZAoJPC2c8b13450eda4292b7f5f8010618e078.txt\\",\\n \\"internal_url\\": \\"https://data-vpc.aliyunpds.com/hz22%2F5d79219b0aa9a7c995a94a96993ba3205cd91c5a%2F5d79219bf3261a5d38744da0834ed489b677a27a?Expires=xxxOSSAccessKeyId=xxx&Signature=xxx&response-content-disposition=attachment%3Bfilename%3DtBiZAoJPC2c8b13450eda4292b7f5f8010618e078.txt\\",\\n \\"cdn_url\\": \\"https://data-cdn.aliyunpds.com/hz22%2F5d79219b0aa9a7c995a94a96993ba3205cd91c5a%2F5d79219bf3261a5d38744da0834ed489b677a27a?Expires=xxxOSSAccessKeyId=xxx&Signature=xxx&response-content-disposition=attachment%3Bfilename%3DtBiZAoJPC2c8b13450eda4292b7f5f8010618e078.txt\\",\\n \\"expiration\\": \\"2022-01-02T15:04:05.999Z07:00\\",\\n \\"size\\": 10,\\n \\"crc64_hash\\": \\"5498595269368962671\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA1\\",\\n \\"content_hash_name\\": \\"sha1\\"\\n}","type":"json"}]',
'title' => '获取文件下载地址',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'GetDrive' => [
'summary' => '获取空间信息。',
'path' => '/v2/drive/get',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'Schema of Response', '$ref' => '#/components/schemas/Drive'],
],
],
'title' => '获取空间信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"drive_name\\": \\"drv1\\",\\n \\"description\\": \\"vipdrive\\",\\n \\"owner\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"owner_type\\": \\"user\\",\\n \\"drive_type\\": \\"normal\\",\\n \\"status\\": \\"enabled\\",\\n \\"used_size\\": 20480,\\n \\"total_size\\": 204800,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\"\\n}","type":"json"}]',
],
'GetFile' => [
'path' => '/v2/file/get',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => false, 'example' => '1'],
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'url_expire_sec' => ['description' => '过期时间,单位为秒,取值范围为:[10,14400] 秒', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '14400', 'minimum' => '10', 'example' => '100'],
'fields' => ['description' => '筛选返回字段:'."\n"
."\n"
.'1. 当填 * 时,返回文件所有字段(必须在请求中填写的除外);'."\n"
.'2. 当只需要特定字段时,可填写为:url、thumbnail、exif、cropping\\_suggestion、characteristic\\_hash、video\\_metadata、video\\_preview_metadata,当需要多个字段时,以逗号 , 分割,如 url,thumbnail;'."\n"
.'3. 必须填写investigation_info字符串,才会在响应中返回investigation_info字段。'."\n"
."\n"
.'默认返回所有字段(必须进行填写的除外)', 'type' => 'string', 'required' => false, 'example' => '*'],
'thumbnail_processes' => [
'description' => '缩略图配置,可一次性返回最多5个缩略图,map的key可以自定义,返回时按key返回对应的缩略图链接',
'type' => 'object',
'required' => false,
'additionalProperties' => ['$ref' => '#/components/schemas/ImageProcess', 'description' => '定义图片、视频、文档的缩略图处理规则'],
],
'share_id' => ['description' => '分享id。'."\n"
.'如果通过分享操作文件,请携带`x-share-token` header鉴权并传递此字段,此时`drive_id`无效。否则请使用`aksk`或者`access_token`方式鉴权,并传递`drive_id`字段。'."\n"
.'`share_id`和`drive_id`两者必须有一个字段赋值。', 'type' => 'string', 'required' => false, 'example' => '7JQX1FswpQ8'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'Schema of Response', '$ref' => '#/components/schemas/File'],
],
],
'title' => '获取文件详情',
'summary' => '获取文件详情。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n}","type":"json"}]',
],
'GetGroup' => [
'summary' => '获取群组信息。',
'path' => '/v2/group/get',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求参数。',
'type' => 'object',
'properties' => [
'group_id' => ['description' => '待获取的群组ID', 'type' => 'string', 'required' => true, 'example' => '2e43ec8427dd45f19431b7504649a1b1'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '群组信息', '$ref' => '#/components/schemas/Group'],
],
],
'title' => '获取群组信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"group_id\\": \\"b45c0c0c373c41ec9ebb5c85a025a08f\\",\\n \\"group_name\\": \\"test group\\",\\n \\"description\\": \\"created by system\\",\\n \\"created_at\\": 1670573504600,\\n \\"updated_at\\": 1670573504600,\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"is_sync\\": true\\n}","type":"json"}]',
],
'GetIdentityToBenefitPkgMapping' => [
'summary' => '获取实体和权益包关联,可用于获取用户绑定的权益包。',
'path' => '/v2/benefit/identity_to_benefit_pkg_mapping/get',
'methods' => ['post'],
'schemes' => ['https', 'http'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'identity_type' => [
'description' => '实体的类型'."\n"
.'管理用户权益,传user',
'type' => 'string',
'required' => true,
'example' => 'user',
'enum' => ['user'],
],
'identity_id' => ['description' => '实体的唯一标识'."\n"
."\n"
.'管理用户权益时,传user_id', 'type' => 'string', 'required' => true, 'example' => 'user123'],
'benefit_pkg_id' => ['description' => '权益包的唯一标识', 'type' => 'string', 'required' => true, 'example' => '40cb7794c9294'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '实体绑定的权益包信息', '$ref' => '#/components/schemas/IdentityToBenefitPkgMapping'],
],
],
'title' => '获取实体和权益包关联',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"identity_type\\": \\"user\\",\\n \\"identity_id\\": \\"user123\\",\\n \\"benefit_pkg_owner_id\\": \\"bj1\\",\\n \\"benefit_pkg_id\\": \\"40cb7794c9294\\",\\n \\"benefit_pkg_type\\": \\"user_identity\\",\\n \\"benefit_pkg_name\\": \\"高级会员\\",\\n \\"benefit_pkg_priority\\": 1,\\n \\"benefit_pkg_computation_rule\\": \\"sum\\",\\n \\"delivery_info_list\\": [\\n {\\n \\"amount\\": 1,\\n \\"is_permanent\\": false,\\n \\"expire_time\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\"\\n }\\n ],\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\"\\n}","type":"json"}]',
],
'GetLinkInfo' => [
'summary' => '获取账号信息。',
'path' => '/v2/account/get_link_info',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'type' => ['description' => '账号类型'."\n"
."\n"
.'- mobile:手机号'."\n"
."\n"
.'- email:邮箱'."\n"
."\n"
.'- ding:钉钉'."\n"
."\n"
.'- ram:阿里云RAM子账号'."\n"
."\n"
.'- wechat:企业微信'."\n"
."\n"
.'- ldap:LDAP账号'."\n"
."\n"
.'- custom:自定义账号', 'type' => 'string', 'required' => true, 'example' => 'mobile'],
'identity' => ['description' => '账号的唯一标识,比如手机号', 'type' => 'string', 'required' => true, 'example' => '130***'],
'extra' => ['description' => '账号唯一标识的附加信息,比如当账号为手机号时,此字段填手机的区域编码。', 'type' => 'string', 'required' => false, 'example' => '1'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => ['description' => '返回用户账号信息', '$ref' => '#/components/schemas/AccountLinkInfo'],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '获取账号信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"authentication_type\\": \\"mobile\\",\\n \\"identity\\": \\"136***000\\",\\n \\"extra\\": \\"86\\",\\n \\"user_id\\": \\"00016a587b62b50003deea299a4f5b50\\",\\n \\"created_at\\": 1639762579768,\\n \\"display_name\\": \\"001\\",\\n \\"status\\": \\"normal\\",\\n \\"last_login_time\\": 1639762579769\\n}","type":"json"}]',
],
'GetLinkInfoByUserId' => [
'path' => '/v2/account/get_link_info_by_user_id',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'user_id' => ['description' => '待查询的UserID', 'type' => 'string', 'required' => true, 'example' => 'xxx'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'title' => 'Schema of Response',
'description' => '返回结构体',
'type' => 'object',
'properties' => [
'items' => [
'title' => 'items',
'description' => '用户账号信息列表',
'type' => 'array',
'items' => ['description' => '用户账号信息', '$ref' => '#/components/schemas/AccountLinkInfo'],
],
],
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '根据用户ID获取账号信息',
'summary' => '根据用户ID获取账号信息。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"authentication_type\\": \\"mobile\\",\\n \\"identity\\": \\"136***000\\",\\n \\"extra\\": \\"86\\",\\n \\"user_id\\": \\"00016a587b62b50003deea299a4f5b50\\",\\n \\"created_at\\": 1639762579768,\\n \\"display_name\\": \\"001\\",\\n \\"status\\": \\"normal\\",\\n \\"last_login_time\\": 1639762579769\\n }\\n ]\\n}","type":"json"}]',
],
'GetRevision' => [
'path' => '/v2/file/revision/get',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'revision_id' => ['description' => '版本 id', 'type' => 'string', 'required' => true, 'example' => '40CB7794C929'],
'url_expire_sec' => ['description' => '过期时间,单位为秒,最短 10 秒,最长 86400 秒'."\n"
."\n"
.'默认15分钟。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '900'],
'fields' => ['description' => '筛选返回字段'."\n"
."\n"
.'默认为空。当填 * 时,返回所有字段,会比为空时多返回创建者名称', 'type' => 'string', 'required' => false, 'example' => '*'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '版本信息', '$ref' => '#/components/schemas/Revision'],
],
],
'title' => '获取版本信息',
'summary' => '获取版本详情。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"9520943DC264\\",\\n \\"revision_id\\": \\"40CB7794C929\\",\\n \\"revision_name\\": \\"1.mov\\",\\n \\"revision_version\\": 1,\\n \\"size\\": 1024,\\n \\"file_extension\\": \\"mov\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"keep_forever\\": false,\\n \\"revision_description\\": \\"aaa\\",\\n \\"is_latest_version\\": false,\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"creator_type\\": \\"\\",\\n \\"creator_id\\": \\"\\",\\n \\"creator_name\\": \\"\\"\\n}","type":"json"}]',
],
'GetShareLink' => [
'path' => '/v2/share_link/get',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'share_id' => ['description' => '分享id', 'type' => 'string', 'required' => true, 'example' => '7JQX1FswpQ8'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '返回信息', '$ref' => '#/components/schemas/ShareLink'],
],
],
'title' => '获取分享信息',
'summary' => '获取分享信息。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"share_id\\": \\"7JQX1FswpQ8\\",\\n \\"share_pwd\\": \\"abcF123x\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id_list\\": [\\n \\"[\\\\\\"xx\\\\\\"]\\"\\n ],\\n \\"expiration\\": \\"2020-06-28T11:33:00.000+08:00\\",\\n \\"expired\\": false,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"videos\\",\\n \\"share_name\\": \\"video-1.MP4\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"status\\": \\"enabled\\",\\n \\"preview_count\\": 10,\\n \\"save_count\\": 2,\\n \\"download_count\\": 5,\\n \\"report_count\\": 0,\\n \\"video_preview_count\\": 1,\\n \\"access_count\\": 4,\\n \\"disable_preview\\": false,\\n \\"disable_save\\": false,\\n \\"disable_download\\": false,\\n \\"preview_limit\\": 100,\\n \\"save_limit\\": 100,\\n \\"download_limit\\": 100,\\n \\"require_login\\": false,\\n \\"share_all_files\\": true,\\n \\"share_msg\\": \\"pwd: 123\\",\\n \\"save_download_limit\\": 100,\\n \\"office_editable\\": true\\n}","type":"json"}]',
],
'GetShareLinkByAnonymous' => [
'summary' => '匿名查看分享信息。',
'path' => '/v2/share_link/get_by_anonymous',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'Anonymous' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'share_id' => ['description' => '分享id', 'type' => 'string', 'required' => true, 'example' => '7JQX1FswpQ8'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回信息',
'type' => 'object',
'properties' => [
'creator_id' => ['description' => '创建者id', 'type' => 'string', 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
'creator_name' => ['description' => '创建者名字(已脱敏)', 'type' => 'string', 'example' => 'AB***CD'],
'creator_phone' => ['description' => '创建者手机号(已脱敏)', 'type' => 'string', 'example' => '136****00'],
'expiration' => ['description' => '过期时间', 'type' => 'string', 'example' => '2020-08-20T06:51:27.292Z'],
'updated_at' => ['description' => '修改时间', 'type' => 'string', 'example' => '2019-08-20T06:51:27.292Z'],
'avatar' => ['description' => '创建者头像', 'type' => 'string', 'example' => 'https://aliyunpds.com/a.jpg'],
'share_name' => ['description' => '分享名称', 'type' => 'string', 'example' => 'LectureRoom-1.MP4'],
'preview_count' => ['description' => '预览次数', 'type' => 'integer', 'format' => 'int64', 'example' => '80'],
'save_count' => ['description' => '转存次数', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
'download_count' => ['description' => '下载次数', 'type' => 'integer', 'format' => 'int64', 'example' => '50'],
'report_count' => ['description' => '被举报次数', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
'video_preview_count' => ['description' => '视频预览次数', 'type' => 'integer', 'format' => 'int64', 'example' => '5'],
'access_count' => ['description' => '访问次数', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
'disable_preview' => ['description' => '禁止预览', 'type' => 'boolean', 'example' => 'false'],
'disable_save' => ['description' => '禁止转存', 'type' => 'boolean', 'example' => 'false'],
'disable_download' => ['description' => '禁止下载', 'type' => 'boolean', 'example' => 'false'],
'preview_limit' => ['description' => '预览次数限制', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'save_limit' => ['description' => '转存次数限制', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'download_limit' => ['description' => '下载次数限制', 'type' => 'integer', 'format' => 'int64', 'example' => '100'],
'save_download_limit' => ['description' => '转存和下载总次数限制', 'type' => 'integer', 'format' => 'int64', 'example' => '200'],
'has_pwd' => ['description' => '分享是否设置了提取码', 'type' => 'boolean', 'example' => 'true'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"creator_id\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"creator_name\\": \\"AB***CD\\",\\n \\"creator_phone\\": \\"136****00\\",\\n \\"expiration\\": \\"2020-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"avatar\\": \\"https://aliyunpds.com/a.jpg\\",\\n \\"share_name\\": \\"LectureRoom-1.MP4\\",\\n \\"preview_count\\": 80,\\n \\"save_count\\": 2,\\n \\"download_count\\": 50,\\n \\"report_count\\": 0,\\n \\"video_preview_count\\": 5,\\n \\"access_count\\": 30,\\n \\"disable_preview\\": false,\\n \\"disable_save\\": false,\\n \\"disable_download\\": false,\\n \\"preview_limit\\": 100,\\n \\"save_limit\\": 100,\\n \\"download_limit\\": 100,\\n \\"save_download_limit\\": 200,\\n \\"has_pwd\\": true\\n}","type":"json"}]',
'title' => '匿名查看分享信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'GetShareLinkToken' => [
'path' => '/v2/share_link/get_share_token',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'Anonymous' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'share_id' => ['description' => '分享id', 'type' => 'string', 'required' => true, 'example' => '7JQX1FswpQ8'],
'share_pwd' => ['description' => '提取码', 'type' => 'string', 'required' => false, 'example' => 'abcF123x'],
'expire_sec' => ['description' => '令牌有效时长。参数合法范围是(0, 7200];参数为0或缺省时默认7200秒。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '7200'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'share_token' => ['title' => 'Id of the request', 'description' => 'jwt格式的令牌', 'type' => 'string', 'example' => 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJjOWI3YTVhYTA0ZDE0YWUzODY3ZmRjODg2ZmEwMWRhNCIsImN1c3RvbUpzb24iOiJ7XCJjbGllbnRJZFwiOlwiMjVkelgzdmJZcWt0Vnh5WFwiLFwiZG9tYWluSWRcIjpcImJqMjlcIixcInNjb3BlXCI6W1wiRFJJVkUuQUxMXCIsXCJTSEFSRS5BTExcIixcIkZJTEUuQUxMXCIsXCJVU0VSLkFMTFwiLFwiVklFVy5BTExcIixcIlNUT1JBR0UuQUxMXCIsXCJTVE9SQUdFRklMRS5MSVNUXCIsXCJCQVRDSFwiLFwiT0FVVEguQUxMXCIsXCJJTUFHRS5BTExcIixcIklOVklURS5BTExcIixcIkFDQ09VTlQuQUxMXCJdLFwicm9sZVwiOlwidXNlclwiLFwicmVmXCI6XCJodHRwczovL3d3dy5hbGl5dW5kcml2ZS5jb20vXCIsXCJkZXZpY2VfaWRcIjpcImIyODIwNWU1YzU5NzRjY2JiODI3MDNiNjhkYjhjNDUxXCJ9IiwiZXhwIjoxNjQ4NjE0NDkzLCJpYXQiOjE2NDg2MDcyMzN9.d3HVLvv_LFw2QhPrhvjH_kICWQJX9sKKt7NjQEqI_xE2JO_b7D8rPsFTZz93PLvZ7MhCmudTjGImUpd-ehFnI4Go-1S7BGaKaHFILvP-sWy18Wpikowjxx9mSbzBM_cO6D1LI-kyYhXKWHgVdADfVIPniTDA7-ffhUpi7cAebEs'],
'expires_in' => ['description' => '多长时间失效,比如7200秒(2个小时)', 'type' => 'integer', 'format' => 'int64', 'example' => '7200'],
],
],
],
],
'title' => '获取分享令牌',
'summary' => '匿名获取分享令牌。',
'description' => '文件分享中文件访问流程要求必须先获取share token,即使此分享的share_pwd=""(非私密分享)。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"share_token\\": \\"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJjOWI3YTVhYTA0ZDE0YWUzODY3ZmRjODg2ZmEwMWRhNCIsImN1c3RvbUpzb24iOiJ7XCJjbGllbnRJZFwiOlwiMjVkelgzdmJZcWt0Vnh5WFwiLFwiZG9tYWluSWRcIjpcImJqMjlcIixcInNjb3BlXCI6W1wiRFJJVkUuQUxMXCIsXCJTSEFSRS5BTExcIixcIkZJTEUuQUxMXCIsXCJVU0VSLkFMTFwiLFwiVklFVy5BTExcIixcIlNUT1JBR0UuQUxMXCIsXCJTVE9SQUdFRklMRS5MSVNUXCIsXCJCQVRDSFwiLFwiT0FVVEguQUxMXCIsXCJJTUFHRS5BTExcIixcIklOVklURS5BTExcIixcIkFDQ09VTlQuQUxMXCJdLFwicm9sZVwiOlwidXNlclwiLFwicmVmXCI6XCJodHRwczovL3d3dy5hbGl5dW5kcml2ZS5jb20vXCIsXCJkZXZpY2VfaWRcIjpcImIyODIwNWU1YzU5NzRjY2JiODI3MDNiNjhkYjhjNDUxXCJ9IiwiZXhwIjoxNjQ4NjE0NDkzLCJpYXQiOjE2NDg2MDcyMzN9.d3HVLvv_LFw2QhPrhvjH_kICWQJX9sKKt7NjQEqI_xE2JO_b7D8rPsFTZz93PLvZ7MhCmudTjGImUpd-ehFnI4Go-1S7BGaKaHFILvP-sWy18Wpikowjxx9mSbzBM_cO6D1LI-kyYhXKWHgVdADfVIPniTDA7-ffhUpi7cAebEs\\",\\n \\"expires_in\\": 7200\\n}","type":"json"}]',
],
'GetStory' => [
'summary' => '获取指定故事详情,包含封面、文件列表等。',
'path' => '/v2/image/get_story',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'story_id' => ['description' => '故事 id', 'type' => 'string', 'required' => true, 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
'cover_image_thumbnail_process' => ['description' => '图片封面缩略图控制参数', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'image/resize,m_fill,h_128,w_128,limit_0/format,jpg'],
'cover_video_thumbnail_process' => ['description' => '视频封面缩略图控制参数', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'video/snapshot,t_1000,f_jpg,w_0,h_0,m_fast,ar_auto'],
'image_url_process' => ['description' => '故事文件图片URL控制参数', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'image/resize,m_fill,h_128,w_128,limit_0/format,jpg'],
'image_thumbnail_process' => ['description' => '故事文件图片缩略图控制参数', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'image/resize,m_fill,h_128,w_128,limit_0/format,jpg'],
'video_thumbnail_process' => ['description' => '故事文件视频缩略图控制参数', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'video/snapshot,t_1000,f_jpg,w_0,h_0,m_fast,ar_auto'],
'url_expire_sec' => ['description' => '缩略图过期时间。单位为秒,最短 10 秒,最长 86400 秒'."\n"
."\n"
.'默认15分钟。', 'type' => 'integer', 'format' => 'int64', 'deprecated' => true, 'required' => false, 'maximum' => '86400', 'minimum' => '10', 'example' => '900', 'default' => '900'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '故事详情', '$ref' => '#/components/schemas/Story'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '获取故事详情',
'description' => '**请确保在使用该接口前,已充分了解 PDS 的收费方式和[价格](~~425220~~)**。'."\n"
."\n"
.'使用此功能须开通增值服务图片处理功能。'."\n"
."\n"
.'用户传入指定故事的 id,以获取该故事的详情。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"story_id\\": \\"9132e0d8-fe92-4e56-86c3-f5f112308003\\",\\n \\"story_type\\": \\"PeopleMemory\\",\\n \\"story_sub_type\\": \\"Solo\\",\\n \\"story_name\\": \\"test_name\\",\\n \\"story_start_time\\": \\"2021-01-14T10:17:18.102700407+08:00\\",\\n \\"story_end_time\\": \\"2022-01-14T10:17:18.102700407+08:00\\",\\n \\"created_at\\": \\"2022-01-14T10:17:18.102700407+08:00\\",\\n \\"updated_at\\": \\"2022-01-14T10:17:18.102700407+08:00\\",\\n \\"face_group_ids\\": [\\n \\"Cluster-be377f73-3502-433c-8309-a01e659c128c\\"\\n ],\\n \\"cover_file_id\\": \\"63e5e4340f76cb3ead5f40f68163f0f967c1a7bf\\",\\n \\"cover_file_thumbnail_url\\": \\"https://pds-domain-bucket.oss-cn-hangzhou.aliyuncs.com/Bh1HqdAs%2F1001%2F642a88c26f99cad589904fc8a6b2db6021c6601f%2F642a88c29391c47f221e49e88a21fa9b0a9e5063?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5eGE8nGtYZ59bSnbUODlmsjTttVhpbFpjz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNXD6XXO2qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABVgD3mIAeUoDYKTJrFTPdmAPIrlUUQ1HZstB0ZVHvYByygr3oeitG9FEQ8lcfaZYJOtWRchdgH8tsSwHj2jI1vMeAiLHgbW98SPA3yfN8OR1kLW73uq3LAvekc9Qldz33YTM4JA5MNJzR8x5O6Oe4rY5OMSSVU5F%2Ffr8bJZD%2FXMM%3D&x-oss-access-key-id=STS.NT3XsrXYXBvLoe2rkvBTyiSnD&x-oss-expires=1685966251&x-oss-process=image%2Fresize%2Cw_500&x-oss-signature=XimW6haBxYktKg4cstMfpd%2F2LSoMibj6A%2B7ZqBJcSbQ%3D&x-oss-signature-version=OSS2\\",\\n \\"story_file_list\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n }\\n ],\\n \\"custom_id\\": \\"test\\",\\n \\"custom_labels\\": {\\n \\"key\\": \\"value\\"\\n }\\n}","type":"json"}]',
],
'GetTaskStatus' => [
'path' => '/v2/image/get_task_status',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'task_id' => ['description' => '任务 id', 'type' => 'string', 'required' => true, 'example' => 'i:SimilarImageClustering-b67d53e7-2fe8-460f-9b95-1e93636923eb'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回参数',
'type' => 'object',
'properties' => [
'status' => [
'description' => '任务状态',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['running' => '运行中', 'failed' => '失败', 'succeeded' => '成功'],
'example' => 'running',
'enum' => ['running', 'succeeded', 'failed'],
],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询任务状态',
'summary' => '查询增值服务异步任务执行状态。'."\n"
.'目前支持的接口有:CreateSimilarImageClusterTask。',
'description' => '**请确保在使用该接口前,已充分了解 PDS 的收费方式和[价格](~~425220~~)**。'."\n"
."\n"
.'使用此功能须开通增值服务图片处理功能。'."\n"
."\n"
.'该接口旨在查询增值服务异步任务状态,调用该接口前需先创建增值服务异步任务,如 CreateSimilarImageClusterTask,拿到 task id,再查询任务运行状态,判断该任务是否运行成功。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"status\\": \\"running\\"\\n}","type":"json"}]',
],
'GetUploadUrl' => [
'summary' => '获取上传地址。',
'path' => '/v2/file/get_upload_url',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'share_id' => ['description' => '分享id', 'type' => 'string', 'required' => false, 'example' => '7JQX1FswpQ8'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'required' => true, 'example' => '5d5b846942cf94fa72324c14a4bda34e81da635d'],
'upload_id' => ['description' => '上传 id', 'type' => 'string', 'required' => true, 'example' => '10166D06127B413BA1EC8ABB1144D111'],
'part_info_list' => [
'description' => '分片信息列表',
'type' => 'array',
'items' => [
'description' => '分片信息',
'type' => 'object',
'properties' => [
'part_number' => ['description' => '段编号', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1'],
'parallel_sha1_ctx' => [
'description' => '该分片前所有数据的SHA1上下文,该字段只在多分片并发上传的模式下有效',
'type' => 'object',
'properties' => [
'h' => [
'description' => '该分片前所有数据的SHA1上下文的第1-5个32位变量,该字段只在多分片并发上传的模式下有效',
'type' => 'array',
'items' => ['description' => '该分片前所有数据的SHA1上下文的第1-5个32位变量', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
'required' => false,
],
'part_offset' => ['description' => '到上一个数据块为止的总长度,单位为字节,需要为64的倍数,该字段只在多分片并发上传的模式下有效', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10240'],
],
'required' => false,
],
'content_md5' => ['type' => 'string', 'required' => false, 'description' => ''],
'content_type' => ['type' => 'string', 'required' => false, 'description' => ''],
'parallel_sha256_ctx' => [
'type' => 'object',
'properties' => [
'h' => [
'type' => 'array',
'items' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'description' => ''],
'required' => false,
'description' => '',
],
'part_offset' => ['type' => 'integer', 'format' => 'int64', 'required' => false, 'description' => ''],
],
'required' => false,
'description' => '',
],
],
'required' => false,
],
'required' => true,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => 'Id of the request', 'description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['description' => '空间id', 'type' => 'string', 'example' => '1'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'example' => '5d5b846942cf94fa72324c14a4bda34e81da635d'],
'upload_id' => ['description' => '上传id', 'type' => 'string', 'example' => '10166D06127B413BA1EC8ABB1144D111'],
'create_at' => ['description' => '创建时间', 'type' => 'string', 'example' => '2019-09-11T16:34:36.977Z'],
'part_info_list' => [
'description' => '分段信息列表',
'type' => 'array',
'items' => ['description' => '分段信息', '$ref' => '#/components/schemas/UploadPartInfo'],
],
],
],
],
],
'title' => '获取上传地址',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"upload_id\\": \\"10166D06127B413BA1EC8ABB1144D111\\",\\n \\"create_at\\": \\"2019-09-11T16:34:36.977Z\\",\\n \\"part_info_list\\": [\\n {\\n \\"part_number\\": 1,\\n \\"part_size\\": 1024,\\n \\"upload_url\\": \\"https://data.aliyunpds.com/xxx/xxx?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx&partNumber=1&uploadId=0CC175B9C0F1B6A831C399E269772661\\",\\n \\"internal_upload_url\\": \\"https://data-vpc.aliyunpds.com/xxx/xxx?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx&partNumber=1&uploadId=0CC175B9C0F1B6A831C399E269772661\\\\n\\",\\n \\"etag\\": \\"\\\\\\"0CC175B9C0F1B6A831C399E269772661\\\\\\"\\",\\n \\"parallel_sha1_ctx\\": {\\n \\"h\\": [\\n 0\\n ],\\n \\"part_offset\\": 10240\\n },\\n \\"upload_form_info\\": {\\n \\"endpoint\\": \\"\\",\\n \\"form_data\\": {\\n \\"key\\": \\"\\"\\n }\\n },\\n \\"parallel_sha256_ctx\\": {\\n \\"h\\": [\\n 0\\n ],\\n \\"part_offset\\": 0\\n }\\n }\\n ]\\n}","type":"json"}]',
],
'GetUser' => [
'path' => '/v2/user/get',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'user_id' => ['description' => '用户id。'."\n"
.'使用AK方式访问时,该项必传;使用AccessToken方式访问时,该项不填写,取自己的用户信息。', 'type' => 'string', 'required' => false, 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '用户信息', '$ref' => '#/components/schemas/User'],
],
],
'title' => '获取用户信息',
'summary' => '获取用户信息。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"user_id\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"avatar\\": \\"http://aa.com/1.jpg\\",\\n \\"created_at\\": 1639762579768,\\n \\"updated_at\\": 1639762579768,\\n \\"email\\": \\"a@aliyunpds.com\\",\\n \\"nick_name\\": \\"001\\",\\n \\"phone\\": \\"13900001111\\",\\n \\"role\\": \\"user\\",\\n \\"status\\": \\"enabled\\",\\n \\"user_name\\": \\"pds\\",\\n \\"description\\": \\"vipuser\\",\\n \\"default_drive_id\\": \\"1\\",\\n \\"user_data\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"creator\\": \\"user1\\"\\n}","type":"json"}]',
],
'GetVideoPreviewPlayInfo' => [
'path' => '/v2/file/get_video_preview_play_info',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'share_id' => ['description' => '分享id。'."\n"
.'如果通过分享操作文件,请携带`x-share-token` header鉴权并传递此字段,此时`drive_id`无效。否则请使用`aksk`或者`access_token`方式鉴权,并传递`drive_id`字段。'."\n"
.'`share_id`和`drive_id`两者必须有一个字段赋值。', 'type' => 'string', 'required' => false, 'example' => '7JQX1FswpQ8'],
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => false, 'example' => '1'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'category' => [
'description' => '所属分类。'."\n"
.'需要开通对应的转码功能,枚举如下:'."\n"
.'- live_transcoding(live边转边播)'."\n"
.'- quick_video(quick边转边播)'."\n"
.'- offline_audio(离线音频转码)'."\n"
.'- offline_video(离线视频转码)',
'type' => 'string',
'required' => true,
'enumValueTitles' => [],
'example' => 'quick_video',
],
'template_id' => ['description' => '清晰度模板id。'."\n"
.'填空表示取所有可用清晰度模板', 'type' => 'string', 'required' => false, 'example' => '264_480p'],
'get_without_url' => ['description' => '是否不获取播放url。'."\n"
.'如果填true,只会获取转码元信息,并不会触发ts转码,返回的信息中没有播放url。否则会返回播放url,如果此template_id的视频还未转码,后台将触发器转码。'."\n"
.'转码会产生对应的增值服务费用', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'url_expire_sec' => ['description' => 'url超时时间,单位:秒。'."\n"
.'默认15分钟,最大4小时。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3600'],
're_transcode' => ['description' => '是否发起重转。设置为 true 时会对文件发起重转,固定响应 202 等待重试。使用该参数前请先联系我们配置开启支持。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'get_master_url' => ['description' => '是否获取 master m3u8 的 url,仅在 category = quick_video 时有效', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'domain_id' => ['description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'share_id' => ['title' => 'Id of the request', 'description' => '分享id', 'type' => 'string', 'example' => '7JQX1FswpQ8'],
'drive_id' => ['description' => '空间id', 'type' => 'string', 'example' => '1'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'example' => 'fileid1'],
'video_preview_play_info' => ['description' => '播放信息', '$ref' => '#/components/schemas/VideoPreviewPlayInfo'],
],
],
],
],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '获取视频播放信息',
'summary' => '获取视频播放信息。',
'description' => '- **请确保在使用该接口前,已充分了解网盘与相册服务产品的收费方式和[价格](~~425220~~)。**'."\n"
."\n"
.'- 调用该接口前,请确保当前 domain 已开通对应 category 的转码功能。转码功能开通和转码模板配置请联系我们的技术支持,详情参考[联系我们](~~175917~~)。'."\n"
."\n"
.'- 该接口为同步接口。如果请求时对应文件在对应转码方式上尚未转码,则接口会响应 **202 VideoPreviewWaitAndRetry** 提示等待重试。如果请求时对应文件在对应转码方式上无法转码,则接口会响应 **404 NotFound.VideoPreviewInfo**。'."\n"
."\n"
.'- 该接口会产生转码数据并保存到租户 domain 的增值数据空间,以供最终用户进行音视频在线播放。对于特定的转码方式,该接口提供了 domain 级去重转码能力。'."\n"
."\n"
.'- 该接口返回的播放链接在转码类型为 quick_video 时,将包含未进行 URL 编码的 `{ `和` }`字符。IOS 平台开发时请注意先对返回链接进行 URL 解码和编码以避免系统 NSURL 库解码失败。'."\n"
."\n"
.'- 该接口返回的播放链接在转码类型为 quick_video 时,根据链接对应 m3u8 内容获取分片内容时将不支持 Range Get。'."\n"
."\n"
.'<props="china">更多详细内容请参考最佳实践文档:[在线预览视频](~~427477~~)。</props>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"share_id\\": \\"7JQX1FswpQ8\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"fileid1\\",\\n \\"video_preview_play_info\\": {\\n \\"category\\": \\"quick_video\\",\\n \\"meta\\": {\\n \\"duration\\": 4.2898,\\n \\"width\\": 1920,\\n \\"height\\": 1080\\n },\\n \\"live_transcoding_task_list\\": [\\n {\\n \\"template_id\\": \\"264_480p\\",\\n \\"status\\": \\"finished\\",\\n \\"url\\": \\"https://example.data.aliyunpds.com/lt/xxx/media.m3u8\\",\\n \\"keep_original_resolution\\": true,\\n \\"preview_url\\": \\"https://example.data.aliyunpds.com/lt/xxx/ref_task.m3u8\\"\\n }\\n ],\\n \\"quick_video_list\\": [\\n {\\n \\"template_id\\": \\"264_480p\\",\\n \\"status\\": \\"finished\\",\\n \\"url\\": \\"https://example.data.aliyunpds.com/qv/xxx/media.m3u8\\",\\n \\"preview_url\\": \\"https://example.data.aliyunpds.com/qv/xxx/ref_task.m3u8\\"\\n }\\n ],\\n \\"offline_video_transcoding_list\\": [\\n {\\n \\"template_id\\": \\"264_1080p\\",\\n \\"status\\": \\"finished\\",\\n \\"keep_original_resolution\\": true,\\n \\"url\\": \\"https://example.data.aliyunpds.com/xxx/master.mp4\\\\n\\"\\n }\\n ],\\n \\"live_transcoding_subtitle_task_list\\": [\\n {\\n \\"language\\": \\"en\\",\\n \\"status\\": \\"finished\\",\\n \\"url\\": \\"https://example.data.aliyunpds.com/lt/A05EF408DAB5D3F57C94F67658C99C406EFCA7DD/subtitle/subtitle_0.vtt\\"\\n }\\n ],\\n \\"quick_video_subtitle_list\\": [\\n {\\n \\"language\\": \\"en\\",\\n \\"status\\": \\"finished\\",\\n \\"url\\": \\"https://example.data.aliyunpds.com/lt/A05EF408DAB5D3F57C94F67658C99C406EFCA7DD/subtitle/subtitle_0.vtt\\"\\n }\\n ],\\n \\"offline_video_transcoding_subtitle_list\\": [\\n {\\n \\"language\\": \\"en\\",\\n \\"status\\": \\"finished\\",\\n \\"url\\": \\"https://example.data.aliyunpds.com/lt/A05EF408DAB5D3F57C94F67658C99C406EFCA7DD/subtitle/subtitle_0.vtt\\"\\n }\\n ],\\n \\"master_url\\": \\"https://pds-xxx-valueadd.oss-xxx.aliyuncs.com/qv/xxx/master.m3u8\\"\\n }\\n}","type":"json"}]',
],
'GetVideoPreviewPlayMeta' => [
'summary' => '获取视频播放元信息。',
'path' => '/v2/file/get_video_preview_play_meta',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'share_id' => ['description' => '分享id。'."\n"
.'如果通过分享操作文件,请携带`x-share-token` header鉴权并传递此字段,此时`drive_id`无效。否则请使用`aksk`或者`access_token`方式鉴权,并传递`drive_id`字段。'."\n"
.'`share_id`和`drive_id`两者必须有一个字段赋值。', 'type' => 'string', 'required' => false, 'example' => '7JQX1FswpQ8'],
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => false, 'example' => '1'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'category' => ['description' => '所属分类。'."\n"
.'需要开通对应的转码功能,枚举如下:'."\n"
.'- live_transcoding(live边转边播)'."\n"
.'- quick_video(quick边转边播)'."\n"
.'- offline_audio(离线音频转码)'."\n"
.'- offline_video(离线视频转码)', 'type' => 'string', 'required' => true, 'example' => 'live_transcoding'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => 'Id of the request', 'description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'share_id' => ['description' => '分享id', 'type' => 'string', 'example' => '7JQX1FswpQ8'],
'drive_id' => ['description' => '空间id', 'type' => 'string', 'example' => '1'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'example' => 'fileid1'],
'video_preview_play_meta' => ['description' => '播放元信息', '$ref' => '#/components/schemas/VideoPreviewPlayMeta'],
],
],
],
],
'title' => '获取视频播放元信息',
'description' => '<props="china">详细请参考最佳实践文档:[在线预览视频](~~427477~~)。</props>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"share_id\\": \\"7JQX1FswpQ8\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"fileid1\\",\\n \\"video_preview_play_meta\\": {\\n \\"meta\\": {\\n \\"duration\\": 10,\\n \\"width\\": 1280,\\n \\"height\\": 720\\n },\\n \\"live_transcoding_task_list\\": [\\n {\\n \\"template_id\\": \\"264_720p\\",\\n \\"status\\": \\"finished\\",\\n \\"keep_original_resolution\\": true\\n }\\n ],\\n \\"category\\": \\"live_transcoding\\",\\n \\"quick_video_list\\": [\\n {\\n \\"template_id\\": \\"264_720p\\",\\n \\"status\\": \\"finished\\"\\n }\\n ],\\n \\"offline_video_transcoding_list\\": [\\n {\\n \\"template_id\\": \\"264_720p\\",\\n \\"status\\": \\"finished\\",\\n \\"keep_original_resolution\\": \\"true\\"\\n }\\n ]\\n }\\n}","type":"json"}]',
],
'GroupUpdateName' => [
'path' => '/v2/group/update_name',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'type' => 'object',
'properties' => [
'group_id' => ['type' => 'string', 'required' => true, 'description' => ''],
'name' => ['type' => 'string', 'description' => ''],
],
'description' => '',
],
],
],
'responses' => [
204 => [
'schema' => ['$ref' => '#/components/schemas/BaseGroupResponse', 'description' => ''],
],
],
'summary' => '更新用户组名字 ',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'ImportUser' => [
'path' => '/v2/user/import',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'authentication_type' => ['description' => '认证类型'."\n"
."\n"
.'- mobile:手机号'."\n"
."\n"
.'- email:邮箱'."\n"
."\n"
.'- ding:钉钉'."\n"
."\n"
.'- ram:阿里云RAM子账号'."\n"
."\n"
.'- wechat:企业微信'."\n"
."\n"
.'- ldap:LDAP账号'."\n"
."\n"
.'- custom:自定义账号', 'type' => 'string', 'required' => true, 'example' => 'mobile'],
'identity' => ['description' => '唯一身份标识', 'type' => 'string', 'required' => true, 'example' => '130****'],
'authentication_display_name' => ['description' => '认证方式的显示名称', 'type' => 'string', 'required' => false, 'example' => '10000'],
'extra' => ['description' => '额外信息'."\n"
."\n"
.'authentication\\_type为mobile时,此字段为国家编号,不填默认86。', 'type' => 'string', 'required' => false, 'example' => '1'],
'nick_name' => ['description' => '昵称', 'type' => 'string', 'required' => true, 'example' => 'pdsuer'],
'auto_create_drive' => ['description' => '自动创建空间', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'drive_total_size' => ['description' => '空间大小,不能小于-1,-1表示无限制', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10240'],
'parent_group_id' => ['description' => '加入到的分组id', 'type' => 'string', 'required' => false, 'example' => 'g12'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '用户信息', '$ref' => '#/components/schemas/User'],
],
],
'title' => '导入用户',
'summary' => '导入用户。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"user_id\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"avatar\\": \\"http://aa.com/1.jpg\\",\\n \\"created_at\\": 1639762579768,\\n \\"updated_at\\": 1639762579768,\\n \\"email\\": \\"a@aliyunpds.com\\",\\n \\"nick_name\\": \\"001\\",\\n \\"phone\\": \\"13900001111\\",\\n \\"role\\": \\"user\\",\\n \\"status\\": \\"enabled\\",\\n \\"user_name\\": \\"pds\\",\\n \\"description\\": \\"vipuser\\",\\n \\"default_drive_id\\": \\"1\\",\\n \\"user_data\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"creator\\": \\"user1\\"\\n}","type":"json"}]',
],
'InvestigateFile' => [
'summary' => '将未经审核的文件送审。',
'path' => '/v2/csi/investigate_file',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体。',
'type' => 'object',
'properties' => [
'drive_file_ids' => [
'description' => '空间和文件ID的组合,至多5个。',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间ID', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件ID', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
],
'required' => false,
'description' => '',
],
'required' => true,
],
],
'required' => false,
],
],
],
'responses' => [
202 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [],
],
],
],
'title' => '审核文件',
'description' => '可对图片和视频(不含音频)进行审核。动图、长图的截帧/切割频率为1,最多100张;视频的截帧频率为3秒,最多1500帧。审核结果可以通过列举文件、获取文件详情和获取文件内容安全详情接口查询以及使用事件通知功能推送。请勿使用此接口集中的批量送审文件,以免受资源限制导致审核失败。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'LinkAccount' => [
'path' => '/v2/account/link',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'user_id' => ['description' => '待绑定的UserID', 'type' => 'string', 'required' => true, 'example' => 'xxx'],
'type' => ['description' => '账号类型'."\n"
."\n"
.'- mobile:手机号'."\n"
."\n"
.'- email:邮箱'."\n"
."\n"
.'- ding:钉钉'."\n"
."\n"
.'- ram:阿里云RAM子账号'."\n"
."\n"
.'- wechat:企业微信'."\n"
."\n"
.'- ldap:LDAP账号'."\n"
."\n"
.'- custom:自定义账号', 'type' => 'string', 'required' => true, 'example' => 'ding'],
'identity' => ['description' => '账号的唯一标识,比如手机号', 'type' => 'string', 'required' => true, 'example' => 'eyy***'],
'extra' => ['description' => '账号唯一标识的附加信息,比如当账号为手机号时,此字段填手机的区域编码,比如中国大陆为86,不填写默认为86', 'type' => 'string', 'required' => false, 'example' => '86'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => ['description' => '返回用户的授权Token信息', '$ref' => '#/components/schemas/Token'],
],
],
'title' => '绑定账号',
'summary' => '绑定账号。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'ListAddressGroups' => [
'path' => '/v2/image/list_address_groups',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'limit' => ['description' => '限定此次返回资源的数量。如果不设定,默认返回100,最大不能超过100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'image_thumbnail_process' => ['description' => '图片缩略图处理样式', 'type' => 'string', 'required' => false, 'example' => 'image/resize,w_200'],
'video_thumbnail_process' => ['description' => '视频缩略图处理样式', 'type' => 'string', 'required' => false, 'example' => 'video_thumbnail_process'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '地点聚类列表',
'type' => 'array',
'items' => ['description' => '地点聚类', '$ref' => '#/components/schemas/AddressGroup'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'title' => '列举地点聚类',
'summary' => '列举地点聚类。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"location\\": \\"30.12231,120.1212\\",\\n \\"count\\": 10,\\n \\"cover_url\\": \\"\\",\\n \\"cover_file_id\\": \\"\\",\\n \\"address_detail\\": {\\n \\"country\\": \\"中国\\",\\n \\"province\\": \\"浙江省\\",\\n \\"city\\": \\"杭州市\\",\\n \\"district\\": \\"余杭区\\",\\n \\"township\\": \\"文一西路\\"\\n }\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
],
'ListAssignment' => [
'path' => '/v2/role/list_assignment',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => false],
],
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'manage_resource_type' => ['description' => '管理的资源类型,目前支持:'."\n"
."\n"
.'- RT\\_Group(群组)'."\n"
."\n"
.'- RT\\_KnowledgeBase(知识库)'."\n"
."\n"
.'- RT\\_KnowledgeCategory(知识分类)', 'type' => 'string', 'required' => true, 'example' => 'RT_Group'],
'manage_resource_id' => ['description' => '管理的资源ID,比如群组的ID', 'type' => 'string', 'required' => true, 'example' => '105***b82'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'limit' => ['description' => '限定此次返回资源的数量,取值范围\\[1,100\\]。'."\n"
."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回的结构体',
'type' => 'object',
'properties' => [
'assignment_list' => [
'description' => '授权信息列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'domain_id' => ['description' => '域id', 'type' => 'string', 'example' => 'hz1'],
'identity' => ['description' => '被授权的对象,表示一个用户或者一个群组', '$ref' => '#/components/schemas/Identity'],
'role_id' => ['description' => '被授权的角色ID', 'type' => 'string', 'example' => 'SystemGroupAdmin'],
'manage_resource_type' => ['description' => '管理的资源类型,比如: RT_Group,表示群组类型', 'type' => 'string', 'example' => 'RT_Group'],
'manage_resource_id' => ['description' => '管理的资源ID,比如群组的ID', 'type' => 'string', 'example' => '105***b82'],
'creator' => ['description' => '创建者ID', 'type' => 'string', 'example' => '216***c83'],
'created_at' => ['description' => '创建时间,从1970年1月1日0点到当前的毫秒时间戳', 'type' => 'integer', 'format' => 'int64', 'example' => '1622682267564'],
],
'description' => '',
],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'title' => '列举已分配的角色列表',
'summary' => '列举已分配的角色列表。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"assignment_list\\": [\\n {\\n \\"domain_id\\": \\"hz1\\",\\n \\"identity\\": {\\n \\"identity_type\\": \\"IT_User\\",\\n \\"identity_id\\": \\"16435bdf934248b788b7b3771ee9a3dw\\"\\n },\\n \\"role_id\\": \\"SystemGroupAdmin\\",\\n \\"manage_resource_type\\": \\"RT_Group\\",\\n \\"manage_resource_id\\": \\"105***b82\\",\\n \\"creator\\": \\"216***c83\\",\\n \\"created_at\\": 1622682267564\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
],
'ListDelta' => [
'path' => '/v2/file/list_delta',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => false, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求body',
'type' => 'object',
'properties' => [
'drive_id' => ['title' => '云端Drive id'."\n", 'description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'sync_root_id' => ['title' => '如果是同步目录的增量信息,必须设置同步目录对应的云端根目录', 'description' => '同步文件夹根节点文件id', 'type' => 'string', 'required' => false, 'example' => '622fb09598ae66777c7040109a16f49381f6abe1'],
'cursor' => ['title' => '增量信息的起始游标', 'description' => '游标', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'limit' => ['title' => '获取增量信息的条数限制', 'description' => '限定此次返回资源的数量,取值范围\\[0,100\\],默认值为 100。'."\n"
."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '增量信息列表',
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'file_id' => ['title' => '文件唯一id', 'description' => '文件id', 'type' => 'string', 'example' => '122fb09598ae66777c7040109a16f49381f6abe2'],
'op' => [
'title' => '文件操作,主要包括',
'description' => '执行的操作。具体包括以下操作:'."\n"
.'- create'."\n"
.'- overwrite'."\n"
.'- delete'."\n"
.'- update'."\n"
.'- move'."\n"
.'- trash'."\n"
.'- restore'."\n"
.'- rename',
'type' => 'string',
'enumValueTitles' => [],
'example' => 'create',
],
'file' => ['description' => '涉及的文件信息', '$ref' => '#/components/schemas/File'],
],
'description' => '',
],
],
'has_more' => ['description' => '是否还有更多信息。', 'type' => 'boolean', 'example' => 'true'],
'cursor' => ['description' => '游标', 'type' => 'string', 'example' => '1WQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'title' => '列举增量信息',
'summary' => '列举增量信息。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"type":"json","example":"{\\n \\"items\\": [\\n {\\n \\"file_id\\": \\"122fb09598ae66777c7040109a16f49381f6abe2\\",\\n \\"op\\": \\"create\\",\\n \\"file\\": {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n }\\n }\\n ],\\n \\"has_more\\": true,\\n \\"cursor\\": \\"1WQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","errorExample":""},{"type":"xml","example":"<ListDeltaResponse>\\n <items>\\n <file_id>122fb09598ae66777c7040109a16f49381f6abe2</file_id>\\n <op>create</op>\\n <file/>\\n </items>\\n <has_more>true</has_more>\\n <cursor>1WQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg</cursor>\\n</ListDeltaResponse>","errorExample":""}]',
],
'ListDomains' => [
'summary' => '列举Domain列表。',
'path' => '/v2/domain/list',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => ['admin'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'parent_domain_id' => ['description' => '父 domain id', 'type' => 'string', 'required' => false, 'example' => 'bj1'],
'marker' => ['description' => '分页 marker,"" 表示从头开始。该接口会返回 next\\_marker,可将 next\\_marker 设置该值来遍历所有 domain 信息', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'limit' => ['description' => '本次分页获取的数量,默认 50,不可超过 100', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '60'],
'service_code' => [
'description' => '服务代码,默认为pds'."\n"
."\n"
.'- edm(企业版)'."\n"
.'- pds(开发版)',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['pds' => 'pds', 'edm' => 'edm'],
'example' => 'pds',
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回的 domain 列表',
'type' => 'object',
'properties' => [
'items' => [
'description' => '返回的 domain 列表',
'type' => 'array',
'items' => ['description' => '单个 domain 信息', '$ref' => '#/components/schemas/Domain'],
],
'next_marker' => ['description' => '用作下次遍历的 marker', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '列举Domain',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"parent_domain_id\\": \\"bj1\\",\\n \\"domain_id\\": \\"bj2\\",\\n \\"domain_name\\": \\"pdsdomain\\",\\n \\"description\\": \\"my domain\\",\\n \\"init_drive_enable\\": true,\\n \\"init_drive_size\\": 1073741824,\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"size_quota\\": 1099511627776,\\n \\"size_quota_used\\": 1099511627776,\\n \\"user_count_quota\\": 50,\\n \\"status\\": 1,\\n \\"used_size\\": 1099511627776,\\n \\"published_app_access_strategy\\": {\\n \\"effect\\": \\"deny\\",\\n \\"except_app_id_list\\": [\\n \\"8ovxCTRUDdbpVWBP\\"\\n ]\\n },\\n \\"sharable\\": true,\\n \\"data_hash_name\\": \\"sha1\\",\\n \\"store_redundancy_type\\": \\"LRS\\"\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
],
'ListDrive' => [
'path' => '/v2/drive/list',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'limit' => ['description' => '限定此次返回资源的数量,范围为 [1,100],默认返回100', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '0', 'exclusiveMinimum' => true, 'example' => '100', 'default' => '100'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'owner' => ['description' => '归属者,不设置时返回所有 drive', 'type' => 'string', 'required' => false, 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
'owner_type' => [
'description' => '归属者类型,可选值如下:'."\n"
."\n"
.'user:用户'."\n"
.'group:团队'."\n"
."\n"
.'默认返回所有归属者类型的 drive',
'type' => 'string',
'required' => false,
'example' => 'user',
'enum' => ['user', 'group'],
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '空间信息列表',
'type' => 'array',
'items' => ['description' => '空间信息', '$ref' => '#/components/schemas/Drive'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'title' => '列举空间',
'summary' => '列举空间。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"drive_name\\": \\"drv1\\",\\n \\"description\\": \\"vipdrive\\",\\n \\"owner\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"owner_type\\": \\"user\\",\\n \\"drive_type\\": \\"normal\\",\\n \\"status\\": \\"enabled\\",\\n \\"used_size\\": 20480,\\n \\"total_size\\": 204800,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\"\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
],
'ListFacegroups' => [
'summary' => '列举人脸分组。',
'path' => '/v2/image/list_facegroups',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'remarks' => ['description' => '查询过滤使用, 长度最大128字符,采用的是精确匹配过滤', 'type' => 'string', 'required' => false, 'example' => 'John Doe', 'maxLength' => 128, 'minLength' => 1],
'limit' => ['description' => 'limit值,n的取值范围:1~100, 默认100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'return_total_count' => ['description' => '是否返回搜到的文件总数', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'items' => [
'description' => '人脸分组列表',
'type' => 'array',
'items' => ['description' => '人脸分组', '$ref' => '#/components/schemas/FaceGroup'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'total_count' => ['description' => '命中的文件总数', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
],
'description' => '',
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"group_id\\": \\"Cluster-ae6e3472-999e-410b-b54e-cd5dba****\\",\\n \\"group_name\\": \\"name\\",\\n \\"image_count\\": 10,\\n \\"created_at\\": \\"2022-01-14T10:10:52.83948013+08:00\\",\\n \\"updated_at\\": \\"2022-01-14T10:10:52.83948013+08:00\\",\\n \\"group_cover_url\\": \\"https://xxx\\",\\n \\"group_cover_file_id\\": \\"6549c959640fbd517c9b4d93b3b36aecc45xxxxx\\",\\n \\"group_cover_width\\": 1920,\\n \\"group_cover_height\\": 1080,\\n \\"group_cover_face_boundary\\": {\\n \\"Width\\": 200,\\n \\"Height\\": 300,\\n \\"Top\\": 30,\\n \\"Left\\": 10\\n },\\n \\"remarks\\": \\"\\",\\n \\"remarks_array\\": [\\n \\"\\"\\n ]\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\",\\n \\"total_count\\": 30\\n}","type":"json"}]',
'title' => '列举人脸分组',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'ListFile' => [
'summary' => '直接文件夹下列举文件和文件夹。',
'path' => '/v2/file/list',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'share_id' => ['description' => '分享id。'."\n"
.'如果通过分享操作文件,请携带`x-share-token` header鉴权并传递此字段,此时`drive_id`无效。否则请使用`aksk`或者`access_token`方式鉴权,并传递`drive_id`字段。'."\n"
.'`share_id`和`drive_id`两者必须有一个字段赋值。', 'type' => 'string', 'required' => false, 'example' => '7JQX1FswpQ8'],
'drive_id' => ['description' => '空间 id。', 'type' => 'string', 'required' => false, 'example' => '1'],
'parent_file_id' => ['description' => '父文件夹 id,当父文件为根目录时,填写 root', 'type' => 'string', 'required' => true, 'example' => 'root'],
'limit' => ['description' => '限定此次返回资源的数量,取值范围\\[1,100\\]。'."\n"
."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'<br>默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'status' => [
'description' => '文件状态,可选字段如下:'."\n"
."\n"
.'available:只返回正常文件'."\n"
.'uploading:只返回上传中文件'."\n"
."\n"
.'默认只返回 available 状态文件',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['available' => '正常', 'uploading' => '上传中'],
'example' => 'available',
'enum' => ['uploading', 'available'],
],
'order_by' => [
'description' => '排序字段,可选值如下:'."\n"
."\n"
.'created\\_at:根据创建时间排序'."\n"
.'updated\\_at:根据更新时间排序'."\n"
.'size:根据文件大小排序'."\n"
.'name:根据文件名排序'."\n"
."\n"
.'默认根据 created_at 排序',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['updated_at' => '修改时间', 'size' => '大小', 'name' => '名称', 'created_at' => '创建时间'],
'example' => 'updated_at',
],
'order_direction' => [
'description' => '排序方向,可选字段为:'."\n"
."\n"
.'ASC:正序'."\n"
.'DESC:倒序'."\n"
."\n"
.'默认值为ASC',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['ASC' => '正序', 'DESC' => '倒序'],
'example' => 'ASC',
'enum' => ['ASC', 'DESC'],
],
'category' => [
'description' => '文件分类,可选字段如下:'."\n"
."\n"
.'app:安装包'."\n"
.'zip:压缩包'."\n"
.'image:图片'."\n"
.'doc:文档'."\n"
.'video:视频'."\n"
.'audio:音频'."\n"
.'others:其他'."\n"
."\n"
.'默认返回所有分类文件',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['app' => 'app', 'zip' => 'zip', 'image' => 'image', 'doc' => 'doc', 'video' => 'video', 'audio' => 'audio', 'others' => 'others'],
'example' => 'image',
'enum' => ['image', 'video', 'audio', 'doc', 'app', 'zip', 'others'],
],
'type' => [
'description' => '文件类型,可选字段如下:'."\n"
."\n"
.'file:只返回文件'."\n"
.'folder:只返回文件夹'."\n"
."\n"
.'默认返回所有类型文件',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['file' => '文件', 'folder' => '文件夹'],
'example' => 'file',
'enum' => ['file', 'folder'],
],
'fields' => ['description' => '设置 fields 时,可以返回子对象的额外信息时,支持的字段为:'."\n"
.'- url 响应中返回文件缩略图地址,下载地址'."\n"
.'- exif 响应中返回文件的 exif 信息'."\n"
.'- cropping\\_suggestion 响应中返回文件的裁剪建议信息'."\n"
.'- characteristic\\_hash 响应中返回文件的特征 hash 值'."\n"
.'- video\\_metadata 响应中返回视频文件的 meta 信息,比如视频时长,比特率,高度,宽度等'."\n"
.'- video\\_preview_metadata 响应中返回视频文件的转码信息,比如每个清晰度的转码信息'."\n"
.'- investigation_info 响应中返回 investigation_info字段'."\n"
.'- dir_size 响应中返回每个子文件夹的统计信息'."\n"
.'- user_tags 响应中返回每个子对象的 user_tags'."\n"
."\n"
.'当需要多个信息时,不同字段以逗号分割,如 "url,dir_size,user_tags"', 'type' => 'string', 'required' => false, 'example' => 'url,dir_size,user_tags'],
'thumbnail_processes' => [
'description' => '缩略图配置,可一次性返回最多5个缩略图,map的key可以自定义,返回时按key返回对应的缩略图链接',
'type' => 'object',
'required' => false,
'additionalProperties' => ['$ref' => '#/components/schemas/ImageProcess', 'description' => '定义图片、视频、文档的缩略图处理规则'],
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '文件列表。',
'type' => 'array',
'items' => ['description' => '文件信息', '$ref' => '#/components/schemas/File'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
'title' => '列举文件',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'ListGroup' => [
'path' => '/v2/group/list',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'limit' => ['description' => '限定此次返回资源的数量。如果不设定,默认返回100,最大不能超过100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。 默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '群组列表',
'type' => 'array',
'items' => ['description' => '群组信息', '$ref' => '#/components/schemas/Group'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'title' => '列举群组',
'summary' => '列举群组。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"group_id\\": \\"b45c0c0c373c41ec9ebb5c85a025a08f\\",\\n \\"group_name\\": \\"test group\\",\\n \\"description\\": \\"created by system\\",\\n \\"created_at\\": 1670573504600,\\n \\"updated_at\\": 1670573504600,\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"is_sync\\": true\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
],
'ListGroupMember' => [
'path' => '/v2/group/list_member',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => false],
],
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'group_id' => ['description' => '目标群组ID,表示将列举哪个群组下的成员', 'type' => 'string', 'required' => true, 'example' => '3e5***2c2'],
'member_type' => ['description' => '列举的成员类型,不传则两种都返回'."\n"
."\n"
.'- user(用户)'."\n"
."\n"
.'- group(群组)'."\n"
."\n"
.'注意:群组只能作为一个群组的成员,不能同时成为多个群组的成员。 用户可以同时成为多个群组的成员', 'type' => 'string', 'required' => false, 'example' => 'user'],
'limit' => ['description' => '限定此次返回资源的数量,取值范围[1,100]。'."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。'."\n"
.'<br>默认值:100', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'<br>默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'title' => 'Schema of Response',
'description' => '返回的结构体',
'type' => 'object',
'properties' => [
'user_items' => [
'description' => '用户列表',
'type' => 'array',
'items' => ['description' => '用户信息', '$ref' => '#/components/schemas/User'],
],
'group_items' => [
'description' => '群组列表',
'type' => 'array',
'items' => ['description' => '群组信息', '$ref' => '#/components/schemas/Group'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhM1'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '列举群组成员',
'summary' => '列举团队成员。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"user_items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"user_id\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"avatar\\": \\"http://aa.com/1.jpg\\",\\n \\"created_at\\": 1639762579768,\\n \\"updated_at\\": 1639762579768,\\n \\"email\\": \\"a@aliyunpds.com\\",\\n \\"nick_name\\": \\"001\\",\\n \\"phone\\": \\"13900001111\\",\\n \\"role\\": \\"user\\",\\n \\"status\\": \\"enabled\\",\\n \\"user_name\\": \\"pds\\",\\n \\"description\\": \\"vipuser\\",\\n \\"default_drive_id\\": \\"1\\",\\n \\"user_data\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"creator\\": \\"user1\\"\\n }\\n ],\\n \\"group_items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"group_id\\": \\"b45c0c0c373c41ec9ebb5c85a025a08f\\",\\n \\"group_name\\": \\"test group\\",\\n \\"description\\": \\"created by system\\",\\n \\"created_at\\": 1670573504600,\\n \\"updated_at\\": 1670573504600,\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"is_sync\\": true\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhM1\\"\\n}","type":"json"}]',
],
'ListIdentityToBenefitPkgMapping' => [
'summary' => '列举实体和权益包关联,可用于获取用户绑定的权益包列表。',
'path' => '/v2/benefit/identity_to_benefit_pkg_mapping/list',
'methods' => ['post'],
'schemes' => ['https', 'http'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'identity_type' => [
'description' => '实体的类型'."\n"
.'管理用户权益,传user',
'type' => 'string',
'required' => true,
'example' => 'user',
'enum' => ['user'],
],
'identity_id' => ['description' => '实体的唯一标识'."\n"
."\n"
.'管理用户权益时,传user_id', 'type' => 'string', 'required' => true, 'example' => 'user123'],
'include_expired' => ['description' => '是否返回已经超期的权益包,默认为false', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'items' => [
'description' => '实体绑定的权益包信息列表',
'type' => 'array',
'items' => ['description' => '实体绑定的权益包信息', '$ref' => '#/components/schemas/IdentityToBenefitPkgMapping'],
],
],
'description' => '',
],
],
],
'title' => '列举实体和权益包关联',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"identity_type\\": \\"user\\",\\n \\"identity_id\\": \\"user123\\",\\n \\"benefit_pkg_owner_id\\": \\"bj1\\",\\n \\"benefit_pkg_id\\": \\"40cb7794c9294\\",\\n \\"benefit_pkg_type\\": \\"user_identity\\",\\n \\"benefit_pkg_name\\": \\"高级会员\\",\\n \\"benefit_pkg_priority\\": 1,\\n \\"benefit_pkg_computation_rule\\": \\"sum\\",\\n \\"delivery_info_list\\": [\\n {\\n \\"amount\\": 1,\\n \\"is_permanent\\": false,\\n \\"expire_time\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\"\\n }\\n ],\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\"\\n }\\n ]\\n}","type":"json"}]',
],
'ListMyDrives' => [
'summary' => '列举登录用户自己的空间列表。',
'path' => '/v2/drive/list_my_drives',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'limit' => ['description' => '限制返回的数量。默认为100,取值范围:1~100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '0', 'exclusiveMinimum' => true, 'example' => '100', 'default' => '100'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'."\n"],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '空间信息列表',
'type' => 'array',
'items' => ['description' => '空间信息', '$ref' => '#/components/schemas/Drive'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"drive_name\\": \\"drv1\\",\\n \\"description\\": \\"vipdrive\\",\\n \\"owner\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"owner_type\\": \\"user\\",\\n \\"drive_type\\": \\"normal\\",\\n \\"status\\": \\"enabled\\",\\n \\"used_size\\": 20480,\\n \\"total_size\\": 204800,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\"\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
'title' => '列举我的空间',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'ListMyGroupDrive' => [
'summary' => '列举被授权的团队空间列表。',
'path' => '/v2/drive/list_my_group_drive',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => false],
],
[
'name' => 'body',
'in' => 'body',
'allowEmptyValue' => true,
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'limit' => ['description' => '限定此次返回资源的数量。如果不设定,默认返回100,最大不能超过100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'marker' => ['description' => '设置此字段后,数据会从上次返回的位置开始继续返回。如果不设定,则从头开始返回数据。 默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'drive_name' => ['type' => 'string', 'required' => false, 'description' => ''],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回结构体。',
'type' => 'object',
'properties' => [
'items' => [
'description' => '返回的空间信息列表',
'type' => 'array',
'items' => ['description' => '返回的空间信息', '$ref' => '#/components/schemas/Drive'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'root_group_drive' => ['description' => '企业空间信息。', '$ref' => '#/components/schemas/Drive'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '收到的授权团队空间列表',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"drive_name\\": \\"drv1\\",\\n \\"description\\": \\"vipdrive\\",\\n \\"owner\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"owner_type\\": \\"user\\",\\n \\"drive_type\\": \\"normal\\",\\n \\"status\\": \\"enabled\\",\\n \\"used_size\\": 20480,\\n \\"total_size\\": 204800,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\"\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\",\\n \\"root_group_drive\\": {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"drive_name\\": \\"drv1\\",\\n \\"description\\": \\"vipdrive\\",\\n \\"owner\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"owner_type\\": \\"user\\",\\n \\"drive_type\\": \\"normal\\",\\n \\"status\\": \\"enabled\\",\\n \\"used_size\\": 20480,\\n \\"total_size\\": 204800,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\"\\n }\\n}","type":"json"}]',
],
'ListReceivedFile' => [
'path' => '/v2/file/list_received_file',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'limit' => ['description' => '限定此次返回资源的数量。如果不设定,默认返回100,最大不能超过100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'marker' => ['description' => '设置此字段后,数据会从上次返回的位置开始继续返回。如果不设定,则从头开始返回数据。 默认值:无', 'type' => 'string', 'required' => false, 'example' => 'eym***'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => [
'title' => 'Schema of Response',
'description' => '返回结构体。',
'type' => 'object',
'properties' => [
'items' => [
'description' => '返回的文件列表',
'type' => 'array',
'items' => ['description' => '返回的文件信息', 'example' => ' ', '$ref' => '#/components/schemas/File'],
],
'next_marker' => ['description' => '本次返回记录的断点,可用于下次继续查询', 'type' => 'string', 'example' => 'eym***'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '收到的共享文件夹列表',
'summary' => '收到的共享, 可通过此接口获取到从个人空间授权给此用户的文件列表。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n }\\n ],\\n \\"next_marker\\": \\"eym***\\"\\n}","type":"json"}]',
],
'ListRecyclebin' => [
'path' => '/v2/recyclebin/list',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间ID', 'type' => 'string', 'required' => true, 'example' => '1'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'limit' => ['description' => '限定此次返回资源的数量,取值范围\\[1,200\\],缺省50。'."\n"
."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50'],
'fields' => ['description' => '筛选返回字段:'."\n"
."\n"
.'1\\. 当填 * 时,返回文件所有字段;'."\n"
."\n"
.'2\\. 当填空值或不填时,返回的信息不包含文件创建者、文件修改者、用户自定义标签等字段'."\n"
."\n"
.'默认为空值,只返回部分字段。', 'type' => 'string', 'required' => false, 'example' => '*'],
'thumbnail_processes' => [
'description' => '缩略图配置,可一次性返回最多5个缩略图,map的key可以自定义,返回时按key返回对应的缩略图链接',
'type' => 'object',
'required' => false,
'additionalProperties' => ['$ref' => '#/components/schemas/ImageProcess', 'description' => '定义图片、视频、文档的缩略图处理规则'],
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '回收站中的文件和文件夹列表',
'type' => 'array',
'items' => ['description' => '文件或文件夹信息', '$ref' => '#/components/schemas/File'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhM1'],
],
],
],
],
'title' => '列举回收站',
'summary' => '列举回收站。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhM1\\"\\n}","type":"json"}]',
],
'ListRevision' => [
'path' => '/v2/file/revision/list',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
."\n"
.'默认值:无', 'type' => 'string', 'required' => false, 'example' => '40CB7794C929'],
'limit' => ['description' => '限定此次返回资源的数量,取值范围\\[1,100\\]。'."\n"
."\n"
.'默认值为50'."\n"
."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '200', 'minimum' => '1', 'example' => '100'],
'fields' => ['description' => '筛选返回字段'."\n"
."\n"
.'默认为空。当填 * 时,返回所有字段,会比为空时多返回创建者名称。', 'type' => 'string', 'required' => false, 'example' => '*'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '版本信息数组',
'type' => 'array',
'items' => ['description' => '版本信息', '$ref' => '#/components/schemas/Revision'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'title' => '列举版本',
'summary' => '列举版本信息。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"9520943DC264\\",\\n \\"revision_id\\": \\"40CB7794C929\\",\\n \\"revision_name\\": \\"1.mov\\",\\n \\"revision_version\\": 1,\\n \\"size\\": 1024,\\n \\"file_extension\\": \\"mov\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"keep_forever\\": false,\\n \\"revision_description\\": \\"aaa\\",\\n \\"is_latest_version\\": false,\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"creator_type\\": \\"\\",\\n \\"creator_id\\": \\"\\",\\n \\"creator_name\\": \\"\\"\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
],
'ListShareLink' => [
'path' => '/v2/share_link/list',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'creator' => ['description' => '创建者', 'type' => 'string', 'required' => false, 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
'limit' => ['description' => '限定此次返回资源的数量,取值范围\\[0,100\\]。'."\n"
."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'<br>默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'order_by' => [
'description' => '排序字段。'."\n"
.'默认按照创建时间倒序排列。'."\n"
.'枚举值如下:'."\n"
.'- share_name(分享名称)'."\n"
.'- updated_at(分享修改时间)'."\n"
.'- description(分享描述)'."\n"
.'- created_at(分享创建时间)',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['share_name' => '分享名称', 'updated_at' => '分享修改时间', 'description' => '分享描述', 'created_at' => '分享创建时间'],
'example' => 'share_name',
],
'order_direction' => [
'description' => '排序方式。'."\n"
.'如果是排序字段是created_at或者updated_at,则默认是倒序,其他排序字段默认是升序。'."\n"
.'枚举值如下:'."\n"
.'- ASC(升序)'."\n"
.'- DESC(降序)',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['ASC' => '升序', 'DESC' => '降序'],
'example' => 'ASC',
],
'include_cancelled' => ['description' => '是否包含已取消的分享', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '结果对象。',
'type' => 'array',
'items' => ['description' => '分享信息', '$ref' => '#/components/schemas/ShareLink'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'title' => '列举分享',
'summary' => '列举分享。',
'description' => 'Deprecated, 请使用分享SearchShareLink代替此接口。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"share_id\\": \\"7JQX1FswpQ8\\",\\n \\"share_pwd\\": \\"abcF123x\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id_list\\": [\\n \\"[\\\\\\"xx\\\\\\"]\\"\\n ],\\n \\"expiration\\": \\"2020-06-28T11:33:00.000+08:00\\",\\n \\"expired\\": false,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"videos\\",\\n \\"share_name\\": \\"video-1.MP4\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"status\\": \\"enabled\\",\\n \\"preview_count\\": 10,\\n \\"save_count\\": 2,\\n \\"download_count\\": 5,\\n \\"report_count\\": 0,\\n \\"video_preview_count\\": 1,\\n \\"access_count\\": 4,\\n \\"disable_preview\\": false,\\n \\"disable_save\\": false,\\n \\"disable_download\\": false,\\n \\"preview_limit\\": 100,\\n \\"save_limit\\": 100,\\n \\"download_limit\\": 100,\\n \\"require_login\\": false,\\n \\"share_all_files\\": true,\\n \\"share_msg\\": \\"pwd: 123\\",\\n \\"save_download_limit\\": 100,\\n \\"office_editable\\": true\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
],
'ListTags' => [
'path' => '/v2/image/list_tags',
'methods' => ['post'],
'schemes' => ['https', 'http'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'image_thumbnail_process' => ['description' => '图片缩略图处理', 'type' => 'string', 'required' => false, 'example' => 'image/resize,w_200'],
'video_thumbnail_process' => ['description' => '视频缩略图处理', 'type' => 'string', 'required' => false, 'example' => 'video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'type' => 'object',
'properties' => [
'tags' => [
'description' => '分组列表',
'type' => 'array',
'items' => ['description' => '标签信息', '$ref' => '#/components/schemas/ImageTag'],
],
],
'description' => '',
],
],
],
'title' => '列举标签分组',
'summary' => '列举标签分组。',
'description' => '标签分组接口结果是一次性返回指定的drive内聚合的结果,按照分组内照片数取前top2000个返回。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"tags\\": [\\n {\\n \\"name\\": \\"动物\\",\\n \\"count\\": 1,\\n \\"cover_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"cover_file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"cover_file_category\\": \\"image\\",\\n \\"cover_tag_confidence\\": 1,\\n \\"cover_overall_score\\": 0.736\\n }\\n ]\\n}","type":"json"}]',
],
'ListUploadedParts' => [
'summary' => '列举已上传成功的多段。',
'path' => '/v2/file/list_uploaded_parts',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'part_number_marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。 默认值:无'."\n"
."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'limit' => ['description' => '限定此次返回资源的数量。如果不设定,默认返回100,最大不能超过100。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
'upload_id' => ['description' => '上传id', 'type' => 'string', 'required' => true, 'example' => '00166D06127B413BA1EC8ABB1144D101'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'required' => true, 'example' => '322fb07b975f4b0ae1b543fe8475eee4c19eb2b2'],
'drive_id' => ['description' => '空间 id,除根据分享链接上传之外的其他场景,必填', 'type' => 'string', 'required' => false, 'example' => '1'],
'share_id' => ['description' => '分享 id,当根据分享链接上传时必填', 'type' => 'string', 'required' => false, 'example' => '7JQX1FswpQ8'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'file_id' => ['title' => 'Id of the request', 'description' => '文件id', 'type' => 'string', 'example' => '322fb07b975f4b0ae1b543fe8475eee4c19eb2b2'],
'upload_id' => ['description' => '上传id', 'type' => 'string', 'example' => '00166D06127B413BA1EC8ABB1144D101'],
'uploaded_parts' => [
'description' => '分段信息列表',
'type' => 'array',
'items' => ['description' => '分段信息', '$ref' => '#/components/schemas/UploadPartInfo'],
],
'next_part_number_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'parallel_upload' => ['description' => '是否并行上传', 'type' => 'boolean', 'example' => 'false'],
],
],
],
],
'title' => '列举已上传分片',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"file_id\\": \\"322fb07b975f4b0ae1b543fe8475eee4c19eb2b2\\",\\n \\"upload_id\\": \\"00166D06127B413BA1EC8ABB1144D101\\",\\n \\"uploaded_parts\\": [\\n {\\n \\"part_number\\": 1,\\n \\"part_size\\": 1024,\\n \\"upload_url\\": \\"https://data.aliyunpds.com/xxx/xxx?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx&partNumber=1&uploadId=0CC175B9C0F1B6A831C399E269772661\\",\\n \\"internal_upload_url\\": \\"https://data-vpc.aliyunpds.com/xxx/xxx?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx&partNumber=1&uploadId=0CC175B9C0F1B6A831C399E269772661\\\\n\\",\\n \\"etag\\": \\"\\\\\\"0CC175B9C0F1B6A831C399E269772661\\\\\\"\\",\\n \\"parallel_sha1_ctx\\": {\\n \\"h\\": [\\n 0\\n ],\\n \\"part_offset\\": 10240\\n },\\n \\"upload_form_info\\": {\\n \\"endpoint\\": \\"\\",\\n \\"form_data\\": {\\n \\"key\\": \\"\\"\\n }\\n },\\n \\"parallel_sha256_ctx\\": {\\n \\"h\\": [\\n 0\\n ],\\n \\"part_offset\\": 0\\n }\\n }\\n ],\\n \\"next_part_number_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\",\\n \\"parallel_upload\\": false\\n}","type":"json"}]',
],
'ListUser' => [
'path' => '/v2/user/list',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'limit' => ['description' => '查询数量,取值范围:1~100。默认值100', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'next_marker' => ['title' => 'Id of the request', 'description' => '下一页起始资源标识符, 最后一页该值为空', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'items' => [
'description' => '用户信息列表',
'type' => 'array',
'items' => ['description' => '用户信息', '$ref' => '#/components/schemas/User'],
],
],
],
],
],
'title' => '列举用户',
'summary' => '列举用户。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\",\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"user_id\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"avatar\\": \\"http://aa.com/1.jpg\\",\\n \\"created_at\\": 1639762579768,\\n \\"updated_at\\": 1639762579768,\\n \\"email\\": \\"a@aliyunpds.com\\",\\n \\"nick_name\\": \\"001\\",\\n \\"phone\\": \\"13900001111\\",\\n \\"role\\": \\"user\\",\\n \\"status\\": \\"enabled\\",\\n \\"user_name\\": \\"pds\\",\\n \\"description\\": \\"vipuser\\",\\n \\"default_drive_id\\": \\"1\\",\\n \\"creator\\": \\"user1\\",\\n \\"last_login_time\\": 0,\\n \\"last_refresh_token_time\\": 0,\\n \\"user_data\\": {\\n \\"key\\": \\"\\"\\n }\\n }\\n ]\\n}","type":"json"}]',
],
'MoveFile' => [
'summary' => '移动文件或文件夹。',
'path' => '/v2/file/move',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'to_parent_file_id' => ['description' => '目的父文件夹 id,当移入根目录时,填 root', 'type' => 'string', 'required' => true, 'example' => '6520943DC261'],
'check_name_mode' => [
'description' => '同名文件处理模式,可选值如下:'."\n"
."\n"
.'ignore:允许同名文件;'."\n"
."\n"
.'auto\\_rename:当发现同名文件时,云端自动重命名,默认为追加当前时间点,如 xxx\\_20060102\\_150405;'."\n"
."\n"
.'refuse:当云端存在同名文件时,拒绝创建新文件,返回客户端已存在同名文件的详细信息。'."\n"
."\n"
.'默认为 ignore',
'type' => 'string',
'required' => false,
'example' => 'ignore',
'enum' => ['ignore', 'auto_rename', 'refuse'],
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => 'Id of the request', 'description' => '域id', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['description' => '空间id', 'type' => 'string', 'example' => '1'],
'file_id' => ['description' => '文件id', 'type' => 'string', 'example' => 'fileid1'],
'async_task_id' => ['description' => '异步任务id。'."\n"
."\n"
.'如果返回为空字符串,表示直接移动成功。'."\n"
."\n"
.'如果返回非空字符串,表示需要经过异步处理。调用GetAsyncTask,传递异步任务id,获取任务信息。', 'type' => 'string', 'example' => '23ebd1a24dba4166b1527add476ef2866051b4d5del106'],
'exist' => ['description' => '文件是否已存在', 'type' => 'boolean', 'example' => 'false'],
'revision_id' => ['type' => 'string'],
'file_name' => ['type' => 'string'],
'updated_at' => ['type' => 'string'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"fileid1\\",\\n \\"async_task_id\\": \\"23ebd1a24dba4166b1527add476ef2866051b4d5del106\\",\\n \\"exist\\": false,\\n \\"revision_id\\": \\"\\",\\n \\"file_name\\": \\"\\",\\n \\"updated_at\\": \\"\\"\\n}","type":"json"}]',
'title' => '移动文件或文件夹',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'PunishFile' => [
'summary' => '处罚文件。',
'path' => '/v2/csi/business/punish_file',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => '域id', 'type' => 'string', 'example' => 'bj2'],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'type' => 'object',
'properties' => [
'drive_id' => ['title' => '处罚的文件所属空间 ID', 'description' => '处罚的文件所属drive_id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['title' => '处罚的文件 ID', 'description' => '处罚的文件file_id', 'type' => 'string', 'required' => true, 'example' => '2498DZ2'],
'action_code' => [
'title' => '处罚动作,枚举值:'."\n"
.'pds_file_meta_frozen: 冻结文件'."\n"
.'pds_file_meta_share_forbidden: 禁止分享'."\n"
.'pds_file_meta_remove_punish:解除处罚'."\n"
.'pds_file_frozen:冻结文件(文件内容级别)'."\n"
.'pds_fileshare_forbidden:禁止分享(文件内容级别)'."\n"
.'pds_file_remove_punish:解除处罚(文件内容级别)',
'description' => '处罚动作,可选的值:'."\n"
.'`pds_file_meta_frozen`: 冻结文件'."\n"
.'`pds_file_meta_share_forbidden`: 禁止分享 '."\n"
.'`pds_file_meta_remove_punish`:解除处罚'."\n"
.'`pds_file_frozen`:冻结文件(文件内容级别)'."\n"
.'`'."\0".'pds_fileshare_forbidden`:禁止分享(文件内容级别)'."\n"
.'`pds_file_remove_punish`:解除处罚(文件内容级别)'."\n"
.'文件内容级别的处罚会影响所有内容相同的文件,非文件内容级别的处罚只影响指定的文件。',
'type' => 'string',
'required' => true,
'enumValueTitles' => ['pds_file_remove_punish' => 'pds_file_remove_punish', 'pds_fileshare_forbidden' => 'pds_fileshare_forbidden', 'pds_file_frozen' => 'pds_file_frozen', 'pds_file_meta_frozen' => 'pds_file_meta_frozen', 'pds_file_meta_remove_punish' => 'pds_file_meta_remove_punish', 'pds_file_meta_share_forbidden' => 'pds_file_meta_share_forbidden'],
'example' => 'pds_file_meta_frozen',
],
'punish_reason' => ['title' => '处罚原因', 'description' => '处罚的原因', 'type' => 'string', 'required' => false, 'example' => 'illegal'],
],
'required' => false,
'title' => '请求体',
'description' => '请求体',
],
],
],
'responses' => [
204 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
'title' => '处罚文件',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'RemoveFaceGroupFile' => [
'path' => '/v2/albums/unassign_facegroup_item',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '123'],
'face_group_id' => ['description' => '人脸分组 id', 'type' => 'string', 'required' => true, 'example' => 'Cluster-abc'],
'file_id' => ['description' => '需要被移除人脸分组的文件id', 'type' => 'string', 'required' => true, 'example' => 'abcd'],
],
'required' => false,
],
],
],
'responses' => [
204 => [],
],
'title' => '删除人脸分组文件',
'summary' => '删除人脸分组中的文件。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'RemoveGroupMember' => [
'path' => '/v2/group/remove_member',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'group_id' => ['description' => '目标群组ID,表示从哪个群组下移除成员', 'type' => 'string', 'required' => true, 'example' => '3e5***2c2'],
'member_type' => ['description' => '成员类型,当前只能移除用户,群组移除可以通过删除群组完成'."\n"
."\n"
.'- user(用户)'."\n"
."\n"
.'注意:群组只能作为一个群组的成员,不能同时成为多个群组的成员。 用户可以同时成为多个群组的成员', 'type' => 'string', 'required' => true, 'example' => 'user'],
'member_id' => ['description' => '成员ID, 当member\\_type为user时,此字段填对应的userID。'."\n", 'type' => 'string', 'required' => true, 'example' => '2e4***1b1'],
],
'required' => false,
],
],
],
'responses' => [
204 => [
'headers' => [],
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [],
],
],
],
'title' => '移除群组成员',
'summary' => '从群组移除成员。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'RemoveStoryFiles' => [
'path' => '/v2/image/remove_story_files',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'story_id' => ['description' => '故事 id', 'type' => 'string', 'required' => true, 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
'files' => [
'description' => '文件列表',
'type' => 'array',
'items' => [
'description' => '文件信息',
'type' => 'object',
'properties' => [
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '63e5e4340f76cb3ead5f40f68163f0f967c1a7bf'],
'revision_id' => ['description' => '版本 id', 'type' => 'string', 'required' => false, 'example' => '642a88dd06e49d9c0a14411ebae606f70edd9a59'],
],
'required' => false,
],
'required' => false,
'maxItems' => 100,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'example' => '1'],
'story_id' => ['description' => '故事 id', 'type' => 'string', 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '故事中移除文件',
'summary' => '移除指定故事中的文件。',
'description' => '**请确保在使用该接口前,已充分了解 PDS 的收费方式和[价格](~~425220~~)**。'."\n"
."\n"
.'使用此功能须开通增值服务图片处理功能。'."\n"
."\n"
.'用户在创建故事后,可以根据需求移除故事中不需要的文件。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"drive_id\\": \\"1\\",\\n \\"story_id\\": \\"9132e0d8-fe92-4e56-86c3-f5f112308003\\"\\n}","type":"json"}]',
],
'RestoreFile' => [
'summary' => '从回收站恢复文件或文件夹。',
'path' => '/v2/recyclebin/restore',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间ID', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件或文件夹ID', 'type' => 'string', 'required' => true, 'example' => '4221bf6e6ab43a255edc4463bffa6f5f5d317401'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => 'Id of the request', 'description' => '域ID', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['description' => '空间ID', 'type' => 'string', 'example' => '1'],
'file_id' => ['description' => '文件或文件夹ID', 'type' => 'string', 'example' => '4221bf6e6ab43a255edc4463bffa6f5f5d317401'],
'async_task_id' => ['description' => '异步任务 ID'."\n"
."\n"
.'如果返回为空字符串,表示直接从回收站恢复成功。'."\n"
."\n"
.'如果返回非空字符串,表示需要经过异步处理。调用 GetAsyncTask,传递异步任务 ID,获取任务信息。', 'type' => 'string', 'example' => '4221bf6e6ab43c255edc4463bf3a6f5f5d317406'],
],
],
],
204 => [],
],
'title' => '恢复文件或文件夹',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"4221bf6e6ab43a255edc4463bffa6f5f5d317401\\",\\n \\"async_task_id\\": \\"4221bf6e6ab43c255edc4463bf3a6f5f5d317406\\"\\n}","type":"json"}]',
],
'RestoreRevision' => [
'path' => '/v2/file/revision/restore',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'revision_id' => ['description' => '版本 id', 'type' => 'string', 'required' => true, 'example' => '40CB7794C929'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '版本信息', '$ref' => '#/components/schemas/Revision'],
],
],
'title' => '还原历史版本',
'summary' => '将文件的某个历史版本,还原为文件的最新版本,还原时生成一个新版本,被还原的版本不变。不支持还原最新版本。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"9520943DC264\\",\\n \\"revision_id\\": \\"40CB7794C929\\",\\n \\"revision_name\\": \\"1.mov\\",\\n \\"revision_version\\": 1,\\n \\"size\\": 1024,\\n \\"file_extension\\": \\"mov\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"keep_forever\\": false,\\n \\"revision_description\\": \\"aaa\\",\\n \\"is_latest_version\\": false,\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"creator_type\\": \\"\\",\\n \\"creator_id\\": \\"\\",\\n \\"creator_name\\": \\"\\"\\n}","type":"json"}]',
],
'ScanFile' => [
'path' => '/v2/file/scan',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'list'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'limit' => ['description' => '限定此次返回资源的数量,取值范围\\[1,100\\]。'."\n"
."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '50', 'default' => '50'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'<br>默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'fields' => ['title' => 'scan file 想要获取的文件属性,'."\n"
.'1. 如果想要获取所有属性使用‘*’,'."\n"
.' 2.不传默认返回以下属性:'."\n"
.' file_id, drive_id, parent_file_id, type,'."\n"
.' created_at, updated_at, file_extention, size, starred, status,deleting, category, permissions'."\n"
.' 3 用户也可以指定属性进行返回,多个属性之间用,隔开'."\n"
.' '."\n", 'description' => 'scan file 想要获取的文件属性。'."\n"
.'- 如果想要获取所有属性使用‘*’。'."\n"
.'- 不传默认返回以下属性:'."\n"
.' - file_id, '."\n"
.' - drive_id, '."\n"
.' - parent_file_id, '."\n"
.' - type, '."\n"
.' - created_at, '."\n"
.' - updated_at, '."\n"
.' - file_extention, '."\n"
.' - size, '."\n"
.' - starred, '."\n"
.' - status,'."\n"
.' - category, '."\n"
.' - permissions。'."\n"
.'- 用户也可以指定属性进行返回,多个属性之间用\',\'隔开。', 'type' => 'string', 'required' => false, 'example' => '*'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '文件列表',
'type' => 'array',
'items' => ['description' => '文件信息', '$ref' => '#/components/schemas/File'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'title' => '扫描文件',
'summary' => '扫描文件。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
],
'SearchAddressGroups' => [
'summary' => '根据地点列表查询地点聚类。',
'path' => '/v2/image/search_address_groups',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'tl_geo_point' => ['description' => '矩形的左顶点位置(维度,经度)', 'type' => 'string', 'required' => false, 'example' => '39.121,101.2121'],
'br_geo_point' => ['description' => '矩形的右底点位置(维度,经度)', 'type' => 'string', 'required' => false, 'example' => '40.121,105.2121'],
'address_level' => [
'description' => '查询的地点级别',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['country' => 'country', 'province' => 'province', 'city' => 'city', 'district' => 'district', 'township' => 'township'],
'example' => 'city',
],
'address_names' => [
'description' => '地点列表',
'type' => 'array',
'items' => ['description' => '地点列表, 数组内个数最多10个, 内部的值需要与address_level 级别对应,'."\n"
.'该参数与上边tl_geo_point和br_geo_point参数互斥,二者选其一', 'type' => 'string', 'required' => false, 'example' => '["杭州市","北京市"]'],
'required' => false,
'maxItems' => 10,
'minItems' => 1,
'example' => '["Hangzhou","Beijing"]',
],
'image_thumbnail_process' => ['description' => '图片缩略图处理样式', 'type' => 'string', 'required' => false, 'example' => 'image/resize,w_200'],
'video_thumbnail_process' => ['description' => '视频缩略图处理样式', 'type' => 'string', 'required' => false, 'example' => 'video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '地点聚类列表',
'type' => 'array',
'items' => ['description' => '地点聚类', '$ref' => '#/components/schemas/AddressGroup'],
],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"name\\": \\"\\",\\n \\"location\\": \\"30.12231,120.1212\\",\\n \\"count\\": 10,\\n \\"cover_url\\": \\"\\",\\n \\"cover_file_id\\": \\"\\",\\n \\"address_detail\\": {\\n \\"country\\": \\"中国\\",\\n \\"province\\": \\"浙江省\\",\\n \\"city\\": \\"杭州市\\",\\n \\"district\\": \\"余杭区\\",\\n \\"township\\": \\"文一西路\\"\\n }\\n }\\n ]\\n}","type":"json"}]',
'title' => '根据地点列表查询地点聚类',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'SearchDomains' => [
'summary' => '搜索 domain',
'path' => '/v2/domain/search',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => ['admin'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求body',
'type' => 'object',
'properties' => [
'name' => ['description' => '要搜索的 domain 名称,支持模糊搜索', 'type' => 'string', 'required' => false, 'example' => 'Hello Drive'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'<br>默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'limit' => ['description' => '限定此次返回资源的数量,取值范围\\[0,100\\],默认100'."\n"
."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '50'],
'order_by' => ['description' => '排序规则,当前仅支持:'."\n"
.'created_at,创建时间', 'type' => 'string', 'required' => false, 'example' => 'created_at'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => 'domain 列表以及遍历 marker',
'type' => 'object',
'properties' => [
'items' => [
'description' => '搜索命中的 domain 列表',
'type' => 'array',
'items' => ['description' => 'domain 信息', '$ref' => '#/components/schemas/Domain'],
],
'next_marker' => ['description' => '用作下次遍历的 marker', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"parent_domain_id\\": \\"bj1\\",\\n \\"domain_id\\": \\"bj2\\",\\n \\"domain_name\\": \\"pdsdomain\\",\\n \\"description\\": \\"my domain\\",\\n \\"init_drive_enable\\": true,\\n \\"init_drive_size\\": 1073741824,\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"size_quota\\": 1099511627776,\\n \\"size_quota_used\\": 1099511627776,\\n \\"user_count_quota\\": 50,\\n \\"status\\": 1,\\n \\"used_size\\": 1099511627776,\\n \\"published_app_access_strategy\\": {\\n \\"effect\\": \\"deny\\",\\n \\"except_app_id_list\\": [\\n \\"8ovxCTRUDdbpVWBP\\"\\n ]\\n },\\n \\"sharable\\": true,\\n \\"data_hash_name\\": \\"sha1\\",\\n \\"store_redundancy_type\\": \\"LRS\\"\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
'title' => '搜索Domain',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'SearchDrive' => [
'summary' => '搜索空间。',
'path' => '/v2/drive/search',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_name' => ['description' => '空间名称', 'type' => 'string', 'required' => false, 'example' => 'My personal space'],
'limit' => ['description' => '异步调用的返回个数。默认返回100个,取值范围\\[1,100]。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '0', 'exclusiveMinimum' => true, 'example' => '100', 'default' => '100'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'<br>默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'owner' => ['description' => '归属者', 'type' => 'string', 'required' => false, 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
'owner_type' => [
'description' => '归属者类型,可选值如下:'."\n"
."\n"
.'user:用户'."\n"
.'group:团队',
'type' => 'string',
'required' => false,
'example' => 'user',
'enum' => ['user', 'group'],
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '空间信息列表',
'type' => 'array',
'items' => ['description' => '空间信息', '$ref' => '#/components/schemas/Drive'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"drive_name\\": \\"drv1\\",\\n \\"description\\": \\"vipdrive\\",\\n \\"owner\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"owner_type\\": \\"user\\",\\n \\"drive_type\\": \\"normal\\",\\n \\"status\\": \\"enabled\\",\\n \\"used_size\\": 20480,\\n \\"total_size\\": 204800,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\"\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\"\\n}","type":"json"}]',
'title' => '搜索空间',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'SearchFile' => [
'summary' => '搜索文件。',
'path' => '/v2/file/search',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => false, 'example' => '1'],
'query' => ['description' => '搜索条件,可以根据文件名或目录名模糊查询,最长 4096 字符', 'type' => 'string', 'required' => true, 'example' => 'name="123"', 'maxLength' => 4096],
'order_by' => [
'description' => '排序字段,默认根据 created_at 排序,可选值如下:'."\n"
.'- created\\_at:根据创建时间排序'."\n"
.'- updated\\_at:根据更新时间排序'."\n"
.'- size:根据文件大小排序'."\n"
.'- name:根据文件名排序'."\n"
."\n\n"
.'排序方向,可选值如下:'."\n"
.'- ASC代表正序'."\n"
.'- DESC代表逆序'."\n"
."\n\n"
.'order\\_by语法为:字段名+空格+ASC/DESC,如果多个字段排序则需要用逗号隔开,前面的规则优先级高。如:'."\n"
.'- 按名称正序:name ASC'."\n"
.'- 按创建时间逆序: created_at DESC'."\n"
.'- 先按创建时间逆序,如果创建时间相同,则按名称正序:created_at DESC,name ASC',
'type' => 'string',
'required' => false,
'enumValueTitles' => [],
'example' => 'name ASC',
'enum' => ['name', 'type', 'created_at', 'updated_at', 'size', 'image_time', 'last_access_at', 'custom_type', 'custom_field_1', 'custom_field_2', 'image_overall_score'],
],
'limit' => ['description' => '限定此次返回资源的数量,取值范围\\[1,100\\]。'."\n"
."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '100', 'minimum' => '1', 'example' => '50', 'default' => '50'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'<br>默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'return_total_count' => ['description' => '是否返回检索到的文件总数。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'recursive' => ['description' => '当 query 中设置了 parent_file_id= xxx 时,设置该字段可以对文件夹进行递归搜索', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'thumbnail_processes' => [
'description' => '缩略图配置,可一次性返回最多5个缩略图,map的key可以自定义,返回时按key返回对应的缩略图链接',
'type' => 'object',
'required' => false,
'additionalProperties' => ['$ref' => '#/components/schemas/ImageProcess', 'description' => '定义图片、视频、文档的缩略图处理规则'],
],
'fields' => ['description' => '设置 fields 时,可以返回文件的额外信息时,支持的字段为:'."\n"
.'* dir_size 响应中返回每个子文件夹的统计信息'."\n"
.'* id_path 响应中返回每个子对象的 id_path'."\n"
.'* name_path 响应中返回每个子对象的 name_path'."\n"
."\n"
.'当需要多个信息时,不同字段以逗号分割,如 "id_path,name_path,dir_size"', 'type' => 'string', 'required' => false, 'example' => 'id_path,name_path'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '文件信息列表。',
'type' => 'array',
'items' => ['description' => '文件信息', '$ref' => '#/components/schemas/File'],
],
'next_marker' => ['description' => '下一页起始资源标识符, 最后一页该值为空。', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'total_count' => ['description' => '命中的文件总数', 'type' => 'integer', 'format' => 'int64', 'example' => '1022'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\",\\n \\"total_count\\": 1022\\n}","type":"json"}]',
'title' => '搜索文件',
'description' => '<props="china">最佳实践可参考:[搜索文件](https://help.aliyun.com/document_detail/175890.html)。</props>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'SearchShareLink' => [
'path' => '/v2/share_link/search',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'limit' => ['description' => '限定此次返回资源的数量,取值范围\\[1,100\\]。如果没有填写,默认取值100。'."\n"
."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '50'],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'<br>默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'return_total_count' => ['description' => '是否返回搜到到的总记录数', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'order_by' => [
'description' => '排序字段。'."\n"
.'默认按照创建时间倒序排列。'."\n"
.'枚举值如下:'."\n"
.'- share_name(分享名称)'."\n"
.'- updated_at(修改时间)'."\n"
.'- description(描述)'."\n"
.'- created_at(创建时间)'."\n",
'type' => 'string',
'required' => false,
'enumValueTitles' => ['share_name' => '分享名称', 'updated_at' => '修改时间', 'description' => '描述', 'created_at' => '创建时间'],
'example' => 'created_at',
],
'order_direction' => [
'description' => '排序方式。'."\n"
.'如果是排序字段是created\\_at或者updated\\_at,则默认是倒序,其他排序字段默认是升序。'."\n"
.'枚举值如下:'."\n"
.'- ASC(升序)'."\n"
.'- DESC(降序)',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['ASC' => '升序', 'DESC' => '降序'],
'example' => 'ASC',
],
'creators' => [
'description' => '分享创建者(user_id)'."\n"
.'1)如果不指定, 那么会根据用户本身的权限进行查询'."\n"
.'1.1 网盘管理员/超管:所有成员'."\n"
.'1.2 团队管理员:团队成员'."\n"
.'1.3 普通用户:自身'."\n"
."\n"
.'2)如果指定, 那么只能指定那些有权限的成员, 参考1)',
'type' => 'array',
'items' => ['description' => '分享创建者', 'type' => 'string', 'required' => false, 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4'],
'required' => false,
],
'query' => ['description' => '查询条件'."\n"
.'1)支持字段:'."\n"
.'1.1 created\\_at 创建时间'."\n"
.'1.2 updated\\_at 更新时间'."\n"
.'1.3 share\\_name\\_for\\_fuzzy 分享名, 支持模糊匹配(match)'."\n"
.'1.4 status 分享状态, '."\n"
.'枚举值 enabled(分享中)/disabled(已取消)'."\n"
.'1.5 expired\\_time 超时时间'."\n"
.'永不过期:expired\\_time=\'1970-01-01T00:00:00\', 返回的expiration=""'."\n"
.'expired_time<\'1970-01-02T00:00:00\'系统保留使用,不表示具体时间', 'type' => 'string', 'required' => false, 'example' => 'created_at>=\'2022-01-18T02:50:00\' and created_at<\'2022-01-19T09:45:28\' and share_name_for_fuzzy match \'HD.mp4\' and status in [\'enabled\', \'disabled\'] and expired_time=\'1970-01-01T00:00:00\''],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'items' => [
'description' => '分享列表',
'type' => 'array',
'items' => ['description' => '分享', '$ref' => '#/components/schemas/ShareLink'],
],
'next_marker' => ['description' => '下次起始点', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'total_count' => ['description' => '总数量', 'type' => 'integer', 'format' => 'int64', 'example' => '101'],
],
],
],
],
'title' => '搜索分享',
'summary' => '搜索分享。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"share_id\\": \\"7JQX1FswpQ8\\",\\n \\"share_pwd\\": \\"abcF123x\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id_list\\": [\\n \\"[\\\\\\"xx\\\\\\"]\\"\\n ],\\n \\"expiration\\": \\"2020-06-28T11:33:00.000+08:00\\",\\n \\"expired\\": false,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"videos\\",\\n \\"share_name\\": \\"video-1.MP4\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"status\\": \\"enabled\\",\\n \\"preview_count\\": 10,\\n \\"save_count\\": 2,\\n \\"download_count\\": 5,\\n \\"report_count\\": 0,\\n \\"video_preview_count\\": 1,\\n \\"access_count\\": 4,\\n \\"disable_preview\\": false,\\n \\"disable_save\\": false,\\n \\"disable_download\\": false,\\n \\"preview_limit\\": 100,\\n \\"save_limit\\": 100,\\n \\"download_limit\\": 100,\\n \\"require_login\\": false,\\n \\"share_all_files\\": true,\\n \\"share_msg\\": \\"pwd: 123\\",\\n \\"save_download_limit\\": 100,\\n \\"office_editable\\": true\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\",\\n \\"total_count\\": 101\\n}","type":"json"}]',
],
'SearchSimilarImageClusters' => [
'path' => '/v2/image/query_similar_image_clusters',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'marker' => ['description' => '分页标记,从指定位置查询结果。若为空则表示从头开始查询。', 'type' => 'string', 'required' => false, 'example' => 'YWRzX3VzZXJfcHJvZmlsZV9je1bnQh***'],
'limit' => ['description' => '限定此次返回结果的数量,取值范围\\[1,100\\],默认50。'."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'maximum' => '100', 'minimum' => '0', 'example' => '50', 'default' => '50'],
'order' => [
'description' => '排序顺序',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['asc' => '升序', 'desc' => '降序'],
'example' => 'desc',
'default' => 'desc',
'enum' => ['desc', 'asc'],
],
'image_thumbnail_process' => ['description' => '图片缩略图处理样式', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'image/resize,m_fill,h_128,w_128,limit_0/format,jpg'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回参数',
'type' => 'object',
'properties' => [
'similar_image_clusters' => [
'description' => '相似图片聚类列表',
'type' => 'array',
'items' => [
'description' => '相似图片聚类详情',
'type' => 'object',
'properties' => [
'files' => [
'description' => '相似图片列表',
'type' => 'array',
'items' => ['description' => '文件详情', '$ref' => '#/components/schemas/File'],
],
],
],
],
'next_marker' => ['description' => '用作下次遍历的 marker', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0***'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '查询相似图片聚类结果',
'summary' => '获取指定 drive 空间下的相似图片。',
'description' => '**请确保在使用该接口前,已充分了解 PDS 的收费方式和[价格](~~425220~~)**。'."\n"
."\n"
.'使用此功能须开通增值服务图片处理功能。'."\n"
."\n"
.'查询相似图片聚类结果前,需调用 CreateSimilarImageClusterTask 接口创建相似图片聚类任务,拿到 task_id,通过 GetTaskStatus 接口查询该聚类任务是否成功。待聚类任务成功后,再通过 SearchSimilarImageClusters 接口获取相似图片结果。'."\n"
."\n"
.'><notice>'."\n"
.'- 未执行聚类任务调用该接口返回空列表。'."\n"
.'- 相似图片聚类任务是增量更新聚类结果。若本次聚类任务未完成,则返回上一次聚类结果。'."\n"
.'></notice>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"similar_image_clusters\\": [\\n {\\n \\"files\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n }\\n ]\\n }\\n ],\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0***\\"\\n}","type":"json"}]',
],
'SearchStories' => [
'summary' => '根据用户指定的条件,查询指定 drive 空间下的故事列表。',
'path' => '/v2/image/find_stories',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'story_id' => ['description' => '故事 id', 'type' => 'string', 'required' => false, 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
'story_type' => ['description' => '故事类型。由用户创建时指定。', 'type' => 'string', 'required' => false, 'example' => 'PeopleMemory'],
'story_name' => ['description' => '故事名称。'."\n"
.'长度不超过 1024 字节。', 'type' => 'string', 'required' => false, 'example' => 'Food'],
'story_start_time_range' => [
'description' => '创建故事照片或视频的开始时间范围',
'type' => 'object',
'properties' => [
'start' => ['description' => '起始时间。时间格式为 RFC3339。', 'type' => 'string', 'required' => false, 'example' => '2016-12-31T00:00:00+08:00'],
'end' => ['description' => '结束时间。时间格式为 RFC3339。', 'type' => 'string', 'required' => false, 'example' => '2022-12-31T00:00:00+08:00'],
],
'required' => false,
],
'story_end_time_range' => [
'description' => '创建故事照片或视频的结束时间范围',
'type' => 'object',
'properties' => [
'start' => ['description' => '起始时间。时间格式为 RFC3339。', 'type' => 'string', 'required' => false, 'example' => '2016-12-31T00:00:00+08:00'],
'end' => ['description' => '结束时间。时间格式为 RFC3339。', 'type' => 'string', 'required' => false, 'example' => '2022-12-31T00:00:00+08:00'],
],
'required' => false,
],
'create_time_range' => [
'description' => '创建故事时间范围',
'type' => 'object',
'properties' => [
'start' => ['description' => '起始时间。时间格式为 RFC3339。', 'type' => 'string', 'required' => false, 'example' => '2016-12-31T00:00:00+08:00'],
'end' => ['description' => '结束时间。时间格式为 RFC3339。', 'type' => 'string', 'required' => false, 'example' => '2022-12-31T00:00:00+08:00'],
],
'required' => false,
],
'face_group_ids' => [
'description' => '人脸分组列表。'."\n"
.'查询人物故事时使用。',
'type' => 'array',
'items' => ['description' => '人脸分组 id', 'type' => 'string', 'required' => false, 'example' => 'Cluster-be377f73-3502-433c-8309-a01e659c128c'],
'required' => false,
],
'custom_labels' => ['description' => '自定义标签。'."\n"
.'可查询多个字段,使用 "," 分隔。', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'key1=value1,key2!=value2'],
'with_empty_stories' => ['description' => '是否返回空故事。默认 false。', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'marker' => ['description' => '查询的起始位置。若为空则表示从头开始查询。', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDODBhNDQ2Nzhl***'],
'limit' => ['description' => '限定此次返回资源的数量,取值范围\\[1,100\\]。'."\n"
.'默认 100。'."\n"
.'返回结果可以小于指定的数量,但不能多于指定的数量。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100', 'default' => '100'],
'sort' => [
'description' => '排序字段',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['StoryName' => '按故事名称排序', 'StoryEndTime' => '按故事结束时间排序', 'CreateTime' => '按故事创建时间排序', 'StoryStartTime' => '按故事开始时间排序'],
'example' => 'CreateTime',
'enum' => ['CreateTime', 'StoryName', 'StoryStartTime', 'StoryEndTime'],
],
'order' => [
'description' => '排序方式',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['asc' => '升序', 'desc' => '降序'],
'example' => 'desc',
'enum' => ['asc', 'desc'],
],
'cover_image_thumbnail_process' => ['description' => '图片封面缩略图控制参数', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'image/resize,m_fill,h_128,w_128,limit_0/format,jpg'],
'cover_video_thumbnail_process' => ['description' => '视频封面缩略图控制参数', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'video/snapshot,t_1000,f_jpg,w_0,h_0,m_fast,ar_auto'],
'url_expire_sec' => ['description' => '缩略图过期时间。单位为秒,最短 10 秒,最长 86400 秒。', 'type' => 'integer', 'format' => 'int64', 'deprecated' => true, 'required' => false, 'maximum' => '86400', 'minimum' => '10', 'example' => '900', 'default' => '900'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回参数',
'type' => 'object',
'properties' => [
'items' => [
'description' => '故事列表',
'type' => 'array',
'items' => ['description' => '故事详情', '$ref' => '#/components/schemas/Story'],
],
'next_marker' => ['description' => '下次查询位置', 'type' => 'string', 'example' => 'Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJ***'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"items\\": [\\n {\\n \\"story_id\\": \\"9132e0d8-fe92-4e56-86c3-f5f112308003\\",\\n \\"story_type\\": \\"PeopleMemory\\",\\n \\"story_sub_type\\": \\"Solo\\",\\n \\"story_name\\": \\"test_name\\",\\n \\"story_start_time\\": \\"2021-01-14T10:17:18.102700407+08:00\\",\\n \\"story_end_time\\": \\"2022-01-14T10:17:18.102700407+08:00\\",\\n \\"created_at\\": \\"2022-01-14T10:17:18.102700407+08:00\\",\\n \\"updated_at\\": \\"2022-01-14T10:17:18.102700407+08:00\\",\\n \\"face_group_ids\\": [\\n \\"Cluster-be377f73-3502-433c-8309-a01e659c128c\\"\\n ],\\n \\"cover_file_id\\": \\"63e5e4340f76cb3ead5f40f68163f0f967c1a7bf\\",\\n \\"cover_file_thumbnail_url\\": \\"https://pds-domain-bucket.oss-cn-hangzhou.aliyuncs.com/Bh1HqdAs%2F1001%2F642a88c26f99cad589904fc8a6b2db6021c6601f%2F642a88c29391c47f221e49e88a21fa9b0a9e5063?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5eGE8nGtYZ59bSnbUODlmsjTttVhpbFpjz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNXD6XXO2qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABVgD3mIAeUoDYKTJrFTPdmAPIrlUUQ1HZstB0ZVHvYByygr3oeitG9FEQ8lcfaZYJOtWRchdgH8tsSwHj2jI1vMeAiLHgbW98SPA3yfN8OR1kLW73uq3LAvekc9Qldz33YTM4JA5MNJzR8x5O6Oe4rY5OMSSVU5F%2Ffr8bJZD%2FXMM%3D&x-oss-access-key-id=STS.NT3XsrXYXBvLoe2rkvBTyiSnD&x-oss-expires=1685966251&x-oss-process=image%2Fresize%2Cw_500&x-oss-signature=XimW6haBxYktKg4cstMfpd%2F2LSoMibj6A%2B7ZqBJcSbQ%3D&x-oss-signature-version=OSS2\\",\\n \\"story_file_list\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n }\\n ],\\n \\"custom_id\\": \\"test\\",\\n \\"custom_labels\\": {\\n \\"key\\": \\"value\\"\\n }\\n }\\n ],\\n \\"next_marker\\": \\"Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJ***\\"\\n}","type":"json"}]',
'title' => '查询故事列表',
'description' => '**请确保在使用该接口前,已充分了解 PDS 的收费方式和[价格](~~425220~~)**。'."\n"
."\n"
.'使用此功能须开通增值服务图片处理功能。'."\n"
."\n"
.'使用查询故事列表前,需要用户调用 CreateStory 或 CreateCustomizedStory 接口创建故事,否则返回空列表。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'SearchUser' => [
'path' => '/v2/user/search',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => ['operationType' => 'list', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求body',
'type' => 'object',
'properties' => [
'nick_name' => ['description' => '用户昵称,最长128字符', 'type' => 'string', 'required' => false, 'example' => 'pdsuer', 'maxLength' => 128, 'minLength' => 0],
'nick_name_for_fuzzy' => ['description' => '昵称-模糊搜索,最长128字符', 'type' => 'string', 'required' => false, 'example' => 'la', 'maxLength' => 128, 'minLength' => 0],
'user_name' => ['description' => '用户名称,最长128字符', 'type' => 'string', 'required' => false, 'example' => 'pds', 'maxLength' => 128, 'minLength' => 0],
'phone' => ['description' => '手机号', 'type' => 'string', 'required' => false, 'example' => '13900001111'],
'email' => ['description' => '邮箱地址', 'type' => 'string', 'required' => false, 'example' => '123@pds.com'],
'status' => [
'description' => '用户状态'."\n"
."\n"
.'- disabled(禁止)'."\n"
."\n"
.'- enabled(使能)',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['disabled' => '禁止', 'enabled' => '使能'],
'example' => 'enabled',
],
'role' => [
'description' => '角色'."\n"
."\n"
.'- superadmin(超级管理员)'."\n"
."\n"
.'- admin(管理员)'."\n"
."\n"
.'- user(用户)',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['superadmin' => '超级管理员', 'admin' => '管理员', 'user' => '用户'],
'example' => 'user',
],
'marker' => ['description' => '设定结果从marker之后按字母排序的第一个开始返回。如果不设定,则从头开始返回数据。'."\n"
.'<br>默认值:无', 'type' => 'string', 'required' => false, 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'limit' => ['description' => '限定此次返回资源的数量,取值范围为[1,100],默认返回100', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'next_marker' => ['title' => 'Id of the request', 'description' => '下一页起始资源标识符, 最后一页该值为空', 'type' => 'string', 'example' => 'NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg'],
'items' => [
'description' => '用户信息列表',
'type' => 'array',
'items' => ['description' => '用户信息', '$ref' => '#/components/schemas/User'],
],
],
],
],
],
'title' => '搜索用户',
'summary' => '搜索用户。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"next_marker\\": \\"NWQ1Yjk4YmI1ZDRlYmU1Y2E0YWE0NmJhYWJmODBhNDQ2NzhlMTRhMg\\",\\n \\"items\\": [\\n {\\n \\"domain_id\\": \\"bj1\\",\\n \\"user_id\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"avatar\\": \\"http://aa.com/1.jpg\\",\\n \\"created_at\\": 1639762579768,\\n \\"updated_at\\": 1639762579768,\\n \\"email\\": \\"a@aliyunpds.com\\",\\n \\"nick_name\\": \\"001\\",\\n \\"phone\\": \\"13900001111\\",\\n \\"role\\": \\"user\\",\\n \\"status\\": \\"enabled\\",\\n \\"user_name\\": \\"pds\\",\\n \\"description\\": \\"vipuser\\",\\n \\"default_drive_id\\": \\"1\\",\\n \\"user_data\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"creator\\": \\"user1\\"\\n }\\n ]\\n}","type":"json"}]',
],
'Token' => [
'summary' => 'OAuth2.0授权流程的获取访问令牌。',
'path' => '/v2/oauth/token',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'Anonymous' => [],
],
],
'consumes' => ['application/x-www-form-urlencoded'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'grant_type',
'in' => 'formData',
'schema' => ['description' => '授权类型,有以下取值:'."\n"
."\n"
.'authorization\\_code (通过认证完成后获取的code来换取token)'."\n"
."\n"
.'refresh\\_token(通过上次授权获取的refresh_token来获取token)'."\n"
."\n"
.'urn:ietf:params:oauth:grant-type:jwt-bearer(通过JWT方式获取token)', 'type' => 'string', 'required' => true, 'example' => 'refresh_token'],
],
[
'name' => 'code',
'in' => 'formData',
'schema' => ['description' => '认证完成后回调地址中携带的code,当grant\\_type为authorization\\_code时,此参数必传'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => '0045157fa8e24f4f9a0d9e3ff158c1e0'],
],
[
'name' => 'redirect_uri',
'in' => 'formData',
'schema' => ['description' => '填写发起authorize时传入的redirect\\_uri,当grant\\_type为authorization\\_code时必填'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => 'https://aliyun.com/pds'."\n"],
],
[
'name' => 'client_id',
'in' => 'formData',
'schema' => ['description' => '在阿里云PDS控制台申请的App对应的ID'."\n"
."\n", 'type' => 'string', 'required' => true, 'example' => '1Zu***flH'],
],
[
'name' => 'client_secret',
'in' => 'formData',
'schema' => ['description' => '在阿里云PDS控制台申请的App对应的Secret,WebServer类型的App必填此参数'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => '80D***3i5'."\n"],
],
[
'name' => 'refresh_token',
'in' => 'formData',
'schema' => ['description' => '用于刷新Token的令牌,当grant\\_type为refresh\\_token时此参数必传'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => '399623e13353490391266c7d48a13ed1'],
],
[
'name' => 'assertion',
'in' => 'formData',
'schema' => ['description' => '通过JWT私钥签名的字符串,里面包含待授权的用户信息和授权参数,结构参考JWTPayload。当grant_type为urn:ietf:params:oauth:grant-type:jwt-bearer时此参数必填。'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => 'ey***asd'."\n"],
],
],
'responses' => [
200 => [
'headers' => [],
'schema' => ['description' => '访问令牌信息', '$ref' => '#/components/schemas/Token'],
],
],
'title' => '获取访问令牌',
'description' => '<props="china">详细使用方法参考用户指南:[用户指南链接](https://help.aliyun.com/document_detail/175894.html)。</props>'."\n"
."\n"
.'<props="china">JWT方式登录参考文档:[JWT登录链接](https://help.aliyun.com/document_detail/175893.html)。</props>'."\n"
."\n"
.'<props="intl">详细使用方法参考用户指南:[用户指南链接](https://www.alibabacloud.com/help/zh/pds/latest/oauth2-for-web-server-app?spm=a2c63.p38356.0.0.267148fbJdRB0P)。</props>'."\n"
."\n"
.'<props="intl">JWT方式登录参考文档:[JWT登录链接](https://www.alibabacloud.com/help/zh/pds/latest/jwt-application?spm=a2c63.p38356.0.0.45ab5f06NnPJqj)。</props>',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'TrashFile' => [
'path' => '/v2/recyclebin/trash',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间ID', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件或文件夹ID', 'type' => 'string', 'required' => true, 'example' => '4221bf6e6ab43c255edc4463bf3a6f5f5d317406'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'domain_id' => ['title' => 'Id of the request', 'description' => '域ID', 'type' => 'string', 'example' => 'bj1'],
'drive_id' => ['description' => '空间ID', 'type' => 'string', 'example' => '1'],
'file_id' => ['description' => '文件或文件夹ID', 'type' => 'string', 'example' => '4221bf6e6ab43c255edc4463bf3a6f5f5d317406'],
'async_task_id' => ['description' => '异步任务ID'."\n"
."\n"
.'如果返回为空字符串,表示直接放入回收站成功。'."\n"
."\n"
.'如果返回非空字符串,表示需要经过异步处理。调用GetAsyncTask,传递异步任务ID,获取任务信息。', 'type' => 'string', 'example' => '13ebd3a24dba4166b1527add676ef2866051b4d5dele16'],
],
],
],
204 => [],
],
'title' => '放入回收站',
'summary' => '文件或文件夹放入回收站。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"4221bf6e6ab43c255edc4463bf3a6f5f5d317406\\",\\n \\"async_task_id\\": \\"13ebd3a24dba4166b1527add676ef2866051b4d5dele16\\"\\n}","type":"json"}]',
],
'UnLinkAccount' => [
'path' => '/v2/account/unlink',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体',
'type' => 'object',
'properties' => [
'user_id' => ['description' => '用户标识', 'type' => 'string', 'required' => true, 'example' => 'uid1'],
'type' => ['description' => '账号类型'."\n"
."\n"
.'mobile:手机号'."\n"
."\n"
.'email:邮箱'."\n"
."\n"
.'ding:钉钉'."\n"
."\n"
.'ram:阿里云RAM子账号'."\n"
."\n"
.'wechat:企业微信'."\n"
."\n"
.'ldap:LDAP账号'."\n"
."\n"
.'custom:自定义账号', 'type' => 'string', 'required' => true, 'example' => 'mobile'],
'identity' => ['description' => '账号的唯一标识,比如手机号', 'type' => 'string', 'required' => true, 'example' => '139****'."\n"],
'extra' => ['description' => '账号唯一标识的附加信息,比如当账号为手机号时,此字段填手机的区域编码,比如中国大陆为86,不填写默认为86', 'type' => 'string', 'required' => false, 'example' => '1'],
],
'required' => false,
],
],
],
'responses' => [
204 => [],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '取消账号关联',
'summary' => '取消账号绑定。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'UpdateDomain' => [
'summary' => '更新 domain。',
'path' => '/v2/domain/update',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => ['admin'],
'security' => [
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体。',
'type' => 'object',
'properties' => [
'domain_id' => ['description' => 'domain id', 'type' => 'string', 'required' => true, 'example' => 'bj1'],
'domain_name' => ['description' => 'domain 名称', 'type' => 'string', 'required' => false, 'example' => 'Hello Enterprise Drive'],
'description' => ['description' => 'domain 描述', 'type' => 'string', 'required' => false, 'example' => 'Hello enterprise drive debug environment'],
'init_drive_enable' => ['description' => '是否开通默认网盘。为true则所有用户在第一次登录后都默认分配一个网盘。默认false', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'init_drive_size' => ['description' => 'init\\_drive\\_enable 为true时必选。 创建用户时,默认网盘的大小,单位:Bytes。'."\n"
.'默认为 0,此时创建的 drive 大小为0,不可以上传文件,如果需要初始化 drive, 请设置该值。'."\n"
.'-1则表示不限大小。', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1073741824'],
'user_count_quota' => ['description' => 'domain 总用户数限制', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '50'],
'size_quota' => ['description' => '容量配额,表示 domain 下所有 drive 的总quota 大小,0 表示不限制', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1099511627776'],
'published_app_access_strategy' => ['description' => 'App 访问策略', 'required' => false, '$ref' => '#/components/schemas/AppAccessStrategy'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '更新后的 domain 信息', '$ref' => '#/components/schemas/Domain'],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'eventInfo' => [
'enable' => false,
'eventNames' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"parent_domain_id\\": \\"bj1\\",\\n \\"domain_id\\": \\"bj2\\",\\n \\"domain_name\\": \\"pdsdomain\\",\\n \\"description\\": \\"my domain\\",\\n \\"init_drive_enable\\": true,\\n \\"init_drive_size\\": 1073741824,\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"size_quota\\": 1099511627776,\\n \\"size_quota_used\\": 1099511627776,\\n \\"user_count_quota\\": 50,\\n \\"status\\": 1,\\n \\"used_size\\": 1099511627776,\\n \\"published_app_access_strategy\\": {\\n \\"effect\\": \\"deny\\",\\n \\"except_app_id_list\\": [\\n \\"8ovxCTRUDdbpVWBP\\"\\n ]\\n },\\n \\"sharable\\": true,\\n \\"data_hash_name\\": \\"sha1\\",\\n \\"store_redundancy_type\\": \\"LRS\\"\\n}","type":"json"}]',
'title' => '更新Domain',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'UpdateDrive' => [
'summary' => '修改空间信息。',
'path' => '/v2/drive/update',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'drive_name' => ['description' => '空间名称,最长 128 字符', 'type' => 'string', 'required' => false, 'example' => 'My personal space', 'maxLength' => 128],
'description' => ['description' => '描述,最长 1024 字符', 'type' => 'string', 'required' => false, 'example' => 'VIP space', 'maxLength' => 1024],
'status' => [
'description' => '空间状态,可选值如下:'."\n"
."\n"
.'enabled:可用'."\n"
.'disabled:禁用',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['disabled' => '禁止', 'enabled' => '使能'],
'example' => 'enabled',
'enum' => ['enabled', 'disabled'],
],
'total_size' => ['description' => '总大小,单位为字节,不限制大小时填 -1', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '10240'],
'owner' => ['description' => '归属者'."\n"
.'注意,当前只允许通过 ak 来修改个人 drive 的所有者。', 'type' => 'string', 'required' => false, 'example' => 'user1'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => 'Schema of Response', '$ref' => '#/components/schemas/Drive'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"drive_name\\": \\"drv1\\",\\n \\"description\\": \\"vipdrive\\",\\n \\"owner\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"owner_type\\": \\"user\\",\\n \\"drive_type\\": \\"normal\\",\\n \\"status\\": \\"enabled\\",\\n \\"used_size\\": 20480,\\n \\"total_size\\": 204800,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\"\\n}","type":"json"}]',
'title' => '修改空间信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'UpdateFacegroup' => [
'summary' => '更新人脸分组信息。',
'path' => '/v2/image/update_facegroup_info',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间id', 'type' => 'string', 'required' => true, 'example' => '1'],
'group_id' => ['description' => '人脸分组id, 通过列举人脸分组接口返回的结果中获取', 'type' => 'string', 'required' => true, 'example' => 'group-abc'],
'group_name' => ['description' => '人脸分组名称,长度最大128字符', 'type' => 'string', 'required' => false, 'example' => 'Face of John', 'maxLength' => 128, 'minLength' => 1],
'group_cover_face_id' => ['description' => '人脸分组封面人脸ID, 通过文件接口file/get,file/list,file/search的返回结果**ImageMediaMetadata**字段中进行获取'."\n"
."\n", 'type' => 'string', 'required' => false, 'example' => 'face1'],
'remarks' => ['description' => '备注,长度最大128字符', 'type' => 'string', 'required' => false, 'example' => 'John Doe', 'maxLength' => 128, 'minLength' => 1],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'drive_id' => ['title' => 'Id of the request', 'description' => '空间ID', 'type' => 'string', 'example' => '1'],
'group_id' => ['description' => '分组ID', 'type' => 'string', 'example' => 'group-abc'],
],
],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"drive_id\\": \\"1\\",\\n \\"group_id\\": \\"group-abc\\"\\n}","type":"json"}]',
'title' => '更新人脸分组信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'UpdateFile' => [
'summary' => '修改文件信息,非数据。',
'path' => '/v2/file/update',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'name' => ['description' => '文件名称,按照 utf8 编码规则最长 1024 字节', 'type' => 'string', 'required' => false, 'example' => 'a.jpg', 'maxLength' => 102, 'minLength' => 1],
'description' => ['description' => '文件描述信息,最长 1024 字符', 'type' => 'string', 'required' => false, 'example' => 'VIP user', 'maxLength' => 1024],
'labels' => [
'description' => '标签列表,最多 100 个标签',
'type' => 'array',
'items' => ['description' => '标签,最长 128 字符', 'type' => 'string', 'required' => false, 'example' => 'animal'],
'required' => false,
'maxItems' => 100,
],
'check_name_mode' => [
'description' => '同名文件处理模式,可选值如下:'."\n"
."\n"
.'ignore:允许同名文件;'."\n"
."\n"
.'auto_rename:当发现同名文件时,云端自动重命名,默认为追加当前时间点,如 xxx\\_20060102\\_150405;'."\n"
."\n"
.'refuse:当云端存在同名文件时,拒绝创建新文件,返回客户端已存在同名文件的详细信息。'."\n"
."\n"
.'默认为 ignore',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['refuse' => 'refuse', 'auto_rename' => 'auto_rename', 'ignore' => 'ignore'],
'example' => 'ignore',
'enum' => ['ignore', 'auto_rename', 'refuse'],
],
'local_modified_at' => ['description' => '文件本地修改时间,格式为:yyyy-MM-ddTHH:mm:ssZ,采用 UTC +0 时区', 'type' => 'string', 'required' => false, 'example' => '2019-08-20T06:51:27.292Z'],
'hidden' => ['description' => '是否隐藏', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'starred' => ['description' => '是否收藏', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '文件信息', '$ref' => '#/components/schemas/File'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"5d79206586bb5dd69fb34c349282718146c55da7\\",\\n \\"name\\": \\"1.mov\\",\\n \\"type\\": \\"file\\",\\n \\"content_type\\": \\"application/json\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"image file\\",\\n \\"trashed_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"file_extension\\": \\"txt\\",\\n \\"hidden\\": false,\\n \\"size\\": 1024,\\n \\"starred\\": false,\\n \\"status\\": \\"available\\",\\n \\"labels\\": [\\n \\"[\\\\\\"label1:1\\\\\\", \\\\\\"label2:2\\\\\\"]\\"\\n ],\\n \\"upload_id\\": \\"C9DCFE5A82644AC7A02DB74C30C934A6\\",\\n \\"parent_file_id\\": \\"3d5b846942cf94fa72324c8a4bda34e81da635a\\",\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\",\\n \\"category\\": \\"image\\",\\n \\"local_created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"local_modified_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"revision_id\\": \\"5d5b846942cf94fa72324c14a4bda34e81da635d\\",\\n \\"thumbnail_urls\\": {\\n \\"key\\": \\"\\\\\\"128X128\\\\\\": \\\\\\"https://url1\\\\\\", \\\\\\"800X800\\\\\\": \\\\\\"url2\\\\\\"\\"\\n },\\n \\"image_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1024,\\n \\"height\\": 1024,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"image_tags\\": [\\n {\\n \\"confidence\\": 0.98,\\n \\"parent_name\\": \\"sport\\",\\n \\"name\\": \\"basketball\\",\\n \\"tag_level\\": 3,\\n \\"source\\": \\"play basketball\\",\\n \\"centric_score\\": 0.877\\n }\\n ],\\n \\"faces\\": \\"[{\\\\\\"FaceId\\\\\\":\\\\\\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\\\\\",\\\\\\"GroupId\\\\\\":\\\\\\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\\\\\",\\\\\\"FaceConfidence\\\\\\":0.999,\\\\\\"Age\\\\\\":13,\\\\\\"AgeConfidence\\\\\\":4,\\\\\\"Gender\\\\\\":\\\\\\"female\\\\\\",\\\\\\"GenderConfidence\\\\\\":1,\\\\\\"Emotion\\\\\\":\\\\\\"none\\\\\\",\\\\\\"EmotionConfidence\\\\\\":0.672,\\\\\\"FaceAttributes\\\\\\":{\\\\\\"Mask\\\\\\":\\\\\\"none\\\\\\",\\\\\\"MaskConfidence\\\\\\":0.894,\\\\\\"Beard\\\\\\":\\\\\\"none\\\\\\",\\\\\\"BeardConfidence\\\\\\":0.997,\\\\\\"Glasses\\\\\\":\\\\\\"none\\\\\\",\\\\\\"GlassesConfidence\\\\\\":0.999,\\\\\\"Mouth\\\\\\":\\\\\\"close\\\\\\",\\\\\\"MouthConfidence\\\\\\":0.937,\\\\\\"Hat\\\\\\":\\\\\\"none\\\\\\",\\\\\\"HatConfidence\\\\\\":0.998,\\\\\\"HeadPose\\\\\\":{\\\\\\"Pitch\\\\\\":10.684,\\\\\\"Roll\\\\\\":-10.707,\\\\\\"Yaw\\\\\\":-20.094},\\\\\\"FaceBoundary\\\\\\":{\\\\\\"Width\\\\\\":457,\\\\\\"Height\\\\\\":687,\\\\\\"Top\\\\\\":1324,\\\\\\"Left\\\\\\":1356}}}]\\",\\n \\"faces_thumbnail\\": [\\n {\\n \\"face_id\\": \\"a9a66a86-73dd-4c95-8b79-1d8a49db5226\\",\\n \\"face_group_id\\": \\"Cluster-e3b7fb52-22b3-44f2-9746-8c1804bd6af0\\",\\n \\"face_thumbnail\\": \\"https://pds-domain.region.aliyuncs.com/QieGeH98%2F1001%2F63e5e551ee621482ab934a0687c6cda75fc07864%2F642a8a40c00f1ad379df421694713ee65170f09b?security-token=CAIS%2BgF1q6Ft5B2yfSjIr5bjHPCNnrdR8aSaSW7woVlmVd1Bt5HorDz2IHpPfHdoBe0btvU%2BlWxX6fwZlq5rR4QAXlDfNSyFeX20qFHPWZHInuDox55m4cTXNAr%2BIhr%2F29CoEIedZdjBe%2FCrRknZnytou9XTfimjWFrXWv%2Fgy%2BQQDLItUxK%2FcCBNCfpPOwJms7V6D3bKMuu3OROY6Qi5TmgQ41En1DIlt%2FXuk5DCtkqB12eXkLFF%2B97DRbG%2FdNRpMZtFVNO44fd7bKKp0lQLsUMSqv8q0fEcqGaW4o7CWQJLnzyCMvvJ9OVDFyN0aKEnH7J%2Bq%2FzxhTPrMnpkSlacGoABPMvZ8rSESUEP96Vbf%2Bk0JRg9Qb1MnaIJqWAgo8K6K0UP1CtqL2zrUtugpKKDHOYiKbq2O0S5yLUPVX5vBHqEi%2FFc7i6ZnHCMcXLJs4rKDKwRBEhovUXXlklq2q43OSVtLrXkBy9Xs1ers%2FhJhcxpNA0Vl3EWfJxa2BTylEdnLOQ%3D&x-oss-access-key-id=STS.NUVWJ9shpFfqKHAEY3YRmXTCN&x-oss-expires=1686455451&x-oss-process=image%2Fcrop%2Cx_1128%2Cy_1211%2Cw_914%2Ch_914%2Fformat%2Cjpg&x-oss-signature=jmhOz91Tww1ciMEwadDiioU7d93FDiBNr8s8mHyMqW0%3D&x-oss-signature-version=OSS2\\"\\n }\\n ],\\n \\"exif\\": \\"{\\\\\\"Compression\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"6\\\\\\"},\\\\\\"DateTime\\\\\\":{\\\\\\"value\\\\\\":\\\\\\"2020:08:19 17:11:11\\\\\\"}}\\",\\n \\"image_quality\\": {\\n \\"overall_score\\": 0.736\\n }\\n },\\n \\"user_tags\\": {\\n \\"key\\": \\"\\\\\\"k1\\\\\\":\\\\\\"v1\\\\\\", \\\\\\"k2\\\\\\",\\\\\\"v2\\\\\\"\\"\\n },\\n \\"video_media_metadata\\": {\\n \\"time\\": \\"2006-01-02T15:04:05.000Z07:00\\",\\n \\"width\\": 1920,\\n \\"height\\": 1080,\\n \\"location\\": \\"30.185453,120.218522\\",\\n \\"country\\": \\"China\\",\\n \\"province\\": \\"Zhejiang\\",\\n \\"city\\": \\"Hangzhou\\",\\n \\"district\\": \\"Xihu\\",\\n \\"township\\": \\"Xihu\\",\\n \\"address_line\\": \\"Zhejiang hangzhou xihu\\",\\n \\"video_media_video_stream\\": [\\n {\\n \\"duration\\": \\"22.88\\",\\n \\"bitrate\\": \\"108420\\",\\n \\"code_name\\": \\"h264\\",\\n \\"frame_count\\": \\"90\\"\\n }\\n ],\\n \\"video_media_audio_stream\\": [\\n {\\n \\"duration\\": \\"7704.573000\\",\\n \\"bit_rate\\": \\"129280\\",\\n \\"code_name\\": \\"aac\\"\\n }\\n ]\\n },\\n \\"id_path\\": \\"id1/id2\\",\\n \\"name_path\\": \\"root/f1/f2\\",\\n \\"dir_size_info\\": {\\n \\"dir_count\\": 1,\\n \\"file_count\\": 10\\n },\\n \\"action_list\\": [\\n \\"\\"\\n ],\\n \\"auto_delete_left_sec\\": 0\\n}","type":"json"}]',
'title' => '修改文件信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'UpdateGroup' => [
'summary' => '根据群组ID定位到指定的群组,并修改群组信息。',
'path' => '/v2/group/update',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'readAndWrite',
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'group_id' => ['description' => '待修改的群组ID', 'type' => 'string', 'required' => true, 'example' => '2e43ec8427dd45f19431b7504649a1b4'],
'group_name' => ['description' => '修改后的群组名称', 'type' => 'string', 'required' => false, 'example' => 'test group'],
'description' => ['description' => '修改后的描述', 'type' => 'string', 'required' => false, 'example' => 'test group description'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '修改后的群组信息', '$ref' => '#/components/schemas/Group'],
],
],
'title' => '修改群组信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"group_id\\": \\"b45c0c0c373c41ec9ebb5c85a025a08f\\",\\n \\"group_name\\": \\"test group\\",\\n \\"description\\": \\"created by system\\",\\n \\"created_at\\": 1670573504600,\\n \\"updated_at\\": 1670573504600,\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"is_sync\\": true\\n}","type":"json"}]',
],
'UpdateIdentityToBenefitPkgMapping' => [
'summary' => '更新实体和权益包关联,可用于给用户绑定权益包。',
'path' => '/v2/benefit/identity_to_benefit_pkg_mapping/update',
'methods' => ['post'],
'schemes' => ['https', 'http'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => [],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'identity_type' => [
'description' => '实体的类型'."\n"
.'管理用户权益,传user',
'type' => 'string',
'required' => true,
'example' => 'user',
'enum' => ['user'],
],
'identity_id' => ['description' => '实体的唯一标识'."\n"
."\n"
.'管理用户权益时,传user_id', 'type' => 'string', 'required' => true, 'example' => 'user123'],
'benefit_pkg_id' => ['description' => '权益包的唯一标识', 'type' => 'string', 'required' => true, 'example' => '40cb7794c9294'],
'amount' => ['description' => '权益包数量'."\n"
."\n"
.'对资源类权益包生效,非必填参数,默认为1', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
'expire_time' => ['description' => '权益包超期时间的时间戳,格林威治时间1970年01月01日00时00分00秒起至现在的毫秒数'."\n"
."\n"
.'默认永不过期', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1633167071000'],
],
'required' => false,
],
],
],
'responses' => [
200 => [],
],
'title' => '更新实体和权益包关联',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{}","type":"json"}]',
],
'UpdateRevision' => [
'path' => '/v2/file/revision/update',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['title' => 'A short description of struct', 'description' => 'A short description of struct', 'type' => 'string', 'required' => true],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => true, 'example' => '9520943DC264'],
'revision_id' => ['description' => '版本 id', 'type' => 'string', 'required' => true, 'example' => '40CB7794C929'],
'keep_forever' => ['description' => '是否永久保留'."\n"
."\n"
.'默认不传递该参数,表示不修改版本的永久保留属性。', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
'revision_description' => ['description' => '版本描述信息,最长1024字符'."\n"
."\n"
.'默认不传递该参数,表示不修改版本的版本描述信息。', 'type' => 'string', 'required' => false, 'example' => 'aaa'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '版本信息', '$ref' => '#/components/schemas/Revision'],
],
],
'title' => '更新版本信息',
'summary' => '更新版本信息,设置版本为永久保留,或者添加版本描述信息。支持将一个文件的最多50个版本设置为永久保留。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id\\": \\"9520943DC264\\",\\n \\"revision_id\\": \\"40CB7794C929\\",\\n \\"revision_name\\": \\"1.mov\\",\\n \\"revision_version\\": 1,\\n \\"size\\": 1024,\\n \\"file_extension\\": \\"mov\\",\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"keep_forever\\": false,\\n \\"revision_description\\": \\"aaa\\",\\n \\"is_latest_version\\": false,\\n \\"crc64_hash\\": \\"3574582125365864471\\",\\n \\"content_hash\\": \\"EA4942AA8761213890A5C386F88E6464D2C31CA3\\",\\n \\"content_hash_name\\": \\"sha1\\",\\n \\"thumbnail\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"download_url\\": \\"https://data.aliyunpds.com/hz22%2F5d5b986facbec311ef844c25954f96821497b383%2F5d5b986f955410dd991646bb87c6b4e899eff525?Expires=xxx&OSSAccessKeyId=xxx&Signature=xxx\\\\n\\",\\n \\"creator_type\\": \\"\\",\\n \\"creator_id\\": \\"\\",\\n \\"creator_name\\": \\"\\"\\n}","type":"json"}]',
],
'UpdateShareLink' => [
'summary' => '修改分享。',
'path' => '/v2/share_link/update',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'BearerToken' => [],
],
[
'AK' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体。',
'type' => 'object',
'properties' => [
'share_id' => ['description' => '分享id', 'type' => 'string', 'required' => true, 'example' => '7JQX1FswpQ8'],
'share_pwd' => ['description' => '提取码。'."\n"
.'提取码长度范围[0, 64]。'."\n"
.'长度0表示提取码是""'."\n", 'type' => 'string', 'required' => false, 'example' => 'abcF123x'],
'expiration' => ['description' => '失效时间点。'."\n"
.'RFC3339格式,比如:"2020-06-28T11:33:00.000+08:00"。'."\n"
.'""表示永久有效'."\n", 'type' => 'string', 'required' => false, 'example' => '2020-06-28T11:33:00.000+08:00'],
'description' => ['description' => '描述。'."\n"
.'长度范围[0, 1024]'."\n", 'type' => 'string', 'required' => false, 'example' => 'Complete lecture series'],
'share_name' => ['description' => '分享名。'."\n"
.'默认使用第一个文件名。'."\n"
.'长度范围[0, 128]', 'type' => 'string', 'required' => false, 'example' => 'Lecture-1.mp4'],
'status' => [
'description' => '分享状态。'."\n"
.'枚举值如下:'."\n"
.'- disabled(已取消)'."\n"
.'- enabled(有效)',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['disabled' => '已取消', 'enabled' => '有效'],
'example' => 'enabled',
],
'preview_count' => ['description' => '预览次数。'."\n"
.'次数要求>=0', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '3'],
'save_count' => ['description' => '转存次数。'."\n"
.'次数要求>=0'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '5'],
'download_count' => ['description' => '下载次数。'."\n"
.'次数要求>=0'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '30'],
'report_count' => ['description' => '举报次数。'."\n"
.'次数要求>=0'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1'],
'video_preview_count' => ['description' => '视频预览次数。'."\n"
.'次数要求>=0'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
'disable_preview' => ['description' => '禁止预览', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'disable_save' => ['description' => '禁止转存', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'disable_download' => ['description' => '禁止下载', 'type' => 'boolean', 'required' => false, 'example' => 'false'],
'preview_limit' => ['description' => '分享预览次数限制。'."\n"
.'次数要求>=0。'."\n"
.'次数0表示不限制'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
'save_limit' => ['description' => '分享转存次数限制。'."\n"
.'次数要求>=0。'."\n"
.'次数0表示不限制'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
'download_limit' => ['description' => '分享下载次数限制。'."\n"
.'次数要求>=0。'."\n"
.'次数0表示不限制'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '100'],
'office_editable' => ['description' => '允许在线编辑分享的文档', 'type' => 'boolean', 'required' => false, 'example' => 'true'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '返回信息', '$ref' => '#/components/schemas/ShareLink'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"share_id\\": \\"7JQX1FswpQ8\\",\\n \\"share_pwd\\": \\"abcF123x\\",\\n \\"drive_id\\": \\"1\\",\\n \\"file_id_list\\": [\\n \\"[\\\\\\"xx\\\\\\"]\\"\\n ],\\n \\"expiration\\": \\"2020-06-28T11:33:00.000+08:00\\",\\n \\"expired\\": false,\\n \\"created_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"updated_at\\": \\"2019-08-20T06:51:27.292Z\\",\\n \\"description\\": \\"videos\\",\\n \\"share_name\\": \\"video-1.MP4\\",\\n \\"creator\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"status\\": \\"enabled\\",\\n \\"preview_count\\": 10,\\n \\"save_count\\": 2,\\n \\"download_count\\": 5,\\n \\"report_count\\": 0,\\n \\"video_preview_count\\": 1,\\n \\"access_count\\": 4,\\n \\"disable_preview\\": false,\\n \\"disable_save\\": false,\\n \\"disable_download\\": false,\\n \\"preview_limit\\": 100,\\n \\"save_limit\\": 100,\\n \\"download_limit\\": 100,\\n \\"require_login\\": false,\\n \\"share_all_files\\": true,\\n \\"share_msg\\": \\"pwd: 123\\",\\n \\"save_download_limit\\": 100,\\n \\"office_editable\\": true\\n}","type":"json"}]',
'title' => '修改分享',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'UpdateStory' => [
'summary' => '更新指定故事的信息,包含名称、标签、自定义 id、封面等。',
'path' => '/v2/image/update_story',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'operationType' => 'write',
'deprecated' => false,
'systemTags' => ['operationType' => 'update', 'riskType' => 'none', 'chargeType' => 'free'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'required' => true, 'example' => '1'],
'story_id' => ['description' => '故事 id', 'type' => 'string', 'required' => true, 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
'story_name' => ['description' => '故事名称。'."\n"
.'长度不超过 1024 字节。', 'type' => 'string', 'required' => false, 'example' => 'name1'],
'custom_labels' => [
'description' => '自定义标签。'."\n"
.'标签数不超过 20 个。',
'type' => 'object',
'deprecated' => true,
'required' => false,
'additionalProperties' => ['type' => 'string', 'example' => 'label_value', 'description' => '自定义标签'],
],
'cover' => [
'description' => '故事封面',
'type' => 'object',
'properties' => [
'file_id' => ['description' => '文件 id', 'type' => 'string', 'required' => false, 'example' => '63e5e4340f76cb3ead5f40f68163f0f967c1a7bf'],
'revision_id' => ['description' => '版本 id', 'type' => 'string', 'required' => false, 'example' => '642a88dd06e49d9c0a14411ebae606f70edd9a59'],
],
'required' => false,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回参数',
'type' => 'object',
'properties' => [
'drive_id' => ['description' => '空间 id', 'type' => 'string', 'example' => '1'],
'story_id' => ['description' => '故事 id', 'type' => 'string', 'example' => '9132e0d8-fe92-4e56-86c3-f5f112308003'],
],
],
],
],
'staticInfo' => ['returnType' => 'synchronous'],
'title' => '更新故事',
'description' => '**请确保在使用该接口前,已充分了解 PDS 的收费方式和[价格](~~425220~~)**。'."\n"
."\n"
.'使用此功能须开通增值服务图片处理功能。',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"drive_id\\": \\"1\\",\\n \\"story_id\\": \\"9132e0d8-fe92-4e56-86c3-f5f112308003\\"\\n}","type":"json"}]',
],
'UpdateUser' => [
'summary' => '修改用户信息。',
'path' => '/v2/user/update',
'methods' => ['post'],
'schemes' => ['https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'none'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'user_id' => ['description' => '用户id,最长64字符,不能包含字符#', 'type' => 'string', 'required' => true, 'example' => 'c9b7a5aa04d14ae3867fdc886fa01da4', 'maxLength' => 1024, 'minLength' => 1],
'nick_name' => ['description' => '用户昵称,最长128字符', 'type' => 'string', 'required' => false, 'example' => 'pdsuer', 'maxLength' => 128, 'minLength' => 0],
'status' => [
'description' => '用户状态'."\n"
."\n"
.'- disabled(禁止)'."\n"
."\n"
.'- enabled(使能)',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['disabled' => '禁止', 'enabled' => '使能'],
'example' => 'enabled',
'enum' => ['enabled', 'disabled'],
],
'role' => [
'description' => '角色'."\n"
."\n"
.'- superadmin(超级管理员)'."\n"
."\n"
.'- admin(管理员)'."\n"
."\n"
.'- user(普通用户)',
'type' => 'string',
'required' => false,
'enumValueTitles' => ['superadmin' => '超级管理员', 'admin' => '管理员', 'user' => '普通用户'],
'example' => 'user',
'enum' => ['user', 'admin', 'superadmin', 'subdomain_admin', 'subdomain_super_admin'],
],
'avatar' => ['description' => '头像地址'."\n"
."\n"
.'http形式时,以http:// 或https:// 作为前缀,参数长度最长4KB'."\n"
."\n"
.'data形式时,以data://作为前缀,base64编码,参数长度最长300KB', 'type' => 'string', 'required' => false, 'example' => 'http://a.b.c/pds.jpg'],
'description' => ['description' => '描述信息,最长1024字符', 'type' => 'string', 'required' => false, 'example' => 'Vip user', 'maxLength' => 1024, 'minLength' => 0],
'phone' => ['description' => '手机号', 'type' => 'string', 'required' => false, 'example' => '13900001111'],
'email' => ['description' => '邮箱', 'type' => 'string', 'required' => false, 'example' => 'a@aliyunpds.com'],
'user_data' => [
'description' => '用户自定义数据,最长1024字符',
'type' => 'object',
'required' => false,
'additionalProperties' => ['type' => 'string', 'example' => 'test', 'description' => '用户自定义数据'],
],
'group_info_list' => [
'description' => '群组信息列表',
'type' => 'array',
'items' => [
'description' => '群组信息',
'type' => 'object',
'properties' => [
'group_id' => ['description' => '群组id', 'type' => 'string', 'required' => false, 'example' => 'g123'],
],
'required' => false,
],
'required' => false,
],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => ['description' => '用户信息', '$ref' => '#/components/schemas/User'],
],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"domain_id\\": \\"bj1\\",\\n \\"user_id\\": \\"c9b7a5aa04d14ae3867fdc886fa01da4\\",\\n \\"avatar\\": \\"http://aa.com/1.jpg\\",\\n \\"created_at\\": 1639762579768,\\n \\"updated_at\\": 1639762579768,\\n \\"email\\": \\"a@aliyunpds.com\\",\\n \\"nick_name\\": \\"001\\",\\n \\"phone\\": \\"13900001111\\",\\n \\"role\\": \\"user\\",\\n \\"status\\": \\"enabled\\",\\n \\"user_name\\": \\"pds\\",\\n \\"description\\": \\"vipuser\\",\\n \\"default_drive_id\\": \\"1\\",\\n \\"creator\\": \\"user1\\",\\n \\"last_login_time\\": 0,\\n \\"last_refresh_token_time\\": 0,\\n \\"user_data\\": {\\n \\"key\\": \\"\\"\\n }\\n}","type":"json"}]',
'title' => '修改用户信息',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
],
'VideoDRMLicense' => [
'summary' => '获取视频的DRM License。',
'path' => '/v2/file/video_drm_license',
'methods' => ['post'],
'schemes' => ['http', 'https'],
'tags' => ['api'],
'security' => [
[
'AK' => [],
],
[
'BearerToken' => [],
],
],
'consumes' => ['application/json'],
'produces' => ['application/json'],
'deprecated' => false,
'systemTags' => ['operationType' => 'get'],
'parameters' => [
[
'name' => 'domain_id',
'in' => 'host',
'schema' => ['type' => 'string', 'required' => true, 'description' => ''],
],
[
'name' => 'body',
'in' => 'body',
'style' => 'json',
'schema' => [
'description' => '请求体参数。',
'type' => 'object',
'properties' => [
'drmType' => [
'description' => 'DRM 加密类型。',
'type' => 'string',
'required' => true,
'enumValueTitles' => ['fairplay' => 'fairplay', 'widevine' => 'widevine'],
'example' => 'widevine',
],
'licenseRequest' => ['description' => '获取 license 请求体。', 'type' => 'string', 'required' => false, 'example' => 'CAES6B8SQgpACioSENGxDhqCLIVwwCBOyPayyWoSENGxDhqCLIVwwCBOyPayyWpI88aJmwYQARoQdRV32'],
],
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '返回结构体',
'type' => 'object',
'properties' => [
'data' => ['description' => '返回的DRM License。', 'type' => 'string', 'example' => 'cb9swCy8P50H9KePsxET3jZ1tm41bDs9HTsxbWnsjf3bsf6QGdiS4kZPhDaskimbNyAfNjmhQRmWFt3AhwNF3'],
'states' => ['description' => 'DRM Server 返回的请求状态。', 'type' => 'string', 'example' => '0'],
'device_info' => ['description' => '发起 DRM 请求的设备信息。', 'type' => 'string', 'example' => '""'],
],
],
],
],
'title' => '获取视频DRMLicense',
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"data\\": \\"cb9swCy8P50H9KePsxET3jZ1tm41bDs9HTsxbWnsjf3bsf6QGdiS4kZPhDaskimbNyAfNjmhQRmWFt3AhwNF3\\",\\n \\"states\\": \\"0\\",\\n \\"device_info\\": \\"\\\\\\"\\\\\\"\\"\\n}","type":"json"}]',
],
],
'endpoints' => [
['regionId' => 'cn-zhangjiakou', 'regionName' => '华北3(张家口)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'cn-zhangjiakou.admin.aliyunpds.com', 'endpoint' => 'cn-zhangjiakou.admin.aliyunpds.com', 'vpc' => ''],
['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'cn-shenzhen.admin.aliyunpds.com', 'endpoint' => 'cn-shenzhen.admin.aliyunpds.com', 'vpc' => ''],
['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'cn-shanghai.admin.aliyunpds.com', 'endpoint' => 'cn-shanghai.admin.aliyunpds.com', 'vpc' => ''],
['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'cn-hongkong.admin.aliyunpds.com', 'endpoint' => 'cn-hongkong.admin.aliyunpds.com', 'vpc' => ''],
['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'cn-hangzhou.admin.aliyunpds.com', 'endpoint' => 'cn-hangzhou.admin.aliyunpds.com', 'vpc' => ''],
['regionId' => 'cn-guangzhou', 'regionName' => '华南3(广州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'cn-guangzhou.admin.aliyunpds.com', 'endpoint' => 'cn-guangzhou.admin.aliyunpds.com', 'vpc' => ''],
['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'cn-beijing.admin.aliyunpds.com', 'endpoint' => 'cn-beijing.admin.aliyunpds.com', 'vpc' => ''],
['regionId' => 'ap-southeast-5', 'regionName' => '印度尼西亚(雅加达)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ap-southeast-5.admin.aliyunpds.com', 'endpoint' => 'ap-southeast-5.admin.aliyunpds.com', 'vpc' => ''],
['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'ap-southeast-1.admin.aliyunpds.com', 'endpoint' => 'ap-southeast-1.admin.aliyunpds.com', 'vpc' => ''],
['regionId' => 'eu-central-1', 'regionName' => '德国(法兰克福)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'eu-central-1.admin.aliyunpds.com', 'endpoint' => 'eu-central-1.admin.aliyunpds.com', 'vpc' => ''],
['regionId' => 'us-west-1', 'regionName' => '美国(硅谷)', 'areaId' => 'europeAmerica', 'areaName' => '欧洲与美洲', 'public' => 'us-west-1.admin.aliyunpds.com', 'endpoint' => 'us-west-1.admin.aliyunpds.com', 'vpc' => ''],
],
'errorCodes' => [
['code' => 'AccessTokenInvalid', 'message' => 'AccessTokenInvalid', 'http_code' => 401, 'description' => '访问令牌过期'],
['code' => 'AccountInDebt', 'message' => 'AccountInDebt', 'http_code' => 403, 'description' => '租户欠费'],
['code' => 'AccountNotFound', 'message' => 'AccountNotFound', 'http_code' => 403, 'description' => '租户云帐号未找到'],
['code' => 'AKPolicyDenied', 'message' => 'AKPolicyDenied', 'http_code' => 403, 'description' => 'AccessKey Policy 禁止'],
['code' => 'BadArchive', 'message' => 'BadArchive', 'http_code' => 400, 'description' => '压缩文件损坏'],
['code' => 'BenefitNotEnabled', 'message' => 'BenefitNotEnabled', 'http_code' => 400, 'description' => '权益未使能'],
['code' => 'ClearRecycleBinPartialSuccess', 'message' => 'ClearRecycleBinPartialSuccess', 'http_code' => 500, 'description' => '清空回收站部分成功'],
['code' => 'ConcurrencyUpdateConflict', 'message' => 'ConcurrencyUpdateConflict', 'http_code' => 409, 'description' => '并发修改冲突'],
['code' => 'CreateShareForbidden', 'message' => 'CreateShareForbidden', 'http_code' => 403, 'description' => '禁止创建分享'],
['code' => 'CrossAccountAccessForbidden', 'message' => 'CrossAccountAccessForbidden', 'http_code' => 403, 'description' => '禁止跨租户访问'],
['code' => 'CrossSubdomainAccessForbidden', 'message' => 'CrossSubdomainAccessForbidden', 'http_code' => 403, 'description' => '禁止跨子域访问'],
['code' => 'DriveTotalSizeLessThanUsedSize', 'message' => 'DriveTotalSizeLessThanUsedSize', 'http_code' => 400, 'description' => '修改drive的总使用量时,不允许修改为小于已使用量'],
['code' => 'DriveTotalSizeNeed', 'message' => 'DriveTotalSizeNeed', 'http_code' => 400, 'description' => '有quota限制不能创建不限制大小的drive'],
['code' => 'FileNotInRecycleBinCannotBeDelete', 'message' => 'FileNotInRecycleBinCannotBeDelete', 'http_code' => 400, 'description' => '文件在回收站中不允许删除'],
['code' => 'Forbidden', 'message' => 'Forbidden', 'http_code' => 403, 'description' => '禁止'],
['code' => 'ForbiddenDriveLocked', 'message' => 'ForbiddenDriveLocked', 'http_code' => 403, 'description' => '空间已经锁定'],
['code' => 'ForbiddenFileInTheRecycleBin', 'message' => 'ForbiddenFileInTheRecycleBin', 'http_code' => 403, 'description' => '文件在回收站中,禁止操作'],
['code' => 'ForbiddenFileInTrashedFolder', 'message' => 'ForbiddenFileInTrashedFolder', 'http_code' => 403, 'description' => '回收站删除目录下的文件不支持单独恢复'],
['code' => 'ForbiddenFileLocked', 'message' => 'ForbiddenFileLocked', 'http_code' => 403, 'description' => '文件已经锁定'],
['code' => 'ForbiddenUpload', 'message' => 'ForbiddenUpload', 'http_code' => 403, 'description' => '禁止上传'],
['code' => 'InternalError', 'message' => 'InternalError', 'http_code' => 500, 'description' => '内部错误'],
['code' => 'InvalidAccountStatus', 'message' => 'InvalidAccountStatus', 'http_code' => 400, 'description' => '帐号状态非法'],
['code' => 'InvalidFieldMissing', 'message' => 'InvalidFieldMissing', 'http_code' => 400, 'description' => '参数缺省'],
['code' => 'InvalidFieldNotMatch', 'message' => 'InvalidFieldNotMatch', 'http_code' => 400, 'description' => '参数不匹配'],
['code' => 'InvalidFieldNotSupported', 'message' => 'InvalidFieldNotSupported', 'http_code' => 400, 'description' => '请求参数不支持'],
['code' => 'InvalidFieldOutOfRange', 'message' => 'InvalidFieldOutOfRange', 'http_code' => 400, 'description' => '参数超过范围'],
['code' => 'InvalidFieldWrongFormat', 'message' => 'InvalidFieldWrongFormat', 'http_code' => 400, 'description' => '参数格式错误'],
['code' => 'InvalidFileStatus', 'message' => 'InvalidFileStatus', 'http_code' => 400, 'description' => '文件状态非法'],
['code' => 'InvalidHeader', 'message' => 'InvalidHeader', 'http_code' => 400, 'description' => 'http header 非法'],
['code' => 'InvalidJSONFormat', 'message' => 'InvalidJSONFormat', 'http_code' => 400, 'description' => '请求的JSON格式错误'],
['code' => 'InvalidParameter', 'message' => 'InvalidParameter', 'http_code' => 400, 'description' => '参数非法'],
['code' => 'InvalidParameterEmpty', 'message' => 'InvalidParameterEmpty', 'http_code' => 400, 'description' => '参数不能为空'],
['code' => 'InvalidPassword', 'message' => 'InvalidPassword', 'http_code' => 400, 'description' => '密码错误'],
['code' => 'InvalidRapidProof', 'message' => 'InvalidRapidProof', 'http_code' => 400, 'description' => '秒传证明非法'],
['code' => 'InvalidResource', 'message' => 'InvalidResource', 'http_code' => 400, 'description' => '资源无效'],
['code' => 'InvalidResourceAlreadyExist', 'message' => 'InvalidResourceAlreadyExist', 'http_code' => 409, 'description' => '资源已存在'],
['code' => 'InvalidResourceNotEmpty', 'message' => 'InvalidResourceNotEmpty', 'http_code' => 400, 'description' => '资源不为空'],
['code' => 'InvalidResourceNotFound', 'message' => 'InvalidResourceNotFound', 'http_code' => 404, 'description' => '资源未找到'],
['code' => 'InvalidResourceStatus', 'message' => 'InvalidResourceStatus', 'http_code' => 400, 'description' => '资源状态非法'],
['code' => 'InvalidResourceUnsupported', 'message' => 'InvalidResourceUnsupported', 'http_code' => 400, 'description' => '资源不支持'],
['code' => 'InvalidUserStatus', 'message' => 'InvalidUserStatus', 'http_code' => 400, 'description' => '用户状态非法'],
['code' => 'LimitArchive', 'message' => 'LimitArchive', 'http_code' => 400, 'description' => '压缩文件大小超过配额'],
['code' => 'LoginDenied', 'message' => 'LoginDenied', 'http_code' => 403, 'description' => '不允许登陆'],
['code' => 'NeedChangePassword', 'message' => 'NeedChangePassword', 'http_code' => 400, 'description' => '需要修改密码'],
['code' => 'NoPermissionToAccess', 'message' => 'NoPermissionToAccess', 'http_code' => 403, 'description' => '访问无权限'],
['code' => 'NotFound.VideoPreviewInfo', 'message' => 'The resource video_preview_info cannot be found. $detail_info', 'http_code' => 404, 'description' => '转码信息不存在'],
['code' => 'NotSupportedFileType', 'message' => 'NotSupportedFileType', 'http_code' => 400, 'description' => '文件类型不支持'],
['code' => 'OfficeEditNotEnabled', 'message' => 'OfficeEditNotEnabled', 'http_code' => 400, 'description' => '文档编辑开关未打开'],
['code' => 'OfficePreviewNotEnabled', 'message' => 'OfficePreviewNotEnabled', 'http_code' => 400, 'description' => '文档预览开关未打开'],
['code' => 'OperationDenied', 'message' => 'OperationDenied', 'http_code' => 400, 'description' => '禁止操作'],
['code' => 'OperationNotSupport', 'message' => 'OperationNotSupport', 'http_code' => 400, 'description' => '操作不支持'],
['code' => 'ParentPathMappingExist', 'message' => 'ParentPathMappingExist', 'http_code' => 400, 'description' => '父目录已经存在同步映射'],
['code' => 'PasswordTooSimple', 'message' => 'PasswordTooSimple', 'http_code' => 400, 'description' => '密码不符合规则'],
['code' => 'QuotaExceeded', 'message' => 'QuotaExceeded', 'http_code' => 400, 'description' => '超过配额'],
['code' => 'RapidProofNeed', 'message' => 'RapidProofNeed', 'http_code' => 400, 'description' => '需要秒传证明'],
['code' => 'ResourceExpired', 'message' => 'ResourceExpired', 'http_code' => 403, 'description' => '资源已过期'],
['code' => 'ShareLinkCancelled', 'message' => 'ShareLinkCancelled', 'http_code' => 400, 'description' => '共享链接已经取消'],
['code' => 'ShareLinkContentInvalid', 'message' => 'ShareLinkContentInvalid', 'http_code' => 400, 'description' => '共享链接内容非法'],
['code' => 'ShareLinkExpired', 'message' => 'ShareLinkExpired', 'http_code' => 400, 'description' => '共享链接已过期'],
['code' => 'ShareLinkGlobalDisabled', 'message' => 'ShareLinkGlobalDisabled', 'http_code' => 400, 'description' => '共享链接功能全局关闭'],
['code' => 'ShareLinkTokenInvalid', 'message' => 'ShareLinkTokenInvalid', 'http_code' => 401, 'description' => '共享链接令牌非法'],
['code' => 'SignatureDoesNotMatch', 'message' => 'SignatureDoesNotMatch', 'http_code' => 403, 'description' => '签名不匹配'],
['code' => 'StateConflict', 'message' => 'StateConflict', 'http_code' => 409, 'description' => '状态冲突'],
['code' => 'SubdomainNameExists', 'message' => 'SubdomainNameExists', 'http_code' => 400, 'description' => '子域的名称已存在'],
['code' => 'SubPathMappingExist', 'message' => 'SubPathMappingExist', 'http_code' => 400, 'description' => '同步目录映射已存在'],
['code' => 'Timeout', 'message' => 'Timeout', 'http_code' => 408, 'description' => '超时'],
['code' => 'TooManyRequests', 'message' => 'TooManyRequests', 'http_code' => 429, 'description' => '请求超过流控'],
['code' => 'UserForbidShare', 'message' => 'UserForbidShare', 'http_code' => 401, 'description' => '用户禁止分享'],
['code' => 'UserNotVerified', 'message' => 'UserNotVerified', 'http_code' => 401, 'description' => '用户未实名认证'],
['code' => 'UserRightsForbidden', 'message' => 'UserRightsForbidden', 'http_code' => 403, 'description' => '用户权益禁止'],
['code' => 'VideoPreviewWaitAndRetry', 'message' => 'video is transcoding, please wait and retry. $detail_info', 'http_code' => 202, 'description' => '正在转码中,请等待并重试'],
],
'changeSet' => [],
'flowControl' => [
'flowControlList' => [],
],
];
|