Skip to content

Commit ace484d

Browse files
feat(api): add transaction_monitoring cases/comments/files/queues endpoints
1 parent 4d34e51 commit ace484d

49 files changed

Lines changed: 5301 additions & 11 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 194
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-99f95bae0a9466a3c3032c867cae9878877c1602f2d68c2441813ce2c8dc8f87.yml
3-
openapi_spec_hash: 047fd5b9c00f6acddd3e4f5dc203a4ed
4-
config_hash: a0a579b0564a5c18568a78f5ba2b6653
1+
configured_endpoints: 212
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-65a6644277529a38afcac424d99d87cbfa4d8294423ad618dbbd875634ec1d3c.yml
3+
openapi_spec_hash: 6f3c1bb6a70830afb8af1dacd6352a97
4+
config_hash: 126e04f676f61e5871a82889336dbf9d

api.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,77 @@ Methods:
159159
- <code title="post /v2/auth_rules/{auth_rule_token}/backtests">client.auth_rules.v2.backtests.<a href="./src/lithic/resources/auth_rules/v2/backtests.py">create</a>(auth_rule_token, \*\*<a href="src/lithic/types/auth_rules/v2/backtest_create_params.py">params</a>) -> <a href="./src/lithic/types/auth_rules/v2/backtest_create_response.py">BacktestCreateResponse</a></code>
160160
- <code title="get /v2/auth_rules/{auth_rule_token}/backtests/{auth_rule_backtest_token}">client.auth_rules.v2.backtests.<a href="./src/lithic/resources/auth_rules/v2/backtests.py">retrieve</a>(auth_rule_backtest_token, \*, auth_rule_token) -> <a href="./src/lithic/types/auth_rules/v2/backtest_results.py">BacktestResults</a></code>
161161

162+
# TransactionMonitoring
163+
164+
## Cases
165+
166+
Types:
167+
168+
```python
169+
from lithic.types.transaction_monitoring import (
170+
CaseActivityEntry,
171+
CaseActivityType,
172+
CaseCard,
173+
CaseEntity,
174+
CasePriority,
175+
CaseSortOrder,
176+
CaseStatus,
177+
CaseTransaction,
178+
EntityType,
179+
MonitoringCase,
180+
ResolutionOutcome,
181+
CaseRetrieveCardsResponse,
182+
)
183+
```
184+
185+
Methods:
186+
187+
- <code title="get /v1/transaction_monitoring/cases/{case_token}">client.transaction_monitoring.cases.<a href="./src/lithic/resources/transaction_monitoring/cases/cases.py">retrieve</a>(case_token) -> <a href="./src/lithic/types/transaction_monitoring/monitoring_case.py">MonitoringCase</a></code>
188+
- <code title="patch /v1/transaction_monitoring/cases/{case_token}">client.transaction_monitoring.cases.<a href="./src/lithic/resources/transaction_monitoring/cases/cases.py">update</a>(case_token, \*\*<a href="src/lithic/types/transaction_monitoring/case_update_params.py">params</a>) -> <a href="./src/lithic/types/transaction_monitoring/monitoring_case.py">MonitoringCase</a></code>
189+
- <code title="get /v1/transaction_monitoring/cases">client.transaction_monitoring.cases.<a href="./src/lithic/resources/transaction_monitoring/cases/cases.py">list</a>(\*\*<a href="src/lithic/types/transaction_monitoring/case_list_params.py">params</a>) -> <a href="./src/lithic/types/transaction_monitoring/monitoring_case.py">SyncCursorPage[MonitoringCase]</a></code>
190+
- <code title="get /v1/transaction_monitoring/cases/{case_token}/activity">client.transaction_monitoring.cases.<a href="./src/lithic/resources/transaction_monitoring/cases/cases.py">list_activity</a>(case_token, \*\*<a href="src/lithic/types/transaction_monitoring/case_list_activity_params.py">params</a>) -> <a href="./src/lithic/types/transaction_monitoring/case_activity_entry.py">SyncCursorPage[CaseActivityEntry]</a></code>
191+
- <code title="get /v1/transaction_monitoring/cases/{case_token}/transactions">client.transaction_monitoring.cases.<a href="./src/lithic/resources/transaction_monitoring/cases/cases.py">list_transactions</a>(case_token, \*\*<a href="src/lithic/types/transaction_monitoring/case_list_transactions_params.py">params</a>) -> <a href="./src/lithic/types/transaction_monitoring/case_transaction.py">SyncCursorPage[CaseTransaction]</a></code>
192+
- <code title="get /v1/transaction_monitoring/cases/{case_token}/cards">client.transaction_monitoring.cases.<a href="./src/lithic/resources/transaction_monitoring/cases/cases.py">retrieve_cards</a>(case_token) -> <a href="./src/lithic/types/transaction_monitoring/case_retrieve_cards_response.py">CaseRetrieveCardsResponse</a></code>
193+
194+
### Comments
195+
196+
Methods:
197+
198+
- <code title="post /v1/transaction_monitoring/cases/{case_token}/comments">client.transaction_monitoring.cases.comments.<a href="./src/lithic/resources/transaction_monitoring/cases/comments.py">create</a>(case_token, \*\*<a href="src/lithic/types/transaction_monitoring/cases/comment_create_params.py">params</a>) -> <a href="./src/lithic/types/transaction_monitoring/case_activity_entry.py">CaseActivityEntry</a></code>
199+
- <code title="patch /v1/transaction_monitoring/cases/{case_token}/comments/{comment_token}">client.transaction_monitoring.cases.comments.<a href="./src/lithic/resources/transaction_monitoring/cases/comments.py">update</a>(comment_token, \*, case_token, \*\*<a href="src/lithic/types/transaction_monitoring/cases/comment_update_params.py">params</a>) -> <a href="./src/lithic/types/transaction_monitoring/case_activity_entry.py">CaseActivityEntry</a></code>
200+
- <code title="delete /v1/transaction_monitoring/cases/{case_token}/comments/{comment_token}">client.transaction_monitoring.cases.comments.<a href="./src/lithic/resources/transaction_monitoring/cases/comments.py">delete</a>(comment_token, \*, case_token) -> None</code>
201+
202+
### Files
203+
204+
Types:
205+
206+
```python
207+
from lithic.types.transaction_monitoring.cases import CaseFile, FileStatus, UploadConstraints
208+
```
209+
210+
Methods:
211+
212+
- <code title="post /v1/transaction_monitoring/cases/{case_token}/files">client.transaction_monitoring.cases.files.<a href="./src/lithic/resources/transaction_monitoring/cases/files.py">create</a>(case_token, \*\*<a href="src/lithic/types/transaction_monitoring/cases/file_create_params.py">params</a>) -> <a href="./src/lithic/types/transaction_monitoring/cases/case_file.py">CaseFile</a></code>
213+
- <code title="get /v1/transaction_monitoring/cases/{case_token}/files/{file_token}">client.transaction_monitoring.cases.files.<a href="./src/lithic/resources/transaction_monitoring/cases/files.py">retrieve</a>(file_token, \*, case_token) -> <a href="./src/lithic/types/transaction_monitoring/cases/case_file.py">CaseFile</a></code>
214+
- <code title="get /v1/transaction_monitoring/cases/{case_token}/files">client.transaction_monitoring.cases.files.<a href="./src/lithic/resources/transaction_monitoring/cases/files.py">list</a>(case_token, \*\*<a href="src/lithic/types/transaction_monitoring/cases/file_list_params.py">params</a>) -> <a href="./src/lithic/types/transaction_monitoring/cases/case_file.py">SyncCursorPage[CaseFile]</a></code>
215+
- <code title="delete /v1/transaction_monitoring/cases/{case_token}/files/{file_token}">client.transaction_monitoring.cases.files.<a href="./src/lithic/resources/transaction_monitoring/cases/files.py">delete</a>(file_token, \*, case_token) -> None</code>
216+
217+
## Queues
218+
219+
Types:
220+
221+
```python
222+
from lithic.types.transaction_monitoring import Queue
223+
```
224+
225+
Methods:
226+
227+
- <code title="post /v1/transaction_monitoring/queues">client.transaction_monitoring.queues.<a href="./src/lithic/resources/transaction_monitoring/queues.py">create</a>(\*\*<a href="src/lithic/types/transaction_monitoring/queue_create_params.py">params</a>) -> <a href="./src/lithic/types/transaction_monitoring/queue.py">Queue</a></code>
228+
- <code title="get /v1/transaction_monitoring/queues/{queue_token}">client.transaction_monitoring.queues.<a href="./src/lithic/resources/transaction_monitoring/queues.py">retrieve</a>(queue_token) -> <a href="./src/lithic/types/transaction_monitoring/queue.py">Queue</a></code>
229+
- <code title="patch /v1/transaction_monitoring/queues/{queue_token}">client.transaction_monitoring.queues.<a href="./src/lithic/resources/transaction_monitoring/queues.py">update</a>(queue_token, \*\*<a href="src/lithic/types/transaction_monitoring/queue_update_params.py">params</a>) -> <a href="./src/lithic/types/transaction_monitoring/queue.py">Queue</a></code>
230+
- <code title="get /v1/transaction_monitoring/queues">client.transaction_monitoring.queues.<a href="./src/lithic/resources/transaction_monitoring/queues.py">list</a>(\*\*<a href="src/lithic/types/transaction_monitoring/queue_list_params.py">params</a>) -> <a href="./src/lithic/types/transaction_monitoring/queue.py">SyncCursorPage[Queue]</a></code>
231+
- <code title="delete /v1/transaction_monitoring/queues/{queue_token}">client.transaction_monitoring.queues.<a href="./src/lithic/resources/transaction_monitoring/queues.py">delete</a>(queue_token) -> None</code>
232+
162233
# AuthStreamEnrollment
163234

164235
Types:

src/lithic/_client.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
management_operations,
7474
auth_stream_enrollment,
7575
external_bank_accounts,
76+
transaction_monitoring,
7677
tokenization_decisioning,
7778
)
7879
from .resources.holds import Holds, AsyncHolds
@@ -108,6 +109,10 @@
108109
from .resources.credit_products.credit_products import CreditProducts, AsyncCreditProducts
109110
from .resources.financial_accounts.financial_accounts import FinancialAccounts, AsyncFinancialAccounts
110111
from .resources.external_bank_accounts.external_bank_accounts import ExternalBankAccounts, AsyncExternalBankAccounts
112+
from .resources.transaction_monitoring.transaction_monitoring import (
113+
TransactionMonitoring,
114+
AsyncTransactionMonitoring,
115+
)
111116

112117
__all__ = [
113118
"ENVIRONMENTS",
@@ -241,6 +246,12 @@ def auth_rules(self) -> AuthRules:
241246

242247
return AuthRules(self)
243248

249+
@cached_property
250+
def transaction_monitoring(self) -> TransactionMonitoring:
251+
from .resources.transaction_monitoring import TransactionMonitoring
252+
253+
return TransactionMonitoring(self)
254+
244255
@cached_property
245256
def auth_stream_enrollment(self) -> AuthStreamEnrollment:
246257
from .resources.auth_stream_enrollment import AuthStreamEnrollment
@@ -671,6 +682,12 @@ def auth_rules(self) -> AsyncAuthRules:
671682

672683
return AsyncAuthRules(self)
673684

685+
@cached_property
686+
def transaction_monitoring(self) -> AsyncTransactionMonitoring:
687+
from .resources.transaction_monitoring import AsyncTransactionMonitoring
688+
689+
return AsyncTransactionMonitoring(self)
690+
674691
@cached_property
675692
def auth_stream_enrollment(self) -> AsyncAuthStreamEnrollment:
676693
from .resources.auth_stream_enrollment import AsyncAuthStreamEnrollment
@@ -1015,6 +1032,12 @@ def auth_rules(self) -> auth_rules.AuthRulesWithRawResponse:
10151032

10161033
return AuthRulesWithRawResponse(self._client.auth_rules)
10171034

1035+
@cached_property
1036+
def transaction_monitoring(self) -> transaction_monitoring.TransactionMonitoringWithRawResponse:
1037+
from .resources.transaction_monitoring import TransactionMonitoringWithRawResponse
1038+
1039+
return TransactionMonitoringWithRawResponse(self._client.transaction_monitoring)
1040+
10181041
@cached_property
10191042
def auth_stream_enrollment(self) -> auth_stream_enrollment.AuthStreamEnrollmentWithRawResponse:
10201043
from .resources.auth_stream_enrollment import AuthStreamEnrollmentWithRawResponse
@@ -1218,6 +1241,12 @@ def auth_rules(self) -> auth_rules.AsyncAuthRulesWithRawResponse:
12181241

12191242
return AsyncAuthRulesWithRawResponse(self._client.auth_rules)
12201243

1244+
@cached_property
1245+
def transaction_monitoring(self) -> transaction_monitoring.AsyncTransactionMonitoringWithRawResponse:
1246+
from .resources.transaction_monitoring import AsyncTransactionMonitoringWithRawResponse
1247+
1248+
return AsyncTransactionMonitoringWithRawResponse(self._client.transaction_monitoring)
1249+
12211250
@cached_property
12221251
def auth_stream_enrollment(self) -> auth_stream_enrollment.AsyncAuthStreamEnrollmentWithRawResponse:
12231252
from .resources.auth_stream_enrollment import AsyncAuthStreamEnrollmentWithRawResponse
@@ -1421,6 +1450,12 @@ def auth_rules(self) -> auth_rules.AuthRulesWithStreamingResponse:
14211450

14221451
return AuthRulesWithStreamingResponse(self._client.auth_rules)
14231452

1453+
@cached_property
1454+
def transaction_monitoring(self) -> transaction_monitoring.TransactionMonitoringWithStreamingResponse:
1455+
from .resources.transaction_monitoring import TransactionMonitoringWithStreamingResponse
1456+
1457+
return TransactionMonitoringWithStreamingResponse(self._client.transaction_monitoring)
1458+
14241459
@cached_property
14251460
def auth_stream_enrollment(self) -> auth_stream_enrollment.AuthStreamEnrollmentWithStreamingResponse:
14261461
from .resources.auth_stream_enrollment import AuthStreamEnrollmentWithStreamingResponse
@@ -1624,6 +1659,12 @@ def auth_rules(self) -> auth_rules.AsyncAuthRulesWithStreamingResponse:
16241659

16251660
return AsyncAuthRulesWithStreamingResponse(self._client.auth_rules)
16261661

1662+
@cached_property
1663+
def transaction_monitoring(self) -> transaction_monitoring.AsyncTransactionMonitoringWithStreamingResponse:
1664+
from .resources.transaction_monitoring import AsyncTransactionMonitoringWithStreamingResponse
1665+
1666+
return AsyncTransactionMonitoringWithStreamingResponse(self._client.transaction_monitoring)
1667+
16271668
@cached_property
16281669
def auth_stream_enrollment(self) -> auth_stream_enrollment.AsyncAuthStreamEnrollmentWithStreamingResponse:
16291670
from .resources.auth_stream_enrollment import AsyncAuthStreamEnrollmentWithStreamingResponse

src/lithic/resources/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,14 @@
249249
ExternalBankAccountsWithStreamingResponse,
250250
AsyncExternalBankAccountsWithStreamingResponse,
251251
)
252+
from .transaction_monitoring import (
253+
TransactionMonitoring,
254+
AsyncTransactionMonitoring,
255+
TransactionMonitoringWithRawResponse,
256+
AsyncTransactionMonitoringWithRawResponse,
257+
TransactionMonitoringWithStreamingResponse,
258+
AsyncTransactionMonitoringWithStreamingResponse,
259+
)
252260
from .tokenization_decisioning import (
253261
TokenizationDecisioning,
254262
AsyncTokenizationDecisioning,
@@ -277,6 +285,12 @@
277285
"AsyncAuthRulesWithRawResponse",
278286
"AuthRulesWithStreamingResponse",
279287
"AsyncAuthRulesWithStreamingResponse",
288+
"TransactionMonitoring",
289+
"AsyncTransactionMonitoring",
290+
"TransactionMonitoringWithRawResponse",
291+
"AsyncTransactionMonitoringWithRawResponse",
292+
"TransactionMonitoringWithStreamingResponse",
293+
"AsyncTransactionMonitoringWithStreamingResponse",
280294
"AuthStreamEnrollment",
281295
"AsyncAuthStreamEnrollment",
282296
"AuthStreamEnrollmentWithRawResponse",

src/lithic/resources/account_holders/entities.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal
6-
75
import httpx
86

97
from ... import _legacy_response
@@ -14,6 +12,8 @@
1412
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
1513
from ..._base_client import make_request_options
1614
from ...types.account_holders import entity_create_params
15+
from ...types.transaction_monitoring import EntityType
16+
from ...types.transaction_monitoring.entity_type import EntityType
1717
from ...types.account_holders.account_holder_entity import AccountHolderEntity
1818
from ...types.account_holders.entity_create_response import EntityCreateResponse
1919

@@ -51,7 +51,7 @@ def create(
5151
government_id: str,
5252
last_name: str,
5353
phone_number: str,
54-
type: Literal["BENEFICIAL_OWNER_INDIVIDUAL", "CONTROL_PERSON"],
54+
type: EntityType,
5555
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5656
# The extra values given here take precedence over values defined on the client or passed to this method.
5757
extra_headers: Headers | None = None,
@@ -199,7 +199,7 @@ async def create(
199199
government_id: str,
200200
last_name: str,
201201
phone_number: str,
202-
type: Literal["BENEFICIAL_OWNER_INDIVIDUAL", "CONTROL_PERSON"],
202+
type: EntityType,
203203
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
204204
# The extra values given here take precedence over values defined on the client or passed to this method.
205205
extra_headers: Headers | None = None,
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .cases import (
4+
Cases,
5+
AsyncCases,
6+
CasesWithRawResponse,
7+
AsyncCasesWithRawResponse,
8+
CasesWithStreamingResponse,
9+
AsyncCasesWithStreamingResponse,
10+
)
11+
from .queues import (
12+
Queues,
13+
AsyncQueues,
14+
QueuesWithRawResponse,
15+
AsyncQueuesWithRawResponse,
16+
QueuesWithStreamingResponse,
17+
AsyncQueuesWithStreamingResponse,
18+
)
19+
from .transaction_monitoring import (
20+
TransactionMonitoring,
21+
AsyncTransactionMonitoring,
22+
TransactionMonitoringWithRawResponse,
23+
AsyncTransactionMonitoringWithRawResponse,
24+
TransactionMonitoringWithStreamingResponse,
25+
AsyncTransactionMonitoringWithStreamingResponse,
26+
)
27+
28+
__all__ = [
29+
"Cases",
30+
"AsyncCases",
31+
"CasesWithRawResponse",
32+
"AsyncCasesWithRawResponse",
33+
"CasesWithStreamingResponse",
34+
"AsyncCasesWithStreamingResponse",
35+
"Queues",
36+
"AsyncQueues",
37+
"QueuesWithRawResponse",
38+
"AsyncQueuesWithRawResponse",
39+
"QueuesWithStreamingResponse",
40+
"AsyncQueuesWithStreamingResponse",
41+
"TransactionMonitoring",
42+
"AsyncTransactionMonitoring",
43+
"TransactionMonitoringWithRawResponse",
44+
"AsyncTransactionMonitoringWithRawResponse",
45+
"TransactionMonitoringWithStreamingResponse",
46+
"AsyncTransactionMonitoringWithStreamingResponse",
47+
]
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .cases import (
4+
Cases,
5+
AsyncCases,
6+
CasesWithRawResponse,
7+
AsyncCasesWithRawResponse,
8+
CasesWithStreamingResponse,
9+
AsyncCasesWithStreamingResponse,
10+
)
11+
from .files import (
12+
Files,
13+
AsyncFiles,
14+
FilesWithRawResponse,
15+
AsyncFilesWithRawResponse,
16+
FilesWithStreamingResponse,
17+
AsyncFilesWithStreamingResponse,
18+
)
19+
from .comments import (
20+
Comments,
21+
AsyncComments,
22+
CommentsWithRawResponse,
23+
AsyncCommentsWithRawResponse,
24+
CommentsWithStreamingResponse,
25+
AsyncCommentsWithStreamingResponse,
26+
)
27+
28+
__all__ = [
29+
"Comments",
30+
"AsyncComments",
31+
"CommentsWithRawResponse",
32+
"AsyncCommentsWithRawResponse",
33+
"CommentsWithStreamingResponse",
34+
"AsyncCommentsWithStreamingResponse",
35+
"Files",
36+
"AsyncFiles",
37+
"FilesWithRawResponse",
38+
"AsyncFilesWithRawResponse",
39+
"FilesWithStreamingResponse",
40+
"AsyncFilesWithStreamingResponse",
41+
"Cases",
42+
"AsyncCases",
43+
"CasesWithRawResponse",
44+
"AsyncCasesWithRawResponse",
45+
"CasesWithStreamingResponse",
46+
"AsyncCasesWithStreamingResponse",
47+
]

0 commit comments

Comments
 (0)