diff --git a/docker/toolkits.txt b/docker/toolkits.txt index 4f8f2159..f1b84bfd 100644 --- a/docker/toolkits.txt +++ b/docker/toolkits.txt @@ -1 +1,2 @@ arcade-slack-api +arcade-stripe-api diff --git a/toolkits/stripe_api/.pre-commit-config.yaml b/toolkits/stripe_api/.pre-commit-config.yaml new file mode 100644 index 00000000..3e64f2a4 --- /dev/null +++ b/toolkits/stripe_api/.pre-commit-config.yaml @@ -0,0 +1,18 @@ +files: ^.*/stripe_api/.* +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: "v4.4.0" + hooks: + - id: check-case-conflict + - id: check-merge-conflict + - id: check-toml + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.6.7 + hooks: + - id: ruff + args: [--fix] + - id: ruff-format diff --git a/toolkits/stripe_api/.ruff.toml b/toolkits/stripe_api/.ruff.toml new file mode 100644 index 00000000..9519fe6c --- /dev/null +++ b/toolkits/stripe_api/.ruff.toml @@ -0,0 +1,44 @@ +target-version = "py310" +line-length = 100 +fix = true + +[lint] +select = [ + # flake8-2020 + "YTT", + # flake8-bandit + "S", + # flake8-bugbear + "B", + # flake8-builtins + "A", + # flake8-comprehensions + "C4", + # flake8-debugger + "T10", + # flake8-simplify + "SIM", + # isort + "I", + # mccabe + "C90", + # pycodestyle + "E", "W", + # pyflakes + "F", + # pygrep-hooks + "PGH", + # pyupgrade + "UP", + # ruff + "RUF", + # tryceratops + "TRY", +] + +[lint.per-file-ignores] +"**/tests/*" = ["S101"] + +[format] +preview = true +skip-magic-trailing-comma = false diff --git a/toolkits/stripe_api/LICENSE b/toolkits/stripe_api/LICENSE new file mode 100644 index 00000000..dfbb8b76 --- /dev/null +++ b/toolkits/stripe_api/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025, Arcade AI + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/toolkits/stripe_api/Makefile b/toolkits/stripe_api/Makefile new file mode 100644 index 00000000..57f1cd4b --- /dev/null +++ b/toolkits/stripe_api/Makefile @@ -0,0 +1,55 @@ +.PHONY: help + +help: + @echo "🛠️ github Commands:\n" + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + +.PHONY: install +install: ## Install the uv environment and install all packages with dependencies + @echo "🚀 Creating virtual environment and installing all packages using uv" + @uv sync --active --all-extras --no-sources + @if [ -f .pre-commit-config.yaml ]; then uv run --no-sources pre-commit install; fi + @echo "✅ All packages and dependencies installed via uv" + +.PHONY: install-local +install-local: ## Install the uv environment and install all packages with dependencies with local Arcade sources + @echo "🚀 Creating virtual environment and installing all packages using uv" + @uv sync --active --all-extras + @if [ -f .pre-commit-config.yaml ]; then uv run pre-commit install; fi + @echo "✅ All packages and dependencies installed via uv" + +.PHONY: build +build: clean-build ## Build wheel file using poetry + @echo "🚀 Creating wheel file" + uv build + +.PHONY: clean-build +clean-build: ## clean build artifacts + @echo "🗑️ Cleaning dist directory" + rm -rf dist + +.PHONY: test +test: ## Test the code with pytest + @echo "🚀 Testing code: Running pytest" + @uv run --no-sources pytest -W ignore -v --cov --cov-config=pyproject.toml --cov-report=xml + +.PHONY: coverage +coverage: ## Generate coverage report + @echo "coverage report" + @uv run --no-sources coverage report + @echo "Generating coverage report" + @uv run --no-sources coverage html + +.PHONY: bump-version +bump-version: ## Bump the version in the pyproject.toml file by a patch version + @echo "🚀 Bumping version in pyproject.toml" + uv version --no-sources --bump patch + +.PHONY: check +check: ## Run code quality tools. + @if [ -f .pre-commit-config.yaml ]; then\ + echo "🚀 Linting code: Running pre-commit";\ + uv run --no-sources --prerelease=allow pre-commit run -a;\ + fi + @echo "🚀 Static type checking: Running mypy" + @uv run --no-sources --prerelease=allow mypy --config-file=pyproject.toml diff --git a/toolkits/stripe_api/arcade_stripe_api/__init__.py b/toolkits/stripe_api/arcade_stripe_api/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/toolkits/stripe_api/arcade_stripe_api/tools/__init__.py b/toolkits/stripe_api/arcade_stripe_api/tools/__init__.py new file mode 100644 index 00000000..6c6e25d0 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/tools/__init__.py @@ -0,0 +1,8597 @@ +"""Arcade Starter Tools for Stripe + +DO NOT EDIT THIS MODULE DIRECTLY. + +THIS MODULE WAS AUTO-GENERATED BY TRANSPILING THE API WRAPPER TOOL JSON DEFINITIONS +IN THE ../wrapper_tools DIRECTORY INTO PYTHON CODE. ANY CHANGES TO THIS MODULE WILL +BE OVERWRITTEN BY THE TRANSPILER. +""" + +from typing import Annotated, Any + +import httpx +from arcade_tdk import ToolContext, tool + + +def remove_none_values(data: dict[str, Any]) -> dict[str, Any]: + return {k: v for k, v in data.items() if v is not None} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_stripe_account_details( + context: ToolContext, + expand_fields: Annotated[ + list[str] | None, + "A list of fields to specify which fields in the Stripe account response should be expanded.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetAccount'."]: + """Retrieve details of a Stripe account. + + Use this tool to get information about a specific Stripe account, such as its status and settings.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/account", + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_stripe_connected_account( + context: ToolContext, + account_id_to_delete: Annotated[ + str, + "The unique identifier of the Stripe account to be deleted. Ensure this is a managed account with zero balance.", # noqa: E501 + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteAccountsAccount'."]: + """Delete managed accounts via Stripe Connect. + + Use this tool to delete accounts you manage through Stripe Connect. Suitable for test-mode accounts anytime and live-mode accounts except those with standard dashboard access or negative balances. Ensure all balances are zero before deletion.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}".format(account=account_id_to_delete), # noqa: UP032 + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_account_details( + context: ToolContext, + account_id: Annotated[str, "The unique identifier of the account to retrieve details for."], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields to expand in the response for detailed account information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetAccountsAccount'."]: + """Retrieve details of a specific account. + + Use this tool to obtain detailed information about a specific account using its identifier.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}".format(account=account_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_external_bank_account( + context: ToolContext, + account_identifier: Annotated[ + str, "The account ID from which you want to delete an external bank account." + ], + external_account_id: Annotated[ + str, "The unique identifier of the external bank account to be deleted." + ], +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'DeleteAccountsAccountBankAccountsId'." +]: + """Delete an external bank account for a specified account. + + Use this tool to remove a specified external bank account from a given account. It confirms the successful deletion.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}/bank_accounts/{id}".format( # noqa: UP032 + account=account_identifier, id=external_account_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_external_bank_account_details( + context: ToolContext, + account_id: Annotated[ + str, "The unique identifier for the account associated with the external bank account." + ], + external_account_id: Annotated[ + str, "Unique identifier for the external bank account to retrieve its details." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to expand for additional detail." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetAccountsAccountBankAccountsId'." +]: + """Retrieve details of a specific external bank account for an account. + + Use this tool to obtain details of a specified external bank account associated with a given account using its ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}/bank_accounts/{id}".format( # noqa: UP032 + account=account_id, id=external_account_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_account_capabilities( + context: ToolContext, + account_id: Annotated[ + str, + "The ID of the Stripe account for which to retrieve capabilities. This is a required field.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, "A list of fields to expand in the response, specified as strings." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetAccountsAccountCapabilities'."]: + """Retrieve capabilities associated with a Stripe account. + + This tool returns a list of capabilities for a specified Stripe account, sorted by their creation date.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}/capabilities".format( # noqa: UP032 + account=account_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_account_capability_details( + context: ToolContext, + account_id: Annotated[ + str, + "The unique identifier for the Stripe account whose capability information is being requested.", # noqa: E501 + ], + account_capability_identifier: Annotated[ + str, + "A unique identifier string for the specific capability of the account to be retrieved. This is essential to specify which capability's details you want to fetch from Stripe.", # noqa: E501 + ], + expand_fields: Annotated[ + list[str] | None, "List of fields in the response to expand for detailed information." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetAccountsAccountCapabilitiesCapability'." +]: + """Retrieve details of a specific account capability. + + This tool fetches information about a specific capability of an account in Stripe. It should be called when there's a need to understand the capabilities available on an account.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}/capabilities/{capability}".format( # noqa: UP032 + account=account_id, capability=account_capability_identifier + ), + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def list_external_accounts( + context: ToolContext, + stripe_account_id: Annotated[ + str, + "The unique identifier for the Stripe account whose external accounts you want to retrieve.", # noqa: E501 + ], + pagination_ending_before: Annotated[ + str | None, + "A cursor used to define your position in the list for pagination. It specifies the object ID before which the list should end.", # noqa: E501 + ] = None, + expand_response_fields: Annotated[ + list[str] | None, "A list of fields in the response to expand for detailed information." + ] = None, + max_results_per_page: Annotated[ + int | None, + "Specify the number of external accounts to retrieve, ranging from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + filter_by_object_type: Annotated[ + str | None, "Specify the type of external accounts to filter: 'bank_account' or 'card'." + ] = None, + pagination_starting_after_object_id: Annotated[ + str | None, + "Object ID for pagination to fetch the next page of results. Use the ID of the last object from the current list.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetAccountsAccountExternalAccounts'." +]: + """Retrieve external accounts linked to a Stripe account. + + This tool retrieves the external accounts associated with a specified Stripe account. It should be called when you need details about the financial accounts linked to a specific Stripe account ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}/external_accounts".format( # noqa: UP032 + account=stripe_account_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": expand_response_fields, + "limit": max_results_per_page, + "object": filter_by_object_type, + "starting_after": pagination_starting_after_object_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_external_account( + context: ToolContext, + account_identifier: Annotated[ + str, "The unique identifier of the account from which the external account will be deleted." + ], + external_account_id: Annotated[ + str, "Unique identifier for the external account to be deleted." + ], +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'DeleteAccountsAccountExternalAccountsId'." +]: + """Delete a specified external account for a given account. + + Use this tool to delete an external account linked to a specific account. Ideal for managing external accounts by removing unwanted or outdated entries.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}/external_accounts/{id}".format( # noqa: UP032 + account=account_identifier, id=external_account_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_stripe_external_account_details( + context: ToolContext, + stripe_account_id: Annotated[ + str, "The unique identifier for the Stripe account containing the external account." + ], + external_account_id: Annotated[ + str, "Unique identifier for the external account to be retrieved from Stripe." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields to expand in the response for additional details." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetAccountsAccountExternalAccountsId'." +]: + """Retrieve details of a specific Stripe external account. + + This tool fetches information about a specified external account for a given Stripe account. It should be used to obtain details about linked bank accounts or cards associated with a Stripe account.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}/external_accounts/{id}".format( # noqa: UP032 + account=stripe_account_id, id=external_account_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_account_person_relationship( + context: ToolContext, + account_id: Annotated[ + str, + "The unique identifier for the Stripe account from which the person's relationship will be removed. This ID is required to specify the correct account.", # noqa: E501 + ], + person_id: Annotated[ + str, + "The unique identifier of the person whose relationship to the account is to be removed.", + ], +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'DeleteAccountsAccountPeoplePerson'." +]: + """Remove a person's relationship from a Stripe account. + + This tool deletes an existing person's relationship to a Stripe account's legal entity. It cannot delete the account opener or the only verified executive, if applicable.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}/people/{person}".format( # noqa: UP032 + account=account_id, person=person_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_person_information( + context: ToolContext, + stripe_account_id: Annotated[ + str, + "The unique identifier of the Stripe account from which to retrieve the person's information. This is required to access the account details linked to this person.", # noqa: E501 + ], + person_identifier: Annotated[ + str, + "The unique identifier of the person to retrieve within the Stripe account. This ID is required to fetch the specific person's details.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetAccountsAccountPeoplePerson'."]: + """Retrieve information about a person in a Stripe account. + + Use this tool to obtain details of a specific person associated with a Stripe account. Ideal for scenarios where user requests involve checking or verifying personal information linked to an account.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}/people/{person}".format( # noqa: UP032 + account=stripe_account_id, person=person_identifier + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_account_person( + context: ToolContext, + account_id: Annotated[ + str, + "The unique identifier of the account from which a person's relationship will be deleted. This must be a valid Stripe account ID.", # noqa: E501 + ], + person_id: Annotated[ + str, + "A unique identifier for the person whose relationship to the account will be deleted. This is required and must be a valid person ID in Stripe.", # noqa: E501 + ], +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'DeleteAccountsAccountPersonsPerson'." +]: + """Delete a person's relationship to an account in Stripe. + + Deletes a person's relationship to the account's legal entity in Stripe, except for the account_opener or the sole verified executive.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}/persons/{person}".format( # noqa: UP032 + account=account_id, person=person_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_person_account_details( + context: ToolContext, + account_id: Annotated[ + str, + "The identifier of the Stripe account to which the person is linked. This is required to specify which account's person details need to be retrieved.", # noqa: E501 + ], + person_identifier: Annotated[ + str, + "The unique identifier of the person whose details need to be retrieved. This ID is associated with the person's account in Stripe.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response to be expanded for detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetAccountsAccountPersonsPerson'."]: + """Retrieve details of a person linked to an account. + + This tool retrieves details of an existing person associated with a specified account in Stripe. It should be called when you need to fetch information about a specific person related to an account on the Stripe platform.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/accounts/{account}/persons/{person}".format( # noqa: UP032 + account=account_id, person=person_identifier + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def list_apple_pay_domains( + context: ToolContext, + domain_name_filter: Annotated[ + str | None, "Filter the list by a specific domain name. Leave empty to return all domains." + ] = None, + pagination_ending_before_id: Annotated[ + str | None, "Object ID for pagination to fetch the previous page of the list." + ] = None, + expand_fields: Annotated[ + list[str] | None, "An array of fields to expand in the response for additional details." + ] = None, + max_domains_to_return: Annotated[ + int | None, + "Specify the number of Apple Pay domains to retrieve, between 1 and 100. Defaults to 10 if not set.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, "An object ID for pagination to retrieve the next page of the list." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetApplePayDomains'."]: + """Retrieve a list of Apple Pay domains. + + Use this tool to get a list of all Apple Pay domains associated with your Stripe account.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/apple_pay/domains", + params=remove_none_values({ + "domain_name": domain_name_filter, + "ending_before": pagination_ending_before_id, + "expand": expand_fields, + "limit": max_domains_to_return, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_apple_pay_domain( + context: ToolContext, + apple_pay_domain_to_delete: Annotated[ + str, "The domain name of the Apple Pay domain you wish to delete from your Stripe account." + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteApplePayDomainsDomain'."]: + """Delete an Apple Pay domain from Stripe. + + Use this tool to delete a specific Apple Pay domain registered with your Stripe account. This is useful for managing domains no longer required for Apple Pay services.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/apple_pay/domains/{domain}".format( # noqa: UP032 + domain=apple_pay_domain_to_delete + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_apple_pay_domain( + context: ToolContext, + apple_pay_domain_name: Annotated[ + str, + "The domain name of the Apple Pay site to retrieve details for. This should be a valid domain string.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, "A list of fields to expand in the response for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetApplePayDomainsDomain'."]: + """Retrieve details of an Apple Pay domain. + + Use this tool to get information about a specific Apple Pay domain by providing the domain name.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/apple_pay/domains/{domain}".format( # noqa: UP032 + domain=apple_pay_domain_name + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_application_fee_refund_detail( + context: ToolContext, + application_fee_id: Annotated[ + str, "The ID of the application fee associated with the refund to retrieve details for." + ], + refund_id: Annotated[ + str, + "The unique identifier of the specific refund to retrieve details for. This is required to access a particular refund.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields to expand in the response for additional detail." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetApplicationFeesFeeRefundsId'."]: + """Retrieve details of a specific application fee refund. + + Use this tool to obtain detailed information about a specific refund related to an application fee, beyond the 10 most recent refunds available by default.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/application_fees/{fee}/refunds/{id}".format( # noqa: UP032 + fee=application_fee_id, id=refund_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_application_fee_details( + context: ToolContext, + application_fee_id: Annotated[ + str, "The unique identifier of the application fee to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, "A list of fields to expand in the response for detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetApplicationFeesId'."]: + """Retrieve details of a specific application fee. + + Use this tool to get information about an application fee collected by your account. It provides the same details as when refunding the fee.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/application_fees/{id}".format(id=application_fee_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_application_fee_refunds( + context: ToolContext, + application_fee_id: Annotated[ + str, + "The unique identifier of the application fee for which refunds are being retrieved. This ID specifies which fee's refunds should be listed.", # noqa: E501 + ], + pagination_cursor_ending_before: Annotated[ + str | None, "An object ID cursor used for pagination to fetch the previous page of refunds." + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to expand for additional details." + ] = None, + maximum_number_of_refunds: Annotated[ + int | None, + "The maximum number of refund objects to return, ranging from 1 to 100. Defaults to 10 if not specified.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, + "An object ID to fetch the next page of refunds after this ID, used for pagination.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetApplicationFeesIdRefunds'."]: + """Retrieve refunds for a specific application fee. + + Use this tool to access more than the default 10 refunds associated with a specific application fee, using pagination parameters if needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/application_fees/{id}/refunds".format( # noqa: UP032 + id=application_fee_id + ), + params=remove_none_values({ + "ending_before": pagination_cursor_ending_before, + "expand": fields_to_expand, + "limit": maximum_number_of_refunds, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_current_account_balance( + context: ToolContext, + fields_to_expand: Annotated[ + list[str] | None, "List of fields to expand in the response for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetBalance'."]: + """Retrieve the current account balance from Stripe. + + Use this tool to get the current account balance based on the authentication used. It's helpful for accessing up-to-date financial data from the Stripe account.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/balance", + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_balance_transaction_by_id( + context: ToolContext, + balance_transaction_id: Annotated[ + str, "The unique identifier for the balance transaction to retrieve." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetBalanceHistoryId'."]: + """Retrieve details of a balance transaction by ID. + + Call this tool to get the details of a specific balance transaction using its ID. Useful for accessing historical balance changes for specific transactions.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/balance/history/{id}".format(id=balance_transaction_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_balance_settings( + context: ToolContext, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for the connected Stripe account's balance settings.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetBalanceSettings'."]: + """Retrieve balance settings for a connected Stripe account. + + Use this tool to obtain the balance settings associated with a specific connected account in Stripe. Useful for managing and reviewing account financial settings.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/balance_settings", + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_balance_transaction_by_id( + context: ToolContext, + transaction_id: Annotated[ + str, "The unique identifier of the balance transaction to be retrieved." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for additional details.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetBalanceTransactionsId'."]: + """Retrieve details of a balance transaction by ID. + + Call this tool to get comprehensive information about a specific balance transaction using its ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/balance_transactions/{id}".format(id=transaction_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_billing_alerts( + context: ToolContext, + filter_by_alert_type: Annotated[ + str | None, + "Filter results to only include alerts of the specified type. Accepts 'usage_threshold'.", + ] = None, + pagination_ending_before: Annotated[ + str | None, + "A pagination cursor. Use this ID to fetch the previous page of the list if starting from a specific object.", # noqa: E501 + ] = None, + expand_response_fields: Annotated[ + list[str] | None, + "List of fields in the response that should be expanded. Each field should be a string.", + ] = None, + result_limit: Annotated[ + int | None, + "Specify the maximum number of billing alerts to be returned. Accepts an integer from 1 to 100. Defaults to 10 if not provided.", # noqa: E501 + ] = None, + filter_by_meter: Annotated[ + str | None, "Filter results to only include alerts related to a specific meter type." + ] = None, + pagination_starting_after: Annotated[ + str | None, + "Cursor indicating the starting point for fetching the next page of alerts. Use an object ID from a previous response.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetBillingAlerts'."]: + """Retrieve active and inactive billing alerts. + + Use this tool to list all current billing alerts, both active and inactive, from Stripe.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/billing/alerts", + params=remove_none_values({ + "alert_type": filter_by_alert_type, + "ending_before": pagination_ending_before, + "expand": expand_response_fields, + "limit": result_limit, + "meter": filter_by_meter, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_billing_alert( + context: ToolContext, + billing_alert_id: Annotated[ + str, "The unique identifier of the billing alert to retrieve details for." + ], + expand_fields: Annotated[ + list[str] | None, "List of fields in the response that should be expanded." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetBillingAlertsId'."]: + """Retrieve billing alert details by ID. + + This tool retrieves billing alert information from Stripe using a specific alert ID. It should be called when you need details about a particular billing alert.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/billing/alerts/{id}".format(id=billing_alert_id), # noqa: UP032 + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_credit_balance_transactions( + context: ToolContext, + customer_id: Annotated[ + str, "The unique identifier of the customer for which to fetch credit balance transactions." + ], + credit_grant_id: Annotated[ + str | None, + "The identifier for the specific credit grant to fetch its credit balance transactions.", + ] = None, + pagination_ending_cursor: Annotated[ + str | None, + "A pagination cursor ID to fetch the previous page of the list. Use an object ID to identify your position.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response that should be expanded for additional details.", + ] = None, + max_transactions_to_return: Annotated[ + int | None, + "Specify the maximum number of transactions to return, ranging between 1 and 100. The default is 10.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, "An object ID cursor to fetch the next page of credit balance transactions." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetBillingCreditBalanceTransactions'." +]: + """Retrieve a list of credit balance transactions. + + This tool calls the Stripe API endpoint to fetch credit balance transactions. It should be used to review or analyze credit activity associated with billing accounts.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/billing/credit_balance_transactions", + params=remove_none_values({ + "credit_grant": credit_grant_id, + "customer": customer_id, + "ending_before": pagination_ending_cursor, + "expand": fields_to_expand, + "limit": max_transactions_to_return, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_credit_balance_transaction( + context: ToolContext, + transaction_id: Annotated[ + str, "Unique identifier for the credit balance transaction to be retrieved." + ], + fields_to_expand: Annotated[ + list[str] | None, + "An array of field names to expand in the response. Allows accessing nested information related to the transaction.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetBillingCreditBalanceTransactionsId'." +]: + """Retrieve a credit balance transaction by ID. + + Use this tool to obtain information about a specific credit balance transaction using its ID.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/billing/credit_balance_transactions/{id}".format( # noqa: UP032 + id=transaction_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_billing_credit_grants( + context: ToolContext, + customer_id: Annotated[ + str | None, + "The unique identifier of the customer whose credit grants you want to retrieve.", + ] = None, + pagination_ending_before: Annotated[ + str | None, + "An object ID to fetch the previous page of the list. Use the last received object's ID from the current page.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields to be expanded in the response for detailed information.", + ] = None, + credit_grant_limit: Annotated[ + int | None, + "The maximum number of credit grants to return, between 1 and 100. Defaults to 10 if not specified.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "A cursor (object ID) for pagination to fetch the next page in the list. Use the ID from the last object in the previous list.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetBillingCreditGrants'."]: + """Retrieve a list of billing credit grants. + + Use this tool to retrieve information about billing credit grants from Stripe. It should be called when you need details about existing credit grants.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/billing/credit_grants", + params=remove_none_values({ + "customer": customer_id, + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": credit_grant_limit, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_credit_grant( + context: ToolContext, + credit_grant_id: Annotated[ + str, "The unique identifier for the credit grant to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response that should be expanded to include additional details.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetBillingCreditGrantsId'."]: + """Retrieve details of a specific credit grant using its ID. + + Call this tool to get information about a specific credit grant by providing its ID. Useful for checking credit grant details within billing systems.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/billing/credit_grants/{id}".format(id=credit_grant_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_billing_meters( + context: ToolContext, + pagination_ending_before: Annotated[ + str | None, "An object ID cursor to fetch the previous page, used for pagination." + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "An array of strings specifying which fields in the response should be expanded.", + ] = None, + number_of_billing_meters: Annotated[ + int | None, + "Specify the number of billing meters to return, ranging from 1 to 100 (default is 10).", + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "Cursor ID to define your starting point in the list for pagination. Use this to fetch the next page of results.", # noqa: E501 + ] = None, + filter_status: Annotated[ + str | None, + "Filter results to include only billing meters with the specified status. Options are 'active' or 'inactive'.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetBillingMeters'."]: + """Retrieve a list of billing meters from Stripe.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/billing/meters", + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": number_of_billing_meters, + "starting_after": pagination_starting_after_cursor, + "status": filter_status, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_billing_meter( + context: ToolContext, + billing_meter_id: Annotated[str, "The ID of the billing meter to be retrieved."], + fields_to_expand: Annotated[ + list[str] | None, + "A list of field names to expand in the billing meter response for additional details.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetBillingMetersId'."]: + """Retrieve billing meter details by ID. + + Use this tool to get information about a billing meter by providing its ID.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/billing/meters/{id}".format(id=billing_meter_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_billing_meter_event_summaries( + context: ToolContext, + customer_id: Annotated[ + str, "The unique identifier of the customer for which to fetch event summaries." + ], + stop_aggregating_until: Annotated[ + int, + "The exclusive timestamp to stop aggregating meter events. Ensure it aligns with minute boundaries.", # noqa: E501 + ], + start_time_timestamp: Annotated[ + int, + "The timestamp to begin aggregating meter events (inclusive). Must align with minute boundaries.", # noqa: E501 + ], + meter_id: Annotated[ + str, "The unique identifier for the billing meter to fetch event summaries for." + ], + pagination_ending_before_id: Annotated[ + str | None, + "An object ID for pagination, used to fetch the previous page of a list. Aligns the list cursor to end before the specified object ID.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for detailed results.", + ] = None, + number_of_objects_limit: Annotated[ + int | None, + "A limit on the number of billing meter event summaries to be returned. Must be between 1 and 100, with a default of 10.", # noqa: E501 + ] = None, + pagination_starting_after_id: Annotated[ + str | None, + "The object ID to use as a cursor to fetch the next page of the list for pagination.", + ] = None, + granularity_for_event_summaries: Annotated[ + str | None, + "Specifies the granularity for event summaries: 'hour' or 'day'. If not set, returns a single summary for the time range.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetBillingMetersIdEventSummaries'." +]: + """Retrieve billing meter event summaries by meter ID. + + Call this tool to get a list of billing meter event summaries for a specific meter ID, providing insights into billing events and activities.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/billing/meters/{id}/event_summaries".format(id=meter_id), # noqa: UP032 + params=remove_none_values({ + "customer": customer_id, + "end_time": stop_aggregating_until, + "ending_before": pagination_ending_before_id, + "expand": fields_to_expand, + "limit": number_of_objects_limit, + "start_time": start_time_timestamp, + "starting_after": pagination_starting_after_id, + "value_grouping_window": granularity_for_event_summaries, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_billing_portal_configurations( + context: ToolContext, + pagination_cursor_ending_before: Annotated[ + str | None, + "A cursor for pagination to get the previous page in the list, using an object ID.", + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response to be expanded. Each entry should be a string representing a field name.", # noqa: E501 + ] = None, + result_limit: Annotated[ + int | None, + "Specify the number of configurations to return, between 1 and 100. Default is 10.", + ] = None, + pagination_start_after_id: Annotated[ + str | None, "A cursor object ID used to fetch the next page of the list for pagination." + ] = None, + only_active_configurations: Annotated[ + bool | None, + "Set to true to list only active configurations, or false to list inactive ones.", + ] = None, + return_default_configurations_only: Annotated[ + bool | None, + "Set to true to return only default configurations, or false to return non-default configurations.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetBillingPortalConfigurations'."]: + """Retrieve customer portal configurations from Stripe. + + Provides configurations that describe the functionality of the billing customer portal. Useful for understanding available setups and settings for customer management.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/billing_portal/configurations", + params=remove_none_values({ + "active": only_active_configurations, + "ending_before": pagination_cursor_ending_before, + "expand": fields_to_expand, + "is_default": return_default_configurations_only, + "limit": result_limit, + "starting_after": pagination_start_after_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_portal_configuration( + context: ToolContext, + configuration_id: Annotated[ + str, "The unique identifier for the customer portal configuration to retrieve." + ], + expand_fields_in_response: Annotated[ + list[str] | None, + "A list of field names in the response that should be expanded for more detailed information.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetBillingPortalConfigurationsConfiguration'." +]: + """Retrieve customer portal configuration details. + + Fetches the configuration that outlines the functionality of the billing portal for a specific customer.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/billing_portal/configurations/{configuration}".format( # noqa: UP032 + configuration=configuration_id + ), + params=remove_none_values({"expand": expand_fields_in_response}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def stripe_search_charges( + context: ToolContext, + search_query_string: Annotated[ + str, + "The search query string using Stripe's Search Query Language to filter charge results. Refer to Stripe's documentation for syntax and fields.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for additional detail.", + ] = None, + result_limit: Annotated[ + int | None, + "Specify the number of charge objects to return. The limit can be between 1 and 100, with a default of 10.", # noqa: E501 + ] = None, + pagination_cursor: Annotated[ + str | None, + "Cursor for pagination. Use the 'next_page' value from the previous response for subsequent requests. Omit on the first call.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetChargesSearch'."]: + """Search for previously created charges using Stripe. + + Use this tool to search for charges you've created with Stripe using their Search Query Language. It's not suitable for scenarios needing strict consistency. Data may take up to an hour to appear during outages, and the feature is unavailable in India.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/charges/search", + params=remove_none_values({ + "expand": fields_to_expand, + "limit": result_limit, + "page": pagination_cursor, + "query": search_query_string, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_stripe_charge_details( + context: ToolContext, + charge_id: Annotated[ + str, "The unique identifier of the charge. Use this to retrieve its details." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to expand for more detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetChargesCharge'."]: + """Retrieve details of a specific Stripe charge via its unique ID. + + Use this tool to get details of a previously created charge on Stripe by providing the charge's unique ID. It returns information such as amount, currency, status, and more.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/charges/{charge}".format(charge=charge_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_charge_dispute_details( + context: ToolContext, + charge_id: Annotated[ + str, "The unique identifier of the charge for which you want to retrieve dispute details." + ], + fields_to_expand_in_dispute_response: Annotated[ + list[str] | None, "List of fields to expand in the dispute response for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetChargesChargeDispute'."]: + """Retrieve details of a dispute for a specific charge. + + Use this tool to fetch information about a dispute associated with a particular charge. This is helpful when you need to understand the dispute details for a specific transaction processed via Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/charges/{charge}/dispute".format(charge=charge_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand_in_dispute_response}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_charge_refunds( + context: ToolContext, + charge_id: Annotated[ + str, + "The unique identifier of the charge for which to retrieve refunds. This ID is required to specify the particular charge.", # noqa: E501 + ], + pagination_ending_before: Annotated[ + str | None, "Specify an object ID to fetch the previous page of refunds before this object." + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "List of fields to expand in the response for more detailed information." + ] = None, + object_return_limit: Annotated[ + int | None, + "Specify the number of refunds to return, ranging from 1 to 100. Defaults to 10 if not set.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, + "ID of the object to start retrieving the next page from. Used for pagination in refund lists.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetChargesChargeRefunds'."]: + """Retrieve refunds for a specific charge on Stripe. + + This tool retrieves a list of refunds associated with a specific charge on Stripe. It provides access to more than the 10 most recent refunds by allowing pagination through the 'limit' and 'starting_after' parameters.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/charges/{charge}/refunds".format(charge=charge_id), # noqa: UP032 + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": object_return_limit, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_refund_details_by_charge( + context: ToolContext, + charge_id: Annotated[str, "The unique identifier for the charge associated with the refund."], + refund_id: Annotated[ + str, + "The ID of the refund to retrieve details for. This is required to specify the refund you want to look up.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the refund details to be expanded in the response." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetChargesChargeRefundsRefund'."]: + """Fetches details of a refund associated to a specific charge. + + Use this tool to get detailed information about a specific refund by providing the charge ID and refund ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/charges/{charge}/refunds/{refund}".format( # noqa: UP032 + charge=charge_id, refund=refund_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_checkout_session( + context: ToolContext, + session_id: Annotated[ + str, + "The unique identifier for the Checkout Session you want to retrieve. This is required to specify which session's details to access.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the checkout session response that should be expanded for more detailed information.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCheckoutSessionsSession'."]: + """Retrieve a specific Stripe checkout session. + + This tool retrieves detailed information about a specific Checkout Session from Stripe. It should be called when there's a need to access the data for a particular session, identified by its session ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/checkout/sessions/{session}".format(session=session_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_checkout_session_line_items( + context: ToolContext, + checkout_session_id: Annotated[ + str, + "The unique identifier for the Stripe Checkout Session. This ID is required to retrieve associated line items.", # noqa: E501 + ], + cursor_ending_before: Annotated[ + str | None, + "An object ID used for pagination to retrieve the page before the specified object in the list.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for additional details.", + ] = None, + item_limit: Annotated[ + int | None, + "Sets the maximum number of line items to return, ranging from 1 to 100. Default is 10.", + ] = None, + pagination_starting_after: Annotated[ + str | None, + "A string representing the object ID to start the list after, for pagination purposes.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetCheckoutSessionsSessionLineItems'." +]: + """Fetch line items from a Stripe Checkout Session. + + Use this tool to retrieve line items associated with a specific Stripe Checkout Session, including a paginated list if required.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/checkout/sessions/{session}/line_items".format( # noqa: UP032 + session=checkout_session_id + ), + params=remove_none_values({ + "ending_before": cursor_ending_before, + "expand": fields_to_expand, + "limit": item_limit, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def list_climate_orders( + context: ToolContext, + pagination_ending_before_cursor: Annotated[ + str | None, + "A cursor ID to paginate backwards through the list, fetching the page before the specified object ID for Climate orders.", # noqa: E501 + ] = None, + expand_fields: Annotated[ + list[str] | None, + "A list of fields in the response to expand. Provide each field name as a string in an array.", # noqa: E501 + ] = None, + maximum_objects_to_return: Annotated[ + int | None, + "The number of Climate order objects to retrieve, ranging from 1 to 100. Default is 10.", + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "An object ID used as a cursor to define your place in the pagination list to retrieve the next page.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetClimateOrders'."]: + """Retrieve all Climate order objects from Stripe. + + The tool fetches and lists all Climate order objects from the Stripe service. These orders are sorted by creation date, with the most recent ones appearing first.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/climate/orders", + params=remove_none_values({ + "ending_before": pagination_ending_before_cursor, + "expand": expand_fields, + "limit": maximum_objects_to_return, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_climate_order_details( + context: ToolContext, + order_id: Annotated[str, "Unique identifier for the Climate order to retrieve details."], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for more detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetClimateOrdersOrder'."]: + """Retrieve details of a specific Climate order. + + Use this tool to get information about a Climate order based on its ID.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/climate/orders/{order}".format(order=order_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def list_climate_products( + context: ToolContext, + pagination_ending_before: Annotated[ + str | None, + "An object ID cursor to fetch the previous page in a paginated list. Use to define your place in the list.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "Specify which fields in the response should be expanded as a list of strings.", + ] = None, + objects_limit: Annotated[ + int | None, + "The maximum number of Climate product objects to return, ranging from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + pagination_starting_after_id: Annotated[ + str | None, + "A cursor (object ID) to define your starting point in the list for pagination. Used to fetch the next page after the specified object ID.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetClimateProducts'."]: + """Retrieve a list of all available Climate products. + + Use this tool to get information about all available Climate product objects from the Stripe service.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/climate/products", + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": objects_limit, + "starting_after": pagination_starting_after_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_climate_product_details( + context: ToolContext, + product_id: Annotated[ + str, "The unique identifier of the Climate product to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to expand for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetClimateProductsProduct'."]: + """Retrieve details of a specific Climate product from Stripe. + + This tool retrieves the details of a Climate product using the provided product ID from Stripe's API.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/climate/products/{product}".format(product=product_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def list_climate_suppliers( + context: ToolContext, + pagination_ending_before: Annotated[ + str | None, + "The object ID to use as a cursor for fetching the previous page of suppliers in the list.", + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response that should be expanded." + ] = None, + result_limit: Annotated[ + int | None, + "Specify the number of Climate supplier objects to return, ranging from 1 to 100, with a default of 10.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, "Object ID for pagination to fetch the next page of the Climate suppliers list." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetClimateSuppliers'."]: + """Retrieve a list of all available Climate suppliers. + + This tool calls the Stripe API to list all available Climate supplier objects. It should be used when you need information about climate suppliers for Stripe-related services.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/climate/suppliers", + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": result_limit, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_climate_supplier( + context: ToolContext, + supplier_identifier: Annotated[ + str, + "The unique identifier for the Climate supplier to be retrieved. This is required to fetch the supplier's information.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields to expand in the response for detailed information on the Climate supplier.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetClimateSuppliersSupplier'."]: + """Fetches details of a specific Climate supplier. + + Use this tool to get detailed information about a Climate supplier using the supplier's identifier. It is useful for accessing supplier profiles managed by Stripe's Climate initiative.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/climate/suppliers/{supplier}".format( # noqa: UP032 + supplier=supplier_identifier + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_confirmation_token_info( + context: ToolContext, + confirmation_token: Annotated[ + str, + "The unique identifier of the confirmation token to retrieve details for. This is required.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields to expand in the response for additional details. Each field should be specified as a string.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetConfirmationTokensConfirmationToken'." +]: + """Retrieves details of an existing confirmation token. + + This tool is used to retrieve information about a specific ConfirmationToken object in the Stripe system. It should be called when there is a need to obtain the details of a previously generated confirmation token.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/confirmation_tokens/{confirmation_token}".format( # noqa: UP032 + confirmation_token=confirmation_token + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_country_specs( + context: ToolContext, + pagination_ending_before: Annotated[ + str | None, + "The object ID to specify your place in the list for pagination, retrieving the previous page of results.", # noqa: E501 + ] = None, + expand_response_fields: Annotated[ + list[str] | None, + "An array of strings specifying fields in the response to be expanded for more detailed information.", # noqa: E501 + ] = None, + number_of_country_specs_to_return: Annotated[ + int | None, + "Number of country specification objects to return, ranging from 1 to 100. The default is 10.", # noqa: E501 + ] = None, + pagination_starting_after_id: Annotated[ + str | None, + "Object ID to define your place in the list for pagination. Use it to fetch the next page if available, based on the last object from a previous list call.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCountrySpecs'."]: + """Retrieve all country specification objects from the API. + + This tool calls the Stripe API to list all available Country Spec objects, providing information about country-specific details.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/country_specs", + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": expand_response_fields, + "limit": number_of_country_specs_to_return, + "starting_after": pagination_starting_after_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_country_specifications( + context: ToolContext, + country_code: Annotated[ + str, + "The ISO 3166-1 alpha-2 country code for which you want to retrieve specifications. For example, 'US' for the United States.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response to be expanded. Each field should be specified as a string.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCountrySpecsCountry'."]: + """Retrieve country specifications using a country code. + + This tool is used to obtain the specifications for a specific country by providing its country code. It should be called when information related to the country's financial regulations, formats, or other specifications is needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/country_specs/{country}".format(country=country_code), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_stripe_coupon( + context: ToolContext, + coupon_id: Annotated[ + str, + "The unique identifier of the coupon to delete on Stripe. This ID specifies which coupon should be deleted.", # noqa: E501 + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteCouponsCoupon'."]: + """Delete a coupon in Stripe without affecting current users. + + Use this tool to delete a coupon on Stripe, preventing new customers from redeeming it. Existing customers with the coupon remain unaffected.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/coupons/{coupon}".format(coupon=coupon_id), # noqa: UP032 + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_coupon_details( + context: ToolContext, + coupon_id: Annotated[str, "The unique identifier of the coupon to retrieve details."], + expanded_fields: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for additional details.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCouponsCoupon'."]: + """Retrieve details of a coupon by its ID. + + Use this tool to fetch information about a specific coupon available in your Stripe account, identified by its unique ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/coupons/{coupon}".format(coupon=coupon_id), # noqa: UP032 + params=remove_none_values({"expand": expanded_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_credit_note_lines( + context: ToolContext, + credit_note_id: Annotated[ + str, "The unique identifier of the credit note to retrieve line items from." + ], + pagination_ending_before: Annotated[ + str | None, "The object ID to paginate before, fetching the previous page in the list." + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response to be expanded. Allows detailed retrieval of related objects.", # noqa: E501 + ] = None, + max_objects_to_return: Annotated[ + int | None, + "Specify the number of credit note line items to return. Must be between 1 and 100, default is 10.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, + "An object ID used for pagination to fetch the next page of the list. This ID should be the last object from a previous set of data.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCreditNotesCreditNoteLines'."]: + """Fetch line items from a specified credit note. + + This tool retrieves line items from a given credit note, providing details and the option to access the full paginated list if needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/credit_notes/{credit_note}/lines".format( # noqa: UP032 + credit_note=credit_note_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": max_objects_to_return, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_credit_note( + context: ToolContext, + credit_note_id: Annotated[str, "The unique identifier of the credit note to be retrieved."], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response to be expanded for detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCreditNotesId'."]: + """Retrieve details of a specific credit note by ID. + + Use this tool to get information about a credit note using its unique identifier. Ideal for retrieving specific credit note details from the Stripe service.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/credit_notes/{id}".format(id=credit_note_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def search_stripe_customers( + context: ToolContext, + search_query_string: Annotated[ + str, + "The search query string used to search for customers. Refer to Stripe's Search Query Language documentation for syntax and supported fields.", # noqa: E501 + ], + expand_response_fields: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded. Provide the field names as strings.", # noqa: E501 + ] = None, + customer_result_limit: Annotated[ + int | None, + "Specifies the maximum number of customer records to return, between 1 and 100. Default is 10.", # noqa: E501 + ] = None, + pagination_cursor: Annotated[ + str | None, + "Cursor for paginating through results. Use 'next_page' from a previous response for subsequent results. Omit on the first call.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCustomersSearch'."]: + """Search and retrieve customer data from Stripe. + + Use this tool to search for customers that have been previously created in Stripe using their Search Query Language. Note that search may not reflect the most recent updates instantly and may experience delays during outages. This tool is not available for use in India.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/search", + params=remove_none_values({ + "expand": expand_response_fields, + "limit": customer_result_limit, + "page": pagination_cursor, + "query": search_query_string, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_stripe_customer( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier of the customer to be deleted. This ID is required and should match the customer in the Stripe system.", # noqa: E501 + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteCustomersCustomer'."]: + """Permanently delete a Stripe customer and cancel subscriptions. + + Use this tool to permanently delete a customer in Stripe. This action cannot be undone and will immediately cancel any active subscriptions associated with the customer.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}".format(customer=customer_id), # noqa: UP032 + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_customer_details( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier for the customer to retrieve details for. This is a string provided by Stripe.", # noqa: E501 + ], + expand_response_fields: Annotated[ + list[str] | None, "List of fields to expand in the response for detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCustomersCustomer'."]: + """Retrieve details of a specific customer. + + This tool retrieves information about a specific customer from Stripe's database using their unique customer ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}".format(customer=customer_id), # noqa: UP032 + params=remove_none_values({"expand": expand_response_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_balance_transactions( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier of the customer. This ID is used to retrieve balance transaction updates for that specific customer.", # noqa: E501 + ], + pagination_ending_before_cursor: Annotated[ + str | None, + "A cursor ID used to fetch the previous page of balance transactions in pagination.", + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "A list of fields in the response that should be expanded." + ] = None, + result_limit: Annotated[ + int | None, + "Sets the maximum number of balance transactions to retrieve, ranging from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "A cursor for pagination. Use the object ID from the last received page to fetch the next page.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerBalanceTransactions'." +]: + """Retrieve a customer's balance transaction updates. + + Fetches a list of transactions that have updated a customer's balance within Stripe.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/balance_transactions".format( # noqa: UP032 + customer=customer_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_before_cursor, + "expand": fields_to_expand, + "limit": result_limit, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_balance_transaction( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier for the customer. This is required to retrieve the specific balance transaction.", # noqa: E501 + ], + transaction_id: Annotated[ + str, "The unique identifier for the customer balance transaction to retrieve." + ], + fields_to_expand: Annotated[ + list[str] | None, "A list of fields to expand in the response for additional details." + ] = None, +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'GetCustomersCustomerBalanceTransactionsTransaction'.", +]: + """Retrieve a specific customer balance transaction from Stripe. + + This tool retrieves details about a specific balance transaction that impacted a customer's balance in Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/balance_transactions/{transaction}".format( # noqa: UP032 + customer=customer_id, transaction=transaction_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_bank_accounts( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier of the customer whose bank accounts you want to retrieve. This ID is required to access the bank account details associated with a specific customer.", # noqa: E501 + ], + pagination_ending_before: Annotated[ + str | None, + "An object ID used as a cursor to fetch the previous page of bank accounts in a paginated list.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "List of fields to expand in the response. Specify which aspects of the response should be expanded for detailed information.", # noqa: E501 + ] = None, + result_limit: Annotated[ + int | None, + "The maximum number of bank accounts to return, ranging from 1 to 100. Defaults to 10 if not specified.", # noqa: E501 + ] = None, + pagination_cursor_starting_after: Annotated[ + str | None, + "A string specifying the object ID to define your place in the list for pagination. Use this to fetch the next page of bank accounts.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerBankAccounts'." +]: + """Retrieve bank accounts for a specific customer. + + Call this tool to obtain a list of bank accounts associated with a particular customer. Useful for viewing more than the 10 most recent bank accounts when paginating.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/bank_accounts".format( # noqa: UP032 + customer=customer_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": result_limit, + "starting_after": pagination_cursor_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_bank_account_details( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier for the Stripe customer whose bank account details are being retrieved.", # noqa: E501 + ], + bank_account_id: Annotated[ + str, + "The unique identifier for the specific bank account associated with the Stripe customer.", + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to expand for detailed information." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerBankAccountsId'." +]: + """Retrieve details of a customer's bank account from Stripe. + + Use this tool to get specific details about a bank account associated with a Stripe customer. It helps when you need information beyond the most recent sources shown by default.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/bank_accounts/{id}".format( # noqa: UP032 + customer=customer_id, id=bank_account_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_cards( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier for the customer whose cards are to be retrieved. This ID is required to obtain the card list.", # noqa: E501 + ], + pagination_ending_before: Annotated[ + str | None, + "Object ID to define the cursor's place in pagination, used to fetch the previous page of the card list.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to be expanded for additional details." + ] = None, + card_retrieval_limit: Annotated[ + int | None, + "Specify the maximum number of cards to retrieve. The limit must be between 1 and 100, with a default of 10 if not specified.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "An object ID indicating the position to start fetching the next page of the card list. Use this for pagination.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerCards'."]: + """Retrieve a list of cards belonging to a customer. + + Use this tool to access a list of cards for a specific customer in the Stripe system. This is useful when more than the 10 most recent card sources are needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/cards".format(customer=customer_id), # noqa: UP032 + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": card_retrieval_limit, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_card_details( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier for the customer whose card details are being retrieved. This is required to specify which customer's card information you want to access.", # noqa: E501 + ], + card_id: Annotated[ + str, + "The unique identifier of the card to retrieve details for. This is specific to the card associated with the customer.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for more detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerCardsId'."]: + """Retrieve details about a specific card for a customer. + + This tool retrieves information about a specific card associated with a customer, allowing you to access details beyond the most recent 10 cards available directly on the customer object.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/cards/{id}".format( # noqa: UP032 + customer=customer_id, id=card_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_cash_balance( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier of the customer whose cash balance is being retrieved. This ID is used to specify which customer's balance should be returned.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "An array of strings specifying which fields in the response should be expanded for additional details.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerCashBalance'."]: + """Retrieve a customer's cash balance on Stripe. + + This tool retrieves the cash balance of a specific customer from Stripe. It should be called when there's a need to check the available balance for a customer account.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/cash_balance".format( # noqa: UP032 + customer=customer_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_cash_balance_transactions( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier of the customer whose cash balance transactions are to be retrieved. This ID is required for the API call.", # noqa: E501 + ], + pagination_cursor_ending_before: Annotated[ + str | None, + "A string representing the ID used for pagination to fetch the previous page of transactions.", # noqa: E501 + ] = None, + expand_fields: Annotated[ + list[str] | None, "List of fields to expand in the response for detailed information." + ] = None, + transaction_limit: Annotated[ + int | None, "The number of transactions to return, between 1 and 100. Default is 10." + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "Object ID cursor for pagination to continue listing transactions after a specified object.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerCashBalanceTransactions'." +]: + """Retrieve transactions modifying a customer's cash balance. + + This tool returns a list of transactions that have modified a customer's cash balance. Use this to track financial changes in a customer's account.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/cash_balance_transactions".format( # noqa: UP032 + customer=customer_id + ), + params=remove_none_values({ + "ending_before": pagination_cursor_ending_before, + "expand": expand_fields, + "limit": transaction_limit, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_cash_balance_transaction( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier of the customer whose cash balance transaction is to be retrieved.", + ], + transaction_id: Annotated[ + str, "The unique identifier for the cash balance transaction to be retrieved." + ], + expand_fields_in_response: Annotated[ + list[str] | None, "List of fields to expand in the response for additional details." + ] = None, +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'GetCustomersCustomerCashBalanceTransactionsTransaction'.", +]: + """Retrieve a cash balance transaction for a customer. + + This tool retrieves information about a specific cash balance transaction that affected a customer's cash balance in Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/cash_balance_transactions/{transaction}".format( # noqa: UP032 + customer=customer_id, transaction=transaction_id + ), + params=remove_none_values({"expand": expand_fields_in_response}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def remove_customer_discount( + context: ToolContext, + customer_id: Annotated[ + str, "The unique identifier for the customer whose discount is to be removed." + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteCustomersCustomerDiscount'."]: + """Remove the current discount applied to a customer. + + This tool removes the discount that is currently applied to a specific customer when called. It should be used when there is a need to update or clear a customer's discount information.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/discount".format( # noqa: UP032 + customer=customer_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_customer_discount( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier for the customer whose discount information you want to retrieve.", + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response to expand. Use to get additional related information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerDiscount'."]: + """Retrieve a customer's discount information. + + Use this tool to get information about a specific customer's discount in Stripe. It provides details on any discounts applied to a customer's account.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/discount".format( # noqa: UP032 + customer=customer_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_payment_methods( + context: ToolContext, + customer_id: Annotated[ + str, "Unique identifier for the customer whose payment methods are to be retrieved." + ], + enable_redisplay_setting: Annotated[ + str | None, + "Indicates if the payment method can be shown again in a checkout flow. Options: 'always', 'limited', 'unspecified'.", # noqa: E501 + ] = None, + pagination_ending_before_id: Annotated[ + str | None, "An object ID used to paginate backwards by defining the end of the list." + ] = None, + response_fields_to_expand: Annotated[ + list[str] | None, "A list of fields to expand in the response for detailed information." + ] = None, + max_payment_methods_returned: Annotated[ + int | None, + "Limit the number of payment methods returned. Accepts a value between 1 and 100, with a default of 10.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "Cursor for pagination that defines the start point in the list. Use the ID of the last object from the previous page.", # noqa: E501 + ] = None, + payment_method_type_filter: Annotated[ + str | None, + "Specify a payment method type to filter the list. Without filtering, all types are included. Choose from options like 'card', 'paypal', etc.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerPaymentMethods'." +]: + """Retrieve payment methods for a specific customer. + + This tool should be called to obtain a list of payment methods associated with a particular customer in Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/payment_methods".format( # noqa: UP032 + customer=customer_id + ), + params=remove_none_values({ + "allow_redisplay": enable_redisplay_setting, + "ending_before": pagination_ending_before_id, + "expand": response_fields_to_expand, + "limit": max_payment_methods_returned, + "starting_after": pagination_starting_after_cursor, + "type": payment_method_type_filter, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_payment_method( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier for the customer whose payment method information is being retrieved. This ID should be a string matching the customer's record in Stripe.", # noqa: E501 + ], + payment_method_id: Annotated[ + str, "The unique identifier for the payment method to retrieve for the customer." + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the payment method response that should be expanded for more details.", + ] = None, +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'GetCustomersCustomerPaymentMethodsPaymentMethod'.", +]: + """Retrieve a customer's specific payment method. + + This tool retrieves detailed information about a specific PaymentMethod linked to a given customer. It should be called when there is a need to access or verify details of a particular payment method for a customer in Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/payment_methods/{payment_method}".format( # noqa: UP032 + customer=customer_id, payment_method=payment_method_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def list_customer_payment_sources( + context: ToolContext, + customer_id: Annotated[ + str, "The unique identifier for the customer whose payment sources you want to retrieve." + ], + pagination_ending_before: Annotated[ + str | None, + "A cursor for pagination to fetch the previous page. Use an object ID from your list request.", # noqa: E501 + ] = None, + expand_response_fields: Annotated[ + list[str] | None, "List of fields in the response to be expanded for additional details." + ] = None, + max_payment_sources_to_return: Annotated[ + int | None, + "Set the maximum number of payment sources to return, from 1 to 100. Defaults to 10 if not specified.", # noqa: E501 + ] = None, + filter_by_object_type: Annotated[ + str | None, + "Filter payment sources based on a specific object type (e.g., card, bank_account).", + ] = None, + pagination_start_cursor: Annotated[ + str | None, + "An object ID (string) that specifies your place in the list to fetch the next page. Use it for pagination.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerSources'."]: + """Retrieve payment sources for a specified customer. + + Use this tool to list all payment sources for a given customer ID in Stripe.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/sources".format( # noqa: UP032 + customer=customer_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": expand_response_fields, + "limit": max_payment_sources_to_return, + "object": filter_by_object_type, + "starting_after": pagination_start_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_customer_payment_source( + context: ToolContext, + customer_id: Annotated[ + str, "The unique identifier for the customer whose payment source needs to be retrieved." + ], + source_id: Annotated[ + str, "The unique identifier of the payment source to retrieve for the specified customer." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields to expand in the response for detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerSourcesId'."]: + """Retrieve a specified source for a given customer. + + Use this tool to get details about a specific payment source associated with a customer in Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/sources/{id}".format( # noqa: UP032 + customer=customer_id, id=source_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_subscriptions( + context: ToolContext, + customer_id: Annotated[ + str, "The unique identifier for the customer whose subscriptions are being retrieved." + ], + pagination_ending_before_cursor: Annotated[ + str | None, + "An object ID to define your position in pagination. Use this cursor to fetch the previous page of subscriptions.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for additional details.", + ] = None, + subscription_limit: Annotated[ + int | None, + "The maximum number of subscription objects to return. Must be between 1 and 100, defaulting to 10.", # noqa: E501 + ] = None, + pagination_starting_after_object_id: Annotated[ + str | None, + "An object ID used as a cursor to fetch the next page of subscriptions in a paginated list.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerSubscriptions'." +]: + """Retrieve a customer's active subscriptions. + + Use this tool to obtain a list of active subscriptions for a specific customer. Useful for viewing subscription details beyond the default 10 most recent active subscriptions available on the customer object.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/subscriptions".format( # noqa: UP032 + customer=customer_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_before_cursor, + "expand": fields_to_expand, + "limit": subscription_limit, + "starting_after": pagination_starting_after_object_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_stripe_subscription_by_id( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier for the customer whose subscription is being retrieved. Provide this to specify which customer's subscription details to fetch.", # noqa: E501 + ], + subscription_id: Annotated[ + str, + "The identifier of the subscription to retrieve. Required to fetch the specific subscription details.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields to expand in the subscription response, allowing for additional details.", + ] = None, +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'GetCustomersCustomerSubscriptionsSubscriptionExposedId'.", +]: + """Retrieve a Stripe subscription by its ID. + + This tool retrieves a subscription from Stripe using the provided subscription ID for a specific customer. Use it when you need details about a specific subscription.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/subscriptions/{subscription_exposed_id}".format( # noqa: UP032 + customer=customer_id, subscription_exposed_id=subscription_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def remove_customer_subscription_discount( + context: ToolContext, + customer_id: Annotated[ + str, "The unique identifier for the customer whose subscription discount should be removed." + ], + subscription_id: Annotated[ + str, + "The unique identifier for the customer's subscription from which the discount will be removed.", # noqa: E501 + ], +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount'.", # noqa: E501 +]: + """Removes the discount from a customer's subscription. + + This tool is used to remove the currently applied discount on a specific customer's subscription.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/subscriptions/{subscription_exposed_id}/discount".format( # noqa: UP032 + customer=customer_id, subscription_exposed_id=subscription_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_subscription_discount( + context: ToolContext, + customer_id: Annotated[ + str, + "The unique identifier of the customer whose subscription discount details are being retrieved.", # noqa: E501 + ], + subscription_id: Annotated[ + str, "The unique identifier for the customer's subscription to retrieve discount details." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields to expand in the response for more detailed information." + ] = None, +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount'.", # noqa: E501 +]: + """Retrieve discount details for a customer's subscription. + + Use this tool to get the discount information associated with a specific subscription for a particular customer in Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/subscriptions/{subscription_exposed_id}/discount".format( # noqa: UP032 + customer=customer_id, subscription_exposed_id=subscription_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_tax_ids( + context: ToolContext, + customer_id: Annotated[ + str, + "The ID of the customer for whom the tax IDs are being retrieved. This is a required field.", # noqa: E501 + ], + pagination_ending_before: Annotated[ + str | None, + "Cursor object ID to fetch the previous page in a paginated list. Use the ID from the starting object of the current list.", # noqa: E501 + ] = None, + expand_fields: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded. Provide field names as strings.", + ] = None, + max_number_of_tax_ids: Annotated[ + int | None, + "Specify the maximum number of tax IDs to return. Accepts an integer between 1 and 100, with a default value of 10.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, + "An object ID from the current list to continue fetching the next page in pagination.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerTaxIds'."]: + """Retrieve a customer's tax IDs from their profile. + + Call this tool to get a list of all tax IDs associated with a specific customer. It gathers the tax identification numbers stored in a customer's account on Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/tax_ids".format( # noqa: UP032 + customer=customer_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": expand_fields, + "limit": max_number_of_tax_ids, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_customer_tax_id( + context: ToolContext, + customer_identifier: Annotated[ + str, + "The unique identifier for the customer whose tax ID will be deleted. This is a string provided by Stripe.", # noqa: E501 + ], + tax_id: Annotated[str, "The unique identifier of the tax ID to be deleted for the customer."], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteCustomersCustomerTaxIdsId'."]: + """Deletes a customer's existing tax ID. + + This tool is used to remove an existing tax ID associated with a specific customer in Stripe. Call this tool to manage customer tax ID records by deleting unnecessary or outdated entries.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/tax_ids/{id}".format( # noqa: UP032 + customer=customer_identifier, id=tax_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_customer_tax_id( + context: ToolContext, + customer_identifier: Annotated[ + str, "The unique identifier of the customer whose tax ID is to be retrieved." + ], + tax_id_identifier: Annotated[ + str, "The unique identifier of the customer's tax ID to be retrieved." + ], + expand_response_fields: Annotated[ + list[str] | None, + "A list of field names in the response that should be expanded for more detailed information.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetCustomersCustomerTaxIdsId'."]: + """Retrieve a specific customer's tax ID information. + + This tool retrieves the tax ID object for a specified customer using the given tax ID identifier.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/customers/{customer}/tax_ids/{id}".format( # noqa: UP032 + customer=customer_identifier, id=tax_id_identifier + ), + params=remove_none_values({"expand": expand_response_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_dispute_by_id( + context: ToolContext, + dispute_id: Annotated[ + str, + "The unique identifier of the dispute to be retrieved. This ID can be used to fetch detailed information about the specific dispute.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the dispute response that should be expanded for additional details.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetDisputesDispute'."]: + """Retrieve details of a dispute using its ID. + + This tool is used to fetch detailed information about a specific dispute by providing its ID. It should be called when detailed information about a particular dispute is needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/disputes/{dispute}".format(dispute=dispute_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_active_entitlements( + context: ToolContext, + customer_id: Annotated[ + str, "The unique identifier of the customer whose active entitlements are being retrieved." + ], + pagination_ending_before: Annotated[ + str | None, + "An object ID cursor to fetch the previous page of the list of active entitlements.", + ] = None, + expand_fields_in_response: Annotated[ + list[str] | None, + "An array of field names to be expanded in the response from Stripe. Use this to include additional details related to specific entities.", # noqa: E501 + ] = None, + max_number_of_entitlements: Annotated[ + int | None, + "Maximum number of active entitlements to retrieve for the customer, between 1 and 100. Default is 10.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, + "Use this to specify where to start the list pagination. Provide the object ID from where the list should continue.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetEntitlementsActiveEntitlements'." +]: + """Retrieve active entitlements for a customer from Stripe. + + This tool fetches a list of active entitlements for a specific customer using Stripe's API. It's used when you need to know what entitlements a customer currently has.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/entitlements/active_entitlements", + params=remove_none_values({ + "customer": customer_id, + "ending_before": pagination_ending_before, + "expand": expand_fields_in_response, + "limit": max_number_of_entitlements, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_active_entitlement( + context: ToolContext, + entitlement_id: Annotated[str, "The unique identifier of the active entitlement to retrieve."], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response that should be expanded for additional details.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetEntitlementsActiveEntitlementsId'." +]: + """Retrieve details of an active entitlement by ID. + + This tool retrieves information about an active entitlement using its ID. It should be used to fetch details related to a specific active entitlement in Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/entitlements/active_entitlements/{id}".format( # noqa: UP032 + id=entitlement_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_stripe_entitlement_features( + context: ToolContext, + pagination_ending_before: Annotated[ + str | None, + "Cursor for pagination defining the position in list. Use to fetch previous page by providing object ID.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to be expanded." + ] = None, + object_return_limit: Annotated[ + int | None, + "Specify the number of features to return, ranging between 1 and 100. Defaults to 10 if not provided.", # noqa: E501 + ] = None, + filter_by_lookup_key: Annotated[ + str | None, "Filter results to only include features with the specified lookup key." + ] = None, + pagination_starting_after: Annotated[ + str | None, + "A cursor for pagination. Use the object ID from the last item of your current list to fetch the next page.", # noqa: E501 + ] = None, + include_archived_features: Annotated[ + bool | None, "Set to true to include only archived features, or false to exclude them." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetEntitlementsFeatures'."]: + """Retrieve a list of entitlement features from Stripe. + + Call this tool to obtain a list of features related to entitlements from Stripe's API.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/entitlements/features", + params=remove_none_values({ + "archived": include_archived_features, + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": object_return_limit, + "lookup_key": filter_by_lookup_key, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_feature_details( + context: ToolContext, + feature_id: Annotated[str, "The unique identifier of the feature to retrieve details for."], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response to be expanded for more detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetEntitlementsFeaturesId'."]: + """Fetches details for a specific feature by ID. + + Use this tool to retrieve detailed information about a specific feature using its ID within the Stripe system.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/entitlements/features/{id}".format(id=feature_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_stripe_event_details( + context: ToolContext, + event_identifier: Annotated[ + str, + "The unique identifier of the event to retrieve details for. Typically received via a webhook and must have been created in the last 30 days.", # noqa: E501 + ], + fields_to_expand_in_response: Annotated[ + list[str] | None, + "List of fields to be expanded in the response. Provide field names as strings.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetEventsId'."]: + """Retrieve details of a Stripe event using its unique ID. + + Use this tool to get information about a Stripe event created in the last 30 days. You need to provide the unique event identifier, typically received through a webhook.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/events/{id}".format(id=event_identifier), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand_in_response}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_exchange_rates( + context: ToolContext, + pagination_ending_before_currency: Annotated[ + str | None, + "The currency code to define your position for fetching the previous page in the exchange rate list.", # noqa: E501 + ] = None, + response_fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to be expanded for detailed information." + ] = None, + result_limit: Annotated[ + int | None, + "Set the maximum number of exchange rate objects to return, ranging from 1 up to the maximum number supported by Stripe.", # noqa: E501 + ] = None, + pagination_starting_currency: Annotated[ + str | None, + "The currency code to define the starting point in the paginated list of exchange rates.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetExchangeRates'."]: + """Retrieve Stripe's supported foreign currency exchange rates. + + Fetches current exchange rates for foreign currencies supported by Stripe. Note: This API is deprecated; consider using the FX Quotes API instead.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/exchange_rates", + params=remove_none_values({ + "ending_before": pagination_ending_before_currency, + "expand": response_fields_to_expand, + "limit": result_limit, + "starting_after": pagination_starting_currency, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_deprecated_exchange_rates( + context: ToolContext, + currency_rate_id: Annotated[ + str, + "The currency code (e.g., 'USD') to retrieve exchange rates for. Use the deprecated Exchange Rate API responsibly.", # noqa: E501 + ], + expand_fields: Annotated[ + list[str] | None, + "List of fields to be expanded in the response. Each field is specified as a string.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetExchangeRatesRateId'."]: + """Retrieves deprecated exchange rates for a given currency. + + This tool fetches exchange rates from one currency to all supported currencies using the deprecated Exchange Rate API from Stripe. Use this only if the newer FX Quotes API is not suitable for your needs.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/exchange_rates/{rate_id}".format( # noqa: UP032 + rate_id=currency_rate_id + ), + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_file_link( + context: ToolContext, + file_link_id: Annotated[ + str, + "The ID of the file link to retrieve details for. This is used to fetch the specific file link from Stripe.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "An array of strings specifying which fields in the response should be expanded for additional details.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetFileLinksLink'."]: + """Fetches a file link using its ID. + + Use this tool to retrieve information about a specific file link by providing its ID. Ideal for accessing details about file links stored in Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/file_links/{link}".format(link=file_link_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_file_details( + context: ToolContext, + file_id: Annotated[ + str, "The unique identifier for the file object whose details you want to retrieve." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for additional details.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetFilesFile'."]: + """Retrieve details of an existing file object from Stripe. + + Fetches the details of a file object using its unique file ID on Stripe. Useful for accessing metadata and information about uploaded files.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/files/{file}".format(file=file_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_financial_connections_account_details( + context: ToolContext, + financial_account_identifier: Annotated[ + str, "The unique identifier for the Financial Connections Account to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to be expanded for additional details." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetFinancialConnectionsAccountsAccount'." +]: + """Retrieve details of a Financial Connections Account. + + Call this tool to get detailed information about a specific Financial Connections Account using the account identifier.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/financial_connections/accounts/{account}".format( # noqa: UP032 + account=financial_account_identifier + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_financial_account_owners( + context: ToolContext, + ownership_object_id: Annotated[ + str, "The ID of the ownership object from which to fetch the account owners." + ], + account_id: Annotated[ + str, "The unique identifier of the financial account to retrieve its owners." + ], + pagination_cursor_ending_before: Annotated[ + str | None, + "An ID to fetch the previous page in pagination, defining your place in the list.", + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of field names in the response to be expanded, specified as an array of strings.", + ] = None, + object_limit: Annotated[ + int | None, + "Specifies the maximum number of account owners to return, ranging from 1 to 100, with a default of 10.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "A cursor indicating the starting point for pagination in a list. Use the object ID from the previous response to fetch the next page.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetFinancialConnectionsAccountsAccountOwners'." +]: + """Retrieve owners of a specified financial account. + + This tool is used to list all the owners of a given financial account. It is essential when you need to verify or display the ownership details of an account.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/financial_connections/accounts/{account}/owners".format( # noqa: UP032 + account=account_id + ), + params=remove_none_values({ + "ending_before": pagination_cursor_ending_before, + "expand": fields_to_expand, + "limit": object_limit, + "ownership": ownership_object_id, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_financial_connections_session( + context: ToolContext, + financial_connection_session_id: Annotated[ + str, "The unique identifier of the Financial Connections Session to retrieve." + ], + fields_to_expand: Annotated[ + list[str] | None, + "An array of strings specifying which fields in the response should be expanded for additional details.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetFinancialConnectionsSessionsSession'." +]: + """Retrieve details of a Financial Connections Session. + + Use this tool to obtain detailed information about a specific Financial Connections Session from Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/financial_connections/sessions/{session}".format( # noqa: UP032 + session=financial_connection_session_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_financial_transaction_details( + context: ToolContext, + transaction_id: Annotated[ + str, "The unique identifier of the financial transaction to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields to expand in the response to show additional details." + ] = None, +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'GetFinancialConnectionsTransactionsTransaction'.", +]: + """Retrieve details of a specific financial transaction. + + This tool fetches details for a specific Financial Connections transaction, useful for accessing transaction information.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/financial_connections/transactions/{transaction}".format( # noqa: UP032 + transaction=transaction_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_forwarding_request( + context: ToolContext, + forwarding_request_id: Annotated[ + str, "The unique identifier for the ForwardingRequest object to be retrieved." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields to expand in the response for detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetForwardingRequestsId'."]: + """Fetch a specific ForwardingRequest object using its ID. + + Use this tool to retrieve information about a ForwardingRequest by providing its unique ID. Ideal for accessing details of a specific forwarding request in the Stripe service.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/forwarding/requests/{id}".format( # noqa: UP032 + id=forwarding_request_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_stripe_verification_report( + context: ToolContext, + verification_report_id: Annotated[ + str, "The unique identifier of the verification report to fetch from Stripe." + ], + fields_to_expand: Annotated[ + list[str] | None, "A list of fields in the response to expand for additional detail." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetIdentityVerificationReportsReport'." +]: + """Retrieve details of an existing Stripe verification report. + + Use this tool to fetch detailed information of a specific identity verification report from Stripe. This is useful for reviewing identity verification results or audit purposes.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/identity/verification_reports/{report}".format( # noqa: UP032 + report=verification_report_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_verification_session_details( + context: ToolContext, + verification_session_id: Annotated[ + str, "The unique identifier of the Stripe VerificationSession to be retrieved." + ], + expand_response_fields: Annotated[ + list[str] | None, + "A list of fields in the response to be expanded for additional details. Use this to customize the verbosity of the response.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetIdentityVerificationSessionsSession'." +]: + """Retrieve details of a Stripe verification session. + + Use this tool to get information about a specific Stripe VerificationSession. It's helpful when the session status is 'requires_input' to obtain a valid client_secret or URL for re-submission.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/identity/verification_sessions/{session}".format( # noqa: UP032 + session=verification_session_id + ), + params=remove_none_values({"expand": expand_response_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_invoice_payment( + context: ToolContext, + invoice_payment_id: Annotated[ + str, + "The ID of the invoice payment to retrieve details for. This ID is required to fetch the payment information.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields to be expanded in the response. Each field should be specified as a string.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetInvoicePaymentsInvoicePayment'." +]: + """Fetch the details of a specific invoice payment by ID. + + Use this tool to retrieve the payment details for a given invoice ID from the Stripe service.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/invoice_payments/{invoice_payment}".format( # noqa: UP032 + invoice_payment=invoice_payment_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_invoice_rendering_templates( + context: ToolContext, + pagination_ending_before: Annotated[ + str | None, + "A pagination cursor indicating the object ID to end before when listing templates. Use this to fetch the previous page.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for more detailed information.", + ] = None, + result_limit: Annotated[ + int | None, + "Specify the maximum number of invoice rendering templates to return, ranging from 1 to 100. Defaults to 10.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, "Object ID defining your place in the list to fetch the next page." + ] = None, + template_status: Annotated[ + str | None, "Filter templates by their status: 'active' or 'archived'." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetInvoiceRenderingTemplates'."]: + """Retrieve all invoice rendering templates by creation date. + + This tool fetches a list of all invoice rendering templates, organized by creation date with the latest ones first. Use it to access and manage invoice templates efficiently.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/invoice_rendering_templates", + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": result_limit, + "starting_after": pagination_starting_after, + "status": template_status, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_invoice_template( + context: ToolContext, + invoice_template_id: Annotated[ + str, "The unique identifier for the invoice rendering template you want to retrieve." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for detailed information.", + ] = None, + template_version: Annotated[ + int | None, + "Specify the version number of the invoice rendering template to retrieve. If omitted, the latest version is returned.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetInvoiceRenderingTemplatesTemplate'." +]: + """Fetch an invoice rendering template by ID. + + Use this tool to retrieve details of a specific invoice rendering template from Stripe. By default, it returns the latest version of the template, but you can specify a version to retrieve an older version.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/invoice_rendering_templates/{template}".format( # noqa: UP032 + template=invoice_template_id + ), + params=remove_none_values({"expand": fields_to_expand, "version": template_version}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_invoice_item( + context: ToolContext, + invoice_item_id: Annotated[ + str, + "The unique identifier of the invoice item to be deleted. It must be either unattached or part of a draft invoice.", # noqa: E501 + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteInvoiceitemsInvoiceitem'."]: + """Delete an invoice item from a draft or unattached invoice. + + Use this tool to delete an invoice item that isn't attached to a final invoice or is part of a draft invoice.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/invoiceitems/{invoiceitem}".format( # noqa: UP032 + invoiceitem=invoice_item_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_invoice_item_details( + context: ToolContext, + invoice_item_id: Annotated[str, "The ID of the invoice item to retrieve details for."], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to expand for more detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetInvoiceitemsInvoiceitem'."]: + """Retrieve details of a specific invoice item by ID.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/invoiceitems/{invoiceitem}".format( # noqa: UP032 + invoiceitem=invoice_item_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def search_stripe_invoices( + context: ToolContext, + search_query_string: Annotated[ + str, + "The search query string using Stripe's Search Query Language. Refer to Stripe's documentation for syntax and supported fields.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response to be expanded for additional details. Provide field names as strings.", # noqa: E501 + ] = None, + result_limit: Annotated[ + int | None, + "Defines the maximum number of invoice records to return, ranging from 1 to 100. Defaults to 10 if not specified.", # noqa: E501 + ] = None, + pagination_cursor: Annotated[ + str | None, + "A cursor for pagination to retrieve subsequent pages. Use the next_page value from a previous response; exclude for the first call.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetInvoicesSearch'."]: + """Search for previously created Stripe invoices. + + This tool searches for invoices you've previously created using Stripe's Search Query Language. It should not be used in read-after-write flows needing strict consistency. Data is typically searchable within a minute but could take up to an hour during outages. Not available for merchants in India.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/invoices/search", + params=remove_none_values({ + "expand": fields_to_expand, + "limit": result_limit, + "page": pagination_cursor, + "query": search_query_string, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_invoice_draft( + context: ToolContext, + invoice_id: Annotated[ + str, + "The unique identifier of the draft invoice to be permanently deleted. Cannot be used on finalized invoices or those associated with subscriptions.", # noqa: E501 + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteInvoicesInvoice'."]: + """Permanently delete a draft invoice. + + Use this tool to permanently delete a draft invoice that is not finalized or associated with a subscription. Once deleted, this action cannot be undone.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/invoices/{invoice}".format(invoice=invoice_id), # noqa: UP032 + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_invoice_by_id( + context: ToolContext, + invoice_id: Annotated[str, "The unique identifier for the invoice to retrieve."], + expand_fields_in_response: Annotated[ + list[str] | None, + "A list of fields in the invoice response that should be expanded for more detailed information.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetInvoicesInvoice'."]: + """Retrieve details of an invoice using its ID. + + This tool should be called to obtain information about a specific invoice by providing its ID. It retrieves details associated with the given invoice ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/invoices/{invoice}".format(invoice=invoice_id), # noqa: UP032 + params=remove_none_values({"expand": expand_fields_in_response}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_invoice_line_items( + context: ToolContext, + invoice_id: Annotated[ + str, + "The unique identifier for the invoice to retrieve line items from. Provide this ID to specify which invoice's line items you want to access.", # noqa: E501 + ], + pagination_ending_before_cursor: Annotated[ + str | None, "A cursor ID to fetch the previous page of line items in the invoice list." + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "List the fields in the invoice line items response that should be expanded for more details.", # noqa: E501 + ] = None, + max_line_items_to_return: Annotated[ + int | None, + "The maximum number of line items to return. It can range from 1 to 100, with a default of 10.", # noqa: E501 + ] = None, + pagination_start_after: Annotated[ + str | None, + "An object ID defining your place in the list for pagination, used to fetch the next page of invoice line items.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetInvoicesInvoiceLines'."]: + """Fetch line items from a specific invoice. + + Use this tool to get the line items and their total count from a specific invoice. This is useful when you need detailed information about the charges in an invoice.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/invoices/{invoice}/lines".format(invoice=invoice_id), # noqa: UP032 + params=remove_none_values({ + "ending_before": pagination_ending_before_cursor, + "expand": fields_to_expand, + "limit": max_line_items_to_return, + "starting_after": pagination_start_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_issuing_authorization( + context: ToolContext, + authorization_id: Annotated[ + str, "The unique identifier for the Issuing Authorization object to retrieve." + ], + expand_fields: Annotated[ + list[str] | None, + "List of strings specifying which fields in the response should be expanded.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetIssuingAuthorizationsAuthorization'." +]: + """Fetches details of an Issuing Authorization object. + + Use this tool to retrieve a specific Issuing Authorization object from Stripe by providing the authorization ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/issuing/authorizations/{authorization}".format( # noqa: UP032 + authorization=authorization_id + ), + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_issuing_cardholder( + context: ToolContext, + cardholder_id: Annotated[ + str, "The unique identifier of the cardholder to retrieve details for, in string format." + ], + fields_to_expand: Annotated[ + list[str] | None, + "An array of field names to expand in the response for additional details.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetIssuingCardholdersCardholder'."]: + """Retrieve details of an issuing cardholder. + + This tool retrieves the details of an issuing cardholder from the Stripe API. It should be called when you need specific information about a cardholder associated with a Stripe issuing account.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/issuing/cardholders/{cardholder}".format( # noqa: UP032 + cardholder=cardholder_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_issuing_card_details( + context: ToolContext, + card_id: Annotated[ + str, + "The unique identifier of the issuing card you want to retrieve details for. This is required.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, "An array of fields to expand in the response for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetIssuingCardsCard'."]: + """Retrieve details of a specific issuing card. + + Use this tool to get detailed information about an Issuing Card object from Stripe. It should be called when you need to fetch the details of a specific card.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/issuing/cards/{card}".format(card=card_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_issuing_dispute( + context: ToolContext, + dispute_id: Annotated[str, "The unique identifier of the Issuing Dispute to be retrieved."], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the dispute response that should be expanded for more detailed information.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetIssuingDisputesDispute'."]: + """Fetch the details of a specific issuing dispute. + + Use this tool to retrieve an Issuing Dispute object from Stripe by providing the dispute identifier.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/issuing/disputes/{dispute}".format(dispute=dispute_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_personalization_design( + context: ToolContext, + personalization_design_id: Annotated[ + str, + "The ID of the personalization design to retrieve. This is used to specify which design object's details are desired.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to be expanded for additional details." + ] = None, +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'GetIssuingPersonalizationDesignsPersonalizationDesign'.", +]: + """Retrieve a personalization design object by ID. + + Use this tool to get the details of a specific personalization design by providing its ID. Ideal for retrieving information related to issuing personalization designs.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/issuing/personalization_designs/{personalization_design}".format( # noqa: UP032 + personalization_design=personalization_design_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_latest_physical_bundles( + context: ToolContext, + pagination_end_before_id: Annotated[ + str | None, "An object ID used for pagination to fetch the previous page of the list." + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "List of response fields to expand for more detailed information." + ] = None, + number_of_bundles_limit: Annotated[ + int | None, + "Specify the maximum number of physical bundle objects to return, ranging from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + pagination_starting_after_id: Annotated[ + str | None, + "Provide the object ID to continue pagination from the next item after it in the list.", + ] = None, + filter_status: Annotated[ + str | None, + "Filter physical bundles by status. Options include 'active', 'inactive', or 'review'.", + ] = None, + filter_by_bundle_type: Annotated[ + str | None, + "Specify the type of physical bundles to return. Options are 'custom' or 'standard'.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetIssuingPhysicalBundles'."]: + """Retrieve the latest physical bundle objects from Stripe. + + This tool fetches a list of physical bundle objects from Stripe, sorted by creation date with the newest first. It's useful for obtaining the most recent physical bundles.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/issuing/physical_bundles", + params=remove_none_values({ + "ending_before": pagination_end_before_id, + "expand": fields_to_expand, + "limit": number_of_bundles_limit, + "starting_after": pagination_starting_after_id, + "status": filter_status, + "type": filter_by_bundle_type, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_physical_bundle( + context: ToolContext, + physical_bundle_id: Annotated[str, "The unique identifier of the physical bundle to retrieve."], + fields_to_expand: Annotated[ + list[str] | None, + "Comma-separated list of fields in the response to be expanded for additional details.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetIssuingPhysicalBundlesPhysicalBundle'." +]: + """Retrieve details of a physical bundle. + + Use this tool to get information about a specific physical bundle in the Stripe issuing service. Useful for accessing current data about a particular bundle.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/issuing/physical_bundles/{physical_bundle}".format( # noqa: UP032 + physical_bundle=physical_bundle_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_issuing_settlement( + context: ToolContext, + settlement_id: Annotated[ + str, "The unique identifier of the Issuing Settlement to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields to be expanded in the response for detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetIssuingSettlementsSettlement'."]: + """Fetch details of an Issuing Settlement object. + + Use this tool to retrieve information about a specific Issuing Settlement in the Stripe platform. It is useful for getting the details of settlements related to issuing transactions.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/issuing/settlements/{settlement}".format( # noqa: UP032 + settlement=settlement_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_issuing_token_info( + context: ToolContext, + issuing_token_id: Annotated[ + str, + "The unique identifier of the Issuing Token to retrieve information for. This is required to specify which token's details are needed from Stripe.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response to be expanded for detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetIssuingTokensToken'."]: + """Retrieve details of an Issuing Token. + + Use this tool to obtain information about a specific Issuing Token from Stripe.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/issuing/tokens/{token}".format(token=issuing_token_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_issuing_transaction( + context: ToolContext, + transaction_id: Annotated[ + str, "The unique identifier for the issuing transaction to be retrieved." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for more detailed information.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetIssuingTransactionsTransaction'." +]: + """Fetch details of an issuing transaction by ID. + + This tool retrieves information about a specific issuing transaction using its unique ID. It is used to gather details on transactions processed through Stripe's issuing services.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/issuing/transactions/{transaction}".format( # noqa: UP032 + transaction=transaction_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_financial_session_details( + context: ToolContext, + session_identifier: Annotated[ + str, "The unique identifier for the financial connection session to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, + "An array of fields in the response that should be expanded to include more details.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetLinkAccountSessionsSession'."]: + """Retrieve details of a financial connection session. + + Use this tool to get information about a specific financial connection session through Stripe. It's useful for accessing session details based on a session identifier.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/link_account_sessions/{session}".format( # noqa: UP032 + session=session_identifier + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_linked_account_details( + context: ToolContext, + account_id: Annotated[ + str, "The unique identifier for the financial connections account to retrieve details for." + ], + expand_fields: Annotated[ + list[str] | None, + "List of fields in the response to be expanded for more detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetLinkedAccountsAccount'."]: + """Retrieve details of a financial connections account. + + Use this tool to get detailed information about a specific financial connections account linked with Stripe. It should be called when account information is needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/linked_accounts/{account}".format(account=account_id), # noqa: UP032 + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_linked_account_owners( + context: ToolContext, + ownership_object_id: Annotated[ + str, + "The unique ID of the ownership object to retrieve owners from. This is required to specify which account's owners to list.", # noqa: E501 + ], + linked_account_id: Annotated[ + str, + "The unique identifier of the account to retrieve owners for. This is required to specify which account's owners you want to list.", # noqa: E501 + ], + pagination_ending_before: Annotated[ + str | None, + "Cursor ID for pagination to fetch the previous page. Use the object ID from the start of the current list result.", # noqa: E501 + ] = None, + expanded_fields: Annotated[ + list[str] | None, + "List of fields to be expanded in the response. Specify field names to include more data in the response.", # noqa: E501 + ] = None, + number_of_owners_to_return: Annotated[ + int | None, + "Specify the number of account owners to retrieve, ranging from 1 to 100. Default is 10.", + ] = None, + pagination_starting_after: Annotated[ + str | None, + "Cursor for pagination to specify the starting point for the next page of results using an object ID.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetLinkedAccountsAccountOwners'."]: + """Retrieve owners of a specific linked account. + + Use this tool to list all the owners associated with a specific account. This can be helpful for verifying account ownership or managing account permissions.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/linked_accounts/{account}/owners".format( # noqa: UP032 + account=linked_account_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": expanded_fields, + "limit": number_of_owners_to_return, + "ownership": ownership_object_id, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_mandate_info( + context: ToolContext, + mandate_id: Annotated[ + str, + "The unique identifier for the mandate to retrieve details for. It should be a valid string representing the mandate ID in Stripe.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields to expand in the response for more detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetMandatesMandate'."]: + """Retrieve detailed information of a mandate. + + Fetches details about a Mandate object from Stripe when provided with a specific mandate ID.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/mandates/{mandate}".format(mandate=mandate_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def search_stripe_payment_intents( + context: ToolContext, + search_query_string: Annotated[ + str, + "The search query to find specific PaymentIntents using Stripe's Search Query Language. Refer to the documentation for query syntax and fields.", # noqa: E501 + ], + expand_fields: Annotated[ + list[str] | None, + "A list of specific fields in the response that should be expanded. Use field names as strings.", # noqa: E501 + ] = None, + result_limit: Annotated[ + int | None, + "Number of PaymentIntent objects to return, ranging from 1 to 100, with a default of 10.", + ] = None, + pagination_cursor: Annotated[ + str | None, + "Cursor for pagination. Use the 'next_page' value from a previous response to request more results.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPaymentIntentsSearch'."]: + """Search previously created Stripe PaymentIntents. + + Use this tool to search for PaymentIntents that you have previously created on Stripe using their Search Query Language. Note that search results might be slightly delayed, so avoid using this tool in scenarios needing strict consistency immediately after data changes.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payment_intents/search", + params=remove_none_values({ + "expand": expand_fields, + "limit": result_limit, + "page": pagination_cursor, + "query": search_query_string, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_payment_intent_details( + context: ToolContext, + payment_intent_id: Annotated[ + str, + "The unique identifier of the PaymentIntent to retrieve details for. Required to specify which PaymentIntent you are interested in.", # noqa: E501 + ], + payment_intent_client_secret: Annotated[ + str | None, + "The client secret for the PaymentIntent, required when using a publishable key to retrieve the source.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "A list of fields to expand in the response for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPaymentIntentsIntent'."]: + """Retrieve details of a specific PaymentIntent using its ID. + + Use this tool to get information about a PaymentIntent that has already been created. Suitable for retrieving details client-side with a publishable key.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payment_intents/{intent}".format( # noqa: UP032 + intent=payment_intent_id + ), + params=remove_none_values({ + "client_secret": payment_intent_client_secret, + "expand": fields_to_expand, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_stripe_payment_links( + context: ToolContext, + pagination_ending_before: Annotated[ + str | None, + "An object ID cursor to define the starting point in the list for pagination, retrieving the previous page.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response that should be expanded. Use field names as strings.", + ] = None, + object_return_limit: Annotated[ + int | None, + "Specifies the maximum number of payment link objects to retrieve, ranging from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "The object ID to define your place in the list for pagination. Use it to fetch the next page of payment links.", # noqa: E501 + ] = None, + include_active_payment_links: Annotated[ + bool | None, + "Return active payment links only. Set to `false` to list inactive payment links.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPaymentLinks'."]: + """Retrieve a list of Stripe payment links. + + This tool calls the Stripe API to fetch a list of all your payment links. It should be used when you need to access or display your payment links managed through Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payment_links", + params=remove_none_values({ + "active": include_active_payment_links, + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": object_return_limit, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_payment_link_info( + context: ToolContext, + payment_link_id: Annotated[ + str, "The unique identifier of the payment link to retrieve details for." + ], + expand_fields: Annotated[ + list[str] | None, "List of fields to expand in the response for detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPaymentLinksPaymentLink'."]: + """Retrieve detailed information about a payment link. + + Use this tool to get information about a specific payment link from Stripe. It's useful for checking the status or details of payment links.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payment_links/{payment_link}".format( # noqa: UP032 + payment_link=payment_link_id + ), + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_payment_link_line_items( + context: ToolContext, + payment_link_id: Annotated[ + str, "The unique identifier for the payment link whose line items need to be retrieved." + ], + pagination_ending_before: Annotated[ + str | None, + "An object ID that serves as a pagination cursor to fetch the previous page of the list.", + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for more detailed information.", + ] = None, + item_limit: Annotated[ + int | None, + "Specifies the maximum number of line items to retrieve, ranging from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, + "An object ID used as a cursor to fetch the next page of the list when paginating. Use the ID of the last object from the previous response.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetPaymentLinksPaymentLinkLineItems'." +]: + """Retrieve the line items for a specific payment link. + + Use this tool to get the line items associated with a specific payment link from Stripe. It provides the initial set of line items and a URL for the full list if needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payment_links/{payment_link}/line_items".format( # noqa: UP032 + payment_link=payment_link_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": item_limit, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def list_payment_method_configurations( + context: ToolContext, + filter_by_connect_application: Annotated[ + str | None, + "Specify the Connect application ID to filter the payment method configurations by.", + ] = None, + pagination_ending_before_id: Annotated[ + str | None, + "Object ID that defines your place in the list for pagination, used to fetch the previous page.", # noqa: E501 + ] = None, + expand_fields: Annotated[ + list[str] | None, + "List of fields in the response that should be expanded. Provide field names as strings in an array.", # noqa: E501 + ] = None, + max_results: Annotated[ + int | None, + "Specify the maximum number of payment method configurations to be returned, ranging from 1 to 100. Defaults to 10 if not specified.", # noqa: E501 + ] = None, + pagination_starting_after_id: Annotated[ + str | None, + "The object ID to define your place in the list for pagination, used to fetch the next page of results.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPaymentMethodConfigurations'."]: + """Retrieve available payment method configurations from Stripe. + + Use this tool to get a list of payment method configurations from the Stripe API. It should be called when you need to access the available configurations for payments.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payment_method_configurations", + params=remove_none_values({ + "application": filter_by_connect_application, + "ending_before": pagination_ending_before_id, + "expand": expand_fields, + "limit": max_results, + "starting_after": pagination_starting_after_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_payment_method_configuration( + context: ToolContext, + payment_method_configuration_id: Annotated[ + str, "The unique identifier for the payment method configuration to retrieve." + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response to be expanded for more detailed information.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetPaymentMethodConfigurationsConfiguration'." +]: + """Retrieve a specific payment method configuration. + + This tool is used to get details about a specific payment method configuration from Stripe.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payment_method_configurations/{configuration}".format( # noqa: UP032 + configuration=payment_method_configuration_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def list_payment_method_domains( + context: ToolContext, + domain_name: Annotated[ + str | None, + "Specify the domain name for the payment method domain object you want to represent.", + ] = None, + pagination_cursor_ending_before: Annotated[ + str | None, + "A cursor ID to fetch the previous page of the payment method domain list in pagination.", + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to expand for more detailed information." + ] = None, + limit_number_of_returned_objects: Annotated[ + int | None, + "Specify the number of payment method domains to return, ranging from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + pagination_cursor_starting_after: Annotated[ + str | None, "An object ID cursor to fetch the next page in the list." + ] = None, + include_enabled_domains: Annotated[ + bool | None, + "Include only enabled payment method domains in the results. If false, all domains will be included regardless of status.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPaymentMethodDomains'."]: + """Retrieve details of existing payment method domains. + + Use this tool to get a list of all payment method domains and their associated details. This can be helpful for managing or reviewing your payment configurations.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payment_method_domains", + params=remove_none_values({ + "domain_name": domain_name, + "enabled": include_enabled_domains, + "ending_before": pagination_cursor_ending_before, + "expand": fields_to_expand, + "limit": limit_number_of_returned_objects, + "starting_after": pagination_cursor_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_payment_method_domain_details( + context: ToolContext, + payment_method_domain_id: Annotated[ + str, "The unique identifier of the payment method domain to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for additional details.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetPaymentMethodDomainsPaymentMethodDomain'." +]: + """Retrieve details of a specific payment method domain. + + This tool fetches information about a specified payment method domain. It should be called when details about an existing payment method domain are needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payment_method_domains/{payment_method_domain}".format( # noqa: UP032 + payment_method_domain=payment_method_domain_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_treasury_payment_methods( + context: ToolContext, + customer_id: Annotated[ + str | None, + "The ID of the customer whose PaymentMethods will be retrieved for Treasury flows. This is used to filter the payment methods specific to a customer.", # noqa: E501 + ] = None, + pagination_ending_before: Annotated[ + str | None, + "An object ID to fetch the previous page of the list in pagination. Use to navigate to earlier records.", # noqa: E501 + ] = None, + expand_response_fields: Annotated[ + list[str] | None, + "Specifies which fields in the payment methods response should be expanded for more details.", # noqa: E501 + ] = None, + result_limit: Annotated[ + int | None, + "The maximum number of payment methods to return, between 1 and 100. Default is 10.", + ] = None, + starting_after_payment_method: Annotated[ + str | None, + "An object ID cursor to paginate through the list of payment methods. Use it to fetch the next page after a given object.", # noqa: E501 + ] = None, + filter_payment_method_type: Annotated[ + str | None, + "Filter the list based on the payment method type. Use specific payment method values like 'card', 'paypal', etc., if expecting only one type.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPaymentMethods'."]: + """Retrieve a list of PaymentMethods for Treasury flows. + + This tool retrieves a list of PaymentMethods specifically for Treasury flows. It should be used when you want to access payment methods for these specific purposes, rather than customer-attached payment methods.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payment_methods", + params=remove_none_values({ + "customer": customer_id, + "ending_before": pagination_ending_before, + "expand": expand_response_fields, + "limit": result_limit, + "starting_after": starting_after_payment_method, + "type": filter_payment_method_type, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_stripe_payment_method( + context: ToolContext, + payment_method_id: Annotated[ + str, + "The unique identifier of the Stripe PaymentMethod to be retrieved. Required for fetching details of a specific payment method.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, "A list of fields in the response to be expanded for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPaymentMethodsPaymentMethod'."]: + """Retrieve details of a specific Stripe payment method. + + Use this tool to get information about a PaymentMethod object attached to a Stripe account. For payment methods attached to a customer, use the appropriate endpoint.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payment_methods/{payment_method}".format( # noqa: UP032 + payment_method=payment_method_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_stripe_payout_details( + context: ToolContext, + payout_id: Annotated[str, "The unique ID of the payout to retrieve details for from Stripe."], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the payout response to expand for more details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPayoutsPayout'."]: + """Retrieve details of a specific Stripe payout. + + This tool retrieves information about an existing payout from Stripe using the unique payout ID. It should be used when you need detailed information about a specific payout.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/payouts/{payout}".format(payout=payout_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_stripe_plan( + context: ToolContext, + plan_id: Annotated[str, "The unique identifier of the plan to be deleted in Stripe."], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeletePlansPlan'."]: + """Delete a specified plan from Stripe. + + Use this tool to delete a plan in Stripe, preventing new subscriptions to that plan while keeping existing subscribers unaffected.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/plans/{plan}".format(plan=plan_id), # noqa: UP032 + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_stripe_plan( + context: ToolContext, + stripe_plan_id: Annotated[ + str, + "The unique identifier for the Stripe plan to retrieve details about. This is required to obtain a specific plan's information.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields to expand in the response for more detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPlansPlan'."]: + """Retrieve details of a specific Stripe plan by ID. + + Use this tool to get detailed information about a Stripe plan using its ID. It retrieves the plan's data directly from the Stripe service.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/plans/{plan}".format(plan=stripe_plan_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def search_stripe_prices( + context: ToolContext, + search_query_string: Annotated[ + str, + "The search query string for prices using Stripe's Search Query Language. Refer to the documentation for syntax and supported fields.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response that should be expanded." + ] = None, + result_limit: Annotated[ + int | None, + "Specifies the maximum number of price objects to return. Must be between 1 and 100, with a default of 10.", # noqa: E501 + ] = None, + pagination_cursor: Annotated[ + str | None, + "Cursor for paginating through results. Omit on first call; use 'next_page' from a prior response for additional results.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPricesSearch'."]: + """Search for previously created Stripe prices. + + Use this tool to search for prices you have previously created on Stripe using the Stripe Search Query Language. Note that this function should not be used for read-after-write flows where strict consistency is necessary, as data may take some time to propagate.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/prices/search", + params=remove_none_values({ + "expand": fields_to_expand, + "limit": result_limit, + "page": pagination_cursor, + "query": search_query_string, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_stripe_price( + context: ToolContext, + price_id: Annotated[ + str, "The unique identifier for the price you want to retrieve from Stripe." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded to include additional details.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPricesPrice'."]: + """Fetches price details using a specific ID from Stripe. + + This tool retrieves detailed information about a price by its ID from the Stripe platform. It should be called when specific pricing information is needed for products or services managed via Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/prices/{price}".format(price=price_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def search_stripe_products( + context: ToolContext, + search_query_string: Annotated[ + str, + "The search query string to find products. Refer to Stripe's Search Query Language for syntax and available fields.", # noqa: E501 + ], + response_fields_to_expand: Annotated[ + list[str] | None, + "List of specific fields to expand in the response for detailed information. Use field names as strings.", # noqa: E501 + ] = None, + results_limit: Annotated[ + int | None, + "Specifies the maximum number of product results to return, ranging from 1 to 100. Defaults to 10 if not set.", # noqa: E501 + ] = None, + pagination_cursor: Annotated[ + str | None, + "A cursor for paginating through the results. Use the 'next_page' value from the previous response for subsequent pages. Do not include this on the first call.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetProductsSearch'."]: + """Search for previously created products on Stripe. + + Use this tool to search for products you have created on Stripe. It utilizes Stripe's Search Query Language for querying. Note that the search may not be suitable for transactions needing strict consistency, as data may be slightly outdated. Also, this service isn't available in India.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/products/search", + params=remove_none_values({ + "expand": response_fields_to_expand, + "limit": results_limit, + "page": pagination_cursor, + "query": search_query_string, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_stripe_product( + context: ToolContext, + product_id_to_delete: Annotated[ + str, + "The unique identifier of the product to delete. Ensure the product has no prices or SKUs associated with it.", # noqa: E501 + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteProductsId'."]: + """Delete a product from Stripe if eligible. + + This tool deletes a product from Stripe, provided the product has no prices or SKUs associated with it. Use this to remove products when cleaning up a catalog or managing inventory.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/products/{id}".format(id=product_id_to_delete), # noqa: UP032 + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_product_details( + context: ToolContext, + product_id: Annotated[ + str, + "The unique identifier for the product to retrieve details. Obtainable from product creation requests or product lists.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response to be expanded for more detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetProductsId'."]: + """Retrieve details of a specific product by ID. + + Use this tool to get information about an existing product by providing its unique ID. This is useful for accessing product details from Stripe's catalog.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/products/{id}".format(id=product_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_product_features( + context: ToolContext, + product_id: Annotated[ + str, + "The unique identifier of the product for which you want to retrieve features. This is a required field.", # noqa: E501 + ], + pagination_ending_cursor: Annotated[ + str | None, + "An object ID that defines your position in the list for pagination, used to fetch the previous page.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for additional details.", + ] = None, + number_of_features_to_return: Annotated[ + int | None, + "Specifies the number of product features to return. Must be between 1 and 100, with a default of 10.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "Cursor for pagination to fetch the next page of product features. Use the object ID from the last item on the previous page.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetProductsProductFeatures'."]: + """Retrieve features for a specific product. + + Use this tool to obtain a list of features associated with a given product in Stripe. Ideal for when you need detailed information about a product's capabilities or offerings.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/products/{product}/features".format(product=product_id), # noqa: UP032 + params=remove_none_values({ + "ending_before": pagination_ending_cursor, + "expand": fields_to_expand, + "limit": number_of_features_to_return, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_product_feature( + context: ToolContext, + feature_id: Annotated[str, "The identifier of the feature to be deleted from the product."], + product_id: Annotated[ + str, + "The unique identifier of the product from which the feature is to be deleted. This is required to specify which product's feature should be removed.", # noqa: E501 + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteProductsProductFeaturesId'."]: + """Delete a specific feature from a product. + + Use this tool to delete a feature attached to a specific product by providing the product and feature identifiers.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/products/{product}/features/{id}".format( # noqa: UP032 + id=feature_id, product=product_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_product_feature_details( + context: ToolContext, + product_feature_id: Annotated[ + str, "The unique identifier of the product feature to retrieve details for." + ], + product_id: Annotated[str, "The unique identifier of the product associated with the feature."], + fields_to_expand: Annotated[ + list[str] | None, "A list of fields in the response to expand for detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetProductsProductFeaturesId'."]: + """Retrieve details of a feature attached to a product. + + Use this tool to obtain information about a specific feature associated with a product by providing the product and feature IDs.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/products/{product}/features/{id}".format( # noqa: UP032 + id=product_feature_id, product=product_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_promotion_code_details( + context: ToolContext, + promotion_code_id: Annotated[ + str, "The unique identifier of the promotion code to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response to be expanded. Provide field names as strings.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetPromotionCodesPromotionCode'."]: + """Retrieve details of a specific promotion code. + + This tool retrieves information about a promotion code using its ID. It can be used to access details such as discount amounts, expiration dates, and other relevant data tied to the specific promotion code.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/promotion_codes/{promotion_code}".format( # noqa: UP032 + promotion_code=promotion_code_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_quotes_list( + context: ToolContext, + customer_id: Annotated[str | None, "The ID of the customer to retrieve quotes for."] = None, + pagination_ending_before_cursor: Annotated[ + str | None, + "A string cursor indicating the object ID before which results are returned for pagination purposes. Use it to fetch the previous page of the list.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields to expand in the response. Each field is specified as a string.", + ] = None, + result_limit: Annotated[ + int | None, + "Sets the maximum number of quote objects to retrieve, between 1 and 100. Default is 10.", + ] = None, + pagination_starting_after: Annotated[ + str | None, + "Object ID for pagination to fetch the list after the specified item. Use to get the next page.", # noqa: E501 + ] = None, + quote_status: Annotated[ + str | None, + "The status of the quote. Possible values are 'accepted', 'canceled', 'draft', or 'open'.", + ] = None, + test_clock_id: Annotated[ + str | None, + "The ID of the test clock to filter quotes. Must be set with the customer parameter.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetQuotes'."]: + """Fetches a list of your available quotes. + + Use this tool to retrieve a list of quotes you have created or received. It provides details on each quote you have within your Stripe account.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/quotes", + params=remove_none_values({ + "customer": customer_id, + "ending_before": pagination_ending_before_cursor, + "expand": fields_to_expand, + "limit": result_limit, + "starting_after": pagination_starting_after, + "status": quote_status, + "test_clock": test_clock_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_quote_by_id( + context: ToolContext, + quote_id: Annotated[str, "The unique identifier of the quote to retrieve details for."], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to be expanded for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetQuotesQuote'."]: + """Fetches quote details using a specified ID. + + Use this tool to retrieve information about a specific quote by providing its ID.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/quotes/{quote}".format(quote=quote_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_upfront_quote_line_items( + context: ToolContext, + quote_id: Annotated[ + str, + "The unique ID of the quote for which to retrieve upfront line items. This ID is required to specify the quote in context.", # noqa: E501 + ], + pagination_ending_before_id: Annotated[ + str | None, + "A cursor indicating the last object ID to fetch the previous page in a paginated list of upfront line items.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields to expand in the response for more detailed information. Each entry should be a string representing a field.", # noqa: E501 + ] = None, + max_line_items_to_return: Annotated[ + int | None, + "The maximum number of line items to retrieve, between 1 and 100. Default is 10.", + ] = None, + pagination_starting_object_id: Annotated[ + str | None, + "An object ID used to fetch the next page of results in pagination, such as `obj_foo`.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetQuotesQuoteComputedUpfrontLineItems'." +]: + """Retrieve computed upfront line items from a quote. + + Use this tool to get the computed upfront line items for a specific quote from Stripe. Ideal for viewing details of the initial line items associated with a quote, including accessing a URL for the full list if needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/quotes/{quote}/computed_upfront_line_items".format( # noqa: UP032 + quote=quote_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_before_id, + "expand": fields_to_expand, + "limit": max_line_items_to_return, + "starting_after": pagination_starting_object_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_quote_line_items( + context: ToolContext, + quote_identifier: Annotated[ + str, "The unique identifier of the quote whose line items are to be retrieved." + ], + pagination_cursor_ending_before: Annotated[ + str | None, "The object ID to define your place in the list for fetching the previous page." + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "List of field names to expand in the response for detailed information." + ] = None, + max_items_to_return: Annotated[ + int | None, + "Specifies the maximum number of line items to return, ranging from 1 to 100. Defaults to 10 if not specified.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "The object ID to define your place in the list for pagination, used to fetch the next page after the specified object.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetQuotesQuoteLineItems'."]: + """Fetch line items from a specified quote. + + Use this tool to retrieve a list of line items associated with a specific quote. This includes both a summary of the first few items and a URL for accessing the complete, paginated list.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/quotes/{quote}/line_items".format( # noqa: UP032 + quote=quote_identifier + ), + params=remove_none_values({ + "ending_before": pagination_cursor_ending_before, + "expand": fields_to_expand, + "limit": max_items_to_return, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def download_quote_pdf( + context: ToolContext, + quote_id: Annotated[ + str, + "The unique identifier for the finalized quote to download as a PDF. This ID is required to retrieve the specific quote.", # noqa: E501 + ], + expand_fields: Annotated[ + list[str] | None, + "A list of fields in the quote response that should be expanded for additional detail.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetQuotesQuotePdf'."]: + """Download the PDF for a finalized Stripe quote. + + Use this tool to retrieve the PDF document for a completed quote from Stripe. It's useful when you need to obtain the finalized quote in PDF format for record-keeping or sharing purposes.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/quotes/{quote}/pdf".format(quote=quote_id), # noqa: UP032 + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_early_fraud_warning_details( + context: ToolContext, + early_fraud_warning_id: Annotated[ + str, "The unique identifier of the early fraud warning to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response that should be expanded for additional details.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetRadarEarlyFraudWarningsEarlyFraudWarning'." +]: + """Retrieve details of an early fraud warning. + + Fetches information about a previously created early fraud warning. Useful for examining potential fraudulent activity and understanding associated risks.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/radar/early_fraud_warnings/{early_fraud_warning}".format( # noqa: UP032 + early_fraud_warning=early_fraud_warning_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def remove_radar_value_list_item( + context: ToolContext, + radar_value_list_item_id: Annotated[ + str, + "The unique identifier of the ValueListItem to be removed from the Stripe Radar value list.", # noqa: E501 + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteRadarValueListItemsItem'."]: + """Remove an item from a Stripe Radar value list. + + Use this tool to delete a specific ValueListItem from its parent value list in Stripe Radar.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/radar/value_list_items/{item}".format( # noqa: UP032 + item=radar_value_list_item_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_value_list_item( + context: ToolContext, + value_list_item_id: Annotated[ + str, "The unique identifier of the ValueListItem to retrieve from Stripe's Radar service." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the ValueListItem response to expand for additional details.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetRadarValueListItemsItem'."]: + """Retrieve details of a specific ValueListItem in Stripe Radar. + + This tool retrieves information about a specific ValueListItem object from Stripe's Radar service, which can be used to manage elements within its fraud prevention tools.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/radar/value_list_items/{item}".format( # noqa: UP032 + item=value_list_item_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_stripe_value_list( + context: ToolContext, + value_list_id: Annotated[ + str, + "The unique identifier of the ValueList to be deleted. Ensure it is not referenced in any rules before deletion.", # noqa: E501 + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteRadarValueListsValueList'."]: + """Delete a Stripe Radar ValueList and its items. + + Use this tool to delete a specified ValueList object in Stripe Radar, along with all its contained items. Ensure the ValueList is not referenced in any rules before calling this tool.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/radar/value_lists/{value_list}".format( # noqa: UP032 + value_list=value_list_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_radar_valuelist( + context: ToolContext, + identifier_of_radar_valuelist: Annotated[ + str, + "The unique identifier of the Radar ValueList to retrieve details for. It is required to fetch the specific ValueList object.", # noqa: E501 + ], + expand_fields: Annotated[ + list[str] | None, "List of fields in the response to expand for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetRadarValueListsValueList'."]: + """Retrieve details of a specific Radar ValueList. + + Fetches information about a specified Radar ValueList object using its identifier.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/radar/value_lists/{value_list}".format( # noqa: UP032 + value_list=identifier_of_radar_valuelist + ), + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_refund_details( + context: ToolContext, + refund_id: Annotated[str, "The unique identifier of the refund to retrieve details for."], + expand_fields: Annotated[ + list[str] | None, + "Specify which fields in the response should be expanded. Provide an array of field paths.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetRefundsRefund'."]: + """Retrieve details of an existing refund. + + Use this tool to obtain information about a specific refund by its identifier.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/refunds/{refund}".format(refund=refund_id), # noqa: UP032 + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_report_run_details( + context: ToolContext, + report_run_id: Annotated[ + str, + "The unique identifier for the report run you want to retrieve details for. This ID is provided by Stripe when the report run is created.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields to expand in the response to include more detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetReportingReportRunsReportRun'."]: + """Retrieve details of an existing report run. + + Use this tool to obtain specific information about a previously created report run in Stripe's reporting system.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/reporting/report_runs/{report_run}".format( # noqa: UP032 + report_run=report_run_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_stripe_report_types( + context: ToolContext, + expand_fields: Annotated[ + list[str] | None, + "A list of fields in the Stripe report types response to be expanded for more detailed information.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetReportingReportTypes'."]: + """Retrieve a comprehensive list of Stripe report types. + + This tool calls the Stripe endpoint to return a full list of available Report Types. Use it when you need to know all report types that Stripe can generate.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/reporting/report_types", + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_stripe_report_type_details( + context: ToolContext, + stripe_report_type_id: Annotated[ + str, "The unique identifier for the Stripe Report Type to retrieve details about." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to expand for more detailed information." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetReportingReportTypesReportType'." +]: + """Retrieve details for a specific Stripe Report Type. + + Use this tool to get detailed information about a specific Stripe Report Type. Some report types may require a live-mode API key.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/reporting/report_types/{report_type}".format( # noqa: UP032 + report_type=stripe_report_type_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_review_details( + context: ToolContext, + review_identifier: Annotated[ + str, + "The unique identifier of the review to be retrieved from Stripe. This is a required parameter.", # noqa: E501 + ], + expand_fields: Annotated[ + list[str] | None, + "List of fields in the review response to be expanded for detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetReviewsReview'."]: + """Retrieve details of a specific review on Stripe. + + This tool fetches the details of a particular review from Stripe, using the review's unique identifier.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/reviews/{review}".format(review=review_identifier), # noqa: UP032 + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_setup_intent_details( + context: ToolContext, + setup_intent_id: Annotated[str, "The unique identifier for the SetupIntent to be retrieved."], + setup_intent_client_secret: Annotated[ + str | None, + "The client secret for retrieving SetupIntent using a publishable key. Required for client-side retrieval.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields to expand in the response, such as nested objects. Each field should be specified as a string.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetSetupIntentsIntent'."]: + """Fetch details of an existing Stripe SetupIntent. + + Use this tool to retrieve information about a specific SetupIntent created in Stripe. Requires the intent ID and optionally a client secret for client-side retrieval using a publishable key.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/setup_intents/{intent}".format(intent=setup_intent_id), # noqa: UP032 + params=remove_none_values({ + "client_secret": setup_intent_client_secret, + "expand": fields_to_expand, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_shipping_rate_details( + context: ToolContext, + shipping_rate_id: Annotated[ + str, "The unique identifier for the shipping rate to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields to expand in the response for more detailed information." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetShippingRatesShippingRateToken'." +]: + """Retrieve details of a specific shipping rate using its ID. + + This tool retrieves the shipping rate object associated with the provided shipping rate ID. Call this tool to get detailed information about a particular shipping rate from Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/shipping_rates/{shipping_rate_token}".format( # noqa: UP032 + shipping_rate_token=shipping_rate_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_scheduled_query_runs( + context: ToolContext, + pagination_cursor_ending_before: Annotated[ + str | None, "A cursor object ID for pagination to fetch the previous page of the list." + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "A list of fields in the response that should be expanded." + ] = None, + object_limit: Annotated[ + int | None, "Specify the number of objects to return, between 1 and 100. Default is 10." + ] = None, + pagination_starting_after: Annotated[ + str | None, + "Cursor for pagination, to fetch the next page starting after the specified object ID.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetSigmaScheduledQueryRuns'."]: + """Retrieve a list of scheduled query runs from Stripe. + + Use this tool to get information on scheduled query runs managed by Stripe's Sigma service. It retrieves a list of all the scheduled query runs that have occurred.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/sigma/scheduled_query_runs", + params=remove_none_values({ + "ending_before": pagination_cursor_ending_before, + "expand": fields_to_expand, + "limit": object_limit, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_scheduled_query_run_details( + context: ToolContext, + scheduled_query_run_id: Annotated[ + str, "The unique identifier for the scheduled query run you wish to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for additional detail.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetSigmaScheduledQueryRunsScheduledQueryRun'." +]: + """Fetches details of a Stripe Sigma scheduled query run. + + This tool retrieves the details of a specific scheduled query run from Stripe Sigma. Use this when you need information about the execution of a scheduled query run.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/sigma/scheduled_query_runs/{scheduled_query_run}".format( # noqa: UP032 + scheduled_query_run=scheduled_query_run_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_stripe_source( + context: ToolContext, + stripe_source_id: Annotated[ + str, + "The unique identifier of the Stripe source object to retrieve its current information.", + ], + source_client_secret: Annotated[ + str | None, + "The client secret of the source. Required if a publishable key is used to retrieve the source.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to be expanded for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetSourcesSource'."]: + """Retrieve updated details of a Stripe source object. + + This tool should be called when you need to get the current information of a specific source object in Stripe using its unique source ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/sources/{source}".format(source=stripe_source_id), # noqa: UP032 + params=remove_none_values({ + "client_secret": source_client_secret, + "expand": fields_to_expand, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_source_mandate_notification( + context: ToolContext, + mandate_notification_id: Annotated[ + str, "The unique identifier of the mandate notification to retrieve details for." + ], + source_id: Annotated[ + str, + "The unique identifier of the source to retrieve information for. This is required to specify which source's mandate notification you want to access.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response that should be expanded for additional details.", + ] = None, +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'GetSourcesSourceMandateNotificationsMandateNotification'.", +]: + """Retrieve details of a specific mandate notification. + + This tool retrieves information about a specific Source MandateNotification from Stripe. It should be used when you need to access details regarding a mandate notification for a given source.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/sources/{source}/mandate_notifications/{mandate_notification}".format( # noqa: UP032 + mandate_notification=mandate_notification_id, source=source_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_source_transactions( + context: ToolContext, + source_id: Annotated[ + str, + "The unique identifier of the source to retrieve transactions for. Required to specify the target of the retrieval.", # noqa: E501 + ], + pagination_ending_before: Annotated[ + str | None, + "An object ID for pagination to fetch the previous page of the list. Use the ID of the first object from the current list.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of field names in the response that should be expanded for detailed information.", + ] = None, + transaction_limit: Annotated[ + int | None, + "Maximum number of transactions to return. Must be between 1 and 100, default is 10.", + ] = None, + pagination_starting_after: Annotated[ + str | None, + "An object ID used as a cursor to fetch the next page of the list. Use this to continue listing transactions after a known last object ID.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetSourcesSourceSourceTransactions'." +]: + """Retrieve transactions for a specific source. + + Use this tool to list all transactions associated with a specific source in Stripe. It should be called when transaction details for a given source are needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/sources/{source}/source_transactions".format( # noqa: UP032 + source=source_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "limit": transaction_limit, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_stripe_source_transaction( + context: ToolContext, + source_id: Annotated[ + str, + "The unique ID of the Stripe source. Use this to specify which source's transaction to retrieve.", # noqa: E501 + ], + stripe_source_transaction_id: Annotated[ + str, + "The unique identifier for the source transaction to retrieve from Stripe. This ID is obtained from previous source creation requests.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "An array of strings specifying which fields in the response should be expanded.", + ] = None, +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'GetSourcesSourceSourceTransactionsSourceTransaction'.", +]: + """Retrieve a Stripe source transaction by ID. + + Fetches information of an existing source transaction using the source ID and transaction ID from Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/sources/{source}/source_transactions/{source_transaction}".format( # noqa: UP032 + source=source_id, source_transaction=stripe_source_transaction_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_subscription_items( + context: ToolContext, + subscription_id: Annotated[ + str, "The unique identifier of the subscription to retrieve its items." + ], + pagination_ending_before: Annotated[ + str | None, "Object ID for pagination to fetch the previous page of subscription items." + ] = None, + expand_fields: Annotated[ + list[str] | None, + "List of fields in the response to be expanded. Specify each field as a string.", + ] = None, + max_items_to_return: Annotated[ + int | None, + "Specify the number of subscription items to return, ranging from 1 to 100. Defaults to 10.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, + "A cursor object ID to define your place for pagination, fetching the next page of the list.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetSubscriptionItems'."]: + """Retrieve subscription items for a subscription. + + This tool returns a list of subscription items associated with a specified subscription. It should be called when there's a need to view or manage the items within a specific subscription.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/subscription_items", + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": expand_fields, + "limit": max_items_to_return, + "starting_after": pagination_starting_after, + "subscription": subscription_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_subscription_item( + context: ToolContext, + subscription_item_id: Annotated[ + str, "The unique identifier of the subscription item to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response to be expanded for detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetSubscriptionItemsItem'."]: + """Retrieve details of a specific subscription item. + + This tool retrieves information about a subscription item using its ID. It can be used to access the specifics of a subscription item within a subscription plan to understand its configuration and parameters.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/subscription_items/{item}".format( # noqa: UP032 + item=subscription_item_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_subscription_schedule( + context: ToolContext, + subscription_schedule_id: Annotated[ + str, "The unique identifier for the subscription schedule to retrieve details for." + ], + fields_to_expand_in_response: Annotated[ + list[str] | None, "A list of fields to expand in the response for additional details." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetSubscriptionSchedulesSchedule'." +]: + """Get details of an existing subscription schedule by ID. + + This tool retrieves the detailed information of an existing subscription schedule using its unique identifier. It should be called when detailed information about a subscription schedule is needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/subscription_schedules/{schedule}".format( # noqa: UP032 + schedule=subscription_schedule_id + ), + params=remove_none_values({"expand": fields_to_expand_in_response}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def search_stripe_subscriptions( + context: ToolContext, + search_query_string: Annotated[ + str, + "The search query string used to filter Stripe subscriptions. Refer to the Stripe Search Query Language documentation for syntax and query fields.", # noqa: E501 + ], + expand_fields: Annotated[ + list[str] | None, + "A list of fields in the Stripe subscription response to be expanded. This allows accessing additional data for each subscription object.", # noqa: E501 + ] = None, + result_limit: Annotated[ + int | None, + "Specify the maximum number of subscription results to return, from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + pagination_cursor: Annotated[ + str | None, + "Cursor for paginating through results. Omit on first call; use next_page value from a prior response for subsequent results.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetSubscriptionsSearch'."]: + """Search previously created Stripe subscriptions. + + Use this tool to search for subscriptions created with Stripe using their Search Query Language. This is ideal for retrieving subscription data, but not suitable for scenarios requiring strict consistency, such as immediately after creating or updating data. Note: This functionality isn't available for merchants in India.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/subscriptions/search", + params=remove_none_values({ + "expand": expand_fields, + "limit": result_limit, + "page": pagination_cursor, + "query": search_query_string, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_subscription_details( + context: ToolContext, + subscription_id: Annotated[ + str, + "The ID of the subscription to retrieve details for. It is required to fetch the subscription information.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the subscription response to be expanded for detailed information.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetSubscriptionsSubscriptionExposedId'." +]: + """Retrieve details of a subscription by its ID. + + This tool is used to fetch details about a specific subscription using its exposed ID. It should be called when subscription information is needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/subscriptions/{subscription_exposed_id}".format( # noqa: UP032 + subscription_exposed_id=subscription_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def remove_subscription_discount( + context: ToolContext, + subscription_id: Annotated[ + str, "The unique identifier for the subscription from which the discount will be removed." + ], +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'DeleteSubscriptionsSubscriptionExposedIdDiscount'.", +]: + """Remove the discount from a subscription. + + This tool should be called to remove the currently applied discount on a given subscription in the Stripe service.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/subscriptions/{subscription_exposed_id}/discount".format( # noqa: UP032 + subscription_exposed_id=subscription_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_tax_calculation( + context: ToolContext, + tax_calculation_id: Annotated[ + str, "The unique identifier for the Tax Calculation object to retrieve." + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields to expand in the response. Use to get detailed subfields of tax calculations.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTaxCalculationsCalculation'."]: + """Retrieve a specific tax calculation by its ID. + + This tool retrieves details of a Tax Calculation object using its unique ID, provided the calculation has not expired. It is useful for obtaining information on specific tax calculations.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax/calculations/{calculation}".format( # noqa: UP032 + calculation=tax_calculation_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_tax_calculation_line_items( + context: ToolContext, + tax_calculation_id: Annotated[ + str, + "The ID of the tax calculation to retrieve line items for. Ensure that the calculation has not expired.", # noqa: E501 + ], + pagination_cursor_ending_before: Annotated[ + str | None, + "An object ID to define your place in the list for pagination, used to fetch the previous page.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response to be expanded. Use this to include additional data in the output.", # noqa: E501 + ] = None, + object_return_limit: Annotated[ + int | None, "Specifies the number of objects to return, between 1 and 100. Default is 10." + ] = None, + pagination_starting_after_item_id: Annotated[ + str | None, "An object ID used for pagination to fetch the next page of results." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetTaxCalculationsCalculationLineItems'." +]: + """Retrieve line items for a Stripe tax calculation. + + Use this tool to get the line items of a tax calculation from Stripe, provided the calculation hasn't expired.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax/calculations/{calculation}/line_items".format( # noqa: UP032 + calculation=tax_calculation_id + ), + params=remove_none_values({ + "ending_before": pagination_cursor_ending_before, + "expand": fields_to_expand, + "limit": object_return_limit, + "starting_after": pagination_starting_after_item_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_tax_registrations( + context: ToolContext, + pagination_ending_before: Annotated[ + str | None, + "An object ID used as a cursor to define your position in the list for pagination. Use this to fetch the previous page of objects.", # noqa: E501 + ] = None, + response_fields_to_expand: Annotated[ + list[str] | None, + "List of fields to be expanded in the response, allowing for detailed information retrieval.", # noqa: E501 + ] = None, + object_limit: Annotated[ + int | None, + "Specifies the number of tax registration objects to return, ranging from 1 to 100. Defaults to 10 if not specified.", # noqa: E501 + ] = None, + pagination_starting_after_object_id: Annotated[ + str | None, + "A cursor for pagination. Use the object ID to fetch the next page of the list when applicable.", # noqa: E501 + ] = None, + tax_registration_status: Annotated[ + str | None, + "Specifies the status of the tax registration. Options: active, all, expired, scheduled.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTaxRegistrations'."]: + """Retrieve a list of tax registration objects from Stripe. + + Use this tool to get detailed information about tax registrations on Stripe. It returns a list of registration objects that are currently registered.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax/registrations", + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": response_fields_to_expand, + "limit": object_limit, + "starting_after": pagination_starting_after_object_id, + "status": tax_registration_status, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_tax_registration_info( + context: ToolContext, + registration_id: Annotated[ + str, + "The unique identifier for the tax registration. Provide this to retrieve specific registration details.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded to provide more detailed information.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTaxRegistrationsId'."]: + """Retrieve details of a specific tax registration. + + Use this tool to obtain information about a specific tax registration by providing the registration ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax/registrations/{id}".format(id=registration_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_tax_settings( + context: ToolContext, + expand_fields: Annotated[ + list[str] | None, + "A list of field names in the response to expand for more detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTaxSettings'."]: + """Retrieve merchant tax settings in Stripe. + + This tool fetches the tax settings for a merchant from Stripe, providing detailed information about tax configurations.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax/settings", + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_tax_transaction( + context: ToolContext, + transaction_id: Annotated[str, "Unique identifier for the tax transaction to retrieve."], + expand_response_fields: Annotated[ + list[str] | None, + "A list of fields to expand in the tax transaction response for additional details.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTaxTransactionsTransaction'."]: + """Retrieve details of a specific tax transaction. + + This tool retrieves a Tax Transaction object from the Stripe API, providing detailed information about a specific tax transaction.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax/transactions/{transaction}".format( # noqa: UP032 + transaction=transaction_id + ), + params=remove_none_values({"expand": expand_response_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_transaction_line_items( + context: ToolContext, + transaction_id: Annotated[ + str, + "The unique identifier for the transaction. Use this to retrieve its line items from Stripe.", # noqa: E501 + ], + pagination_ending_id: Annotated[ + str | None, + "Cursor ID for paginating backwards to fetch the previous page of transaction line items.", + ] = None, + expand_fields: Annotated[ + list[str] | None, + "Specify which response fields to expand. Provide an array of strings with field names.", + ] = None, + number_of_items_to_return: Annotated[ + int | None, + "Specifies the number of line items to return, between 1 and 100. Defaults to 10 if not specified.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, + "A cursor ID for pagination to fetch the next page of the list. Use the last object's ID from the current page.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetTaxTransactionsTransactionLineItems'." +]: + """Retrieve line items for a specified transaction. + + Use this tool to get the line items of a committed standalone transaction from Stripe as a collection.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax/transactions/{transaction}/line_items".format( # noqa: UP032 + transaction=transaction_id + ), + params=remove_none_values({ + "ending_before": pagination_ending_id, + "expand": expand_fields, + "limit": number_of_items_to_return, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_tax_codes_list( + context: ToolContext, + pagination_cursor_ending_before: Annotated[ + str | None, + "A cursor (object ID) to fetch the previous page of the tax codes list in pagination. Use to define your place in the list when stepping backwards.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "Specifies which fields in the tax codes response should be expanded for more detailed information.", # noqa: E501 + ] = None, + object_return_limit: Annotated[ + int | None, + "Set the maximum number of tax codes to return, ranging from 1 to 100, with a default of 10.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "An object ID used as a cursor to fetch the next page of the list. Use it for pagination to continue from the last retrieved item.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTaxCodes'."]: + """Retrieve all available tax codes for products from Stripe. + + Use this tool to get a list of all tax codes that can be added to products for specific tax calculations in Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax_codes", + params=remove_none_values({ + "ending_before": pagination_cursor_ending_before, + "expand": fields_to_expand, + "limit": object_return_limit, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_tax_code_details( + context: ToolContext, + tax_code_id: Annotated[ + str, + "The unique ID of the tax code to retrieve. Use this to fetch specific tax code details from Stripe.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields to be expanded in the response." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTaxCodesId'."]: + """Retrieve details for a specific tax code by ID. + + This tool fetches information about an existing tax code using its unique ID. It's useful for obtaining detailed tax code data from Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax_codes/{id}".format(id=tax_code_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_tax_id( + context: ToolContext, + tax_id: Annotated[ + str, + "The identifier of the tax ID to be deleted. This should be the specific tax ID string associated with an account or customer in Stripe.", # noqa: E501 + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteTaxIdsId'."]: + """Delete a tax ID from an account or customer. + + Use this tool to delete an existing tax ID associated with an account or customer in Stripe.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax_ids/{id}".format(id=tax_id), # noqa: UP032 + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_tax_id( + context: ToolContext, + tax_id_identifier: Annotated[ + str, + "The unique identifier for the tax_id object to be retrieved. This is a required field to specify which tax_id you want information about.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response that should be expanded for detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTaxIdsId'."]: + """Retrieve an account or customer's tax_id object. + + Use this tool to retrieve detailed information about a specific tax_id associated with an account or customer on Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax_ids/{id}".format(id=tax_id_identifier), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_tax_rate( + context: ToolContext, + tax_rate_id: Annotated[ + str, + "The unique identifier for the tax rate to be retrieved from Stripe. This ID is required to fetch the specific tax rate details.", # noqa: E501 + ], + expand_fields: Annotated[ + list[str] | None, + "A list of fields to be expanded in the response. This allows you to retrieve additional nested information related to the tax rate.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTaxRatesTaxRate'."]: + """Fetches a tax rate by its ID from Stripe. + + Use this tool to retrieve specific tax rate information from Stripe using the tax rate ID. It provides the details associated with the particular tax rate.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tax_rates/{tax_rate}".format(tax_rate=tax_rate_id), # noqa: UP032 + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_terminal_configurations( + context: ToolContext, + pagination_ending_before: Annotated[ + str | None, + "A string cursor for pagination to fetch the previous page, defined by an object ID.", + ] = None, + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to expand for additional details." + ] = None, + maximum_objects_to_return: Annotated[ + int | None, + "Set the maximum number of terminal Configuration objects to retrieve, ranging from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + pagination_starting_after_id: Annotated[ + str | None, + "An object ID for pagination, defining the start position for the next page of the list. Use this to continue listing from a specific object.", # noqa: E501 + ] = None, + only_return_account_default_configurations: Annotated[ + bool | None, + "If true, only return the account default configurations; if false, return non-default configurations.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTerminalConfigurations'."]: + """Retrieve a list of terminal Configuration objects. + + Call this tool to obtain a list of Stripe terminal configurations. It retrieves all available Configuration objects used by terminals.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/terminal/configurations", + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "is_account_default": only_return_account_default_configurations, + "limit": maximum_objects_to_return, + "starting_after": pagination_starting_after_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_terminal_configuration( + context: ToolContext, + configuration_id_to_delete: Annotated[ + str, "The ID of the terminal configuration you want to delete from Stripe." + ], +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'DeleteTerminalConfigurationsConfiguration'." +]: + """Deletes a terminal configuration. + + Use this tool to delete a specific terminal configuration in Stripe by providing the configuration ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/terminal/configurations/{configuration}".format( # noqa: UP032 + configuration=configuration_id_to_delete + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_terminal_configuration( + context: ToolContext, + configuration_id: Annotated[ + str, "The unique identifier of the terminal configuration to retrieve." + ], + expand_fields: Annotated[ + list[str] | None, + "A list of fields in the terminal configuration response that should be expanded for more details.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetTerminalConfigurationsConfiguration'." +]: + """Retrieves a terminal configuration object for Stripe.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/terminal/configurations/{configuration}".format( # noqa: UP032 + configuration=configuration_id + ), + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_terminal_locations( + context: ToolContext, + pagination_ending_before_cursor: Annotated[ + str | None, + "The object ID to define your place in pagination, used to fetch the previous page of the list.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields to expand in the response for more detailed information.", + ] = None, + results_limit: Annotated[ + int | None, + "The maximum number of terminal location objects to return. Acceptable values are between 1 and 100; default is 10.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, + "A cursor indicating the position in the list to start fetching the next set of terminal locations. Use this with the object ID received at the end of the previous page.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTerminalLocations'."]: + """Retrieve a list of terminal location objects from Stripe. + + This tool calls the Stripe API to fetch a list of terminal location objects. It should be used when you need information about available terminal locations.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/terminal/locations", + params=remove_none_values({ + "ending_before": pagination_ending_before_cursor, + "expand": fields_to_expand, + "limit": results_limit, + "starting_after": pagination_starting_after, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_terminal_location( + context: ToolContext, + location_identifier: Annotated[ + str, "The unique identifier of the terminal location to delete." + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteTerminalLocationsLocation'."]: + """Deletes a specified terminal location in Stripe. + + Use this tool to delete a specific terminal location in Stripe by providing the location identifier. It removes the location object from the terminal services.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/terminal/locations/{location}".format( # noqa: UP032 + location=location_identifier + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_terminal_location( + context: ToolContext, + location_id: Annotated[ + str, "The unique identifier for the terminal location to retrieve information for." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields in the response to expand for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTerminalLocationsLocation'."]: + """Fetches details of a terminal location by ID. + + Use this tool to obtain information about a specific terminal location from Stripe by providing the location ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/terminal/locations/{location}".format( # noqa: UP032 + location=location_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_terminal_readers( + context: ToolContext, + filter_by_device_type: Annotated[ + str | None, + "Specify the type of device to filter terminal readers. Options include: 'bbpos_chipper2x', 'bbpos_wisepad3', 'bbpos_wisepos_e', 'mobile_phone_reader', 'simulated_stripe_s700', 'simulated_wisepos_e', 'stripe_m2', 'stripe_s700', 'verifone_P400'.", # noqa: E501 + ] = None, + pagination_cursor_ending_before: Annotated[ + str | None, "A cursor for pagination, used to fetch the previous page based on object ID." + ] = None, + expand_response_fields: Annotated[ + list[str] | None, "List of fields to expand in the response, specified as strings." + ] = None, + object_return_limit: Annotated[ + int | None, + "Specifies the maximum number of terminal reader objects to return, ranging from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + filter_by_location_id: Annotated[ + str | None, "Specify the location ID to filter readers to a specific location only." + ] = None, + filter_by_serial_number: Annotated[ + str | None, + "Provide a serial number to filter the list of terminal readers by this specific serial number.", # noqa: E501 + ] = None, + pagination_start_object_id: Annotated[ + str | None, + "The object ID used as a cursor to define your starting point in the list for pagination, fetching the next page.", # noqa: E501 + ] = None, + filter_by_status: Annotated[ + str | None, "Filter terminal readers by their status, either 'offline' or 'online'." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTerminalReaders'."]: + """Retrieve a list of terminal reader objects. + + Use this tool to obtain a list of Stripe terminal readers. It is useful when you need to manage or view details of connected terminal devices.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/terminal/readers", + params=remove_none_values({ + "device_type": filter_by_device_type, + "ending_before": pagination_cursor_ending_before, + "expand": expand_response_fields, + "limit": object_return_limit, + "location": filter_by_location_id, + "serial_number": filter_by_serial_number, + "starting_after": pagination_start_object_id, + "status": filter_by_status, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_terminal_reader( + context: ToolContext, + terminal_reader_id: Annotated[ + str, "The ID of the terminal reader to be deleted from the Stripe account." + ], +) -> Annotated[dict[str, Any], "Response from the API endpoint 'DeleteTerminalReadersReader'."]: + """Delete a terminal reader from the Stripe account. + + This tool is used to delete a terminal reader object in a Stripe account. It should be called when there is a need to remove a specific reader.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/terminal/readers/{reader}".format( # noqa: UP032 + reader=terminal_reader_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_terminal_reader( + context: ToolContext, + terminal_reader_id: Annotated[ + str, + "The unique identifier for the terminal reader to retrieve. It should be a string value.", + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for more detail.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTerminalReadersReader'."]: + """Retrieve details of a terminal reader. + + This tool retrieves a specific terminal reader object from the Stripe API. It should be called when detailed information about a particular reader is needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/terminal/readers/{reader}".format( # noqa: UP032 + reader=terminal_reader_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_test_clocks_list( + context: ToolContext, + pagination_cursor_ending_before: Annotated[ + str | None, + "A cursor ID for pagination to fetch the previous page of the list. Use an object ID.", + ] = None, + expand_response_fields: Annotated[ + list[str] | None, + "List of fields to expand in the response. Specify fields you want expanded for more details.", # noqa: E501 + ] = None, + number_of_objects_limit: Annotated[ + int | None, + "Specify the number of test clocks to return, between 1 and 100, with a default of 10.", + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "An object ID for pagination. Use this ID to fetch the next page of the list of test clocks.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTestHelpersTestClocks'."]: + """Retrieve a list of your test clocks from Stripe. + + Use this tool to obtain a list of test clocks for testing purposes in Stripe environments.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/test_helpers/test_clocks", + params=remove_none_values({ + "ending_before": pagination_cursor_ending_before, + "expand": expand_response_fields, + "limit": number_of_objects_limit, + "starting_after": pagination_starting_after_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_test_clock( + context: ToolContext, + test_clock_id: Annotated[ + str, "The unique identifier of the test clock to be deleted from Stripe's test environment." + ], +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'DeleteTestHelpersTestClocksTestClock'." +]: + """Deletes a test clock in Stripe's test environment. + + This tool is used to delete a specific test clock from Stripe's test environment. Call this tool when you need to remove a test clock that is no longer needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/test_helpers/test_clocks/{test_clock}".format( # noqa: UP032 + test_clock=test_clock_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_test_clock( + context: ToolContext, + test_clock_id: Annotated[ + str, "The unique identifier of the test clock to retrieve from Stripe." + ], + expand_fields: Annotated[ + list[str] | None, + "A list of strings specifying which fields in the response should be expanded for additional details.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetTestHelpersTestClocksTestClock'." +]: + """Retrieve details of a Stripe test clock. + + This tool retrieves information about a specific test clock within Stripe's test environment. It should be used to gather details about test clocks for testing purposes.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/test_helpers/test_clocks/{test_clock}".format( # noqa: UP032 + test_clock=test_clock_id + ), + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_stripe_token( + context: ToolContext, + stripe_token_id: Annotated[ + str, "The ID of the Stripe token you want to retrieve details about." + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for more detail.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTokensToken'."]: + """Retrieve details of a Stripe token using its ID. + + Use this tool to fetch information about a specific Stripe token by providing its ID.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/tokens/{token}".format(token=stripe_token_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_stripe_topup_details( + context: ToolContext, + topup_id: Annotated[ + str, "The unique ID of the Stripe top-up you want to retrieve details for." + ], + expand_fields: Annotated[ + list[str] | None, + "A list of fields in the response to be expanded. Specify field names as strings.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTopupsTopup'."]: + """Retrieve details of a Stripe top-up using its ID. + + This tool retrieves the details of a previously created Stripe top-up. It requires the unique top-up ID and returns the corresponding top-up information.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/topups/{topup}".format(topup=topup_id), # noqa: UP032 + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_transfer_reversals( + context: ToolContext, + transfer_id: Annotated[ + str, "The unique identifier of the transfer for which to retrieve reversals." + ], + pagination_ending_before: Annotated[ + str | None, "An object ID cursor to navigate to the previous page in the list of reversals." + ] = None, + expand_fields_in_response: Annotated[ + list[str] | None, "List of response fields to expand in the results for detailed data." + ] = None, + fetch_limit: Annotated[ + int | None, + "Set the maximum number of reversal objects to return, ranging from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + pagination_start_cursor: Annotated[ + str | None, + "The object ID to define your place in the list for pagination. Use this to fetch the next page, starting after the given object ID.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTransfersIdReversals'."]: + """Retrieve reversals of a specific transfer. + + Use this tool to get a list of reversals for a specific transfer in Stripe. This is useful when more than the 10 most recent reversals are needed, allowing pagination using limit and starting_after parameters.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/transfers/{id}/reversals".format(id=transfer_id), # noqa: UP032 + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": expand_fields_in_response, + "limit": fetch_limit, + "starting_after": pagination_start_cursor, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_transfer_details( + context: ToolContext, + transfer_id: Annotated[ + str, + "The unique identifier for the transfer you want to retrieve details about. This ID is obtained from a transfer creation request or the transfer list.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the transfer response to expand for more detailed information.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTransfersTransfer'."]: + """Retrieve details of an existing transfer using its ID. + + Use this tool to fetch information about a specific transfer by providing its unique ID from a previous request or list.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/transfers/{transfer}".format(transfer=transfer_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_specific_transfer_reversal_details( + context: ToolContext, + reversal_id: Annotated[ + str, "The unique identifier of the transfer reversal to retrieve details for." + ], + transfer_id: Annotated[ + str, + "The unique identifier for the transfer to retrieve reversal details from. This is required to specify which transfer you're inquiring about.", # noqa: E501 + ], + expand_fields: Annotated[ + list[str] | None, "List of fields in the response to be expanded for detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTransfersTransferReversalsId'."]: + """Retrieve details about a specific transfer reversal. + + This tool retrieves details of a specific reversal associated with a transfer. Use it to access more than the 10 most recent reversals or to obtain specific information about a particular reversal.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/transfers/{transfer}/reversals/{id}".format( # noqa: UP032 + id=reversal_id, transfer=transfer_id + ), + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_credit_reversals( + context: ToolContext, + financial_account_id: Annotated[ + str, "The ID of the FinancialAccount associated with the CreditReversals to be returned." + ], + pagination_ending_before: Annotated[ + str | None, "A cursor object ID for pagination to fetch the previous list page." + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields to be expanded in the response for detailed information.", + ] = None, + max_objects_returned: Annotated[ + int | None, + "Sets the maximum number of credit reversals to be returned. Valid range is 1 to 100, defaulting to 10.", # noqa: E501 + ] = None, + filter_by_received_credit_id: Annotated[ + str | None, + "Filter Credit Reversals to only include those associated with the specified ReceivedCredit ID.", # noqa: E501 + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, "An object ID used to fetch the next page of the list in a paginated response." + ] = None, + credit_reversal_status: Annotated[ + str | None, + "Filter CreditReversals based on their status. Possible values are: canceled, posted, processing.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTreasuryCreditReversals'."]: + """Retrieve a list of Credit Reversals from Stripe's Treasury. + + This tool fetches a list of Credit Reversals from Stripe's Treasury endpoint. It should be used when detailed information about credit reversals is needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/credit_reversals", + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": fields_to_expand, + "financial_account": financial_account_id, + "limit": max_objects_returned, + "received_credit": filter_by_received_credit_id, + "starting_after": pagination_starting_after_cursor, + "status": credit_reversal_status, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_credit_reversal_details( + context: ToolContext, + credit_reversal_id: Annotated[ + str, + "The unique ID of the CreditReversal to retrieve details for. This ID is obtained from the CreditReversal creation request or list.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for more detailed information.", + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetTreasuryCreditReversalsCreditReversal'." +]: + """Retrieve details of a specific CreditReversal using its ID. + + Use this tool to fetch information about an existing CreditReversal by providing its unique ID. Ideal for confirming details or reviewing the status of a CreditReversal transaction.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/credit_reversals/{credit_reversal}".format( # noqa: UP032 + credit_reversal=credit_reversal_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_debit_reversals_list( + context: ToolContext, + financial_account_id: Annotated[ + str, "The ID of the FinancialAccount to retrieve associated debit reversals." + ], + pagination_ending_before_cursor: Annotated[ + str | None, + "A cursor object ID for pagination. Use this to fetch the previous page of the list.", + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "A list of fields in the response to expand for obtaining additional nested information.", + ] = None, + max_number_of_debit_reversals: Annotated[ + int | None, + "The maximum number of debit reversals to return. Must be between 1 and 100. Defaults to 10 if not specified.", # noqa: E501 + ] = None, + filter_by_received_debit_id: Annotated[ + str | None, + "The ID of the ReceivedDebit to filter debit reversals by. Only returns reversals for this specific ID.", # noqa: E501 + ] = None, + resolution_status: Annotated[ + str | None, "Filter DebitReversals based on the resolution ('lost' or 'won')." + ] = None, + pagination_starting_after_cursor: Annotated[ + str | None, + "An object ID that serves as a pagination cursor for fetching the next page of results.", + ] = None, + filter_by_status: Annotated[ + str | None, + "Specify the status of DebitReversals to return. Options are: 'canceled', 'completed', or 'processing'.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTreasuryDebitReversals'."]: + """Retrieves a list of debit reversals from Stripe. + + Use this tool to obtain a list of debit reversals from the Stripe Treasury API, which provides details on reversed debit transactions.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/debit_reversals", + params=remove_none_values({ + "ending_before": pagination_ending_before_cursor, + "expand": fields_to_expand, + "financial_account": financial_account_id, + "limit": max_number_of_debit_reversals, + "received_debit": filter_by_received_debit_id, + "resolution": resolution_status, + "starting_after": pagination_starting_after_cursor, + "status": filter_by_status, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_debit_reversal( + context: ToolContext, + debit_reversal_id: Annotated[ + str, "The unique identifier of the DebitReversal object to be retrieved." + ], + expand_fields: Annotated[ + list[str] | None, + "List of fields to expand in the DebitReversal response. Provide an array of field names as strings.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetTreasuryDebitReversalsDebitReversal'." +]: + """Retrieve details of a specific debit reversal. + + Use this tool to get information about a specific DebitReversal object by ID.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/debit_reversals/{debit_reversal}".format( # noqa: UP032 + debit_reversal=debit_reversal_id + ), + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_financial_account_details( + context: ToolContext, + financial_account_id: Annotated[ + str, + "The unique identifier of the financial account to be retrieved. This ID is required to fetch the account details.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, + "A list of strings specifying which fields in the financial account details should be expanded in the response.", # noqa: E501 + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetTreasuryFinancialAccountsFinancialAccount'." +]: + """Retrieve details of a specific financial account. + + Use this tool to obtain comprehensive information about a specific financial account using its identifier.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/financial_accounts/{financial_account}".format( # noqa: UP032 + financial_account=financial_account_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_financial_account_features( + context: ToolContext, + financial_account_id: Annotated[ + str, + "The ID of the financial account for which to retrieve feature information. This is required.", # noqa: E501 + ], + expand_response_fields: Annotated[ + list[str] | None, + "A list of fields in the response that should be expanded for more detailed information.", + ] = None, +) -> Annotated[ + dict[str, Any], + "Response from the API endpoint 'GetTreasuryFinancialAccountsFinancialAccountFeatures'.", +]: + """Retrieve features of a financial account. + + This tool retrieves information about the features associated with a specified financial account in Stripe's treasury service. Use it to get detailed features of a financial account when needed.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/financial_accounts/{financial_account}/features".format( # noqa: UP032 + financial_account=financial_account_id + ), + params=remove_none_values({"expand": expand_response_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_inbound_transfers( + context: ToolContext, + financial_account_id: Annotated[ + str, "The ID of the FinancialAccount to retrieve associated inbound transfers." + ], + pagination_ending_before_id: Annotated[ + str | None, + "The object ID defining your place in the list to fetch the previous page. Use this for pagination.", # noqa: E501 + ] = None, + expand_response_fields: Annotated[ + list[str] | None, "List of fields in the response to be expanded for detailed information." + ] = None, + transfer_limit: Annotated[ + int | None, + "Set the maximum number of inbound transfer objects to return, ranging from 1 to 100. Default is 10.", # noqa: E501 + ] = None, + pagination_starting_after_object_id: Annotated[ + str | None, + "Cursor for pagination to fetch the next page by using the object ID from the end of the previous result set.", # noqa: E501 + ] = None, + filter_by_transfer_status: Annotated[ + str | None, + "Filter inbound transfers by their status: 'processing', 'succeeded', 'failed', or 'canceled'.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTreasuryInboundTransfers'."]: + """Retrieve inbound transfers for a financial account. + + This tool fetches a list of inbound transfers sent from a specified financial account using Stripe's treasury services.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/inbound_transfers", + params=remove_none_values({ + "ending_before": pagination_ending_before_id, + "expand": expand_response_fields, + "financial_account": financial_account_id, + "limit": transfer_limit, + "starting_after": pagination_starting_after_object_id, + "status": filter_by_transfer_status, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_inbound_transfer_details( + context: ToolContext, + inbound_transfer_id: Annotated[ + str, "The unique identifier of the inbound transfer to retrieve details for." + ], + expand_fields: Annotated[ + list[str] | None, + "Specify which fields in the response should be expanded for detailed information. Provide them as a list of strings.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTreasuryInboundTransfersId'."]: + """Retrieve details of a specific inbound transfer. + + Use this tool to get information about a specific inbound transfer by providing its ID. It retrieves all associated details of the inbound transfer from the Stripe service.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/inbound_transfers/{id}".format( # noqa: UP032 + id=inbound_transfer_id + ), + params=remove_none_values({"expand": expand_fields}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_outbound_payment_details( + context: ToolContext, + outbound_payment_id: Annotated[ + str, "The unique identifier of the OutboundPayment to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of fields to expand in the response for detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTreasuryOutboundPaymentsId'."]: + """Retrieve details of an existing OutboundPayment by ID. + + Use this tool to obtain details of a specific OutboundPayment using its unique ID from Stripe's treasury service.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/outbound_payments/{id}".format( # noqa: UP032 + id=outbound_payment_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_outbound_transfers( + context: ToolContext, + financial_account_id: Annotated[ + str, "The ID of the financial account to retrieve outbound transfers from." + ], + pagination_cursor_ending_before: Annotated[ + str | None, + "Cursor for pagination to fetch the previous page of the outbound transfers list using an object ID.", # noqa: E501 + ] = None, + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the response to be expanded. Provide field names as strings.", + ] = None, + limit_transfers: Annotated[ + int | None, + "The number of outbound transfers to return. Valid range is 1 to 100, default is 10.", + ] = None, + pagination_starting_after: Annotated[ + str | None, + "A cursor for pagination to fetch the next page of the list, using an object ID from a previous request.", # noqa: E501 + ] = None, + outbound_transfer_status_filter: Annotated[ + str | None, + "Filter outbound transfers by status, such as 'processing', 'canceled', 'failed', 'posted', or 'returned'.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTreasuryOutboundTransfers'."]: + """Retrieve outbound transfers from a financial account. + + This tool returns a list of outbound transfers sent from a specified financial account using Stripe's Treasury API.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/outbound_transfers", + params=remove_none_values({ + "ending_before": pagination_cursor_ending_before, + "expand": fields_to_expand, + "financial_account": financial_account_id, + "limit": limit_transfers, + "starting_after": pagination_starting_after, + "status": outbound_transfer_status_filter, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_outbound_transfer_details( + context: ToolContext, + outbound_transfer_id: Annotated[ + str, "The unique identifier for the outbound transfer to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, "A list of fields in the response to be expanded for more details." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetTreasuryOutboundTransfersOutboundTransfer'." +]: + """Retrieve details of a specific outbound transfer. + + Use this tool to get the details of an existing OutboundTransfer by providing the unique OutboundTransfer ID. It helps in tracking and managing outbound transfers.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/outbound_transfers/{outbound_transfer}".format( # noqa: UP032 + outbound_transfer=outbound_transfer_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_received_credit_details( + context: ToolContext, + received_credit_id: Annotated[ + str, + "The unique identifier of the ReceivedCredit to retrieve details for. This ID is required to fetch the specific credit's information.", # noqa: E501 + ], + fields_to_expand: Annotated[ + list[str] | None, "A list of fields in the response to expand for additional details." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTreasuryReceivedCreditsId'."]: + """Retrieve details of a specific ReceivedCredit by ID. + + This tool is used to obtain details about a specific ReceivedCredit in the Stripe Treasury. It requires the unique ReceivedCredit ID to fetch the information.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/received_credits/{id}".format( # noqa: UP032 + id=received_credit_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_received_debits( + context: ToolContext, + financial_account_id: Annotated[ + str, "The ID of the FinancialAccount from which funds were pulled." + ], + pagination_cursor_previous_page: Annotated[ + str | None, + "A cursor for pagination to fetch the previous page of the list. Use an object ID received in a previous response.", # noqa: E501 + ] = None, + expand_fields: Annotated[ + list[str] | None, "List of fields in the response to expand for more detailed information." + ] = None, + max_number_of_debits: Annotated[ + int | None, + "Specify the maximum number of received debits to return. Accepts an integer between 1 and 100, default is 10.", # noqa: E501 + ] = None, + pagination_starting_after: Annotated[ + str | None, "An object ID for pagination to fetch the next page, starting after this ID." + ] = None, + debit_status_filter: Annotated[ + str | None, "Filter results by status: 'succeeded' or 'failed'." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTreasuryReceivedDebits'."]: + """Retrieve a list of received debits from Stripe Treasury. + + Call this tool to obtain a list of received debits, which can be useful for financial reporting or auditing purposes.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/received_debits", + params=remove_none_values({ + "ending_before": pagination_cursor_previous_page, + "expand": expand_fields, + "financial_account": financial_account_id, + "limit": max_number_of_debits, + "starting_after": pagination_starting_after, + "status": debit_status_filter, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_received_debit_details( + context: ToolContext, + received_debit_id: Annotated[ + str, "The unique ID of the ReceivedDebit to retrieve details for. This ID is required." + ], + fields_to_expand: Annotated[ + list[str] | None, "List of response fields to expand for detailed information." + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTreasuryReceivedDebitsId'."]: + """Retrieve details of a specific ReceivedDebit by ID. + + Use this tool to get information about an existing ReceivedDebit by providing its unique ID.""" + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/received_debits/{id}".format( # noqa: UP032 + id=received_debit_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_transaction_entry( + context: ToolContext, + transaction_entry_id: Annotated[ + str, "The unique identifier of the treasury transaction entry to retrieve." + ], + fields_to_expand: Annotated[ + list[str] | None, + "An array of field names to include in the response for additional detail.", + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTreasuryTransactionEntriesId'."]: + """Fetches details of a specific treasury transaction entry. + + Use this tool to retrieve detailed information about a specific transaction entry from Stripe's treasury system by providing the transaction entry ID.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/transaction_entries/{id}".format( # noqa: UP032 + id=transaction_entry_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_treasury_transaction_details( + context: ToolContext, + transaction_id: Annotated[ + str, "The ID of the treasury transaction you want to retrieve details for." + ], + fields_to_expand: Annotated[ + list[str] | None, + "List of fields in the treasury transaction response to be expanded, specified as an array of strings.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetTreasuryTransactionsId'."]: + """Retrieve details of a specific treasury transaction. + + This tool retrieves the details of an existing treasury transaction by its ID. Use it when you need to access specific information about a treasury transaction in Stripe.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/treasury/transactions/{id}".format(id=transaction_id), # noqa: UP032 + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def get_stripe_webhook_endpoints( + context: ToolContext, + pagination_ending_before: Annotated[ + str | None, + "A cursor (object ID) for pagination to fetch the previous page of webhook endpoints.", + ] = None, + expand_fields: Annotated[ + list[str] | None, + "A list of field names to expand in the response, allowing for detailed data retrieval.", + ] = None, + object_limit: Annotated[ + int | None, + "The number of webhook endpoints to return, ranging from 1 to 100. Defaults to 10 if not specified.", # noqa: E501 + ] = None, + pagination_starting_after_id: Annotated[ + str | None, + "An object ID used for pagination to fetch the next page in a list. Use the last object's ID from the current list.", # noqa: E501 + ] = None, +) -> Annotated[dict[str, Any], "Response from the API endpoint 'GetWebhookEndpoints'."]: + """Retrieve a list of your Stripe webhook endpoints. + + This tool is used to retrieve a list of webhook endpoints configured in your Stripe account. It is helpful for managing and verifying your current webhook setup.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/webhook_endpoints", + params=remove_none_values({ + "ending_before": pagination_ending_before, + "expand": expand_fields, + "limit": object_limit, + "starting_after": pagination_starting_after_id, + }), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def delete_stripe_webhook_endpoint( + context: ToolContext, + webhook_endpoint_id: Annotated[ + str, + "The unique identifier for the Stripe webhook endpoint you wish to delete. This ID is required to specify which endpoint should be removed from your Stripe configurations.", # noqa: E501 + ], +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'DeleteWebhookEndpointsWebhookEndpoint'." +]: + """Delete a Stripe webhook endpoint by ID. + + Use this tool to delete a specific webhook endpoint in Stripe by providing its ID, helping manage webhook configurations.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/webhook_endpoints/{webhook_endpoint}".format( # noqa: UP032 + webhook_endpoint=webhook_endpoint_id + ), + method="DELETE", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} + + +@tool(requires_secrets=["STRIPE_API_KEY"]) +async def retrieve_webhook_endpoint( + context: ToolContext, + webhook_endpoint_id: Annotated[ + str, "The unique identifier for the Stripe webhook endpoint you want to retrieve." + ], + fields_to_expand: Annotated[ + list[str] | None, "A list of fields to expand in the response, specified as strings." + ] = None, +) -> Annotated[ + dict[str, Any], "Response from the API endpoint 'GetWebhookEndpointsWebhookEndpoint'." +]: + """Retrieve details of a specified webhook endpoint by ID. + + This tool retrieves information about a Stripe webhook endpoint using its ID. Use it when you need to get details such as status, URL, and events for a specific webhook endpoint.""" # noqa: E501 + async with httpx.AsyncClient() as client: + response = await client.request( + url="https://api.stripe.com/v1/webhook_endpoints/{webhook_endpoint}".format( # noqa: UP032 + webhook_endpoint=webhook_endpoint_id + ), + params=remove_none_values({"expand": fields_to_expand}), + method="GET", + headers=remove_none_values({ + "Authorization": "Bearer {authorization}".format( + authorization=context.get_secret("STRIPE_API_KEY") + ) + }), + ) + response.raise_for_status() + try: + return {"response_json": response.json()} + except Exception: + return {"response_text": response.text} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteAccountPerson.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteAccountPerson.json new file mode 100644 index 00000000..767d2fb8 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteAccountPerson.json @@ -0,0 +1,132 @@ +{ + "name": "DeleteAccountPerson", + "fully_qualified_name": "StripeApi.DeleteAccountPerson@0.1.0", + "description": "Delete a person's relationship to an account in Stripe.\n\nDeletes a person's relationship to the account's legal entity in Stripe, except for the account_opener or the sole verified executive.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "account_id", + "required": true, + "description": "The unique identifier of the account from which a person's relationship will be deleted. This must be a valid Stripe account ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "person_id", + "required": true, + "description": "A unique identifier for the person whose relationship to the account will be deleted. This is required and must be a valid person ID in Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "person" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteAccountsAccountPersonsPerson'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}/persons/{person}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "account", + "tool_parameter_name": "account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "person", + "tool_parameter_name": "person_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteAccountPersonRelationship.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteAccountPersonRelationship.json new file mode 100644 index 00000000..cab21314 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteAccountPersonRelationship.json @@ -0,0 +1,132 @@ +{ + "name": "DeleteAccountPersonRelationship", + "fully_qualified_name": "StripeApi.DeleteAccountPersonRelationship@0.1.0", + "description": "Remove a person's relationship from a Stripe account.\n\nThis tool deletes an existing person's relationship to a Stripe account's legal entity. It cannot delete the account opener or the only verified executive, if applicable.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "account_id", + "required": true, + "description": "The unique identifier for the Stripe account from which the person's relationship will be removed. This ID is required to specify the correct account.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "person_id", + "required": true, + "description": "The unique identifier of the person whose relationship to the account is to be removed.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "person" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteAccountsAccountPeoplePerson'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}/people/{person}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "account", + "tool_parameter_name": "account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "person", + "tool_parameter_name": "person_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteApplePayDomain.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteApplePayDomain.json new file mode 100644 index 00000000..d001a3f3 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteApplePayDomain.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteApplePayDomain", + "fully_qualified_name": "StripeApi.DeleteApplePayDomain@0.1.0", + "description": "Delete an Apple Pay domain from Stripe.\n\nUse this tool to delete a specific Apple Pay domain registered with your Stripe account. This is useful for managing domains no longer required for Apple Pay services.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "apple_pay_domain_to_delete", + "required": true, + "description": "The domain name of the Apple Pay domain you wish to delete from your Stripe account.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "domain" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteApplePayDomainsDomain'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/apple_pay/domains/{domain}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "domain", + "tool_parameter_name": "apple_pay_domain_to_delete", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteCustomerTaxId.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteCustomerTaxId.json new file mode 100644 index 00000000..712ce8be --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteCustomerTaxId.json @@ -0,0 +1,132 @@ +{ + "name": "DeleteCustomerTaxId", + "fully_qualified_name": "StripeApi.DeleteCustomerTaxId@0.1.0", + "description": "Deletes a customer's existing tax ID.\n\nThis tool is used to remove an existing tax ID associated with a specific customer in Stripe. Call this tool to manage customer tax ID records by deleting unnecessary or outdated entries.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_identifier", + "required": true, + "description": "The unique identifier for the customer whose tax ID will be deleted. This is a string provided by Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "tax_id", + "required": true, + "description": "The unique identifier of the tax ID to be deleted for the customer.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteCustomersCustomerTaxIdsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/tax_ids/{id}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "customer", + "tool_parameter_name": "customer_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "tax_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteExternalAccount.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteExternalAccount.json new file mode 100644 index 00000000..0759d727 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteExternalAccount.json @@ -0,0 +1,132 @@ +{ + "name": "DeleteExternalAccount", + "fully_qualified_name": "StripeApi.DeleteExternalAccount@0.1.0", + "description": "Delete a specified external account for a given account.\n\nUse this tool to delete an external account linked to a specific account. Ideal for managing external accounts by removing unwanted or outdated entries.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "account_identifier", + "required": true, + "description": "The unique identifier of the account from which the external account will be deleted.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "external_account_id", + "required": true, + "description": "Unique identifier for the external account to be deleted.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the external account to be deleted." + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteAccountsAccountExternalAccountsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}/external_accounts/{id}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "account", + "tool_parameter_name": "account_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "external_account_id", + "description": "Unique identifier for the external account to be deleted.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the external account to be deleted." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteExternalBankAccount.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteExternalBankAccount.json new file mode 100644 index 00000000..8dce5016 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteExternalBankAccount.json @@ -0,0 +1,132 @@ +{ + "name": "DeleteExternalBankAccount", + "fully_qualified_name": "StripeApi.DeleteExternalBankAccount@0.1.0", + "description": "Delete an external bank account for a specified account.\n\nUse this tool to remove a specified external bank account from a given account. It confirms the successful deletion.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "account_identifier", + "required": true, + "description": "The account ID from which you want to delete an external bank account.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "external_account_id", + "required": true, + "description": "The unique identifier of the external bank account to be deleted.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the external account to be deleted." + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteAccountsAccountBankAccountsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}/bank_accounts/{id}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "account", + "tool_parameter_name": "account_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "external_account_id", + "description": "Unique identifier for the external account to be deleted.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the external account to be deleted." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteInvoiceDraft.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteInvoiceDraft.json new file mode 100644 index 00000000..e628bb48 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteInvoiceDraft.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteInvoiceDraft", + "fully_qualified_name": "StripeApi.DeleteInvoiceDraft@0.1.0", + "description": "Permanently delete a draft invoice.\n\nUse this tool to permanently delete a draft invoice that is not finalized or associated with a subscription. Once deleted, this action cannot be undone.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "invoice_id", + "required": true, + "description": "The unique identifier of the draft invoice to be permanently deleted. Cannot be used on finalized invoices or those associated with subscriptions.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "invoice" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteInvoicesInvoice'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/invoices/{invoice}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "invoice", + "tool_parameter_name": "invoice_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteInvoiceItem.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteInvoiceItem.json new file mode 100644 index 00000000..04eb6891 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteInvoiceItem.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteInvoiceItem", + "fully_qualified_name": "StripeApi.DeleteInvoiceItem@0.1.0", + "description": "Delete an invoice item from a draft or unattached invoice.\n\nUse this tool to delete an invoice item that isn't attached to a final invoice or is part of a draft invoice.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "invoice_item_id", + "required": true, + "description": "The unique identifier of the invoice item to be deleted. It must be either unattached or part of a draft invoice.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "invoiceitem" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteInvoiceitemsInvoiceitem'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/invoiceitems/{invoiceitem}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "invoiceitem", + "tool_parameter_name": "invoice_item_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteProductFeature.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteProductFeature.json new file mode 100644 index 00000000..31fdbb83 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteProductFeature.json @@ -0,0 +1,132 @@ +{ + "name": "DeleteProductFeature", + "fully_qualified_name": "StripeApi.DeleteProductFeature@0.1.0", + "description": "Delete a specific feature from a product.\n\nUse this tool to delete a feature attached to a specific product by providing the product and feature identifiers.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "feature_id", + "required": true, + "description": "The identifier of the feature to be deleted from the product.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "product_id", + "required": true, + "description": "The unique identifier of the product from which the feature is to be deleted. This is required to specify which product's feature should be removed.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "product" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteProductsProductFeaturesId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/products/{product}/features/{id}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "id", + "tool_parameter_name": "feature_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "product", + "tool_parameter_name": "product_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeConnectedAccount.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeConnectedAccount.json new file mode 100644 index 00000000..6fb59f6e --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeConnectedAccount.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteStripeConnectedAccount", + "fully_qualified_name": "StripeApi.DeleteStripeConnectedAccount@0.1.0", + "description": "Delete managed accounts via Stripe Connect.\n\nUse this tool to delete accounts you manage through Stripe Connect. Suitable for test-mode accounts anytime and live-mode accounts except those with standard dashboard access or negative balances. Ensure all balances are zero before deletion.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "account_id_to_delete", + "required": true, + "description": "The unique identifier of the Stripe account to be deleted. Ensure this is a managed account with zero balance.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteAccountsAccount'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "account", + "tool_parameter_name": "account_id_to_delete", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeCoupon.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeCoupon.json new file mode 100644 index 00000000..e07700c6 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeCoupon.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteStripeCoupon", + "fully_qualified_name": "StripeApi.DeleteStripeCoupon@0.1.0", + "description": "Delete a coupon in Stripe without affecting current users.\n\nUse this tool to delete a coupon on Stripe, preventing new customers from redeeming it. Existing customers with the coupon remain unaffected.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "coupon_id", + "required": true, + "description": "The unique identifier of the coupon to delete on Stripe. This ID specifies which coupon should be deleted.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "coupon" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteCouponsCoupon'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/coupons/{coupon}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "coupon", + "tool_parameter_name": "coupon_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeCustomer.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeCustomer.json new file mode 100644 index 00000000..1c67cec4 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeCustomer.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteStripeCustomer", + "fully_qualified_name": "StripeApi.DeleteStripeCustomer@0.1.0", + "description": "Permanently delete a Stripe customer and cancel subscriptions.\n\nUse this tool to permanently delete a customer in Stripe. This action cannot be undone and will immediately cancel any active subscriptions associated with the customer.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier of the customer to be deleted. This ID is required and should match the customer in the Stripe system.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteCustomersCustomer'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripePlan.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripePlan.json new file mode 100644 index 00000000..c06dc391 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripePlan.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteStripePlan", + "fully_qualified_name": "StripeApi.DeleteStripePlan@0.1.0", + "description": "Delete a specified plan from Stripe.\n\nUse this tool to delete a plan in Stripe, preventing new subscriptions to that plan while keeping existing subscribers unaffected.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "plan_id", + "required": true, + "description": "The unique identifier of the plan to be deleted in Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "plan" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeletePlansPlan'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/plans/{plan}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "plan", + "tool_parameter_name": "plan_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeProduct.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeProduct.json new file mode 100644 index 00000000..b3d494f4 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeProduct.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteStripeProduct", + "fully_qualified_name": "StripeApi.DeleteStripeProduct@0.1.0", + "description": "Delete a product from Stripe if eligible.\n\nThis tool deletes a product from Stripe, provided the product has no prices or SKUs associated with it. Use this to remove products when cleaning up a catalog or managing inventory.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "product_id_to_delete", + "required": true, + "description": "The unique identifier of the product to delete. Ensure the product has no prices or SKUs associated with it.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteProductsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/products/{id}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "id", + "tool_parameter_name": "product_id_to_delete", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeValueList.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeValueList.json new file mode 100644 index 00000000..bbe82d48 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeValueList.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteStripeValueList", + "fully_qualified_name": "StripeApi.DeleteStripeValueList@0.1.0", + "description": "Delete a Stripe Radar ValueList and its items.\n\nUse this tool to delete a specified ValueList object in Stripe Radar, along with all its contained items. Ensure the ValueList is not referenced in any rules before calling this tool.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "value_list_id", + "required": true, + "description": "The unique identifier of the ValueList to be deleted. Ensure it is not referenced in any rules before deletion.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "value_list" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteRadarValueListsValueList'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/radar/value_lists/{value_list}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "value_list", + "tool_parameter_name": "value_list_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeWebhookEndpoint.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeWebhookEndpoint.json new file mode 100644 index 00000000..cc2ae419 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteStripeWebhookEndpoint.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteStripeWebhookEndpoint", + "fully_qualified_name": "StripeApi.DeleteStripeWebhookEndpoint@0.1.0", + "description": "Delete a Stripe webhook endpoint by ID.\n\nUse this tool to delete a specific webhook endpoint in Stripe by providing its ID, helping manage webhook configurations.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "webhook_endpoint_id", + "required": true, + "description": "The unique identifier for the Stripe webhook endpoint you wish to delete. This ID is required to specify which endpoint should be removed from your Stripe configurations.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "webhook_endpoint" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteWebhookEndpointsWebhookEndpoint'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/webhook_endpoints/{webhook_endpoint}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "webhook_endpoint", + "tool_parameter_name": "webhook_endpoint_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTaxId.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTaxId.json new file mode 100644 index 00000000..40e8febc --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTaxId.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteTaxId", + "fully_qualified_name": "StripeApi.DeleteTaxId@0.1.0", + "description": "Delete a tax ID from an account or customer.\n\nUse this tool to delete an existing tax ID associated with an account or customer in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "tax_id", + "required": true, + "description": "The identifier of the tax ID to be deleted. This should be the specific tax ID string associated with an account or customer in Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteTaxIdsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax_ids/{id}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "id", + "tool_parameter_name": "tax_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTerminalConfiguration.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTerminalConfiguration.json new file mode 100644 index 00000000..734cff9a --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTerminalConfiguration.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteTerminalConfiguration", + "fully_qualified_name": "StripeApi.DeleteTerminalConfiguration@0.1.0", + "description": "Deletes a terminal configuration.\n\nUse this tool to delete a specific terminal configuration in Stripe by providing the configuration ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "configuration_id_to_delete", + "required": true, + "description": "The ID of the terminal configuration you want to delete from Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "configuration" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteTerminalConfigurationsConfiguration'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/terminal/configurations/{configuration}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "configuration", + "tool_parameter_name": "configuration_id_to_delete", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTerminalLocation.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTerminalLocation.json new file mode 100644 index 00000000..299325a8 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTerminalLocation.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteTerminalLocation", + "fully_qualified_name": "StripeApi.DeleteTerminalLocation@0.1.0", + "description": "Deletes a specified terminal location in Stripe.\n\nUse this tool to delete a specific terminal location in Stripe by providing the location identifier. It removes the location object from the terminal services.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "location_identifier", + "required": true, + "description": "The unique identifier of the terminal location to delete.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "location" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteTerminalLocationsLocation'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/terminal/locations/{location}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "location", + "tool_parameter_name": "location_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTerminalReader.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTerminalReader.json new file mode 100644 index 00000000..ca218d64 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTerminalReader.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteTerminalReader", + "fully_qualified_name": "StripeApi.DeleteTerminalReader@0.1.0", + "description": "Delete a terminal reader from the Stripe account.\n\nThis tool is used to delete a terminal reader object in a Stripe account. It should be called when there is a need to remove a specific reader.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "terminal_reader_id", + "required": true, + "description": "The ID of the terminal reader to be deleted from the Stripe account.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "reader" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteTerminalReadersReader'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/terminal/readers/{reader}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "reader", + "tool_parameter_name": "terminal_reader_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTestClock.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTestClock.json new file mode 100644 index 00000000..aba846f8 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DeleteTestClock.json @@ -0,0 +1,100 @@ +{ + "name": "DeleteTestClock", + "fully_qualified_name": "StripeApi.DeleteTestClock@0.1.0", + "description": "Deletes a test clock in Stripe's test environment.\n\nThis tool is used to delete a specific test clock from Stripe's test environment. Call this tool when you need to remove a test clock that is no longer needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "test_clock_id", + "required": true, + "description": "The unique identifier of the test clock to be deleted from Stripe's test environment.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "test_clock" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteTestHelpersTestClocksTestClock'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/test_helpers/test_clocks/{test_clock}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "test_clock", + "tool_parameter_name": "test_clock_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DownloadQuotePdf.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DownloadQuotePdf.json new file mode 100644 index 00000000..94bcb147 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/DownloadQuotePdf.json @@ -0,0 +1,132 @@ +{ + "name": "DownloadQuotePdf", + "fully_qualified_name": "StripeApi.DownloadQuotePdf@0.1.0", + "description": "Download the PDF for a finalized Stripe quote.\n\nUse this tool to retrieve the PDF document for a completed quote from Stripe. It's useful when you need to obtain the finalized quote in PDF format for record-keeping or sharing purposes.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "quote_id", + "required": true, + "description": "The unique identifier for the finalized quote to download as a PDF. This ID is required to retrieve the specific quote.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "quote" + }, + { + "name": "expand_fields", + "required": false, + "description": "A list of fields in the quote response that should be expanded for additional detail.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetQuotesQuotePdf'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/quotes/{quote}/pdf", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "quote", + "tool_parameter_name": "quote_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetAccountCapabilities.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetAccountCapabilities.json new file mode 100644 index 00000000..6859c098 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetAccountCapabilities.json @@ -0,0 +1,132 @@ +{ + "name": "GetAccountCapabilities", + "fully_qualified_name": "StripeApi.GetAccountCapabilities@0.1.0", + "description": "Retrieve capabilities associated with a Stripe account.\n\nThis tool returns a list of capabilities for a specified Stripe account, sorted by their creation date.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "account_id", + "required": true, + "description": "The ID of the Stripe account for which to retrieve capabilities. This is a required field.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response, specified as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetAccountsAccountCapabilities'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}/capabilities", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetAccountCapabilityDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetAccountCapabilityDetails.json new file mode 100644 index 00000000..c40c4024 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetAccountCapabilityDetails.json @@ -0,0 +1,164 @@ +{ + "name": "GetAccountCapabilityDetails", + "fully_qualified_name": "StripeApi.GetAccountCapabilityDetails@0.1.0", + "description": "Retrieve details of a specific account capability.\n\nThis tool fetches information about a specific capability of an account in Stripe. It should be called when there's a need to understand the capabilities available on an account.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "account_id", + "required": true, + "description": "The unique identifier for the Stripe account whose capability information is being requested.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "account_capability_identifier", + "required": true, + "description": "A unique identifier string for the specific capability of the account to be retrieved. This is essential to specify which capability's details you want to fetch from Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "capability" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields in the response to expand for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetAccountsAccountCapabilitiesCapability'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}/capabilities/{capability}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "capability", + "tool_parameter_name": "account_capability_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetAccountOwners.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetAccountOwners.json new file mode 100644 index 00000000..4c100956 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetAccountOwners.json @@ -0,0 +1,260 @@ +{ + "name": "GetAccountOwners", + "fully_qualified_name": "StripeApi.GetAccountOwners@0.1.0", + "description": "Retrieve owners of a specific linked account.\n\nUse this tool to list all the owners associated with a specific account. This can be helpful for verifying account ownership or managing account permissions.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "ownership_object_id", + "required": true, + "description": "The unique ID of the ownership object to retrieve owners from. This is required to specify which account's owners to list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the ownership object to fetch owners from." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ownership" + }, + { + "name": "linked_account_id", + "required": true, + "description": "The unique identifier of the account to retrieve owners for. This is required to specify which account's owners you want to list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "Cursor ID for pagination to fetch the previous page. Use the object ID from the start of the current list result.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expanded_fields", + "required": false, + "description": "List of fields to be expanded in the response. Specify field names to include more data in the response.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "number_of_owners_to_return", + "required": false, + "description": "Specify the number of account owners to retrieve, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "Cursor for pagination to specify the starting point for the next page of results using an object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetLinkedAccountsAccountOwners'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/linked_accounts/{account}/owners", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expanded_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "number_of_owners_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ownership", + "tool_parameter_name": "ownership_object_id", + "description": "The ID of the ownership object to fetch owners from.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the ownership object to fetch owners from." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "linked_account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "authorization", + "accepted_as": "header", + "formatted_value": null, + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetActiveEntitlements.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetActiveEntitlements.json new file mode 100644 index 00000000..87e444ee --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetActiveEntitlements.json @@ -0,0 +1,228 @@ +{ + "name": "GetActiveEntitlements", + "fully_qualified_name": "StripeApi.GetActiveEntitlements@0.1.0", + "description": "Retrieve active entitlements for a customer from Stripe.\n\nThis tool fetches a list of active entitlements for a specific customer using Stripe's API. It's used when you need to know what entitlements a customer currently has.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier of the customer whose active entitlements are being retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the customer." + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "An object ID cursor to fetch the previous page of the list of active entitlements.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_fields_in_response", + "required": false, + "description": "An array of field names to be expanded in the response from Stripe. Use this to include additional details related to specific entities.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_number_of_entitlements", + "required": false, + "description": "Maximum number of active entitlements to retrieve for the customer, between 1 and 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "Use this to specify where to start the list pagination. Provide the object ID from where the list should continue.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetEntitlementsActiveEntitlements'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/entitlements/active_entitlements", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "The ID of the customer.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the customer." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_fields_in_response", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_number_of_entitlements", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetApplicationFeeRefunds.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetApplicationFeeRefunds.json new file mode 100644 index 00000000..1cc1649c --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetApplicationFeeRefunds.json @@ -0,0 +1,228 @@ +{ + "name": "GetApplicationFeeRefunds", + "fully_qualified_name": "StripeApi.GetApplicationFeeRefunds@0.1.0", + "description": "Retrieve refunds for a specific application fee.\n\nUse this tool to access more than the default 10 refunds associated with a specific application fee, using pagination parameters if needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "application_fee_id", + "required": true, + "description": "The unique identifier of the application fee for which refunds are being retrieved. This ID specifies which fee's refunds should be listed.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "An object ID cursor used for pagination to fetch the previous page of refunds.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to expand for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "maximum_number_of_refunds", + "required": false, + "description": "The maximum number of refund objects to return, ranging from 1 to 100. Defaults to 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "An object ID to fetch the next page of refunds after this ID, used for pagination.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetApplicationFeesIdRefunds'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/application_fees/{id}/refunds", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "maximum_number_of_refunds", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "application_fee_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBalanceSettings.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBalanceSettings.json new file mode 100644 index 00000000..ed4ca947 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBalanceSettings.json @@ -0,0 +1,100 @@ +{ + "name": "GetBalanceSettings", + "fully_qualified_name": "StripeApi.GetBalanceSettings@0.1.0", + "description": "Retrieve balance settings for a connected Stripe account.\n\nUse this tool to obtain the balance settings associated with a specific connected account in Stripe. Useful for managing and reviewing account financial settings.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for the connected Stripe account's balance settings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBalanceSettings'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/balance_settings", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBalanceTransactionById.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBalanceTransactionById.json new file mode 100644 index 00000000..413ffea2 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBalanceTransactionById.json @@ -0,0 +1,132 @@ +{ + "name": "GetBalanceTransactionById", + "fully_qualified_name": "StripeApi.GetBalanceTransactionById@0.1.0", + "description": "Retrieve details of a balance transaction by ID.\n\nCall this tool to get comprehensive information about a specific balance transaction using its ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "transaction_id", + "required": true, + "description": "The unique identifier of the balance transaction to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBalanceTransactionsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/balance_transactions/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "transaction_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingAlert.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingAlert.json new file mode 100644 index 00000000..51310d1b --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingAlert.json @@ -0,0 +1,132 @@ +{ + "name": "GetBillingAlert", + "fully_qualified_name": "StripeApi.GetBillingAlert@0.1.0", + "description": "Retrieve billing alert details by ID.\n\nThis tool retrieves billing alert information from Stripe using a specific alert ID. It should be called when you need details about a particular billing alert.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "billing_alert_id", + "required": true, + "description": "The unique identifier of the billing alert to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields in the response that should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBillingAlertsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/billing/alerts/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "billing_alert_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingAlerts.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingAlerts.json new file mode 100644 index 00000000..8e5943af --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingAlerts.json @@ -0,0 +1,264 @@ +{ + "name": "GetBillingAlerts", + "fully_qualified_name": "StripeApi.GetBillingAlerts@0.1.0", + "description": "Retrieve active and inactive billing alerts.\n\nUse this tool to list all current billing alerts, both active and inactive, from Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "filter_by_alert_type", + "required": false, + "description": "Filter results to only include alerts of the specified type. Accepts 'usage_threshold'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "usage_threshold" + ], + "properties": null, + "inner_properties": null, + "description": "Filter results to only include this type of alert." + }, + "inferrable": true, + "http_endpoint_parameter_name": "alert_type" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "A pagination cursor. Use this ID to fetch the previous page of the list if starting from a specific object.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "List of fields in the response that should be expanded. Each field should be a string.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Specify the maximum number of billing alerts to be returned. Accepts an integer from 1 to 100. Defaults to 10 if not provided.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "filter_by_meter", + "required": false, + "description": "Filter results to only include alerts related to a specific meter type.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Filter results to only include alerts with the given meter." + }, + "inferrable": true, + "http_endpoint_parameter_name": "meter" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "Cursor indicating the starting point for fetching the next page of alerts. Use an object ID from a previous response.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBillingAlerts'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/billing/alerts", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "alert_type", + "tool_parameter_name": "filter_by_alert_type", + "description": "Filter results to only include this type of alert.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "usage_threshold" + ], + "properties": null, + "inner_properties": null, + "description": "Filter results to only include this type of alert." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "meter", + "tool_parameter_name": "filter_by_meter", + "description": "Filter results to only include alerts with the given meter.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Filter results to only include alerts with the given meter." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingCreditGrants.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingCreditGrants.json new file mode 100644 index 00000000..f3ff2616 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingCreditGrants.json @@ -0,0 +1,228 @@ +{ + "name": "GetBillingCreditGrants", + "fully_qualified_name": "StripeApi.GetBillingCreditGrants@0.1.0", + "description": "Retrieve a list of billing credit grants.\n\nUse this tool to retrieve information about billing credit grants from Stripe. It should be called when you need details about existing credit grants.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": false, + "description": "The unique identifier of the customer whose credit grants you want to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return credit grants for this customer." + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "An object ID to fetch the previous page of the list. Use the last received object's ID from the current page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to be expanded in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "credit_grant_limit", + "required": false, + "description": "The maximum number of credit grants to return, between 1 and 100. Defaults to 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "A cursor (object ID) for pagination to fetch the next page in the list. Use the ID from the last object in the previous list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBillingCreditGrants'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/billing/credit_grants", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "Only return credit grants for this customer.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return credit grants for this customer." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "credit_grant_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingMeterEventSummaries.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingMeterEventSummaries.json new file mode 100644 index 00000000..cc414c5d --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingMeterEventSummaries.json @@ -0,0 +1,362 @@ +{ + "name": "GetBillingMeterEventSummaries", + "fully_qualified_name": "StripeApi.GetBillingMeterEventSummaries@0.1.0", + "description": "Retrieve billing meter event summaries by meter ID.\n\nCall this tool to get a list of billing meter event summaries for a specific meter ID, providing insights into billing events and activities.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier of the customer for which to fetch event summaries.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The customer for which to fetch event summaries." + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "stop_aggregating_until", + "required": true, + "description": "The exclusive timestamp to stop aggregating meter events. Ensure it aligns with minute boundaries.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries." + }, + "inferrable": true, + "http_endpoint_parameter_name": "end_time" + }, + { + "name": "start_time_timestamp", + "required": true, + "description": "The timestamp to begin aggregating meter events (inclusive). Must align with minute boundaries.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries." + }, + "inferrable": true, + "http_endpoint_parameter_name": "start_time" + }, + { + "name": "meter_id", + "required": true, + "description": "The unique identifier for the billing meter to fetch event summaries for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the object." + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "pagination_ending_before_id", + "required": false, + "description": "An object ID for pagination, used to fetch the previous page of a list. Aligns the list cursor to end before the specified object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for detailed results.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "number_of_objects_limit", + "required": false, + "description": "A limit on the number of billing meter event summaries to be returned. Must be between 1 and 100, with a default of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_id", + "required": false, + "description": "The object ID to use as a cursor to fetch the next page of the list for pagination.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "granularity_for_event_summaries", + "required": false, + "description": "Specifies the granularity for event summaries: 'hour' or 'day'. If not set, returns a single summary for the time range.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "day", + "hour" + ], + "properties": null, + "inner_properties": null, + "description": "Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. For hourly granularity, start and end times must align with hour boundaries (e.g., 00:00, 01:00, ..., 23:00). For daily granularity, start and end times must align with UTC day boundaries (00:00 UTC)." + }, + "inferrable": true, + "http_endpoint_parameter_name": "value_grouping_window" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBillingMetersIdEventSummaries'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/billing/meters/{id}/event_summaries", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "The customer for which to fetch event summaries.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The customer for which to fetch event summaries." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "end_time", + "tool_parameter_name": "stop_aggregating_until", + "description": "The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_id", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "number_of_objects_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "start_time", + "tool_parameter_name": "start_time_timestamp", + "description": "The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "value_grouping_window", + "tool_parameter_name": "granularity_for_event_summaries", + "description": "Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. For hourly granularity, start and end times must align with hour boundaries (e.g., 00:00, 01:00, ..., 23:00). For daily granularity, start and end times must align with UTC day boundaries (00:00 UTC).", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "day", + "hour" + ], + "properties": null, + "inner_properties": null, + "description": "Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. For hourly granularity, start and end times must align with hour boundaries (e.g., 00:00, 01:00, ..., 23:00). For daily granularity, start and end times must align with UTC day boundaries (00:00 UTC)." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "meter_id", + "description": "Unique identifier for the object.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the object." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingMeters.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingMeters.json new file mode 100644 index 00000000..4e4511d4 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingMeters.json @@ -0,0 +1,234 @@ +{ + "name": "GetBillingMeters", + "fully_qualified_name": "StripeApi.GetBillingMeters@0.1.0", + "description": "Retrieve a list of billing meters from Stripe.\n\n", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before", + "required": false, + "description": "An object ID cursor to fetch the previous page, used for pagination.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "An array of strings specifying which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "number_of_billing_meters", + "required": false, + "description": "Specify the number of billing meters to return, ranging from 1 to 100 (default is 10).", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "Cursor ID to define your starting point in the list for pagination. Use this to fetch the next page of results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "filter_status", + "required": false, + "description": "Filter results to include only billing meters with the specified status. Options are 'active' or 'inactive'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "active", + "inactive" + ], + "properties": null, + "inner_properties": null, + "description": "Filter results to only include meters with the given status." + }, + "inferrable": true, + "http_endpoint_parameter_name": "status" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBillingMeters'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/billing/meters", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "number_of_billing_meters", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "status", + "tool_parameter_name": "filter_status", + "description": "Filter results to only include meters with the given status.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "active", + "inactive" + ], + "properties": null, + "inner_properties": null, + "description": "Filter results to only include meters with the given status." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingPortalConfigurations.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingPortalConfigurations.json new file mode 100644 index 00000000..02ee6e59 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetBillingPortalConfigurations.json @@ -0,0 +1,260 @@ +{ + "name": "GetBillingPortalConfigurations", + "fully_qualified_name": "StripeApi.GetBillingPortalConfigurations@0.1.0", + "description": "Retrieve customer portal configurations from Stripe.\n\nProvides configurations that describe the functionality of the billing customer portal. Useful for understanding available setups and settings for customer management.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "A cursor for pagination to get the previous page in the list, using an object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded. Each entry should be a string representing a field name.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Specify the number of configurations to return, between 1 and 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_start_after_id", + "required": false, + "description": "A cursor object ID used to fetch the next page of the list for pagination.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "only_active_configurations", + "required": false, + "description": "Set to true to list only active configurations, or false to list inactive ones.", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return configurations that are active or inactive (e.g., pass `true` to only list active configurations)." + }, + "inferrable": true, + "http_endpoint_parameter_name": "active" + }, + { + "name": "return_default_configurations_only", + "required": false, + "description": "Set to true to return only default configurations, or false to return non-default configurations.", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return the default or non-default configurations (e.g., pass `true` to only list the default configuration)." + }, + "inferrable": true, + "http_endpoint_parameter_name": "is_default" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBillingPortalConfigurations'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/billing_portal/configurations", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "active", + "tool_parameter_name": "only_active_configurations", + "description": "Only return configurations that are active or inactive (e.g., pass `true` to only list active configurations).", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return configurations that are active or inactive (e.g., pass `true` to only list active configurations)." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "is_default", + "tool_parameter_name": "return_default_configurations_only", + "description": "Only return the default or non-default configurations (e.g., pass `true` to only list the default configuration).", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return the default or non-default configurations (e.g., pass `true` to only list the default configuration)." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_start_after_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetChargeDisputeDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetChargeDisputeDetails.json new file mode 100644 index 00000000..eb9410f6 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetChargeDisputeDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetChargeDisputeDetails", + "fully_qualified_name": "StripeApi.GetChargeDisputeDetails@0.1.0", + "description": "Retrieve details of a dispute for a specific charge.\n\nUse this tool to fetch information about a dispute associated with a particular charge. This is helpful when you need to understand the dispute details for a specific transaction processed via Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "charge_id", + "required": true, + "description": "The unique identifier of the charge for which you want to retrieve dispute details.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "charge" + }, + { + "name": "fields_to_expand_in_dispute_response", + "required": false, + "description": "List of fields to expand in the dispute response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetChargesChargeDispute'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/charges/{charge}/dispute", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand_in_dispute_response", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "charge", + "tool_parameter_name": "charge_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetChargeRefunds.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetChargeRefunds.json new file mode 100644 index 00000000..a9237e38 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetChargeRefunds.json @@ -0,0 +1,228 @@ +{ + "name": "GetChargeRefunds", + "fully_qualified_name": "StripeApi.GetChargeRefunds@0.1.0", + "description": "Retrieve refunds for a specific charge on Stripe.\n\nThis tool retrieves a list of refunds associated with a specific charge on Stripe. It provides access to more than the 10 most recent refunds by allowing pagination through the 'limit' and 'starting_after' parameters.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "charge_id", + "required": true, + "description": "The unique identifier of the charge for which to retrieve refunds. This ID is required to specify the particular charge.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "charge" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "Specify an object ID to fetch the previous page of refunds before this object.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "object_return_limit", + "required": false, + "description": "Specify the number of refunds to return, ranging from 1 to 100. Defaults to 10 if not set.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "ID of the object to start retrieving the next page from. Used for pagination in refund lists.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetChargesChargeRefunds'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/charges/{charge}/refunds", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "object_return_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "charge", + "tool_parameter_name": "charge_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCheckoutSessionLineItems.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCheckoutSessionLineItems.json new file mode 100644 index 00000000..33c6dd1c --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCheckoutSessionLineItems.json @@ -0,0 +1,228 @@ +{ + "name": "GetCheckoutSessionLineItems", + "fully_qualified_name": "StripeApi.GetCheckoutSessionLineItems@0.1.0", + "description": "Fetch line items from a Stripe Checkout Session.\n\nUse this tool to retrieve line items associated with a specific Stripe Checkout Session, including a paginated list if required.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "checkout_session_id", + "required": true, + "description": "The unique identifier for the Stripe Checkout Session. This ID is required to retrieve associated line items.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "session" + }, + { + "name": "cursor_ending_before", + "required": false, + "description": "An object ID used for pagination to retrieve the page before the specified object in the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "item_limit", + "required": false, + "description": "Sets the maximum number of line items to return, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "A string representing the object ID to start the list after, for pagination purposes.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCheckoutSessionsSessionLineItems'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/checkout/sessions/{session}/line_items", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "item_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "session", + "tool_parameter_name": "checkout_session_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetClimateOrderDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetClimateOrderDetails.json new file mode 100644 index 00000000..763093fc --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetClimateOrderDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetClimateOrderDetails", + "fully_qualified_name": "StripeApi.GetClimateOrderDetails@0.1.0", + "description": "Retrieve details of a specific Climate order.\n\nUse this tool to get information about a Climate order based on its ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "order_id", + "required": true, + "description": "Unique identifier for the Climate order to retrieve details.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier of the order." + }, + "inferrable": true, + "http_endpoint_parameter_name": "order" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetClimateOrdersOrder'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/climate/orders/{order}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "order", + "tool_parameter_name": "order_id", + "description": "Unique identifier of the order.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier of the order." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetConfirmationTokenInfo.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetConfirmationTokenInfo.json new file mode 100644 index 00000000..8af1329f --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetConfirmationTokenInfo.json @@ -0,0 +1,132 @@ +{ + "name": "GetConfirmationTokenInfo", + "fully_qualified_name": "StripeApi.GetConfirmationTokenInfo@0.1.0", + "description": "Retrieves details of an existing confirmation token.\n\nThis tool is used to retrieve information about a specific ConfirmationToken object in the Stripe system. It should be called when there is a need to obtain the details of a previously generated confirmation token.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "confirmation_token", + "required": true, + "description": "The unique identifier of the confirmation token to retrieve details for. This is required.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "confirmation_token" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response for additional details. Each field should be specified as a string.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetConfirmationTokensConfirmationToken'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/confirmation_tokens/{confirmation_token}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "confirmation_token", + "tool_parameter_name": "confirmation_token", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCountrySpecifications.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCountrySpecifications.json new file mode 100644 index 00000000..952924a3 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCountrySpecifications.json @@ -0,0 +1,132 @@ +{ + "name": "GetCountrySpecifications", + "fully_qualified_name": "StripeApi.GetCountrySpecifications@0.1.0", + "description": "Retrieve country specifications using a country code.\n\nThis tool is used to obtain the specifications for a specific country by providing its country code. It should be called when information related to the country's financial regulations, formats, or other specifications is needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "country_code", + "required": true, + "description": "The ISO 3166-1 alpha-2 country code for which you want to retrieve specifications. For example, 'US' for the United States.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "country" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to be expanded. Each field should be specified as a string.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCountrySpecsCountry'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/country_specs/{country}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "country", + "tool_parameter_name": "country_code", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCouponDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCouponDetails.json new file mode 100644 index 00000000..ef291828 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCouponDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetCouponDetails", + "fully_qualified_name": "StripeApi.GetCouponDetails@0.1.0", + "description": "Retrieve details of a coupon by its ID.\n\nUse this tool to fetch information about a specific coupon available in your Stripe account, identified by its unique ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "coupon_id", + "required": true, + "description": "The unique identifier of the coupon to retrieve details.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "coupon" + }, + { + "name": "expanded_fields", + "required": false, + "description": "A list of fields in the response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCouponsCoupon'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/coupons/{coupon}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expanded_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "coupon", + "tool_parameter_name": "coupon_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditBalanceTransaction.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditBalanceTransaction.json new file mode 100644 index 00000000..496a7a75 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditBalanceTransaction.json @@ -0,0 +1,132 @@ +{ + "name": "GetCreditBalanceTransaction", + "fully_qualified_name": "StripeApi.GetCreditBalanceTransaction@0.1.0", + "description": "Retrieve a credit balance transaction by ID.\n\nUse this tool to obtain information about a specific credit balance transaction using its ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "transaction_id", + "required": true, + "description": "Unique identifier for the credit balance transaction to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the object." + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "An array of field names to expand in the response. Allows accessing nested information related to the transaction.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBillingCreditBalanceTransactionsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/billing/credit_balance_transactions/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "transaction_id", + "description": "Unique identifier for the object.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the object." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditBalanceTransactions.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditBalanceTransactions.json new file mode 100644 index 00000000..59693a10 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditBalanceTransactions.json @@ -0,0 +1,260 @@ +{ + "name": "GetCreditBalanceTransactions", + "fully_qualified_name": "StripeApi.GetCreditBalanceTransactions@0.1.0", + "description": "Retrieve a list of credit balance transactions.\n\nThis tool calls the Stripe API endpoint to fetch credit balance transactions. It should be used to review or analyze credit activity associated with billing accounts.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier of the customer for which to fetch credit balance transactions.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The customer for which to fetch credit balance transactions." + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "credit_grant_id", + "required": false, + "description": "The identifier for the specific credit grant to fetch its credit balance transactions.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The credit grant for which to fetch credit balance transactions." + }, + "inferrable": true, + "http_endpoint_parameter_name": "credit_grant" + }, + { + "name": "pagination_ending_cursor", + "required": false, + "description": "A pagination cursor ID to fetch the previous page of the list. Use an object ID to identify your position.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_transactions_to_return", + "required": false, + "description": "Specify the maximum number of transactions to return, ranging between 1 and 100. The default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "An object ID cursor to fetch the next page of credit balance transactions.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBillingCreditBalanceTransactions'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/billing/credit_balance_transactions", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "credit_grant", + "tool_parameter_name": "credit_grant_id", + "description": "The credit grant for which to fetch credit balance transactions.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The credit grant for which to fetch credit balance transactions." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "The customer for which to fetch credit balance transactions.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The customer for which to fetch credit balance transactions." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_cursor", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_transactions_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditReversalDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditReversalDetails.json new file mode 100644 index 00000000..013b159a --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditReversalDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetCreditReversalDetails", + "fully_qualified_name": "StripeApi.GetCreditReversalDetails@0.1.0", + "description": "Retrieve details of a specific CreditReversal using its ID.\n\nUse this tool to fetch information about an existing CreditReversal by providing its unique ID. Ideal for confirming details or reviewing the status of a CreditReversal transaction.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "credit_reversal_id", + "required": true, + "description": "The unique ID of the CreditReversal to retrieve details for. This ID is obtained from the CreditReversal creation request or list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "credit_reversal" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryCreditReversalsCreditReversal'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/credit_reversals/{credit_reversal}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "credit_reversal", + "tool_parameter_name": "credit_reversal_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditReversals.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditReversals.json new file mode 100644 index 00000000..52b4a360 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCreditReversals.json @@ -0,0 +1,300 @@ +{ + "name": "GetCreditReversals", + "fully_qualified_name": "StripeApi.GetCreditReversals@0.1.0", + "description": "Retrieve a list of Credit Reversals from Stripe's Treasury.\n\nThis tool fetches a list of Credit Reversals from Stripe's Treasury endpoint. It should be used when detailed information about credit reversals is needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "financial_account_id", + "required": true, + "description": "The ID of the FinancialAccount associated with the CreditReversals to be returned.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Returns objects associated with this FinancialAccount." + }, + "inferrable": true, + "http_endpoint_parameter_name": "financial_account" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "A cursor object ID for pagination to fetch the previous list page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to be expanded in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_objects_returned", + "required": false, + "description": "Sets the maximum number of credit reversals to be returned. Valid range is 1 to 100, defaulting to 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "filter_by_received_credit_id", + "required": false, + "description": "Filter Credit Reversals to only include those associated with the specified ReceivedCredit ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return CreditReversals for the ReceivedCredit ID." + }, + "inferrable": true, + "http_endpoint_parameter_name": "received_credit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "An object ID used to fetch the next page of the list in a paginated response.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "credit_reversal_status", + "required": false, + "description": "Filter CreditReversals based on their status. Possible values are: canceled, posted, processing.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "canceled", + "posted", + "processing" + ], + "properties": null, + "inner_properties": null, + "description": "Only return CreditReversals for a given status." + }, + "inferrable": true, + "http_endpoint_parameter_name": "status" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryCreditReversals'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/credit_reversals", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "financial_account", + "tool_parameter_name": "financial_account_id", + "description": "Returns objects associated with this FinancialAccount.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Returns objects associated with this FinancialAccount." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_objects_returned", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "received_credit", + "tool_parameter_name": "filter_by_received_credit_id", + "description": "Only return CreditReversals for the ReceivedCredit ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return CreditReversals for the ReceivedCredit ID." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "status", + "tool_parameter_name": "credit_reversal_status", + "description": "Only return CreditReversals for a given status.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "canceled", + "posted", + "processing" + ], + "properties": null, + "inner_properties": null, + "description": "Only return CreditReversals for a given status." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCurrentAccountBalance.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCurrentAccountBalance.json new file mode 100644 index 00000000..ad6aeec1 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCurrentAccountBalance.json @@ -0,0 +1,100 @@ +{ + "name": "GetCurrentAccountBalance", + "fully_qualified_name": "StripeApi.GetCurrentAccountBalance@0.1.0", + "description": "Retrieve the current account balance from Stripe.\n\nUse this tool to get the current account balance based on the authentication used. It's helpful for accessing up-to-date financial data from the Stripe account.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBalance'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/balance", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBalanceTransaction.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBalanceTransaction.json new file mode 100644 index 00000000..f617e7e0 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBalanceTransaction.json @@ -0,0 +1,164 @@ +{ + "name": "GetCustomerBalanceTransaction", + "fully_qualified_name": "StripeApi.GetCustomerBalanceTransaction@0.1.0", + "description": "Retrieve a specific customer balance transaction from Stripe.\n\nThis tool retrieves details about a specific balance transaction that impacted a customer's balance in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer. This is required to retrieve the specific balance transaction.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "transaction_id", + "required": true, + "description": "The unique identifier for the customer balance transaction to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "transaction" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerBalanceTransactionsTransaction'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/balance_transactions/{transaction}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "transaction", + "tool_parameter_name": "transaction_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBalanceTransactions.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBalanceTransactions.json new file mode 100644 index 00000000..3270760a --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBalanceTransactions.json @@ -0,0 +1,228 @@ +{ + "name": "GetCustomerBalanceTransactions", + "fully_qualified_name": "StripeApi.GetCustomerBalanceTransactions@0.1.0", + "description": "Retrieve a customer's balance transaction updates.\n\nFetches a list of transactions that have updated a customer's balance within Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier of the customer. This ID is used to retrieve balance transaction updates for that specific customer.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "pagination_ending_before_cursor", + "required": false, + "description": "A cursor ID used to fetch the previous page of balance transactions in pagination.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Sets the maximum number of balance transactions to retrieve, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "A cursor for pagination. Use the object ID from the last received page to fetch the next page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerBalanceTransactions'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/balance_transactions", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_cursor", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBankAccountDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBankAccountDetails.json new file mode 100644 index 00000000..52cd7e0e --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBankAccountDetails.json @@ -0,0 +1,164 @@ +{ + "name": "GetCustomerBankAccountDetails", + "fully_qualified_name": "StripeApi.GetCustomerBankAccountDetails@0.1.0", + "description": "Retrieve details of a customer's bank account from Stripe.\n\nUse this tool to get specific details about a bank account associated with a Stripe customer. It helps when you need information beyond the most recent sources shown by default.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the Stripe customer whose bank account details are being retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "bank_account_id", + "required": true, + "description": "The unique identifier for the specific bank account associated with the Stripe customer.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to expand for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerBankAccountsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/bank_accounts/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "bank_account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBankAccounts.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBankAccounts.json new file mode 100644 index 00000000..012d1811 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerBankAccounts.json @@ -0,0 +1,228 @@ +{ + "name": "GetCustomerBankAccounts", + "fully_qualified_name": "StripeApi.GetCustomerBankAccounts@0.1.0", + "description": "Retrieve bank accounts for a specific customer.\n\nCall this tool to obtain a list of bank accounts associated with a particular customer. Useful for viewing more than the 10 most recent bank accounts when paginating.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier of the customer whose bank accounts you want to retrieve. This ID is required to access the bank account details associated with a specific customer.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "An object ID used as a cursor to fetch the previous page of bank accounts in a paginated list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response. Specify which aspects of the response should be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "The maximum number of bank accounts to return, ranging from 1 to 100. Defaults to 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_cursor_starting_after", + "required": false, + "description": "A string specifying the object ID to define your place in the list for pagination. Use this to fetch the next page of bank accounts.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerBankAccounts'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/bank_accounts", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_cursor_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCardDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCardDetails.json new file mode 100644 index 00000000..dc0c7c68 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCardDetails.json @@ -0,0 +1,164 @@ +{ + "name": "GetCustomerCardDetails", + "fully_qualified_name": "StripeApi.GetCustomerCardDetails@0.1.0", + "description": "Retrieve details about a specific card for a customer.\n\nThis tool retrieves information about a specific card associated with a customer, allowing you to access details beyond the most recent 10 cards available directly on the customer object.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer whose card details are being retrieved. This is required to specify which customer's card information you want to access.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "card_id", + "required": true, + "description": "The unique identifier of the card to retrieve details for. This is specific to the card associated with the customer.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerCardsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/cards/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "card_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCards.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCards.json new file mode 100644 index 00000000..c01c4860 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCards.json @@ -0,0 +1,228 @@ +{ + "name": "GetCustomerCards", + "fully_qualified_name": "StripeApi.GetCustomerCards@0.1.0", + "description": "Retrieve a list of cards belonging to a customer.\n\nUse this tool to access a list of cards for a specific customer in the Stripe system. This is useful when more than the 10 most recent card sources are needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer whose cards are to be retrieved. This ID is required to obtain the card list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "Object ID to define the cursor's place in pagination, used to fetch the previous page of the card list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "card_retrieval_limit", + "required": false, + "description": "Specify the maximum number of cards to retrieve. The limit must be between 1 and 100, with a default of 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "An object ID indicating the position to start fetching the next page of the card list. Use this for pagination.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerCards'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/cards", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "card_retrieval_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCashBalance.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCashBalance.json new file mode 100644 index 00000000..38be4d4f --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCashBalance.json @@ -0,0 +1,132 @@ +{ + "name": "GetCustomerCashBalance", + "fully_qualified_name": "StripeApi.GetCustomerCashBalance@0.1.0", + "description": "Retrieve a customer's cash balance on Stripe.\n\nThis tool retrieves the cash balance of a specific customer from Stripe. It should be called when there's a need to check the available balance for a customer account.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier of the customer whose cash balance is being retrieved. This ID is used to specify which customer's balance should be returned.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "An array of strings specifying which fields in the response should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerCashBalance'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/cash_balance", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCashBalanceTransactions.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCashBalanceTransactions.json new file mode 100644 index 00000000..bef56cbf --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerCashBalanceTransactions.json @@ -0,0 +1,228 @@ +{ + "name": "GetCustomerCashBalanceTransactions", + "fully_qualified_name": "StripeApi.GetCustomerCashBalanceTransactions@0.1.0", + "description": "Retrieve transactions modifying a customer's cash balance.\n\nThis tool returns a list of transactions that have modified a customer's cash balance. Use this to track financial changes in a customer's account.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier of the customer whose cash balance transactions are to be retrieved. This ID is required for the API call.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "A string representing the ID used for pagination to fetch the previous page of transactions.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields to expand in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "transaction_limit", + "required": false, + "description": "The number of transactions to return, between 1 and 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "Object ID cursor for pagination to continue listing transactions after a specified object.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerCashBalanceTransactions'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/cash_balance_transactions", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "transaction_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerPaymentMethod.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerPaymentMethod.json new file mode 100644 index 00000000..3cc38383 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerPaymentMethod.json @@ -0,0 +1,164 @@ +{ + "name": "GetCustomerPaymentMethod", + "fully_qualified_name": "StripeApi.GetCustomerPaymentMethod@0.1.0", + "description": "Retrieve a customer's specific payment method.\n\nThis tool retrieves detailed information about a specific PaymentMethod linked to a given customer. It should be called when there is a need to access or verify details of a particular payment method for a customer in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer whose payment method information is being retrieved. This ID should be a string matching the customer's record in Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "payment_method_id", + "required": true, + "description": "The unique identifier for the payment method to retrieve for the customer.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "payment_method" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the payment method response that should be expanded for more details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerPaymentMethodsPaymentMethod'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/payment_methods/{payment_method}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "payment_method", + "tool_parameter_name": "payment_method_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerPaymentMethods.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerPaymentMethods.json new file mode 100644 index 00000000..3896f1d1 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerPaymentMethods.json @@ -0,0 +1,400 @@ +{ + "name": "GetCustomerPaymentMethods", + "fully_qualified_name": "StripeApi.GetCustomerPaymentMethods@0.1.0", + "description": "Retrieve payment methods for a specific customer.\n\nThis tool should be called to obtain a list of payment methods associated with a particular customer in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "Unique identifier for the customer whose payment methods are to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "enable_redisplay_setting", + "required": false, + "description": "Indicates if the payment method can be shown again in a checkout flow. Options: 'always', 'limited', 'unspecified'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "always", + "limited", + "unspecified" + ], + "properties": null, + "inner_properties": null, + "description": "This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow." + }, + "inferrable": true, + "http_endpoint_parameter_name": "allow_redisplay" + }, + { + "name": "pagination_ending_before_id", + "required": false, + "description": "An object ID used to paginate backwards by defining the end of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "response_fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_payment_methods_returned", + "required": false, + "description": "Limit the number of payment methods returned. Accepts a value between 1 and 100, with a default of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "Cursor for pagination that defines the start point in the list. Use the ID of the last object from the previous page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "payment_method_type_filter", + "required": false, + "description": "Specify a payment method type to filter the list. Without filtering, all types are included. Choose from options like 'card', 'paypal', etc.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "blik", + "boleto", + "card", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "giropay", + "grabpay", + "ideal", + "kakao_pay", + "klarna", + "konbini", + "kr_card", + "link", + "mb_way", + "mobilepay", + "multibanco", + "naver_pay", + "nz_bank_account", + "oxxo", + "p24", + "pay_by_bank", + "payco", + "paynow", + "paypal", + "pix", + "promptpay", + "revolut_pay", + "samsung_pay", + "satispay", + "sepa_debit", + "sofort", + "swish", + "twint", + "us_bank_account", + "wechat_pay", + "zip" + ], + "properties": null, + "inner_properties": null, + "description": "An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request." + }, + "inferrable": true, + "http_endpoint_parameter_name": "type" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerPaymentMethods'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/payment_methods", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "allow_redisplay", + "tool_parameter_name": "enable_redisplay_setting", + "description": "This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "always", + "limited", + "unspecified" + ], + "properties": null, + "inner_properties": null, + "description": "This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_id", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "response_fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_payment_methods_returned", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "type", + "tool_parameter_name": "payment_method_type_filter", + "description": "An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "blik", + "boleto", + "card", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "giropay", + "grabpay", + "ideal", + "kakao_pay", + "klarna", + "konbini", + "kr_card", + "link", + "mb_way", + "mobilepay", + "multibanco", + "naver_pay", + "nz_bank_account", + "oxxo", + "p24", + "pay_by_bank", + "payco", + "paynow", + "paypal", + "pix", + "promptpay", + "revolut_pay", + "samsung_pay", + "satispay", + "sepa_debit", + "sofort", + "swish", + "twint", + "us_bank_account", + "wechat_pay", + "zip" + ], + "properties": null, + "inner_properties": null, + "description": "An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerPortalConfiguration.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerPortalConfiguration.json new file mode 100644 index 00000000..89c55f3b --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerPortalConfiguration.json @@ -0,0 +1,132 @@ +{ + "name": "GetCustomerPortalConfiguration", + "fully_qualified_name": "StripeApi.GetCustomerPortalConfiguration@0.1.0", + "description": "Retrieve customer portal configuration details.\n\nFetches the configuration that outlines the functionality of the billing portal for a specific customer.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "configuration_id", + "required": true, + "description": "The unique identifier for the customer portal configuration to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "configuration" + }, + { + "name": "expand_fields_in_response", + "required": false, + "description": "A list of field names in the response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBillingPortalConfigurationsConfiguration'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/billing_portal/configurations/{configuration}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields_in_response", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "configuration", + "tool_parameter_name": "configuration_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerSubscriptions.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerSubscriptions.json new file mode 100644 index 00000000..4dc948b2 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerSubscriptions.json @@ -0,0 +1,228 @@ +{ + "name": "GetCustomerSubscriptions", + "fully_qualified_name": "StripeApi.GetCustomerSubscriptions@0.1.0", + "description": "Retrieve a customer's active subscriptions.\n\nUse this tool to obtain a list of active subscriptions for a specific customer. Useful for viewing subscription details beyond the default 10 most recent active subscriptions available on the customer object.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer whose subscriptions are being retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "pagination_ending_before_cursor", + "required": false, + "description": "An object ID to define your position in pagination. Use this cursor to fetch the previous page of subscriptions.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "subscription_limit", + "required": false, + "description": "The maximum number of subscription objects to return. Must be between 1 and 100, defaulting to 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_object_id", + "required": false, + "description": "An object ID used as a cursor to fetch the next page of subscriptions in a paginated list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerSubscriptions'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/subscriptions", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_cursor", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "subscription_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_object_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerTaxId.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerTaxId.json new file mode 100644 index 00000000..a182336b --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerTaxId.json @@ -0,0 +1,164 @@ +{ + "name": "GetCustomerTaxId", + "fully_qualified_name": "StripeApi.GetCustomerTaxId@0.1.0", + "description": "Retrieve a specific customer's tax ID information.\n\nThis tool retrieves the tax ID object for a specified customer using the given tax ID identifier.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_identifier", + "required": true, + "description": "The unique identifier of the customer whose tax ID is to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "tax_id_identifier", + "required": true, + "description": "The unique identifier of the customer's tax ID to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "A list of field names in the response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerTaxIdsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/tax_ids/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "tax_id_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerTaxIds.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerTaxIds.json new file mode 100644 index 00000000..4271d5ab --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetCustomerTaxIds.json @@ -0,0 +1,228 @@ +{ + "name": "GetCustomerTaxIds", + "fully_qualified_name": "StripeApi.GetCustomerTaxIds@0.1.0", + "description": "Retrieve a customer's tax IDs from their profile.\n\nCall this tool to get a list of all tax IDs associated with a specific customer. It gathers the tax identification numbers stored in a customer's account on Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The ID of the customer for whom the tax IDs are being retrieved. This is a required field.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "Cursor object ID to fetch the previous page in a paginated list. Use the ID from the starting object of the current list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_fields", + "required": false, + "description": "A list of fields in the response that should be expanded. Provide field names as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_number_of_tax_ids", + "required": false, + "description": "Specify the maximum number of tax IDs to return. Accepts an integer between 1 and 100, with a default value of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "An object ID from the current list to continue fetching the next page in pagination.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerTaxIds'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/tax_ids", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_number_of_tax_ids", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetDebitReversalsList.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetDebitReversalsList.json new file mode 100644 index 00000000..cc984a27 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetDebitReversalsList.json @@ -0,0 +1,338 @@ +{ + "name": "GetDebitReversalsList", + "fully_qualified_name": "StripeApi.GetDebitReversalsList@0.1.0", + "description": "Retrieves a list of debit reversals from Stripe.\n\nUse this tool to obtain a list of debit reversals from the Stripe Treasury API, which provides details on reversed debit transactions.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "financial_account_id", + "required": true, + "description": "The ID of the FinancialAccount to retrieve associated debit reversals.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Returns objects associated with this FinancialAccount." + }, + "inferrable": true, + "http_endpoint_parameter_name": "financial_account" + }, + { + "name": "pagination_ending_before_cursor", + "required": false, + "description": "A cursor object ID for pagination. Use this to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to expand for obtaining additional nested information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_number_of_debit_reversals", + "required": false, + "description": "The maximum number of debit reversals to return. Must be between 1 and 100. Defaults to 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "filter_by_received_debit_id", + "required": false, + "description": "The ID of the ReceivedDebit to filter debit reversals by. Only returns reversals for this specific ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return DebitReversals for the ReceivedDebit ID." + }, + "inferrable": true, + "http_endpoint_parameter_name": "received_debit" + }, + { + "name": "resolution_status", + "required": false, + "description": "Filter DebitReversals based on the resolution ('lost' or 'won').", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "lost", + "won" + ], + "properties": null, + "inner_properties": null, + "description": "Only return DebitReversals for a given resolution." + }, + "inferrable": true, + "http_endpoint_parameter_name": "resolution" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "An object ID that serves as a pagination cursor for fetching the next page of results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "filter_by_status", + "required": false, + "description": "Specify the status of DebitReversals to return. Options are: 'canceled', 'completed', or 'processing'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "canceled", + "completed", + "processing" + ], + "properties": null, + "inner_properties": null, + "description": "Only return DebitReversals for a given status." + }, + "inferrable": true, + "http_endpoint_parameter_name": "status" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryDebitReversals'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/debit_reversals", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_cursor", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "financial_account", + "tool_parameter_name": "financial_account_id", + "description": "Returns objects associated with this FinancialAccount.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Returns objects associated with this FinancialAccount." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_number_of_debit_reversals", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "received_debit", + "tool_parameter_name": "filter_by_received_debit_id", + "description": "Only return DebitReversals for the ReceivedDebit ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return DebitReversals for the ReceivedDebit ID." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "resolution", + "tool_parameter_name": "resolution_status", + "description": "Only return DebitReversals for a given resolution.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "lost", + "won" + ], + "properties": null, + "inner_properties": null, + "description": "Only return DebitReversals for a given resolution." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "status", + "tool_parameter_name": "filter_by_status", + "description": "Only return DebitReversals for a given status.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "canceled", + "completed", + "processing" + ], + "properties": null, + "inner_properties": null, + "description": "Only return DebitReversals for a given status." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetDeprecatedExchangeRates.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetDeprecatedExchangeRates.json new file mode 100644 index 00000000..e875c7f8 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetDeprecatedExchangeRates.json @@ -0,0 +1,132 @@ +{ + "name": "GetDeprecatedExchangeRates", + "fully_qualified_name": "StripeApi.GetDeprecatedExchangeRates@0.1.0", + "description": "Retrieves deprecated exchange rates for a given currency.\n\nThis tool fetches exchange rates from one currency to all supported currencies using the deprecated Exchange Rate API from Stripe. Use this only if the newer FX Quotes API is not suitable for your needs.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "currency_rate_id", + "required": true, + "description": "The currency code (e.g., 'USD') to retrieve exchange rates for. Use the deprecated Exchange Rate API responsibly.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "rate_id" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields to be expanded in the response. Each field is specified as a string.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetExchangeRatesRateId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/exchange_rates/{rate_id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "rate_id", + "tool_parameter_name": "currency_rate_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetExchangeRates.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetExchangeRates.json new file mode 100644 index 00000000..24d4b070 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetExchangeRates.json @@ -0,0 +1,196 @@ +{ + "name": "GetExchangeRates", + "fully_qualified_name": "StripeApi.GetExchangeRates@0.1.0", + "description": "Retrieve Stripe's supported foreign currency exchange rates.\n\nFetches current exchange rates for foreign currencies supported by Stripe. Note: This API is deprecated; consider using the FX Quotes API instead.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before_currency", + "required": false, + "description": "The currency code to define your position for fetching the previous page in the exchange rate list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is the currency that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with the exchange rate for currency X your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "response_fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Set the maximum number of exchange rate objects to return, ranging from 1 up to the maximum number supported by Stripe.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and total number of supported payout currencies, and the default is the max." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_currency", + "required": false, + "description": "The currency code to define the starting point in the paginated list of exchange rates.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is the currency that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with the exchange rate for currency X, your subsequent call can include `starting_after=X` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetExchangeRates'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/exchange_rates", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_currency", + "description": "A cursor for use in pagination. `ending_before` is the currency that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with the exchange rate for currency X your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is the currency that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with the exchange rate for currency X your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "response_fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and total number of supported payout currencies, and the default is the max.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and total number of supported payout currencies, and the default is the max." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_currency", + "description": "A cursor for use in pagination. `starting_after` is the currency that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with the exchange rate for currency X, your subsequent call can include `starting_after=X` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is the currency that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with the exchange rate for currency X, your subsequent call can include `starting_after=X` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetExternalBankAccountDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetExternalBankAccountDetails.json new file mode 100644 index 00000000..cb535552 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetExternalBankAccountDetails.json @@ -0,0 +1,164 @@ +{ + "name": "GetExternalBankAccountDetails", + "fully_qualified_name": "StripeApi.GetExternalBankAccountDetails@0.1.0", + "description": "Retrieve details of a specific external bank account for an account.\n\nUse this tool to obtain details of a specified external bank account associated with a given account using its ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "account_id", + "required": true, + "description": "The unique identifier for the account associated with the external bank account.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "external_account_id", + "required": true, + "description": "Unique identifier for the external bank account to retrieve its details.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the external account to be retrieved." + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to expand for additional detail.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetAccountsAccountBankAccountsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}/bank_accounts/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "external_account_id", + "description": "Unique identifier for the external account to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the external account to be retrieved." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFileDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFileDetails.json new file mode 100644 index 00000000..3a0c6469 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFileDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetFileDetails", + "fully_qualified_name": "StripeApi.GetFileDetails@0.1.0", + "description": "Retrieve details of an existing file object from Stripe.\n\nFetches the details of a file object using its unique file ID on Stripe. Useful for accessing metadata and information about uploaded files.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "file_id", + "required": true, + "description": "The unique identifier for the file object whose details you want to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "file" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetFilesFile'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/files/{file}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "file", + "tool_parameter_name": "file_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialAccountDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialAccountDetails.json new file mode 100644 index 00000000..33c60cc3 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialAccountDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetFinancialAccountDetails", + "fully_qualified_name": "StripeApi.GetFinancialAccountDetails@0.1.0", + "description": "Retrieve details of a specific financial account.\n\nUse this tool to obtain comprehensive information about a specific financial account using its identifier.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "financial_account_id", + "required": true, + "description": "The unique identifier of the financial account to be retrieved. This ID is required to fetch the account details.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "financial_account" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of strings specifying which fields in the financial account details should be expanded in the response.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryFinancialAccountsFinancialAccount'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/financial_accounts/{financial_account}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "financial_account", + "tool_parameter_name": "financial_account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialAccountFeatures.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialAccountFeatures.json new file mode 100644 index 00000000..35541534 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialAccountFeatures.json @@ -0,0 +1,132 @@ +{ + "name": "GetFinancialAccountFeatures", + "fully_qualified_name": "StripeApi.GetFinancialAccountFeatures@0.1.0", + "description": "Retrieve features of a financial account.\n\nThis tool retrieves information about the features associated with a specified financial account in Stripe's treasury service. Use it to get detailed features of a financial account when needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "financial_account_id", + "required": true, + "description": "The ID of the financial account for which to retrieve feature information. This is required.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "financial_account" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "A list of fields in the response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryFinancialAccountsFinancialAccountFeatures'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/financial_accounts/{financial_account}/features", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "financial_account", + "tool_parameter_name": "financial_account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialAccountOwners.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialAccountOwners.json new file mode 100644 index 00000000..52110d18 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialAccountOwners.json @@ -0,0 +1,260 @@ +{ + "name": "GetFinancialAccountOwners", + "fully_qualified_name": "StripeApi.GetFinancialAccountOwners@0.1.0", + "description": "Retrieve owners of a specified financial account.\n\nThis tool is used to list all the owners of a given financial account. It is essential when you need to verify or display the ownership details of an account.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "ownership_object_id", + "required": true, + "description": "The ID of the ownership object from which to fetch the account owners.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the ownership object to fetch owners from." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ownership" + }, + { + "name": "account_id", + "required": true, + "description": "The unique identifier of the financial account to retrieve its owners.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "An ID to fetch the previous page in pagination, defining your place in the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of field names in the response to be expanded, specified as an array of strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "object_limit", + "required": false, + "description": "Specifies the maximum number of account owners to return, ranging from 1 to 100, with a default of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "A cursor indicating the starting point for pagination in a list. Use the object ID from the previous response to fetch the next page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetFinancialConnectionsAccountsAccountOwners'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/financial_connections/accounts/{account}/owners", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "object_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ownership", + "tool_parameter_name": "ownership_object_id", + "description": "The ID of the ownership object to fetch owners from.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the ownership object to fetch owners from." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialConnectionsAccountDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialConnectionsAccountDetails.json new file mode 100644 index 00000000..43aa8747 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialConnectionsAccountDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetFinancialConnectionsAccountDetails", + "fully_qualified_name": "StripeApi.GetFinancialConnectionsAccountDetails@0.1.0", + "description": "Retrieve details of a Financial Connections Account.\n\nCall this tool to get detailed information about a specific Financial Connections Account using the account identifier.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "financial_account_identifier", + "required": true, + "description": "The unique identifier for the Financial Connections Account to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetFinancialConnectionsAccountsAccount'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/financial_connections/accounts/{account}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "financial_account_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialTransactionDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialTransactionDetails.json new file mode 100644 index 00000000..b017fdca --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetFinancialTransactionDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetFinancialTransactionDetails", + "fully_qualified_name": "StripeApi.GetFinancialTransactionDetails@0.1.0", + "description": "Retrieve details of a specific financial transaction.\n\nThis tool fetches details for a specific Financial Connections transaction, useful for accessing transaction information.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "transaction_id", + "required": true, + "description": "The unique identifier of the financial transaction to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "transaction" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response to show additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetFinancialConnectionsTransactionsTransaction'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/financial_connections/transactions/{transaction}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "transaction", + "tool_parameter_name": "transaction_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInboundTransfers.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInboundTransfers.json new file mode 100644 index 00000000..bc735fd1 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInboundTransfers.json @@ -0,0 +1,270 @@ +{ + "name": "GetInboundTransfers", + "fully_qualified_name": "StripeApi.GetInboundTransfers@0.1.0", + "description": "Retrieve inbound transfers for a financial account.\n\nThis tool fetches a list of inbound transfers sent from a specified financial account using Stripe's treasury services.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "financial_account_id", + "required": true, + "description": "The ID of the FinancialAccount to retrieve associated inbound transfers.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Returns objects associated with this FinancialAccount." + }, + "inferrable": true, + "http_endpoint_parameter_name": "financial_account" + }, + { + "name": "pagination_ending_before_id", + "required": false, + "description": "The object ID defining your place in the list to fetch the previous page. Use this for pagination.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "List of fields in the response to be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "transfer_limit", + "required": false, + "description": "Set the maximum number of inbound transfer objects to return, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_object_id", + "required": false, + "description": "Cursor for pagination to fetch the next page by using the object ID from the end of the previous result set.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "filter_by_transfer_status", + "required": false, + "description": "Filter inbound transfers by their status: 'processing', 'succeeded', 'failed', or 'canceled'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "canceled", + "failed", + "processing", + "succeeded" + ], + "properties": null, + "inner_properties": null, + "description": "Only return InboundTransfers that have the given status: `processing`, `succeeded`, `failed` or `canceled`." + }, + "inferrable": true, + "http_endpoint_parameter_name": "status" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryInboundTransfers'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/inbound_transfers", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_id", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "financial_account", + "tool_parameter_name": "financial_account_id", + "description": "Returns objects associated with this FinancialAccount.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Returns objects associated with this FinancialAccount." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "transfer_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_object_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "status", + "tool_parameter_name": "filter_by_transfer_status", + "description": "Only return InboundTransfers that have the given status: `processing`, `succeeded`, `failed` or `canceled`.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "canceled", + "failed", + "processing", + "succeeded" + ], + "properties": null, + "inner_properties": null, + "description": "Only return InboundTransfers that have the given status: `processing`, `succeeded`, `failed` or `canceled`." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInvoiceItemDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInvoiceItemDetails.json new file mode 100644 index 00000000..2d28c8f5 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInvoiceItemDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetInvoiceItemDetails", + "fully_qualified_name": "StripeApi.GetInvoiceItemDetails@0.1.0", + "description": "Retrieve details of a specific invoice item by ID.\n\n", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "invoice_item_id", + "required": true, + "description": "The ID of the invoice item to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "invoiceitem" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to expand for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetInvoiceitemsInvoiceitem'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/invoiceitems/{invoiceitem}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "invoiceitem", + "tool_parameter_name": "invoice_item_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInvoiceLineItems.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInvoiceLineItems.json new file mode 100644 index 00000000..f133e134 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInvoiceLineItems.json @@ -0,0 +1,228 @@ +{ + "name": "GetInvoiceLineItems", + "fully_qualified_name": "StripeApi.GetInvoiceLineItems@0.1.0", + "description": "Fetch line items from a specific invoice.\n\nUse this tool to get the line items and their total count from a specific invoice. This is useful when you need detailed information about the charges in an invoice.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "invoice_id", + "required": true, + "description": "The unique identifier for the invoice to retrieve line items from. Provide this ID to specify which invoice's line items you want to access.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "invoice" + }, + { + "name": "pagination_ending_before_cursor", + "required": false, + "description": "A cursor ID to fetch the previous page of line items in the invoice list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List the fields in the invoice line items response that should be expanded for more details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_line_items_to_return", + "required": false, + "description": "The maximum number of line items to return. It can range from 1 to 100, with a default of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_start_after", + "required": false, + "description": "An object ID defining your place in the list for pagination, used to fetch the next page of invoice line items.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetInvoicesInvoiceLines'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/invoices/{invoice}/lines", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_cursor", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_line_items_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_start_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "invoice", + "tool_parameter_name": "invoice_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInvoiceRenderingTemplates.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInvoiceRenderingTemplates.json new file mode 100644 index 00000000..efb4535e --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetInvoiceRenderingTemplates.json @@ -0,0 +1,234 @@ +{ + "name": "GetInvoiceRenderingTemplates", + "fully_qualified_name": "StripeApi.GetInvoiceRenderingTemplates@0.1.0", + "description": "Retrieve all invoice rendering templates by creation date.\n\nThis tool fetches a list of all invoice rendering templates, organized by creation date with the latest ones first. Use it to access and manage invoice templates efficiently.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before", + "required": false, + "description": "A pagination cursor indicating the object ID to end before when listing templates. Use this to fetch the previous page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Specify the maximum number of invoice rendering templates to return, ranging from 1 to 100. Defaults to 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "Object ID defining your place in the list to fetch the next page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "template_status", + "required": false, + "description": "Filter templates by their status: 'active' or 'archived'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "active", + "archived" + ], + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "status" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetInvoiceRenderingTemplates'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/invoice_rendering_templates", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "status", + "tool_parameter_name": "template_status", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "active", + "archived" + ], + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetIssuingCardDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetIssuingCardDetails.json new file mode 100644 index 00000000..408bbc1e --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetIssuingCardDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetIssuingCardDetails", + "fully_qualified_name": "StripeApi.GetIssuingCardDetails@0.1.0", + "description": "Retrieve details of a specific issuing card.\n\nUse this tool to get detailed information about an Issuing Card object from Stripe. It should be called when you need to fetch the details of a specific card.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "card_id", + "required": true, + "description": "The unique identifier of the issuing card you want to retrieve details for. This is required.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "card" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "An array of fields to expand in the response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIssuingCardsCard'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/issuing/cards/{card}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "card", + "tool_parameter_name": "card_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetIssuingTokenInfo.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetIssuingTokenInfo.json new file mode 100644 index 00000000..d520ee0d --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetIssuingTokenInfo.json @@ -0,0 +1,132 @@ +{ + "name": "GetIssuingTokenInfo", + "fully_qualified_name": "StripeApi.GetIssuingTokenInfo@0.1.0", + "description": "Retrieve details of an Issuing Token.\n\nUse this tool to obtain information about a specific Issuing Token from Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "issuing_token_id", + "required": true, + "description": "The unique identifier of the Issuing Token to retrieve information for. This is required to specify which token's details are needed from Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "token" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIssuingTokensToken'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/issuing/tokens/{token}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "token", + "tool_parameter_name": "issuing_token_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetLatestPhysicalBundles.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetLatestPhysicalBundles.json new file mode 100644 index 00000000..934b9a11 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetLatestPhysicalBundles.json @@ -0,0 +1,274 @@ +{ + "name": "GetLatestPhysicalBundles", + "fully_qualified_name": "StripeApi.GetLatestPhysicalBundles@0.1.0", + "description": "Retrieve the latest physical bundle objects from Stripe.\n\nThis tool fetches a list of physical bundle objects from Stripe, sorted by creation date with the newest first. It's useful for obtaining the most recent physical bundles.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_end_before_id", + "required": false, + "description": "An object ID used for pagination to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of response fields to expand for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "number_of_bundles_limit", + "required": false, + "description": "Specify the maximum number of physical bundle objects to return, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_id", + "required": false, + "description": "Provide the object ID to continue pagination from the next item after it in the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "filter_status", + "required": false, + "description": "Filter physical bundles by status. Options include 'active', 'inactive', or 'review'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "active", + "inactive", + "review" + ], + "properties": null, + "inner_properties": null, + "description": "Only return physical bundles with the given status." + }, + "inferrable": true, + "http_endpoint_parameter_name": "status" + }, + { + "name": "filter_by_bundle_type", + "required": false, + "description": "Specify the type of physical bundles to return. Options are 'custom' or 'standard'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "custom", + "standard" + ], + "properties": null, + "inner_properties": null, + "description": "Only return physical bundles with the given type." + }, + "inferrable": true, + "http_endpoint_parameter_name": "type" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIssuingPhysicalBundles'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/issuing/physical_bundles", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_end_before_id", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "number_of_bundles_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "status", + "tool_parameter_name": "filter_status", + "description": "Only return physical bundles with the given status.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "active", + "inactive", + "review" + ], + "properties": null, + "inner_properties": null, + "description": "Only return physical bundles with the given status." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "type", + "tool_parameter_name": "filter_by_bundle_type", + "description": "Only return physical bundles with the given type.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "custom", + "standard" + ], + "properties": null, + "inner_properties": null, + "description": "Only return physical bundles with the given type." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetLinkedAccountDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetLinkedAccountDetails.json new file mode 100644 index 00000000..f1ae9773 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetLinkedAccountDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetLinkedAccountDetails", + "fully_qualified_name": "StripeApi.GetLinkedAccountDetails@0.1.0", + "description": "Retrieve details of a financial connections account.\n\nUse this tool to get detailed information about a specific financial connections account linked with Stripe. It should be called when account information is needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "account_id", + "required": true, + "description": "The unique identifier for the financial connections account to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields in the response to be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetLinkedAccountsAccount'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/linked_accounts/{account}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetLinkedAccountOwners.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetLinkedAccountOwners.json new file mode 100644 index 00000000..8a5ba9c2 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetLinkedAccountOwners.json @@ -0,0 +1,260 @@ +{ + "name": "GetLinkedAccountOwners", + "fully_qualified_name": "StripeApi.GetLinkedAccountOwners@0.1.0", + "description": "Retrieve owners of a specific linked account.\n\nUse this tool to list all the owners associated with a specific account. This can be helpful for verifying account ownership or managing account permissions.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "ownership_object_id", + "required": true, + "description": "The unique ID of the ownership object to retrieve owners from. This is required to specify which account's owners to list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the ownership object to fetch owners from." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ownership" + }, + { + "name": "linked_account_id", + "required": true, + "description": "The unique identifier of the account to retrieve owners for. This is required to specify which account's owners you want to list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "Cursor ID for pagination to fetch the previous page. Use the object ID from the start of the current list result.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expanded_fields", + "required": false, + "description": "List of fields to be expanded in the response. Specify field names to include more data in the response.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "number_of_owners_to_return", + "required": false, + "description": "Specify the number of account owners to retrieve, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "Cursor for pagination to specify the starting point for the next page of results using an object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetLinkedAccountsAccountOwners'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/linked_accounts/{account}/owners", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expanded_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "number_of_owners_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ownership", + "tool_parameter_name": "ownership_object_id", + "description": "The ID of the ownership object to fetch owners from.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the ownership object to fetch owners from." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "linked_account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetOutboundTransferDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetOutboundTransferDetails.json new file mode 100644 index 00000000..786478ee --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetOutboundTransferDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetOutboundTransferDetails", + "fully_qualified_name": "StripeApi.GetOutboundTransferDetails@0.1.0", + "description": "Retrieve details of a specific outbound transfer.\n\nUse this tool to get the details of an existing OutboundTransfer by providing the unique OutboundTransfer ID. It helps in tracking and managing outbound transfers.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "outbound_transfer_id", + "required": true, + "description": "The unique identifier for the outbound transfer to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "outbound_transfer" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to be expanded for more details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryOutboundTransfersOutboundTransfer'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/outbound_transfers/{outbound_transfer}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "outbound_transfer", + "tool_parameter_name": "outbound_transfer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetOutboundTransfers.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetOutboundTransfers.json new file mode 100644 index 00000000..e27ba248 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetOutboundTransfers.json @@ -0,0 +1,272 @@ +{ + "name": "GetOutboundTransfers", + "fully_qualified_name": "StripeApi.GetOutboundTransfers@0.1.0", + "description": "Retrieve outbound transfers from a financial account.\n\nThis tool returns a list of outbound transfers sent from a specified financial account using Stripe's Treasury API.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "financial_account_id", + "required": true, + "description": "The ID of the financial account to retrieve outbound transfers from.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Returns objects associated with this FinancialAccount." + }, + "inferrable": true, + "http_endpoint_parameter_name": "financial_account" + }, + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "Cursor for pagination to fetch the previous page of the outbound transfers list using an object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded. Provide field names as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "limit_transfers", + "required": false, + "description": "The number of outbound transfers to return. Valid range is 1 to 100, default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "A cursor for pagination to fetch the next page of the list, using an object ID from a previous request.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "outbound_transfer_status_filter", + "required": false, + "description": "Filter outbound transfers by status, such as 'processing', 'canceled', 'failed', 'posted', or 'returned'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "canceled", + "failed", + "posted", + "processing", + "returned" + ], + "properties": null, + "inner_properties": null, + "description": "Only return OutboundTransfers that have the given status: `processing`, `canceled`, `failed`, `posted`, or `returned`." + }, + "inferrable": true, + "http_endpoint_parameter_name": "status" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryOutboundTransfers'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/outbound_transfers", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "financial_account", + "tool_parameter_name": "financial_account_id", + "description": "Returns objects associated with this FinancialAccount.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Returns objects associated with this FinancialAccount." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "limit_transfers", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "status", + "tool_parameter_name": "outbound_transfer_status_filter", + "description": "Only return OutboundTransfers that have the given status: `processing`, `canceled`, `failed`, `posted`, or `returned`.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "canceled", + "failed", + "posted", + "processing", + "returned" + ], + "properties": null, + "inner_properties": null, + "description": "Only return OutboundTransfers that have the given status: `processing`, `canceled`, `failed`, `posted`, or `returned`." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetPaymentLinkLineItems.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetPaymentLinkLineItems.json new file mode 100644 index 00000000..61fbc5c3 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetPaymentLinkLineItems.json @@ -0,0 +1,228 @@ +{ + "name": "GetPaymentLinkLineItems", + "fully_qualified_name": "StripeApi.GetPaymentLinkLineItems@0.1.0", + "description": "Retrieve the line items for a specific payment link.\n\nUse this tool to get the line items associated with a specific payment link from Stripe. It provides the initial set of line items and a URL for the full list if needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "payment_link_id", + "required": true, + "description": "The unique identifier for the payment link whose line items need to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "payment_link" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "An object ID that serves as a pagination cursor to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "item_limit", + "required": false, + "description": "Specifies the maximum number of line items to retrieve, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "An object ID used as a cursor to fetch the next page of the list when paginating. Use the ID of the last object from the previous response.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPaymentLinksPaymentLinkLineItems'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payment_links/{payment_link}/line_items", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "item_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "payment_link", + "tool_parameter_name": "payment_link_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetPaymentMethodDomainDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetPaymentMethodDomainDetails.json new file mode 100644 index 00000000..237d8ce4 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetPaymentMethodDomainDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetPaymentMethodDomainDetails", + "fully_qualified_name": "StripeApi.GetPaymentMethodDomainDetails@0.1.0", + "description": "Retrieve details of a specific payment method domain.\n\nThis tool fetches information about a specified payment method domain. It should be called when details about an existing payment method domain are needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "payment_method_domain_id", + "required": true, + "description": "The unique identifier of the payment method domain to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "payment_method_domain" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPaymentMethodDomainsPaymentMethodDomain'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payment_method_domains/{payment_method_domain}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "payment_method_domain", + "tool_parameter_name": "payment_method_domain_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetProductDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetProductDetails.json new file mode 100644 index 00000000..64234321 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetProductDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetProductDetails", + "fully_qualified_name": "StripeApi.GetProductDetails@0.1.0", + "description": "Retrieve details of a specific product by ID.\n\nUse this tool to get information about an existing product by providing its unique ID. This is useful for accessing product details from Stripe's catalog.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "product_id", + "required": true, + "description": "The unique identifier for the product to retrieve details. Obtainable from product creation requests or product lists.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetProductsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/products/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "product_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetProductFeatureDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetProductFeatureDetails.json new file mode 100644 index 00000000..89c58856 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetProductFeatureDetails.json @@ -0,0 +1,164 @@ +{ + "name": "GetProductFeatureDetails", + "fully_qualified_name": "StripeApi.GetProductFeatureDetails@0.1.0", + "description": "Retrieve details of a feature attached to a product.\n\nUse this tool to obtain information about a specific feature associated with a product by providing the product and feature IDs.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "product_feature_id", + "required": true, + "description": "The unique identifier of the product feature to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the product_feature." + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "product_id", + "required": true, + "description": "The unique identifier of the product associated with the feature.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the product." + }, + "inferrable": true, + "http_endpoint_parameter_name": "product" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to expand for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetProductsProductFeaturesId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/products/{product}/features/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "product_feature_id", + "description": "The ID of the product_feature.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the product_feature." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "product", + "tool_parameter_name": "product_id", + "description": "The ID of the product.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the product." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetProductFeatures.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetProductFeatures.json new file mode 100644 index 00000000..934fa584 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetProductFeatures.json @@ -0,0 +1,228 @@ +{ + "name": "GetProductFeatures", + "fully_qualified_name": "StripeApi.GetProductFeatures@0.1.0", + "description": "Retrieve features for a specific product.\n\nUse this tool to obtain a list of features associated with a given product in Stripe. Ideal for when you need detailed information about a product's capabilities or offerings.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "product_id", + "required": true, + "description": "The unique identifier of the product for which you want to retrieve features. This is a required field.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "product" + }, + { + "name": "pagination_ending_cursor", + "required": false, + "description": "An object ID that defines your position in the list for pagination, used to fetch the previous page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "number_of_features_to_return", + "required": false, + "description": "Specifies the number of product features to return. Must be between 1 and 100, with a default of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "Cursor for pagination to fetch the next page of product features. Use the object ID from the last item on the previous page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetProductsProductFeatures'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/products/{product}/features", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_cursor", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "number_of_features_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "product", + "tool_parameter_name": "product_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetPromotionCodeDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetPromotionCodeDetails.json new file mode 100644 index 00000000..221a79b3 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetPromotionCodeDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetPromotionCodeDetails", + "fully_qualified_name": "StripeApi.GetPromotionCodeDetails@0.1.0", + "description": "Retrieve details of a specific promotion code.\n\nThis tool retrieves information about a promotion code using its ID. It can be used to access details such as discount amounts, expiration dates, and other relevant data tied to the specific promotion code.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "promotion_code_id", + "required": true, + "description": "The unique identifier of the promotion code to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "promotion_code" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to be expanded. Provide field names as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPromotionCodesPromotionCode'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/promotion_codes/{promotion_code}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "promotion_code", + "tool_parameter_name": "promotion_code_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetQuoteLineItems.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetQuoteLineItems.json new file mode 100644 index 00000000..9f4a8d1c --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetQuoteLineItems.json @@ -0,0 +1,228 @@ +{ + "name": "GetQuoteLineItems", + "fully_qualified_name": "StripeApi.GetQuoteLineItems@0.1.0", + "description": "Fetch line items from a specified quote.\n\nUse this tool to retrieve a list of line items associated with a specific quote. This includes both a summary of the first few items and a URL for accessing the complete, paginated list.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "quote_identifier", + "required": true, + "description": "The unique identifier of the quote whose line items are to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "quote" + }, + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "The object ID to define your place in the list for fetching the previous page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of field names to expand in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_items_to_return", + "required": false, + "description": "Specifies the maximum number of line items to return, ranging from 1 to 100. Defaults to 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "The object ID to define your place in the list for pagination, used to fetch the next page after the specified object.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetQuotesQuoteLineItems'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/quotes/{quote}/line_items", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_items_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "quote", + "tool_parameter_name": "quote_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReceivedCreditDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReceivedCreditDetails.json new file mode 100644 index 00000000..53f4f757 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReceivedCreditDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetReceivedCreditDetails", + "fully_qualified_name": "StripeApi.GetReceivedCreditDetails@0.1.0", + "description": "Retrieve details of a specific ReceivedCredit by ID.\n\nThis tool is used to obtain details about a specific ReceivedCredit in the Stripe Treasury. It requires the unique ReceivedCredit ID to fetch the information.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "received_credit_id", + "required": true, + "description": "The unique identifier of the ReceivedCredit to retrieve details for. This ID is required to fetch the specific credit's information.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to expand for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryReceivedCreditsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/received_credits/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "received_credit_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReceivedDebits.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReceivedDebits.json new file mode 100644 index 00000000..246e0db0 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReceivedDebits.json @@ -0,0 +1,266 @@ +{ + "name": "GetReceivedDebits", + "fully_qualified_name": "StripeApi.GetReceivedDebits@0.1.0", + "description": "Retrieve a list of received debits from Stripe Treasury.\n\nCall this tool to obtain a list of received debits, which can be useful for financial reporting or auditing purposes.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "financial_account_id", + "required": true, + "description": "The ID of the FinancialAccount from which funds were pulled.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The FinancialAccount that funds were pulled from." + }, + "inferrable": true, + "http_endpoint_parameter_name": "financial_account" + }, + { + "name": "pagination_cursor_previous_page", + "required": false, + "description": "A cursor for pagination to fetch the previous page of the list. Use an object ID received in a previous response.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields in the response to expand for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_number_of_debits", + "required": false, + "description": "Specify the maximum number of received debits to return. Accepts an integer between 1 and 100, default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "An object ID for pagination to fetch the next page, starting after this ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "debit_status_filter", + "required": false, + "description": "Filter results by status: 'succeeded' or 'failed'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "failed", + "succeeded" + ], + "properties": null, + "inner_properties": null, + "description": "Only return ReceivedDebits that have the given status: `succeeded` or `failed`." + }, + "inferrable": true, + "http_endpoint_parameter_name": "status" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryReceivedDebits'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/received_debits", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_previous_page", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "financial_account", + "tool_parameter_name": "financial_account_id", + "description": "The FinancialAccount that funds were pulled from.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The FinancialAccount that funds were pulled from." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_number_of_debits", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "status", + "tool_parameter_name": "debit_status_filter", + "description": "Only return ReceivedDebits that have the given status: `succeeded` or `failed`.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "failed", + "succeeded" + ], + "properties": null, + "inner_properties": null, + "description": "Only return ReceivedDebits that have the given status: `succeeded` or `failed`." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReportRunDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReportRunDetails.json new file mode 100644 index 00000000..836b3fee --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReportRunDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetReportRunDetails", + "fully_qualified_name": "StripeApi.GetReportRunDetails@0.1.0", + "description": "Retrieve details of an existing report run.\n\nUse this tool to obtain specific information about a previously created report run in Stripe's reporting system.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "report_run_id", + "required": true, + "description": "The unique identifier for the report run you want to retrieve details for. This ID is provided by Stripe when the report run is created.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "report_run" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response to include more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetReportingReportRunsReportRun'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/reporting/report_runs/{report_run}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "report_run", + "tool_parameter_name": "report_run_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReviewDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReviewDetails.json new file mode 100644 index 00000000..ca9051aa --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetReviewDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetReviewDetails", + "fully_qualified_name": "StripeApi.GetReviewDetails@0.1.0", + "description": "Retrieve details of a specific review on Stripe.\n\nThis tool fetches the details of a particular review from Stripe, using the review's unique identifier.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "review_identifier", + "required": true, + "description": "The unique identifier of the review to be retrieved from Stripe. This is a required parameter.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "review" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields in the review response to be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetReviewsReview'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/reviews/{review}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "review", + "tool_parameter_name": "review_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetScheduledQueryRuns.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetScheduledQueryRuns.json new file mode 100644 index 00000000..a1de2677 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetScheduledQueryRuns.json @@ -0,0 +1,196 @@ +{ + "name": "GetScheduledQueryRuns", + "fully_qualified_name": "StripeApi.GetScheduledQueryRuns@0.1.0", + "description": "Retrieve a list of scheduled query runs from Stripe.\n\nUse this tool to get information on scheduled query runs managed by Stripe's Sigma service. It retrieves a list of all the scheduled query runs that have occurred.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "A cursor object ID for pagination to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "object_limit", + "required": false, + "description": "Specify the number of objects to return, between 1 and 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "Cursor for pagination, to fetch the next page starting after the specified object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSigmaScheduledQueryRuns'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/sigma/scheduled_query_runs", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "object_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSourceTransactions.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSourceTransactions.json new file mode 100644 index 00000000..6ece1742 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSourceTransactions.json @@ -0,0 +1,228 @@ +{ + "name": "GetSourceTransactions", + "fully_qualified_name": "StripeApi.GetSourceTransactions@0.1.0", + "description": "Retrieve transactions for a specific source.\n\nUse this tool to list all transactions associated with a specific source in Stripe. It should be called when transaction details for a given source are needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "source_id", + "required": true, + "description": "The unique identifier of the source to retrieve transactions for. Required to specify the target of the retrieval.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "source" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "An object ID for pagination to fetch the previous page of the list. Use the ID of the first object from the current list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of field names in the response that should be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "transaction_limit", + "required": false, + "description": "Maximum number of transactions to return. Must be between 1 and 100, default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "An object ID used as a cursor to fetch the next page of the list. Use this to continue listing transactions after a known last object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSourcesSourceSourceTransactions'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/sources/{source}/source_transactions", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "transaction_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "source", + "tool_parameter_name": "source_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSpecificTransferReversalDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSpecificTransferReversalDetails.json new file mode 100644 index 00000000..a2616dbd --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSpecificTransferReversalDetails.json @@ -0,0 +1,164 @@ +{ + "name": "GetSpecificTransferReversalDetails", + "fully_qualified_name": "StripeApi.GetSpecificTransferReversalDetails@0.1.0", + "description": "Retrieve details about a specific transfer reversal.\n\nThis tool retrieves details of a specific reversal associated with a transfer. Use it to access more than the 10 most recent reversals or to obtain specific information about a particular reversal.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "reversal_id", + "required": true, + "description": "The unique identifier of the transfer reversal to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "transfer_id", + "required": true, + "description": "The unique identifier for the transfer to retrieve reversal details from. This is required to specify which transfer you're inquiring about.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "transfer" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields in the response to be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTransfersTransferReversalsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/transfers/{transfer}/reversals/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "reversal_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "transfer", + "tool_parameter_name": "transfer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeAccountDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeAccountDetails.json new file mode 100644 index 00000000..a5576c3c --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeAccountDetails.json @@ -0,0 +1,100 @@ +{ + "name": "GetStripeAccountDetails", + "fully_qualified_name": "StripeApi.GetStripeAccountDetails@0.1.0", + "description": "Retrieve details of a Stripe account.\n\nUse this tool to get information about a specific Stripe account, such as its status and settings.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "expand_fields", + "required": false, + "description": "A list of fields to specify which fields in the Stripe account response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetAccount'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/account", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeEntitlementFeatures.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeEntitlementFeatures.json new file mode 100644 index 00000000..5b03a974 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeEntitlementFeatures.json @@ -0,0 +1,260 @@ +{ + "name": "GetStripeEntitlementFeatures", + "fully_qualified_name": "StripeApi.GetStripeEntitlementFeatures@0.1.0", + "description": "Retrieve a list of entitlement features from Stripe.\n\nCall this tool to obtain a list of features related to entitlements from Stripe's API.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before", + "required": false, + "description": "Cursor for pagination defining the position in list. Use to fetch previous page by providing object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "object_return_limit", + "required": false, + "description": "Specify the number of features to return, ranging between 1 and 100. Defaults to 10 if not provided.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "filter_by_lookup_key", + "required": false, + "description": "Filter results to only include features with the specified lookup key.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "If set, filter results to only include features with the given lookup_key." + }, + "inferrable": true, + "http_endpoint_parameter_name": "lookup_key" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "A cursor for pagination. Use the object ID from the last item of your current list to fetch the next page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "include_archived_features", + "required": false, + "description": "Set to true to include only archived features, or false to exclude them.", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "If set, filter results to only include features with the given archive status." + }, + "inferrable": true, + "http_endpoint_parameter_name": "archived" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetEntitlementsFeatures'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/entitlements/features", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "archived", + "tool_parameter_name": "include_archived_features", + "description": "If set, filter results to only include features with the given archive status.", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "If set, filter results to only include features with the given archive status." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "object_return_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "lookup_key", + "tool_parameter_name": "filter_by_lookup_key", + "description": "If set, filter results to only include features with the given lookup_key.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "If set, filter results to only include features with the given lookup_key." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeExternalAccountDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeExternalAccountDetails.json new file mode 100644 index 00000000..a0f84c24 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeExternalAccountDetails.json @@ -0,0 +1,164 @@ +{ + "name": "GetStripeExternalAccountDetails", + "fully_qualified_name": "StripeApi.GetStripeExternalAccountDetails@0.1.0", + "description": "Retrieve details of a specific Stripe external account.\n\nThis tool fetches information about a specified external account for a given Stripe account. It should be used to obtain details about linked bank accounts or cards associated with a Stripe account.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "stripe_account_id", + "required": true, + "description": "The unique identifier for the Stripe account containing the external account.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "external_account_id", + "required": true, + "description": "Unique identifier for the external account to be retrieved from Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the external account to be retrieved." + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetAccountsAccountExternalAccountsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}/external_accounts/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "stripe_account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "external_account_id", + "description": "Unique identifier for the external account to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the external account to be retrieved." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripePaymentLinks.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripePaymentLinks.json new file mode 100644 index 00000000..ef57e113 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripePaymentLinks.json @@ -0,0 +1,228 @@ +{ + "name": "GetStripePaymentLinks", + "fully_qualified_name": "StripeApi.GetStripePaymentLinks@0.1.0", + "description": "Retrieve a list of Stripe payment links.\n\nThis tool calls the Stripe API to fetch a list of all your payment links. It should be used when you need to access or display your payment links managed through Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before", + "required": false, + "description": "An object ID cursor to define the starting point in the list for pagination, retrieving the previous page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response that should be expanded. Use field names as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "object_return_limit", + "required": false, + "description": "Specifies the maximum number of payment link objects to retrieve, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "The object ID to define your place in the list for pagination. Use it to fetch the next page of payment links.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "include_active_payment_links", + "required": false, + "description": "Return active payment links only. Set to `false` to list inactive payment links.", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return payment links that are active or inactive (e.g., pass `false` to list all inactive payment links)." + }, + "inferrable": true, + "http_endpoint_parameter_name": "active" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPaymentLinks'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payment_links", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "active", + "tool_parameter_name": "include_active_payment_links", + "description": "Only return payment links that are active or inactive (e.g., pass `false` to list all inactive payment links).", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Only return payment links that are active or inactive (e.g., pass `false` to list all inactive payment links)." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "object_return_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripePayoutDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripePayoutDetails.json new file mode 100644 index 00000000..9d6d8c1f --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripePayoutDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetStripePayoutDetails", + "fully_qualified_name": "StripeApi.GetStripePayoutDetails@0.1.0", + "description": "Retrieve details of a specific Stripe payout.\n\nThis tool retrieves information about an existing payout from Stripe using the unique payout ID. It should be used when you need detailed information about a specific payout.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "payout_id", + "required": true, + "description": "The unique ID of the payout to retrieve details for from Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "payout" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the payout response to expand for more details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPayoutsPayout'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payouts/{payout}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "payout", + "tool_parameter_name": "payout_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeReportTypeDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeReportTypeDetails.json new file mode 100644 index 00000000..f4f91d71 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeReportTypeDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetStripeReportTypeDetails", + "fully_qualified_name": "StripeApi.GetStripeReportTypeDetails@0.1.0", + "description": "Retrieve details for a specific Stripe Report Type.\n\nUse this tool to get detailed information about a specific Stripe Report Type. Some report types may require a live-mode API key.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "stripe_report_type_id", + "required": true, + "description": "The unique identifier for the Stripe Report Type to retrieve details about.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "report_type" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to expand for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetReportingReportTypesReportType'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/reporting/report_types/{report_type}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "report_type", + "tool_parameter_name": "stripe_report_type_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeReportTypes.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeReportTypes.json new file mode 100644 index 00000000..1edb5f5d --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeReportTypes.json @@ -0,0 +1,100 @@ +{ + "name": "GetStripeReportTypes", + "fully_qualified_name": "StripeApi.GetStripeReportTypes@0.1.0", + "description": "Retrieve a comprehensive list of Stripe report types.\n\nThis tool calls the Stripe endpoint to return a full list of available Report Types. Use it when you need to know all report types that Stripe can generate.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "expand_fields", + "required": false, + "description": "A list of fields in the Stripe report types response to be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetReportingReportTypes'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/reporting/report_types", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeSourceTransaction.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeSourceTransaction.json new file mode 100644 index 00000000..90e67cfa --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeSourceTransaction.json @@ -0,0 +1,164 @@ +{ + "name": "GetStripeSourceTransaction", + "fully_qualified_name": "StripeApi.GetStripeSourceTransaction@0.1.0", + "description": "Retrieve a Stripe source transaction by ID.\n\nFetches information of an existing source transaction using the source ID and transaction ID from Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "source_id", + "required": true, + "description": "The unique ID of the Stripe source. Use this to specify which source's transaction to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "source" + }, + { + "name": "stripe_source_transaction_id", + "required": true, + "description": "The unique identifier for the source transaction to retrieve from Stripe. This ID is obtained from previous source creation requests.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "source_transaction" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "An array of strings specifying which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSourcesSourceSourceTransactionsSourceTransaction'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/sources/{source}/source_transactions/{source_transaction}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "source", + "tool_parameter_name": "source_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "source_transaction", + "tool_parameter_name": "stripe_source_transaction_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeWebhookEndpoints.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeWebhookEndpoints.json new file mode 100644 index 00000000..9d9e4c59 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetStripeWebhookEndpoints.json @@ -0,0 +1,196 @@ +{ + "name": "GetStripeWebhookEndpoints", + "fully_qualified_name": "StripeApi.GetStripeWebhookEndpoints@0.1.0", + "description": "Retrieve a list of your Stripe webhook endpoints.\n\nThis tool is used to retrieve a list of webhook endpoints configured in your Stripe account. It is helpful for managing and verifying your current webhook setup.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before", + "required": false, + "description": "A cursor (object ID) for pagination to fetch the previous page of webhook endpoints.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_fields", + "required": false, + "description": "A list of field names to expand in the response, allowing for detailed data retrieval.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "object_limit", + "required": false, + "description": "The number of webhook endpoints to return, ranging from 1 to 100. Defaults to 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_id", + "required": false, + "description": "An object ID used for pagination to fetch the next page in a list. Use the last object's ID from the current list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetWebhookEndpoints'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/webhook_endpoints", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "object_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSubscriptionDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSubscriptionDetails.json new file mode 100644 index 00000000..e9bb0ed3 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSubscriptionDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetSubscriptionDetails", + "fully_qualified_name": "StripeApi.GetSubscriptionDetails@0.1.0", + "description": "Retrieve details of a subscription by its ID.\n\nThis tool is used to fetch details about a specific subscription using its exposed ID. It should be called when subscription information is needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "subscription_id", + "required": true, + "description": "The ID of the subscription to retrieve details for. It is required to fetch the subscription information.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "subscription_exposed_id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the subscription response to be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSubscriptionsSubscriptionExposedId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/subscriptions/{subscription_exposed_id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "subscription_exposed_id", + "tool_parameter_name": "subscription_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSubscriptionDiscount.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSubscriptionDiscount.json new file mode 100644 index 00000000..483caccb --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSubscriptionDiscount.json @@ -0,0 +1,164 @@ +{ + "name": "GetSubscriptionDiscount", + "fully_qualified_name": "StripeApi.GetSubscriptionDiscount@0.1.0", + "description": "Retrieve discount details for a customer's subscription.\n\nUse this tool to get the discount information associated with a specific subscription for a particular customer in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier of the customer whose subscription discount details are being retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "subscription_id", + "required": true, + "description": "The unique identifier for the customer's subscription to retrieve discount details.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "subscription_exposed_id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/subscriptions/{subscription_exposed_id}/discount", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "subscription_exposed_id", + "tool_parameter_name": "subscription_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSubscriptionItems.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSubscriptionItems.json new file mode 100644 index 00000000..4688edd9 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetSubscriptionItems.json @@ -0,0 +1,228 @@ +{ + "name": "GetSubscriptionItems", + "fully_qualified_name": "StripeApi.GetSubscriptionItems@0.1.0", + "description": "Retrieve subscription items for a subscription.\n\nThis tool returns a list of subscription items associated with a specified subscription. It should be called when there's a need to view or manage the items within a specific subscription.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "subscription_id", + "required": true, + "description": "The unique identifier of the subscription to retrieve its items.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the subscription whose items will be retrieved." + }, + "inferrable": true, + "http_endpoint_parameter_name": "subscription" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "Object ID for pagination to fetch the previous page of subscription items.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields in the response to be expanded. Specify each field as a string.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_items_to_return", + "required": false, + "description": "Specify the number of subscription items to return, ranging from 1 to 100. Defaults to 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "A cursor object ID to define your place for pagination, fetching the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSubscriptionItems'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/subscription_items", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_items_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "subscription", + "tool_parameter_name": "subscription_id", + "description": "The ID of the subscription whose items will be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the subscription whose items will be retrieved." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxCodeDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxCodeDetails.json new file mode 100644 index 00000000..1e60f869 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxCodeDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetTaxCodeDetails", + "fully_qualified_name": "StripeApi.GetTaxCodeDetails@0.1.0", + "description": "Retrieve details for a specific tax code by ID.\n\nThis tool fetches information about an existing tax code using its unique ID. It's useful for obtaining detailed tax code data from Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "tax_code_id", + "required": true, + "description": "The unique ID of the tax code to retrieve. Use this to fetch specific tax code details from Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to be expanded in the response.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTaxCodesId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax_codes/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "tax_code_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxCodesList.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxCodesList.json new file mode 100644 index 00000000..1f002d23 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxCodesList.json @@ -0,0 +1,196 @@ +{ + "name": "GetTaxCodesList", + "fully_qualified_name": "StripeApi.GetTaxCodesList@0.1.0", + "description": "Retrieve all available tax codes for products from Stripe.\n\nUse this tool to get a list of all tax codes that can be added to products for specific tax calculations in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "A cursor (object ID) to fetch the previous page of the tax codes list in pagination. Use to define your place in the list when stepping backwards.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "Specifies which fields in the tax codes response should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "object_return_limit", + "required": false, + "description": "Set the maximum number of tax codes to return, ranging from 1 to 100, with a default of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "An object ID used as a cursor to fetch the next page of the list. Use it for pagination to continue from the last retrieved item.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTaxCodes'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax_codes", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "object_return_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxRegistrationInfo.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxRegistrationInfo.json new file mode 100644 index 00000000..a29470f3 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxRegistrationInfo.json @@ -0,0 +1,132 @@ +{ + "name": "GetTaxRegistrationInfo", + "fully_qualified_name": "StripeApi.GetTaxRegistrationInfo@0.1.0", + "description": "Retrieve details of a specific tax registration.\n\nUse this tool to obtain information about a specific tax registration by providing the registration ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "registration_id", + "required": true, + "description": "The unique identifier for the tax registration. Provide this to retrieve specific registration details.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded to provide more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTaxRegistrationsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax/registrations/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "registration_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxRegistrations.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxRegistrations.json new file mode 100644 index 00000000..cca8c07f --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxRegistrations.json @@ -0,0 +1,238 @@ +{ + "name": "GetTaxRegistrations", + "fully_qualified_name": "StripeApi.GetTaxRegistrations@0.1.0", + "description": "Retrieve a list of tax registration objects from Stripe.\n\nUse this tool to get detailed information about tax registrations on Stripe. It returns a list of registration objects that are currently registered.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before", + "required": false, + "description": "An object ID used as a cursor to define your position in the list for pagination. Use this to fetch the previous page of objects.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "response_fields_to_expand", + "required": false, + "description": "List of fields to be expanded in the response, allowing for detailed information retrieval.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "object_limit", + "required": false, + "description": "Specifies the number of tax registration objects to return, ranging from 1 to 100. Defaults to 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_object_id", + "required": false, + "description": "A cursor for pagination. Use the object ID to fetch the next page of the list when applicable.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "tax_registration_status", + "required": false, + "description": "Specifies the status of the tax registration. Options: active, all, expired, scheduled.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "active", + "all", + "expired", + "scheduled" + ], + "properties": null, + "inner_properties": null, + "description": "The status of the Tax Registration." + }, + "inferrable": true, + "http_endpoint_parameter_name": "status" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTaxRegistrations'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax/registrations", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "response_fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "object_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_object_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "status", + "tool_parameter_name": "tax_registration_status", + "description": "The status of the Tax Registration.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "active", + "all", + "expired", + "scheduled" + ], + "properties": null, + "inner_properties": null, + "description": "The status of the Tax Registration." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxSettings.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxSettings.json new file mode 100644 index 00000000..fd0012f0 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTaxSettings.json @@ -0,0 +1,100 @@ +{ + "name": "GetTaxSettings", + "fully_qualified_name": "StripeApi.GetTaxSettings@0.1.0", + "description": "Retrieve merchant tax settings in Stripe.\n\nThis tool fetches the tax settings for a merchant from Stripe, providing detailed information about tax configurations.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "expand_fields", + "required": false, + "description": "A list of field names in the response to expand for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTaxSettings'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax/settings", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTerminalConfigurations.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTerminalConfigurations.json new file mode 100644 index 00000000..f8c8ed12 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTerminalConfigurations.json @@ -0,0 +1,228 @@ +{ + "name": "GetTerminalConfigurations", + "fully_qualified_name": "StripeApi.GetTerminalConfigurations@0.1.0", + "description": "Retrieve a list of terminal Configuration objects.\n\nCall this tool to obtain a list of Stripe terminal configurations. It retrieves all available Configuration objects used by terminals.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before", + "required": false, + "description": "A string cursor for pagination to fetch the previous page, defined by an object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to expand for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "maximum_objects_to_return", + "required": false, + "description": "Set the maximum number of terminal Configuration objects to retrieve, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_id", + "required": false, + "description": "An object ID for pagination, defining the start position for the next page of the list. Use this to continue listing from a specific object.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "only_return_account_default_configurations", + "required": false, + "description": "If true, only return the account default configurations; if false, return non-default configurations.", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "if present, only return the account default or non-default configurations." + }, + "inferrable": true, + "http_endpoint_parameter_name": "is_account_default" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTerminalConfigurations'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/terminal/configurations", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "is_account_default", + "tool_parameter_name": "only_return_account_default_configurations", + "description": "if present, only return the account default or non-default configurations.", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "if present, only return the account default or non-default configurations." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "maximum_objects_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTerminalLocations.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTerminalLocations.json new file mode 100644 index 00000000..d7144d4e --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTerminalLocations.json @@ -0,0 +1,196 @@ +{ + "name": "GetTerminalLocations", + "fully_qualified_name": "StripeApi.GetTerminalLocations@0.1.0", + "description": "Retrieve a list of terminal location objects from Stripe.\n\nThis tool calls the Stripe API to fetch a list of terminal location objects. It should be used when you need information about available terminal locations.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before_cursor", + "required": false, + "description": "The object ID to define your place in pagination, used to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "results_limit", + "required": false, + "description": "The maximum number of terminal location objects to return. Acceptable values are between 1 and 100; default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "A cursor indicating the position in the list to start fetching the next set of terminal locations. Use this with the object ID received at the end of the previous page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTerminalLocations'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/terminal/locations", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_cursor", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "results_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTerminalReaders.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTerminalReaders.json new file mode 100644 index 00000000..9139e704 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTerminalReaders.json @@ -0,0 +1,350 @@ +{ + "name": "GetTerminalReaders", + "fully_qualified_name": "StripeApi.GetTerminalReaders@0.1.0", + "description": "Retrieve a list of terminal reader objects.\n\nUse this tool to obtain a list of Stripe terminal readers. It is useful when you need to manage or view details of connected terminal devices.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "filter_by_device_type", + "required": false, + "description": "Specify the type of device to filter terminal readers. Options include: 'bbpos_chipper2x', 'bbpos_wisepad3', 'bbpos_wisepos_e', 'mobile_phone_reader', 'simulated_stripe_s700', 'simulated_wisepos_e', 'stripe_m2', 'stripe_s700', 'verifone_P400'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "bbpos_chipper2x", + "bbpos_wisepad3", + "bbpos_wisepos_e", + "mobile_phone_reader", + "simulated_stripe_s700", + "simulated_wisepos_e", + "stripe_m2", + "stripe_s700", + "verifone_P400" + ], + "properties": null, + "inner_properties": null, + "description": "Filters readers by device type" + }, + "inferrable": true, + "http_endpoint_parameter_name": "device_type" + }, + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "A cursor for pagination, used to fetch the previous page based on object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "List of fields to expand in the response, specified as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "object_return_limit", + "required": false, + "description": "Specifies the maximum number of terminal reader objects to return, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "filter_by_location_id", + "required": false, + "description": "Specify the location ID to filter readers to a specific location only.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A location ID to filter the response list to only readers at the specific location" + }, + "inferrable": true, + "http_endpoint_parameter_name": "location" + }, + { + "name": "filter_by_serial_number", + "required": false, + "description": "Provide a serial number to filter the list of terminal readers by this specific serial number.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Filters readers by serial number" + }, + "inferrable": true, + "http_endpoint_parameter_name": "serial_number" + }, + { + "name": "pagination_start_object_id", + "required": false, + "description": "The object ID used as a cursor to define your starting point in the list for pagination, fetching the next page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "filter_by_status", + "required": false, + "description": "Filter terminal readers by their status, either 'offline' or 'online'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "offline", + "online" + ], + "properties": null, + "inner_properties": null, + "description": "A status filter to filter readers to only offline or online readers" + }, + "inferrable": true, + "http_endpoint_parameter_name": "status" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTerminalReaders'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/terminal/readers", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "device_type", + "tool_parameter_name": "filter_by_device_type", + "description": "Filters readers by device type", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "bbpos_chipper2x", + "bbpos_wisepad3", + "bbpos_wisepos_e", + "mobile_phone_reader", + "simulated_stripe_s700", + "simulated_wisepos_e", + "stripe_m2", + "stripe_s700", + "verifone_P400" + ], + "properties": null, + "inner_properties": null, + "description": "Filters readers by device type" + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "object_return_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "location", + "tool_parameter_name": "filter_by_location_id", + "description": "A location ID to filter the response list to only readers at the specific location", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A location ID to filter the response list to only readers at the specific location" + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "serial_number", + "tool_parameter_name": "filter_by_serial_number", + "description": "Filters readers by serial number", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Filters readers by serial number" + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_start_object_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "status", + "tool_parameter_name": "filter_by_status", + "description": "A status filter to filter readers to only offline or online readers", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "offline", + "online" + ], + "properties": null, + "inner_properties": null, + "description": "A status filter to filter readers to only offline or online readers" + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTestClocksList.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTestClocksList.json new file mode 100644 index 00000000..c2740cac --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTestClocksList.json @@ -0,0 +1,196 @@ +{ + "name": "GetTestClocksList", + "fully_qualified_name": "StripeApi.GetTestClocksList@0.1.0", + "description": "Retrieve a list of your test clocks from Stripe.\n\nUse this tool to obtain a list of test clocks for testing purposes in Stripe environments.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "A cursor ID for pagination to fetch the previous page of the list. Use an object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "List of fields to expand in the response. Specify fields you want expanded for more details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "number_of_objects_limit", + "required": false, + "description": "Specify the number of test clocks to return, between 1 and 100, with a default of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "An object ID for pagination. Use this ID to fetch the next page of the list of test clocks.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTestHelpersTestClocks'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/test_helpers/test_clocks", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "number_of_objects_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTransactionLineItems.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTransactionLineItems.json new file mode 100644 index 00000000..91351cd4 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTransactionLineItems.json @@ -0,0 +1,228 @@ +{ + "name": "GetTransactionLineItems", + "fully_qualified_name": "StripeApi.GetTransactionLineItems@0.1.0", + "description": "Retrieve line items for a specified transaction.\n\nUse this tool to get the line items of a committed standalone transaction from Stripe as a collection.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "transaction_id", + "required": true, + "description": "The unique identifier for the transaction. Use this to retrieve its line items from Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "transaction" + }, + { + "name": "pagination_ending_id", + "required": false, + "description": "Cursor ID for paginating backwards to fetch the previous page of transaction line items.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_fields", + "required": false, + "description": "Specify which response fields to expand. Provide an array of strings with field names.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "number_of_items_to_return", + "required": false, + "description": "Specifies the number of line items to return, between 1 and 100. Defaults to 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "A cursor ID for pagination to fetch the next page of the list. Use the last object's ID from the current page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTaxTransactionsTransactionLineItems'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax/transactions/{transaction}/line_items", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_id", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "number_of_items_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "transaction", + "tool_parameter_name": "transaction_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTransferDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTransferDetails.json new file mode 100644 index 00000000..3b4a5d02 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTransferDetails.json @@ -0,0 +1,132 @@ +{ + "name": "GetTransferDetails", + "fully_qualified_name": "StripeApi.GetTransferDetails@0.1.0", + "description": "Retrieve details of an existing transfer using its ID.\n\nUse this tool to fetch information about a specific transfer by providing its unique ID from a previous request or list.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "transfer_id", + "required": true, + "description": "The unique identifier for the transfer you want to retrieve details about. This ID is obtained from a transfer creation request or the transfer list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "transfer" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the transfer response to expand for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTransfersTransfer'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/transfers/{transfer}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "transfer", + "tool_parameter_name": "transfer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTransferReversals.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTransferReversals.json new file mode 100644 index 00000000..3df22aef --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTransferReversals.json @@ -0,0 +1,228 @@ +{ + "name": "GetTransferReversals", + "fully_qualified_name": "StripeApi.GetTransferReversals@0.1.0", + "description": "Retrieve reversals of a specific transfer.\n\nUse this tool to get a list of reversals for a specific transfer in Stripe. This is useful when more than the 10 most recent reversals are needed, allowing pagination using limit and starting_after parameters.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "transfer_id", + "required": true, + "description": "The unique identifier of the transfer for which to retrieve reversals.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "An object ID cursor to navigate to the previous page in the list of reversals.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_fields_in_response", + "required": false, + "description": "List of response fields to expand in the results for detailed data.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "fetch_limit", + "required": false, + "description": "Set the maximum number of reversal objects to return, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_start_cursor", + "required": false, + "description": "The object ID to define your place in the list for pagination. Use this to fetch the next page, starting after the given object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTransfersIdReversals'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/transfers/{id}/reversals", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_fields_in_response", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "fetch_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_start_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "transfer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTreasuryPaymentMethods.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTreasuryPaymentMethods.json new file mode 100644 index 00000000..dcff6767 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetTreasuryPaymentMethods.json @@ -0,0 +1,360 @@ +{ + "name": "GetTreasuryPaymentMethods", + "fully_qualified_name": "StripeApi.GetTreasuryPaymentMethods@0.1.0", + "description": "Retrieve a list of PaymentMethods for Treasury flows.\n\nThis tool retrieves a list of PaymentMethods specifically for Treasury flows. It should be used when you want to access payment methods for these specific purposes, rather than customer-attached payment methods.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": false, + "description": "The ID of the customer whose PaymentMethods will be retrieved for Treasury flows. This is used to filter the payment methods specific to a customer.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the customer whose PaymentMethods will be retrieved." + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "An object ID to fetch the previous page of the list in pagination. Use to navigate to earlier records.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "Specifies which fields in the payment methods response should be expanded for more details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "The maximum number of payment methods to return, between 1 and 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "starting_after_payment_method", + "required": false, + "description": "An object ID cursor to paginate through the list of payment methods. Use it to fetch the next page after a given object.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "filter_payment_method_type", + "required": false, + "description": "Filter the list based on the payment method type. Use specific payment method values like 'card', 'paypal', etc., if expecting only one type.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "blik", + "boleto", + "card", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "giropay", + "grabpay", + "ideal", + "kakao_pay", + "klarna", + "konbini", + "kr_card", + "link", + "mb_way", + "mobilepay", + "multibanco", + "naver_pay", + "nz_bank_account", + "oxxo", + "p24", + "pay_by_bank", + "payco", + "paynow", + "paypal", + "pix", + "promptpay", + "revolut_pay", + "samsung_pay", + "satispay", + "sepa_debit", + "sofort", + "swish", + "twint", + "us_bank_account", + "wechat_pay", + "zip" + ], + "properties": null, + "inner_properties": null, + "description": "An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request." + }, + "inferrable": true, + "http_endpoint_parameter_name": "type" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPaymentMethods'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payment_methods", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "The ID of the customer whose PaymentMethods will be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the customer whose PaymentMethods will be retrieved." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "starting_after_payment_method", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "type", + "tool_parameter_name": "filter_payment_method_type", + "description": "An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "acss_debit", + "affirm", + "afterpay_clearpay", + "alipay", + "alma", + "amazon_pay", + "au_becs_debit", + "bacs_debit", + "bancontact", + "billie", + "blik", + "boleto", + "card", + "cashapp", + "crypto", + "customer_balance", + "eps", + "fpx", + "giropay", + "grabpay", + "ideal", + "kakao_pay", + "klarna", + "konbini", + "kr_card", + "link", + "mb_way", + "mobilepay", + "multibanco", + "naver_pay", + "nz_bank_account", + "oxxo", + "p24", + "pay_by_bank", + "payco", + "paynow", + "paypal", + "pix", + "promptpay", + "revolut_pay", + "samsung_pay", + "satispay", + "sepa_debit", + "sofort", + "swish", + "twint", + "us_bank_account", + "wechat_pay", + "zip" + ], + "properties": null, + "inner_properties": null, + "description": "An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetUpfrontQuoteLineItems.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetUpfrontQuoteLineItems.json new file mode 100644 index 00000000..4dc34a25 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/GetUpfrontQuoteLineItems.json @@ -0,0 +1,228 @@ +{ + "name": "GetUpfrontQuoteLineItems", + "fully_qualified_name": "StripeApi.GetUpfrontQuoteLineItems@0.1.0", + "description": "Retrieve computed upfront line items from a quote.\n\nUse this tool to get the computed upfront line items for a specific quote from Stripe. Ideal for viewing details of the initial line items associated with a quote, including accessing a URL for the full list if needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "quote_id", + "required": true, + "description": "The unique ID of the quote for which to retrieve upfront line items. This ID is required to specify the quote in context.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "quote" + }, + { + "name": "pagination_ending_before_id", + "required": false, + "description": "A cursor indicating the last object ID to fetch the previous page in a paginated list of upfront line items.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response for more detailed information. Each entry should be a string representing a field.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_line_items_to_return", + "required": false, + "description": "The maximum number of line items to retrieve, between 1 and 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_object_id", + "required": false, + "description": "An object ID used to fetch the next page of results in pagination, such as `obj_foo`.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetQuotesQuoteComputedUpfrontLineItems'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/quotes/{quote}/computed_upfront_line_items", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_id", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_line_items_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_object_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "quote", + "tool_parameter_name": "quote_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListApplePayDomains.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListApplePayDomains.json new file mode 100644 index 00000000..236be43b --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListApplePayDomains.json @@ -0,0 +1,228 @@ +{ + "name": "ListApplePayDomains", + "fully_qualified_name": "StripeApi.ListApplePayDomains@0.1.0", + "description": "Retrieve a list of Apple Pay domains.\n\nUse this tool to get a list of all Apple Pay domains associated with your Stripe account.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "domain_name_filter", + "required": false, + "description": "Filter the list by a specific domain name. Leave empty to return all domains.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "domain_name" + }, + { + "name": "pagination_ending_before_id", + "required": false, + "description": "Object ID for pagination to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_fields", + "required": false, + "description": "An array of fields to expand in the response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_domains_to_return", + "required": false, + "description": "Specify the number of Apple Pay domains to retrieve, between 1 and 100. Defaults to 10 if not set.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "An object ID for pagination to retrieve the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetApplePayDomains'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/apple_pay/domains", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "domain_name", + "tool_parameter_name": "domain_name_filter", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_id", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_domains_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListClimateOrders.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListClimateOrders.json new file mode 100644 index 00000000..ae689efa --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListClimateOrders.json @@ -0,0 +1,196 @@ +{ + "name": "ListClimateOrders", + "fully_qualified_name": "StripeApi.ListClimateOrders@0.1.0", + "description": "Retrieve all Climate order objects from Stripe.\n\nThe tool fetches and lists all Climate order objects from the Stripe service. These orders are sorted by creation date, with the most recent ones appearing first.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before_cursor", + "required": false, + "description": "A cursor ID to paginate backwards through the list, fetching the page before the specified object ID for Climate orders.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_fields", + "required": false, + "description": "A list of fields in the response to expand. Provide each field name as a string in an array.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "maximum_objects_to_return", + "required": false, + "description": "The number of Climate order objects to retrieve, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "An object ID used as a cursor to define your place in the pagination list to retrieve the next page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetClimateOrders'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/climate/orders", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_cursor", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "maximum_objects_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListClimateProducts.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListClimateProducts.json new file mode 100644 index 00000000..e2e4a3d4 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListClimateProducts.json @@ -0,0 +1,196 @@ +{ + "name": "ListClimateProducts", + "fully_qualified_name": "StripeApi.ListClimateProducts@0.1.0", + "description": "Retrieve a list of all available Climate products.\n\nUse this tool to get information about all available Climate product objects from the Stripe service.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before", + "required": false, + "description": "An object ID cursor to fetch the previous page in a paginated list. Use to define your place in the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "Specify which fields in the response should be expanded as a list of strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "objects_limit", + "required": false, + "description": "The maximum number of Climate product objects to return, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_id", + "required": false, + "description": "A cursor (object ID) to define your starting point in the list for pagination. Used to fetch the next page after the specified object ID.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetClimateProducts'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/climate/products", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "objects_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListClimateSuppliers.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListClimateSuppliers.json new file mode 100644 index 00000000..7f02cc20 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListClimateSuppliers.json @@ -0,0 +1,196 @@ +{ + "name": "ListClimateSuppliers", + "fully_qualified_name": "StripeApi.ListClimateSuppliers@0.1.0", + "description": "Retrieve a list of all available Climate suppliers.\n\nThis tool calls the Stripe API to list all available Climate supplier objects. It should be used when you need information about climate suppliers for Stripe-related services.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before", + "required": false, + "description": "The object ID to use as a cursor for fetching the previous page of suppliers in the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response that should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Specify the number of Climate supplier objects to return, ranging from 1 to 100, with a default of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_cursor", + "required": false, + "description": "Object ID for pagination to fetch the next page of the Climate suppliers list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetClimateSuppliers'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/climate/suppliers", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListCustomerPaymentSources.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListCustomerPaymentSources.json new file mode 100644 index 00000000..1e28d570 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListCustomerPaymentSources.json @@ -0,0 +1,260 @@ +{ + "name": "ListCustomerPaymentSources", + "fully_qualified_name": "StripeApi.ListCustomerPaymentSources@0.1.0", + "description": "Retrieve payment sources for a specified customer.\n\nUse this tool to list all payment sources for a given customer ID in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer whose payment sources you want to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "A cursor for pagination to fetch the previous page. Use an object ID from your list request.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "List of fields in the response to be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_payment_sources_to_return", + "required": false, + "description": "Set the maximum number of payment sources to return, from 1 to 100. Defaults to 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "filter_by_object_type", + "required": false, + "description": "Filter payment sources based on a specific object type (e.g., card, bank_account).", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Filter sources according to a particular object type." + }, + "inferrable": true, + "http_endpoint_parameter_name": "object" + }, + { + "name": "pagination_start_cursor", + "required": false, + "description": "An object ID (string) that specifies your place in the list to fetch the next page. Use it for pagination.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerSources'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/sources", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_payment_sources_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "object", + "tool_parameter_name": "filter_by_object_type", + "description": "Filter sources according to a particular object type.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Filter sources according to a particular object type." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_start_cursor", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListExternalAccounts.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListExternalAccounts.json new file mode 100644 index 00000000..e5916044 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListExternalAccounts.json @@ -0,0 +1,266 @@ +{ + "name": "ListExternalAccounts", + "fully_qualified_name": "StripeApi.ListExternalAccounts@0.1.0", + "description": "Retrieve external accounts linked to a Stripe account.\n\nThis tool retrieves the external accounts associated with a specified Stripe account. It should be called when you need details about the financial accounts linked to a specific Stripe account ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "stripe_account_id", + "required": true, + "description": "The unique identifier for the Stripe account whose external accounts you want to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "A cursor used to define your position in the list for pagination. It specifies the object ID before which the list should end.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "A list of fields in the response to expand for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_results_per_page", + "required": false, + "description": "Specify the number of external accounts to retrieve, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "filter_by_object_type", + "required": false, + "description": "Specify the type of external accounts to filter: 'bank_account' or 'card'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "bank_account", + "card" + ], + "properties": null, + "inner_properties": null, + "description": "Filter external accounts according to a particular object type." + }, + "inferrable": true, + "http_endpoint_parameter_name": "object" + }, + { + "name": "pagination_starting_after_object_id", + "required": false, + "description": "Object ID for pagination to fetch the next page of results. Use the ID of the last object from the current list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetAccountsAccountExternalAccounts'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}/external_accounts", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_results_per_page", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "object", + "tool_parameter_name": "filter_by_object_type", + "description": "Filter external accounts according to a particular object type.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "bank_account", + "card" + ], + "properties": null, + "inner_properties": null, + "description": "Filter external accounts according to a particular object type." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_object_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "stripe_account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListPaymentMethodConfigurations.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListPaymentMethodConfigurations.json new file mode 100644 index 00000000..fc9b4214 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListPaymentMethodConfigurations.json @@ -0,0 +1,228 @@ +{ + "name": "ListPaymentMethodConfigurations", + "fully_qualified_name": "StripeApi.ListPaymentMethodConfigurations@0.1.0", + "description": "Retrieve available payment method configurations from Stripe.\n\nUse this tool to get a list of payment method configurations from the Stripe API. It should be called when you need to access the available configurations for payments.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "filter_by_connect_application", + "required": false, + "description": "Specify the Connect application ID to filter the payment method configurations by.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The Connect application to filter by." + }, + "inferrable": true, + "http_endpoint_parameter_name": "application" + }, + { + "name": "pagination_ending_before_id", + "required": false, + "description": "Object ID that defines your place in the list for pagination, used to fetch the previous page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields in the response that should be expanded. Provide field names as strings in an array.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_results", + "required": false, + "description": "Specify the maximum number of payment method configurations to be returned, ranging from 1 to 100. Defaults to 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_id", + "required": false, + "description": "The object ID to define your place in the list for pagination, used to fetch the next page of results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPaymentMethodConfigurations'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payment_method_configurations", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "application", + "tool_parameter_name": "filter_by_connect_application", + "description": "The Connect application to filter by.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The Connect application to filter by." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_id", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_results", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListPaymentMethodDomains.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListPaymentMethodDomains.json new file mode 100644 index 00000000..9b0d0ddb --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/ListPaymentMethodDomains.json @@ -0,0 +1,260 @@ +{ + "name": "ListPaymentMethodDomains", + "fully_qualified_name": "StripeApi.ListPaymentMethodDomains@0.1.0", + "description": "Retrieve details of existing payment method domains.\n\nUse this tool to get a list of all payment method domains and their associated details. This can be helpful for managing or reviewing your payment configurations.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "domain_name", + "required": false, + "description": "Specify the domain name for the payment method domain object you want to represent.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The domain name that this payment method domain object represents." + }, + "inferrable": true, + "http_endpoint_parameter_name": "domain_name" + }, + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "A cursor ID to fetch the previous page of the payment method domain list in pagination.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to expand for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "limit_number_of_returned_objects", + "required": false, + "description": "Specify the number of payment method domains to return, ranging from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_cursor_starting_after", + "required": false, + "description": "An object ID cursor to fetch the next page in the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "include_enabled_domains", + "required": false, + "description": "Include only enabled payment method domains in the results. If false, all domains will be included regardless of status.", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Whether this payment method domain is enabled. If the domain is not enabled, payment methods will not appear in Elements or Embedded Checkout" + }, + "inferrable": true, + "http_endpoint_parameter_name": "enabled" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPaymentMethodDomains'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payment_method_domains", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "domain_name", + "tool_parameter_name": "domain_name", + "description": "The domain name that this payment method domain object represents.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The domain name that this payment method domain object represents." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "enabled", + "tool_parameter_name": "include_enabled_domains", + "description": "Whether this payment method domain is enabled. If the domain is not enabled, payment methods will not appear in Elements or Embedded Checkout", + "value_schema": { + "val_type": "boolean", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Whether this payment method domain is enabled. If the domain is not enabled, payment methods will not appear in Elements or Embedded Checkout" + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "limit_number_of_returned_objects", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_cursor_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveCustomerDiscount.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveCustomerDiscount.json new file mode 100644 index 00000000..b1166db7 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveCustomerDiscount.json @@ -0,0 +1,100 @@ +{ + "name": "RemoveCustomerDiscount", + "fully_qualified_name": "StripeApi.RemoveCustomerDiscount@0.1.0", + "description": "Remove the current discount applied to a customer.\n\nThis tool removes the discount that is currently applied to a specific customer when called. It should be used when there is a need to update or clear a customer's discount information.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer whose discount is to be removed.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteCustomersCustomerDiscount'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/discount", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveCustomerSubscriptionDiscount.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveCustomerSubscriptionDiscount.json new file mode 100644 index 00000000..1ea3fd0e --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveCustomerSubscriptionDiscount.json @@ -0,0 +1,132 @@ +{ + "name": "RemoveCustomerSubscriptionDiscount", + "fully_qualified_name": "StripeApi.RemoveCustomerSubscriptionDiscount@0.1.0", + "description": "Removes the discount from a customer's subscription.\n\nThis tool is used to remove the currently applied discount on a specific customer's subscription.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer whose subscription discount should be removed.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "subscription_id", + "required": true, + "description": "The unique identifier for the customer's subscription from which the discount will be removed.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "subscription_exposed_id" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/subscriptions/{subscription_exposed_id}/discount", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "subscription_exposed_id", + "tool_parameter_name": "subscription_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveRadarValueListItem.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveRadarValueListItem.json new file mode 100644 index 00000000..acfbd5f9 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveRadarValueListItem.json @@ -0,0 +1,100 @@ +{ + "name": "RemoveRadarValueListItem", + "fully_qualified_name": "StripeApi.RemoveRadarValueListItem@0.1.0", + "description": "Remove an item from a Stripe Radar value list.\n\nUse this tool to delete a specific ValueListItem from its parent value list in Stripe Radar.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "radar_value_list_item_id", + "required": true, + "description": "The unique identifier of the ValueListItem to be removed from the Stripe Radar value list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "item" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteRadarValueListItemsItem'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/radar/value_list_items/{item}", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "item", + "tool_parameter_name": "radar_value_list_item_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveSubscriptionDiscount.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveSubscriptionDiscount.json new file mode 100644 index 00000000..5184e871 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RemoveSubscriptionDiscount.json @@ -0,0 +1,100 @@ +{ + "name": "RemoveSubscriptionDiscount", + "fully_qualified_name": "StripeApi.RemoveSubscriptionDiscount@0.1.0", + "description": "Remove the discount from a subscription.\n\nThis tool should be called to remove the currently applied discount on a given subscription in the Stripe service.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "subscription_id", + "required": true, + "description": "The unique identifier for the subscription from which the discount will be removed.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "subscription_exposed_id" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'DeleteSubscriptionsSubscriptionExposedIdDiscount'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/subscriptions/{subscription_exposed_id}/discount", + "http_method": "DELETE", + "headers": {}, + "parameters": [ + { + "name": "subscription_exposed_id", + "tool_parameter_name": "subscription_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveAccountDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveAccountDetails.json new file mode 100644 index 00000000..b8ed0728 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveAccountDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveAccountDetails", + "fully_qualified_name": "StripeApi.RetrieveAccountDetails@0.1.0", + "description": "Retrieve details of a specific account.\n\nUse this tool to obtain detailed information about a specific account using its identifier.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "account_id", + "required": true, + "description": "The unique identifier of the account to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response for detailed account information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetAccountsAccount'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveActiveEntitlement.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveActiveEntitlement.json new file mode 100644 index 00000000..95831007 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveActiveEntitlement.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveActiveEntitlement", + "fully_qualified_name": "StripeApi.RetrieveActiveEntitlement@0.1.0", + "description": "Retrieve details of an active entitlement by ID.\n\nThis tool retrieves information about an active entitlement using its ID. It should be used to fetch details related to a specific active entitlement in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "entitlement_id", + "required": true, + "description": "The unique identifier of the active entitlement to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the entitlement." + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetEntitlementsActiveEntitlementsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/entitlements/active_entitlements/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "entitlement_id", + "description": "The ID of the entitlement.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the entitlement." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveApplePayDomain.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveApplePayDomain.json new file mode 100644 index 00000000..1d625cb3 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveApplePayDomain.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveApplePayDomain", + "fully_qualified_name": "StripeApi.RetrieveApplePayDomain@0.1.0", + "description": "Retrieve details of an Apple Pay domain.\n\nUse this tool to get information about a specific Apple Pay domain by providing the domain name.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "apple_pay_domain_name", + "required": true, + "description": "The domain name of the Apple Pay site to retrieve details for. This should be a valid domain string.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "domain" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetApplePayDomainsDomain'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/apple_pay/domains/{domain}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "domain", + "tool_parameter_name": "apple_pay_domain_name", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveApplicationFeeDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveApplicationFeeDetails.json new file mode 100644 index 00000000..3ac59920 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveApplicationFeeDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveApplicationFeeDetails", + "fully_qualified_name": "StripeApi.RetrieveApplicationFeeDetails@0.1.0", + "description": "Retrieve details of a specific application fee.\n\nUse this tool to get information about an application fee collected by your account. It provides the same details as when refunding the fee.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "application_fee_id", + "required": true, + "description": "The unique identifier of the application fee to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetApplicationFeesId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/application_fees/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "application_fee_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveApplicationFeeRefundDetail.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveApplicationFeeRefundDetail.json new file mode 100644 index 00000000..d3503384 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveApplicationFeeRefundDetail.json @@ -0,0 +1,164 @@ +{ + "name": "RetrieveApplicationFeeRefundDetail", + "fully_qualified_name": "StripeApi.RetrieveApplicationFeeRefundDetail@0.1.0", + "description": "Retrieve details of a specific application fee refund.\n\nUse this tool to obtain detailed information about a specific refund related to an application fee, beyond the 10 most recent refunds available by default.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "application_fee_id", + "required": true, + "description": "The ID of the application fee associated with the refund to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "fee" + }, + { + "name": "refund_id", + "required": true, + "description": "The unique identifier of the specific refund to retrieve details for. This is required to access a particular refund.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response for additional detail.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetApplicationFeesFeeRefundsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/application_fees/{fee}/refunds/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "fee", + "tool_parameter_name": "application_fee_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "refund_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveBalanceTransactionById.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveBalanceTransactionById.json new file mode 100644 index 00000000..35d4ae4a --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveBalanceTransactionById.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveBalanceTransactionById", + "fully_qualified_name": "StripeApi.RetrieveBalanceTransactionById@0.1.0", + "description": "Retrieve details of a balance transaction by ID.\n\nCall this tool to get the details of a specific balance transaction using its ID. Useful for accessing historical balance changes for specific transactions.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "balance_transaction_id", + "required": true, + "description": "The unique identifier for the balance transaction to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBalanceHistoryId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/balance/history/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "balance_transaction_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveBillingMeter.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveBillingMeter.json new file mode 100644 index 00000000..fa14911a --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveBillingMeter.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveBillingMeter", + "fully_qualified_name": "StripeApi.RetrieveBillingMeter@0.1.0", + "description": "Retrieve billing meter details by ID.\n\nUse this tool to get information about a billing meter by providing its ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "billing_meter_id", + "required": true, + "description": "The ID of the billing meter to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of field names to expand in the billing meter response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBillingMetersId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/billing/meters/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "billing_meter_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCashBalanceTransaction.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCashBalanceTransaction.json new file mode 100644 index 00000000..7e3c47f8 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCashBalanceTransaction.json @@ -0,0 +1,164 @@ +{ + "name": "RetrieveCashBalanceTransaction", + "fully_qualified_name": "StripeApi.RetrieveCashBalanceTransaction@0.1.0", + "description": "Retrieve a cash balance transaction for a customer.\n\nThis tool retrieves information about a specific cash balance transaction that affected a customer's cash balance in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier of the customer whose cash balance transaction is to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "transaction_id", + "required": true, + "description": "The unique identifier for the cash balance transaction to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "transaction" + }, + { + "name": "expand_fields_in_response", + "required": false, + "description": "List of fields to expand in the response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerCashBalanceTransactionsTransaction'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/cash_balance_transactions/{transaction}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields_in_response", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "transaction", + "tool_parameter_name": "transaction_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCheckoutSession.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCheckoutSession.json new file mode 100644 index 00000000..ba9c0800 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCheckoutSession.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveCheckoutSession", + "fully_qualified_name": "StripeApi.RetrieveCheckoutSession@0.1.0", + "description": "Retrieve a specific Stripe checkout session.\n\nThis tool retrieves detailed information about a specific Checkout Session from Stripe. It should be called when there's a need to access the data for a particular session, identified by its session ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "session_id", + "required": true, + "description": "The unique identifier for the Checkout Session you want to retrieve. This is required to specify which session's details to access.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "session" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the checkout session response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCheckoutSessionsSession'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/checkout/sessions/{session}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "session", + "tool_parameter_name": "session_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveClimateProductDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveClimateProductDetails.json new file mode 100644 index 00000000..61199633 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveClimateProductDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveClimateProductDetails", + "fully_qualified_name": "StripeApi.RetrieveClimateProductDetails@0.1.0", + "description": "Retrieve details of a specific Climate product from Stripe.\n\nThis tool retrieves the details of a Climate product using the provided product ID from Stripe's API.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "product_id", + "required": true, + "description": "The unique identifier of the Climate product to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "product" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to expand for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetClimateProductsProduct'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/climate/products/{product}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "product", + "tool_parameter_name": "product_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveClimateSupplier.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveClimateSupplier.json new file mode 100644 index 00000000..5d96a569 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveClimateSupplier.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveClimateSupplier", + "fully_qualified_name": "StripeApi.RetrieveClimateSupplier@0.1.0", + "description": "Fetches details of a specific Climate supplier.\n\nUse this tool to get detailed information about a Climate supplier using the supplier's identifier. It is useful for accessing supplier profiles managed by Stripe's Climate initiative.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "supplier_identifier", + "required": true, + "description": "The unique identifier for the Climate supplier to be retrieved. This is required to fetch the supplier's information.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "supplier" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response for detailed information on the Climate supplier.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetClimateSuppliersSupplier'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/climate/suppliers/{supplier}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "supplier", + "tool_parameter_name": "supplier_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCountrySpecs.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCountrySpecs.json new file mode 100644 index 00000000..3f057619 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCountrySpecs.json @@ -0,0 +1,196 @@ +{ + "name": "RetrieveCountrySpecs", + "fully_qualified_name": "StripeApi.RetrieveCountrySpecs@0.1.0", + "description": "Retrieve all country specification objects from the API.\n\nThis tool calls the Stripe API to list all available Country Spec objects, providing information about country-specific details.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "pagination_ending_before", + "required": false, + "description": "The object ID to specify your place in the list for pagination, retrieving the previous page of results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "An array of strings specifying fields in the response to be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "number_of_country_specs_to_return", + "required": false, + "description": "Number of country specification objects to return, ranging from 1 to 100. The default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_id", + "required": false, + "description": "Object ID to define your place in the list for pagination. Use it to fetch the next page if available, based on the last object from a previous list call.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCountrySpecs'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/country_specs", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "number_of_country_specs_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCreditGrant.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCreditGrant.json new file mode 100644 index 00000000..b44eb47d --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCreditGrant.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveCreditGrant", + "fully_qualified_name": "StripeApi.RetrieveCreditGrant@0.1.0", + "description": "Retrieve details of a specific credit grant using its ID.\n\nCall this tool to get information about a specific credit grant by providing its ID. Useful for checking credit grant details within billing systems.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "credit_grant_id", + "required": true, + "description": "The unique identifier for the credit grant to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the object." + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response that should be expanded to include additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetBillingCreditGrantsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/billing/credit_grants/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "credit_grant_id", + "description": "Unique identifier for the object.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Unique identifier for the object." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCreditNote.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCreditNote.json new file mode 100644 index 00000000..5e4e910e --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCreditNote.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveCreditNote", + "fully_qualified_name": "StripeApi.RetrieveCreditNote@0.1.0", + "description": "Retrieve details of a specific credit note by ID.\n\nUse this tool to get information about a credit note using its unique identifier. Ideal for retrieving specific credit note details from the Stripe service.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "credit_note_id", + "required": true, + "description": "The unique identifier of the credit note to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCreditNotesId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/credit_notes/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "credit_note_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCreditNoteLines.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCreditNoteLines.json new file mode 100644 index 00000000..54a4235c --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCreditNoteLines.json @@ -0,0 +1,228 @@ +{ + "name": "RetrieveCreditNoteLines", + "fully_qualified_name": "StripeApi.RetrieveCreditNoteLines@0.1.0", + "description": "Fetch line items from a specified credit note.\n\nThis tool retrieves line items from a given credit note, providing details and the option to access the full paginated list if needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "credit_note_id", + "required": true, + "description": "The unique identifier of the credit note to retrieve line items from.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "credit_note" + }, + { + "name": "pagination_ending_before", + "required": false, + "description": "The object ID to paginate before, fetching the previous page in the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded. Allows detailed retrieval of related objects.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "max_objects_to_return", + "required": false, + "description": "Specify the number of credit note line items to return. Must be between 1 and 100, default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "An object ID used for pagination to fetch the next page of the list. This ID should be the last object from a previous set of data.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCreditNotesCreditNoteLines'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/credit_notes/{credit_note}/lines", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "max_objects_to_return", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "credit_note", + "tool_parameter_name": "credit_note_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCustomerDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCustomerDetails.json new file mode 100644 index 00000000..8dfa22de --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCustomerDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveCustomerDetails", + "fully_qualified_name": "StripeApi.RetrieveCustomerDetails@0.1.0", + "description": "Retrieve details of a specific customer.\n\nThis tool retrieves information about a specific customer from Stripe's database using their unique customer ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer to retrieve details for. This is a string provided by Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "List of fields to expand in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomer'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCustomerDiscount.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCustomerDiscount.json new file mode 100644 index 00000000..9ce45d8a --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCustomerDiscount.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveCustomerDiscount", + "fully_qualified_name": "StripeApi.RetrieveCustomerDiscount@0.1.0", + "description": "Retrieve a customer's discount information.\n\nUse this tool to get information about a specific customer's discount in Stripe. It provides details on any discounts applied to a customer's account.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer whose discount information you want to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to expand. Use to get additional related information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerDiscount'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/discount", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCustomerPaymentSource.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCustomerPaymentSource.json new file mode 100644 index 00000000..99208da6 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveCustomerPaymentSource.json @@ -0,0 +1,164 @@ +{ + "name": "RetrieveCustomerPaymentSource", + "fully_qualified_name": "StripeApi.RetrieveCustomerPaymentSource@0.1.0", + "description": "Retrieve a specified source for a given customer.\n\nUse this tool to get details about a specific payment source associated with a customer in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer whose payment source needs to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "source_id", + "required": true, + "description": "The unique identifier of the payment source to retrieve for the specified customer.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerSourcesId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/sources/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "source_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveDebitReversal.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveDebitReversal.json new file mode 100644 index 00000000..b60f3511 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveDebitReversal.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveDebitReversal", + "fully_qualified_name": "StripeApi.RetrieveDebitReversal@0.1.0", + "description": "Retrieve details of a specific debit reversal.\n\nUse this tool to get information about a specific DebitReversal object by ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "debit_reversal_id", + "required": true, + "description": "The unique identifier of the DebitReversal object to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "debit_reversal" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields to expand in the DebitReversal response. Provide an array of field names as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryDebitReversalsDebitReversal'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/debit_reversals/{debit_reversal}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "debit_reversal", + "tool_parameter_name": "debit_reversal_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveDisputeById.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveDisputeById.json new file mode 100644 index 00000000..25d26a58 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveDisputeById.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveDisputeById", + "fully_qualified_name": "StripeApi.RetrieveDisputeById@0.1.0", + "description": "Retrieve details of a dispute using its ID.\n\nThis tool is used to fetch detailed information about a specific dispute by providing its ID. It should be called when detailed information about a particular dispute is needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "dispute_id", + "required": true, + "description": "The unique identifier of the dispute to be retrieved. This ID can be used to fetch detailed information about the specific dispute.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "dispute" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the dispute response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetDisputesDispute'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/disputes/{dispute}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "dispute", + "tool_parameter_name": "dispute_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveEarlyFraudWarningDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveEarlyFraudWarningDetails.json new file mode 100644 index 00000000..e9b484db --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveEarlyFraudWarningDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveEarlyFraudWarningDetails", + "fully_qualified_name": "StripeApi.RetrieveEarlyFraudWarningDetails@0.1.0", + "description": "Retrieve details of an early fraud warning.\n\nFetches information about a previously created early fraud warning. Useful for examining potential fraudulent activity and understanding associated risks.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "early_fraud_warning_id", + "required": true, + "description": "The unique identifier of the early fraud warning to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "early_fraud_warning" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetRadarEarlyFraudWarningsEarlyFraudWarning'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/radar/early_fraud_warnings/{early_fraud_warning}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "early_fraud_warning", + "tool_parameter_name": "early_fraud_warning_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFeatureDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFeatureDetails.json new file mode 100644 index 00000000..d38a5206 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFeatureDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveFeatureDetails", + "fully_qualified_name": "StripeApi.RetrieveFeatureDetails@0.1.0", + "description": "Fetches details for a specific feature by ID.\n\nUse this tool to retrieve detailed information about a specific feature using its ID within the Stripe system.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "feature_id", + "required": true, + "description": "The unique identifier of the feature to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the feature." + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetEntitlementsFeaturesId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/entitlements/features/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "feature_id", + "description": "The ID of the feature.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the feature." + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFileLink.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFileLink.json new file mode 100644 index 00000000..3710ac8d --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFileLink.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveFileLink", + "fully_qualified_name": "StripeApi.RetrieveFileLink@0.1.0", + "description": "Fetches a file link using its ID.\n\nUse this tool to retrieve information about a specific file link by providing its ID. Ideal for accessing details about file links stored in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "file_link_id", + "required": true, + "description": "The ID of the file link to retrieve details for. This is used to fetch the specific file link from Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "link" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "An array of strings specifying which fields in the response should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetFileLinksLink'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/file_links/{link}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "link", + "tool_parameter_name": "file_link_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFinancialConnectionsSession.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFinancialConnectionsSession.json new file mode 100644 index 00000000..7492fca3 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFinancialConnectionsSession.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveFinancialConnectionsSession", + "fully_qualified_name": "StripeApi.RetrieveFinancialConnectionsSession@0.1.0", + "description": "Retrieve details of a Financial Connections Session.\n\nUse this tool to obtain detailed information about a specific Financial Connections Session from Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "financial_connection_session_id", + "required": true, + "description": "The unique identifier of the Financial Connections Session to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "session" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "An array of strings specifying which fields in the response should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetFinancialConnectionsSessionsSession'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/financial_connections/sessions/{session}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "session", + "tool_parameter_name": "financial_connection_session_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFinancialSessionDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFinancialSessionDetails.json new file mode 100644 index 00000000..0dc05015 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveFinancialSessionDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveFinancialSessionDetails", + "fully_qualified_name": "StripeApi.RetrieveFinancialSessionDetails@0.1.0", + "description": "Retrieve details of a financial connection session.\n\nUse this tool to get information about a specific financial connection session through Stripe. It's useful for accessing session details based on a session identifier.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "session_identifier", + "required": true, + "description": "The unique identifier for the financial connection session to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "session" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "An array of fields in the response that should be expanded to include more details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetLinkAccountSessionsSession'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/link_account_sessions/{session}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "session", + "tool_parameter_name": "session_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveForwardingRequest.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveForwardingRequest.json new file mode 100644 index 00000000..d672e1cc --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveForwardingRequest.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveForwardingRequest", + "fully_qualified_name": "StripeApi.RetrieveForwardingRequest@0.1.0", + "description": "Fetch a specific ForwardingRequest object using its ID.\n\nUse this tool to retrieve information about a ForwardingRequest by providing its unique ID. Ideal for accessing details of a specific forwarding request in the Stripe service.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "forwarding_request_id", + "required": true, + "description": "The unique identifier for the ForwardingRequest object to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetForwardingRequestsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/forwarding/requests/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "forwarding_request_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInboundTransferDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInboundTransferDetails.json new file mode 100644 index 00000000..00309c7a --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInboundTransferDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveInboundTransferDetails", + "fully_qualified_name": "StripeApi.RetrieveInboundTransferDetails@0.1.0", + "description": "Retrieve details of a specific inbound transfer.\n\nUse this tool to get information about a specific inbound transfer by providing its ID. It retrieves all associated details of the inbound transfer from the Stripe service.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "inbound_transfer_id", + "required": true, + "description": "The unique identifier of the inbound transfer to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "expand_fields", + "required": false, + "description": "Specify which fields in the response should be expanded for detailed information. Provide them as a list of strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryInboundTransfersId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/inbound_transfers/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "inbound_transfer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInvoiceById.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInvoiceById.json new file mode 100644 index 00000000..ca596984 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInvoiceById.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveInvoiceById", + "fully_qualified_name": "StripeApi.RetrieveInvoiceById@0.1.0", + "description": "Retrieve details of an invoice using its ID.\n\nThis tool should be called to obtain information about a specific invoice by providing its ID. It retrieves details associated with the given invoice ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "invoice_id", + "required": true, + "description": "The unique identifier for the invoice to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "invoice" + }, + { + "name": "expand_fields_in_response", + "required": false, + "description": "A list of fields in the invoice response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetInvoicesInvoice'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/invoices/{invoice}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields_in_response", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "invoice", + "tool_parameter_name": "invoice_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInvoicePayment.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInvoicePayment.json new file mode 100644 index 00000000..022c5af9 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInvoicePayment.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveInvoicePayment", + "fully_qualified_name": "StripeApi.RetrieveInvoicePayment@0.1.0", + "description": "Fetch the details of a specific invoice payment by ID.\n\nUse this tool to retrieve the payment details for a given invoice ID from the Stripe service.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "invoice_payment_id", + "required": true, + "description": "The ID of the invoice payment to retrieve details for. This ID is required to fetch the payment information.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "invoice_payment" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to be expanded in the response. Each field should be specified as a string.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetInvoicePaymentsInvoicePayment'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/invoice_payments/{invoice_payment}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "invoice_payment", + "tool_parameter_name": "invoice_payment_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInvoiceTemplate.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInvoiceTemplate.json new file mode 100644 index 00000000..d3a77e20 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveInvoiceTemplate.json @@ -0,0 +1,164 @@ +{ + "name": "RetrieveInvoiceTemplate", + "fully_qualified_name": "StripeApi.RetrieveInvoiceTemplate@0.1.0", + "description": "Fetch an invoice rendering template by ID.\n\nUse this tool to retrieve details of a specific invoice rendering template from Stripe. By default, it returns the latest version of the template, but you can specify a version to retrieve an older version.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "invoice_template_id", + "required": true, + "description": "The unique identifier for the invoice rendering template you want to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "template" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "template_version", + "required": false, + "description": "Specify the version number of the invoice rendering template to retrieve. If omitted, the latest version is returned.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "version" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetInvoiceRenderingTemplatesTemplate'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/invoice_rendering_templates/{template}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "version", + "tool_parameter_name": "template_version", + "description": "", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "template", + "tool_parameter_name": "invoice_template_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingAuthorization.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingAuthorization.json new file mode 100644 index 00000000..7a9df4f1 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingAuthorization.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveIssuingAuthorization", + "fully_qualified_name": "StripeApi.RetrieveIssuingAuthorization@0.1.0", + "description": "Fetches details of an Issuing Authorization object.\n\nUse this tool to retrieve a specific Issuing Authorization object from Stripe by providing the authorization ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "authorization_id", + "required": true, + "description": "The unique identifier for the Issuing Authorization object to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "authorization" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of strings specifying which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIssuingAuthorizationsAuthorization'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/issuing/authorizations/{authorization}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "authorization", + "tool_parameter_name": "authorization_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingCardholder.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingCardholder.json new file mode 100644 index 00000000..84b75482 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingCardholder.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveIssuingCardholder", + "fully_qualified_name": "StripeApi.RetrieveIssuingCardholder@0.1.0", + "description": "Retrieve details of an issuing cardholder.\n\nThis tool retrieves the details of an issuing cardholder from the Stripe API. It should be called when you need specific information about a cardholder associated with a Stripe issuing account.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "cardholder_id", + "required": true, + "description": "The unique identifier of the cardholder to retrieve details for, in string format.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "cardholder" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "An array of field names to expand in the response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIssuingCardholdersCardholder'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/issuing/cardholders/{cardholder}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "cardholder", + "tool_parameter_name": "cardholder_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingDispute.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingDispute.json new file mode 100644 index 00000000..27ab97ad --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingDispute.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveIssuingDispute", + "fully_qualified_name": "StripeApi.RetrieveIssuingDispute@0.1.0", + "description": "Fetch the details of a specific issuing dispute.\n\nUse this tool to retrieve an Issuing Dispute object from Stripe by providing the dispute identifier.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "dispute_id", + "required": true, + "description": "The unique identifier of the Issuing Dispute to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "dispute" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the dispute response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIssuingDisputesDispute'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/issuing/disputes/{dispute}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "dispute", + "tool_parameter_name": "dispute_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingSettlement.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingSettlement.json new file mode 100644 index 00000000..9ec397f6 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingSettlement.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveIssuingSettlement", + "fully_qualified_name": "StripeApi.RetrieveIssuingSettlement@0.1.0", + "description": "Fetch details of an Issuing Settlement object.\n\nUse this tool to retrieve information about a specific Issuing Settlement in the Stripe platform. It is useful for getting the details of settlements related to issuing transactions.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "settlement_id", + "required": true, + "description": "The unique identifier of the Issuing Settlement to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "settlement" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to be expanded in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIssuingSettlementsSettlement'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/issuing/settlements/{settlement}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "settlement", + "tool_parameter_name": "settlement_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingTransaction.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingTransaction.json new file mode 100644 index 00000000..c7f508a0 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveIssuingTransaction.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveIssuingTransaction", + "fully_qualified_name": "StripeApi.RetrieveIssuingTransaction@0.1.0", + "description": "Fetch details of an issuing transaction by ID.\n\nThis tool retrieves information about a specific issuing transaction using its unique ID. It is used to gather details on transactions processed through Stripe's issuing services.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "transaction_id", + "required": true, + "description": "The unique identifier for the issuing transaction to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "transaction" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIssuingTransactionsTransaction'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/issuing/transactions/{transaction}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "transaction", + "tool_parameter_name": "transaction_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveMandateInfo.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveMandateInfo.json new file mode 100644 index 00000000..8ec720a6 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveMandateInfo.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveMandateInfo", + "fully_qualified_name": "StripeApi.RetrieveMandateInfo@0.1.0", + "description": "Retrieve detailed information of a mandate.\n\nFetches details about a Mandate object from Stripe when provided with a specific mandate ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "mandate_id", + "required": true, + "description": "The unique identifier for the mandate to retrieve details for. It should be a valid string representing the mandate ID in Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "mandate" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetMandatesMandate'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/mandates/{mandate}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "mandate", + "tool_parameter_name": "mandate_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveOutboundPaymentDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveOutboundPaymentDetails.json new file mode 100644 index 00000000..cd78b3a6 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveOutboundPaymentDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveOutboundPaymentDetails", + "fully_qualified_name": "StripeApi.RetrieveOutboundPaymentDetails@0.1.0", + "description": "Retrieve details of an existing OutboundPayment by ID.\n\nUse this tool to obtain details of a specific OutboundPayment using its unique ID from Stripe's treasury service.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "outbound_payment_id", + "required": true, + "description": "The unique identifier of the OutboundPayment to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryOutboundPaymentsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/outbound_payments/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "outbound_payment_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePaymentIntentDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePaymentIntentDetails.json new file mode 100644 index 00000000..14c34eb2 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePaymentIntentDetails.json @@ -0,0 +1,164 @@ +{ + "name": "RetrievePaymentIntentDetails", + "fully_qualified_name": "StripeApi.RetrievePaymentIntentDetails@0.1.0", + "description": "Retrieve details of a specific PaymentIntent using its ID.\n\nUse this tool to get information about a PaymentIntent that has already been created. Suitable for retrieving details client-side with a publishable key.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "payment_intent_id", + "required": true, + "description": "The unique identifier of the PaymentIntent to retrieve details for. Required to specify which PaymentIntent you are interested in.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "intent" + }, + { + "name": "payment_intent_client_secret", + "required": false, + "description": "The client secret for the PaymentIntent, required when using a publishable key to retrieve the source.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The client secret of the PaymentIntent. We require it if you use a publishable key to retrieve the source." + }, + "inferrable": true, + "http_endpoint_parameter_name": "client_secret" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPaymentIntentsIntent'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payment_intents/{intent}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "client_secret", + "tool_parameter_name": "payment_intent_client_secret", + "description": "The client secret of the PaymentIntent. We require it if you use a publishable key to retrieve the source.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The client secret of the PaymentIntent. We require it if you use a publishable key to retrieve the source." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "intent", + "tool_parameter_name": "payment_intent_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePaymentLinkInfo.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePaymentLinkInfo.json new file mode 100644 index 00000000..ba917af6 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePaymentLinkInfo.json @@ -0,0 +1,132 @@ +{ + "name": "RetrievePaymentLinkInfo", + "fully_qualified_name": "StripeApi.RetrievePaymentLinkInfo@0.1.0", + "description": "Retrieve detailed information about a payment link.\n\nUse this tool to get information about a specific payment link from Stripe. It's useful for checking the status or details of payment links.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "payment_link_id", + "required": true, + "description": "The unique identifier of the payment link to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "payment_link" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields to expand in the response for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPaymentLinksPaymentLink'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payment_links/{payment_link}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "payment_link", + "tool_parameter_name": "payment_link_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePaymentMethodConfiguration.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePaymentMethodConfiguration.json new file mode 100644 index 00000000..ebab6433 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePaymentMethodConfiguration.json @@ -0,0 +1,132 @@ +{ + "name": "RetrievePaymentMethodConfiguration", + "fully_qualified_name": "StripeApi.RetrievePaymentMethodConfiguration@0.1.0", + "description": "Retrieve a specific payment method configuration.\n\nThis tool is used to get details about a specific payment method configuration from Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "payment_method_configuration_id", + "required": true, + "description": "The unique identifier for the payment method configuration to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "configuration" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPaymentMethodConfigurationsConfiguration'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payment_method_configurations/{configuration}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "configuration", + "tool_parameter_name": "payment_method_configuration_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePersonAccountDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePersonAccountDetails.json new file mode 100644 index 00000000..057329bb --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePersonAccountDetails.json @@ -0,0 +1,164 @@ +{ + "name": "RetrievePersonAccountDetails", + "fully_qualified_name": "StripeApi.RetrievePersonAccountDetails@0.1.0", + "description": "Retrieve details of a person linked to an account.\n\nThis tool retrieves details of an existing person associated with a specified account in Stripe. It should be called when you need to fetch information about a specific person related to an account on the Stripe platform.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "account_id", + "required": true, + "description": "The identifier of the Stripe account to which the person is linked. This is required to specify which account's person details need to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "person_identifier", + "required": true, + "description": "The unique identifier of the person whose details need to be retrieved. This ID is associated with the person's account in Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "person" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetAccountsAccountPersonsPerson'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}/persons/{person}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "person", + "tool_parameter_name": "person_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePersonInformation.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePersonInformation.json new file mode 100644 index 00000000..e254c3fa --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePersonInformation.json @@ -0,0 +1,164 @@ +{ + "name": "RetrievePersonInformation", + "fully_qualified_name": "StripeApi.RetrievePersonInformation@0.1.0", + "description": "Retrieve information about a person in a Stripe account.\n\nUse this tool to obtain details of a specific person associated with a Stripe account. Ideal for scenarios where user requests involve checking or verifying personal information linked to an account.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "stripe_account_id", + "required": true, + "description": "The unique identifier of the Stripe account from which to retrieve the person's information. This is required to access the account details linked to this person.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "account" + }, + { + "name": "person_identifier", + "required": true, + "description": "The unique identifier of the person to retrieve within the Stripe account. This ID is required to fetch the specific person's details.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "person" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetAccountsAccountPeoplePerson'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/accounts/{account}/people/{person}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "account", + "tool_parameter_name": "stripe_account_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "person", + "tool_parameter_name": "person_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePersonalizationDesign.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePersonalizationDesign.json new file mode 100644 index 00000000..e9b5b8ac --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePersonalizationDesign.json @@ -0,0 +1,132 @@ +{ + "name": "RetrievePersonalizationDesign", + "fully_qualified_name": "StripeApi.RetrievePersonalizationDesign@0.1.0", + "description": "Retrieve a personalization design object by ID.\n\nUse this tool to get the details of a specific personalization design by providing its ID. Ideal for retrieving information related to issuing personalization designs.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "personalization_design_id", + "required": true, + "description": "The ID of the personalization design to retrieve. This is used to specify which design object's details are desired.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "personalization_design" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIssuingPersonalizationDesignsPersonalizationDesign'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/issuing/personalization_designs/{personalization_design}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "personalization_design", + "tool_parameter_name": "personalization_design_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePhysicalBundle.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePhysicalBundle.json new file mode 100644 index 00000000..0a3d6e83 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrievePhysicalBundle.json @@ -0,0 +1,132 @@ +{ + "name": "RetrievePhysicalBundle", + "fully_qualified_name": "StripeApi.RetrievePhysicalBundle@0.1.0", + "description": "Retrieve details of a physical bundle.\n\nUse this tool to get information about a specific physical bundle in the Stripe issuing service. Useful for accessing current data about a particular bundle.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "physical_bundle_id", + "required": true, + "description": "The unique identifier of the physical bundle to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "physical_bundle" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "Comma-separated list of fields in the response to be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIssuingPhysicalBundlesPhysicalBundle'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/issuing/physical_bundles/{physical_bundle}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "physical_bundle", + "tool_parameter_name": "physical_bundle_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveQuoteById.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveQuoteById.json new file mode 100644 index 00000000..e6060e2e --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveQuoteById.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveQuoteById", + "fully_qualified_name": "StripeApi.RetrieveQuoteById@0.1.0", + "description": "Fetches quote details using a specified ID.\n\nUse this tool to retrieve information about a specific quote by providing its ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "quote_id", + "required": true, + "description": "The unique identifier of the quote to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "quote" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetQuotesQuote'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/quotes/{quote}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "quote", + "tool_parameter_name": "quote_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveQuotesList.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveQuotesList.json new file mode 100644 index 00000000..723b1320 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveQuotesList.json @@ -0,0 +1,302 @@ +{ + "name": "RetrieveQuotesList", + "fully_qualified_name": "StripeApi.RetrieveQuotesList@0.1.0", + "description": "Fetches a list of your available quotes.\n\nUse this tool to retrieve a list of quotes you have created or received. It provides details on each quote you have within your Stripe account.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": false, + "description": "The ID of the customer to retrieve quotes for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the customer whose quotes will be retrieved." + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "pagination_ending_before_cursor", + "required": false, + "description": "A string cursor indicating the object ID before which results are returned for pagination purposes. Use it to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response. Each field is specified as a string.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Sets the maximum number of quote objects to retrieve, between 1 and 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after", + "required": false, + "description": "Object ID for pagination to fetch the list after the specified item. Use to get the next page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + }, + { + "name": "quote_status", + "required": false, + "description": "The status of the quote. Possible values are 'accepted', 'canceled', 'draft', or 'open'.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "accepted", + "canceled", + "draft", + "open" + ], + "properties": null, + "inner_properties": null, + "description": "The status of the quote." + }, + "inferrable": true, + "http_endpoint_parameter_name": "status" + }, + { + "name": "test_clock_id", + "required": false, + "description": "The ID of the test clock to filter quotes. Must be set with the customer parameter.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Provides a list of quotes that are associated with the specified test clock. The response will not include quotes with test clocks if this and the customer parameter is not set." + }, + "inferrable": true, + "http_endpoint_parameter_name": "test_clock" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetQuotes'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/quotes", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "The ID of the customer whose quotes will be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The ID of the customer whose quotes will be retrieved." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "ending_before", + "tool_parameter_name": "pagination_ending_before_cursor", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "status", + "tool_parameter_name": "quote_status", + "description": "The status of the quote.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": [ + "accepted", + "canceled", + "draft", + "open" + ], + "properties": null, + "inner_properties": null, + "description": "The status of the quote." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "test_clock", + "tool_parameter_name": "test_clock_id", + "description": "Provides a list of quotes that are associated with the specified test clock. The response will not include quotes with test clocks if this and the customer parameter is not set.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Provides a list of quotes that are associated with the specified test clock. The response will not include quotes with test clocks if this and the customer parameter is not set." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveRadarValuelist.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveRadarValuelist.json new file mode 100644 index 00000000..57dfb811 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveRadarValuelist.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveRadarValuelist", + "fully_qualified_name": "StripeApi.RetrieveRadarValuelist@0.1.0", + "description": "Retrieve details of a specific Radar ValueList.\n\nFetches information about a specified Radar ValueList object using its identifier.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "identifier_of_radar_valuelist", + "required": true, + "description": "The unique identifier of the Radar ValueList to retrieve details for. It is required to fetch the specific ValueList object.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "value_list" + }, + { + "name": "expand_fields", + "required": false, + "description": "List of fields in the response to expand for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetRadarValueListsValueList'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/radar/value_lists/{value_list}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "value_list", + "tool_parameter_name": "identifier_of_radar_valuelist", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveReceivedDebitDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveReceivedDebitDetails.json new file mode 100644 index 00000000..9ea8379e --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveReceivedDebitDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveReceivedDebitDetails", + "fully_qualified_name": "StripeApi.RetrieveReceivedDebitDetails@0.1.0", + "description": "Retrieve details of a specific ReceivedDebit by ID.\n\nUse this tool to get information about an existing ReceivedDebit by providing its unique ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "received_debit_id", + "required": true, + "description": "The unique ID of the ReceivedDebit to retrieve details for. This ID is required.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of response fields to expand for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryReceivedDebitsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/received_debits/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "received_debit_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveRefundDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveRefundDetails.json new file mode 100644 index 00000000..f0b41094 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveRefundDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveRefundDetails", + "fully_qualified_name": "StripeApi.RetrieveRefundDetails@0.1.0", + "description": "Retrieve details of an existing refund.\n\nUse this tool to obtain information about a specific refund by its identifier.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "refund_id", + "required": true, + "description": "The unique identifier of the refund to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "refund" + }, + { + "name": "expand_fields", + "required": false, + "description": "Specify which fields in the response should be expanded. Provide an array of field paths.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetRefundsRefund'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/refunds/{refund}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "refund", + "tool_parameter_name": "refund_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveRefundDetailsByCharge.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveRefundDetailsByCharge.json new file mode 100644 index 00000000..fe1a4b8b --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveRefundDetailsByCharge.json @@ -0,0 +1,164 @@ +{ + "name": "RetrieveRefundDetailsByCharge", + "fully_qualified_name": "StripeApi.RetrieveRefundDetailsByCharge@0.1.0", + "description": "Fetches details of a refund associated to a specific charge.\n\nUse this tool to get detailed information about a specific refund by providing the charge ID and refund ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "charge_id", + "required": true, + "description": "The unique identifier for the charge associated with the refund.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "charge" + }, + { + "name": "refund_id", + "required": true, + "description": "The ID of the refund to retrieve details for. This is required to specify the refund you want to look up.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "refund" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the refund details to be expanded in the response.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetChargesChargeRefundsRefund'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/charges/{charge}/refunds/{refund}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "charge", + "tool_parameter_name": "charge_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "refund", + "tool_parameter_name": "refund_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveScheduledQueryRunDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveScheduledQueryRunDetails.json new file mode 100644 index 00000000..4a055164 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveScheduledQueryRunDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveScheduledQueryRunDetails", + "fully_qualified_name": "StripeApi.RetrieveScheduledQueryRunDetails@0.1.0", + "description": "Fetches details of a Stripe Sigma scheduled query run.\n\nThis tool retrieves the details of a specific scheduled query run from Stripe Sigma. Use this when you need information about the execution of a scheduled query run.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "scheduled_query_run_id", + "required": true, + "description": "The unique identifier for the scheduled query run you wish to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "scheduled_query_run" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for additional detail.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSigmaScheduledQueryRunsScheduledQueryRun'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/sigma/scheduled_query_runs/{scheduled_query_run}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "scheduled_query_run", + "tool_parameter_name": "scheduled_query_run_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSetupIntentDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSetupIntentDetails.json new file mode 100644 index 00000000..d3848853 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSetupIntentDetails.json @@ -0,0 +1,164 @@ +{ + "name": "RetrieveSetupIntentDetails", + "fully_qualified_name": "StripeApi.RetrieveSetupIntentDetails@0.1.0", + "description": "Fetch details of an existing Stripe SetupIntent.\n\nUse this tool to retrieve information about a specific SetupIntent created in Stripe. Requires the intent ID and optionally a client secret for client-side retrieval using a publishable key.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "setup_intent_id", + "required": true, + "description": "The unique identifier for the SetupIntent to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "intent" + }, + { + "name": "setup_intent_client_secret", + "required": false, + "description": "The client secret for retrieving SetupIntent using a publishable key. Required for client-side retrieval.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The client secret of the SetupIntent. We require this string if you use a publishable key to retrieve the SetupIntent." + }, + "inferrable": true, + "http_endpoint_parameter_name": "client_secret" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response, such as nested objects. Each field should be specified as a string.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSetupIntentsIntent'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/setup_intents/{intent}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "client_secret", + "tool_parameter_name": "setup_intent_client_secret", + "description": "The client secret of the SetupIntent. We require this string if you use a publishable key to retrieve the SetupIntent.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The client secret of the SetupIntent. We require this string if you use a publishable key to retrieve the SetupIntent." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "intent", + "tool_parameter_name": "setup_intent_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveShippingRateDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveShippingRateDetails.json new file mode 100644 index 00000000..b89494a2 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveShippingRateDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveShippingRateDetails", + "fully_qualified_name": "StripeApi.RetrieveShippingRateDetails@0.1.0", + "description": "Retrieve details of a specific shipping rate using its ID.\n\nThis tool retrieves the shipping rate object associated with the provided shipping rate ID. Call this tool to get detailed information about a particular shipping rate from Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "shipping_rate_id", + "required": true, + "description": "The unique identifier for the shipping rate to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "shipping_rate_token" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetShippingRatesShippingRateToken'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/shipping_rates/{shipping_rate_token}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "shipping_rate_token", + "tool_parameter_name": "shipping_rate_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSourceMandateNotification.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSourceMandateNotification.json new file mode 100644 index 00000000..424c1f9c --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSourceMandateNotification.json @@ -0,0 +1,164 @@ +{ + "name": "RetrieveSourceMandateNotification", + "fully_qualified_name": "StripeApi.RetrieveSourceMandateNotification@0.1.0", + "description": "Retrieve details of a specific mandate notification.\n\nThis tool retrieves information about a specific Source MandateNotification from Stripe. It should be used when you need to access details regarding a mandate notification for a given source.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "mandate_notification_id", + "required": true, + "description": "The unique identifier of the mandate notification to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "mandate_notification" + }, + { + "name": "source_id", + "required": true, + "description": "The unique identifier of the source to retrieve information for. This is required to specify which source's mandate notification you want to access.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "source" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response that should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSourcesSourceMandateNotificationsMandateNotification'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/sources/{source}/mandate_notifications/{mandate_notification}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "mandate_notification", + "tool_parameter_name": "mandate_notification_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "source", + "tool_parameter_name": "source_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeChargeDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeChargeDetails.json new file mode 100644 index 00000000..41a3ae5a --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeChargeDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveStripeChargeDetails", + "fully_qualified_name": "StripeApi.RetrieveStripeChargeDetails@0.1.0", + "description": "Retrieve details of a specific Stripe charge via its unique ID.\n\nUse this tool to get details of a previously created charge on Stripe by providing the charge's unique ID. It returns information such as amount, currency, status, and more.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "charge_id", + "required": true, + "description": "The unique identifier of the charge. Use this to retrieve its details.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "charge" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to expand for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetChargesCharge'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/charges/{charge}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "charge", + "tool_parameter_name": "charge_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeEventDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeEventDetails.json new file mode 100644 index 00000000..7a28f730 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeEventDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveStripeEventDetails", + "fully_qualified_name": "StripeApi.RetrieveStripeEventDetails@0.1.0", + "description": "Retrieve details of a Stripe event using its unique ID.\n\nUse this tool to get information about a Stripe event created in the last 30 days. You need to provide the unique event identifier, typically received through a webhook.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "event_identifier", + "required": true, + "description": "The unique identifier of the event to retrieve details for. Typically received via a webhook and must have been created in the last 30 days.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand_in_response", + "required": false, + "description": "List of fields to be expanded in the response. Provide field names as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetEventsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/events/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand_in_response", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "event_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripePaymentMethod.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripePaymentMethod.json new file mode 100644 index 00000000..c8e43c71 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripePaymentMethod.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveStripePaymentMethod", + "fully_qualified_name": "StripeApi.RetrieveStripePaymentMethod@0.1.0", + "description": "Retrieve details of a specific Stripe payment method.\n\nUse this tool to get information about a PaymentMethod object attached to a Stripe account. For payment methods attached to a customer, use the appropriate endpoint.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "payment_method_id", + "required": true, + "description": "The unique identifier of the Stripe PaymentMethod to be retrieved. Required for fetching details of a specific payment method.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "payment_method" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPaymentMethodsPaymentMethod'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payment_methods/{payment_method}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "payment_method", + "tool_parameter_name": "payment_method_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripePlan.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripePlan.json new file mode 100644 index 00000000..92449e4d --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripePlan.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveStripePlan", + "fully_qualified_name": "StripeApi.RetrieveStripePlan@0.1.0", + "description": "Retrieve details of a specific Stripe plan by ID.\n\nUse this tool to get detailed information about a Stripe plan using its ID. It retrieves the plan's data directly from the Stripe service.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "stripe_plan_id", + "required": true, + "description": "The unique identifier for the Stripe plan to retrieve details about. This is required to obtain a specific plan's information.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "plan" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response for more detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPlansPlan'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/plans/{plan}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "plan", + "tool_parameter_name": "stripe_plan_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripePrice.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripePrice.json new file mode 100644 index 00000000..9a5deee2 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripePrice.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveStripePrice", + "fully_qualified_name": "StripeApi.RetrieveStripePrice@0.1.0", + "description": "Fetches price details using a specific ID from Stripe.\n\nThis tool retrieves detailed information about a price by its ID from the Stripe platform. It should be called when specific pricing information is needed for products or services managed via Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "price_id", + "required": true, + "description": "The unique identifier for the price you want to retrieve from Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "price" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded to include additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPricesPrice'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/prices/{price}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "price", + "tool_parameter_name": "price_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeSource.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeSource.json new file mode 100644 index 00000000..ae111b2e --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeSource.json @@ -0,0 +1,164 @@ +{ + "name": "RetrieveStripeSource", + "fully_qualified_name": "StripeApi.RetrieveStripeSource@0.1.0", + "description": "Retrieve updated details of a Stripe source object.\n\nThis tool should be called when you need to get the current information of a specific source object in Stripe using its unique source ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "stripe_source_id", + "required": true, + "description": "The unique identifier of the Stripe source object to retrieve its current information.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "source" + }, + { + "name": "source_client_secret", + "required": false, + "description": "The client secret of the source. Required if a publishable key is used to retrieve the source.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The client secret of the source. Required if a publishable key is used to retrieve the source." + }, + "inferrable": true, + "http_endpoint_parameter_name": "client_secret" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSourcesSource'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/sources/{source}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "client_secret", + "tool_parameter_name": "source_client_secret", + "description": "The client secret of the source. Required if a publishable key is used to retrieve the source.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The client secret of the source. Required if a publishable key is used to retrieve the source." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "source", + "tool_parameter_name": "stripe_source_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeSubscriptionById.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeSubscriptionById.json new file mode 100644 index 00000000..08437174 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeSubscriptionById.json @@ -0,0 +1,164 @@ +{ + "name": "RetrieveStripeSubscriptionById", + "fully_qualified_name": "StripeApi.RetrieveStripeSubscriptionById@0.1.0", + "description": "Retrieve a Stripe subscription by its ID.\n\nThis tool retrieves a subscription from Stripe using the provided subscription ID for a specific customer. Use it when you need details about a specific subscription.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "customer_id", + "required": true, + "description": "The unique identifier for the customer whose subscription is being retrieved. Provide this to specify which customer's subscription details to fetch.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "customer" + }, + { + "name": "subscription_id", + "required": true, + "description": "The identifier of the subscription to retrieve. Required to fetch the specific subscription details.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "subscription_exposed_id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the subscription response, allowing for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersCustomerSubscriptionsSubscriptionExposedId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/{customer}/subscriptions/{subscription_exposed_id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "customer", + "tool_parameter_name": "customer_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "subscription_exposed_id", + "tool_parameter_name": "subscription_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeToken.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeToken.json new file mode 100644 index 00000000..382a9c28 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeToken.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveStripeToken", + "fully_qualified_name": "StripeApi.RetrieveStripeToken@0.1.0", + "description": "Retrieve details of a Stripe token using its ID.\n\nUse this tool to fetch information about a specific Stripe token by providing its ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "stripe_token_id", + "required": true, + "description": "The ID of the Stripe token you want to retrieve details about.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "token" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for more detail.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTokensToken'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tokens/{token}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "token", + "tool_parameter_name": "stripe_token_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeTopupDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeTopupDetails.json new file mode 100644 index 00000000..2e2b399d --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeTopupDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveStripeTopupDetails", + "fully_qualified_name": "StripeApi.RetrieveStripeTopupDetails@0.1.0", + "description": "Retrieve details of a Stripe top-up using its ID.\n\nThis tool retrieves the details of a previously created Stripe top-up. It requires the unique top-up ID and returns the corresponding top-up information.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "topup_id", + "required": true, + "description": "The unique ID of the Stripe top-up you want to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "topup" + }, + { + "name": "expand_fields", + "required": false, + "description": "A list of fields in the response to be expanded. Specify field names as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTopupsTopup'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/topups/{topup}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "topup", + "tool_parameter_name": "topup_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeVerificationReport.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeVerificationReport.json new file mode 100644 index 00000000..92468c79 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveStripeVerificationReport.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveStripeVerificationReport", + "fully_qualified_name": "StripeApi.RetrieveStripeVerificationReport@0.1.0", + "description": "Retrieve details of an existing Stripe verification report.\n\nUse this tool to fetch detailed information of a specific identity verification report from Stripe. This is useful for reviewing identity verification results or audit purposes.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "verification_report_id", + "required": true, + "description": "The unique identifier of the verification report to fetch from Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "report" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to expand for additional detail.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIdentityVerificationReportsReport'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/identity/verification_reports/{report}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "report", + "tool_parameter_name": "verification_report_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSubscriptionItem.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSubscriptionItem.json new file mode 100644 index 00000000..8e69c444 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSubscriptionItem.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveSubscriptionItem", + "fully_qualified_name": "StripeApi.RetrieveSubscriptionItem@0.1.0", + "description": "Retrieve details of a specific subscription item.\n\nThis tool retrieves information about a subscription item using its ID. It can be used to access the specifics of a subscription item within a subscription plan to understand its configuration and parameters.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "subscription_item_id", + "required": true, + "description": "The unique identifier of the subscription item to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "item" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSubscriptionItemsItem'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/subscription_items/{item}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "item", + "tool_parameter_name": "subscription_item_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSubscriptionSchedule.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSubscriptionSchedule.json new file mode 100644 index 00000000..4af1398b --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveSubscriptionSchedule.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveSubscriptionSchedule", + "fully_qualified_name": "StripeApi.RetrieveSubscriptionSchedule@0.1.0", + "description": "Get details of an existing subscription schedule by ID.\n\nThis tool retrieves the detailed information of an existing subscription schedule using its unique identifier. It should be called when detailed information about a subscription schedule is needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "subscription_schedule_id", + "required": true, + "description": "The unique identifier for the subscription schedule to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "schedule" + }, + { + "name": "fields_to_expand_in_response", + "required": false, + "description": "A list of fields to expand in the response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSubscriptionSchedulesSchedule'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/subscription_schedules/{schedule}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand_in_response", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "schedule", + "tool_parameter_name": "subscription_schedule_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxCalculation.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxCalculation.json new file mode 100644 index 00000000..e1647c4f --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxCalculation.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveTaxCalculation", + "fully_qualified_name": "StripeApi.RetrieveTaxCalculation@0.1.0", + "description": "Retrieve a specific tax calculation by its ID.\n\nThis tool retrieves details of a Tax Calculation object using its unique ID, provided the calculation has not expired. It is useful for obtaining information on specific tax calculations.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "tax_calculation_id", + "required": true, + "description": "The unique identifier for the Tax Calculation object to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "calculation" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields to expand in the response. Use to get detailed subfields of tax calculations.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTaxCalculationsCalculation'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax/calculations/{calculation}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "calculation", + "tool_parameter_name": "tax_calculation_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxCalculationLineItems.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxCalculationLineItems.json new file mode 100644 index 00000000..a968329b --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxCalculationLineItems.json @@ -0,0 +1,228 @@ +{ + "name": "RetrieveTaxCalculationLineItems", + "fully_qualified_name": "StripeApi.RetrieveTaxCalculationLineItems@0.1.0", + "description": "Retrieve line items for a Stripe tax calculation.\n\nUse this tool to get the line items of a tax calculation from Stripe, provided the calculation hasn't expired.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "tax_calculation_id", + "required": true, + "description": "The ID of the tax calculation to retrieve line items for. Ensure that the calculation has not expired.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "calculation" + }, + { + "name": "pagination_cursor_ending_before", + "required": false, + "description": "An object ID to define your place in the list for pagination, used to fetch the previous page.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "ending_before" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to be expanded. Use this to include additional data in the output.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "object_return_limit", + "required": false, + "description": "Specifies the number of objects to return, between 1 and 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_starting_after_item_id", + "required": false, + "description": "An object ID used for pagination to fetch the next page of results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "inferrable": true, + "http_endpoint_parameter_name": "starting_after" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTaxCalculationsCalculationLineItems'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax/calculations/{calculation}/line_items", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "ending_before", + "tool_parameter_name": "pagination_cursor_ending_before", + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "object_return_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "starting_after", + "tool_parameter_name": "pagination_starting_after_item_id", + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "calculation", + "tool_parameter_name": "tax_calculation_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxId.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxId.json new file mode 100644 index 00000000..bed8f4a7 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxId.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveTaxId", + "fully_qualified_name": "StripeApi.RetrieveTaxId@0.1.0", + "description": "Retrieve an account or customer's tax_id object.\n\nUse this tool to retrieve detailed information about a specific tax_id associated with an account or customer on Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "tax_id_identifier", + "required": true, + "description": "The unique identifier for the tax_id object to be retrieved. This is a required field to specify which tax_id you want information about.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response that should be expanded for detailed information.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTaxIdsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax_ids/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "tax_id_identifier", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxRate.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxRate.json new file mode 100644 index 00000000..8f7b27fb --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxRate.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveTaxRate", + "fully_qualified_name": "StripeApi.RetrieveTaxRate@0.1.0", + "description": "Fetches a tax rate by its ID from Stripe.\n\nUse this tool to retrieve specific tax rate information from Stripe using the tax rate ID. It provides the details associated with the particular tax rate.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "tax_rate_id", + "required": true, + "description": "The unique identifier for the tax rate to be retrieved from Stripe. This ID is required to fetch the specific tax rate details.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "tax_rate" + }, + { + "name": "expand_fields", + "required": false, + "description": "A list of fields to be expanded in the response. This allows you to retrieve additional nested information related to the tax rate.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTaxRatesTaxRate'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax_rates/{tax_rate}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "tax_rate", + "tool_parameter_name": "tax_rate_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxTransaction.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxTransaction.json new file mode 100644 index 00000000..b169ec0e --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTaxTransaction.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveTaxTransaction", + "fully_qualified_name": "StripeApi.RetrieveTaxTransaction@0.1.0", + "description": "Retrieve details of a specific tax transaction.\n\nThis tool retrieves a Tax Transaction object from the Stripe API, providing detailed information about a specific tax transaction.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "transaction_id", + "required": true, + "description": "Unique identifier for the tax transaction to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "transaction" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "A list of fields to expand in the tax transaction response for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTaxTransactionsTransaction'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/tax/transactions/{transaction}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "transaction", + "tool_parameter_name": "transaction_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTerminalConfiguration.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTerminalConfiguration.json new file mode 100644 index 00000000..ce8e0720 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTerminalConfiguration.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveTerminalConfiguration", + "fully_qualified_name": "StripeApi.RetrieveTerminalConfiguration@0.1.0", + "description": "Retrieves a terminal configuration object for Stripe.\n\n", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "configuration_id", + "required": true, + "description": "The unique identifier of the terminal configuration to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "configuration" + }, + { + "name": "expand_fields", + "required": false, + "description": "A list of fields in the terminal configuration response that should be expanded for more details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTerminalConfigurationsConfiguration'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/terminal/configurations/{configuration}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "configuration", + "tool_parameter_name": "configuration_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTerminalLocation.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTerminalLocation.json new file mode 100644 index 00000000..a664a03a --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTerminalLocation.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveTerminalLocation", + "fully_qualified_name": "StripeApi.RetrieveTerminalLocation@0.1.0", + "description": "Fetches details of a terminal location by ID.\n\nUse this tool to obtain information about a specific terminal location from Stripe by providing the location ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "location_id", + "required": true, + "description": "The unique identifier for the terminal location to retrieve information for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "location" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response to expand for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTerminalLocationsLocation'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/terminal/locations/{location}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "location", + "tool_parameter_name": "location_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTerminalReader.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTerminalReader.json new file mode 100644 index 00000000..c6bb9456 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTerminalReader.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveTerminalReader", + "fully_qualified_name": "StripeApi.RetrieveTerminalReader@0.1.0", + "description": "Retrieve details of a terminal reader.\n\nThis tool retrieves a specific terminal reader object from the Stripe API. It should be called when detailed information about a particular reader is needed.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "terminal_reader_id", + "required": true, + "description": "The unique identifier for the terminal reader to retrieve. It should be a string value.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "reader" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for more detail.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTerminalReadersReader'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/terminal/readers/{reader}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "reader", + "tool_parameter_name": "terminal_reader_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTestClock.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTestClock.json new file mode 100644 index 00000000..5beafbc5 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTestClock.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveTestClock", + "fully_qualified_name": "StripeApi.RetrieveTestClock@0.1.0", + "description": "Retrieve details of a Stripe test clock.\n\nThis tool retrieves information about a specific test clock within Stripe's test environment. It should be used to gather details about test clocks for testing purposes.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "test_clock_id", + "required": true, + "description": "The unique identifier of the test clock to retrieve from Stripe.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "test_clock" + }, + { + "name": "expand_fields", + "required": false, + "description": "A list of strings specifying which fields in the response should be expanded for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTestHelpersTestClocksTestClock'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/test_helpers/test_clocks/{test_clock}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "test_clock", + "tool_parameter_name": "test_clock_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTransactionEntry.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTransactionEntry.json new file mode 100644 index 00000000..1df23053 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTransactionEntry.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveTransactionEntry", + "fully_qualified_name": "StripeApi.RetrieveTransactionEntry@0.1.0", + "description": "Fetches details of a specific treasury transaction entry.\n\nUse this tool to retrieve detailed information about a specific transaction entry from Stripe's treasury system by providing the transaction entry ID.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "transaction_entry_id", + "required": true, + "description": "The unique identifier of the treasury transaction entry to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "An array of field names to include in the response for additional detail.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryTransactionEntriesId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/transaction_entries/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "transaction_entry_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTreasuryTransactionDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTreasuryTransactionDetails.json new file mode 100644 index 00000000..7e6883f6 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveTreasuryTransactionDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveTreasuryTransactionDetails", + "fully_qualified_name": "StripeApi.RetrieveTreasuryTransactionDetails@0.1.0", + "description": "Retrieve details of a specific treasury transaction.\n\nThis tool retrieves the details of an existing treasury transaction by its ID. Use it when you need to access specific information about a treasury transaction in Stripe.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "transaction_id", + "required": true, + "description": "The ID of the treasury transaction you want to retrieve details for.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "id" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the treasury transaction response to be expanded, specified as an array of strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetTreasuryTransactionsId'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/treasury/transactions/{id}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "id", + "tool_parameter_name": "transaction_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveValueListItem.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveValueListItem.json new file mode 100644 index 00000000..15309f57 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveValueListItem.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveValueListItem", + "fully_qualified_name": "StripeApi.RetrieveValueListItem@0.1.0", + "description": "Retrieve details of a specific ValueListItem in Stripe Radar.\n\nThis tool retrieves information about a specific ValueListItem object from Stripe's Radar service, which can be used to manage elements within its fraud prevention tools.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "value_list_item_id", + "required": true, + "description": "The unique identifier of the ValueListItem to retrieve from Stripe's Radar service.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "item" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the ValueListItem response to expand for additional details.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetRadarValueListItemsItem'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/radar/value_list_items/{item}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "item", + "tool_parameter_name": "value_list_item_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveVerificationSessionDetails.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveVerificationSessionDetails.json new file mode 100644 index 00000000..c4fcaf1b --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveVerificationSessionDetails.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveVerificationSessionDetails", + "fully_qualified_name": "StripeApi.RetrieveVerificationSessionDetails@0.1.0", + "description": "Retrieve details of a Stripe verification session.\n\nUse this tool to get information about a specific Stripe VerificationSession. It's helpful when the session status is 'requires_input' to obtain a valid client_secret or URL for re-submission.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "verification_session_id", + "required": true, + "description": "The unique identifier of the Stripe VerificationSession to be retrieved.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "session" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "A list of fields in the response to be expanded for additional details. Use this to customize the verbosity of the response.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetIdentityVerificationSessionsSession'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/identity/verification_sessions/{session}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "session", + "tool_parameter_name": "verification_session_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveWebhookEndpoint.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveWebhookEndpoint.json new file mode 100644 index 00000000..19209dce --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/RetrieveWebhookEndpoint.json @@ -0,0 +1,132 @@ +{ + "name": "RetrieveWebhookEndpoint", + "fully_qualified_name": "StripeApi.RetrieveWebhookEndpoint@0.1.0", + "description": "Retrieve details of a specified webhook endpoint by ID.\n\nThis tool retrieves information about a Stripe webhook endpoint using its ID. Use it when you need to get details such as status, URL, and events for a specific webhook endpoint.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "webhook_endpoint_id", + "required": true, + "description": "The unique identifier for the Stripe webhook endpoint you want to retrieve.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "inferrable": true, + "http_endpoint_parameter_name": "webhook_endpoint" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields to expand in the response, specified as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetWebhookEndpointsWebhookEndpoint'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/webhook_endpoints/{webhook_endpoint}", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "webhook_endpoint", + "tool_parameter_name": "webhook_endpoint_id", + "description": "", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "" + }, + "accepted_as": "path", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeCustomers.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeCustomers.json new file mode 100644 index 00000000..9f3202d5 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeCustomers.json @@ -0,0 +1,196 @@ +{ + "name": "SearchStripeCustomers", + "fully_qualified_name": "StripeApi.SearchStripeCustomers@0.1.0", + "description": "Search and retrieve customer data from Stripe.\n\nUse this tool to search for customers that have been previously created in Stripe using their Search Query Language. Note that search may not reflect the most recent updates instantly and may experience delays during outages. This tool is not available for use in India.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "search_query_string", + "required": true, + "description": "The search query string used to search for customers. Refer to Stripe's Search Query Language documentation for syntax and supported fields.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for customers](https://stripe.com/docs/search#query-fields-for-customers)." + }, + "inferrable": true, + "http_endpoint_parameter_name": "query" + }, + { + "name": "expand_response_fields", + "required": false, + "description": "A list of fields in the response that should be expanded. Provide the field names as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "customer_result_limit", + "required": false, + "description": "Specifies the maximum number of customer records to return, between 1 and 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_cursor", + "required": false, + "description": "Cursor for paginating through results. Use 'next_page' from a previous response for subsequent results. Omit on the first call.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "inferrable": true, + "http_endpoint_parameter_name": "page" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetCustomersSearch'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/customers/search", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_response_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "customer_result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "page", + "tool_parameter_name": "pagination_cursor", + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "query", + "tool_parameter_name": "search_query_string", + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for customers](https://stripe.com/docs/search#query-fields-for-customers).", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for customers](https://stripe.com/docs/search#query-fields-for-customers)." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeInvoices.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeInvoices.json new file mode 100644 index 00000000..bdd635f3 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeInvoices.json @@ -0,0 +1,196 @@ +{ + "name": "SearchStripeInvoices", + "fully_qualified_name": "StripeApi.SearchStripeInvoices@0.1.0", + "description": "Search for previously created Stripe invoices.\n\nThis tool searches for invoices you've previously created using Stripe's Search Query Language. It should not be used in read-after-write flows needing strict consistency. Data is typically searchable within a minute but could take up to an hour during outages. Not available for merchants in India.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "search_query_string", + "required": true, + "description": "The search query string using Stripe's Search Query Language. Refer to Stripe's documentation for syntax and supported fields.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for invoices](https://stripe.com/docs/search#query-fields-for-invoices)." + }, + "inferrable": true, + "http_endpoint_parameter_name": "query" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response to be expanded for additional details. Provide field names as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Defines the maximum number of invoice records to return, ranging from 1 to 100. Defaults to 10 if not specified.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_cursor", + "required": false, + "description": "A cursor for pagination to retrieve subsequent pages. Use the next_page value from a previous response; exclude for the first call.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "inferrable": true, + "http_endpoint_parameter_name": "page" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetInvoicesSearch'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/invoices/search", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "page", + "tool_parameter_name": "pagination_cursor", + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "query", + "tool_parameter_name": "search_query_string", + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for invoices](https://stripe.com/docs/search#query-fields-for-invoices).", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for invoices](https://stripe.com/docs/search#query-fields-for-invoices)." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripePaymentIntents.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripePaymentIntents.json new file mode 100644 index 00000000..b21b47aa --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripePaymentIntents.json @@ -0,0 +1,196 @@ +{ + "name": "SearchStripePaymentIntents", + "fully_qualified_name": "StripeApi.SearchStripePaymentIntents@0.1.0", + "description": "Search previously created Stripe PaymentIntents.\n\nUse this tool to search for PaymentIntents that you have previously created on Stripe using their Search Query Language. Note that search results might be slightly delayed, so avoid using this tool in scenarios needing strict consistency immediately after data changes.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "search_query_string", + "required": true, + "description": "The search query to find specific PaymentIntents using Stripe's Search Query Language. Refer to the documentation for query syntax and fields.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for payment intents](https://stripe.com/docs/search#query-fields-for-payment-intents)." + }, + "inferrable": true, + "http_endpoint_parameter_name": "query" + }, + { + "name": "expand_fields", + "required": false, + "description": "A list of specific fields in the response that should be expanded. Use field names as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Number of PaymentIntent objects to return, ranging from 1 to 100, with a default of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_cursor", + "required": false, + "description": "Cursor for pagination. Use the 'next_page' value from a previous response to request more results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "inferrable": true, + "http_endpoint_parameter_name": "page" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPaymentIntentsSearch'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/payment_intents/search", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "page", + "tool_parameter_name": "pagination_cursor", + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "query", + "tool_parameter_name": "search_query_string", + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for payment intents](https://stripe.com/docs/search#query-fields-for-payment-intents).", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for payment intents](https://stripe.com/docs/search#query-fields-for-payment-intents)." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripePrices.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripePrices.json new file mode 100644 index 00000000..a9445982 --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripePrices.json @@ -0,0 +1,196 @@ +{ + "name": "SearchStripePrices", + "fully_qualified_name": "StripeApi.SearchStripePrices@0.1.0", + "description": "Search for previously created Stripe prices.\n\nUse this tool to search for prices you have previously created on Stripe using the Stripe Search Query Language. Note that this function should not be used for read-after-write flows where strict consistency is necessary, as data may take some time to propagate.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "search_query_string", + "required": true, + "description": "The search query string for prices using Stripe's Search Query Language. Refer to the documentation for syntax and supported fields.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for prices](https://stripe.com/docs/search#query-fields-for-prices)." + }, + "inferrable": true, + "http_endpoint_parameter_name": "query" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "List of fields in the response that should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Specifies the maximum number of price objects to return. Must be between 1 and 100, with a default of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_cursor", + "required": false, + "description": "Cursor for paginating through results. Omit on first call; use 'next_page' from a prior response for additional results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "inferrable": true, + "http_endpoint_parameter_name": "page" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetPricesSearch'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/prices/search", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "page", + "tool_parameter_name": "pagination_cursor", + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "query", + "tool_parameter_name": "search_query_string", + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for prices](https://stripe.com/docs/search#query-fields-for-prices).", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for prices](https://stripe.com/docs/search#query-fields-for-prices)." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeProducts.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeProducts.json new file mode 100644 index 00000000..23f55bbb --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeProducts.json @@ -0,0 +1,196 @@ +{ + "name": "SearchStripeProducts", + "fully_qualified_name": "StripeApi.SearchStripeProducts@0.1.0", + "description": "Search for previously created products on Stripe.\n\nUse this tool to search for products you have created on Stripe. It utilizes Stripe's Search Query Language for querying. Note that the search may not be suitable for transactions needing strict consistency, as data may be slightly outdated. Also, this service isn't available in India.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "search_query_string", + "required": true, + "description": "The search query string to find products. Refer to Stripe's Search Query Language for syntax and available fields.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for products](https://stripe.com/docs/search#query-fields-for-products)." + }, + "inferrable": true, + "http_endpoint_parameter_name": "query" + }, + { + "name": "response_fields_to_expand", + "required": false, + "description": "List of specific fields to expand in the response for detailed information. Use field names as strings.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "results_limit", + "required": false, + "description": "Specifies the maximum number of product results to return, ranging from 1 to 100. Defaults to 10 if not set.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_cursor", + "required": false, + "description": "A cursor for paginating through the results. Use the 'next_page' value from the previous response for subsequent pages. Do not include this on the first call.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "inferrable": true, + "http_endpoint_parameter_name": "page" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetProductsSearch'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/products/search", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "response_fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "results_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "page", + "tool_parameter_name": "pagination_cursor", + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "query", + "tool_parameter_name": "search_query_string", + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for products](https://stripe.com/docs/search#query-fields-for-products).", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for products](https://stripe.com/docs/search#query-fields-for-products)." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeSubscriptions.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeSubscriptions.json new file mode 100644 index 00000000..59e0cb3c --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/SearchStripeSubscriptions.json @@ -0,0 +1,196 @@ +{ + "name": "SearchStripeSubscriptions", + "fully_qualified_name": "StripeApi.SearchStripeSubscriptions@0.1.0", + "description": "Search previously created Stripe subscriptions.\n\nUse this tool to search for subscriptions created with Stripe using their Search Query Language. This is ideal for retrieving subscription data, but not suitable for scenarios requiring strict consistency, such as immediately after creating or updating data. Note: This functionality isn't available for merchants in India.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "search_query_string", + "required": true, + "description": "The search query string used to filter Stripe subscriptions. Refer to the Stripe Search Query Language documentation for syntax and query fields.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for subscriptions](https://stripe.com/docs/search#query-fields-for-subscriptions)." + }, + "inferrable": true, + "http_endpoint_parameter_name": "query" + }, + { + "name": "expand_fields", + "required": false, + "description": "A list of fields in the Stripe subscription response to be expanded. This allows accessing additional data for each subscription object.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Specify the maximum number of subscription results to return, from 1 to 100. Default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_cursor", + "required": false, + "description": "Cursor for paginating through results. Omit on first call; use next_page value from a prior response for subsequent results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "inferrable": true, + "http_endpoint_parameter_name": "page" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetSubscriptionsSearch'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/subscriptions/search", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "expand_fields", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "page", + "tool_parameter_name": "pagination_cursor", + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "query", + "tool_parameter_name": "search_query_string", + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for subscriptions](https://stripe.com/docs/search#query-fields-for-subscriptions).", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for subscriptions](https://stripe.com/docs/search#query-fields-for-subscriptions)." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/StripeSearchCharges.json b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/StripeSearchCharges.json new file mode 100644 index 00000000..68a5646d --- /dev/null +++ b/toolkits/stripe_api/arcade_stripe_api/wrapper_tools/StripeSearchCharges.json @@ -0,0 +1,196 @@ +{ + "name": "StripeSearchCharges", + "fully_qualified_name": "StripeApi.StripeSearchCharges@0.1.0", + "description": "Search for previously created charges using Stripe.\n\nUse this tool to search for charges you've created with Stripe using their Search Query Language. It's not suitable for scenarios needing strict consistency. Data may take up to an hour to appear during outages, and the feature is unavailable in India.", + "toolkit": { + "name": "ArcadeStripeApi", + "description": null, + "version": "0.1.0" + }, + "input": { + "parameters": [ + { + "name": "search_query_string", + "required": true, + "description": "The search query string using Stripe's Search Query Language to filter charge results. Refer to Stripe's documentation for syntax and fields.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for charges](https://stripe.com/docs/search#query-fields-for-charges)." + }, + "inferrable": true, + "http_endpoint_parameter_name": "query" + }, + { + "name": "fields_to_expand", + "required": false, + "description": "A list of fields in the response that should be expanded for additional detail.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "inferrable": true, + "http_endpoint_parameter_name": "expand" + }, + { + "name": "result_limit", + "required": false, + "description": "Specify the number of charge objects to return. The limit can be between 1 and 100, with a default of 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "inferrable": true, + "http_endpoint_parameter_name": "limit" + }, + { + "name": "pagination_cursor", + "required": false, + "description": "Cursor for pagination. Use the 'next_page' value from the previous response for subsequent requests. Omit on the first call.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "inferrable": true, + "http_endpoint_parameter_name": "page" + } + ] + }, + "output": { + "description": "Response from the API endpoint 'GetChargesSearch'.", + "available_modes": [ + "value", + "error", + "null" + ], + "value_schema": { + "val_type": "json", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": null + } + }, + "requirements": { + "authorization": null, + "secrets": [ + { + "key": "STRIPE_API_KEY" + } + ], + "metadata": null + }, + "deprecation_message": null, + "metadata": { + "object_type": "api_wrapper_tool", + "version": "1.0.0", + "description": "Tools that enable LLMs to interact directly with the Stripe API." + }, + "http_endpoint": { + "metadata": { + "object_type": "http_endpoint", + "version": "1.0.0", + "description": "" + }, + "url": "https://api.stripe.com/v1/charges/search", + "http_method": "GET", + "headers": {}, + "parameters": [ + { + "name": "expand", + "tool_parameter_name": "fields_to_expand", + "description": "Specifies which fields in the response should be expanded.", + "value_schema": { + "val_type": "array", + "inner_val_type": "string", + "enum": null, + "properties": null, + "inner_properties": null, + "description": "Specifies which fields in the response should be expanded." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "limit", + "tool_parameter_name": "result_limit", + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "value_schema": { + "val_type": "integer", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "page", + "tool_parameter_name": "pagination_cursor", + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results." + }, + "accepted_as": "query", + "required": false, + "deprecated": false, + "documentation_urls": [] + }, + { + "name": "query", + "tool_parameter_name": "search_query_string", + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for charges](https://stripe.com/docs/search#query-fields-for-charges).", + "value_schema": { + "val_type": "string", + "inner_val_type": null, + "enum": null, + "properties": null, + "inner_properties": null, + "description": "The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for charges](https://stripe.com/docs/search#query-fields-for-charges)." + }, + "accepted_as": "query", + "required": true, + "deprecated": false, + "documentation_urls": [] + } + ], + "documentation_urls": [], + "secrets": [ + { + "arcade_key": "STRIPE_API_KEY", + "parameter_name": "Authorization", + "accepted_as": "header", + "formatted_value": "Bearer {authorization}", + "description": "", + "is_auth_token": false + } + ] + } +} diff --git a/toolkits/stripe_api/pyproject.toml b/toolkits/stripe_api/pyproject.toml new file mode 100644 index 00000000..8fa1ce55 --- /dev/null +++ b/toolkits/stripe_api/pyproject.toml @@ -0,0 +1,58 @@ +[build-system] +requires = [ "hatchling",] +build-backend = "hatchling.build" + +[project] +name = "arcade_stripe_api" +version = "0.1.0" +description = "Tools that enable LLMs to interact directly with the Stripe API." +requires-python = ">=3.10" +dependencies = [ + "arcade-tdk>=2.6.0rc2,<3.0.0", + "httpx>=0.27.2,<1.0.0", +] +[[project.authors]] +name = "Arcade" +email = "support@arcade.dev" + +[project.optional-dependencies] +dev = [ + "arcade-mcp[all]>=1.0.0rc1,<3.0.0", + "arcade-serve>=2.2.0rc1,<3.0.0", + "pytest>=8.3.0,<8.4.0", + "pytest-cov>=4.0.0,<4.1.0", + "pytest-asyncio>=0.24.0,<0.25.0", + "pytest-mock>=3.11.1,<3.12.0", + "mypy>=1.5.1,<1.6.0", + "pre-commit>=3.4.0,<3.5.0", + "tox>=4.11.1,<4.12.0", + "ruff>=0.7.4,<0.8.0", + "httpx>=0.27.2,<1.0.0", +] + +# Use local path sources for arcade libs when working locally +[tool.uv.sources] +arcade-mcp = {path = "../../", editable = true} +arcade-tdk = { path = "../../libs/arcade-tdk/", editable = true } +arcade-serve = { path = "../../libs/arcade-serve/", editable = true } + +[tool.mypy] +files = [ "arcade_stripe_api/**/*.py",] +python_version = "3.10" +disallow_untyped_defs = "True" +disallow_any_unimported = "True" +no_implicit_optional = "True" +check_untyped_defs = "True" +warn_return_any = "True" +warn_unused_ignores = "True" +show_error_codes = "True" +ignore_missing_imports = "True" + +[tool.pytest.ini_options] +testpaths = [ "tests",] + +[tool.coverage.report] +skip_empty = true + +[tool.hatch.build.targets.wheel] +packages = [ "arcade_stripe_api",] diff --git a/toolkits/stripe_api/tests/__init__.py b/toolkits/stripe_api/tests/__init__.py new file mode 100644 index 00000000..e69de29b