forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
microsoft-live-connect.d.ts
2339 lines (2280 loc) · 80.5 KB
/
microsoft-live-connect.d.ts
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
// Type definitions for Microsoft Live Connect v5.0
// Project: http://msdn.microsoft.com/en-us/library/live/hh243643.aspx
// Definitions by: John Vilk <https://github.com/jvilk/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../winjs/winjs.d.ts" />
/// <reference path="../winrt/winrt.d.ts" />
declare namespace Microsoft.Live {
//#region REST Object Information
/**
* Sub object of REST objects that contains information about a user.
*/
interface IUserInfo {
/**
* The name of the user.
*/
name: string;
/**
* The Live ID of the user.
*/
id: string;
}
/**
* Sub object of REST objects that contains information about who the
* item is shared with.
*/
interface ISharedWith {
/**
* A localized string that contains info about who can access the
* item. The options are:
* - People I selected
* - Just me
* - Everyone (public)
* - Friends
* - My friends and their friends
* - People with a link
* The default is Just me.
*/
access: string;
}
/**
* Convenience interface for when you have a bunch of objects of different
* types in a single collection. You discriminate between them using their
* 'type' field.
*/
interface IObject {
/**
* The object's type.
*/
type: string;
}
/**
* Contains a collection of one type of object.
*/
interface IObjectCollection<T> {
/**
* An array container for objects when a collection of objects is
* returned.
*/
data: T[];
}
/**
* The Album object contains info about a user's albums in Microsoft
* SkyDrive. Albums are stored at the root level of a user's SkyDrive
* directory, and can contain combinations of photos, videos, audio, files,
* and folders. The Live Connect REST API supports reading Album objects.
* Use the wl.photos scope to read a user's Album objects. Use the
* wl.skydrive scope to read a user's files. Use the wl.contacts_photos
* scope to read any albums, photos, videos, and audio that other users have
* shared with the user.
*/
interface IAlbum {
/**
* The Album object's ID.
*/
id: string;
/**
* Info about the user who authored the album.
*/
from: IUserInfo;
/**
* The name of the album.
*/
name: string;
/**
* A description of the album, or null if no description is specified.
*/
description: string;
/**
* The resource ID of the parent.
*/
parent_id: string;
/**
* The URL to upload items to the album, hosted in SkyDrive. Requires
* the wl.skydrive scope.
*/
upload_location: string;
/**
* A value that indicates whether this album can be embedded. If this
* album can be embedded, this value is true; otherwise, it is false.
*/
is_embeddable: boolean;
/**
* The total number of items in the album.
*/
count: number;
/**
* A URL of the album, hosted in SkyDrive.
*/
link: string;
/**
* The type of object; in this case, "album".
*/
type: string;
/**
* The object that contains permissions info for the album. Requires the
* wl.skydrive scope.
*/
shared_with: ISharedWith;
/**
* The time, in ISO 8601 format, at which the album was created.
*/
created_time: string;
/**
* The time, in ISO 8601 format, that the system updated the album last.
*/
updated_time: string;
/**
* The time, in ISO 8601 format, that the file was last updated.
*/
client_updated_time: string;
}
/**
* Represents a new album.
*/
interface INewAlbum {
/**
* The name of the album.
*/
name: string;
/**
* A description of the album.
*/
description?: string;
}
/**
* The Audio object contains info about a user's audio in SkyDrive. The Live
* Connect REST API supports creating, reading, updating, and deleting Audio
* objects. Use the wl.skydrive scope to read Audio objects. Use the
* wl.contacts_skydrive scope to read any audio that other users have shared
* with the user. Use the wl.skydrive_update scope to create, update, or
* delete Audio objects.
*/
interface IAudio {
/**
* The Audio object's ID.
*/
id: string;
/**
* Info about the user who uploaded the audio.
*/
from: IUserInfo;
/**
* The name of the audio.
*/
name: string;
/**
* A description of the audio, or null if no description is specified.
*/
description: string;
/**
* The id of the folder in which the audio is currently stored.
*/
parent_id: string;
/**
* The size, in bytes, of the audio.
*/
size: number;
/**
* The URL to use to upload a new audio to overwrite the existing audio.
*/
upload_location: string;
/**
* The number of comments associated with the audio.
*/
comments_count: number;
/**
* A value that indicates whether comments are enabled for the audio. If
* comments can be made, this value is true; otherwise, it is false.
*/
comments_enabled: boolean;
/**
* A value that indicates whether this audio can be embedded. If this
* audio can be embedded, this value is true; otherwise, it is false.
*/
is_embeddable: boolean;
/**
* The URL to use to download the audio from SkyDrive.
* Warning
* This value is not persistent. Use it immediately after making the
* request, and avoid caching.
*/
source: string;
/**
* A URL to view the item on SkyDrive.
*/
link: string;
/**
* The type of object; in this case, "audio".
*/
type: string;
/**
* The audio's title.
*/
title: string;
/**
* The audio's artist name.
*/
artist: string;
/**
* The audio's album name.
*/
album: string;
/**
* The artist name of the audio's album.
*/
album_artist: string;
/**
* The audio's genre.
*/
genre: string;
/**
* The audio's playing time, in milliseconds.
*/
duration: number;
/**
* A URL to view the audio's picture on SkyDrive.
*/
picture: string;
/**
* The object that contains permission info.
*/
shared_with: ISharedWith;
/**
* The time, in ISO 8601 format, at which the audio was created.
*/
created_time: string;
/**
* The time, in ISO 8601 format, at which the audio was last updated.
*/
updated_time: string;
}
/**
* Represents a new audio item.
*/
interface INewAudio {
/**
* The name of the audio.
*/
name: string;
/**
* A description of the audio.
*/
description?: string;
/**
* The audio's title.
*/
title?: string;
/**
* The audio's artist name.
*/
artist?: string;
/**
* The audio's album name.
*/
album?: string;
/**
* The artist name of the audio's album.
*/
album_artist?: string;
/**
* The audio's genre.
*/
genre?: string;
}
/**
* The Calendar object contains info about a user's Outlook.com calendar.
* The Live Connect REST API supports creating, reading, updating, and
* deleting calendars. Use the wl.calendars scope to read a user's Calendar
* objects. Use the wl.calendars_update scope to create Calendar objects for
* a user. Use the wl.contacts_calendars scope to read a user's friends'
* Calendar objects.
*/
interface ICalendar {
/**
* The Calendar object's ID.
*/
id: string;
/**
* Name of the calendar.
*/
name: string;
/**
* Description of the calendar.
*/
description: string;
/**
* The time, in ISO 8601 format, at which the calendar was created.
*/
created_time: string;
/**
* The time, in ISO 8601 format, that the calendar was last updated.
*/
updated_time: string;
/**
* Info about the user who owns the calendar.
*/
from: IUserInfo;
/**
* A value that indicates whether this calendar is the default calendar.
* If this calendar is the default calendar, this value is true;
* otherwise, it is false.
*/
is_default: boolean;
/**
* A public subscription URL with which Live Connect will synchronize
* properties and events periodically for this calendar. A NULL value
* indicates that this is not a subscribed calendar.
*/
subscription_location: string;
/**
* Role and permissions that are granted to the user for the calendar.
* The possible values are:
* - free_busy: The user can see only free/busy info.
* - limited_details: The user can see a subset of all details.
* - read: The user can only read the content of the calendar events.
* - read_write: The user can read and write calendar and events.
* - co_owner: The user is co-owner of this calendar.
* - owner: The user is the owner of this calendar.
*/
permissions: string;
}
/**
* Represents a new calendar item.
*/
interface INewCalendar {
/**
* Name of the calendar.
*/
name: string;
/**
* Description of the calendar.
*/
description?: string;
}
/**
* Represents a request to create a new calendar that subscribes to the
* given iCal calendar.
*/
interface INewCalendarSubscription {
/**
* Name of the calendar.
*/
name: string;
/**
* A public subscription URL with which Live Connect will synchronize
* properties and events periodically for this calendar.
*/
subscription_location: string;
}
/**
* The Comment object contains info about comments that are associated with
* a photo, audio, or video on SkyDrive. The Live Connect REST API supports
* reading Comment objects. Use the wl.photos scope to read Comment objects.
* Use the wl.contacts_photos scope to read the Comment objects that are
* associated with any albums, photos, and videos that other users have
* shared with the user.
*/
interface IComment {
/**
* The Comment object's id.
*/
id: string;
/**
* Info about the user who created the comment.
*/
from: IUserInfo;
/**
* The text of the comment. The maximum length of a comment is 10,000
* characters.
*/
message: string;
/**
* The time, in ISO 8601 format, at which the comment was created.
*/
created_time: string;
}
/**
* Represents a new comment.
*/
interface INewComment {
/**
* The text of the comment. The maximum length of a comment is 10,000
* characters.
*/
message: string;
}
/**
* The Contact object contains info about a user's Outlook.com contacts. The
* Live Connect REST API supports reading Contact objects.
*/
interface IContact {
/**
* The Contact object's ID.
*/
id: string;
/**
* The contact's first name, or null if no first name is specified.
*/
first_name: string;
/**
* The contact's last name, or null if no last name is specified.
*/
last_name: string;
/**
* The contact's full name, formatted for location.
*/
name: string;
/**
* A value that indicates whether the contact is set as a friend. If the
* contact is a friend, this value is true; otherwise, it is false.
*/
is_friend: boolean;
/**
* A value that indicates whether the contact is set as a favorite
* contact. If the contact is a favorite, this value is true; otherwise,
* it is false.
*/
is_favorite: boolean;
/**
* The contact's ID, if the contact has one. If not, this value is null.
*/
user_id: string;
/**
* An array containing a SHA-256 hash for each of the contact's email
* addresses. For more info, see Friend finder.
*/
email_hashes: string[];
/**
* The time, in ISO 8601 format, at which the user last updated the
* data.
*/
updated_time: string;
/**
* The day of the contact's birth date, or null if no birth date is
* specified.
*/
birth_day: number;
/**
* The month of the contact's birth date, or null if no birth date is
* specified.
*/
birth_month: number;
}
/**
* Represents a new contact.
*/
interface INewContact {
/**
* The contact's first name.
*/
first_name?: string;
/**
* The contact's last name.
*/
last_name?: string;
/**
* An array that contains the contact's work info.
*/
work?: {
employer: {
name: string;
}
}[];
/**
* The contact's email addresses.
*/
emails?: {
/**
* The contact's preferred email address.
*/
preferred?: string;
/**
* The contact's personal email address.
*/
personal?: string;
/**
* The contact's business email address.
*/
business?: string;
/**
* The contact's "alternate" email address.
*/
other?: string;
};
}
/**
* The Error object contains info about an error that is returned by the
* Live Connect APIs.
*/
interface IError {
/**
* Info about the error.
*/
error: {
/**
* The error code.
*/
code: string;
/**
* The error message.
*/
message: string;
};
}
/**
* The Event object contains info about events on a user's Outlook.com
* calendars. The Live Connect REST API supports creating Event objects. Use
* the wl.events_create scope to create Event objects on the user's default
* calendar only. Use the wl.calendars scope to read Event objects on the
* user's calendars. Use wl.calendars_update to create Event objects on any
* of the user's calendars. Use the wl.contacts_calendars scope to read
* Event objects from the user's friend's calendars.
*/
interface IEvent {
/**
* The ID of the event.
*/
id: string;
/**
* The name of the event, with a maximum length of 255 characters. This
* structure is required.
*/
name: string;
/**
* The time, in ISO 8601 format, at which the event was created.
*/
created_time: string;
/**
* The time, in ISO 8601 format, at which the event was updated. This
* structure is visible only in the Event object that is returned if the
* event was successfully created.
*/
updated_time: string;
/**
* A description of the event, with a maximum length of 32,768
* characters. This structure is required.
*/
description: string;
/**
* The ID of the calendar that contains the event.
*/
calendar_id: string;
/**
* The object that contains the name and ID of the organizer.
*/
from: IUserInfo;
/**
* The start time, in ISO 8601 format, of the event. When the event is
* being read, the time will be the user's local time, in ISO 8601
* format.
*/
start_time: string;
/**
* The end time, in ISO 8601 format, of the event. If no end time is
* specified, the default value is 30 minutes after start_time. This
* structure is optional when creating an event. When the event is being
* read, the time will be the user's local time, in ISO 8601 format.
*/
end_time: string;
/**
* The name of the location at which the event will take place. The
* maximum length is 1,000 characters.
*/
location: string;
/**
* A value that specifies whether the event is an all-day event. If the
* event is an all-day event, this value is true; otherwise, it is
* false. If this structure is missing, the default value is false.
*/
is_all_day_event: boolean;
/**
* A value that specifies whether the event is recurring. If the event
* is recurring, this value is true; otherwise, it is false.
*/
is_recurrent: boolean;
/**
* The text description of the recurrence pattern, for example, "Occurs
* every week on Tuesday". The value is Null if this is not a recurrent
* event.
*/
recurrence: string;
/**
* The time, in minutes, before the event for the reminder alarm.
*/
reminder_time: number;
/**
* The user's availability status for the event. Valid values are:
* - free
* - busy
* - tentative
* - out_of_office
* @default "free"
*/
availability: string;
/**
* A value that specifies whether the event is publicly visible. Valid
* values are:
* - public�the event is visible to anyone who can view the calendar.
* - private"�the event is visible only to the event owner.
* @default "public"
*/
visibility: string;
}
/**
* Represents a new event.
*/
interface INewEvent {
/**
* The name of the event, with a maximum length of 255 characters. This
* structure is required.
*/
name: string;
/**
* A description of the event, with a maximum length of 32,768
* characters. This structure is required.
*/
description: string;
/**
* The start time of the event. When the event is being read, the time
* will be the user's local time, in ISO 8601 format.
* Can be a date string, or a Date object.
*/
start_time: any;
/**
* The end time of the event. If no end time is specified, the default
* value is 30 minutes after start_time. This structure is optional when
* creating an event. When the event is being read, the time will be the
* user's local time, in ISO 8601 format.
* Can be a date string, or a Date object.
*/
end_time?: any;
/**
* The name of the location at which the event will take place. The
* maximum length is 1,000 characters.
*/
location?: string;
/**
* A value that specifies whether the event is an all-day event. If the
* event is an all-day event, this value is true; otherwise, it is
* false. If this structure is missing, the default value is false.
*/
is_all_day_event?: boolean;
/**
* The time, in minutes, before the event for the reminder alarm.
*/
reminder_time?: number;
/**
* The user's availability status for the event. Valid values are:
* - free
* - busy
* - tentative
* - out_of_office
* @default "free"
*/
availability?: string;
/**
* A value that specifies whether the event is publicly visible. Valid
* values are:
* - public�the event is visible to anyone who can view the calendar.
* - private"�the event is visible only to the event owner.
* @default "public"
*/
visibility?: string;
}
/**
* Response received after successfully creating a new event.
*/
interface INewEventResponse {
/**
* The name of the event, with a maximum length of 255 characters. This
* structure is required.
*/
name: string;
/**
* A description of the event, with a maximum length of 32,768
* characters. This structure is required.
*/
description: string;
/**
* The start time, in ISO 8601 format, of the event. When the event is
* being read, the time will be the user's local time, in ISO 8601
* format.
*/
start_time: string;
/**
* The end time, in ISO 8601 format, of the event. If no end time is
* specified, the default value is 30 minutes after start_time. This
* structure is optional when creating an event. When the event is being
* read, the time will be the user's local time, in ISO 8601 format.
*/
end_time: string;
/**
* The name of the location at which the event will take place. The
* maximum length is 1,000 characters.
*/
location: string;
/**
* A value that specifies whether the event is an all-day event. If the
* event is an all-day event, this value is true; otherwise, it is
* false. If this structure is missing, the default value is false.
*/
is_all_day_event: boolean;
/**
* A value that specifies whether the event is recurring. If the event
* is recurring, this value is true; otherwise, it is false.
*/
is_recurrent: boolean;
/**
* The text description of the recurrence pattern, for example, "Occurs
* every week on Tuesday". The value is Null if this is not a recurrent
* event.
*/
recurrence: string;
/**
* The time, in minutes, before the event for the reminder alarm.
*/
reminder_time: number;
/**
* The user's availability status for the event. Valid values are:
* - free
* - busy
* - tentative
* - out_of_office
* @default "free"
*/
availability: string;
/**
* A value that specifies whether the event is publicly visible. Valid
* values are:
* - public�the event is visible to anyone who can view the calendar.
* - private"�the event is visible only to the event owner.
* @default "public"
*/
visibility: string;
/**
* The time, in ISO 8601 format, at which the event was updated. This
* structure is visible only in the Event object that is returned if the
* event was successfully created.
*/
updated_time: string;
}
/**
* The File object contains info about a user's files in SkyDrive. The Live
* Connect REST API supports creating, reading, updating, and deleting File
* objects. Use the wl.skydrive scope to read File objects. Use the
* wl.contacts_skydrive scope to read any files that other users have shared
* with the user. Use the wl.skydrive_update scope to create, update, or
* delete File objects.
*/
interface IFile {
/**
* The File object's ID.
*/
id: string;
/**
* Info about the user who uploaded the file.
*/
from: IUserInfo;
/**
* The name of the file.
*/
name: string;
/**
* A description of the file, or null if no description is specified.
*/
description: string;
/**
* The ID of the folder the file is currently stored in.
*/
parent_id: string;
/**
* The size, in bytes, of the file.
*/
size: number;
/**
* The URL to upload file content hosted in SkyDrive.
* Note: This structure is not available if the file is an Microsoft
* Office OneNote notebook.
*/
upload_location: string;
/**
* The number of comments that are associated with the file.
*/
comments_count: number;
/**
* A value that indicates whether comments are enabled for the file. If
* comments can be made, this value is true; otherwise, it is false.
*/
comments_enabled: boolean;
/**
* A value that indicates whether this file can be embedded. If this
* file can be embedded, this value is true; otherwise, it is false.
*/
is_embeddable: boolean;
/**
* The URL to use to download the file from SkyDrive.
* Warning: This value is not persistent. Use it immediately after
* making the request, and avoid caching.
* Note: This structure is not available if the file is an Office
* OneNote notebook.
*/
source: string;
/**
* A URL to view the item on SkyDrive.
*/
link: string;
/**
* The type of object; in this case, "file".
* Note: If the file is a Office OneNote notebook, the type structure is
* set to "notebook".
*/
type: string;
/**
* Object that contains permission info.
*/
shared_with: ISharedWith;
/**
* The time, in ISO 8601 format, at which the file was created.
*/
created_time: string;
/**
* The time, in ISO 8601 format, that the system updated the file last.
*/
updated_time: string;
/**
* The time, in ISO 8601 format, that the client machine updated the
* file last.
*/
client_updated_time: string;
/**
* Sorts the items to specify the following criteria: updated, name,
* size, or default.
*/
sort_by: string;
}
/**
* Success response to a new file creation request.
*/
interface INewFileResponse {
/**
* ID of the new item.
*/
id: string;
/**
* The file's name and file extension.
*/
name: string;
/**
* URL where the item can be downloaded from.
*/
source: string;
}
/**
* Returns when you perform a GET request to /FILE_ID/content.
*/
interface IFileDownloadLink {
/**
* A URL download link for the file.
*/
location: string;
}
/**
* The Folder object contains info about a user's folders in SkyDrive.
* Folders can contain combinations of photos, videos, audio, and
* subfolders. The Live Connect REST API supports reading Folder objects.
* Use the wl.photos scope to read Folder objects. Use the
* wl.contacts_photos scope to read any albums, photos, videos, and audio
* that other users have shared with the user.
*/
interface IFolder {
/**
* The Folder object's ID.
*/
id: string;
/**
* Info about the user who created the folder.
*/
from: IUserInfo;
/**
* The name of the folder.
*/
name: string;
/**
* A description of the folder, or null if no description is specified.
*/
description: string;
/**
* The total number of items in the folder.
*/
count: number;
/**
* The URL of the folder, hosted in SkyDrive.
*/
link: string;
/**
* The resource ID of the parent.
*/
parent_id: string;
/**
* The URL to upload items to the folder hosted in SkyDrive. Requires
* the wl.skydrive scope.
*/
upload_location: string;
/**
* A value that indicates whether this folder can be embedded. If this
* folder can be embedded, this value is true; otherwise, it is false.
*/
is_embeddable: boolean;
/**
* The type of object; in this case, "folder".
*/
type: string;
/**
* The time, in ISO 8601 format, at which the folder was created.
*/
created_time: string;
/**
* The time, in ISO 8601 format, that the system updated the file last.
*/
updated_time: string;
/**
* The time, in ISO 8601 format, that the client machine updated the
* file last.
*/
client_updated_time: string;
/**
* Permissions info for the folder. Requires the wl.skydrive scope.
*/
shared_with: ISharedWith;
/**
* Sorts the items to specify the following criteria: updated, name,
* size, or default.
*/
sort_by: string;
}
/**
* Represents a new folder.
*/
interface INewFolder {
/**
* The name of the folder.
*/
name: string;
/**
* A description of the folder.
*/
description?: string;
/**
* Sorts the items to specify the following criteria: updated, name,
* size, or default.
*/
sort_by?: string;
}