Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
add secrets forwarding requests teams mle#77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
christian-method
wants to merge
7
commits into
masterChoose a base branch
from
add-secrets-forwarding-requests-teams-mle
base:master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Uh oh!
There was an error while loading. Please reload this page.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5e247f7
Add Secrets, ForwardingRequests, and Teams MLE public key resources
christian-method 395b425
Add ManagedAccounts, complete Teams, and update account subscription …
christian-method 92289c5
Fix CI failures in Secret and Team MLE public key tests
christian-method d77571f
bump method-version header to 2025-12-01
christian-method c1a6a20
skip live dev API test modules when API_KEY is not set
christian-method 3e28060
delete the fixture-created secret in forwarding request test teardown
christian-method 1d0c1fd
add payment instrument delete and inbound_achwire_payment typing
christian-method File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| from typing import TypedDict, Optional, List, Dict, Any, Literal | ||
| from method.resource import MethodResponse, Resource, RequestOpts | ||
| from method.configuration import Configuration | ||
| ForwardingRequestStatusesLiterals = Literal[ | ||
| 'completed', | ||
| 'failed' | ||
| ] | ||
| ForwardingRequestMethodsLiterals = Literal[ | ||
| 'GET', | ||
| 'POST', | ||
| 'PUT', | ||
| 'PATCH', | ||
| 'DELETE' | ||
| ] | ||
| class ForwardingRequestDetail(TypedDict): | ||
| url: str | ||
| method: ForwardingRequestMethodsLiterals | ||
| headers: Dict[str, str] | ||
| body: str | ||
| class ForwardingResponseDetail(TypedDict): | ||
| status_code: Optional[int] | ||
| headers: Dict[str, str] | ||
| body: Any | ||
| class ForwardingRequestStatusHistoryItem(TypedDict): | ||
| status: str | ||
| message: Optional[str] | ||
| class ForwardingRequest(TypedDict): | ||
| id: str | ||
| bindings: Dict[str, str] | ||
| request: ForwardingRequestDetail | ||
| response: ForwardingResponseDetail | ||
| duration_ms: int | ||
| status: ForwardingRequestStatusesLiterals | ||
| status_history: List[ForwardingRequestStatusHistoryItem] | ||
| created_at: str | ||
| class ForwardingRequestCreateOpts(TypedDict): | ||
| bindings: Dict[str, str] | ||
| url: str | ||
| method: ForwardingRequestMethodsLiterals | ||
| headers: Dict[str, str] | ||
| body: str | ||
| metadata: Optional[Dict[str, Any]] | ||
| class ForwardingRequestResource(Resource): | ||
| def __init__(self, config: Configuration): | ||
| super(ForwardingRequestResource, self).__init__(config.add_path('forwarding_requests')) | ||
| def create(self, opts: ForwardingRequestCreateOpts, request_opts: Optional[RequestOpts] = None) -> MethodResponse[ForwardingRequest]: | ||
| return super(ForwardingRequestResource, self)._create(opts, request_opts=request_opts) | ||
| def retrieve(self, _id: str) -> MethodResponse[ForwardingRequest]: | ||
| return super(ForwardingRequestResource, self)._get_with_id(_id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from method.resources.ForwardingRequests.ForwardingRequest import ForwardingRequest, ForwardingRequestResource |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| from typing import TypedDict, Optional, List | ||
| from method.resource import MethodResponse, Resource | ||
| from method.configuration import Configuration | ||
| class ManagedAccount(TypedDict): | ||
| id: str | ||
| routing: str | ||
| number: str | ||
| current_balance: int | ||
| available_balance: int | ||
| class ManagedAccountTransaction(TypedDict): | ||
| id: str | ||
| description: str | ||
| date: str | ||
| amount: int | ||
| class ManagedAccountTransactionListOpts(TypedDict): | ||
| page_limit: Optional[int] | ||
| from_date: Optional[str] | ||
| to_date: Optional[str] | ||
| page_cursor: Optional[str] | ||
| class ManagedAccountTransactionsResource(Resource): | ||
| def __init__(self, config: Configuration): | ||
| super(ManagedAccountTransactionsResource, self).__init__(config.add_path('transactions')) | ||
| def list(self, params: Optional[ManagedAccountTransactionListOpts] = None) -> MethodResponse[List[ManagedAccountTransaction]]: | ||
| return super(ManagedAccountTransactionsResource, self)._list(params) | ||
| class ManagedAccountSubResources: | ||
| transactions: ManagedAccountTransactionsResource | ||
| def __init__(self, _id: str, config: Configuration): | ||
| self.transactions = ManagedAccountTransactionsResource(config.add_path(_id)) | ||
| class ManagedAccountResource(Resource): | ||
| def __init__(self, config: Configuration): | ||
| super(ManagedAccountResource, self).__init__(config.add_path('managed_accounts')) | ||
| def __call__(self, macc_id: str) -> ManagedAccountSubResources: | ||
| return ManagedAccountSubResources(macc_id, self.config) | ||
| def list(self) -> MethodResponse[List[ManagedAccount]]: | ||
| return super(ManagedAccountResource, self)._list(None) | ||
| def retrieve(self, macc_id: str) -> MethodResponse[ManagedAccount]: | ||
| return super(ManagedAccountResource, self)._get_with_id(macc_id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from method.resources.ManagedAccounts.ManagedAccount import ManagedAccount, ManagedAccountTransaction, ManagedAccountResource |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| from typing import TypedDict, Optional, List, Dict, Any, Literal | ||
| from method.resource import MethodResponse, Resource, RequestOpts, ResourceListOpts | ||
| from method.configuration import Configuration | ||
| from method.errors import ResourceError | ||
| SecretStatusesLiterals = Literal[ | ||
| 'active', | ||
| 'deleted' | ||
| ] | ||
| class Secret(TypedDict): | ||
| id: str | ||
| metadata: Optional[Dict[str, Any]] | ||
| status: SecretStatusesLiterals | ||
| error: Optional[ResourceError] | ||
| created_at: str | ||
| updated_at: str | ||
| class SecretCreateOpts(TypedDict): | ||
| value: str | ||
| metadata: Optional[Dict[str, Any]] | ||
| class SecretListOpts(ResourceListOpts): | ||
| pass | ||
| class SecretResource(Resource): | ||
| def __init__(self, config: Configuration): | ||
| super(SecretResource, self).__init__(config.add_path('secrets')) | ||
| def create(self, opts: SecretCreateOpts, request_opts: Optional[RequestOpts] = None) -> MethodResponse[Secret]: | ||
| return super(SecretResource, self)._create(opts, request_opts=request_opts) | ||
| def retrieve(self, _id: str) -> MethodResponse[Secret]: | ||
| return super(SecretResource, self)._get_with_id(_id) | ||
| def list(self, params: Optional[SecretListOpts] = None) -> MethodResponse[List[Secret]]: | ||
| return super(SecretResource, self)._list(params) | ||
| def delete(self, _id: str) -> MethodResponse[None]: | ||
| return super(SecretResource, self)._delete(_id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from method.resources.Secrets.Secret import Secret, SecretResource |
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.