noresponse 8.1.1 → 8.1.2
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/no_response/lists.rb +908 -0
- data/lib/no_response/models/operations/createlistentry_request.rb +52 -0
- data/lib/no_response/models/operations/createlistentry_request.rbi +26 -0
- data/lib/no_response/models/operations/createlistentry_response.rb +32 -0
- data/lib/no_response/models/operations/createlistentry_response.rbi +20 -0
- data/lib/no_response/models/operations/deletelistentry_request.rb +51 -0
- data/lib/no_response/models/operations/deletelistentry_request.rbi +26 -0
- data/lib/no_response/models/operations/deletelistentry_response.rb +28 -0
- data/lib/no_response/models/operations/deletelistentry_response.rbi +14 -0
- data/lib/no_response/models/operations/listlistentries_request.rb +41 -0
- data/lib/no_response/models/operations/listlistentries_request.rbi +20 -0
- data/lib/no_response/models/operations/listlistentries_response.rb +32 -0
- data/lib/no_response/models/operations/listlistentries_response.rbi +20 -0
- data/lib/no_response/models/operations.rb +6 -0
- data/lib/no_response/models/shared/accountriskreason.rb +11 -2
- data/lib/no_response/models/shared/accountriskreason.rbi +6 -0
- data/lib/no_response/models/shared/conflicterrorcode.rb +2 -0
- data/lib/no_response/models/shared/listentry.rb +124 -0
- data/lib/no_response/models/shared/listentry.rbi +62 -0
- data/lib/no_response/models/shared/listentryaction.rb +19 -0
- data/lib/no_response/models/shared/listentryaction.rbi +9 -0
- data/lib/no_response/models/shared/listentrykind.rb +19 -0
- data/lib/no_response/models/shared/listentrykind.rbi +9 -0
- data/lib/no_response/models/shared/listentrylist.rb +32 -0
- data/lib/no_response/models/shared/listentrylist.rbi +14 -0
- data/lib/no_response/models/shared/listentryrequest.rb +77 -0
- data/lib/no_response/models/shared/listentryrequest.rbi +32 -0
- data/lib/no_response/models/shared/reasoncode.rb +1 -0
- data/lib/no_response/models/shared/riskreason.rb +11 -2
- data/lib/no_response/models/shared/riskreason.rbi +6 -0
- data/lib/no_response/models/shared.rb +5 -0
- data/lib/no_response/noresponseclient.rb +2 -1
- data/lib/no_response/sdkconfiguration.rb +2 -2
- data/lib/noresponse.rb +1 -0
- metadata +24 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module NoResponse
|
|
5
|
+
module Models
|
|
6
|
+
module Shared
|
|
7
|
+
# ListEntryKind - email matches one address, whatever the case of its local part. email_domain matches every address of the registrable domain and of its subdomains.
|
|
8
|
+
class ListEntryKind
|
|
9
|
+
include ::Crystalline::Enum
|
|
10
|
+
enums do
|
|
11
|
+
EMAIL = new("email")
|
|
12
|
+
EMAIL_DOMAIN = new("email_domain")
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
open!
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module NoResponse
|
|
5
|
+
module Models
|
|
6
|
+
module Shared
|
|
7
|
+
# GET /v1/workspaces/{workspace_id}/lists/{environment}: every entry of the environment's list, newest first. An environment holds at most 10,000 entries.
|
|
8
|
+
class ListEntryList
|
|
9
|
+
extend T::Sig
|
|
10
|
+
include Crystalline::MetadataFields
|
|
11
|
+
|
|
12
|
+
field(
|
|
13
|
+
:items,
|
|
14
|
+
Crystalline::Array.new(Models::Shared::ListEntry),
|
|
15
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("items"), required: true}}
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
sig { params(items: T::Array[Models::Shared::ListEntry]).void }
|
|
19
|
+
def initialize(items:)
|
|
20
|
+
@items = items
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
|
+
def ==(other)
|
|
25
|
+
return false unless other.is_a?(self.class)
|
|
26
|
+
return false unless @items == other.items
|
|
27
|
+
true
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class NoResponse::Models::Shared::ListEntryList
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class NoResponse::Models::Shared::ListEntryList
|
|
9
|
+
def items
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def items=(str_)
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module NoResponse
|
|
5
|
+
module Models
|
|
6
|
+
module Shared
|
|
7
|
+
# POST /v1/workspaces/{workspace_id}/lists/{environment} body. Adds one entry to the environment's list and, in the same change, re-decides every account it matches: each sends account.risk_changed when a decision changes. Needs the admin or owner role, or a management key of the environment.
|
|
8
|
+
class ListEntryRequest
|
|
9
|
+
extend T::Sig
|
|
10
|
+
include Crystalline::MetadataFields
|
|
11
|
+
|
|
12
|
+
# email matches one address, whatever the case of its local part. email_domain matches every address of the registrable domain and of its subdomains.
|
|
13
|
+
field(
|
|
14
|
+
:kind,
|
|
15
|
+
Models::Shared::ListEntryKind,
|
|
16
|
+
{
|
|
17
|
+
'format_json': {
|
|
18
|
+
'letter_case': ::NoResponse::Utils.field_name("kind"),
|
|
19
|
+
required: true,
|
|
20
|
+
'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::ListEntryKind, false)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
# An email address for kind email, written as in an assessment request; an LDH domain (A-label for an internationalised one) such as example.com for kind email_domain, which must sit below a public suffix (co.uk alone is refused with 400). NoResponse stores it in canonical form and answers that form.
|
|
25
|
+
field(
|
|
26
|
+
:value,
|
|
27
|
+
::String,
|
|
28
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("value"), required: true}}
|
|
29
|
+
)
|
|
30
|
+
# block decides block for the accounts the entry matches; allow decides allow. Block wins when both match.
|
|
31
|
+
field(
|
|
32
|
+
:action,
|
|
33
|
+
Models::Shared::ListEntryAction,
|
|
34
|
+
{
|
|
35
|
+
'format_json': {
|
|
36
|
+
'letter_case': ::NoResponse::Utils.field_name("action"),
|
|
37
|
+
required: true,
|
|
38
|
+
'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::ListEntryAction, false)
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
# Why the entry exists, for the people who manage the list. It is shown with the entry and decides nothing.
|
|
43
|
+
field(
|
|
44
|
+
:note,
|
|
45
|
+
Crystalline::Nilable.new(::String),
|
|
46
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("note")}}
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
sig {
|
|
50
|
+
params(
|
|
51
|
+
kind: Models::Shared::ListEntryKind,
|
|
52
|
+
value: ::String,
|
|
53
|
+
action: Models::Shared::ListEntryAction,
|
|
54
|
+
note: T.nilable(::String)
|
|
55
|
+
)
|
|
56
|
+
.void
|
|
57
|
+
}
|
|
58
|
+
def initialize(kind:, value:, action:, note: nil)
|
|
59
|
+
@kind = kind
|
|
60
|
+
@value = value
|
|
61
|
+
@action = action
|
|
62
|
+
@note = note
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
66
|
+
def ==(other)
|
|
67
|
+
return false unless other.is_a?(self.class)
|
|
68
|
+
return false unless @kind == other.kind
|
|
69
|
+
return false unless @value == other.value
|
|
70
|
+
return false unless @action == other.action
|
|
71
|
+
return false unless @note == other.note
|
|
72
|
+
true
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class NoResponse::Models::Shared::ListEntryRequest
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class NoResponse::Models::Shared::ListEntryRequest
|
|
9
|
+
def kind
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def kind=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def value
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def value=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def action
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def action=(str_)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def note
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def note=(str_)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -45,6 +45,7 @@ module NoResponse
|
|
|
45
45
|
PRIOR_ABUSE_LINK = new("prior_abuse_link")
|
|
46
46
|
TEST_SCENARIO = new("test_scenario")
|
|
47
47
|
SHARED_API_KEY = new("shared_api_key")
|
|
48
|
+
LIST_MATCH = new("list_match")
|
|
48
49
|
YOUNG_EMAIL_DOMAIN = new("young_email_domain")
|
|
49
50
|
EMAIL_DOMAIN_NO_MX = new("email_domain_no_mx")
|
|
50
51
|
EMAIL_DOMAIN_NONEXISTENT = new("email_domain_nonexistent")
|
|
@@ -56,21 +56,29 @@ module NoResponse
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
|
+
# The list entry a list_match reason applied. No other reason carries it.
|
|
60
|
+
field(
|
|
61
|
+
:list_entry_id,
|
|
62
|
+
Crystalline::Nilable.new(::String),
|
|
63
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("list_entry_id")}}
|
|
64
|
+
)
|
|
59
65
|
|
|
60
66
|
sig {
|
|
61
67
|
params(
|
|
62
68
|
code: Models::Shared::ReasonCode,
|
|
63
69
|
direction: Models::Shared::Direction,
|
|
64
70
|
impact: Models::Shared::Impact,
|
|
65
|
-
identifier: T.nilable(Models::Shared::ReasonIdentifier)
|
|
71
|
+
identifier: T.nilable(Models::Shared::ReasonIdentifier),
|
|
72
|
+
list_entry_id: T.nilable(::String)
|
|
66
73
|
)
|
|
67
74
|
.void
|
|
68
75
|
}
|
|
69
|
-
def initialize(code:, direction:, impact:, identifier: nil)
|
|
76
|
+
def initialize(code:, direction:, impact:, identifier: nil, list_entry_id: nil)
|
|
70
77
|
@code = code
|
|
71
78
|
@direction = direction
|
|
72
79
|
@impact = impact
|
|
73
80
|
@identifier = identifier
|
|
81
|
+
@list_entry_id = list_entry_id
|
|
74
82
|
end
|
|
75
83
|
|
|
76
84
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -80,6 +88,7 @@ module NoResponse
|
|
|
80
88
|
return false unless @direction == other.direction
|
|
81
89
|
return false unless @impact == other.impact
|
|
82
90
|
return false unless @identifier == other.identifier
|
|
91
|
+
return false unless @list_entry_id == other.list_entry_id
|
|
83
92
|
true
|
|
84
93
|
end
|
|
85
94
|
end
|
|
@@ -103,6 +103,11 @@ module NoResponse
|
|
|
103
103
|
autoload :KeyScope, "no_response/models/shared/key_scope.rb"
|
|
104
104
|
autoload :Lane, "no_response/models/shared/lane.rb"
|
|
105
105
|
autoload :LineType, "no_response/models/shared/linetype.rb"
|
|
106
|
+
autoload :ListEntry, "no_response/models/shared/listentry.rb"
|
|
107
|
+
autoload :ListEntryAction, "no_response/models/shared/listentryaction.rb"
|
|
108
|
+
autoload :ListEntryKind, "no_response/models/shared/listentrykind.rb"
|
|
109
|
+
autoload :ListEntryList, "no_response/models/shared/listentrylist.rb"
|
|
110
|
+
autoload :ListEntryRequest, "no_response/models/shared/listentryrequest.rb"
|
|
106
111
|
autoload :NotFoundErrorCode, "no_response/models/shared/notfounderrorcode.rb"
|
|
107
112
|
autoload :OnExpiry, "no_response/models/shared/onexpiry.rb"
|
|
108
113
|
autoload :Outcome, "no_response/models/shared/outcome.rb"
|
|
@@ -15,7 +15,7 @@ module NoResponse
|
|
|
15
15
|
class NoResponseClient
|
|
16
16
|
extend T::Sig
|
|
17
17
|
|
|
18
|
-
attr_accessor :assessments, :accounts, :key_usage, :keys, :integrations, :webhook_endpoints, :settings
|
|
18
|
+
attr_accessor :assessments, :accounts, :key_usage, :keys, :integrations, :webhook_endpoints, :settings, :lists
|
|
19
19
|
|
|
20
20
|
# Instantiates the SDK, configuring it with the provided parameters.
|
|
21
21
|
#
|
|
@@ -94,6 +94,7 @@ module NoResponse
|
|
|
94
94
|
@integrations = Integrations.new(@sdk_configuration)
|
|
95
95
|
@webhook_endpoints = WebhookEndpoints.new(@sdk_configuration)
|
|
96
96
|
@settings = Settings.new(@sdk_configuration)
|
|
97
|
+
@lists = Lists.new(@sdk_configuration)
|
|
97
98
|
end
|
|
98
99
|
|
|
99
100
|
sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
|
|
@@ -95,9 +95,9 @@ module NoResponse
|
|
|
95
95
|
|
|
96
96
|
@language = "ruby"
|
|
97
97
|
@openapi_doc_version = "1"
|
|
98
|
-
@sdk_version = "8.1.
|
|
98
|
+
@sdk_version = "8.1.2"
|
|
99
99
|
@gen_version = "internal"
|
|
100
|
-
@user_agent = "noresponse-sdk/ruby 8.1.
|
|
100
|
+
@user_agent = "noresponse-sdk/ruby 8.1.2 internal 1 noresponse"
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/noresponse.rb
CHANGED
|
@@ -10,6 +10,7 @@ module NoResponse
|
|
|
10
10
|
autoload :Integrations, "no_response/integrations"
|
|
11
11
|
autoload :WebhookEndpoints, "no_response/webhookendpoints"
|
|
12
12
|
autoload :Settings, "no_response/settings"
|
|
13
|
+
autoload :Lists, "no_response/lists"
|
|
13
14
|
|
|
14
15
|
module Models
|
|
15
16
|
autoload :Shared, "no_response/models/shared"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: noresponse
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.1.
|
|
4
|
+
version: 8.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NoResponse
|
|
@@ -260,6 +260,7 @@ files:
|
|
|
260
260
|
- lib/no_response/keys.rb
|
|
261
261
|
- lib/no_response/keyusage.rb
|
|
262
262
|
- lib/no_response/late_results.rb
|
|
263
|
+
- lib/no_response/lists.rb
|
|
263
264
|
- lib/no_response/models/callbacks.rb
|
|
264
265
|
- lib/no_response/models/errors.rb
|
|
265
266
|
- lib/no_response/models/errors/apistatuserror.rb
|
|
@@ -287,6 +288,10 @@ files:
|
|
|
287
288
|
- lib/no_response/models/operations/createkey_request.rbi
|
|
288
289
|
- lib/no_response/models/operations/createkey_response.rb
|
|
289
290
|
- lib/no_response/models/operations/createkey_response.rbi
|
|
291
|
+
- lib/no_response/models/operations/createlistentry_request.rb
|
|
292
|
+
- lib/no_response/models/operations/createlistentry_request.rbi
|
|
293
|
+
- lib/no_response/models/operations/createlistentry_response.rb
|
|
294
|
+
- lib/no_response/models/operations/createlistentry_response.rbi
|
|
290
295
|
- lib/no_response/models/operations/createwebhookendpoint_response.rb
|
|
291
296
|
- lib/no_response/models/operations/createwebhookendpoint_response.rbi
|
|
292
297
|
- lib/no_response/models/operations/deleteaccount_request.rb
|
|
@@ -301,6 +306,10 @@ files:
|
|
|
301
306
|
- lib/no_response/models/operations/deleteintegration_request.rbi
|
|
302
307
|
- lib/no_response/models/operations/deleteintegration_response.rb
|
|
303
308
|
- lib/no_response/models/operations/deleteintegration_response.rbi
|
|
309
|
+
- lib/no_response/models/operations/deletelistentry_request.rb
|
|
310
|
+
- lib/no_response/models/operations/deletelistentry_request.rbi
|
|
311
|
+
- lib/no_response/models/operations/deletelistentry_response.rb
|
|
312
|
+
- lib/no_response/models/operations/deletelistentry_response.rbi
|
|
304
313
|
- lib/no_response/models/operations/deletewebhookendpoint_request.rb
|
|
305
314
|
- lib/no_response/models/operations/deletewebhookendpoint_request.rbi
|
|
306
315
|
- lib/no_response/models/operations/deletewebhookendpoint_response.rb
|
|
@@ -331,6 +340,10 @@ files:
|
|
|
331
340
|
- lib/no_response/models/operations/listkeys_request.rbi
|
|
332
341
|
- lib/no_response/models/operations/listkeys_response.rb
|
|
333
342
|
- lib/no_response/models/operations/listkeys_response.rbi
|
|
343
|
+
- lib/no_response/models/operations/listlistentries_request.rb
|
|
344
|
+
- lib/no_response/models/operations/listlistentries_request.rbi
|
|
345
|
+
- lib/no_response/models/operations/listlistentries_response.rb
|
|
346
|
+
- lib/no_response/models/operations/listlistentries_response.rbi
|
|
334
347
|
- lib/no_response/models/operations/listwebhookdeliveries_request.rb
|
|
335
348
|
- lib/no_response/models/operations/listwebhookdeliveries_request.rbi
|
|
336
349
|
- lib/no_response/models/operations/listwebhookdeliveries_response.rb
|
|
@@ -584,6 +597,16 @@ files:
|
|
|
584
597
|
- lib/no_response/models/shared/lane.rbi
|
|
585
598
|
- lib/no_response/models/shared/linetype.rb
|
|
586
599
|
- lib/no_response/models/shared/linetype.rbi
|
|
600
|
+
- lib/no_response/models/shared/listentry.rb
|
|
601
|
+
- lib/no_response/models/shared/listentry.rbi
|
|
602
|
+
- lib/no_response/models/shared/listentryaction.rb
|
|
603
|
+
- lib/no_response/models/shared/listentryaction.rbi
|
|
604
|
+
- lib/no_response/models/shared/listentrykind.rb
|
|
605
|
+
- lib/no_response/models/shared/listentrykind.rbi
|
|
606
|
+
- lib/no_response/models/shared/listentrylist.rb
|
|
607
|
+
- lib/no_response/models/shared/listentrylist.rbi
|
|
608
|
+
- lib/no_response/models/shared/listentryrequest.rb
|
|
609
|
+
- lib/no_response/models/shared/listentryrequest.rbi
|
|
587
610
|
- lib/no_response/models/shared/location.rb
|
|
588
611
|
- lib/no_response/models/shared/location.rbi
|
|
589
612
|
- lib/no_response/models/shared/location_union.rb
|