noresponse 9.4.2 → 9.4.3
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/accounts.rb +1 -1
- data/lib/no_response/models/operations/listreviews_request.rb +10 -0
- data/lib/no_response/models/operations/listreviews_request.rbi +6 -0
- data/lib/no_response/models/shared/accountdirectorypageitem.rb +10 -1
- data/lib/no_response/models/shared/accountdirectorypageitem.rbi +6 -0
- data/lib/no_response/models/shared/accountdirectorysearchrequest.rb +10 -1
- data/lib/no_response/models/shared/accountdirectorysearchrequest.rbi +6 -0
- data/lib/no_response/models/shared/filter.rb +18 -1
- data/lib/no_response/models/shared/filter.rbi +6 -0
- data/lib/no_response/models/shared/waiting_for.rb +19 -0
- data/lib/no_response/models/shared/waiting_for.rbi +9 -0
- data/lib/no_response/models/shared.rb +1 -0
- data/lib/no_response/reviews.rb +3 -2
- data/lib/no_response/sdkconfiguration.rb +2 -2
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe33f5bf446bdd36a4ee4412902954c6e8f69bb203b473e98423876999d1a235
|
|
4
|
+
data.tar.gz: 34d006f020e0536900aa81902d4cf94618030dea8ddfe9842ce917a3c7eb99fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5f04b4449dee4dbae66ea755129e42001e798522193a8afd6979e36f449ce0427ac2a88ff97a2dbfaa3454906cf93e29c55ce62da51d6ca99441ca1a1c550d0
|
|
7
|
+
data.tar.gz: fa5837edbfd7e739acfe985e0fb7a58d2f8feb4be3b94e14aae7d66fe2bf67eee927e6ed978b1d80f658494e9d6386d34afa4e96d3644016fb70bbfd82d8d931
|
data/lib/no_response/accounts.rb
CHANGED
|
@@ -4278,7 +4278,7 @@ module NoResponse
|
|
|
4278
4278
|
}
|
|
4279
4279
|
def search(request:, retries: nil, timeout_ms: nil, http_headers: nil)
|
|
4280
4280
|
# search - Search distinct accounts by email or account ID
|
|
4281
|
-
# Search distinct accounts observed in retained assessments in this environment. Match an exact account_id or canonical email; an email matches any retained assessment belonging to the account. The response contains one row per account with its newest retained assessment, current decision when available, per-account assessment count, and total distinct-account count. Send next_cursor with unchanged filters to continue. Totals are exact below 10000 and capped at 10000. Results are live across pages. Requires history access and identifier access for email. Read-only and safe to retry.
|
|
4281
|
+
# Search distinct accounts observed in retained assessments in this environment. Match an exact account_id or canonical email; an email matches any retained assessment belonging to the account. Set needs_action to select accounts with an open or in-progress retained review, or a current review/block decision without an effective retained outcome. This filter applies before pagination and counting, adds waiting_for reasons to each row and requires management scope as well as history or investigate access. The response contains one row per account with its newest retained assessment, current decision when available, per-account assessment count, and total distinct-account count. Send next_cursor with unchanged filters to continue. Totals are exact below 10000 and capped at 10000. Results are live across pages. Requires history access and identifier access for email. Read-only and safe to retry.
|
|
4282
4282
|
url, params = @sdk_configuration.get_server_details
|
|
4283
4283
|
base_url = Utils.template_url(url, params)
|
|
4284
4284
|
url = "#{base_url}/v1/accounts/search"
|
|
@@ -57,6 +57,12 @@ module NoResponse
|
|
|
57
57
|
Crystalline::Nilable.new(::String),
|
|
58
58
|
{'query_param': {'field_name': "assignee_principal_id", 'style': "form", 'explode': true}}
|
|
59
59
|
)
|
|
60
|
+
# Only reviews of this exact account in the authenticated workspace and environment. Applied before pagination and bound into the cursor.
|
|
61
|
+
field(
|
|
62
|
+
:account_id,
|
|
63
|
+
Crystalline::Nilable.new(::String),
|
|
64
|
+
{'query_param': {'field_name': "account_id", 'style': "form", 'explode': true}}
|
|
65
|
+
)
|
|
60
66
|
|
|
61
67
|
field(
|
|
62
68
|
:limit,
|
|
@@ -74,6 +80,7 @@ module NoResponse
|
|
|
74
80
|
assignee: T.nilable(::String),
|
|
75
81
|
unassigned: T.nilable(T::Boolean),
|
|
76
82
|
assignee_principal_id: T.nilable(::String),
|
|
83
|
+
account_id: T.nilable(::String),
|
|
77
84
|
limit: T.nilable(::Integer)
|
|
78
85
|
)
|
|
79
86
|
.void
|
|
@@ -87,6 +94,7 @@ module NoResponse
|
|
|
87
94
|
assignee: nil,
|
|
88
95
|
unassigned: nil,
|
|
89
96
|
assignee_principal_id: nil,
|
|
97
|
+
account_id: nil,
|
|
90
98
|
limit: 50
|
|
91
99
|
)
|
|
92
100
|
@workspace_id = workspace_id
|
|
@@ -97,6 +105,7 @@ module NoResponse
|
|
|
97
105
|
@assignee = assignee
|
|
98
106
|
@unassigned = unassigned
|
|
99
107
|
@assignee_principal_id = assignee_principal_id
|
|
108
|
+
@account_id = account_id
|
|
100
109
|
@limit = limit
|
|
101
110
|
end
|
|
102
111
|
|
|
@@ -111,6 +120,7 @@ module NoResponse
|
|
|
111
120
|
return false unless @assignee == other.assignee
|
|
112
121
|
return false unless @unassigned == other.unassigned
|
|
113
122
|
return false unless @assignee_principal_id == other.assignee_principal_id
|
|
123
|
+
return false unless @account_id == other.account_id
|
|
114
124
|
return false unless @limit == other.limit
|
|
115
125
|
true
|
|
116
126
|
end
|
|
@@ -27,6 +27,12 @@ module NoResponse
|
|
|
27
27
|
::Integer,
|
|
28
28
|
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("assessments"), required: true}}
|
|
29
29
|
)
|
|
30
|
+
# Present for needs_action searches. outcome means a current review/block decision lacks a retained effective outcome; review means a retained open or in-progress review. Both can apply.
|
|
31
|
+
field(
|
|
32
|
+
:waiting_for,
|
|
33
|
+
Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::WaitingFor)),
|
|
34
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("waiting_for")}}
|
|
35
|
+
)
|
|
30
36
|
# Body of the 200 answer to GET /v1/accounts/{account_id}: the one current risk of one of the calling workspace's accounts. It is the risk of the account's latest assessment that has a decision (status complete or partial), by created_at and then assessment_id, scored exactly as GET /v1/assessments/{assessment_id} scores that assessment, plus the account's own reason shared_api_key when a key issued to the account was used from many IP addresses or countries (POST /v1/key_usage/batches). Its assessments are the account's history (GET /v1/accounts/{account_id}/assessments).
|
|
31
37
|
field(
|
|
32
38
|
:current,
|
|
@@ -39,14 +45,16 @@ module NoResponse
|
|
|
39
45
|
account_id: ::String,
|
|
40
46
|
latest: Models::Shared::AssessmentRevision,
|
|
41
47
|
assessments: ::Integer,
|
|
48
|
+
waiting_for: T.nilable(T::Array[Models::Shared::WaitingFor]),
|
|
42
49
|
current: T.nilable(Models::Shared::Account)
|
|
43
50
|
)
|
|
44
51
|
.void
|
|
45
52
|
}
|
|
46
|
-
def initialize(account_id:, latest:, assessments:, current: nil)
|
|
53
|
+
def initialize(account_id:, latest:, assessments:, waiting_for: nil, current: nil)
|
|
47
54
|
@account_id = account_id
|
|
48
55
|
@latest = latest
|
|
49
56
|
@assessments = assessments
|
|
57
|
+
@waiting_for = waiting_for
|
|
50
58
|
@current = current
|
|
51
59
|
end
|
|
52
60
|
|
|
@@ -56,6 +64,7 @@ module NoResponse
|
|
|
56
64
|
return false unless @account_id == other.account_id
|
|
57
65
|
return false unless @latest == other.latest
|
|
58
66
|
return false unless @assessments == other.assessments
|
|
67
|
+
return false unless @waiting_for == other.waiting_for
|
|
59
68
|
return false unless @current == other.current
|
|
60
69
|
true
|
|
61
70
|
end
|
|
@@ -27,6 +27,12 @@ module NoResponse
|
|
|
27
27
|
Crystalline::Nilable.new(::String),
|
|
28
28
|
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("cursor")}}
|
|
29
29
|
)
|
|
30
|
+
# Select accounts with a retained open or in-progress review, or a current review/block account decision with no retained effective account outcome. The server applies this filter before counting and pagination. Requires reviews.read as well as history.read for console members; API keys additionally require management.
|
|
31
|
+
field(
|
|
32
|
+
:needs_action,
|
|
33
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
34
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("needs_action")}}
|
|
35
|
+
)
|
|
30
36
|
|
|
31
37
|
field(
|
|
32
38
|
:limit,
|
|
@@ -39,14 +45,16 @@ module NoResponse
|
|
|
39
45
|
account_id: T.nilable(::String),
|
|
40
46
|
email: T.nilable(::String),
|
|
41
47
|
cursor: T.nilable(::String),
|
|
48
|
+
needs_action: T.nilable(T::Boolean),
|
|
42
49
|
limit: T.nilable(::Integer)
|
|
43
50
|
)
|
|
44
51
|
.void
|
|
45
52
|
}
|
|
46
|
-
def initialize(account_id: nil, email: nil, cursor: nil, limit: 25)
|
|
53
|
+
def initialize(account_id: nil, email: nil, cursor: nil, needs_action: false, limit: 25)
|
|
47
54
|
@account_id = account_id
|
|
48
55
|
@email = email
|
|
49
56
|
@cursor = cursor
|
|
57
|
+
@needs_action = needs_action
|
|
50
58
|
@limit = limit
|
|
51
59
|
end
|
|
52
60
|
|
|
@@ -56,6 +64,7 @@ module NoResponse
|
|
|
56
64
|
return false unless @account_id == other.account_id
|
|
57
65
|
return false unless @email == other.email
|
|
58
66
|
return false unless @cursor == other.cursor
|
|
67
|
+
return false unless @needs_action == other.needs_action
|
|
59
68
|
return false unless @limit == other.limit
|
|
60
69
|
true
|
|
61
70
|
end
|
|
@@ -9,6 +9,13 @@ module NoResponse
|
|
|
9
9
|
extend T::Sig
|
|
10
10
|
include Crystalline::MetadataFields
|
|
11
11
|
|
|
12
|
+
# Only reviews of this exact account in the authenticated workspace and environment. Applied before pagination.
|
|
13
|
+
field(
|
|
14
|
+
:account_id,
|
|
15
|
+
Crystalline::Nilable.new(::String),
|
|
16
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("account_id")}}
|
|
17
|
+
)
|
|
18
|
+
|
|
12
19
|
field(
|
|
13
20
|
:status,
|
|
14
21
|
Crystalline::Nilable.new(Models::Shared::ReviewStatus),
|
|
@@ -51,6 +58,7 @@ module NoResponse
|
|
|
51
58
|
|
|
52
59
|
sig {
|
|
53
60
|
params(
|
|
61
|
+
account_id: T.nilable(::String),
|
|
54
62
|
status: T.nilable(Models::Shared::ReviewStatus),
|
|
55
63
|
priority: T.nilable(Models::Shared::Priority),
|
|
56
64
|
assignee: T.nilable(::String),
|
|
@@ -59,7 +67,15 @@ module NoResponse
|
|
|
59
67
|
)
|
|
60
68
|
.void
|
|
61
69
|
}
|
|
62
|
-
def initialize(
|
|
70
|
+
def initialize(
|
|
71
|
+
account_id: nil,
|
|
72
|
+
status: nil,
|
|
73
|
+
priority: nil,
|
|
74
|
+
assignee: nil,
|
|
75
|
+
unassigned: nil,
|
|
76
|
+
assignee_principal_id: nil
|
|
77
|
+
)
|
|
78
|
+
@account_id = account_id
|
|
63
79
|
@status = status
|
|
64
80
|
@priority = priority
|
|
65
81
|
@assignee = assignee
|
|
@@ -70,6 +86,7 @@ module NoResponse
|
|
|
70
86
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
71
87
|
def ==(other)
|
|
72
88
|
return false unless other.is_a?(self.class)
|
|
89
|
+
return false unless @account_id == other.account_id
|
|
73
90
|
return false unless @status == other.status
|
|
74
91
|
return false unless @priority == other.priority
|
|
75
92
|
return false unless @assignee == other.assignee
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module NoResponse
|
|
5
|
+
module Models
|
|
6
|
+
module Shared
|
|
7
|
+
|
|
8
|
+
class WaitingFor
|
|
9
|
+
include ::Crystalline::Enum
|
|
10
|
+
enums do
|
|
11
|
+
OUTCOME = new("outcome")
|
|
12
|
+
REVIEW = new("review")
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
open!
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -360,6 +360,7 @@ module NoResponse
|
|
|
360
360
|
autoload :SocialProfileUnion, "no_response/models/shared/social_profile_union.rb"
|
|
361
361
|
autoload :Timezone, "no_response/models/shared/timezone.rb"
|
|
362
362
|
autoload :TimezoneUnion, "no_response/models/shared/timezone_union.rb"
|
|
363
|
+
autoload :WaitingFor, "no_response/models/shared/waiting_for.rb"
|
|
363
364
|
autoload :Website, "no_response/models/shared/website.rb"
|
|
364
365
|
autoload :WebsiteUnion, "no_response/models/shared/website_union.rb"
|
|
365
366
|
end
|
data/lib/no_response/reviews.rb
CHANGED
|
@@ -49,7 +49,7 @@ module NoResponse
|
|
|
49
49
|
}
|
|
50
50
|
def list(request:, retries: nil, timeout_ms: nil, http_headers: nil)
|
|
51
51
|
# list - List retained account reviews.
|
|
52
|
-
# List retained investigation reviews using filters and an authenticated cursor.
|
|
52
|
+
# List retained investigation reviews using filters and an authenticated cursor. Optional account_id selects one exact account in this environment before pagination. All filters are bound into the cursor.
|
|
53
53
|
url, params = @sdk_configuration.get_server_details
|
|
54
54
|
base_url = Utils.template_url(url, params)
|
|
55
55
|
url = Utils.generate_url(
|
|
@@ -179,7 +179,8 @@ module NoResponse
|
|
|
179
179
|
priority: request.priority,
|
|
180
180
|
assignee: request.assignee,
|
|
181
181
|
unassigned: request.unassigned,
|
|
182
|
-
assignee_principal_id: request.assignee_principal_id
|
|
182
|
+
assignee_principal_id: request.assignee_principal_id,
|
|
183
|
+
account_id: request.account_id
|
|
183
184
|
),
|
|
184
185
|
http_headers: http_headers
|
|
185
186
|
)
|
|
@@ -95,9 +95,9 @@ module NoResponse
|
|
|
95
95
|
|
|
96
96
|
@language = "ruby"
|
|
97
97
|
@openapi_doc_version = "1"
|
|
98
|
-
@sdk_version = "9.4.
|
|
98
|
+
@sdk_version = "9.4.3"
|
|
99
99
|
@gen_version = "internal"
|
|
100
|
-
@user_agent = "noresponse-sdk/ruby 9.4.
|
|
100
|
+
@user_agent = "noresponse-sdk/ruby 9.4.3 internal 1 noresponse"
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
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: 9.4.
|
|
4
|
+
version: 9.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NoResponse
|
|
@@ -1319,6 +1319,8 @@ files:
|
|
|
1319
1319
|
- lib/no_response/models/shared/usagecountflow.rbi
|
|
1320
1320
|
- lib/no_response/models/shared/useractor.rb
|
|
1321
1321
|
- lib/no_response/models/shared/useractor.rbi
|
|
1322
|
+
- lib/no_response/models/shared/waiting_for.rb
|
|
1323
|
+
- lib/no_response/models/shared/waiting_for.rbi
|
|
1322
1324
|
- lib/no_response/models/shared/webhookaggregaterequest.rb
|
|
1323
1325
|
- lib/no_response/models/shared/webhookaggregaterequest.rbi
|
|
1324
1326
|
- lib/no_response/models/shared/webhookdeliveryattempt.rb
|