trycourier 4.20.0 → 4.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/lib/courier/client.rb +39 -4
- data/lib/courier/models/automations/invoke_invoke_ad_hoc_params.rb +13 -1
- data/lib/courier/models/automations/invoke_invoke_by_template_params.rb +13 -1
- data/lib/courier/models/brand_create_params.rb +13 -1
- data/lib/courier/models/inbox/message_delete_params.rb +22 -0
- data/lib/courier/models/inbox/message_restore_params.rb +22 -0
- data/lib/courier/models/journey_cancel_params.rb +13 -1
- data/lib/courier/models/journey_create_params.rb +13 -1
- data/lib/courier/models/journey_invoke_params.rb +13 -1
- data/lib/courier/models/journey_publish_params.rb +13 -1
- data/lib/courier/models/journeys/template_create_params.rb +13 -1
- data/lib/courier/models/journeys/template_publish_params.rb +13 -1
- data/lib/courier/models/lists/subscription_add_params.rb +13 -1
- data/lib/courier/models/notification_create_params.rb +13 -1
- data/lib/courier/models/notification_publish_params.rb +13 -1
- data/lib/courier/models/profile_create_params.rb +13 -1
- data/lib/courier/models/profiles/list_subscribe_params.rb +13 -1
- data/lib/courier/models/provider_create_params.rb +15 -1
- data/lib/courier/models/routing_strategy_create_params.rb +13 -1
- data/lib/courier/models/send_message_params.rb +15 -1
- data/lib/courier/models/users/preference_bulk_update_params.rb +15 -1
- data/lib/courier/models/users/preference_update_or_create_topic_params.rb +14 -4
- data/lib/courier/models/users/topic_preference.rb +21 -7
- data/lib/courier/models/workspace_preference_create_params.rb +13 -1
- data/lib/courier/models/workspace_preference_publish_params.rb +13 -1
- data/lib/courier/models/workspace_preferences/topic_create_params.rb +13 -1
- data/lib/courier/models.rb +2 -14
- data/lib/courier/resources/audiences.rb +12 -5
- data/lib/courier/resources/audit_events.rb +5 -2
- data/lib/courier/resources/auth.rb +5 -1
- data/lib/courier/resources/automations/invoke.rb +47 -23
- data/lib/courier/resources/automations.rb +6 -1
- data/lib/courier/resources/brands.rb +38 -12
- data/lib/courier/resources/digests/schedules.rb +4 -3
- data/lib/courier/resources/digests.rb +2 -0
- data/lib/courier/resources/inbound.rb +3 -1
- data/lib/courier/resources/inbox/messages.rb +58 -0
- data/lib/courier/resources/inbox.rb +19 -0
- data/lib/courier/resources/journeys/templates.rb +43 -25
- data/lib/courier/resources/journeys.rb +73 -44
- data/lib/courier/resources/lists/subscriptions.rb +22 -8
- data/lib/courier/resources/lists.rb +14 -5
- data/lib/courier/resources/messages.rb +14 -14
- data/lib/courier/resources/notifications/checks.rb +8 -3
- data/lib/courier/resources/notifications.rb +48 -30
- data/lib/courier/resources/profiles/lists.rb +19 -8
- data/lib/courier/resources/profiles.rb +25 -14
- data/lib/courier/resources/providers/catalog.rb +4 -4
- data/lib/courier/resources/providers.rb +27 -18
- data/lib/courier/resources/requests.rb +4 -1
- data/lib/courier/resources/routing_strategies.rb +24 -12
- data/lib/courier/resources/send.rb +14 -4
- data/lib/courier/resources/tenants/preferences/items.rb +6 -2
- data/lib/courier/resources/tenants/preferences.rb +2 -0
- data/lib/courier/resources/tenants/templates/versions.rb +4 -7
- data/lib/courier/resources/tenants/templates.rb +14 -19
- data/lib/courier/resources/tenants.rb +14 -5
- data/lib/courier/resources/translations.rb +6 -2
- data/lib/courier/resources/users/preferences.rb +23 -42
- data/lib/courier/resources/users/tenants.rb +12 -10
- data/lib/courier/resources/users/tokens.rb +14 -6
- data/lib/courier/resources/users.rb +6 -0
- data/lib/courier/resources/workspace_preferences/topics.rb +27 -19
- data/lib/courier/resources/workspace_preferences.rb +40 -20
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +4 -11
- data/rbi/courier/client.rbi +38 -3
- data/rbi/courier/models/automations/invoke_invoke_ad_hoc_params.rbi +18 -0
- data/rbi/courier/models/automations/invoke_invoke_by_template_params.rbi +18 -0
- data/rbi/courier/models/brand_create_params.rbi +18 -0
- data/rbi/courier/models/inbox/message_delete_params.rbi +40 -0
- data/rbi/courier/models/inbox/message_restore_params.rbi +40 -0
- data/rbi/courier/models/journey_cancel_params.rbi +31 -5
- data/rbi/courier/models/journey_create_params.rbi +31 -5
- data/rbi/courier/models/journey_invoke_params.rbi +26 -2
- data/rbi/courier/models/journey_publish_params.rbi +26 -2
- data/rbi/courier/models/journeys/template_create_params.rbi +26 -2
- data/rbi/courier/models/journeys/template_publish_params.rbi +23 -1
- data/rbi/courier/models/lists/subscription_add_params.rbi +23 -1
- data/rbi/courier/models/notification_create_params.rbi +31 -5
- data/rbi/courier/models/notification_publish_params.rbi +26 -2
- data/rbi/courier/models/profile_create_params.rbi +23 -1
- data/rbi/courier/models/profiles/list_subscribe_params.rbi +23 -1
- data/rbi/courier/models/provider_create_params.rbi +18 -0
- data/rbi/courier/models/routing_strategy_create_params.rbi +31 -5
- data/rbi/courier/models/send_message_params.rbi +18 -0
- data/rbi/courier/models/users/preference_bulk_update_params.rbi +18 -0
- data/rbi/courier/models/users/preference_update_or_create_topic_params.rbi +14 -2
- data/rbi/courier/models/users/topic_preference.rbi +24 -2
- data/rbi/courier/models/workspace_preference_create_params.rbi +31 -5
- data/rbi/courier/models/workspace_preference_publish_params.rbi +31 -5
- data/rbi/courier/models/workspace_preferences/topic_create_params.rbi +26 -2
- data/rbi/courier/models.rbi +2 -14
- data/rbi/courier/resources/audiences.rbi +12 -5
- data/rbi/courier/resources/audit_events.rbi +5 -2
- data/rbi/courier/resources/auth.rbi +5 -1
- data/rbi/courier/resources/automations/invoke.rbi +48 -7
- data/rbi/courier/resources/automations.rbi +6 -1
- data/rbi/courier/resources/brands.rbi +37 -7
- data/rbi/courier/resources/digests/schedules.rbi +4 -3
- data/rbi/courier/resources/digests.rbi +2 -0
- data/rbi/courier/resources/inbound.rbi +3 -1
- data/rbi/courier/resources/inbox/messages.rbi +44 -0
- data/rbi/courier/resources/inbox.rbi +16 -0
- data/rbi/courier/resources/journeys/templates.rbi +47 -17
- data/rbi/courier/resources/journeys.rbi +93 -39
- data/rbi/courier/resources/lists/subscriptions.rbi +24 -5
- data/rbi/courier/resources/lists.rbi +14 -5
- data/rbi/courier/resources/messages.rbi +14 -14
- data/rbi/courier/resources/notifications/checks.rbi +8 -3
- data/rbi/courier/resources/notifications.rbi +58 -28
- data/rbi/courier/resources/profiles/lists.rbi +25 -6
- data/rbi/courier/resources/profiles.rbi +31 -11
- data/rbi/courier/resources/providers/catalog.rbi +4 -4
- data/rbi/courier/resources/providers.rbi +35 -19
- data/rbi/courier/resources/requests.rbi +4 -1
- data/rbi/courier/resources/routing_strategies.rbi +26 -10
- data/rbi/courier/resources/send.rbi +20 -3
- data/rbi/courier/resources/tenants/preferences/items.rbi +6 -2
- data/rbi/courier/resources/tenants/preferences.rbi +2 -0
- data/rbi/courier/resources/tenants/templates/versions.rbi +4 -7
- data/rbi/courier/resources/tenants/templates.rbi +14 -19
- data/rbi/courier/resources/tenants.rbi +14 -5
- data/rbi/courier/resources/translations.rbi +6 -2
- data/rbi/courier/resources/users/preferences.rbi +28 -40
- data/rbi/courier/resources/users/tenants.rbi +12 -10
- data/rbi/courier/resources/users/tokens.rbi +14 -6
- data/rbi/courier/resources/users.rbi +6 -0
- data/rbi/courier/resources/workspace_preferences/topics.rbi +37 -18
- data/rbi/courier/resources/workspace_preferences.rbi +51 -17
- data/sig/courier/client.rbs +2 -2
- data/sig/courier/models/automations/invoke_invoke_ad_hoc_params.rbs +15 -1
- data/sig/courier/models/automations/invoke_invoke_by_template_params.rbs +15 -1
- data/sig/courier/models/brand_create_params.rbs +15 -1
- data/sig/courier/models/inbox/message_delete_params.rbs +25 -0
- data/sig/courier/models/inbox/message_restore_params.rbs +25 -0
- data/sig/courier/models/journey_cancel_params.rbs +20 -3
- data/sig/courier/models/journey_create_params.rbs +20 -3
- data/sig/courier/models/journey_invoke_params.rbs +18 -1
- data/sig/courier/models/journey_publish_params.rbs +18 -1
- data/sig/courier/models/journeys/template_create_params.rbs +18 -1
- data/sig/courier/models/journeys/template_publish_params.rbs +18 -1
- data/sig/courier/models/lists/subscription_add_params.rbs +15 -1
- data/sig/courier/models/notification_create_params.rbs +20 -3
- data/sig/courier/models/notification_publish_params.rbs +18 -2
- data/sig/courier/models/profile_create_params.rbs +18 -1
- data/sig/courier/models/profiles/list_subscribe_params.rbs +15 -1
- data/sig/courier/models/provider_create_params.rbs +15 -1
- data/sig/courier/models/routing_strategy_create_params.rbs +20 -3
- data/sig/courier/models/send_message_params.rbs +17 -1
- data/sig/courier/models/users/preference_bulk_update_params.rbs +15 -1
- data/sig/courier/models/workspace_preference_create_params.rbs +20 -3
- data/sig/courier/models/workspace_preference_publish_params.rbs +20 -3
- data/sig/courier/models/workspace_preferences/topic_create_params.rbs +18 -1
- data/sig/courier/models.rbs +2 -14
- data/sig/courier/resources/automations/invoke.rbs +4 -0
- data/sig/courier/resources/brands.rbs +2 -0
- data/sig/courier/resources/inbox/messages.rbs +19 -0
- data/sig/courier/resources/inbox.rbs +9 -0
- data/sig/courier/resources/journeys/templates.rbs +4 -0
- data/sig/courier/resources/journeys.rbs +8 -0
- data/sig/courier/resources/lists/subscriptions.rbs +2 -0
- data/sig/courier/resources/notifications.rbs +4 -0
- data/sig/courier/resources/profiles/lists.rbs +2 -0
- data/sig/courier/resources/profiles.rbs +2 -0
- data/sig/courier/resources/providers.rbs +2 -0
- data/sig/courier/resources/routing_strategies.rbs +2 -0
- data/sig/courier/resources/send.rbs +2 -0
- data/sig/courier/resources/users/preferences.rbs +2 -0
- data/sig/courier/resources/workspace_preferences/topics.rbs +2 -0
- data/sig/courier/resources/workspace_preferences.rbs +4 -0
- metadata +14 -35
- data/lib/courier/models/bulk_add_users_params.rb +0 -26
- data/lib/courier/models/bulk_create_job_params.rb +0 -29
- data/lib/courier/models/bulk_create_job_response.rb +0 -16
- data/lib/courier/models/bulk_list_users_params.rb +0 -33
- data/lib/courier/models/bulk_list_users_response.rb +0 -49
- data/lib/courier/models/bulk_retrieve_job_params.rb +0 -20
- data/lib/courier/models/bulk_retrieve_job_response.rb +0 -76
- data/lib/courier/models/bulk_run_job_params.rb +0 -20
- data/lib/courier/models/inbound_bulk_message.rb +0 -91
- data/lib/courier/models/inbound_bulk_message_user.rb +0 -54
- data/lib/courier/resources/bulk.rb +0 -141
- data/rbi/courier/models/bulk_add_users_params.rbi +0 -43
- data/rbi/courier/models/bulk_create_job_params.rbi +0 -54
- data/rbi/courier/models/bulk_create_job_response.rbi +0 -26
- data/rbi/courier/models/bulk_list_users_params.rbi +0 -51
- data/rbi/courier/models/bulk_list_users_response.rbi +0 -125
- data/rbi/courier/models/bulk_retrieve_job_params.rbi +0 -35
- data/rbi/courier/models/bulk_retrieve_job_response.rbi +0 -157
- data/rbi/courier/models/bulk_run_job_params.rbi +0 -35
- data/rbi/courier/models/inbound_bulk_message.rbi +0 -124
- data/rbi/courier/models/inbound_bulk_message_user.rbi +0 -88
- data/rbi/courier/resources/bulk.rbi +0 -102
- data/sig/courier/models/bulk_add_users_params.rbs +0 -28
- data/sig/courier/models/bulk_create_job_params.rbs +0 -24
- data/sig/courier/models/bulk_create_job_response.rbs +0 -13
- data/sig/courier/models/bulk_list_users_params.rbs +0 -28
- data/sig/courier/models/bulk_list_users_response.rbs +0 -65
- data/sig/courier/models/bulk_retrieve_job_params.rbs +0 -23
- data/sig/courier/models/bulk_retrieve_job_response.rbs +0 -66
- data/sig/courier/models/bulk_run_job_params.rbs +0 -23
- data/sig/courier/models/inbound_bulk_message.rbs +0 -58
- data/sig/courier/models/inbound_bulk_message_user.rbs +0 -42
- data/sig/courier/resources/bulk.rbs +0 -34
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
module Courier
|
|
2
|
-
module Models
|
|
3
|
-
type bulk_retrieve_job_params =
|
|
4
|
-
{ job_id: String } & Courier::Internal::Type::request_parameters
|
|
5
|
-
|
|
6
|
-
class BulkRetrieveJobParams < Courier::Internal::Type::BaseModel
|
|
7
|
-
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Courier::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
attr_accessor job_id: String
|
|
11
|
-
|
|
12
|
-
def initialize: (
|
|
13
|
-
job_id: String,
|
|
14
|
-
?request_options: Courier::request_opts
|
|
15
|
-
) -> void
|
|
16
|
-
|
|
17
|
-
def to_hash: -> {
|
|
18
|
-
job_id: String,
|
|
19
|
-
request_options: Courier::RequestOptions
|
|
20
|
-
}
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
module Courier
|
|
2
|
-
module Models
|
|
3
|
-
type bulk_retrieve_job_response =
|
|
4
|
-
{ job: Courier::Models::BulkRetrieveJobResponse::Job }
|
|
5
|
-
|
|
6
|
-
class BulkRetrieveJobResponse < Courier::Internal::Type::BaseModel
|
|
7
|
-
attr_accessor job: Courier::Models::BulkRetrieveJobResponse::Job
|
|
8
|
-
|
|
9
|
-
def initialize: (
|
|
10
|
-
job: Courier::Models::BulkRetrieveJobResponse::Job
|
|
11
|
-
) -> void
|
|
12
|
-
|
|
13
|
-
def to_hash: -> { job: Courier::Models::BulkRetrieveJobResponse::Job }
|
|
14
|
-
|
|
15
|
-
type job =
|
|
16
|
-
{
|
|
17
|
-
definition: Courier::InboundBulkMessage,
|
|
18
|
-
enqueued: Integer,
|
|
19
|
-
failures: Integer,
|
|
20
|
-
received: Integer,
|
|
21
|
-
status: Courier::Models::BulkRetrieveJobResponse::Job::status
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
class Job < Courier::Internal::Type::BaseModel
|
|
25
|
-
attr_accessor definition: Courier::InboundBulkMessage
|
|
26
|
-
|
|
27
|
-
attr_accessor enqueued: Integer
|
|
28
|
-
|
|
29
|
-
attr_accessor failures: Integer
|
|
30
|
-
|
|
31
|
-
attr_accessor received: Integer
|
|
32
|
-
|
|
33
|
-
attr_accessor status: Courier::Models::BulkRetrieveJobResponse::Job::status
|
|
34
|
-
|
|
35
|
-
def initialize: (
|
|
36
|
-
definition: Courier::InboundBulkMessage,
|
|
37
|
-
enqueued: Integer,
|
|
38
|
-
failures: Integer,
|
|
39
|
-
received: Integer,
|
|
40
|
-
status: Courier::Models::BulkRetrieveJobResponse::Job::status
|
|
41
|
-
) -> void
|
|
42
|
-
|
|
43
|
-
def to_hash: -> {
|
|
44
|
-
definition: Courier::InboundBulkMessage,
|
|
45
|
-
enqueued: Integer,
|
|
46
|
-
failures: Integer,
|
|
47
|
-
received: Integer,
|
|
48
|
-
status: Courier::Models::BulkRetrieveJobResponse::Job::status
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
type status = :CREATED | :PROCESSING | :COMPLETED | :ERROR
|
|
52
|
-
|
|
53
|
-
module Status
|
|
54
|
-
extend Courier::Internal::Type::Enum
|
|
55
|
-
|
|
56
|
-
CREATED: :CREATED
|
|
57
|
-
PROCESSING: :PROCESSING
|
|
58
|
-
COMPLETED: :COMPLETED
|
|
59
|
-
ERROR: :ERROR
|
|
60
|
-
|
|
61
|
-
def self?.values: -> ::Array[Courier::Models::BulkRetrieveJobResponse::Job::status]
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
module Courier
|
|
2
|
-
module Models
|
|
3
|
-
type bulk_run_job_params =
|
|
4
|
-
{ job_id: String } & Courier::Internal::Type::request_parameters
|
|
5
|
-
|
|
6
|
-
class BulkRunJobParams < Courier::Internal::Type::BaseModel
|
|
7
|
-
extend Courier::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Courier::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
attr_accessor job_id: String
|
|
11
|
-
|
|
12
|
-
def initialize: (
|
|
13
|
-
job_id: String,
|
|
14
|
-
?request_options: Courier::request_opts
|
|
15
|
-
) -> void
|
|
16
|
-
|
|
17
|
-
def to_hash: -> {
|
|
18
|
-
job_id: String,
|
|
19
|
-
request_options: Courier::RequestOptions
|
|
20
|
-
}
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
module Courier
|
|
2
|
-
module Models
|
|
3
|
-
type inbound_bulk_message =
|
|
4
|
-
{
|
|
5
|
-
event: String,
|
|
6
|
-
brand: String?,
|
|
7
|
-
content: Courier::Models::InboundBulkMessage::content?,
|
|
8
|
-
data: ::Hash[Symbol, top]?,
|
|
9
|
-
locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
|
|
10
|
-
override: ::Hash[Symbol, top]?,
|
|
11
|
-
template: String?
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class InboundBulkMessage < Courier::Internal::Type::BaseModel
|
|
15
|
-
attr_accessor event: String
|
|
16
|
-
|
|
17
|
-
attr_accessor brand: String?
|
|
18
|
-
|
|
19
|
-
attr_accessor content: Courier::Models::InboundBulkMessage::content?
|
|
20
|
-
|
|
21
|
-
attr_accessor data: ::Hash[Symbol, top]?
|
|
22
|
-
|
|
23
|
-
attr_accessor locale: ::Hash[Symbol, ::Hash[Symbol, top]]?
|
|
24
|
-
|
|
25
|
-
attr_accessor override: ::Hash[Symbol, top]?
|
|
26
|
-
|
|
27
|
-
attr_accessor template: String?
|
|
28
|
-
|
|
29
|
-
def initialize: (
|
|
30
|
-
event: String,
|
|
31
|
-
?brand: String?,
|
|
32
|
-
?content: Courier::Models::InboundBulkMessage::content?,
|
|
33
|
-
?data: ::Hash[Symbol, top]?,
|
|
34
|
-
?locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
|
|
35
|
-
?override: ::Hash[Symbol, top]?,
|
|
36
|
-
?template: String?
|
|
37
|
-
) -> void
|
|
38
|
-
|
|
39
|
-
def to_hash: -> {
|
|
40
|
-
event: String,
|
|
41
|
-
brand: String?,
|
|
42
|
-
content: Courier::Models::InboundBulkMessage::content?,
|
|
43
|
-
data: ::Hash[Symbol, top]?,
|
|
44
|
-
locale: ::Hash[Symbol, ::Hash[Symbol, top]]?,
|
|
45
|
-
override: ::Hash[Symbol, top]?,
|
|
46
|
-
template: String?
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
type content = Courier::ElementalContentSugar | Courier::ElementalContent
|
|
50
|
-
|
|
51
|
-
module Content
|
|
52
|
-
extend Courier::Internal::Type::Union
|
|
53
|
-
|
|
54
|
-
def self?.variants: -> ::Array[Courier::Models::InboundBulkMessage::content]
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
|
-
end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
module Courier
|
|
2
|
-
module Models
|
|
3
|
-
type inbound_bulk_message_user =
|
|
4
|
-
{
|
|
5
|
-
data: top,
|
|
6
|
-
preferences: Courier::RecipientPreferences?,
|
|
7
|
-
profile: ::Hash[Symbol, top]?,
|
|
8
|
-
recipient: String?,
|
|
9
|
-
to: Courier::UserRecipient?
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
class InboundBulkMessageUser < Courier::Internal::Type::BaseModel
|
|
13
|
-
attr_reader data: top?
|
|
14
|
-
|
|
15
|
-
def data=: (top) -> top
|
|
16
|
-
|
|
17
|
-
attr_accessor preferences: Courier::RecipientPreferences?
|
|
18
|
-
|
|
19
|
-
attr_accessor profile: ::Hash[Symbol, top]?
|
|
20
|
-
|
|
21
|
-
attr_accessor recipient: String?
|
|
22
|
-
|
|
23
|
-
attr_accessor to: Courier::UserRecipient?
|
|
24
|
-
|
|
25
|
-
def initialize: (
|
|
26
|
-
?data: top,
|
|
27
|
-
?preferences: Courier::RecipientPreferences?,
|
|
28
|
-
?profile: ::Hash[Symbol, top]?,
|
|
29
|
-
?recipient: String?,
|
|
30
|
-
?to: Courier::UserRecipient?
|
|
31
|
-
) -> void
|
|
32
|
-
|
|
33
|
-
def to_hash: -> {
|
|
34
|
-
data: top,
|
|
35
|
-
preferences: Courier::RecipientPreferences?,
|
|
36
|
-
profile: ::Hash[Symbol, top]?,
|
|
37
|
-
recipient: String?,
|
|
38
|
-
to: Courier::UserRecipient?
|
|
39
|
-
}
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
module Courier
|
|
2
|
-
module Resources
|
|
3
|
-
class Bulk
|
|
4
|
-
def add_users: (
|
|
5
|
-
String job_id,
|
|
6
|
-
users: ::Array[Courier::InboundBulkMessageUser],
|
|
7
|
-
?request_options: Courier::request_opts
|
|
8
|
-
) -> nil
|
|
9
|
-
|
|
10
|
-
def create_job: (
|
|
11
|
-
message: Courier::InboundBulkMessage,
|
|
12
|
-
?request_options: Courier::request_opts
|
|
13
|
-
) -> Courier::Models::BulkCreateJobResponse
|
|
14
|
-
|
|
15
|
-
def list_users: (
|
|
16
|
-
String job_id,
|
|
17
|
-
?cursor: String?,
|
|
18
|
-
?request_options: Courier::request_opts
|
|
19
|
-
) -> Courier::Models::BulkListUsersResponse
|
|
20
|
-
|
|
21
|
-
def retrieve_job: (
|
|
22
|
-
String job_id,
|
|
23
|
-
?request_options: Courier::request_opts
|
|
24
|
-
) -> Courier::Models::BulkRetrieveJobResponse
|
|
25
|
-
|
|
26
|
-
def run_job: (
|
|
27
|
-
String job_id,
|
|
28
|
-
?request_options: Courier::request_opts
|
|
29
|
-
) -> nil
|
|
30
|
-
|
|
31
|
-
def initialize: (client: Courier::Client) -> void
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|