noresponse 7.0.5 → 7.1.1
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/keys.rb +866 -0
- data/lib/no_response/late_results.rb +5 -3
- data/lib/no_response/models/operations/createkey_request.rb +37 -0
- data/lib/no_response/models/operations/createkey_request.rbi +20 -0
- data/lib/no_response/models/operations/createkey_response.rb +32 -0
- data/lib/no_response/models/operations/createkey_response.rbi +20 -0
- data/lib/no_response/models/operations/getsettings_request.rb +41 -0
- data/lib/no_response/models/operations/getsettings_request.rbi +20 -0
- data/lib/no_response/models/operations/getsettings_response.rb +32 -0
- data/lib/no_response/models/operations/getsettings_response.rbi +20 -0
- data/lib/no_response/models/operations/listaccounts_request.rb +1 -1
- data/lib/no_response/models/operations/listkeys_request.rb +33 -0
- data/lib/no_response/models/operations/listkeys_request.rbi +14 -0
- data/lib/no_response/models/operations/listkeys_response.rb +32 -0
- data/lib/no_response/models/operations/listkeys_response.rbi +20 -0
- data/lib/no_response/models/operations/revokekey_request.rb +37 -0
- data/lib/no_response/models/operations/revokekey_request.rbi +20 -0
- data/lib/no_response/models/operations/revokekey_response.rb +32 -0
- data/lib/no_response/models/operations/revokekey_response.rbi +20 -0
- data/lib/no_response/models/operations/updatesettings_request.rb +52 -0
- data/lib/no_response/models/operations/updatesettings_request.rbi +26 -0
- data/lib/no_response/models/operations/updatesettings_response.rb +32 -0
- data/lib/no_response/models/operations/updatesettings_response.rbi +20 -0
- data/lib/no_response/models/operations.rb +10 -0
- data/lib/no_response/models/shared/admission.rb +19 -0
- data/lib/no_response/models/shared/admission.rbi +9 -0
- data/lib/no_response/models/shared/conflicterrorcode.rb +2 -0
- data/lib/no_response/models/shared/defaultdepth.rb +19 -0
- data/lib/no_response/models/shared/defaultdepth.rbi +9 -0
- data/lib/no_response/models/shared/enforcement.rb +1 -1
- data/lib/no_response/models/shared/enforcementaction.rb +2 -1
- data/lib/no_response/models/shared/enforcementrequest.rb +1 -1
- data/lib/no_response/models/shared/flowchange.rb +136 -0
- data/lib/no_response/models/shared/flowchange.rbi +62 -0
- data/lib/no_response/models/shared/flowsettings.rb +127 -0
- data/lib/no_response/models/shared/flowsettings.rbi +56 -0
- data/lib/no_response/models/shared/key.rb +158 -0
- data/lib/no_response/models/shared/key.rbi +80 -0
- data/lib/no_response/models/shared/{scope.rb → key_scope.rb} +2 -1
- data/lib/no_response/models/shared/{scope.rbi → key_scope.rbi} +2 -2
- data/lib/no_response/models/shared/keyenvironment.rb +19 -0
- data/lib/no_response/models/shared/keyenvironment.rbi +9 -0
- data/lib/no_response/models/shared/keylist.rb +32 -0
- data/lib/no_response/models/shared/keylist.rbi +14 -0
- data/lib/no_response/models/shared/keyrequest.rb +49 -0
- data/lib/no_response/models/shared/keyrequest.rbi +20 -0
- data/lib/no_response/models/shared/keyrequest_scope.rb +21 -0
- data/lib/no_response/models/shared/keyrequest_scope.rbi +9 -0
- data/lib/no_response/models/shared/keyrotation.rb +2 -2
- data/lib/no_response/models/shared/keyrotation_scope.rb +24 -0
- data/lib/no_response/models/shared/keyrotation_scope.rbi +9 -0
- data/lib/no_response/models/shared/keystatus.rb +20 -0
- data/lib/no_response/models/shared/keystatus.rbi +9 -0
- data/lib/no_response/models/shared/onexpiry.rb +20 -0
- data/lib/no_response/models/shared/onexpiry.rbi +9 -0
- data/lib/no_response/models/shared/permissiondeniederrorcode.rb +1 -0
- data/lib/no_response/models/shared/settings.rb +116 -0
- data/lib/no_response/models/shared/settings.rbi +56 -0
- data/lib/no_response/models/shared/settingsflows.rb +56 -0
- data/lib/no_response/models/shared/settingsflows.rbi +26 -0
- data/lib/no_response/models/shared/settingsrequest.rb +55 -0
- data/lib/no_response/models/shared/settingsrequest.rbi +26 -0
- data/lib/no_response/models/shared/settingsrequestflows.rb +65 -0
- data/lib/no_response/models/shared/settingsrequestflows.rbi +32 -0
- data/lib/no_response/models/shared/sourceid.rb +23 -0
- data/lib/no_response/models/shared/sourceid.rbi +9 -0
- data/lib/no_response/models/shared.rb +18 -1
- data/lib/no_response/noresponseclient.rb +2 -1
- data/lib/no_response/sdkconfiguration.rb +2 -2
- data/lib/no_response/settings.rb +633 -0
- data/lib/noresponse.rb +1 -0
- metadata +58 -3
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module NoResponse
|
|
5
|
+
module Models
|
|
6
|
+
module Shared
|
|
7
|
+
# One environment's settings: how long its assessments are kept, and for each flow the risk thresholds that decide it and the depth a request that names none is served at, and the sources it refuses. Live and test each have their own. A flow without thresholds of its own uses account_creation's (inherits_account_creation). Every change is recorded in the audit log as settings.updated, with who made it.
|
|
8
|
+
class Settings
|
|
9
|
+
extend T::Sig
|
|
10
|
+
include Crystalline::MetadataFields
|
|
11
|
+
|
|
12
|
+
# The workspace id, which is also its live environment's workspace id; the test environment's is the same id with :test appended. A workspace created through the API is tnt_ and a 26-character ULID.
|
|
13
|
+
field(
|
|
14
|
+
:workspace_id,
|
|
15
|
+
::String,
|
|
16
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("workspace_id"), required: true}}
|
|
17
|
+
)
|
|
18
|
+
# The environment the key belongs to. A live key assesses with live sources; a test key answers from the deterministic simulator.
|
|
19
|
+
field(
|
|
20
|
+
:environment,
|
|
21
|
+
Models::Shared::KeyEnvironment,
|
|
22
|
+
{
|
|
23
|
+
'format_json': {
|
|
24
|
+
'letter_case': ::NoResponse::Utils.field_name("environment"),
|
|
25
|
+
required: true,
|
|
26
|
+
'decoder': ::NoResponse::Utils.open_enum_from_string(Models::Shared::KeyEnvironment, false)
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
# Days an assessment is kept after it is created, 1 to 365 (default 365). Shortening hides older assessments at once.
|
|
31
|
+
field(
|
|
32
|
+
:retention_days,
|
|
33
|
+
::Integer,
|
|
34
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("retention_days"), required: true}}
|
|
35
|
+
)
|
|
36
|
+
# How many times this environment's policy has changed; 0 while the defaults apply. A served risk.policy_version ends in +t<policy_version> once it is above 0.
|
|
37
|
+
field(
|
|
38
|
+
:policy_version,
|
|
39
|
+
::Integer,
|
|
40
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("policy_version"), required: true}}
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
field(
|
|
44
|
+
:flows,
|
|
45
|
+
Models::Shared::SettingsFlows,
|
|
46
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("flows"), required: true}}
|
|
47
|
+
)
|
|
48
|
+
# The sources this environment refuses, sorted; empty, the default, refuses none. An assessment leaves a refused source out: its coverage is missing (an identifier with no other source lists coverage-unavailable as unavailable) rather than not_found, and a stored result of a refused source is not reused.
|
|
49
|
+
field(
|
|
50
|
+
:refused_sources,
|
|
51
|
+
Crystalline::Array.new(Models::Shared::SourceId),
|
|
52
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("refused_sources"), required: true}}
|
|
53
|
+
)
|
|
54
|
+
# Who last changed the policy: the member's external user id for a change made through the console, the prefix (nrk_<environment>_<key id>) of the management key that made it, or NoResponse. Absent while the defaults apply.
|
|
55
|
+
field(
|
|
56
|
+
:updated_by,
|
|
57
|
+
Crystalline::Nilable.new(::String),
|
|
58
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("updated_by")}}
|
|
59
|
+
)
|
|
60
|
+
# When the policy last changed. Absent while the defaults apply.
|
|
61
|
+
field(
|
|
62
|
+
:updated_at,
|
|
63
|
+
Crystalline::Nilable.new(::String),
|
|
64
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("updated_at")}}
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
sig {
|
|
68
|
+
params(
|
|
69
|
+
workspace_id: ::String,
|
|
70
|
+
environment: Models::Shared::KeyEnvironment,
|
|
71
|
+
retention_days: ::Integer,
|
|
72
|
+
policy_version: ::Integer,
|
|
73
|
+
flows: Models::Shared::SettingsFlows,
|
|
74
|
+
refused_sources: T::Array[Models::Shared::SourceId],
|
|
75
|
+
updated_by: T.nilable(::String),
|
|
76
|
+
updated_at: T.nilable(::String)
|
|
77
|
+
)
|
|
78
|
+
.void
|
|
79
|
+
}
|
|
80
|
+
def initialize(
|
|
81
|
+
workspace_id:,
|
|
82
|
+
environment:,
|
|
83
|
+
retention_days:,
|
|
84
|
+
policy_version:,
|
|
85
|
+
flows:,
|
|
86
|
+
refused_sources:,
|
|
87
|
+
updated_by: nil,
|
|
88
|
+
updated_at: nil
|
|
89
|
+
)
|
|
90
|
+
@workspace_id = workspace_id
|
|
91
|
+
@environment = environment
|
|
92
|
+
@retention_days = retention_days
|
|
93
|
+
@policy_version = policy_version
|
|
94
|
+
@flows = flows
|
|
95
|
+
@refused_sources = refused_sources
|
|
96
|
+
@updated_by = updated_by
|
|
97
|
+
@updated_at = updated_at
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
101
|
+
def ==(other)
|
|
102
|
+
return false unless other.is_a?(self.class)
|
|
103
|
+
return false unless @workspace_id == other.workspace_id
|
|
104
|
+
return false unless @environment == other.environment
|
|
105
|
+
return false unless @retention_days == other.retention_days
|
|
106
|
+
return false unless @policy_version == other.policy_version
|
|
107
|
+
return false unless @flows == other.flows
|
|
108
|
+
return false unless @refused_sources == other.refused_sources
|
|
109
|
+
return false unless @updated_by == other.updated_by
|
|
110
|
+
return false unless @updated_at == other.updated_at
|
|
111
|
+
true
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class NoResponse::Models::Shared::Settings
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class NoResponse::Models::Shared::Settings
|
|
9
|
+
def workspace_id
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def workspace_id=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def environment
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def environment=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def retention_days
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def retention_days=(str_)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def policy_version
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def policy_version=(str_)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def flows
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def flows=(str_)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def refused_sources
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def refused_sources=(str_)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def updated_by
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def updated_by=(str_)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def updated_at
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def updated_at=(str_)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module NoResponse
|
|
5
|
+
module Models
|
|
6
|
+
module Shared
|
|
7
|
+
|
|
8
|
+
class SettingsFlows
|
|
9
|
+
extend T::Sig
|
|
10
|
+
include Crystalline::MetadataFields
|
|
11
|
+
|
|
12
|
+
# One flow's policy in force. A score below step_up is allow, below review step_up, and from review review; from block, when present, the decision is block. admission says when the flow's decision is final.
|
|
13
|
+
field(
|
|
14
|
+
:account_creation,
|
|
15
|
+
Models::Shared::FlowSettings,
|
|
16
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("account_creation"), required: true}}
|
|
17
|
+
)
|
|
18
|
+
# One flow's policy in force. A score below step_up is allow, below review step_up, and from review review; from block, when present, the decision is block. admission says when the flow's decision is final.
|
|
19
|
+
field(
|
|
20
|
+
:login,
|
|
21
|
+
Models::Shared::FlowSettings,
|
|
22
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("login"), required: true}}
|
|
23
|
+
)
|
|
24
|
+
# One flow's policy in force. A score below step_up is allow, below review step_up, and from review review; from block, when present, the decision is block. admission says when the flow's decision is final.
|
|
25
|
+
field(
|
|
26
|
+
:purchase,
|
|
27
|
+
Models::Shared::FlowSettings,
|
|
28
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("purchase"), required: true}}
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
sig {
|
|
32
|
+
params(
|
|
33
|
+
account_creation: Models::Shared::FlowSettings,
|
|
34
|
+
login: Models::Shared::FlowSettings,
|
|
35
|
+
purchase: Models::Shared::FlowSettings
|
|
36
|
+
)
|
|
37
|
+
.void
|
|
38
|
+
}
|
|
39
|
+
def initialize(account_creation:, login:, purchase:)
|
|
40
|
+
@account_creation = account_creation
|
|
41
|
+
@login = login
|
|
42
|
+
@purchase = purchase
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
46
|
+
def ==(other)
|
|
47
|
+
return false unless other.is_a?(self.class)
|
|
48
|
+
return false unless @account_creation == other.account_creation
|
|
49
|
+
return false unless @login == other.login
|
|
50
|
+
return false unless @purchase == other.purchase
|
|
51
|
+
true
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class NoResponse::Models::Shared::SettingsFlows
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class NoResponse::Models::Shared::SettingsFlows
|
|
9
|
+
def account_creation
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def account_creation=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def login
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def login=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def purchase
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def purchase=(str_)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module NoResponse
|
|
5
|
+
module Models
|
|
6
|
+
module Shared
|
|
7
|
+
# PATCH /v1/workspaces/{workspace_id}/settings/{environment} body. Changes only what it names, in one transaction; a policy change is one new policy_version. Needs the admin or owner role, or an API key with the management scope for its own environment.
|
|
8
|
+
class SettingsRequest
|
|
9
|
+
extend T::Sig
|
|
10
|
+
include Crystalline::MetadataFields
|
|
11
|
+
|
|
12
|
+
field(
|
|
13
|
+
:retention_days,
|
|
14
|
+
Crystalline::Nilable.new(::Integer),
|
|
15
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("retention_days")}}
|
|
16
|
+
)
|
|
17
|
+
# Replaces the refused sources; [] refuses none. A change applies to new assessments within a minute.
|
|
18
|
+
field(
|
|
19
|
+
:refused_sources,
|
|
20
|
+
Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::SourceId)),
|
|
21
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("refused_sources")}}
|
|
22
|
+
)
|
|
23
|
+
# Use account_creation or its deprecated alias signup, not both.
|
|
24
|
+
field(
|
|
25
|
+
:flows,
|
|
26
|
+
Crystalline::Nilable.new(Models::Shared::SettingsRequestFlows),
|
|
27
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("flows")}}
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
sig {
|
|
31
|
+
params(
|
|
32
|
+
retention_days: T.nilable(::Integer),
|
|
33
|
+
refused_sources: T.nilable(T::Array[Models::Shared::SourceId]),
|
|
34
|
+
flows: T.nilable(Models::Shared::SettingsRequestFlows)
|
|
35
|
+
)
|
|
36
|
+
.void
|
|
37
|
+
}
|
|
38
|
+
def initialize(retention_days: nil, refused_sources: nil, flows: nil)
|
|
39
|
+
@retention_days = retention_days
|
|
40
|
+
@refused_sources = refused_sources
|
|
41
|
+
@flows = flows
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
45
|
+
def ==(other)
|
|
46
|
+
return false unless other.is_a?(self.class)
|
|
47
|
+
return false unless @retention_days == other.retention_days
|
|
48
|
+
return false unless @refused_sources == other.refused_sources
|
|
49
|
+
return false unless @flows == other.flows
|
|
50
|
+
true
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class NoResponse::Models::Shared::SettingsRequest
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class NoResponse::Models::Shared::SettingsRequest
|
|
9
|
+
def retention_days
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def retention_days=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def refused_sources
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def refused_sources=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def flows
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def flows=(str_)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module NoResponse
|
|
5
|
+
module Models
|
|
6
|
+
module Shared
|
|
7
|
+
# Use account_creation or its deprecated alias signup, not both.
|
|
8
|
+
class SettingsRequestFlows
|
|
9
|
+
extend T::Sig
|
|
10
|
+
include Crystalline::MetadataFields
|
|
11
|
+
|
|
12
|
+
# A change to one flow. A field left out keeps the value in force. Thresholds set on login or purchase start from the values in force, account_creation's while it inherits them. After the change, 0 < step_up < review <= 100 and block is off or review <= block <= 100.
|
|
13
|
+
field(
|
|
14
|
+
:account_creation,
|
|
15
|
+
Crystalline::Nilable.new(Models::Shared::FlowChange),
|
|
16
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("account_creation")}}
|
|
17
|
+
)
|
|
18
|
+
# A change to one flow. A field left out keeps the value in force. Thresholds set on login or purchase start from the values in force, account_creation's while it inherits them. After the change, 0 < step_up < review <= 100 and block is off or review <= block <= 100.
|
|
19
|
+
field(
|
|
20
|
+
:login,
|
|
21
|
+
Crystalline::Nilable.new(Models::Shared::FlowChange),
|
|
22
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("login")}}
|
|
23
|
+
)
|
|
24
|
+
# A change to one flow. A field left out keeps the value in force. Thresholds set on login or purchase start from the values in force, account_creation's while it inherits them. After the change, 0 < step_up < review <= 100 and block is off or review <= block <= 100.
|
|
25
|
+
field(
|
|
26
|
+
:purchase,
|
|
27
|
+
Crystalline::Nilable.new(Models::Shared::FlowChange),
|
|
28
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("purchase")}}
|
|
29
|
+
)
|
|
30
|
+
# A change to one flow. A field left out keeps the value in force. Thresholds set on login or purchase start from the values in force, account_creation's while it inherits them. After the change, 0 < step_up < review <= 100 and block is off or review <= block <= 100.
|
|
31
|
+
field(
|
|
32
|
+
:signup,
|
|
33
|
+
Crystalline::Nilable.new(Models::Shared::FlowChange),
|
|
34
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("signup")}}
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
sig {
|
|
38
|
+
params(
|
|
39
|
+
account_creation: T.nilable(Models::Shared::FlowChange),
|
|
40
|
+
login: T.nilable(Models::Shared::FlowChange),
|
|
41
|
+
purchase: T.nilable(Models::Shared::FlowChange),
|
|
42
|
+
signup: T.nilable(Models::Shared::FlowChange)
|
|
43
|
+
)
|
|
44
|
+
.void
|
|
45
|
+
}
|
|
46
|
+
def initialize(account_creation: nil, login: nil, purchase: nil, signup: nil)
|
|
47
|
+
@account_creation = account_creation
|
|
48
|
+
@login = login
|
|
49
|
+
@purchase = purchase
|
|
50
|
+
@signup = signup
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
54
|
+
def ==(other)
|
|
55
|
+
return false unless other.is_a?(self.class)
|
|
56
|
+
return false unless @account_creation == other.account_creation
|
|
57
|
+
return false unless @login == other.login
|
|
58
|
+
return false unless @purchase == other.purchase
|
|
59
|
+
return false unless @signup == other.signup
|
|
60
|
+
true
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class NoResponse::Models::Shared::SettingsRequestFlows
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class NoResponse::Models::Shared::SettingsRequestFlows
|
|
9
|
+
def account_creation
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def account_creation=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def login
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def login=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def purchase
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def purchase=(str_)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def signup
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def signup=(str_)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module NoResponse
|
|
5
|
+
module Models
|
|
6
|
+
module Shared
|
|
7
|
+
# SourceId - A NoResponse source: github (GitHub accounts), phone (the phone lookup), breach (breach exposure), rdap (the email domain's registration), mx (the email domain's mail servers) or ipintel (IP intelligence).
|
|
8
|
+
class SourceId
|
|
9
|
+
include ::Crystalline::Enum
|
|
10
|
+
enums do
|
|
11
|
+
GITHUB = new("github")
|
|
12
|
+
PHONE = new("phone")
|
|
13
|
+
BREACH = new("breach")
|
|
14
|
+
RDAP = new("rdap")
|
|
15
|
+
MX = new("mx")
|
|
16
|
+
IPINTEL = new("ipintel")
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
open!
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -15,6 +15,7 @@ module NoResponse
|
|
|
15
15
|
autoload :AccountRiskChanged, "no_response/models/shared/accountriskchanged.rb"
|
|
16
16
|
autoload :AccountRiskChangedEvent, "no_response/models/shared/accountriskchangedevent.rb"
|
|
17
17
|
autoload :AccountRiskReason, "no_response/models/shared/accountriskreason.rb"
|
|
18
|
+
autoload :Admission, "no_response/models/shared/admission.rb"
|
|
18
19
|
autoload :Assessment, "no_response/models/shared/assessment.rb"
|
|
19
20
|
autoload :AssessmentDeletion, "no_response/models/shared/assessmentdeletion.rb"
|
|
20
21
|
autoload :AssessmentDeletionAccount, "no_response/models/shared/assessmentdeletionaccount.rb"
|
|
@@ -49,6 +50,7 @@ module NoResponse
|
|
|
49
50
|
autoload :Consistency, "no_response/models/shared/consistency.rb"
|
|
50
51
|
autoload :ConsistencyValue, "no_response/models/shared/consistencyvalue.rb"
|
|
51
52
|
autoload :Country, "no_response/models/shared/country.rb"
|
|
53
|
+
autoload :DefaultDepth, "no_response/models/shared/defaultdepth.rb"
|
|
52
54
|
autoload :Depth, "no_response/models/shared/depth.rb"
|
|
53
55
|
autoload :EndpointVerification, "no_response/models/shared/endpointverification.rb"
|
|
54
56
|
autoload :EndpointVerificationEvent, "no_response/models/shared/endpointverificationevent.rb"
|
|
@@ -62,6 +64,8 @@ module NoResponse
|
|
|
62
64
|
autoload :Failure, "no_response/models/shared/failure.rb"
|
|
63
65
|
autoload :FailureReason, "no_response/models/shared/failurereason.rb"
|
|
64
66
|
autoload :Flow, "no_response/models/shared/flow.rb"
|
|
67
|
+
autoload :FlowChange, "no_response/models/shared/flowchange.rb"
|
|
68
|
+
autoload :FlowSettings, "no_response/models/shared/flowsettings.rb"
|
|
65
69
|
autoload :Freshness, "no_response/models/shared/freshness.rb"
|
|
66
70
|
autoload :HookPoint, "no_response/models/shared/hookpoint.rb"
|
|
67
71
|
autoload :IdentifierKind, "no_response/models/shared/identifierkind.rb"
|
|
@@ -75,14 +79,23 @@ module NoResponse
|
|
|
75
79
|
autoload :IntegrationRotationRequest, "no_response/models/shared/integrationrotationrequest.rb"
|
|
76
80
|
autoload :IpSummary, "no_response/models/shared/ipsummary.rb"
|
|
77
81
|
autoload :IpSummaryType, "no_response/models/shared/ipsummarytype.rb"
|
|
82
|
+
autoload :Key, "no_response/models/shared/key.rb"
|
|
83
|
+
autoload :KeyEnvironment, "no_response/models/shared/keyenvironment.rb"
|
|
84
|
+
autoload :KeyList, "no_response/models/shared/keylist.rb"
|
|
85
|
+
autoload :KeyRequest, "no_response/models/shared/keyrequest.rb"
|
|
86
|
+
autoload :KeyRequestScope, "no_response/models/shared/keyrequest_scope.rb"
|
|
78
87
|
autoload :KeyRotation, "no_response/models/shared/keyrotation.rb"
|
|
79
88
|
autoload :KeyRotationRequest, "no_response/models/shared/keyrotationrequest.rb"
|
|
89
|
+
autoload :KeyRotationScope, "no_response/models/shared/keyrotation_scope.rb"
|
|
90
|
+
autoload :KeyStatus, "no_response/models/shared/keystatus.rb"
|
|
80
91
|
autoload :KeyUsageBatch, "no_response/models/shared/keyusagebatch.rb"
|
|
81
92
|
autoload :KeyUsageBatchRequest, "no_response/models/shared/keyusagebatchrequest.rb"
|
|
82
93
|
autoload :KeyUsageEvent, "no_response/models/shared/keyusageevent.rb"
|
|
94
|
+
autoload :KeyScope, "no_response/models/shared/key_scope.rb"
|
|
83
95
|
autoload :Lane, "no_response/models/shared/lane.rb"
|
|
84
96
|
autoload :LineType, "no_response/models/shared/linetype.rb"
|
|
85
97
|
autoload :NotFoundErrorCode, "no_response/models/shared/notfounderrorcode.rb"
|
|
98
|
+
autoload :OnExpiry, "no_response/models/shared/onexpiry.rb"
|
|
86
99
|
autoload :Outcome, "no_response/models/shared/outcome.rb"
|
|
87
100
|
autoload :PermissionDeniedErrorCode, "no_response/models/shared/permissiondeniederrorcode.rb"
|
|
88
101
|
autoload :PhoneEnrichment, "no_response/models/shared/phoneenrichment.rb"
|
|
@@ -106,10 +119,15 @@ module NoResponse
|
|
|
106
119
|
autoload :RiskSummaryPhone, "no_response/models/shared/risksummaryphone.rb"
|
|
107
120
|
autoload :RiskSummaryUsername, "no_response/models/shared/risksummaryusername.rb"
|
|
108
121
|
autoload :Security, "no_response/models/shared/security.rb"
|
|
122
|
+
autoload :Settings, "no_response/models/shared/settings.rb"
|
|
123
|
+
autoload :SettingsFlows, "no_response/models/shared/settingsflows.rb"
|
|
124
|
+
autoload :SettingsRequest, "no_response/models/shared/settingsrequest.rb"
|
|
125
|
+
autoload :SettingsRequestFlows, "no_response/models/shared/settingsrequestflows.rb"
|
|
109
126
|
autoload :Signal, "no_response/models/shared/signal.rb"
|
|
110
127
|
autoload :SignalOutcome, "no_response/models/shared/signaloutcome.rb"
|
|
111
128
|
autoload :SigningKey, "no_response/models/shared/signingkey.rb"
|
|
112
129
|
autoload :SigningSecret, "no_response/models/shared/signingsecret.rb"
|
|
130
|
+
autoload :SourceId, "no_response/models/shared/sourceid.rb"
|
|
113
131
|
autoload :Status, "no_response/models/shared/status.rb"
|
|
114
132
|
autoload :Transport, "no_response/models/shared/transport.rb"
|
|
115
133
|
autoload :WebhookDeliveryAttempt, "no_response/models/shared/webhookdeliveryattempt.rb"
|
|
@@ -141,7 +159,6 @@ module NoResponse
|
|
|
141
159
|
autoload :LocationUnion, "no_response/models/shared/location_union.rb"
|
|
142
160
|
autoload :NameCandidate, "no_response/models/shared/name_candidate.rb"
|
|
143
161
|
autoload :NameCandidateUnion, "no_response/models/shared/name_candidate_union.rb"
|
|
144
|
-
autoload :Scope, "no_response/models/shared/scope.rb"
|
|
145
162
|
autoload :SocialProfile, "no_response/models/shared/social_profile.rb"
|
|
146
163
|
autoload :SocialProfileUnion, "no_response/models/shared/social_profile_union.rb"
|
|
147
164
|
autoload :Timezone, "no_response/models/shared/timezone.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
|
|
18
|
+
attr_accessor :assessments, :accounts, :key_usage, :keys, :integrations, :webhook_endpoints, :settings
|
|
19
19
|
|
|
20
20
|
# Instantiates the SDK, configuring it with the provided parameters.
|
|
21
21
|
#
|
|
@@ -93,6 +93,7 @@ module NoResponse
|
|
|
93
93
|
@keys = Keys.new(@sdk_configuration)
|
|
94
94
|
@integrations = Integrations.new(@sdk_configuration)
|
|
95
95
|
@webhook_endpoints = WebhookEndpoints.new(@sdk_configuration)
|
|
96
|
+
@settings = Settings.new(@sdk_configuration)
|
|
96
97
|
end
|
|
97
98
|
|
|
98
99
|
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 = "7.
|
|
98
|
+
@sdk_version = "7.1.1"
|
|
99
99
|
@gen_version = "internal"
|
|
100
|
-
@user_agent = "noresponse-sdk/ruby 7.
|
|
100
|
+
@user_agent = "noresponse-sdk/ruby 7.1.1 internal 1 noresponse"
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
sig { returns([String, T::Hash[Symbol, String]]) }
|