evernote-thrift 1.23.0 → 1.23.1
Sign up to get free protection for your applications and to get access to all the features.
- data/evernote-thrift.gemspec +1 -1
- data/lib/Evernote/EDAM/errors_constants.rb +5 -4
- data/lib/Evernote/EDAM/errors_types.rb +118 -117
- data/lib/Evernote/EDAM/limits_constants.rb +148 -147
- data/lib/Evernote/EDAM/limits_types.rb +5 -4
- data/lib/Evernote/EDAM/note_store.rb +4989 -4989
- data/lib/Evernote/EDAM/note_store_constants.rb +5 -4
- data/lib/Evernote/EDAM/note_store_types.rb +1078 -1077
- data/lib/Evernote/EDAM/types_constants.rb +11 -10
- data/lib/Evernote/EDAM/types_types.rb +2196 -2166
- data/lib/Evernote/EDAM/user_store.rb +603 -603
- data/lib/Evernote/EDAM/user_store_constants.rb +7 -6
- data/lib/Evernote/EDAM/user_store_types.rb +284 -283
- data/lib/thrift.rb +2 -0
- data/lib/thrift/bytes.rb +131 -0
- data/lib/thrift/protocol/base_protocol.rb +97 -10
- data/lib/thrift/protocol/binary_protocol.rb +15 -7
- data/lib/thrift/protocol/compact_protocol.rb +13 -4
- data/lib/thrift/protocol/json_protocol.rb +765 -0
- data/lib/thrift/struct.rb +1 -1
- data/lib/thrift/struct_union.rb +3 -3
- data/lib/thrift/transport/base_transport.rb +22 -20
- data/lib/thrift/transport/buffered_transport.rb +17 -11
- data/lib/thrift/transport/framed_transport.rb +12 -11
- data/lib/thrift/transport/http_client_transport.rb +6 -4
- data/lib/thrift/transport/io_stream_transport.rb +2 -2
- data/lib/thrift/transport/memory_buffer_transport.rb +6 -6
- data/lib/thrift/transport/socket.rb +4 -2
- metadata +4 -2
data/evernote-thrift.gemspec
CHANGED
@@ -6,7 +6,7 @@ require 'evernote-thrift'
|
|
6
6
|
|
7
7
|
majorv = Evernote::EDAM::UserStore::EDAM_VERSION_MAJOR
|
8
8
|
minorv = Evernote::EDAM::UserStore::EDAM_VERSION_MINOR
|
9
|
-
rev =
|
9
|
+
rev = 1
|
10
10
|
version = Gem::Version.new("#{majorv}.#{minorv}.#{rev}").version
|
11
11
|
|
12
12
|
Gem::Specification.new do |s|
|
@@ -1,14 +1,15 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
6
6
|
|
7
|
+
require 'thrift'
|
7
8
|
require 'errors_types'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
10
|
+
module Evernote
|
11
|
+
module EDAM
|
12
|
+
module Error
|
12
13
|
end
|
13
14
|
end
|
14
15
|
end
|
@@ -1,130 +1,131 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
6
6
|
|
7
|
+
require 'thrift'
|
7
8
|
|
8
9
|
module Evernote
|
9
10
|
module EDAM
|
10
11
|
module Error
|
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
|
-
# This exception is thrown by EDAM procedures when a call fails as a result of
|
71
|
-
# a problem in the service that could not be changed through caller action.
|
72
|
-
#
|
73
|
-
# errorCode: The numeric code indicating the type of error that occurred.
|
74
|
-
# must be one of the values of EDAMErrorCode.
|
75
|
-
#
|
76
|
-
# message: This may contain additional information about the error
|
77
|
-
class EDAMSystemException < ::Thrift::Exception
|
78
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
79
|
-
ERRORCODE = 1
|
80
|
-
MESSAGE = 2
|
81
|
-
|
82
|
-
FIELDS = {
|
83
|
-
ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => Evernote::EDAM::Error::EDAMErrorCode},
|
84
|
-
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true}
|
85
|
-
}
|
86
|
-
|
87
|
-
def struct_fields; FIELDS; end
|
88
|
-
|
89
|
-
def validate
|
90
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field errorCode is unset!') unless @errorCode
|
91
|
-
unless @errorCode.nil? || Evernote::EDAM::Error::EDAMErrorCode::VALID_VALUES.include?(@errorCode)
|
92
|
-
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field errorCode!')
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
::Thrift::Struct.generate_accessors self
|
97
|
-
end
|
98
|
-
|
99
|
-
# This exception is thrown by EDAM procedures when a caller asks to perform
|
100
|
-
# an operation on an object that does not exist. This may be thrown based on an invalid
|
101
|
-
# primary identifier (e.g. a bad GUID), or when the caller refers to an object
|
102
|
-
# by another unique identifier (e.g. a User's email address).
|
103
|
-
#
|
104
|
-
# identifier: A description of the object that was not found on the server.
|
105
|
-
# For example, "Note.notebookGuid" when a caller attempts to create a note in a
|
106
|
-
# notebook that does not exist in the user's account.
|
107
|
-
#
|
108
|
-
# key: The value passed from the client in the identifier, which was not
|
109
|
-
# found. For example, the GUID that was not found.
|
110
|
-
class EDAMNotFoundException < ::Thrift::Exception
|
111
|
-
include ::Thrift::Struct, ::Thrift::Struct_Union
|
112
|
-
IDENTIFIER = 1
|
113
|
-
KEY = 2
|
114
|
-
|
115
|
-
FIELDS = {
|
116
|
-
IDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'identifier', :optional => true},
|
117
|
-
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :optional => true}
|
118
|
-
}
|
119
|
-
|
120
|
-
def struct_fields; FIELDS; end
|
121
|
-
|
122
|
-
def validate
|
123
|
-
end
|
124
|
-
|
125
|
-
::Thrift::Struct.generate_accessors self
|
126
|
-
end
|
12
|
+
module EDAMErrorCode
|
13
|
+
UNKNOWN = 1
|
14
|
+
BAD_DATA_FORMAT = 2
|
15
|
+
PERMISSION_DENIED = 3
|
16
|
+
INTERNAL_ERROR = 4
|
17
|
+
DATA_REQUIRED = 5
|
18
|
+
LIMIT_REACHED = 6
|
19
|
+
QUOTA_REACHED = 7
|
20
|
+
INVALID_AUTH = 8
|
21
|
+
AUTH_EXPIRED = 9
|
22
|
+
DATA_CONFLICT = 10
|
23
|
+
ENML_VALIDATION = 11
|
24
|
+
SHARD_UNAVAILABLE = 12
|
25
|
+
LEN_TOO_SHORT = 13
|
26
|
+
LEN_TOO_LONG = 14
|
27
|
+
TOO_FEW = 15
|
28
|
+
TOO_MANY = 16
|
29
|
+
UNSUPPORTED_OPERATION = 17
|
30
|
+
VALUE_MAP = {1 => "UNKNOWN", 2 => "BAD_DATA_FORMAT", 3 => "PERMISSION_DENIED", 4 => "INTERNAL_ERROR", 5 => "DATA_REQUIRED", 6 => "LIMIT_REACHED", 7 => "QUOTA_REACHED", 8 => "INVALID_AUTH", 9 => "AUTH_EXPIRED", 10 => "DATA_CONFLICT", 11 => "ENML_VALIDATION", 12 => "SHARD_UNAVAILABLE", 13 => "LEN_TOO_SHORT", 14 => "LEN_TOO_LONG", 15 => "TOO_FEW", 16 => "TOO_MANY", 17 => "UNSUPPORTED_OPERATION"}
|
31
|
+
VALID_VALUES = Set.new([UNKNOWN, BAD_DATA_FORMAT, PERMISSION_DENIED, INTERNAL_ERROR, DATA_REQUIRED, LIMIT_REACHED, QUOTA_REACHED, INVALID_AUTH, AUTH_EXPIRED, DATA_CONFLICT, ENML_VALIDATION, SHARD_UNAVAILABLE, LEN_TOO_SHORT, LEN_TOO_LONG, TOO_FEW, TOO_MANY, UNSUPPORTED_OPERATION]).freeze
|
32
|
+
end
|
33
|
+
|
34
|
+
# This exception is thrown by EDAM procedures when a call fails as a result of
|
35
|
+
# a problem that a caller may be able to resolve. For example, if the user
|
36
|
+
# attempts to add a note to their account which would exceed their storage
|
37
|
+
# quota, this type of exception may be thrown to indicate the source of the
|
38
|
+
# error so that they can choose an alternate action.
|
39
|
+
#
|
40
|
+
# This exception would not be used for internal system errors that do not
|
41
|
+
# reflect user actions, but rather reflect a problem within the service that
|
42
|
+
# the user cannot resolve.
|
43
|
+
#
|
44
|
+
# errorCode: The numeric code indicating the type of error that occurred.
|
45
|
+
# must be one of the values of EDAMErrorCode.
|
46
|
+
#
|
47
|
+
# parameter: If the error applied to a particular input parameter, this will
|
48
|
+
# indicate which parameter.
|
49
|
+
class EDAMUserException < ::Thrift::Exception
|
50
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
51
|
+
ERRORCODE = 1
|
52
|
+
PARAMETER = 2
|
53
|
+
|
54
|
+
FIELDS = {
|
55
|
+
ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => ::Evernote::EDAM::Error::EDAMErrorCode},
|
56
|
+
PARAMETER => {:type => ::Thrift::Types::STRING, :name => 'parameter', :optional => true}
|
57
|
+
}
|
58
|
+
|
59
|
+
def struct_fields; FIELDS; end
|
60
|
+
|
61
|
+
def validate
|
62
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field errorCode is unset!') unless @errorCode
|
63
|
+
unless @errorCode.nil? || ::Evernote::EDAM::Error::EDAMErrorCode::VALID_VALUES.include?(@errorCode)
|
64
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field errorCode!')
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
::Thrift::Struct.generate_accessors self
|
69
|
+
end
|
127
70
|
|
71
|
+
# This exception is thrown by EDAM procedures when a call fails as a result of
|
72
|
+
# a problem in the service that could not be changed through caller action.
|
73
|
+
#
|
74
|
+
# errorCode: The numeric code indicating the type of error that occurred.
|
75
|
+
# must be one of the values of EDAMErrorCode.
|
76
|
+
#
|
77
|
+
# message: This may contain additional information about the error
|
78
|
+
class EDAMSystemException < ::Thrift::Exception
|
79
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
80
|
+
ERRORCODE = 1
|
81
|
+
MESSAGE = 2
|
82
|
+
|
83
|
+
FIELDS = {
|
84
|
+
ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => ::Evernote::EDAM::Error::EDAMErrorCode},
|
85
|
+
MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message', :optional => true}
|
86
|
+
}
|
87
|
+
|
88
|
+
def struct_fields; FIELDS; end
|
89
|
+
|
90
|
+
def validate
|
91
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field errorCode is unset!') unless @errorCode
|
92
|
+
unless @errorCode.nil? || ::Evernote::EDAM::Error::EDAMErrorCode::VALID_VALUES.include?(@errorCode)
|
93
|
+
raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field errorCode!')
|
128
94
|
end
|
129
95
|
end
|
96
|
+
|
97
|
+
::Thrift::Struct.generate_accessors self
|
98
|
+
end
|
99
|
+
|
100
|
+
# This exception is thrown by EDAM procedures when a caller asks to perform
|
101
|
+
# an operation on an object that does not exist. This may be thrown based on an invalid
|
102
|
+
# primary identifier (e.g. a bad GUID), or when the caller refers to an object
|
103
|
+
# by another unique identifier (e.g. a User's email address).
|
104
|
+
#
|
105
|
+
# identifier: A description of the object that was not found on the server.
|
106
|
+
# For example, "Note.notebookGuid" when a caller attempts to create a note in a
|
107
|
+
# notebook that does not exist in the user's account.
|
108
|
+
#
|
109
|
+
# key: The value passed from the client in the identifier, which was not
|
110
|
+
# found. For example, the GUID that was not found.
|
111
|
+
class EDAMNotFoundException < ::Thrift::Exception
|
112
|
+
include ::Thrift::Struct, ::Thrift::Struct_Union
|
113
|
+
IDENTIFIER = 1
|
114
|
+
KEY = 2
|
115
|
+
|
116
|
+
FIELDS = {
|
117
|
+
IDENTIFIER => {:type => ::Thrift::Types::STRING, :name => 'identifier', :optional => true},
|
118
|
+
KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :optional => true}
|
119
|
+
}
|
120
|
+
|
121
|
+
def struct_fields; FIELDS; end
|
122
|
+
|
123
|
+
def validate
|
124
|
+
end
|
125
|
+
|
126
|
+
::Thrift::Struct.generate_accessors self
|
130
127
|
end
|
128
|
+
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
@@ -1,285 +1,286 @@
|
|
1
1
|
#
|
2
|
-
# Autogenerated by Thrift Compiler (0.
|
2
|
+
# Autogenerated by Thrift Compiler (0.9.0)
|
3
3
|
#
|
4
4
|
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
5
5
|
#
|
6
6
|
|
7
|
+
require 'thrift'
|
7
8
|
require 'limits_types'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
module Evernote
|
11
|
+
module EDAM
|
12
|
+
module Limits
|
13
|
+
EDAM_ATTRIBUTE_LEN_MIN = 1
|
13
14
|
|
14
|
-
|
15
|
+
EDAM_ATTRIBUTE_LEN_MAX = 4096
|
15
16
|
|
16
|
-
|
17
|
+
EDAM_ATTRIBUTE_REGEX = %q"^[^\\p{Cc}\\p{Zl}\\p{Zp}]{1,4096}$"
|
17
18
|
|
18
|
-
|
19
|
+
EDAM_ATTRIBUTE_LIST_MAX = 100
|
19
20
|
|
20
|
-
|
21
|
+
EDAM_ATTRIBUTE_MAP_MAX = 100
|
21
22
|
|
22
|
-
|
23
|
+
EDAM_GUID_LEN_MIN = 36
|
23
24
|
|
24
|
-
|
25
|
+
EDAM_GUID_LEN_MAX = 36
|
25
26
|
|
26
|
-
|
27
|
+
EDAM_GUID_REGEX = %q"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
27
28
|
|
28
|
-
|
29
|
+
EDAM_EMAIL_LEN_MIN = 6
|
29
30
|
|
30
|
-
|
31
|
+
EDAM_EMAIL_LEN_MAX = 255
|
31
32
|
|
32
|
-
|
33
|
+
EDAM_EMAIL_LOCAL_REGEX = %q"^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*$"
|
33
34
|
|
34
|
-
|
35
|
+
EDAM_EMAIL_DOMAIN_REGEX = %q"^[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.([A-Za-z]{2,})$"
|
35
36
|
|
36
|
-
|
37
|
+
EDAM_EMAIL_REGEX = %q"^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.([A-Za-z]{2,})$"
|
37
38
|
|
38
|
-
|
39
|
+
EDAM_VAT_REGEX = %q"[A-Za-z]{2}.+"
|
39
40
|
|
40
|
-
|
41
|
+
EDAM_TIMEZONE_LEN_MIN = 1
|
41
42
|
|
42
|
-
|
43
|
+
EDAM_TIMEZONE_LEN_MAX = 32
|
43
44
|
|
44
|
-
|
45
|
+
EDAM_TIMEZONE_REGEX = %q"^([A-Za-z_-]+(/[A-Za-z_-]+)*)|(GMT(-|\\+)[0-9]{1,2}(:[0-9]{2})?)$"
|
45
46
|
|
46
|
-
|
47
|
+
EDAM_MIME_LEN_MIN = 3
|
47
48
|
|
48
|
-
|
49
|
+
EDAM_MIME_LEN_MAX = 255
|
49
50
|
|
50
|
-
|
51
|
+
EDAM_MIME_REGEX = %q"^[A-Za-z]+/[A-Za-z0-9._+-]+$"
|
51
52
|
|
52
|
-
|
53
|
+
EDAM_MIME_TYPE_GIF = %q"image/gif"
|
53
54
|
|
54
|
-
|
55
|
+
EDAM_MIME_TYPE_JPEG = %q"image/jpeg"
|
55
56
|
|
56
|
-
|
57
|
+
EDAM_MIME_TYPE_PNG = %q"image/png"
|
57
58
|
|
58
|
-
|
59
|
+
EDAM_MIME_TYPE_WAV = %q"audio/wav"
|
59
60
|
|
60
|
-
|
61
|
+
EDAM_MIME_TYPE_MP3 = %q"audio/mpeg"
|
61
62
|
|
62
|
-
|
63
|
+
EDAM_MIME_TYPE_AMR = %q"audio/amr"
|
63
64
|
|
64
|
-
|
65
|
+
EDAM_MIME_TYPE_AAC = %q"audio/aac"
|
65
66
|
|
66
|
-
|
67
|
+
EDAM_MIME_TYPE_M4A = %q"audio/mp4"
|
67
68
|
|
68
|
-
|
69
|
+
EDAM_MIME_TYPE_MP4_VIDEO = %q"video/mp4"
|
69
70
|
|
70
|
-
|
71
|
+
EDAM_MIME_TYPE_INK = %q"application/vnd.evernote.ink"
|
71
72
|
|
72
|
-
|
73
|
+
EDAM_MIME_TYPE_PDF = %q"application/pdf"
|
73
74
|
|
74
|
-
|
75
|
+
EDAM_MIME_TYPE_DEFAULT = %q"application/octet-stream"
|
75
76
|
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
77
|
+
EDAM_MIME_TYPES = Set.new([
|
78
|
+
%q"image/gif",
|
79
|
+
%q"image/jpeg",
|
80
|
+
%q"image/png",
|
81
|
+
%q"audio/wav",
|
82
|
+
%q"audio/mpeg",
|
83
|
+
%q"audio/amr",
|
84
|
+
%q"application/vnd.evernote.ink",
|
85
|
+
%q"application/pdf",
|
86
|
+
%q"video/mp4",
|
87
|
+
%q"audio/aac",
|
88
|
+
%q"audio/mp4",
|
89
|
+
])
|
89
90
|
|
90
|
-
|
91
|
+
EDAM_SEARCH_QUERY_LEN_MIN = 0
|
91
92
|
|
92
|
-
|
93
|
+
EDAM_SEARCH_QUERY_LEN_MAX = 1024
|
93
94
|
|
94
|
-
|
95
|
+
EDAM_SEARCH_QUERY_REGEX = %q"^[^\\p{Cc}\\p{Zl}\\p{Zp}]{0,1024}$"
|
95
96
|
|
96
|
-
|
97
|
+
EDAM_HASH_LEN = 16
|
97
98
|
|
98
|
-
|
99
|
+
EDAM_USER_USERNAME_LEN_MIN = 1
|
99
100
|
|
100
|
-
|
101
|
+
EDAM_USER_USERNAME_LEN_MAX = 64
|
101
102
|
|
102
|
-
|
103
|
+
EDAM_USER_USERNAME_REGEX = %q"^[a-z0-9]([a-z0-9_-]{0,62}[a-z0-9])?$"
|
103
104
|
|
104
|
-
|
105
|
+
EDAM_USER_NAME_LEN_MIN = 1
|
105
106
|
|
106
|
-
|
107
|
+
EDAM_USER_NAME_LEN_MAX = 255
|
107
108
|
|
108
|
-
|
109
|
+
EDAM_USER_NAME_REGEX = %q"^[^\\p{Cc}\\p{Zl}\\p{Zp}]{1,255}$"
|
109
110
|
|
110
|
-
|
111
|
+
EDAM_TAG_NAME_LEN_MIN = 1
|
111
112
|
|
112
|
-
|
113
|
+
EDAM_TAG_NAME_LEN_MAX = 100
|
113
114
|
|
114
|
-
|
115
|
+
EDAM_TAG_NAME_REGEX = %q"^[^,\\p{Cc}\\p{Z}]([^,\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^,\\p{Cc}\\p{Z}])?$"
|
115
116
|
|
116
|
-
|
117
|
+
EDAM_NOTE_TITLE_LEN_MIN = 1
|
117
118
|
|
118
|
-
|
119
|
+
EDAM_NOTE_TITLE_LEN_MAX = 255
|
119
120
|
|
120
|
-
|
121
|
+
EDAM_NOTE_TITLE_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,253}[^\\p{Cc}\\p{Z}])?$"
|
121
122
|
|
122
|
-
|
123
|
+
EDAM_NOTE_CONTENT_LEN_MIN = 0
|
123
124
|
|
124
|
-
|
125
|
+
EDAM_NOTE_CONTENT_LEN_MAX = 5242880
|
125
126
|
|
126
|
-
|
127
|
+
EDAM_APPLICATIONDATA_NAME_LEN_MIN = 3
|
127
128
|
|
128
|
-
|
129
|
+
EDAM_APPLICATIONDATA_NAME_LEN_MAX = 32
|
129
130
|
|
130
|
-
|
131
|
+
EDAM_APPLICATIONDATA_VALUE_LEN_MIN = 0
|
131
132
|
|
132
|
-
|
133
|
+
EDAM_APPLICATIONDATA_VALUE_LEN_MAX = 4092
|
133
134
|
|
134
|
-
|
135
|
+
EDAM_APPLICATIONDATA_ENTRY_LEN_MAX = 4095
|
135
136
|
|
136
|
-
|
137
|
+
EDAM_APPLICATIONDATA_NAME_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$"
|
137
138
|
|
138
|
-
|
139
|
+
EDAM_APPLICATIONDATA_VALUE_REGEX = %q"^[^\\p{Cc}]{0,4092}$"
|
139
140
|
|
140
|
-
|
141
|
+
EDAM_NOTEBOOK_NAME_LEN_MIN = 1
|
141
142
|
|
142
|
-
|
143
|
+
EDAM_NOTEBOOK_NAME_LEN_MAX = 100
|
143
144
|
|
144
|
-
|
145
|
+
EDAM_NOTEBOOK_NAME_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$"
|
145
146
|
|
146
|
-
|
147
|
+
EDAM_NOTEBOOK_STACK_LEN_MIN = 1
|
147
148
|
|
148
|
-
|
149
|
+
EDAM_NOTEBOOK_STACK_LEN_MAX = 100
|
149
150
|
|
150
|
-
|
151
|
+
EDAM_NOTEBOOK_STACK_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$"
|
151
152
|
|
152
|
-
|
153
|
+
EDAM_PUBLISHING_URI_LEN_MIN = 1
|
153
154
|
|
154
|
-
|
155
|
+
EDAM_PUBLISHING_URI_LEN_MAX = 255
|
155
156
|
|
156
|
-
|
157
|
+
EDAM_PUBLISHING_URI_REGEX = %q"^[a-zA-Z0-9.~_+-]{1,255}$"
|
157
158
|
|
158
|
-
|
159
|
-
|
160
|
-
|
159
|
+
EDAM_PUBLISHING_URI_PROHIBITED = Set.new([
|
160
|
+
%q"..",
|
161
|
+
])
|
161
162
|
|
162
|
-
|
163
|
+
EDAM_PUBLISHING_DESCRIPTION_LEN_MIN = 1
|
163
164
|
|
164
|
-
|
165
|
+
EDAM_PUBLISHING_DESCRIPTION_LEN_MAX = 200
|
165
166
|
|
166
|
-
|
167
|
+
EDAM_PUBLISHING_DESCRIPTION_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,198}[^\\p{Cc}\\p{Z}])?$"
|
167
168
|
|
168
|
-
|
169
|
+
EDAM_SAVED_SEARCH_NAME_LEN_MIN = 1
|
169
170
|
|
170
|
-
|
171
|
+
EDAM_SAVED_SEARCH_NAME_LEN_MAX = 100
|
171
172
|
|
172
|
-
|
173
|
+
EDAM_SAVED_SEARCH_NAME_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^\\p{Cc}\\p{Z}])?$"
|
173
174
|
|
174
|
-
|
175
|
+
EDAM_USER_PASSWORD_LEN_MIN = 6
|
175
176
|
|
176
|
-
|
177
|
+
EDAM_USER_PASSWORD_LEN_MAX = 64
|
177
178
|
|
178
|
-
|
179
|
+
EDAM_USER_PASSWORD_REGEX = %q"^[A-Za-z0-9!#$%&'()*+,./:;<=>?@^_`{|}~\\[\\]\\\\-]{6,64}$"
|
179
180
|
|
180
|
-
|
181
|
+
EDAM_BUSINESS_URI_LEN_MAX = 32
|
181
182
|
|
182
|
-
|
183
|
+
EDAM_NOTE_TAGS_MAX = 100
|
183
184
|
|
184
|
-
|
185
|
+
EDAM_NOTE_RESOURCES_MAX = 1000
|
185
186
|
|
186
|
-
|
187
|
+
EDAM_USER_TAGS_MAX = 100000
|
187
188
|
|
188
|
-
|
189
|
+
EDAM_BUSINESS_TAGS_MAX = 100000
|
189
190
|
|
190
|
-
|
191
|
+
EDAM_USER_SAVED_SEARCHES_MAX = 100
|
191
192
|
|
192
|
-
|
193
|
+
EDAM_USER_NOTES_MAX = 100000
|
193
194
|
|
194
|
-
|
195
|
+
EDAM_BUSINESS_NOTES_MAX = 500000
|
195
196
|
|
196
|
-
|
197
|
+
EDAM_USER_NOTEBOOKS_MAX = 250
|
197
198
|
|
198
|
-
|
199
|
+
EDAM_BUSINESS_NOTEBOOKS_MAX = 5000
|
199
200
|
|
200
|
-
|
201
|
+
EDAM_USER_RECENT_MAILED_ADDRESSES_MAX = 10
|
201
202
|
|
202
|
-
|
203
|
+
EDAM_USER_MAIL_LIMIT_DAILY_FREE = 50
|
203
204
|
|
204
|
-
|
205
|
+
EDAM_USER_MAIL_LIMIT_DAILY_PREMIUM = 200
|
205
206
|
|
206
|
-
|
207
|
+
EDAM_USER_UPLOAD_LIMIT_FREE = 62914560
|
207
208
|
|
208
|
-
|
209
|
+
EDAM_USER_UPLOAD_LIMIT_PREMIUM = 1073741824
|
209
210
|
|
210
|
-
|
211
|
+
EDAM_USER_UPLOAD_LIMIT_BUSINESS = 1073741824
|
211
212
|
|
212
|
-
|
213
|
+
EDAM_NOTE_SIZE_MAX_FREE = 26214400
|
213
214
|
|
214
|
-
|
215
|
+
EDAM_NOTE_SIZE_MAX_PREMIUM = 104857600
|
215
216
|
|
216
|
-
|
217
|
+
EDAM_RESOURCE_SIZE_MAX_FREE = 26214400
|
217
218
|
|
218
|
-
|
219
|
+
EDAM_RESOURCE_SIZE_MAX_PREMIUM = 104857600
|
219
220
|
|
220
|
-
|
221
|
+
EDAM_USER_LINKED_NOTEBOOK_MAX = 100
|
221
222
|
|
222
|
-
|
223
|
+
EDAM_NOTEBOOK_SHARED_NOTEBOOK_MAX = 250
|
223
224
|
|
224
|
-
|
225
|
+
EDAM_NOTE_CONTENT_CLASS_LEN_MIN = 3
|
225
226
|
|
226
|
-
|
227
|
+
EDAM_NOTE_CONTENT_CLASS_LEN_MAX = 32
|
227
228
|
|
228
|
-
|
229
|
+
EDAM_HELLO_APP_CONTENT_CLASS_PREFIX = %q"evernote.hello."
|
229
230
|
|
230
|
-
|
231
|
+
EDAM_FOOD_APP_CONTENT_CLASS_PREFIX = %q"evernote.food."
|
231
232
|
|
232
|
-
|
233
|
+
EDAM_NOTE_CONTENT_CLASS_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$"
|
233
234
|
|
234
|
-
|
235
|
+
EDAM_CONTENT_CLASS_HELLO_ENCOUNTER = %q"evernote.hello.encounter"
|
235
236
|
|
236
|
-
|
237
|
+
EDAM_CONTENT_CLASS_HELLO_PROFILE = %q"evernote.hello.profile"
|
237
238
|
|
238
|
-
|
239
|
+
EDAM_CONTENT_CLASS_FOOD_MEAL = %q"evernote.food.meal"
|
239
240
|
|
240
|
-
|
241
|
+
EDAM_CONTENT_CLASS_SKITCH = %q"evernote.skitch"
|
241
242
|
|
242
|
-
|
243
|
+
EDAM_CONTENT_CLASS_PENULTIMATE = %q"evernote.penultimate"
|
243
244
|
|
244
|
-
|
245
|
+
EDAM_RELATED_PLAINTEXT_LEN_MIN = 1
|
245
246
|
|
246
|
-
|
247
|
+
EDAM_RELATED_PLAINTEXT_LEN_MAX = 131072
|
247
248
|
|
248
|
-
|
249
|
+
EDAM_RELATED_MAX_NOTES = 25
|
249
250
|
|
250
|
-
|
251
|
+
EDAM_RELATED_MAX_NOTEBOOKS = 1
|
251
252
|
|
252
|
-
|
253
|
+
EDAM_RELATED_MAX_TAGS = 25
|
253
254
|
|
254
|
-
|
255
|
+
EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MIN = 1
|
255
256
|
|
256
|
-
|
257
|
+
EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MAX = 200
|
257
258
|
|
258
|
-
|
259
|
+
EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_REGEX = %q"^[^\\p{Cc}\\p{Z}]([^\\p{Cc}\\p{Zl}\\p{Zp}]{0,198}[^\\p{Cc}\\p{Z}])?$"
|
259
260
|
|
260
|
-
|
261
|
+
EDAM_PREFERENCE_NAME_LEN_MIN = 3
|
261
262
|
|
262
|
-
|
263
|
+
EDAM_PREFERENCE_NAME_LEN_MAX = 32
|
263
264
|
|
264
|
-
|
265
|
+
EDAM_PREFERENCE_VALUE_LEN_MIN = 1
|
265
266
|
|
266
|
-
|
267
|
+
EDAM_PREFERENCE_VALUE_LEN_MAX = 1024
|
267
268
|
|
268
|
-
|
269
|
+
EDAM_MAX_PREFERENCES = 100
|
269
270
|
|
270
|
-
|
271
|
+
EDAM_MAX_VALUES_PER_PREFERENCE = 250
|
271
272
|
|
272
|
-
|
273
|
+
EDAM_PREFERENCE_NAME_REGEX = %q"^[A-Za-z0-9_.-]{3,32}$"
|
273
274
|
|
274
|
-
|
275
|
+
EDAM_PREFERENCE_VALUE_REGEX = %q"^[^\\p{Cc}]{1,1024}$"
|
275
276
|
|
276
|
-
|
277
|
+
EDAM_DEVICE_ID_LEN_MAX = 32
|
277
278
|
|
278
|
-
|
279
|
+
EDAM_DEVICE_ID_REGEX = %q"^[^\\p{Cc}]{1,32}$"
|
279
280
|
|
280
|
-
|
281
|
+
EDAM_DEVICE_DESCRIPTION_LEN_MAX = 64
|
281
282
|
|
282
|
-
|
283
|
+
EDAM_DEVICE_DESCRIPTION_REGEX = %q"^[^\\p{Cc}]{1,64}$"
|
283
284
|
|
284
285
|
end
|
285
286
|
end
|