appforges 0.59.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
appforges/__init__.py ADDED
@@ -0,0 +1,19 @@
1
+ # Generated by sdk-gen; do not edit.
2
+ from . import errors as errors
3
+ from . import models as models
4
+ from .client import AppForges as AppForges
5
+ from .client import AsyncAppForges as AsyncAppForges
6
+ from .runtime.auth import APIKeyAuth as APIKeyAuth
7
+ from .runtime.auth import BearerAuth as BearerAuth
8
+ from .runtime.errors import APIError as APIError
9
+ from .runtime.errors import AppForgesError as AppForgesError
10
+ from .runtime.errors import RateLimitExceededError as RateLimitExceededError
11
+ from .runtime.errors import ResponseValidationError as ResponseValidationError
12
+ from .runtime.models import NOT_GIVEN as NOT_GIVEN
13
+ from .runtime.models import NotGiven as NotGiven
14
+ from .runtime.oauth import PKCE as PKCE
15
+ from .runtime.oauth import AsyncOAuthClient as AsyncOAuthClient
16
+ from .runtime.oauth import AsyncRefreshableBearer as AsyncRefreshableBearer
17
+ from .runtime.oauth import OAuthClient as OAuthClient
18
+ from .runtime.oauth import OAuthTokens as OAuthTokens
19
+ from .runtime.oauth import RefreshableBearer as RefreshableBearer
appforges/client.py ADDED
@@ -0,0 +1,106 @@
1
+ # Generated by sdk-gen; do not edit.
2
+ from __future__ import annotations
3
+
4
+ import httpx
5
+
6
+ from . import resources
7
+ from .runtime.auth import AsyncAuthProvider, AuthProvider
8
+ from .runtime.client import AsyncBaseClient, BaseClient
9
+
10
+
11
+ class AppForges(BaseClient):
12
+ def __init__(
13
+ self,
14
+ *,
15
+ base_url: str = "https://api.appforges.com",
16
+ auth: AuthProvider | None = None,
17
+ max_retries: int = 2,
18
+ timeout: float = 60.0,
19
+ http_client: httpx.Client | None = None,
20
+ ) -> None:
21
+ super().__init__(
22
+ base_url=base_url,
23
+ auth=auth,
24
+ max_retries=max_retries,
25
+ timeout=timeout,
26
+ http_client=http_client,
27
+ )
28
+ self.articles = resources.Articles(self)
29
+ self.assets = resources.Assets(self)
30
+ self.authorize = resources.Authorize(self)
31
+ self.creative_prompt = resources.CreativePrompt(self)
32
+ self.exports = resources.Exports(self)
33
+ self.instructions = resources.Instructions(self)
34
+ self.introspect = resources.Introspect(self)
35
+ self.jwks = resources.Jwks(self)
36
+ self.metadata = resources.Metadata(self)
37
+ self.pinpage_categories = resources.PinpageCategories(self)
38
+ self.pinpage_category_organization_jobs = resources.PinpageCategoryOrganizationJobs(self)
39
+ self.pinpage_category_preference = resources.PinpageCategoryPreference(self)
40
+ self.pinpage_jobs = resources.PinpageJobs(self)
41
+ self.pinpage_materials = resources.PinpageMaterials(self)
42
+ self.pinpage_pages = resources.PinpagePages(self)
43
+ self.pinpage_prompt = resources.PinpagePrompt(self)
44
+ self.pinpage_storage_protection = resources.PinpageStorageProtection(self)
45
+ self.pinpage_uploads = resources.PinpageUploads(self)
46
+ self.preview = resources.Preview(self)
47
+ self.progress = resources.Progress(self)
48
+ self.revoke = resources.Revoke(self)
49
+ self.scopes = resources.Scopes(self)
50
+ self.sign_urls = resources.SignUrls(self)
51
+ self.template_presets = resources.TemplatePresets(self)
52
+ self.templates = resources.Templates(self)
53
+ self.token = resources.Token(self)
54
+ self.users = resources.Users(self)
55
+ self.verify = resources.Verify(self)
56
+ self.versions = resources.Versions(self)
57
+
58
+
59
+ class AsyncAppForges(AsyncBaseClient):
60
+ def __init__(
61
+ self,
62
+ *,
63
+ base_url: str = "https://api.appforges.com",
64
+ auth: AuthProvider | AsyncAuthProvider | None = None,
65
+ max_retries: int = 2,
66
+ timeout: float = 60.0,
67
+ http_client: httpx.AsyncClient | None = None,
68
+ ) -> None:
69
+ super().__init__(
70
+ base_url=base_url,
71
+ auth=auth,
72
+ max_retries=max_retries,
73
+ timeout=timeout,
74
+ http_client=http_client,
75
+ )
76
+ self.articles = resources.AsyncArticles(self)
77
+ self.assets = resources.AsyncAssets(self)
78
+ self.authorize = resources.AsyncAuthorize(self)
79
+ self.creative_prompt = resources.AsyncCreativePrompt(self)
80
+ self.exports = resources.AsyncExports(self)
81
+ self.instructions = resources.AsyncInstructions(self)
82
+ self.introspect = resources.AsyncIntrospect(self)
83
+ self.jwks = resources.AsyncJwks(self)
84
+ self.metadata = resources.AsyncMetadata(self)
85
+ self.pinpage_categories = resources.AsyncPinpageCategories(self)
86
+ self.pinpage_category_organization_jobs = resources.AsyncPinpageCategoryOrganizationJobs(
87
+ self
88
+ )
89
+ self.pinpage_category_preference = resources.AsyncPinpageCategoryPreference(self)
90
+ self.pinpage_jobs = resources.AsyncPinpageJobs(self)
91
+ self.pinpage_materials = resources.AsyncPinpageMaterials(self)
92
+ self.pinpage_pages = resources.AsyncPinpagePages(self)
93
+ self.pinpage_prompt = resources.AsyncPinpagePrompt(self)
94
+ self.pinpage_storage_protection = resources.AsyncPinpageStorageProtection(self)
95
+ self.pinpage_uploads = resources.AsyncPinpageUploads(self)
96
+ self.preview = resources.AsyncPreview(self)
97
+ self.progress = resources.AsyncProgress(self)
98
+ self.revoke = resources.AsyncRevoke(self)
99
+ self.scopes = resources.AsyncScopes(self)
100
+ self.sign_urls = resources.AsyncSignUrls(self)
101
+ self.template_presets = resources.AsyncTemplatePresets(self)
102
+ self.templates = resources.AsyncTemplates(self)
103
+ self.token = resources.AsyncToken(self)
104
+ self.users = resources.AsyncUsers(self)
105
+ self.verify = resources.AsyncVerify(self)
106
+ self.versions = resources.AsyncVersions(self)
appforges/errors.py ADDED
@@ -0,0 +1,2 @@
1
+ # Generated by sdk-gen; do not edit.
2
+