nylas-legacy 5.17.0 → 5.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nylas-legacy/account.rb +56 -0
- data/lib/nylas-legacy/api.rb +265 -0
- data/lib/nylas-legacy/application_details.rb +13 -0
- data/lib/nylas-legacy/calendar.rb +46 -0
- data/lib/nylas-legacy/calendar_collection.rb +144 -0
- data/lib/nylas-legacy/categorize.rb +14 -0
- data/lib/nylas-legacy/collection.rb +175 -0
- data/lib/nylas-legacy/component.rb +35 -0
- data/lib/nylas-legacy/component_collection.rb +10 -0
- data/lib/nylas-legacy/constraints.rb +56 -0
- data/lib/nylas-legacy/contact.rb +53 -0
- data/lib/nylas-legacy/contact_group.rb +23 -0
- data/lib/nylas-legacy/current_account.rb +23 -0
- data/lib/nylas-legacy/delta.rb +56 -0
- data/lib/nylas-legacy/deltas.rb +19 -0
- data/lib/nylas-legacy/deltas_collection.rb +40 -0
- data/lib/nylas-legacy/draft.rb +101 -0
- data/lib/nylas-legacy/email_address.rb +12 -0
- data/lib/nylas-legacy/errors.rb +111 -0
- data/lib/nylas-legacy/event.rb +144 -0
- data/lib/nylas-legacy/event_collection.rb +15 -0
- data/lib/nylas-legacy/event_conferencing.rb +12 -0
- data/lib/nylas-legacy/event_conferencing_autocreate.rb +10 -0
- data/lib/nylas-legacy/event_conferencing_details.rb +14 -0
- data/lib/nylas-legacy/event_notification.rb +17 -0
- data/lib/nylas-legacy/file.rb +75 -0
- data/lib/nylas-legacy/filter_attributes.rb +25 -0
- data/lib/nylas-legacy/folder.rb +26 -0
- data/lib/nylas-legacy/free_busy.rb +13 -0
- data/lib/nylas-legacy/free_busy_collection.rb +48 -0
- data/lib/nylas-legacy/http_client.rb +280 -0
- data/lib/nylas-legacy/im_address.rb +11 -0
- data/lib/nylas-legacy/job_status.rb +27 -0
- data/lib/nylas-legacy/job_status_collection.rb +21 -0
- data/lib/nylas-legacy/label.rb +27 -0
- data/lib/nylas-legacy/logging.rb +41 -0
- data/lib/nylas-legacy/message.rb +98 -0
- data/lib/nylas-legacy/message_headers.rb +27 -0
- data/lib/nylas-legacy/message_tracking.rb +13 -0
- data/lib/nylas-legacy/model/attributable.rb +89 -0
- data/lib/nylas-legacy/model/attribute_definition.rb +24 -0
- data/lib/nylas-legacy/model/attributes.rb +97 -0
- data/lib/nylas-legacy/model/list_attribute_definition.rb +39 -0
- data/lib/nylas-legacy/model/transferable.rb +53 -0
- data/lib/nylas-legacy/model.rb +217 -0
- data/lib/nylas-legacy/native_authentication.rb +39 -0
- data/lib/nylas-legacy/neural.rb +87 -0
- data/lib/nylas-legacy/neural_categorizer.rb +29 -0
- data/lib/nylas-legacy/neural_clean_conversation.rb +33 -0
- data/lib/nylas-legacy/neural_contact_link.rb +11 -0
- data/lib/nylas-legacy/neural_contact_name.rb +11 -0
- data/lib/nylas-legacy/neural_message_options.rb +35 -0
- data/lib/nylas-legacy/neural_ocr.rb +16 -0
- data/lib/nylas-legacy/neural_sentiment_analysis.rb +17 -0
- data/lib/nylas-legacy/neural_signature_contact.rb +81 -0
- data/lib/nylas-legacy/neural_signature_extraction.rb +18 -0
- data/lib/nylas-legacy/new_message.rb +41 -0
- data/lib/nylas-legacy/nylas_date.rb +25 -0
- data/lib/nylas-legacy/open_hours.rb +15 -0
- data/lib/nylas-legacy/outbox.rb +116 -0
- data/lib/nylas-legacy/outbox_job_status.rb +19 -0
- data/lib/nylas-legacy/outbox_message.rb +17 -0
- data/lib/nylas-legacy/participant.rb +13 -0
- data/lib/nylas-legacy/phone_number.rb +11 -0
- data/lib/nylas-legacy/physical_address.rb +17 -0
- data/lib/nylas-legacy/raw_message.rb +25 -0
- data/lib/nylas-legacy/recurrence.rb +11 -0
- data/lib/nylas-legacy/registry.rb +42 -0
- data/lib/nylas-legacy/room_resource.rb +19 -0
- data/lib/nylas-legacy/rsvp.rb +24 -0
- data/lib/nylas-legacy/scheduler.rb +51 -0
- data/lib/nylas-legacy/scheduler_booking_confirmation.rb +24 -0
- data/lib/nylas-legacy/scheduler_booking_request.rb +17 -0
- data/lib/nylas-legacy/scheduler_collection.rb +104 -0
- data/lib/nylas-legacy/scheduler_config.rb +20 -0
- data/lib/nylas-legacy/scheduler_time_slot.rb +14 -0
- data/lib/nylas-legacy/search_collection.rb +14 -0
- data/lib/nylas-legacy/send_grid_verified_status.rb +12 -0
- data/lib/nylas-legacy/services/tunnel.rb +128 -0
- data/lib/nylas-legacy/thread.rb +66 -0
- data/lib/nylas-legacy/time_slot.rb +16 -0
- data/lib/nylas-legacy/time_slot_capacity.rb +13 -0
- data/lib/nylas-legacy/timespan.rb +20 -0
- data/lib/nylas-legacy/token_info.rb +20 -0
- data/lib/nylas-legacy/types.rb +169 -0
- data/lib/nylas-legacy/version.rb +5 -0
- data/lib/nylas-legacy/web_page.rb +11 -0
- data/lib/nylas-legacy/webhook.rb +111 -0
- data/lib/nylas-legacy/when.rb +75 -0
- data/lib/nylas-legacy.rb +164 -0
- metadata +175 -3
@@ -0,0 +1,111 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module WebhookState
|
4
|
+
# Module representing the possible 'state' values in a Webhook
|
5
|
+
# @see https://developer.nylas.com/docs/api#post/a/client_id/webhooks
|
6
|
+
|
7
|
+
ACTIVE = "active"
|
8
|
+
INACTIVE = "inactive"
|
9
|
+
end
|
10
|
+
|
11
|
+
module WebhookTrigger
|
12
|
+
# Module representing the possible 'trigger' values in a Webhook
|
13
|
+
# @see https://developer.nylas.com/docs/api#post/a/client_id/webhooks
|
14
|
+
|
15
|
+
ACCOUNT_CONNECTED = "account.connected"
|
16
|
+
ACCOUNT_RUNNING = "account.running"
|
17
|
+
ACCOUNT_STOPPED = "account.stopped"
|
18
|
+
ACCOUNT_INVALID = "account.invalid"
|
19
|
+
ACCOUNT_SYNC_ERROR = "account.sync_error"
|
20
|
+
MESSAGE_CREATED = "message.created"
|
21
|
+
MESSAGE_OPENED = "message.opened"
|
22
|
+
MESSAGE_LINK_CLICKED = "message.link_clicked"
|
23
|
+
MESSAGE_UPDATED = "message.updated"
|
24
|
+
MESSAGE_BOUNCED = "message.bounced"
|
25
|
+
THREAD_REPLIED = "thread.replied"
|
26
|
+
CONTACT_CREATED = "contact.created"
|
27
|
+
CONTACT_UPDATED = "contact.updated"
|
28
|
+
CONTACT_DELETED = "contact.deleted"
|
29
|
+
CALENDAR_CREATED = "calendar.created"
|
30
|
+
CALENDAR_UPDATED = "calendar.updated"
|
31
|
+
CALENDAR_DELETED = "calendar.deleted"
|
32
|
+
EVENT_CREATED = "event.created"
|
33
|
+
EVENT_UPDATED = "event.updated"
|
34
|
+
EVENT_DELETED = "event.deleted"
|
35
|
+
JOB_SUCCESSFUL = "job.successful"
|
36
|
+
JOB_FAILED = "job.failed"
|
37
|
+
JOB_DELAYED = "job.delayed"
|
38
|
+
JOB_CANCELLED = "job.cancelled"
|
39
|
+
end
|
40
|
+
|
41
|
+
module NylasLegacy
|
42
|
+
# Represents a webhook attached to your application.
|
43
|
+
# @see https://docs.nylas.com/reference#webhooks
|
44
|
+
class Webhook
|
45
|
+
require "openssl"
|
46
|
+
include Model
|
47
|
+
self.creatable = true
|
48
|
+
self.listable = true
|
49
|
+
self.showable = true
|
50
|
+
self.updatable = true
|
51
|
+
self.destroyable = true
|
52
|
+
self.auth_method = HttpClient::AuthMethod::BASIC
|
53
|
+
attribute :id, :string, read_only: true
|
54
|
+
attribute :application_id, :string, read_only: true
|
55
|
+
|
56
|
+
attribute :callback_url, :string
|
57
|
+
attribute :state, :string
|
58
|
+
attribute :version, :string, read_only: true
|
59
|
+
has_n_of_attribute :triggers, :string
|
60
|
+
|
61
|
+
STATE = [:inactive].freeze
|
62
|
+
|
63
|
+
def save
|
64
|
+
result = if persisted?
|
65
|
+
update_call(update_payload)
|
66
|
+
else
|
67
|
+
create
|
68
|
+
end
|
69
|
+
|
70
|
+
attributes.merge(result)
|
71
|
+
end
|
72
|
+
|
73
|
+
def save_all_attributes
|
74
|
+
save
|
75
|
+
end
|
76
|
+
|
77
|
+
def update(**data)
|
78
|
+
raise ArgumentError, "Only 'state' is allowed to be updated" if data.length > 1 || !data.key?(:state)
|
79
|
+
|
80
|
+
attributes.merge(**data)
|
81
|
+
payload = JSON.dump(data)
|
82
|
+
update_call(payload)
|
83
|
+
|
84
|
+
true
|
85
|
+
end
|
86
|
+
|
87
|
+
def update_all_attributes(**data)
|
88
|
+
update(**data)
|
89
|
+
end
|
90
|
+
|
91
|
+
def self.resources_path(api:)
|
92
|
+
"/a/#{api.app_id}/webhooks"
|
93
|
+
end
|
94
|
+
|
95
|
+
# Verify incoming webhook signature came from Nylas
|
96
|
+
# @param nylas_signature [str] The signature to verify
|
97
|
+
# @param raw_body [str] The raw body from the payload
|
98
|
+
# @param client_secret [str] Client secret of the app receiving the webhook
|
99
|
+
# @return [Boolean] True if the webhook signature was verified from Nylas
|
100
|
+
def self.verify_webhook_signature(nylas_signature, raw_body, client_secret)
|
101
|
+
digest = OpenSSL::HMAC.hexdigest("SHA256", client_secret, raw_body)
|
102
|
+
digest == nylas_signature
|
103
|
+
end
|
104
|
+
|
105
|
+
private
|
106
|
+
|
107
|
+
def update_payload
|
108
|
+
JSON.dump({ state: state })
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module NylasLegacy
|
4
|
+
require "tzinfo"
|
5
|
+
|
6
|
+
# Structure to represent all the Nylas time types.
|
7
|
+
# @see https://docs.nylas.com/reference#section-time
|
8
|
+
class When
|
9
|
+
extend Forwardable
|
10
|
+
|
11
|
+
include Model::Attributable
|
12
|
+
|
13
|
+
attribute :object, :string, read_only: true
|
14
|
+
|
15
|
+
# when object == 'date'
|
16
|
+
attribute :date, :date
|
17
|
+
|
18
|
+
# when object == 'datespan'
|
19
|
+
attribute :start_date, :date
|
20
|
+
attribute :end_date, :date
|
21
|
+
|
22
|
+
# when object == 'time'
|
23
|
+
attribute :time, :unix_timestamp
|
24
|
+
# Timezone must be set to a valid IANA database timezone name
|
25
|
+
attribute :timezone, :string
|
26
|
+
|
27
|
+
# when object == 'timespan'
|
28
|
+
attribute :start_time, :unix_timestamp
|
29
|
+
attribute :end_time, :unix_timestamp
|
30
|
+
# Both timezone fields must be set to a valid IANA database timezone name
|
31
|
+
attribute :start_timezone, :string
|
32
|
+
attribute :end_timezone, :string
|
33
|
+
|
34
|
+
def_delegators :range, :cover?
|
35
|
+
|
36
|
+
def as_timespan
|
37
|
+
return unless object == "timespan"
|
38
|
+
|
39
|
+
Timespan.new(object: object, start_time: start_time, end_time: end_time)
|
40
|
+
end
|
41
|
+
|
42
|
+
def range
|
43
|
+
case object
|
44
|
+
when "timespan"
|
45
|
+
Range.new(start_time, end_time)
|
46
|
+
when "datespan"
|
47
|
+
Range.new(start_date, end_date)
|
48
|
+
when "date"
|
49
|
+
Range.new(date, date)
|
50
|
+
when "time"
|
51
|
+
Range.new(time, time)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# Validates the When object
|
56
|
+
# @return [Boolean] True if the When is valid
|
57
|
+
# @raise [ArgumentError] If any of the timezone fields are not valid IANA database names
|
58
|
+
def valid?
|
59
|
+
validate_timezone(timezone) if timezone
|
60
|
+
validate_timezone(start_timezone) if start_timezone
|
61
|
+
validate_timezone(end_timezone) if end_timezone
|
62
|
+
|
63
|
+
true
|
64
|
+
end
|
65
|
+
|
66
|
+
private
|
67
|
+
|
68
|
+
def validate_timezone(timezone_var)
|
69
|
+
return if TZInfo::Timezone.all_identifiers.include?(timezone_var)
|
70
|
+
|
71
|
+
raise ArgumentError,
|
72
|
+
format("The timezone provided (%s) is not a valid IANA timezone database name", timezone_var)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
data/lib/nylas-legacy.rb
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "json"
|
4
|
+
require "rest-client"
|
5
|
+
|
6
|
+
# BUGFIX
|
7
|
+
# See https://github.com/sparklemotion/http-cookie/issues/27
|
8
|
+
# and https://github.com/sparklemotion/http-cookie/issues/6
|
9
|
+
#
|
10
|
+
# CookieJar uses unsafe class caching for dynamically loading cookie jars
|
11
|
+
# If 2 rest-client instances are instantiated at the same time, (in threads)
|
12
|
+
# non-deterministic behaviour can occur whereby the Hash cookie jar isn't
|
13
|
+
# properly loaded and cached.
|
14
|
+
# Forcing an instantiation of the jar onload will force the CookieJar to load
|
15
|
+
# before the system has a chance to spawn any threads.
|
16
|
+
# Note this should technically be fixed in rest-client itself however that
|
17
|
+
# library appears to be stagnant so we're forced to fix it here
|
18
|
+
# This object should get GC'd as it's not referenced by anything
|
19
|
+
HTTP::CookieJar.new
|
20
|
+
|
21
|
+
require "ostruct"
|
22
|
+
require "forwardable"
|
23
|
+
|
24
|
+
require_relative "nylas-legacy/version"
|
25
|
+
require_relative "nylas-legacy/errors"
|
26
|
+
|
27
|
+
require_relative "nylas-legacy/logging"
|
28
|
+
require_relative "nylas-legacy/registry"
|
29
|
+
require_relative "nylas-legacy/types"
|
30
|
+
require_relative "nylas-legacy/constraints"
|
31
|
+
|
32
|
+
require_relative "nylas-legacy/http_client"
|
33
|
+
require_relative "nylas-legacy/api"
|
34
|
+
require_relative "nylas-legacy/collection"
|
35
|
+
require_relative "nylas-legacy/model"
|
36
|
+
|
37
|
+
# Attribute types supported by the API
|
38
|
+
require_relative "nylas-legacy/email_address"
|
39
|
+
require_relative "nylas-legacy/event"
|
40
|
+
require_relative "nylas-legacy/file"
|
41
|
+
require_relative "nylas-legacy/folder"
|
42
|
+
require_relative "nylas-legacy/im_address"
|
43
|
+
require_relative "nylas-legacy/label"
|
44
|
+
require_relative "nylas-legacy/message_headers"
|
45
|
+
require_relative "nylas-legacy/message_tracking"
|
46
|
+
require_relative "nylas-legacy/participant"
|
47
|
+
require_relative "nylas-legacy/physical_address"
|
48
|
+
require_relative "nylas-legacy/phone_number"
|
49
|
+
require_relative "nylas-legacy/recurrence"
|
50
|
+
require_relative "nylas-legacy/rsvp"
|
51
|
+
require_relative "nylas-legacy/timespan"
|
52
|
+
require_relative "nylas-legacy/web_page"
|
53
|
+
require_relative "nylas-legacy/nylas_date"
|
54
|
+
require_relative "nylas-legacy/when"
|
55
|
+
require_relative "nylas-legacy/free_busy"
|
56
|
+
require_relative "nylas-legacy/time_slot"
|
57
|
+
require_relative "nylas-legacy/time_slot_capacity"
|
58
|
+
require_relative "nylas-legacy/open_hours"
|
59
|
+
require_relative "nylas-legacy/event_conferencing"
|
60
|
+
require_relative "nylas-legacy/event_conferencing_details"
|
61
|
+
require_relative "nylas-legacy/event_conferencing_autocreate"
|
62
|
+
require_relative "nylas-legacy/event_notification"
|
63
|
+
require_relative "nylas-legacy/component"
|
64
|
+
|
65
|
+
# Custom collection types
|
66
|
+
require_relative "nylas-legacy/event_collection"
|
67
|
+
require_relative "nylas-legacy/search_collection"
|
68
|
+
require_relative "nylas-legacy/deltas_collection"
|
69
|
+
require_relative "nylas-legacy/free_busy_collection"
|
70
|
+
require_relative "nylas-legacy/calendar_collection"
|
71
|
+
require_relative "nylas-legacy/component_collection"
|
72
|
+
require_relative "nylas-legacy/scheduler_collection"
|
73
|
+
require_relative "nylas-legacy/job_status_collection"
|
74
|
+
require_relative "nylas-legacy/outbox"
|
75
|
+
|
76
|
+
# Models supported by the API
|
77
|
+
require_relative "nylas-legacy/account"
|
78
|
+
require_relative "nylas-legacy/calendar"
|
79
|
+
require_relative "nylas-legacy/contact"
|
80
|
+
require_relative "nylas-legacy/contact_group"
|
81
|
+
require_relative "nylas-legacy/current_account"
|
82
|
+
require_relative "nylas-legacy/deltas"
|
83
|
+
require_relative "nylas-legacy/delta"
|
84
|
+
require_relative "nylas-legacy/draft"
|
85
|
+
require_relative "nylas-legacy/message"
|
86
|
+
require_relative "nylas-legacy/room_resource"
|
87
|
+
require_relative "nylas-legacy/new_message"
|
88
|
+
require_relative "nylas-legacy/raw_message"
|
89
|
+
require_relative "nylas-legacy/thread"
|
90
|
+
require_relative "nylas-legacy/webhook"
|
91
|
+
require_relative "nylas-legacy/scheduler"
|
92
|
+
require_relative "nylas-legacy/job_status"
|
93
|
+
require_relative "nylas-legacy/token_info"
|
94
|
+
require_relative "nylas-legacy/application_details"
|
95
|
+
require_relative "nylas-legacy/outbox_message"
|
96
|
+
require_relative "nylas-legacy/outbox_job_status"
|
97
|
+
require_relative "nylas-legacy/send_grid_verified_status"
|
98
|
+
|
99
|
+
# Neural specific types
|
100
|
+
require_relative "nylas-legacy/neural"
|
101
|
+
require_relative "nylas-legacy/neural_sentiment_analysis"
|
102
|
+
require_relative "nylas-legacy/neural_ocr"
|
103
|
+
require_relative "nylas-legacy/neural_categorizer"
|
104
|
+
require_relative "nylas-legacy/neural_clean_conversation"
|
105
|
+
require_relative "nylas-legacy/neural_contact_link"
|
106
|
+
require_relative "nylas-legacy/neural_contact_name"
|
107
|
+
require_relative "nylas-legacy/neural_signature_contact"
|
108
|
+
require_relative "nylas-legacy/neural_signature_extraction"
|
109
|
+
require_relative "nylas-legacy/neural_message_options"
|
110
|
+
require_relative "nylas-legacy/categorize"
|
111
|
+
require_relative "nylas-legacy/scheduler_config"
|
112
|
+
require_relative "nylas-legacy/scheduler_time_slot"
|
113
|
+
require_relative "nylas-legacy/scheduler_booking_request"
|
114
|
+
require_relative "nylas-legacy/scheduler_booking_confirmation"
|
115
|
+
|
116
|
+
require_relative "nylas-legacy/native_authentication"
|
117
|
+
|
118
|
+
require_relative "nylas-legacy/filter_attributes"
|
119
|
+
|
120
|
+
require_relative "nylas-legacy/services/tunnel"
|
121
|
+
# an SDK for interacting with the Nylas API
|
122
|
+
# @see https://docs.nylas.com/reference
|
123
|
+
module NylasLegacy
|
124
|
+
Types.registry[:account] = Types::ModelType.new(model: Account)
|
125
|
+
Types.registry[:calendar] = Types::ModelType.new(model: Calendar)
|
126
|
+
Types.registry[:contact] = Types::ModelType.new(model: Contact)
|
127
|
+
Types.registry[:delta] = DeltaType.new
|
128
|
+
Types.registry[:draft] = Types::ModelType.new(model: Draft)
|
129
|
+
Types.registry[:email_address] = Types::ModelType.new(model: EmailAddress)
|
130
|
+
Types.registry[:event] = Types::ModelType.new(model: Event)
|
131
|
+
Types.registry[:file] = Types::ModelType.new(model: File)
|
132
|
+
Types.registry[:folder] = Types::ModelType.new(model: Folder)
|
133
|
+
Types.registry[:im_address] = Types::ModelType.new(model: IMAddress)
|
134
|
+
Types.registry[:label] = Types::ModelType.new(model: Label)
|
135
|
+
Types.registry[:room_resource] = Types::ModelType.new(model: RoomResource)
|
136
|
+
Types.registry[:message] = Types::ModelType.new(model: Message)
|
137
|
+
Types.registry[:message_headers] = MessageHeadersType.new
|
138
|
+
Types.registry[:message_tracking] = Types::ModelType.new(model: MessageTracking)
|
139
|
+
Types.registry[:participant] = Types::ModelType.new(model: Participant)
|
140
|
+
Types.registry[:physical_address] = Types::ModelType.new(model: PhysicalAddress)
|
141
|
+
Types.registry[:phone_number] = Types::ModelType.new(model: PhoneNumber)
|
142
|
+
Types.registry[:recurrence] = Types::ModelType.new(model: Recurrence)
|
143
|
+
Types.registry[:thread] = Types::ModelType.new(model: Thread)
|
144
|
+
Types.registry[:timespan] = Types::ModelType.new(model: Timespan)
|
145
|
+
Types.registry[:web_page] = Types::ModelType.new(model: WebPage)
|
146
|
+
Types.registry[:nylas_date] = NylasDateType.new
|
147
|
+
Types.registry[:contact_group] = Types::ModelType.new(model: ContactGroup)
|
148
|
+
Types.registry[:when] = Types::ModelType.new(model: When)
|
149
|
+
Types.registry[:time_slot] = Types::ModelType.new(model: TimeSlot)
|
150
|
+
Types.registry[:time_slot_capacity] = Types::ModelType.new(model: TimeSlotCapacity)
|
151
|
+
Types.registry[:event_conferencing] = Types::ModelType.new(model: EventConferencing)
|
152
|
+
Types.registry[:event_conferencing_details] = Types::ModelType.new(model: EventConferencingDetails)
|
153
|
+
Types.registry[:event_conferencing_autocreate] = Types::ModelType.new(model: EventConferencingAutocreate)
|
154
|
+
Types.registry[:event_notification] = Types::ModelType.new(model: EventNotification)
|
155
|
+
Types.registry[:neural] = Types::ModelType.new(model: Neural)
|
156
|
+
Types.registry[:categorize] = Types::ModelType.new(model: Categorize)
|
157
|
+
Types.registry[:neural_signature_contact] = Types::ModelType.new(model: NeuralSignatureContact)
|
158
|
+
Types.registry[:neural_contact_link] = Types::ModelType.new(model: NeuralContactLink)
|
159
|
+
Types.registry[:neural_contact_name] = Types::ModelType.new(model: NeuralContactName)
|
160
|
+
Types.registry[:scheduler_config] = Types::ModelType.new(model: SchedulerConfig)
|
161
|
+
Types.registry[:scheduler_time_slot] = Types::ModelType.new(model: SchedulerTimeSlot)
|
162
|
+
Types.registry[:job_status] = Types::ModelType.new(model: JobStatus)
|
163
|
+
Types.registry[:outbox_message] = Types::ModelType.new(model: OutboxMessage)
|
164
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nylas-legacy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nylas, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05
|
11
|
+
date: 2024-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -94,6 +94,88 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0.41'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: eventmachine
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.2.7
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.2.7
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: faye-websocket
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.11.1
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.11.1
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rest-client
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '2.0'
|
132
|
+
- - "<"
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '3.0'
|
135
|
+
type: :development
|
136
|
+
prerelease: false
|
137
|
+
version_requirements: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '2.0'
|
142
|
+
- - "<"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '3.0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: tzinfo
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 2.0.5
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - "~>"
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 2.0.5
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: yajl-ruby
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '1.2'
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: 1.2.1
|
169
|
+
type: :development
|
170
|
+
prerelease: false
|
171
|
+
version_requirements: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - "~>"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '1.2'
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: 1.2.1
|
97
179
|
- !ruby/object:Gem::Dependency
|
98
180
|
name: pry
|
99
181
|
requirement: !ruby/object:Gem::Requirement
|
@@ -321,7 +403,97 @@ email: support@nylas.com
|
|
321
403
|
executables: []
|
322
404
|
extensions: []
|
323
405
|
extra_rdoc_files: []
|
324
|
-
files:
|
406
|
+
files:
|
407
|
+
- lib/nylas-legacy.rb
|
408
|
+
- lib/nylas-legacy/account.rb
|
409
|
+
- lib/nylas-legacy/api.rb
|
410
|
+
- lib/nylas-legacy/application_details.rb
|
411
|
+
- lib/nylas-legacy/calendar.rb
|
412
|
+
- lib/nylas-legacy/calendar_collection.rb
|
413
|
+
- lib/nylas-legacy/categorize.rb
|
414
|
+
- lib/nylas-legacy/collection.rb
|
415
|
+
- lib/nylas-legacy/component.rb
|
416
|
+
- lib/nylas-legacy/component_collection.rb
|
417
|
+
- lib/nylas-legacy/constraints.rb
|
418
|
+
- lib/nylas-legacy/contact.rb
|
419
|
+
- lib/nylas-legacy/contact_group.rb
|
420
|
+
- lib/nylas-legacy/current_account.rb
|
421
|
+
- lib/nylas-legacy/delta.rb
|
422
|
+
- lib/nylas-legacy/deltas.rb
|
423
|
+
- lib/nylas-legacy/deltas_collection.rb
|
424
|
+
- lib/nylas-legacy/draft.rb
|
425
|
+
- lib/nylas-legacy/email_address.rb
|
426
|
+
- lib/nylas-legacy/errors.rb
|
427
|
+
- lib/nylas-legacy/event.rb
|
428
|
+
- lib/nylas-legacy/event_collection.rb
|
429
|
+
- lib/nylas-legacy/event_conferencing.rb
|
430
|
+
- lib/nylas-legacy/event_conferencing_autocreate.rb
|
431
|
+
- lib/nylas-legacy/event_conferencing_details.rb
|
432
|
+
- lib/nylas-legacy/event_notification.rb
|
433
|
+
- lib/nylas-legacy/file.rb
|
434
|
+
- lib/nylas-legacy/filter_attributes.rb
|
435
|
+
- lib/nylas-legacy/folder.rb
|
436
|
+
- lib/nylas-legacy/free_busy.rb
|
437
|
+
- lib/nylas-legacy/free_busy_collection.rb
|
438
|
+
- lib/nylas-legacy/http_client.rb
|
439
|
+
- lib/nylas-legacy/im_address.rb
|
440
|
+
- lib/nylas-legacy/job_status.rb
|
441
|
+
- lib/nylas-legacy/job_status_collection.rb
|
442
|
+
- lib/nylas-legacy/label.rb
|
443
|
+
- lib/nylas-legacy/logging.rb
|
444
|
+
- lib/nylas-legacy/message.rb
|
445
|
+
- lib/nylas-legacy/message_headers.rb
|
446
|
+
- lib/nylas-legacy/message_tracking.rb
|
447
|
+
- lib/nylas-legacy/model.rb
|
448
|
+
- lib/nylas-legacy/model/attributable.rb
|
449
|
+
- lib/nylas-legacy/model/attribute_definition.rb
|
450
|
+
- lib/nylas-legacy/model/attributes.rb
|
451
|
+
- lib/nylas-legacy/model/list_attribute_definition.rb
|
452
|
+
- lib/nylas-legacy/model/transferable.rb
|
453
|
+
- lib/nylas-legacy/native_authentication.rb
|
454
|
+
- lib/nylas-legacy/neural.rb
|
455
|
+
- lib/nylas-legacy/neural_categorizer.rb
|
456
|
+
- lib/nylas-legacy/neural_clean_conversation.rb
|
457
|
+
- lib/nylas-legacy/neural_contact_link.rb
|
458
|
+
- lib/nylas-legacy/neural_contact_name.rb
|
459
|
+
- lib/nylas-legacy/neural_message_options.rb
|
460
|
+
- lib/nylas-legacy/neural_ocr.rb
|
461
|
+
- lib/nylas-legacy/neural_sentiment_analysis.rb
|
462
|
+
- lib/nylas-legacy/neural_signature_contact.rb
|
463
|
+
- lib/nylas-legacy/neural_signature_extraction.rb
|
464
|
+
- lib/nylas-legacy/new_message.rb
|
465
|
+
- lib/nylas-legacy/nylas_date.rb
|
466
|
+
- lib/nylas-legacy/open_hours.rb
|
467
|
+
- lib/nylas-legacy/outbox.rb
|
468
|
+
- lib/nylas-legacy/outbox_job_status.rb
|
469
|
+
- lib/nylas-legacy/outbox_message.rb
|
470
|
+
- lib/nylas-legacy/participant.rb
|
471
|
+
- lib/nylas-legacy/phone_number.rb
|
472
|
+
- lib/nylas-legacy/physical_address.rb
|
473
|
+
- lib/nylas-legacy/raw_message.rb
|
474
|
+
- lib/nylas-legacy/recurrence.rb
|
475
|
+
- lib/nylas-legacy/registry.rb
|
476
|
+
- lib/nylas-legacy/room_resource.rb
|
477
|
+
- lib/nylas-legacy/rsvp.rb
|
478
|
+
- lib/nylas-legacy/scheduler.rb
|
479
|
+
- lib/nylas-legacy/scheduler_booking_confirmation.rb
|
480
|
+
- lib/nylas-legacy/scheduler_booking_request.rb
|
481
|
+
- lib/nylas-legacy/scheduler_collection.rb
|
482
|
+
- lib/nylas-legacy/scheduler_config.rb
|
483
|
+
- lib/nylas-legacy/scheduler_time_slot.rb
|
484
|
+
- lib/nylas-legacy/search_collection.rb
|
485
|
+
- lib/nylas-legacy/send_grid_verified_status.rb
|
486
|
+
- lib/nylas-legacy/services/tunnel.rb
|
487
|
+
- lib/nylas-legacy/thread.rb
|
488
|
+
- lib/nylas-legacy/time_slot.rb
|
489
|
+
- lib/nylas-legacy/time_slot_capacity.rb
|
490
|
+
- lib/nylas-legacy/timespan.rb
|
491
|
+
- lib/nylas-legacy/token_info.rb
|
492
|
+
- lib/nylas-legacy/types.rb
|
493
|
+
- lib/nylas-legacy/version.rb
|
494
|
+
- lib/nylas-legacy/web_page.rb
|
495
|
+
- lib/nylas-legacy/webhook.rb
|
496
|
+
- lib/nylas-legacy/when.rb
|
325
497
|
homepage:
|
326
498
|
licenses:
|
327
499
|
- MIT
|