@wirecat/yandex-disk-cli 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/LICENSE +204 -0
- package/README.md +243 -2
- package/contracts/wirecat.json +1554 -0
- package/dist/bin/ydisk.d.ts +3 -0
- package/dist/bin/ydisk.d.ts.map +1 -0
- package/dist/bin/ydisk.js +40 -0
- package/dist/bin/ydisk.js.map +1 -0
- package/dist/bundle/all-profiles-4OLZF3RT.js +279 -0
- package/dist/bundle/anthropic-DKB4OJXZ.js +91 -0
- package/dist/bundle/app-server-G4545SSV.js +247 -0
- package/dist/bundle/bun-RXEQKFED.js +169 -0
- package/dist/bundle/bun-sqlite-VHT5LN7U.js +76 -0
- package/dist/bundle/chunk-2BITUXGC.js +12289 -0
- package/dist/bundle/chunk-2CLWDQKA.js +39330 -0
- package/dist/bundle/chunk-2JFDOPKA.js +9575 -0
- package/dist/bundle/chunk-3GVI2MAO.js +106 -0
- package/dist/bundle/chunk-3SZBWBMI.js +131 -0
- package/dist/bundle/chunk-44VSEXW6.js +4054 -0
- package/dist/bundle/chunk-4YPRRQBE.js +95 -0
- package/dist/bundle/chunk-5COYRL5B.js +379 -0
- package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
- package/dist/bundle/chunk-5DM7DIZL.js +1402 -0
- package/dist/bundle/chunk-6R2DVTVZ.js +24 -0
- package/dist/bundle/chunk-762BS35H.js +2787 -0
- package/dist/bundle/chunk-AG64V7AB.js +1233 -0
- package/dist/bundle/chunk-BC5HGIXB.js +334 -0
- package/dist/bundle/chunk-BH7LFEX7.js +36 -0
- package/dist/bundle/chunk-BLNPGY7N.js +53 -0
- package/dist/bundle/chunk-CNIA2LJF.js +372 -0
- package/dist/bundle/chunk-COSXMDC7.js +230 -0
- package/dist/bundle/chunk-D72URWJE.js +532 -0
- package/dist/bundle/chunk-D7FO33KU.js +785 -0
- package/dist/bundle/chunk-DFDN6AUB.js +21 -0
- package/dist/bundle/chunk-DJH26PQ3.js +1396 -0
- package/dist/bundle/chunk-DJPT7IUC.js +64567 -0
- package/dist/bundle/chunk-DTMSCZDW.js +209 -0
- package/dist/bundle/chunk-E6LGZ5LX.js +16 -0
- package/dist/bundle/chunk-E6YRIHS5.js +92 -0
- package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
- package/dist/bundle/chunk-F3DDSZTF.js +78 -0
- package/dist/bundle/chunk-F4WWTQNL.js +188 -0
- package/dist/bundle/chunk-FDDAUASC.js +1028 -0
- package/dist/bundle/chunk-FMNPG6N2.js +170 -0
- package/dist/bundle/chunk-FOKJ4POB.js +274 -0
- package/dist/bundle/chunk-G22C7JG6.js +731 -0
- package/dist/bundle/chunk-GA442SYZ.js +161 -0
- package/dist/bundle/chunk-GEBSW7UK.js +6848 -0
- package/dist/bundle/chunk-GGRKWAOK.js +594 -0
- package/dist/bundle/chunk-HHINRNZA.js +788 -0
- package/dist/bundle/chunk-HUZCL33L.js +128 -0
- package/dist/bundle/chunk-IALSIQVT.js +142 -0
- package/dist/bundle/chunk-IOXR2QBX.js +398 -0
- package/dist/bundle/chunk-J5CXR6VX.js +63 -0
- package/dist/bundle/chunk-J5PWSTOX.js +82 -0
- package/dist/bundle/chunk-J7BVAEHR.js +364 -0
- package/dist/bundle/chunk-JH46HMZW.js +1334 -0
- package/dist/bundle/chunk-JOBO7F6W.js +52 -0
- package/dist/bundle/chunk-JXZ5B3L5.js +2333 -0
- package/dist/bundle/chunk-KBIAMDZN.js +66 -0
- package/dist/bundle/chunk-KFVDL2QS.js +146 -0
- package/dist/bundle/chunk-LNHTLSR5.js +288 -0
- package/dist/bundle/chunk-M24RAKMJ.js +58 -0
- package/dist/bundle/chunk-MDQ57Q3H.js +1197 -0
- package/dist/bundle/chunk-MGUEZYFA.js +5546 -0
- package/dist/bundle/chunk-MLXQ4X5L.js +206 -0
- package/dist/bundle/chunk-NQAKARHE.js +54 -0
- package/dist/bundle/chunk-OF7VVUDQ.js +23 -0
- package/dist/bundle/chunk-OQVPE3XK.js +324 -0
- package/dist/bundle/chunk-OR3QG7UR.js +259 -0
- package/dist/bundle/chunk-OUUYVROP.js +76 -0
- package/dist/bundle/chunk-PQBAM64O.js +168 -0
- package/dist/bundle/chunk-PYVIA7WF.js +88 -0
- package/dist/bundle/chunk-Q6HK3PHE.js +72 -0
- package/dist/bundle/chunk-QB3KECV2.js +218 -0
- package/dist/bundle/chunk-QGWXSFYN.js +73 -0
- package/dist/bundle/chunk-RC5QAAAE.js +29 -0
- package/dist/bundle/chunk-RMJ26HLB.js +18 -0
- package/dist/bundle/chunk-S4UUN6LD.js +1410 -0
- package/dist/bundle/chunk-T7ZUDA4C.js +72 -0
- package/dist/bundle/chunk-TRCSMVV5.js +72 -0
- package/dist/bundle/chunk-UD2BQEKA.js +46 -0
- package/dist/bundle/chunk-V4TL55GS.js +1068 -0
- package/dist/bundle/chunk-VJNWN5VU.js +4072 -0
- package/dist/bundle/chunk-VRRNBLMA.js +1227 -0
- package/dist/bundle/chunk-WUCMMNFJ.js +771 -0
- package/dist/bundle/chunk-XDESE3NY.js +44 -0
- package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
- package/dist/bundle/chunk-XQUUANA2.js +24600 -0
- package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
- package/dist/bundle/chunk-Z2QEON7B.js +2275 -0
- package/dist/bundle/chunk-ZMJ56GME.js +7 -0
- package/dist/bundle/chunk-ZTSB3D7Q.js +100 -0
- package/dist/bundle/chunk-ZVJWD3FK.js +38 -0
- package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
- package/dist/bundle/command-contract-YIOYGPJA.js +40 -0
- package/dist/bundle/command-server-entry-MHBQDXS4.js +169 -0
- package/dist/bundle/decode-NUGJIOUW.js +297 -0
- package/dist/bundle/definitions-AILHKEQT.js +2005 -0
- package/dist/bundle/dispatch-5LC4UEGY.js +411 -0
- package/dist/bundle/dist-4I2W6X2I.js +7577 -0
- package/dist/bundle/echarts-MHSH6PGC.js +42501 -0
- package/dist/bundle/embed-ZDXTHHYS.js +38 -0
- package/dist/bundle/embedder-XFEELFUL.js +111 -0
- package/dist/bundle/failure-5S7VPBYK.js +25 -0
- package/dist/bundle/first-run-JHCHT3RJ.js +29 -0
- package/dist/bundle/first-screen-FHGQ6QRV.js +40 -0
- package/dist/bundle/instructions-WKSMBUFX.js +11 -0
- package/dist/bundle/mcp-HS2ZDUVR.js +167 -0
- package/dist/bundle/mdast-util-from-markdown-R66F4HZA.js +1958 -0
- package/dist/bundle/mdast-util-gfm-LN2ELINH.js +2699 -0
- package/dist/bundle/meeting-combined-K4U4NYRZ.js +25 -0
- package/dist/bundle/meeting-model-KCEG6Y5O.js +26 -0
- package/dist/bundle/meeting-semantic-VYGSV3H6.js +22 -0
- package/dist/bundle/micromark-extension-gfm-5X7YT43T.js +1838 -0
- package/dist/bundle/node-CM6NC6UE.js +176 -0
- package/dist/bundle/node-KM3CUABH.js +2340 -0
- package/dist/bundle/node-TLZSIHIJ.js +21 -0
- package/dist/bundle/node-sqlite-5YDQ3LIJ.js +74 -0
- package/dist/bundle/notes-search-PGO7KM2U.js +62 -0
- package/dist/bundle/oauth-NY4C5UCK.js +20 -0
- package/dist/bundle/open-YNUTA6ZE.js +23 -0
- package/dist/bundle/openai-4CVT5PHH.js +241 -0
- package/dist/bundle/process-2XT3TL27.js +91 -0
- package/dist/bundle/program-FMIVF5T6.js +31904 -0
- package/dist/bundle/prompt-VNWY3H6S.js +17 -0
- package/dist/bundle/recognize-JS4PBPSZ.js +26 -0
- package/dist/bundle/remote-RCLFH4V2.js +32 -0
- package/dist/bundle/rerank-EG6VKYGO.js +52 -0
- package/dist/bundle/schemas-ED2LHKXK.js +645 -0
- package/dist/bundle/serve-AHG25QXB.js +199 -0
- package/dist/bundle/server-5FTB7WM3.js +78 -0
- package/dist/bundle/server-JNZVSAZE.js +209 -0
- package/dist/bundle/sqlite-runtime-XSZOAQPF.js +20 -0
- package/dist/bundle/state-XGVAJFF7.js +36 -0
- package/dist/bundle/store-OHSCWZEV.js +177 -0
- package/dist/bundle/store-PKSPKJXL.js +293 -0
- package/dist/bundle/store-maintenance-command-KAWGBSWK.js +69 -0
- package/dist/bundle/ydisk.js +183 -0
- package/dist/commands/api.d.ts +9 -0
- package/dist/commands/api.d.ts.map +1 -0
- package/dist/commands/api.js +59 -0
- package/dist/commands/api.js.map +1 -0
- package/dist/commands/comments.d.ts +3 -0
- package/dist/commands/comments.d.ts.map +1 -0
- package/dist/commands/comments.js +114 -0
- package/dist/commands/comments.js.map +1 -0
- package/dist/commands/files.d.ts +3 -0
- package/dist/commands/files.d.ts.map +1 -0
- package/dist/commands/files.js +272 -0
- package/dist/commands/files.js.map +1 -0
- package/dist/commands/library.d.ts +13 -0
- package/dist/commands/library.d.ts.map +1 -0
- package/dist/commands/library.js +118 -0
- package/dist/commands/library.js.map +1 -0
- package/dist/commands/session.d.ts +3 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +99 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/config.d.ts +18 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +62 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +80 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +77 -0
- package/dist/context.js.map +1 -0
- package/dist/generated/definitions.d.ts +3 -0
- package/dist/generated/definitions.d.ts.map +1 -0
- package/dist/generated/definitions.js +2001 -0
- package/dist/generated/definitions.js.map +1 -0
- package/dist/generated/manifest.d.ts +6 -0
- package/dist/generated/manifest.d.ts.map +1 -0
- package/dist/generated/manifest.js +1473 -0
- package/dist/generated/manifest.js.map +1 -0
- package/dist/generated/schemas.d.ts +127 -0
- package/dist/generated/schemas.d.ts.map +1 -0
- package/dist/generated/schemas.js +545 -0
- package/dist/generated/schemas.js.map +1 -0
- package/dist/generated/types.d.ts +829 -0
- package/dist/generated/types.d.ts.map +1 -0
- package/dist/generated/types.js +5 -0
- package/dist/generated/types.js.map +1 -0
- package/dist/identity.d.ts +10 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/identity.js +33 -0
- package/dist/identity.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/program.d.ts +6 -0
- package/dist/program.d.ts.map +1 -0
- package/dist/program.js +65 -0
- package/dist/program.js.map +1 -0
- package/dist/sample/comments.d.ts +61 -0
- package/dist/sample/comments.d.ts.map +1 -0
- package/dist/sample/comments.js +39 -0
- package/dist/sample/comments.js.map +1 -0
- package/dist/sample/records.d.ts +16 -0
- package/dist/sample/records.d.ts.map +1 -0
- package/dist/sample/records.js +22 -0
- package/dist/sample/records.js.map +1 -0
- package/dist/sample/transport.d.ts +42 -0
- package/dist/sample/transport.d.ts.map +1 -0
- package/dist/sample/transport.js +153 -0
- package/dist/sample/transport.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/dist/yandex/source.d.ts +39 -0
- package/dist/yandex/source.d.ts.map +1 -0
- package/dist/yandex/source.js +189 -0
- package/dist/yandex/source.js.map +1 -0
- package/dist/yandex/transport.d.ts +41 -0
- package/dist/yandex/transport.d.ts.map +1 -0
- package/dist/yandex/transport.js +152 -0
- package/dist/yandex/transport.js.map +1 -0
- package/dist/yandex/writes.d.ts +27 -0
- package/dist/yandex/writes.d.ts.map +1 -0
- package/dist/yandex/writes.js +61 -0
- package/dist/yandex/writes.js.map +1 -0
- package/package.json +88 -4
- package/skills/yandex-disk-cli/SKILL.md +46 -0
- package/skills/yandex-disk-cli/references/api/api-disk-operations-operation-id.md +13 -0
- package/skills/yandex-disk-cli/references/api/api-disk-public-resources.md +50 -0
- package/skills/yandex-disk-cli/references/api/api-disk-resources.md +171 -0
- package/skills/yandex-disk-cli/references/api/api-disk-trash-resources.md +48 -0
- package/skills/yandex-disk-cli/references/api/api-disk.md +13 -0
- package/skills/yandex-disk-cli/references/api.md +17 -0
|
@@ -0,0 +1,645 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
array,
|
|
5
|
+
boolean,
|
|
6
|
+
check,
|
|
7
|
+
custom,
|
|
8
|
+
lazy,
|
|
9
|
+
looseObject,
|
|
10
|
+
optional,
|
|
11
|
+
picklist,
|
|
12
|
+
pipe,
|
|
13
|
+
string,
|
|
14
|
+
transform,
|
|
15
|
+
unknown
|
|
16
|
+
} from "./chunk-S4UUN6LD.js";
|
|
17
|
+
import {
|
|
18
|
+
__name
|
|
19
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
20
|
+
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.110.0_@scalar+openapi-upgrader@0.4.6_commander@15.0.0_esbuild@0.28._2fe0e09d29eda9827e2087fd1a1cce67/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
22
|
+
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
23
|
+
var INTEGER = /^-?\d+$/;
|
|
24
|
+
var INT64_MIN = -(2n ** 63n);
|
|
25
|
+
var INT64_MAX = 2n ** 63n - 1n;
|
|
26
|
+
var digitsOf = /* @__PURE__ */ __name((input) => {
|
|
27
|
+
if (isLossless(input))
|
|
28
|
+
return INTEGER.test(input.value) ? input.value : void 0;
|
|
29
|
+
if (typeof input === "bigint")
|
|
30
|
+
return input.toString();
|
|
31
|
+
if (typeof input === "number" && Number.isSafeInteger(input))
|
|
32
|
+
return String(input);
|
|
33
|
+
return void 0;
|
|
34
|
+
}, "digitsOf");
|
|
35
|
+
var inRange = /* @__PURE__ */ __name((value, { minimum, maximum }) => (minimum === void 0 || value >= minimum) && (maximum === void 0 || value <= maximum), "inRange");
|
|
36
|
+
var int64 = /* @__PURE__ */ __name((range = {}) => pipe(custom((input) => digitsOf(input) !== void 0, "expected an integer"), transform((input) => digitsOf(input)), check((digits) => {
|
|
37
|
+
const value = BigInt(digits);
|
|
38
|
+
return value >= INT64_MIN && value <= INT64_MAX && inRange(value, range);
|
|
39
|
+
}, "integer out of range")), "int64");
|
|
40
|
+
var number = /* @__PURE__ */ __name((range = {}) => pipe(custom((input) => isLossless(input) ? Number.isFinite(Number(input.value)) : Number.isFinite(input), "expected a number"), transform((input) => isLossless(input) ? Number(input.value) : input), check((value) => inRange(value, range), "number out of range")), "number");
|
|
41
|
+
|
|
42
|
+
// dist/generated/schemas.js
|
|
43
|
+
var AiPhotoEditorCounter = looseObject({
|
|
44
|
+
count: optional(int64()),
|
|
45
|
+
max_count: optional(int64()),
|
|
46
|
+
reset_datetime: optional(int64())
|
|
47
|
+
});
|
|
48
|
+
var CustomRestrictions = looseObject({
|
|
49
|
+
is_filesize_limit_reduced: optional(boolean()),
|
|
50
|
+
monthly_traffic_limit_bytes: optional(int64()),
|
|
51
|
+
photostream_photo_filesize_limit_bytes: optional(int64()),
|
|
52
|
+
photostream_video_filesize_limit_bytes: optional(int64())
|
|
53
|
+
});
|
|
54
|
+
var Disk = looseObject({
|
|
55
|
+
deletion_restriction_days: optional(int64()),
|
|
56
|
+
disk_size: optional(int64()),
|
|
57
|
+
file_size_limit_upgrades: optional(lazy(() => FileSizeLim)),
|
|
58
|
+
free_photounlim_end_date: optional(int64()),
|
|
59
|
+
hide_screenshots_in_photoslice: optional(boolean()),
|
|
60
|
+
is_idm_managed_folder_address_access: optional(boolean()),
|
|
61
|
+
is_idm_managed_public_access: optional(boolean()),
|
|
62
|
+
is_legal_entity: optional(boolean()),
|
|
63
|
+
is_paid: optional(boolean()),
|
|
64
|
+
is_pro: optional(boolean()),
|
|
65
|
+
is_sync_shared_folder_desktop: optional(boolean()),
|
|
66
|
+
is_sync_vd_desktop: optional(boolean()),
|
|
67
|
+
mail_size: optional(int64()),
|
|
68
|
+
max_file_size: optional(int64()),
|
|
69
|
+
monthly_traffic_limit: optional(int64()),
|
|
70
|
+
monthly_traffic_limit_upgrades: optional(lazy(() => UploadTrafficLim)),
|
|
71
|
+
paid_max_file_size: optional(int64()),
|
|
72
|
+
payment_flow: optional(boolean()),
|
|
73
|
+
photounlim_size: optional(int64()),
|
|
74
|
+
reg_time: optional(string()),
|
|
75
|
+
revision: optional(int64()),
|
|
76
|
+
system_folders: optional(lazy(() => SystemFolders)),
|
|
77
|
+
total_space: optional(int64()),
|
|
78
|
+
trash_size: optional(int64()),
|
|
79
|
+
unlimited_autoupload_enabled: optional(boolean()),
|
|
80
|
+
used_space: optional(int64()),
|
|
81
|
+
user: optional(lazy(() => User)),
|
|
82
|
+
will_be_overdrawn: optional(boolean())
|
|
83
|
+
});
|
|
84
|
+
var DiskUserBlocked = looseObject({
|
|
85
|
+
description: string(),
|
|
86
|
+
details: optional(looseObject({})),
|
|
87
|
+
error: string(),
|
|
88
|
+
login: optional(string()),
|
|
89
|
+
message: string(),
|
|
90
|
+
uid: optional(int64())
|
|
91
|
+
});
|
|
92
|
+
var ApiError = looseObject({
|
|
93
|
+
description: string(),
|
|
94
|
+
details: optional(looseObject({})),
|
|
95
|
+
error: string(),
|
|
96
|
+
message: string()
|
|
97
|
+
});
|
|
98
|
+
var FileSizeLim = looseObject({
|
|
99
|
+
paid: optional(int64()),
|
|
100
|
+
pro: optional(int64())
|
|
101
|
+
});
|
|
102
|
+
var SystemFolders = looseObject({
|
|
103
|
+
applications: optional(string()),
|
|
104
|
+
attach: optional(string()),
|
|
105
|
+
calendar: optional(string()),
|
|
106
|
+
downloads: optional(string()),
|
|
107
|
+
facebook: optional(string()),
|
|
108
|
+
google: optional(string()),
|
|
109
|
+
instagram: optional(string()),
|
|
110
|
+
mailru: optional(string()),
|
|
111
|
+
messenger: optional(string()),
|
|
112
|
+
odnoklassniki: optional(string()),
|
|
113
|
+
photostream: optional(string()),
|
|
114
|
+
scans: optional(string()),
|
|
115
|
+
screenshots: optional(string()),
|
|
116
|
+
social: optional(string()),
|
|
117
|
+
vkontakte: optional(string())
|
|
118
|
+
});
|
|
119
|
+
var UploadLimitExceededWithDetails = looseObject({
|
|
120
|
+
description: string(),
|
|
121
|
+
details: optional(looseObject({})),
|
|
122
|
+
error: string(),
|
|
123
|
+
limit: optional(int64()),
|
|
124
|
+
message: string(),
|
|
125
|
+
reason: optional(string())
|
|
126
|
+
});
|
|
127
|
+
var UploadTrafficLim = looseObject({
|
|
128
|
+
pro: optional(int64())
|
|
129
|
+
});
|
|
130
|
+
var User = looseObject({
|
|
131
|
+
country: optional(string()),
|
|
132
|
+
display_name: optional(string()),
|
|
133
|
+
is_child: optional(boolean()),
|
|
134
|
+
login: optional(string()),
|
|
135
|
+
reg_time: optional(string()),
|
|
136
|
+
uid: optional(string())
|
|
137
|
+
});
|
|
138
|
+
var AvailableUntil = looseObject({
|
|
139
|
+
enabled: boolean(),
|
|
140
|
+
value: optional(int64())
|
|
141
|
+
});
|
|
142
|
+
var CommentIds = looseObject({
|
|
143
|
+
private_resource: optional(string()),
|
|
144
|
+
public_resource: optional(string())
|
|
145
|
+
});
|
|
146
|
+
var DeleteResource = looseObject({
|
|
147
|
+
href: optional(string()),
|
|
148
|
+
method: optional(string()),
|
|
149
|
+
templated: optional(boolean())
|
|
150
|
+
});
|
|
151
|
+
var Delta = looseObject({
|
|
152
|
+
change_type: string(),
|
|
153
|
+
context: optional(lazy(() => DeltaContext)),
|
|
154
|
+
discsw_symlink: optional(string()),
|
|
155
|
+
new_path: optional(string()),
|
|
156
|
+
path: string(),
|
|
157
|
+
resource: optional(lazy(() => DeltaResource)),
|
|
158
|
+
resource_id: string(),
|
|
159
|
+
revision: int64(),
|
|
160
|
+
share: optional(lazy(() => RootShareInfo)),
|
|
161
|
+
type: string()
|
|
162
|
+
});
|
|
163
|
+
var DeltaContext = looseObject({
|
|
164
|
+
change_type: string(),
|
|
165
|
+
new_path: string(),
|
|
166
|
+
path: string(),
|
|
167
|
+
req_id: string(),
|
|
168
|
+
resource_id: string(),
|
|
169
|
+
type: string()
|
|
170
|
+
});
|
|
171
|
+
var DeltaResource = looseObject({
|
|
172
|
+
md5: optional(string()),
|
|
173
|
+
modified: string(),
|
|
174
|
+
public_url: optional(string()),
|
|
175
|
+
sha256: optional(string()),
|
|
176
|
+
size: optional(int64())
|
|
177
|
+
});
|
|
178
|
+
var Deltas = looseObject({
|
|
179
|
+
items: array(lazy(() => Delta)),
|
|
180
|
+
iteration_key: string(),
|
|
181
|
+
revision: int64()
|
|
182
|
+
});
|
|
183
|
+
var ErrorWithData = looseObject({
|
|
184
|
+
data: optional(looseObject({})),
|
|
185
|
+
description: string(),
|
|
186
|
+
details: optional(looseObject({})),
|
|
187
|
+
error: string(),
|
|
188
|
+
message: string()
|
|
189
|
+
});
|
|
190
|
+
var ExclusionsFromGeneratedAlbumsItems = looseObject({
|
|
191
|
+
items: optional(array(string()))
|
|
192
|
+
});
|
|
193
|
+
var Exif = looseObject({
|
|
194
|
+
date_time: optional(string()),
|
|
195
|
+
gps_latitude: optional(unknown()),
|
|
196
|
+
gps_longitude: optional(unknown())
|
|
197
|
+
});
|
|
198
|
+
var FilesResourceList = looseObject({
|
|
199
|
+
items: array(lazy(() => Resource)),
|
|
200
|
+
limit: optional(int64()),
|
|
201
|
+
offset: optional(int64())
|
|
202
|
+
});
|
|
203
|
+
var ImageMetadata = looseObject({
|
|
204
|
+
angle: optional(int64()),
|
|
205
|
+
beauty: optional(number()),
|
|
206
|
+
height: optional(int64()),
|
|
207
|
+
width: optional(int64())
|
|
208
|
+
});
|
|
209
|
+
var LastUploadedResourceList = looseObject({
|
|
210
|
+
items: array(lazy(() => Resource)),
|
|
211
|
+
limit: optional(int64())
|
|
212
|
+
});
|
|
213
|
+
var Link = looseObject({
|
|
214
|
+
href: string(),
|
|
215
|
+
method: string(),
|
|
216
|
+
templated: optional(boolean())
|
|
217
|
+
});
|
|
218
|
+
var OfficeOnlineEditorURL = looseObject({
|
|
219
|
+
edit_url: string()
|
|
220
|
+
});
|
|
221
|
+
var OrgId = looseObject({
|
|
222
|
+
enabled: boolean(),
|
|
223
|
+
value: optional(string())
|
|
224
|
+
});
|
|
225
|
+
var Password = looseObject({
|
|
226
|
+
enabled: boolean(),
|
|
227
|
+
value: optional(string())
|
|
228
|
+
});
|
|
229
|
+
var Preview = looseObject({
|
|
230
|
+
name: optional(string()),
|
|
231
|
+
url: optional(string())
|
|
232
|
+
});
|
|
233
|
+
var PublicResourcesList = looseObject({
|
|
234
|
+
items: array(lazy(() => Resource)),
|
|
235
|
+
limit: optional(int64()),
|
|
236
|
+
offset: optional(int64()),
|
|
237
|
+
type: optional(string())
|
|
238
|
+
});
|
|
239
|
+
var PublishResource = looseObject({
|
|
240
|
+
public_settings: optional(lazy(() => SetPublicSettings))
|
|
241
|
+
});
|
|
242
|
+
var Resource = looseObject({
|
|
243
|
+
_embedded: optional(lazy(() => ResourceList)),
|
|
244
|
+
antivirus_status: optional(unknown()),
|
|
245
|
+
comment_ids: optional(lazy(() => CommentIds)),
|
|
246
|
+
created: string(),
|
|
247
|
+
custom_properties: optional(looseObject({})),
|
|
248
|
+
exif: optional(lazy(() => Exif)),
|
|
249
|
+
file: optional(string()),
|
|
250
|
+
md5: optional(string()),
|
|
251
|
+
media_type: optional(string()),
|
|
252
|
+
mime_type: optional(string()),
|
|
253
|
+
modified: string(),
|
|
254
|
+
name: string(),
|
|
255
|
+
path: string(),
|
|
256
|
+
photoslice_time: optional(string()),
|
|
257
|
+
preview: optional(string()),
|
|
258
|
+
public_key: optional(string()),
|
|
259
|
+
public_url: optional(string()),
|
|
260
|
+
resource_id: optional(string()),
|
|
261
|
+
revision: optional(int64()),
|
|
262
|
+
sha256: optional(string()),
|
|
263
|
+
share: optional(lazy(() => ShareInfo)),
|
|
264
|
+
size: optional(int64()),
|
|
265
|
+
sizes: optional(array(lazy(() => Preview))),
|
|
266
|
+
type: string()
|
|
267
|
+
});
|
|
268
|
+
var ResourceDimensions = looseObject({
|
|
269
|
+
height: optional(int64()),
|
|
270
|
+
width: optional(int64())
|
|
271
|
+
});
|
|
272
|
+
var ResourceList = looseObject({
|
|
273
|
+
items: array(lazy(() => Resource)),
|
|
274
|
+
limit: optional(int64()),
|
|
275
|
+
offset: optional(int64()),
|
|
276
|
+
path: string(),
|
|
277
|
+
sort: optional(string()),
|
|
278
|
+
total: optional(int64())
|
|
279
|
+
});
|
|
280
|
+
var ResourcePatch = looseObject({
|
|
281
|
+
custom_properties: optional(looseObject({}))
|
|
282
|
+
});
|
|
283
|
+
var ResourceUploadLink = looseObject({
|
|
284
|
+
href: string(),
|
|
285
|
+
method: string(),
|
|
286
|
+
operation_id: string(),
|
|
287
|
+
templated: optional(boolean())
|
|
288
|
+
});
|
|
289
|
+
var ResourceVersion = looseObject({
|
|
290
|
+
can_be_restored: boolean(),
|
|
291
|
+
created: string(),
|
|
292
|
+
file: optional(string()),
|
|
293
|
+
folded_items_iteration_key: optional(string()),
|
|
294
|
+
id: string(),
|
|
295
|
+
md5: optional(string()),
|
|
296
|
+
platform_created: string(),
|
|
297
|
+
sha256: optional(string()),
|
|
298
|
+
size: optional(int64()),
|
|
299
|
+
type: string(),
|
|
300
|
+
uid_created: string()
|
|
301
|
+
});
|
|
302
|
+
var ResourceVersions = looseObject({
|
|
303
|
+
items: array(lazy(() => ResourceVersion)),
|
|
304
|
+
iteration_key: optional(string())
|
|
305
|
+
});
|
|
306
|
+
var RootShareInfo = looseObject({
|
|
307
|
+
is_owned: optional(boolean()),
|
|
308
|
+
rights: string()
|
|
309
|
+
});
|
|
310
|
+
var SearchResource = looseObject({
|
|
311
|
+
_embedded: optional(lazy(() => SearchResource)),
|
|
312
|
+
antivirus_status: optional(unknown()),
|
|
313
|
+
comment_ids: optional(lazy(() => CommentIds)),
|
|
314
|
+
created: string(),
|
|
315
|
+
custom_properties: optional(looseObject({})),
|
|
316
|
+
exif: optional(lazy(() => Exif)),
|
|
317
|
+
file: optional(string()),
|
|
318
|
+
md5: optional(string()),
|
|
319
|
+
media_type: optional(string()),
|
|
320
|
+
mime_type: optional(string()),
|
|
321
|
+
modified: string(),
|
|
322
|
+
name: string(),
|
|
323
|
+
path: string(),
|
|
324
|
+
photoslice_time: optional(string()),
|
|
325
|
+
preview: optional(string()),
|
|
326
|
+
public_key: optional(string()),
|
|
327
|
+
public_url: optional(string()),
|
|
328
|
+
resource_id: optional(string()),
|
|
329
|
+
revision: optional(int64()),
|
|
330
|
+
search_scope: optional(string()),
|
|
331
|
+
sha256: optional(string()),
|
|
332
|
+
share: optional(lazy(() => ShareInfo)),
|
|
333
|
+
size: optional(int64()),
|
|
334
|
+
sizes: optional(array(lazy(() => Preview))),
|
|
335
|
+
type: string()
|
|
336
|
+
});
|
|
337
|
+
var SearchResourceList = looseObject({
|
|
338
|
+
items: array(lazy(() => SearchResource)),
|
|
339
|
+
iteration_key: optional(string()),
|
|
340
|
+
limit: optional(int64()),
|
|
341
|
+
offset: optional(int64()),
|
|
342
|
+
path: string(),
|
|
343
|
+
sort: optional(string()),
|
|
344
|
+
total: optional(int64())
|
|
345
|
+
});
|
|
346
|
+
var SetPublicSettings = looseObject({
|
|
347
|
+
accesses: optional(array(looseObject({}))),
|
|
348
|
+
available_until: optional(int64()),
|
|
349
|
+
available_until_verbose: optional(lazy(() => AvailableUntil)),
|
|
350
|
+
external_organization_id: optional(string()),
|
|
351
|
+
external_organization_id_verbose: optional(lazy(() => OrgId)),
|
|
352
|
+
password: optional(string()),
|
|
353
|
+
password_verbose: optional(lazy(() => Password)),
|
|
354
|
+
read_only: optional(boolean())
|
|
355
|
+
});
|
|
356
|
+
var ShareInfo = looseObject({
|
|
357
|
+
is_owned: optional(boolean()),
|
|
358
|
+
is_root: optional(boolean()),
|
|
359
|
+
rights: string()
|
|
360
|
+
});
|
|
361
|
+
var ShortInfoResource = looseObject({
|
|
362
|
+
hid: optional(string()),
|
|
363
|
+
md5: optional(string()),
|
|
364
|
+
mime_type: optional(string()),
|
|
365
|
+
name: string(),
|
|
366
|
+
path: string(),
|
|
367
|
+
sha256: optional(string()),
|
|
368
|
+
size: optional(int64()),
|
|
369
|
+
type: string()
|
|
370
|
+
});
|
|
371
|
+
var Snapshot = looseObject({
|
|
372
|
+
items: optional(array(lazy(() => SnapshotResource))),
|
|
373
|
+
iteration_key: string(),
|
|
374
|
+
revision: int64()
|
|
375
|
+
});
|
|
376
|
+
var SnapshotIterationKey = looseObject({
|
|
377
|
+
iteration_key: optional(string())
|
|
378
|
+
});
|
|
379
|
+
var SnapshotResource = looseObject({
|
|
380
|
+
md5: optional(string()),
|
|
381
|
+
modified: string(),
|
|
382
|
+
path: string(),
|
|
383
|
+
public_url: optional(string()),
|
|
384
|
+
resource_id: optional(string()),
|
|
385
|
+
revision: optional(int64()),
|
|
386
|
+
sha256: optional(string()),
|
|
387
|
+
share: optional(lazy(() => RootShareInfo)),
|
|
388
|
+
size: optional(int64()),
|
|
389
|
+
type: string()
|
|
390
|
+
});
|
|
391
|
+
var UploadResource = looseObject({
|
|
392
|
+
operation_link: lazy(() => Link),
|
|
393
|
+
upload_link: lazy(() => Link)
|
|
394
|
+
});
|
|
395
|
+
var VideoMetadata = looseObject({
|
|
396
|
+
duration: optional(int64())
|
|
397
|
+
});
|
|
398
|
+
var AddressAccess = looseObject({
|
|
399
|
+
id: optional(int64()),
|
|
400
|
+
macros: optional(array(string())),
|
|
401
|
+
org_id: optional(int64()),
|
|
402
|
+
rights: array(string()),
|
|
403
|
+
type: picklist(["macro", "department", "group", "user", "outer_user"])
|
|
404
|
+
});
|
|
405
|
+
var GetAvailableSettings = looseObject({
|
|
406
|
+
address_access_sharing: optional(string()),
|
|
407
|
+
default: array(string()),
|
|
408
|
+
macro_sharing: optional(string()),
|
|
409
|
+
permissions: array(string()),
|
|
410
|
+
sharing_restriction: optional(lazy(() => SharingRestriction)),
|
|
411
|
+
use_sharing: optional(boolean())
|
|
412
|
+
});
|
|
413
|
+
var GetPublicSettings = looseObject({
|
|
414
|
+
accesses: optional(array(lazy(() => PublicSettingsAccesses))),
|
|
415
|
+
available_until: optional(int64())
|
|
416
|
+
});
|
|
417
|
+
var Name = looseObject({
|
|
418
|
+
first: optional(string()),
|
|
419
|
+
last: optional(string()),
|
|
420
|
+
middle: optional(string())
|
|
421
|
+
});
|
|
422
|
+
var PublicResource = looseObject({
|
|
423
|
+
_embedded: optional(lazy(() => PublicResourceList)),
|
|
424
|
+
antivirus_status: optional(unknown()),
|
|
425
|
+
comment_ids: optional(lazy(() => CommentIds)),
|
|
426
|
+
created: string(),
|
|
427
|
+
exif: optional(lazy(() => Exif)),
|
|
428
|
+
file: optional(string()),
|
|
429
|
+
md5: optional(string()),
|
|
430
|
+
media_type: optional(string()),
|
|
431
|
+
mime_type: optional(string()),
|
|
432
|
+
modified: string(),
|
|
433
|
+
name: string(),
|
|
434
|
+
path: string(),
|
|
435
|
+
photoslice_time: optional(string()),
|
|
436
|
+
preview: optional(string()),
|
|
437
|
+
public_key: string(),
|
|
438
|
+
public_url: optional(string()),
|
|
439
|
+
resource_id: optional(string()),
|
|
440
|
+
revision: optional(int64()),
|
|
441
|
+
sha256: optional(string()),
|
|
442
|
+
share: optional(lazy(() => ShareInfo)),
|
|
443
|
+
size: optional(int64()),
|
|
444
|
+
sizes: optional(array(lazy(() => Preview))),
|
|
445
|
+
type: string(),
|
|
446
|
+
views_count: optional(int64())
|
|
447
|
+
});
|
|
448
|
+
var PublicResourceList = looseObject({
|
|
449
|
+
items: array(lazy(() => PublicResource)),
|
|
450
|
+
limit: optional(int64()),
|
|
451
|
+
offset: optional(int64()),
|
|
452
|
+
path: string(),
|
|
453
|
+
public_key: string(),
|
|
454
|
+
sort: optional(string()),
|
|
455
|
+
total: optional(int64())
|
|
456
|
+
});
|
|
457
|
+
var PublicSettingsAccesses = looseObject({
|
|
458
|
+
id: optional(int64()),
|
|
459
|
+
macros: array(string()),
|
|
460
|
+
org_id: optional(int64()),
|
|
461
|
+
rights: array(string()),
|
|
462
|
+
type: optional(string())
|
|
463
|
+
});
|
|
464
|
+
var SharingRestriction = looseObject({
|
|
465
|
+
address_access_sharing: picklist(["all", "deny"]),
|
|
466
|
+
address_access_sharing_outer: picklist(["all", "employees"]),
|
|
467
|
+
public_sharing: picklist(["all", "deny"]),
|
|
468
|
+
public_sharing_outer: picklist(["all", "employees"])
|
|
469
|
+
});
|
|
470
|
+
var UpdatePublicSettings = looseObject({
|
|
471
|
+
accesses: optional(array(lazy(() => AddressAccess))),
|
|
472
|
+
available_until: optional(int64()),
|
|
473
|
+
password: optional(string())
|
|
474
|
+
});
|
|
475
|
+
var UserPublicInformation = looseObject({
|
|
476
|
+
display_name: optional(string()),
|
|
477
|
+
login: optional(string()),
|
|
478
|
+
uid: optional(string())
|
|
479
|
+
});
|
|
480
|
+
var TrashResource = looseObject({
|
|
481
|
+
_embedded: optional(lazy(() => TrashResourceList)),
|
|
482
|
+
antivirus_status: optional(unknown()),
|
|
483
|
+
comment_ids: optional(lazy(() => CommentIds)),
|
|
484
|
+
created: string(),
|
|
485
|
+
custom_properties: optional(looseObject({})),
|
|
486
|
+
deleted: optional(string()),
|
|
487
|
+
exif: optional(lazy(() => Exif)),
|
|
488
|
+
file: optional(string()),
|
|
489
|
+
md5: optional(string()),
|
|
490
|
+
media_type: optional(string()),
|
|
491
|
+
mime_type: optional(string()),
|
|
492
|
+
modified: string(),
|
|
493
|
+
name: string(),
|
|
494
|
+
origin_path: optional(string()),
|
|
495
|
+
path: string(),
|
|
496
|
+
photoslice_time: optional(string()),
|
|
497
|
+
preview: optional(string()),
|
|
498
|
+
public_key: optional(string()),
|
|
499
|
+
public_url: optional(string()),
|
|
500
|
+
resource_id: optional(string()),
|
|
501
|
+
revision: optional(int64()),
|
|
502
|
+
sha256: optional(string()),
|
|
503
|
+
share: optional(lazy(() => ShareInfo)),
|
|
504
|
+
size: optional(int64()),
|
|
505
|
+
sizes: optional(array(lazy(() => Preview))),
|
|
506
|
+
type: string()
|
|
507
|
+
});
|
|
508
|
+
var TrashResourceList = looseObject({
|
|
509
|
+
items: array(lazy(() => TrashResource)),
|
|
510
|
+
limit: optional(int64()),
|
|
511
|
+
offset: optional(int64()),
|
|
512
|
+
path: string(),
|
|
513
|
+
sort: optional(string()),
|
|
514
|
+
total: optional(int64())
|
|
515
|
+
});
|
|
516
|
+
var OperationStatus = looseObject({
|
|
517
|
+
status: string()
|
|
518
|
+
});
|
|
519
|
+
var schemas = {
|
|
520
|
+
AiPhotoEditorCounter,
|
|
521
|
+
CustomRestrictions,
|
|
522
|
+
Disk,
|
|
523
|
+
DiskUserBlocked,
|
|
524
|
+
ApiError,
|
|
525
|
+
FileSizeLim,
|
|
526
|
+
SystemFolders,
|
|
527
|
+
UploadLimitExceededWithDetails,
|
|
528
|
+
UploadTrafficLim,
|
|
529
|
+
User,
|
|
530
|
+
AvailableUntil,
|
|
531
|
+
CommentIds,
|
|
532
|
+
DeleteResource,
|
|
533
|
+
Delta,
|
|
534
|
+
DeltaContext,
|
|
535
|
+
DeltaResource,
|
|
536
|
+
Deltas,
|
|
537
|
+
ErrorWithData,
|
|
538
|
+
ExclusionsFromGeneratedAlbumsItems,
|
|
539
|
+
Exif,
|
|
540
|
+
FilesResourceList,
|
|
541
|
+
ImageMetadata,
|
|
542
|
+
LastUploadedResourceList,
|
|
543
|
+
Link,
|
|
544
|
+
OfficeOnlineEditorURL,
|
|
545
|
+
OrgId,
|
|
546
|
+
Password,
|
|
547
|
+
Preview,
|
|
548
|
+
PublicResourcesList,
|
|
549
|
+
PublishResource,
|
|
550
|
+
Resource,
|
|
551
|
+
ResourceDimensions,
|
|
552
|
+
ResourceList,
|
|
553
|
+
ResourcePatch,
|
|
554
|
+
ResourceUploadLink,
|
|
555
|
+
ResourceVersion,
|
|
556
|
+
ResourceVersions,
|
|
557
|
+
RootShareInfo,
|
|
558
|
+
SearchResource,
|
|
559
|
+
SearchResourceList,
|
|
560
|
+
SetPublicSettings,
|
|
561
|
+
ShareInfo,
|
|
562
|
+
ShortInfoResource,
|
|
563
|
+
Snapshot,
|
|
564
|
+
SnapshotIterationKey,
|
|
565
|
+
SnapshotResource,
|
|
566
|
+
UploadResource,
|
|
567
|
+
VideoMetadata,
|
|
568
|
+
AddressAccess,
|
|
569
|
+
GetAvailableSettings,
|
|
570
|
+
GetPublicSettings,
|
|
571
|
+
Name,
|
|
572
|
+
PublicResource,
|
|
573
|
+
PublicResourceList,
|
|
574
|
+
PublicSettingsAccesses,
|
|
575
|
+
SharingRestriction,
|
|
576
|
+
UpdatePublicSettings,
|
|
577
|
+
UserPublicInformation,
|
|
578
|
+
TrashResource,
|
|
579
|
+
TrashResourceList,
|
|
580
|
+
OperationStatus
|
|
581
|
+
};
|
|
582
|
+
export {
|
|
583
|
+
AddressAccess,
|
|
584
|
+
AiPhotoEditorCounter,
|
|
585
|
+
ApiError,
|
|
586
|
+
AvailableUntil,
|
|
587
|
+
CommentIds,
|
|
588
|
+
CustomRestrictions,
|
|
589
|
+
DeleteResource,
|
|
590
|
+
Delta,
|
|
591
|
+
DeltaContext,
|
|
592
|
+
DeltaResource,
|
|
593
|
+
Deltas,
|
|
594
|
+
Disk,
|
|
595
|
+
DiskUserBlocked,
|
|
596
|
+
ErrorWithData,
|
|
597
|
+
ExclusionsFromGeneratedAlbumsItems,
|
|
598
|
+
Exif,
|
|
599
|
+
FileSizeLim,
|
|
600
|
+
FilesResourceList,
|
|
601
|
+
GetAvailableSettings,
|
|
602
|
+
GetPublicSettings,
|
|
603
|
+
ImageMetadata,
|
|
604
|
+
LastUploadedResourceList,
|
|
605
|
+
Link,
|
|
606
|
+
Name,
|
|
607
|
+
OfficeOnlineEditorURL,
|
|
608
|
+
OperationStatus,
|
|
609
|
+
OrgId,
|
|
610
|
+
Password,
|
|
611
|
+
Preview,
|
|
612
|
+
PublicResource,
|
|
613
|
+
PublicResourceList,
|
|
614
|
+
PublicResourcesList,
|
|
615
|
+
PublicSettingsAccesses,
|
|
616
|
+
PublishResource,
|
|
617
|
+
Resource,
|
|
618
|
+
ResourceDimensions,
|
|
619
|
+
ResourceList,
|
|
620
|
+
ResourcePatch,
|
|
621
|
+
ResourceUploadLink,
|
|
622
|
+
ResourceVersion,
|
|
623
|
+
ResourceVersions,
|
|
624
|
+
RootShareInfo,
|
|
625
|
+
SearchResource,
|
|
626
|
+
SearchResourceList,
|
|
627
|
+
SetPublicSettings,
|
|
628
|
+
ShareInfo,
|
|
629
|
+
SharingRestriction,
|
|
630
|
+
ShortInfoResource,
|
|
631
|
+
Snapshot,
|
|
632
|
+
SnapshotIterationKey,
|
|
633
|
+
SnapshotResource,
|
|
634
|
+
SystemFolders,
|
|
635
|
+
TrashResource,
|
|
636
|
+
TrashResourceList,
|
|
637
|
+
UpdatePublicSettings,
|
|
638
|
+
UploadLimitExceededWithDetails,
|
|
639
|
+
UploadResource,
|
|
640
|
+
UploadTrafficLim,
|
|
641
|
+
User,
|
|
642
|
+
UserPublicInformation,
|
|
643
|
+
VideoMetadata,
|
|
644
|
+
schemas
|
|
645
|
+
};
|