@corsair-dev/onedrive 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.
Files changed (41) hide show
  1. package/LICENSE +191 -0
  2. package/dist/api.test.d.ts +2 -0
  3. package/dist/api.test.d.ts.map +1 -0
  4. package/dist/client.d.ts +21 -0
  5. package/dist/client.d.ts.map +1 -0
  6. package/dist/endpoints/drive.d.ts +13 -0
  7. package/dist/endpoints/drive.d.ts.map +1 -0
  8. package/dist/endpoints/files.d.ts +8 -0
  9. package/dist/endpoints/files.d.ts.map +1 -0
  10. package/dist/endpoints/index.d.ts +903 -0
  11. package/dist/endpoints/index.d.ts.map +1 -0
  12. package/dist/endpoints/items.d.ts +27 -0
  13. package/dist/endpoints/items.d.ts.map +1 -0
  14. package/dist/endpoints/permissions.d.ts +12 -0
  15. package/dist/endpoints/permissions.d.ts.map +1 -0
  16. package/dist/endpoints/sharepoint.d.ts +10 -0
  17. package/dist/endpoints/sharepoint.d.ts.map +1 -0
  18. package/dist/endpoints/subscriptions.d.ts +3 -0
  19. package/dist/endpoints/subscriptions.d.ts.map +1 -0
  20. package/dist/endpoints/types.d.ts +5779 -0
  21. package/dist/endpoints/types.d.ts.map +1 -0
  22. package/dist/error-handlers.d.ts +40 -0
  23. package/dist/error-handlers.d.ts.map +1 -0
  24. package/dist/index.d.ts +3079 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/schema/database.d.ts +217 -0
  28. package/dist/schema/database.d.ts.map +1 -0
  29. package/dist/schema/index.d.ts +219 -0
  30. package/dist/schema/index.d.ts.map +1 -0
  31. package/dist/tsup.config.d.ts +3 -0
  32. package/dist/tsup.config.d.ts.map +1 -0
  33. package/dist/webhooks/drive.d.ts +3 -0
  34. package/dist/webhooks/drive.d.ts.map +1 -0
  35. package/dist/webhooks/index.d.ts +36 -0
  36. package/dist/webhooks/index.d.ts.map +1 -0
  37. package/dist/webhooks/types.d.ts +101 -0
  38. package/dist/webhooks/types.d.ts.map +1 -0
  39. package/dist/webhooks/validation.d.ts +3 -0
  40. package/dist/webhooks/validation.d.ts.map +1 -0
  41. package/package.json +46 -0
@@ -0,0 +1,903 @@
1
+ export declare const Items: {
2
+ get: (ctx: import("..").OnedriveContext, args: {
3
+ item_id: string;
4
+ drive_id?: string | undefined;
5
+ select_fields?: string[] | undefined;
6
+ expand_relations?: string[] | undefined;
7
+ }) => Promise<import("zod").objectOutputType<{
8
+ id: import("zod").ZodString;
9
+ name: import("zod").ZodOptional<import("zod").ZodString>;
10
+ size: import("zod").ZodOptional<import("zod").ZodNumber>;
11
+ webUrl: import("zod").ZodOptional<import("zod").ZodString>;
12
+ eTag: import("zod").ZodOptional<import("zod").ZodString>;
13
+ cTag: import("zod").ZodOptional<import("zod").ZodString>;
14
+ createdDateTime: import("zod").ZodOptional<import("zod").ZodString>;
15
+ lastModifiedDateTime: import("zod").ZodOptional<import("zod").ZodString>;
16
+ createdBy: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
17
+ lastModifiedBy: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
18
+ parentReference: import("zod").ZodOptional<import("zod").ZodObject<{
19
+ driveId: import("zod").ZodOptional<import("zod").ZodString>;
20
+ id: import("zod").ZodOptional<import("zod").ZodString>;
21
+ path: import("zod").ZodOptional<import("zod").ZodString>;
22
+ name: import("zod").ZodOptional<import("zod").ZodString>;
23
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
24
+ driveId: import("zod").ZodOptional<import("zod").ZodString>;
25
+ id: import("zod").ZodOptional<import("zod").ZodString>;
26
+ path: import("zod").ZodOptional<import("zod").ZodString>;
27
+ name: import("zod").ZodOptional<import("zod").ZodString>;
28
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
29
+ driveId: import("zod").ZodOptional<import("zod").ZodString>;
30
+ id: import("zod").ZodOptional<import("zod").ZodString>;
31
+ path: import("zod").ZodOptional<import("zod").ZodString>;
32
+ name: import("zod").ZodOptional<import("zod").ZodString>;
33
+ }, import("zod").ZodTypeAny, "passthrough">>>;
34
+ file: import("zod").ZodOptional<import("zod").ZodObject<{
35
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
36
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
37
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
38
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
39
+ mimeType: import("zod").ZodOptional<import("zod").ZodString>;
40
+ }, import("zod").ZodTypeAny, "passthrough">>>;
41
+ folder: import("zod").ZodOptional<import("zod").ZodObject<{
42
+ childCount: import("zod").ZodOptional<import("zod").ZodNumber>;
43
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
44
+ childCount: import("zod").ZodOptional<import("zod").ZodNumber>;
45
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
46
+ childCount: import("zod").ZodOptional<import("zod").ZodNumber>;
47
+ }, import("zod").ZodTypeAny, "passthrough">>>;
48
+ deleted: import("zod").ZodOptional<import("zod").ZodObject<{
49
+ state: import("zod").ZodOptional<import("zod").ZodString>;
50
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
51
+ state: import("zod").ZodOptional<import("zod").ZodString>;
52
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
53
+ state: import("zod").ZodOptional<import("zod").ZodString>;
54
+ }, import("zod").ZodTypeAny, "passthrough">>>;
55
+ children: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>, "many">>;
56
+ }, import("zod").ZodTypeAny, "passthrough">>;
57
+ updateMetadata: (ctx: import("..").OnedriveContext, args: {
58
+ item_id: string;
59
+ name?: string | undefined;
60
+ description?: string | undefined;
61
+ drive_id?: string | undefined;
62
+ site_id?: string | undefined;
63
+ user_id?: string | undefined;
64
+ group_id?: string | undefined;
65
+ ifMatch?: string | undefined;
66
+ fileSystemInfo?: {
67
+ createdDateTime?: string | undefined;
68
+ lastModifiedDateTime?: string | undefined;
69
+ lastAccessedDateTime?: string | undefined;
70
+ } | undefined;
71
+ parent_reference_id?: string | undefined;
72
+ parent_reference_drive_id?: string | undefined;
73
+ additional_properties?: Record<string, unknown> | undefined;
74
+ }) => Promise<{
75
+ id: string;
76
+ name: string;
77
+ size?: number | undefined;
78
+ webUrl?: string | undefined;
79
+ eTag?: string | undefined;
80
+ cTag?: string | undefined;
81
+ createdDateTime?: string | undefined;
82
+ lastModifiedDateTime?: string | undefined;
83
+ file?: {
84
+ mimeType?: string | undefined;
85
+ } | undefined;
86
+ folder?: {
87
+ childCount?: number | undefined;
88
+ } | undefined;
89
+ }>;
90
+ delete: (ctx: import("..").OnedriveContext, args: {
91
+ item_id: string;
92
+ if_match?: string | undefined;
93
+ }) => Promise<{
94
+ message: string;
95
+ }>;
96
+ deletePermanently: (ctx: import("..").OnedriveContext, args: {
97
+ item_id: string;
98
+ drive_id: string;
99
+ }) => Promise<{
100
+ message: string;
101
+ }>;
102
+ copy: (ctx: import("..").OnedriveContext, args: {
103
+ item_id: string;
104
+ name?: string | undefined;
105
+ drive_id?: string | undefined;
106
+ site_id?: string | undefined;
107
+ user_id?: string | undefined;
108
+ group_id?: string | undefined;
109
+ children_only?: boolean | undefined;
110
+ parent_reference?: {
111
+ id?: string | undefined;
112
+ driveId?: string | undefined;
113
+ } | undefined;
114
+ conflict_behavior?: "fail" | "replace" | "rename" | undefined;
115
+ include_all_version_history?: boolean | undefined;
116
+ }) => Promise<{
117
+ message: string;
118
+ status_code: number;
119
+ name?: string | undefined;
120
+ item_id?: string | undefined;
121
+ web_url?: string | undefined;
122
+ monitor_url?: string | undefined;
123
+ }>;
124
+ move: (ctx: import("..").OnedriveContext, args: {
125
+ parentReference: {
126
+ id: string;
127
+ driveId: string;
128
+ };
129
+ itemId: string;
130
+ name?: string | undefined;
131
+ driveId?: string | undefined;
132
+ description?: string | undefined;
133
+ siteId?: string | undefined;
134
+ userId?: string | undefined;
135
+ groupId?: string | undefined;
136
+ }) => Promise<{
137
+ id: string;
138
+ name?: string | undefined;
139
+ size?: number | undefined;
140
+ webUrl?: string | undefined;
141
+ parentReference?: {
142
+ id?: string | undefined;
143
+ path?: string | undefined;
144
+ driveId?: string | undefined;
145
+ } | undefined;
146
+ }>;
147
+ restore: (ctx: import("..").OnedriveContext, args: {
148
+ item_id: string;
149
+ name?: string | undefined;
150
+ parent_reference_id?: string | undefined;
151
+ }) => Promise<{
152
+ id: string;
153
+ name: string;
154
+ size?: number | undefined;
155
+ webUrl?: string | undefined;
156
+ createdDateTime?: string | undefined;
157
+ lastModifiedDateTime?: string | undefined;
158
+ parentReference?: {
159
+ id?: string | undefined;
160
+ path?: string | undefined;
161
+ driveId?: string | undefined;
162
+ } | undefined;
163
+ file?: {
164
+ mimeType?: string | undefined;
165
+ } | undefined;
166
+ folder?: {
167
+ childCount?: number | undefined;
168
+ } | undefined;
169
+ deleted?: {
170
+ state?: string | undefined;
171
+ } | undefined;
172
+ }>;
173
+ search: (ctx: import("..").OnedriveContext, args: {
174
+ q: string;
175
+ drive_id?: string | undefined;
176
+ top?: number | undefined;
177
+ expand?: string | undefined;
178
+ select?: string | undefined;
179
+ orderby?: string | undefined;
180
+ skip_token?: string | undefined;
181
+ search_scope?: "drive" | "root" | undefined;
182
+ stripped_annotations?: string[] | undefined;
183
+ transformed_path_query?: string | undefined;
184
+ transformed_kql_operator?: string | undefined;
185
+ transformed_parent_query?: string | undefined;
186
+ transformed_wildcard_query?: string | undefined;
187
+ }) => Promise<{
188
+ value: Record<string, unknown>[];
189
+ '@odata.nextLink'?: string | undefined;
190
+ }>;
191
+ checkin: (ctx: import("..").OnedriveContext, args: {
192
+ drive_id: string;
193
+ driveItem_id: string;
194
+ comment?: string | undefined;
195
+ checkInAs?: string | undefined;
196
+ }) => Promise<{
197
+ message: string;
198
+ }>;
199
+ checkout: (ctx: import("..").OnedriveContext, args: {
200
+ drive_id: string;
201
+ driveItem_id: string;
202
+ }) => Promise<{
203
+ message: string;
204
+ }>;
205
+ discardCheckout: (ctx: import("..").OnedriveContext, args: {
206
+ drive_id: string;
207
+ driveItem_id: string;
208
+ }) => Promise<{
209
+ message: string;
210
+ }>;
211
+ follow: (ctx: import("..").OnedriveContext, args: {
212
+ drive_id: string;
213
+ driveItem_id: string;
214
+ }) => Promise<{
215
+ id: string;
216
+ name?: string | undefined;
217
+ size?: number | undefined;
218
+ webUrl?: string | undefined;
219
+ createdDateTime?: string | undefined;
220
+ lastModifiedDateTime?: string | undefined;
221
+ }>;
222
+ unfollow: (ctx: import("..").OnedriveContext, args: {
223
+ id: string;
224
+ }) => Promise<{
225
+ message: string;
226
+ }>;
227
+ getFollowed: (ctx: import("..").OnedriveContext, args: {
228
+ drive_id: string;
229
+ driveItem_id: string;
230
+ }) => Promise<{
231
+ id: string;
232
+ name: string;
233
+ size?: number | undefined;
234
+ webUrl?: string | undefined;
235
+ file?: {
236
+ mimeType?: string | undefined;
237
+ } | undefined;
238
+ folder?: {
239
+ childCount?: number | undefined;
240
+ } | undefined;
241
+ followed?: boolean | undefined;
242
+ }>;
243
+ getVersions: (ctx: import("..").OnedriveContext, args: {
244
+ item_id: string;
245
+ drive_id?: string | undefined;
246
+ site_id?: string | undefined;
247
+ user_id?: string | undefined;
248
+ group_id?: string | undefined;
249
+ }) => Promise<{
250
+ value: Record<string, unknown>[];
251
+ }>;
252
+ getThumbnails: (ctx: import("..").OnedriveContext, args: {
253
+ item_id: string;
254
+ drive_id?: string | undefined;
255
+ site_id?: string | undefined;
256
+ user_id?: string | undefined;
257
+ group_id?: string | undefined;
258
+ select?: string | undefined;
259
+ original_orientation?: boolean | undefined;
260
+ }) => Promise<{
261
+ value: Record<string, unknown>[];
262
+ }>;
263
+ download: (ctx: import("..").OnedriveContext, args: {
264
+ item_id: string;
265
+ file_name: string;
266
+ drive_id?: string | undefined;
267
+ user_id?: string | undefined;
268
+ format?: "pdf" | "html" | undefined;
269
+ if_none_match?: string | undefined;
270
+ }) => Promise<{
271
+ content: string;
272
+ }>;
273
+ downloadByPath: (ctx: import("..").OnedriveContext, args: {
274
+ file_name: string;
275
+ item_path: string;
276
+ }) => Promise<{
277
+ content: string;
278
+ }>;
279
+ downloadAsFormat: (ctx: import("..").OnedriveContext, args: {
280
+ file_name: string;
281
+ format: "pdf" | "html";
282
+ path_and_filename: string;
283
+ }) => Promise<{
284
+ content: string;
285
+ }>;
286
+ downloadVersion: (ctx: import("..").OnedriveContext, args: {
287
+ item_id: string;
288
+ file_name: string;
289
+ version_id: string;
290
+ drive_id?: string | undefined;
291
+ }) => Promise<{
292
+ content: string;
293
+ }>;
294
+ updateContent: (ctx: import("..").OnedriveContext, args: {
295
+ item_id: string;
296
+ name?: string | undefined;
297
+ description?: string | undefined;
298
+ drive_id?: string | undefined;
299
+ site_id?: string | undefined;
300
+ user_id?: string | undefined;
301
+ group_id?: string | undefined;
302
+ conflict_behavior?: string | undefined;
303
+ file_size?: number | undefined;
304
+ defer_commit?: boolean | undefined;
305
+ media_source?: {
306
+ contentCategory?: string | undefined;
307
+ } | undefined;
308
+ if_match_etag?: string | undefined;
309
+ file_system_info?: {
310
+ createdDateTime?: string | undefined;
311
+ lastModifiedDateTime?: string | undefined;
312
+ lastAccessedDateTime?: string | undefined;
313
+ } | undefined;
314
+ drive_item_source?: {
315
+ externalId?: string | undefined;
316
+ application?: string | undefined;
317
+ } | undefined;
318
+ if_none_match_etag?: string | undefined;
319
+ }) => Promise<{
320
+ expirationDateTime?: string | undefined;
321
+ uploadUrl?: string | undefined;
322
+ nextExpectedRanges?: string[] | undefined;
323
+ }>;
324
+ preview: (ctx: import("..").OnedriveContext, args: {
325
+ item_id: string;
326
+ drive_id?: string | undefined;
327
+ site_id?: string | undefined;
328
+ user_id?: string | undefined;
329
+ group_id?: string | undefined;
330
+ share_id?: string | undefined;
331
+ page?: string | undefined;
332
+ zoom?: number | undefined;
333
+ }) => Promise<{
334
+ getUrl?: string | undefined;
335
+ postUrl?: string | undefined;
336
+ postParameters?: string | undefined;
337
+ }>;
338
+ getDriveItemBySharingUrl: (ctx: import("..").OnedriveContext, args: {
339
+ select_fields?: string[] | undefined;
340
+ sharing_url?: string | undefined;
341
+ prefer_redeem?: "redeemSharingLinkIfNecessary" | "redeemSharingLink" | undefined;
342
+ expand_children?: boolean | undefined;
343
+ share_id_or_encoded_url?: string | undefined;
344
+ }) => Promise<{
345
+ id: string;
346
+ name: string;
347
+ size?: number | undefined;
348
+ webUrl?: string | undefined;
349
+ eTag?: string | undefined;
350
+ cTag?: string | undefined;
351
+ createdDateTime?: string | undefined;
352
+ lastModifiedDateTime?: string | undefined;
353
+ createdBy?: Record<string, unknown> | undefined;
354
+ lastModifiedBy?: Record<string, unknown> | undefined;
355
+ parentReference?: {
356
+ id?: string | undefined;
357
+ path?: string | undefined;
358
+ driveId?: string | undefined;
359
+ } | undefined;
360
+ file?: {
361
+ mimeType?: string | undefined;
362
+ } | undefined;
363
+ folder?: {
364
+ childCount?: number | undefined;
365
+ } | undefined;
366
+ children?: Record<string, unknown>[] | undefined;
367
+ item_id?: string | undefined;
368
+ drive_id?: string | undefined;
369
+ '@microsoft.graph.downloadUrl'?: string | undefined;
370
+ }>;
371
+ listFolderChildren: (ctx: import("..").OnedriveContext, args: {
372
+ drive_id?: string | undefined;
373
+ site_id?: string | undefined;
374
+ top?: number | undefined;
375
+ expand?: string[] | undefined;
376
+ select?: string[] | undefined;
377
+ orderby?: string | undefined;
378
+ skip_token?: string | undefined;
379
+ next_link?: string | undefined;
380
+ folder_path?: string | undefined;
381
+ use_me_drive?: boolean | undefined;
382
+ folder_item_id?: string | undefined;
383
+ }) => Promise<{
384
+ value: Record<string, unknown>[];
385
+ '@odata.nextLink'?: string | undefined;
386
+ }>;
387
+ listActivities: (ctx: import("..").OnedriveContext, args: {
388
+ item_id: string;
389
+ drive_id: string;
390
+ filter?: string | undefined;
391
+ top?: number | undefined;
392
+ expand?: string[] | undefined;
393
+ select?: string[] | undefined;
394
+ orderby?: string | undefined;
395
+ skip?: string | undefined;
396
+ }) => Promise<{
397
+ value: Record<string, unknown>[];
398
+ '@odata.nextLink'?: string | undefined;
399
+ }>;
400
+ };
401
+ export declare const Drive: {
402
+ get: (ctx: import("..").OnedriveContext, args: {
403
+ drive_id: string;
404
+ select_fields?: string[] | undefined;
405
+ expand_fields?: string[] | undefined;
406
+ }) => Promise<import("zod").objectOutputType<{
407
+ id: import("zod").ZodOptional<import("zod").ZodString>;
408
+ name: import("zod").ZodOptional<import("zod").ZodString>;
409
+ driveType: import("zod").ZodOptional<import("zod").ZodString>;
410
+ webUrl: import("zod").ZodOptional<import("zod").ZodString>;
411
+ description: import("zod").ZodOptional<import("zod").ZodString>;
412
+ createdDateTime: import("zod").ZodOptional<import("zod").ZodString>;
413
+ lastModifiedDateTime: import("zod").ZodOptional<import("zod").ZodString>;
414
+ owner: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
415
+ quota: import("zod").ZodOptional<import("zod").ZodObject<{
416
+ deleted: import("zod").ZodOptional<import("zod").ZodNumber>;
417
+ remaining: import("zod").ZodOptional<import("zod").ZodNumber>;
418
+ total: import("zod").ZodOptional<import("zod").ZodNumber>;
419
+ used: import("zod").ZodOptional<import("zod").ZodNumber>;
420
+ state: import("zod").ZodOptional<import("zod").ZodString>;
421
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
422
+ deleted: import("zod").ZodOptional<import("zod").ZodNumber>;
423
+ remaining: import("zod").ZodOptional<import("zod").ZodNumber>;
424
+ total: import("zod").ZodOptional<import("zod").ZodNumber>;
425
+ used: import("zod").ZodOptional<import("zod").ZodNumber>;
426
+ state: import("zod").ZodOptional<import("zod").ZodString>;
427
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
428
+ deleted: import("zod").ZodOptional<import("zod").ZodNumber>;
429
+ remaining: import("zod").ZodOptional<import("zod").ZodNumber>;
430
+ total: import("zod").ZodOptional<import("zod").ZodNumber>;
431
+ used: import("zod").ZodOptional<import("zod").ZodNumber>;
432
+ state: import("zod").ZodOptional<import("zod").ZodString>;
433
+ }, import("zod").ZodTypeAny, "passthrough">>>;
434
+ }, import("zod").ZodTypeAny, "passthrough">>;
435
+ getGroup: (ctx: import("..").OnedriveContext, args: {
436
+ group_id: string;
437
+ select_fields?: string[] | undefined;
438
+ }) => Promise<import("zod").objectOutputType<{
439
+ id: import("zod").ZodOptional<import("zod").ZodString>;
440
+ name: import("zod").ZodOptional<import("zod").ZodString>;
441
+ driveType: import("zod").ZodOptional<import("zod").ZodString>;
442
+ webUrl: import("zod").ZodOptional<import("zod").ZodString>;
443
+ description: import("zod").ZodOptional<import("zod").ZodString>;
444
+ createdDateTime: import("zod").ZodOptional<import("zod").ZodString>;
445
+ lastModifiedDateTime: import("zod").ZodOptional<import("zod").ZodString>;
446
+ owner: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
447
+ quota: import("zod").ZodOptional<import("zod").ZodObject<{
448
+ deleted: import("zod").ZodOptional<import("zod").ZodNumber>;
449
+ remaining: import("zod").ZodOptional<import("zod").ZodNumber>;
450
+ total: import("zod").ZodOptional<import("zod").ZodNumber>;
451
+ used: import("zod").ZodOptional<import("zod").ZodNumber>;
452
+ state: import("zod").ZodOptional<import("zod").ZodString>;
453
+ }, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
454
+ deleted: import("zod").ZodOptional<import("zod").ZodNumber>;
455
+ remaining: import("zod").ZodOptional<import("zod").ZodNumber>;
456
+ total: import("zod").ZodOptional<import("zod").ZodNumber>;
457
+ used: import("zod").ZodOptional<import("zod").ZodNumber>;
458
+ state: import("zod").ZodOptional<import("zod").ZodString>;
459
+ }, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
460
+ deleted: import("zod").ZodOptional<import("zod").ZodNumber>;
461
+ remaining: import("zod").ZodOptional<import("zod").ZodNumber>;
462
+ total: import("zod").ZodOptional<import("zod").ZodNumber>;
463
+ used: import("zod").ZodOptional<import("zod").ZodNumber>;
464
+ state: import("zod").ZodOptional<import("zod").ZodString>;
465
+ }, import("zod").ZodTypeAny, "passthrough">>>;
466
+ }, import("zod").ZodTypeAny, "passthrough">>;
467
+ list: (ctx: import("..").OnedriveContext, args: {
468
+ site_id?: string | undefined;
469
+ user_id?: string | undefined;
470
+ group_id?: string | undefined;
471
+ top?: number | undefined;
472
+ expand?: string | undefined;
473
+ select?: string | undefined;
474
+ orderby?: string | undefined;
475
+ skip_token?: string | undefined;
476
+ }) => Promise<{
477
+ value: Record<string, unknown>[];
478
+ '@odata.nextLink'?: string | undefined;
479
+ }>;
480
+ getRoot: (ctx: import("..").OnedriveContext, args: {
481
+ select_fields?: string[] | undefined;
482
+ }) => Promise<{
483
+ id: string;
484
+ name: string;
485
+ size?: number | undefined;
486
+ webUrl?: string | undefined;
487
+ eTag?: string | undefined;
488
+ cTag?: string | undefined;
489
+ createdDateTime?: string | undefined;
490
+ lastModifiedDateTime?: string | undefined;
491
+ createdBy?: Record<string, unknown> | undefined;
492
+ lastModifiedBy?: Record<string, unknown> | undefined;
493
+ parentReference?: {
494
+ id?: string | undefined;
495
+ path?: string | undefined;
496
+ driveId?: string | undefined;
497
+ } | undefined;
498
+ folder?: {
499
+ childCount?: number | undefined;
500
+ } | undefined;
501
+ description?: string | undefined;
502
+ root?: Record<string, unknown> | undefined;
503
+ }>;
504
+ getSpecialFolder: (ctx: import("..").OnedriveContext, args: {
505
+ special_folder_name: "documents" | "photos" | "cameraroll";
506
+ select_fields?: string[] | undefined;
507
+ expand_relations?: string[] | undefined;
508
+ }) => Promise<{
509
+ id: string;
510
+ name: string;
511
+ size?: number | undefined;
512
+ webUrl?: string | undefined;
513
+ folder?: {
514
+ childCount?: number | undefined;
515
+ } | undefined;
516
+ children?: Record<string, unknown>[] | undefined;
517
+ }>;
518
+ getQuota: (ctx: import("..").OnedriveContext, args: {
519
+ select_fields?: string[] | undefined;
520
+ }) => Promise<{
521
+ id?: string | undefined;
522
+ name?: string | undefined;
523
+ webUrl?: string | undefined;
524
+ createdDateTime?: string | undefined;
525
+ lastModifiedDateTime?: string | undefined;
526
+ driveType?: string | undefined;
527
+ owner?: Record<string, unknown> | undefined;
528
+ quota?: {
529
+ state?: string | undefined;
530
+ deleted?: number | undefined;
531
+ remaining?: number | undefined;
532
+ total?: number | undefined;
533
+ used?: number | undefined;
534
+ } | undefined;
535
+ }>;
536
+ getRecentItems: (ctx: import("..").OnedriveContext, args: {
537
+ top?: number | undefined;
538
+ select?: string | undefined;
539
+ }) => Promise<{
540
+ value: Record<string, unknown>[];
541
+ '@odata.nextLink'?: string | undefined;
542
+ }>;
543
+ getSharedItems: (ctx: import("..").OnedriveContext, args: {
544
+ allow_external?: boolean | undefined;
545
+ }) => Promise<{
546
+ value: Record<string, unknown>[];
547
+ }>;
548
+ listActivities: (ctx: import("..").OnedriveContext, args: {
549
+ top?: number | undefined;
550
+ }) => Promise<{
551
+ value: Record<string, unknown>[];
552
+ '@odata.nextLink'?: string | undefined;
553
+ }>;
554
+ listChanges: (ctx: import("..").OnedriveContext, args: {
555
+ token?: string | undefined;
556
+ top?: number | undefined;
557
+ expand?: string | undefined;
558
+ select?: string | undefined;
559
+ }) => Promise<{
560
+ value: Record<string, unknown>[];
561
+ '@odata.nextLink'?: string | undefined;
562
+ '@odata.deltaLink'?: string | undefined;
563
+ }>;
564
+ listBundles: (ctx: import("..").OnedriveContext, args: {
565
+ drive_id: string;
566
+ filter?: string | undefined;
567
+ top?: number | undefined;
568
+ expand?: string | undefined;
569
+ select?: string | undefined;
570
+ orderby?: string | undefined;
571
+ skip_token?: string | undefined;
572
+ }) => Promise<{
573
+ value: Record<string, unknown>[];
574
+ '@odata.nextLink'?: string | undefined;
575
+ }>;
576
+ };
577
+ export declare const Files: {
578
+ createFolder: (ctx: import("..").OnedriveContext, args: {
579
+ name: string;
580
+ description?: string | undefined;
581
+ user_id?: string | undefined;
582
+ parent_folder?: string | undefined;
583
+ }) => Promise<{
584
+ id: string;
585
+ name: string;
586
+ webUrl?: string | undefined;
587
+ }>;
588
+ createTextFile: (ctx: import("..").OnedriveContext, args: {
589
+ name: string;
590
+ content: string;
591
+ folder?: string | undefined;
592
+ user_id?: string | undefined;
593
+ conflict_behavior?: "fail" | "replace" | "rename" | undefined;
594
+ }) => Promise<{
595
+ id: string;
596
+ name: string;
597
+ size?: number | undefined;
598
+ file?: {
599
+ mimeType?: string | undefined;
600
+ } | undefined;
601
+ }>;
602
+ findFile: (ctx: import("..").OnedriveContext, args: {
603
+ name: string;
604
+ folder?: string | undefined;
605
+ user_id?: string | undefined;
606
+ include_metadata?: boolean | undefined;
607
+ }) => Promise<{
608
+ value: Record<string, unknown>[];
609
+ odata_context?: string | undefined;
610
+ }>;
611
+ findFolder: (ctx: import("..").OnedriveContext, args: {
612
+ name?: string | undefined;
613
+ folder?: string | undefined;
614
+ user_id?: string | undefined;
615
+ top?: number | undefined;
616
+ expand?: string | undefined;
617
+ select?: string[] | undefined;
618
+ orderby?: string | undefined;
619
+ skip_token?: string | undefined;
620
+ }) => Promise<{
621
+ value: Record<string, unknown>[];
622
+ '@odata.nextLink'?: string | undefined;
623
+ }>;
624
+ list: (ctx: import("..").OnedriveContext, args: {
625
+ user_id?: string | undefined;
626
+ top?: number | undefined;
627
+ select?: string[] | undefined;
628
+ }) => Promise<{
629
+ value: Record<string, unknown>[];
630
+ '@odata.nextLink'?: string | undefined;
631
+ }>;
632
+ upload: (ctx: import("..").OnedriveContext, args: {
633
+ file: {
634
+ name: string;
635
+ s3key: string;
636
+ mimetype: string;
637
+ };
638
+ folder?: string | undefined;
639
+ description?: string | undefined;
640
+ drive_id?: string | undefined;
641
+ site_id?: string | undefined;
642
+ user_id?: string | undefined;
643
+ conflict_behavior?: "fail" | "replace" | "rename" | undefined;
644
+ defer_commit?: boolean | undefined;
645
+ if_match_etag?: string | undefined;
646
+ file_system_info?: {
647
+ createdDateTime?: string | undefined;
648
+ lastModifiedDateTime?: string | undefined;
649
+ lastAccessedDateTime?: string | undefined;
650
+ } | undefined;
651
+ }) => Promise<{
652
+ id: string;
653
+ name: string;
654
+ size?: number | undefined;
655
+ file?: {
656
+ mimeType?: string | undefined;
657
+ } | undefined;
658
+ }>;
659
+ };
660
+ export declare const Permissions: {
661
+ getForItem: (ctx: import("..").OnedriveContext, args: {
662
+ item_id: string;
663
+ drive_id?: string | undefined;
664
+ site_id?: string | undefined;
665
+ user_id?: string | undefined;
666
+ group_id?: string | undefined;
667
+ select?: string | undefined;
668
+ if_none_match?: string | undefined;
669
+ item_path?: string | undefined;
670
+ }) => Promise<{
671
+ value: Record<string, unknown>[];
672
+ '@odata.nextLink'?: string | undefined;
673
+ }>;
674
+ createForItem: (ctx: import("..").OnedriveContext, args: {
675
+ roles: string[];
676
+ grantedToV2: {
677
+ application?: Record<string, unknown> | undefined;
678
+ siteGroup?: Record<string, unknown> | undefined;
679
+ };
680
+ drive_id: string;
681
+ driveItem_id: string;
682
+ }) => Promise<import("zod").objectOutputType<{
683
+ id: import("zod").ZodOptional<import("zod").ZodString>;
684
+ link: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
685
+ roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
686
+ grantedTo: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
687
+ grantedToV2: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
688
+ hasPassword: import("zod").ZodOptional<import("zod").ZodBoolean>;
689
+ expirationDateTime: import("zod").ZodOptional<import("zod").ZodString>;
690
+ }, import("zod").ZodTypeAny, "passthrough">>;
691
+ updateForItem: (ctx: import("..").OnedriveContext, args: {
692
+ roles: string[];
693
+ item_id: string;
694
+ permission_id: string;
695
+ drive_id?: string | undefined;
696
+ site_id?: string | undefined;
697
+ user_id?: string | undefined;
698
+ group_id?: string | undefined;
699
+ }) => Promise<import("zod").objectOutputType<{
700
+ id: import("zod").ZodOptional<import("zod").ZodString>;
701
+ link: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
702
+ roles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
703
+ grantedTo: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
704
+ grantedToV2: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
705
+ hasPassword: import("zod").ZodOptional<import("zod").ZodBoolean>;
706
+ expirationDateTime: import("zod").ZodOptional<import("zod").ZodString>;
707
+ }, import("zod").ZodTypeAny, "passthrough">>;
708
+ deleteFromItem: (ctx: import("..").OnedriveContext, args: {
709
+ item_id: string;
710
+ perm_id: string;
711
+ drive_id?: string | undefined;
712
+ site_id?: string | undefined;
713
+ user_id?: string | undefined;
714
+ group_id?: string | undefined;
715
+ }) => Promise<{
716
+ message: string;
717
+ }>;
718
+ inviteUser: (ctx: import("..").OnedriveContext, args: {
719
+ roles: string[];
720
+ item_id: string;
721
+ recipients: Record<string, string>[];
722
+ password?: string | undefined;
723
+ message?: string | undefined;
724
+ drive_id?: string | undefined;
725
+ site_id?: string | undefined;
726
+ user_id?: string | undefined;
727
+ group_id?: string | undefined;
728
+ require_sign_in?: boolean | undefined;
729
+ send_invitation?: boolean | undefined;
730
+ expiration_date_time?: string | undefined;
731
+ retain_inherited_permissions?: boolean | undefined;
732
+ }) => Promise<{
733
+ value: Record<string, unknown>[];
734
+ }>;
735
+ createLink: (ctx: import("..").OnedriveContext, args: {
736
+ type: "view" | "edit" | "embed";
737
+ item_id: string;
738
+ password?: string | undefined;
739
+ drive_id?: string | undefined;
740
+ site_id?: string | undefined;
741
+ user_id?: string | undefined;
742
+ group_id?: string | undefined;
743
+ expiration_date_time?: string | undefined;
744
+ retain_inherited_permissions?: boolean | undefined;
745
+ scope?: "anonymous" | "organization" | "users" | undefined;
746
+ }) => Promise<{
747
+ link?: Record<string, unknown> | undefined;
748
+ id?: string | undefined;
749
+ roles?: string[] | undefined;
750
+ hasPassword?: boolean | undefined;
751
+ shareId?: string | undefined;
752
+ }>;
753
+ listSharePermissions: (ctx: import("..").OnedriveContext, args: {
754
+ shared_drive_item_id: string;
755
+ }) => Promise<{
756
+ link?: Record<string, unknown> | undefined;
757
+ id?: string | undefined;
758
+ roles?: string[] | undefined;
759
+ hasPassword?: boolean | undefined;
760
+ }>;
761
+ deleteSharePermission: (ctx: import("..").OnedriveContext, args: {
762
+ shared_drive_item_id: string;
763
+ }) => Promise<{
764
+ message: string;
765
+ }>;
766
+ grantSharePermission: (ctx: import("..").OnedriveContext, args: {
767
+ roles: string[];
768
+ recipients: Record<string, string>[];
769
+ encoded_sharing_url: string;
770
+ }) => Promise<{
771
+ value: Record<string, unknown>[];
772
+ }>;
773
+ getShare: (ctx: import("..").OnedriveContext, args: {
774
+ share_id_or_encoded_sharing_url: string;
775
+ prefer_redeem?: "redeemSharingLinkIfNecessary" | "redeemSharingLink" | undefined;
776
+ expand_children?: boolean | undefined;
777
+ }) => Promise<{
778
+ id?: string | undefined;
779
+ name?: string | undefined;
780
+ children?: Record<string, unknown>[] | undefined;
781
+ owner?: Record<string, unknown> | undefined;
782
+ root?: Record<string, unknown> | undefined;
783
+ items?: Record<string, unknown>[] | undefined;
784
+ }>;
785
+ };
786
+ export declare const SharePoint: {
787
+ getSite: (ctx: import("..").OnedriveContext, args: {
788
+ site_id: string;
789
+ expand?: string | undefined;
790
+ select?: string | undefined;
791
+ }) => Promise<{
792
+ id: string;
793
+ name?: string | undefined;
794
+ webUrl?: string | undefined;
795
+ eTag?: string | undefined;
796
+ createdDateTime?: string | undefined;
797
+ lastModifiedDateTime?: string | undefined;
798
+ description?: string | undefined;
799
+ displayName?: string | undefined;
800
+ sharepointIds?: Record<string, unknown> | undefined;
801
+ isPersonalSite?: boolean | undefined;
802
+ siteCollection?: Record<string, unknown> | undefined;
803
+ }>;
804
+ getSitePage: (ctx: import("..").OnedriveContext, args: {
805
+ site_id: string;
806
+ page_id: string;
807
+ expand?: string | undefined;
808
+ select?: string | undefined;
809
+ }) => Promise<{
810
+ id: string;
811
+ name?: string | undefined;
812
+ webUrl?: string | undefined;
813
+ title?: string | undefined;
814
+ }>;
815
+ getListItems: (ctx: import("..").OnedriveContext, args: {
816
+ site_id: string;
817
+ list_id: string;
818
+ filter?: string | undefined;
819
+ top?: number | undefined;
820
+ expand?: string | undefined;
821
+ select?: string | undefined;
822
+ orderby?: string | undefined;
823
+ skip?: number | undefined;
824
+ count?: boolean | undefined;
825
+ }) => Promise<{
826
+ value: Record<string, unknown>[];
827
+ '@odata.nextLink'?: string | undefined;
828
+ '@odata.count'?: number | undefined;
829
+ }>;
830
+ listSiteLists: (ctx: import("..").OnedriveContext, args: {
831
+ site_id: string;
832
+ filter?: string | undefined;
833
+ top?: number | undefined;
834
+ expand?: string | undefined;
835
+ select?: string | undefined;
836
+ orderby?: string | undefined;
837
+ skip?: number | undefined;
838
+ count?: boolean | undefined;
839
+ }) => Promise<{
840
+ value: Record<string, unknown>[];
841
+ '@odata.nextLink'?: string | undefined;
842
+ '@odata.count'?: number | undefined;
843
+ }>;
844
+ listSiteColumns: (ctx: import("..").OnedriveContext, args: {
845
+ site_id: string;
846
+ filter?: string | undefined;
847
+ top?: number | undefined;
848
+ expand?: string | undefined;
849
+ select?: string | undefined;
850
+ orderby?: string | undefined;
851
+ skip?: number | undefined;
852
+ count?: boolean | undefined;
853
+ }) => Promise<{
854
+ value: Record<string, unknown>[];
855
+ '@odata.nextLink'?: string | undefined;
856
+ '@odata.count'?: number | undefined;
857
+ }>;
858
+ listSiteSubsites: (ctx: import("..").OnedriveContext, args: {
859
+ site_id: string;
860
+ filter?: string | undefined;
861
+ top?: number | undefined;
862
+ expand?: string | undefined;
863
+ select?: string | undefined;
864
+ orderby?: string | undefined;
865
+ skip?: number | undefined;
866
+ count?: boolean | undefined;
867
+ }) => Promise<{
868
+ value: Record<string, unknown>[];
869
+ '@odata.nextLink'?: string | undefined;
870
+ '@odata.count'?: number | undefined;
871
+ }>;
872
+ listListItemsDelta: (ctx: import("..").OnedriveContext, args: {
873
+ site_id: string;
874
+ list_id: string;
875
+ token?: string | undefined;
876
+ top?: number | undefined;
877
+ expand?: string | undefined;
878
+ select?: string | undefined;
879
+ }) => Promise<{
880
+ value: Record<string, unknown>[];
881
+ '@odata.nextLink'?: string | undefined;
882
+ '@odata.deltaLink'?: string | undefined;
883
+ }>;
884
+ listSiteItemsDelta: (ctx: import("..").OnedriveContext, args: {
885
+ site_id: string;
886
+ token?: string | undefined;
887
+ top?: number | undefined;
888
+ expand?: string | undefined;
889
+ select?: string | undefined;
890
+ }) => Promise<{
891
+ value: Record<string, unknown>[];
892
+ '@odata.nextLink'?: string | undefined;
893
+ '@odata.deltaLink'?: string | undefined;
894
+ }>;
895
+ };
896
+ export declare const Subscriptions: {
897
+ list: (ctx: import("..").OnedriveContext, args: {}) => Promise<{
898
+ value: Record<string, unknown>[];
899
+ '@odata.nextLink'?: string | undefined;
900
+ }>;
901
+ };
902
+ export * from './types';
903
+ //# sourceMappingURL=index.d.ts.map