├── src └── freeapiapp │ ├── py.typed │ ├── _version.py │ ├── lib │ └── .keep │ ├── types │ ├── public │ │ ├── cats │ │ │ └── __init__.py │ │ ├── dogs │ │ │ ├── __init__.py │ │ │ └── dog_random_response.py │ │ ├── meals │ │ │ └── __init__.py │ │ ├── random_jokes │ │ │ ├── __init__.py │ │ │ └── joke_random_response.py │ │ ├── random_users │ │ │ └── __init__.py │ │ ├── random_products │ │ │ ├── __init__.py │ │ │ └── product_random_response.py │ │ ├── random_user_list_params.py │ │ ├── youtube │ │ │ ├── related_list_params.py │ │ │ ├── playlist_list_params.py │ │ │ ├── video_list_params.py │ │ │ └── __init__.py │ │ ├── cat_list_params.py │ │ ├── dog_list_params.py │ │ ├── meal_list_params.py │ │ ├── quote_list_params.py │ │ ├── book_list_params.py │ │ ├── stock_list_params.py │ │ ├── random_joke_list_params.py │ │ ├── random_product_list_params.py │ │ ├── random_joke_retrieve_response.py │ │ ├── quote_random_response.py │ │ ├── quote_retrieve_response.py │ │ ├── random_product_retrieve_response.py │ │ ├── random_joke_list_response.py │ │ ├── random_product_list_response.py │ │ ├── dog_retrieve_response.py │ │ ├── stock_random_response.py │ │ ├── stock_retrieve_response.py │ │ └── quote_list_response.py │ ├── chat_app │ │ ├── chats │ │ │ ├── __init__.py │ │ │ └── user_list_response.py │ │ ├── __init__.py │ │ └── message_delete_response.py │ ├── users │ │ ├── __init__.py │ │ └── avatar_update_params.py │ ├── ecommerce │ │ ├── profile │ │ │ ├── __init__.py │ │ │ └── my_order_list_params.py │ │ ├── category_create_params.py │ │ ├── category_update_params.py │ │ ├── orders │ │ │ ├── status_update_params.py │ │ │ ├── admin_list_params.py │ │ │ ├── __init__.py │ │ │ ├── provider │ │ │ │ ├── paypal_create_params.py │ │ │ │ ├── razorpay_create_params.py │ │ │ │ ├── razorpay_verify_payment_params.py │ │ │ │ ├── paypal_verify_payment_params.py │ │ │ │ ├── __init__.py │ │ │ │ ├── paypal_create_response.py │ │ │ │ ├── razorpay_create_response.py │ │ │ │ └── razorpay_verify_payment_response.py │ │ │ └── status_update_response.py │ │ ├── coupon_list_params.py │ │ ├── address_list_params.py │ │ ├── category_list_params.py │ │ ├── coupons │ │ │ ├── customer_available_list_params.py │ │ │ ├── status_update_params.py │ │ │ ├── __init__.py │ │ │ └── status_update_response.py │ │ ├── coupon_apply_params.py │ │ ├── coupon_remove_params.py │ │ ├── coupon_update_params.py │ │ ├── cart_clear_response.py │ │ ├── address_create_params.py │ │ ├── address_update_params.py │ │ ├── profile_update_params.py │ │ ├── coupon_create_params.py │ │ ├── category_create_response.py │ │ ├── category_update_response.py │ │ ├── category_retrieve_response.py │ │ ├── category_delete_response.py │ │ ├── profile_update_response.py │ │ ├── profile_retrieve_response.py │ │ ├── address_create_response.py │ │ ├── address_update_response.py │ │ ├── address_retrieve_response.py │ │ ├── address_delete_response.py │ │ ├── coupon_update_response.py │ │ ├── coupon_create_response.py │ │ ├── coupon_retrieve_response.py │ │ ├── coupon_delete_response.py │ │ └── category_list_response.py │ ├── cart │ │ ├── item_create_params.py │ │ ├── __init__.py │ │ └── item_delete_response.py │ ├── chats │ │ ├── group_update_params.py │ │ ├── group_create_params.py │ │ ├── group_delete_response.py │ │ └── __init__.py │ ├── kitchen_sink │ │ ├── response │ │ │ ├── __init__.py │ │ │ ├── cache_retrieve_response.py │ │ │ └── header_retrieve_response.py │ │ ├── request │ │ │ ├── query_parameter_retrieve_params.py │ │ │ ├── ip_retrieve_response.py │ │ │ ├── user_agent_retrieve_response.py │ │ │ ├── path_variable_retrieve_response.py │ │ │ ├── __init__.py │ │ │ ├── query_parameter_retrieve_response.py │ │ │ └── header_retrieve_response.py │ │ ├── __init__.py │ │ ├── http_method_get_response.py │ │ ├── http_method_delete_response.py │ │ ├── http_method_put_response.py │ │ ├── http_method_create_response.py │ │ └── http_method_update_response.py │ ├── user_assign_role_params.py │ ├── kitchen_sinks │ │ ├── cookie_create_params.py │ │ ├── cookie_remove_params.py │ │ ├── __init__.py │ │ ├── cookie_remove_response.py │ │ ├── cookie_create_response.py │ │ └── cookie_retrieve_response.py │ ├── social_media │ │ ├── comment_create_params.py │ │ ├── comment_update_params.py │ │ ├── profile │ │ │ ├── __init__.py │ │ │ └── cover_image_update_params.py │ │ ├── post_list_params.py │ │ ├── posts │ │ │ ├── my_list_params.py │ │ │ ├── tag_list_params.py │ │ │ ├── user_post_list_params.py │ │ │ └── __init__.py │ │ ├── comment_list_params.py │ │ ├── follow │ │ │ ├── follower_list_params.py │ │ │ ├── following_list_params.py │ │ │ └── __init__.py │ │ ├── bookmark_retrieve_params.py │ │ ├── post_delete_response.py │ │ ├── post_update_params.py │ │ ├── post_like_response.py │ │ ├── comment_like_response.py │ │ ├── bookmark_create_response.py │ │ ├── post_create_params.py │ │ ├── profile_update_params.py │ │ ├── comment_create_response.py │ │ ├── comment_delete_response.py │ │ └── comment_update_response.py │ ├── todo_list_params.py │ ├── user_forgot_password_params.py │ ├── product_list_params.py │ ├── kitchen_sink_redirect_to_params.py │ ├── todo_create_params.py │ ├── todo_update_params.py │ ├── products │ │ ├── category_retrieve_params.py │ │ ├── __init__.py │ │ └── subimage_remove_response.py │ ├── authentication_login_params.py │ ├── authentication_register_params.py │ ├── user_reset_password_params.py │ ├── user_change_password_params.py │ ├── message_send_params.py │ ├── chat_remove_response.py │ ├── seed │ │ ├── todo_create_response.py │ │ ├── chat_app_create_response.py │ │ ├── ecommerce_create_response.py │ │ ├── social_media_create_response.py │ │ ├── __init__.py │ │ └── generated_credential_list_response.py │ ├── reset_db_delete_response.py │ ├── user_assign_role_response.py │ ├── healthcheck_retrieve_response.py │ ├── user_change_password_response.py │ ├── user_forgot_password_response.py │ ├── user_reset_password_response.py │ ├── authentication_logout_response.py │ ├── user_resend_email_verification_response.py │ ├── authentication_verify_email_response.py │ ├── kitchen_sink_response_gzip_response.py │ ├── kitchen_sink_response_brotli_response.py │ ├── user_refresh_token_response.py │ ├── product_create_params.py │ ├── product_update_params.py │ ├── todo_create_response.py │ ├── todo_update_response.py │ ├── todo_list_response.py │ ├── todo_retrieve_response.py │ ├── todo_toggle_status_response.py │ ├── todo_delete_response.py │ ├── product_create_response.py │ ├── product_delete_response.py │ ├── authentication_current_user_response.py │ ├── authentication_register_response.py │ ├── authentication_login_response.py │ └── product_update_response.py │ ├── _utils │ ├── _streams.py │ ├── _logs.py │ └── _reflection.py │ ├── _constants.py │ ├── resources │ ├── public │ │ ├── cats │ │ │ └── __init__.py │ │ ├── dogs │ │ │ └── __init__.py │ │ ├── meals │ │ │ └── __init__.py │ │ ├── random_jokes │ │ │ └── __init__.py │ │ ├── random_users │ │ │ └── __init__.py │ │ └── random_products │ │ │ └── __init__.py │ ├── cart │ │ └── __init__.py │ ├── chats │ │ └── __init__.py │ ├── users │ │ └── __init__.py │ ├── ecommerce │ │ ├── profile │ │ │ └── __init__.py │ │ ├── orders │ │ │ └── provider │ │ │ │ └── __init__.py │ │ └── coupons │ │ │ └── __init__.py │ ├── social_media │ │ ├── profile │ │ │ └── __init__.py │ │ └── follow │ │ │ └── __init__.py │ ├── kitchen_sinks │ │ └── __init__.py │ ├── chat_app │ │ ├── chats │ │ │ └── __init__.py │ │ └── __init__.py │ └── products │ │ └── __init__.py │ └── _resource.py ├── .python-version ├── Brewfile ├── tests ├── sample_file.txt ├── __init__.py ├── api_resources │ ├── __init__.py │ ├── cart │ │ └── __init__.py │ ├── chats │ │ └── __init__.py │ ├── public │ │ ├── __init__.py │ │ ├── cats │ │ │ └── __init__.py │ │ ├── dogs │ │ │ └── __init__.py │ │ ├── meals │ │ │ └── __init__.py │ │ ├── youtube │ │ │ └── __init__.py │ │ ├── random_jokes │ │ │ └── __init__.py │ │ ├── random_users │ │ │ └── __init__.py │ │ └── random_products │ │ │ └── __init__.py │ ├── seed │ │ └── __init__.py │ ├── users │ │ └── __init__.py │ ├── chat_app │ │ ├── __init__.py │ │ └── chats │ │ │ └── __init__.py │ ├── ecommerce │ │ ├── __init__.py │ │ ├── orders │ │ │ ├── __init__.py │ │ │ └── provider │ │ │ │ └── __init__.py │ │ ├── coupons │ │ │ └── __init__.py │ │ └── profile │ │ │ └── __init__.py │ ├── products │ │ └── __init__.py │ ├── kitchen_sink │ │ ├── __init__.py │ │ ├── request │ │ │ └── __init__.py │ │ └── response │ │ │ └── __init__.py │ ├── kitchen_sinks │ │ └── __init__.py │ └── social_media │ │ ├── __init__.py │ │ ├── follow │ │ └── __init__.py │ │ ├── posts │ │ └── __init__.py │ │ └── profile │ │ └── __init__.py ├── test_utils │ └── test_proxy.py ├── test_files.py └── test_deepcopy.py ├── scripts ├── format ├── lint ├── bootstrap ├── mock └── test ├── .gitignore ├── .stats.yml ├── examples └── .keep ├── noxfile.py ├── .devcontainer ├── Dockerfile └── devcontainer.json ├── bin └── publish-pypi ├── requirements.lock ├── .github └── workflows │ └── ci.yml ├── SECURITY.md └── mypy.ini /src/freeapiapp/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.9.18 2 | -------------------------------------------------------------------------------- /Brewfile: -------------------------------------------------------------------------------- 1 | brew "rye" 2 | 3 | -------------------------------------------------------------------------------- /tests/sample_file.txt: -------------------------------------------------------------------------------- 1 | Hello, world! 2 | -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/cart/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/chats/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/public/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/seed/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/users/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/chat_app/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/ecommerce/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/products/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/public/cats/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/public/dogs/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/chat_app/chats/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/ecommerce/orders/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/kitchen_sink/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/kitchen_sinks/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/public/meals/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/public/youtube/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/social_media/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/ecommerce/coupons/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/ecommerce/profile/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/kitchen_sink/request/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/kitchen_sink/response/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/public/random_jokes/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/public/random_users/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/social_media/follow/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/social_media/posts/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/social_media/profile/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /scripts/format: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | cd "$(dirname "$0")/.." 6 | 7 | echo "==> Running formatters" 8 | rye run format 9 | -------------------------------------------------------------------------------- /tests/api_resources/ecommerce/orders/provider/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /tests/api_resources/public/random_products/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | -------------------------------------------------------------------------------- /src/freeapiapp/_version.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | __title__ = "freeapiapp" 4 | __version__ = "0.0.1-alpha.0" 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .prism.log 2 | .vscode 3 | _dev 4 | 5 | __pycache__ 6 | .mypy_cache 7 | 8 | dist 9 | 10 | .venv 11 | .idea 12 | 13 | .env 14 | .envrc 15 | codegen.log 16 | Brewfile.lock.json 17 | -------------------------------------------------------------------------------- /.stats.yml: -------------------------------------------------------------------------------- 1 | configured_endpoints: 166 2 | openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hiteshchoudhary-ssesph%2Ffreeapiapp-a9f3a290e4dc07d70270ba92440e0cace3c7015b2089349eba66608e8af6bbbf.yml 3 | -------------------------------------------------------------------------------- /scripts/lint: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | cd "$(dirname "$0")/.." 6 | 7 | echo "==> Running lints" 8 | rye run lint 9 | 10 | echo "==> Making sure it imports" 11 | rye run python -c 'import freeapiapp' 12 | 13 | -------------------------------------------------------------------------------- /src/freeapiapp/lib/.keep: -------------------------------------------------------------------------------- 1 | File generated from our OpenAPI spec by Stainless. 2 | 3 | This directory can be used to store custom files to expand the SDK. 4 | It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. -------------------------------------------------------------------------------- /src/freeapiapp/types/public/cats/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .cat_random_response import CatRandomResponse as CatRandomResponse 6 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/dogs/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .dog_random_response import DogRandomResponse as DogRandomResponse 6 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/meals/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .meal_random_response import MealRandomResponse as MealRandomResponse 6 | -------------------------------------------------------------------------------- /examples/.keep: -------------------------------------------------------------------------------- 1 | File generated from our OpenAPI spec by Stainless. 2 | 3 | This directory can be used to store example files demonstrating usage of this SDK. 4 | It is ignored by Stainless code generation and its content (other than this keep file) won't be touched. -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_jokes/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .joke_random_response import JokeRandomResponse as JokeRandomResponse 6 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_users/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .user_random_response import UserRandomResponse as UserRandomResponse 6 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_products/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .product_random_response import ProductRandomResponse as ProductRandomResponse 6 | -------------------------------------------------------------------------------- /src/freeapiapp/types/chat_app/chats/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .c_create_response import CCreateResponse as CCreateResponse 6 | from .user_list_response import UserListResponse as UserListResponse 7 | -------------------------------------------------------------------------------- /src/freeapiapp/types/chat_app/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .chat_list_response import ChatListResponse as ChatListResponse 6 | from .message_delete_response import MessageDeleteResponse as MessageDeleteResponse 7 | -------------------------------------------------------------------------------- /src/freeapiapp/types/users/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .avatar_update_params import AvatarUpdateParams as AvatarUpdateParams 6 | from .avatar_update_response import AvatarUpdateResponse as AvatarUpdateResponse 7 | -------------------------------------------------------------------------------- /noxfile.py: -------------------------------------------------------------------------------- 1 | import nox 2 | 3 | 4 | @nox.session(reuse_venv=True, name="test-pydantic-v1") 5 | def test_pydantic_v1(session: nox.Session) -> None: 6 | session.install("-r", "requirements-dev.lock") 7 | session.install("pydantic<2") 8 | 9 | session.run("pytest", "--showlocals", "--ignore=tests/functional", *session.posargs) 10 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/profile/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .my_order_list_params import MyOrderListParams as MyOrderListParams 6 | from .my_order_list_response import MyOrderListResponse as MyOrderListResponse 7 | -------------------------------------------------------------------------------- /src/freeapiapp/types/cart/item_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["ItemCreateParams"] 8 | 9 | 10 | class ItemCreateParams(TypedDict, total=False): 11 | quantity: str 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/chats/group_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["GroupUpdateParams"] 8 | 9 | 10 | class GroupUpdateParams(TypedDict, total=False): 11 | name: str 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/response/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .cache_retrieve_response import CacheRetrieveResponse as CacheRetrieveResponse 6 | from .header_retrieve_response import HeaderRetrieveResponse as HeaderRetrieveResponse 7 | -------------------------------------------------------------------------------- /src/freeapiapp/types/user_assign_role_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["UserAssignRoleParams"] 8 | 9 | 10 | class UserAssignRoleParams(TypedDict, total=False): 11 | role: str 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sinks/cookie_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["CookieCreateParams"] 8 | 9 | 10 | class CookieCreateParams(TypedDict, total=False): 11 | foo: str 12 | -------------------------------------------------------------------------------- /.devcontainer/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG VARIANT="3.9" 2 | FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} 3 | 4 | USER vscode 5 | 6 | RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.35.0" RYE_INSTALL_OPTION="--yes" bash 7 | ENV PATH=/home/vscode/.rye/shims:$PATH 8 | 9 | RUN echo "[[ -d .venv ]] && source .venv/bin/activate" >> /home/vscode/.bashrc 10 | -------------------------------------------------------------------------------- /bin/publish-pypi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -eux 4 | mkdir -p dist 5 | rye build --clean 6 | # Patching importlib-metadata version until upstream library version is updated 7 | # https://github.com/pypa/twine/issues/977#issuecomment-2189800841 8 | "$HOME/.rye/self/bin/python3" -m pip install 'importlib-metadata==7.2.1' 9 | rye publish --yes --token=$PYPI_TOKEN 10 | -------------------------------------------------------------------------------- /src/freeapiapp/_utils/_streams.py: -------------------------------------------------------------------------------- 1 | from typing import Any 2 | from typing_extensions import Iterator, AsyncIterator 3 | 4 | 5 | def consume_sync_iterator(iterator: Iterator[Any]) -> None: 6 | for _ in iterator: 7 | ... 8 | 9 | 10 | async def consume_async_iterator(iterator: AsyncIterator[Any]) -> None: 11 | async for _ in iterator: 12 | ... 13 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/category_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["CategoryCreateParams"] 8 | 9 | 10 | class CategoryCreateParams(TypedDict, total=False): 11 | name: str 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/category_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["CategoryUpdateParams"] 8 | 9 | 10 | class CategoryUpdateParams(TypedDict, total=False): 11 | name: str 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/status_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["StatusUpdateParams"] 8 | 9 | 10 | class StatusUpdateParams(TypedDict, total=False): 11 | status: str 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/comment_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["CommentCreateParams"] 8 | 9 | 10 | class CommentCreateParams(TypedDict, total=False): 11 | content: str 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/comment_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["CommentUpdateParams"] 8 | 9 | 10 | class CommentUpdateParams(TypedDict, total=False): 11 | content: str 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/profile/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .cover_image_update_params import CoverImageUpdateParams as CoverImageUpdateParams 6 | from .cover_image_update_response import CoverImageUpdateResponse as CoverImageUpdateResponse 7 | -------------------------------------------------------------------------------- /src/freeapiapp/types/todo_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["TodoListParams"] 8 | 9 | 10 | class TodoListParams(TypedDict, total=False): 11 | complete: str 12 | 13 | query: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/user_forgot_password_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["UserForgotPasswordParams"] 8 | 9 | 10 | class UserForgotPasswordParams(TypedDict, total=False): 11 | email: str 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/product_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["ProductListParams"] 8 | 9 | 10 | class ProductListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupon_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["CouponListParams"] 8 | 9 | 10 | class CouponListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink_redirect_to_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["KitchenSinkRedirectToParams"] 8 | 9 | 10 | class KitchenSinkRedirectToParams(TypedDict, total=False): 11 | url: str 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/post_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["PostListParams"] 8 | 9 | 10 | class PostListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/posts/my_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["MyListParams"] 8 | 9 | 10 | class MyListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/posts/tag_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["TagListParams"] 8 | 9 | 10 | class TagListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/todo_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["TodoCreateParams"] 8 | 9 | 10 | class TodoCreateParams(TypedDict, total=False): 11 | description: str 12 | 13 | title: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/todo_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["TodoUpdateParams"] 8 | 9 | 10 | class TodoUpdateParams(TypedDict, total=False): 11 | description: str 12 | 13 | title: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/address_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["AddressListParams"] 8 | 9 | 10 | class AddressListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/category_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["CategoryListParams"] 8 | 9 | 10 | class CategoryListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_user_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["RandomUserListParams"] 8 | 9 | 10 | class RandomUserListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/youtube/related_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["RelatedListParams"] 8 | 9 | 10 | class RelatedListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/comment_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["CommentListParams"] 8 | 9 | 10 | class CommentListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/cart/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .item_create_params import ItemCreateParams as ItemCreateParams 6 | from .item_create_response import ItemCreateResponse as ItemCreateResponse 7 | from .item_delete_response import ItemDeleteResponse as ItemDeleteResponse 8 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/profile/my_order_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["MyOrderListParams"] 8 | 9 | 10 | class MyOrderListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/cat_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["CatListParams"] 8 | 9 | 10 | class CatListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | 15 | query: str 16 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/dog_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["DogListParams"] 8 | 9 | 10 | class DogListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | 15 | query: str 16 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/youtube/playlist_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["PlaylistListParams"] 8 | 9 | 10 | class PlaylistListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/products/category_retrieve_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["CategoryRetrieveParams"] 8 | 9 | 10 | class CategoryRetrieveParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/meal_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["MealListParams"] 8 | 9 | 10 | class MealListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | 15 | query: str 16 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/quote_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["QuoteListParams"] 8 | 9 | 10 | class QuoteListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | 15 | query: str 16 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/follow/follower_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["FollowerListParams"] 8 | 9 | 10 | class FollowerListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/follow/following_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["FollowingListParams"] 8 | 9 | 10 | class FollowingListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/posts/user_post_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["UserPostListParams"] 8 | 9 | 10 | class UserPostListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/authentication_login_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["AuthenticationLoginParams"] 8 | 9 | 10 | class AuthenticationLoginParams(TypedDict, total=False): 11 | password: str 12 | 13 | username: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/bookmark_retrieve_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["BookmarkRetrieveParams"] 8 | 9 | 10 | class BookmarkRetrieveParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/chats/group_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing import List 6 | from typing_extensions import TypedDict 7 | 8 | __all__ = ["GroupCreateParams"] 9 | 10 | 11 | class GroupCreateParams(TypedDict, total=False): 12 | name: str 13 | 14 | participants: List[str] 15 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupons/customer_available_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["CustomerAvailableListParams"] 8 | 9 | 10 | class CustomerAvailableListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/book_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["BookListParams"] 8 | 9 | 10 | class BookListParams(TypedDict, total=False): 11 | inc: str 12 | 13 | limit: str 14 | 15 | page: str 16 | 17 | query: str 18 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/stock_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["StockListParams"] 8 | 9 | 10 | class StockListParams(TypedDict, total=False): 11 | inc: str 12 | 13 | limit: str 14 | 15 | page: str 16 | 17 | query: str 18 | -------------------------------------------------------------------------------- /src/freeapiapp/types/users/avatar_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | from ..._types import FileTypes 8 | 9 | __all__ = ["AvatarUpdateParams"] 10 | 11 | 12 | class AvatarUpdateParams(TypedDict, total=False): 13 | avatar: FileTypes 14 | """File""" 15 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_joke_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["RandomJokeListParams"] 8 | 9 | 10 | class RandomJokeListParams(TypedDict, total=False): 11 | inc: str 12 | 13 | limit: str 14 | 15 | page: str 16 | 17 | query: str 18 | -------------------------------------------------------------------------------- /src/freeapiapp/types/products/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .category_retrieve_params import CategoryRetrieveParams as CategoryRetrieveParams 6 | from .subimage_remove_response import SubimageRemoveResponse as SubimageRemoveResponse 7 | from .category_retrieve_response import CategoryRetrieveResponse as CategoryRetrieveResponse 8 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_product_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["RandomProductListParams"] 8 | 9 | 10 | class RandomProductListParams(TypedDict, total=False): 11 | inc: str 12 | 13 | limit: str 14 | 15 | page: str 16 | 17 | query: str 18 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/admin_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["AdminListParams"] 8 | 9 | 10 | class AdminListParams(TypedDict, total=False): 11 | limit: str 12 | 13 | page: str 14 | 15 | status: str 16 | """PENDING | DELIVERED | CENCELLED""" 17 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/request/query_parameter_retrieve_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["QueryParameterRetrieveParams"] 8 | 9 | 10 | class QueryParameterRetrieveParams(TypedDict, total=False): 11 | query1: str 12 | 13 | query2: str 14 | 15 | query3: str 16 | -------------------------------------------------------------------------------- /src/freeapiapp/types/authentication_register_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["AuthenticationRegisterParams"] 8 | 9 | 10 | class AuthenticationRegisterParams(TypedDict, total=False): 11 | email: str 12 | 13 | password: str 14 | 15 | role: str 16 | 17 | username: str 18 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupon_apply_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ..._utils import PropertyInfo 8 | 9 | __all__ = ["CouponApplyParams"] 10 | 11 | 12 | class CouponApplyParams(TypedDict, total=False): 13 | coupon_code: Annotated[str, PropertyInfo(alias="couponCode")] 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupon_remove_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ..._utils import PropertyInfo 8 | 9 | __all__ = ["CouponRemoveParams"] 10 | 11 | 12 | class CouponRemoveParams(TypedDict, total=False): 13 | coupon_code: Annotated[str, PropertyInfo(alias="couponCode")] 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupons/status_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ...._utils import PropertyInfo 8 | 9 | __all__ = ["StatusUpdateParams"] 10 | 11 | 12 | class StatusUpdateParams(TypedDict, total=False): 13 | is_active: Annotated[bool, PropertyInfo(alias="isActive")] 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sinks/cookie_remove_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ..._utils import PropertyInfo 8 | 9 | __all__ = ["CookieRemoveParams"] 10 | 11 | 12 | class CookieRemoveParams(TypedDict, total=False): 13 | cookie_key: Annotated[str, PropertyInfo(alias="cookieKey")] 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/user_reset_password_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from .._utils import PropertyInfo 8 | 9 | __all__ = ["UserResetPasswordParams"] 10 | 11 | 12 | class UserResetPasswordParams(TypedDict, total=False): 13 | new_password: Annotated[str, PropertyInfo(alias="newPassword")] 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .admin_list_params import AdminListParams as AdminListParams 6 | from .admin_list_response import AdminListResponse as AdminListResponse 7 | from .status_update_params import StatusUpdateParams as StatusUpdateParams 8 | from .status_update_response import StatusUpdateResponse as StatusUpdateResponse 9 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/provider/paypal_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ....._utils import PropertyInfo 8 | 9 | __all__ = ["PaypalCreateParams"] 10 | 11 | 12 | class PaypalCreateParams(TypedDict, total=False): 13 | address_id: Annotated[str, PropertyInfo(alias="addressId")] 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/provider/razorpay_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ....._utils import PropertyInfo 8 | 9 | __all__ = ["RazorpayCreateParams"] 10 | 11 | 12 | class RazorpayCreateParams(TypedDict, total=False): 13 | address_id: Annotated[str, PropertyInfo(alias="addressId")] 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/provider/razorpay_verify_payment_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | __all__ = ["RazorpayVerifyPaymentParams"] 8 | 9 | 10 | class RazorpayVerifyPaymentParams(TypedDict, total=False): 11 | razorpay_order_id: str 12 | 13 | razorpay_payment_id: str 14 | 15 | razorpay_signature: str 16 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/provider/paypal_verify_payment_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ....._utils import PropertyInfo 8 | 9 | __all__ = ["PaypalVerifyPaymentParams"] 10 | 11 | 12 | class PaypalVerifyPaymentParams(TypedDict, total=False): 13 | order_id: Annotated[str, PropertyInfo(alias="orderId")] 14 | -------------------------------------------------------------------------------- /scripts/bootstrap: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | cd "$(dirname "$0")/.." 6 | 7 | if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then 8 | brew bundle check >/dev/null 2>&1 || { 9 | echo "==> Installing Homebrew dependencies…" 10 | brew bundle 11 | } 12 | fi 13 | 14 | echo "==> Installing Python dependencies…" 15 | 16 | # experimental uv support makes installations significantly faster 17 | rye config --set-bool behavior.use-uv=true 18 | 19 | rye sync --all-features 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/follow/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .follower_list_params import FollowerListParams as FollowerListParams 6 | from .following_list_params import FollowingListParams as FollowingListParams 7 | from .follower_list_response import FollowerListResponse as FollowerListResponse 8 | from .following_list_response import FollowingListResponse as FollowingListResponse 9 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/youtube/video_list_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ...._utils import PropertyInfo 8 | 9 | __all__ = ["VideoListParams"] 10 | 11 | 12 | class VideoListParams(TypedDict, total=False): 13 | limit: str 14 | 15 | page: str 16 | 17 | query: str 18 | 19 | sort_by: Annotated[str, PropertyInfo(alias="sortBy")] 20 | -------------------------------------------------------------------------------- /src/freeapiapp/_constants.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | import httpx 4 | 5 | RAW_RESPONSE_HEADER = "X-Stainless-Raw-Response" 6 | OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to" 7 | 8 | # default timeout is 1 minute 9 | DEFAULT_TIMEOUT = httpx.Timeout(timeout=60.0, connect=5.0) 10 | DEFAULT_MAX_RETRIES = 2 11 | DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20) 12 | 13 | INITIAL_RETRY_DELAY = 0.5 14 | MAX_RETRY_DELAY = 8.0 15 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupons/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .status_update_params import StatusUpdateParams as StatusUpdateParams 6 | from .status_update_response import StatusUpdateResponse as StatusUpdateResponse 7 | from .customer_available_list_params import CustomerAvailableListParams as CustomerAvailableListParams 8 | from .customer_available_list_response import CustomerAvailableListResponse as CustomerAvailableListResponse 9 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/profile/cover_image_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ...._types import FileTypes 8 | from ...._utils import PropertyInfo 9 | 10 | __all__ = ["CoverImageUpdateParams"] 11 | 12 | 13 | class CoverImageUpdateParams(TypedDict, total=False): 14 | cover_image: Annotated[FileTypes, PropertyInfo(alias="coverImage")] 15 | """File""" 16 | -------------------------------------------------------------------------------- /src/freeapiapp/types/user_change_password_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from .._utils import PropertyInfo 8 | 9 | __all__ = ["UserChangePasswordParams"] 10 | 11 | 12 | class UserChangePasswordParams(TypedDict, total=False): 13 | new_password: Annotated[str, PropertyInfo(alias="newPassword")] 14 | 15 | old_password: Annotated[str, PropertyInfo(alias="oldPassword")] 16 | -------------------------------------------------------------------------------- /src/freeapiapp/types/message_send_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import TypedDict 6 | 7 | from .._types import FileTypes 8 | 9 | __all__ = ["MessageSendParams"] 10 | 11 | 12 | class MessageSendParams(TypedDict, total=False): 13 | attachments: FileTypes 14 | """Image file maximum 5 images allowed. 15 | 16 | Pass multiple `attachments` keys to send multiple images. 17 | """ 18 | 19 | content: str 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/chat_remove_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["ChatRemoveResponse"] 10 | 11 | 12 | class ChatRemoveResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupon_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ..._utils import PropertyInfo 8 | 9 | __all__ = ["CouponUpdateParams"] 10 | 11 | 12 | class CouponUpdateParams(TypedDict, total=False): 13 | coupon_code: Annotated[str, PropertyInfo(alias="couponCode")] 14 | 15 | discount_value: Annotated[float, PropertyInfo(alias="discountValue")] 16 | 17 | name: str 18 | -------------------------------------------------------------------------------- /src/freeapiapp/types/seed/todo_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["TodoCreateResponse"] 10 | 11 | 12 | class TodoCreateResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/chats/group_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["GroupDeleteResponse"] 10 | 11 | 12 | class GroupDeleteResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/reset_db_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["ResetDBDeleteResponse"] 10 | 11 | 12 | class ResetDBDeleteResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/seed/chat_app_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["ChatAppCreateResponse"] 10 | 11 | 12 | class ChatAppCreateResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/post_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["PostDeleteResponse"] 10 | 11 | 12 | class PostDeleteResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/user_assign_role_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["UserAssignRoleResponse"] 10 | 11 | 12 | class UserAssignRoleResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/cart_clear_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CartClearResponse"] 10 | 11 | 12 | class CartClearResponse(BaseModel): 13 | data: Optional[List[object]] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/seed/ecommerce_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["EcommerceCreateResponse"] 10 | 11 | 12 | class EcommerceCreateResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/healthcheck_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["HealthcheckRetrieveResponse"] 10 | 11 | 12 | class HealthcheckRetrieveResponse(BaseModel): 13 | data: Optional[str] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/user_change_password_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["UserChangePasswordResponse"] 10 | 11 | 12 | class UserChangePasswordResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/user_forgot_password_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["UserForgotPasswordResponse"] 10 | 11 | 12 | class UserForgotPasswordResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/user_reset_password_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["UserResetPasswordResponse"] 10 | 11 | 12 | class UserResetPasswordResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/authentication_logout_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["AuthenticationLogoutResponse"] 10 | 11 | 12 | class AuthenticationLogoutResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sinks/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .cookie_create_params import CookieCreateParams as CookieCreateParams 6 | from .cookie_remove_params import CookieRemoveParams as CookieRemoveParams 7 | from .cookie_create_response import CookieCreateResponse as CookieCreateResponse 8 | from .cookie_remove_response import CookieRemoveResponse as CookieRemoveResponse 9 | from .cookie_retrieve_response import CookieRetrieveResponse as CookieRetrieveResponse 10 | -------------------------------------------------------------------------------- /src/freeapiapp/types/seed/social_media_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["SocialMediaCreateResponse"] 10 | 11 | 12 | class SocialMediaCreateResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/post_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ..._types import FileTypes 8 | from ..._utils import PropertyInfo 9 | 10 | __all__ = ["PostUpdateParams"] 11 | 12 | 13 | class PostUpdateParams(TypedDict, total=False): 14 | content: str 15 | 16 | images: FileTypes 17 | """Upto 6 total images are allowed per post""" 18 | 19 | tags_0: Annotated[str, PropertyInfo(alias="tags[0]")] 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/user_resend_email_verification_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["UserResendEmailVerificationResponse"] 10 | 11 | 12 | class UserResendEmailVerificationResponse(BaseModel): 13 | data: Optional[object] = None 14 | 15 | message: Optional[str] = None 16 | 17 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 18 | 19 | success: Optional[bool] = None 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/seed/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .todo_create_response import TodoCreateResponse as TodoCreateResponse 6 | from .chat_app_create_response import ChatAppCreateResponse as ChatAppCreateResponse 7 | from .ecommerce_create_response import EcommerceCreateResponse as EcommerceCreateResponse 8 | from .social_media_create_response import SocialMediaCreateResponse as SocialMediaCreateResponse 9 | from .generated_credential_list_response import GeneratedCredentialListResponse as GeneratedCredentialListResponse 10 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/address_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ..._utils import PropertyInfo 8 | 9 | __all__ = ["AddressCreateParams"] 10 | 11 | 12 | class AddressCreateParams(TypedDict, total=False): 13 | address_line1: Annotated[str, PropertyInfo(alias="addressLine1")] 14 | 15 | address_line2: Annotated[str, PropertyInfo(alias="addressLine2")] 16 | 17 | city: str 18 | 19 | country: str 20 | 21 | pincode: str 22 | 23 | state: str 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/address_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ..._utils import PropertyInfo 8 | 9 | __all__ = ["AddressUpdateParams"] 10 | 11 | 12 | class AddressUpdateParams(TypedDict, total=False): 13 | address_line1: Annotated[str, PropertyInfo(alias="addressLine1")] 14 | 15 | address_line2: Annotated[str, PropertyInfo(alias="addressLine2")] 16 | 17 | city: str 18 | 19 | country: str 20 | 21 | pincode: str 22 | 23 | state: str 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/status_update_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["StatusUpdateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | status: Optional[str] = None 14 | 15 | 16 | class StatusUpdateResponse(BaseModel): 17 | data: Optional[Data] = None 18 | 19 | message: Optional[str] = None 20 | 21 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 22 | 23 | success: Optional[bool] = None 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sinks/cookie_remove_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CookieRemoveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | cookies: Optional[object] = None 14 | 15 | 16 | class CookieRemoveResponse(BaseModel): 17 | data: Optional[Data] = None 18 | 19 | message: Optional[str] = None 20 | 21 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 22 | 23 | success: Optional[bool] = None 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/posts/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .my_list_params import MyListParams as MyListParams 6 | from .tag_list_params import TagListParams as TagListParams 7 | from .my_list_response import MyListResponse as MyListResponse 8 | from .tag_list_response import TagListResponse as TagListResponse 9 | from .image_remove_response import ImageRemoveResponse as ImageRemoveResponse 10 | from .user_post_list_params import UserPostListParams as UserPostListParams 11 | from .user_post_list_response import UserPostListResponse as UserPostListResponse 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/profile_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ..._utils import PropertyInfo 8 | 9 | __all__ = ["ProfileUpdateParams"] 10 | 11 | 12 | class ProfileUpdateParams(TypedDict, total=False): 13 | country_code: Annotated[str, PropertyInfo(alias="countryCode")] 14 | 15 | first_name: Annotated[str, PropertyInfo(alias="firstName")] 16 | 17 | last_name: Annotated[str, PropertyInfo(alias="lastName")] 18 | 19 | phone_number: Annotated[str, PropertyInfo(alias="phoneNumber")] 20 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/post_like_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["PostLikeResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | is_liked: Optional[bool] = FieldInfo(alias="isLiked", default=None) 14 | 15 | 16 | class PostLikeResponse(BaseModel): 17 | data: Optional[Data] = None 18 | 19 | message: Optional[str] = None 20 | 21 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 22 | 23 | success: Optional[bool] = None 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/chat_app/message_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["MessageDeleteResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 14 | 15 | 16 | class MessageDeleteResponse(BaseModel): 17 | data: Optional[Data] = None 18 | 19 | message: Optional[str] = None 20 | 21 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 22 | 23 | success: Optional[bool] = None 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/comment_like_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CommentLikeResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | is_liked: Optional[bool] = FieldInfo(alias="isLiked", default=None) 14 | 15 | 16 | class CommentLikeResponse(BaseModel): 17 | data: Optional[Data] = None 18 | 19 | message: Optional[str] = None 20 | 21 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 22 | 23 | success: Optional[bool] = None 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/request/ip_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["IPRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | ip: Optional[str] = None 14 | 15 | ipv: Optional[str] = None 16 | 17 | 18 | class IPRetrieveResponse(BaseModel): 19 | data: Optional[Data] = None 20 | 21 | message: Optional[str] = None 22 | 23 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 24 | 25 | success: Optional[bool] = None 26 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/bookmark_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["BookmarkCreateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | is_bookmarked: Optional[bool] = FieldInfo(alias="isBookmarked", default=None) 14 | 15 | 16 | class BookmarkCreateResponse(BaseModel): 17 | data: Optional[Data] = None 18 | 19 | message: Optional[str] = None 20 | 21 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 22 | 23 | success: Optional[bool] = None 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/request/user_agent_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["UserAgentRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | user_agent: Optional[str] = FieldInfo(alias="userAgent", default=None) 14 | 15 | 16 | class UserAgentRetrieveResponse(BaseModel): 17 | data: Optional[Data] = None 18 | 19 | message: Optional[str] = None 20 | 21 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 22 | 23 | success: Optional[bool] = None 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/post_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ..._types import FileTypes 8 | from ..._utils import PropertyInfo 9 | 10 | __all__ = ["PostCreateParams"] 11 | 12 | 13 | class PostCreateParams(TypedDict, total=False): 14 | content: str 15 | 16 | images: FileTypes 17 | """Upto 6 images per post are allowed""" 18 | 19 | tags_0: Annotated[str, PropertyInfo(alias="tags[0]")] 20 | 21 | tags_1: Annotated[str, PropertyInfo(alias="tags[1]")] 22 | 23 | tags_2: Annotated[str, PropertyInfo(alias="tags[2]")] 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .http_method_get_response import HTTPMethodGetResponse as HTTPMethodGetResponse 6 | from .http_method_put_response import HTTPMethodPutResponse as HTTPMethodPutResponse 7 | from .status_code_list_response import StatusCodeListResponse as StatusCodeListResponse 8 | from .http_method_create_response import HTTPMethodCreateResponse as HTTPMethodCreateResponse 9 | from .http_method_delete_response import HTTPMethodDeleteResponse as HTTPMethodDeleteResponse 10 | from .http_method_update_response import HTTPMethodUpdateResponse as HTTPMethodUpdateResponse 11 | -------------------------------------------------------------------------------- /src/freeapiapp/types/authentication_verify_email_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["AuthenticationVerifyEmailResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | is_email_verified: Optional[bool] = FieldInfo(alias="isEmailVerified", default=None) 14 | 15 | 16 | class AuthenticationVerifyEmailResponse(BaseModel): 17 | data: Optional[Data] = None 18 | 19 | message: Optional[str] = None 20 | 21 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 22 | 23 | success: Optional[bool] = None 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/request/path_variable_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["PathVariableRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | path_variable: Optional[str] = FieldInfo(alias="pathVariable", default=None) 14 | 15 | 16 | class PathVariableRetrieveResponse(BaseModel): 17 | data: Optional[Data] = None 18 | 19 | message: Optional[str] = None 20 | 21 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 22 | 23 | success: Optional[bool] = None 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sinks/cookie_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CookieCreateResponse", "Data", "DataCookies"] 10 | 11 | 12 | class DataCookies(BaseModel): 13 | foo: Optional[str] = None 14 | 15 | 16 | class Data(BaseModel): 17 | cookies: Optional[DataCookies] = None 18 | 19 | 20 | class CookieCreateResponse(BaseModel): 21 | data: Optional[Data] = None 22 | 23 | message: Optional[str] = None 24 | 25 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 26 | 27 | success: Optional[bool] = None 28 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/profile_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from ..._utils import PropertyInfo 8 | 9 | __all__ = ["ProfileUpdateParams"] 10 | 11 | 12 | class ProfileUpdateParams(TypedDict, total=False): 13 | bio: str 14 | 15 | country_code: Annotated[str, PropertyInfo(alias="countryCode")] 16 | 17 | dob: str 18 | 19 | first_name: Annotated[str, PropertyInfo(alias="firstName")] 20 | 21 | last_name: Annotated[str, PropertyInfo(alias="lastName")] 22 | 23 | location: str 24 | 25 | phone_number: Annotated[str, PropertyInfo(alias="phoneNumber")] 26 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_jokes/joke_random_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["JokeRandomResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | id: Optional[float] = None 14 | 15 | categories: Optional[List[object]] = None 16 | 17 | content: Optional[str] = None 18 | 19 | 20 | class JokeRandomResponse(BaseModel): 21 | data: Optional[Data] = None 22 | 23 | message: Optional[str] = None 24 | 25 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 26 | 27 | success: Optional[bool] = None 28 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sinks/cookie_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CookieRetrieveResponse", "Data", "DataCookies"] 10 | 11 | 12 | class DataCookies(BaseModel): 13 | foo: Optional[str] = None 14 | 15 | 16 | class Data(BaseModel): 17 | cookies: Optional[DataCookies] = None 18 | 19 | 20 | class CookieRetrieveResponse(BaseModel): 21 | data: Optional[Data] = None 22 | 23 | message: Optional[str] = None 24 | 25 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 26 | 27 | success: Optional[bool] = None 28 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/request/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .ip_retrieve_response import IPRetrieveResponse as IPRetrieveResponse 6 | from .header_retrieve_response import HeaderRetrieveResponse as HeaderRetrieveResponse 7 | from .user_agent_retrieve_response import UserAgentRetrieveResponse as UserAgentRetrieveResponse 8 | from .path_variable_retrieve_response import PathVariableRetrieveResponse as PathVariableRetrieveResponse 9 | from .query_parameter_retrieve_params import QueryParameterRetrieveParams as QueryParameterRetrieveParams 10 | from .query_parameter_retrieve_response import QueryParameterRetrieveResponse as QueryParameterRetrieveResponse 11 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink_response_gzip_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["KitchenSinkResponseGzipResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | content_encoding: Optional[str] = FieldInfo(alias="contentEncoding", default=None) 14 | 15 | string: Optional[str] = None 16 | 17 | 18 | class KitchenSinkResponseGzipResponse(BaseModel): 19 | data: Optional[Data] = None 20 | 21 | message: Optional[str] = None 22 | 23 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 24 | 25 | success: Optional[bool] = None 26 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_joke_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["RandomJokeRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | id: Optional[float] = None 14 | 15 | categories: Optional[List[object]] = None 16 | 17 | content: Optional[str] = None 18 | 19 | 20 | class RandomJokeRetrieveResponse(BaseModel): 21 | data: Optional[Data] = None 22 | 23 | message: Optional[str] = None 24 | 25 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 26 | 27 | success: Optional[bool] = None 28 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink_response_brotli_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["KitchenSinkResponseBrotliResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | content_encoding: Optional[str] = FieldInfo(alias="contentEncoding", default=None) 14 | 15 | string: Optional[str] = None 16 | 17 | 18 | class KitchenSinkResponseBrotliResponse(BaseModel): 19 | data: Optional[Data] = None 20 | 21 | message: Optional[str] = None 22 | 23 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 24 | 25 | success: Optional[bool] = None 26 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/request/query_parameter_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["QueryParameterRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | query1: Optional[str] = None 14 | 15 | query2: Optional[str] = None 16 | 17 | query3: Optional[str] = None 18 | 19 | 20 | class QueryParameterRetrieveResponse(BaseModel): 21 | data: Optional[Data] = None 22 | 23 | message: Optional[str] = None 24 | 25 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 26 | 27 | success: Optional[bool] = None 28 | -------------------------------------------------------------------------------- /src/freeapiapp/types/seed/generated_credential_list_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["GeneratedCredentialListResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | password: Optional[str] = None 14 | 15 | role: Optional[str] = None 16 | 17 | username: Optional[str] = None 18 | 19 | 20 | class GeneratedCredentialListResponse(BaseModel): 21 | data: Optional[List[Data]] = None 22 | 23 | message: Optional[str] = None 24 | 25 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 26 | 27 | success: Optional[bool] = None 28 | -------------------------------------------------------------------------------- /src/freeapiapp/types/user_refresh_token_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["UserRefreshTokenResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | access_token: Optional[str] = FieldInfo(alias="accessToken", default=None) 14 | 15 | refresh_token: Optional[str] = FieldInfo(alias="refreshToken", default=None) 16 | 17 | 18 | class UserRefreshTokenResponse(BaseModel): 19 | data: Optional[Data] = None 20 | 21 | message: Optional[str] = None 22 | 23 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 24 | 25 | success: Optional[bool] = None 26 | -------------------------------------------------------------------------------- /tests/test_utils/test_proxy.py: -------------------------------------------------------------------------------- 1 | import operator 2 | from typing import Any 3 | from typing_extensions import override 4 | 5 | from freeapiapp._utils import LazyProxy 6 | 7 | 8 | class RecursiveLazyProxy(LazyProxy[Any]): 9 | @override 10 | def __load__(self) -> Any: 11 | return self 12 | 13 | def __call__(self, *_args: Any, **_kwds: Any) -> Any: 14 | raise RuntimeError("This should never be called!") 15 | 16 | 17 | def test_recursive_proxy() -> None: 18 | proxy = RecursiveLazyProxy() 19 | assert repr(proxy) == "RecursiveLazyProxy" 20 | assert str(proxy) == "RecursiveLazyProxy" 21 | assert dir(proxy) == [] 22 | assert type(proxy).__name__ == "RecursiveLazyProxy" 23 | assert type(operator.attrgetter("name.foo.bar.baz")(proxy)).__name__ == "RecursiveLazyProxy" 24 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/provider/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .paypal_create_params import PaypalCreateParams as PaypalCreateParams 6 | from .paypal_create_response import PaypalCreateResponse as PaypalCreateResponse 7 | from .razorpay_create_params import RazorpayCreateParams as RazorpayCreateParams 8 | from .razorpay_create_response import RazorpayCreateResponse as RazorpayCreateResponse 9 | from .paypal_verify_payment_params import PaypalVerifyPaymentParams as PaypalVerifyPaymentParams 10 | from .razorpay_verify_payment_params import RazorpayVerifyPaymentParams as RazorpayVerifyPaymentParams 11 | from .razorpay_verify_payment_response import RazorpayVerifyPaymentResponse as RazorpayVerifyPaymentResponse 12 | -------------------------------------------------------------------------------- /src/freeapiapp/types/product_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from .._types import FileTypes 8 | from .._utils import PropertyInfo 9 | 10 | __all__ = ["ProductCreateParams"] 11 | 12 | 13 | class ProductCreateParams(TypedDict, total=False): 14 | category: str 15 | 16 | description: str 17 | 18 | main_image: Annotated[FileTypes, PropertyInfo(alias="mainImage")] 19 | """FIle""" 20 | 21 | name: str 22 | 23 | price: str 24 | 25 | stock: str 26 | 27 | sub_images: Annotated[FileTypes, PropertyInfo(alias="subImages")] 28 | """ 29 | subImages is a multiple images field having 4 as a maximum number of images 30 | limit 31 | """ 32 | -------------------------------------------------------------------------------- /src/freeapiapp/types/product_update_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing_extensions import Annotated, TypedDict 6 | 7 | from .._types import FileTypes 8 | from .._utils import PropertyInfo 9 | 10 | __all__ = ["ProductUpdateParams"] 11 | 12 | 13 | class ProductUpdateParams(TypedDict, total=False): 14 | category: str 15 | 16 | description: str 17 | 18 | main_image: Annotated[FileTypes, PropertyInfo(alias="mainImage")] 19 | """File""" 20 | 21 | name: str 22 | 23 | price: str 24 | 25 | stock: str 26 | 27 | sub_images: Annotated[FileTypes, PropertyInfo(alias="subImages")] 28 | """ 29 | subImages is a multiple images field having 4 as a maximum number of images 30 | limit 31 | """ 32 | -------------------------------------------------------------------------------- /src/freeapiapp/_utils/_logs.py: -------------------------------------------------------------------------------- 1 | import os 2 | import logging 3 | 4 | logger: logging.Logger = logging.getLogger("freeapiapp") 5 | httpx_logger: logging.Logger = logging.getLogger("httpx") 6 | 7 | 8 | def _basic_config() -> None: 9 | # e.g. [2023-10-05 14:12:26 - freeapiapp._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK" 10 | logging.basicConfig( 11 | format="[%(asctime)s - %(name)s:%(lineno)d - %(levelname)s] %(message)s", 12 | datefmt="%Y-%m-%d %H:%M:%S", 13 | ) 14 | 15 | 16 | def setup_logging() -> None: 17 | env = os.environ.get("FREEAPIAPP_LOG") 18 | if env == "debug": 19 | _basic_config() 20 | logger.setLevel(logging.DEBUG) 21 | httpx_logger.setLevel(logging.DEBUG) 22 | elif env == "info": 23 | _basic_config() 24 | logger.setLevel(logging.INFO) 25 | httpx_logger.setLevel(logging.INFO) 26 | -------------------------------------------------------------------------------- /src/freeapiapp/types/chats/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .group_create_params import GroupCreateParams as GroupCreateParams 6 | from .group_update_params import GroupUpdateParams as GroupUpdateParams 7 | from .group_leave_response import GroupLeaveResponse as GroupLeaveResponse 8 | from .group_create_response import GroupCreateResponse as GroupCreateResponse 9 | from .group_delete_response import GroupDeleteResponse as GroupDeleteResponse 10 | from .group_update_response import GroupUpdateResponse as GroupUpdateResponse 11 | from .group_retrieve_response import GroupRetrieveResponse as GroupRetrieveResponse 12 | from .group_participant_add_response import GroupParticipantAddResponse as GroupParticipantAddResponse 13 | from .group_participant_remove_response import GroupParticipantRemoveResponse as GroupParticipantRemoveResponse 14 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/provider/paypal_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ....._models import BaseModel 8 | 9 | __all__ = ["PaypalCreateResponse", "Data", "DataLink"] 10 | 11 | 12 | class DataLink(BaseModel): 13 | href: Optional[str] = None 14 | 15 | method: Optional[str] = None 16 | 17 | rel: Optional[str] = None 18 | 19 | 20 | class Data(BaseModel): 21 | id: Optional[str] = None 22 | 23 | links: Optional[List[DataLink]] = None 24 | 25 | status: Optional[str] = None 26 | 27 | 28 | class PaypalCreateResponse(BaseModel): 29 | data: Optional[Data] = None 30 | 31 | message: Optional[str] = None 32 | 33 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 34 | 35 | success: Optional[bool] = None 36 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupon_create_params.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from typing import Union 6 | from datetime import datetime 7 | from typing_extensions import Literal, Annotated, TypedDict 8 | 9 | from ..._utils import PropertyInfo 10 | 11 | __all__ = ["CouponCreateParams"] 12 | 13 | 14 | class CouponCreateParams(TypedDict, total=False): 15 | coupon_code: Annotated[str, PropertyInfo(alias="couponCode")] 16 | 17 | discount_value: Annotated[float, PropertyInfo(alias="discountValue")] 18 | 19 | expiry_date: Annotated[Union[str, datetime], PropertyInfo(alias="expiryDate", format="iso8601")] 20 | 21 | minimum_cart_value: Annotated[float, PropertyInfo(alias="minimumCartValue")] 22 | 23 | name: str 24 | 25 | start_date: Annotated[Union[str, datetime], PropertyInfo(alias="startDate", format="iso8601")] 26 | 27 | type: Literal["FLAT"] 28 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/youtube/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | from .video_list_params import VideoListParams as VideoListParams 6 | from .related_list_params import RelatedListParams as RelatedListParams 7 | from .video_list_response import VideoListResponse as VideoListResponse 8 | from .playlist_list_params import PlaylistListParams as PlaylistListParams 9 | from .channel_list_response import ChannelListResponse as ChannelListResponse 10 | from .related_list_response import RelatedListResponse as RelatedListResponse 11 | from .playlist_list_response import PlaylistListResponse as PlaylistListResponse 12 | from .video_retrieve_response import VideoRetrieveResponse as VideoRetrieveResponse 13 | from .comment_retrieve_response import CommentRetrieveResponse as CommentRetrieveResponse 14 | from .playlist_retrieve_response import PlaylistRetrieveResponse as PlaylistRetrieveResponse 15 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/category_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CategoryCreateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 18 | 19 | name: Optional[str] = None 20 | 21 | owner: Optional[str] = None 22 | 23 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 24 | 25 | 26 | class CategoryCreateResponse(BaseModel): 27 | data: Optional[Data] = None 28 | 29 | message: Optional[str] = None 30 | 31 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 32 | 33 | success: Optional[bool] = None 34 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/category_update_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CategoryUpdateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 18 | 19 | name: Optional[str] = None 20 | 21 | owner: Optional[str] = None 22 | 23 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 24 | 25 | 26 | class CategoryUpdateResponse(BaseModel): 27 | data: Optional[Data] = None 28 | 29 | message: Optional[str] = None 30 | 31 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 32 | 33 | success: Optional[bool] = None 34 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/category_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CategoryRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 18 | 19 | name: Optional[str] = None 20 | 21 | owner: Optional[str] = None 22 | 23 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 24 | 25 | 26 | class CategoryRetrieveResponse(BaseModel): 27 | data: Optional[Data] = None 28 | 29 | message: Optional[str] = None 30 | 31 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 32 | 33 | success: Optional[bool] = None 34 | -------------------------------------------------------------------------------- /scripts/mock: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | cd "$(dirname "$0")/.." 6 | 7 | if [[ -n "$1" && "$1" != '--'* ]]; then 8 | URL="$1" 9 | shift 10 | else 11 | URL="$(grep 'openapi_spec_url' .stats.yml | cut -d' ' -f2)" 12 | fi 13 | 14 | # Check if the URL is empty 15 | if [ -z "$URL" ]; then 16 | echo "Error: No OpenAPI spec path/url provided or found in .stats.yml" 17 | exit 1 18 | fi 19 | 20 | echo "==> Starting mock server with URL ${URL}" 21 | 22 | # Run prism mock on the given spec 23 | if [ "$1" == "--daemon" ]; then 24 | npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log & 25 | 26 | # Wait for server to come online 27 | echo -n "Waiting for server" 28 | while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do 29 | echo -n "." 30 | sleep 0.1 31 | done 32 | 33 | if grep -q "✖ fatal" ".prism.log"; then 34 | cat .prism.log 35 | exit 1 36 | fi 37 | 38 | echo 39 | else 40 | npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" 41 | fi 42 | -------------------------------------------------------------------------------- /requirements.lock: -------------------------------------------------------------------------------- 1 | # generated by rye 2 | # use `rye lock` or `rye sync` to update this lockfile 3 | # 4 | # last locked with the following flags: 5 | # pre: false 6 | # features: [] 7 | # all-features: true 8 | # with-sources: false 9 | # generate-hashes: false 10 | 11 | -e file:. 12 | annotated-types==0.6.0 13 | # via pydantic 14 | anyio==4.4.0 15 | # via freeapiapp 16 | # via httpx 17 | certifi==2023.7.22 18 | # via httpcore 19 | # via httpx 20 | distro==1.8.0 21 | # via freeapiapp 22 | exceptiongroup==1.2.2 23 | # via anyio 24 | h11==0.14.0 25 | # via httpcore 26 | httpcore==1.0.2 27 | # via httpx 28 | httpx==0.25.2 29 | # via freeapiapp 30 | idna==3.4 31 | # via anyio 32 | # via httpx 33 | pydantic==2.9.2 34 | # via freeapiapp 35 | pydantic-core==2.23.4 36 | # via pydantic 37 | sniffio==1.3.0 38 | # via anyio 39 | # via freeapiapp 40 | # via httpx 41 | typing-extensions==4.12.2 42 | # via anyio 43 | # via freeapiapp 44 | # via pydantic 45 | # via pydantic-core 46 | -------------------------------------------------------------------------------- /src/freeapiapp/types/todo_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["TodoCreateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 18 | 19 | description: Optional[str] = None 20 | 21 | is_done: Optional[bool] = FieldInfo(alias="isDone", default=None) 22 | 23 | title: Optional[str] = None 24 | 25 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 26 | 27 | 28 | class TodoCreateResponse(BaseModel): 29 | data: Optional[Data] = None 30 | 31 | message: Optional[str] = None 32 | 33 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 34 | 35 | success: Optional[bool] = None 36 | -------------------------------------------------------------------------------- /src/freeapiapp/types/todo_update_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["TodoUpdateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 18 | 19 | description: Optional[str] = None 20 | 21 | is_done: Optional[bool] = FieldInfo(alias="isDone", default=None) 22 | 23 | title: Optional[str] = None 24 | 25 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 26 | 27 | 28 | class TodoUpdateResponse(BaseModel): 29 | data: Optional[Data] = None 30 | 31 | message: Optional[str] = None 32 | 33 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 34 | 35 | success: Optional[bool] = None 36 | -------------------------------------------------------------------------------- /src/freeapiapp/types/todo_list_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["TodoListResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 18 | 19 | description: Optional[str] = None 20 | 21 | is_done: Optional[bool] = FieldInfo(alias="isDone", default=None) 22 | 23 | title: Optional[str] = None 24 | 25 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 26 | 27 | 28 | class TodoListResponse(BaseModel): 29 | data: Optional[List[Data]] = None 30 | 31 | message: Optional[str] = None 32 | 33 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 34 | 35 | success: Optional[bool] = None 36 | -------------------------------------------------------------------------------- /src/freeapiapp/types/todo_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["TodoRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 18 | 19 | description: Optional[str] = None 20 | 21 | is_done: Optional[bool] = FieldInfo(alias="isDone", default=None) 22 | 23 | title: Optional[str] = None 24 | 25 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 26 | 27 | 28 | class TodoRetrieveResponse(BaseModel): 29 | data: Optional[Data] = None 30 | 31 | message: Optional[str] = None 32 | 33 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 34 | 35 | success: Optional[bool] = None 36 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/quote_random_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["QuoteRandomResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | id: Optional[float] = None 14 | 15 | author: Optional[str] = None 16 | 17 | author_slug: Optional[str] = FieldInfo(alias="authorSlug", default=None) 18 | 19 | content: Optional[str] = None 20 | 21 | date_added: Optional[str] = FieldInfo(alias="dateAdded", default=None) 22 | 23 | date_modified: Optional[str] = FieldInfo(alias="dateModified", default=None) 24 | 25 | length: Optional[float] = None 26 | 27 | tags: Optional[List[str]] = None 28 | 29 | 30 | class QuoteRandomResponse(BaseModel): 31 | data: Optional[Data] = None 32 | 33 | message: Optional[str] = None 34 | 35 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 36 | 37 | success: Optional[bool] = None 38 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/quote_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["QuoteRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | id: Optional[float] = None 14 | 15 | author: Optional[str] = None 16 | 17 | author_slug: Optional[str] = FieldInfo(alias="authorSlug", default=None) 18 | 19 | content: Optional[str] = None 20 | 21 | date_added: Optional[str] = FieldInfo(alias="dateAdded", default=None) 22 | 23 | date_modified: Optional[str] = FieldInfo(alias="dateModified", default=None) 24 | 25 | length: Optional[float] = None 26 | 27 | tags: Optional[List[str]] = None 28 | 29 | 30 | class QuoteRetrieveResponse(BaseModel): 31 | data: Optional[Data] = None 32 | 33 | message: Optional[str] = None 34 | 35 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 36 | 37 | success: Optional[bool] = None 38 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/comment_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CommentCreateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | author: Optional[str] = None 18 | 19 | content: Optional[str] = None 20 | 21 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 22 | 23 | post_id: Optional[str] = FieldInfo(alias="postId", default=None) 24 | 25 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 26 | 27 | 28 | class CommentCreateResponse(BaseModel): 29 | data: Optional[Data] = None 30 | 31 | message: Optional[str] = None 32 | 33 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 34 | 35 | success: Optional[bool] = None 36 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/public/cats/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .cat import ( 4 | CatResource, 5 | AsyncCatResource, 6 | CatResourceWithRawResponse, 7 | AsyncCatResourceWithRawResponse, 8 | CatResourceWithStreamingResponse, 9 | AsyncCatResourceWithStreamingResponse, 10 | ) 11 | from .cats import ( 12 | CatsResource, 13 | AsyncCatsResource, 14 | CatsResourceWithRawResponse, 15 | AsyncCatsResourceWithRawResponse, 16 | CatsResourceWithStreamingResponse, 17 | AsyncCatsResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "CatResource", 22 | "AsyncCatResource", 23 | "CatResourceWithRawResponse", 24 | "AsyncCatResourceWithRawResponse", 25 | "CatResourceWithStreamingResponse", 26 | "AsyncCatResourceWithStreamingResponse", 27 | "CatsResource", 28 | "AsyncCatsResource", 29 | "CatsResourceWithRawResponse", 30 | "AsyncCatsResourceWithRawResponse", 31 | "CatsResourceWithStreamingResponse", 32 | "AsyncCatsResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/public/dogs/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .dog import ( 4 | DogResource, 5 | AsyncDogResource, 6 | DogResourceWithRawResponse, 7 | AsyncDogResourceWithRawResponse, 8 | DogResourceWithStreamingResponse, 9 | AsyncDogResourceWithStreamingResponse, 10 | ) 11 | from .dogs import ( 12 | DogsResource, 13 | AsyncDogsResource, 14 | DogsResourceWithRawResponse, 15 | AsyncDogsResourceWithRawResponse, 16 | DogsResourceWithStreamingResponse, 17 | AsyncDogsResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "DogResource", 22 | "AsyncDogResource", 23 | "DogResourceWithRawResponse", 24 | "AsyncDogResourceWithRawResponse", 25 | "DogResourceWithStreamingResponse", 26 | "AsyncDogResourceWithStreamingResponse", 27 | "DogsResource", 28 | "AsyncDogsResource", 29 | "DogsResourceWithRawResponse", 30 | "AsyncDogsResourceWithRawResponse", 31 | "DogsResourceWithStreamingResponse", 32 | "AsyncDogsResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /src/freeapiapp/types/todo_toggle_status_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["TodoToggleStatusResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 18 | 19 | description: Optional[str] = None 20 | 21 | is_complete: Optional[bool] = FieldInfo(alias="isComplete", default=None) 22 | 23 | title: Optional[str] = None 24 | 25 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 26 | 27 | 28 | class TodoToggleStatusResponse(BaseModel): 29 | data: Optional[Data] = None 30 | 31 | message: Optional[str] = None 32 | 33 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 34 | 35 | success: Optional[bool] = None 36 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/cart/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .cart import ( 4 | CartResource, 5 | AsyncCartResource, 6 | CartResourceWithRawResponse, 7 | AsyncCartResourceWithRawResponse, 8 | CartResourceWithStreamingResponse, 9 | AsyncCartResourceWithStreamingResponse, 10 | ) 11 | from .item import ( 12 | ItemResource, 13 | AsyncItemResource, 14 | ItemResourceWithRawResponse, 15 | AsyncItemResourceWithRawResponse, 16 | ItemResourceWithStreamingResponse, 17 | AsyncItemResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "ItemResource", 22 | "AsyncItemResource", 23 | "ItemResourceWithRawResponse", 24 | "AsyncItemResourceWithRawResponse", 25 | "ItemResourceWithStreamingResponse", 26 | "AsyncItemResourceWithStreamingResponse", 27 | "CartResource", 28 | "AsyncCartResource", 29 | "CartResourceWithRawResponse", 30 | "AsyncCartResourceWithRawResponse", 31 | "CartResourceWithStreamingResponse", 32 | "AsyncCartResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/public/meals/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .meal import ( 4 | MealResource, 5 | AsyncMealResource, 6 | MealResourceWithRawResponse, 7 | AsyncMealResourceWithRawResponse, 8 | MealResourceWithStreamingResponse, 9 | AsyncMealResourceWithStreamingResponse, 10 | ) 11 | from .meals import ( 12 | MealsResource, 13 | AsyncMealsResource, 14 | MealsResourceWithRawResponse, 15 | AsyncMealsResourceWithRawResponse, 16 | MealsResourceWithStreamingResponse, 17 | AsyncMealsResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "MealResource", 22 | "AsyncMealResource", 23 | "MealResourceWithRawResponse", 24 | "AsyncMealResourceWithRawResponse", 25 | "MealResourceWithStreamingResponse", 26 | "AsyncMealResourceWithStreamingResponse", 27 | "MealsResource", 28 | "AsyncMealsResource", 29 | "MealsResourceWithRawResponse", 30 | "AsyncMealsResourceWithRawResponse", 31 | "MealsResourceWithStreamingResponse", 32 | "AsyncMealsResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/chats/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .chats import ( 4 | ChatsResource, 5 | AsyncChatsResource, 6 | ChatsResourceWithRawResponse, 7 | AsyncChatsResourceWithRawResponse, 8 | ChatsResourceWithStreamingResponse, 9 | AsyncChatsResourceWithStreamingResponse, 10 | ) 11 | from .group import ( 12 | GroupResource, 13 | AsyncGroupResource, 14 | GroupResourceWithRawResponse, 15 | AsyncGroupResourceWithRawResponse, 16 | GroupResourceWithStreamingResponse, 17 | AsyncGroupResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "GroupResource", 22 | "AsyncGroupResource", 23 | "GroupResourceWithRawResponse", 24 | "AsyncGroupResourceWithRawResponse", 25 | "GroupResourceWithStreamingResponse", 26 | "AsyncGroupResourceWithStreamingResponse", 27 | "ChatsResource", 28 | "AsyncChatsResource", 29 | "ChatsResourceWithRawResponse", 30 | "AsyncChatsResourceWithRawResponse", 31 | "ChatsResourceWithStreamingResponse", 32 | "AsyncChatsResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/users/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .users import ( 4 | UsersResource, 5 | AsyncUsersResource, 6 | UsersResourceWithRawResponse, 7 | AsyncUsersResourceWithRawResponse, 8 | UsersResourceWithStreamingResponse, 9 | AsyncUsersResourceWithStreamingResponse, 10 | ) 11 | from .avatar import ( 12 | AvatarResource, 13 | AsyncAvatarResource, 14 | AvatarResourceWithRawResponse, 15 | AsyncAvatarResourceWithRawResponse, 16 | AvatarResourceWithStreamingResponse, 17 | AsyncAvatarResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "AvatarResource", 22 | "AsyncAvatarResource", 23 | "AvatarResourceWithRawResponse", 24 | "AsyncAvatarResourceWithRawResponse", 25 | "AvatarResourceWithStreamingResponse", 26 | "AsyncAvatarResourceWithStreamingResponse", 27 | "UsersResource", 28 | "AsyncUsersResource", 29 | "UsersResourceWithRawResponse", 30 | "AsyncUsersResourceWithRawResponse", 31 | "UsersResourceWithStreamingResponse", 32 | "AsyncUsersResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/response/cache_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["CacheRetrieveResponse", "Data", "DataHeaders"] 10 | 11 | 12 | class DataHeaders(BaseModel): 13 | access_control_allow_credentials: Optional[str] = FieldInfo(alias="access-control-allow-credentials", default=None) 14 | 15 | access_control_allow_origin: Optional[str] = FieldInfo(alias="access-control-allow-origin", default=None) 16 | 17 | cache_control: Optional[str] = FieldInfo(alias="cache-control", default=None) 18 | 19 | x_powered_by: Optional[str] = FieldInfo(alias="x-powered-by", default=None) 20 | 21 | 22 | class Data(BaseModel): 23 | headers: Optional[DataHeaders] = None 24 | 25 | 26 | class CacheRetrieveResponse(BaseModel): 27 | data: Optional[Data] = None 28 | 29 | message: Optional[str] = None 30 | 31 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 32 | 33 | success: Optional[bool] = None 34 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_products/product_random_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["ProductRandomResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | id: Optional[float] = None 14 | 15 | brand: Optional[str] = None 16 | 17 | category: Optional[str] = None 18 | 19 | description: Optional[str] = None 20 | 21 | discount_percentage: Optional[float] = FieldInfo(alias="discountPercentage", default=None) 22 | 23 | images: Optional[List[str]] = None 24 | 25 | price: Optional[float] = None 26 | 27 | rating: Optional[float] = None 28 | 29 | stock: Optional[float] = None 30 | 31 | thumbnail: Optional[str] = None 32 | 33 | title: Optional[str] = None 34 | 35 | 36 | class ProductRandomResponse(BaseModel): 37 | data: Optional[Data] = None 38 | 39 | message: Optional[str] = None 40 | 41 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 42 | 43 | success: Optional[bool] = None 44 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_product_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["RandomProductRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | id: Optional[float] = None 14 | 15 | brand: Optional[str] = None 16 | 17 | category: Optional[str] = None 18 | 19 | description: Optional[str] = None 20 | 21 | discount_percentage: Optional[float] = FieldInfo(alias="discountPercentage", default=None) 22 | 23 | images: Optional[List[str]] = None 24 | 25 | price: Optional[float] = None 26 | 27 | rating: Optional[float] = None 28 | 29 | stock: Optional[float] = None 30 | 31 | thumbnail: Optional[str] = None 32 | 33 | title: Optional[str] = None 34 | 35 | 36 | class RandomProductRetrieveResponse(BaseModel): 37 | data: Optional[Data] = None 38 | 39 | message: Optional[str] = None 40 | 41 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 42 | 43 | success: Optional[bool] = None 44 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/provider/razorpay_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ....._models import BaseModel 8 | 9 | __all__ = ["RazorpayCreateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | id: Optional[str] = None 14 | 15 | amount: Optional[float] = None 16 | 17 | amount_due: Optional[float] = None 18 | 19 | amount_paid: Optional[float] = None 20 | 21 | attempts: Optional[float] = None 22 | 23 | created_at: Optional[float] = None 24 | 25 | currency: Optional[str] = None 26 | 27 | entity: Optional[str] = None 28 | 29 | notes: Optional[List[object]] = None 30 | 31 | offer_id: Optional[object] = None 32 | 33 | receipt: Optional[str] = None 34 | 35 | status: Optional[str] = None 36 | 37 | 38 | class RazorpayCreateResponse(BaseModel): 39 | data: Optional[Data] = None 40 | 41 | message: Optional[str] = None 42 | 43 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 44 | 45 | success: Optional[bool] = None 46 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/category_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CategoryDeleteResponse", "Data", "DataDeletedCategory"] 10 | 11 | 12 | class DataDeletedCategory(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 18 | 19 | name: Optional[str] = None 20 | 21 | owner: Optional[str] = None 22 | 23 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 24 | 25 | 26 | class Data(BaseModel): 27 | deleted_category: Optional[DataDeletedCategory] = FieldInfo(alias="deletedCategory", default=None) 28 | 29 | 30 | class CategoryDeleteResponse(BaseModel): 31 | data: Optional[Data] = None 32 | 33 | message: Optional[str] = None 34 | 35 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 36 | 37 | success: Optional[bool] = None 38 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/ecommerce/profile/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .profile import ( 4 | ProfileResource, 5 | AsyncProfileResource, 6 | ProfileResourceWithRawResponse, 7 | AsyncProfileResourceWithRawResponse, 8 | ProfileResourceWithStreamingResponse, 9 | AsyncProfileResourceWithStreamingResponse, 10 | ) 11 | from .my_orders import ( 12 | MyOrdersResource, 13 | AsyncMyOrdersResource, 14 | MyOrdersResourceWithRawResponse, 15 | AsyncMyOrdersResourceWithRawResponse, 16 | MyOrdersResourceWithStreamingResponse, 17 | AsyncMyOrdersResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "MyOrdersResource", 22 | "AsyncMyOrdersResource", 23 | "MyOrdersResourceWithRawResponse", 24 | "AsyncMyOrdersResourceWithRawResponse", 25 | "MyOrdersResourceWithStreamingResponse", 26 | "AsyncMyOrdersResourceWithStreamingResponse", 27 | "ProfileResource", 28 | "AsyncProfileResource", 29 | "ProfileResourceWithRawResponse", 30 | "AsyncProfileResourceWithRawResponse", 31 | "ProfileResourceWithStreamingResponse", 32 | "AsyncProfileResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/public/random_jokes/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .joke import ( 4 | JokeResource, 5 | AsyncJokeResource, 6 | JokeResourceWithRawResponse, 7 | AsyncJokeResourceWithRawResponse, 8 | JokeResourceWithStreamingResponse, 9 | AsyncJokeResourceWithStreamingResponse, 10 | ) 11 | from .random_jokes import ( 12 | RandomJokesResource, 13 | AsyncRandomJokesResource, 14 | RandomJokesResourceWithRawResponse, 15 | AsyncRandomJokesResourceWithRawResponse, 16 | RandomJokesResourceWithStreamingResponse, 17 | AsyncRandomJokesResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "JokeResource", 22 | "AsyncJokeResource", 23 | "JokeResourceWithRawResponse", 24 | "AsyncJokeResourceWithRawResponse", 25 | "JokeResourceWithStreamingResponse", 26 | "AsyncJokeResourceWithStreamingResponse", 27 | "RandomJokesResource", 28 | "AsyncRandomJokesResource", 29 | "RandomJokesResourceWithRawResponse", 30 | "AsyncRandomJokesResourceWithRawResponse", 31 | "RandomJokesResourceWithStreamingResponse", 32 | "AsyncRandomJokesResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/public/random_users/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .user import ( 4 | UserResource, 5 | AsyncUserResource, 6 | UserResourceWithRawResponse, 7 | AsyncUserResourceWithRawResponse, 8 | UserResourceWithStreamingResponse, 9 | AsyncUserResourceWithStreamingResponse, 10 | ) 11 | from .random_users import ( 12 | RandomUsersResource, 13 | AsyncRandomUsersResource, 14 | RandomUsersResourceWithRawResponse, 15 | AsyncRandomUsersResourceWithRawResponse, 16 | RandomUsersResourceWithStreamingResponse, 17 | AsyncRandomUsersResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "UserResource", 22 | "AsyncUserResource", 23 | "UserResourceWithRawResponse", 24 | "AsyncUserResourceWithRawResponse", 25 | "UserResourceWithStreamingResponse", 26 | "AsyncUserResourceWithStreamingResponse", 27 | "RandomUsersResource", 28 | "AsyncRandomUsersResource", 29 | "RandomUsersResourceWithRawResponse", 30 | "AsyncRandomUsersResourceWithRawResponse", 31 | "RandomUsersResourceWithStreamingResponse", 32 | "AsyncRandomUsersResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: 3 | push: 4 | branches: 5 | - main 6 | pull_request: 7 | branches: 8 | - main 9 | - next 10 | 11 | jobs: 12 | lint: 13 | name: lint 14 | runs-on: ubuntu-latest 15 | 16 | 17 | steps: 18 | - uses: actions/checkout@v4 19 | 20 | - name: Install Rye 21 | run: | 22 | curl -sSf https://rye.astral.sh/get | bash 23 | echo "$HOME/.rye/shims" >> $GITHUB_PATH 24 | env: 25 | RYE_VERSION: '0.35.0' 26 | RYE_INSTALL_OPTION: '--yes' 27 | 28 | - name: Install dependencies 29 | run: rye sync --all-features 30 | 31 | - name: Run lints 32 | run: ./scripts/lint 33 | test: 34 | name: test 35 | runs-on: ubuntu-latest 36 | 37 | steps: 38 | - uses: actions/checkout@v4 39 | 40 | - name: Install Rye 41 | run: | 42 | curl -sSf https://rye.astral.sh/get | bash 43 | echo "$HOME/.rye/shims" >> $GITHUB_PATH 44 | env: 45 | RYE_VERSION: '0.35.0' 46 | RYE_INSTALL_OPTION: '--yes' 47 | 48 | - name: Bootstrap 49 | run: ./scripts/bootstrap 50 | 51 | - name: Run tests 52 | run: ./scripts/test 53 | 54 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/social_media/profile/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .profile import ( 4 | ProfileResource, 5 | AsyncProfileResource, 6 | ProfileResourceWithRawResponse, 7 | AsyncProfileResourceWithRawResponse, 8 | ProfileResourceWithStreamingResponse, 9 | AsyncProfileResourceWithStreamingResponse, 10 | ) 11 | from .cover_image import ( 12 | CoverImageResource, 13 | AsyncCoverImageResource, 14 | CoverImageResourceWithRawResponse, 15 | AsyncCoverImageResourceWithRawResponse, 16 | CoverImageResourceWithStreamingResponse, 17 | AsyncCoverImageResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "CoverImageResource", 22 | "AsyncCoverImageResource", 23 | "CoverImageResourceWithRawResponse", 24 | "AsyncCoverImageResourceWithRawResponse", 25 | "CoverImageResourceWithStreamingResponse", 26 | "AsyncCoverImageResourceWithStreamingResponse", 27 | "ProfileResource", 28 | "AsyncProfileResource", 29 | "ProfileResourceWithRawResponse", 30 | "AsyncProfileResourceWithRawResponse", 31 | "ProfileResourceWithStreamingResponse", 32 | "AsyncProfileResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /src/freeapiapp/types/todo_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["TodoDeleteResponse", "Data", "DataDeletedTodo"] 10 | 11 | 12 | class DataDeletedTodo(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 18 | 19 | description: Optional[str] = None 20 | 21 | is_done: Optional[bool] = FieldInfo(alias="isDone", default=None) 22 | 23 | title: Optional[str] = None 24 | 25 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 26 | 27 | 28 | class Data(BaseModel): 29 | deleted_todo: Optional[DataDeletedTodo] = FieldInfo(alias="deletedTodo", default=None) 30 | 31 | 32 | class TodoDeleteResponse(BaseModel): 33 | data: Optional[Data] = None 34 | 35 | message: Optional[str] = None 36 | 37 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 38 | 39 | success: Optional[bool] = None 40 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/kitchen_sinks/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .cookies import ( 4 | CookiesResource, 5 | AsyncCookiesResource, 6 | CookiesResourceWithRawResponse, 7 | AsyncCookiesResourceWithRawResponse, 8 | CookiesResourceWithStreamingResponse, 9 | AsyncCookiesResourceWithStreamingResponse, 10 | ) 11 | from .kitchen_sinks import ( 12 | KitchenSinksResource, 13 | AsyncKitchenSinksResource, 14 | KitchenSinksResourceWithRawResponse, 15 | AsyncKitchenSinksResourceWithRawResponse, 16 | KitchenSinksResourceWithStreamingResponse, 17 | AsyncKitchenSinksResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "CookiesResource", 22 | "AsyncCookiesResource", 23 | "CookiesResourceWithRawResponse", 24 | "AsyncCookiesResourceWithRawResponse", 25 | "CookiesResourceWithStreamingResponse", 26 | "AsyncCookiesResourceWithStreamingResponse", 27 | "KitchenSinksResource", 28 | "AsyncKitchenSinksResource", 29 | "KitchenSinksResourceWithRawResponse", 30 | "AsyncKitchenSinksResourceWithRawResponse", 31 | "KitchenSinksResourceWithStreamingResponse", 32 | "AsyncKitchenSinksResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/request/header_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["HeaderRetrieveResponse", "Data", "DataHeaders"] 10 | 11 | 12 | class DataHeaders(BaseModel): 13 | accept: Optional[str] = None 14 | 15 | accept_encoding: Optional[str] = FieldInfo(alias="accept-encoding", default=None) 16 | 17 | cache_control: Optional[str] = FieldInfo(alias="cache-control", default=None) 18 | 19 | connection: Optional[str] = None 20 | 21 | cookie: Optional[str] = None 22 | 23 | host: Optional[str] = None 24 | 25 | postman_token: Optional[str] = FieldInfo(alias="postman-token", default=None) 26 | 27 | user_agent: Optional[str] = FieldInfo(alias="user-agent", default=None) 28 | 29 | 30 | class Data(BaseModel): 31 | headers: Optional[DataHeaders] = None 32 | 33 | 34 | class HeaderRetrieveResponse(BaseModel): 35 | data: Optional[Data] = None 36 | 37 | message: Optional[str] = None 38 | 39 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 40 | 41 | success: Optional[bool] = None 42 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/comment_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CommentDeleteResponse", "Data", "DataDeletedComment"] 10 | 11 | 12 | class DataDeletedComment(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | author: Optional[str] = None 18 | 19 | content: Optional[str] = None 20 | 21 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 22 | 23 | post_id: Optional[str] = FieldInfo(alias="postId", default=None) 24 | 25 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 26 | 27 | 28 | class Data(BaseModel): 29 | deleted_comment: Optional[DataDeletedComment] = FieldInfo(alias="deletedComment", default=None) 30 | 31 | 32 | class CommentDeleteResponse(BaseModel): 33 | data: Optional[Data] = None 34 | 35 | message: Optional[str] = None 36 | 37 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 38 | 39 | success: Optional[bool] = None 40 | -------------------------------------------------------------------------------- /src/freeapiapp/types/social_media/comment_update_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CommentUpdateResponse", "Data", "DataDeletedComment"] 10 | 11 | 12 | class DataDeletedComment(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | author: Optional[str] = None 18 | 19 | content: Optional[str] = None 20 | 21 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 22 | 23 | post_id: Optional[str] = FieldInfo(alias="postId", default=None) 24 | 25 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 26 | 27 | 28 | class Data(BaseModel): 29 | deleted_comment: Optional[DataDeletedComment] = FieldInfo(alias="deletedComment", default=None) 30 | 31 | 32 | class CommentUpdateResponse(BaseModel): 33 | data: Optional[Data] = None 34 | 35 | message: Optional[str] = None 36 | 37 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 38 | 39 | success: Optional[bool] = None 40 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/response/header_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["HeaderRetrieveResponse", "Data", "DataHeaders"] 10 | 11 | 12 | class DataHeaders(BaseModel): 13 | access_control_allow_credentials: Optional[str] = FieldInfo(alias="access-control-allow-credentials", default=None) 14 | 15 | access_control_allow_origin: Optional[str] = FieldInfo(alias="access-control-allow-origin", default=None) 16 | 17 | content_length: Optional[str] = FieldInfo(alias="content-length", default=None) 18 | 19 | content_type: Optional[str] = FieldInfo(alias="content-type", default=None) 20 | 21 | etag: Optional[str] = None 22 | 23 | x_powered_by: Optional[str] = FieldInfo(alias="x-powered-by", default=None) 24 | 25 | 26 | class Data(BaseModel): 27 | headers: Optional[DataHeaders] = None 28 | 29 | 30 | class HeaderRetrieveResponse(BaseModel): 31 | data: Optional[Data] = None 32 | 33 | message: Optional[str] = None 34 | 35 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 36 | 37 | success: Optional[bool] = None 38 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/public/random_products/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .product import ( 4 | ProductResource, 5 | AsyncProductResource, 6 | ProductResourceWithRawResponse, 7 | AsyncProductResourceWithRawResponse, 8 | ProductResourceWithStreamingResponse, 9 | AsyncProductResourceWithStreamingResponse, 10 | ) 11 | from .random_products import ( 12 | RandomProductsResource, 13 | AsyncRandomProductsResource, 14 | RandomProductsResourceWithRawResponse, 15 | AsyncRandomProductsResourceWithRawResponse, 16 | RandomProductsResourceWithStreamingResponse, 17 | AsyncRandomProductsResourceWithStreamingResponse, 18 | ) 19 | 20 | __all__ = [ 21 | "ProductResource", 22 | "AsyncProductResource", 23 | "ProductResourceWithRawResponse", 24 | "AsyncProductResourceWithRawResponse", 25 | "ProductResourceWithStreamingResponse", 26 | "AsyncProductResourceWithStreamingResponse", 27 | "RandomProductsResource", 28 | "AsyncRandomProductsResource", 29 | "RandomProductsResourceWithRawResponse", 30 | "AsyncRandomProductsResourceWithRawResponse", 31 | "RandomProductsResourceWithStreamingResponse", 32 | "AsyncRandomProductsResourceWithStreamingResponse", 33 | ] 34 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Reporting Security Issues 4 | 5 | This SDK is generated by [Stainless Software Inc](http://stainlessapi.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken. 6 | 7 | To report a security issue, please contact the Stainless team at security@stainlessapi.com. 8 | 9 | ## Responsible Disclosure 10 | 11 | We appreciate the efforts of security researchers and individuals who help us maintain the security of 12 | SDKs we generate. If you believe you have found a security vulnerability, please adhere to responsible 13 | disclosure practices by allowing us a reasonable amount of time to investigate and address the issue 14 | before making any information public. 15 | 16 | ## Reporting Non-SDK Related Security Issues 17 | 18 | If you encounter security issues that are not directly related to SDKs but pertain to the services 19 | or products provided by Freeapiapp please follow the respective company's security reporting guidelines. 20 | 21 | ### Freeapiapp Terms and Policies 22 | 23 | Please contact dev-feedback@freeapiapp.com for any questions or concerns regarding security of our services. 24 | 25 | --- 26 | 27 | Thank you for helping us keep the SDKs and systems they interact with secure. 28 | -------------------------------------------------------------------------------- /src/freeapiapp/_resource.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from __future__ import annotations 4 | 5 | import time 6 | from typing import TYPE_CHECKING 7 | 8 | import anyio 9 | 10 | if TYPE_CHECKING: 11 | from ._client import Freeapiapp, AsyncFreeapiapp 12 | 13 | 14 | class SyncAPIResource: 15 | _client: Freeapiapp 16 | 17 | def __init__(self, client: Freeapiapp) -> None: 18 | self._client = client 19 | self._get = client.get 20 | self._post = client.post 21 | self._patch = client.patch 22 | self._put = client.put 23 | self._delete = client.delete 24 | self._get_api_list = client.get_api_list 25 | 26 | def _sleep(self, seconds: float) -> None: 27 | time.sleep(seconds) 28 | 29 | 30 | class AsyncAPIResource: 31 | _client: AsyncFreeapiapp 32 | 33 | def __init__(self, client: AsyncFreeapiapp) -> None: 34 | self._client = client 35 | self._get = client.get 36 | self._post = client.post 37 | self._patch = client.patch 38 | self._put = client.put 39 | self._delete = client.delete 40 | self._get_api_list = client.get_api_list 41 | 42 | async def _sleep(self, seconds: float) -> None: 43 | await anyio.sleep(seconds) 44 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/profile_update_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["ProfileUpdateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | country_code: Optional[str] = FieldInfo(alias="countryCode", default=None) 18 | 19 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 20 | 21 | first_name: Optional[str] = FieldInfo(alias="firstName", default=None) 22 | 23 | last_name: Optional[str] = FieldInfo(alias="lastName", default=None) 24 | 25 | owner: Optional[str] = None 26 | 27 | phone_number: Optional[str] = FieldInfo(alias="phoneNumber", default=None) 28 | 29 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 30 | 31 | 32 | class ProfileUpdateResponse(BaseModel): 33 | data: Optional[Data] = None 34 | 35 | message: Optional[str] = None 36 | 37 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 38 | 39 | success: Optional[bool] = None 40 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/profile_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["ProfileRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | country_code: Optional[str] = FieldInfo(alias="countryCode", default=None) 18 | 19 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 20 | 21 | first_name: Optional[str] = FieldInfo(alias="firstName", default=None) 22 | 23 | last_name: Optional[str] = FieldInfo(alias="lastName", default=None) 24 | 25 | owner: Optional[str] = None 26 | 27 | phone_number: Optional[str] = FieldInfo(alias="phoneNumber", default=None) 28 | 29 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 30 | 31 | 32 | class ProfileRetrieveResponse(BaseModel): 33 | data: Optional[Data] = None 34 | 35 | message: Optional[str] = None 36 | 37 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 38 | 39 | success: Optional[bool] = None 40 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/address_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["AddressCreateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | address_line1: Optional[str] = FieldInfo(alias="addressLine1", default=None) 18 | 19 | address_line2: Optional[str] = FieldInfo(alias="addressLine2", default=None) 20 | 21 | city: Optional[str] = None 22 | 23 | country: Optional[str] = None 24 | 25 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 26 | 27 | owner: Optional[str] = None 28 | 29 | pincode: Optional[str] = None 30 | 31 | state: Optional[str] = None 32 | 33 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 34 | 35 | 36 | class AddressCreateResponse(BaseModel): 37 | data: Optional[Data] = None 38 | 39 | message: Optional[str] = None 40 | 41 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 42 | 43 | success: Optional[bool] = None 44 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/address_update_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["AddressUpdateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | address_line1: Optional[str] = FieldInfo(alias="addressLine1", default=None) 18 | 19 | address_line2: Optional[str] = FieldInfo(alias="addressLine2", default=None) 20 | 21 | city: Optional[str] = None 22 | 23 | country: Optional[str] = None 24 | 25 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 26 | 27 | owner: Optional[str] = None 28 | 29 | pincode: Optional[str] = None 30 | 31 | state: Optional[str] = None 32 | 33 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 34 | 35 | 36 | class AddressUpdateResponse(BaseModel): 37 | data: Optional[Data] = None 38 | 39 | message: Optional[str] = None 40 | 41 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 42 | 43 | success: Optional[bool] = None 44 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/address_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["AddressRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | address_line1: Optional[str] = FieldInfo(alias="addressLine1", default=None) 18 | 19 | address_line2: Optional[str] = FieldInfo(alias="addressLine2", default=None) 20 | 21 | city: Optional[str] = None 22 | 23 | country: Optional[str] = None 24 | 25 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 26 | 27 | owner: Optional[str] = None 28 | 29 | pincode: Optional[str] = None 30 | 31 | state: Optional[str] = None 32 | 33 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 34 | 35 | 36 | class AddressRetrieveResponse(BaseModel): 37 | data: Optional[Data] = None 38 | 39 | message: Optional[str] = None 40 | 41 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 42 | 43 | success: Optional[bool] = None 44 | -------------------------------------------------------------------------------- /.devcontainer/devcontainer.json: -------------------------------------------------------------------------------- 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/debian 3 | { 4 | "name": "Debian", 5 | "build": { 6 | "dockerfile": "Dockerfile", 7 | "context": ".." 8 | }, 9 | 10 | "postStartCommand": "rye sync --all-features", 11 | 12 | "customizations": { 13 | "vscode": { 14 | "extensions": [ 15 | "ms-python.python" 16 | ], 17 | "settings": { 18 | "terminal.integrated.shell.linux": "/bin/bash", 19 | "python.pythonPath": ".venv/bin/python", 20 | "python.defaultInterpreterPath": ".venv/bin/python", 21 | "python.typeChecking": "basic", 22 | "terminal.integrated.env.linux": { 23 | "PATH": "/home/vscode/.rye/shims:${env:PATH}" 24 | } 25 | } 26 | } 27 | } 28 | 29 | // Features to add to the dev container. More info: https://containers.dev/features. 30 | // "features": {}, 31 | 32 | // Use 'forwardPorts' to make a list of ports inside the container available locally. 33 | // "forwardPorts": [], 34 | 35 | // Configure tool-specific properties. 36 | // "customizations": {}, 37 | 38 | // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. 39 | // "remoteUser": "root" 40 | } 41 | -------------------------------------------------------------------------------- /src/freeapiapp/types/product_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["ProductCreateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | category: Optional[str] = None 18 | 19 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 20 | 21 | description: Optional[str] = None 22 | 23 | main_image: Optional[str] = FieldInfo(alias="mainImage", default=None) 24 | 25 | name: Optional[str] = None 26 | 27 | owner: Optional[str] = None 28 | 29 | price: Optional[float] = None 30 | 31 | stock: Optional[float] = None 32 | 33 | sub_images: Optional[List[str]] = FieldInfo(alias="subImages", default=None) 34 | 35 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 36 | 37 | 38 | class ProductCreateResponse(BaseModel): 39 | data: Optional[Data] = None 40 | 41 | message: Optional[str] = None 42 | 43 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 44 | 45 | success: Optional[bool] = None 46 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/http_method_get_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["HTTPMethodGetResponse", "Data", "DataHeaders"] 10 | 11 | 12 | class DataHeaders(BaseModel): 13 | accept: Optional[str] = None 14 | 15 | accept_encoding: Optional[str] = FieldInfo(alias="accept-encoding", default=None) 16 | 17 | cache_control: Optional[str] = FieldInfo(alias="cache-control", default=None) 18 | 19 | connection: Optional[str] = None 20 | 21 | cookie: Optional[str] = None 22 | 23 | host: Optional[str] = None 24 | 25 | postman_token: Optional[str] = FieldInfo(alias="postman-token", default=None) 26 | 27 | user_agent: Optional[str] = FieldInfo(alias="user-agent", default=None) 28 | 29 | 30 | class Data(BaseModel): 31 | headers: Optional[DataHeaders] = None 32 | 33 | method: Optional[str] = None 34 | 35 | origin: Optional[str] = None 36 | 37 | url: Optional[str] = None 38 | 39 | 40 | class HTTPMethodGetResponse(BaseModel): 41 | data: Optional[Data] = None 42 | 43 | message: Optional[str] = None 44 | 45 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 46 | 47 | success: Optional[bool] = None 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/http_method_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["HTTPMethodDeleteResponse", "Data", "DataHeaders"] 10 | 11 | 12 | class DataHeaders(BaseModel): 13 | accept: Optional[str] = None 14 | 15 | accept_encoding: Optional[str] = FieldInfo(alias="accept-encoding", default=None) 16 | 17 | cache_control: Optional[str] = FieldInfo(alias="cache-control", default=None) 18 | 19 | connection: Optional[str] = None 20 | 21 | cookie: Optional[str] = None 22 | 23 | host: Optional[str] = None 24 | 25 | postman_token: Optional[str] = FieldInfo(alias="postman-token", default=None) 26 | 27 | user_agent: Optional[str] = FieldInfo(alias="user-agent", default=None) 28 | 29 | 30 | class Data(BaseModel): 31 | headers: Optional[DataHeaders] = None 32 | 33 | method: Optional[str] = None 34 | 35 | origin: Optional[str] = None 36 | 37 | url: Optional[str] = None 38 | 39 | 40 | class HTTPMethodDeleteResponse(BaseModel): 41 | data: Optional[Data] = None 42 | 43 | message: Optional[str] = None 44 | 45 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 46 | 47 | success: Optional[bool] = None 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_joke_list_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["RandomJokeListResponse", "Data", "DataData"] 10 | 11 | 12 | class DataData(BaseModel): 13 | id: Optional[float] = None 14 | 15 | categories: Optional[List[str]] = None 16 | 17 | content: Optional[str] = None 18 | 19 | 20 | class Data(BaseModel): 21 | current_page_items: Optional[float] = FieldInfo(alias="currentPageItems", default=None) 22 | 23 | data: Optional[List[DataData]] = None 24 | 25 | limit: Optional[float] = None 26 | 27 | next_page: Optional[bool] = FieldInfo(alias="nextPage", default=None) 28 | 29 | page: Optional[float] = None 30 | 31 | previous_page: Optional[bool] = FieldInfo(alias="previousPage", default=None) 32 | 33 | total_items: Optional[float] = FieldInfo(alias="totalItems", default=None) 34 | 35 | total_pages: Optional[float] = FieldInfo(alias="totalPages", default=None) 36 | 37 | 38 | class RandomJokeListResponse(BaseModel): 39 | data: Optional[Data] = None 40 | 41 | message: Optional[str] = None 42 | 43 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 44 | 45 | success: Optional[bool] = None 46 | -------------------------------------------------------------------------------- /mypy.ini: -------------------------------------------------------------------------------- 1 | [mypy] 2 | pretty = True 3 | show_error_codes = True 4 | 5 | # Exclude _files.py because mypy isn't smart enough to apply 6 | # the correct type narrowing and as this is an internal module 7 | # it's fine to just use Pyright. 8 | exclude = ^(src/freeapiapp/_files\.py|_dev/.*\.py)$ 9 | 10 | strict_equality = True 11 | implicit_reexport = True 12 | check_untyped_defs = True 13 | no_implicit_optional = True 14 | 15 | warn_return_any = True 16 | warn_unreachable = True 17 | warn_unused_configs = True 18 | 19 | # Turn these options off as it could cause conflicts 20 | # with the Pyright options. 21 | warn_unused_ignores = False 22 | warn_redundant_casts = False 23 | 24 | disallow_any_generics = True 25 | disallow_untyped_defs = True 26 | disallow_untyped_calls = True 27 | disallow_subclassing_any = True 28 | disallow_incomplete_defs = True 29 | disallow_untyped_decorators = True 30 | cache_fine_grained = True 31 | 32 | # By default, mypy reports an error if you assign a value to the result 33 | # of a function call that doesn't return anything. We do this in our test 34 | # cases: 35 | # ``` 36 | # result = ... 37 | # assert result is None 38 | # ``` 39 | # Changing this codegen to make mypy happy would increase complexity 40 | # and would not be worth it. 41 | disable_error_code = func-returns-value 42 | 43 | # https://github.com/python/mypy/issues/12162 44 | [mypy.overrides] 45 | module = "black.files.*" 46 | ignore_errors = true 47 | ignore_missing_imports = true 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/cart/item_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["ItemDeleteResponse", "Data", "DataProduct", "DataProductMainImage"] 10 | 11 | 12 | class DataProductMainImage(BaseModel): 13 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 14 | 15 | local_path: Optional[str] = FieldInfo(alias="localPath", default=None) 16 | 17 | url: Optional[str] = None 18 | 19 | 20 | class DataProduct(BaseModel): 21 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 22 | 23 | description: Optional[str] = None 24 | 25 | main_image: Optional[DataProductMainImage] = FieldInfo(alias="mainImage", default=None) 26 | 27 | name: Optional[str] = None 28 | 29 | price: Optional[float] = None 30 | 31 | stock: Optional[float] = None 32 | 33 | 34 | class Data(BaseModel): 35 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 36 | 37 | product: Optional[DataProduct] = None 38 | 39 | quantity: Optional[float] = None 40 | 41 | 42 | class ItemDeleteResponse(BaseModel): 43 | data: Optional[List[Data]] = None 44 | 45 | message: Optional[str] = None 46 | 47 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 48 | 49 | success: Optional[bool] = None 50 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/http_method_put_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["HTTPMethodPutResponse", "Data", "DataHeaders"] 10 | 11 | 12 | class DataHeaders(BaseModel): 13 | accept: Optional[str] = None 14 | 15 | accept_encoding: Optional[str] = FieldInfo(alias="accept-encoding", default=None) 16 | 17 | cache_control: Optional[str] = FieldInfo(alias="cache-control", default=None) 18 | 19 | connection: Optional[str] = None 20 | 21 | content_length: Optional[str] = FieldInfo(alias="content-length", default=None) 22 | 23 | cookie: Optional[str] = None 24 | 25 | host: Optional[str] = None 26 | 27 | postman_token: Optional[str] = FieldInfo(alias="postman-token", default=None) 28 | 29 | user_agent: Optional[str] = FieldInfo(alias="user-agent", default=None) 30 | 31 | 32 | class Data(BaseModel): 33 | headers: Optional[DataHeaders] = None 34 | 35 | method: Optional[str] = None 36 | 37 | origin: Optional[str] = None 38 | 39 | url: Optional[str] = None 40 | 41 | 42 | class HTTPMethodPutResponse(BaseModel): 43 | data: Optional[Data] = None 44 | 45 | message: Optional[str] = None 46 | 47 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 48 | 49 | success: Optional[bool] = None 50 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/http_method_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["HTTPMethodCreateResponse", "Data", "DataHeaders"] 10 | 11 | 12 | class DataHeaders(BaseModel): 13 | accept: Optional[str] = None 14 | 15 | accept_encoding: Optional[str] = FieldInfo(alias="accept-encoding", default=None) 16 | 17 | cache_control: Optional[str] = FieldInfo(alias="cache-control", default=None) 18 | 19 | connection: Optional[str] = None 20 | 21 | content_length: Optional[str] = FieldInfo(alias="content-length", default=None) 22 | 23 | cookie: Optional[str] = None 24 | 25 | host: Optional[str] = None 26 | 27 | postman_token: Optional[str] = FieldInfo(alias="postman-token", default=None) 28 | 29 | user_agent: Optional[str] = FieldInfo(alias="user-agent", default=None) 30 | 31 | 32 | class Data(BaseModel): 33 | headers: Optional[DataHeaders] = None 34 | 35 | method: Optional[str] = None 36 | 37 | origin: Optional[str] = None 38 | 39 | url: Optional[str] = None 40 | 41 | 42 | class HTTPMethodCreateResponse(BaseModel): 43 | data: Optional[Data] = None 44 | 45 | message: Optional[str] = None 46 | 47 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 48 | 49 | success: Optional[bool] = None 50 | -------------------------------------------------------------------------------- /src/freeapiapp/types/kitchen_sink/http_method_update_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["HTTPMethodUpdateResponse", "Data", "DataHeaders"] 10 | 11 | 12 | class DataHeaders(BaseModel): 13 | accept: Optional[str] = None 14 | 15 | accept_encoding: Optional[str] = FieldInfo(alias="accept-encoding", default=None) 16 | 17 | cache_control: Optional[str] = FieldInfo(alias="cache-control", default=None) 18 | 19 | connection: Optional[str] = None 20 | 21 | content_length: Optional[str] = FieldInfo(alias="content-length", default=None) 22 | 23 | cookie: Optional[str] = None 24 | 25 | host: Optional[str] = None 26 | 27 | postman_token: Optional[str] = FieldInfo(alias="postman-token", default=None) 28 | 29 | user_agent: Optional[str] = FieldInfo(alias="user-agent", default=None) 30 | 31 | 32 | class Data(BaseModel): 33 | headers: Optional[DataHeaders] = None 34 | 35 | method: Optional[str] = None 36 | 37 | origin: Optional[str] = None 38 | 39 | url: Optional[str] = None 40 | 41 | 42 | class HTTPMethodUpdateResponse(BaseModel): 43 | data: Optional[Data] = None 44 | 45 | message: Optional[str] = None 46 | 47 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 48 | 49 | success: Optional[bool] = None 50 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/address_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["AddressDeleteResponse", "Data", "DataDeletedAddress"] 10 | 11 | 12 | class DataDeletedAddress(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | address_line1: Optional[str] = FieldInfo(alias="addressLine1", default=None) 18 | 19 | address_line2: Optional[str] = FieldInfo(alias="addressLine2", default=None) 20 | 21 | city: Optional[str] = None 22 | 23 | country: Optional[str] = None 24 | 25 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 26 | 27 | owner: Optional[str] = None 28 | 29 | pincode: Optional[str] = None 30 | 31 | state: Optional[str] = None 32 | 33 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 34 | 35 | 36 | class Data(BaseModel): 37 | deleted_address: Optional[DataDeletedAddress] = FieldInfo(alias="deletedAddress", default=None) 38 | 39 | 40 | class AddressDeleteResponse(BaseModel): 41 | data: Optional[Data] = None 42 | 43 | message: Optional[str] = None 44 | 45 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 46 | 47 | success: Optional[bool] = None 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupon_update_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CouponUpdateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | coupon_code: Optional[str] = FieldInfo(alias="couponCode", default=None) 18 | 19 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 20 | 21 | discount_value: Optional[float] = FieldInfo(alias="discountValue", default=None) 22 | 23 | expiry_date: Optional[str] = FieldInfo(alias="expiryDate", default=None) 24 | 25 | minimum_cart_value: Optional[float] = FieldInfo(alias="minimumCartValue", default=None) 26 | 27 | name: Optional[str] = None 28 | 29 | owner: Optional[str] = None 30 | 31 | start_date: Optional[str] = FieldInfo(alias="startDate", default=None) 32 | 33 | type: Optional[str] = None 34 | 35 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 36 | 37 | 38 | class CouponUpdateResponse(BaseModel): 39 | data: Optional[Data] = None 40 | 41 | message: Optional[str] = None 42 | 43 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 44 | 45 | success: Optional[bool] = None 46 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/random_product_list_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["RandomProductListResponse", "Data", "DataData"] 10 | 11 | 12 | class DataData(BaseModel): 13 | id: Optional[float] = None 14 | 15 | category: Optional[str] = None 16 | 17 | images: Optional[List[str]] = None 18 | 19 | price: Optional[float] = None 20 | 21 | thumbnail: Optional[str] = None 22 | 23 | title: Optional[str] = None 24 | 25 | 26 | class Data(BaseModel): 27 | current_page_items: Optional[float] = FieldInfo(alias="currentPageItems", default=None) 28 | 29 | data: Optional[List[DataData]] = None 30 | 31 | limit: Optional[float] = None 32 | 33 | next_page: Optional[bool] = FieldInfo(alias="nextPage", default=None) 34 | 35 | page: Optional[float] = None 36 | 37 | previous_page: Optional[bool] = FieldInfo(alias="previousPage", default=None) 38 | 39 | total_items: Optional[float] = FieldInfo(alias="totalItems", default=None) 40 | 41 | total_pages: Optional[float] = FieldInfo(alias="totalPages", default=None) 42 | 43 | 44 | class RandomProductListResponse(BaseModel): 45 | data: Optional[Data] = None 46 | 47 | message: Optional[str] = None 48 | 49 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 50 | 51 | success: Optional[bool] = None 52 | -------------------------------------------------------------------------------- /src/freeapiapp/types/product_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["ProductDeleteResponse", "Data", "DataDeletedProduct"] 10 | 11 | 12 | class DataDeletedProduct(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | category: Optional[str] = None 18 | 19 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 20 | 21 | description: Optional[str] = None 22 | 23 | main_image: Optional[str] = FieldInfo(alias="mainImage", default=None) 24 | 25 | name: Optional[str] = None 26 | 27 | owner: Optional[str] = None 28 | 29 | price: Optional[float] = None 30 | 31 | stock: Optional[float] = None 32 | 33 | sub_images: Optional[List[str]] = FieldInfo(alias="subImages", default=None) 34 | 35 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 36 | 37 | 38 | class Data(BaseModel): 39 | deleted_product: Optional[DataDeletedProduct] = FieldInfo(alias="deletedProduct", default=None) 40 | 41 | 42 | class ProductDeleteResponse(BaseModel): 43 | data: Optional[Data] = None 44 | 45 | message: Optional[str] = None 46 | 47 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 48 | 49 | success: Optional[bool] = None 50 | -------------------------------------------------------------------------------- /src/freeapiapp/_utils/_reflection.py: -------------------------------------------------------------------------------- 1 | from __future__ import annotations 2 | 3 | import inspect 4 | from typing import Any, Callable 5 | 6 | 7 | def function_has_argument(func: Callable[..., Any], arg_name: str) -> bool: 8 | """Returns whether or not the given function has a specific parameter""" 9 | sig = inspect.signature(func) 10 | return arg_name in sig.parameters 11 | 12 | 13 | def assert_signatures_in_sync( 14 | source_func: Callable[..., Any], 15 | check_func: Callable[..., Any], 16 | *, 17 | exclude_params: set[str] = set(), 18 | ) -> None: 19 | """Ensure that the signature of the second function matches the first.""" 20 | 21 | check_sig = inspect.signature(check_func) 22 | source_sig = inspect.signature(source_func) 23 | 24 | errors: list[str] = [] 25 | 26 | for name, source_param in source_sig.parameters.items(): 27 | if name in exclude_params: 28 | continue 29 | 30 | custom_param = check_sig.parameters.get(name) 31 | if not custom_param: 32 | errors.append(f"the `{name}` param is missing") 33 | continue 34 | 35 | if custom_param.annotation != source_param.annotation: 36 | errors.append( 37 | f"types for the `{name}` param are do not match; source={repr(source_param.annotation)} checking={repr(custom_param.annotation)}" 38 | ) 39 | continue 40 | 41 | if errors: 42 | raise AssertionError(f"{len(errors)} errors encountered when comparing signatures:\n\n" + "\n\n".join(errors)) 43 | -------------------------------------------------------------------------------- /src/freeapiapp/types/authentication_current_user_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["AuthenticationCurrentUserResponse", "Data", "DataAvatar"] 10 | 11 | 12 | class DataAvatar(BaseModel): 13 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 14 | 15 | local_path: Optional[str] = FieldInfo(alias="localPath", default=None) 16 | 17 | url: Optional[str] = None 18 | 19 | 20 | class Data(BaseModel): 21 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 22 | 23 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 24 | 25 | avatar: Optional[DataAvatar] = None 26 | 27 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 28 | 29 | email: Optional[str] = None 30 | 31 | is_email_verified: Optional[bool] = FieldInfo(alias="isEmailVerified", default=None) 32 | 33 | login_type: Optional[str] = FieldInfo(alias="loginType", default=None) 34 | 35 | role: Optional[str] = None 36 | 37 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 38 | 39 | username: Optional[str] = None 40 | 41 | 42 | class AuthenticationCurrentUserResponse(BaseModel): 43 | data: Optional[Data] = None 44 | 45 | message: Optional[str] = None 46 | 47 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 48 | 49 | success: Optional[bool] = None 50 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/dog_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["DogRetrieveResponse", "Data", "DataHeight", "DataImage", "DataWeight"] 10 | 11 | 12 | class DataHeight(BaseModel): 13 | imperial: Optional[str] = None 14 | 15 | metric: Optional[str] = None 16 | 17 | 18 | class DataImage(BaseModel): 19 | id: Optional[str] = None 20 | 21 | height: Optional[float] = None 22 | 23 | url: Optional[str] = None 24 | 25 | width: Optional[float] = None 26 | 27 | 28 | class DataWeight(BaseModel): 29 | imperial: Optional[str] = None 30 | 31 | metric: Optional[str] = None 32 | 33 | 34 | class Data(BaseModel): 35 | id: Optional[float] = None 36 | 37 | bred_for: Optional[str] = None 38 | 39 | breed_group: Optional[str] = None 40 | 41 | height: Optional[DataHeight] = None 42 | 43 | image: Optional[DataImage] = None 44 | 45 | life_span: Optional[str] = None 46 | 47 | name: Optional[str] = None 48 | 49 | reference_image_id: Optional[str] = None 50 | 51 | temperament: Optional[str] = None 52 | 53 | weight: Optional[DataWeight] = None 54 | 55 | 56 | class DogRetrieveResponse(BaseModel): 57 | data: Optional[Data] = None 58 | 59 | message: Optional[str] = None 60 | 61 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 62 | 63 | success: Optional[bool] = None 64 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/dogs/dog_random_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["DogRandomResponse", "Data", "DataHeight", "DataImage", "DataWeight"] 10 | 11 | 12 | class DataHeight(BaseModel): 13 | imperial: Optional[str] = None 14 | 15 | metric: Optional[str] = None 16 | 17 | 18 | class DataImage(BaseModel): 19 | id: Optional[str] = None 20 | 21 | height: Optional[float] = None 22 | 23 | url: Optional[str] = None 24 | 25 | width: Optional[float] = None 26 | 27 | 28 | class DataWeight(BaseModel): 29 | imperial: Optional[str] = None 30 | 31 | metric: Optional[str] = None 32 | 33 | 34 | class Data(BaseModel): 35 | id: Optional[float] = None 36 | 37 | bred_for: Optional[str] = None 38 | 39 | breed_group: Optional[str] = None 40 | 41 | height: Optional[DataHeight] = None 42 | 43 | image: Optional[DataImage] = None 44 | 45 | life_span: Optional[str] = None 46 | 47 | name: Optional[str] = None 48 | 49 | reference_image_id: Optional[str] = None 50 | 51 | temperament: Optional[str] = None 52 | 53 | weight: Optional[DataWeight] = None 54 | 55 | 56 | class DogRandomResponse(BaseModel): 57 | data: Optional[Data] = None 58 | 59 | message: Optional[str] = None 60 | 61 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 62 | 63 | success: Optional[bool] = None 64 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupon_create_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CouponCreateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | coupon_code: Optional[str] = FieldInfo(alias="couponCode", default=None) 18 | 19 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 20 | 21 | discount_value: Optional[float] = FieldInfo(alias="discountValue", default=None) 22 | 23 | expiry_date: Optional[str] = FieldInfo(alias="expiryDate", default=None) 24 | 25 | is_active: Optional[bool] = FieldInfo(alias="isActive", default=None) 26 | 27 | minimum_cart_value: Optional[float] = FieldInfo(alias="minimumCartValue", default=None) 28 | 29 | name: Optional[str] = None 30 | 31 | owner: Optional[str] = None 32 | 33 | start_date: Optional[str] = FieldInfo(alias="startDate", default=None) 34 | 35 | type: Optional[str] = None 36 | 37 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 38 | 39 | 40 | class CouponCreateResponse(BaseModel): 41 | data: Optional[Data] = None 42 | 43 | message: Optional[str] = None 44 | 45 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 46 | 47 | success: Optional[bool] = None 48 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/chat_app/chats/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .c import ( 4 | CResource, 5 | AsyncCResource, 6 | CResourceWithRawResponse, 7 | AsyncCResourceWithRawResponse, 8 | CResourceWithStreamingResponse, 9 | AsyncCResourceWithStreamingResponse, 10 | ) 11 | from .chats import ( 12 | ChatsResource, 13 | AsyncChatsResource, 14 | ChatsResourceWithRawResponse, 15 | AsyncChatsResourceWithRawResponse, 16 | ChatsResourceWithStreamingResponse, 17 | AsyncChatsResourceWithStreamingResponse, 18 | ) 19 | from .users import ( 20 | UsersResource, 21 | AsyncUsersResource, 22 | UsersResourceWithRawResponse, 23 | AsyncUsersResourceWithRawResponse, 24 | UsersResourceWithStreamingResponse, 25 | AsyncUsersResourceWithStreamingResponse, 26 | ) 27 | 28 | __all__ = [ 29 | "UsersResource", 30 | "AsyncUsersResource", 31 | "UsersResourceWithRawResponse", 32 | "AsyncUsersResourceWithRawResponse", 33 | "UsersResourceWithStreamingResponse", 34 | "AsyncUsersResourceWithStreamingResponse", 35 | "CResource", 36 | "AsyncCResource", 37 | "CResourceWithRawResponse", 38 | "AsyncCResourceWithRawResponse", 39 | "CResourceWithStreamingResponse", 40 | "AsyncCResourceWithStreamingResponse", 41 | "ChatsResource", 42 | "AsyncChatsResource", 43 | "ChatsResourceWithRawResponse", 44 | "AsyncChatsResourceWithRawResponse", 45 | "ChatsResourceWithStreamingResponse", 46 | "AsyncChatsResourceWithStreamingResponse", 47 | ] 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/chat_app/chats/user_list_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["UserListResponse", "Data", "DataAvatar"] 10 | 11 | 12 | class DataAvatar(BaseModel): 13 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 14 | 15 | local_path: Optional[str] = FieldInfo(alias="localPath", default=None) 16 | 17 | url: Optional[str] = None 18 | 19 | 20 | class Data(BaseModel): 21 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 22 | 23 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 24 | 25 | avatar: Optional[DataAvatar] = None 26 | 27 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 28 | 29 | email: Optional[str] = None 30 | 31 | is_email_verified: Optional[bool] = FieldInfo(alias="isEmailVerified", default=None) 32 | 33 | login_type: Optional[str] = FieldInfo(alias="loginType", default=None) 34 | 35 | password: Optional[str] = None 36 | 37 | role: Optional[str] = None 38 | 39 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 40 | 41 | username: Optional[str] = None 42 | 43 | 44 | class UserListResponse(BaseModel): 45 | data: Optional[List[Data]] = None 46 | 47 | message: Optional[str] = None 48 | 49 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 50 | 51 | success: Optional[bool] = None 52 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupon_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CouponRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | coupon_code: Optional[str] = FieldInfo(alias="couponCode", default=None) 18 | 19 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 20 | 21 | discount_value: Optional[float] = FieldInfo(alias="discountValue", default=None) 22 | 23 | expiry_date: Optional[str] = FieldInfo(alias="expiryDate", default=None) 24 | 25 | is_active: Optional[bool] = FieldInfo(alias="isActive", default=None) 26 | 27 | minimum_cart_value: Optional[float] = FieldInfo(alias="minimumCartValue", default=None) 28 | 29 | name: Optional[str] = None 30 | 31 | owner: Optional[str] = None 32 | 33 | start_date: Optional[str] = FieldInfo(alias="startDate", default=None) 34 | 35 | type: Optional[str] = None 36 | 37 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 38 | 39 | 40 | class CouponRetrieveResponse(BaseModel): 41 | data: Optional[Data] = None 42 | 43 | message: Optional[str] = None 44 | 45 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 46 | 47 | success: Optional[bool] = None 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupons/status_update_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ...._models import BaseModel 8 | 9 | __all__ = ["StatusUpdateResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | coupon_code: Optional[str] = FieldInfo(alias="couponCode", default=None) 18 | 19 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 20 | 21 | discount_value: Optional[float] = FieldInfo(alias="discountValue", default=None) 22 | 23 | expiry_date: Optional[str] = FieldInfo(alias="expiryDate", default=None) 24 | 25 | is_active: Optional[bool] = FieldInfo(alias="isActive", default=None) 26 | 27 | minimum_cart_value: Optional[float] = FieldInfo(alias="minimumCartValue", default=None) 28 | 29 | name: Optional[str] = None 30 | 31 | owner: Optional[str] = None 32 | 33 | start_date: Optional[str] = FieldInfo(alias="startDate", default=None) 34 | 35 | type: Optional[str] = None 36 | 37 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 38 | 39 | 40 | class StatusUpdateResponse(BaseModel): 41 | data: Optional[Data] = None 42 | 43 | message: Optional[str] = None 44 | 45 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 46 | 47 | success: Optional[bool] = None 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/products/subimage_remove_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["SubimageRemoveResponse", "Data", "DataMainImage"] 10 | 11 | 12 | class DataMainImage(BaseModel): 13 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 14 | 15 | local_path: Optional[str] = FieldInfo(alias="localPath", default=None) 16 | 17 | url: Optional[str] = None 18 | 19 | 20 | class Data(BaseModel): 21 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 22 | 23 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 24 | 25 | category: Optional[str] = None 26 | 27 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 28 | 29 | description: Optional[str] = None 30 | 31 | main_image: Optional[DataMainImage] = FieldInfo(alias="mainImage", default=None) 32 | 33 | name: Optional[str] = None 34 | 35 | owner: Optional[str] = None 36 | 37 | price: Optional[float] = None 38 | 39 | stock: Optional[float] = None 40 | 41 | sub_images: Optional[List[object]] = FieldInfo(alias="subImages", default=None) 42 | 43 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 44 | 45 | 46 | class SubimageRemoveResponse(BaseModel): 47 | data: Optional[Data] = None 48 | 49 | message: Optional[str] = None 50 | 51 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 52 | 53 | success: Optional[bool] = None 54 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/stock_random_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["StockRandomResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | book_value: Optional[str] = FieldInfo(alias="BookValue", default=None) 14 | 15 | current_price: Optional[str] = FieldInfo(alias="CurrentPrice", default=None) 16 | 17 | dividend_yield: Optional[str] = FieldInfo(alias="DividendYield", default=None) 18 | 19 | face_value: Optional[str] = FieldInfo(alias="FaceValue", default=None) 20 | 21 | high_low: Optional[str] = FieldInfo(alias="HighLow", default=None) 22 | 23 | isin: Optional[str] = FieldInfo(alias="ISIN", default=None) 24 | 25 | listing_date: Optional[str] = FieldInfo(alias="ListingDate", default=None) 26 | 27 | market_cap: Optional[str] = FieldInfo(alias="MarketCap", default=None) 28 | 29 | name: Optional[str] = FieldInfo(alias="Name", default=None) 30 | 31 | roce: Optional[str] = FieldInfo(alias="ROCE", default=None) 32 | 33 | roe: Optional[str] = FieldInfo(alias="ROE", default=None) 34 | 35 | stock_pe: Optional[str] = FieldInfo(alias="StockPE", default=None) 36 | 37 | symbol: Optional[str] = FieldInfo(alias="Symbol", default=None) 38 | 39 | 40 | class StockRandomResponse(BaseModel): 41 | data: Optional[Data] = None 42 | 43 | message: Optional[str] = None 44 | 45 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 46 | 47 | success: Optional[bool] = None 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/authentication_register_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["AuthenticationRegisterResponse", "Data", "DataUser", "DataUserAvatar"] 10 | 11 | 12 | class DataUserAvatar(BaseModel): 13 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 14 | 15 | local_path: Optional[str] = FieldInfo(alias="localPath", default=None) 16 | 17 | url: Optional[str] = None 18 | 19 | 20 | class DataUser(BaseModel): 21 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 22 | 23 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 24 | 25 | avatar: Optional[DataUserAvatar] = None 26 | 27 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 28 | 29 | email: Optional[str] = None 30 | 31 | is_email_verified: Optional[bool] = FieldInfo(alias="isEmailVerified", default=None) 32 | 33 | login_type: Optional[str] = FieldInfo(alias="loginType", default=None) 34 | 35 | role: Optional[str] = None 36 | 37 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 38 | 39 | username: Optional[str] = None 40 | 41 | 42 | class Data(BaseModel): 43 | user: Optional[DataUser] = None 44 | 45 | 46 | class AuthenticationRegisterResponse(BaseModel): 47 | data: Optional[Data] = None 48 | 49 | message: Optional[str] = None 50 | 51 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 52 | 53 | success: Optional[bool] = None 54 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/stock_retrieve_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["StockRetrieveResponse", "Data"] 10 | 11 | 12 | class Data(BaseModel): 13 | book_value: Optional[str] = FieldInfo(alias="BookValue", default=None) 14 | 15 | current_price: Optional[str] = FieldInfo(alias="CurrentPrice", default=None) 16 | 17 | dividend_yield: Optional[str] = FieldInfo(alias="DividendYield", default=None) 18 | 19 | face_value: Optional[str] = FieldInfo(alias="FaceValue", default=None) 20 | 21 | high_low: Optional[str] = FieldInfo(alias="HighLow", default=None) 22 | 23 | isin: Optional[str] = FieldInfo(alias="ISIN", default=None) 24 | 25 | listing_date: Optional[str] = FieldInfo(alias="ListingDate", default=None) 26 | 27 | market_cap: Optional[str] = FieldInfo(alias="MarketCap", default=None) 28 | 29 | name: Optional[str] = FieldInfo(alias="Name", default=None) 30 | 31 | roce: Optional[str] = FieldInfo(alias="ROCE", default=None) 32 | 33 | roe: Optional[str] = FieldInfo(alias="ROE", default=None) 34 | 35 | stock_pe: Optional[str] = FieldInfo(alias="StockPE", default=None) 36 | 37 | symbol: Optional[str] = FieldInfo(alias="Symbol", default=None) 38 | 39 | 40 | class StockRetrieveResponse(BaseModel): 41 | data: Optional[Data] = None 42 | 43 | message: Optional[str] = None 44 | 45 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 46 | 47 | success: Optional[bool] = None 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/coupon_delete_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CouponDeleteResponse", "Data", "DataDeletedCoupon"] 10 | 11 | 12 | class DataDeletedCoupon(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | coupon_code: Optional[str] = FieldInfo(alias="couponCode", default=None) 18 | 19 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 20 | 21 | discount_value: Optional[float] = FieldInfo(alias="discountValue", default=None) 22 | 23 | expiry_date: Optional[str] = FieldInfo(alias="expiryDate", default=None) 24 | 25 | minimum_cart_value: Optional[float] = FieldInfo(alias="minimumCartValue", default=None) 26 | 27 | name: Optional[str] = None 28 | 29 | owner: Optional[str] = None 30 | 31 | start_date: Optional[str] = FieldInfo(alias="startDate", default=None) 32 | 33 | type: Optional[str] = None 34 | 35 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 36 | 37 | 38 | class Data(BaseModel): 39 | deleted_coupon: Optional[DataDeletedCoupon] = FieldInfo(alias="deletedCoupon", default=None) 40 | 41 | 42 | class CouponDeleteResponse(BaseModel): 43 | data: Optional[Data] = None 44 | 45 | message: Optional[str] = None 46 | 47 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 48 | 49 | success: Optional[bool] = None 50 | -------------------------------------------------------------------------------- /scripts/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | cd "$(dirname "$0")/.." 6 | 7 | RED='\033[0;31m' 8 | GREEN='\033[0;32m' 9 | YELLOW='\033[0;33m' 10 | NC='\033[0m' # No Color 11 | 12 | function prism_is_running() { 13 | curl --silent "http://localhost:4010" >/dev/null 2>&1 14 | } 15 | 16 | kill_server_on_port() { 17 | pids=$(lsof -t -i tcp:"$1" || echo "") 18 | if [ "$pids" != "" ]; then 19 | kill "$pids" 20 | echo "Stopped $pids." 21 | fi 22 | } 23 | 24 | function is_overriding_api_base_url() { 25 | [ -n "$TEST_API_BASE_URL" ] 26 | } 27 | 28 | if ! is_overriding_api_base_url && ! prism_is_running ; then 29 | # When we exit this script, make sure to kill the background mock server process 30 | trap 'kill_server_on_port 4010' EXIT 31 | 32 | # Start the dev server 33 | ./scripts/mock --daemon 34 | fi 35 | 36 | if is_overriding_api_base_url ; then 37 | echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}" 38 | echo 39 | elif ! prism_is_running ; then 40 | echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server" 41 | echo -e "running against your OpenAPI spec." 42 | echo 43 | echo -e "To run the server, pass in the path or url of your OpenAPI" 44 | echo -e "spec to the prism command:" 45 | echo 46 | echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}" 47 | echo 48 | 49 | exit 1 50 | else 51 | echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}" 52 | echo 53 | fi 54 | 55 | echo "==> Running tests" 56 | rye run pytest "$@" 57 | 58 | echo "==> Running Pydantic v1 tests" 59 | rye run nox -s test-pydantic-v1 -- "$@" 60 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/chat_app/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .chats import ( 4 | ChatsResource, 5 | AsyncChatsResource, 6 | ChatsResourceWithRawResponse, 7 | AsyncChatsResourceWithRawResponse, 8 | ChatsResourceWithStreamingResponse, 9 | AsyncChatsResourceWithStreamingResponse, 10 | ) 11 | from .chat_app import ( 12 | ChatAppResource, 13 | AsyncChatAppResource, 14 | ChatAppResourceWithRawResponse, 15 | AsyncChatAppResourceWithRawResponse, 16 | ChatAppResourceWithStreamingResponse, 17 | AsyncChatAppResourceWithStreamingResponse, 18 | ) 19 | from .messages import ( 20 | MessagesResource, 21 | AsyncMessagesResource, 22 | MessagesResourceWithRawResponse, 23 | AsyncMessagesResourceWithRawResponse, 24 | MessagesResourceWithStreamingResponse, 25 | AsyncMessagesResourceWithStreamingResponse, 26 | ) 27 | 28 | __all__ = [ 29 | "ChatsResource", 30 | "AsyncChatsResource", 31 | "ChatsResourceWithRawResponse", 32 | "AsyncChatsResourceWithRawResponse", 33 | "ChatsResourceWithStreamingResponse", 34 | "AsyncChatsResourceWithStreamingResponse", 35 | "MessagesResource", 36 | "AsyncMessagesResource", 37 | "MessagesResourceWithRawResponse", 38 | "AsyncMessagesResourceWithRawResponse", 39 | "MessagesResourceWithStreamingResponse", 40 | "AsyncMessagesResourceWithStreamingResponse", 41 | "ChatAppResource", 42 | "AsyncChatAppResource", 43 | "ChatAppResourceWithRawResponse", 44 | "AsyncChatAppResourceWithRawResponse", 45 | "ChatAppResourceWithStreamingResponse", 46 | "AsyncChatAppResourceWithStreamingResponse", 47 | ] 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/public/quote_list_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["QuoteListResponse", "Data", "DataData"] 10 | 11 | 12 | class DataData(BaseModel): 13 | id: Optional[float] = None 14 | 15 | author: Optional[str] = None 16 | 17 | author_slug: Optional[str] = FieldInfo(alias="authorSlug", default=None) 18 | 19 | content: Optional[str] = None 20 | 21 | date_added: Optional[str] = FieldInfo(alias="dateAdded", default=None) 22 | 23 | date_modified: Optional[str] = FieldInfo(alias="dateModified", default=None) 24 | 25 | length: Optional[float] = None 26 | 27 | tags: Optional[List[object]] = None 28 | 29 | 30 | class Data(BaseModel): 31 | current_page_items: Optional[float] = FieldInfo(alias="currentPageItems", default=None) 32 | 33 | data: Optional[List[DataData]] = None 34 | 35 | limit: Optional[float] = None 36 | 37 | next_page: Optional[bool] = FieldInfo(alias="nextPage", default=None) 38 | 39 | page: Optional[float] = None 40 | 41 | previous_page: Optional[bool] = FieldInfo(alias="previousPage", default=None) 42 | 43 | total_items: Optional[float] = FieldInfo(alias="totalItems", default=None) 44 | 45 | total_pages: Optional[float] = FieldInfo(alias="totalPages", default=None) 46 | 47 | 48 | class QuoteListResponse(BaseModel): 49 | data: Optional[Data] = None 50 | 51 | message: Optional[str] = None 52 | 53 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 54 | 55 | success: Optional[bool] = None 56 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/ecommerce/orders/provider/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .paypal import ( 4 | PaypalResource, 5 | AsyncPaypalResource, 6 | PaypalResourceWithRawResponse, 7 | AsyncPaypalResourceWithRawResponse, 8 | PaypalResourceWithStreamingResponse, 9 | AsyncPaypalResourceWithStreamingResponse, 10 | ) 11 | from .provider import ( 12 | ProviderResource, 13 | AsyncProviderResource, 14 | ProviderResourceWithRawResponse, 15 | AsyncProviderResourceWithRawResponse, 16 | ProviderResourceWithStreamingResponse, 17 | AsyncProviderResourceWithStreamingResponse, 18 | ) 19 | from .razorpay import ( 20 | RazorpayResource, 21 | AsyncRazorpayResource, 22 | RazorpayResourceWithRawResponse, 23 | AsyncRazorpayResourceWithRawResponse, 24 | RazorpayResourceWithStreamingResponse, 25 | AsyncRazorpayResourceWithStreamingResponse, 26 | ) 27 | 28 | __all__ = [ 29 | "RazorpayResource", 30 | "AsyncRazorpayResource", 31 | "RazorpayResourceWithRawResponse", 32 | "AsyncRazorpayResourceWithRawResponse", 33 | "RazorpayResourceWithStreamingResponse", 34 | "AsyncRazorpayResourceWithStreamingResponse", 35 | "PaypalResource", 36 | "AsyncPaypalResource", 37 | "PaypalResourceWithRawResponse", 38 | "AsyncPaypalResourceWithRawResponse", 39 | "PaypalResourceWithStreamingResponse", 40 | "AsyncPaypalResourceWithStreamingResponse", 41 | "ProviderResource", 42 | "AsyncProviderResource", 43 | "ProviderResourceWithRawResponse", 44 | "AsyncProviderResourceWithRawResponse", 45 | "ProviderResourceWithStreamingResponse", 46 | "AsyncProviderResourceWithStreamingResponse", 47 | ] 48 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/products/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .category import ( 4 | CategoryResource, 5 | AsyncCategoryResource, 6 | CategoryResourceWithRawResponse, 7 | AsyncCategoryResourceWithRawResponse, 8 | CategoryResourceWithStreamingResponse, 9 | AsyncCategoryResourceWithStreamingResponse, 10 | ) 11 | from .products import ( 12 | ProductsResource, 13 | AsyncProductsResource, 14 | ProductsResourceWithRawResponse, 15 | AsyncProductsResourceWithRawResponse, 16 | ProductsResourceWithStreamingResponse, 17 | AsyncProductsResourceWithStreamingResponse, 18 | ) 19 | from .subimage import ( 20 | SubimageResource, 21 | AsyncSubimageResource, 22 | SubimageResourceWithRawResponse, 23 | AsyncSubimageResourceWithRawResponse, 24 | SubimageResourceWithStreamingResponse, 25 | AsyncSubimageResourceWithStreamingResponse, 26 | ) 27 | 28 | __all__ = [ 29 | "CategoryResource", 30 | "AsyncCategoryResource", 31 | "CategoryResourceWithRawResponse", 32 | "AsyncCategoryResourceWithRawResponse", 33 | "CategoryResourceWithStreamingResponse", 34 | "AsyncCategoryResourceWithStreamingResponse", 35 | "SubimageResource", 36 | "AsyncSubimageResource", 37 | "SubimageResourceWithRawResponse", 38 | "AsyncSubimageResourceWithRawResponse", 39 | "SubimageResourceWithStreamingResponse", 40 | "AsyncSubimageResourceWithStreamingResponse", 41 | "ProductsResource", 42 | "AsyncProductsResource", 43 | "ProductsResourceWithRawResponse", 44 | "AsyncProductsResourceWithRawResponse", 45 | "ProductsResourceWithStreamingResponse", 46 | "AsyncProductsResourceWithStreamingResponse", 47 | ] 48 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/social_media/follow/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .follow import ( 4 | FollowResource, 5 | AsyncFollowResource, 6 | FollowResourceWithRawResponse, 7 | AsyncFollowResourceWithRawResponse, 8 | FollowResourceWithStreamingResponse, 9 | AsyncFollowResourceWithStreamingResponse, 10 | ) 11 | from .followers import ( 12 | FollowersResource, 13 | AsyncFollowersResource, 14 | FollowersResourceWithRawResponse, 15 | AsyncFollowersResourceWithRawResponse, 16 | FollowersResourceWithStreamingResponse, 17 | AsyncFollowersResourceWithStreamingResponse, 18 | ) 19 | from .following import ( 20 | FollowingResource, 21 | AsyncFollowingResource, 22 | FollowingResourceWithRawResponse, 23 | AsyncFollowingResourceWithRawResponse, 24 | FollowingResourceWithStreamingResponse, 25 | AsyncFollowingResourceWithStreamingResponse, 26 | ) 27 | 28 | __all__ = [ 29 | "FollowersResource", 30 | "AsyncFollowersResource", 31 | "FollowersResourceWithRawResponse", 32 | "AsyncFollowersResourceWithRawResponse", 33 | "FollowersResourceWithStreamingResponse", 34 | "AsyncFollowersResourceWithStreamingResponse", 35 | "FollowingResource", 36 | "AsyncFollowingResource", 37 | "FollowingResourceWithRawResponse", 38 | "AsyncFollowingResourceWithRawResponse", 39 | "FollowingResourceWithStreamingResponse", 40 | "AsyncFollowingResourceWithStreamingResponse", 41 | "FollowResource", 42 | "AsyncFollowResource", 43 | "FollowResourceWithRawResponse", 44 | "AsyncFollowResourceWithRawResponse", 45 | "FollowResourceWithStreamingResponse", 46 | "AsyncFollowResourceWithStreamingResponse", 47 | ] 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/orders/provider/razorpay_verify_payment_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ....._models import BaseModel 8 | 9 | __all__ = ["RazorpayVerifyPaymentResponse", "Data", "DataItem"] 10 | 11 | 12 | class DataItem(BaseModel): 13 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 14 | 15 | product_id: Optional[str] = FieldInfo(alias="productId", default=None) 16 | 17 | quantity: Optional[float] = None 18 | 19 | 20 | class Data(BaseModel): 21 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 22 | 23 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 24 | 25 | address: Optional[str] = None 26 | 27 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 28 | 29 | customer: Optional[str] = None 30 | 31 | is_payment_done: Optional[bool] = FieldInfo(alias="isPaymentDone", default=None) 32 | 33 | items: Optional[List[DataItem]] = None 34 | 35 | order_price: Optional[float] = FieldInfo(alias="orderPrice", default=None) 36 | 37 | payment_id: Optional[str] = FieldInfo(alias="paymentId", default=None) 38 | 39 | payment_provider: Optional[str] = FieldInfo(alias="paymentProvider", default=None) 40 | 41 | status: Optional[str] = None 42 | 43 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 44 | 45 | 46 | class RazorpayVerifyPaymentResponse(BaseModel): 47 | data: Optional[Data] = None 48 | 49 | message: Optional[str] = None 50 | 51 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 52 | 53 | success: Optional[bool] = None 54 | -------------------------------------------------------------------------------- /tests/test_files.py: -------------------------------------------------------------------------------- 1 | from pathlib import Path 2 | 3 | import anyio 4 | import pytest 5 | from dirty_equals import IsDict, IsList, IsBytes, IsTuple 6 | 7 | from freeapiapp._files import to_httpx_files, async_to_httpx_files 8 | 9 | readme_path = Path(__file__).parent.parent.joinpath("README.md") 10 | 11 | 12 | def test_pathlib_includes_file_name() -> None: 13 | result = to_httpx_files({"file": readme_path}) 14 | print(result) 15 | assert result == IsDict({"file": IsTuple("README.md", IsBytes())}) 16 | 17 | 18 | def test_tuple_input() -> None: 19 | result = to_httpx_files([("file", readme_path)]) 20 | print(result) 21 | assert result == IsList(IsTuple("file", IsTuple("README.md", IsBytes()))) 22 | 23 | 24 | @pytest.mark.asyncio 25 | async def test_async_pathlib_includes_file_name() -> None: 26 | result = await async_to_httpx_files({"file": readme_path}) 27 | print(result) 28 | assert result == IsDict({"file": IsTuple("README.md", IsBytes())}) 29 | 30 | 31 | @pytest.mark.asyncio 32 | async def test_async_supports_anyio_path() -> None: 33 | result = await async_to_httpx_files({"file": anyio.Path(readme_path)}) 34 | print(result) 35 | assert result == IsDict({"file": IsTuple("README.md", IsBytes())}) 36 | 37 | 38 | @pytest.mark.asyncio 39 | async def test_async_tuple_input() -> None: 40 | result = await async_to_httpx_files([("file", readme_path)]) 41 | print(result) 42 | assert result == IsList(IsTuple("file", IsTuple("README.md", IsBytes()))) 43 | 44 | 45 | def test_string_not_allowed() -> None: 46 | with pytest.raises(TypeError, match="Expected file types input to be a FileContent type or to be a tuple"): 47 | to_httpx_files( 48 | { 49 | "file": "foo", # type: ignore 50 | } 51 | ) 52 | -------------------------------------------------------------------------------- /tests/test_deepcopy.py: -------------------------------------------------------------------------------- 1 | from freeapiapp._utils import deepcopy_minimal 2 | 3 | 4 | def assert_different_identities(obj1: object, obj2: object) -> None: 5 | assert obj1 == obj2 6 | assert id(obj1) != id(obj2) 7 | 8 | 9 | def test_simple_dict() -> None: 10 | obj1 = {"foo": "bar"} 11 | obj2 = deepcopy_minimal(obj1) 12 | assert_different_identities(obj1, obj2) 13 | 14 | 15 | def test_nested_dict() -> None: 16 | obj1 = {"foo": {"bar": True}} 17 | obj2 = deepcopy_minimal(obj1) 18 | assert_different_identities(obj1, obj2) 19 | assert_different_identities(obj1["foo"], obj2["foo"]) 20 | 21 | 22 | def test_complex_nested_dict() -> None: 23 | obj1 = {"foo": {"bar": [{"hello": "world"}]}} 24 | obj2 = deepcopy_minimal(obj1) 25 | assert_different_identities(obj1, obj2) 26 | assert_different_identities(obj1["foo"], obj2["foo"]) 27 | assert_different_identities(obj1["foo"]["bar"], obj2["foo"]["bar"]) 28 | assert_different_identities(obj1["foo"]["bar"][0], obj2["foo"]["bar"][0]) 29 | 30 | 31 | def test_simple_list() -> None: 32 | obj1 = ["a", "b", "c"] 33 | obj2 = deepcopy_minimal(obj1) 34 | assert_different_identities(obj1, obj2) 35 | 36 | 37 | def test_nested_list() -> None: 38 | obj1 = ["a", [1, 2, 3]] 39 | obj2 = deepcopy_minimal(obj1) 40 | assert_different_identities(obj1, obj2) 41 | assert_different_identities(obj1[1], obj2[1]) 42 | 43 | 44 | class MyObject: ... 45 | 46 | 47 | def test_ignores_other_types() -> None: 48 | # custom classes 49 | my_obj = MyObject() 50 | obj1 = {"foo": my_obj} 51 | obj2 = deepcopy_minimal(obj1) 52 | assert_different_identities(obj1, obj2) 53 | assert obj1["foo"] is my_obj 54 | 55 | # tuples 56 | obj3 = ("a", "b") 57 | obj4 = deepcopy_minimal(obj3) 58 | assert obj3 is obj4 59 | -------------------------------------------------------------------------------- /src/freeapiapp/types/authentication_login_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["AuthenticationLoginResponse", "Data", "DataUser", "DataUserAvatar"] 10 | 11 | 12 | class DataUserAvatar(BaseModel): 13 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 14 | 15 | local_path: Optional[str] = FieldInfo(alias="localPath", default=None) 16 | 17 | url: Optional[str] = None 18 | 19 | 20 | class DataUser(BaseModel): 21 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 22 | 23 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 24 | 25 | avatar: Optional[DataUserAvatar] = None 26 | 27 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 28 | 29 | email: Optional[str] = None 30 | 31 | is_email_verified: Optional[bool] = FieldInfo(alias="isEmailVerified", default=None) 32 | 33 | login_type: Optional[str] = FieldInfo(alias="loginType", default=None) 34 | 35 | role: Optional[str] = None 36 | 37 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 38 | 39 | username: Optional[str] = None 40 | 41 | 42 | class Data(BaseModel): 43 | access_token: Optional[str] = FieldInfo(alias="accessToken", default=None) 44 | 45 | refresh_token: Optional[str] = FieldInfo(alias="refreshToken", default=None) 46 | 47 | user: Optional[DataUser] = None 48 | 49 | 50 | class AuthenticationLoginResponse(BaseModel): 51 | data: Optional[Data] = None 52 | 53 | message: Optional[str] = None 54 | 55 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 56 | 57 | success: Optional[bool] = None 58 | -------------------------------------------------------------------------------- /src/freeapiapp/resources/ecommerce/coupons/__init__.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from .status import ( 4 | StatusResource, 5 | AsyncStatusResource, 6 | StatusResourceWithRawResponse, 7 | AsyncStatusResourceWithRawResponse, 8 | StatusResourceWithStreamingResponse, 9 | AsyncStatusResourceWithStreamingResponse, 10 | ) 11 | from .coupons import ( 12 | CouponsResource, 13 | AsyncCouponsResource, 14 | CouponsResourceWithRawResponse, 15 | AsyncCouponsResourceWithRawResponse, 16 | CouponsResourceWithStreamingResponse, 17 | AsyncCouponsResourceWithStreamingResponse, 18 | ) 19 | from .customer_available import ( 20 | CustomerAvailableResource, 21 | AsyncCustomerAvailableResource, 22 | CustomerAvailableResourceWithRawResponse, 23 | AsyncCustomerAvailableResourceWithRawResponse, 24 | CustomerAvailableResourceWithStreamingResponse, 25 | AsyncCustomerAvailableResourceWithStreamingResponse, 26 | ) 27 | 28 | __all__ = [ 29 | "CustomerAvailableResource", 30 | "AsyncCustomerAvailableResource", 31 | "CustomerAvailableResourceWithRawResponse", 32 | "AsyncCustomerAvailableResourceWithRawResponse", 33 | "CustomerAvailableResourceWithStreamingResponse", 34 | "AsyncCustomerAvailableResourceWithStreamingResponse", 35 | "StatusResource", 36 | "AsyncStatusResource", 37 | "StatusResourceWithRawResponse", 38 | "AsyncStatusResourceWithRawResponse", 39 | "StatusResourceWithStreamingResponse", 40 | "AsyncStatusResourceWithStreamingResponse", 41 | "CouponsResource", 42 | "AsyncCouponsResource", 43 | "CouponsResourceWithRawResponse", 44 | "AsyncCouponsResourceWithRawResponse", 45 | "CouponsResourceWithStreamingResponse", 46 | "AsyncCouponsResourceWithStreamingResponse", 47 | ] 48 | -------------------------------------------------------------------------------- /src/freeapiapp/types/ecommerce/category_list_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from ..._models import BaseModel 8 | 9 | __all__ = ["CategoryListResponse", "Data", "DataCategory"] 10 | 11 | 12 | class DataCategory(BaseModel): 13 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 14 | 15 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 16 | 17 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 18 | 19 | name: Optional[str] = None 20 | 21 | owner: Optional[str] = None 22 | 23 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 24 | 25 | 26 | class Data(BaseModel): 27 | categories: Optional[List[DataCategory]] = None 28 | 29 | has_next_page: Optional[bool] = FieldInfo(alias="hasNextPage", default=None) 30 | 31 | has_prev_page: Optional[bool] = FieldInfo(alias="hasPrevPage", default=None) 32 | 33 | limit: Optional[float] = None 34 | 35 | next_page: Optional[float] = FieldInfo(alias="nextPage", default=None) 36 | 37 | page: Optional[float] = None 38 | 39 | prev_page: Optional[object] = FieldInfo(alias="prevPage", default=None) 40 | 41 | serial_number_start_from: Optional[float] = FieldInfo(alias="serialNumberStartFrom", default=None) 42 | 43 | total_categories: Optional[float] = FieldInfo(alias="totalCategories", default=None) 44 | 45 | total_pages: Optional[float] = FieldInfo(alias="totalPages", default=None) 46 | 47 | 48 | class CategoryListResponse(BaseModel): 49 | data: Optional[Data] = None 50 | 51 | message: Optional[str] = None 52 | 53 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 54 | 55 | success: Optional[bool] = None 56 | -------------------------------------------------------------------------------- /src/freeapiapp/types/product_update_response.py: -------------------------------------------------------------------------------- 1 | # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. 2 | 3 | from typing import List, Optional 4 | 5 | from pydantic import Field as FieldInfo 6 | 7 | from .._models import BaseModel 8 | 9 | __all__ = ["ProductUpdateResponse", "Data", "DataMainImage", "DataSubImage"] 10 | 11 | 12 | class DataMainImage(BaseModel): 13 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 14 | 15 | local_path: Optional[str] = FieldInfo(alias="localPath", default=None) 16 | 17 | url: Optional[str] = None 18 | 19 | 20 | class DataSubImage(BaseModel): 21 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 22 | 23 | local_path: Optional[str] = FieldInfo(alias="localPath", default=None) 24 | 25 | url: Optional[str] = None 26 | 27 | 28 | class Data(BaseModel): 29 | api_v: Optional[float] = FieldInfo(alias="__v", default=None) 30 | 31 | api_id: Optional[str] = FieldInfo(alias="_id", default=None) 32 | 33 | category: Optional[str] = None 34 | 35 | created_at: Optional[str] = FieldInfo(alias="createdAt", default=None) 36 | 37 | description: Optional[str] = None 38 | 39 | main_image: Optional[DataMainImage] = FieldInfo(alias="mainImage", default=None) 40 | 41 | name: Optional[str] = None 42 | 43 | owner: Optional[str] = None 44 | 45 | price: Optional[float] = None 46 | 47 | stock: Optional[float] = None 48 | 49 | sub_images: Optional[List[DataSubImage]] = FieldInfo(alias="subImages", default=None) 50 | 51 | updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None) 52 | 53 | 54 | class ProductUpdateResponse(BaseModel): 55 | data: Optional[Data] = None 56 | 57 | message: Optional[str] = None 58 | 59 | status_code: Optional[float] = FieldInfo(alias="statusCode", default=None) 60 | 61 | success: Optional[bool] = None 62 | --------------------------------------------------------------------------------