forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
evernote.d.ts
6322 lines (5989 loc) · 284 KB
/
evernote.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 evernote v 1.25.8
// Project: https://www.npmjs.com/package/evernote
// Definitions by: Zachary Collins <https://github.com/corps/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../thrift/thrift.d.ts"/>
declare module "evernote" {
import { Thrift } from "thrift";
namespace Evernote {
interface Callback<T> {
(err: EDAMUserException|EDAMSystemException|EDAMNotFoundException, v: T): void
}
interface ClientConfig {
consumerKey?: string
consumerSecret?: string
sandbox?: boolean
token?: string
serviceHost?: string
additionalHeaders?: { [k: string]: string }
secret?: string
}
class Client {
static "new": (config: ClientConfig) => Client
constructor(config: ClientConfig);
getNoteStore(): NoteStoreClient;
getUserStore(): UserStoreClient;
}
/**
* Numeric codes indicating the type of error that occurred on the
* service.
* <dl>
* <dt>UNKNOWN</dt>
* <dd>No information available about the error</dd>
* <dt>BAD_DATA_FORMAT</dt>
* <dd>The format of the request data was incorrect</dd>
* <dt>PERMISSION_DENIED</dt>
* <dd>Not permitted to perform action</dd>
* <dt>INTERNAL_ERROR</dt>
* <dd>Unexpected problem with the service</dd>
* <dt>DATA_REQUIRED</dt>
* <dd>A required parameter/field was absent</dd>
* <dt>LIMIT_REACHED</dt>
* <dd>Operation denied due to data model limit</dd>
* <dt>QUOTA_REACHED</dt>
* <dd>Operation denied due to user storage limit</dd>
* <dt>INVALID_AUTH</dt>
* <dd>Username and/or password incorrect</dd>
* <dt>AUTH_EXPIRED</dt>
* <dd>Authentication token expired</dd>
* <dt>DATA_CONFLICT</dt>
* <dd>Change denied due to data model conflict</dd>
* <dt>ENML_VALIDATION</dt>
* <dd>Content of submitted note was malformed</dd>
* <dt>SHARD_UNAVAILABLE</dt>
* <dd>Service shard with account data is temporarily down</dd>
* <dt>LEN_TOO_SHORT</dt>
* <dd>Operation denied due to data model limit, where something such
* as a string length was too short</dd>
* <dt>LEN_TOO_LONG</dt>
* <dd>Operation denied due to data model limit, where something such
* as a string length was too long</dd>
* <dt>TOO_FEW</dt>
* <dd>Operation denied due to data model limit, where there were
* too few of something.</dd>
* <dt>TOO_MANY</dt>
* <dd>Operation denied due to data model limit, where there were
* too many of something.</dd>
* <dt>UNSUPPORTED_OPERATION</dt>
* <dd>Operation denied because it is currently unsupported.</dd>
* <dt>TAKEN_DOWN</dt>
* <dd>Operation denied because access to the corresponding object is
* prohibited in response to a take-down notice.</dd>
* <dt>RATE_LIMIT_REACHED</dt>
* <dd>Operation denied because the calling application has reached
* its hourly API call limit for this user.</dd>
* </dl>
*/
enum EDAMErrorCode {
'UNKNOWN' = 1,
'BAD_DATA_FORMAT' = 2,
'PERMISSION_DENIED' = 3,
'INTERNAL_ERROR' = 4,
'DATA_REQUIRED' = 5,
'LIMIT_REACHED' = 6,
'QUOTA_REACHED' = 7,
'INVALID_AUTH' = 8,
'AUTH_EXPIRED' = 9,
'DATA_CONFLICT' = 10,
'ENML_VALIDATION' = 11,
'SHARD_UNAVAILABLE' = 12,
'LEN_TOO_SHORT' = 13,
'LEN_TOO_LONG' = 14,
'TOO_FEW' = 15,
'TOO_MANY' = 16,
'UNSUPPORTED_OPERATION' = 17,
'TAKEN_DOWN' = 18,
'RATE_LIMIT_REACHED' = 19,
}
/**
* This exception is thrown by EDAM procedures when a call fails as a result of
* a problem that a caller may be able to resolve. For example, if the user
* attempts to add a note to their account which would exceed their storage
* quota, this type of exception may be thrown to indicate the source of the
* error so that they can choose an alternate action.
*
* This exception would not be used for internal system errors that do not
* reflect user actions, but rather reflect a problem within the service that
* the user cannot resolve.
*
* errorCode: The numeric code indicating the type of error that occurred.
* must be one of the values of EDAMErrorCode.
*
* parameter: If the error applied to a particular input parameter, this will
* indicate which parameter.
*/
class EDAMUserException extends Thrift.TException {
errorCode: EDAMErrorCode;
parameter: string;
constructor(args?: { errorCode: EDAMErrorCode; parameter?: string; });
}
/**
* This exception is thrown by EDAM procedures when a call fails as a result of
* a problem in the service that could not be changed through caller action.
*
* errorCode: The numeric code indicating the type of error that occurred.
* must be one of the values of EDAMErrorCode.
*
* message: This may contain additional information about the error
*
* rateLimitDuration: Indicates the minimum number of seconds that an application should
* expect subsequent API calls for this user to fail. The application should not retry
* API requests for the user until at least this many seconds have passed. Present only
* when errorCode is RATE_LIMIT_REACHED,
*/
class EDAMSystemException extends Thrift.TException {
errorCode: EDAMErrorCode;
message: string;
rateLimitDuration: number;
constructor(args?: { errorCode: EDAMErrorCode; message?: string; rateLimitDuration?: number; });
}
/**
* This exception is thrown by EDAM procedures when a caller asks to perform
* an operation on an object that does not exist. This may be thrown based on an invalid
* primary identifier (e.g. a bad GUID), or when the caller refers to an object
* by another unique identifier (e.g. a User's email address).
*
* identifier: A description of the object that was not found on the server.
* For example, "Note.notebookGuid" when a caller attempts to create a note in a
* notebook that does not exist in the user's account.
*
* key: The value passed from the client in the identifier, which was not
* found. For example, the GUID that was not found.
*/
class EDAMNotFoundException extends Thrift.TException {
identifier: string;
key: string;
constructor(args?: { identifier?: string; key?: string; });
}
/**
* Minimum length of any string-based attribute, in Unicode chars
*/
var EDAM_ATTRIBUTE_LEN_MIN: number;
/**
* Maximum length of any string-based attribute, in Unicode chars
*/
var EDAM_ATTRIBUTE_LEN_MAX: number;
/**
* Any string-based attribute must match the provided regular expression.
* This excludes all Unicode line endings and control characters.
*/
var EDAM_ATTRIBUTE_REGEX: string;
/**
* The maximum number of values that can be stored in a list-based attribute
* (e.g. see UserAttributes.recentMailedAddresses)
*/
var EDAM_ATTRIBUTE_LIST_MAX: number;
/**
* The maximum number of entries that can be stored in a map-based attribute
* such as applicationData fields in Resources and Notes.
*/
var EDAM_ATTRIBUTE_MAP_MAX: number;
/**
* The minimum length of a GUID generated by the Evernote service
*/
var EDAM_GUID_LEN_MIN: number;
/**
* The maximum length of a GUID generated by the Evernote service
*/
var EDAM_GUID_LEN_MAX: number;
/**
* GUIDs generated by the Evernote service will match the provided pattern
*/
var EDAM_GUID_REGEX: string;
/**
* The minimum length of any email address
*/
var EDAM_EMAIL_LEN_MIN: number;
/**
* The maximum length of any email address
*/
var EDAM_EMAIL_LEN_MAX: number;
/**
* A regular expression that matches the part of an email address before
* the '@' symbol.
*/
var EDAM_EMAIL_LOCAL_REGEX: string;
/**
* A regular expression that matches the part of an email address after
* the '@' symbol.
*/
var EDAM_EMAIL_DOMAIN_REGEX: string;
/**
* A regular expression that must match any email address given to Evernote.
* Email addresses must comply with RFC 2821 and 2822.
*/
var EDAM_EMAIL_REGEX: string;
/**
* A regular expression that must match any VAT ID given to Evernote.
* ref http://en.wikipedia.org/wiki/VAT_identification_number
* ref http://my.safaribooksonline.com/book/programming/regular-expressions/9780596802837/4dot-validation-and-formatting/id2995136
*/
var EDAM_VAT_REGEX: string;
/**
* The minimum length of a timezone specification string
*/
var EDAM_TIMEZONE_LEN_MIN: number;
/**
* The maximum length of a timezone specification string
*/
var EDAM_TIMEZONE_LEN_MAX: number;
/**
* Any timezone string given to Evernote must match the provided pattern.
* This permits either a locale-based standard timezone or a GMT offset.
* E.g.:<ul>
* <li>America/Los_Angeles</li>
* <li>GMT+08:00</li>
* </ul>
*/
var EDAM_TIMEZONE_REGEX: string;
/**
* The minimum length of any MIME type string given to Evernote
*/
var EDAM_MIME_LEN_MIN: number;
/**
* The maximum length of any MIME type string given to Evernote
*/
var EDAM_MIME_LEN_MAX: number;
/**
* Any MIME type string given to Evernote must match the provided pattern.
* E.g.: image/gif
*/
var EDAM_MIME_REGEX: string;
/**
* Canonical MIME type string for GIF image resources
*/
var EDAM_MIME_TYPE_GIF: string;
/**
* Canonical MIME type string for JPEG image resources
*/
var EDAM_MIME_TYPE_JPEG: string;
/**
* Canonical MIME type string for PNG image resources
*/
var EDAM_MIME_TYPE_PNG: string;
/**
* Canonical MIME type string for WAV audio resources
*/
var EDAM_MIME_TYPE_WAV: string;
/**
* Canonical MIME type string for MP3 audio resources
*/
var EDAM_MIME_TYPE_MP3: string;
/**
* Canonical MIME type string for AMR audio resources
*/
var EDAM_MIME_TYPE_AMR: string;
/**
* Canonical MIME type string for AAC audio resources
*/
var EDAM_MIME_TYPE_AAC: string;
/**
* Canonical MIME type string for MP4 audio resources
*/
var EDAM_MIME_TYPE_M4A: string;
/**
* Canonical MIME type string for MP4 video resources
*/
var EDAM_MIME_TYPE_MP4_VIDEO: string;
/**
* Canonical MIME type string for Evernote Ink resources
*/
var EDAM_MIME_TYPE_INK: string;
/**
* Canonical MIME type string for PDF resources
*/
var EDAM_MIME_TYPE_PDF: string;
/**
* MIME type used for attachments of an unspecified type
*/
var EDAM_MIME_TYPE_DEFAULT: string;
/**
* The set of resource MIME types that are expected to be handled
* correctly by all of the major Evernote client applications.
*/
var EDAM_MIME_TYPES: string[];
/**
* The set of MIME types that Evernote will parse and index for
* searching. With exception of images, and PDFs, which are
* handled in a different way.
*/
var EDAM_INDEXABLE_RESOURCE_MIME_TYPES: string[];
/**
* The minimum length of a user search query string in Unicode chars
*/
var EDAM_SEARCH_QUERY_LEN_MIN: number;
/**
* The maximum length of a user search query string in Unicode chars
*/
var EDAM_SEARCH_QUERY_LEN_MAX: number;
/**
* Search queries must match the provided pattern. This is used for
* both ad-hoc queries and SavedSearch.query fields.
* This excludes all control characters and line/paragraph separators.
*/
var EDAM_SEARCH_QUERY_REGEX: string;
/**
* The exact length of a MD5 hash checksum, in binary bytes.
* This is the exact length that must be matched for any binary hash
* value.
*/
var EDAM_HASH_LEN: number;
/**
* The minimum length of an Evernote username
*/
var EDAM_USER_USERNAME_LEN_MIN: number;
/**
* The maximum length of an Evernote username
*/
var EDAM_USER_USERNAME_LEN_MAX: number;
/**
* Any Evernote User.username field must match this pattern. This
* restricts usernames to a format that could permit use as a domain
* name component. E.g. "username.whatever.evernote.com"
*/
var EDAM_USER_USERNAME_REGEX: string;
/**
* Minimum length of the User.name field
*/
var EDAM_USER_NAME_LEN_MIN: number;
/**
* Maximum length of the User.name field
*/
var EDAM_USER_NAME_LEN_MAX: number;
/**
* The User.name field must match this pattern, which excludes line
* endings and control characters.
*/
var EDAM_USER_NAME_REGEX: string;
/**
* The minimum length of a Tag.name, in Unicode characters
*/
var EDAM_TAG_NAME_LEN_MIN: number;
/**
* The maximum length of a Tag.name, in Unicode characters
*/
var EDAM_TAG_NAME_LEN_MAX: number;
/**
* All Tag.name fields must match this pattern.
* This excludes control chars, commas or line/paragraph separators.
* The string may not begin or end with whitespace.
*/
var EDAM_TAG_NAME_REGEX: string;
/**
* The minimum length of a Note.title, in Unicode characters
*/
var EDAM_NOTE_TITLE_LEN_MIN: number;
/**
* The maximum length of a Note.title, in Unicode characters
*/
var EDAM_NOTE_TITLE_LEN_MAX: number;
/**
* All Note.title fields must match this pattern.
* This excludes control chars or line/paragraph separators.
* The string may not begin or end with whitespace.
*/
var EDAM_NOTE_TITLE_REGEX: string;
/**
* Minimum length of a Note.content field.
* Note.content fields must comply with the ENML DTD.
*/
var EDAM_NOTE_CONTENT_LEN_MIN: number;
/**
* Maximum length of a Note.content field
* Note.content fields must comply with the ENML DTD.
*/
var EDAM_NOTE_CONTENT_LEN_MAX: number;
/**
* Minimum length of an application name, which is the key in an
* applicationData LazyMap found in entities such as Resources and
* Notes.
*/
var EDAM_APPLICATIONDATA_NAME_LEN_MIN: number;
/**
* Maximum length of an application name, which is the key in an
* applicationData LazyMap found in entities such as Resources and
* Notes.
*/
var EDAM_APPLICATIONDATA_NAME_LEN_MAX: number;
/**
* Minimum length of an applicationData value in a LazyMap, found
* in entities such as Resources and Notes.
*/
var EDAM_APPLICATIONDATA_VALUE_LEN_MIN: number;
/**
* Maximum length of an applicationData value in a LazyMap, found
* in entities such as Resources and Notes. Note, however, that
* the sum of the size of hte key and value is constrained by
* EDAM_APPLICATIONDATA_ENTRY_LEN_MAX, so the maximum length, in
* practice, depends upon the key value being used.
*/
var EDAM_APPLICATIONDATA_VALUE_LEN_MAX: number;
/**
* The total length of an entry in an applicationData LazyMap, which
* is the sum of the length of the key and the value for the entry.
*/
var EDAM_APPLICATIONDATA_ENTRY_LEN_MAX: number;
/**
* An application name must match this regex. An application
* name is the key portion of an entry in an applicationData
* map as found in entities such as Resources and Notes.
* Note that even if both the name and value regexes match,
* it is still necessary to check the sum of the lengths
* against EDAM_APPLICATIONDATA_ENTRY_LEN_MAX.
*/
var EDAM_APPLICATIONDATA_NAME_REGEX: string;
/**
* An applicationData map value must match this regex.
* Note that even if both the name and value regexes match,
* it is still necessary to check the sum of the lengths
* against EDAM_APPLICATIONDATA_ENTRY_LEN_MAX.
*/
var EDAM_APPLICATIONDATA_VALUE_REGEX: string;
/**
* The minimum length of a Notebook.name, in Unicode characters
*/
var EDAM_NOTEBOOK_NAME_LEN_MIN: number;
/**
* The maximum length of a Notebook.name, in Unicode characters
*/
var EDAM_NOTEBOOK_NAME_LEN_MAX: number;
/**
* All Notebook.name fields must match this pattern.
* This excludes control chars or line/paragraph separators.
* The string may not begin or end with whitespace.
*/
var EDAM_NOTEBOOK_NAME_REGEX: string;
/**
* The minimum length of a Notebook.stack, in Unicode characters
*/
var EDAM_NOTEBOOK_STACK_LEN_MIN: number;
/**
* The maximum length of a Notebook.stack, in Unicode characters
*/
var EDAM_NOTEBOOK_STACK_LEN_MAX: number;
/**
* All Notebook.stack fields must match this pattern.
* This excludes control chars or line/paragraph separators.
* The string may not begin or end with whitespace.
*/
var EDAM_NOTEBOOK_STACK_REGEX: string;
/**
* The minimum length of a public notebook URI component
*/
var EDAM_PUBLISHING_URI_LEN_MIN: number;
/**
* The maximum length of a public notebook URI component
*/
var EDAM_PUBLISHING_URI_LEN_MAX: number;
/**
* A public notebook URI component must match the provided pattern
*/
var EDAM_PUBLISHING_URI_REGEX: string;
/**
* The set of strings that may not be used as a publishing URI
*/
var EDAM_PUBLISHING_URI_PROHIBITED: string[];
/**
* The minimum length of a Publishing.publicDescription field.
*/
var EDAM_PUBLISHING_DESCRIPTION_LEN_MIN: number;
/**
* The maximum length of a Publishing.publicDescription field.
*/
var EDAM_PUBLISHING_DESCRIPTION_LEN_MAX: number;
/**
* Any public notebook's Publishing.publicDescription field must match
* this pattern.
* No control chars or line/paragraph separators, and can't start or
* end with whitespace.
*/
var EDAM_PUBLISHING_DESCRIPTION_REGEX: string;
/**
* The minimum length of a SavedSearch.name field
*/
var EDAM_SAVED_SEARCH_NAME_LEN_MIN: number;
/**
* The maximum length of a SavedSearch.name field
*/
var EDAM_SAVED_SEARCH_NAME_LEN_MAX: number;
/**
* SavedSearch.name fields must match this pattern.
* No control chars or line/paragraph separators, and can't start or
* end with whitespace.
*/
var EDAM_SAVED_SEARCH_NAME_REGEX: string;
/**
* The minimum length of an Evernote user password
*/
var EDAM_USER_PASSWORD_LEN_MIN: number;
/**
* The maximum length of an Evernote user password
*/
var EDAM_USER_PASSWORD_LEN_MAX: number;
/**
* Evernote user passwords must match this regular expression
*/
var EDAM_USER_PASSWORD_REGEX: string;
/**
* The maximum length of an Evernote Business URI
*/
var EDAM_BUSINESS_URI_LEN_MAX: number;
/**
* The maximum number of Tags per Note
*/
var EDAM_NOTE_TAGS_MAX: number;
/**
* The maximum number of Resources per Note
*/
var EDAM_NOTE_RESOURCES_MAX: number;
/**
* Maximum number of Tags per account
*/
var EDAM_USER_TAGS_MAX: number;
/**
* Maximum number of Tags per business account.
*/
var EDAM_BUSINESS_TAGS_MAX: number;
/**
* Maximum number of SavedSearches per account
*/
var EDAM_USER_SAVED_SEARCHES_MAX: number;
/**
* Maximum number of Notes per user
*/
var EDAM_USER_NOTES_MAX: number;
/**
* Maximum number of Notes per business account
*/
var EDAM_BUSINESS_NOTES_MAX: number;
/**
* Maximum number of Notebooks per user
*/
var EDAM_USER_NOTEBOOKS_MAX: number;
/**
* Maximum number of Notebooks in a business account
*/
var EDAM_BUSINESS_NOTEBOOKS_MAX: number;
/**
* Maximum number of recent email addresses that are maintained
* (see UserAttributes.recentMailedAddresses)
*/
var EDAM_USER_RECENT_MAILED_ADDRESSES_MAX: number;
/**
* The number of emails of any type that can be sent by a user with a Free
* account from the service per day. If an email is sent to two different
* recipients, this counts as two emails.
*/
var EDAM_USER_MAIL_LIMIT_DAILY_FREE: number;
/**
* The number of emails of any type that can be sent by a user with a Premium
* account from the service per day. If an email is sent to two different
* recipients, this counts as two emails.
*/
var EDAM_USER_MAIL_LIMIT_DAILY_PREMIUM: number;
/**
* The number of bytes of new data that may be uploaded to a Free user's
* account each month.
*/
var EDAM_USER_UPLOAD_LIMIT_FREE: number;
/**
* The number of bytes of new data that may be uploaded to a Premium user's
* account each month.
*/
var EDAM_USER_UPLOAD_LIMIT_PREMIUM: number;
/**
* The number of bytes of new data that may be uploaded to a Business user's
* personal account each month. Note that content uploaded into the Business
* notebooks by the user does not count against this limit.
*/
var EDAM_USER_UPLOAD_LIMIT_BUSINESS: number;
/**
* Maximum total size of a Note that can be added to a Free account.
* The size of a note is calculated as:
* ENML content length (in Unicode characters) plus the sum of all resource
* sizes (in bytes).
*/
var EDAM_NOTE_SIZE_MAX_FREE: number;
/**
* Maximum total size of a Note that can be added to a Premium account.
* The size of a note is calculated as:
* ENML content length (in Unicode characters) plus the sum of all resource
* sizes (in bytes).
*/
var EDAM_NOTE_SIZE_MAX_PREMIUM: number;
/**
* Maximum size of a resource, in bytes, for Free accounts
*/
var EDAM_RESOURCE_SIZE_MAX_FREE: number;
/**
* Maximum size of a resource, in bytes, for Premium accounts
*/
var EDAM_RESOURCE_SIZE_MAX_PREMIUM: number;
/**
* Maximum number of linked notebooks per account, for a free
* account.
*/
var EDAM_USER_LINKED_NOTEBOOK_MAX: number;
/**
* Maximum number of linked notebooks per account, for a premium
* account. Users who are part of an active business are also
* covered under "premium".
*/
var EDAM_USER_LINKED_NOTEBOOK_MAX_PREMIUM: number;
/**
* Maximum number of shared notebooks per notebook
*/
var EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX: number;
/**
* The minimum length of the content class attribute of a note.
*/
var EDAM_NOTE_CONTENT_CLASS_LEN_MIN: number;
/**
* The maximum length of the content class attribute of a note.
*/
var EDAM_NOTE_CONTENT_CLASS_LEN_MAX: number;
/**
* The regular expression that the content class of a note must match
* to be valid.
*/
var EDAM_NOTE_CONTENT_CLASS_REGEX: string;
/**
* The content class prefix used for all notes created by Evernote Hello.
* This prefix can be used to assemble individual content class strings,
* or can be used to create a wildcard search to get all notes created by
* Hello. When performing a wildcard search via filtered sync chunks or
* search strings, the * character must be appended to this constant.
*/
var EDAM_HELLO_APP_CONTENT_CLASS_PREFIX: string;
/**
* The content class prefix used for all notes created by Evernote Food.
* This prefix can be used to assemble individual content class strings,
* or can be used to create a wildcard search to get all notes created by
* Food. When performing a wildcard search via filtered sync chunks or
* search strings, the * character must be appended to this constant.
*/
var EDAM_FOOD_APP_CONTENT_CLASS_PREFIX: string;
/**
* The content class prefix used for structured notes created by Evernote
* Hello that represents an encounter with a person. When performing a
* wildcard search via filtered sync chunks or search strings, the *
* character must be appended to this constant.
*/
var EDAM_CONTENT_CLASS_HELLO_ENCOUNTER: string;
/**
* The content class prefix used for structured notes created by Evernote
* Hello that represents the user's profile. When performing a
* wildcard search via filtered sync chunks or search strings, the *
* character must be appended to this constant.
*/
var EDAM_CONTENT_CLASS_HELLO_PROFILE: string;
/**
* The content class prefix used for structured notes created by
* Evernote Food that captures the experience of a particular meal.
* When performing a wildcard search via filtered sync chunks or search
* strings, the * character must be appended to this constant.
*/
var EDAM_CONTENT_CLASS_FOOD_MEAL: string;
/**
* The content class prefix used for structured notes created by Evernote
* Skitch. When performing a wildcard search via filtered sync chunks
* or search strings, the * character must be appended to this constant.
*/
var EDAM_CONTENT_CLASS_SKITCH_PREFIX: string;
/**
* The content class value used for structured image notes created by Evernote
* Skitch.
*/
var EDAM_CONTENT_CLASS_SKITCH: string;
/**
* The content class value used for structured PDF notes created by Evernote
* Skitch.
*/
var EDAM_CONTENT_CLASS_SKITCH_PDF: string;
/**
* The content class prefix used for structured notes created by Evernote
* Penultimate. When performing a wildcard search via filtered sync chunks
* or search strings, the * character must be appended to this constant.
*/
var EDAM_CONTENT_CLASS_PENULTIMATE_PREFIX: string;
/**
* The content class value used for structured notes created by Evernote
* Penultimate that represents a Penultimate notebook.
*/
var EDAM_CONTENT_CLASS_PENULTIMATE_NOTEBOOK: string;
/**
* The minimum length of the plain text in a findRelated query, assuming that
* plaintext is being provided.
*/
var EDAM_RELATED_PLAINTEXT_LEN_MIN: number;
/**
* The maximum length of the plain text in a findRelated query, assuming that
* plaintext is being provided.
*/
var EDAM_RELATED_PLAINTEXT_LEN_MAX: number;
/**
* The maximum number of notes that will be returned from a findRelated()
* query.
*/
var EDAM_RELATED_MAX_NOTES: number;
/**
* The maximum number of notebooks that will be returned from a findRelated()
* query.
*/
var EDAM_RELATED_MAX_NOTEBOOKS: number;
/**
* The maximum number of tags that will be returned from a findRelated() query.
*/
var EDAM_RELATED_MAX_TAGS: number;
/**
* The minimum length, in Unicode characters, of a description for a business
* notebook.
*/
var EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MIN: number;
/**
* The maximum length, in Unicode characters, of a description for a business
* notebook.
*/
var EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MAX: number;
/**
* All business notebook descriptions must match this pattern.
* This excludes control chars or line/paragraph separators.
* The string may not begin or end with whitespace.
*/
var EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_REGEX: string;
/**
* The maximum length of a business phone number.
*/
var EDAM_BUSINESS_PHONE_NUMBER_LEN_MAX: number;
/**
* Minimum length of a preference name
*/
var EDAM_PREFERENCE_NAME_LEN_MIN: number;
/**
* Maximum length of a preference name
*/
var EDAM_PREFERENCE_NAME_LEN_MAX: number;
/**
* Minimum length of a preference value
*/
var EDAM_PREFERENCE_VALUE_LEN_MIN: number;
/**
* Maximum length of a preference value
*/
var EDAM_PREFERENCE_VALUE_LEN_MAX: number;
/**
* Maximum number of name/value pairs allowed
*/
var EDAM_MAX_PREFERENCES: number;
/**
* Maximum number of values per preference name
*/
var EDAM_MAX_VALUES_PER_PREFERENCE: number;
/**
* A preference name must match this regex.
*/
var EDAM_PREFERENCE_NAME_REGEX: string;
/**
* A preference value must match this regex.
*/
var EDAM_PREFERENCE_VALUE_REGEX: string;
/**
* The name of the preferences entry that contains shortcuts.
*/
var EDAM_PREFERENCE_SHORTCUTS: string;
/**
* The maximum number of shortcuts that a user may have.
*/
var EDAM_PREFERENCE_SHORTCUTS_MAX_VALUES: number;
/**
* Maximum length of the device identifier string associated with long sessions.
*/
var EDAM_DEVICE_ID_LEN_MAX: number;
/**
* Regular expression for device identifier strings associated with long sessions.
*/
var EDAM_DEVICE_ID_REGEX: string;
/**
* Maximum length of the device description string associated with long sessions.
*/
var EDAM_DEVICE_DESCRIPTION_LEN_MAX: number;
/**
* Regular expression for device description strings associated with long sessions.
*/
var EDAM_DEVICE_DESCRIPTION_REGEX: string;
/**
* Maximum number of search suggestions that can be returned
*/
var EDAM_SEARCH_SUGGESTIONS_MAX: number;
/**
* Maximum length of the search suggestion prefix
*/
var EDAM_SEARCH_SUGGESTIONS_PREFIX_LEN_MAX: number;
/**
* Minimum length of the search suggestion prefix
*/
var EDAM_SEARCH_SUGGESTIONS_PREFIX_LEN_MIN: number;
class NoteStoreClient {
seqid: number;
/**
* Asks the NoteStore to provide information about the status of the user
* account corresponding to the provided authentication token.
*/
getSyncState(cb: Callback<SyncState>): void;
/**
* Asks the NoteStore to provide information about the status of the user
* account corresponding to the provided authentication token.
* This version of 'getSyncState' allows the client to upload coarse-
* grained usage metrics to the service.
*
* @param clientMetrics see the documentation of the ClientUsageMetrics
* structure for an explanation of the fields that clients can pass to
* the service.
*/
getSyncStateWithMetrics(clientMetrics: ClientUsageMetrics, cb: Callback<SyncState>): void;
/**
* Asks the NoteStore to provide the state of the account in order of