moderation_api 3.6.0 → 3.7.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/lib/moderation_api/brands.rb +1266 -0
- data/lib/moderation_api/campaigns.rb +1269 -0
- data/lib/moderation_api/models/operations/campaign_request.rb +2 -2
- data/lib/moderation_api/models/operations/campaign_response.rb +1 -1
- data/lib/moderation_api/models/operations/cluster.rb +1 -1
- data/lib/moderation_api/models/operations/createbrand_request.rb +38 -0
- data/lib/moderation_api/models/operations/createbrand_request.rbi +20 -0
- data/lib/moderation_api/models/operations/createbrand_requestbody.rb +39 -0
- data/lib/moderation_api/models/operations/createbrand_requestbody.rbi +20 -0
- data/lib/moderation_api/models/operations/createbrand_response.rb +51 -0
- data/lib/moderation_api/models/operations/createbrand_response.rbi +32 -0
- data/lib/moderation_api/models/operations/createbrand_responsebody.rb +78 -0
- data/lib/moderation_api/models/operations/createbrand_responsebody.rbi +38 -0
- data/lib/moderation_api/models/operations/createbrand_status.rb +21 -0
- data/lib/moderation_api/models/operations/createbrand_status.rbi +9 -0
- data/lib/moderation_api/models/operations/createcampaign_declared_request.rb +67 -0
- data/lib/moderation_api/models/operations/createcampaign_declared_request.rbi +32 -0
- data/lib/moderation_api/models/operations/createcampaign_declared_response.rb +67 -0
- data/lib/moderation_api/models/operations/createcampaign_declared_response.rbi +32 -0
- data/lib/moderation_api/models/operations/createcampaign_request.rb +38 -0
- data/lib/moderation_api/models/operations/createcampaign_request.rbi +20 -0
- data/lib/moderation_api/models/operations/createcampaign_requestbody.rb +138 -0
- data/lib/moderation_api/models/operations/createcampaign_requestbody.rbi +74 -0
- data/lib/moderation_api/models/operations/createcampaign_response.rb +51 -0
- data/lib/moderation_api/models/operations/createcampaign_response.rbi +32 -0
- data/lib/moderation_api/models/operations/createcampaign_responsebody.rb +174 -0
- data/lib/moderation_api/models/operations/createcampaign_responsebody.rbi +92 -0
- data/lib/moderation_api/models/operations/createcampaign_status.rb +21 -0
- data/lib/moderation_api/models/operations/createcampaign_status.rbi +9 -0
- data/lib/moderation_api/models/operations/deletebrand_request.rb +39 -0
- data/lib/moderation_api/models/operations/deletebrand_request.rbi +20 -0
- data/lib/moderation_api/models/operations/deletebrand_response.rb +51 -0
- data/lib/moderation_api/models/operations/deletebrand_response.rbi +32 -0
- data/lib/moderation_api/models/operations/deletebrand_responsebody.rb +39 -0
- data/lib/moderation_api/models/operations/deletebrand_responsebody.rbi +20 -0
- data/lib/moderation_api/models/operations/deletecampaign_request.rb +39 -0
- data/lib/moderation_api/models/operations/deletecampaign_request.rbi +20 -0
- data/lib/moderation_api/models/operations/deletecampaign_response.rb +51 -0
- data/lib/moderation_api/models/operations/deletecampaign_response.rbi +32 -0
- data/lib/moderation_api/models/operations/deletecampaign_responsebody.rb +39 -0
- data/lib/moderation_api/models/operations/deletecampaign_responsebody.rbi +20 -0
- data/lib/moderation_api/models/operations/getbrand_request.rb +39 -0
- data/lib/moderation_api/models/operations/getbrand_request.rbi +20 -0
- data/lib/moderation_api/models/operations/getbrand_response.rb +51 -0
- data/lib/moderation_api/models/operations/getbrand_response.rbi +32 -0
- data/lib/moderation_api/models/operations/getbrand_responsebody.rb +78 -0
- data/lib/moderation_api/models/operations/getbrand_responsebody.rbi +38 -0
- data/lib/moderation_api/models/operations/getbrand_status.rb +21 -0
- data/lib/moderation_api/models/operations/getbrand_status.rbi +9 -0
- data/lib/moderation_api/models/operations/getcampaign_declared.rb +67 -0
- data/lib/moderation_api/models/operations/getcampaign_declared.rbi +32 -0
- data/lib/moderation_api/models/operations/getcampaign_request.rb +39 -0
- data/lib/moderation_api/models/operations/getcampaign_request.rbi +20 -0
- data/lib/moderation_api/models/operations/getcampaign_response.rb +51 -0
- data/lib/moderation_api/models/operations/getcampaign_response.rbi +32 -0
- data/lib/moderation_api/models/operations/getcampaign_responsebody.rb +174 -0
- data/lib/moderation_api/models/operations/getcampaign_responsebody.rbi +92 -0
- data/lib/moderation_api/models/operations/getcampaign_status.rb +21 -0
- data/lib/moderation_api/models/operations/getcampaign_status.rbi +9 -0
- data/lib/moderation_api/models/operations/listbrands_data.rb +78 -0
- data/lib/moderation_api/models/operations/listbrands_data.rbi +38 -0
- data/lib/moderation_api/models/operations/listbrands_request.rb +53 -0
- data/lib/moderation_api/models/operations/listbrands_request.rbi +26 -0
- data/lib/moderation_api/models/operations/listbrands_response.rb +63 -0
- data/lib/moderation_api/models/operations/listbrands_response.rbi +32 -0
- data/lib/moderation_api/models/operations/listbrands_responsebody.rb +45 -0
- data/lib/moderation_api/models/operations/listbrands_responsebody.rbi +20 -0
- data/lib/moderation_api/models/operations/listbrands_status.rb +21 -0
- data/lib/moderation_api/models/operations/listbrands_status.rbi +9 -0
- data/lib/moderation_api/models/operations/listcampaigns_data.rb +174 -0
- data/lib/moderation_api/models/operations/listcampaigns_data.rbi +92 -0
- data/lib/moderation_api/models/operations/listcampaigns_declared.rb +67 -0
- data/lib/moderation_api/models/operations/listcampaigns_declared.rbi +32 -0
- data/lib/moderation_api/models/operations/listcampaigns_request.rb +66 -0
- data/lib/moderation_api/models/operations/listcampaigns_request.rbi +32 -0
- data/lib/moderation_api/models/operations/listcampaigns_response.rb +63 -0
- data/lib/moderation_api/models/operations/listcampaigns_response.rbi +32 -0
- data/lib/moderation_api/models/operations/listcampaigns_responsebody.rb +45 -0
- data/lib/moderation_api/models/operations/listcampaigns_responsebody.rbi +20 -0
- data/lib/moderation_api/models/operations/listcampaigns_status.rb +21 -0
- data/lib/moderation_api/models/operations/listcampaigns_status.rbi +9 -0
- data/lib/moderation_api/models/operations/submitcontent_requestbody.rb +1 -1
- data/lib/moderation_api/models/operations/updatebrand_request.rb +45 -0
- data/lib/moderation_api/models/operations/updatebrand_request.rbi +26 -0
- data/lib/moderation_api/models/operations/updatebrand_requestbody.rb +35 -0
- data/lib/moderation_api/models/operations/updatebrand_requestbody.rbi +14 -0
- data/lib/moderation_api/models/operations/updatebrand_response.rb +51 -0
- data/lib/moderation_api/models/operations/updatebrand_response.rbi +32 -0
- data/lib/moderation_api/models/operations/updatebrand_responsebody.rb +78 -0
- data/lib/moderation_api/models/operations/updatebrand_responsebody.rbi +38 -0
- data/lib/moderation_api/models/operations/updatebrand_status.rb +21 -0
- data/lib/moderation_api/models/operations/updatebrand_status.rbi +9 -0
- data/lib/moderation_api/models/operations/updatecampaign_declared_request.rb +67 -0
- data/lib/moderation_api/models/operations/updatecampaign_declared_request.rbi +32 -0
- data/lib/moderation_api/models/operations/updatecampaign_declared_response.rb +67 -0
- data/lib/moderation_api/models/operations/updatecampaign_declared_response.rbi +32 -0
- data/lib/moderation_api/models/operations/updatecampaign_request.rb +46 -0
- data/lib/moderation_api/models/operations/updatecampaign_request.rbi +26 -0
- data/lib/moderation_api/models/operations/updatecampaign_requestbody.rb +132 -0
- data/lib/moderation_api/models/operations/updatecampaign_requestbody.rbi +68 -0
- data/lib/moderation_api/models/operations/updatecampaign_response.rb +51 -0
- data/lib/moderation_api/models/operations/updatecampaign_response.rbi +32 -0
- data/lib/moderation_api/models/operations/updatecampaign_responsebody.rb +174 -0
- data/lib/moderation_api/models/operations/updatecampaign_responsebody.rbi +92 -0
- data/lib/moderation_api/models/operations/updatecampaign_status.rb +21 -0
- data/lib/moderation_api/models/operations/updatecampaign_status.rbi +9 -0
- data/lib/moderation_api/models/operations.rb +50 -0
- data/lib/moderation_api/moderationapi.rb +5 -1
- data/lib/moderation_api/sdkconfiguration.rb +2 -2
- data/lib/moderation_api.rb +2 -0
- metadata +104 -2
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module ModerationApi
|
|
7
|
+
module Models
|
|
8
|
+
module Operations
|
|
9
|
+
# What the registration declared about the content. Use `null` for a value that you do not know.
|
|
10
|
+
class UpdateCampaignDeclaredRequest
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# The campaign sends links.
|
|
15
|
+
field(
|
|
16
|
+
:links,
|
|
17
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
18
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("links")}}
|
|
19
|
+
)
|
|
20
|
+
# The campaign sends phone numbers.
|
|
21
|
+
field(
|
|
22
|
+
:phone_numbers,
|
|
23
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
24
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("phoneNumbers")}}
|
|
25
|
+
)
|
|
26
|
+
# The campaign sends loan offers.
|
|
27
|
+
field(
|
|
28
|
+
:lending,
|
|
29
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
30
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("lending")}}
|
|
31
|
+
)
|
|
32
|
+
# The campaign sends age-gated content.
|
|
33
|
+
field(
|
|
34
|
+
:age_gated,
|
|
35
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
36
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("ageGated")}}
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
sig {
|
|
40
|
+
params(
|
|
41
|
+
links: T.nilable(T::Boolean),
|
|
42
|
+
phone_numbers: T.nilable(T::Boolean),
|
|
43
|
+
lending: T.nilable(T::Boolean),
|
|
44
|
+
age_gated: T.nilable(T::Boolean)
|
|
45
|
+
)
|
|
46
|
+
.void
|
|
47
|
+
}
|
|
48
|
+
def initialize(links: nil, phone_numbers: nil, lending: nil, age_gated: nil)
|
|
49
|
+
@links = links
|
|
50
|
+
@phone_numbers = phone_numbers
|
|
51
|
+
@lending = lending
|
|
52
|
+
@age_gated = age_gated
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
56
|
+
def ==(other)
|
|
57
|
+
return false unless other.is_a?(self.class)
|
|
58
|
+
return false unless @links == other.links
|
|
59
|
+
return false unless @phone_numbers == other.phone_numbers
|
|
60
|
+
return false unless @lending == other.lending
|
|
61
|
+
return false unless @age_gated == other.age_gated
|
|
62
|
+
true
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class ModerationApi::Models::Operations::UpdateCampaignDeclaredRequest
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class ModerationApi::Models::Operations::UpdateCampaignDeclaredRequest
|
|
9
|
+
def links
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def links=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def phone_numbers
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def phone_numbers=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def lending
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def lending=(str_)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def age_gated
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def age_gated=(str_)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module ModerationApi
|
|
7
|
+
module Models
|
|
8
|
+
module Operations
|
|
9
|
+
# What the registration declared about the content. `null` means not known.
|
|
10
|
+
class UpdateCampaignDeclaredResponse
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# The campaign sends links.
|
|
15
|
+
field(
|
|
16
|
+
:links,
|
|
17
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
18
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("links"), required: true}}
|
|
19
|
+
)
|
|
20
|
+
# The campaign sends phone numbers.
|
|
21
|
+
field(
|
|
22
|
+
:phone_numbers,
|
|
23
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
24
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("phoneNumbers"), required: true}}
|
|
25
|
+
)
|
|
26
|
+
# The campaign sends loan offers.
|
|
27
|
+
field(
|
|
28
|
+
:lending,
|
|
29
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
30
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("lending"), required: true}}
|
|
31
|
+
)
|
|
32
|
+
# The campaign sends age-gated content.
|
|
33
|
+
field(
|
|
34
|
+
:age_gated,
|
|
35
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
36
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("ageGated"), required: true}}
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
sig {
|
|
40
|
+
params(
|
|
41
|
+
links: T.nilable(T::Boolean),
|
|
42
|
+
phone_numbers: T.nilable(T::Boolean),
|
|
43
|
+
lending: T.nilable(T::Boolean),
|
|
44
|
+
age_gated: T.nilable(T::Boolean)
|
|
45
|
+
)
|
|
46
|
+
.void
|
|
47
|
+
}
|
|
48
|
+
def initialize(links: nil, phone_numbers: nil, lending: nil, age_gated: nil)
|
|
49
|
+
@links = links
|
|
50
|
+
@phone_numbers = phone_numbers
|
|
51
|
+
@lending = lending
|
|
52
|
+
@age_gated = age_gated
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
56
|
+
def ==(other)
|
|
57
|
+
return false unless other.is_a?(self.class)
|
|
58
|
+
return false unless @links == other.links
|
|
59
|
+
return false unless @phone_numbers == other.phone_numbers
|
|
60
|
+
return false unless @lending == other.lending
|
|
61
|
+
return false unless @age_gated == other.age_gated
|
|
62
|
+
true
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class ModerationApi::Models::Operations::UpdateCampaignDeclaredResponse
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class ModerationApi::Models::Operations::UpdateCampaignDeclaredResponse
|
|
9
|
+
def links
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def links=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def phone_numbers
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def phone_numbers=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def lending
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def lending=(str_)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def age_gated
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def age_gated=(str_)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module ModerationApi
|
|
7
|
+
module Models
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
class UpdateCampaignRequest
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# Your ID for the campaign.
|
|
15
|
+
field :id, ::String, {'path_param': {'field_name': "id", 'style': "simple", 'explode': false}}
|
|
16
|
+
|
|
17
|
+
field :body, Models::Operations::UpdateCampaignRequestBody, {'request': {'media_type': "application/json"}}
|
|
18
|
+
# The project to act on, by ID or name. Required with an organization key unless the key reaches only one project; list projects with GET /projects. A project key acts on its own project and needs no value: naming another one is an error.
|
|
19
|
+
field(
|
|
20
|
+
:project_id,
|
|
21
|
+
Crystalline::Nilable.new(::String),
|
|
22
|
+
{'header': {'field_name': "Project-Id", 'style': "simple", 'explode': false}}
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
sig {
|
|
26
|
+
params(id: ::String, body: Models::Operations::UpdateCampaignRequestBody, project_id: T.nilable(::String))
|
|
27
|
+
.void
|
|
28
|
+
}
|
|
29
|
+
def initialize(id:, body:, project_id: nil)
|
|
30
|
+
@id = id
|
|
31
|
+
@body = body
|
|
32
|
+
@project_id = project_id
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
36
|
+
def ==(other)
|
|
37
|
+
return false unless other.is_a?(self.class)
|
|
38
|
+
return false unless @id == other.id
|
|
39
|
+
return false unless @body == other.body
|
|
40
|
+
return false unless @project_id == other.project_id
|
|
41
|
+
true
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class ModerationApi::Models::Operations::UpdateCampaignRequest
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class ModerationApi::Models::Operations::UpdateCampaignRequest
|
|
9
|
+
def id
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def id=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def body
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def body=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def project_id
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def project_id=(str_)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module ModerationApi
|
|
7
|
+
module Models
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
class UpdateCampaignRequestBody
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# The registered use cases, as TCR codes, for example `["CUSTOMER_CARE"]`. For a MIXED or LOW_VOLUME campaign, send its sub-use cases, for example `["ACCOUNT_NOTIFICATION", "CUSTOMER_CARE", "MARKETING"]`. Each new group of similar messages is compared with them. Known codes: 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, HIGHER_EDUCATION, MARKETING, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, SECURITY_ALERT, MIXED, LOW_VOLUME, AGENTS_FRANCHISES, CHARITY, EMERGENCY, K12_EDUCATION, POLITICAL, PROXY, PUBLIC_SAFETY_RESTRICTED, SOCIAL, SWEEPSTAKE. A code that is not in this list is also accepted. Maximum 10.
|
|
15
|
+
field(
|
|
16
|
+
:use_cases,
|
|
17
|
+
Crystalline::Nilable.new(Crystalline::Array.new(::String)),
|
|
18
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("useCases")}}
|
|
19
|
+
)
|
|
20
|
+
# The brand names in the registration. Messages are expected to use one of them as the sender name. Maximum 20.
|
|
21
|
+
field(
|
|
22
|
+
:registered_brand_names,
|
|
23
|
+
Crystalline::Nilable.new(Crystalline::Array.new(::String)),
|
|
24
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("registeredBrandNames")}}
|
|
25
|
+
)
|
|
26
|
+
# The websites in the registration. Links in messages are expected to go to one of them. Maximum 20.
|
|
27
|
+
field(
|
|
28
|
+
:websites,
|
|
29
|
+
Crystalline::Nilable.new(Crystalline::Array.new(::String)),
|
|
30
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("websites")}}
|
|
31
|
+
)
|
|
32
|
+
# The sample messages in the registration. Maximum 20. They are the baseline that later messages are compared with.
|
|
33
|
+
field(
|
|
34
|
+
:sample_messages,
|
|
35
|
+
Crystalline::Nilable.new(Crystalline::Array.new(::String)),
|
|
36
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("sampleMessages")}}
|
|
37
|
+
)
|
|
38
|
+
# What the registration declared about the content. Use `null` for a value that you do not know.
|
|
39
|
+
field(
|
|
40
|
+
:declared,
|
|
41
|
+
Crystalline::Nilable.new(Models::Operations::UpdateCampaignDeclaredRequest),
|
|
42
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("declared")}}
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
field(
|
|
46
|
+
:brand_id,
|
|
47
|
+
Crystalline::Nilable.new(::String),
|
|
48
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("brandId")}}
|
|
49
|
+
)
|
|
50
|
+
# The ID of the account in your system that sends for this campaign.
|
|
51
|
+
field(
|
|
52
|
+
:account_id,
|
|
53
|
+
Crystalline::Nilable.new(::String),
|
|
54
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("accountId")}}
|
|
55
|
+
)
|
|
56
|
+
# The ID of the sub-account in your system that sends for this campaign.
|
|
57
|
+
field(
|
|
58
|
+
:sub_account_id,
|
|
59
|
+
Crystalline::Nilable.new(::String),
|
|
60
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("subAccountId")}}
|
|
61
|
+
)
|
|
62
|
+
# The name of the campaign.
|
|
63
|
+
field(
|
|
64
|
+
:name,
|
|
65
|
+
Crystalline::Nilable.new(::String),
|
|
66
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("name")}}
|
|
67
|
+
)
|
|
68
|
+
# What the campaign is for, as registered (for example the TCR campaign description). Each new group of similar messages is compared with it.
|
|
69
|
+
field(
|
|
70
|
+
:description,
|
|
71
|
+
Crystalline::Nilable.new(::String),
|
|
72
|
+
{'format_json': {'letter_case': ::ModerationApi::Utils.field_name("description")}}
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
sig {
|
|
76
|
+
params(
|
|
77
|
+
use_cases: T.nilable(T::Array[::String]),
|
|
78
|
+
registered_brand_names: T.nilable(T::Array[::String]),
|
|
79
|
+
websites: T.nilable(T::Array[::String]),
|
|
80
|
+
sample_messages: T.nilable(T::Array[::String]),
|
|
81
|
+
declared: T.nilable(Models::Operations::UpdateCampaignDeclaredRequest),
|
|
82
|
+
brand_id: T.nilable(::String),
|
|
83
|
+
account_id: T.nilable(::String),
|
|
84
|
+
sub_account_id: T.nilable(::String),
|
|
85
|
+
name: T.nilable(::String),
|
|
86
|
+
description: T.nilable(::String)
|
|
87
|
+
)
|
|
88
|
+
.void
|
|
89
|
+
}
|
|
90
|
+
def initialize(
|
|
91
|
+
use_cases: nil,
|
|
92
|
+
registered_brand_names: nil,
|
|
93
|
+
websites: nil,
|
|
94
|
+
sample_messages: nil,
|
|
95
|
+
declared: nil,
|
|
96
|
+
brand_id: nil,
|
|
97
|
+
account_id: nil,
|
|
98
|
+
sub_account_id: nil,
|
|
99
|
+
name: nil,
|
|
100
|
+
description: nil
|
|
101
|
+
)
|
|
102
|
+
@use_cases = use_cases
|
|
103
|
+
@registered_brand_names = registered_brand_names
|
|
104
|
+
@websites = websites
|
|
105
|
+
@sample_messages = sample_messages
|
|
106
|
+
@declared = declared
|
|
107
|
+
@brand_id = brand_id
|
|
108
|
+
@account_id = account_id
|
|
109
|
+
@sub_account_id = sub_account_id
|
|
110
|
+
@name = name
|
|
111
|
+
@description = description
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
115
|
+
def ==(other)
|
|
116
|
+
return false unless other.is_a?(self.class)
|
|
117
|
+
return false unless @use_cases == other.use_cases
|
|
118
|
+
return false unless @registered_brand_names == other.registered_brand_names
|
|
119
|
+
return false unless @websites == other.websites
|
|
120
|
+
return false unless @sample_messages == other.sample_messages
|
|
121
|
+
return false unless @declared == other.declared
|
|
122
|
+
return false unless @brand_id == other.brand_id
|
|
123
|
+
return false unless @account_id == other.account_id
|
|
124
|
+
return false unless @sub_account_id == other.sub_account_id
|
|
125
|
+
return false unless @name == other.name
|
|
126
|
+
return false unless @description == other.description
|
|
127
|
+
true
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class ModerationApi::Models::Operations::UpdateCampaignRequestBody
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class ModerationApi::Models::Operations::UpdateCampaignRequestBody
|
|
9
|
+
def use_cases
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def use_cases=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def registered_brand_names
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def registered_brand_names=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def websites
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def websites=(str_)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def sample_messages
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def sample_messages=(str_)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def declared
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def declared=(str_)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def brand_id
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def brand_id=(str_)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def account_id
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def account_id=(str_)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def sub_account_id
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def sub_account_id=(str_)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def name
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def name=(str_)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def description
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def description=(str_)
|
|
67
|
+
end
|
|
68
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module ModerationApi
|
|
7
|
+
module Models
|
|
8
|
+
module Operations
|
|
9
|
+
|
|
10
|
+
class UpdateCampaignResponse
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# HTTP response content type for this operation
|
|
15
|
+
field :content_type, ::String
|
|
16
|
+
# HTTP response status code for this operation
|
|
17
|
+
field :status_code, ::Integer
|
|
18
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
19
|
+
field :raw_response, ::Faraday::Response
|
|
20
|
+
# Campaign saved successfully
|
|
21
|
+
field :object, Crystalline::Nilable.new(Models::Operations::UpdateCampaignResponseBody)
|
|
22
|
+
|
|
23
|
+
sig {
|
|
24
|
+
params(
|
|
25
|
+
content_type: ::String,
|
|
26
|
+
status_code: ::Integer,
|
|
27
|
+
raw_response: ::Faraday::Response,
|
|
28
|
+
object: T.nilable(Models::Operations::UpdateCampaignResponseBody)
|
|
29
|
+
)
|
|
30
|
+
.void
|
|
31
|
+
}
|
|
32
|
+
def initialize(content_type:, status_code:, raw_response:, object: nil)
|
|
33
|
+
@content_type = content_type
|
|
34
|
+
@status_code = status_code
|
|
35
|
+
@raw_response = raw_response
|
|
36
|
+
@object = object
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
40
|
+
def ==(other)
|
|
41
|
+
return false unless other.is_a?(self.class)
|
|
42
|
+
return false unless @content_type == other.content_type
|
|
43
|
+
return false unless @status_code == other.status_code
|
|
44
|
+
return false unless @raw_response == other.raw_response
|
|
45
|
+
return false unless @object == other.object
|
|
46
|
+
true
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class ModerationApi::Models::Operations::UpdateCampaignResponse
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class ModerationApi::Models::Operations::UpdateCampaignResponse
|
|
9
|
+
def content_type
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def content_type=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def status_code
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def status_code=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def raw_response
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def raw_response=(str_)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def object
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def object=(str_)
|
|
31
|
+
end
|
|
32
|
+
end
|